@faiber/faiber-idp 0.3.0 → 0.5.1

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.
@@ -1,32 +1,34 @@
1
- import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
- /** Backend response type: response without a declared JSON model. */
3
+ /** Backend response type: api. */
4
4
  export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
5
  }
6
- /** Backend response type: response without a declared JSON model. */
6
+ /** Backend response type: api. */
7
7
  export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
8
8
  }
9
+ /** Backend response type: Value. */
10
+ export type OidcDiscoveryGetResponse = JsonValue;
9
11
  /** Backend response type: PermissionListResponse. */
10
12
  export interface AclPermissionsIndexGetResponseData extends JsonObject {
11
- "permissions": JsonValue[];
13
+ "permissions": BackendJson<"PermissionResponse">[];
12
14
  "services": string[];
13
15
  }
14
16
  export interface AclPermissionsIndexGetResponse extends ApiEnvelope<AclPermissionsIndexGetResponseData> {
15
17
  }
16
18
  /** Backend response type: RoleListResponse. */
17
19
  export interface AclRolesIndexGetResponseData extends JsonObject {
18
- "roles": JsonValue[];
20
+ "roles": BackendJson<"RoleResponse">[];
19
21
  }
20
22
  export interface AclRolesIndexGetResponse extends ApiEnvelope<AclRolesIndexGetResponseData> {
21
23
  }
22
24
  /** Backend request type: CreateRole. */
23
25
  export interface AclRolesCreatePostInput extends JsonObject {
24
26
  "name": string;
25
- "permissions": string[];
27
+ "permissions"?: string[];
26
28
  }
27
29
  /** Backend response type: RoleSingleResponse. */
28
30
  export interface AclRolesCreatePostResponseData extends JsonObject {
29
- "role": JsonValue;
31
+ "role": BackendJson<"RoleDetailResponse">;
30
32
  }
31
33
  export interface AclRolesCreatePostResponse extends ApiEnvelope<AclRolesCreatePostResponseData> {
32
34
  }
@@ -39,7 +41,7 @@ export interface AclRolesDeleteDeleteResponse extends ApiEnvelope<AclRolesDelete
39
41
  }
40
42
  /** Backend response type: RoleSingleResponse. */
41
43
  export interface AclRolesShowGetResponseData extends JsonObject {
42
- "role": JsonValue;
44
+ "role": BackendJson<"RoleDetailResponse">;
43
45
  }
44
46
  export interface AclRolesShowGetResponse extends ApiEnvelope<AclRolesShowGetResponseData> {
45
47
  }
@@ -49,7 +51,7 @@ export interface AclRolesUpdatePatchInput extends JsonObject {
49
51
  }
50
52
  /** Backend response type: RoleSingleResponse. */
51
53
  export interface AclRolesUpdatePatchResponseData extends JsonObject {
52
- "role": JsonValue;
54
+ "role": BackendJson<"RoleDetailResponse">;
53
55
  }
54
56
  export interface AclRolesUpdatePatchResponse extends ApiEnvelope<AclRolesUpdatePatchResponseData> {
55
57
  }
@@ -59,23 +61,83 @@ export interface AclRolesUpdatePutInput extends JsonObject {
59
61
  }
60
62
  /** Backend response type: RoleSingleResponse. */
61
63
  export interface AclRolesUpdatePutResponseData extends JsonObject {
62
- "role": JsonValue;
64
+ "role": BackendJson<"RoleDetailResponse">;
63
65
  }
64
66
  export interface AclRolesUpdatePutResponse extends ApiEnvelope<AclRolesUpdatePutResponseData> {
65
67
  }
66
68
  /** Backend request type: AccountTokenRequest. */
67
69
  export interface AuthLoginAccountPostInput extends JsonObject {
68
70
  "account": string;
69
- "device_id"?: string;
71
+ "device_id"?: string | null;
70
72
  }
71
- /** Backend response type: response without a declared JSON model. */
73
+ /** Backend response type: api. */
72
74
  export interface AuthLoginAccountPostResponse extends ApiEnvelope<JsonValue> {
73
75
  }
74
- /** Backend response type: response without a declared JSON model. */
76
+ /** Backend response type: AuthorityView. */
77
+ export interface IdentityAuthorityPublicShowGetResponseData extends JsonObject {
78
+ "mode": string;
79
+ "canonical_provider_id"?: string | null;
80
+ "canonical_provider_key"?: string | null;
81
+ "canonical_display_name"?: string | null;
82
+ "canonical_issuer"?: string | null;
83
+ "subject_policy": string;
84
+ "jit_provisioning": boolean;
85
+ "activated_at"?: string | null;
86
+ "last_discovery_at"?: string | null;
87
+ "last_login_at"?: string | null;
88
+ "last_logout_at"?: string | null;
89
+ "last_error"?: string | null;
90
+ "federated_session_count": number;
91
+ "rollout_enabled": boolean;
92
+ }
93
+ export interface IdentityAuthorityPublicShowGetResponse extends ApiEnvelope<IdentityAuthorityPublicShowGetResponseData> {
94
+ }
95
+ /** Backend query type: StartQuery. */
96
+ export interface CustomOauthStartGetQuery extends QueryParams {
97
+ "redirect"?: string | null;
98
+ "intent"?: string | null;
99
+ }
100
+ /** Backend response type: redirect. */
101
+ export type CustomOauthStartGetResponse = void;
102
+ /** Backend query type: CallbackQuery. */
103
+ export interface CustomOauthCallbackGetQuery extends QueryParams {
104
+ "code"?: string | null;
105
+ "state"?: string | null;
106
+ "error"?: string | null;
107
+ }
108
+ /** Backend response type: redirect. */
109
+ export type CustomOauthCallbackGetResponse = void;
110
+ /** Backend response type: APIEmptyResponse. */
111
+ export interface CustomOauthUnlinkDeleteResponseData extends JsonObject {
112
+ "status": string;
113
+ "message": string;
114
+ }
115
+ export type CustomOauthUnlinkDeleteResponse = CustomOauthUnlinkDeleteResponseData;
116
+ /** Backend response type: Vec<PublicProviderView>. */
117
+ export interface CustomOauthPublicProvidersGetResponseItem extends JsonObject {
118
+ "id": string;
119
+ "provider_key": string;
120
+ "display_name": string;
121
+ "icon_url"?: string | null;
122
+ }
123
+ export interface CustomOauthPublicProvidersGetResponse extends ApiEnvelope<CustomOauthPublicProvidersGetResponseItem[]> {
124
+ }
125
+ /** Backend response type: api. */
75
126
  export interface AuthGenerateOneTimeTokenRoutePostResponse extends ApiEnvelope<JsonValue> {
76
127
  }
