@epilot/sdk 2.20.69 → 2.20.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/identity-runtime.json +1 -1
- package/definitions/identity.json +219 -34
- package/definitions/validation-rules-runtime.json +1 -1
- package/definitions/validation-rules.json +56 -10
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +8 -8
- package/dist/apis/identity.js +2 -2
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +8 -8
- package/dist/apis/validation-rules.d.cts +2 -2
- package/dist/apis/validation-rules.d.ts +2 -2
- package/dist/apis/validation-rules.js +2 -2
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/chunk-7IKQIVUS.js +14 -0
- package/dist/{chunk-3IBAPVLY.js → chunk-DSYS22AC.js} +1 -1
- package/dist/chunk-JIUTCNTB.cjs +14 -0
- package/dist/{chunk-PAMXQWNL.cjs → chunk-M6RNRDA3.cjs} +4 -4
- package/dist/{chunk-BVDXJ4QV.js → chunk-N2IV6QYZ.js} +4 -4
- package/dist/{chunk-RPWTWCDC.cjs → chunk-TKRZK7V2.cjs} +1 -1
- package/dist/identity-F5XHYPXY.js +7 -0
- package/dist/identity-JDTGYAOV.cjs +7 -0
- package/dist/{identity-runtime-PFM5KQWA.js → identity-runtime-A4LSC77N.js} +1 -1
- package/dist/{identity-runtime-57DQPQWX.cjs → identity-runtime-GNE4EC7V.cjs} +2 -2
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/validation-rules-D4OW6VYI.js +7 -0
- package/dist/validation-rules-QYVRILMT.cjs +7 -0
- package/dist/{validation-rules-runtime-VGLVHV36.js → validation-rules-runtime-6MRCS5X2.js} +1 -1
- package/dist/{validation-rules-runtime-DENVKYLF.cjs → validation-rules-runtime-X7M3QE5I.cjs} +2 -2
- package/dist/{validation-rules.d-ChX2VKqg.d.cts → validation-rules.d-C1OtLama.d.cts} +129 -29
- package/dist/{validation-rules.d-ChX2VKqg.d.ts → validation-rules.d-C1OtLama.d.ts} +129 -29
- package/docs/identity.md +58 -64
- package/docs/validation-rules.md +336 -177
- package/package.json +1 -1
- package/dist/chunk-HRSCAD3W.cjs +0 -14
- package/dist/chunk-PPX45U34.js +0 -14
- package/dist/identity-EG35NBZW.js +0 -7
- package/dist/identity-XMX3VFXR.cjs +0 -7
- package/dist/validation-rules-2XSKTPDC.js +0 -7
- package/dist/validation-rules-PHF3RPTN.cjs +0 -7
package/docs/identity.md
CHANGED
|
@@ -42,6 +42,7 @@ const { data } = await identityClient.listClients(...)
|
|
|
42
42
|
- [`revokeClientOrganization`](#revokeclientorganization)
|
|
43
43
|
- [`suspendClientOrganization`](#suspendclientorganization)
|
|
44
44
|
- [`activateClientOrganization`](#activateclientorganization)
|
|
45
|
+
- [`getUserSubject`](#getusersubject)
|
|
45
46
|
|
|
46
47
|
**Session**
|
|
47
48
|
- [`createIdentitySession`](#createidentitysession)
|
|
@@ -54,6 +55,7 @@ const { data } = await identityClient.listClients(...)
|
|
|
54
55
|
- [`Error`](#error)
|
|
55
56
|
- [`PartnerClientId`](#partnerclientid)
|
|
56
57
|
- [`OrgId`](#orgid)
|
|
58
|
+
- [`UserId`](#userid)
|
|
57
59
|
- [`Environment`](#environment)
|
|
58
60
|
- [`PartnerClientStatus`](#partnerclientstatus)
|
|
59
61
|
- [`Scope`](#scope)
|
|
@@ -67,13 +69,13 @@ const { data } = await identityClient.listClients(...)
|
|
|
67
69
|
- [`RotateSecretRequest`](#rotatesecretrequest)
|
|
68
70
|
- [`AuthorizationPolicyInput`](#authorizationpolicyinput)
|
|
69
71
|
- [`AuthorizationPolicy`](#authorizationpolicy)
|
|
70
|
-
- [`PartnerAccount`](#partneraccount)
|
|
71
72
|
- [`OrgEnablementStatus`](#orgenablementstatus)
|
|
72
73
|
- [`OrgEnablementCreate`](#orgenablementcreate)
|
|
73
74
|
- [`OrgEnablementUpdate`](#orgenablementupdate)
|
|
74
75
|
- [`OrgEnablement`](#orgenablement)
|
|
75
76
|
- [`OrgEnablementList`](#orgenablementlist)
|
|
76
77
|
- [`IdentitySession`](#identitysession)
|
|
78
|
+
- [`UserSubject`](#usersubject)
|
|
77
79
|
|
|
78
80
|
### `listClients`
|
|
79
81
|
|
|
@@ -523,10 +525,6 @@ const { data } = await client.listClientOrganizations({
|
|
|
523
525
|
"recorded_by": "string",
|
|
524
526
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
525
527
|
},
|
|
526
|
-
"partner_account": {
|
|
527
|
-
"id": "string",
|
|
528
|
-
"label": "string"
|
|
529
|
-
},
|
|
530
528
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
531
529
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
532
530
|
"created_by": "string",
|
|
@@ -561,10 +559,6 @@ const { data } = await client.enableClientOrganization(
|
|
|
561
559
|
allowed_scopes: ['openid'],
|
|
562
560
|
customer_approval_ref: 'string',
|
|
563
561
|
approved_at: '1970-01-01T00:00:00.000Z'
|
|
564
|
-
},
|
|
565
|
-
partner_account: {
|
|
566
|
-
id: 'string',
|
|
567
|
-
label: 'string'
|
|
568
562
|
}
|
|
569
563
|
},
|
|
570
564
|
)
|
|
@@ -590,10 +584,6 @@ const { data } = await client.enableClientOrganization(
|
|
|
590
584
|
"recorded_by": "string",
|
|
591
585
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
592
586
|
},
|
|
593
|
-
"partner_account": {
|
|
594
|
-
"id": "string",
|
|
595
|
-
"label": "string"
|
|
596
|
-
},
|
|
597
587
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
598
588
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
599
589
|
"created_by": "string",
|
|
@@ -638,10 +628,6 @@ const { data } = await client.getClientOrganization({
|
|
|
638
628
|
"recorded_by": "string",
|
|
639
629
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
640
630
|
},
|
|
641
|
-
"partner_account": {
|
|
642
|
-
"id": "string",
|
|
643
|
-
"label": "string"
|
|
644
|
-
},
|
|
645
631
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
646
632
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
647
633
|
"created_by": "string",
|
|
@@ -674,10 +660,6 @@ const { data } = await client.updateClientOrganization(
|
|
|
674
660
|
allowed_scopes: ['openid'],
|
|
675
661
|
customer_approval_ref: 'string',
|
|
676
662
|
approved_at: '1970-01-01T00:00:00.000Z'
|
|
677
|
-
},
|
|
678
|
-
partner_account: {
|
|
679
|
-
id: 'string',
|
|
680
|
-
label: 'string'
|
|
681
663
|
}
|
|
682
664
|
},
|
|
683
665
|
)
|
|
@@ -703,10 +685,6 @@ const { data } = await client.updateClientOrganization(
|
|
|
703
685
|
"recorded_by": "string",
|
|
704
686
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
705
687
|
},
|
|
706
|
-
"partner_account": {
|
|
707
|
-
"id": "string",
|
|
708
|
-
"label": "string"
|
|
709
|
-
},
|
|
710
688
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
711
689
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
712
690
|
"created_by": "string",
|
|
@@ -758,10 +736,6 @@ const { data } = await client.revokeClientOrganization(
|
|
|
758
736
|
"recorded_by": "string",
|
|
759
737
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
760
738
|
},
|
|
761
|
-
"partner_account": {
|
|
762
|
-
"id": "string",
|
|
763
|
-
"label": "string"
|
|
764
|
-
},
|
|
765
739
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
766
740
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
767
741
|
"created_by": "string",
|
|
@@ -811,10 +785,6 @@ const { data } = await client.suspendClientOrganization(
|
|
|
811
785
|
"recorded_by": "string",
|
|
812
786
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
813
787
|
},
|
|
814
|
-
"partner_account": {
|
|
815
|
-
"id": "string",
|
|
816
|
-
"label": "string"
|
|
817
|
-
},
|
|
818
788
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
819
789
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
820
790
|
"created_by": "string",
|
|
@@ -859,10 +829,6 @@ const { data } = await client.activateClientOrganization({
|
|
|
859
829
|
"recorded_by": "string",
|
|
860
830
|
"recorded_at": "1970-01-01T00:00:00.000Z"
|
|
861
831
|
},
|
|
862
|
-
"partner_account": {
|
|
863
|
-
"id": "string",
|
|
864
|
-
"label": "string"
|
|
865
|
-
},
|
|
866
832
|
"created_at": "1970-01-01T00:00:00.000Z",
|
|
867
833
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
868
834
|
"created_by": "string",
|
|
@@ -874,6 +840,40 @@ const { data } = await client.activateClientOrganization({
|
|
|
874
840
|
|
|
875
841
|
---
|
|
876
842
|
|
|
843
|
+
### `getUserSubject`
|
|
844
|
+
|
|
845
|
+
The pairwise `sub` this client receives for one epilot user, so the partner can bind the person on its
|
|
846
|
+
side **before** the first sign-in (for example a Babelforce agent provisioned through SCIM with
|
|
847
|
+
`
|
|
848
|
+
|
|
849
|
+
`GET /v1/identity/operator/clients/{client_id}/organizations/{org_id}/users/{user_id}:subject`
|
|
850
|
+
|
|
851
|
+
```ts
|
|
852
|
+
const { data } = await client.getUserSubject({
|
|
853
|
+
client_id: 'example',
|
|
854
|
+
org_id: 'example',
|
|
855
|
+
user_id: 'example',
|
|
856
|
+
})
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
<details>
|
|
860
|
+
<summary>Response</summary>
|
|
861
|
+
|
|
862
|
+
```json
|
|
863
|
+
{
|
|
864
|
+
"client_id": "bf-prod-x7k2",
|
|
865
|
+
"org_id": "739224",
|
|
866
|
+
"user_id": "100321",
|
|
867
|
+
"sub": "v1.dGhpcy1pcy1hLWR1bW15LXN1YmplY3QtdmFsdWUtMDAx",
|
|
868
|
+
"key_version": "v1",
|
|
869
|
+
"sector": "portal.epilot.cloud"
|
|
870
|
+
}
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
</details>
|
|
874
|
+
|
|
875
|
+
---
|
|
876
|
+
|
|
877
877
|
### `createIdentitySession`
|
|
878
878
|
|
|
879
879
|
Called by the epilot portal through the portal-host proxy after every persisted 360 session.
|
|
@@ -958,6 +958,14 @@ epilot organization id, an opaque case-sensitive string
|
|
|
958
958
|
type OrgId = string
|
|
959
959
|
```
|
|
960
960
|
|
|
961
|
+
### `UserId`
|
|
962
|
+
|
|
963
|
+
epilot user id (`custom:ivy_user_id` in a 360 token). A user belongs to exactly one organization.
|
|
964
|
+
|
|
965
|
+
```ts
|
|
966
|
+
type UserId = string
|
|
967
|
+
```
|
|
968
|
+
|
|
961
969
|
### `Environment`
|
|
962
970
|
|
|
963
971
|
Partner-side environment this client belongs to
|
|
@@ -1151,17 +1159,6 @@ type AuthorizationPolicy = {
|
|
|
1151
1159
|
}
|
|
1152
1160
|
```
|
|
1153
1161
|
|
|
1154
|
-
### `PartnerAccount`
|
|
1155
|
-
|
|
1156
|
-
Optional audit reference to the partner tenant this organization maps to. The partner enforces the mapping.
|
|
1157
|
-
|
|
1158
|
-
```ts
|
|
1159
|
-
type PartnerAccount = {
|
|
1160
|
-
id: string
|
|
1161
|
-
label?: string
|
|
1162
|
-
}
|
|
1163
|
-
```
|
|
1164
|
-
|
|
1165
1162
|
### `OrgEnablementStatus`
|
|
1166
1163
|
|
|
1167
1164
|
```ts
|
|
@@ -1180,10 +1177,6 @@ type OrgEnablementCreate = {
|
|
|
1180
1177
|
customer_approval_ref: string
|
|
1181
1178
|
approved_at: string // date-time
|
|
1182
1179
|
}
|
|
1183
|
-
partner_account?: {
|
|
1184
|
-
id: string
|
|
1185
|
-
label?: string
|
|
1186
|
-
}
|
|
1187
1180
|
}
|
|
1188
1181
|
```
|
|
1189
1182
|
|
|
@@ -1199,10 +1192,6 @@ type OrgEnablementUpdate = {
|
|
|
1199
1192
|
customer_approval_ref: string
|
|
1200
1193
|
approved_at: string // date-time
|
|
1201
1194
|
}
|
|
1202
|
-
partner_account?: {
|
|
1203
|
-
id: string
|
|
1204
|
-
label?: string
|
|
1205
|
-
}
|
|
1206
1195
|
}
|
|
1207
1196
|
```
|
|
1208
1197
|
|
|
@@ -1225,10 +1214,6 @@ type OrgEnablement = {
|
|
|
1225
1214
|
recorded_by: string
|
|
1226
1215
|
recorded_at: string // date-time
|
|
1227
1216
|
}
|
|
1228
|
-
partner_account?: {
|
|
1229
|
-
id: string
|
|
1230
|
-
label?: string
|
|
1231
|
-
}
|
|
1232
1217
|
created_at: string // date-time
|
|
1233
1218
|
updated_at: string // date-time
|
|
1234
1219
|
created_by?: string
|
|
@@ -1256,10 +1241,6 @@ type OrgEnablementList = {
|
|
|
1256
1241
|
recorded_by: { ... }
|
|
1257
1242
|
recorded_at: { ... }
|
|
1258
1243
|
}
|
|
1259
|
-
partner_account?: {
|
|
1260
|
-
id: { ... }
|
|
1261
|
-
label?: { ... }
|
|
1262
|
-
}
|
|
1263
1244
|
created_at: string // date-time
|
|
1264
1245
|
updated_at: string // date-time
|
|
1265
1246
|
created_by?: string
|
|
@@ -1277,3 +1258,16 @@ type IdentitySession = {
|
|
|
1277
1258
|
expires_at: string // date-time
|
|
1278
1259
|
}
|
|
1279
1260
|
```
|
|
1261
|
+
|
|
1262
|
+
### `UserSubject`
|
|
1263
|
+
|
|
1264
|
+
```ts
|
|
1265
|
+
type UserSubject = {
|
|
1266
|
+
client_id: string
|
|
1267
|
+
org_id: string
|
|
1268
|
+
user_id: string
|
|
1269
|
+
sub: string
|
|
1270
|
+
key_version: string
|
|
1271
|
+
sector: string
|
|
1272
|
+
}
|
|
1273
|
+
```
|