@epilot/sdk 2.20.73 → 2.20.75

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 (127) hide show
  1. package/definitions/identity.json +8 -3
  2. package/dist/apis/access-token.cjs +6 -6
  3. package/dist/apis/access-token.js +1 -1
  4. package/dist/apis/address-suggestions.cjs +6 -6
  5. package/dist/apis/address-suggestions.js +1 -1
  6. package/dist/apis/address.cjs +6 -6
  7. package/dist/apis/address.js +1 -1
  8. package/dist/apis/ai-agents.cjs +6 -6
  9. package/dist/apis/ai-agents.js +1 -1
  10. package/dist/apis/app.cjs +6 -6
  11. package/dist/apis/app.js +1 -1
  12. package/dist/apis/audit-logs.cjs +6 -6
  13. package/dist/apis/audit-logs.js +1 -1
  14. package/dist/apis/automation.cjs +6 -6
  15. package/dist/apis/automation.js +1 -1
  16. package/dist/apis/billing.cjs +6 -6
  17. package/dist/apis/billing.js +1 -1
  18. package/dist/apis/blueprint-manifest.cjs +6 -6
  19. package/dist/apis/blueprint-manifest.js +1 -1
  20. package/dist/apis/calendar.cjs +6 -6
  21. package/dist/apis/calendar.js +1 -1
  22. package/dist/apis/chat.cjs +6 -6
  23. package/dist/apis/chat.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +6 -6
  31. package/dist/apis/dashboard.js +1 -1
  32. package/dist/apis/data-governance.cjs +6 -6
  33. package/dist/apis/data-governance.js +1 -1
  34. package/dist/apis/deduplication.cjs +6 -6
  35. package/dist/apis/deduplication.js +1 -1
  36. package/dist/apis/design.cjs +6 -6
  37. package/dist/apis/design.js +1 -1
  38. package/dist/apis/document.cjs +6 -6
  39. package/dist/apis/document.js +1 -1
  40. package/dist/apis/email-settings.cjs +6 -6
  41. package/dist/apis/email-settings.js +1 -1
  42. package/dist/apis/email-template.cjs +6 -6
  43. package/dist/apis/email-template.js +1 -1
  44. package/dist/apis/entity-mapping.cjs +6 -6
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +6 -6
  47. package/dist/apis/entity.js +1 -1
  48. package/dist/apis/environments.cjs +6 -6
  49. package/dist/apis/environments.js +1 -1
  50. package/dist/apis/event-catalog.cjs +6 -6
  51. package/dist/apis/event-catalog.js +1 -1
  52. package/dist/apis/external-values.cjs +6 -6
  53. package/dist/apis/external-values.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/identity.cjs +6 -6
  59. package/dist/apis/identity.d.cts +2 -2
  60. package/dist/apis/identity.d.ts +2 -2
  61. package/dist/apis/identity.js +1 -1
  62. package/dist/apis/integration-toolkit.cjs +6 -6
  63. package/dist/apis/integration-toolkit.js +1 -1
  64. package/dist/apis/journey.cjs +6 -6
  65. package/dist/apis/journey.js +1 -1
  66. package/dist/apis/kanban.cjs +6 -6
  67. package/dist/apis/kanban.js +1 -1
  68. package/dist/apis/message.cjs +6 -6
  69. package/dist/apis/message.js +1 -1
  70. package/dist/apis/metering.cjs +6 -6
  71. package/dist/apis/metering.js +1 -1
  72. package/dist/apis/notes.cjs +6 -6
  73. package/dist/apis/notes.js +1 -1
  74. package/dist/apis/notification.cjs +6 -6
  75. package/dist/apis/notification.js +1 -1
  76. package/dist/apis/organization.cjs +6 -6
  77. package/dist/apis/organization.js +1 -1
  78. package/dist/apis/partner-directory.cjs +6 -6
  79. package/dist/apis/partner-directory.js +1 -1
  80. package/dist/apis/permissions.cjs +6 -6
  81. package/dist/apis/permissions.js +1 -1
  82. package/dist/apis/phone-integration.cjs +6 -6
  83. package/dist/apis/phone-integration.js +1 -1
  84. package/dist/apis/pricing-tier.cjs +6 -6
  85. package/dist/apis/pricing-tier.js +1 -1
  86. package/dist/apis/pricing.cjs +6 -6
  87. package/dist/apis/pricing.js +1 -1
  88. package/dist/apis/purpose.cjs +6 -6
  89. package/dist/apis/purpose.js +1 -1
  90. package/dist/apis/query.cjs +6 -6
  91. package/dist/apis/query.js +1 -1
  92. package/dist/apis/sandbox.cjs +6 -6
  93. package/dist/apis/sandbox.js +1 -1
  94. package/dist/apis/sharing.cjs +6 -6
  95. package/dist/apis/sharing.js +1 -1
  96. package/dist/apis/snapshot.cjs +6 -6
  97. package/dist/apis/snapshot.js +1 -1
  98. package/dist/apis/submission.cjs +6 -6
  99. package/dist/apis/submission.js +1 -1
  100. package/dist/apis/target.cjs +6 -6
  101. package/dist/apis/target.js +1 -1
  102. package/dist/apis/targeting.cjs +6 -6
  103. package/dist/apis/targeting.js +1 -1
  104. package/dist/apis/template-variables.cjs +6 -6
  105. package/dist/apis/template-variables.js +1 -1
  106. package/dist/apis/user.cjs +6 -6
  107. package/dist/apis/user.js +1 -1
  108. package/dist/apis/validation-rules.cjs +6 -6
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/{chunk-WG7OKIQ3.js → chunk-6B5HXASK.js} +1 -1
  117. package/dist/{chunk-5PG5IEQ7.cjs → chunk-JGPHZYSD.cjs} +1 -1
  118. package/dist/{identity-F5XHYPXY.js → identity-OT3MIWHV.js} +1 -1
  119. package/dist/{identity-JDTGYAOV.cjs → identity-XCFH3MIW.cjs} +1 -1
  120. package/dist/{identity.d-BBL0NI_O.d.cts → identity.d-DUcoy_-W.d.cts} +154 -18
  121. package/dist/{identity.d-BBL0NI_O.d.ts → identity.d-DUcoy_-W.d.ts} +154 -18
  122. package/dist/index.cjs +8 -8
  123. package/dist/index.d.cts +1 -1
  124. package/dist/index.d.ts +1 -1
  125. package/dist/index.js +1 -1
  126. package/docs/identity.md +3 -3
  127. package/package.json +1 -1
