@epilot/sdk 2.20.79 → 2.20.80

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 (137) hide show
  1. package/definitions/phone-integration-runtime.json +1 -1
  2. package/definitions/phone-integration.json +651 -0
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/chat.cjs +6 -6
  24. package/dist/apis/chat.js +1 -1
  25. package/dist/apis/configuration-hub.cjs +6 -6
  26. package/dist/apis/configuration-hub.js +1 -1
  27. package/dist/apis/consent.cjs +6 -6
  28. package/dist/apis/consent.js +1 -1
  29. package/dist/apis/customer-portal.cjs +6 -6
  30. package/dist/apis/customer-portal.js +1 -1
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/external-values.cjs +6 -6
  54. package/dist/apis/external-values.js +1 -1
  55. package/dist/apis/file.cjs +6 -6
  56. package/dist/apis/file.js +1 -1
  57. package/dist/apis/iban.cjs +6 -6
  58. package/dist/apis/iban.js +1 -1
  59. package/dist/apis/identity.cjs +6 -6
  60. package/dist/apis/identity.js +1 -1
  61. package/dist/apis/integration-toolkit.cjs +6 -6
  62. package/dist/apis/integration-toolkit.js +1 -1
  63. package/dist/apis/journey.cjs +6 -6
  64. package/dist/apis/journey.js +1 -1
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/phone-integration.cjs +8 -8
  82. package/dist/apis/phone-integration.d.cts +2 -2
  83. package/dist/apis/phone-integration.d.ts +2 -2
  84. package/dist/apis/phone-integration.js +2 -2
  85. package/dist/apis/pricing-tier.cjs +6 -6
  86. package/dist/apis/pricing-tier.js +1 -1
  87. package/dist/apis/pricing.cjs +6 -6
  88. package/dist/apis/pricing.js +1 -1
  89. package/dist/apis/purpose.cjs +6 -6
  90. package/dist/apis/purpose.js +1 -1
  91. package/dist/apis/query.cjs +6 -6
  92. package/dist/apis/query.js +1 -1
  93. package/dist/apis/sandbox.cjs +6 -6
  94. package/dist/apis/sandbox.js +1 -1
  95. package/dist/apis/sharing.cjs +6 -6
  96. package/dist/apis/sharing.js +1 -1
  97. package/dist/apis/snapshot.cjs +6 -6
  98. package/dist/apis/snapshot.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.js +1 -1
  109. package/dist/apis/validation-rules.cjs +6 -6
  110. package/dist/apis/validation-rules.js +1 -1
  111. package/dist/apis/webhooks.cjs +6 -6
  112. package/dist/apis/webhooks.js +1 -1
  113. package/dist/apis/workflow-definition.cjs +6 -6
  114. package/dist/apis/workflow-definition.js +1 -1
  115. package/dist/apis/workflow.cjs +6 -6
  116. package/dist/apis/workflow.js +1 -1
  117. package/dist/chunk-JFRRQORA.js +14 -0
  118. package/dist/{chunk-5Z7XQQT2.js → chunk-KH4BRB6Z.js} +2 -2
  119. package/dist/{chunk-4G44P2X4.cjs → chunk-OLRBYITL.cjs} +2 -2
  120. package/dist/{chunk-BY76NFAX.cjs → chunk-XPQ7LBUE.cjs} +1 -1
  121. package/dist/index.cjs +10 -10
  122. package/dist/index.d.cts +1 -1
  123. package/dist/index.d.ts +1 -1
  124. package/dist/index.js +2 -2
  125. package/dist/phone-integration-5EHY236F.js +7 -0
  126. package/dist/phone-integration-C567S75X.cjs +7 -0
  127. package/dist/{phone-integration-runtime-DFA6NYNK.cjs → phone-integration-runtime-3QDC5IMK.cjs} +2 -2
  128. package/dist/{phone-integration-runtime-27B4SHA5.js → phone-integration-runtime-JWF52VHF.js} +1 -1
  129. package/dist/phone-integration.d-DJrZ4xkA.d.cts +539 -0
  130. package/dist/phone-integration.d-DJrZ4xkA.d.ts +539 -0
  131. package/docs/phone-integration.md +293 -0
  132. package/package.json +1 -1
  133. package/dist/chunk-UFMZ4EV3.js +0 -14
  134. package/dist/phone-integration-JT2UAOGS.cjs +0 -7
  135. package/dist/phone-integration-KORLYUBG.js +0 -7
  136. package/dist/phone-integration.d-ChHA2oGI.d.cts +0 -179
  137. package/dist/phone-integration.d-ChHA2oGI.d.ts +0 -179
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/targeting.ts
@@ -6,7 +6,7 @@ var _chunk4QCVVDTAcjs = require('../chunk-4QCVVDTA.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/template-variables.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunk4QCVVDTAcjs.require_template_variables_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "templateVariables" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "templateVariables" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "templateVariables" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "templateVariables" }),
32
32
  apiName: "templateVariables"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var templateVariables = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.templateVariables = templateVariables;
42
+ exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.templateVariables = templateVariables;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/template-variables.ts
@@ -6,7 +6,7 @@ var _chunkX2LMHC5Rcjs = require('../chunk-X2LMHC5R.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/user.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunkX2LMHC5Rcjs.require_user_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "user" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "user" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "user" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "user" }),
32
32
  apiName: "user"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var user = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.user = user;
42
+ exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.user = user;
package/dist/apis/user.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/user.ts
@@ -6,7 +6,7 @@ var _chunkJIUTCNTBcjs = require('../chunk-JIUTCNTB.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/validation-rules.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunkJIUTCNTBcjs.require_validation_rules_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "validationRules" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "validationRules" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "validationRules" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "validationRules" }),
32
32
  apiName: "validationRules"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var validationRules = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.validationRules = validationRules;
42
+ exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.validationRules = validationRules;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/validation-rules.ts
@@ -6,7 +6,7 @@ var _chunkNGGI52NVcjs = require('../chunk-NGGI52NV.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/webhooks.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunkNGGI52NVcjs.require_webhooks_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
32
32
  apiName: "webhooks"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var webhooks = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
42
+ exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/webhooks.ts
@@ -6,7 +6,7 @@ var _chunkADX7IYB3cjs = require('../chunk-ADX7IYB3.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow-definition.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunkADX7IYB3cjs.require_workflow_definition_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
32
32
  apiName: "workflowDefinition"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var workflowDefinition = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
42
+ exports.authorize = _chunkOLRBYITLcjs.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-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow-definition.ts
@@ -6,7 +6,7 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk4G44P2X4cjs = require('../chunk-4G44P2X4.cjs');
9
+ var _chunkOLRBYITLcjs = require('../chunk-OLRBYITL.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow.ts
@@ -14,7 +14,7 @@ var _definition = null;
14
14
  var loadDefinition = () => {
15
15
  if (!_definition) {
16
16
  const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
17
- _definition = _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
17
+ _definition = _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
18
18
  }
19
19
  return _definition;
20
20
  };
@@ -22,13 +22,13 @@ var _instance = null;
22
22
  var resolve = () => {
23
23
  if (!_instance) {
24
24
  const def = loadDefinition();
25
- _instance = _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
25
+ _instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
26
26
  }
27
27
  return _instance;
28
28
  };
29
- var _handle = _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
29
+ var _handle = _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
30
30
  resolveClient: resolve,
31
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
31
+ createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
32
32
  apiName: "workflow"
33
33
  });
34
34
  var getClient = _handle.getClient;
@@ -39,4 +39,4 @@ var workflow = _handle;
39
39
 
40
40
 
41
41
 
42
- exports.authorize = _chunk4G44P2X4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
42
+ exports.authorize = _chunkOLRBYITLcjs.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-5Z7XQQT2.js";
9
+ } from "../chunk-KH4BRB6Z.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow.ts
@@ -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"]]], ["getManagerStatus", "get", "/v1/manager/status"], ["listPhoneAgents", "get", "/v1/manager/agents"], ["assignPhoneAgent", "post", "/v1/manager/agents", null, 1], ["removePhoneAgent", "delete", "/v1/manager/agents/{user_id}"], ["getProviderSetup", "get", "/v1/operator/organizations/{org_id}/provider"], ["setupProvider", "post", "/v1/operator/organizations/{org_id}/provider:setup", null, 1]], v: "3.0.3", pp: { "/v1/manager/agents/{user_id}": [["user_id", "p", true]], "/v1/operator/organizations/{org_id}/provider": [["org_id", "p", true]], "/v1/operator/organizations/{org_id}/provider:setup": [["org_id", "p", true]] } };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_phone_integration_runtime
14
+ };
@@ -69,7 +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
+ "./docs/phone-integration.json": () => import("./phone-integration-5EHY236F.js"),
73
73
  "./docs/pricing-tier.json": () => import("./pricing-tier-VUOFK5Q7.js"),
74
74
  "./docs/pricing.json": () => import("./pricing-5NJ44WPL.js"),
75
75
  "./docs/purpose.json": () => import("./purpose-RBRV3AQZ.js"),
@@ -178,7 +178,7 @@ var globImport_definitions_json = __glob({
178
178
  "./definitions/partner-directory.json": () => import("./partner-directory-XJ7KI7EX.js"),
179
179
  "./definitions/permissions-runtime.json": () => import("./permissions-runtime-D74HOCVO.js"),
180
180
  "./definitions/permissions.json": () => import("./permissions-SGPGANEP.js"),
181
- "./definitions/phone-integration-runtime.json": () => import("./phone-integration-runtime-27B4SHA5.js"),
181
+ "./definitions/phone-integration-runtime.json": () => import("./phone-integration-runtime-JWF52VHF.js"),
182
182
  "./definitions/pricing-runtime.json": () => import("./pricing-runtime-UDUM3AXP.js"),
183
183
  "./definitions/pricing-tier-runtime.json": () => import("./pricing-tier-runtime-LEGBNNLA.js"),
184
184
  "./definitions/pricing-tier.json": () => import("./pricing-tier-36WV4P4X.js"),
@@ -69,7 +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
+ "./docs/phone-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./phone-integration-C567S75X.cjs"))),
73
73
  "./docs/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-NI35WOUP.cjs"))),
