@epilot/sdk 2.20.55 → 2.20.56

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 (139) hide show
  1. package/README.md +1 -0
  2. package/definitions/phone-integration-runtime.json +1 -0
  3. package/definitions/phone-integration.json +315 -0
  4. package/dist/README-EMWLD7LT.cjs +7 -0
  5. package/dist/README-XH3ZUZQC.js +7 -0
  6. package/dist/{_index-HL3HOTXB.js → _index-67F3SDWD.js} +3 -0
  7. package/dist/{_index-DEYTKG4Z.cjs → _index-GOK37TZ4.cjs} +4 -1
  8. package/dist/apis/access-token.cjs +6 -6
  9. package/dist/apis/access-token.js +1 -1
  10. package/dist/apis/address-suggestions.cjs +6 -6
  11. package/dist/apis/address-suggestions.js +1 -1
  12. package/dist/apis/address.cjs +6 -6
  13. package/dist/apis/address.js +1 -1
  14. package/dist/apis/ai-agents.cjs +6 -6
  15. package/dist/apis/ai-agents.js +1 -1
  16. package/dist/apis/app.cjs +6 -6
  17. package/dist/apis/app.js +1 -1
  18. package/dist/apis/audit-logs.cjs +6 -6
  19. package/dist/apis/audit-logs.js +1 -1
  20. package/dist/apis/automation.cjs +6 -6
  21. package/dist/apis/automation.js +1 -1
  22. package/dist/apis/billing.cjs +6 -6
  23. package/dist/apis/billing.js +1 -1
  24. package/dist/apis/blueprint-manifest.cjs +6 -6
  25. package/dist/apis/blueprint-manifest.js +1 -1
  26. package/dist/apis/calendar.cjs +6 -6
  27. package/dist/apis/calendar.js +1 -1
  28. package/dist/apis/chat.cjs +6 -6
  29. package/dist/apis/chat.js +1 -1
  30. package/dist/apis/configuration-hub.cjs +6 -6
  31. package/dist/apis/configuration-hub.js +1 -1
  32. package/dist/apis/consent.cjs +6 -6
  33. package/dist/apis/consent.js +1 -1
  34. package/dist/apis/customer-portal.cjs +6 -6
  35. package/dist/apis/customer-portal.js +1 -1
  36. package/dist/apis/dashboard.cjs +6 -6
  37. package/dist/apis/dashboard.js +1 -1
  38. package/dist/apis/data-governance.cjs +6 -6
  39. package/dist/apis/data-governance.js +1 -1
  40. package/dist/apis/deduplication.cjs +6 -6
  41. package/dist/apis/deduplication.js +1 -1
  42. package/dist/apis/design.cjs +6 -6
  43. package/dist/apis/design.js +1 -1
  44. package/dist/apis/document.cjs +6 -6
  45. package/dist/apis/document.js +1 -1
  46. package/dist/apis/email-settings.cjs +6 -6
  47. package/dist/apis/email-settings.js +1 -1
  48. package/dist/apis/email-template.cjs +6 -6
  49. package/dist/apis/email-template.js +1 -1
  50. package/dist/apis/entity-mapping.cjs +6 -6
  51. package/dist/apis/entity-mapping.js +1 -1
  52. package/dist/apis/entity.cjs +6 -6
  53. package/dist/apis/entity.js +1 -1
  54. package/dist/apis/environments.cjs +6 -6
  55. package/dist/apis/environments.js +1 -1
  56. package/dist/apis/event-catalog.cjs +6 -6
  57. package/dist/apis/event-catalog.js +1 -1
  58. package/dist/apis/external-values.cjs +6 -6
  59. package/dist/apis/external-values.js +1 -1
  60. package/dist/apis/file.cjs +6 -6
  61. package/dist/apis/file.js +1 -1
  62. package/dist/apis/iban.cjs +6 -6
  63. package/dist/apis/iban.js +1 -1
  64. package/dist/apis/identity.cjs +6 -6
  65. package/dist/apis/identity.js +1 -1
  66. package/dist/apis/integration-toolkit.cjs +6 -6
  67. package/dist/apis/integration-toolkit.js +1 -1
  68. package/dist/apis/journey.cjs +6 -6
  69. package/dist/apis/journey.js +1 -1
  70. package/dist/apis/kanban.cjs +6 -6
  71. package/dist/apis/kanban.js +1 -1
  72. package/dist/apis/message.cjs +6 -6
  73. package/dist/apis/message.js +1 -1
  74. package/dist/apis/metering.cjs +6 -6
  75. package/dist/apis/metering.js +1 -1
  76. package/dist/apis/notes.cjs +6 -6
  77. package/dist/apis/notes.js +1 -1
  78. package/dist/apis/notification.cjs +6 -6
  79. package/dist/apis/notification.js +1 -1
  80. package/dist/apis/organization.cjs +6 -6
  81. package/dist/apis/organization.js +1 -1
  82. package/dist/apis/partner-directory.cjs +6 -6
  83. package/dist/apis/partner-directory.js +1 -1
  84. package/dist/apis/permissions.cjs +6 -6
  85. package/dist/apis/permissions.js +1 -1
  86. package/dist/apis/phone-integration.cjs +38 -0
  87. package/dist/apis/phone-integration.d.cts +18 -0
  88. package/dist/apis/phone-integration.d.ts +18 -0
  89. package/dist/apis/phone-integration.js +38 -0
  90. package/dist/apis/pricing-tier.cjs +6 -6
  91. package/dist/apis/pricing-tier.js +1 -1
  92. package/dist/apis/pricing.cjs +6 -6
  93. package/dist/apis/pricing.js +1 -1
  94. package/dist/apis/purpose.cjs +6 -6
  95. package/dist/apis/purpose.js +1 -1
  96. package/dist/apis/query.cjs +6 -6
  97. package/dist/apis/query.js +1 -1
  98. package/dist/apis/sandbox.cjs +6 -6
  99. package/dist/apis/sandbox.js +1 -1
  100. package/dist/apis/sharing.cjs +6 -6
  101. package/dist/apis/sharing.js +1 -1
  102. package/dist/apis/snapshot.cjs +6 -6
  103. package/dist/apis/snapshot.js +1 -1
  104. package/dist/apis/submission.cjs +6 -6
  105. package/dist/apis/submission.js +1 -1
  106. package/dist/apis/target.cjs +6 -6
  107. package/dist/apis/target.js +1 -1
  108. package/dist/apis/targeting.cjs +6 -6
  109. package/dist/apis/targeting.js +1 -1
  110. package/dist/apis/template-variables.cjs +6 -6
  111. package/dist/apis/template-variables.js +1 -1
  112. package/dist/apis/user.cjs +6 -6
  113. package/dist/apis/user.js +1 -1
  114. package/dist/apis/validation-rules.cjs +6 -6
  115. package/dist/apis/validation-rules.js +1 -1
  116. package/dist/apis/webhooks.cjs +6 -6
  117. package/dist/apis/webhooks.js +1 -1
  118. package/dist/apis/workflow-definition.cjs +6 -6
  119. package/dist/apis/workflow-definition.js +1 -1
  120. package/dist/apis/workflow.cjs +6 -6
  121. package/dist/apis/workflow.js +1 -1
  122. package/dist/{chunk-KHUBKRKC.js → chunk-A73AZOKT.js} +4 -2
  123. package/dist/chunk-BY76NFAX.cjs +14 -0
  124. package/dist/{chunk-DPQXCUG4.cjs → chunk-GMONLMVN.cjs} +4 -2
  125. package/dist/chunk-UFMZ4EV3.js +14 -0
  126. package/dist/index.cjs +20 -12
  127. package/dist/index.d.cts +32 -30
  128. package/dist/index.d.ts +32 -30
  129. package/dist/index.js +14 -6
  130. package/dist/phone-integration-JT2UAOGS.cjs +7 -0
  131. package/dist/phone-integration-KORLYUBG.js +7 -0
  132. package/dist/phone-integration-runtime-27B4SHA5.js +5 -0
  133. package/dist/phone-integration-runtime-DFA6NYNK.cjs +5 -0
  134. package/dist/phone-integration.d-ChHA2oGI.d.cts +179 -0
  135. package/dist/phone-integration.d-ChHA2oGI.d.ts +179 -0
  136. package/docs/phone-integration.md +148 -0
  137. package/package.json +10 -1
  138. package/dist/README-B6X6BXAW.cjs +0 -7
  139. package/dist/README-LE2VBY2Y.js +0 -7
