@epilot/sdk 2.20.38 → 2.20.39

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.
Files changed (135) hide show
  1. package/README.md +1 -0
  2. package/definitions/identity-runtime.json +1 -0
  3. package/definitions/identity.json +1546 -0
  4. package/dist/README-OSHX3IVR.cjs +7 -0
  5. package/dist/README-ZSJDIPZZ.js +7 -0
  6. package/dist/{_index-6FK4PV6Y.js → _index-UBUNWMRP.js} +3 -0
  7. package/dist/{_index-655GNTWT.cjs → _index-UWRY3DNX.cjs} +4 -1
  8. package/dist/apis/access-token.cjs +6 -6
  9. package/dist/apis/access-token.js +1 -1
  10. package/dist/apis/address-suggestions.cjs +6 -6
  11. package/dist/apis/address-suggestions.js +1 -1
  12. package/dist/apis/address.cjs +6 -6
  13. package/dist/apis/address.js +1 -1
  14. package/dist/apis/ai-agents.cjs +6 -6
  15. package/dist/apis/ai-agents.js +1 -1
  16. package/dist/apis/app.cjs +6 -6
  17. package/dist/apis/app.js +1 -1
  18. package/dist/apis/audit-logs.cjs +6 -6
  19. package/dist/apis/audit-logs.js +1 -1
  20. package/dist/apis/automation.cjs +6 -6
  21. package/dist/apis/automation.js +1 -1
  22. package/dist/apis/billing.cjs +6 -6
  23. package/dist/apis/billing.js +1 -1
  24. package/dist/apis/blueprint-manifest.cjs +6 -6
  25. package/dist/apis/blueprint-manifest.js +1 -1
  26. package/dist/apis/calendar.cjs +6 -6
  27. package/dist/apis/calendar.js +1 -1
  28. package/dist/apis/chat.cjs +6 -6
  29. package/dist/apis/chat.js +1 -1
  30. package/dist/apis/configuration-hub.cjs +6 -6
  31. package/dist/apis/configuration-hub.js +1 -1
  32. package/dist/apis/consent.cjs +6 -6
  33. package/dist/apis/consent.js +1 -1
  34. package/dist/apis/customer-portal.cjs +6 -6
  35. package/dist/apis/customer-portal.js +1 -1
  36. package/dist/apis/dashboard.cjs +6 -6
  37. package/dist/apis/dashboard.js +1 -1
  38. package/dist/apis/data-governance.cjs +6 -6
  39. package/dist/apis/data-governance.js +1 -1
  40. package/dist/apis/deduplication.cjs +6 -6
  41. package/dist/apis/deduplication.js +1 -1
  42. package/dist/apis/design.cjs +6 -6
  43. package/dist/apis/design.js +1 -1
  44. package/dist/apis/document.cjs +6 -6
  45. package/dist/apis/document.js +1 -1
  46. package/dist/apis/email-settings.cjs +6 -6
  47. package/dist/apis/email-settings.js +1 -1
  48. package/dist/apis/email-template.cjs +6 -6
  49. package/dist/apis/email-template.js +1 -1
  50. package/dist/apis/entity-mapping.cjs +6 -6
  51. package/dist/apis/entity-mapping.js +1 -1
  52. package/dist/apis/entity.cjs +6 -6
  53. package/dist/apis/entity.js +1 -1
  54. package/dist/apis/environments.cjs +6 -6
  55. package/dist/apis/environments.js +1 -1
  56. package/dist/apis/event-catalog.cjs +6 -6
  57. package/dist/apis/event-catalog.js +1 -1
  58. package/dist/apis/file.cjs +6 -6
  59. package/dist/apis/file.js +1 -1
  60. package/dist/apis/iban.cjs +6 -6
  61. package/dist/apis/iban.js +1 -1
  62. package/dist/apis/identity.cjs +38 -0
  63. package/dist/apis/identity.d.cts +18 -0
  64. package/dist/apis/identity.d.ts +18 -0
  65. package/dist/apis/identity.js +38 -0
  66. package/dist/apis/integration-toolkit.cjs +6 -6
  67. package/dist/apis/integration-toolkit.js +1 -1
  68. package/dist/apis/journey.cjs +6 -6
  69. package/dist/apis/journey.js +1 -1
  70. package/dist/apis/kanban.cjs +6 -6
  71. package/dist/apis/kanban.js +1 -1
  72. package/dist/apis/message.cjs +6 -6
  73. package/dist/apis/message.js +1 -1
  74. package/dist/apis/metering.cjs +6 -6
  75. package/dist/apis/metering.js +1 -1
  76. package/dist/apis/notes.cjs +6 -6
  77. package/dist/apis/notes.js +1 -1
  78. package/dist/apis/notification.cjs +6 -6
  79. package/dist/apis/notification.js +1 -1
  80. package/dist/apis/organization.cjs +6 -6
  81. package/dist/apis/organization.js +1 -1
  82. package/dist/apis/partner-directory.cjs +6 -6
  83. package/dist/apis/partner-directory.js +1 -1
  84. package/dist/apis/permissions.cjs +6 -6
  85. package/dist/apis/permissions.js +1 -1
  86. package/dist/apis/pricing-tier.cjs +6 -6
  87. package/dist/apis/pricing-tier.js +1 -1
  88. package/dist/apis/pricing.cjs +6 -6
  89. package/dist/apis/pricing.js +1 -1
  90. package/dist/apis/purpose.cjs +6 -6
  91. package/dist/apis/purpose.js +1 -1
  92. package/dist/apis/query.cjs +6 -6
  93. package/dist/apis/query.js +1 -1
  94. package/dist/apis/sandbox.cjs +6 -6
  95. package/dist/apis/sandbox.js +1 -1
  96. package/dist/apis/sharing.cjs +6 -6
  97. package/dist/apis/sharing.js +1 -1
  98. package/dist/apis/snapshot.cjs +6 -6
  99. package/dist/apis/snapshot.js +1 -1
  100. package/dist/apis/submission.cjs +6 -6
  101. package/dist/apis/submission.js +1 -1
  102. package/dist/apis/target.cjs +6 -6
  103. package/dist/apis/target.js +1 -1
  104. package/dist/apis/targeting.cjs +6 -6
  105. package/dist/apis/targeting.js +1 -1
  106. package/dist/apis/template-variables.cjs +6 -6
  107. package/dist/apis/template-variables.js +1 -1
  108. package/dist/apis/user.cjs +6 -6
  109. package/dist/apis/user.js +1 -1
  110. package/dist/apis/validation-rules.cjs +6 -6
  111. package/dist/apis/validation-rules.js +1 -1
  112. package/dist/apis/webhooks.cjs +6 -6
  113. package/dist/apis/webhooks.js +1 -1
  114. package/dist/apis/workflow-definition.cjs +6 -6
  115. package/dist/apis/workflow-definition.js +1 -1
  116. package/dist/apis/workflow.cjs +6 -6
  117. package/dist/apis/workflow.js +1 -1
  118. package/dist/chunk-3IBAPVLY.js +14 -0
  119. package/dist/{chunk-6KBVDEXV.js → chunk-A6FNV6JX.js} +4 -2
  120. package/dist/{chunk-H7SM2GBY.cjs → chunk-QSGVSIS7.cjs} +4 -2
  121. package/dist/chunk-RPWTWCDC.cjs +14 -0
  122. package/dist/identity-EG35NBZW.js +7 -0
  123. package/dist/identity-XMX3VFXR.cjs +7 -0
  124. package/dist/identity-runtime-57DQPQWX.cjs +5 -0
  125. package/dist/identity-runtime-PFM5KQWA.js +5 -0
  126. package/dist/identity.d-BBL0NI_O.d.cts +1153 -0
  127. package/dist/identity.d-BBL0NI_O.d.ts +1153 -0
  128. package/dist/index.cjs +23 -15
  129. package/dist/index.d.cts +52 -50
  130. package/dist/index.d.ts +52 -50
  131. package/dist/index.js +17 -9
  132. package/docs/identity.md +1279 -0
  133. package/package.json +10 -1
  134. package/dist/README-7F36AG5O.js +0 -7
  135. package/dist/README-I7JMAFA4.cjs +0 -7
