Skip to content

Commit

Permalink
Add invite statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Oct 29, 2024
1 parent c2530f3 commit 05c20a0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/io/authress/client/models/Invite.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package io.authress.client.models

import io.authress.client.models.AccountLinks
import io.authress.client.models.Statement
import io.authress.client.models.InviteStatement

/**
* The user invite used to invite users to your application or to Authress as an admin.
Expand All @@ -15,7 +15,7 @@ data class Invite (
/* The unique identifier for the invite. */
val inviteId: kotlin.String,
/* A list of statements which match roles to resources. The invited user will all statements apply to them */
val statements: kotlin.Array<Statement>,
val statements: kotlin.Array<InviteStatement>,
val links: AccountLinks
) {
}
16 changes: 16 additions & 0 deletions src/main/kotlin/io/authress/client/models/InviteStatement.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

package io.authress.client.models

import io.authress.client.models.StatementResources

/**
*
* @param roles
* @param resources
*/
data class InviteStatement (

val roles: kotlin.Array<kotlin.String>,
val resources: kotlin.Array<StatementResources>
) {
}

0 comments on commit 05c20a0

Please sign in to comment.