@zitadel/api 0.3.0 → 0.4.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/README.md +17 -3
- package/dist/api-factory-C5b1Gqwv.mjs +357 -0
- package/dist/api-factory-C5b1Gqwv.mjs.map +1 -0
- package/dist/api-factory-Dt5lUjyu.d.mts +212 -0
- package/dist/api-factory-Dt5lUjyu.d.mts.map +1 -0
- package/dist/{fetch-CtYe0OvX.d.mts → fetch-B-lgjlrf.d.mts} +22 -12
- package/dist/fetch-B-lgjlrf.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +1 -1
- package/dist/generated/endpoints/zitadelNextGen.mjs +129 -122
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +33 -26
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +33 -26
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/operations.mjs +1 -1
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-DAm3tCA7.d.mts → index-DGQY1rfH.d.mts} +66 -4
- package/dist/index-DGQY1rfH.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +2 -51
- package/dist/runtime/api-factory.mjs +3 -62
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/auth.mjs.map +1 -1
- package/dist/runtime/base-url.d.mts +14 -0
- package/dist/runtime/base-url.d.mts.map +1 -1
- package/dist/runtime/base-url.mjs +22 -1
- package/dist/runtime/base-url.mjs.map +1 -1
- package/dist/runtime/config.d.mts +1 -1
- package/dist/runtime/config.mjs +1 -1
- package/dist/runtime/fetch.d.mts +2 -2
- package/dist/runtime/fetch.mjs +41 -17
- package/dist/runtime/fetch.mjs.map +1 -1
- package/dist/runtime/paging.d.mts +35 -0
- package/dist/runtime/paging.d.mts.map +1 -0
- package/dist/runtime/paging.mjs +38 -0
- package/dist/runtime/paging.mjs.map +1 -0
- package/dist/{zitadelNextGen-B_VRpP2W.d.mts → zitadelNextGen-BVO4sdKD.d.mts} +37 -30
- package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +1 -0
- package/package.json +6 -1
- package/src/generated/endpoints/zitadelNextGen.ts +131 -124
- package/src/generated/endpoints/zitadelNextGen.zod.ts +33 -26
- package/src/generated/model/deleteUserByID409.ts +20 -0
- package/src/generated/model/deleteUserByID409Details.ts +12 -0
- package/src/generated/model/deleteUserByIDDefault.ts +9 -0
- package/src/generated/model/getFlowStepDefault.ts +9 -0
- package/src/generated/model/index.ts +2 -0
- package/src/generated/model/queryTeamsParams.ts +3 -2
- package/src/generated/model/submitFlowStepDefault.ts +9 -0
- package/src/generated/operations.ts +1 -1
- package/src/generated/paging.ts +128 -0
- package/src/runtime/api-factory.spec.ts +278 -0
- package/src/runtime/api-factory.ts +93 -12
- package/src/runtime/auth.ts +1 -1
- package/src/runtime/base-url.spec.ts +40 -4
- package/src/runtime/base-url.ts +28 -0
- package/src/runtime/fetch.spec.ts +51 -0
- package/src/runtime/fetch.ts +69 -30
- package/src/runtime/paged.spec.ts +104 -0
- package/src/runtime/paged.ts +61 -0
- package/src/runtime/paging.spec.ts +94 -0
- package/src/runtime/paging.ts +58 -0
- package/dist/fetch-CtYe0OvX.d.mts.map +0 -1
- package/dist/index-DAm3tCA7.d.mts.map +0 -1
- package/dist/runtime/api-factory.d.mts.map +0 -1
- package/dist/runtime/api-factory.mjs.map +0 -1
- package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +0 -1
|
@@ -11,9 +11,10 @@ import * as zod from 'zod';
|
|
|
11
11
|
/**
|
|
12
12
|
* Answers `ok` while the server process serves HTTP, and checks nothing behind it.
|
|
13
13
|
*
|
|
14
|
-
* Point a liveness probe
|
|
15
|
-
*
|
|
16
|
-
* instance
|
|
14
|
+
* Point a liveness probe at `/livez` at the root, where the probes stay,
|
|
15
|
+
* not under `/api/v1`. It never checks the database, so an outage of the
|
|
16
|
+
* database does not restart every instance; `GET /readyz` takes an instance
|
|
17
|
+
* out of rotation instead.
|
|
17
18
|
* @summary Check server liveness
|
|
18
19
|
*/
|
|
19
20
|
export const GetLiveResponse = zod.string()
|
|
@@ -22,9 +23,9 @@ export const GetLiveResponse = zod.string()
|
|
|
22
23
|
/**
|
|
23
24
|
* Answers whether the server can serve requests, which takes its database answering within a second.
|
|
24
25
|
*
|
|
25
|
-
* Point a readiness probe
|
|
26
|
-
*
|
|
27
|
-
* database.
|
|
26
|
+
* Point a readiness probe at `/readyz` at the root, where the probes stay,
|
|
27
|
+
* not under `/api/v1`, so that a server whose database does not answer gets
|
|
28
|
+
* no requests until it does. The check is one round trip to the database.
|
|
28
29
|
* @summary Check server readiness
|
|
29
30
|
*/
|
|
30
31
|
export const GetReadyResponse = zod.string()
|
|
@@ -96,8 +97,8 @@ export const CreateUserResponse = zod.object({
|
|
|
96
97
|
* project is listed.
|
|
97
98
|
*
|
|
98
99
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
99
|
-
* session cookie (`
|
|
100
|
-
* follow the scheme's CSRF rules (`
|
|
100
|
+
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
101
|
+
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
101
102
|
* @summary Query users
|
|
102
103
|
*/
|
|
103
104
|
export const queryUsersQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -282,7 +283,9 @@ export const PatchUserByIDResponse = zod.object({
|
|
|
282
283
|
* The user is removed, not deactivated, and the deletion emits `user.deleted`,
|
|
283
284
|
* plus `authz.revoked` for each grant on that grant's project.
|
|
284
285
|
* With a project secret the request is idempotent: deleting a user that exists
|
|
285
|
-
* in no project succeeds without changing anything.
|
|
286
|
+
* in no project succeeds without changing anything. Deleting the last active
|
|
287
|
+
* member of a project's owning team returns 409 `proj.last_owner` and changes
|
|
288
|
+
* nothing.
|
|
286
289
|
* @summary Delete user by ID
|
|
287
290
|
*/
|
|
288
291
|
export const deleteUserByIDPathUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
@@ -2329,7 +2332,7 @@ export const PatchProjectResponse = zod.object({
|
|
|
2329
2332
|
* Ordered by `user_id` and paginated with `page_token`.
|
|
2330
2333
|
*
|
|
2331
2334
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2332
|
-
* session cookie (`
|
|
2335
|
+
* session cookie (`sessionCookie`) that can read the project.
|
|
2333
2336
|
* @summary List project admins
|
|
2334
2337
|
*/
|
|
2335
2338
|
export const listProjectAdminsPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -2445,7 +2448,7 @@ export const GetClaimStatusResponse = zod.union([zod.object({
|
|
|
2445
2448
|
|
|
2446
2449
|
/**
|
|
2447
2450
|
* Called by the browser after the developer authenticates on the claim page.
|
|
2448
|
-
* Authenticated by the
|
|
2451
|
+
* Authenticated by the session cookie, it attaches the project to
|
|
2449
2452
|
* the developer's personal team using the `challenge_id` from the claim URL as
|
|
2450
2453
|
* its single-use, browser-safe authorization.
|
|
2451
2454
|
* @summary Complete a project claim
|
|
@@ -2633,8 +2636,9 @@ export const RemovePreviewResponse = zod.void()
|
|
|
2633
2636
|
* Creating a session is an app-plane operation on the project credential
|
|
2634
2637
|
* (`session.write`). The returned `session_token` is a session credential for the
|
|
2635
2638
|
* end-user client, not a management scope: it is delivered as the
|
|
2636
|
-
* `
|
|
2637
|
-
*
|
|
2639
|
+
* `__Host-zitadel_session` cookie (`zitadel_session` over plain http to a
|
|
2640
|
+
* loopback host) and authorises the self-service operations
|
|
2641
|
+
* `GET /sessions/me` and `DELETE /sessions/me` (`sessionCookie` scheme). The
|
|
2638
2642
|
* by-id operations `GET /sessions/{session_id}` and `DELETE /sessions/{session_id}`
|
|
2639
2643
|
* are operator endpoints and require `session.read` / `session.delete` instead.
|
|
2640
2644
|
*
|
|
@@ -2944,8 +2948,8 @@ export const GetSessionResponse = zod.object({
|
|
|
2944
2948
|
* Permanently deletes the session, terminating it immediately.
|
|
2945
2949
|
*
|
|
2946
2950
|
* This is the operator revoke path and requires the `session.delete` scope on a
|
|
2947
|
-
* project-bound credential. End-user logout with the
|
|
2948
|
-
* `DELETE /sessions/me` (`
|
|
2951
|
+
* project-bound credential. End-user logout with the session cookie is
|
|
2952
|
+
* `DELETE /sessions/me` (`sessionCookie` scheme).
|
|
2949
2953
|
*
|
|
2950
2954
|
* Idempotent: deleting a session that does not exist (or was already deleted)
|
|
2951
2955
|
* still returns 204. After deletion, any tokens derived from the session are
|
|
@@ -3029,7 +3033,7 @@ export const GetMySessionResponse = zod.object({
|
|
|
3029
3033
|
/**
|
|
3030
3034
|
* Logs out by permanently deleting the session.
|
|
3031
3035
|
*
|
|
3032
|
-
* The
|
|
3036
|
+
* The session cookie issued at creation (or superseded by a handoff
|
|
3033
3037
|
* exchange) is required, with the session's token from `GET /sessions/me/csrf`
|
|
3034
3038
|
* in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone
|
|
3035
3039
|
* this still returns 204. Any tokens derived from the session are invalidated,
|
|
@@ -3053,7 +3057,7 @@ export const RevokeMySessionResponse = zod.void()
|
|
|
3053
3057
|
* Returns the session-bound token for cross-site request forgery protection
|
|
3054
3058
|
* (ADR 053 §5). Browser code sends it in the `X-Zitadel-CSRF` header on the
|
|
3055
3059
|
* state-changing requests the session cookie authenticates that require it
|
|
3056
|
-
* — see the `
|
|
3060
|
+
* — see the `sessionCookie` scheme. It authorizes nothing on its own: the
|
|
3057
3061
|
* HttpOnly cookie is still the credential, and a cross-site page cannot
|
|
3058
3062
|
* read this response. It stays the same for the life of the session, so a
|
|
3059
3063
|
* client fetches it once per session.
|
|
@@ -3765,13 +3769,16 @@ export const CreateTeamResponse = zod.object({
|
|
|
3765
3769
|
|
|
3766
3770
|
/**
|
|
3767
3771
|
* Returns the teams of a project, paginated with a cursor.
|
|
3772
|
+
*
|
|
3773
|
+
* `project_id` names the project to list; without it, the credential's own
|
|
3774
|
+
* project is listed.
|
|
3768
3775
|
* @summary Query teams
|
|
3769
3776
|
*/
|
|
3770
3777
|
export const queryTeamsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
3771
3778
|
|
|
3772
3779
|
|
|
3773
3780
|
export const QueryTeamsQueryParams = zod.strictObject({
|
|
3774
|
-
"project_id": zod.string().regex(queryTeamsQueryProjectIdRegExp).describe('The
|
|
3781
|
+
"project_id": zod.string().regex(queryTeamsQueryProjectIdRegExp).optional().describe('The project the request addresses. Omit it to address the credential\'s own\nproject.\n')
|
|
3775
3782
|
})
|
|
3776
3783
|
|
|
3777
3784
|
export const queryTeamsBodyLimitDefault = 20;
|
|
@@ -6086,9 +6093,9 @@ export const RevokeReleaseResponse = zod.object({
|
|
|
6086
6093
|
* identifier and display.
|
|
6087
6094
|
*
|
|
6088
6095
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
6089
|
-
* session cookie (`
|
|
6096
|
+
* session cookie (`sessionCookie`). Session callers are authorized as
|
|
6090
6097
|
* the human against the target project (home may differ). Cookie-authenticated
|
|
6091
|
-
* requests follow the scheme's CSRF rules (`
|
|
6098
|
+
* requests follow the scheme's CSRF rules (`sessionCookie`).
|
|
6092
6099
|
* @summary Create grant
|
|
6093
6100
|
*/
|
|
6094
6101
|
export const createGrantQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -6175,8 +6182,8 @@ export const CreateGrantResponse = zod.object({
|
|
|
6175
6182
|
* the project Check may expand without those scopes.
|
|
6176
6183
|
*
|
|
6177
6184
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
6178
|
-
* session cookie (`
|
|
6179
|
-
* follow the scheme's CSRF rules (`
|
|
6185
|
+
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
6186
|
+
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
6180
6187
|
* @summary Query grants
|
|
6181
6188
|
*/
|
|
6182
6189
|
export const queryGrantsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -6267,8 +6274,8 @@ export const QueryGrantsResponse = zod.object({
|
|
|
6267
6274
|
* Check may expand without those scopes.
|
|
6268
6275
|
*
|
|
6269
6276
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
6270
|
-
* session cookie (`
|
|
6271
|
-
* follow the scheme's CSRF rules (`
|
|
6277
|
+
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
6278
|
+
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
6272
6279
|
* @summary Get grant
|
|
6273
6280
|
*/
|
|
6274
6281
|
export const GetGrantParams = zod.object({
|
|
@@ -6333,8 +6340,8 @@ export const GetGrantResponse = zod.object({
|
|
|
6333
6340
|
* revoked so the unique binding can be reused.
|
|
6334
6341
|
*
|
|
6335
6342
|
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
6336
|
-
* session cookie (`
|
|
6337
|
-
* follow the scheme's CSRF rules (`
|
|
6343
|
+
* session cookie (`sessionCookie`). Cookie-authenticated requests
|
|
6344
|
+
* follow the scheme's CSRF rules (`sessionCookie`).
|
|
6338
6345
|
* @summary Revoke grant
|
|
6339
6346
|
*/
|
|
6340
6347
|
export const DeleteGrantParams = zod.object({
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Zitadel NextGen
|
|
5
|
+
* This is the next generation of the Zitadel identity platform.
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
import type { DeleteUserByID409Details } from './deleteUserByID409Details.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Standard error payload returned for failed API requests.
|
|
12
|
+
*/
|
|
13
|
+
export type DeleteUserByID409 = {
|
|
14
|
+
/** Stable machine-readable error code. */
|
|
15
|
+
code: string;
|
|
16
|
+
/** Human-readable explanation of the error. */
|
|
17
|
+
message: string;
|
|
18
|
+
/** Additional error-specific context. */
|
|
19
|
+
details?: DeleteUserByID409Details;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Zitadel NextGen
|
|
5
|
+
* This is the next generation of the Zitadel identity platform.
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Additional error-specific context.
|
|
11
|
+
*/
|
|
12
|
+
export type DeleteUserByID409Details = { [key: string]: unknown };
|
|
@@ -58,6 +58,15 @@ export type DeleteUserByIDDefault = {
|
|
|
58
58
|
message: string;
|
|
59
59
|
/** Additional error-specific context. */
|
|
60
60
|
details?: { [key: string]: unknown };
|
|
61
|
+
} & {
|
|
62
|
+
code: 'proj.last_owner';
|
|
63
|
+
} | {
|
|
64
|
+
/** Stable machine-readable error code. */
|
|
65
|
+
code: string;
|
|
66
|
+
/** Human-readable explanation of the error. */
|
|
67
|
+
message: string;
|
|
68
|
+
/** Additional error-specific context. */
|
|
69
|
+
details?: { [key: string]: unknown };
|
|
61
70
|
} & {
|
|
62
71
|
code: 'req.invalid';
|
|
63
72
|
} | {
|
|
@@ -238,6 +238,15 @@ export type GetFlowStepDefault = {
|
|
|
238
238
|
message: string;
|
|
239
239
|
/** Additional error-specific context. */
|
|
240
240
|
details?: { [key: string]: unknown };
|
|
241
|
+
} & {
|
|
242
|
+
code: 'proj.last_owner';
|
|
243
|
+
} | {
|
|
244
|
+
/** Stable machine-readable error code. */
|
|
245
|
+
code: string;
|
|
246
|
+
/** Human-readable explanation of the error. */
|
|
247
|
+
message: string;
|
|
248
|
+
/** Additional error-specific context. */
|
|
249
|
+
details?: { [key: string]: unknown };
|
|
241
250
|
} & {
|
|
242
251
|
code: 'rel.not_found';
|
|
243
252
|
} | {
|
|
@@ -419,6 +419,8 @@ export * from './deleteUserByID401.ts';
|
|
|
419
419
|
export * from './deleteUserByID401Details.ts';
|
|
420
420
|
export * from './deleteUserByID404.ts';
|
|
421
421
|
export * from './deleteUserByID404Details.ts';
|
|
422
|
+
export * from './deleteUserByID409.ts';
|
|
423
|
+
export * from './deleteUserByID409Details.ts';
|
|
422
424
|
export * from './deleteUserByIDDefault.ts';
|
|
423
425
|
export * from './deleteVariableDefault.ts';
|
|
424
426
|
export * from './deleteVariableKind.ts';
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
export type QueryTeamsParams = {
|
|
10
10
|
/**
|
|
11
|
-
* The
|
|
11
|
+
* The project the request addresses. Omit it to address the credential's own
|
|
12
|
+
* project.
|
|
12
13
|
* @pattern ^[a-zA-Z0-9_-]+$
|
|
13
14
|
*/
|
|
14
|
-
project_id
|
|
15
|
+
project_id?: string;
|
|
15
16
|
};
|
|
@@ -238,6 +238,15 @@ export type SubmitFlowStepDefault = {
|
|
|
238
238
|
message: string;
|
|
239
239
|
/** Additional error-specific context. */
|
|
240
240
|
details?: { [key: string]: unknown };
|
|
241
|
+
} & {
|
|
242
|
+
code: 'proj.last_owner';
|
|
243
|
+
} | {
|
|
244
|
+
/** Stable machine-readable error code. */
|
|
245
|
+
code: string;
|
|
246
|
+
/** Human-readable explanation of the error. */
|
|
247
|
+
message: string;
|
|
248
|
+
/** Additional error-specific context. */
|
|
249
|
+
details?: { [key: string]: unknown };
|
|
241
250
|
} & {
|
|
242
251
|
code: 'proj.origin_not_allowed';
|
|
243
252
|
} | {
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// Code generated by packages/api/scripts/operations.ts from api/openapi. DO NOT EDIT: regenerate with moon run api:generate.
|
|
2
|
+
|
|
3
|
+
import type * as endpoints from "./endpoints/zitadelNextGen";
|
|
4
|
+
|
|
5
|
+
type Page<K extends keyof typeof endpoints> = Awaited<ReturnType<(typeof endpoints)[K]>>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The client functions that page (ADR 027), by name: a page's items and its
|
|
9
|
+
* cursor to the next one, each read off the page as the function's response
|
|
10
|
+
* type declares them, and the arguments that fetch the page a cursor names.
|
|
11
|
+
*/
|
|
12
|
+
export const paging = {
|
|
13
|
+
queryUsers: {
|
|
14
|
+
items: (page: Page<"queryUsers">) => page.users,
|
|
15
|
+
next: (page: Page<"queryUsers">) => page.next_page_token,
|
|
16
|
+
withToken: ([queryUsersBody, params, options]: Parameters<(typeof endpoints)["queryUsers"]>, page_token: string): Parameters<(typeof endpoints)["queryUsers"]> => [{ ...queryUsersBody, page_token }, params, options],
|
|
17
|
+
},
|
|
18
|
+
listUserIdentityLinks: {
|
|
19
|
+
items: (page: Page<"listUserIdentityLinks">) => page.identity_links,
|
|
20
|
+
next: (page: Page<"listUserIdentityLinks">) => page.next_page_token,
|
|
21
|
+
withToken: ([userId, params, options]: Parameters<(typeof endpoints)["listUserIdentityLinks"]>, page_token: string): Parameters<(typeof endpoints)["listUserIdentityLinks"]> => [userId, { ...params, page_token }, options],
|
|
22
|
+
},
|
|
23
|
+
listUserPasskeys: {
|
|
24
|
+
items: (page: Page<"listUserPasskeys">) => page.passkeys,
|
|
25
|
+
next: (page: Page<"listUserPasskeys">) => page.next_page_token,
|
|
26
|
+
withToken: ([userId, params, options]: Parameters<(typeof endpoints)["listUserPasskeys"]>, page_token: string): Parameters<(typeof endpoints)["listUserPasskeys"]> => [userId, { ...params, page_token }, options],
|
|
27
|
+
},
|
|
28
|
+
listUserTeams: {
|
|
29
|
+
items: (page: Page<"listUserTeams">) => page.teams,
|
|
30
|
+
next: (page: Page<"listUserTeams">) => page.next_page_token,
|
|
31
|
+
withToken: ([userId, params, options]: Parameters<(typeof endpoints)["listUserTeams"]>, page_token: string): Parameters<(typeof endpoints)["listUserTeams"]> => [userId, { ...params, page_token }, options],
|
|
32
|
+
},
|
|
33
|
+
listMyIdentityLinks: {
|
|
34
|
+
items: (page: Page<"listMyIdentityLinks">) => page.identity_links,
|
|
35
|
+
next: (page: Page<"listMyIdentityLinks">) => page.next_page_token,
|
|
36
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listMyIdentityLinks"]>, page_token: string): Parameters<(typeof endpoints)["listMyIdentityLinks"]> => [{ ...params, page_token }, options],
|
|
37
|
+
},
|
|
38
|
+
listMyPasskeys: {
|
|
39
|
+
items: (page: Page<"listMyPasskeys">) => page.passkeys,
|
|
40
|
+
next: (page: Page<"listMyPasskeys">) => page.next_page_token,
|
|
41
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listMyPasskeys"]>, page_token: string): Parameters<(typeof endpoints)["listMyPasskeys"]> => [{ ...params, page_token }, options],
|
|
42
|
+
},
|
|
43
|
+
listMyProjects: {
|
|
44
|
+
items: (page: Page<"listMyProjects">) => page.projects,
|
|
45
|
+
next: (page: Page<"listMyProjects">) => page.next_page_token,
|
|
46
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listMyProjects"]>, page_token: string): Parameters<(typeof endpoints)["listMyProjects"]> => [{ ...params, page_token }, options],
|
|
47
|
+
},
|
|
48
|
+
listMyTeams: {
|
|
49
|
+
items: (page: Page<"listMyTeams">) => page.teams,
|
|
50
|
+
next: (page: Page<"listMyTeams">) => page.next_page_token,
|
|
51
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listMyTeams"]>, page_token: string): Parameters<(typeof endpoints)["listMyTeams"]> => [{ ...params, page_token }, options],
|
|
52
|
+
},
|
|
53
|
+
queryProjects: {
|
|
54
|
+
items: (page: Page<"queryProjects">) => page.projects,
|
|
55
|
+
next: (page: Page<"queryProjects">) => page.next_page_token,
|
|
56
|
+
withToken: ([queryProjectsBody, options]: Parameters<(typeof endpoints)["queryProjects"]>, page_token: string): Parameters<(typeof endpoints)["queryProjects"]> => [{ ...queryProjectsBody, page_token }, options],
|
|
57
|
+
},
|
|
58
|
+
listProjectAdmins: {
|
|
59
|
+
items: (page: Page<"listProjectAdmins">) => page.admins,
|
|
60
|
+
next: (page: Page<"listProjectAdmins">) => page.next_page_token,
|
|
61
|
+
withToken: ([projectId, params, options]: Parameters<(typeof endpoints)["listProjectAdmins"]>, page_token: string): Parameters<(typeof endpoints)["listProjectAdmins"]> => [projectId, { ...params, page_token }, options],
|
|
62
|
+
},
|
|
63
|
+
listPreviews: {
|
|
64
|
+
items: (page: Page<"listPreviews">) => page.previews,
|
|
65
|
+
next: (page: Page<"listPreviews">) => page.next_page_token,
|
|
66
|
+
withToken: ([projectId, params, options]: Parameters<(typeof endpoints)["listPreviews"]>, page_token: string): Parameters<(typeof endpoints)["listPreviews"]> => [projectId, { ...params, page_token }, options],
|
|
67
|
+
},
|
|
68
|
+
querySessions: {
|
|
69
|
+
items: (page: Page<"querySessions">) => page.sessions,
|
|
70
|
+
next: (page: Page<"querySessions">) => page.next_page_token,
|
|
71
|
+
withToken: ([querySessionsBody, params, options]: Parameters<(typeof endpoints)["querySessions"]>, page_token: string): Parameters<(typeof endpoints)["querySessions"]> => [{ ...querySessionsBody, page_token }, params, options],
|
|
72
|
+
},
|
|
73
|
+
listSchemas: {
|
|
74
|
+
items: (page: Page<"listSchemas">) => page.schemas,
|
|
75
|
+
next: (page: Page<"listSchemas">) => page.next_page_token,
|
|
76
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listSchemas"]>, page_token: string): Parameters<(typeof endpoints)["listSchemas"]> => [{ ...params, page_token }, options],
|
|
77
|
+
},
|
|
78
|
+
listFlowDefinitions: {
|
|
79
|
+
items: (page: Page<"listFlowDefinitions">) => page.flow_definitions,
|
|
80
|
+
next: (page: Page<"listFlowDefinitions">) => page.next_page_token,
|
|
81
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listFlowDefinitions"]>, page_token: string): Parameters<(typeof endpoints)["listFlowDefinitions"]> => [{ ...params, page_token }, options],
|
|
82
|
+
},
|
|
83
|
+
queryTeams: {
|
|
84
|
+
items: (page: Page<"queryTeams">) => page.teams,
|
|
85
|
+
next: (page: Page<"queryTeams">) => page.next_page_token,
|
|
86
|
+
withToken: ([queryTeamsBody, params, options]: Parameters<(typeof endpoints)["queryTeams"]>, page_token: string): Parameters<(typeof endpoints)["queryTeams"]> => [{ ...queryTeamsBody, page_token }, params, options],
|
|
87
|
+
},
|
|
88
|
+
queryIdps: {
|
|
89
|
+
items: (page: Page<"queryIdps">) => page.idps,
|
|
90
|
+
next: (page: Page<"queryIdps">) => page.next_page_token,
|
|
91
|
+
withToken: ([queryIdpsBody, params, options]: Parameters<(typeof endpoints)["queryIdps"]>, page_token: string): Parameters<(typeof endpoints)["queryIdps"]> => [{ ...queryIdpsBody, page_token }, params, options],
|
|
92
|
+
},
|
|
93
|
+
listIdpRevisions: {
|
|
94
|
+
items: (page: Page<"listIdpRevisions">) => page.revisions,
|
|
95
|
+
next: (page: Page<"listIdpRevisions">) => page.next_page_token,
|
|
96
|
+
withToken: ([id, params, options]: Parameters<(typeof endpoints)["listIdpRevisions"]>, page_token: string): Parameters<(typeof endpoints)["listIdpRevisions"]> => [id, { ...params, page_token }, options],
|
|
97
|
+
},
|
|
98
|
+
listPolicies: {
|
|
99
|
+
items: (page: Page<"listPolicies">) => page.policies,
|
|
100
|
+
next: (page: Page<"listPolicies">) => page.next_page_token,
|
|
101
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listPolicies"]>, page_token: string): Parameters<(typeof endpoints)["listPolicies"]> => [{ ...params, page_token }, options],
|
|
102
|
+
},
|
|
103
|
+
listPolicyRevisions: {
|
|
104
|
+
items: (page: Page<"listPolicyRevisions">) => page.revisions,
|
|
105
|
+
next: (page: Page<"listPolicyRevisions">) => page.next_page_token,
|
|
106
|
+
withToken: ([policyId, params, options]: Parameters<(typeof endpoints)["listPolicyRevisions"]>, page_token: string): Parameters<(typeof endpoints)["listPolicyRevisions"]> => [policyId, { ...params, page_token }, options],
|
|
107
|
+
},
|
|
108
|
+
listReleases: {
|
|
109
|
+
items: (page: Page<"listReleases">) => page.releases,
|
|
110
|
+
next: (page: Page<"listReleases">) => page.next_page_token,
|
|
111
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listReleases"]>, page_token: string): Parameters<(typeof endpoints)["listReleases"]> => [{ ...params, page_token }, options],
|
|
112
|
+
},
|
|
113
|
+
queryGrants: {
|
|
114
|
+
items: (page: Page<"queryGrants">) => page.grants,
|
|
115
|
+
next: (page: Page<"queryGrants">) => page.next_page_token,
|
|
116
|
+
withToken: ([queryGrantsBody, params, options]: Parameters<(typeof endpoints)["queryGrants"]>, page_token: string): Parameters<(typeof endpoints)["queryGrants"]> => [{ ...queryGrantsBody, page_token }, params, options],
|
|
117
|
+
},
|
|
118
|
+
listEvents: {
|
|
119
|
+
items: (page: Page<"listEvents">) => page.data,
|
|
120
|
+
next: (page: Page<"listEvents">) => page.next_page_token,
|
|
121
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listEvents"]>, page_token: string): Parameters<(typeof endpoints)["listEvents"]> => [{ ...params, page_token }, options],
|
|
122
|
+
},
|
|
123
|
+
listDeployments: {
|
|
124
|
+
items: (page: Page<"listDeployments">) => page.deployments,
|
|
125
|
+
next: (page: Page<"listDeployments">) => page.next_page_token,
|
|
126
|
+
withToken: ([params, options]: Parameters<(typeof endpoints)["listDeployments"]>, page_token: string): Parameters<(typeof endpoints)["listDeployments"]> => [{ ...params, page_token }, options],
|
|
127
|
+
},
|
|
128
|
+
} as const;
|