@@ -0,0 +1,1153 @@
1
+ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from identity-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Parameters {
8
+ export interface AnyOtherQueryParameters {
9
+ [name: string]: any;
10
+ }
11
+ export type ClientIdPath = /**
12
+ * Opaque client identifier, unique within the issuer, never reused
13
+ * example:
14
+ * bf-prod-x7k2
15
+ */
16
+ Schemas.PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
17
+ export type ClientStatusQuery = Schemas.PartnerClientStatus;
18
+ export type CursorQuery = string;
19
+ export type OrgEnablementStatusQuery = Schemas.OrgEnablementStatus;
20
+ export type OrgIdPath = /**
21
+ * epilot organization id, an opaque case-sensitive string
22
+ * example:
23
+ * 739224
24
+ */
25
+ Schemas.OrgId /* ^[A-Za-z0-9_-]+$ */;
26
+ export type PartnerKeyQuery = string;
27
+ export type SizeQuery = number;
28
+ }
29
+ export interface PathParameters {
30
+ ClientIdPath?: Parameters.ClientIdPath;
31
+ OrgIdPath?: Parameters.OrgIdPath;
32
+ }
33
+ export interface QueryParameters {
34
+ AnyOtherQueryParameters?: Parameters.AnyOtherQueryParameters;
35
+ PartnerKeyQuery?: Parameters.PartnerKeyQuery;
36
+ ClientStatusQuery?: Parameters.ClientStatusQuery;
37
+ OrgEnablementStatusQuery?: Parameters.OrgEnablementStatusQuery;
38
+ SizeQuery?: Parameters.SizeQuery;
39
+ CursorQuery?: Parameters.CursorQuery;
40
+ }
41
+ namespace Responses {
42
+ export type BadRequest = Schemas.Error;
43
+ export type Conflict = Schemas.Error;
44
+ export type Forbidden = Schemas.Error;
45
+ export type NotFound = Schemas.Error;
46
+ export type Unauthorized = Schemas.Error;
47
+ }
48
+ namespace Schemas {
49
+ export interface AuthorizationPolicy {
50
+ mode?: "preauthorized";
51
+ population?: "all_current_org_members";
52
+ /**
53
+ * Must contain `openid` and be a subset of the client's `scopes_allowed`
54
+ */
55
+ allowed_scopes: [
56
+ Scope,
57
+ ...Scope[]
58
+ ];
59
+ /**
60
+ * Reference to the customer's approval evidence (ticket, signed order, contract clause)
61
+ */
62
+ customer_approval_ref: string;
63
+ approved_at: string; // date-time
64
+ version: number;
65
+ mandatory_claims: ("org_id")[];
66
+ recorded_by: string;
67
+ recorded_at: string; // date-time
68
+ }
69
+ export interface AuthorizationPolicyInput {
70
+ mode?: "preauthorized";
71
+ population?: "all_current_org_members";
72
+ /**
73
+ * Must contain `openid` and be a subset of the client's `scopes_allowed`
74
+ */
75
+ allowed_scopes: [
76
+ Scope,
77
+ ...Scope[]
78
+ ];
79
+ /**
80
+ * Reference to the customer's approval evidence (ticket, signed order, contract clause)
81
+ */
82
+ customer_approval_ref: string;
83
+ approved_at: string; // date-time
84
+ }
85
+ /**
86
+ * Partner-side environment this client belongs to
87
+ */
88
+ export type Environment = "dev" | "staging" | "production";
89
+ export interface Error {
90
+ /**
91
+ * example:
92
+ * 404
93
+ */
94
+ status: number;
95
+ /**
96
+ * example:
97
+ * Client not found
98
+ */
99
+ error: string;
100
+ /**
101
+ * Request validation problems (only on `400` from schema validation)
102
+ */
103
+ details?: {
104
+ [name: string]: any;
105
+ }[];
106
+ }
107
+ /**
108
+ * Absolute HTTPS URL without fragment
109
+ * example:
110
+ * https://partner.example.com/auth/callback
111
+ */
112
+ export type HttpsUri = string; // uri
113
+ export interface IdentitySession {
114
+ org_id: /**
115
+ * epilot organization id, an opaque case-sensitive string
116
+ * example:
117
+ * 739224
118
+ */
119
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
120
+ /**
121
+ * epilot user id of the session owner
122
+ */
123
+ user_id: string;
124
+ /**
125
+ * When the mirrored credential, and therefore the cookie, expires
126
+ */
127
+ expires_at: string; // date-time
128
+ }
129
+ export interface OrgEnablement {
130
+ client_id: /**
131
+ * Opaque client identifier, unique within the issuer, never reused
132
+ * example:
133
+ * bf-prod-x7k2
134
+ */
135
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
136
+ org_id: /**
137
+ * epilot organization id, an opaque case-sensitive string
138
+ * example:
139
+ * 739224
140
+ */
141
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
142
+ status: OrgEnablementStatus;
143
+ status_reason?: string;
144
+ authorization_policy: AuthorizationPolicy;
145
+ partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
146
+ created_at: string; // date-time
147
+ updated_at: string; // date-time
148
+ created_by?: string;
149
+ updated_by?: string;
150
+ }
151
+ export interface OrgEnablementCreate {
152
+ org_id: /**
153
+ * epilot organization id, an opaque case-sensitive string
154
+ * example:
155
+ * 739224
156
+ */
157
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
158
+ authorization_policy: AuthorizationPolicyInput;
159
+ partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
160
+ }
161
+ export interface OrgEnablementList {
162
+ results: OrgEnablement[];
163
+ }
164
+ export type OrgEnablementStatus = "active" | "suspended" | "revoked";
165
+ export interface OrgEnablementUpdate {
166
+ /**
167
+ * Current policy version, for compare-and-swap
168
+ */
169
+ expected_policy_version: number;
170
+ authorization_policy: AuthorizationPolicyInput;
171
+ partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
172
+ }
173
+ /**
174
+ * epilot organization id, an opaque case-sensitive string
175
+ * example:
176
+ * 739224
177
+ */
178
+ export type OrgId = string; // ^[A-Za-z0-9_-]+$
179
+ /**
180
+ * Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping.
181
+ */
182
+ export interface PartnerAccount {
183
+ id: string;
184
+ label?: string;
185
+ }
186
+ export interface PartnerClient {
187
+ client_id: /**
188
+ * Opaque client identifier, unique within the issuer, never reused
189
+ * example:
190
+ * bf-prod-x7k2
191
+ */
192
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
193
+ partner_key: string;
194
+ display_name: string;
195
+ description?: string;
196
+ environment: /* Partner-side environment this client belongs to */ Environment;
197
+ redirect_uris: /**
198
+ * Absolute HTTPS URL without fragment
199
+ * example:
200
+ * https://partner.example.com/auth/callback
201
+ */
202
+ HttpsUri /* uri */[];
203
+ sector_identifier_uri?: /**
204
+ * Absolute HTTPS URL without fragment
205
+ * example:
206
+ * https://partner.example.com/auth/callback
207
+ */
208
+ HttpsUri /* uri */;
209
+ initiate_login_uri?: /**
210
+ * Absolute HTTPS URL without fragment
211
+ * example:
212
+ * https://partner.example.com/auth/callback
213
+ */
214
+ HttpsUri /* uri */;
215
+ launch_target_prefixes?: string[];
216
+ token_endpoint_auth_method: "client_secret_basic";
217
+ grant_types: ("authorization_code")[];
218
+ scopes_allowed: Scope[];
219
+ status: PartnerClientStatus;
220
+ /**
221
+ * Operator-supplied reason for the last suspension or retirement
222
+ */
223
+ status_reason?: string;
224
+ config_version: number;
225
+ secret_rotated_at?: string; // date-time
226
+ /**
227
+ * Until when the previous secret still authenticates after a rotation
228
+ */
229
+ previous_secret_expires_at?: string; // date-time
230
+ created_at: string; // date-time
231
+ updated_at: string; // date-time
232
+ /**
233
+ * Admin-portal identity of the operator who created the client
234
+ */
235
+ created_by?: string;
236
+ updated_by?: string;
237
+ }
238
+ export interface PartnerClientCreate {
239
+ /**
240
+ * Stable key of the partner application, shared by its environments
241
+ * example:
242
+ * babelforce
243
+ */
244
+ partner_key: string; // ^[a-z0-9][a-z0-9-]*$
245
+ /**
246
+ * example:
247
+ * Babelforce
248
+ */
249
+ display_name: string;
250
+ description?: string;
251
+ environment: /* Partner-side environment this client belongs to */ Environment;
252
+ redirect_uris: [
253
+ /**
254
+ * Absolute HTTPS URL without fragment
255
+ * example:
256
+ * https://partner.example.com/auth/callback
257
+ */
258
+ HttpsUri /* uri */,
259
+ .../**
260
+ * Absolute HTTPS URL without fragment
261
+ * example:
262
+ * https://partner.example.com/auth/callback
263
+ */
264
+ HttpsUri /* uri */[]
265
+ ];
266
+ /**
267
+ * Optional. Pairwise sector for `sub` derivation. Required when the redirect URIs span
268
+ * more than one host, so one person keeps one `sub` at this partner.
269
+ *
270
+ * example:
271
+ * https://partner.example.com/auth/callback
272
+ */
273
+ sector_identifier_uri?: string; // uri
274
+ /**
275
+ * Where a login started from epilot should begin at the partner
276
+ * example:
277
+ * https://partner.example.com/auth/callback
278
+ */
279
+ initiate_login_uri?: string; // uri
280
+ /**
281
+ * Allowed prefixes for deep-link targets when a login is started from epilot
282
+ */
283
+ launch_target_prefixes?: string[];
284
+ /**
285
+ * Upper bound for every organization enablement's `allowed_scopes`. Defaults to all scopes.
286
+ */
287
+ scopes_allowed?: [
288
+ Scope,
289
+ ...Scope[]
290
+ ];
291
+ }
292
+ /**
293
+ * Opaque client identifier, unique within the issuer, never reused
294
+ * example:
295
+ * bf-prod-x7k2
296
+ */
297
+ export type PartnerClientId = string; // ^[A-Za-z0-9._~-]+$
298
+ export interface PartnerClientList {
299
+ results: PartnerClient[];
300
+ next_cursor?: string | null;
301
+ }
302
+ export type PartnerClientStatus = "draft" | "active" | "suspended" | "retired";
303
+ export interface PartnerClientUpdate {
304
+ /**
305
+ * Current configuration version, for compare-and-swap
306
+ */
307
+ config_version: number;
308
+ /**
309
+ * Required (true) when the update changes the pairwise sector of an **active** client, i.e. the
310
+ * `sector_identifier_uri` host or, without one, the redirect host. Changing the sector changes the
311
+ * `sub` of every person at this partner; without this flag such an update is rejected with `409`.
312
+ *
313
+ */
314
+ allow_sector_change?: boolean;
315
+ display_name: string;
316
+ description?: string;
317
+ redirect_uris: [
318
+ /**
319
+ * Absolute HTTPS URL without fragment
320
+ * example:
321
+ * https://partner.example.com/auth/callback
322
+ */
323
+ HttpsUri /* uri */,
324
+ .../**
325
+ * Absolute HTTPS URL without fragment
326
+ * example:
327
+ * https://partner.example.com/auth/callback
328
+ */
329
+ HttpsUri /* uri */[]
330
+ ];
331
+ sector_identifier_uri?: /**
332
+ * Absolute HTTPS URL without fragment
333
+ * example:
334
+ * https://partner.example.com/auth/callback
335
+ */
336
+ HttpsUri /* uri */;
337
+ initiate_login_uri?: /**
338
+ * Absolute HTTPS URL without fragment
339
+ * example:
340
+ * https://partner.example.com/auth/callback
341
+ */
342
+ HttpsUri /* uri */;
343
+ launch_target_prefixes?: string[];
344
+ scopes_allowed: [
345
+ Scope,
346
+ ...Scope[]
347
+ ];
348
+ }
349
+ export interface PartnerClientWithSecret {
350
+ client_id: /**
351
+ * Opaque client identifier, unique within the issuer, never reused
352
+ * example:
353
+ * bf-prod-x7k2
354
+ */
355
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
356
+ partner_key: string;
357
+ display_name: string;
358
+ description?: string;
359
+ environment: /* Partner-side environment this client belongs to */ Environment;
360
+ redirect_uris: /**
361
+ * Absolute HTTPS URL without fragment
362
+ * example:
363
+ * https://partner.example.com/auth/callback
364
+ */
365
+ HttpsUri /* uri */[];
366
+ sector_identifier_uri?: /**
367
+ * Absolute HTTPS URL without fragment
368
+ * example:
369
+ * https://partner.example.com/auth/callback
370
+ */
371
+ HttpsUri /* uri */;
372
+ initiate_login_uri?: /**
373
+ * Absolute HTTPS URL without fragment
374
+ * example:
375
+ * https://partner.example.com/auth/callback
376
+ */
377
+ HttpsUri /* uri */;
378
+ launch_target_prefixes?: string[];
379
+ token_endpoint_auth_method: "client_secret_basic";
380
+ grant_types: ("authorization_code")[];
381
+ scopes_allowed: Scope[];
382
+ status: PartnerClientStatus;
383
+ /**
384
+ * Operator-supplied reason for the last suspension or retirement
385
+ */
386
+ status_reason?: string;
387
+ config_version: number;
388
+ secret_rotated_at?: string; // date-time
389
+ /**
390
+ * Until when the previous secret still authenticates after a rotation
391
+ */
392
+ previous_secret_expires_at?: string; // date-time
393
+ created_at: string; // date-time
394
+ updated_at: string; // date-time
395
+ /**
396
+ * Admin-portal identity of the operator who created the client
397
+ */
398
+ created_by?: string;
399
+ updated_by?: string;
400
+ /**
401
+ * Returned exactly once. Store it securely; it cannot be retrieved again.
402
+ */
403
+ client_secret: string;
404
+ }
405
+ export interface RotateSecretRequest {
406
+ /**
407
+ * When true the previous secret stops working immediately
408
+ */
409
+ compromise_mode?: boolean;
410
+ /**
411
+ * How long the previous secret keeps working (ignored in compromise mode)
412
+ */
413
+ migration_window_seconds?: number;
414
+ }
415
+ export type Scope = "openid" | "email" | "profile";
416
+ export interface StatusChangeRequest {
417
+ reason?: string;
418
+ }
419
+ }
420
+ }
421
+ declare namespace Paths {
422
+ namespace ActivateClient {
423
+ namespace Responses {
424
+ export type $200 = Components.Schemas.PartnerClient;
425
+ export type $400 = Components.Responses.BadRequest;
426
+ export type $401 = Components.Responses.Unauthorized;
427
+ export type $403 = Components.Responses.Forbidden;
428
+ export type $404 = Components.Responses.NotFound;
429
+ export type $409 = Components.Responses.Conflict;
430
+ }
431
+ }
432
+ namespace ActivateClientOrganization {
433
+ namespace Responses {
434
+ export type $200 = Components.Schemas.OrgEnablement;
435
+ export type $401 = Components.Responses.Unauthorized;
436
+ export type $403 = Components.Responses.Forbidden;
437
+ export type $404 = Components.Responses.NotFound;
438
+ export type $409 = Components.Responses.Conflict;
439
+ }
440
+ }
441
+ namespace CreateIdentitySession {
442
+ namespace Responses {
443
+ export type $200 = Components.Schemas.IdentitySession;
444
+ export type $401 = Components.Responses.Unauthorized;
445
+ }
446
+ }
447
+ namespace CreateOidcClient {
448
+ export type RequestBody = Components.Schemas.PartnerClientCreate;
449
+ namespace Responses {
450
+ export type $201 = Components.Schemas.PartnerClientWithSecret;
451
+ export type $400 = Components.Responses.BadRequest;
452
+ export type $401 = Components.Responses.Unauthorized;
453
+ export type $403 = Components.Responses.Forbidden;
454
+ }
455
+ }
456
+ namespace DeleteIdentitySession {
457
+ namespace Responses {
458
+ export interface $204 {
459
+ }
460
+ }
461
+ }
462
+ namespace EnableClientOrganization {
463
+ export type RequestBody = Components.Schemas.OrgEnablementCreate;
464
+ namespace Responses {
465
+ export type $201 = Components.Schemas.OrgEnablement;
466
+ export type $400 = Components.Responses.BadRequest;
467
+ export type $401 = Components.Responses.Unauthorized;
468
+ export type $403 = Components.Responses.Forbidden;
469
+ export type $404 = Components.Responses.NotFound;
470
+ export type $409 = Components.Responses.Conflict;
471
+ }
472
+ }
473
+ namespace GetClientOrganization {
474
+ namespace Responses {
475
+ export type $200 = Components.Schemas.OrgEnablement;
476
+ export type $401 = Components.Responses.Unauthorized;
477
+ export type $403 = Components.Responses.Forbidden;
478
+ export type $404 = Components.Responses.NotFound;
479
+ }
480
+ }
481
+ namespace GetOidcClient {
482
+ namespace Responses {
483
+ export type $200 = Components.Schemas.PartnerClient;
484
+ export type $401 = Components.Responses.Unauthorized;
485
+ export type $403 = Components.Responses.Forbidden;
486
+ export type $404 = Components.Responses.NotFound;
487
+ }
488
+ }
489
+ namespace LaunchClient {
490
+ namespace Parameters {
491
+ export interface Extra {
492
+ [name: string]: any;
493
+ }
494
+ export type Target = string; // uri
495
+ }
496
+ export interface QueryParameters {
497
+ target?: Parameters.Target /* uri */;
498
+ extra?: Parameters.Extra;
499
+ }
500
+ namespace Responses {
501
+ export interface $302 {
502
+ }
503
+ export type $400 = Components.Responses.BadRequest;
504
+ export type $404 = Components.Responses.NotFound;
505
+ }
506
+ }
507
+ namespace ListClientOrganizations {
508
+ namespace Parameters {
509
+ export type Status = Components.Schemas.OrgEnablementStatus;
510
+ }
511
+ export interface QueryParameters {
512
+ status?: Parameters.Status;
513
+ }
514
+ namespace Responses {
515
+ export type $200 = Components.Schemas.OrgEnablementList;
516
+ export type $401 = Components.Responses.Unauthorized;
517
+ export type $403 = Components.Responses.Forbidden;
518
+ export type $404 = Components.Responses.NotFound;
519
+ }
520
+ }
521
+ namespace ListClients {
522
+ namespace Parameters {
523
+ export type Cursor = string;
524
+ export type PartnerKey = string;
525
+ export type Size = number;
526
+ export type Status = Components.Schemas.PartnerClientStatus;
527
+ }
528
+ export interface QueryParameters {
529
+ partner_key?: Parameters.PartnerKey;
530
+ status?: Parameters.Status;
531
+ size?: Parameters.Size;
532
+ cursor?: Parameters.Cursor;
533
+ }
534
+ namespace Responses {
535
+ export type $200 = Components.Schemas.PartnerClientList;
536
+ export type $401 = Components.Responses.Unauthorized;
537
+ export type $403 = Components.Responses.Forbidden;
538
+ }
539
+ }
540
+ namespace RetireClient {
541
+ namespace Responses {
542
+ export type $200 = Components.Schemas.PartnerClient;
543
+ export type $401 = Components.Responses.Unauthorized;
544
+ export type $403 = Components.Responses.Forbidden;
545
+ export type $404 = Components.Responses.NotFound;
546
+ }
547
+ }
548
+ namespace RevokeClientOrganization {
549
+ export type RequestBody = Components.Schemas.StatusChangeRequest;
550
+ namespace Responses {
551
+ export type $200 = Components.Schemas.OrgEnablement;
552
+ export type $401 = Components.Responses.Unauthorized;
553
+ export type $403 = Components.Responses.Forbidden;
554
+ export type $404 = Components.Responses.NotFound;
555
+ }
556
+ }
557
+ namespace RotateClientSecret {
558
+ export type RequestBody = Components.Schemas.RotateSecretRequest;
559
+ namespace Responses {
560
+ export type $200 = Components.Schemas.PartnerClientWithSecret;
561
+ export type $401 = Components.Responses.Unauthorized;
562
+ export type $403 = Components.Responses.Forbidden;
563
+ export type $404 = Components.Responses.NotFound;
564
+ export type $409 = Components.Responses.Conflict;
565
+ }
566
+ }
567
+ namespace SuspendClient {
568
+ export type RequestBody = Components.Schemas.StatusChangeRequest;
569
+ namespace Responses {
570
+ export type $200 = Components.Schemas.PartnerClient;
571
+ export type $401 = Components.Responses.Unauthorized;
572
+ export type $403 = Components.Responses.Forbidden;
573
+ export type $404 = Components.Responses.NotFound;
574
+ export type $409 = Components.Responses.Conflict;
575
+ }
576
+ }
577
+ namespace SuspendClientOrganization {
578
+ export type RequestBody = Components.Schemas.StatusChangeRequest;
579
+ namespace Responses {
580
+ export type $200 = Components.Schemas.OrgEnablement;
581
+ export type $401 = Components.Responses.Unauthorized;
582
+ export type $403 = Components.Responses.Forbidden;
583
+ export type $404 = Components.Responses.NotFound;
584
+ export type $409 = Components.Responses.Conflict;
585
+ }
586
+ }
587
+ namespace UpdateClient {
588
+ export type RequestBody = Components.Schemas.PartnerClientUpdate;
589
+ namespace Responses {
590
+ export type $200 = Components.Schemas.PartnerClient;
591
+ export type $400 = Components.Responses.BadRequest;
592
+ export type $401 = Components.Responses.Unauthorized;
593
+ export type $403 = Components.Responses.Forbidden;
594
+ export type $404 = Components.Responses.NotFound;
595
+ export type $409 = Components.Responses.Conflict;
596
+ }
597
+ }
598
+ namespace UpdateClientOrganization {
599
+ export type RequestBody = Components.Schemas.OrgEnablementUpdate;
600
+ namespace Responses {
601
+ export type $200 = Components.Schemas.OrgEnablement;
602
+ export type $400 = Components.Responses.BadRequest;
603
+ export type $401 = Components.Responses.Unauthorized;
604
+ export type $403 = Components.Responses.Forbidden;
605
+ export type $404 = Components.Responses.NotFound;
606
+ export type $409 = Components.Responses.Conflict;
607
+ }
608
+ }
609
+ namespace V1IdentityInteraction$InteractionId {
610
+ namespace Parameters {
611
+ export type InteractionId = string;
612
+ }
613
+ export interface PathParameters {
614
+ interaction_id: Parameters.InteractionId;
615
+ }
616
+ }
617
+ namespace V1IdentityLaunch$ClientId {
618
+ namespace Parameters {
619
+ export type $0 = Components.Parameters.ClientIdPath;
620
+ }
621
+ }
622
+ namespace V1IdentityOperatorClients$ClientId {
623
+ namespace Parameters {
624
+ export type $0 = Components.Parameters.ClientIdPath;
625
+ }
626
+ }
627
+ namespace V1IdentityOperatorClients$ClientIdActivate {
628
+ namespace Parameters {
629
+ export type $0 = Components.Parameters.ClientIdPath;
630
+ }
631
+ }
632
+ namespace V1IdentityOperatorClients$ClientIdOrganizations {
633
+ namespace Parameters {
634
+ export type $0 = Components.Parameters.ClientIdPath;
635
+ }
636
+ }
637
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgId {
638
+ namespace Parameters {
639
+ export type $0 = Components.Parameters.ClientIdPath;
640
+ export type $1 = Components.Parameters.OrgIdPath;
641
+ }
642
+ }
643
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgIdActivate {
644
+ namespace Parameters {
645
+ export type $0 = Components.Parameters.ClientIdPath;
646
+ export type $1 = Components.Parameters.OrgIdPath;
647
+ }
648
+ }
649
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgIdSuspend {
650
+ namespace Parameters {
651
+ export type $0 = Components.Parameters.ClientIdPath;
652
+ export type $1 = Components.Parameters.OrgIdPath;
653
+ }
654
+ }
655
+ namespace V1IdentityOperatorClients$ClientIdRotateSecret {
656
+ namespace Parameters {
657
+ export type $0 = Components.Parameters.ClientIdPath;
658
+ }
659
+ }
660
+ namespace V1IdentityOperatorClients$ClientIdSuspend {
661
+ namespace Parameters {
662
+ export type $0 = Components.Parameters.ClientIdPath;
663
+ }
664
+ }
665
+ }
666
+
667
+
668
+ interface OperationMethods {
669
+ /**
670
+ * listClients - listClients
671
+ *
672
+ * List registered partner clients. The client secret is never returned.
673
+ */
674
+ 'listClients'(
675
+ parameters?: Parameters<Paths.ListClients.QueryParameters> | null,
676
+ data?: any,
677
+ config?: AxiosRequestConfig
678
+ ): OperationResponse<Paths.ListClients.Responses.$200>
679
+ /**
680
+ * createOidcClient - createOidcClient
681
+ *
682
+ * Create a partner client in `draft` status. The client secret is returned exactly once in this
683
+ * response and can never be read again; use `rotateClientSecret` to obtain a new one.
684
+ *
685
+ */
686
+ 'createOidcClient'(
687
+ parameters?: Parameters<UnknownParamsObject> | null,
688
+ data?: Paths.CreateOidcClient.RequestBody,
689
+ config?: AxiosRequestConfig
690
+ ): OperationResponse<Paths.CreateOidcClient.Responses.$201>
691
+ /**
692
+ * getOidcClient - getOidcClient
693
+ *
694
+ * Read a partner client. The client secret is never returned.
695
+ */
696
+ 'getOidcClient'(
697
+ parameters?: Parameters<UnknownParamsObject> | null,
698
+ data?: any,
699
+ config?: AxiosRequestConfig
700
+ ): OperationResponse<Paths.GetOidcClient.Responses.$200>
701
+ /**
702
+ * updateClient - updateClient
703
+ *
704
+ * Replace the mutable configuration of a client. `config_version` must equal the current
705
+ * version (compare-and-swap); a mismatch is rejected with `409`.
706
+ *
707
+ */
708
+ 'updateClient'(
709
+ parameters?: Parameters<UnknownParamsObject> | null,
710
+ data?: Paths.UpdateClient.RequestBody,
711
+ config?: AxiosRequestConfig
712
+ ): OperationResponse<Paths.UpdateClient.Responses.$200>
713
+ /**
714
+ * retireClient - retireClient
715
+ *
716
+ * Retire a client. The record is kept as a tombstone, the `client_id` is never reused, every
717
+ * organization enablement is revoked and all provider-side artefacts are revoked.
718
+ *
719
+ */
720
+ 'retireClient'(
721
+ parameters?: Parameters<UnknownParamsObject> | null,
722
+ data?: any,
723
+ config?: AxiosRequestConfig
724
+ ): OperationResponse<Paths.RetireClient.Responses.$200>
725
+ /**
726
+ * activateClient - activateClient
727
+ *
728
+ * Activate a `draft` or `suspended` client. Validates that every redirect URI is an absolute
729
+ * HTTPS URL without fragment, that `scopes_allowed` contains `openid`, and that the
730
+ * authentication method is `client_secret_basic`.
731
+ *
732
+ */
733
+ 'activateClient'(
734
+ parameters?: Parameters<UnknownParamsObject> | null,
735
+ data?: any,
736
+ config?: AxiosRequestConfig
737
+ ): OperationResponse<Paths.ActivateClient.Responses.$200>
738
+ /**
739
+ * suspendClient - suspendClient
740
+ *
741
+ * Immediately block the client for every organization. Provider-side artefacts (codes, tokens,
742
+ * grants) are revoked; the audit trail is kept. Reversible with `activateClient`.
743
+ *
744
+ */
745
+ 'suspendClient'(
746
+ parameters?: Parameters<UnknownParamsObject> | null,
747
+ data?: Paths.SuspendClient.RequestBody,
748
+ config?: AxiosRequestConfig
749
+ ): OperationResponse<Paths.SuspendClient.Responses.$200>
750
+ /**
751
+ * rotateClientSecret - rotateClientSecret
752
+ *
753
+ * Issue a new client secret. The new secret is returned exactly once. The previous secret
754
+ * keeps working until `previous_secret_expires_at` unless `compromise_mode` is set, in which
755
+ * case it stops working immediately.
756
+ *
757
+ */
758
+ 'rotateClientSecret'(
759
+ parameters?: Parameters<UnknownParamsObject> | null,
760
+ data?: Paths.RotateClientSecret.RequestBody,
761
+ config?: AxiosRequestConfig
762
+ ): OperationResponse<Paths.RotateClientSecret.Responses.$200>
763
+ /**
764
+ * listClientOrganizations - listClientOrganizations
765
+ *
766
+ * List the organizations enabled on a client, including suspended and revoked ones.
767
+ */
768
+ 'listClientOrganizations'(
769
+ parameters?: Parameters<Paths.ListClientOrganizations.QueryParameters> | null,
770
+ data?: any,
771
+ config?: AxiosRequestConfig
772
+ ): OperationResponse<Paths.ListClientOrganizations.Responses.$200>
773
+ /**
774
+ * enableClientOrganization - enableClientOrganization
775
+ *
776
+ * Enable an epilot organization on a client, recording the customer's authorization policy
777
+ * (version 1). `allowed_scopes` must contain `openid` and be a subset of the client's
778
+ * `scopes_allowed`.
779
+ *
780
+ */
781
+ 'enableClientOrganization'(
782
+ parameters?: Parameters<UnknownParamsObject> | null,
783
+ data?: Paths.EnableClientOrganization.RequestBody,
784
+ config?: AxiosRequestConfig
785
+ ): OperationResponse<Paths.EnableClientOrganization.Responses.$201>
786
+ /**
787
+ * getClientOrganization - getClientOrganization
788
+ *
789
+ * Read one organization enablement.
790
+ */
791
+ 'getClientOrganization'(
792
+ parameters?: Parameters<UnknownParamsObject> | null,
793
+ data?: any,
794
+ config?: AxiosRequestConfig
795
+ ): OperationResponse<Paths.GetClientOrganization.Responses.$200>
796
+ /**
797
+ * updateClientOrganization - updateClientOrganization
798
+ *
799
+ * Record a new version of the customer's authorization policy. `expected_policy_version` must
800
+ * equal the current version (compare-and-swap); a mismatch is rejected with `409`.
801
+ *
802
+ */
803
+ 'updateClientOrganization'(
804
+ parameters?: Parameters<UnknownParamsObject> | null,
805
+ data?: Paths.UpdateClientOrganization.RequestBody,
806
+ config?: AxiosRequestConfig
807
+ ): OperationResponse<Paths.UpdateClientOrganization.Responses.$200>
808
+ /**
809
+ * revokeClientOrganization - revokeClientOrganization
810
+ *
811
+ * Revoke an organization's enablement. The record is kept as an audited tombstone; future
812
+ * authorizations for this organization fail with `access_denied` and provider-side artefacts
813
+ * bound to it are revoked.
814
+ *
815
+ */
816
+ 'revokeClientOrganization'(
817
+ parameters?: Parameters<UnknownParamsObject> | null,
818
+ data?: Paths.RevokeClientOrganization.RequestBody,
819
+ config?: AxiosRequestConfig
820
+ ): OperationResponse<Paths.RevokeClientOrganization.Responses.$200>
821
+ /**
822
+ * suspendClientOrganization - suspendClientOrganization
823
+ *
824
+ * Temporarily block one organization on this client. Reversible with `activateClientOrganization`.
825
+ */
826
+ 'suspendClientOrganization'(
827
+ parameters?: Parameters<UnknownParamsObject> | null,
828
+ data?: Paths.SuspendClientOrganization.RequestBody,
829
+ config?: AxiosRequestConfig
830
+ ): OperationResponse<Paths.SuspendClientOrganization.Responses.$200>
831
+ /**
832
+ * activateClientOrganization - activateClientOrganization
833
+ *
834
+ * Resume a suspended organization on this client. Revoked enablements cannot be re-activated; enabling the organization again (`POST …/organizations`) replaces the revoked entry and continues its policy version.
835
+ */
836
+ 'activateClientOrganization'(
837
+ parameters?: Parameters<UnknownParamsObject> | null,
838
+ data?: any,
839
+ config?: AxiosRequestConfig
840
+ ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
841
+ /**
842
+ * createIdentitySession - createIdentitySession
843
+ *
844
+ * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
845
+ * Validates the 360 bearer token itself and mirrors it into the `identity_session` cookie
846
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime equals the remaining token lifetime.
847
+ * The cookie is what proves the live 360 session during `completeInteraction`.
848
+ *
849
+ */
850
+ 'createIdentitySession'(
851
+ parameters?: Parameters<UnknownParamsObject> | null,
852
+ data?: any,
853
+ config?: AxiosRequestConfig
854
+ ): OperationResponse<Paths.CreateIdentitySession.Responses.$200>
855
+ /**
856
+ * deleteIdentitySession - deleteIdentitySession
857
+ *
858
+ * Clears the `identity_session` cookie. Called by the portal on logout.
859
+ */
860
+ 'deleteIdentitySession'(
861
+ parameters?: Parameters<UnknownParamsObject> | null,
862
+ data?: any,
863
+ config?: AxiosRequestConfig
864
+ ): OperationResponse<Paths.DeleteIdentitySession.Responses.$204>
865
+ /**
866
+ * launchClient - launchClient
867
+ *
868
+ * One validated place for partner start links (manager UI, hosted apps). Redirects the browser to the
869
+ * client's registered `initiate_login_uri` with `iss` set to this issuer and, when given, the deep link as
870
+ * `target_link_uri` (OpenID Connect Core §4, third-party initiated login). Authenticates nobody: the partner
871
+ * then starts a normal "Sign in with epilot" authorization.
872
+ *
873
+ * `target` must be an absolute HTTPS URL starting with one of the client's registered
874
+ * `launch_target_prefixes`; anything else is rejected. Retired, suspended or draft clients, and clients
875
+ * without an `initiate_login_uri`, answer `404`.
876
+ *
877
+ */
878
+ 'launchClient'(
879
+ parameters?: Parameters<Paths.LaunchClient.QueryParameters> | null,
880
+ data?: any,
881
+ config?: AxiosRequestConfig
882
+ ): OperationResponse<any>
883
+ }
884
+
885
+ interface PathsDictionary {
886
+ ['/v1/identity/operator/clients']: {
887
+ /**
888
+ * listClients - listClients
889
+ *
890
+ * List registered partner clients. The client secret is never returned.
891
+ */
892
+ 'get'(
893
+ parameters?: Parameters<Paths.ListClients.QueryParameters> | null,
894
+ data?: any,
895
+ config?: AxiosRequestConfig
896
+ ): OperationResponse<Paths.ListClients.Responses.$200>
897
+ /**
898
+ * createOidcClient - createOidcClient
899
+ *
900
+ * Create a partner client in `draft` status. The client secret is returned exactly once in this
901
+ * response and can never be read again; use `rotateClientSecret` to obtain a new one.
902
+ *
903
+ */
904
+ 'post'(
905
+ parameters?: Parameters<UnknownParamsObject> | null,
906
+ data?: Paths.CreateOidcClient.RequestBody,
907
+ config?: AxiosRequestConfig
908
+ ): OperationResponse<Paths.CreateOidcClient.Responses.$201>
909
+ }
910
+ ['/v1/identity/operator/clients/{client_id}']: {
911
+ /**
912
+ * getOidcClient - getOidcClient
913
+ *
914
+ * Read a partner client. The client secret is never returned.
915
+ */
916
+ 'get'(
917
+ parameters?: Parameters<UnknownParamsObject> | null,
918
+ data?: any,
919
+ config?: AxiosRequestConfig
920
+ ): OperationResponse<Paths.GetOidcClient.Responses.$200>
921
+ /**
922
+ * updateClient - updateClient
923
+ *
924
+ * Replace the mutable configuration of a client. `config_version` must equal the current
925
+ * version (compare-and-swap); a mismatch is rejected with `409`.
926
+ *
927
+ */
928
+ 'put'(
929
+ parameters?: Parameters<UnknownParamsObject> | null,
930
+ data?: Paths.UpdateClient.RequestBody,
931
+ config?: AxiosRequestConfig
932
+ ): OperationResponse<Paths.UpdateClient.Responses.$200>
933
+ /**
934
+ * retireClient - retireClient
935
+ *
936
+ * Retire a client. The record is kept as a tombstone, the `client_id` is never reused, every
937
+ * organization enablement is revoked and all provider-side artefacts are revoked.
938
+ *
939
+ */
940
+ 'delete'(
941
+ parameters?: Parameters<UnknownParamsObject> | null,
942
+ data?: any,
943
+ config?: AxiosRequestConfig
944
+ ): OperationResponse<Paths.RetireClient.Responses.$200>
945
+ }
946
+ ['/v1/identity/operator/clients/{client_id}:activate']: {
947
+ /**
948
+ * activateClient - activateClient
949
+ *
950
+ * Activate a `draft` or `suspended` client. Validates that every redirect URI is an absolute
951
+ * HTTPS URL without fragment, that `scopes_allowed` contains `openid`, and that the
952
+ * authentication method is `client_secret_basic`.
953
+ *
954
+ */
955
+ 'post'(
956
+ parameters?: Parameters<UnknownParamsObject> | null,
957
+ data?: any,
958
+ config?: AxiosRequestConfig
959
+ ): OperationResponse<Paths.ActivateClient.Responses.$200>
960
+ }
961
+ ['/v1/identity/operator/clients/{client_id}:suspend']: {
962
+ /**
963
+ * suspendClient - suspendClient
964
+ *
965
+ * Immediately block the client for every organization. Provider-side artefacts (codes, tokens,
966
+ * grants) are revoked; the audit trail is kept. Reversible with `activateClient`.
967
+ *
968
+ */
969
+ 'post'(
970
+ parameters?: Parameters<UnknownParamsObject> | null,
971
+ data?: Paths.SuspendClient.RequestBody,
972
+ config?: AxiosRequestConfig
973
+ ): OperationResponse<Paths.SuspendClient.Responses.$200>
974
+ }
975
+ ['/v1/identity/operator/clients/{client_id}:rotateSecret']: {
976
+ /**
977
+ * rotateClientSecret - rotateClientSecret
978
+ *
979
+ * Issue a new client secret. The new secret is returned exactly once. The previous secret
980
+ * keeps working until `previous_secret_expires_at` unless `compromise_mode` is set, in which
981
+ * case it stops working immediately.
982
+ *
983
+ */
984
+ 'post'(
985
+ parameters?: Parameters<UnknownParamsObject> | null,
986
+ data?: Paths.RotateClientSecret.RequestBody,
987
+ config?: AxiosRequestConfig
988
+ ): OperationResponse<Paths.RotateClientSecret.Responses.$200>
989
+ }
990
+ ['/v1/identity/operator/clients/{client_id}/organizations']: {
991
+ /**
992
+ * listClientOrganizations - listClientOrganizations
993
+ *
994
+ * List the organizations enabled on a client, including suspended and revoked ones.
995
+ */
996
+ 'get'(
997
+ parameters?: Parameters<Paths.ListClientOrganizations.QueryParameters> | null,
998
+ data?: any,
999
+ config?: AxiosRequestConfig
1000
+ ): OperationResponse<Paths.ListClientOrganizations.Responses.$200>
1001
+ /**
1002
+ * enableClientOrganization - enableClientOrganization
1003
+ *
1004
+ * Enable an epilot organization on a client, recording the customer's authorization policy
1005
+ * (version 1). `allowed_scopes` must contain `openid` and be a subset of the client's
1006
+ * `scopes_allowed`.
1007
+ *
1008
+ */
1009
+ 'post'(
1010
+ parameters?: Parameters<UnknownParamsObject> | null,
1011
+ data?: Paths.EnableClientOrganization.RequestBody,
1012
+ config?: AxiosRequestConfig
1013
+ ): OperationResponse<Paths.EnableClientOrganization.Responses.$201>
1014
+ }
1015
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}']: {
1016
+ /**
1017
+ * getClientOrganization - getClientOrganization
1018
+ *
1019
+ * Read one organization enablement.
1020
+ */
1021
+ 'get'(
1022
+ parameters?: Parameters<UnknownParamsObject> | null,
1023
+ data?: any,
1024
+ config?: AxiosRequestConfig
1025
+ ): OperationResponse<Paths.GetClientOrganization.Responses.$200>
1026
+ /**
1027
+ * updateClientOrganization - updateClientOrganization
1028
+ *
1029
+ * Record a new version of the customer's authorization policy. `expected_policy_version` must
1030
+ * equal the current version (compare-and-swap); a mismatch is rejected with `409`.
1031
+ *
1032
+ */
1033
+ 'put'(
1034
+ parameters?: Parameters<UnknownParamsObject> | null,
1035
+ data?: Paths.UpdateClientOrganization.RequestBody,
1036
+ config?: AxiosRequestConfig
1037
+ ): OperationResponse<Paths.UpdateClientOrganization.Responses.$200>
1038
+ /**
1039
+ * revokeClientOrganization - revokeClientOrganization
1040
+ *
1041
+ * Revoke an organization's enablement. The record is kept as an audited tombstone; future
1042
+ * authorizations for this organization fail with `access_denied` and provider-side artefacts
1043
+ * bound to it are revoked.
1044
+ *
1045
+ */
1046
+ 'delete'(
1047
+ parameters?: Parameters<UnknownParamsObject> | null,
1048
+ data?: Paths.RevokeClientOrganization.RequestBody,
1049
+ config?: AxiosRequestConfig
1050
+ ): OperationResponse<Paths.RevokeClientOrganization.Responses.$200>
1051
+ }
1052
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}:suspend']: {
1053
+ /**
1054
+ * suspendClientOrganization - suspendClientOrganization
1055
+ *
1056
+ * Temporarily block one organization on this client. Reversible with `activateClientOrganization`.
1057
+ */
1058
+ 'post'(
1059
+ parameters?: Parameters<UnknownParamsObject> | null,
1060
+ data?: Paths.SuspendClientOrganization.RequestBody,
1061
+ config?: AxiosRequestConfig
1062
+ ): OperationResponse<Paths.SuspendClientOrganization.Responses.$200>
1063
+ }
1064
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}:activate']: {
1065
+ /**
1066
+ * activateClientOrganization - activateClientOrganization
1067
+ *
1068
+ * Resume a suspended organization on this client. Revoked enablements cannot be re-activated; enabling the organization again (`POST …/organizations`) replaces the revoked entry and continues its policy version.
1069
+ */
1070
+ 'post'(
1071
+ parameters?: Parameters<UnknownParamsObject> | null,
1072
+ data?: any,
1073
+ config?: AxiosRequestConfig
1074
+ ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
1075
+ }
1076
+ ['/v1/identity/session']: {
1077
+ /**
1078
+ * createIdentitySession - createIdentitySession
1079
+ *
1080
+ * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
1081
+ * Validates the 360 bearer token itself and mirrors it into the `identity_session` cookie
1082
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime equals the remaining token lifetime.
1083
+ * The cookie is what proves the live 360 session during `completeInteraction`.
1084
+ *
1085
+ */
1086
+ 'get'(
1087
+ parameters?: Parameters<UnknownParamsObject> | null,
1088
+ data?: any,
1089
+ config?: AxiosRequestConfig
1090
+ ): OperationResponse<Paths.CreateIdentitySession.Responses.$200>
1091
+ /**
1092
+ * deleteIdentitySession - deleteIdentitySession
1093
+ *
1094
+ * Clears the `identity_session` cookie. Called by the portal on logout.
1095
+ */
1096
+ 'delete'(
1097
+ parameters?: Parameters<UnknownParamsObject> | null,
1098
+ data?: any,
1099
+ config?: AxiosRequestConfig
1100
+ ): OperationResponse<Paths.DeleteIdentitySession.Responses.$204>
1101
+ }
1102
+ ['/v1/identity/interaction/{interaction_id}']: {
1103
+ }
1104
+ ['/v1/identity/launch/{client_id}']: {
1105
+ /**
1106
+ * launchClient - launchClient
1107
+ *
1108
+ * One validated place for partner start links (manager UI, hosted apps). Redirects the browser to the
1109
+ * client's registered `initiate_login_uri` with `iss` set to this issuer and, when given, the deep link as
1110
+ * `target_link_uri` (OpenID Connect Core §4, third-party initiated login). Authenticates nobody: the partner
1111
+ * then starts a normal "Sign in with epilot" authorization.
1112
+ *
1113
+ * `target` must be an absolute HTTPS URL starting with one of the client's registered
1114
+ * `launch_target_prefixes`; anything else is rejected. Retired, suspended or draft clients, and clients
1115
+ * without an `initiate_login_uri`, answer `404`.
1116
+ *
1117
+ */
1118
+ 'get'(
1119
+ parameters?: Parameters<Paths.LaunchClient.QueryParameters> | null,
1120
+ data?: any,
1121
+ config?: AxiosRequestConfig
1122
+ ): OperationResponse<any>
1123
+ }
1124
+ }
1125
+
1126
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1127
+
1128
+
1129
+ type AuthorizationPolicy = Components.Schemas.AuthorizationPolicy;
1130
+ type AuthorizationPolicyInput = Components.Schemas.AuthorizationPolicyInput;
1131
+ type Environment = Components.Schemas.Environment;
1132
+ type Error = Components.Schemas.Error;
1133
+ type HttpsUri = Components.Schemas.HttpsUri;
1134
+ type IdentitySession = Components.Schemas.IdentitySession;
1135
+ type OrgEnablement = Components.Schemas.OrgEnablement;
1136
+ type OrgEnablementCreate = Components.Schemas.OrgEnablementCreate;
1137
+ type OrgEnablementList = Components.Schemas.OrgEnablementList;
1138
+ type OrgEnablementStatus = Components.Schemas.OrgEnablementStatus;
1139
+ type OrgEnablementUpdate = Components.Schemas.OrgEnablementUpdate;
1140
+ type OrgId = Components.Schemas.OrgId;
1141
+ type PartnerAccount = Components.Schemas.PartnerAccount;
1142
+ type PartnerClient = Components.Schemas.PartnerClient;
1143
+ type PartnerClientCreate = Components.Schemas.PartnerClientCreate;
1144
+ type PartnerClientId = Components.Schemas.PartnerClientId;
1145
+ type PartnerClientList = Components.Schemas.PartnerClientList;
1146
+ type PartnerClientStatus = Components.Schemas.PartnerClientStatus;
1147
+ type PartnerClientUpdate = Components.Schemas.PartnerClientUpdate;
1148
+ type PartnerClientWithSecret = Components.Schemas.PartnerClientWithSecret;
1149
+ type RotateSecretRequest = Components.Schemas.RotateSecretRequest;
1150
+ type Scope = Components.Schemas.Scope;
1151
+ type StatusChangeRequest = Components.Schemas.StatusChangeRequest;
1152
+
1153
+ export { type AuthorizationPolicy as A, type Client as C, type Environment as E, type HttpsUri as H, type IdentitySession as I, type OperationMethods as O, Paths as P, type RotateSecretRequest as R, type Scope as S, Components as a, type PathsDictionary as b, type AuthorizationPolicyInput as c, type Error as d, type OrgEnablement as e, type OrgEnablementCreate as f, type OrgEnablementList as g, type OrgEnablementStatus as h, type OrgEnablementUpdate as i, type OrgId as j, type PartnerAccount as k, type PartnerClient as l, type PartnerClientCreate as m, type PartnerClientId as n, type PartnerClientList as o, type PartnerClientStatus as p, type PartnerClientUpdate as q, type PartnerClientWithSecret as r, type StatusChangeRequest as s };