@@ -6,25 +6,25 @@ var _chunkADX7IYB3cjs = require('../chunk-ADX7IYB3.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkDPQXCUG4cjs = require('../chunk-DPQXCUG4.cjs');
9
+ var _chunkGMONLMVNcjs = require('../chunk-GMONLMVN.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow-definition.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkADX7IYB3cjs.require_workflow_definition_runtime.call(void 0, );
15
- return _chunkDPQXCUG4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkGMONLMVNcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkDPQXCUG4cjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
21
+ _instance = _chunkGMONLMVNcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkDPQXCUG4cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkGMONLMVNcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkDPQXCUG4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
27
+ createClient: () => _chunkGMONLMVNcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
28
28
  apiName: "workflowDefinition"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var workflowDefinition = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunkDPQXCUG4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
38
+ exports.authorize = _chunkGMONLMVNcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-KHUBKRKC.js";
9
+ } from "../chunk-A73AZOKT.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow-definition.ts
@@ -6,25 +6,25 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkDPQXCUG4cjs = require('../chunk-DPQXCUG4.cjs');
9
+ var _chunkGMONLMVNcjs = require('../chunk-GMONLMVN.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
15
- return _chunkDPQXCUG4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkGMONLMVNcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkDPQXCUG4cjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
21
+ _instance = _chunkGMONLMVNcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkDPQXCUG4cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkGMONLMVNcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkDPQXCUG4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
27
+ createClient: () => _chunkGMONLMVNcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
28
28
  apiName: "workflow"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var workflow = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunkDPQXCUG4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
38
+ exports.authorize = _chunkGMONLMVNcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-KHUBKRKC.js";
9
+ } from "../chunk-A73AZOKT.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow.ts
@@ -27,8 +27,8 @@ var authorize = (client, token) => {
27
27
 
28
28
  // import("./docs/**/*") in src/help.ts
29
29
  var globImport_docs = __glob({
30
- "./docs/README.json": () => import("./README-LE2VBY2Y.js"),
31
- "./docs/_index.json": () => import("./_index-HL3HOTXB.js"),
30
+ "./docs/README.json": () => import("./README-XH3ZUZQC.js"),
31
+ "./docs/_index.json": () => import("./_index-67F3SDWD.js"),
32
32
  "./docs/access-token.json": () => import("./access-token-ADVHFJ63.js"),
33
33
  "./docs/address-suggestions.json": () => import("./address-suggestions-74244BAJ.js"),
34
34
  "./docs/address.json": () => import("./address-QVJUGMOG.js"),
@@ -69,6 +69,7 @@ var globImport_docs = __glob({
69
69
  "./docs/organization.json": () => import("./organization-ZERPH2IH.js"),
70
70
  "./docs/partner-directory.json": () => import("./partner-directory-THI7JEXK.js"),
71
71
  "./docs/permissions.json": () => import("./permissions-K4CL2K2A.js"),
72
+ "./docs/phone-integration.json": () => import("./phone-integration-KORLYUBG.js"),
72
73
  "./docs/pricing-tier.json": () => import("./pricing-tier-VUOFK5Q7.js"),
73
74
  "./docs/pricing.json": () => import("./pricing-QW23MNY3.js"),
74
75
  "./docs/purpose.json": () => import("./purpose-RBRV3AQZ.js"),
@@ -177,6 +178,7 @@ var globImport_definitions_json = __glob({
177
178
  "./definitions/partner-directory.json": () => import("./partner-directory-XJ7KI7EX.js"),
178
179
  "./definitions/permissions-runtime.json": () => import("./permissions-runtime-D74HOCVO.js"),
179
180
  "./definitions/permissions.json": () => import("./permissions-SGPGANEP.js"),
181
+ "./definitions/phone-integration-runtime.json": () => import("./phone-integration-runtime-27B4SHA5.js"),
180
182
  "./definitions/pricing-runtime.json": () => import("./pricing-runtime-UDUM3AXP.js"),
181
183
  "./definitions/pricing-tier-runtime.json": () => import("./pricing-tier-runtime-LEGBNNLA.js"),
182
184
  "./definitions/pricing-tier.json": () => import("./pricing-tier-36WV4P4X.js"),
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
+
5
+ // src/definitions/phone-integration-runtime.json
6
+ var require_phone_integration_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
+ "src/definitions/phone-integration-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://phone-integration-api.sls.epilot.io", o: [["batchSearchCustomers", "get", "/v1/customer:batchSearch", [["id", "q", false, "form", true], ["customer_number", "q", false, "form", true], ["external_id", "q", false, "form", true], ["phone_number", "q", false, "form", true], ["email", "q", false, "form", true], ["x-trace-id", "h"]]]], v: "3.0.3" };
9
+ }
10
+ });
11
+
12
+
13
+
14
+ exports.require_phone_integration_runtime = require_phone_integration_runtime;
@@ -27,8 +27,8 @@ var authorize = (client, token) => {
27
27
 
28
28
  // import("./docs/**/*") in src/help.ts
29
29
  var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
30
- "./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-B6X6BXAW.cjs"))),
31
- "./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-DEYTKG4Z.cjs"))),
30
+ "./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-EMWLD7LT.cjs"))),
31
+ "./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-GOK37TZ4.cjs"))),
32
32
  "./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-CQMYWZIG.cjs"))),
