@zitadel/api 0.2.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 +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +192 -124
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +3 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +40 -7
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +104 -28
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +117 -37
- 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 +5 -1
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.mjs +22 -1
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-D7-l5LV6.d.mts → index-DGQY1rfH.d.mts} +398 -10
- 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-Cw3DrCn1.d.mts → zitadelNextGen-BVO4sdKD.d.mts} +69 -34
- package/dist/zitadelNextGen-BVO4sdKD.d.mts.map +1 -0
- package/package.json +7 -1
- package/src/generated/endpoints/zitadelNextGen.faker.ts +9 -6
- package/src/generated/endpoints/zitadelNextGen.msw.ts +16 -1
- package/src/generated/endpoints/zitadelNextGen.ts +212 -125
- package/src/generated/endpoints/zitadelNextGen.zod.ts +120 -36
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +5 -0
- 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/evaluatePolicy200.ts +30 -0
- package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
- package/src/generated/model/evaluatePolicyBody.ts +82 -0
- package/src/generated/model/evaluatePolicyDefault.ts +90 -0
- package/src/generated/model/evaluatePolicyParams.ts +15 -0
- package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +5 -0
- package/src/generated/model/getFlowStepDefault.ts +9 -0
- package/src/generated/model/getMyUserSchema200Metadata.ts +5 -0
- package/src/generated/model/getSchemaById200Metadata.ts +5 -0
- package/src/generated/model/index.ts +8 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -0
- package/src/generated/model/listSchemas200SchemasItemMetadata.ts +5 -0
- package/src/generated/model/listSchemasExpandItem.ts +28 -0
- package/src/generated/model/listSchemasParams.ts +5 -0
- package/src/generated/model/queryTeamsParams.ts +3 -2
- package/src/generated/model/queryUsersBodyFilterItem.ts +11 -3
- package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
- package/src/generated/model/submitFlowStepDefault.ts +9 -0
- package/src/generated/operations.ts +24 -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-D7-l5LV6.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-Cw3DrCn1.d.mts.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export type EvaluatePolicyParams = {
|
|
10
|
+
/**
|
|
11
|
+
* The unique identifier of the project
|
|
12
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
13
|
+
*/
|
|
14
|
+
project_id: string;
|
|
15
|
+
};
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
export type GetFlowDefinition200UserSchemaMetadata = {
|
|
10
10
|
/** The time when the schema was created. */
|
|
11
11
|
created_at: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether any user of the project is on this revision. Only set when
|
|
14
|
+
* `GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.
|
|
15
|
+
*/
|
|
16
|
+
in_use?: boolean;
|
|
12
17
|
};
|
|
@@ -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
|
} | {
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
export type GetMyUserSchema200Metadata = {
|
|
10
10
|
/** The time when the schema was created. */
|
|
11
11
|
created_at: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether any user of the project is on this revision. Only set when
|
|
14
|
+
* `GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.
|
|
15
|
+
*/
|
|
16
|
+
in_use?: boolean;
|
|
12
17
|
};
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
export type GetSchemaById200Metadata = {
|
|
10
10
|
/** The time when the schema was created. */
|
|
11
11
|
created_at: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether any user of the project is on this revision. Only set when
|
|
14
|
+
* `GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.
|
|
15
|
+
*/
|
|
16
|
+
in_use?: boolean;
|
|
12
17
|
};
|
|
@@ -419,10 +419,17 @@ 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';
|
|
425
427
|
export * from './deleteVariableParams.ts';
|
|
428
|
+
export * from './evaluatePolicy200.ts';
|
|
429
|
+
export * from './evaluatePolicy200Violations.ts';
|
|
430
|
+
export * from './evaluatePolicyBody.ts';
|
|
431
|
+
export * from './evaluatePolicyDefault.ts';
|
|
432
|
+
export * from './evaluatePolicyParams.ts';
|
|
426
433
|
export * from './exchangeHandoff200.ts';
|
|
427
434
|
export * from './exchangeHandoff200Session.ts';
|
|
428
435
|
export * from './exchangeHandoff200SessionFactorsItem.ts';
|
|
@@ -944,6 +951,7 @@ export * from './listSchemas200SchemasItem.ts';
|
|
|
944
951
|
export * from './listSchemas200SchemasItemMetadata.ts';
|
|
945
952
|
export * from './listSchemas200SchemasItemSchema.ts';
|
|
946
953
|
export * from './listSchemasDefault.ts';
|
|
954
|
+
export * from './listSchemasExpandItem.ts';
|
|
947
955
|
export * from './listSchemasKind.ts';
|
|
948
956
|
export * from './listSchemasParams.ts';
|
|
949
957
|
export * from './listSchemasRevisions.ts';
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
export type ListFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata = {
|
|
10
10
|
/** The time when the schema was created. */
|
|
11
11
|
created_at: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether any user of the project is on this revision. Only set when
|
|
14
|
+
* `GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.
|
|
15
|
+
*/
|
|
16
|
+
in_use?: boolean;
|
|
12
17
|
};
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
export type ListSchemas200SchemasItemMetadata = {
|
|
10
10
|
/** The time when the schema was created. */
|
|
11
11
|
created_at: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether any user of the project is on this revision. Only set when
|
|
14
|
+
* `GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.
|
|
15
|
+
*/
|
|
16
|
+
in_use?: boolean;
|
|
12
17
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* Extra fields to add onto each returned schema (ADR 059).
|
|
11
|
+
*
|
|
12
|
+
* - `in_use`: whether any user of the project is on this revision, as
|
|
13
|
+
* `metadata.in_use`. A revision in use cannot be deleted, and the users on it
|
|
14
|
+
* are found with `POST /users/query` filtering on `schema`. The property is
|
|
15
|
+
* omitted entirely when not requested, so "did not ask" is distinguishable
|
|
16
|
+
* from `false`.
|
|
17
|
+
*
|
|
18
|
+
* The flag counts every user of the project, not only those the caller may
|
|
19
|
+
* list, so it requires read on the whole project, and for a token also
|
|
20
|
+
* `user.read` in addition to `schema.read`. A caller without them is refused
|
|
21
|
+
* with `403`.
|
|
22
|
+
*/
|
|
23
|
+
export type ListSchemasExpandItem = typeof ListSchemasExpandItem[keyof typeof ListSchemasExpandItem];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export const ListSchemasExpandItem = {
|
|
27
|
+
in_use: 'in_use',
|
|
28
|
+
} as const;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* This is the next generation of the Zitadel identity platform.
|
|
6
6
|
* OpenAPI spec version: 0.0.1
|
|
7
7
|
*/
|
|
8
|
+
import type { ListSchemasExpandItem } from './listSchemasExpandItem.ts';
|
|
8
9
|
import type { ListSchemasKind } from './listSchemasKind.ts';
|
|
9
10
|
import type { ListSchemasRevisions } from './listSchemasRevisions.ts';
|
|
10
11
|
|
|
@@ -59,4 +60,8 @@ revisions?: ListSchemasRevisions;
|
|
|
59
60
|
* could be read, and is excluded from every filtered result.
|
|
60
61
|
*/
|
|
61
62
|
kind?: ListSchemasKind;
|
|
63
|
+
/**
|
|
64
|
+
* Extra fields to add onto each returned schema.
|
|
65
|
+
*/
|
|
66
|
+
expand?: ListSchemasExpandItem[];
|
|
62
67
|
};
|
|
@@ -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
|
};
|
|
@@ -14,7 +14,15 @@ export type QueryUsersBodyFilterItem = {
|
|
|
14
14
|
* - `created_at`: RFC3339 timestamp
|
|
15
15
|
* - `id`: user id
|
|
16
16
|
* - `schema`: the schema the user's attributes satisfy, matched against the
|
|
17
|
-
* value the user carries as `schema
|
|
17
|
+
* value the user carries as `schema`. Each revision of a schema has its own
|
|
18
|
+
* URL, so `equals` selects the users on one revision and `not_equals` the
|
|
19
|
+
* users on any other.
|
|
20
|
+
* - `schema_object_type`: the `object_type` of the user's schema, which every
|
|
21
|
+
* revision of that schema shares. It may be repeated, like any field: give
|
|
22
|
+
* `not_equals` once per object type to exclude several. A schema without an
|
|
23
|
+
* object type reads as `""`, so `not_equals` matches its users and `equals`
|
|
24
|
+
* `""` selects them. Combine `equals` here with `schema` `not_equals` the
|
|
25
|
+
* newest revision to find the users still on an older one.
|
|
18
26
|
* - `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`
|
|
19
27
|
* - `team_id`: restricts the result to users holding an **active** membership
|
|
20
28
|
* in that team. A user who has been invited but has not accepted does not
|
|
@@ -31,8 +39,8 @@ export type QueryUsersBodyFilterItem = {
|
|
|
31
39
|
* their own lifecycle, so the two disagree often and neither implies the other
|
|
32
40
|
* (ADR 024).
|
|
33
41
|
*
|
|
34
|
-
* `team_id`
|
|
35
|
-
*
|
|
42
|
+
* `team_id` and `schema_object_type` are filterable but not sortable: neither
|
|
43
|
+
* is a column on the user, so both are absent from the sort-field enum.
|
|
36
44
|
*
|
|
37
45
|
* Filtering on `team_id` requires `team_membership.read` in addition to
|
|
38
46
|
* `user.read`: it reads the same memberships that `expand: ["teams"]` embeds.
|
|
@@ -11,7 +11,15 @@
|
|
|
11
11
|
* - `created_at`: RFC3339 timestamp
|
|
12
12
|
* - `id`: user id
|
|
13
13
|
* - `schema`: the schema the user's attributes satisfy, matched against the
|
|
14
|
-
* value the user carries as `schema
|
|
14
|
+
* value the user carries as `schema`. Each revision of a schema has its own
|
|
15
|
+
* URL, so `equals` selects the users on one revision and `not_equals` the
|
|
16
|
+
* users on any other.
|
|
17
|
+
* - `schema_object_type`: the `object_type` of the user's schema, which every
|
|
18
|
+
* revision of that schema shares. It may be repeated, like any field: give
|
|
19
|
+
* `not_equals` once per object type to exclude several. A schema without an
|
|
20
|
+
* object type reads as `""`, so `not_equals` matches its users and `equals`
|
|
21
|
+
* `""` selects them. Combine `equals` here with `schema` `not_equals` the
|
|
22
|
+
* newest revision to find the users still on an older one.
|
|
15
23
|
* - `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`
|
|
16
24
|
* - `team_id`: restricts the result to users holding an **active** membership
|
|
17
25
|
* in that team. A user who has been invited but has not accepted does not
|
|
@@ -28,8 +36,8 @@
|
|
|
28
36
|
* their own lifecycle, so the two disagree often and neither implies the other
|
|
29
37
|
* (ADR 024).
|
|
30
38
|
*
|
|
31
|
-
* `team_id`
|
|
32
|
-
*
|
|
39
|
+
* `team_id` and `schema_object_type` are filterable but not sortable: neither
|
|
40
|
+
* is a column on the user, so both are absent from the sort-field enum.
|
|
33
41
|
*
|
|
34
42
|
* Filtering on `team_id` requires `team_membership.read` in addition to
|
|
35
43
|
* `user.read`: it reads the same memberships that `expand: ["teams"]` embeds.
|
|
@@ -44,6 +52,7 @@ export const QueryUsersBodyFilterItemField = {
|
|
|
44
52
|
created_at: 'created_at',
|
|
45
53
|
id: 'id',
|
|
46
54
|
schema: 'schema',
|
|
55
|
+
schema_object_type: 'schema_object_type',
|
|
47
56
|
status: 'status',
|
|
48
57
|
team_id: 'team_id',
|
|
49
58
|
lifecycle_owner_team_id: 'lifecycle_owner_team_id',
|
|
@@ -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
|
} | {
|
|
@@ -1149,6 +1149,11 @@ export const operations: readonly ApiOperation[] = [
|
|
|
1149
1149
|
"name": "kind",
|
|
1150
1150
|
"in": "query",
|
|
1151
1151
|
"required": false
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"name": "expand",
|
|
1155
|
+
"in": "query",
|
|
1156
|
+
"required": false
|
|
1152
1157
|
}
|
|
1153
1158
|
],
|
|
1154
1159
|
"body": null,
|
|
@@ -1319,7 +1324,7 @@ export const operations: readonly ApiOperation[] = [
|
|
|
1319
1324
|
{
|
|
1320
1325
|
"name": "project_id",
|
|
1321
1326
|
"in": "query",
|
|
1322
|
-
"required":
|
|
1327
|
+
"required": false
|
|
1323
1328
|
}
|
|
1324
1329
|
],
|
|
1325
1330
|
"body": "required",
|
|
@@ -1612,6 +1617,24 @@ export const operations: readonly ApiOperation[] = [
|
|
|
1612
1617
|
"paging": null,
|
|
1613
1618
|
"cli": null
|
|
1614
1619
|
},
|
|
1620
|
+
{
|
|
1621
|
+
"id": "evaluatePolicy",
|
|
1622
|
+
"method": "POST",
|
|
1623
|
+
"path": "/policies/evaluate",
|
|
1624
|
+
"summary": "Evaluate a policy",
|
|
1625
|
+
"tag": "Policies",
|
|
1626
|
+
"auth": "secret",
|
|
1627
|
+
"parameters": [
|
|
1628
|
+
{
|
|
1629
|
+
"name": "project_id",
|
|
1630
|
+
"in": "query",
|
|
1631
|
+
"required": true
|
|
1632
|
+
}
|
|
1633
|
+
],
|
|
1634
|
+
"body": "required",
|
|
1635
|
+
"paging": null,
|
|
1636
|
+
"cli": null
|
|
1637
|
+
},
|
|
1615
1638
|
{
|
|
1616
1639
|
"id": "getPolicy",
|
|
1617
1640
|
"method": "GET",
|
|
@@ -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;
|