@zitadel/api 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-factory-BPmRCU7u.mjs → api-factory-B2kd991F.mjs} +14 -2
- package/dist/api-factory-B2kd991F.mjs.map +1 -0
- package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DW48-EMM.d.mts} +8 -3
- package/dist/api-factory-DW48-EMM.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +225 -109
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +737 -41
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +594 -182
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +788 -347
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +17 -3
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +46 -4
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-BwYxe7Dw.d.mts → index-REGtKmAu.d.mts} +1466 -327
- package/dist/index-REGtKmAu.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -1
- package/dist/runtime/config.d.mts +1 -1
- package/dist/runtime/config.mjs +1 -1
- package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-C2Qcm9jl.d.mts} +65 -20
- package/dist/zitadelNextGen-C2Qcm9jl.d.mts.map +1 -0
- package/dist/{zitadelNextGen-DsPFGqLs.mjs → zitadelNextGen-CDqt2m_4.mjs} +141 -558
- package/dist/zitadelNextGen-CDqt2m_4.mjs.map +1 -0
- package/package.json +2 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +14 -10
- package/src/generated/endpoints/zitadelNextGen.msw.ts +278 -216
- package/src/generated/endpoints/zitadelNextGen.ts +209 -736
- package/src/generated/endpoints/zitadelNextGen.zod.ts +674 -312
- package/src/generated/model/acceptInvitation200.ts +84 -12
- package/src/generated/model/acceptInvitationDefault.ts +18 -0
- package/src/generated/model/buildReleaseBodyBundle.ts +1 -2
- package/src/generated/model/buildReleaseBodyBundleOauth.ts +1 -2
- package/src/generated/model/buildReleaseParams.ts +7 -7
- package/src/generated/model/cancelInvitationParams.ts +7 -7
- package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
- package/src/generated/model/createAuthAttemptChallenge201Payload.ts +1 -1
- package/src/generated/model/createDeploymentParams.ts +7 -7
- package/src/generated/model/createGrantParams.ts +7 -7
- package/src/generated/model/createInvitation201.ts +84 -12
- package/src/generated/model/createInvitationBody.ts +4 -4
- package/src/generated/model/createInvitationParams.ts +7 -7
- package/src/generated/model/createReleaseParams.ts +7 -7
- package/src/generated/model/createTeamParams.ts +7 -7
- package/src/generated/model/createUserParams.ts +23 -23
- package/src/generated/model/deleteGrantParams.ts +7 -7
- package/src/generated/model/deleteVariableParams.ts +12 -12
- package/src/generated/model/evaluatePolicyParams.ts +7 -7
- package/src/generated/model/exchangeHandoffParams.ts +7 -7
- package/src/generated/model/getApplicationParams.ts +7 -7
- package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
- package/src/generated/model/getDeploymentParams.ts +7 -7
- package/src/generated/model/getEvent200.ts +192 -10
- package/src/generated/model/getEventParams.ts +7 -7
- package/src/generated/model/getGrantParams.ts +13 -13
- package/src/generated/model/getIdpParams.ts +7 -7
- package/src/generated/model/getIdpRevisionParams.ts +7 -7
- package/src/generated/model/getInvitation200.ts +84 -12
- package/src/generated/model/getInvitationParams.ts +7 -7
- package/src/generated/model/getMyPasswordStateParams.ts +16 -16
- package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
- package/src/generated/model/getMySessionParams.ts +16 -16
- package/src/generated/model/getMyUserParams.ts +16 -16
- package/src/generated/model/getMyUserSchemaParams.ts +16 -16
- package/src/generated/model/getOAuthSettings200.ts +1 -2
- package/src/generated/model/getOAuthSettings200Oauth.ts +1 -2
- package/src/generated/model/getOAuthSettingsDefault.ts +18 -0
- package/src/generated/model/getPolicyParams.ts +7 -7
- package/src/generated/model/getPolicyRevisionParams.ts +7 -7
- package/src/generated/model/getProjectClaimStatusParams.ts +5 -5
- package/src/generated/model/getProjectClaimWindowParams.ts +5 -5
- package/src/generated/model/getReleaseParams.ts +7 -7
- package/src/generated/model/getSchemaParams.ts +11 -11
- package/src/generated/model/getUserParams.ts +21 -21
- package/src/generated/model/getVariableParams.ts +12 -12
- package/src/generated/model/index.ts +18 -7
- package/src/generated/model/listBrandingParams.ts +20 -20
- package/src/generated/model/listDeploymentVariablesParams.ts +7 -7
- package/src/generated/model/listDeploymentsParams.ts +42 -44
- package/src/generated/model/listEvents200EventsItem.ts +192 -10
- package/src/generated/model/listEventsParams.ts +83 -105
- package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
- package/src/generated/model/listIdpRevisionsParams.ts +20 -20
- package/src/generated/model/listInvitations200InvitationsItem.ts +84 -12
- package/src/generated/model/listInvitationsExpandItem.ts +25 -0
- package/src/generated/model/listInvitationsParams.ts +31 -31
- package/src/generated/model/listInvitationsStatusItem.ts +22 -0
- package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
- package/src/generated/model/listMyPasskeysParams.ts +29 -29
- package/src/generated/model/listMyProjectsParams.ts +52 -52
- package/src/generated/model/listMyTeamsParams.ts +29 -29
- package/src/generated/model/listPoliciesParams.ts +22 -24
- package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
- package/src/generated/model/listProjectAdminsParams.ts +13 -13
- package/src/generated/model/listProjectMembers200.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
- package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
- package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
- package/src/generated/model/{acceptInvitation429.ts → listProjectMembers400.ts} +3 -3
- package/src/generated/model/{lookupInvitation429Details.ts → listProjectMembers400Details.ts} +1 -1
- package/src/generated/model/{lookupInvitation429.ts → listProjectMembers401.ts} +3 -3
- package/src/generated/model/{acceptInvitation429Details.ts → listProjectMembers401Details.ts} +1 -1
- package/src/generated/model/{rejectInvitation429.ts → listProjectMembers403.ts} +3 -3
- package/src/generated/model/{rejectInvitation429Details.ts → listProjectMembers403Details.ts} +1 -1
- package/src/generated/model/listProjectMembers404.ts +20 -0
- package/src/generated/model/listProjectMembers404Details.ts +12 -0
- package/src/generated/model/listProjectMembersDefault.ts +81 -0
- package/src/generated/model/listProjectMembersParams.ts +29 -0
- package/src/generated/model/listProjectMembersRelation.ts +16 -0
- package/src/generated/model/listProjectPreviewsParams.ts +13 -13
- package/src/generated/model/listReleasesParams.ts +60 -60
- package/src/generated/model/listSchemasParams.ts +54 -56
- package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
- package/src/generated/model/listUserPasskeysParams.ts +13 -13
- package/src/generated/model/listUserTeamsParams.ts +13 -13
- package/src/generated/model/listVariablesParams.ts +12 -12
- package/src/generated/model/lookupInvitation200.ts +58 -0
- package/src/generated/model/publishApplicationParams.ts +7 -7
- package/src/generated/model/publishBrandingParams.ts +7 -7
- package/src/generated/model/publishIdpParams.ts +7 -7
- package/src/generated/model/publishPolicyParams.ts +7 -7
- package/src/generated/model/publishSchemaParams.ts +12 -12
- package/src/generated/model/queryGrantsParams.ts +7 -7
- package/src/generated/model/queryIdpsParams.ts +7 -7
- package/src/generated/model/querySessionsParams.ts +7 -7
- package/src/generated/model/queryTeamsParams.ts +6 -6
- package/src/generated/model/queryUsersParams.ts +6 -6
- package/src/generated/model/rejectInvitation200.ts +84 -12
- package/src/generated/model/rejectInvitationDefault.ts +18 -0
- package/src/generated/model/revokeMySessionParams.ts +16 -16
- package/src/generated/model/revokeReleaseParams.ts +7 -7
- package/src/generated/model/rollbackDeploymentParams.ts +7 -7
- package/src/generated/model/searchParams.ts +7 -7
- package/src/generated/model/setVariablesParams.ts +12 -12
- package/src/generated/model/updateMyUserParams.ts +16 -16
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +1 -1
- package/src/generated/operations.ts +46 -4
- package/src/generated/paging.ts +5 -0
- package/dist/api-factory-BPmRCU7u.mjs.map +0 -1
- package/dist/api-factory-DCzYxpdV.d.mts.map +0 -1
- package/dist/index-BwYxe7Dw.d.mts.map +0 -1
- package/dist/zitadelNextGen-DsPFGqLs.mjs.map +0 -1
- package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +0 -1
- package/src/generated/model/listInvitationsStatus.ts +0 -17
|
@@ -21,8 +21,8 @@ export type AcceptInvitation200 = ({
|
|
|
21
21
|
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
22
22
|
project_id: string;
|
|
23
23
|
/**
|
|
24
|
-
* Who the administrator said the link is for. Null after accept
|
|
25
|
-
* Cancel and replace delete the row.
|
|
24
|
+
* Who the administrator said the link is for. Null after accept; a
|
|
25
|
+
* decline keeps it. Cancel and replace delete the row.
|
|
26
26
|
*/
|
|
27
27
|
metadata?: {
|
|
28
28
|
/**
|
|
@@ -55,10 +55,46 @@ export type AcceptInvitation200 = ({
|
|
|
55
55
|
* @minLength 1
|
|
56
56
|
*/
|
|
57
57
|
journey_id: string;
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
/**
|
|
59
|
+
* The user who accepted or declined the link; `status` says which. Null
|
|
60
|
+
* while the invitation is pending or expired.
|
|
61
|
+
*/
|
|
62
|
+
responded_by?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* When the invitation was accepted or declined. Null while it is pending or
|
|
65
|
+
* expired.
|
|
66
|
+
*/
|
|
67
|
+
responded_at?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The user who created the invitation, resolved for display: render
|
|
70
|
+
* `display`, falling back to `identifier`, then `user_id`. Present only
|
|
71
|
+
* when `listInvitations` is called with `expand=inviter`; null when a
|
|
72
|
+
* project secret created the invitation.
|
|
73
|
+
*/
|
|
74
|
+
inviter?: {
|
|
75
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
76
|
+
user_id: string;
|
|
77
|
+
/**
|
|
78
|
+
* The current value of the schema's designated identifier
|
|
79
|
+
* (`x-identifier`). Absent when the schema designates no identifier or
|
|
80
|
+
* the user carries no value for it.
|
|
81
|
+
*/
|
|
82
|
+
identifier?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The schema property `identifier` came from, so clients can reach the
|
|
85
|
+
* property's schema for semantics (a mailto link, a field label)
|
|
86
|
+
* instead of guessing from the value. Present exactly when
|
|
87
|
+
* `identifier` is.
|
|
88
|
+
*/
|
|
89
|
+
identifier_property?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The `x-display` rendering: the designated properties' values joined
|
|
92
|
+
* in list order. It is for display only and names no source.
|
|
93
|
+
* Absent when the schema designates no display properties or the user
|
|
94
|
+
* carries no values for them.
|
|
95
|
+
*/
|
|
96
|
+
display?: string;
|
|
97
|
+
} | null;
|
|
62
98
|
}) & ({
|
|
63
99
|
type: 'project_member';
|
|
64
100
|
/** Type-specific input for a `project_member` invitation. */
|
|
@@ -76,8 +112,8 @@ export type AcceptInvitation200 = ({
|
|
|
76
112
|
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
77
113
|
project_id: string;
|
|
78
114
|
/**
|
|
79
|
-
* Who the administrator said the link is for. Null after accept
|
|
80
|
-
* Cancel and replace delete the row.
|
|
115
|
+
* Who the administrator said the link is for. Null after accept; a
|
|
116
|
+
* decline keeps it. Cancel and replace delete the row.
|
|
81
117
|
*/
|
|
82
118
|
metadata?: {
|
|
83
119
|
/**
|
|
@@ -110,10 +146,46 @@ export type AcceptInvitation200 = ({
|
|
|
110
146
|
* @minLength 1
|
|
111
147
|
*/
|
|
112
148
|
journey_id: string;
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
149
|
+
/**
|
|
150
|
+
* The user who accepted or declined the link; `status` says which. Null
|
|
151
|
+
* while the invitation is pending or expired.
|
|
152
|
+
*/
|
|
153
|
+
responded_by?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* When the invitation was accepted or declined. Null while it is pending or
|
|
156
|
+
* expired.
|
|
157
|
+
*/
|
|
158
|
+
responded_at?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* The user who created the invitation, resolved for display: render
|
|
161
|
+
* `display`, falling back to `identifier`, then `user_id`. Present only
|
|
162
|
+
* when `listInvitations` is called with `expand=inviter`; null when a
|
|
163
|
+
* project secret created the invitation.
|
|
164
|
+
*/
|
|
165
|
+
inviter?: {
|
|
166
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
167
|
+
user_id: string;
|
|
168
|
+
/**
|
|
169
|
+
* The current value of the schema's designated identifier
|
|
170
|
+
* (`x-identifier`). Absent when the schema designates no identifier or
|
|
171
|
+
* the user carries no value for it.
|
|
172
|
+
*/
|
|
173
|
+
identifier?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The schema property `identifier` came from, so clients can reach the
|
|
176
|
+
* property's schema for semantics (a mailto link, a field label)
|
|
177
|
+
* instead of guessing from the value. Present exactly when
|
|
178
|
+
* `identifier` is.
|
|
179
|
+
*/
|
|
180
|
+
identifier_property?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The `x-display` rendering: the designated properties' values joined
|
|
183
|
+
* in list order. It is for display only and names no source.
|
|
184
|
+
* Absent when the schema designates no display properties or the user
|
|
185
|
+
* carries no values for them.
|
|
186
|
+
*/
|
|
187
|
+
display?: string;
|
|
188
|
+
} | null;
|
|
117
189
|
}) & {
|
|
118
190
|
type: 'team_member';
|
|
119
191
|
/** Type-specific input for a `team_member` invitation. */
|
|
@@ -31,6 +31,15 @@ export type AcceptInvitationDefault = {
|
|
|
31
31
|
message: string;
|
|
32
32
|
/** Additional error-specific context. */
|
|
33
33
|
details?: { [key: string]: unknown };
|
|
34
|
+
} & {
|
|
35
|
+
code: 'evt.invalid';
|
|
36
|
+
} | {
|
|
37
|
+
/** Stable machine-readable error code. */
|
|
38
|
+
code: string;
|
|
39
|
+
/** Human-readable explanation of the error. */
|
|
40
|
+
message: string;
|
|
41
|
+
/** Additional error-specific context. */
|
|
42
|
+
details?: { [key: string]: unknown };
|
|
34
43
|
} & {
|
|
35
44
|
code: 'internal';
|
|
36
45
|
} | {
|
|
@@ -40,6 +49,15 @@ export type AcceptInvitationDefault = {
|
|
|
40
49
|
message: string;
|
|
41
50
|
/** Additional error-specific context. */
|
|
42
51
|
details?: { [key: string]: unknown };
|
|
52
|
+
} & {
|
|
53
|
+
code: 'inv.inviter_not_admin';
|
|
54
|
+
} | {
|
|
55
|
+
/** Stable machine-readable error code. */
|
|
56
|
+
code: string;
|
|
57
|
+
/** Human-readable explanation of the error. */
|
|
58
|
+
message: string;
|
|
59
|
+
/** Additional error-specific context. */
|
|
60
|
+
details?: { [key: string]: unknown };
|
|
43
61
|
} & {
|
|
44
62
|
code: 'inv.not_found';
|
|
45
63
|
} | {
|
|
@@ -108,8 +108,7 @@ export type BuildReleaseBodyBundle = {
|
|
|
108
108
|
* bundle `buildRelease` (`POST /releases/build`) takes, which publishes it as
|
|
109
109
|
* a new immutable revision, and the read-only revision
|
|
110
110
|
* `getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)
|
|
111
|
-
* returns.
|
|
112
|
-
* publishes with the rest of the bundle.
|
|
111
|
+
* returns.
|
|
113
112
|
*
|
|
114
113
|
* A release is the only writer: there is no operation that publishes OAuth
|
|
115
114
|
* settings on their own. A release without `oauth` leaves the authorization
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* bundle `buildRelease` (`POST /releases/build`) takes, which publishes it as
|
|
13
13
|
* a new immutable revision, and the read-only revision
|
|
14
14
|
* `getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)
|
|
15
|
-
* returns.
|
|
16
|
-
* publishes with the rest of the bundle.
|
|
15
|
+
* returns.
|
|
17
16
|
*
|
|
18
17
|
* A release is the only writer: there is no operation that publishes OAuth
|
|
19
18
|
* settings on their own. A release without `oauth` leaves the authorization
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type BuildReleaseParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CancelInvitationParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - `passkey`: WebAuthn challenge and credential options
|
|
13
13
|
* - `idp`: Authorization URL and provider information
|
|
14
14
|
*/
|
|
15
|
-
export type CreateAuthAttempt201ChallengesItemPayload = { [key: string]:
|
|
15
|
+
export type CreateAuthAttempt201ChallengesItemPayload = { [key: string]: never } | {
|
|
16
16
|
/**
|
|
17
17
|
* Contains the options for the Assertion Generation (dictionary PublicKeyCredentialRequestOptions).
|
|
18
18
|
* See also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - `passkey`: WebAuthn challenge and credential options
|
|
13
13
|
* - `idp`: Authorization URL and provider information
|
|
14
14
|
*/
|
|
15
|
-
export type CreateAuthAttemptChallenge201Payload = { [key: string]:
|
|
15
|
+
export type CreateAuthAttemptChallenge201Payload = { [key: string]: never } | {
|
|
16
16
|
/**
|
|
17
17
|
* Contains the options for the Assertion Generation (dictionary PublicKeyCredentialRequestOptions).
|
|
18
18
|
* See also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateDeploymentParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateGrantParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -19,8 +19,8 @@ export type CreateInvitation201 = (({
|
|
|
19
19
|
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
20
20
|
project_id: string;
|
|
21
21
|
/**
|
|
22
|
-
* Who the administrator said the link is for. Null after accept
|
|
23
|
-
* Cancel and replace delete the row.
|
|
22
|
+
* Who the administrator said the link is for. Null after accept; a
|
|
23
|
+
* decline keeps it. Cancel and replace delete the row.
|
|
24
24
|
*/
|
|
25
25
|
metadata?: {
|
|
26
26
|
/**
|
|
@@ -53,10 +53,46 @@ export type CreateInvitation201 = (({
|
|
|
53
53
|
* @minLength 1
|
|
54
54
|
*/
|
|
55
55
|
journey_id: string;
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The user who accepted or declined the link; `status` says which. Null
|
|
58
|
+
* while the invitation is pending or expired.
|
|
59
|
+
*/
|
|
60
|
+
responded_by?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* When the invitation was accepted or declined. Null while it is pending or
|
|
63
|
+
* expired.
|
|
64
|
+
*/
|
|
65
|
+
responded_at?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The user who created the invitation, resolved for display: render
|
|
68
|
+
* `display`, falling back to `identifier`, then `user_id`. Present only
|
|
69
|
+
* when `listInvitations` is called with `expand=inviter`; null when a
|
|
70
|
+
* project secret created the invitation.
|
|
71
|
+
*/
|
|
72
|
+
inviter?: {
|
|
73
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
74
|
+
user_id: string;
|
|
75
|
+
/**
|
|
76
|
+
* The current value of the schema's designated identifier
|
|
77
|
+
* (`x-identifier`). Absent when the schema designates no identifier or
|
|
78
|
+
* the user carries no value for it.
|
|
79
|
+
*/
|
|
80
|
+
identifier?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The schema property `identifier` came from, so clients can reach the
|
|
83
|
+
* property's schema for semantics (a mailto link, a field label)
|
|
84
|
+
* instead of guessing from the value. Present exactly when
|
|
85
|
+
* `identifier` is.
|
|
86
|
+
*/
|
|
87
|
+
identifier_property?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The `x-display` rendering: the designated properties' values joined
|
|
90
|
+
* in list order. It is for display only and names no source.
|
|
91
|
+
* Absent when the schema designates no display properties or the user
|
|
92
|
+
* carries no values for them.
|
|
93
|
+
*/
|
|
94
|
+
display?: string;
|
|
95
|
+
} | null;
|
|
60
96
|
}) & ({
|
|
61
97
|
type: 'project_member';
|
|
62
98
|
/** Type-specific input for a `project_member` invitation. */
|
|
@@ -80,8 +116,8 @@ export type CreateInvitation201 = (({
|
|
|
80
116
|
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
81
117
|
project_id: string;
|
|
82
118
|
/**
|
|
83
|
-
* Who the administrator said the link is for. Null after accept
|
|
84
|
-
* Cancel and replace delete the row.
|
|
119
|
+
* Who the administrator said the link is for. Null after accept; a
|
|
120
|
+
* decline keeps it. Cancel and replace delete the row.
|
|
85
121
|
*/
|
|
86
122
|
metadata?: {
|
|
87
123
|
/**
|
|
@@ -114,10 +150,46 @@ export type CreateInvitation201 = (({
|
|
|
114
150
|
* @minLength 1
|
|
115
151
|
*/
|
|
116
152
|
journey_id: string;
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
153
|
+
/**
|
|
154
|
+
* The user who accepted or declined the link; `status` says which. Null
|
|
155
|
+
* while the invitation is pending or expired.
|
|
156
|
+
*/
|
|
157
|
+
responded_by?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* When the invitation was accepted or declined. Null while it is pending or
|
|
160
|
+
* expired.
|
|
161
|
+
*/
|
|
162
|
+
responded_at?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
* The user who created the invitation, resolved for display: render
|
|
165
|
+
* `display`, falling back to `identifier`, then `user_id`. Present only
|
|
166
|
+
* when `listInvitations` is called with `expand=inviter`; null when a
|
|
167
|
+
* project secret created the invitation.
|
|
168
|
+
*/
|
|
169
|
+
inviter?: {
|
|
170
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
171
|
+
user_id: string;
|
|
172
|
+
/**
|
|
173
|
+
* The current value of the schema's designated identifier
|
|
174
|
+
* (`x-identifier`). Absent when the schema designates no identifier or
|
|
175
|
+
* the user carries no value for it.
|
|
176
|
+
*/
|
|
177
|
+
identifier?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The schema property `identifier` came from, so clients can reach the
|
|
180
|
+
* property's schema for semantics (a mailto link, a field label)
|
|
181
|
+
* instead of guessing from the value. Present exactly when
|
|
182
|
+
* `identifier` is.
|
|
183
|
+
*/
|
|
184
|
+
identifier_property?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The `x-display` rendering: the designated properties' values joined
|
|
187
|
+
* in list order. It is for display only and names no source.
|
|
188
|
+
* Absent when the schema designates no display properties or the user
|
|
189
|
+
* carries no values for them.
|
|
190
|
+
*/
|
|
191
|
+
display?: string;
|
|
192
|
+
} | null;
|
|
121
193
|
}) & {
|
|
122
194
|
type: 'team_member';
|
|
123
195
|
/** Type-specific input for a `team_member` invitation. */
|
|
@@ -15,8 +15,8 @@ export type CreateInvitationBody = {
|
|
|
15
15
|
/**
|
|
16
16
|
* What the administrator entered at creation, so other administrators know who
|
|
17
17
|
* the link is for. It is only displayed, never matched. Null once the
|
|
18
|
-
* invitation is accepted
|
|
19
|
-
* moves it to the new invitation unless that sends its own.
|
|
18
|
+
* invitation is accepted; a declined one keeps it. Cancel deletes the row with
|
|
19
|
+
* it; replace moves it to the new invitation unless that sends its own.
|
|
20
20
|
*/
|
|
21
21
|
metadata?: {
|
|
22
22
|
/**
|
|
@@ -43,8 +43,8 @@ export type CreateInvitationBody = {
|
|
|
43
43
|
/**
|
|
44
44
|
* What the administrator entered at creation, so other administrators know who
|
|
45
45
|
* the link is for. It is only displayed, never matched. Null once the
|
|
46
|
-
* invitation is accepted
|
|
47
|
-
* moves it to the new invitation unless that sends its own.
|
|
46
|
+
* invitation is accepted; a declined one keeps it. Cancel deletes the row with
|
|
47
|
+
* it; replace moves it to the new invitation unless that sends its own.
|
|
48
48
|
*/
|
|
49
49
|
metadata?: {
|
|
50
50
|
/**
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateInvitationParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateReleaseParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateTeamParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,27 +7,27 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type CreateUserParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
team_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Adds the new user to this team: creating the user also creates an
|
|
19
|
+
* active membership in it. Omit it to create a user with no memberships.
|
|
20
|
+
* Use the `id` that `createTeam` (`POST /teams`) returns or `queryTeams` (`POST /teams/query`) lists.
|
|
21
|
+
*
|
|
22
|
+
* This is team membership, not lifecycle ownership. It does not decide
|
|
23
|
+
* who may deprovision the user, and the created user stays self-owned
|
|
24
|
+
* either way. The owning team is reported on reads as
|
|
25
|
+
* `metadata.lifecycle_owner_team_id` and cannot be set through this API.
|
|
26
|
+
*
|
|
27
|
+
* The team also scopes team-unique attributes for this create: an
|
|
28
|
+
* attribute the schema marks unique per team is checked against this
|
|
29
|
+
* team's members.
|
|
30
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
31
|
+
*/
|
|
32
|
+
team_id?: string;
|
|
33
33
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type DeleteGrantParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
import type { DeleteVariableKind } from './deleteVariableKind.ts';
|
|
9
9
|
|
|
10
10
|
export type DeleteVariableParams = {
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
project_id: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
kind?: DeleteVariableKind;
|
|
11
|
+
/**
|
|
12
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
13
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
14
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
15
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
16
|
+
*/
|
|
17
|
+
project_id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Which deployments a value reaches: `primary` for primary origins,
|
|
20
|
+
* `preview` for preview URLs. There is no fallback between kinds.
|
|
21
|
+
*/
|
|
22
|
+
kind?: DeleteVariableKind;
|
|
23
23
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type EvaluatePolicyParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type ExchangeHandoffParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetApplicationParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
12
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
13
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
14
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
15
|
+
*/
|
|
16
|
+
project_id: string;
|
|
17
17
|
};
|