33
33
  "./docs/address-suggestions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-IUQMYF27.cjs"))),
34
34
  "./docs/address.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-HA4RMRNQ.cjs"))),
@@ -69,6 +69,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
69
69
  "./docs/organization.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./organization-RARYYG2E.cjs"))),
70
70
  "./docs/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-ZQIBKD5Q.cjs"))),
71
71
  "./docs/permissions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-I2ERCKW4.cjs"))),
72
+ "./docs/phone-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./phone-integration-JT2UAOGS.cjs"))),
72
73
  "./docs/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-NI35WOUP.cjs"))),
73
74
  "./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-MEDRTGXA.cjs"))),
74
75
  "./docs/purpose.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./purpose-AKOEUHZ4.cjs"))),
@@ -177,6 +178,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
177
178
  "./definitions/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-CG5CYJGB.cjs"))),
178
179
  "./definitions/permissions-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-runtime-O5LH7WOU.cjs"))),
179
180
  "./definitions/permissions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-WCOABHKQ.cjs"))),
181
+ "./definitions/phone-integration-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./phone-integration-runtime-DFA6NYNK.cjs"))),
180
182
  "./definitions/pricing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-runtime-PEAN7F5S.cjs"))),
181
183
  "./definitions/pricing-tier-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-runtime-32BCKJ7Y.cjs"))),
