@zitadel/api 1.0.0-alpha.21 → 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 +622 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +380 -24
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +370 -39
- 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-BK4Q468Q.d.mts → index-DtExHu2p.d.mts} +1452 -140
- package/dist/index-DtExHu2p.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/{zitadelNextGen-C8m49W5h.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 +759 -55
- package/src/generated/endpoints/zitadelNextGen.ts +98 -3
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1199 -422
- 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 +1 -0
- package/src/generated/model/createSession201SessionUser.ts +1 -0
- package/src/generated/model/exchangeHandoff200Session.ts +1 -0
- package/src/generated/model/exchangeHandoff200SessionUser.ts +1 -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 +1 -0
- package/src/generated/model/getMySession200User.ts +1 -0
- package/src/generated/model/getSession200.ts +1 -0
- package/src/generated/model/getSession200User.ts +1 -0
- package/src/generated/model/index.ts +39 -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 +1 -0
- package/src/generated/model/querySessions200SessionsItemUser.ts +1 -0
- package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +5 -3
- package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +5 -3
- package/dist/index-BK4Q468Q.d.mts.map +0 -1
- package/dist/zitadelNextGen-C8m49W5h.d.mts.map +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
* The principal named by `principal_id`, present only when the request
|
|
11
|
+
asked for it with `expand: ["principal"]` (ADR 059). Absent means it
|
|
12
|
+
was not requested; `null` means the principal cannot be loaded
|
|
13
|
+
(deleted or missing). GET and create never set this field.
|
|
14
|
+
|
|
15
|
+
When present, the body is the same representation `GET /users/{id}`
|
|
16
|
+
serves for `principal_type=user`, or `GET /teams/{id}` for
|
|
17
|
+
`principal_type=team`. Discriminate with the grant's existing
|
|
18
|
+
`principal_type`.
|
|
19
|
+
|
|
20
|
+
Requires `user.read` and `team.read` in addition to `project.read`.
|
|
21
|
+
Both are checked on the whole request before the list.
|
|
22
|
+
|
|
23
|
+
*/
|
|
24
|
+
export type QueryGrants200GrantsItemPrincipal =
|
|
25
|
+
| {
|
|
26
|
+
/** @pattern ^user_[a-zA-Z0-9_-]+$ */
|
|
27
|
+
id: string;
|
|
28
|
+
/** The schema that defines the content of `attributes`. These schemas can be
|
|
29
|
+
created using the `/schemas` endpoint. A default schema is provided.
|
|
30
|
+
This schema can be retrieved using the same endpoint.
|
|
31
|
+
*/
|
|
32
|
+
schema: string;
|
|
33
|
+
/** The user's content, satisfying the schema named by `schema`. Property
|
|
34
|
+
names and types are determined entirely by that schema.
|
|
35
|
+
*/
|
|
36
|
+
attributes: { [key: string]: unknown };
|
|
37
|
+
metadata: {
|
|
38
|
+
/** The time when the user was created. */
|
|
39
|
+
created_at: string;
|
|
40
|
+
/** The time when the user was last updated. */
|
|
41
|
+
updated_at: string;
|
|
42
|
+
/** The status of the user. */
|
|
43
|
+
status: "active" | "suspended" | "deactivated" | "pending_purge";
|
|
44
|
+
/** The team that owns this user's identity lifecycle, or `null` when the
|
|
45
|
+
user is self-owned. This is a single team and a different concept from
|
|
46
|
+
the user's team memberships: it decides who may deprovision the user, not
|
|
47
|
+
which teams the user collaborates in. Memberships are their own paginated
|
|
48
|
+
resource — `GET /users/{user_id}/teams`.
|
|
49
|
+
*/
|
|
50
|
+
lifecycle_owner_team_id?: string | null;
|
|
51
|
+
/** The team named by `lifecycle_owner_team_id`, present only when the
|
|
52
|
+
request asked for it with `expand: ["lifecycle_owner_team"]` (ADR 059).
|
|
53
|
+
Absent means it was not requested; `null` means the user is self-owned
|
|
54
|
+
and there is no owner to resolve.
|
|
55
|
+
|
|
56
|
+
Requesting it does not guarantee it is present on every user. Today
|
|
57
|
+
`team.read` is checked once for the whole request, so it is; once that
|
|
58
|
+
check is per team, a page may contain a user whose owner the caller may
|
|
59
|
+
not read, and such a row answers with neither the team nor `null` —
|
|
60
|
+
`null` already means self-owned. What it answers with instead is decided
|
|
61
|
+
with the granular scopes (#420); do not read the two cases above as the
|
|
62
|
+
complete set.
|
|
63
|
+
|
|
64
|
+
This is the same representation `GET /teams/{team_id}` serves. It is a
|
|
65
|
+
single team, not a collection, so it carries no cap and no truncation
|
|
66
|
+
flag.
|
|
67
|
+
*/
|
|
68
|
+
readonly lifecycle_owner_team?: {
|
|
69
|
+
/** The unique identifier of the team. */
|
|
70
|
+
id: string;
|
|
71
|
+
/** The name of the team. */
|
|
72
|
+
name: string;
|
|
73
|
+
/** The lifecycle state of a team.
|
|
74
|
+
|
|
75
|
+
active: The team is available for use.
|
|
76
|
+
deactivated: The team is no longer active but is retained for historical and audit purposes.
|
|
77
|
+
*/
|
|
78
|
+
status: "active" | "deactivated";
|
|
79
|
+
/** The time when the team was created. */
|
|
80
|
+
created_at: string;
|
|
81
|
+
/** The time when the team was last updated. */
|
|
82
|
+
updated_at: string;
|
|
83
|
+
} | null;
|
|
84
|
+
};
|
|
85
|
+
/** The current value of the user schema's designated identifier
|
|
86
|
+
(`x-identifier`), resolved live at read time. Absent when the schema
|
|
87
|
+
designates no identifier or the user carries no value for it.
|
|
88
|
+
*/
|
|
89
|
+
readonly identifier?: string;
|
|
90
|
+
/** The schema property `identifier` came from, so clients can reach the
|
|
91
|
+
property's schema for semantics (a mailto link, a field label)
|
|
92
|
+
instead of guessing from the value. Present exactly when
|
|
93
|
+
`identifier` is.
|
|
94
|
+
*/
|
|
95
|
+
readonly identifier_property?: string;
|
|
96
|
+
/** The `x-display` rendering — the designated properties' values joined
|
|
97
|
+
in list order, resolved live at read time. Purely presentational.
|
|
98
|
+
Absent when the schema designates no display properties or the user
|
|
99
|
+
carries no values for them. Clients render `display`, falling back
|
|
100
|
+
to `identifier`, then `id`.
|
|
101
|
+
*/
|
|
102
|
+
readonly display?: string;
|
|
103
|
+
/** The user's team memberships, present only when the request asked for them with
|
|
104
|
+
`expand: ["teams"]` (ADR 059). Absent means it was not requested; `[]`
|
|
105
|
+
means the user has none.
|
|
106
|
+
|
|
107
|
+
Deliberately outside `metadata`: memberships are a related collection, not
|
|
108
|
+
part of the server-owned envelope, and it is a different concept from
|
|
109
|
+
`metadata.lifecycle_owner_team_id` (ADR 024).
|
|
110
|
+
*/
|
|
111
|
+
readonly teams?: readonly {
|
|
112
|
+
/** The unique identifier of the team. */
|
|
113
|
+
id: string;
|
|
114
|
+
/** The name of the team. */
|
|
115
|
+
name: string;
|
|
116
|
+
/** The user's participation state on this team. Memberships the user was
|
|
117
|
+
removed from are not returned.
|
|
118
|
+
*/
|
|
119
|
+
membership_status: "pending" | "active" | "inactive";
|
|
120
|
+
/** The time when the user joined this team. */
|
|
121
|
+
created_at: string;
|
|
122
|
+
/** The time when this membership was last changed. */
|
|
123
|
+
updated_at: string;
|
|
124
|
+
}[];
|
|
125
|
+
/** True when the user is on more teams than the embedded list carries. The
|
|
126
|
+
embedded list is capped and cannot be paged; read them all at
|
|
127
|
+
`GET /users/{user_id}/teams`. Present only alongside `teams`.
|
|
128
|
+
*/
|
|
129
|
+
readonly teams_truncated?: boolean;
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
/** The unique identifier of the team. */
|
|
133
|
+
id: string;
|
|
134
|
+
/** The name of the team. */
|
|
135
|
+
name: string;
|
|
136
|
+
/** The lifecycle state of a team.
|
|
137
|
+
|
|
138
|
+
active: The team is available for use.
|
|
139
|
+
deactivated: The team is no longer active but is retained for historical and audit purposes.
|
|
140
|
+
*/
|
|
141
|
+
status: "active" | "deactivated";
|
|
142
|
+
/** The time when the team was created. */
|
|
143
|
+
created_at: string;
|
|
144
|
+
/** The time when the team was last updated. */
|
|
145
|
+
updated_at: string;
|
|
146
|
+
}
|
|
147
|
+
| null;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Kind of principal bound by this grant.
|
|
11
|
+
*/
|
|
12
|
+
export type QueryGrants200GrantsItemPrincipalType =
|
|
13
|
+
(typeof QueryGrants200GrantsItemPrincipalType)[keyof typeof QueryGrants200GrantsItemPrincipalType];
|
|
14
|
+
|
|
15
|
+
export const QueryGrants200GrantsItemPrincipalType = {
|
|
16
|
+
user: "user",
|
|
17
|
+
team: "team",
|
|
18
|
+
} as const;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
* Catalog relation on the project.
|
|
11
|
+
*/
|
|
12
|
+
export type QueryGrants200GrantsItemRelation =
|
|
13
|
+
(typeof QueryGrants200GrantsItemRelation)[keyof typeof QueryGrants200GrantsItemRelation];
|
|
14
|
+
|
|
15
|
+
export const QueryGrants200GrantsItemRelation = {
|
|
16
|
+
viewer: "viewer",
|
|
17
|
+
editor: "editor",
|
|
18
|
+
admin: "admin",
|
|
19
|
+
} as const;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 team. Carries the team's id and name so a grant
|
|
11
|
+
list is readable without embedding the full Team body. Id and display ride
|
|
12
|
+
`project.read` (ADR 059 rule 8): a reference field carrying only the
|
|
13
|
+
target's id and display strings needs no gate of its own. Missing or
|
|
14
|
+
deleted teams degrade to `team_id` only.
|
|
15
|
+
|
|
16
|
+
*/
|
|
17
|
+
export type QueryGrants200GrantsItemTeam = {
|
|
18
|
+
/** The referenced team's id (`team_<opaque>`). Always present. */
|
|
19
|
+
team_id: string;
|
|
20
|
+
/** The team's name. Absent when the team can no longer be loaded. */
|
|
21
|
+
name?: string;
|
|
22
|
+
};
|
|
@@ -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 QueryGrants200GrantsItemUser = {
|
|
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
|
+
};
|
|
@@ -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 { QueryGrants400Details } from "./queryGrants400Details";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Standard error payload returned for failed API requests.
|
|
12
|
+
*/
|
|
13
|
+
export type QueryGrants400 = {
|
|
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?: QueryGrants400Details;
|
|
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 QueryGrants400Details = { [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 { 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
|
+
});
|