74
74
  "./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-CHSUNMN6.cjs"))),
75
75
  "./docs/purpose.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./purpose-AKOEUHZ4.cjs"))),
@@ -178,7 +178,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
178
178
  "./definitions/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-CG5CYJGB.cjs"))),
179
179
  "./definitions/permissions-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-runtime-O5LH7WOU.cjs"))),
180
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"))),
181
+ "./definitions/phone-integration-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./phone-integration-runtime-3QDC5IMK.cjs"))),
182
182
  "./definitions/pricing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-runtime-PEAN7F5S.cjs"))),
183
183
  "./definitions/pricing-tier-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-runtime-32BCKJ7Y.cjs"))),
184
184
  "./definitions/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-FKQPW2ND.cjs"))),
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
5
5
  // src/definitions/phone-integration-runtime.json
6
6
  var require_phone_integration_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
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" };
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"]]], ["getManagerStatus", "get", "/v1/manager/status"], ["listPhoneAgents", "get", "/v1/manager/agents"], ["assignPhoneAgent", "post", "/v1/manager/agents", null, 1], ["removePhoneAgent", "delete", "/v1/manager/agents/{user_id}"], ["getProviderSetup", "get", "/v1/operator/organizations/{org_id}/provider"], ["setupProvider", "post", "/v1/operator/organizations/{org_id}/provider:setup", null, 1]], v: "3.0.3", pp: { "/v1/manager/agents/{user_id}": [["user_id", "p", true]], "/v1/operator/organizations/{org_id}/provider": [["org_id", "p", true]], "/v1/operator/organizations/{org_id}/provider:setup": [["org_id", "p", true]] } };
9
9
  }