@@ -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;
@@ -60,9 +67,17 @@ declare namespace Components {
60
67
  * Reference to the customer's approval evidence (ticket, signed order, contract clause)
61
68
  */
62
69
  customer_approval_ref: string;
70
+ /**
71
+ * When the customer approved. Optional: enabling an organization defaults it to the time of the
72
+ * request, and a policy update keeps the current value unless a new one is given.
73
+ *
74
+ */
63
75
  approved_at: string; // date-time
64
76
  version: number;
65
77
  mandatory_claims: ("org_id")[];
78
+ /**
79
+ * Email of the admin-portal operator who recorded this policy version
80
+ */
66
81
  recorded_by: string;
67
82
  recorded_at: string; // date-time
68
83
  }
@@ -80,7 +95,12 @@ declare namespace Components {
80
95
  * Reference to the customer's approval evidence (ticket, signed order, contract clause)
81
96
  */
82
97
  customer_approval_ref: string;
83
- approved_at: string; // date-time
98
+ /**
99
+ * When the customer approved. Optional: enabling an organization defaults it to the time of the
100
+ * request, and a policy update keeps the current value unless a new one is given.
101
+ *
102
+ */
103
+ approved_at?: string; // date-time
84
104
  }
85
105
  /**
86
106
  * Partner-side environment this client belongs to
@@ -122,7 +142,7 @@ declare namespace Components {
122
142
  */
123
143
  user_id: string;
124
144
  /**
125
- * When the mirrored credential, and therefore the cookie, expires
145
+ * When the cookie expires (the mirrored credential's expiry, capped at 15 minutes)
126
146
  */
127
147
  expires_at: string; // date-time
128
148
  }
@@ -142,10 +162,15 @@ declare namespace Components {
142
162
  status: OrgEnablementStatus;
143
163
  status_reason?: string;
144
164
  authorization_policy: AuthorizationPolicy;
145
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
146
165
  created_at: string; // date-time
147
166
  updated_at: string; // date-time
167
+ /**
168
+ * Email of the admin-portal operator who enabled the organization
169
+ */
148
170
  created_by?: string;
171
+ /**
172
+ * Email of the admin-portal operator who last changed the enablement
173
+ */
149
174
  updated_by?: string;
150
175
  }
