@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
|
@@ -305,7 +305,7 @@ export type ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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 ListEvents200EventsItem = ({
|
|
|
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;
|
|
@@ -10,109 +10,87 @@ import type { ListEventsOrder } from './listEventsOrder.ts';
|
|
|
10
10
|
import type { ListEventsStatusClassItem } from './listEventsStatusClassItem.ts';
|
|
11
11
|
|
|
12
12
|
export type ListEventsParams = {
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
project_id: string;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
category?: ListEventsCategoryItem[];
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
event_type?: string[];
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Exclusive upper bound on `created_at` (RFC 3339).
|
|
98
|
-
*/
|
|
99
|
-
created_before?: string;
|
|
100
|
-
/**
|
|
101
|
-
* The sort direction, by `created_at` and then `id`. The default `desc`
|
|
102
|
-
* lists the newest event first; `asc` lists the oldest first.
|
|
103
|
-
*/
|
|
104
|
-
order?: ListEventsOrder;
|
|
105
|
-
/**
|
|
106
|
-
* Token for fetching the next page of results.
|
|
107
|
-
* Obtain this value from `next_page_token` in the previous response.
|
|
108
|
-
* Omit to start from the beginning.
|
|
109
|
-
* Its format is opaque and may change between releases.
|
|
110
|
-
*/
|
|
111
|
-
page_token?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Maximum number of items to return.
|
|
114
|
-
* @minimum 1
|
|
115
|
-
* @maximum 100
|
|
116
|
-
*/
|
|
117
|
-
limit?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
15
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
16
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
17
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
18
|
+
*/
|
|
19
|
+
project_id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Only events of this category. Repeat the parameter to match any of
|
|
22
|
+
* several categories.
|
|
23
|
+
*/
|
|
24
|
+
category?: ListEventsCategoryItem[];
|
|
25
|
+
/**
|
|
26
|
+
* Only events with exactly this `event_type`. Repeat the parameter to
|
|
27
|
+
* match any of several types.
|
|
28
|
+
*/
|
|
29
|
+
event_type?: string[];
|
|
30
|
+
/** Only events triggered by this actor ID. */
|
|
31
|
+
actor_id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Only events that concern this user ID, whoever triggered them: the
|
|
34
|
+
* user's sign-ins, sessions and credentials, and the changes made to
|
|
35
|
+
* the user. Events recorded by a server version before this filter
|
|
36
|
+
* existed are not matched; they leave the list as retention removes
|
|
37
|
+
* them.
|
|
38
|
+
*/
|
|
39
|
+
user_id?: string;
|
|
40
|
+
/** Only events produced by this application or agent. */
|
|
41
|
+
client_id?: string;
|
|
42
|
+
/** Only events of this session ID. */
|
|
43
|
+
session_id?: string;
|
|
44
|
+
/** Only events of this login flow ID. */
|
|
45
|
+
flow_id?: string;
|
|
46
|
+
/** Only events of this HTTP request ID. */
|
|
47
|
+
request_id?: string;
|
|
48
|
+
/** Only events with this device fingerprint ID. */
|
|
49
|
+
fingerprint?: string;
|
|
50
|
+
/** Only events that affected this type of resource, such as `user`. */
|
|
51
|
+
entity_type?: string;
|
|
52
|
+
/** Only events that affected the resource with this ID. */
|
|
53
|
+
entity_id?: string;
|
|
54
|
+
/** Only events emitted under this team, as stored on the event. */
|
|
55
|
+
team_id?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Only `request.api` events of this API operation, the
|
|
58
|
+
* `payload.operation_id` they record, such as `createUser`. Repeat the
|
|
59
|
+
* parameter to match any of up to 10 operations. Requests recorded by a
|
|
60
|
+
* server version before this filter existed are not matched; they leave
|
|
61
|
+
* the list as retention removes them.
|
|
62
|
+
* @maxItems 10
|
|
63
|
+
*/
|
|
64
|
+
operation_id?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Only `request.api` events whose response status, the `payload.status`
|
|
67
|
+
* they record, is in this class: `4xx` is 400 to 499. Repeat the
|
|
68
|
+
* parameter to match any of several classes: `4xx` and `5xx` are the
|
|
69
|
+
* failed requests. Requests recorded by a server version before this
|
|
70
|
+
* filter existed are not matched; they leave the list as retention
|
|
71
|
+
* removes them.
|
|
72
|
+
*/
|
|
73
|
+
status_class?: ListEventsStatusClassItem[];
|
|
74
|
+
/** Inclusive lower bound on `created_at` (RFC 3339). */
|
|
75
|
+
created_after?: string;
|
|
76
|
+
/** Exclusive upper bound on `created_at` (RFC 3339). */
|
|
77
|
+
created_before?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The sort direction, by `created_at` and then `id`. The default `desc`
|
|
80
|
+
* lists the newest event first; `asc` lists the oldest first.
|
|
81
|
+
*/
|
|
82
|
+
order?: ListEventsOrder;
|
|
83
|
+
/**
|
|
84
|
+
* Token for fetching the next page of results.
|
|
85
|
+
* Obtain this value from `next_page_token` in the previous response.
|
|
86
|
+
* Omit to start from the beginning.
|
|
87
|
+
* Its format is opaque and may change between releases.
|
|
88
|
+
*/
|
|
89
|
+
page_token?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Maximum number of items to return.
|
|
92
|
+
* @minimum 1
|
|
93
|
+
* @maximum 100
|
|
94
|
+
*/
|
|
95
|
+
limit?: number;
|
|
118
96
|
};
|
|
@@ -10,52 +10,48 @@ import type { ListFlowDefinitionsPurpose } from './listFlowDefinitionsPurpose.ts
|
|
|
10
10
|
import type { ListFlowDefinitionsRevisions } from './listFlowDefinitionsRevisions.ts';
|
|
11
11
|
|
|
12
12
|
export type ListFlowDefinitionsParams = {
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
limit?: number;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
page_token?: string;
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
project_id: string;
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Related entities to embed on each returned flow definition.
|
|
59
|
-
*/
|
|
60
|
-
expand?: ListFlowDefinitionsExpandItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of items to return.
|
|
15
|
+
* @minimum 1
|
|
16
|
+
* @maximum 100
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Token for fetching the next page of results.
|
|
21
|
+
* Obtain this value from `next_page_token` in the previous response.
|
|
22
|
+
* Omit to start from the beginning.
|
|
23
|
+
* Its format is opaque and may change between releases.
|
|
24
|
+
*/
|
|
25
|
+
page_token?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints
|
|
28
|
+
* it as "Project id" in its summary and as `project_id` with `--json`, and
|
|
29
|
+
* writes it to `.env.local` as `ZITADEL_PROJECT_ID`.
|
|
30
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
31
|
+
*/
|
|
32
|
+
project_id: string;
|
|
33
|
+
/** Only flow definitions with this purpose, for example `login`. */
|
|
34
|
+
purpose?: ListFlowDefinitionsPurpose;
|
|
35
|
+
/**
|
|
36
|
+
* The flow name to filter by. Every revision of a flow shares its
|
|
37
|
+
* `name`, so the result is that flow's revisions, newest by creation
|
|
38
|
+
* time first.
|
|
39
|
+
* @pattern ^[a-z][a-z0-9-]*$
|
|
40
|
+
*/
|
|
41
|
+
name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Which revisions to return. Every revision of a flow shares its
|
|
44
|
+
* `name`, so publishing a definition under an existing `name` adds a new
|
|
45
|
+
* revision.
|
|
46
|
+
*
|
|
47
|
+
* `all` (the default) returns every revision: the full history an
|
|
48
|
+
* export, an audit or a GitOps diff needs. `latest` returns the newest
|
|
49
|
+
* revision of each `name`, which is one entry per flow.
|
|
50
|
+
*
|
|
51
|
+
* A `page_token` is bound to the mode it was issued in and is rejected by
|
|
52
|
+
* the other.
|
|
53
|
+
*/
|
|
54
|
+
revisions?: ListFlowDefinitionsRevisions;
|
|
55
|
+
/** Related entities to embed on each returned flow definition. */
|
|
56
|
+
expand?: ListFlowDefinitionsExpandItem[];
|
|
61
57
|
};
|
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type ListIdpRevisionsParams = {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
project_id: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
limit?: number;
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
page_token?: 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
|
+
* Maximum number of items to return.
|
|
19
|
+
* @minimum 1
|
|
20
|
+
* @maximum 100
|
|
21
|
+
*/
|
|
22
|
+
limit?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Token for fetching the next page of results.
|
|
25
|
+
* Obtain this value from `next_page_token` in the previous response.
|
|
26
|
+
* Omit to start from the beginning.
|
|
27
|
+
* Its format is opaque and may change between releases.
|
|
28
|
+
*/
|
|
29
|
+
page_token?: string;
|
|
30
30
|
};
|