10
10
  });
11
11
 
package/dist/index.cjs CHANGED
@@ -24,7 +24,7 @@ var _chunkNGGI52NVcjs = require('./chunk-NGGI52NV.cjs');
24
24
  var _chunkADX7IYB3cjs = require('./chunk-ADX7IYB3.cjs');
25
25
 
26
26
 
27
- var _chunkBY76NFAXcjs = require('./chunk-BY76NFAX.cjs');
27
+ var _chunkXPQ7LBUEcjs = require('./chunk-XPQ7LBUE.cjs');
28
28
 
29
29
 
30
30
  var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
@@ -170,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunk4G44P2X4cjs = require('./chunk-4G44P2X4.cjs');
173
+ var _chunkOLRBYITLcjs = require('./chunk-OLRBYITL.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 = _chunk4G44P2X4cjs.createApiClient.call(void 0, {
247
+ entry.instance = _chunkOLRBYITLcjs.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) => _chunk4G44P2X4cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
280
+ var expandDef = (mod) => _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
281
281
  var registerBuiltinApis = (registry) => {
282
282
  registerApi({
283
283
  registry,
@@ -477,7 +477,7 @@ var registerBuiltinApis = (registry) => {
477
477
  registerApi({
478
478
  registry,
479
479
  name: "phoneIntegration",
480
- loader: () => expandDef(_chunkBY76NFAXcjs.require_phone_integration_runtime.call(void 0, ))
480
+ loader: () => expandDef(_chunkXPQ7LBUEcjs.require_phone_integration_runtime.call(void 0, ))
481
481
  });
482
482
  registerApi({
483
483
  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 _chunk4G44P2X4cjs.createApiHandle.call(void 0, {
643
+ return _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
644
644
  resolveClient: () => resolveClient({ registry, name, state }),
645
- createClient: () => _chunk4G44P2X4cjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
645
+ createClient: () => _chunkOLRBYITLcjs.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) => _chunk4G44P2X4cjs.help.call(void 0, apiName);
693
+ return (apiName) => _chunkOLRBYITLcjs.help.call(void 0, apiName);
694
694
  case "openapi":
695
- return (apiName) => _chunk4G44P2X4cjs.openapi.call(void 0, apiName);
695
+ return (apiName) => _chunkOLRBYITLcjs.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 = _chunk4G44P2X4cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk4G44P2X4cjs.help; exports.openapi = _chunk4G44P2X4cjs.openapi;
725
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkOLRBYITLcjs.help; exports.openapi = _chunkOLRBYITLcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -42,7 +42,7 @@ 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 './phone-integration.d-ChHA2oGI.cjs';
45
+ import { C as Client$D } from './phone-integration.d-DJrZ4xkA.cjs';
46
46
  import { C as Client$E } from './pricing.d-B08Lrn3i.cjs';
47
47
  import { C as Client$F } from './pricing-tier.d-Cg0jl6n_.cjs';
48
48
  import { C as Client$G } from './purpose.d-CbIYfTua.cjs';
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ 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 './phone-integration.d-ChHA2oGI.js';
45
+ import { C as Client$D } from './phone-integration.d-DJrZ4xkA.js';
46
46
  import { C as Client$E } from './pricing.d-B08Lrn3i.js';
47
47
  import { C as Client$F } from './pricing-tier.d-Cg0jl6n_.js';
48
48
  import { C as Client$G } from './purpose.d-CbIYfTua.js';
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-TTU24M3D.js";
25
25
  import {
26
26
  require_phone_integration_runtime
27
- } from "./chunk-UFMZ4EV3.js";
27
+ } from "./chunk-JFRRQORA.js";
28
28
  import {
29
29
  require_pricing_tier_runtime
30
30
  } from "./chunk-6VWCUZ5M.js";
@@ -170,7 +170,7 @@ import {
170
170
  expand,
171
171
  help,
172
172
  openapi
173
- } from "./chunk-5Z7XQQT2.js";
173
+ } from "./chunk-KH4BRB6Z.js";
174
174
  import {
175
175
  __require
176
176
  } from "./chunk-YPSWSI3M.js";
@@ -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**manager**\n- [`getManagerStatus`](#getmanagerstatus)\n- [`listPhoneAgents`](#listphoneagents)\n- [`assignPhoneAgent`](#assignphoneagent)\n- [`removePhoneAgent`](#removephoneagent)\n\n**operator**\n- [`getProviderSetup`](#getprovidersetup)\n- [`setupProvider`](#setupprovider)\n\n**Schemas**\n- [`ManagerStatus`](#managerstatus)\n- [`PhoneAgent`](#phoneagent)\n- [`AssignPhoneAgentRequest`](#assignphoneagentrequest)\n- [`ProviderSetup`](#providersetup)\n- [`ProviderSetupRequest`](#providersetuprequest)\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### `getManagerStatus`\n\nWhether the caller\'s organization is ready for phone agents: the telephony provider tenant\nexists and is configured. The control center shows a "not set up" state when `ready` is false.\nRequires `phon\n\n`GET /v1/manager/status`\n\n```ts\nconst { data } = await client.getManagerStatus()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "ready": true,\n "reasons": ["provider_tenant_missing"]\n}\n```\n\n</details>\n\n---\n\n### `listPhoneAgents`\n\nOrganization members who hold the phone (`phone:use`), each joined with the provider user behind\nthem. Requires `phone:manage`.\n\n`GET /v1/manager/agents`\n\n```ts\nconst { data } = await client.listPhoneAgents()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "user_id": "string",\n "email": "string",\n "display_name": "string",\n "status": "active",\n "provider_user_id": "string",\n "provider_roles": ["string"],\n "assigned_at": "1970-01-01T00:00:00.000Z",\n "assigned_by": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `assignPhoneAgent`\n\nGives an organization member the phone. In order: the member is verified with user-api, their\npairwise subject for the provider is read from identity-api, the provider user is created (or\nfound) bound\n\n`POST /v1/manager/agents`\n\n```ts\nconst { data } = await client.assignPhoneAgent(\n null,\n {\n user_id: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "user_id": "string",\n "email": "string",\n "display_name": "string",\n "status": "active",\n "provider_user_id": "string",\n "provider_roles": ["string"],\n "assigned_at": "1970-01-01T00:00:00.000Z",\n "assigned_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `removePhoneAgent`\n\nTakes the phone away from a member: the `phone_agent` role is removed first, then the provider\nuser is deactivated (never deleted: call history keeps referring to it). Requires `phone:manage`.\n\n`DELETE /v1/manager/agents/{user_id}`\n\n```ts\nconst { data } = await client.removePhoneAgent({\n user_id: \'example\',\n})\n```\n\n---\n\n### `getProviderSetup`\n\nWhat has been set up at the telephony provider for this organization.\n\n`GET /v1/operator/organizations/{org_id}/provider`\n\n```ts\nconst { data } = await client.getProviderSetup({\n org_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "org_id": "string",\n "ready": true,\n "tenant": {\n "id": "string",\n "name": "string",\n "org_key": "string",\n "created_at": "1970-01-01T00:00:00.000Z"\n },\n "scim": {\n "configured": true,\n "roles_enabled": true\n },\n "sso": {\n "configured": true,\n "identity_client_id": "string",\n "configured_at": "1970-01-01T00:00:00.000Z"\n },\n "last_setup_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `setupProvider`\n\nPrepares the telephony provider for an organization, idempotently and in order: the provider\ntenant (Babelforce sub-account keyed by the organization id), its SCIM configuration with role\nmanagement o\n\n`POST /v1/operator/organizations/{org_id}/provider:setup`\n\n```ts\nconst { data } = await client.setupProvider(\n {\n org_id: \'example\',\n },\n {\n account_name: \'string\',\n identity_client_id: \'string\',\n identity_client_secret: \'stringstring\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "org_id": "string",\n "ready": true,\n "tenant": {\n "id": "string",\n "name": "string",\n "org_key": "string",\n "created_at": "1970-01-01T00:00:00.000Z"\n },\n "scim": {\n "configured": true,\n "roles_enabled": true\n },\n "sso": {\n "configured": true,\n "identity_client_id": "string",\n "configured_at": "1970-01-01T00:00:00.000Z"\n },\n "last_setup_by": "string"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ManagerStatus`\n\n```ts\ntype ManagerStatus = {\n provider: "babelforce"\n ready: boolean\n reasons: "provider_tenant_missing" | "sso_not_configured" | "scim_not_configured" | "identity_enablement_missing"[]\n}\n```\n\n### `PhoneAgent`\n\n```ts\ntype PhoneAgent = {\n user_id: string\n email: string\n display_name?: string\n status: "active" | "pending" | "disabled" | "missing_provider" | "missing_role"\n provider_user_id?: string\n provider_roles?: string[]\n assigned_at?: string // date-time\n assigned_by?: string\n}\n```\n\n### `AssignPhoneAgentRequest`\n\n```ts\ntype AssignPhoneAgentRequest = {\n user_id: string\n}\n```\n\n### `ProviderSetup`\n\n```ts\ntype ProviderSetup = {\n provider: "babelforce"\n org_id: string\n ready: boolean\n tenant: {\n id: string\n name: string\n org_key: string\n created_at?: string // date-time\n }\n scim: {\n configured: boolean\n roles_enabled: boolean\n }\n sso: {\n configured: boolean\n identity_client_id?: string\n configured_at?: string // date-time\n }\n last_setup_by?: string\n}\n```\n\n### `ProviderSetupRequest`\n\n```ts\ntype ProviderSetupRequest = {\n account_name?: string\n identity_client_id: string\n identity_client_secret: string\n}\n```\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,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**manager**\n- [`getManagerStatus`](#getmanagerstatus)\n- [`listPhoneAgents`](#listphoneagents)\n- [`assignPhoneAgent`](#assignphoneagent)\n- [`removePhoneAgent`](#removephoneagent)\n\n**operator**\n- [`getProviderSetup`](#getprovidersetup)\n- [`setupProvider`](#setupprovider)\n\n**Schemas**\n- [`ManagerStatus`](#managerstatus)\n- [`PhoneAgent`](#phoneagent)\n- [`AssignPhoneAgentRequest`](#assignphoneagentrequest)\n- [`ProviderSetup`](#providersetup)\n- [`ProviderSetupRequest`](#providersetuprequest)\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### `getManagerStatus`\n\nWhether the caller\'s organization is ready for phone agents: the telephony provider tenant\nexists and is configured. The control center shows a "not set up" state when `ready` is false.\nRequires `phon\n\n`GET /v1/manager/status`\n\n```ts\nconst { data } = await client.getManagerStatus()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "ready": true,\n "reasons": ["provider_tenant_missing"]\n}\n```\n\n</details>\n\n---\n\n### `listPhoneAgents`\n\nOrganization members who hold the phone (`phone:use`), each joined with the provider user behind\nthem. Requires `phone:manage`.\n\n`GET /v1/manager/agents`\n\n```ts\nconst { data } = await client.listPhoneAgents()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "user_id": "string",\n "email": "string",\n "display_name": "string",\n "status": "active",\n "provider_user_id": "string",\n "provider_roles": ["string"],\n "assigned_at": "1970-01-01T00:00:00.000Z",\n "assigned_by": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `assignPhoneAgent`\n\nGives an organization member the phone. In order: the member is verified with user-api, their\npairwise subject for the provider is read from identity-api, the provider user is created (or\nfound) bound\n\n`POST /v1/manager/agents`\n\n```ts\nconst { data } = await client.assignPhoneAgent(\n null,\n {\n user_id: \'string\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "user_id": "string",\n "email": "string",\n "display_name": "string",\n "status": "active",\n "provider_user_id": "string",\n "provider_roles": ["string"],\n "assigned_at": "1970-01-01T00:00:00.000Z",\n "assigned_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `removePhoneAgent`\n\nTakes the phone away from a member: the `phone_agent` role is removed first, then the provider\nuser is deactivated (never deleted: call history keeps referring to it). Requires `phone:manage`.\n\n`DELETE /v1/manager/agents/{user_id}`\n\n```ts\nconst { data } = await client.removePhoneAgent({\n user_id: \'example\',\n})\n```\n\n---\n\n### `getProviderSetup`\n\nWhat has been set up at the telephony provider for this organization.\n\n`GET /v1/operator/organizations/{org_id}/provider`\n\n```ts\nconst { data } = await client.getProviderSetup({\n org_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "org_id": "string",\n "ready": true,\n "tenant": {\n "id": "string",\n "name": "string",\n "org_key": "string",\n "created_at": "1970-01-01T00:00:00.000Z"\n },\n "scim": {\n "configured": true,\n "roles_enabled": true\n },\n "sso": {\n "configured": true,\n "identity_client_id": "string",\n "configured_at": "1970-01-01T00:00:00.000Z"\n },\n "last_setup_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `setupProvider`\n\nPrepares the telephony provider for an organization, idempotently and in order: the provider\ntenant (Babelforce sub-account keyed by the organization id), its SCIM configuration with role\nmanagement o\n\n`POST /v1/operator/organizations/{org_id}/provider:setup`\n\n```ts\nconst { data } = await client.setupProvider(\n {\n org_id: \'example\',\n },\n {\n account_name: \'string\',\n identity_client_id: \'string\',\n identity_client_secret: \'stringstring\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "provider": "babelforce",\n "org_id": "string",\n "ready": true,\n "tenant": {\n "id": "string",\n "name": "string",\n "org_key": "string",\n "created_at": "1970-01-01T00:00:00.000Z"\n },\n "scim": {\n "configured": true,\n "roles_enabled": true\n },\n "sso": {\n "configured": true,\n "identity_client_id": "string",\n "configured_at": "1970-01-01T00:00:00.000Z"\n },\n "last_setup_by": "string"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ManagerStatus`\n\n```ts\ntype ManagerStatus = {\n provider: "babelforce"\n ready: boolean\n reasons: "provider_tenant_missing" | "sso_not_configured" | "scim_not_configured" | "identity_enablement_missing"[]\n}\n```\n\n### `PhoneAgent`\n\n```ts\ntype PhoneAgent = {\n user_id: string\n email: string\n display_name?: string\n status: "active" | "pending" | "disabled" | "missing_provider" | "missing_role"\n provider_user_id?: string\n provider_roles?: string[]\n assigned_at?: string // date-time\n assigned_by?: string\n}\n```\n\n### `AssignPhoneAgentRequest`\n\n```ts\ntype AssignPhoneAgentRequest = {\n user_id: string\n}\n```\n\n### `ProviderSetup`\n\n```ts\ntype ProviderSetup = {\n provider: "babelforce"\n org_id: string\n ready: boolean\n tenant: {\n id: string\n name: string\n org_key: string\n created_at?: string // date-time\n }\n scim: {\n configured: boolean\n roles_enabled: boolean\n }\n sso: {\n configured: boolean\n identity_client_id?: string\n configured_at?: string // date-time\n }\n last_setup_by?: string\n}\n```\n\n### `ProviderSetupRequest`\n\n```ts\ntype ProviderSetupRequest = {\n account_name?: string\n identity_client_id: string\n identity_client_secret: string\n}\n```\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;
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBY76NFAXcjs = require('./chunk-BY76NFAX.cjs');
3
+ var _chunkXPQ7LBUEcjs = require('./chunk-XPQ7LBUE.cjs');
4
4
  require('./chunk-NJK5F5TF.cjs');
5
- exports. default = _chunkBY76NFAXcjs.require_phone_integration_runtime.call(void 0, );
5
+ exports. default = _chunkXPQ7LBUEcjs.require_phone_integration_runtime.call(void 0, );
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_phone_integration_runtime
3
- } from "./chunk-UFMZ4EV3.js";
3
+ } from "./chunk-JFRRQORA.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_phone_integration_runtime();