@epilot/sdk 2.10.2 → 2.10.3

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 (124) hide show
  1. package/definitions/customer-portal.json +21 -0
  2. package/definitions/focus-pocus-runtime.json +1 -0
  3. package/definitions/focus-pocus.json +757 -0
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.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.d.cts +2 -2
  30. package/dist/apis/customer-portal.d.ts +2 -2
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.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/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +6 -6
  81. package/dist/apis/pricing.js +1 -1
  82. package/dist/apis/purpose.cjs +6 -6
  83. package/dist/apis/purpose.js +1 -1
  84. package/dist/apis/query.cjs +6 -6
  85. package/dist/apis/query.js +1 -1
  86. package/dist/apis/sandbox.cjs +6 -6
  87. package/dist/apis/sandbox.js +1 -1
  88. package/dist/apis/sharing.cjs +6 -6
  89. package/dist/apis/sharing.js +1 -1
  90. package/dist/apis/snapshot.cjs +6 -6
  91. package/dist/apis/snapshot.js +1 -1
  92. package/dist/apis/submission.cjs +6 -6
  93. package/dist/apis/submission.js +1 -1
  94. package/dist/apis/target.cjs +6 -6
  95. package/dist/apis/target.js +1 -1
  96. package/dist/apis/targeting.cjs +6 -6
  97. package/dist/apis/targeting.js +1 -1
  98. package/dist/apis/template-variables.cjs +6 -6
  99. package/dist/apis/template-variables.js +1 -1
  100. package/dist/apis/user.cjs +6 -6
  101. package/dist/apis/user.js +1 -1
  102. package/dist/apis/validation-rules.cjs +6 -6
  103. package/dist/apis/validation-rules.js +1 -1
  104. package/dist/apis/webhooks.cjs +6 -6
  105. package/dist/apis/webhooks.js +1 -1
  106. package/dist/apis/workflow-definition.cjs +6 -6
  107. package/dist/apis/workflow-definition.js +1 -1
  108. package/dist/apis/workflow.cjs +6 -6
  109. package/dist/apis/workflow.js +1 -1
  110. package/dist/{chunk-WK3YGGRO.cjs → chunk-ESCPKTPT.cjs} +1 -1
  111. package/dist/{chunk-O6DUKVXV.js → chunk-K732EC6B.js} +1 -1
  112. package/dist/customer-portal-EJBJ4BNI.cjs +7 -0
  113. package/dist/customer-portal-ZVST2CTU.js +7 -0
  114. package/dist/{customer-portal.d-Bx5_n5UL.d.cts → customer-portal.d-JUlTCfGt.d.cts} +25 -0
  115. package/dist/{customer-portal.d-Bx5_n5UL.d.ts → customer-portal.d-JUlTCfGt.d.ts} +25 -0
  116. package/dist/index.cjs +8 -8
  117. package/dist/index.d.cts +1 -1
  118. package/dist/index.d.ts +1 -1
  119. package/dist/index.js +1 -1
  120. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  121. package/docs/customer-portal.md +9 -4
  122. package/package.json +12 -11
  123. package/dist/customer-portal-MY3GZVUL.cjs +0 -7
  124. package/dist/customer-portal-YSODD3RC.js +0 -7
@@ -2060,6 +2060,15 @@ declare namespace Components {
2060
2060
  [name: string]: string;
2061
2061
  };
2062
2062
  };
2063
+ /**
2064
+ * Whether to (re)trigger the registration identifiers check hook, which issues a request
2065
+ * to the connected ERP to (re)sync the contact, in addition to waiting for the entity to
2066
+ * arrive. Defaults to true to preserve existing behaviour. Set to false on retry attempts
2067
+ * to only poll for an already-triggered sync to land, without issuing another upstream
2068
+ * request to the ERP.
2069
+ *
2070
+ */
2071
+ trigger_identifiers_check?: boolean;
2063
2072
  }
