@epilot/sdk 2.20.72 → 2.20.74

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 (141) hide show
  1. package/definitions/entity-runtime.json +1 -1
  2. package/definitions/entity.json +1491 -44
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/chat.cjs +6 -6
  24. package/dist/apis/chat.js +1 -1
  25. package/dist/apis/configuration-hub.cjs +6 -6
  26. package/dist/apis/configuration-hub.js +1 -1
  27. package/dist/apis/consent.cjs +6 -6
  28. package/dist/apis/consent.js +1 -1
  29. package/dist/apis/customer-portal.cjs +6 -6
  30. package/dist/apis/customer-portal.js +1 -1
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +8 -8
  48. package/dist/apis/entity.d.cts +2 -2
  49. package/dist/apis/entity.d.ts +2 -2
  50. package/dist/apis/entity.js +2 -2
  51. package/dist/apis/environments.cjs +6 -6
  52. package/dist/apis/environments.js +1 -1
  53. package/dist/apis/event-catalog.cjs +6 -6
  54. package/dist/apis/event-catalog.js +1 -1
  55. package/dist/apis/external-values.cjs +6 -6
  56. package/dist/apis/external-values.js +1 -1
  57. package/dist/apis/file.cjs +6 -6
  58. package/dist/apis/file.js +1 -1
  59. package/dist/apis/iban.cjs +6 -6
  60. package/dist/apis/iban.js +1 -1
  61. package/dist/apis/identity.cjs +6 -6
  62. package/dist/apis/identity.d.cts +2 -2
  63. package/dist/apis/identity.d.ts +2 -2
  64. package/dist/apis/identity.js +1 -1
  65. package/dist/apis/integration-toolkit.cjs +6 -6
  66. package/dist/apis/integration-toolkit.js +1 -1
  67. package/dist/apis/journey.cjs +6 -6
  68. package/dist/apis/journey.js +1 -1
  69. package/dist/apis/kanban.cjs +6 -6
  70. package/dist/apis/kanban.js +1 -1
  71. package/dist/apis/message.cjs +6 -6
  72. package/dist/apis/message.js +1 -1
  73. package/dist/apis/metering.cjs +6 -6
  74. package/dist/apis/metering.js +1 -1
  75. package/dist/apis/notes.cjs +6 -6
  76. package/dist/apis/notes.js +1 -1
  77. package/dist/apis/notification.cjs +6 -6
  78. package/dist/apis/notification.js +1 -1
  79. package/dist/apis/organization.cjs +6 -6
  80. package/dist/apis/organization.js +1 -1
  81. package/dist/apis/partner-directory.cjs +6 -6
  82. package/dist/apis/partner-directory.js +1 -1
  83. package/dist/apis/permissions.cjs +6 -6
  84. package/dist/apis/permissions.js +1 -1
  85. package/dist/apis/phone-integration.cjs +6 -6
  86. package/dist/apis/phone-integration.js +1 -1
  87. package/dist/apis/pricing-tier.cjs +6 -6
  88. package/dist/apis/pricing-tier.js +1 -1
  89. package/dist/apis/pricing.cjs +6 -6
  90. package/dist/apis/pricing.js +1 -1
  91. package/dist/apis/purpose.cjs +6 -6
  92. package/dist/apis/purpose.js +1 -1
  93. package/dist/apis/query.cjs +6 -6
  94. package/dist/apis/query.js +1 -1
  95. package/dist/apis/sandbox.cjs +6 -6
  96. package/dist/apis/sandbox.js +1 -1
  97. package/dist/apis/sharing.cjs +6 -6
  98. package/dist/apis/sharing.js +1 -1
  99. package/dist/apis/snapshot.cjs +6 -6
  100. package/dist/apis/snapshot.js +1 -1
  101. package/dist/apis/submission.cjs +6 -6
  102. package/dist/apis/submission.js +1 -1
  103. package/dist/apis/target.cjs +6 -6
  104. package/dist/apis/target.js +1 -1
  105. package/dist/apis/targeting.cjs +6 -6
  106. package/dist/apis/targeting.js +1 -1
  107. package/dist/apis/template-variables.cjs +6 -6
  108. package/dist/apis/template-variables.js +1 -1
  109. package/dist/apis/user.cjs +6 -6
  110. package/dist/apis/user.js +1 -1
  111. package/dist/apis/validation-rules.cjs +6 -6
  112. package/dist/apis/validation-rules.js +1 -1
  113. package/dist/apis/webhooks.cjs +6 -6
  114. package/dist/apis/webhooks.js +1 -1
  115. package/dist/apis/workflow-definition.cjs +6 -6
  116. package/dist/apis/workflow-definition.js +1 -1
  117. package/dist/apis/workflow.cjs +6 -6
  118. package/dist/apis/workflow.js +1 -1
  119. package/dist/chunk-3JBENXET.cjs +14 -0
  120. package/dist/{chunk-5QSR7CYT.cjs → chunk-5PG5IEQ7.cjs} +2 -2
  121. package/dist/chunk-K77ESMSG.js +14 -0
  122. package/dist/{chunk-B42G3PU6.js → chunk-WG7OKIQ3.js} +2 -2
  123. package/dist/entity-GZC53ATN.cjs +7 -0
  124. package/dist/entity-T26ZCCI6.js +7 -0
  125. package/dist/entity-runtime-L3EGYXRI.cjs +5 -0
  126. package/dist/{entity-runtime-JRSXJKRV.js → entity-runtime-YZPCXKZW.js} +1 -1
  127. package/dist/{entity.d-BwsBk0Po.d.cts → entity.d-DlI8zhXF.d.cts} +1369 -75
  128. package/dist/{entity.d-BwsBk0Po.d.ts → entity.d-DlI8zhXF.d.ts} +1369 -75
  129. package/dist/{identity.d-BBL0NI_O.d.cts → identity.d-CieYn1WL.d.cts} +143 -17
  130. package/dist/{identity.d-BBL0NI_O.d.ts → identity.d-CieYn1WL.d.ts} +143 -17
  131. package/dist/index.cjs +10 -10
  132. package/dist/index.d.cts +2 -2
  133. package/dist/index.d.ts +2 -2
  134. package/dist/index.js +2 -2
  135. package/docs/entity.md +586 -3
  136. package/package.json +1 -1
  137. package/dist/chunk-KXNPNC4J.js +0 -14
  138. package/dist/chunk-XT2XPHUH.cjs +0 -14
  139. package/dist/entity-AQTIV5LR.js +0 -7
  140. package/dist/entity-TJAYHTIU.cjs +0 -7
  141. package/dist/entity-runtime-DYQQGB4F.cjs +0 -5
