@zitadel/api 1.0.0-alpha.20 → 1.0.0-alpha.22
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/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +75 -4
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +6 -2
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +745 -41
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +432 -47
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +403 -43
- 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 +54 -1
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/{index-BpCgp2NY.d.mts → index-DtExHu2p.d.mts} +1818 -299
- package/dist/index-DtExHu2p.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/{zitadelNextGen-C4IZjGCT.d.mts → zitadelNextGen-C79YSuEo.d.mts} +45 -7
- package/dist/zitadelNextGen-C79YSuEo.d.mts.map +1 -0
- package/package.json +1 -1
- package/src/generated/endpoints/zitadelNextGen.msw.ts +887 -85
- package/src/generated/endpoints/zitadelNextGen.ts +98 -3
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1314 -421
- package/src/generated/model/completeClaim410.ts +21 -16
- package/src/generated/model/createFlowDefinition201FlowDefinition.ts +5 -3
- package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +5 -3
- package/src/generated/model/createFlowDefinitionDefault.ts +0 -10
- package/src/generated/model/createGrant201.ts +32 -0
- package/src/generated/model/createGrant201Principal.ts +147 -0
- package/src/generated/model/createGrant201Team.ts +22 -0
- package/src/generated/model/createGrant201User.ts +38 -0
- package/src/generated/model/createSession201Session.ts +8 -16
- package/src/generated/model/createSession201SessionUser.ts +38 -0
- package/src/generated/model/createUser201.ts +18 -0
- package/src/generated/model/exchangeHandoff200Session.ts +8 -16
- package/src/generated/model/exchangeHandoff200SessionUser.ts +38 -0
- package/src/generated/model/getClaimStatus410.ts +21 -16
- package/src/generated/model/getClaimWindow200.ts +23 -0
- package/src/generated/model/{createFlowDefinition409.ts → getClaimWindow404.ts} +3 -3
- package/src/generated/model/{createFlowDefinition409Details.ts → getClaimWindow404Details.ts} +1 -1
- package/src/generated/model/getClaimWindow429.ts +20 -0
- package/src/generated/model/getClaimWindow429Details.ts +12 -0
- package/src/generated/model/getClaimWindowDefault.ts +20 -0
- package/src/generated/model/getClaimWindowDefaultDetails.ts +12 -0
- package/src/generated/model/getClaimWindowParams.ts +15 -0
- package/src/generated/model/getEvent200.ts +75 -0
- package/src/generated/model/getFlowDefinition200FlowDefinition.ts +5 -3
- package/src/generated/model/getGrant200.ts +32 -0
- package/src/generated/model/getGrant200Principal.ts +147 -0
- package/src/generated/model/getGrant200Team.ts +22 -0
- package/src/generated/model/getGrant200User.ts +38 -0
- package/src/generated/model/getMySession200.ts +8 -16
- package/src/generated/model/getMySession200User.ts +38 -0
- package/src/generated/model/getMyUser200.ts +18 -0
- package/src/generated/model/getSession200.ts +8 -16
- package/src/generated/model/getSession200User.ts +38 -0
- package/src/generated/model/getUserByID200.ts +18 -0
- package/src/generated/model/index.ts +44 -2
- package/src/generated/model/initClaim410.ts +24 -0
- package/src/generated/model/listEvents200DataItem.ts +75 -0
- package/src/generated/model/listFlowDefinitions200.ts +3 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +5 -3
- package/src/generated/model/listFlowDefinitionsParams.ts +8 -0
- package/src/generated/model/queryGrants200.ts +20 -0
- package/src/generated/model/queryGrants200GrantsItem.ts +66 -0
- package/src/generated/model/queryGrants200GrantsItemObjectType.ts +17 -0
- package/src/generated/model/queryGrants200GrantsItemPrincipal.ts +147 -0
- package/src/generated/model/queryGrants200GrantsItemPrincipalType.ts +18 -0
- package/src/generated/model/queryGrants200GrantsItemRelation.ts +19 -0
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +22 -0
- package/src/generated/model/queryGrants200GrantsItemUser.ts +38 -0
- package/src/generated/model/queryGrants400.ts +20 -0
- package/src/generated/model/queryGrants400Details.ts +12 -0
- package/src/generated/model/queryGrants401.ts +20 -0
- package/src/generated/model/queryGrants401Details.ts +12 -0
- package/src/generated/model/queryGrants403.ts +20 -0
- package/src/generated/model/queryGrants403Details.ts +12 -0
- package/src/generated/model/queryGrantsBody.ts +33 -0
- package/src/generated/model/queryGrantsBodyExpandItem.ts +30 -0
- package/src/generated/model/queryGrantsBodyFilterItem.ts +33 -0
- package/src/generated/model/queryGrantsBodyFilterItemField.ts +27 -0
- package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +30 -0
- package/src/generated/model/queryGrantsBodySorting.ts +17 -0
- package/src/generated/model/queryGrantsBodySortingDirection.ts +15 -0
- package/src/generated/model/queryGrantsBodySortingField.ts +21 -0
- package/src/generated/model/queryGrantsDefault.ts +99 -0
- package/src/generated/model/queryGrantsParams.ts +15 -0
- package/src/generated/model/querySessions200SessionsItem.ts +8 -16
- package/src/generated/model/querySessions200SessionsItemUser.ts +38 -0
- package/src/generated/model/queryUsers200UsersItem.ts +18 -0
- package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +5 -3
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +5 -3
- package/dist/index-BpCgp2NY.d.mts.map +0 -1
- package/dist/zitadelNextGen-C4IZjGCT.d.mts.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 { QueryGrants401Details } from "./queryGrants401Details";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Standard error payload returned for failed API requests.
|
|
12
|
+
*/
|
|
13
|
+
export type QueryGrants401 = {
|
|
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?: QueryGrants401Details;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 QueryGrants401Details = { [key: string]: unknown };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 { QueryGrants403Details } from "./queryGrants403Details";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Standard error payload returned for failed API requests.
|
|
12
|
+
*/
|
|
13
|
+
export type QueryGrants403 = {
|
|
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?: QueryGrants403Details;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 QueryGrants403Details = { [key: string]: unknown };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 { QueryGrantsBodyExpandItem } from "./queryGrantsBodyExpandItem";
|
|
9
|
+
import type { QueryGrantsBodyFilterItem } from "./queryGrantsBodyFilterItem";
|
|
10
|
+
import type { QueryGrantsBodySorting } from "./queryGrantsBodySorting";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Request to query the grants of a project.
|
|
14
|
+
*/
|
|
15
|
+
export type QueryGrantsBody = {
|
|
16
|
+
/**
|
|
17
|
+
* @minimum 1
|
|
18
|
+
* @maximum 100
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
/** Token to retrieve the next page of results. Must be sent with the same
|
|
22
|
+
`sorting` as the request that issued the token. Omitting `sorting` reuses
|
|
23
|
+
the default sort and only succeeds when that default matches the token.
|
|
24
|
+
*/
|
|
25
|
+
page_token?: string | null;
|
|
26
|
+
/** Related objects to embed on each grant (ADR 059). Omit it and no
|
|
27
|
+
embedded object is returned. An unrecognised value is rejected.
|
|
28
|
+
*/
|
|
29
|
+
expand?: QueryGrantsBodyExpandItem[];
|
|
30
|
+
sorting?: QueryGrantsBodySorting;
|
|
31
|
+
/** Filter criteria for querying grants. Combined with AND. */
|
|
32
|
+
filter?: QueryGrantsBodyFilterItem[];
|
|
33
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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
|
+
* A related object to embed on each returned grant (ADR 059).
|
|
11
|
+
|
|
12
|
+
- `principal`: the principal named by `principal_id`, as `principal` on
|
|
13
|
+
each grant. The property is omitted entirely when not requested. When
|
|
14
|
+
requested, it is the same body `GET /users/{id}` serves for
|
|
15
|
+
`principal_type=user`, or `GET /teams/{id}` for `principal_type=team`,
|
|
16
|
+
and `null` when that principal cannot be loaded. Discriminate with the
|
|
17
|
+
grant's existing `principal_type`.
|
|
18
|
+
|
|
19
|
+
Requires `user.read` and `team.read` in addition to `project.read`.
|
|
20
|
+
Both are checked on the whole request before the list, because a mixed
|
|
21
|
+
page is the common case. A caller who may not read either resource
|
|
22
|
+
receives 403 rather than a silently missing `principal`.
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
export type QueryGrantsBodyExpandItem =
|
|
26
|
+
(typeof QueryGrantsBodyExpandItem)[keyof typeof QueryGrantsBodyExpandItem];
|
|
27
|
+
|
|
28
|
+
export const QueryGrantsBodyExpandItem = {
|
|
29
|
+
principal: "principal",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 { QueryGrantsBodyFilterItemField } from "./queryGrantsBodyFilterItemField";
|
|
9
|
+
import type { QueryGrantsBodyFilterItemOperation } from "./queryGrantsBodyFilterItemOperation";
|
|
10
|
+
|
|
11
|
+
export type QueryGrantsBodyFilterItem = {
|
|
12
|
+
/** Field to filter grants by:
|
|
13
|
+
- `created_at`: RFC3339 timestamp
|
|
14
|
+
- `principal_type`: `user` or `team`
|
|
15
|
+
- `principal_id`: principal id (`user_<opaque>` or `team_<opaque>`)
|
|
16
|
+
- `relation`: `viewer`, `editor`, or `admin`
|
|
17
|
+
- `expires_at`: RFC3339 timestamp (null when the grant does not expire)
|
|
18
|
+
*/
|
|
19
|
+
field: QueryGrantsBodyFilterItemField;
|
|
20
|
+
/** Filter-value specifies which values can be filtered by a query endpoint. This
|
|
21
|
+
is a union of types. When a value is specified which is not assignable to the
|
|
22
|
+
field which is being filtered, a 400 error will be returned.
|
|
23
|
+
*/
|
|
24
|
+
value?: string | number | boolean | null;
|
|
25
|
+
/** Filter operation defines the operations which can be used when filtering on a
|
|
26
|
+
query endpoint.
|
|
27
|
+
|
|
28
|
+
On text fields, `contains` is a case-insensitive substring match. `equals`
|
|
29
|
+
compares the whole value and is case-sensitive unless the field documents
|
|
30
|
+
otherwise.
|
|
31
|
+
*/
|
|
32
|
+
operation: QueryGrantsBodyFilterItemOperation;
|
|
33
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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
|
+
* Field to filter grants by:
|
|
11
|
+
- `created_at`: RFC3339 timestamp
|
|
12
|
+
- `principal_type`: `user` or `team`
|
|
13
|
+
- `principal_id`: principal id (`user_<opaque>` or `team_<opaque>`)
|
|
14
|
+
- `relation`: `viewer`, `editor`, or `admin`
|
|
15
|
+
- `expires_at`: RFC3339 timestamp (null when the grant does not expire)
|
|
16
|
+
|
|
17
|
+
*/
|
|
18
|
+
export type QueryGrantsBodyFilterItemField =
|
|
19
|
+
(typeof QueryGrantsBodyFilterItemField)[keyof typeof QueryGrantsBodyFilterItemField];
|
|
20
|
+
|
|
21
|
+
export const QueryGrantsBodyFilterItemField = {
|
|
22
|
+
created_at: "created_at",
|
|
23
|
+
principal_type: "principal_type",
|
|
24
|
+
principal_id: "principal_id",
|
|
25
|
+
relation: "relation",
|
|
26
|
+
expires_at: "expires_at",
|
|
27
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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
|
+
* Filter operation defines the operations which can be used when filtering on a
|
|
11
|
+
query endpoint.
|
|
12
|
+
|
|
13
|
+
On text fields, `contains` is a case-insensitive substring match. `equals`
|
|
14
|
+
compares the whole value and is case-sensitive unless the field documents
|
|
15
|
+
otherwise.
|
|
16
|
+
|
|
17
|
+
*/
|
|
18
|
+
export type QueryGrantsBodyFilterItemOperation =
|
|
19
|
+
(typeof QueryGrantsBodyFilterItemOperation)[keyof typeof QueryGrantsBodyFilterItemOperation];
|
|
20
|
+
|
|
21
|
+
export const QueryGrantsBodyFilterItemOperation = {
|
|
22
|
+
equals: "equals",
|
|
23
|
+
not_equals: "not_equals",
|
|
24
|
+
contains: "contains",
|
|
25
|
+
not_contains: "not_contains",
|
|
26
|
+
less_than: "less_than",
|
|
27
|
+
less_than_or_equal: "less_than_or_equal",
|
|
28
|
+
greater_than: "greater_than",
|
|
29
|
+
greater_than_or_equal: "greater_than_or_equal",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 { QueryGrantsBodySortingDirection } from "./queryGrantsBodySortingDirection";
|
|
9
|
+
import type { QueryGrantsBodySortingField } from "./queryGrantsBodySortingField";
|
|
10
|
+
|
|
11
|
+
export type QueryGrantsBodySorting = {
|
|
12
|
+
/** Field to sort grants by. Default is `created_at` ascending with `id` as
|
|
13
|
+
the tiebreaker.
|
|
14
|
+
*/
|
|
15
|
+
field: QueryGrantsBodySortingField;
|
|
16
|
+
direction: QueryGrantsBodySortingDirection;
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 QueryGrantsBodySortingDirection =
|
|
10
|
+
(typeof QueryGrantsBodySortingDirection)[keyof typeof QueryGrantsBodySortingDirection];
|
|
11
|
+
|
|
12
|
+
export const QueryGrantsBodySortingDirection = {
|
|
13
|
+
asc: "asc",
|
|
14
|
+
desc: "desc",
|
|
15
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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
|
+
* Field to sort grants by. Default is `created_at` ascending with `id` as
|
|
11
|
+
the tiebreaker.
|
|
12
|
+
|
|
13
|
+
*/
|
|
14
|
+
export type QueryGrantsBodySortingField =
|
|
15
|
+
(typeof QueryGrantsBodySortingField)[keyof typeof QueryGrantsBodySortingField];
|
|
16
|
+
|
|
17
|
+
export const QueryGrantsBodySortingField = {
|
|
18
|
+
created_at: "created_at",
|
|
19
|
+
expires_at: "expires_at",
|
|
20
|
+
id: "id",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 QueryGrantsDefault =
|
|
10
|
+
| ({
|
|
11
|
+
/** Stable machine-readable error code. */
|
|
12
|
+
code: string;
|
|
13
|
+
/** Human-readable explanation of the error. */
|
|
14
|
+
message: string;
|
|
15
|
+
/** Additional error-specific context. */
|
|
16
|
+
details?: { [key: string]: unknown };
|
|
17
|
+
} & {
|
|
18
|
+
code: "auth.unauthorized";
|
|
19
|
+
})
|
|
20
|
+
| ({
|
|
21
|
+
/** Stable machine-readable error code. */
|
|
22
|
+
code: string;
|
|
23
|
+
/** Human-readable explanation of the error. */
|
|
24
|
+
message: string;
|
|
25
|
+
/** Additional error-specific context. */
|
|
26
|
+
details?: { [key: string]: unknown };
|
|
27
|
+
} & {
|
|
28
|
+
code: "grant.invalid";
|
|
29
|
+
})
|
|
30
|
+
| ({
|
|
31
|
+
/** Stable machine-readable error code. */
|
|
32
|
+
code: string;
|
|
33
|
+
/** Human-readable explanation of the error. */
|
|
34
|
+
message: string;
|
|
35
|
+
/** Additional error-specific context. */
|
|
36
|
+
details?: { [key: string]: unknown };
|
|
37
|
+
} & {
|
|
38
|
+
code: "grant.not_found";
|
|
39
|
+
})
|
|
40
|
+
| ({
|
|
41
|
+
/** Stable machine-readable error code. */
|
|
42
|
+
code: string;
|
|
43
|
+
/** Human-readable explanation of the error. */
|
|
44
|
+
message: string;
|
|
45
|
+
/** Additional error-specific context. */
|
|
46
|
+
details?: { [key: string]: unknown };
|
|
47
|
+
} & {
|
|
48
|
+
code: "grant.permission_denied";
|
|
49
|
+
})
|
|
50
|
+
| ({
|
|
51
|
+
/** Stable machine-readable error code. */
|
|
52
|
+
code: string;
|
|
53
|
+
/** Human-readable explanation of the error. */
|
|
54
|
+
message: string;
|
|
55
|
+
/** Additional error-specific context. */
|
|
56
|
+
details?: { [key: string]: unknown };
|
|
57
|
+
} & {
|
|
58
|
+
code: "internal";
|
|
59
|
+
})
|
|
60
|
+
| ({
|
|
61
|
+
/** Stable machine-readable error code. */
|
|
62
|
+
code: string;
|
|
63
|
+
/** Human-readable explanation of the error. */
|
|
64
|
+
message: string;
|
|
65
|
+
/** Additional error-specific context. */
|
|
66
|
+
details?: { [key: string]: unknown };
|
|
67
|
+
} & {
|
|
68
|
+
code: "not_implemented";
|
|
69
|
+
})
|
|
70
|
+
| ({
|
|
71
|
+
/** Stable machine-readable error code. */
|
|
72
|
+
code: string;
|
|
73
|
+
/** Human-readable explanation of the error. */
|
|
74
|
+
message: string;
|
|
75
|
+
/** Additional error-specific context. */
|
|
76
|
+
details?: { [key: string]: unknown };
|
|
77
|
+
} & {
|
|
78
|
+
code: "req.invalid";
|
|
79
|
+
})
|
|
80
|
+
| ({
|
|
81
|
+
/** Stable machine-readable error code. */
|
|
82
|
+
code: string;
|
|
83
|
+
/** Human-readable explanation of the error. */
|
|
84
|
+
message: string;
|
|
85
|
+
/** Additional error-specific context. */
|
|
86
|
+
details?: { [key: string]: unknown };
|
|
87
|
+
} & {
|
|
88
|
+
code: "team.permission_denied";
|
|
89
|
+
})
|
|
90
|
+
| ({
|
|
91
|
+
/** Stable machine-readable error code. */
|
|
92
|
+
code: string;
|
|
93
|
+
/** Human-readable explanation of the error. */
|
|
94
|
+
message: string;
|
|
95
|
+
/** Additional error-specific context. */
|
|
96
|
+
details?: { [key: string]: unknown };
|
|
97
|
+
} & {
|
|
98
|
+
code: "user.permission_denied";
|
|
99
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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 QueryGrantsParams = {
|
|
10
|
+
/**
|
|
11
|
+
* The unique identifier of the project
|
|
12
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
13
|
+
*/
|
|
14
|
+
project_id: string;
|
|
15
|
+
};
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import type { QuerySessions200SessionsItemFactorsItem } from "./querySessions200SessionsItemFactorsItem";
|
|
9
9
|
import type { QuerySessions200SessionsItemMetadata } from "./querySessions200SessionsItemMetadata";
|
|
10
10
|
import type { QuerySessions200SessionsItemState } from "./querySessions200SessionsItemState";
|
|
11
|
+
import type { QuerySessions200SessionsItemUser } from "./querySessions200SessionsItemUser";
|
|
11
12
|
import type { QuerySessions200SessionsItemUserAgent } from "./querySessions200SessionsItemUserAgent";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -37,23 +38,14 @@ export type QuerySessions200SessionsItem = {
|
|
|
37
38
|
factor has been verified through an `auth_attempt`.
|
|
38
39
|
*/
|
|
39
40
|
user_id?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
user whose schema carries those properties; clients fall back to
|
|
47
|
-
`email`, then `user_id`.
|
|
41
|
+
/** A resolved reference to a user (ADR 058 §3). Fields are role-named, not
|
|
42
|
+
property-named, so responses can mix users from different schemas.
|
|
43
|
+
`identifier` and `display` are resolved independently from the user
|
|
44
|
+
schema's `x-identifier` and `x-display` designations, live at read time.
|
|
45
|
+
Clients render `display`, falling back to `identifier`, then `user_id`.
|
|
46
|
+
Missing or deleted users degrade to `user_id` only.
|
|
48
47
|
*/
|
|
49
|
-
|
|
50
|
-
/** Email address of the authenticated user, resolved from the
|
|
51
|
-
conventional `email` user-schema property. Only present on reads
|
|
52
|
-
that hydrate the user's identity (`GET /sessions/me`) and only when
|
|
53
|
-
the session has an authenticated user whose schema carries that
|
|
54
|
-
property.
|
|
55
|
-
*/
|
|
56
|
-
email?: string;
|
|
48
|
+
user?: QuerySessions200SessionsItemUser;
|
|
57
49
|
/** Verified authentication factors accumulated by this session.
|
|
58
50
|
Each key is a factor type (e.g. `password`, `totp`, `passkey`).
|
|
59
51
|
Each value is a factor event object with at least `verified_at` and
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.10.0 🍺
|
|
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
|
+
* A resolved reference to a user (ADR 058 §3). Fields are role-named, not
|
|
11
|
+
property-named, so responses can mix users from different schemas.
|
|
12
|
+
`identifier` and `display` are resolved independently from the user
|
|
13
|
+
schema's `x-identifier` and `x-display` designations, live at read time.
|
|
14
|
+
Clients render `display`, falling back to `identifier`, then `user_id`.
|
|
15
|
+
Missing or deleted users degrade to `user_id` only.
|
|
16
|
+
|
|
17
|
+
*/
|
|
18
|
+
export type QuerySessions200SessionsItemUser = {
|
|
19
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
20
|
+
user_id: string;
|
|
21
|
+
/** The current value of the schema's designated identifier
|
|
22
|
+
(`x-identifier`). Absent when the schema designates no identifier or
|
|
23
|
+
the user carries no value for it.
|
|
24
|
+
*/
|
|
25
|
+
identifier?: string;
|
|
26
|
+
/** The schema property `identifier` came from, so clients can reach the
|
|
27
|
+
property's schema for semantics (a mailto link, a field label)
|
|
28
|
+
instead of guessing from the value. Present exactly when
|
|
29
|
+
`identifier` is.
|
|
30
|
+
*/
|
|
31
|
+
identifier_property?: string;
|
|
32
|
+
/** The `x-display` rendering — the designated properties' values joined
|
|
33
|
+
in list order. Purely presentational, with no source attribution.
|
|
34
|
+
Absent when the schema designates no display properties or the user
|
|
35
|
+
carries no values for them.
|
|
36
|
+
*/
|
|
37
|
+
display?: string;
|
|
38
|
+
};
|
|
@@ -36,6 +36,24 @@ export type QueryUsers200UsersItem = {
|
|
|
36
36
|
*/
|
|
37
37
|
attributes: QueryUsers200UsersItemAttributes;
|
|
38
38
|
metadata: QueryUsers200UsersItemMetadata;
|
|
39
|
+
/** The current value of the user schema's designated identifier
|
|
40
|
+
(`x-identifier`), resolved live at read time. Absent when the schema
|
|
41
|
+
designates no identifier or the user carries no value for it.
|
|
42
|
+
*/
|
|
43
|
+
readonly identifier?: string;
|
|
44
|
+
/** The schema property `identifier` came from, so clients can reach the
|
|
45
|
+
property's schema for semantics (a mailto link, a field label)
|
|
46
|
+
instead of guessing from the value. Present exactly when
|
|
47
|
+
`identifier` is.
|
|
48
|
+
*/
|
|
49
|
+
readonly identifier_property?: string;
|
|
50
|
+
/** The `x-display` rendering — the designated properties' values joined
|
|
51
|
+
in list order, resolved live at read time. Purely presentational.
|
|
52
|
+
Absent when the schema designates no display properties or the user
|
|
53
|
+
carries no values for them. Clients render `display`, falling back
|
|
54
|
+
to `identifier`, then `id`.
|
|
55
|
+
*/
|
|
56
|
+
readonly display?: string;
|
|
39
57
|
/** The user's team memberships, present only when the request asked for them with
|
|
40
58
|
`expand: ["teams"]` (ADR 059). Absent means it was not requested; `[]`
|
|
41
59
|
means the user has none.
|
|
@@ -23,9 +23,11 @@ the purpose + audience when a flow is created via POST /flow.
|
|
|
23
23
|
export type UpdateFlowDefinition200FlowDefinition = {
|
|
24
24
|
/**
|
|
25
25
|
* Stable identifier for this flow, used as the target of cross-flow
|
|
26
|
-
`switch` and `pivot` transitions.
|
|
27
|
-
`name
|
|
28
|
-
|
|
26
|
+
`switch` and `pivot` transitions. Every revision of a flow shares its
|
|
27
|
+
`name`; publishing a definition under an existing `name` adds a
|
|
28
|
+
revision to that flow. Renaming is not supported — the `name` is part
|
|
29
|
+
of the public contract another definition may reference. Acts as the
|
|
30
|
+
human display label as well; no separate slug.
|
|
29
31
|
|
|
30
32
|
* @pattern ^[a-z][a-z0-9-]*$
|
|
31
33
|
*/
|
|
@@ -23,9 +23,11 @@ the purpose + audience when a flow is created via POST /flow.
|
|
|
23
23
|
export type UpdateFlowDefinitionBodyFlowDefinition = {
|
|
24
24
|
/**
|
|
25
25
|
* Stable identifier for this flow, used as the target of cross-flow
|
|
26
|
-
`switch` and `pivot` transitions.
|
|
27
|
-
`name
|
|
28
|
-
|
|
26
|
+
`switch` and `pivot` transitions. Every revision of a flow shares its
|
|
27
|
+
`name`; publishing a definition under an existing `name` adds a
|
|
28
|
+
revision to that flow. Renaming is not supported — the `name` is part
|
|
29
|
+
of the public contract another definition may reference. Acts as the
|
|
30
|
+
human display label as well; no separate slug.
|
|
29
31
|
|
|
30
32
|
* @pattern ^[a-z][a-z0-9-]*$
|
|
31
33
|
*/
|