128
+ /** Backend query type: BrowserHandoffQuery. */
129
+ export interface AuthBrowserHandoffGetQuery extends QueryParams {
130
+ "target": string;
131
+ "redirect": string;
132
+ }
133
+ /** Backend response type: api. */
134
+ export interface AuthBrowserHandoffGetResponse extends ApiEnvelope<JsonValue> {
135
+ }
77
136
  /** Backend response type: LinkedIdentitiesResponse. */
78
- export interface AuthListLinkedIdentitiesGetResponse extends ApiEnvelope<JsonValue> {
137
+ export interface AuthListLinkedIdentitiesGetResponseData extends JsonObject {
138
+ "identities": BackendJson<"LinkedIdentityItem">[];
139
+ }
140
+ export interface AuthListLinkedIdentitiesGetResponse extends ApiEnvelope<AuthListLinkedIdentitiesGetResponseData> {
79
141
  }
80
142
  /** Backend request type: PasswordTokenRequest. */
81
143
  export interface AuthLoginPostInput extends JsonObject {
@@ -84,31 +146,64 @@ export interface AuthLoginPostInput extends JsonObject {
84
146
  "password": string;
85
147
  "client_id": string;
86
148
  "client_secret": string;
87
- "device_id"?: string;
149
+ "device_id"?: string | null;
88
150
  }
89
- /** Backend response type: response without a declared JSON model. */
151
+ /** Backend response type: api. */
90
152
  export interface AuthLoginPostResponse extends ApiEnvelope<JsonValue> {
91
153
  }
92
- /** Backend response type: response without a declared JSON model. */
93
- export interface AuthOauthUnlinkDeleteResponse extends ApiEnvelope<JsonValue> {
154
+ /** Backend response type: api. */
155
+ export interface AuthLogoutGetResponse extends ApiEnvelope<JsonValue> {
94
156
  }
157
+ /** Backend query type: AuthorizeQuery. */
158
+ export interface AuthAuthorizeGetQuery extends QueryParams {
159
+ "response_type": string;
160
+ "client_id": string;
161
+ "redirect_uri": string;
162
+ "state": string;
163
+ "code_challenge": string;
164
+ "code_challenge_method": string;
165
+ }
166
+ /** Backend response type: redirect. */
167
+ export type AuthAuthorizeGetResponse = void;
168
+ /** Backend request type: TokenRequest. */
169
+ export interface AuthTokenPostInput extends JsonObject {
170
+ "grant_type": string;
171
+ "code": string;
172
+ "client_id": string;
173
+ "redirect_uri": string;
174
+ "code_verifier": string;
175
+ "device_id"?: string | null;
176
+ }
177
+ /** Backend response type: NativeTokenResponse. */
178
+ export interface AuthTokenPostResponseData extends JsonObject {
179
+ "access_token": string;
180
+ "refresh_token": string;
181
+ "token_type": BackendJson<"&'static str">;
182
+ "expires_in": number;
183
+ "scope": string;
184
+ }
185
+ export type AuthTokenPostResponse = AuthTokenPostResponseData;
186
+ /** Backend response type: APIEmptyResponse. */
187
+ export interface AuthOauthUnlinkDeleteResponseData extends JsonObject {
188
+ "status": string;
189
+ "message": string;
190
+ }
191
+ export type AuthOauthUnlinkDeleteResponse = AuthOauthUnlinkDeleteResponseData;
95
192
  /** Backend query type: OAuthStartQuery. */
96
193
  export interface AuthOauthStartGetQuery extends QueryParams {
97
- "redirect"?: string;
98
- "intent"?: string;
99
- }
100
- /** Backend response type: response without a declared JSON model. */
101
- export interface AuthOauthStartGetResponse extends ApiEnvelope<JsonValue> {
194
+ "redirect"?: string | null;
195
+ "intent"?: string | null;
102
196
  }
197
+ /** Backend response type: redirect. */
198
+ export type AuthOauthStartGetResponse = void;
103
199
  /** Backend query type: OAuthCallbackQuery. */
104
200
  export interface AuthOauthCallbackGetQuery extends QueryParams {
105
- "code"?: string;
106
- "state"?: string;
107
- "error"?: string;
108
- }
109
- /** Backend response type: response without a declared JSON model. */
110
- export interface AuthOauthCallbackGetResponse extends ApiEnvelope<JsonValue> {
201
+ "code"?: string | null;
202
+ "state"?: string | null;
203
+ "error"?: string | null;
111
204
  }
205
+ /** Backend response type: redirect. */
206
+ export type AuthOauthCallbackGetResponse = void;
112
207
  /** Backend response type: OAuthProvidersPublicResponse. */
113
208
  export interface AuthOauthProvidersGetResponseData extends JsonObject {
114
209
  "providers": string[];
@@ -122,31 +217,50 @@ export interface AuthOtpLoginPostInput extends JsonObject {
122
217
  "otp_code": string;
123
218
  "client_id": string;
124
219
  "client_secret": string;
125
- "device_id"?: string;
220
+ "device_id"?: string | null;
126
221
  }
127
- /** Backend response type: response without a declared JSON model. */
222
+ /** Backend response type: api. */
128
223
  export interface AuthOtpLoginPostResponse extends ApiEnvelope<JsonValue> {
129
224
  }
130
- /** Backend response type: response without a declared JSON model. */
225
+ /** Backend response type: api. */
131
226
  export interface AuthRefreshTokenGetResponse extends ApiEnvelope<JsonValue> {
132
227
  }
133
- /** Backend response type: response without a declared JSON model. */
228
+ /** Backend response type: api. */
134
229
  export interface AuthGenerateSecureOneTimeTokenRoutePostResponse extends ApiEnvelope<JsonValue> {
135
230
  }
231
+ /** Backend response type: Vec<SessionResponse>. */
232
+ export interface AuthListSessionsGetResponseItem extends JsonObject {
233
+ "id": string;
234
+ "client": BackendJson<"SessionClientResponse">;
235
+ "browser": string;
236
+ "operating_system": string;
237
+ "device_id"?: string | null;
238
+ "user_agent"?: string | null;
239
+ "ip_address"?: string | null;
240
+ "ip_address_v6"?: string | null;
241
+ "created_at": string;
242
+ "last_accessed"?: string | null;
243
+ "is_current": boolean;
244
+ }
245
+ export interface AuthListSessionsGetResponse extends ApiEnvelope<AuthListSessionsGetResponseItem[]> {
246
+ }
247
+ /** Backend response type: APIEmptyResponse. */
248
+ export interface AuthDeleteSessionDeleteResponseData extends JsonObject {
249
+ "status": string;
250
+ "message": string;
251
+ }
252
+ export type AuthDeleteSessionDeleteResponse = AuthDeleteSessionDeleteResponseData;
136
253
  /** Backend query type: TokenQuery. */
137
254
  export interface AuthLoginTokenGetQuery extends QueryParams {
138
255
  "token": string;
139
256
  "redirect": string;
140
257
  }
141
- /** Backend response type: response without a declared JSON model. */
258
+ /** Backend response type: api. */
142
259
  export interface AuthLoginTokenGetResponse extends ApiEnvelope<JsonValue> {
143
260
  }
144
- /** Backend response type: response without a declared JSON model. */
261
+ /** Backend response type: raw-response. */
145
262
  export interface AuthValidateGetResponse extends ApiEnvelope<JsonValue> {
146
263
  }
147
- /** Backend response type: response without a declared JSON model. */
148
- export interface AuthLogoutGetResponse extends ApiEnvelope<JsonValue> {
149
- }
150
264
  /** Backend request type: PasswordTokenRequest. */
151
265
  export interface AuthLoginWebPostInput extends JsonObject {
152
266
  "grant_type": string;
@@ -154,44 +268,413 @@ export interface AuthLoginWebPostInput extends JsonObject {
154
268
  "password": string;
155
269
  "client_id": string;
156
270
  "client_secret": string;
157
- "device_id"?: string;
271
+ "device_id"?: string | null;
158
272
  }
159
- /** Backend response type: response without a declared JSON model. */
273
+ /** Backend response type: api. */
160
274
  export interface AuthLoginWebPostResponse extends ApiEnvelope<JsonValue> {
161
275
  }
276
+ /** Backend request type: EnrollmentInput. */
277
+ export interface IdentityAuthorityEnrollPostInput extends JsonObject {
278
+ "code": string;
279
+ "linked_issuer": string;
280
+ "redirect_uri": string;
281
+ "post_logout_redirect_uri": string;
282
+ }
283
+ /** Backend response type: EnrollmentView. */
284
+ export interface IdentityAuthorityEnrollPostResponseData extends JsonObject {
285
+ "client_id": string;
286
+ "client_secret": string;
287
+ }
288
+ export interface IdentityAuthorityEnrollPostResponse extends ApiEnvelope<IdentityAuthorityEnrollPostResponseData> {
289
+ }
162
290
  /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
163
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
291
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
292
+ }
293
+ /** Backend query type: AuthorizeQuery. */
294
+ export interface OidcAuthorizeGetQuery extends QueryParams {
295
+ "response_type": string;
296
+ "client_id": string;
297
+ "redirect_uri": string;
298
+ "state": string;
299
+ "code_challenge": string;
300
+ "code_challenge_method": string;
301
+ }
302
+ /** Backend response type: redirect. */
303
+ export type OidcAuthorizeGetResponse = void;
304
+ /** Backend request type: BackchannelLogoutForm. */
305
+ export interface OidcBackchannelLogoutPostInput extends JsonObject {
306
+ "logout_token": string;
307
+ }
308
+ /** Backend response type: no-content. */
309
+ export type OidcBackchannelLogoutPostResponse = void;
310
+ /** Backend request type: TokenOnly. */
311
+ export interface OidcIntrospectPostInput extends JsonObject {
312
+ "token": string;
313
+ "client_id"?: string | null;
314
+ "client_secret"?: string | null;
315
+ }
316
+ /** Backend response type: Value. */
317
+ export type OidcIntrospectPostResponse = JsonValue;
318
+ /** Backend response type: Value. */
319
+ export type OidcJwksGetResponse = JsonValue;
320
+ /** Backend response type: api. */
321
+ export interface OidcLogoutGetResponse extends ApiEnvelope<JsonValue> {
322
+ }
323
+ /** Backend response type: api. */
324
+ export interface OidcLogoutPostResponse extends ApiEnvelope<JsonValue> {
325
+ }
326
+ /** Backend request type: TokenOnly. */
327
+ export interface OidcRevokePostInput extends JsonObject {
328
+ "token": string;
329
+ "client_id"?: string | null;
330
+ "client_secret"?: string | null;
331
+ }
332
+ /** Backend response type: no-content. */
333
+ export type OidcRevokePostResponse = void;
334
+ /** Backend request type: TokenForm. */
335
+ export interface OidcTokenPostInput extends JsonObject {
336
+ "grant_type": string;
337
+ "code"?: string | null;
338
+ "redirect_uri"?: string | null;
339
+ "client_id"?: string | null;
340
+ "client_secret"?: string | null;
341
+ "code_verifier"?: string | null;
342
+ "refresh_token"?: string | null;
343
+ "device_id"?: string | null;
344
+ "subject_token"?: string | null;
345
+ "subject_token_type"?: string | null;
346
+ "scope"?: string | null;
347
+ }
348
+ /** Backend response type: TokenResponse. */
349
+ export interface OidcTokenPostResponseData extends JsonObject {
350
+ "access_token": string;
351
+ "refresh_token": string;
352
+ "expires_in": number;
353
+ "scope": string;
354
+ }
355
+ export type OidcTokenPostResponse = OidcTokenPostResponseData;
356
+ /** Backend response type: Value. */
357
+ export type OidcUserinfoGetResponse = JsonValue;
358
+ /** Backend response type: Value. */
359
+ export type OidcUserinfoPostResponse = JsonValue;
360
+ /** Backend response type: Vec<ProviderView>. */
361
+ export interface CustomOauthListGetResponseItem extends JsonObject {
362
+ "id": string;
363
+ "provider_key": string;
364
+ "display_name": string;
365
+ "protocol": string;
366
+ "issuer_url"?: string | null;
367
+ "authorization_url": string;
368
+ "token_url": string;
369
+ "userinfo_url": string;
370
+ "client_id": string;
371
+ "has_secret": boolean;
372
+ "scopes": string[];
373
+ "claim_mapping": JsonValue;
374
+ "extra_authorize_params": JsonValue;
375
+ "role_mapping": JsonValue;
376
+ "default_role_id"?: string | null;
377
+ "icon_url"?: string | null;
378
+ "display_order": number;
379
+ "enabled": boolean;
380
+ }
381
+ export interface CustomOauthListGetResponse extends ApiEnvelope<CustomOauthListGetResponseItem[]> {
382
+ }
383
+ /** Backend request type: ProviderInput. */
384
+ export interface CustomOauthCreatePostInput extends JsonObject {
385
+ "provider_key": string;
386
+ "display_name": string;
387
+ "protocol": string;
388
+ "issuer_url"?: string | null;
389
+ "authorization_url": string;
390
+ "token_url": string;
391
+ "userinfo_url": string;
392
+ "client_id": string;
393
+ "client_secret"?: string | null;
394
+ "scopes"?: string[];
395
+ "claim_mapping"?: JsonValue;
396
+ "extra_authorize_params"?: JsonValue;
397
+ "role_mapping"?: JsonValue;
398
+ "default_role_id"?: string | null;
399
+ "icon_url"?: string | null;
400
+ "display_order"?: number;
401
+ "enabled"?: boolean;
402
+ }
403
+ /** Backend response type: ProviderView. */
404
+ export interface CustomOauthCreatePostResponseData extends JsonObject {
405
+ "id": string;
406
+ "provider_key": string;
407
+ "display_name": string;
408
+ "protocol": string;
409
+ "issuer_url"?: string | null;
410
+ "authorization_url": string;
411
+ "token_url": string;
412
+ "userinfo_url": string;
413
+ "client_id": string;
414
+ "has_secret": boolean;
415
+ "scopes": string[];
416
+ "claim_mapping": JsonValue;
417
+ "extra_authorize_params": JsonValue;
418
+ "role_mapping": JsonValue;
419
+ "default_role_id"?: string | null;
420
+ "icon_url"?: string | null;
421
+ "display_order": number;
422
+ "enabled": boolean;
423
+ }
424
+ export interface CustomOauthCreatePostResponse extends ApiEnvelope<CustomOauthCreatePostResponseData> {
425
+ }
426
+ /** Backend response type: APIEmptyResponse. */
427
+ export interface CustomOauthRemoveDeleteResponseData extends JsonObject {
428
+ "status": string;
429
+ "message": string;
430
+ }
431
+ export type CustomOauthRemoveDeleteResponse = CustomOauthRemoveDeleteResponseData;
432
+ /** Backend request type: ProviderInput. */
433
+ export interface CustomOauthUpdatePutInput extends JsonObject {
434
+ "provider_key": string;
435
+ "display_name": string;
436
+ "protocol": string;
437
+ "issuer_url"?: string | null;
438
+ "authorization_url": string;
439
+ "token_url": string;
440
+ "userinfo_url": string;
441
+ "client_id": string;
442
+ "client_secret"?: string | null;
443
+ "scopes"?: string[];
444
+ "claim_mapping"?: JsonValue;
445
+ "extra_authorize_params"?: JsonValue;
446
+ "role_mapping"?: JsonValue;
447
+ "default_role_id"?: string | null;
448
+ "icon_url"?: string | null;
449
+ "display_order"?: number;
450
+ "enabled"?: boolean;
451
+ }
452
+ /** Backend response type: ProviderView. */
453
+ export interface CustomOauthUpdatePutResponseData extends JsonObject {
454
+ "id": string;
455
+ "provider_key": string;
456
+ "display_name": string;
457
+ "protocol": string;
458
+ "issuer_url"?: string | null;
459
+ "authorization_url": string;
460
+ "token_url": string;
461
+ "userinfo_url": string;
462
+ "client_id": string;
463
+ "has_secret": boolean;
464
+ "scopes": string[];
465
+ "claim_mapping": JsonValue;
466
+ "extra_authorize_params": JsonValue;
467
+ "role_mapping": JsonValue;
468
+ "default_role_id"?: string | null;
469
+ "icon_url"?: string | null;
470
+ "display_order": number;
471
+ "enabled": boolean;
472
+ }
473
+ export interface CustomOauthUpdatePutResponse extends ApiEnvelope<CustomOauthUpdatePutResponseData> {
474
+ }
475
+ /** Backend response type: AuthorityView. */
476
+ export interface IdentityAuthorityAdminShowGetResponseData extends JsonObject {
477
+ "mode": string;
478
+ "canonical_provider_id"?: string | null;
479
+ "canonical_provider_key"?: string | null;
480
+ "canonical_display_name"?: string | null;
481
+ "canonical_issuer"?: string | null;
482
+ "subject_policy": string;
483
+ "jit_provisioning": boolean;
484
+ "activated_at"?: string | null;
485
+ "last_discovery_at"?: string | null;
486
+ "last_login_at"?: string | null;
487
+ "last_logout_at"?: string | null;
488
+ "last_error"?: string | null;
489
+ "federated_session_count": number;
490
+ "rollout_enabled": boolean;
491
+ }
492
+ export interface IdentityAuthorityAdminShowGetResponse extends ApiEnvelope<IdentityAuthorityAdminShowGetResponseData> {
493
+ }
494
+ /** Backend request type: UpdateAuthority. */
495
+ export interface IdentityAuthorityUpdatePutInput extends JsonObject {
496
+ "mode": string;
497
+ "canonical_provider_id"?: string | null;
498
+ "jit_provisioning"?: boolean;
499
+ }
500
+ /** Backend response type: AuthorityView. */
501
+ export interface IdentityAuthorityUpdatePutResponseData extends JsonObject {
502
+ "mode": string;
503
+ "canonical_provider_id"?: string | null;
504
+ "canonical_provider_key"?: string | null;
505
+ "canonical_display_name"?: string | null;
506
+ "canonical_issuer"?: string | null;
507
+ "subject_policy": string;
508
+ "jit_provisioning": boolean;
509
+ "activated_at"?: string | null;
510
+ "last_discovery_at"?: string | null;
511
+ "last_login_at"?: string | null;
512
+ "last_logout_at"?: string | null;
513
+ "last_error"?: string | null;
514
+ "federated_session_count": number;
515
+ "rollout_enabled": boolean;
516
+ }
517
+ export interface IdentityAuthorityUpdatePutResponse extends ApiEnvelope<IdentityAuthorityUpdatePutResponseData> {
518
+ }
519
+ /** Backend request type: DiscoverInput. */
520
+ export interface IdentityAuthorityDiscoverPostInput extends JsonObject {
521
+ "issuer_url": string;
522
+ }
523
+ /** Backend response type: DiscoveryView. */
524
+ export interface IdentityAuthorityDiscoverPostResponseData extends JsonObject {
525
+ "issuer": string;
526
+ "authorization_endpoint": string;
527
+ "token_endpoint": string;
528
+ "userinfo_endpoint": string;
529
+ "jwks_uri": string;
530
+ "end_session_endpoint"?: string | null;
531
+ "backchannel_logout_supported": boolean;
532
+ }
533
+ export interface IdentityAuthorityDiscoverPostResponse extends ApiEnvelope<IdentityAuthorityDiscoverPostResponseData> {
534
+ }
535
+ /** Backend request type: PairCanonicalInput. */
536
+ export interface IdentityAuthorityPairCanonicalPostInput extends JsonObject {
537
+ "canonical_issuer": string;
538
+ "pairing_code": string;
539
+ }
540
+ /** Backend response type: AuthorityView. */
541
+ export interface IdentityAuthorityPairCanonicalPostResponseData extends JsonObject {
542
+ "mode": string;
543
+ "canonical_provider_id"?: string | null;
544
+ "canonical_provider_key"?: string | null;
545
+ "canonical_display_name"?: string | null;
546
+ "canonical_issuer"?: string | null;
547
+ "subject_policy": string;
548
+ "jit_provisioning": boolean;
549
+ "activated_at"?: string | null;
550
+ "last_discovery_at"?: string | null;
551
+ "last_login_at"?: string | null;
552
+ "last_logout_at"?: string | null;
553
+ "last_error"?: string | null;
554
+ "federated_session_count": number;
555
+ "rollout_enabled": boolean;
556
+ }
557
+ export interface IdentityAuthorityPairCanonicalPostResponse extends ApiEnvelope<IdentityAuthorityPairCanonicalPostResponseData> {
558
+ }
559
+ /** Backend request type: PairingInvitationInput. */
560
+ export interface IdentityAuthorityCreatePairingInvitationPostInput extends JsonObject {
561
+ "linked_issuer": string;
562
+ }
563
+ /** Backend response type: PairingInvitationView. */
564
+ export interface IdentityAuthorityCreatePairingInvitationPostResponseData extends JsonObject {
565
+ "code": string;
566
+ "expires_at": string;
567
+ }
568
+ export interface IdentityAuthorityCreatePairingInvitationPostResponse extends ApiEnvelope<IdentityAuthorityCreatePairingInvitationPostResponseData> {
164
569
  }
165
570
  /** Backend response type: OAuthSettingsResponse. */
166
571
  export interface SettingsOauthSettingsShowGetResponseData extends JsonObject {
167
- "google": JsonValue;
168
- "github": JsonValue;
572
+ "google": BackendJson<"OAuthProviderAdminView">;
573
+ "github": BackendJson<"OAuthProviderAdminView">;
169
574
  }
170
575
  export interface SettingsOauthSettingsShowGetResponse extends ApiEnvelope<SettingsOauthSettingsShowGetResponseData> {
171
576
  }
172
577
  /** Backend request type: UpdateOAuthSettings. */
173
578
  export interface SettingsOauthSettingsUpdatePutInput extends JsonObject {
174
- "google": JsonValue;
175
- "github": JsonValue;
579
+ "google": BackendJson<"OAuthProviderUpdate">;
580
+ "github": BackendJson<"OAuthProviderUpdate">;
176
581
  }
177
582
  /** Backend response type: OAuthSettingsResponse. */
178
583
  export interface SettingsOauthSettingsUpdatePutResponseData extends JsonObject {
179
- "google": JsonValue;
180
- "github": JsonValue;
584
+ "google": BackendJson<"OAuthProviderAdminView">;
585
+ "github": BackendJson<"OAuthProviderAdminView">;
181
586
  }
182
587
  export interface SettingsOauthSettingsUpdatePutResponse extends ApiEnvelope<SettingsOauthSettingsUpdatePutResponseData> {
183
588
  }
589
+ /** Backend response type: Vec<ClientView>. */
590
+ export interface OauthClientsListGetResponseItem extends JsonObject {
591
+ "id": string;
592
+ "name": string;
593
+ "client_id": string;
594
+ "redirect_uris": string[];
595
+ "post_logout_redirect_uris": string[];
596
+ "grant_types": string[];
597
+ "scopes": string[];
598
+ "client_type": string;
599
+ "token_endpoint_auth_method": string;
600
+ "trusted": boolean;
601
+ "status": number;
602
+ }
603
+ export interface OauthClientsListGetResponse extends ApiEnvelope<OauthClientsListGetResponseItem[]> {
604
+ }
605
+ /** Backend request type: ClientInput. */
606
+ export interface OauthClientsCreatePostInput extends JsonObject {
607
+ "name": string;
608
+ "client_id": string;
609
+ "redirect_uris"?: string[];
610
+ "post_logout_redirect_uris"?: string[];
611
+ "grant_types"?: string[];
612
+ "scopes"?: string[];
613
+ "client_type": string;
614
+ "token_endpoint_auth_method": string;
615
+ "trusted"?: boolean;
616
+ "status"?: number;
617
+ }
618
+ /** Backend response type: ClientCreated. */
619
+ export interface OauthClientsCreatePostResponseData extends JsonObject {
620
+ "client": BackendJson<"ClientView">;
621
+ "client_secret"?: string | null;
622
+ }
623
+ export interface OauthClientsCreatePostResponse extends ApiEnvelope<OauthClientsCreatePostResponseData> {
624
+ }
625
+ /** Backend response type: APIEmptyResponse. */
626
+ export interface OauthClientsRemoveDeleteResponseData extends JsonObject {
627
+ "status": string;
628
+ "message": string;
629
+ }
630
+ export type OauthClientsRemoveDeleteResponse = OauthClientsRemoveDeleteResponseData;
631
+ /** Backend request type: ClientInput. */
632
+ export interface OauthClientsUpdatePutInput extends JsonObject {
633
+ "name": string;
634
+ "client_id": string;
635
+ "redirect_uris"?: string[];
636
+ "post_logout_redirect_uris"?: string[];
637
+ "grant_types"?: string[];
638
+ "scopes"?: string[];
639
+ "client_type": string;
640
+ "token_endpoint_auth_method": string;
641
+ "trusted"?: boolean;
642
+ "status"?: number;
643
+ }
644
+ /** Backend response type: ClientView. */
645
+ export interface OauthClientsUpdatePutResponseData extends JsonObject {
646
+ "id": string;
647
+ "name": string;
648
+ "client_id": string;
649
+ "redirect_uris": string[];
650
+ "post_logout_redirect_uris": string[];
651
+ "grant_types": string[];
652
+ "scopes": string[];
653
+ "client_type": string;
654
+ "token_endpoint_auth_method": string;
655
+ "trusted": boolean;
656
+ "status": number;
657
+ }
658
+ export interface OauthClientsUpdatePutResponse extends ApiEnvelope<OauthClientsUpdatePutResponseData> {
659
+ }
660
+ /** Backend response type: ClientCreated. */
661
+ export interface OauthClientsRotatePostResponseData extends JsonObject {
662
+ "client": BackendJson<"ClientView">;
663
+ "client_secret"?: string | null;
664
+ }
665
+ export interface OauthClientsRotatePostResponse extends ApiEnvelope<OauthClientsRotatePostResponseData> {
666
+ }
184
667
  /** Backend query type: UsersQuery. */
185
668
  export interface UserUsersIndexGetQuery extends QueryParams {
186
- "search"?: string;
187
- "status"?: string;
188
- "role_id"?: string;
189
- "page"?: number;
190
- "per_page"?: number;
669
+ "search"?: string | null;
670
+ "status"?: string | null;
671
+ "role_id"?: string | null;
672
+ "page"?: number | null;
673
+ "per_page"?: number | null;
191
674
  }
192
675
  /** Backend response type: UserListResponse. */
193
676
  export interface UserUsersIndexGetResponseData extends JsonObject {
194
- "users": JsonValue[];
677
+ "users": BackendJson<"UserResource">[];
195
678
  "total": number;
196
679
  "page": number;
197
680
  "per_page": number;
@@ -200,97 +683,97 @@ export interface UserUsersIndexGetResponse extends ApiEnvelope<UserUsersIndexGet
200
683
  }
201
684
  /** Backend request type: CreateUser. */
202
685
  export interface UserUserCreatePostInput extends JsonObject {
203
- "phone"?: string;
204
- "email"?: string;
205
- "national_code"?: string;
206
- "password"?: string;
207
- "roles": string[];
686
+ "phone"?: string | null;
687
+ "email"?: string | null;
688
+ "national_code"?: string | null;
689
+ "password"?: string | null;
690
+ "roles"?: string[];
208
691
  }
209
692
  /** Backend response type: UserResponse. */
210
693
  export interface UserUserCreatePostResponseData extends JsonObject {
211
- "user": JsonValue;
694
+ "user": BackendJson<"UserResource">;
212
695
  }
213
696
  export interface UserUserCreatePostResponse extends ApiEnvelope<UserUserCreatePostResponseData> {
214
697
  }
215
698
  /** Backend response type: UserResponse. */
216
699
  export interface UserUserDeleteDeleteResponseData extends JsonObject {
217
- "user": JsonValue;
700
+ "user": BackendJson<"UserResource">;
218
701
  }
219
702
  export interface UserUserDeleteDeleteResponse extends ApiEnvelope<UserUserDeleteDeleteResponseData> {
220
703
  }
221
704
  /** Backend response type: UserResponse. */
222
705
  export interface UserUserFindGetResponseData extends JsonObject {
223
- "user": JsonValue;
706
+ "user": BackendJson<"UserResource">;
224
707
  }
225
708
  export interface UserUserFindGetResponse extends ApiEnvelope<UserUserFindGetResponseData> {
226
709
  }
227
710
  /** Backend request type: UpdateUser. */
228
711
  export interface UserUserUpdatePatchInput extends JsonObject {
229
- "phone"?: string;
230
- "email"?: string;
231
- "national_code"?: string;
712
+ "phone"?: string | null;
713
+ "email"?: string | null;
714
+ "national_code"?: string | null;
232
715
  }
233
716
  /** Backend response type: UserResponse. */
234
717
  export interface UserUserUpdatePatchResponseData extends JsonObject {
235
- "user": JsonValue;
718
+ "user": BackendJson<"UserResource">;
236
719
  }
237
720
  export interface UserUserUpdatePatchResponse extends ApiEnvelope<UserUserUpdatePatchResponseData> {
238
721
  }
239
722
  /** Backend request type: UpdateUser. */
240
723
  export interface UserUserUpdatePutInput extends JsonObject {
241
- "phone"?: string;
242
- "email"?: string;
243
- "national_code"?: string;
724
+ "phone"?: string | null;
725
+ "email"?: string | null;
726
+ "national_code"?: string | null;
244
727
  }
245
728
  /** Backend response type: UserResponse. */
246
729
  export interface UserUserUpdatePutResponseData extends JsonObject {
247
- "user": JsonValue;
730
+ "user": BackendJson<"UserResource">;
248
731
  }
249
732
  export interface UserUserUpdatePutResponse extends ApiEnvelope<UserUserUpdatePutResponseData> {
250
733
  }
251
734
  /** Backend request type: UpdateUserPassword. */
252
735
  export interface UserChangePasswordPatchInput extends JsonObject {
253
- "password"?: string;
736
+ "password"?: string | null;
254
737
  }
255
738
  /** Backend response type: UserResponse. */
256
739
  export interface UserChangePasswordPatchResponseData extends JsonObject {
257
- "user": JsonValue;
740
+ "user": BackendJson<"UserResource">;
258
741
  }
259
742
  export interface UserChangePasswordPatchResponse extends ApiEnvelope<UserChangePasswordPatchResponseData> {
260
743
  }
261
744
  /** Backend request type: UpdateUserPassword. */
262
745
  export interface UserChangePasswordPutInput extends JsonObject {
263
- "password"?: string;
746
+ "password"?: string | null;
264
747
  }
265
748
  /** Backend response type: UserResponse. */
266
749
  export interface UserChangePasswordPutResponseData extends JsonObject {
267
- "user": JsonValue;
750
+ "user": BackendJson<"UserResource">;
268
751
  }
269
752
  export interface UserChangePasswordPutResponse extends ApiEnvelope<UserChangePasswordPutResponseData> {
270
753
  }
271
754
  /** Backend request type: UpdateUserRoles. */
272
755
  export interface UserChangeRolesPatchInput extends JsonObject {
273
- "roles"?: string[];
756
+ "roles"?: string[] | null;
274
757
  }
275
758
  /** Backend response type: UserResponse. */
276
759
  export interface UserChangeRolesPatchResponseData extends JsonObject {
277
- "user": JsonValue;
760
+ "user": BackendJson<"UserResource">;
278
761
  }
279
762
  export interface UserChangeRolesPatchResponse extends ApiEnvelope<UserChangeRolesPatchResponseData> {
280
763
  }
281
764
  /** Backend request type: UpdateUserRoles. */
282
765
  export interface UserChangeRolesPutInput extends JsonObject {
283
- "roles"?: string[];
766
+ "roles"?: string[] | null;
284
767
  }
285
768
  /** Backend response type: UserResponse. */
286
769
  export interface UserChangeRolesPutResponseData extends JsonObject {
287
- "user": JsonValue;
770
+ "user": BackendJson<"UserResource">;
288
771
  }
289
772
  export interface UserChangeRolesPutResponse extends ApiEnvelope<UserChangeRolesPutResponseData> {
290
773
  }
291
774
  /** Backend response type: UserResponse. */
292
775
  export interface UserUserLogoutGetResponseData extends JsonObject {
293
- "user": JsonValue;
776
+ "user": BackendJson<"UserResource">;
294
777
  }
295
778
  export interface UserUserLogoutGetResponse extends ApiEnvelope<UserUserLogoutGetResponseData> {
296
779
  }
@@ -300,7 +783,7 @@ export interface UserUserSetStatusPatchInput extends JsonObject {
300
783
  }
301
784
  /** Backend response type: UserResponse. */
302
785
  export interface UserUserSetStatusPatchResponseData extends JsonObject {
303
- "user": JsonValue;
786
+ "user": BackendJson<"UserResource">;
304
787
  }
305
788
  export interface UserUserSetStatusPatchResponse extends ApiEnvelope<UserUserSetStatusPatchResponseData> {
306
789
  }
@@ -310,21 +793,31 @@ export interface UserUserSetStatusPutInput extends JsonObject {
310
793
  }
311
794
  /** Backend response type: UserResponse. */
312
795
  export interface UserUserSetStatusPutResponseData extends JsonObject {
313
- "user": JsonValue;
796
+ "user": BackendJson<"UserResource">;
314
797
  }
315
798
  export interface UserUserSetStatusPutResponse extends ApiEnvelope<UserUserSetStatusPutResponseData> {
316
799
  }
800
+ /** Backend query type: DirectoryQuery. */
801
+ export interface UserUsersDirectoryGetQuery extends QueryParams {
802
+ "search": string;
803
+ }
804
+ /** Backend response type: DirectoryUserListResponse. */
805
+ export interface UserUsersDirectoryGetResponseData extends JsonObject {
806
+ "users": BackendJson<"DirectoryUserResource">[];
807
+ }
808
+ export interface UserUsersDirectoryGetResponse extends ApiEnvelope<UserUsersDirectoryGetResponseData> {
809
+ }
317
810
  /** Backend request type: FullRegister. */
318
811
  export interface UserRegisterPostInput extends JsonObject {
319
- "phone"?: string;
320
- "email"?: string;
321
- "national_code"?: string;
322
- "role"?: string;
323
- "roles"?: string[];
812
+ "phone"?: string | null;
813
+ "email"?: string | null;
814
+ "national_code"?: string | null;
815
+ "role"?: string | null;
816
+ "roles"?: string[] | null;
324
817
  }
325
818
  /** Backend response type: FindUserResponse. */
326
819
  export interface UserRegisterPostResponseData extends JsonObject {
327
- "user": JsonValue;
820
+ "user": BackendJson<"RegisterResponseIdOnly">;
328
821
  }
329
822
  export interface UserRegisterPostResponse extends ApiEnvelope<UserRegisterPostResponseData> {
330
823
  }
@@ -335,32 +828,42 @@ export interface UserRegisterWithEmailPostInput extends JsonObject {
335
828
  /** Backend response type: RegisterResponse. */
336
829
  export interface UserRegisterWithEmailPostResponseData extends JsonObject {
337
830
  "user_id": string;
338
- "otp_sent": JsonValue;
831
+ "otp_sent": BackendJson<"OTPResult">;
339
832
  }
340
833
  export interface UserRegisterWithEmailPostResponse extends ApiEnvelope<UserRegisterWithEmailPostResponseData> {
341
834
  }
342
835
  /** Backend request type: PhoneRegister. */
343
836
  export interface UserRegisterWithPhonePostInput extends JsonObject {
344
837
  "phone": string;
345
- "role"?: string;
346
- "roles"?: string[];
838
+ "role"?: string | null;
839
+ "roles"?: string[] | null;
347
840
  }
348
841
  /** Backend response type: RegisterResponse. */
349
842
  export interface UserRegisterWithPhonePostResponseData extends JsonObject {
350
843
  "user_id": string;
351
- "otp_sent": JsonValue;
844
+ "otp_sent": BackendJson<"OTPResult">;
352
845
  }
353
846
  export interface UserRegisterWithPhonePostResponse extends ApiEnvelope<UserRegisterWithPhonePostResponseData> {
354
847
  }
848
+ /** Backend query type: RegistrationStatsQuery. */
849
+ export interface UserUsersRegistrationStatsGetQuery extends QueryParams {
850
+ "range"?: string | null;
851
+ }
852
+ /** Backend response type: RegistrationStatsResponse. */
853
+ export interface UserUsersRegistrationStatsGetResponseData extends JsonObject {
854
+ "points": BackendJson<"RegistrationStatsPoint">[];
855
+ }
856
+ export interface UserUsersRegistrationStatsGetResponse extends ApiEnvelope<UserUsersRegistrationStatsGetResponseData> {
857
+ }
355
858
  /** Backend response type: UserSelfResponse. */
356
859
  export interface UserUserFindSelfGetResponseData extends JsonObject {
357
860
  "id": string;
358
- "phone"?: string;
359
- "email"?: string;
360
- "national_code"?: string;
861
+ "phone"?: string | null;
862
+ "email"?: string | null;
863
+ "national_code"?: string | null;
361
864
  "status": number;
362
- "roles": JsonValue[];
363
- "permissions": JsonValue[];
865
+ "roles": BackendJson<"RoleResponse">[];
866
+ "permissions": BackendJson<"PermissionResponse">[];
364
867
  }
365
868
  export interface UserUserFindSelfGetResponse extends ApiEnvelope<UserUserFindSelfGetResponseData> {
366
869
  }