182
184
  "./definitions/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-FKQPW2ND.cjs"))),
@@ -0,0 +1,14 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-YPSWSI3M.js";
4
+
5
+ // src/definitions/phone-integration-runtime.json
6
+ var require_phone_integration_runtime = __commonJS({
7
+ "src/definitions/phone-integration-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://phone-integration-api.sls.epilot.io", o: [["batchSearchCustomers", "get", "/v1/customer:batchSearch", [["id", "q", false, "form", true], ["customer_number", "q", false, "form", true], ["external_id", "q", false, "form", true], ["phone_number", "q", false, "form", true], ["email", "q", false, "form", true], ["x-trace-id", "h"]]]], v: "3.0.3" };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_phone_integration_runtime
14
+ };
package/dist/index.cjs CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
+ var _chunkPM25LLETcjs = require('./chunk-PM25LLET.cjs');
4
+
5
+
6
+ var _chunkWWOAKRNGcjs = require('./chunk-WWOAKRNG.cjs');
7
+
8
+
3
9
  var _chunkMDUJKPDRcjs = require('./chunk-MDUJKPDR.cjs');
4
10
 
5
11
 
@@ -18,7 +24,7 @@ var _chunkNGGI52NVcjs = require('./chunk-NGGI52NV.cjs');
18
24
  var _chunkADX7IYB3cjs = require('./chunk-ADX7IYB3.cjs');
19
25
 
20
26
 
21
- var _chunkPM25LLETcjs = require('./chunk-PM25LLET.cjs');
27
+ var _chunkBY76NFAXcjs = require('./chunk-BY76NFAX.cjs');
22
28
 
23
29
 
24
30
  var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
@@ -42,9 +48,6 @@ var _chunkTZQFJ5GXcjs = require('./chunk-TZQFJ5GX.cjs');
42
48
  var _chunkVDMPIKANcjs = require('./chunk-VDMPIKAN.cjs');
43
49
 
44
50
 
45
- var _chunkWWOAKRNGcjs = require('./chunk-WWOAKRNG.cjs');
46
-
47
-
48
51
  var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
49
52
 
50
53
 
@@ -167,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
167
170
 
168
171
 
169
172
 
170
- var _chunkDPQXCUG4cjs = require('./chunk-DPQXCUG4.cjs');
173
+ var _chunkGMONLMVNcjs = require('./chunk-GMONLMVN.cjs');
171
174
 
172
175
 
173
176
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -234,7 +237,7 @@ var resolveClient = (params) => {
234
237
  }