151
176
  export interface OrgEnablementCreate {
@@ -156,7 +181,6 @@ declare namespace Components {
156
181
  */
157
182
  OrgId /* ^[A-Za-z0-9_-]+$ */;
158
183
  authorization_policy: AuthorizationPolicyInput;
159
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
160
184
  }
161
185
  export interface OrgEnablementList {
162
186
  results: OrgEnablement[];
@@ -168,7 +192,6 @@ declare namespace Components {
168
192
  */
169
193
  expected_policy_version: number;
170
194
  authorization_policy: AuthorizationPolicyInput;
171
- partner_account?: /* Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping. */ PartnerAccount;
172
195
  }
173
196
  /**
174
197
  * epilot organization id, an opaque case-sensitive string
@@ -176,13 +199,6 @@ declare namespace Components {
176
199
  * 739224
177
200
  */
178
201
  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
202
  export interface PartnerClient {
187
203
  client_id: /**
188
204
  * Opaque client identifier, unique within the issuer, never reused
@@ -230,9 +246,12 @@ declare namespace Components {
230
246
  created_at: string; // date-time
231
247
  updated_at: string; // date-time
232
248
  /**
233
- * Admin-portal identity of the operator who created the client
249
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
234
250
  */
235
251
  created_by?: string;
252
+ /**
253
+ * Email of the admin-portal operator who last changed the client
254
+ */
236
255
  updated_by?: string;
237
256
  }
238
257
  export interface PartnerClientCreate {
@@ -393,9 +412,12 @@ declare namespace Components {
393
412
  created_at: string; // date-time
394
413
  updated_at: string; // date-time
395
414
  /**
396
- * Admin-portal identity of the operator who created the client
415
+ * Email of the admin-portal operator who created the client (their Cognito identity when the pool holds no email)
397
416
  */
398
417
  created_by?: string;
418
+ /**
419
+ * Email of the admin-portal operator who last changed the client
420
+ */
399
421
  updated_by?: string;
400
422
  /**
401
423
  * Returned exactly once. Store it securely; it cannot be retrieved again.
@@ -416,6 +438,50 @@ declare namespace Components {
416
438
  export interface StatusChangeRequest {
417
439
  reason?: string;
418
440
  }
441
+ /**
442
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
443
+ * example:
444
+ * 100321
445
+ */
446
+ export type UserId = string; // ^[A-Za-z0-9_-]+$
447
+ export interface UserSubject {
448
+ client_id: /**
449
+ * Opaque client identifier, unique within the issuer, never reused
450
+ * example:
451
+ * bf-prod-x7k2
452
+ */
453
+ PartnerClientId /* ^[A-Za-z0-9._~-]+$ */;
454
+ org_id: /**
455
+ * epilot organization id, an opaque case-sensitive string
456
+ * example:
457
+ * 739224
458
+ */
459
+ OrgId /* ^[A-Za-z0-9_-]+$ */;
460
+ user_id: /**
461
+ * epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
462
+ * example:
463
+ * 100321
464
+ */
465
+ UserId /* ^[A-Za-z0-9_-]+$ */;
466
+ /**
467
+ * The pairwise subject this client receives for the user, `<key_version>.<base64url digest>`
468
+ * example:
469
+ * v1.dGhpcy1pcy1hLWR1bW15LXN1YmplY3QtdmFsdWUtMDAx
470
+ */
471
+ sub: string;
472
+ /**
473
+ * Active pairwise key version the value was derived with
474
+ * example:
475
+ * v1
476
+ */
477
+ key_version: string;
478
+ /**
479
+ * Pairwise sector the value was derived for (sector_identifier_uri host, else the first redirect host)
480
+ * example:
481
+ * portal.epilot.cloud
482
+ */
483
+ sector: string;
484
+ }
419
485
  }
420
486
  }
421
487
  declare namespace Paths {
@@ -486,6 +552,16 @@ declare namespace Paths {
486
552
  export type $404 = Components.Responses.NotFound;
487
553
  }
488
554
  }
555
+ namespace GetUserSubject {
556
+ namespace Responses {
557
+ export type $200 = Components.Schemas.UserSubject;
558
+ export type $400 = Components.Schemas.Error;
559
+ export type $401 = Components.Responses.Unauthorized;
560
+ export type $403 = Components.Responses.Forbidden;
561
+ export type $404 = Components.Schemas.Error;
562
+ export type $409 = Components.Schemas.Error;
563
+ }
564
+ }
489
565
  namespace LaunchClient {
490
566
  namespace Parameters {
491
567
  export interface Extra {
@@ -652,6 +728,13 @@ declare namespace Paths {
652
728
  export type $1 = Components.Parameters.OrgIdPath;
653
729
  }
654
730
  }
731
+ namespace V1IdentityOperatorClients$ClientIdOrganizations$OrgIdUsers$UserIdSubject {
732
+ namespace Parameters {
733
+ export type $0 = Components.Parameters.ClientIdPath;
734
+ export type $1 = Components.Parameters.OrgIdPath;
735
+ export type $2 = Components.Parameters.UserIdPath;
736
+ }
737
+ }
655
738
  namespace V1IdentityOperatorClients$ClientIdRotateSecret {
656
739
  namespace Parameters {
657
740
  export type $0 = Components.Parameters.ClientIdPath;
@@ -838,12 +921,37 @@ interface OperationMethods {
838
921
  data?: any,
839
922
  config?: AxiosRequestConfig
840
923
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
924
+ /**
925
+ * getUserSubject - getUserSubject
926
+ *
927
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
928
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
929
+ * `externalId = sub`).
930
+ *
931
+ * Derived exactly as the token endpoint derives it, never stored:
932
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
933
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
934
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
935
+ * version changes.
936
+ *
937
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
938
+ * an organization enablement that is not revoked, and the user being an active member of that organization
939
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
940
+ * identifier.
941
+ *
942
+ */
943
+ 'getUserSubject'(
944
+ parameters?: Parameters<UnknownParamsObject> | null,
945
+ data?: any,
946
+ config?: AxiosRequestConfig
947
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
841
948
  /**
842
949
  * createIdentitySession - createIdentitySession
843
950
  *
844
951
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
845
952
  * 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.
953
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
954
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
847
955
  * The cookie is what proves the live 360 session during `completeInteraction`.
848
956
  *
849
957
  */
@@ -1073,13 +1181,40 @@ interface PathsDictionary {
1073
1181
  config?: AxiosRequestConfig
1074
1182
  ): OperationResponse<Paths.ActivateClientOrganization.Responses.$200>
1075
1183
  }
1184
+ ['/v1/identity/operator/clients/{client_id}/organizations/{org_id}/users/{user_id}:subject']: {
1185
+ /**
1186
+ * getUserSubject - getUserSubject
1187
+ *
1188
+ * The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
1189
+ * side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
1190
+ * `externalId = sub`).
1191
+ *
1192
+ * Derived exactly as the token endpoint derives it, never stored:
1193
+ * `sub = key_version + "." + base64url(HMAC-SHA256(key[key_version], sector + "\n" + user_id))`, where the
1194
+ * sector is the client's `sector_identifier_uri` host or, without one, the host of its first redirect URI.
1195
+ * The same inputs always give the same value; it changes only when the client's sector or the active key
1196
+ * version changes.
1197
+ *
1198
+ * Requires an **active** client (a draft client's sector may still change and would invalidate every binding),
1199
+ * an organization enablement that is not revoked, and the user being an active member of that organization
1200
+ * (checked live against user-api). Every read is written to the audit trail: the value is a partner-facing
1201
+ * identifier.
1202
+ *
1203
+ */
1204
+ 'get'(
1205
+ parameters?: Parameters<UnknownParamsObject> | null,
1206
+ data?: any,
1207
+ config?: AxiosRequestConfig
1208
+ ): OperationResponse<Paths.GetUserSubject.Responses.$200>
1209
+ }
1076
1210
  ['/v1/identity/session']: {
1077
1211
  /**
1078
1212
  * createIdentitySession - createIdentitySession
1079
1213
  *
1080
1214
  * Called by the epilot portal through the portal-host proxy after every persisted 360 session.
1081
1215
  * 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.
1216
+ * (`HttpOnly; Secure; Path=/v1/identity`) whose lifetime is the remaining token lifetime, capped at 15 minutes
1217
+ * (the portal mirrors the credential again on every token refresh and just before a partner sign-in).
1083
1218
  * The cookie is what proves the live 360 session during `completeInteraction`.
1084
1219
  *
1085
1220
  */
@@ -1138,7 +1273,6 @@ type OrgEnablementList = Components.Schemas.OrgEnablementList;
1138
1273
  type OrgEnablementStatus = Components.Schemas.OrgEnablementStatus;
1139
1274
  type OrgEnablementUpdate = Components.Schemas.OrgEnablementUpdate;
1140
1275
  type OrgId = Components.Schemas.OrgId;
1141
- type PartnerAccount = Components.Schemas.PartnerAccount;
1142
1276
  type PartnerClient = Components.Schemas.PartnerClient;
1143
1277
  type PartnerClientCreate = Components.Schemas.PartnerClientCreate;
1144
1278
  type PartnerClientId = Components.Schemas.PartnerClientId;
@@ -1149,5 +1283,7 @@ type PartnerClientWithSecret = Components.Schemas.PartnerClientWithSecret;
1149
1283
  type RotateSecretRequest = Components.Schemas.RotateSecretRequest;
1150
1284
  type Scope = Components.Schemas.Scope;
1151
1285
  type StatusChangeRequest = Components.Schemas.StatusChangeRequest;
1286
+ type UserId = Components.Schemas.UserId;
1287
+ type UserSubject = Components.Schemas.UserSubject;
1152
1288
 
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 };
1289
+ 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
@@ -170,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunk5PG5IEQ7cjs = require('./chunk-5PG5IEQ7.cjs');
173
+ var _chunkJGPHZYSDcjs = require('./chunk-JGPHZYSD.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 = _chunk5PG5IEQ7cjs.createApiClient.call(void 0, {
247
+ entry.instance = _chunkJGPHZYSDcjs.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) => _chunk5PG5IEQ7cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
280
+ var expandDef = (mod) => _chunkJGPHZYSDcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
281
281
  var registerBuiltinApis = (registry) => {
282
282
  registerApi({
283
283
  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 _chunk5PG5IEQ7cjs.createApiHandle.call(void 0, {
643
+ return _chunkJGPHZYSDcjs.createApiHandle.call(void 0, {
644
644
  resolveClient: () => resolveClient({ registry, name, state }),
645
- createClient: () => _chunk5PG5IEQ7cjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
645
+ createClient: () => _chunkJGPHZYSDcjs.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) => _chunk5PG5IEQ7cjs.help.call(void 0, apiName);
693
+ return (apiName) => _chunkJGPHZYSDcjs.help.call(void 0, apiName);
694
694
  case "openapi":
695
- return (apiName) => _chunk5PG5IEQ7cjs.openapi.call(void 0, apiName);
695
+ return (apiName) => _chunkJGPHZYSDcjs.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 = _chunk5PG5IEQ7cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk5PG5IEQ7cjs.help; exports.openapi = _chunk5PG5IEQ7cjs.openapi;
725
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkJGPHZYSDcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkJGPHZYSDcjs.help; exports.openapi = _chunkJGPHZYSDcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -31,7 +31,7 @@ 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-DUcoy_-W.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';
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ import { C as Client$o } from './event-catalog.d-BrAxYS9D.js';
31
31
  import { C as Client$p } from './external-values.d-23q55J5P.js';
32
32
  import { C as Client$q } from './file.d-DELNV63w.js';
33
33
  import { C as Client$r } from './iban.d-BwdiGbxi.js';
34
- import { C as Client$s } from './identity.d-BBL0NI_O.js';
34
+ import { C as Client$s } from './identity.d-DUcoy_-W.js';
35
35
  import { C as Client$t } from './integration-toolkit.d-l5cgwHLa.js';
36
36
  import { C as Client$u } from './journey.d-CMtM6U3Y.js';
37
37
  import { C as Client$v } from './kanban.d-BHnSRCYW.js';
package/dist/index.js CHANGED
@@ -170,7 +170,7 @@ import {
170
170
  expand,
171
171
  help,
172
172
  openapi
173
- } from "./chunk-WG7OKIQ3.js";
173
+ } from "./chunk-6B5HXASK.js";
174
174
  import {
175
175
  __require
176
176
  } from "./chunk-YPSWSI3M.js";
package/docs/identity.md CHANGED
@@ -1139,7 +1139,7 @@ type AuthorizationPolicyInput = {
1139
1139
  population?: "all_current_org_members"
1140
1140
  allowed_scopes: "openid" | "email" | "profile"[]
1141
1141
  customer_approval_ref: string
1142
- approved_at: string // date-time
1142
+ approved_at?: string // date-time
1143
1143
  }
1144
1144
  ```
1145
1145
 
@@ -1175,7 +1175,7 @@ type OrgEnablementCreate = {
1175
1175
  population?: "all_current_org_members"
1176
1176
  allowed_scopes: "openid" | "email" | "profile"[]
1177
1177
  customer_approval_ref: string
1178
- approved_at: string // date-time
1178
+ approved_at?: string // date-time
1179
1179
  }
1180
1180
  }
1181
1181
  ```
@@ -1190,7 +1190,7 @@ type OrgEnablementUpdate = {
1190
1190
  population?: "all_current_org_members"
1191
1191
  allowed_scopes: "openid" | "email" | "profile"[]
1192
1192
  customer_approval_ref: string
1193
- approved_at: string // date-time
1193
+ approved_at?: string // date-time
1194
1194
  }
1195
1195
  }
1196
1196
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.73",
3
+ "version": "2.20.75",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",