@epilot/sdk 2.11.0 → 2.11.2
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/automation.json +19 -0
- package/definitions/customer-portal.json +79 -21
- 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.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- 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/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.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- 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/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/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/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 +6 -6
- package/dist/apis/validation-rules.js +1 -1
- 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/automation-5NBZZJK2.cjs +7 -0
- package/dist/automation-HKXKZO4Z.js +7 -0
- package/dist/{automation.d-DS_YXDE8.d.cts → automation.d-Beojxb43.d.cts} +21 -0
- package/dist/{automation.d-DS_YXDE8.d.ts → automation.d-Beojxb43.d.ts} +21 -0
- package/dist/{chunk-OZ7JODOI.cjs → chunk-NKT4AVEL.cjs} +2 -2
- package/dist/{chunk-Y4FVLGZ3.js → chunk-XO2GYSCA.js} +2 -2
- package/dist/customer-portal-K2HBVB7T.cjs +7 -0
- package/dist/customer-portal-UAKA5B2P.js +7 -0
- package/dist/{customer-portal.d-JUlTCfGt.d.cts → customer-portal.d-C9TeumWq.d.cts} +50 -26
- package/dist/{customer-portal.d-JUlTCfGt.d.ts → customer-portal.d-C9TeumWq.d.ts} +50 -26
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/automation.md +28 -15
- package/docs/customer-portal.md +69 -9
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/automation-S6NFS5KU.cjs +0 -7
- package/dist/automation-W75XZG7B.js +0 -7
- package/dist/customer-portal-EJBJ4BNI.cjs +0 -7
- package/dist/customer-portal-ZVST2CTU.js +0 -7
package/docs/customer-portal.md
CHANGED
|
@@ -174,6 +174,8 @@ const { data } = await customerPortalClient.upsertPortal(...)
|
|
|
174
174
|
- [`MobileBranding`](#mobilebranding)
|
|
175
175
|
- [`MobileConfig`](#mobileconfig)
|
|
176
176
|
- [`MobileConfigUpdate`](#mobileconfigupdate)
|
|
177
|
+
- [`MobileOtaConfig`](#mobileotaconfig)
|
|
178
|
+
- [`OtaPortal`](#otaportal)
|
|
177
179
|
- [`ContextEntity`](#contextentity)
|
|
178
180
|
- [`ContextEntities`](#contextentities)
|
|
179
181
|
- [`ErrorResp`](#errorresp)
|
|
@@ -4194,8 +4196,7 @@ const { data } = await client.checkContactExists(
|
|
|
4194
4196
|
contract: {
|
|
4195
4197
|
contract_number: '123456'
|
|
4196
4198
|
}
|
|
4197
|
-
}
|
|
4198
|
-
trigger_identifiers_check: true
|
|
4199
|
+
}
|
|
4199
4200
|
},
|
|
4200
4201
|
)
|
|
4201
4202
|
```
|
|
@@ -4206,8 +4207,7 @@ const { data } = await client.checkContactExists(
|
|
|
4206
4207
|
```json
|
|
4207
4208
|
{
|
|
4208
4209
|
"exists": true,
|
|
4209
|
-
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4210
|
-
"reason": "TIMEOUT"
|
|
4210
|
+
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4211
4211
|
}
|
|
4212
4212
|
```
|
|
4213
4213
|
|
|
@@ -4239,8 +4239,7 @@ const { data } = await client.checkContactExistsV3(
|
|
|
4239
4239
|
contract: {
|
|
4240
4240
|
contract_number: '123456'
|
|
4241
4241
|
}
|
|
4242
|
-
}
|
|
4243
|
-
trigger_identifiers_check: true
|
|
4242
|
+
}
|
|
4244
4243
|
},
|
|
4245
4244
|
)
|
|
4246
4245
|
```
|
|
@@ -4252,8 +4251,7 @@ const { data } = await client.checkContactExistsV3(
|
|
|
4252
4251
|
{
|
|
4253
4252
|
"exists": true,
|
|
4254
4253
|
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528",
|
|
4255
|
-
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4256
|
-
"reason": "TIMEOUT"
|
|
4254
|
+
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4257
4255
|
}
|
|
4258
4256
|
```
|
|
4259
4257
|
|
|
@@ -9193,6 +9191,13 @@ const { data } = await client.getMobileConfig({
|
|
|
9193
9191
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
9194
9192
|
"error": "string"
|
|
9195
9193
|
}
|
|
9194
|
+
},
|
|
9195
|
+
"ota": {
|
|
9196
|
+
"enabled": true,
|
|
9197
|
+
"channel": "canary",
|
|
9198
|
+
"auto_update": true,
|
|
9199
|
+
"update_strategy": "next-launch",
|
|
9200
|
+
"min_native_version": "string"
|
|
9196
9201
|
}
|
|
9197
9202
|
}
|
|
9198
9203
|
```
|
|
@@ -9233,6 +9238,13 @@ const { data } = await client.putMobileConfig(
|
|
|
9233
9238
|
icon_background_color: 'string',
|
|
9234
9239
|
splash_background_color: 'string',
|
|
9235
9240
|
splash_background_color_dark: 'string'
|
|
9241
|
+
},
|
|
9242
|
+
ota: {
|
|
9243
|
+
enabled: true,
|
|
9244
|
+
channel: 'canary',
|
|
9245
|
+
auto_update: true,
|
|
9246
|
+
update_strategy: 'next-launch',
|
|
9247
|
+
min_native_version: 'string'
|
|
9236
9248
|
}
|
|
9237
9249
|
},
|
|
9238
9250
|
)
|
|
@@ -9284,6 +9296,13 @@ const { data } = await client.putMobileConfig(
|
|
|
9284
9296
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
9285
9297
|
"error": "string"
|
|
9286
9298
|
}
|
|
9299
|
+
},
|
|
9300
|
+
"ota": {
|
|
9301
|
+
"enabled": true,
|
|
9302
|
+
"channel": "canary",
|
|
9303
|
+
"auto_update": true,
|
|
9304
|
+
"update_strategy": "next-launch",
|
|
9305
|
+
"min_native_version": "string"
|
|
9287
9306
|
}
|
|
9288
9307
|
}
|
|
9289
9308
|
```
|
|
@@ -9370,6 +9389,13 @@ type MobileConfig = {
|
|
|
9370
9389
|
error?: { ... }
|
|
9371
9390
|
}
|
|
9372
9391
|
}
|
|
9392
|
+
ota?: {
|
|
9393
|
+
enabled?: boolean
|
|
9394
|
+
channel?: "canary" | "stable"
|
|
9395
|
+
auto_update?: boolean
|
|
9396
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9397
|
+
min_native_version?: string
|
|
9398
|
+
}
|
|
9373
9399
|
}
|
|
9374
9400
|
```
|
|
9375
9401
|
|
|
@@ -9398,6 +9424,41 @@ type MobileConfigUpdate = {
|
|
|
9398
9424
|
splash_background_color?: string
|
|
9399
9425
|
splash_background_color_dark?: string
|
|
9400
9426
|
}
|
|
9427
|
+
ota?: {
|
|
9428
|
+
enabled?: boolean
|
|
9429
|
+
channel?: "canary" | "stable"
|
|
9430
|
+
auto_update?: boolean
|
|
9431
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9432
|
+
min_native_version?: string
|
|
9433
|
+
}
|
|
9434
|
+
}
|
|
9435
|
+
```
|
|
9436
|
+
|
|
9437
|
+
### `MobileOtaConfig`
|
|
9438
|
+
|
|
9439
|
+
OTA (over-the-air) update settings for the portal's mobile app. Drives the OTA build pipeline and the per-portal manifest. channel / update_strategy / min_native_version are epilot-internal controls.
|
|
9440
|
+
|
|
9441
|
+
```ts
|
|
9442
|
+
type MobileOtaConfig = {
|
|
9443
|
+
enabled?: boolean
|
|
9444
|
+
channel?: "canary" | "stable"
|
|
9445
|
+
auto_update?: boolean
|
|
9446
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9447
|
+
min_native_version?: string
|
|
9448
|
+
}
|
|
9449
|
+
```
|
|
9450
|
+
|
|
9451
|
+
### `OtaPortal`
|
|
9452
|
+
|
|
9453
|
+
A portal that has mobile OTA updates enabled.
|
|
9454
|
+
|
|
9455
|
+
```ts
|
|
9456
|
+
type OtaPortal = {
|
|
9457
|
+
domain: string
|
|
9458
|
+
channel: "canary" | "stable"
|
|
9459
|
+
autoUpdate: boolean
|
|
9460
|
+
updateStrategy: "next-launch" | "immediate"
|
|
9461
|
+
minNativeVersion?: string
|
|
9401
9462
|
}
|
|
9402
9463
|
```
|
|
9403
9464
|
|
|
@@ -10398,7 +10459,6 @@ type ContactCountRequest = {
|
|
|
10398
10459
|
type ContactExistsRequest = {
|
|
10399
10460
|
org_id: string
|
|
10400
10461
|
registration_identifiers: Record<string, Record<string, string>>
|
|
10401
|
-
trigger_identifiers_check?: boolean
|
|
10402
10462
|
}
|
|
10403
10463
|
```
|
|
10404
10464
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "JavaScript/TypeScript SDK for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -322,16 +322,6 @@
|
|
|
322
322
|
},
|
|
323
323
|
"./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
|
|
324
324
|
},
|
|
325
|
-
"scripts": {
|
|
326
|
-
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
327
|
-
"build": "tsup",
|
|
328
|
-
"build:watch": "tsup --watch",
|
|
329
|
-
"test": "vitest run",
|
|
330
|
-
"test:watch": "vitest",
|
|
331
|
-
"lint": "biome check src",
|
|
332
|
-
"lint:fix": "biome check src --fix",
|
|
333
|
-
"prepublishOnly": "npm run build"
|
|
334
|
-
},
|
|
335
325
|
"keywords": [
|
|
336
326
|
"epilot",
|
|
337
327
|
"sdk",
|
|
@@ -525,5 +515,14 @@
|
|
|
525
515
|
"./dist/apis/workflow-definition.d.ts"
|
|
526
516
|
]
|
|
527
517
|
}
|
|
518
|
+
},
|
|
519
|
+
"scripts": {
|
|
520
|
+
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
521
|
+
"build": "tsup",
|
|
522
|
+
"build:watch": "tsup --watch",
|
|
523
|
+
"test": "vitest run",
|
|
524
|
+
"test:watch": "vitest",
|
|
525
|
+
"lint": "biome check src",
|
|
526
|
+
"lint:fix": "biome check src --fix"
|
|
528
527
|
}
|
|
529
|
-
}
|
|
528
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}
|