@zitadel/api 0.7.0 → 0.9.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-ConF3NN2.mjs} +14 -2
- package/dist/api-factory-ConF3NN2.mjs.map +1 -0
- package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DOg9w_Du.d.mts} +8 -3
- package/dist/api-factory-DOg9w_Du.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 +607 -194
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +801 -359
- 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-DsPFGqLs.mjs → zitadelNextGen-CVFzR-dx.mjs} +154 -570
- package/dist/zitadelNextGen-CVFzR-dx.mjs.map +1 -0
- package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-tszErftX.d.mts} +78 -32
- package/dist/zitadelNextGen-tszErftX.d.mts.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 +222 -748
- package/src/generated/endpoints/zitadelNextGen.zod.ts +687 -324
- 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
|
@@ -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 GetAuthAttempt200ChallengesItemPayload = { [key: string]:
|
|
15
|
+
export type GetAuthAttempt200ChallengesItemPayload = { [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 GetDeploymentParams = {
|
|
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
|
};
|
|
@@ -305,7 +305,7 @@ export type GetEvent200 = ({
|
|
|
305
305
|
* Empty payload for event types with no typed fields, for example
|
|
306
306
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
307
307
|
*/
|
|
308
|
-
payload: { [key: string]:
|
|
308
|
+
payload: { [key: string]: never };
|
|
309
309
|
} | ({
|
|
310
310
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
311
311
|
id: string;
|
|
@@ -395,7 +395,7 @@ export type GetEvent200 = ({
|
|
|
395
395
|
* Empty payload for event types with no typed fields, for example
|
|
396
396
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
397
397
|
*/
|
|
398
|
-
payload: { [key: string]:
|
|
398
|
+
payload: { [key: string]: never };
|
|
399
399
|
} | ({
|
|
400
400
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
401
401
|
id: string;
|
|
@@ -770,6 +770,95 @@ export type GetEvent200 = ({
|
|
|
770
770
|
user_id: string;
|
|
771
771
|
factor_id?: string;
|
|
772
772
|
};
|
|
773
|
+
} | ({
|
|
774
|
+
/** The event ID, in the form `evt_<opaque>`. */
|
|
775
|
+
id: string;
|
|
776
|
+
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
777
|
+
project_id: string;
|
|
778
|
+
/** The team the actor operated under when the event was emitted, if any. */
|
|
779
|
+
team_id?: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* The event type, dot-separated, for example `user.created`. It says which
|
|
782
|
+
* `payload` the event carries.
|
|
783
|
+
*/
|
|
784
|
+
event_type: string;
|
|
785
|
+
/** The category of the event. */
|
|
786
|
+
category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
|
|
787
|
+
/** When the action happened, on the server's clock, to the millisecond. */
|
|
788
|
+
occurred_at: string;
|
|
789
|
+
/** When the event was stored, on the server's clock, to the millisecond. */
|
|
790
|
+
created_at: string;
|
|
791
|
+
/** The ID of the actor that triggered the event. */
|
|
792
|
+
actor_id?: string | null;
|
|
793
|
+
/** The kind of actor that triggered the event. */
|
|
794
|
+
actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
|
|
795
|
+
/** The type of resource the event affected. */
|
|
796
|
+
entity_type?: string | null;
|
|
797
|
+
/** The ID of the resource the event affected. */
|
|
798
|
+
entity_id?: string | null;
|
|
799
|
+
/**
|
|
800
|
+
* The ID of the user the event concerns, whoever triggered it: the user a
|
|
801
|
+
* session, a token, a sign-in check or a credential belongs to, or the
|
|
802
|
+
* user a change was made to. Absent on an event that concerns no user.
|
|
803
|
+
*/
|
|
804
|
+
user_id?: string | null;
|
|
805
|
+
/** The application or agent that produced the event. */
|
|
806
|
+
client_id: string;
|
|
807
|
+
/** The ID of the token in use when the event was emitted, when there was one. */
|
|
808
|
+
token_id?: string;
|
|
809
|
+
/** The kind of delegation. Absent when unset. */
|
|
810
|
+
delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
|
|
811
|
+
delegation_id?: string;
|
|
812
|
+
grantor?: string;
|
|
813
|
+
/** A device fingerprint ID that correlates events from the same device. */
|
|
814
|
+
fingerprint?: string;
|
|
815
|
+
/**
|
|
816
|
+
* The ID of the HTTP request that caused the event. Events of one request
|
|
817
|
+
* share it. Only the `request.api` event of a request carries
|
|
818
|
+
* `metadata.client`.
|
|
819
|
+
*/
|
|
820
|
+
request_id?: string | null;
|
|
821
|
+
/** The ID of the session the event belongs to. */
|
|
822
|
+
session_id?: string | null;
|
|
823
|
+
/** An ID that correlates the events of one login flow. */
|
|
824
|
+
flow_id?: string | null;
|
|
825
|
+
/**
|
|
826
|
+
* Metadata the server records when it emits the event, already redacted when
|
|
827
|
+
* written. An event from an API request (`request.api`) may set `client`
|
|
828
|
+
* (`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is
|
|
829
|
+
* not a live risk-evaluator input.
|
|
830
|
+
*/
|
|
831
|
+
metadata?: {
|
|
832
|
+
/**
|
|
833
|
+
* What authorized the request, when it was not a grant on the event's
|
|
834
|
+
* project. Every event of such a request carries it.
|
|
835
|
+
*/
|
|
836
|
+
authorization?: {
|
|
837
|
+
/**
|
|
838
|
+
* `platform_operator`: the deployment's platform operator relation,
|
|
839
|
+
* which administers every project.
|
|
840
|
+
*/
|
|
841
|
+
path: 'platform_operator';
|
|
842
|
+
/** The project the actor's user belongs to. */
|
|
843
|
+
actor_home_project_id?: string;
|
|
844
|
+
};
|
|
845
|
+
/** The observed HTTP requestor context, set only on events from an API request (`request.api`). */
|
|
846
|
+
client?: {
|
|
847
|
+
/** The client IP, from the first `X-Forwarded-For` hop or the remote address. */
|
|
848
|
+
ip?: string;
|
|
849
|
+
/** The observed `User-Agent` header. */
|
|
850
|
+
user_agent?: string;
|
|
851
|
+
/** The `Origin` header, when present. */
|
|
852
|
+
origin?: string;
|
|
853
|
+
};
|
|
854
|
+
[key: string]: unknown;
|
|
855
|
+
};
|
|
856
|
+
}) & {
|
|
857
|
+
event_type: 'auth.request.created';
|
|
858
|
+
/** Payload for `auth.request.created` events. */
|
|
859
|
+
payload: {
|
|
860
|
+
client_id: string;
|
|
861
|
+
};
|
|
773
862
|
} | ({
|
|
774
863
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
775
864
|
id: string;
|
|
@@ -1239,7 +1328,7 @@ export type GetEvent200 = ({
|
|
|
1239
1328
|
* Empty payload for event types with no typed fields, for example
|
|
1240
1329
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
1241
1330
|
*/
|
|
1242
|
-
payload: { [key: string]:
|
|
1331
|
+
payload: { [key: string]: never };
|
|
1243
1332
|
} | ({
|
|
1244
1333
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
1245
1334
|
id: string;
|
|
@@ -1703,7 +1792,7 @@ export type GetEvent200 = ({
|
|
|
1703
1792
|
* Empty payload for event types with no typed fields, for example
|
|
1704
1793
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
1705
1794
|
*/
|
|
1706
|
-
payload: { [key: string]:
|
|
1795
|
+
payload: { [key: string]: never };
|
|
1707
1796
|
} | ({
|
|
1708
1797
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
1709
1798
|
id: string;
|
|
@@ -1793,7 +1882,7 @@ export type GetEvent200 = ({
|
|
|
1793
1882
|
* Empty payload for event types with no typed fields, for example
|
|
1794
1883
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
1795
1884
|
*/
|
|
1796
|
-
payload: { [key: string]:
|
|
1885
|
+
payload: { [key: string]: never };
|
|
1797
1886
|
} | ({
|
|
1798
1887
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
1799
1888
|
id: string;
|
|
@@ -1982,7 +2071,7 @@ export type GetEvent200 = ({
|
|
|
1982
2071
|
* Empty payload for event types with no typed fields, for example
|
|
1983
2072
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
1984
2073
|
*/
|
|
1985
|
-
payload: { [key: string]:
|
|
2074
|
+
payload: { [key: string]: never };
|
|
1986
2075
|
} | ({
|
|
1987
2076
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
1988
2077
|
id: string;
|
|
@@ -2821,6 +2910,99 @@ export type GetEvent200 = ({
|
|
|
2821
2910
|
journey_id: string;
|
|
2822
2911
|
user_id: string;
|
|
2823
2912
|
};
|
|
2913
|
+
} | ({
|
|
2914
|
+
/** The event ID, in the form `evt_<opaque>`. */
|
|
2915
|
+
id: string;
|
|
2916
|
+
/** @pattern ^[a-zA-Z0-9_-]+$ */
|
|
2917
|
+
project_id: string;
|
|
2918
|
+
/** The team the actor operated under when the event was emitted, if any. */
|
|
2919
|
+
team_id?: string | null;
|
|
2920
|
+
/**
|
|
2921
|
+
* The event type, dot-separated, for example `user.created`. It says which
|
|
2922
|
+
* `payload` the event carries.
|
|
2923
|
+
*/
|
|
2924
|
+
event_type: string;
|
|
2925
|
+
/** The category of the event. */
|
|
2926
|
+
category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
|
|
2927
|
+
/** When the action happened, on the server's clock, to the millisecond. */
|
|
2928
|
+
occurred_at: string;
|
|
2929
|
+
/** When the event was stored, on the server's clock, to the millisecond. */
|
|
2930
|
+
created_at: string;
|
|
2931
|
+
/** The ID of the actor that triggered the event. */
|
|
2932
|
+
actor_id?: string | null;
|
|
2933
|
+
/** The kind of actor that triggered the event. */
|
|
2934
|
+
actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
|
|
2935
|
+
/** The type of resource the event affected. */
|
|
2936
|
+
entity_type?: string | null;
|
|
2937
|
+
/** The ID of the resource the event affected. */
|
|
2938
|
+
entity_id?: string | null;
|
|
2939
|
+
/**
|
|
2940
|
+
* The ID of the user the event concerns, whoever triggered it: the user a
|
|
2941
|
+
* session, a token, a sign-in check or a credential belongs to, or the
|
|
2942
|
+
* user a change was made to. Absent on an event that concerns no user.
|
|
2943
|
+
*/
|
|
2944
|
+
user_id?: string | null;
|
|
2945
|
+
/** The application or agent that produced the event. */
|
|
2946
|
+
client_id: string;
|
|
2947
|
+
/** The ID of the token in use when the event was emitted, when there was one. */
|
|
2948
|
+
token_id?: string;
|
|
2949
|
+
/** The kind of delegation. Absent when unset. */
|
|
2950
|
+
delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
|
|
2951
|
+
delegation_id?: string;
|
|
2952
|
+
grantor?: string;
|
|
2953
|
+
/** A device fingerprint ID that correlates events from the same device. */
|
|
2954
|
+
fingerprint?: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* The ID of the HTTP request that caused the event. Events of one request
|
|
2957
|
+
* share it. Only the `request.api` event of a request carries
|
|
2958
|
+
* `metadata.client`.
|
|
2959
|
+
*/
|
|
2960
|
+
request_id?: string | null;
|
|
2961
|
+
/** The ID of the session the event belongs to. */
|
|
2962
|
+
session_id?: string | null;
|
|
2963
|
+
/** An ID that correlates the events of one login flow. */
|
|
2964
|
+
flow_id?: string | null;
|
|
2965
|
+
/**
|
|
2966
|
+
* Metadata the server records when it emits the event, already redacted when
|
|
2967
|
+
* written. An event from an API request (`request.api`) may set `client`
|
|
2968
|
+
* (`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is
|
|
2969
|
+
* not a live risk-evaluator input.
|
|
2970
|
+
*/
|
|
2971
|
+
metadata?: {
|
|
2972
|
+
/**
|
|
2973
|
+
* What authorized the request, when it was not a grant on the event's
|
|
2974
|
+
* project. Every event of such a request carries it.
|
|
2975
|
+
*/
|
|
2976
|
+
authorization?: {
|
|
2977
|
+
/**
|
|
2978
|
+
* `platform_operator`: the deployment's platform operator relation,
|
|
2979
|
+
* which administers every project.
|
|
2980
|
+
*/
|
|
2981
|
+
path: 'platform_operator';
|
|
2982
|
+
/** The project the actor's user belongs to. */
|
|
2983
|
+
actor_home_project_id?: string;
|
|
2984
|
+
};
|
|
2985
|
+
/** The observed HTTP requestor context, set only on events from an API request (`request.api`). */
|
|
2986
|
+
client?: {
|
|
2987
|
+
/** The client IP, from the first `X-Forwarded-For` hop or the remote address. */
|
|
2988
|
+
ip?: string;
|
|
2989
|
+
/** The observed `User-Agent` header. */
|
|
2990
|
+
user_agent?: string;
|
|
2991
|
+
/** The `Origin` header, when present. */
|
|
2992
|
+
origin?: string;
|
|
2993
|
+
};
|
|
2994
|
+
[key: string]: unknown;
|
|
2995
|
+
};
|
|
2996
|
+
}) & {
|
|
2997
|
+
event_type: 'oauth_settings.created';
|
|
2998
|
+
/**
|
|
2999
|
+
* Payload for `oauth_settings.created`: the settings the new revision holds.
|
|
3000
|
+
* The revision id is the event's `entity_id`.
|
|
3001
|
+
*/
|
|
3002
|
+
payload: {
|
|
3003
|
+
/** Whether the project's OAuth authorization server answers. */
|
|
3004
|
+
enabled: boolean;
|
|
3005
|
+
};
|
|
2824
3006
|
} | ({
|
|
2825
3007
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
2826
3008
|
id: string;
|
|
@@ -3288,7 +3470,7 @@ export type GetEvent200 = ({
|
|
|
3288
3470
|
* Empty payload for event types with no typed fields, for example
|
|
3289
3471
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
3290
3472
|
*/
|
|
3291
|
-
payload: { [key: string]:
|
|
3473
|
+
payload: { [key: string]: never };
|
|
3292
3474
|
} | ({
|
|
3293
3475
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
3294
3476
|
id: string;
|
|
@@ -3488,7 +3670,7 @@ export type GetEvent200 = ({
|
|
|
3488
3670
|
* Empty payload for event types with no typed fields, for example
|
|
3489
3671
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
3490
3672
|
*/
|
|
3491
|
-
payload: { [key: string]:
|
|
3673
|
+
payload: { [key: string]: never };
|
|
3492
3674
|
} | ({
|
|
3493
3675
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
3494
3676
|
id: string;
|
|
@@ -4393,7 +4575,7 @@ export type GetEvent200 = ({
|
|
|
4393
4575
|
* Empty payload for event types with no typed fields, for example
|
|
4394
4576
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
4395
4577
|
*/
|
|
4396
|
-
payload: { [key: string]:
|
|
4578
|
+
payload: { [key: string]: never };
|
|
4397
4579
|
} | ({
|
|
4398
4580
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
4399
4581
|
id: string;
|
|
@@ -4759,7 +4941,7 @@ export type GetEvent200 = ({
|
|
|
4759
4941
|
* Empty payload for event types with no typed fields, for example
|
|
4760
4942
|
* `project.deleted`, `user.deleted` and `session.expired`.
|
|
4761
4943
|
*/
|
|
4762
|
-
payload: { [key: string]:
|
|
4944
|
+
payload: { [key: string]: never };
|
|
4763
4945
|
} | ({
|
|
4764
4946
|
/** The event ID, in the form `evt_<opaque>`. */
|
|
4765
4947
|
id: string;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetEventParams = {
|
|
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,17 +8,17 @@
|
|
|
8
8
|
import type { GetGrantExpandItem } from './getGrantExpandItem.ts';
|
|
9
9
|
|
|
10
10
|
export type GetGrantParams = {
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
project_id: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
expand?: GetGrantExpandItem[];
|
|
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
|
+
* Extra principal fields to add onto `user` or `team`. It takes the same
|
|
20
|
+
* values and needs the same `user.read` and `team.read` scopes as
|
|
21
|
+
* `POST /grants/query`.
|
|
22
|
+
*/
|
|
23
|
+
expand?: GetGrantExpandItem[];
|
|
24
24
|
};
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetIdpParams = {
|
|
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 GetIdpRevisionParams = {
|
|
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
|
};
|
|
@@ -21,8 +21,8 @@ export type GetInvitation200 = ({
|
|
|
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 GetInvitation200 = ({
|
|
|
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 GetInvitation200 = ({
|
|
|
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 GetInvitation200 = ({
|
|
|
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. */
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetInvitationParams = {
|
|
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,20 +7,20 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetMyPasswordStateParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
project_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project the caller signs its users in to. The cookie's session is used
|
|
12
|
+
* only when it belongs to this project; a session of any other project answers
|
|
13
|
+
* `403` with `sess.project_mismatch`.
|
|
14
|
+
*
|
|
15
|
+
* A session belongs to one project, while a browser sends its cookie to every
|
|
16
|
+
* app on the same host. An app passes its own project, so that a session of
|
|
17
|
+
* another project never reads or acts as one of its users, and signing out of
|
|
18
|
+
* the app never ends it. The SDKs pass it when they read the session or sign
|
|
19
|
+
* out.
|
|
20
|
+
*
|
|
21
|
+
* `sess.project_mismatch` does not mean the session is invalid: it is live in
|
|
22
|
+
* its own project, so keep its cookie.
|
|
23
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
24
|
+
*/
|
|
25
|
+
project_id?: string;
|
|
26
26
|
};
|
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetMySessionCsrfTokenParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
project_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project the caller signs its users in to. The cookie's session is used
|
|
12
|
+
* only when it belongs to this project; a session of any other project answers
|
|
13
|
+
* `403` with `sess.project_mismatch`.
|
|
14
|
+
*
|
|
15
|
+
* A session belongs to one project, while a browser sends its cookie to every
|
|
16
|
+
* app on the same host. An app passes its own project, so that a session of
|
|
17
|
+
* another project never reads or acts as one of its users, and signing out of
|
|
18
|
+
* the app never ends it. The SDKs pass it when they read the session or sign
|
|
19
|
+
* out.
|
|
20
|
+
*
|
|
21
|
+
* `sess.project_mismatch` does not mean the session is invalid: it is live in
|
|
22
|
+
* its own project, so keep its cookie.
|
|
23
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
24
|
+
*/
|
|
25
|
+
project_id?: string;
|
|
26
26
|
};
|
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type GetMySessionParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
project_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The project the caller signs its users in to. The cookie's session is used
|
|
12
|
+
* only when it belongs to this project; a session of any other project answers
|
|
13
|
+
* `403` with `sess.project_mismatch`.
|
|
14
|
+
*
|
|
15
|
+
* A session belongs to one project, while a browser sends its cookie to every
|
|
16
|
+
* app on the same host. An app passes its own project, so that a session of
|
|
17
|
+
* another project never reads or acts as one of its users, and signing out of
|
|
18
|
+
* the app never ends it. The SDKs pass it when they read the session or sign
|
|
19
|
+
* out.
|
|
20
|
+
*
|
|
21
|
+
* `sess.project_mismatch` does not mean the session is invalid: it is live in
|
|
22
|
+
* its own project, so keep its cookie.
|
|
23
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
24
|
+
*/
|
|
25
|
+
project_id?: string;
|
|
26
26
|
};
|