235
238
  if (!entry.instance) {
236
239
  const definition = entry.loader();
237
- entry.instance = _chunkDPQXCUG4cjs.createApiClient.call(void 0, {
240
+ entry.instance = _chunkGMONLMVNcjs.createApiClient.call(void 0, {
238
241
  definition,
239
242
  token: state.token,
240
243
  headers: state.globalHeaders,
@@ -267,7 +270,7 @@ var resetAllClients = (registry) => {
267
270
  };
268
271
 
269
272
  // src/apis/_registry.ts
270
- var expandDef = (mod) => _chunkDPQXCUG4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
273
+ var expandDef = (mod) => _chunkGMONLMVNcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
271
274
  var registerBuiltinApis = (registry) => {
272
275
  registerApi({
273
276
  registry,
@@ -464,6 +467,11 @@ var registerBuiltinApis = (registry) => {
464
467
  name: "permissions",
465
468
  loader: () => expandDef(_chunkWTMV77T2cjs.require_permissions_runtime.call(void 0, ))
466
469
  });
470
+ registerApi({
471
+ registry,
472
+ name: "phoneIntegration",
473
+ loader: () => expandDef(_chunkBY76NFAXcjs.require_phone_integration_runtime.call(void 0, ))
474
+ });
467
475
  registerApi({
468
476
  registry,
469
477
  name: "pricing",
@@ -625,9 +633,9 @@ var createSDK = () => {
625
633
  const available = [...registry.keys()].join(", ");
626
634
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
627
635
  }
628
- return _chunkDPQXCUG4cjs.createApiHandle.call(void 0, {
636
+ return _chunkGMONLMVNcjs.createApiHandle.call(void 0, {
629
637
  resolveClient: () => resolveClient({ registry, name, state }),
630
- createClient: () => _chunkDPQXCUG4cjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
638
+ createClient: () => _chunkGMONLMVNcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
631
639
  apiName: name
632
640
  });
633
641
  };
@@ -675,9 +683,9 @@ var createSDK = () => {
675
683
  return interceptorUse;
676
684
  }
677
685
  case "help":
678
- return (apiName) => _chunkDPQXCUG4cjs.help.call(void 0, apiName);
686
+ return (apiName) => _chunkGMONLMVNcjs.help.call(void 0, apiName);
679
687
  case "openapi":
680
- return (apiName) => _chunkDPQXCUG4cjs.openapi.call(void 0, apiName);
688
+ return (apiName) => _chunkGMONLMVNcjs.openapi.call(void 0, apiName);
681
689
  case "then":
682
690
  case "catch":
683
691
  case "finally":
@@ -707,4 +715,4 @@ var epilot = createSDK();
707
715
 
708
716
 
709
717
 
710
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkDPQXCUG4cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkDPQXCUG4cjs.help; exports.openapi = _chunkDPQXCUG4cjs.openapi;
718
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkGMONLMVNcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkGMONLMVNcjs.help; exports.openapi = _chunkGMONLMVNcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -42,21 +42,22 @@ import { C as Client$z } from './notification.d-r89Jec85.cjs';
42
42
  import { C as Client$A } from './organization.d-DqwnNxMg.cjs';
43
43
  import { C as Client$B } from './partner-directory.d-BCIjHoGs.cjs';
44
44
  import { C as Client$C } from './permissions.d-BKoyMhU7.cjs';
45
- import { C as Client$D } from './pricing.d-DnruxGbn.cjs';
46
- import { C as Client$E } from './pricing-tier.d-Cg0jl6n_.cjs';
47
- import { C as Client$F } from './purpose.d-CbIYfTua.cjs';
48
- import { C as Client$G } from './query.d-Cmp78IhZ.cjs';
49
- import { C as Client$H } from './sandbox.d-BdbOFzDu.cjs';
50
- import { C as Client$I } from './sharing.d-sOXq-gtz.cjs';
51
- import { C as Client$J } from './snapshot.d-DT0zg2CS.cjs';
52
- import { C as Client$K } from './submission.d-BamwfhXw.cjs';
53
- import { C as Client$L } from './targeting.d-BYVSahmV.cjs';
54
- import { C as Client$M } from './template-variables.d-Ble9TSBa.cjs';
55
- import { C as Client$N } from './user.d-rqYtwsCz.cjs';
56
- import { C as Client$O } from './validation-rules.d-Bbo90IYn.cjs';
57
- import { C as Client$P } from './webhooks.d-DqOEzFsp.cjs';
58
- import { C as Client$Q } from './workflow.d-5cyNJgVQ.cjs';
59
- import { C as Client$R } from './workflow-definition.d-CweGhhBU.cjs';
45
+ import { C as Client$D } from './phone-integration.d-ChHA2oGI.cjs';
46
+ import { C as Client$E } from './pricing.d-DnruxGbn.cjs';
47
+ import { C as Client$F } from './pricing-tier.d-Cg0jl6n_.cjs';
48
+ import { C as Client$G } from './purpose.d-CbIYfTua.cjs';
49
+ import { C as Client$H } from './query.d-Cmp78IhZ.cjs';
50
+ import { C as Client$I } from './sandbox.d-BdbOFzDu.cjs';
51
+ import { C as Client$J } from './sharing.d-sOXq-gtz.cjs';
52
+ import { C as Client$K } from './snapshot.d-DT0zg2CS.cjs';
53
+ import { C as Client$L } from './submission.d-BamwfhXw.cjs';
54
+ import { C as Client$M } from './targeting.d-BYVSahmV.cjs';
55
+ import { C as Client$N } from './template-variables.d-Ble9TSBa.cjs';
56
+ import { C as Client$O } from './user.d-rqYtwsCz.cjs';
57
+ import { C as Client$P } from './validation-rules.d-Bbo90IYn.cjs';
58
+ import { C as Client$Q } from './webhooks.d-DqOEzFsp.cjs';
59
+ import { C as Client$R } from './workflow.d-5cyNJgVQ.cjs';
60
+ import { C as Client$S } from './workflow-definition.d-CweGhhBU.cjs';
60
61
 
61
62
  type SDKClientMap = {
62
63
  accessToken: Client;
@@ -98,21 +99,22 @@ type SDKClientMap = {
98
99
  organization: Client$A;
99
100
  partnerDirectory: Client$B;
100
101
  permissions: Client$C;
101
- pricing: Client$D;
102
- pricingTier: Client$E;
103
- purpose: Client$F;
104
- query: Client$G;
105
- sandbox: Client$H;
106
- sharing: Client$I;
107
- snapshot: Client$J;
108
- submission: Client$K;
109
- targeting: Client$L;
110
- templateVariables: Client$M;
111
- user: Client$N;
112
- validationRules: Client$O;
113
- webhooks: Client$P;
114
- workflow: Client$Q;
115
- workflowDefinition: Client$R;
102
+ phoneIntegration: Client$D;
103
+ pricing: Client$E;
104
+ pricingTier: Client$F;
105
+ purpose: Client$G;
106
+ query: Client$H;
107
+ sandbox: Client$I;
108
+ sharing: Client$J;
109
+ snapshot: Client$K;
110
+ submission: Client$L;
111
+ targeting: Client$M;
112
+ templateVariables: Client$N;
113
+ user: Client$O;
114
+ validationRules: Client$P;
115
+ webhooks: Client$Q;
116
+ workflow: Client$R;
117
+ workflowDefinition: Client$S;
116
118
  };
117
119
 
118
120
  type LargeResponseConfig = {
package/dist/index.d.ts CHANGED
@@ -42,21 +42,22 @@ import { C as Client$z } from './notification.d-r89Jec85.js';
42
42
  import { C as Client$A } from './organization.d-DqwnNxMg.js';
43
43
  import { C as Client$B } from './partner-directory.d-BCIjHoGs.js';
44
44
  import { C as Client$C } from './permissions.d-BKoyMhU7.js';
45
- import { C as Client$D } from './pricing.d-DnruxGbn.js';
46
- import { C as Client$E } from './pricing-tier.d-Cg0jl6n_.js';
47
- import { C as Client$F } from './purpose.d-CbIYfTua.js';
48
- import { C as Client$G } from './query.d-Cmp78IhZ.js';
49
- import { C as Client$H } from './sandbox.d-BdbOFzDu.js';
50
- import { C as Client$I } from './sharing.d-sOXq-gtz.js';
51
- import { C as Client$J } from './snapshot.d-DT0zg2CS.js';
52
- import { C as Client$K } from './submission.d-BamwfhXw.js';
53
- import { C as Client$L } from './targeting.d-BYVSahmV.js';
54
- import { C as Client$M } from './template-variables.d-Ble9TSBa.js';
55
- import { C as Client$N } from './user.d-rqYtwsCz.js';
56
- import { C as Client$O } from './validation-rules.d-Bbo90IYn.js';
57
- import { C as Client$P } from './webhooks.d-DqOEzFsp.js';
58
- import { C as Client$Q } from './workflow.d-5cyNJgVQ.js';
59
- import { C as Client$R } from './workflow-definition.d-CweGhhBU.js';
45
+ import { C as Client$D } from './phone-integration.d-ChHA2oGI.js';
46
+ import { C as Client$E } from './pricing.d-DnruxGbn.js';
47
+ import { C as Client$F } from './pricing-tier.d-Cg0jl6n_.js';
48
+ import { C as Client$G } from './purpose.d-CbIYfTua.js';
49
+ import { C as Client$H } from './query.d-Cmp78IhZ.js';
50
+ import { C as Client$I } from './sandbox.d-BdbOFzDu.js';
51
+ import { C as Client$J } from './sharing.d-sOXq-gtz.js';
52
+ import { C as Client$K } from './snapshot.d-DT0zg2CS.js';
53
+ import { C as Client$L } from './submission.d-BamwfhXw.js';
54
+ import { C as Client$M } from './targeting.d-BYVSahmV.js';
55
+ import { C as Client$N } from './template-variables.d-Ble9TSBa.js';
56
+ import { C as Client$O } from './user.d-rqYtwsCz.js';
57
+ import { C as Client$P } from './validation-rules.d-Bbo90IYn.js';
58
+ import { C as Client$Q } from './webhooks.d-DqOEzFsp.js';
59
+ import { C as Client$R } from './workflow.d-5cyNJgVQ.js';
60
+ import { C as Client$S } from './workflow-definition.d-CweGhhBU.js';
60
61
 
61
62
  type SDKClientMap = {
62
63
  accessToken: Client;
@@ -98,21 +99,22 @@ type SDKClientMap = {
98
99
  organization: Client$A;
99
100
  partnerDirectory: Client$B;
100
101
  permissions: Client$C;
101
- pricing: Client$D;
102
- pricingTier: Client$E;
103
- purpose: Client$F;
104
- query: Client$G;
105
- sandbox: Client$H;
106
- sharing: Client$I;
107
- snapshot: Client$J;
108
- submission: Client$K;
109
- targeting: Client$L;
110
- templateVariables: Client$M;
111
- user: Client$N;
112
- validationRules: Client$O;
113
- webhooks: Client$P;
114
- workflow: Client$Q;
115
- workflowDefinition: Client$R;
102
+ phoneIntegration: Client$D;
103
+ pricing: Client$E;
104
+ pricingTier: Client$F;
105
+ purpose: Client$G;
106
+ query: Client$H;
107
+ sandbox: Client$I;
108
+ sharing: Client$J;
109
+ snapshot: Client$K;
110
+ submission: Client$L;
111
+ targeting: Client$M;
112
+ templateVariables: Client$N;
113
+ user: Client$O;
114
+ validationRules: Client$P;
115
+ webhooks: Client$Q;
116
+ workflow: Client$R;
117
+ workflowDefinition: Client$S;
116
118
  };
117
119
 
118
120
  type LargeResponseConfig = {
package/dist/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ require_workflow_runtime
3
+ } from "./chunk-522LYPPW.js";
4
+ import {
5
+ require_submission_runtime
6
+ } from "./chunk-IJR3GZKC.js";
1
7
  import {
2
8
  require_targeting_runtime
3
9
  } from "./chunk-MSFE3E7D.js";
@@ -17,8 +23,8 @@ import {
17
23
  require_workflow_definition_runtime
18
24
  } from "./chunk-TTU24M3D.js";
19
25
  import {
20
- require_workflow_runtime
21
- } from "./chunk-522LYPPW.js";
26
+ require_phone_integration_runtime
27
+ } from "./chunk-UFMZ4EV3.js";
22
28
  import {
23
29
  require_pricing_tier_runtime
24
30
  } from "./chunk-6VWCUZ5M.js";
@@ -40,9 +46,6 @@ import {
40
46
  import {
41
47
  require_snapshot_runtime
42
48
  } from "./chunk-UXY7SWNP.js";
43
- import {
44
- require_submission_runtime
45
- } from "./chunk-IJR3GZKC.js";
46
49
  import {
47
50
  require_kanban_runtime
48
51
  } from "./chunk-IQOCHPWU.js";
@@ -167,7 +170,7 @@ import {
167
170
  expand,
168
171
  help,
169
172
  openapi
170
- } from "./chunk-KHUBKRKC.js";
173
+ } from "./chunk-A73AZOKT.js";
171
174
  import {
172
175
  __require
173
176
  } from "./chunk-YPSWSI3M.js";
@@ -464,6 +467,11 @@ var registerBuiltinApis = (registry) => {
464
467
  name: "permissions",
465
468
  loader: () => expandDef(require_permissions_runtime())
466
469
  });
470
+ registerApi({
471
+ registry,
472
+ name: "phoneIntegration",
473
+ loader: () => expandDef(require_phone_integration_runtime())
474
+ });
467
475
  registerApi({
468
476
  registry,
469
477
  name: "pricing",
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/docs/phone-integration.json
4
+ var phone_integration_default = '# Phone Integration API\n\n- **Base URL:** `https://phone-integration-api.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/phone-integration](https://docs.epilot.io/api/phone-integration)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.phoneIntegration.batchSearchCustomers(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/phone-integration\'\n\nconst phoneIntegrationClient = getClient()\nauthorize(phoneIntegrationClient, () => \'<token>\')\nconst { data } = await phoneIntegrationClient.batchSearchCustomers(...)\n```\n\n## Operations\n\n**phone-integration**\n- [`batchSearchCustomers`](#batchsearchcustomers)\n\n**Schemas**\n- [`CustomerBatchSearchResult`](#customerbatchsearchresult)\n- [`CustomerSearchResult`](#customersearchresult)\n- [`CustomerIdentifier`](#customeridentifier)\n- [`CustomerSummary`](#customersummary)\n- [`ErrorResponse`](#errorresponse)\n\n### `batchSearchCustomers`\n\nResolves up to 50 identifiers to epilot customers (Contacts) in one\nrequest \u2014 for example every number in an agent\'s call history.\n\n`GET /v1/customer:batchSearch`\n\n```ts\nconst { data } = await client.batchSearchCustomers({\n id: [\'...\'],\n customer_number: [\'...\'],\n external_id: [\'...\'],\n phone_number: [\'...\'],\n email: [\'...\'],\n x-trace-id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "identifier": {\n "type": "id",\n "value": "+4917012345678"\n },\n "status": "found",\n "customer": {\n "id": "dba8e5f9-8b3f-4608-b887-cd0798fce624",\n "name": "Max Mustermann",\n "customer_number": "4711"\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `CustomerBatchSearchResult`\n\n```ts\ntype CustomerBatchSearchResult = {\n results: Array<{\n identifier: {\n type: { ... }\n value: { ... }\n }\n status: "found" | "not_found" | "ambiguous" | "invalid" | "error"\n customer?: {\n id: { ... }\n name: { ... }\n customer_number?: { ... }\n }\n }>\n}\n```\n\n### `CustomerSearchResult`\n\n```ts\ntype CustomerSearchResult = {\n identifier: {\n type: "id" | "customer_number" | "external_id" | "phone_number" | "email"\n value: string\n }\n status: "found" | "not_found" | "ambiguous" | "invalid" | "error"\n customer?: {\n id: string\n name: string\n customer_number?: string\n }\n}\n```\n\n### `CustomerIdentifier`\n\n```ts\ntype CustomerIdentifier = {\n type: "id" | "customer_number" | "external_id" | "phone_number" | "email"\n value: string\n}\n```\n\n### `CustomerSummary`\n\nPresent when `status` is `found`\n\n```ts\ntype CustomerSummary = {\n id: string\n name: string\n customer_number?: string\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n code?: string\n}\n```\n';
5
+
6
+
7
+ exports.default = phone_integration_default;
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/phone-integration.json
4
+ var phone_integration_default = '# Phone Integration API\n\n- **Base URL:** `https://phone-integration-api.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/phone-integration](https://docs.epilot.io/api/phone-integration)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.phoneIntegration.batchSearchCustomers(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/phone-integration\'\n\nconst phoneIntegrationClient = getClient()\nauthorize(phoneIntegrationClient, () => \'<token>\')\nconst { data } = await phoneIntegrationClient.batchSearchCustomers(...)\n```\n\n## Operations\n\n**phone-integration**\n- [`batchSearchCustomers`](#batchsearchcustomers)\n\n**Schemas**\n- [`CustomerBatchSearchResult`](#customerbatchsearchresult)\n- [`CustomerSearchResult`](#customersearchresult)\n- [`CustomerIdentifier`](#customeridentifier)\n- [`CustomerSummary`](#customersummary)\n- [`ErrorResponse`](#errorresponse)\n\n### `batchSearchCustomers`\n\nResolves up to 50 identifiers to epilot customers (Contacts) in one\nrequest \u2014 for example every number in an agent\'s call history.\n\n`GET /v1/customer:batchSearch`\n\n```ts\nconst { data } = await client.batchSearchCustomers({\n id: [\'...\'],\n customer_number: [\'...\'],\n external_id: [\'...\'],\n phone_number: [\'...\'],\n email: [\'...\'],\n x-trace-id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "identifier": {\n "type": "id",\n "value": "+4917012345678"\n },\n "status": "found",\n "customer": {\n "id": "dba8e5f9-8b3f-4608-b887-cd0798fce624",\n "name": "Max Mustermann",\n "customer_number": "4711"\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `CustomerBatchSearchResult`\n\n```ts\ntype CustomerBatchSearchResult = {\n results: Array<{\n identifier: {\n type: { ... }\n value: { ... }\n }\n status: "found" | "not_found" | "ambiguous" | "invalid" | "error"\n customer?: {\n id: { ... }\n name: { ... }\n customer_number?: { ... }\n }\n }>\n}\n```\n\n### `CustomerSearchResult`\n\n```ts\ntype CustomerSearchResult = {\n identifier: {\n type: "id" | "customer_number" | "external_id" | "phone_number" | "email"\n value: string\n }\n status: "found" | "not_found" | "ambiguous" | "invalid" | "error"\n customer?: {\n id: string\n name: string\n customer_number?: string\n }\n}\n```\n\n### `CustomerIdentifier`\n\n```ts\ntype CustomerIdentifier = {\n type: "id" | "customer_number" | "external_id" | "phone_number" | "email"\n value: string\n}\n```\n\n### `CustomerSummary`\n\nPresent when `status` is `found`\n\n```ts\ntype CustomerSummary = {\n id: string\n name: string\n customer_number?: string\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n code?: string\n}\n```\n';
5
+ export {
6
+ phone_integration_default as default
7
+ };
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_phone_integration_runtime
3
+ } from "./chunk-UFMZ4EV3.js";
4
+ import "./chunk-YPSWSI3M.js";
5
+ export default require_phone_integration_runtime();
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBY76NFAXcjs = require('./chunk-BY76NFAX.cjs');
4
+ require('./chunk-NJK5F5TF.cjs');
5
+ exports. default = _chunkBY76NFAXcjs.require_phone_integration_runtime.call(void 0, );