2064
2073
  export interface ContentWidget {
2065
2074
  id: string;
@@ -9441,6 +9450,14 @@ declare namespace Paths {
9441
9450
  * 5da0a718-c822-403d-9f5d-20d4584e0528
9442
9451
  */
9443
9452
  Components.Schemas.EntityId /* uuid */;
9453
+ /**
9454
+ * Present only when exists is false. NOT_FOUND means the given identifiers did
9455
+ * not match any contact (definitive - the client should not retry). TIMEOUT
9456
+ * means the contact was not found within the processing window but may still be
9457
+ * ingesting; the client may retry (ideally with trigger_identifiers_check=false).
9458
+ *
9459
+ */
9460
+ reason?: "TIMEOUT" | "NOT_FOUND";
9444
9461
  }
9445
9462
  export type $400 = Components.Responses.InvalidRequest;
9446
9463
  export type $404 = Components.Responses.NotFound;
@@ -9488,6 +9505,14 @@ declare namespace Paths {
9488
9505
  * 5da0a718-c822-403d-9f5d-20d4584e0528
9489
9506
  */
9490
9507
  Components.Schemas.EntityId /* uuid */;
9508
+ /**
9509
+ * Present only when exists is false. NOT_FOUND means the given identifiers did
9510
+ * not match any contact (definitive - the client should not retry). TIMEOUT
9511
+ * means the contact was not found within the processing window but may still be
9512
+ * ingesting; the client may retry (ideally with trigger_identifiers_check=false).
9513
+ *
9514
+ */
9515
+ reason?: "TIMEOUT" | "NOT_FOUND";
9491
9516
  }
9492
9517
  export type $400 = Components.Responses.InvalidRequest;
9493
9518
  export type $404 = Components.Responses.NotFound;
@@ -2060,6 +2060,15 @@ declare namespace Components {
2060
2060
  [name: string]: string;
2061
2061
  };
2062
2062
  };
2063
+ /**
2064
+ * Whether to (re)trigger the registration identifiers check hook, which issues a request
2065
+ * to the connected ERP to (re)sync the contact, in addition to waiting for the entity to
2066
+ * arrive. Defaults to true to preserve existing behaviour. Set to false on retry attempts
2067
+ * to only poll for an already-triggered sync to land, without issuing another upstream
2068
+ * request to the ERP.
2069
+ *
2070
+ */
2071
+ trigger_identifiers_check?: boolean;
2063
2072
  }