@@ -25,10 +25,17 @@ declare namespace Components {
25
25
  Schemas.OrgId /* ^[A-Za-z0-9_-]+$ */;
26
26
  export type PartnerKeyQuery = string;
27
27
  export type SizeQuery = number;
28
+ export type UserIdPath = /**
29
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
30
+ * example:
31
+ * 100321
32
+ */
33
+ Schemas.UserId /* ^[A-Za-z0-9_-]+$ */;
28
34
  }
29
35
  export interface PathParameters {
30
36
  ClientIdPath?: Parameters.ClientIdPath;
31
37
  OrgIdPath?: Parameters.OrgIdPath;
38
+ UserIdPath?: Parameters.UserIdPath;
32
39
  }
33
40
  export interface QueryParameters {
34
41
  AnyOtherQueryParameters?: Parameters.AnyOtherQueryParameters;
@@ -63,6 +70,9 @@ declare namespace Components {
63
70
  approved_at: string; // date-time
64
71
  version: number;
65
72
  mandatory_claims: ("org_id")[];
73
+ /**
74
+ * Email of the admin-portal operator who recorded this policy version
75
+ */
66
76
  recorded_by: string;
67
77
  recorded_at: string; // date-time
68
78
  }
@@ -122,7 +132,7 @@ declare namespace Components {
122
132
  */
123
133
  user_id: string;
124
134
  /**
125
- * When the mirrored credential, and therefore the cookie, expires
135
+ * When the cookie expires (the mirrored credential's expiry, capped at 15 minutes)
126
136
  */
127
137
  expires_at: string; // date-time
128
138
  }
@@ -142,10 +152,15 @@ declare namespace Components {
142
152
  status: OrgEnablementStatus;
143
153
  status_reason?: string;
144
154
  authorization_policy: AuthorizationPolicy;
145
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
146
155
  created_at: string; // date-time
147
156
  updated_at: string; // date-time
157
+ /**
158
+ * Email of the admin-portal operator who enabled the organization
159
+ */
148
160
  created_by?: string;
161
+ /**
162
+ * Email of the admin-portal operator who last changed the enablement
163
+ */
149
164
  updated_by?: string;
150
165
  }
151
166
  export interface OrgEnablementCreate {
@@ -156,7 +171,6 @@ declare namespace Components {
156
171
  */
157
172
  OrgId /* ^[A-Za-z0-9_-]+$ */;
158
173
  authorization_policy: AuthorizationPolicyInput;
159
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
160
174
  }
161
175
  export interface OrgEnablementList {
162
176
  results: OrgEnablement[];
@@ -168,7 +182,6 @@ declare namespace Components {
168
182
  */
169
183
  expected_policy_version: number;
170
184
  authorization_policy: AuthorizationPolicyInput;
171
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
172
185
  }
173
186
  /**
174
187
  * epilot organization id, an opaque case-sensitive string
@@ -176,13 +189,6 @@ declare namespace Components {
176
189
  * 739224
177
190
  */
178
191
  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
192
  export interface PartnerClient {
187
193
  client_id: /**
188
194
  * Opaque client identifier, unique within the issuer, never reused
@@ -230,9 +236,12 @@ declare namespace Components {
230
236
  created_at: string; // date-time
231
237
  updated_at: string; // date-time
232
238
  /**
233
- * Admin-portal identity of the operator who created the client
239
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
234
240
  */
235
241
  created_by?: string;
242
+ /**
243
+ * Email of the admin-portal operator who last changed the client
244
+ */
236
245
  updated_by?: string;
237
246
  }
238
247
  export interface PartnerClientCreate {
@@ -393,9 +402,12 @@ declare namespace Components {
393
402
  created_at: string; // date-time
394
403
  updated_at: string; // date-time
395
404
  /**
396
- * Admin-portal identity of the operator who created the client
405
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
397
406
  */
398
407
  created_by?: string;
408
+ /**
409
+ * Email of the admin-portal operator who last changed the client
410
+ */
399
411
  updated_by?: string;
400
412
  /**
401
413
  * Returned exactly once. Store it securely; it cannot be retrieved again.
@@ -416,6 +428,50 @@ declare namespace Components {
416
428
  export interface StatusChangeRequest {
417
429
  reason?: string;
418
430
  }
431
+ /**
432
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
433
+ * example:
434
+ * 100321
435
+ */
436
+ export type UserId = string; // ^[A-Za-z0-9_-]+$
437
+ export interface UserSubject {
438
+ client_id: /**
439
+ * Opaque client identifier, unique within the issuer, never reused
440
+ * example:
441
+ * bf-prod-x7k2
442
+ */
443
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
444
+ org_id: /**
445
+ * epilot organization id, an opaque case-sensitive string
446
+ * example:
447
+ * 739224
448
+ */
449
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
450
+ user_id: /**
451
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
452
+ * example:
453
+ * 100321
454
+ */
455
+ UserId /* ^[A-Za-z0-9_-]+$ */;
456
+ /**
457
+ * The pairwise subject this client receives for the user, `<key_version>.<base64url digest>`
458
+ * example:
459
+ * v1.dGhpcy1pcy1hLWR1bW15LXN1YmplY3QtdmFsdWUtMDAx
460
+ */
461
+ sub: string;
462
+ /**
463
+ * Active pairwise key version the value was derived with
464
+ * example:
465
+ * v1
466
+ */
467
+ key_version: string;
468
+ /**
469
+ * Pairwise sector the value was derived for (sector_identifier_uri host, else the first redirect host)
470
+ * example:
471
+ * portal.epilot.cloud
472
+ */
473
+ sector: string;
474
+ }
419
475
  }
420
476
  }
421
477
  declare namespace Paths {
@@ -486,6 +542,16 @@ declare namespace Paths {
486
542
  export type $404 = Components.Responses.NotFound;
487
543
  }
488
544
  }
545
+ namespace GetUserSubject {
546
+ namespace Responses {
547
+ export type $200 = Components.Schemas.UserSubject;
548
+ export type $400 = Components.Schemas.Error;
549
+ export type $401 = Components.Responses.Unauthorized;
550
+ export type $403 = Components.Responses.Forbidden;
551
+ export type $404 = Components.Schemas.Error;
552
+ export type $409 = Components.Schemas.Error;
553
+ }
554
+ }
489
555
  namespace LaunchClient {
490
556
  namespace Parameters {
491
557
  export interface Extra {
@@ -652,6 +718,13 @@ declare namespace Paths {
652
718
  export type $1 = Components.Parameters.OrgIdPath;
653
719
  }
654
720
  }
721
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgIdUsers$UserIdSubject {
722
+ namespace Parameters {
723
+ export type $0 = Components.Parameters.ClientIdPath;
724
+ export type $1 = Components.Parameters.OrgIdPath;
725
+ export type $2 = Components.Parameters.UserIdPath;
726
+ }
727
+ }
655
728
  namespace V1IdentityOperatorClients$ClientIdRotateSecret {
656
729
  namespace Parameters {
657
730
  export type $0 = Components.Parameters.ClientIdPath;
@@ -838,12 +911,37 @@ interface OperationMethods {
838
911
  data?: any,
839
912
  config?: AxiosRequestConfig
840
913
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
914
+ /**
915
+ * getUserSubject - getUserSubject
916
+ *
917
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
918
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
919
+ * `externalId = sub`).
920
+ *
921
+ * Derived exactly as the token endpoint derives it, never stored:
922
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
923
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
924
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
925
+ * version changes.
926
+ *
927
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
928
+ * an organization enablement that is not revoked, and the user being an active member of that organization
929
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
930
+ * identifier.
931
+ *
932
+ */
933
+ 'getUserSubject'(
934
+ parameters?: Parameters<UnknownParamsObject> | null,
935
+ data?: any,
936
+ config?: AxiosRequestConfig
937
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
841
938
  /**
842
939
  * createIdentitySession - createIdentitySession
843
940
  *
844
941
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
845
942
  * 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.
943
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
944
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
847
945
  * The cookie is what proves the live 360 session during `completeInteraction`.
848
946
  *
849
947
  */
@@ -1073,13 +1171,40 @@ interface PathsDictionary {
1073
1171
  config?: AxiosRequestConfig
1074
1172
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
1075
1173
  }
1174
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}/users/{user_id}:subject']: {
1175
+ /**
1176
+ * getUserSubject - getUserSubject
1177
+ *
1178
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
1179
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
1180
+ * `externalId = sub`).
1181
+ *
1182
+ * Derived exactly as the token endpoint derives it, never stored:
1183
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
1184
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
1185
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
1186
+ * version changes.
1187
+ *
1188
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
1189
+ * an organization enablement that is not revoked, and the user being an active member of that organization
1190
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
1191
+ * identifier.
1192
+ *
1193
+ */
1194
+ 'get'(
1195
+ parameters?: Parameters<UnknownParamsObject> | null,
1196
+ data?: any,
1197
+ config?: AxiosRequestConfig
1198
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
1199
+ }
1076
1200
  ['/v1/identity/session']: {
1077
1201
  /**
1078
1202
  * createIdentitySession - createIdentitySession
1079
1203
  *
1080
1204
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
1081
1205
  * 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.
1206
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
1207
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
1083
1208
  * The cookie is what proves the live 360 session during `completeInteraction`.
1084
1209
  *
1085
1210
  */
@@ -1138,7 +1263,6 @@ type OrgEnablementList = Components.Schemas.OrgEnablementList;
1138
1263
  type OrgEnablementStatus = Components.Schemas.OrgEnablementStatus;
1139
1264
  type OrgEnablementUpdate = Components.Schemas.OrgEnablementUpdate;
1140
1265
  type OrgId = Components.Schemas.OrgId;
1141
- type PartnerAccount = Components.Schemas.PartnerAccount;
1142
1266
  type PartnerClient = Components.Schemas.PartnerClient;
1143
1267
  type PartnerClientCreate = Components.Schemas.PartnerClientCreate;
1144
1268
  type PartnerClientId = Components.Schemas.PartnerClientId;
@@ -1149,5 +1273,7 @@ type PartnerClientWithSecret = Components.Schemas.PartnerClientWithSecret;
1149
1273
  type RotateSecretRequest = Components.Schemas.RotateSecretRequest;
1150
1274
  type Scope = Components.Schemas.Scope;
1151
1275
  type StatusChangeRequest = Components.Schemas.StatusChangeRequest;
1276
+ type UserId = Components.Schemas.UserId;
1277
+ type UserSubject = Components.Schemas.UserSubject;
1152
1278
 
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 };
1279
+ 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, type UserId as U, 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 PartnerClient as k, type PartnerClientCreate as l, type PartnerClientId as m, type PartnerClientList as n, type PartnerClientStatus as o, type PartnerClientUpdate as p, type PartnerClientWithSecret as q, type StatusChangeRequest as r, type UserSubject as s };
@@ -25,10 +25,17 @@ declare namespace Components {
25
25
  Schemas.OrgId /* ^[A-Za-z0-9_-]+$ */;
26
26
  export type PartnerKeyQuery = string;
27
27
  export type SizeQuery = number;
28
+ export type UserIdPath = /**
29
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
30
+ * example:
31
+ * 100321
32
+ */
33
+ Schemas.UserId /* ^[A-Za-z0-9_-]+$ */;
28
34
  }
29
35
  export interface PathParameters {
30
36
  ClientIdPath?: Parameters.ClientIdPath;
31
37
  OrgIdPath?: Parameters.OrgIdPath;
38
+ UserIdPath?: Parameters.UserIdPath;
32
39
  }
33
40
  export interface QueryParameters {
34
41
  AnyOtherQueryParameters?: Parameters.AnyOtherQueryParameters;
@@ -63,6 +70,9 @@ declare namespace Components {
63
70
  approved_at: string; // date-time
64
71
  version: number;
65
72
  mandatory_claims: ("org_id")[];
73
+ /**
74
+ * Email of the admin-portal operator who recorded this policy version
75
+ */
66
76
  recorded_by: string;
67
77
  recorded_at: string; // date-time
68
78
  }
@@ -122,7 +132,7 @@ declare namespace Components {
122
132
  */
123
133
  user_id: string;
124
134
  /**
125
- * When the mirrored credential, and therefore the cookie, expires
135
+ * When the cookie expires (the mirrored credential's expiry, capped at 15 minutes)
126
136
  */
127
137
  expires_at: string; // date-time
128
138
  }
@@ -142,10 +152,15 @@ declare namespace Components {
142
152
  status: OrgEnablementStatus;
143
153
  status_reason?: string;
144
154
  authorization_policy: AuthorizationPolicy;
145
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
146
155
  created_at: string; // date-time
147
156
  updated_at: string; // date-time
157
+ /**
158
+ * Email of the admin-portal operator who enabled the organization
159
+ */
148
160
  created_by?: string;
161
+ /**
162
+ * Email of the admin-portal operator who last changed the enablement
163
+ */
149
164
  updated_by?: string;
150
165
  }
151
166
  export interface OrgEnablementCreate {
@@ -156,7 +171,6 @@ declare namespace Components {
156
171
  */
157
172
  OrgId /* ^[A-Za-z0-9_-]+$ */;
158
173
  authorization_policy: AuthorizationPolicyInput;
159
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
160
174
  }
161
175
  export interface OrgEnablementList {
162
176
  results: OrgEnablement[];
@@ -168,7 +182,6 @@ declare namespace Components {
168
182
  */
169
183
  expected_policy_version: number;
170
184
  authorization_policy: AuthorizationPolicyInput;
171
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
172
185
  }
173
186
  /**
174
187
  * epilot organization id, an opaque case-sensitive string
@@ -176,13 +189,6 @@ declare namespace Components {
176
189
  * 739224
177
190
  */
178
191
  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
192
  export interface PartnerClient {
187
193
  client_id: /**
188
194
  * Opaque client identifier, unique within the issuer, never reused
@@ -230,9 +236,12 @@ declare namespace Components {
230
236
  created_at: string; // date-time
231
237
  updated_at: string; // date-time
232
238
  /**
233
- * Admin-portal identity of the operator who created the client
239
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
234
240
  */
235
241
  created_by?: string;
242
+ /**
243
+ * Email of the admin-portal operator who last changed the client
244
+ */
236
245
  updated_by?: string;
237
246
  }
238
247
  export interface PartnerClientCreate {
@@ -393,9 +402,12 @@ declare namespace Components {
393
402
  created_at: string; // date-time
394
403
  updated_at: string; // date-time
395
404
  /**
396
- * Admin-portal identity of the operator who created the client
405
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
397
406
  */
398
407
  created_by?: string;
408
+ /**
409
+ * Email of the admin-portal operator who last changed the client
410
+ */
399
411
  updated_by?: string;
400
412
  /**
401
413
  * Returned exactly once. Store it securely; it cannot be retrieved again.
@@ -416,6 +428,50 @@ declare namespace Components {
416
428
  export interface StatusChangeRequest {
417
429
  reason?: string;
418
430
  }
431
+ /**
432
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
433
+ * example:
434
+ * 100321
435
+ */
436
+ export type UserId = string; // ^[A-Za-z0-9_-]+$
437
+ export interface UserSubject {
438
+ client_id: /**
439
+ * Opaque client identifier, unique within the issuer, never reused
440
+ * example:
441
+ * bf-prod-x7k2
442
+ */
443
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
444
+ org_id: /**
445
+ * epilot organization id, an opaque case-sensitive string
446
+ * example:
447
+ * 739224
448
+ */
449
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
450
+ user_id: /**
451
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
452
+ * example:
453
+ * 100321
454
+ */
455
+ UserId /* ^[A-Za-z0-9_-]+$ */;
456
+ /**
457
+ * The pairwise subject this client receives for the user, `<key_version>.<base64url digest>`
458
+ * example:
459
+ * v1.dGhpcy1pcy1hLWR1bW15LXN1YmplY3QtdmFsdWUtMDAx
460
+ */
461
+ sub: string;
462
+ /**
463
+ * Active pairwise key version the value was derived with
464
+ * example:
465
+ * v1
466
+ */
467
+ key_version: string;
468
+ /**
469
+ * Pairwise sector the value was derived for (sector_identifier_uri host, else the first redirect host)
470
+ * example:
471
+ * portal.epilot.cloud
472
+ */
473
+ sector: string;
474
+ }
419
475
  }
420
476
  }
421
477
  declare namespace Paths {
@@ -486,6 +542,16 @@ declare namespace Paths {
486
542
  export type $404 = Components.Responses.NotFound;
487
543
  }
488
544
  }
545
+ namespace GetUserSubject {
546
+ namespace Responses {
547
+ export type $200 = Components.Schemas.UserSubject;
548
+ export type $400 = Components.Schemas.Error;
549
+ export type $401 = Components.Responses.Unauthorized;
550
+ export type $403 = Components.Responses.Forbidden;
551
+ export type $404 = Components.Schemas.Error;
552
+ export type $409 = Components.Schemas.Error;
553
+ }
554
+ }
489
555
  namespace LaunchClient {
490
556
  namespace Parameters {
491
557
  export interface Extra {
@@ -652,6 +718,13 @@ declare namespace Paths {
652
718
  export type $1 = Components.Parameters.OrgIdPath;
653
719
  }
654
720
  }
721
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgIdUsers$UserIdSubject {
722
+ namespace Parameters {
723
+ export type $0 = Components.Parameters.ClientIdPath;
724
+ export type $1 = Components.Parameters.OrgIdPath;
725
+ export type $2 = Components.Parameters.UserIdPath;
726
+ }
727
+ }
655
728
  namespace V1IdentityOperatorClients$ClientIdRotateSecret {
656
729
  namespace Parameters {
657
730
  export type $0 = Components.Parameters.ClientIdPath;
@@ -838,12 +911,37 @@ interface OperationMethods {
838
911
  data?: any,
839
912
  config?: AxiosRequestConfig
840
913
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
914
+ /**
915
+ * getUserSubject - getUserSubject
916
+ *
917
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
918
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
919
+ * `externalId = sub`).
920
+ *
921
+ * Derived exactly as the token endpoint derives it, never stored:
922
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
923
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
924
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
925
+ * version changes.
926
+ *
927
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
928
+ * an organization enablement that is not revoked, and the user being an active member of that organization
929
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
930
+ * identifier.
931
+ *
932
+ */
933
+ 'getUserSubject'(
934
+ parameters?: Parameters<UnknownParamsObject> | null,
935
+ data?: any,
936
+ config?: AxiosRequestConfig
937
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
841
938
  /**
842
939
  * createIdentitySession - createIdentitySession
843
940
  *
844
941
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
845
942
  * 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.
943
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
944
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
847
945
  * The cookie is what proves the live 360 session during `completeInteraction`.
848
946
  *
849
947
  */
@@ -1073,13 +1171,40 @@ interface PathsDictionary {
1073
1171
  config?: AxiosRequestConfig
1074
1172
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
1075
1173
  }
1174
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}/users/{user_id}:subject']: {
1175
+ /**
1176
+ * getUserSubject - getUserSubject
1177
+ *
1178
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
1179
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
1180
+ * `externalId = sub`).
1181
+ *
1182
+ * Derived exactly as the token endpoint derives it, never stored:
1183
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
1184
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
1185
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
1186
+ * version changes.
1187
+ *
1188
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
1189
+ * an organization enablement that is not revoked, and the user being an active member of that organization
1190
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
1191
+ * identifier.
1192
+ *
1193
+ */
1194
+ 'get'(
1195
+ parameters?: Parameters<UnknownParamsObject> | null,
1196
+ data?: any,
1197
+ config?: AxiosRequestConfig
1198
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
1199
+ }
1076
1200
  ['/v1/identity/session']: {
1077
1201
  /**
1078
1202
  * createIdentitySession - createIdentitySession
1079
1203
  *
1080
1204
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
1081
1205
  * 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.
1206
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
1207
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
1083
1208
  * The cookie is what proves the live 360 session during `completeInteraction`.
1084
1209
  *
1085
1210
  */
@@ -1138,7 +1263,6 @@ type OrgEnablementList = Components.Schemas.OrgEnablementList;
1138
1263
  type OrgEnablementStatus = Components.Schemas.OrgEnablementStatus;
1139
1264
  type OrgEnablementUpdate = Components.Schemas.OrgEnablementUpdate;
1140
1265
  type OrgId = Components.Schemas.OrgId;
1141
- type PartnerAccount = Components.Schemas.PartnerAccount;
1142
1266
  type PartnerClient = Components.Schemas.PartnerClient;
1143
1267
  type PartnerClientCreate = Components.Schemas.PartnerClientCreate;
1144
1268
  type PartnerClientId = Components.Schemas.PartnerClientId;
@@ -1149,5 +1273,7 @@ type PartnerClientWithSecret = Components.Schemas.PartnerClientWithSecret;
1149
1273
  type RotateSecretRequest = Components.Schemas.RotateSecretRequest;
1150
1274
  type Scope = Components.Schemas.Scope;
1151
1275
  type StatusChangeRequest = Components.Schemas.StatusChangeRequest;
1276
+ type UserId = Components.Schemas.UserId;
1277
+ type UserSubject = Components.Schemas.UserSubject;
1152
1278
 
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 };
1279
+ 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, type UserId as U, 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 PartnerClient as k, type PartnerClientCreate as l, type PartnerClientId as m, type PartnerClientList as n, type PartnerClientStatus as o, type PartnerClientUpdate as p, type PartnerClientWithSecret as q, type StatusChangeRequest as r, type UserSubject as s };
package/dist/index.cjs CHANGED
@@ -117,7 +117,7 @@ var _chunkK2UZPY6Ucjs = require('./chunk-K2UZPY6U.cjs');
117
117
  var _chunkANN2QTMYcjs = require('./chunk-ANN2QTMY.cjs');
118
118
 
119
119
 
120
- var _chunkXT2XPHUHcjs = require('./chunk-XT2XPHUH.cjs');
120
+ var _chunk3JBENXETcjs = require('./chunk-3JBENXET.cjs');
121
121
 
122
122
 
123
123
  var _chunkPNVSKDMVcjs = require('./chunk-PNVSKDMV.cjs');
@@ -170,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunk5QSR7CYTcjs = require('./chunk-5QSR7CYT.cjs');
173
+ var _chunk5PG5IEQ7cjs = require('./chunk-5PG5IEQ7.cjs');
174
174
 
175
175
 
176
176
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -244,7 +244,7 @@ var resolveClient = (params) => {
244
244
  }
245
245
  if (!entry.instance) {
246
246
  const definition = entry.loader();
247
- entry.instance = _chunk5QSR7CYTcjs.createApiClient.call(void 0, {
247
+ entry.instance = _chunk5PG5IEQ7cjs.createApiClient.call(void 0, {
248
248
  definition,
249
249
  token: state.token,
250
250
  headers: state.globalHeaders,
@@ -277,7 +277,7 @@ var resetAllClients = (registry) => {
277
277
  };
278
278
 
279
279
  // src/apis/_registry.ts
280
- var expandDef = (mod) => _chunk5QSR7CYTcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
280
+ var expandDef = (mod) => _chunk5PG5IEQ7cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
281
281
  var registerBuiltinApis = (registry) => {
282
282
  registerApi({
283
283
  registry,
@@ -387,7 +387,7 @@ var registerBuiltinApis = (registry) => {
387
387
  registerApi({
388
388
  registry,
389
389
  name: "entity",
390
- loader: () => expandDef(_chunkXT2XPHUHcjs.require_entity_runtime.call(void 0, ))
390
+ loader: () => expandDef(_chunk3JBENXETcjs.require_entity_runtime.call(void 0, ))
391
391
  });
392
392
  registerApi({
393
393
  registry,
@@ -640,9 +640,9 @@ var createSDK = () => {
640
640
  const available = [...registry.keys()].join(", ");
641
641
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
642
642
  }
643
- return _chunk5QSR7CYTcjs.createApiHandle.call(void 0, {
643
+ return _chunk5PG5IEQ7cjs.createApiHandle.call(void 0, {
644
644
  resolveClient: () => resolveClient({ registry, name, state }),
645
- createClient: () => _chunk5QSR7CYTcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
645
+ createClient: () => _chunk5PG5IEQ7cjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
646
646
  apiName: name
647
647
  });
648
648
  };
@@ -690,9 +690,9 @@ var createSDK = () => {
690
690
  return interceptorUse;
691
691
  }
692
692
  case "help":
693
- return (apiName) => _chunk5QSR7CYTcjs.help.call(void 0, apiName);
693
+ return (apiName) => _chunk5PG5IEQ7cjs.help.call(void 0, apiName);
694
694
  case "openapi":
695
- return (apiName) => _chunk5QSR7CYTcjs.openapi.call(void 0, apiName);
695
+ return (apiName) => _chunk5PG5IEQ7cjs.openapi.call(void 0, apiName);
696
696
  case "then":
697
697
  case "catch":
698
698
  case "finally":
@@ -722,4 +722,4 @@ var epilot = createSDK();
722
722
 
723
723
 
724
724
 
725
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk5QSR7CYTcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk5QSR7CYTcjs.help; exports.openapi = _chunk5QSR7CYTcjs.openapi;
725
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk5PG5IEQ7cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk5PG5IEQ7cjs.help; exports.openapi = _chunk5PG5IEQ7cjs.openapi;
package/dist/index.d.cts CHANGED
@@ -24,14 +24,14 @@ import { C as Client$h } from './design.d-CYHbiaq_.cjs';
24
24
  import { C as Client$i } from './document.d-B0zC-R8x.cjs';
25
25
  import { C as Client$j } from './email-settings.d-dCUXyPAZ.cjs';
26
26
  import { C as Client$k } from './email-template.d-gtQkdaXM.cjs';
27
- import { C as Client$l } from './entity.d-BwsBk0Po.cjs';
27
+ import { C as Client$l } from './entity.d-DlI8zhXF.cjs';
28
28
  import { C as Client$m } from './entity-mapping.d-8MtWa2_L.cjs';
29
29
  import { C as Client$n } from './environments.d-qL1urwAq.cjs';
30
30
  import { C as Client$o } from './event-catalog.d-BrAxYS9D.cjs';
31
31
  import { C as Client$p } from './external-values.d-23q55J5P.cjs';
32
32
  import { C as Client$q } from './file.d-DELNV63w.cjs';
33
33
  import { C as Client$r } from './iban.d-BwdiGbxi.cjs';
34
- import { C as Client$s } from './identity.d-BBL0NI_O.cjs';
34
+ import { C as Client$s } from './identity.d-CieYn1WL.cjs';
35
35
  import { C as Client$t } from './integration-toolkit.d-l5cgwHLa.cjs';
36
36
  import { C as Client$u } from './journey.d-CMtM6U3Y.cjs';
37
37
  import { C as Client$v } from './kanban.d-BHnSRCYW.cjs';