authhero 9.25.0 → 9.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/{p-210f06bf.entry.js → p-ce8560f6.entry.js} +1 -1
- package/dist/authhero.cjs +157 -157
- package/dist/authhero.d.ts +914 -264
- package/dist/authhero.mjs +27723 -25733
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/createEncryptedDataAdapter.d.ts +2 -1
- package/dist/types/adapters/index.d.ts +1 -1
- package/dist/types/authentication-flows/device-code.d.ts +11 -0
- package/dist/types/authentication-flows/passwordless.d.ts +9 -5
- package/dist/types/errors/management-api-error.d.ts +113 -0
- package/dist/types/generated/locale-types.d.ts +16 -0
- package/dist/types/helpers/client.d.ts +8 -0
- package/dist/types/helpers/codes-cleanup.d.ts +1 -1
- package/dist/types/helpers/control-plane-caller.d.ts +15 -0
- package/dist/types/helpers/device-flow.d.ts +25 -0
- package/dist/types/helpers/hook-events.d.ts +8 -4
- package/dist/types/helpers/hook-user-payload.d.ts +2 -0
- package/dist/types/helpers/logging.d.ts +2 -1
- package/dist/types/helpers/outbox-destinations/code-hooks.d.ts +8 -3
- package/dist/types/helpers/outbox-destinations/webhooks.d.ts +3 -0
- package/dist/types/helpers/platform-rows.d.ts +27 -0
- package/dist/types/helpers/request-data.d.ts +12 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/scopes-permissions.d.ts +1 -1
- package/dist/types/helpers/synced-rows.d.ts +1 -0
- package/dist/types/hooks/lifecycle-codehooks.d.ts +16 -0
- package/dist/types/hooks/user-deletion.d.ts +9 -0
- package/dist/types/index.d.ts +540 -256
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/device.d.ts +139 -0
- package/dist/types/routes/auth-api/index.d.ts +238 -37
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/auth-api/revoke.d.ts +8 -8
- package/dist/types/routes/auth-api/token.d.ts +82 -12
- package/dist/types/routes/auth-api/well-known.d.ts +3 -1
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/action-triggers.d.ts +27 -2
- package/dist/types/routes/management-api/actions.d.ts +12 -12
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +4 -4
- package/dist/types/routes/management-api/client-grants.d.ts +13 -0
- package/dist/types/routes/management-api/clients.d.ts +17 -4
- package/dist/types/routes/management-api/connections.d.ts +27 -14
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/emails.d.ts +6 -6
- package/dist/types/routes/management-api/failed-events.d.ts +2 -2
- package/dist/types/routes/management-api/flows.d.ts +8 -8
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +42 -42
- package/dist/types/routes/management-api/index.d.ts +288 -211
- package/dist/types/routes/management-api/keys.d.ts +16 -16
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/management-api/prompts.d.ts +8 -8
- package/dist/types/routes/management-api/resource-servers.d.ts +21 -8
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/rollouts.d.ts +261 -0
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-members-requests.test.d.ts +1 -0
- package/dist/types/routes/management-api/tenant-members.d.ts +155 -1
- package/dist/types/routes/management-api/tenant-operations.d.ts +17 -10
- package/dist/types/routes/management-api/tenants.d.ts +39 -13
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +20 -20
- package/dist/types/routes/proxy-control-plane/tenant-members.d.ts +11 -0
- package/dist/types/routes/scim/index.d.ts +1 -0
- package/dist/types/routes/universal-login/common.d.ts +26 -10
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- package/dist/types/routes/universal-login/screens/device-flow.d.ts +4 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +6 -1
- package/dist/types/tenant-members/request-notifier.d.ts +9 -0
- package/dist/types/tenant-members/request-notify.test.d.ts +1 -0
- package/dist/types/tenant-members/requests.d.ts +79 -0
- package/dist/types/tenant-members/requests.test.d.ts +1 -0
- package/dist/types/tenant-members/wire.d.ts +10 -0
- package/dist/types/types/AuthHeroConfig.d.ts +47 -1
- package/dist/types/types/Bindings.d.ts +2 -1
- package/dist/types/types/Variables.d.ts +8 -1
- package/dist/types/utils/field-encryption.d.ts +7 -0
- package/dist/types/utils/jwks.d.ts +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
+
import { Bindings, Variables } from "../../types";
|
|
3
|
+
export declare const rolloutRoutes: OpenAPIHono<{
|
|
4
|
+
Bindings: Bindings;
|
|
5
|
+
Variables: Variables;
|
|
6
|
+
}, {
|
|
7
|
+
"/": {
|
|
8
|
+
$get: {
|
|
9
|
+
input: {
|
|
10
|
+
query: {
|
|
11
|
+
page?: unknown;
|
|
12
|
+
per_page?: unknown;
|
|
13
|
+
kind?: "upgrade" | "backup" | "reseed" | "config-sync" | undefined;
|
|
14
|
+
status?: "pending" | "failed" | "paused" | "canary" | "rolling" | "done" | undefined;
|
|
15
|
+
};
|
|
16
|
+
} & {
|
|
17
|
+
header: {
|
|
18
|
+
"tenant-id"?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
output: {
|
|
22
|
+
rollouts: {
|
|
23
|
+
kind: "upgrade" | "backup" | "reseed" | "config-sync";
|
|
24
|
+
wave_size: number;
|
|
25
|
+
id: string;
|
|
26
|
+
status: "pending" | "failed" | "paused" | "canary" | "rolling" | "done";
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
target_worker_version?: string | null | undefined;
|
|
30
|
+
target_database_version?: string | null | undefined;
|
|
31
|
+
canary_tenant_ids?: string[] | null | undefined;
|
|
32
|
+
filter?: {
|
|
33
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
34
|
+
} | null | undefined;
|
|
35
|
+
initiated_by?: string | null | undefined;
|
|
36
|
+
config?: {
|
|
37
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
38
|
+
} | null | undefined;
|
|
39
|
+
finished_at?: string | null | undefined;
|
|
40
|
+
paused_reason?: string | null | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
start: number;
|
|
43
|
+
limit: number;
|
|
44
|
+
length: number;
|
|
45
|
+
};
|
|
46
|
+
outputFormat: "json";
|
|
47
|
+
status: 200;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
} & {
|
|
51
|
+
"/:id": {
|
|
52
|
+
$get: {
|
|
53
|
+
input: {
|
|
54
|
+
param: {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
} & {
|
|
58
|
+
header: {
|
|
59
|
+
"tenant-id"?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
output: {};
|
|
63
|
+
outputFormat: string;
|
|
64
|
+
status: 404;
|
|
65
|
+
} | {
|
|
66
|
+
input: {
|
|
67
|
+
param: {
|
|
68
|
+
id: string;
|
|
69
|
+
};
|
|
70
|
+
} & {
|
|
71
|
+
header: {
|
|
72
|
+
"tenant-id"?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
output: {
|
|
76
|
+
kind: "upgrade" | "backup" | "reseed" | "config-sync";
|
|
77
|
+
wave_size: number;
|
|
78
|
+
id: string;
|
|
79
|
+
status: "pending" | "failed" | "paused" | "canary" | "rolling" | "done";
|
|
80
|
+
created_at: string;
|
|
81
|
+
updated_at: string;
|
|
82
|
+
summary: {
|
|
83
|
+
total: number;
|
|
84
|
+
by_status: {
|
|
85
|
+
[x: string]: number;
|
|
86
|
+
};
|
|
87
|
+
by_wave: {
|
|
88
|
+
wave: number;
|
|
89
|
+
total: number;
|
|
90
|
+
by_status: {
|
|
91
|
+
[x: string]: number;
|
|
92
|
+
};
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
target_worker_version?: string | null | undefined;
|
|
96
|
+
target_database_version?: string | null | undefined;
|
|
97
|
+
canary_tenant_ids?: string[] | null | undefined;
|
|
98
|
+
filter?: {
|
|
99
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
100
|
+
} | null | undefined;
|
|
101
|
+
initiated_by?: string | null | undefined;
|
|
102
|
+
config?: {
|
|
103
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
104
|
+
} | null | undefined;
|
|
105
|
+
finished_at?: string | null | undefined;
|
|
106
|
+
paused_reason?: string | null | undefined;
|
|
107
|
+
};
|
|
108
|
+
outputFormat: "json";
|
|
109
|
+
status: 200;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
} & {
|
|
113
|
+
"/": {
|
|
114
|
+
$post: {
|
|
115
|
+
input: {
|
|
116
|
+
header: {
|
|
117
|
+
"tenant-id"?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
} & {
|
|
120
|
+
json: {
|
|
121
|
+
root_tenant_id?: string | undefined;
|
|
122
|
+
tenant_ids?: string[] | undefined;
|
|
123
|
+
canary?: number | undefined;
|
|
124
|
+
waves?: number[] | undefined;
|
|
125
|
+
failure_threshold?: number | undefined;
|
|
126
|
+
max_concurrent?: number | undefined;
|
|
127
|
+
dry_run?: boolean | undefined;
|
|
128
|
+
force?: boolean | undefined;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
output: {
|
|
132
|
+
kind: "upgrade" | "backup" | "reseed" | "config-sync";
|
|
133
|
+
wave_size: number;
|
|
134
|
+
id: string;
|
|
135
|
+
status: "pending" | "failed" | "paused" | "canary" | "rolling" | "done";
|
|
136
|
+
created_at: string;
|
|
137
|
+
updated_at: string;
|
|
138
|
+
target_worker_version?: string | null | undefined;
|
|
139
|
+
target_database_version?: string | null | undefined;
|
|
140
|
+
canary_tenant_ids?: string[] | null | undefined;
|
|
141
|
+
filter?: {
|
|
142
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
143
|
+
} | null | undefined;
|
|
144
|
+
initiated_by?: string | null | undefined;
|
|
145
|
+
config?: {
|
|
146
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
147
|
+
} | null | undefined;
|
|
148
|
+
finished_at?: string | null | undefined;
|
|
149
|
+
paused_reason?: string | null | undefined;
|
|
150
|
+
};
|
|
151
|
+
outputFormat: "json";
|
|
152
|
+
status: 201;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
} & {
|
|
156
|
+
"/:id/pause": {
|
|
157
|
+
$post: {
|
|
158
|
+
input: {
|
|
159
|
+
param: {
|
|
160
|
+
id: string;
|
|
161
|
+
};
|
|
162
|
+
} & {
|
|
163
|
+
header: {
|
|
164
|
+
"tenant-id"?: string | undefined;
|
|
165
|
+
};
|
|
166
|
+
} & {
|
|
167
|
+
json: {
|
|
168
|
+
reason?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
output: {};
|
|
172
|
+
outputFormat: string;
|
|
173
|
+
status: 404;
|
|
174
|
+
} | {
|
|
175
|
+
input: {
|
|
176
|
+
param: {
|
|
177
|
+
id: string;
|
|
178
|
+
};
|
|
179
|
+
} & {
|
|
180
|
+
header: {
|
|
181
|
+
"tenant-id"?: string | undefined;
|
|
182
|
+
};
|
|
183
|
+
} & {
|
|
184
|
+
json: {
|
|
185
|
+
reason?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
output: {
|
|
189
|
+
kind: "upgrade" | "backup" | "reseed" | "config-sync";
|
|
190
|
+
wave_size: number;
|
|
191
|
+
id: string;
|
|
192
|
+
status: "pending" | "failed" | "paused" | "canary" | "rolling" | "done";
|
|
193
|
+
created_at: string;
|
|
194
|
+
updated_at: string;
|
|
195
|
+
target_worker_version?: string | null | undefined;
|
|
196
|
+
target_database_version?: string | null | undefined;
|
|
197
|
+
canary_tenant_ids?: string[] | null | undefined;
|
|
198
|
+
filter?: {
|
|
199
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
200
|
+
} | null | undefined;
|
|
201
|
+
initiated_by?: string | null | undefined;
|
|
202
|
+
config?: {
|
|
203
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
204
|
+
} | null | undefined;
|
|
205
|
+
finished_at?: string | null | undefined;
|
|
206
|
+
paused_reason?: string | null | undefined;
|
|
207
|
+
};
|
|
208
|
+
outputFormat: "json";
|
|
209
|
+
status: 200;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
} & {
|
|
213
|
+
"/:id/resume": {
|
|
214
|
+
$post: {
|
|
215
|
+
input: {
|
|
216
|
+
param: {
|
|
217
|
+
id: string;
|
|
218
|
+
};
|
|
219
|
+
} & {
|
|
220
|
+
header: {
|
|
221
|
+
"tenant-id"?: string | undefined;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
output: {};
|
|
225
|
+
outputFormat: string;
|
|
226
|
+
status: 404;
|
|
227
|
+
} | {
|
|
228
|
+
input: {
|
|
229
|
+
param: {
|
|
230
|
+
id: string;
|
|
231
|
+
};
|
|
232
|
+
} & {
|
|
233
|
+
header: {
|
|
234
|
+
"tenant-id"?: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
output: {
|
|
238
|
+
kind: "upgrade" | "backup" | "reseed" | "config-sync";
|
|
239
|
+
wave_size: number;
|
|
240
|
+
id: string;
|
|
241
|
+
status: "pending" | "failed" | "paused" | "canary" | "rolling" | "done";
|
|
242
|
+
created_at: string;
|
|
243
|
+
updated_at: string;
|
|
244
|
+
target_worker_version?: string | null | undefined;
|
|
245
|
+
target_database_version?: string | null | undefined;
|
|
246
|
+
canary_tenant_ids?: string[] | null | undefined;
|
|
247
|
+
filter?: {
|
|
248
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
249
|
+
} | null | undefined;
|
|
250
|
+
initiated_by?: string | null | undefined;
|
|
251
|
+
config?: {
|
|
252
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
253
|
+
} | null | undefined;
|
|
254
|
+
finished_at?: string | null | undefined;
|
|
255
|
+
paused_reason?: string | null | undefined;
|
|
256
|
+
};
|
|
257
|
+
outputFormat: "json";
|
|
258
|
+
status: 200;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
}, "/">;
|
|
@@ -8,8 +8,8 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
8
8
|
$get: {
|
|
9
9
|
input: {
|
|
10
10
|
query: {
|
|
11
|
-
include_password_hashes?: "
|
|
12
|
-
gzip?: "
|
|
11
|
+
include_password_hashes?: "false" | "true" | undefined;
|
|
12
|
+
gzip?: "false" | "true" | undefined;
|
|
13
13
|
};
|
|
14
14
|
} & {
|
|
15
15
|
header: {
|
|
@@ -22,8 +22,8 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
query: {
|
|
25
|
-
include_password_hashes?: "
|
|
26
|
-
gzip?: "
|
|
25
|
+
include_password_hashes?: "false" | "true" | undefined;
|
|
26
|
+
gzip?: "false" | "true" | undefined;
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
29
|
header: {
|
|
@@ -42,7 +42,7 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
42
42
|
$post: {
|
|
43
43
|
input: {
|
|
44
44
|
query: {
|
|
45
|
-
include_password_hashes?: "
|
|
45
|
+
include_password_hashes?: "false" | "true" | undefined;
|
|
46
46
|
};
|
|
47
47
|
} & {
|
|
48
48
|
header: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import { OpenAPIHono } from "@hono/zod-openapi";
|
|
|
2
2
|
import { Context } from "hono";
|
|
3
3
|
import { Bindings, Variables } from "../../types";
|
|
4
4
|
import { TenantMembersBackend, tenantMemberSchema } from "../../tenant-members/types";
|
|
5
|
+
import type { TenantMemberRequestsConfig } from "../../tenant-members/requests";
|
|
5
6
|
type Ctx = Context<{
|
|
6
7
|
Bindings: Bindings;
|
|
7
8
|
Variables: Variables;
|
|
@@ -16,10 +17,51 @@ export type GetTenantMembersBackend = (ctx: Ctx) => TenantMembersBackend | Promi
|
|
|
16
17
|
* {@link TenantMembersBackend}; this layer only pins the tenant to the token's
|
|
17
18
|
* org claim and shapes responses.
|
|
18
19
|
*/
|
|
19
|
-
export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBackend): OpenAPIHono<{
|
|
20
|
+
export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBackend, requests?: TenantMemberRequestsConfig): OpenAPIHono<{
|
|
20
21
|
Bindings: Bindings;
|
|
21
22
|
Variables: Variables;
|
|
22
23
|
}, {
|
|
24
|
+
"/requests": {
|
|
25
|
+
$get: {
|
|
26
|
+
input: {
|
|
27
|
+
query: {
|
|
28
|
+
status?: "pending" | "failed" | "succeeded" | undefined;
|
|
29
|
+
page?: unknown;
|
|
30
|
+
per_page?: unknown;
|
|
31
|
+
};
|
|
32
|
+
} & {
|
|
33
|
+
header: {
|
|
34
|
+
"tenant-id"?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
output: {
|
|
38
|
+
requests: {
|
|
39
|
+
kind: "invite" | "add_members" | "remove_members" | "assign_roles" | "remove_roles" | "revoke_invitation";
|
|
40
|
+
requested_by: string;
|
|
41
|
+
payload: {
|
|
42
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
43
|
+
};
|
|
44
|
+
id: string;
|
|
45
|
+
tenant_id: string;
|
|
46
|
+
status: "pending" | "failed" | "succeeded";
|
|
47
|
+
created_at: string;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
result?: {
|
|
50
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
51
|
+
} | null | undefined;
|
|
52
|
+
error?: string | null | undefined;
|
|
53
|
+
notified_at?: string | null | undefined;
|
|
54
|
+
finished_at?: string | null | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
start: number;
|
|
57
|
+
limit: number;
|
|
58
|
+
length: number;
|
|
59
|
+
};
|
|
60
|
+
outputFormat: "json";
|
|
61
|
+
status: 200;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
23
65
|
"/roles": {
|
|
24
66
|
$get: {
|
|
25
67
|
input: {
|
|
@@ -138,6 +180,30 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
138
180
|
};
|
|
139
181
|
outputFormat: "json";
|
|
140
182
|
status: 201;
|
|
183
|
+
} | {
|
|
184
|
+
input: {
|
|
185
|
+
header: {
|
|
186
|
+
"tenant-id"?: string | undefined;
|
|
187
|
+
};
|
|
188
|
+
} & {
|
|
189
|
+
json: {
|
|
190
|
+
invitee: {
|
|
191
|
+
email: string;
|
|
192
|
+
};
|
|
193
|
+
inviter?: {
|
|
194
|
+
name?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
roles?: string[] | undefined;
|
|
197
|
+
send_invitation_email?: boolean | undefined;
|
|
198
|
+
ttl_sec?: number | undefined;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
output: {
|
|
202
|
+
id: string;
|
|
203
|
+
status: "pending" | "failed" | "succeeded";
|
|
204
|
+
};
|
|
205
|
+
outputFormat: "json";
|
|
206
|
+
status: 202;
|
|
141
207
|
};
|
|
142
208
|
};
|
|
143
209
|
} & {
|
|
@@ -155,6 +221,22 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
155
221
|
output: {};
|
|
156
222
|
outputFormat: string;
|
|
157
223
|
status: 204;
|
|
224
|
+
} | {
|
|
225
|
+
input: {
|
|
226
|
+
param: {
|
|
227
|
+
invitation_id: string;
|
|
228
|
+
};
|
|
229
|
+
} & {
|
|
230
|
+
header: {
|
|
231
|
+
"tenant-id"?: string | undefined;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
output: {
|
|
235
|
+
id: string;
|
|
236
|
+
status: "pending" | "failed" | "succeeded";
|
|
237
|
+
};
|
|
238
|
+
outputFormat: "json";
|
|
239
|
+
status: 202;
|
|
158
240
|
};
|
|
159
241
|
};
|
|
160
242
|
} & {
|
|
@@ -212,6 +294,22 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
212
294
|
output: {};
|
|
213
295
|
outputFormat: string;
|
|
214
296
|
status: 204;
|
|
297
|
+
} | {
|
|
298
|
+
input: {
|
|
299
|
+
header: {
|
|
300
|
+
"tenant-id"?: string | undefined;
|
|
301
|
+
};
|
|
302
|
+
} & {
|
|
303
|
+
json: {
|
|
304
|
+
user_ids: string[];
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
output: {
|
|
308
|
+
id: string;
|
|
309
|
+
status: "pending" | "failed" | "succeeded";
|
|
310
|
+
};
|
|
311
|
+
outputFormat: "json";
|
|
312
|
+
status: 202;
|
|
215
313
|
};
|
|
216
314
|
};
|
|
217
315
|
} & {
|
|
@@ -229,6 +327,22 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
229
327
|
output: {};
|
|
230
328
|
outputFormat: string;
|
|
231
329
|
status: 204;
|
|
330
|
+
} | {
|
|
331
|
+
input: {
|
|
332
|
+
header: {
|
|
333
|
+
"tenant-id"?: string | undefined;
|
|
334
|
+
};
|
|
335
|
+
} & {
|
|
336
|
+
json: {
|
|
337
|
+
user_ids: string[];
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
output: {
|
|
341
|
+
id: string;
|
|
342
|
+
status: "pending" | "failed" | "succeeded";
|
|
343
|
+
};
|
|
344
|
+
outputFormat: "json";
|
|
345
|
+
status: 202;
|
|
232
346
|
};
|
|
233
347
|
};
|
|
234
348
|
} & {
|
|
@@ -277,6 +391,26 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
277
391
|
output: {};
|
|
278
392
|
outputFormat: string;
|
|
279
393
|
status: 204;
|
|
394
|
+
} | {
|
|
395
|
+
input: {
|
|
396
|
+
param: {
|
|
397
|
+
user_id: string;
|
|
398
|
+
};
|
|
399
|
+
} & {
|
|
400
|
+
header: {
|
|
401
|
+
"tenant-id"?: string | undefined;
|
|
402
|
+
};
|
|
403
|
+
} & {
|
|
404
|
+
json: {
|
|
405
|
+
roles: string[];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
output: {
|
|
409
|
+
id: string;
|
|
410
|
+
status: "pending" | "failed" | "succeeded";
|
|
411
|
+
};
|
|
412
|
+
outputFormat: "json";
|
|
413
|
+
status: 202;
|
|
280
414
|
};
|
|
281
415
|
};
|
|
282
416
|
} & {
|
|
@@ -298,6 +432,26 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
298
432
|
output: {};
|
|
299
433
|
outputFormat: string;
|
|
300
434
|
status: 204;
|
|
435
|
+
} | {
|
|
436
|
+
input: {
|
|
437
|
+
param: {
|
|
438
|
+
user_id: string;
|
|
439
|
+
};
|
|
440
|
+
} & {
|
|
441
|
+
header: {
|
|
442
|
+
"tenant-id"?: string | undefined;
|
|
443
|
+
};
|
|
444
|
+
} & {
|
|
445
|
+
json: {
|
|
446
|
+
roles: string[];
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
output: {
|
|
450
|
+
id: string;
|
|
451
|
+
status: "pending" | "failed" | "succeeded";
|
|
452
|
+
};
|
|
453
|
+
outputFormat: "json";
|
|
454
|
+
status: 202;
|
|
301
455
|
};
|
|
302
456
|
};
|
|
303
457
|
}, "/">;
|
|
@@ -17,16 +17,16 @@ export declare const operationRoutes: OpenAPIHono<{
|
|
|
17
17
|
};
|
|
18
18
|
output: {
|
|
19
19
|
tenant_id: string | null;
|
|
20
|
-
kind: "
|
|
20
|
+
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
21
21
|
engine: string;
|
|
22
22
|
id: string;
|
|
23
|
-
status: "pending" | "failed" | "
|
|
23
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
24
24
|
created_at: string;
|
|
25
25
|
updated_at: string;
|
|
26
26
|
events: {
|
|
27
27
|
operation_id: string;
|
|
28
28
|
step: string;
|
|
29
|
-
outcome: "failed" | "succeeded" | "
|
|
29
|
+
outcome: "failed" | "succeeded" | "skipped" | "started" | "retried" | "reconciled";
|
|
30
30
|
attempt: number;
|
|
31
31
|
id: string;
|
|
32
32
|
created_at: string;
|
|
@@ -66,8 +66,9 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
66
66
|
query: {
|
|
67
67
|
page?: unknown;
|
|
68
68
|
per_page?: unknown;
|
|
69
|
-
kind?: "
|
|
70
|
-
status?: "pending" | "failed" | "
|
|
69
|
+
kind?: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request" | undefined;
|
|
70
|
+
status?: "pending" | "failed" | "succeeded" | "running" | "cancelled" | undefined;
|
|
71
|
+
rollout_id?: string | undefined;
|
|
71
72
|
};
|
|
72
73
|
} & {
|
|
73
74
|
header: {
|
|
@@ -77,10 +78,10 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
77
78
|
output: {
|
|
78
79
|
operations: {
|
|
79
80
|
tenant_id: string | null;
|
|
80
|
-
kind: "
|
|
81
|
+
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
81
82
|
engine: string;
|
|
82
83
|
id: string;
|
|
83
|
-
status: "pending" | "failed" | "
|
|
84
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
84
85
|
created_at: string;
|
|
85
86
|
updated_at: string;
|
|
86
87
|
rollout_id?: string | null | undefined;
|
|
@@ -117,15 +118,21 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
117
118
|
};
|
|
118
119
|
} & {
|
|
119
120
|
json: {
|
|
120
|
-
kind: "
|
|
121
|
+
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
122
|
+
input?: {
|
|
123
|
+
dry_run?: boolean | undefined;
|
|
124
|
+
force?: boolean | undefined;
|
|
125
|
+
prune?: boolean | undefined;
|
|
126
|
+
clean?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
121
128
|
};
|
|
122
129
|
};
|
|
123
130
|
output: {
|
|
124
131
|
tenant_id: string | null;
|
|
125
|
-
kind: "
|
|
132
|
+
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
126
133
|
engine: string;
|
|
127
134
|
id: string;
|
|
128
|
-
status: "pending" | "failed" | "
|
|
135
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
129
136
|
created_at: string;
|
|
130
137
|
updated_at: string;
|
|
131
138
|
rollout_id?: string | null | undefined;
|