2064
2073
  export interface ContentWidget {
2065
2074
  id: string;
@@ -9441,6 +9450,14 @@ declare namespace Paths {
9441
9450
  * 5da0a718-c822-403d-9f5d-20d4584e0528
9442
9451
  */
9443
9452
  Components.Schemas.EntityId /* uuid */;
9453
+ /**
9454
+ * Present only when exists is false. NOT_FOUND means the given identifiers did
9455
+ * not match any contact (definitive - the client should not retry). TIMEOUT
9456
+ * means the contact was not found within the processing window but may still be
9457
+ * ingesting; the client may retry (ideally with trigger_identifiers_check=false).
9458
+ *
9459
+ */
9460
+ reason?: "TIMEOUT" | "NOT_FOUND";
9444
9461
  }
9445
9462
  export type $400 = Components.Responses.InvalidRequest;
9446
9463
  export type $404 = Components.Responses.NotFound;
@@ -9488,6 +9505,14 @@ declare namespace Paths {
9488
9505
  * 5da0a718-c822-403d-9f5d-20d4584e0528
9489
9506
  */
9490
9507
  Components.Schemas.EntityId /* uuid */;
9508
+ /**
9509
+ * Present only when exists is false. NOT_FOUND means the given identifiers did
9510
+ * not match any contact (definitive - the client should not retry). TIMEOUT
9511
+ * means the contact was not found within the processing window but may still be
9512
+ * ingesting; the client may retry (ideally with trigger_identifiers_check=false).
9513
+ *
9514
+ */
9515
+ reason?: "TIMEOUT" | "NOT_FOUND";
9491
9516
  }
9492
9517
  export type $400 = Components.Responses.InvalidRequest;
9493
9518
  export type $404 = Components.Responses.NotFound;
package/dist/index.cjs CHANGED
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkWK3YGGROcjs = require('./chunk-WK3YGGRO.cjs');
161
+ var _chunkESCPKTPTcjs = require('./chunk-ESCPKTPT.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkWK3YGGROcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkESCPKTPTcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkWK3YGGROcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkESCPKTPTcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkWK3YGGROcjs.createApiHandle.call(void 0, {
604
+ return _chunkESCPKTPTcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkWK3YGGROcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkESCPKTPTcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkWK3YGGROcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkESCPKTPTcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkWK3YGGROcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkESCPKTPTcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkWK3YGGROcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkWK3YGGROcjs.help; exports.openapi = _chunkWK3YGGROcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkESCPKTPTcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkESCPKTPTcjs.help; exports.openapi = _chunkESCPKTPTcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-2-TORV8o.cjs';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.cjs';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.cjs';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.cjs';
18
- import { C as Client$c } from './customer-portal.d-Bx5_n5UL.cjs';
18
+ import { C as Client$c } from './customer-portal.d-JUlTCfGt.cjs';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.cjs';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.cjs';
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-2-TORV8o.js';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.js';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.js';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.js';
18
- import { C as Client$c } from './customer-portal.d-Bx5_n5UL.js';
18
+ import { C as Client$c } from './customer-portal.d-JUlTCfGt.js';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.js';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.js';
package/dist/index.js CHANGED
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-O6DUKVXV.js";
161
+ } from "./chunk-K732EC6B.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
File without changes
@@ -4194,7 +4194,8 @@ const { data } = await client.checkContactExists(
4194
4194
  contract: {
4195
4195
  contract_number: '123456'
4196
4196
  }
4197
- }
4197
+ },
4198
+ trigger_identifiers_check: true
4198
4199
  },
4199
4200
  )
4200
4201
  ```
@@ -4205,7 +4206,8 @@ const { data } = await client.checkContactExists(
4205
4206
  ```json
4206
4207
  {
4207
4208
  "exists": true,
4208
- "contactId": "5da0a718-c822-403d-9f5d-20d4584e0528"
4209
+ "contactId": "5da0a718-c822-403d-9f5d-20d4584e0528",
4210
+ "reason": "TIMEOUT"
4209
4211
  }
4210
4212
  ```
4211
4213
 
@@ -4237,7 +4239,8 @@ const { data } = await client.checkContactExistsV3(
4237
4239
  contract: {
4238
4240
  contract_number: '123456'
4239
4241
  }
4240
- }
4242
+ },
4243
+ trigger_identifiers_check: true
4241
4244
  },
4242
4245
  )
4243
4246
  ```
@@ -4249,7 +4252,8 @@ const { data } = await client.checkContactExistsV3(
4249
4252
  {
4250
4253
  "exists": true,
4251
4254
  "contactId": "5da0a718-c822-403d-9f5d-20d4584e0528",
4252
- "accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
4255
+ "accountId": "5da0a718-c822-403d-9f5d-20d4584e0528",
4256
+ "reason": "TIMEOUT"
4253
4257
  }
4254
4258
  ```
4255
4259
 
@@ -10394,6 +10398,7 @@ type ContactCountRequest = {
10394
10398
  type ContactExistsRequest = {
10395
10399
  org_id: string
10396
10400
  registration_identifiers: Record<string, Record<string, string>>
10401
+ trigger_identifiers_check?: boolean
10397
10402
  }
10398
10403
  ```
10399
10404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -322,6 +322,16 @@
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
+ },
325
335
  "keywords": [
326
336
  "epilot",
327
337
  "sdk",
@@ -515,14 +525,5 @@
515
525
  "./dist/apis/workflow-definition.d.ts"
516
526
  ]
517
527
  }
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"
527
528
  }
528
- }
529
+ }