@epilot/sdk 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +663 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +1711 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +4493 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +4819 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +837 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +3490 -0
  19. package/definitions/consent-runtime.json +1 -0
  20. package/definitions/consent.json +344 -0
  21. package/definitions/customer-portal-runtime.json +1 -0
  22. package/definitions/customer-portal.json +15676 -0
  23. package/definitions/dashboard-runtime.json +1 -0
  24. package/definitions/dashboard.json +484 -0
  25. package/definitions/data-management-runtime.json +1 -0
  26. package/definitions/data-management.json +972 -0
  27. package/definitions/deduplication-runtime.json +1 -0
  28. package/definitions/deduplication.json +183 -0
  29. package/definitions/design-runtime.json +1 -0
  30. package/definitions/design.json +1423 -0
  31. package/definitions/document-runtime.json +1 -0
  32. package/definitions/document.json +758 -0
  33. package/definitions/email-settings-runtime.json +1 -0
  34. package/definitions/email-settings.json +2748 -0
  35. package/definitions/email-template-runtime.json +1 -0
  36. package/definitions/email-template.json +1441 -0
  37. package/definitions/entity-mapping-runtime.json +1 -0
  38. package/definitions/entity-mapping.json +1642 -0
  39. package/definitions/entity-runtime.json +1 -0
  40. package/definitions/entity.json +10404 -0
  41. package/definitions/environments-runtime.json +1 -0
  42. package/definitions/environments.json +363 -0
  43. package/definitions/erp-integration-runtime.json +1 -0
  44. package/definitions/erp-integration.json +6780 -0
  45. package/definitions/event-catalog-runtime.json +1 -0
  46. package/definitions/event-catalog.json +1051 -0
  47. package/definitions/file-runtime.json +1 -0
  48. package/definitions/file.json +2842 -0
  49. package/definitions/iban-runtime.json +1 -0
  50. package/definitions/iban.json +132 -0
  51. package/definitions/journey-runtime.json +1 -0
  52. package/definitions/journey.json +2603 -0
  53. package/definitions/kanban-runtime.json +1 -0
  54. package/definitions/kanban.json +1505 -0
  55. package/definitions/message-runtime.json +1 -0
  56. package/definitions/message.json +2660 -0
  57. package/definitions/metering-runtime.json +1 -0
  58. package/definitions/metering.json +2321 -0
  59. package/definitions/notes-runtime.json +1 -0
  60. package/definitions/notes.json +1531 -0
  61. package/definitions/notification-runtime.json +1 -0
  62. package/definitions/notification.json +1425 -0
  63. package/definitions/organization-runtime.json +1 -0
  64. package/definitions/organization.json +1192 -0
  65. package/definitions/partner-directory-runtime.json +1 -0
  66. package/definitions/partner-directory.json +2284 -0
  67. package/definitions/permissions-runtime.json +1 -0
  68. package/definitions/permissions.json +1515 -0
  69. package/definitions/pricing-runtime.json +1 -0
  70. package/definitions/pricing-tier-runtime.json +1 -0
  71. package/definitions/pricing-tier.json +105 -0
  72. package/definitions/pricing.json +9884 -0
  73. package/definitions/purpose-runtime.json +1 -0
  74. package/definitions/purpose.json +524 -0
  75. package/definitions/sandbox-runtime.json +1 -0
  76. package/definitions/sandbox.json +453 -0
  77. package/definitions/submission-runtime.json +1 -0
  78. package/definitions/submission.json +313 -0
  79. package/definitions/targeting-runtime.json +1 -0
  80. package/definitions/targeting.json +1474 -0
  81. package/definitions/template-variables-runtime.json +1 -0
  82. package/definitions/template-variables.json +1408 -0
  83. package/definitions/user-runtime.json +1 -0
  84. package/definitions/user.json +2408 -0
  85. package/definitions/validation-rules-runtime.json +1 -0
  86. package/definitions/validation-rules.json +1491 -0
  87. package/definitions/webhooks-runtime.json +1 -0
  88. package/definitions/webhooks.json +1634 -0
  89. package/definitions/workflow-definition-runtime.json +1 -0
  90. package/definitions/workflow-definition.json +3417 -0
  91. package/definitions/workflow-runtime.json +1 -0
  92. package/definitions/workflow.json +4146 -0
  93. package/dist/apis/access-token.cjs +6 -6
  94. package/dist/apis/access-token.js +1 -1
  95. package/dist/apis/address-suggestions.cjs +6 -6
  96. package/dist/apis/address-suggestions.js +1 -1
  97. package/dist/apis/address.cjs +6 -6
  98. package/dist/apis/address.js +1 -1
  99. package/dist/apis/ai-agents.cjs +6 -6
  100. package/dist/apis/ai-agents.js +1 -1
  101. package/dist/apis/app.cjs +6 -6
  102. package/dist/apis/app.js +1 -1
  103. package/dist/apis/audit-logs.cjs +6 -6
  104. package/dist/apis/audit-logs.js +1 -1
  105. package/dist/apis/automation.cjs +6 -6
  106. package/dist/apis/automation.d.cts +2 -2
  107. package/dist/apis/automation.d.ts +2 -2
  108. package/dist/apis/automation.js +1 -1
  109. package/dist/apis/billing.cjs +6 -6
  110. package/dist/apis/billing.js +1 -1
  111. package/dist/apis/blueprint-manifest.cjs +6 -6
  112. package/dist/apis/blueprint-manifest.js +1 -1
  113. package/dist/apis/consent.cjs +6 -6
  114. package/dist/apis/consent.js +1 -1
  115. package/dist/apis/customer-portal.cjs +6 -6
  116. package/dist/apis/customer-portal.js +1 -1
  117. package/dist/apis/dashboard.cjs +6 -6
  118. package/dist/apis/dashboard.js +1 -1
  119. package/dist/apis/data-management.cjs +6 -6
  120. package/dist/apis/data-management.js +1 -1
  121. package/dist/apis/deduplication.cjs +6 -6
  122. package/dist/apis/deduplication.js +1 -1
  123. package/dist/apis/design.cjs +6 -6
  124. package/dist/apis/design.js +1 -1
  125. package/dist/apis/document.cjs +6 -6
  126. package/dist/apis/document.js +1 -1
  127. package/dist/apis/email-settings.cjs +6 -6
  128. package/dist/apis/email-settings.js +1 -1
  129. package/dist/apis/email-template.cjs +6 -6
  130. package/dist/apis/email-template.js +1 -1
  131. package/dist/apis/entity-mapping.cjs +6 -6
  132. package/dist/apis/entity-mapping.js +1 -1
  133. package/dist/apis/entity.cjs +8 -8
  134. package/dist/apis/entity.d.cts +2 -2
  135. package/dist/apis/entity.d.ts +2 -2
  136. package/dist/apis/entity.js +2 -2
  137. package/dist/apis/environments.cjs +6 -6
  138. package/dist/apis/environments.js +1 -1
  139. package/dist/apis/erp-integration.cjs +8 -8
  140. package/dist/apis/erp-integration.d.cts +2 -2
  141. package/dist/apis/erp-integration.d.ts +2 -2
  142. package/dist/apis/erp-integration.js +2 -2
  143. package/dist/apis/event-catalog.cjs +6 -6
  144. package/dist/apis/event-catalog.js +1 -1
  145. package/dist/apis/file.cjs +6 -6
  146. package/dist/apis/file.js +1 -1
  147. package/dist/apis/iban.cjs +6 -6
  148. package/dist/apis/iban.js +1 -1
  149. package/dist/apis/journey.cjs +6 -6
  150. package/dist/apis/journey.js +1 -1
  151. package/dist/apis/kanban.cjs +6 -6
  152. package/dist/apis/kanban.js +1 -1
  153. package/dist/apis/message.cjs +6 -6
  154. package/dist/apis/message.js +1 -1
  155. package/dist/apis/metering.cjs +6 -6
  156. package/dist/apis/metering.js +1 -1
  157. package/dist/apis/notes.cjs +6 -6
  158. package/dist/apis/notes.js +1 -1
  159. package/dist/apis/notification.cjs +6 -6
  160. package/dist/apis/notification.js +1 -1
  161. package/dist/apis/organization.cjs +6 -6
  162. package/dist/apis/organization.js +1 -1
  163. package/dist/apis/partner-directory.cjs +6 -6
  164. package/dist/apis/partner-directory.js +1 -1
  165. package/dist/apis/permissions.cjs +6 -6
  166. package/dist/apis/permissions.js +1 -1
  167. package/dist/apis/pricing-tier.cjs +6 -6
  168. package/dist/apis/pricing-tier.js +1 -1
  169. package/dist/apis/pricing.cjs +6 -6
  170. package/dist/apis/pricing.js +1 -1
  171. package/dist/apis/purpose.cjs +6 -6
  172. package/dist/apis/purpose.js +1 -1
  173. package/dist/apis/sandbox.cjs +6 -6
  174. package/dist/apis/sandbox.js +1 -1
  175. package/dist/apis/submission.cjs +6 -6
  176. package/dist/apis/submission.js +1 -1
  177. package/dist/apis/targeting.cjs +6 -6
  178. package/dist/apis/targeting.js +1 -1
  179. package/dist/apis/template-variables.cjs +6 -6
  180. package/dist/apis/template-variables.js +1 -1
  181. package/dist/apis/user.cjs +6 -6
  182. package/dist/apis/user.js +1 -1
  183. package/dist/apis/validation-rules.cjs +6 -6
  184. package/dist/apis/validation-rules.js +1 -1
  185. package/dist/apis/webhooks.cjs +6 -6
  186. package/dist/apis/webhooks.js +1 -1
  187. package/dist/apis/workflow-definition.cjs +6 -6
  188. package/dist/apis/workflow-definition.js +1 -1
  189. package/dist/apis/workflow.cjs +6 -6
  190. package/dist/apis/workflow.js +1 -1
  191. package/dist/{automation.d-KOiZ6ru5.d.cts → automation.d-D7BzN7Gq.d.cts} +4 -0
  192. package/dist/{automation.d-KOiZ6ru5.d.ts → automation.d-D7BzN7Gq.d.ts} +4 -0
  193. package/dist/{chunk-G33CBNJD.js → chunk-K7HKCNT2.js} +4 -4
  194. package/dist/{chunk-TPA4HEAO.js → chunk-LHVRAAFH.js} +1 -1
  195. package/dist/{chunk-IGVVJMX7.cjs → chunk-ODD4JQVS.cjs} +1 -1
  196. package/dist/chunk-RKSUIRD2.js +14 -0
  197. package/dist/{chunk-6TKKEGYU.cjs → chunk-TG2P4RWZ.cjs} +4 -4
  198. package/dist/chunk-XLQ4ZRBF.cjs +14 -0
  199. package/dist/entity-RCWJZZXM.cjs +7 -0
  200. package/dist/entity-X374X6EQ.js +7 -0
  201. package/dist/{entity-runtime-QSFVEFJ6.js → entity-runtime-CWQUEFCS.js} +1 -1
  202. package/dist/entity-runtime-EOWSEXC7.cjs +5 -0
  203. package/dist/{entity.d-DtiajmaY.d.cts → entity.d-t9R21446.d.cts} +140 -4
  204. package/dist/{entity.d-DtiajmaY.d.ts → entity.d-t9R21446.d.ts} +140 -4
  205. package/dist/erp-integration-6I4B4BIU.cjs +7 -0
  206. package/dist/erp-integration-G54BMGGE.js +7 -0
  207. package/dist/{erp-integration-runtime-FNJXDO75.js → erp-integration-runtime-6SBLYZ34.js} +1 -1
  208. package/dist/{erp-integration-runtime-WXZIQCLJ.cjs → erp-integration-runtime-HZI2P4X7.cjs} +2 -2
  209. package/dist/{erp-integration.d-DOhxy4P5.d.cts → erp-integration.d-BV3Rv9e6.d.cts} +479 -14
  210. package/dist/{erp-integration.d-DOhxy4P5.d.ts → erp-integration.d-BV3Rv9e6.d.ts} +479 -14
  211. package/dist/index.cjs +12 -12
  212. package/dist/index.d.cts +3 -3
  213. package/dist/index.d.ts +3 -3
  214. package/dist/index.js +3 -3
  215. package/docs/entity.md +337 -5
  216. package/docs/erp-integration.md +643 -16
  217. package/package.json +1 -1
  218. package/dist/chunk-24T6CJTG.js +0 -14
  219. package/dist/chunk-TTNPMFXL.cjs +0 -14
  220. package/dist/entity-FA6PZX6S.js +0 -7
  221. package/dist/entity-IX5NSHPX.cjs +0 -7
  222. package/dist/entity-runtime-XSAICIVR.cjs +0 -5
  223. package/dist/erp-integration-EP2XFEH5.js +0 -7
  224. package/dist/erp-integration-NNV72VFI.cjs +0 -7
package/dist/index.cjs CHANGED
@@ -81,13 +81,13 @@ var _chunkK2UZPY6Ucjs = require('./chunk-K2UZPY6U.cjs');
81
81
  var _chunkANN2QTMYcjs = require('./chunk-ANN2QTMY.cjs');
82
82
 
83
83
 
84
- var _chunkTTNPMFXLcjs = require('./chunk-TTNPMFXL.cjs');
84
+ var _chunkXLQ4ZRBFcjs = require('./chunk-XLQ4ZRBF.cjs');
85
85
 
86
86
 
87
87
  var _chunkTXDVGTQDcjs = require('./chunk-TXDVGTQD.cjs');
88
88
 
89
89
 
90
- var _chunkIGVVJMX7cjs = require('./chunk-IGVVJMX7.cjs');
90
+ var _chunkODD4JQVScjs = require('./chunk-ODD4JQVS.cjs');
91
91
 
92
92
 
93
93
  var _chunkBLNXQAMXcjs = require('./chunk-BLNXQAMX.cjs');
@@ -143,7 +143,7 @@ var _chunkRXMOHUBPcjs = require('./chunk-RXMOHUBP.cjs');
143
143
 
144
144
 
145
145
 
146
- var _chunk6TKKEGYUcjs = require('./chunk-6TKKEGYU.cjs');
146
+ var _chunkTG2P4RWZcjs = require('./chunk-TG2P4RWZ.cjs');
147
147
 
148
148
 
149
149
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -210,7 +210,7 @@ var resolveClient = (params) => {
210
210
  }
211
211
  if (!entry.instance) {
212
212
  const definition = entry.loader();
213
- entry.instance = _chunk6TKKEGYUcjs.createApiClient.call(void 0, {
213
+ entry.instance = _chunkTG2P4RWZcjs.createApiClient.call(void 0, {
214
214
  definition,
215
215
  token: state.token,
216
216
  headers: state.globalHeaders,
@@ -243,7 +243,7 @@ var resetAllClients = (registry) => {
243
243
  };
244
244
 
245
245
  // src/apis/_registry.ts
246
- var expandDef = (mod) => _chunk6TKKEGYUcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
246
+ var expandDef = (mod) => _chunkTG2P4RWZcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
247
247
  var registerBuiltinApis = (registry) => {
248
248
  registerApi({
249
249
  registry,
@@ -338,7 +338,7 @@ var registerBuiltinApis = (registry) => {
338
338
  registerApi({
339
339
  registry,
340
340
  name: "entity",
341
- loader: () => expandDef(_chunkTTNPMFXLcjs.require_entity_runtime.call(void 0, ))
341
+ loader: () => expandDef(_chunkXLQ4ZRBFcjs.require_entity_runtime.call(void 0, ))
342
342
  });
343
343
  registerApi({
344
344
  registry,
@@ -353,7 +353,7 @@ var registerBuiltinApis = (registry) => {
353
353
  registerApi({
354
354
  registry,
355
355
  name: "erpIntegration",
356
- loader: () => expandDef(_chunkIGVVJMX7cjs.require_erp_integration_runtime.call(void 0, ))
356
+ loader: () => expandDef(_chunkODD4JQVScjs.require_erp_integration_runtime.call(void 0, ))
357
357
  });
358
358
  registerApi({
359
359
  registry,
@@ -545,9 +545,9 @@ var createSDK = () => {
545
545
  const available = [...registry.keys()].join(", ");
546
546
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
547
547
  }
548
- return _chunk6TKKEGYUcjs.createApiHandle.call(void 0, {
548
+ return _chunkTG2P4RWZcjs.createApiHandle.call(void 0, {
549
549
  resolveClient: () => resolveClient({ registry, name, state }),
550
- createClient: () => _chunk6TKKEGYUcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
550
+ createClient: () => _chunkTG2P4RWZcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
551
551
  apiName: name
552
552
  });
553
553
  };
@@ -595,9 +595,9 @@ var createSDK = () => {
595
595
  return interceptorUse;
596
596
  }
597
597
  case "help":
598
- return (apiName) => _chunk6TKKEGYUcjs.help.call(void 0, apiName);
598
+ return (apiName) => _chunkTG2P4RWZcjs.help.call(void 0, apiName);
599
599
  case "openapi":
600
- return (apiName) => _chunk6TKKEGYUcjs.openapi.call(void 0, apiName);
600
+ return (apiName) => _chunkTG2P4RWZcjs.openapi.call(void 0, apiName);
601
601
  case "then":
602
602
  case "catch":
603
603
  case "finally":
@@ -624,4 +624,4 @@ var epilot = createSDK();
624
624
 
625
625
 
626
626
 
627
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk6TKKEGYUcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk6TKKEGYUcjs.help; exports.openapi = _chunk6TKKEGYUcjs.openapi;
627
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkTG2P4RWZcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkTG2P4RWZcjs.help; exports.openapi = _chunkTG2P4RWZcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -9,7 +9,7 @@ import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
9
9
  import { C as Client$3 } from './ai-agents.d-OkXfr2bz.cjs';
10
10
  import { C as Client$4 } from './app.d-u7Dq42kU.cjs';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
12
- import { C as Client$6 } from './automation.d-KOiZ6ru5.cjs';
12
+ import { C as Client$6 } from './automation.d-D7BzN7Gq.cjs';
13
13
  import { C as Client$7 } from './billing.d-Bs8Ku9qE.cjs';
14
14
  import { C as Client$8 } from './blueprint-manifest.d-DECw6HdM.cjs';
15
15
  import { C as Client$9 } from './consent.d-C2PROHhX.cjs';
@@ -21,10 +21,10 @@ import { C as Client$e } from './design.d-eA-irKEX.cjs';
21
21
  import { C as Client$f } from './document.d-DN37pjdx.cjs';
22
22
  import { C as Client$g } from './email-settings.d-DUvmLZMN.cjs';
23
23
  import { C as Client$h } from './email-template.d-gtQkdaXM.cjs';
24
- import { C as Client$i } from './entity.d-DtiajmaY.cjs';
24
+ import { C as Client$i } from './entity.d-t9R21446.cjs';
25
25
  import { C as Client$j } from './entity-mapping.d-DKSW3sfy.cjs';
26
26
  import { C as Client$k } from './environments.d-H3LK_KuH.cjs';
27
- import { C as Client$l } from './erp-integration.d-DOhxy4P5.cjs';
27
+ import { C as Client$l } from './erp-integration.d-BV3Rv9e6.cjs';
28
28
  import { C as Client$m } from './event-catalog.d-ENw6HO-w.cjs';
29
29
  import { C as Client$n } from './file.d-DcTJxjp7.cjs';
30
30
  import { C as Client$o } from './iban.d-BwdiGbxi.cjs';
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
9
9
  import { C as Client$3 } from './ai-agents.d-OkXfr2bz.js';
10
10
  import { C as Client$4 } from './app.d-u7Dq42kU.js';
11
11
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
12
- import { C as Client$6 } from './automation.d-KOiZ6ru5.js';
12
+ import { C as Client$6 } from './automation.d-D7BzN7Gq.js';
13
13
  import { C as Client$7 } from './billing.d-Bs8Ku9qE.js';
14
14
  import { C as Client$8 } from './blueprint-manifest.d-DECw6HdM.js';
15
15
  import { C as Client$9 } from './consent.d-C2PROHhX.js';
@@ -21,10 +21,10 @@ import { C as Client$e } from './design.d-eA-irKEX.js';
21
21
  import { C as Client$f } from './document.d-DN37pjdx.js';
22
22
  import { C as Client$g } from './email-settings.d-DUvmLZMN.js';
23
23
  import { C as Client$h } from './email-template.d-gtQkdaXM.js';
24
- import { C as Client$i } from './entity.d-DtiajmaY.js';
24
+ import { C as Client$i } from './entity.d-t9R21446.js';
25
25
  import { C as Client$j } from './entity-mapping.d-DKSW3sfy.js';
26
26
  import { C as Client$k } from './environments.d-H3LK_KuH.js';
27
- import { C as Client$l } from './erp-integration.d-DOhxy4P5.js';
27
+ import { C as Client$l } from './erp-integration.d-BV3Rv9e6.js';
28
28
  import { C as Client$m } from './event-catalog.d-ENw6HO-w.js';
29
29
  import { C as Client$n } from './file.d-DcTJxjp7.js';
30
30
  import { C as Client$o } from './iban.d-BwdiGbxi.js';
package/dist/index.js CHANGED
@@ -81,13 +81,13 @@ import {
81
81
  } from "./chunk-SBSIGQDU.js";
82
82
  import {
83
83
  require_entity_runtime
84
- } from "./chunk-24T6CJTG.js";
84
+ } from "./chunk-RKSUIRD2.js";
85
85
  import {
86
86
  require_environments_runtime
87
87
  } from "./chunk-6OYECNL2.js";
88
88
  import {
89
89
  require_erp_integration_runtime
90
- } from "./chunk-TPA4HEAO.js";
90
+ } from "./chunk-LHVRAAFH.js";
91
91
  import {
92
92
  require_event_catalog_runtime
93
93
  } from "./chunk-TME4YJNP.js";
@@ -143,7 +143,7 @@ import {
143
143
  expand,
144
144
  help,
145
145
  openapi
146
- } from "./chunk-G33CBNJD.js";
146
+ } from "./chunk-K7HKCNT2.js";
147
147
  import {
148
148
  __require
149
149
  } from "./chunk-YPSWSI3M.js";
package/docs/entity.md CHANGED
@@ -33,6 +33,8 @@ const { data } = await entityClient.listSchemas(...)
33
33
  - [`getJsonSchema`](#getjsonschema)
34
34
  - [`getSchemaExample`](#getschemaexample)
35
35
  - [`getSchemaVersions`](#getschemaversions)
36
+ - [`freezeSchema`](#freezeschema)
37
+ - [`unfreezeSchema`](#unfreezeschema)
36
38
  - [`listAvailableCapabilities`](#listavailablecapabilities)
37
39
  - [`listSchemaBlueprints`](#listschemablueprints)
38
40
  - [`listTaxonomyClassificationsForSchema`](#listtaxonomyclassificationsforschema)
@@ -263,6 +265,7 @@ Get the latest versions of all schemas
263
265
  ```ts
264
266
  const { data } = await client.listSchemas({
265
267
  unpublished: true,
268
+ latest: true,
266
269
  exclude: ['...'],
267
270
  include: ['...'],
268
271
  })
@@ -280,6 +283,8 @@ const { data } = await client.listSchemas({
280
283
  "updated_at": "string",
281
284
  "comment": "string",
282
285
  "source": {},
286
+ "frozen": true,
287
+ "latest": true,
283
288
  "_summary": true,
284
289
  "slug": "contact",
285
290
  "version": 1,
@@ -325,6 +330,7 @@ Use ?full=true for complete schemas.
325
330
  const { data } = await client.listSchemasV2({
326
331
  full: true,
327
332
  unpublished: true,
333
+ latest: true,
328
334
  exclude: ['...'],
329
335
  include: ['...'],
330
336
  })
@@ -342,6 +348,8 @@ const { data } = await client.listSchemasV2({
342
348
  "updated_at": "string",
343
349
  "comment": "string",
344
350
  "source": {},
351
+ "frozen": true,
352
+ "latest": true,
345
353
  "_summary": true,
346
354
  "slug": "contact",
347
355
  "version": 1,
@@ -377,7 +385,9 @@ const { data } = await client.listSchemasV2({
377
385
 
378
386
  ### `getSchema`
379
387
 
380
- By default gets the latest version of the Schema and to get the specific version of schema pass the id.
388
+ By default gets the current version of the Schema (frozen version if frozen, otherwise latest).
389
+ Pass ?latest=true to get the latest version when the schema is frozen.
390
+ Pass ?id= to get a specific versi
381
391
 
382
392
  `GET /v1/entity/schemas/{slug}`
383
393
 
@@ -385,6 +395,7 @@ By default gets the latest version of the Schema and to get the specific version
385
395
  const { data } = await client.getSchema({
386
396
  slug: 'example',
387
397
  id: '123e4567-e89b-12d3-a456-426614174000',
398
+ latest: true,
388
399
  })
389
400
  ```
390
401
 
@@ -401,6 +412,8 @@ const { data } = await client.getSchema({
401
412
  "id": "string",
402
413
  "type": "string"
403
414
  },
415
+ "frozen": true,
416
+ "latest": true,
404
417
  "_summary": true,
405
418
  "slug": "contact",
406
419
  "version": 1,
@@ -527,7 +540,8 @@ const { data } = await client.getSchema({
527
540
 
528
541
  ### `putSchema`
529
542
 
530
- Create or update a schema with a new version
543
+ Create or update a schema with a new version.
544
+ When the schema is frozen, writes update the latest version without affecting the frozen version.
531
545
 
532
546
  `PUT /v1/entity/schemas/{slug}`
533
547
 
@@ -672,6 +686,8 @@ const { data } = await client.putSchema(
672
686
  "id": "string",
673
687
  "type": "string"
674
688
  },
689
+ "frozen": true,
690
+ "latest": true,
675
691
  "_summary": true,
676
692
  "slug": "contact",
677
693
  "version": 1,
@@ -990,6 +1006,8 @@ const { data } = await client.getSchemaVersions({
990
1006
  "updated_at": "string",
991
1007
  "comment": "string",
992
1008
  "source": {},
1009
+ "frozen": true,
1010
+ "latest": true,
993
1011
  "_summary": true,
994
1012
  "slug": "contact",
995
1013
  "version": 1,
@@ -1023,6 +1041,8 @@ const { data } = await client.getSchemaVersions({
1023
1041
  "updated_at": "string",
1024
1042
  "comment": "string",
1025
1043
  "source": {},
1044
+ "frozen": true,
1045
+ "latest": true,
1026
1046
  "_summary": true,
1027
1047
  "slug": "contact",
1028
1048
  "version": 1,
@@ -1050,7 +1070,317 @@ const { data } = await client.getSchemaVersions({
1050
1070
  }
1051
1071
  ],
1052
1072
  "versions_more": true,
1053
- "drafts_more": true
1073
+ "drafts_more": true,
1074
+ "frozen_version": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1075
+ }
1076
+ ```
1077
+
1078
+ </details>
1079
+
1080
+ ---
1081
+
1082
+ ### `freezeSchema`
1083
+
1084
+ Freeze a schema at its current version, or at a specific version.
1085
+ When frozen, getSchema returns the frozen version by default.
1086
+ New edits via putSchema update the latest version without affecting the
1087
+
1088
+ `POST /v1/entity/schemas/{slug}/freeze`
1089
+
1090
+ ```ts
1091
+ const { data } = await client.freezeSchema(
1092
+ {
1093
+ slug: 'example',
1094
+ },
1095
+ {
1096
+ version_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'
1097
+ },
1098
+ )
1099
+ ```
1100
+
1101
+ <details>
1102
+ <summary>Response</summary>
1103
+
1104
+ ```json
1105
+ {
1106
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1107
+ "created_at": "string",
1108
+ "updated_at": "string",
1109
+ "comment": "string",
1110
+ "source": {
1111
+ "id": "string",
1112
+ "type": "string"
1113
+ },
1114
+ "frozen": true,
1115
+ "latest": true,
1116
+ "_summary": true,
1117
+ "slug": "contact",
1118
+ "version": 1,
1119
+ "blueprint": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1120
+ "feature_flag": "FF_MY_FEATURE_FLAG",
1121
+ "enable_setting": ["360_features"],
1122
+ "name": "Contact",
1123
+ "plural": "Contacts",
1124
+ "description": "Example description",
1125
+ "docs_url": "https://docs.epilot.io/docs/pricing/entities",
1126
+ "category": "customer_relations",
1127
+ "published": false,
1128
+ "draft": false,
1129
+ "icon": "person",
1130
+ "title_template": "{{first_name}} {{last_name}}",
1131
+ "ui_config": {
1132
+ "table_view": {
1133
+ "view_type": "default",
1134
+ "row_actions": ["string"],
1135
+ "bulk_actions": ["string"],
1136
+ "navbar_actions": [],
1137
+ "enable_thumbnails": false
1138
+ },
1139
+ "create_view": {
1140
+ "view_type": "default",
1141
+ "search_params": {}
1142
+ },
1143
+ "edit_view": {
1144
+ "view_type": "default",
1145
+ "search_params": {},
1146
+ "summary_attributes": ["email"]
1147
+ },
1148
+ "single_view": {
1149
+ "view_type": "default",
1150
+ "search_params": {},
1151
+ "summary_attributes": ["email"]
1152
+ },
1153
+ "list_item": {
1154
+ "summary_attributes": [],
1155
+ "quick_actions": [],
1156
+ "ui_config": {}
1157
+ },
1158
+ "sharing": {
1159
+ "show_sharing_button": true
1160
+ }
1161
+ },
1162
+ "capabilities": [
1163
+ {
1164
+ "id": "d5839b94-ba20-4225-a78e-76951d352bd6",
1165
+ "name": "customer_messaging",
1166
+ "title": "Messaging",
1167
+ "attributes": [],
1168
+ "_purpose": ["taxonomy-slug:classification-slug"],
1169
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
1170
+ "app_id": "123e4567-e89b-12d3-a456-426614174000",
1171
+ "ui_config": {},
1172
+ "ui_hooks": [],
1173
+ "feature_flag": "FF_MY_FEATURE_FLAG",
1174
+ "settings_flag": [],
1175
+ "schemas": []
1176
+ }
1177
+ ],
1178
+ "group_settings": [
1179
+ {
1180
+ "id": "e18a532b-ae79-4d86-a6a5-e5dbfb579d14",
1181
+ "label": "Contact Details",
1182
+ "expanded": true,
1183
+ "order": 1
1184
+ },
1185
+ {
1186
+ "id": "e9a1ae28-27ba-4fa0-a79c-e279cc5c4a6e",
1187
+ "label": "Address Details",
1188
+ "expanded": false,
1189
+ "order": 2,
1190
+ "info_tooltip_title": {}
1191
+ }
1192
+ ],
1193
+ "layout_settings": {
1194
+ "grid_gap": "string",
1195
+ "grid_template_columns": "string"
1196
+ },
1197
+ "dialog_config": {},
1198
+ "attributes": [
1199
+ {
1200
+ "name": "email",
1201
+ "type": "email",
1202
+ "label": "Email",
1203
+ "required": true
1204
+ },
1205
+ {
1206
+ "name": "first_name",
1207
+ "type": "string",
1208
+ "label": "First Name"
1209
+ }
1210
+ ],
1211
+ "_purpose": ["string"],
1212
+ "explicit_search_mappings": {
1213
+ "image": {
1214
+ "type": "keyword",
1215
+ "index": false
1216
+ }
1217
+ },
1218
+ "group_headlines": [
1219
+ {
1220
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1221
+ "name": "string",
1222
+ "label": "string",
1223
+ "layout": "string",
1224
+ "group": "string",
1225
+ "order": 0,
1226
+ "type": "headline",
1227
+ "enable_divider": false,
1228
+ "divider": "top_divider",
1229
+ "_purpose": ["taxonomy-slug:classification-slug"],
1230
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
1231
+ }
1232
+ ]
1233
+ }
1234
+ ```
1235
+
1236
+ </details>
1237
+
1238
+ ---
1239
+
1240
+ ### `unfreezeSchema`
1241
+
1242
+ Unfreeze a schema. Promotes the latest version to the current version for all users.
1243
+
1244
+ `POST /v1/entity/schemas/{slug}/unfreeze`
1245
+
1246
+ ```ts
1247
+ const { data } = await client.unfreezeSchema({
1248
+ slug: 'example',
1249
+ })
1250
+ ```
1251
+
1252
+ <details>
1253
+ <summary>Response</summary>
1254
+
1255
+ ```json
1256
+ {
1257
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1258
+ "created_at": "string",
1259
+ "updated_at": "string",
1260
+ "comment": "string",
1261
+ "source": {
1262
+ "id": "string",
1263
+ "type": "string"
1264
+ },
1265
+ "frozen": true,
1266
+ "latest": true,
1267
+ "_summary": true,
1268
+ "slug": "contact",
1269
+ "version": 1,
1270
+ "blueprint": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1271
+ "feature_flag": "FF_MY_FEATURE_FLAG",
1272
+ "enable_setting": ["360_features"],
1273
+ "name": "Contact",
1274
+ "plural": "Contacts",
1275
+ "description": "Example description",
1276
+ "docs_url": "https://docs.epilot.io/docs/pricing/entities",
1277
+ "category": "customer_relations",
1278
+ "published": false,
1279
+ "draft": false,
1280
+ "icon": "person",
1281
+ "title_template": "{{first_name}} {{last_name}}",
1282
+ "ui_config": {
1283
+ "table_view": {
1284
+ "view_type": "default",
1285
+ "row_actions": ["string"],
1286
+ "bulk_actions": ["string"],
1287
+ "navbar_actions": [],
1288
+ "enable_thumbnails": false
1289
+ },
1290
+ "create_view": {
1291
+ "view_type": "default",
1292
+ "search_params": {}
1293
+ },
1294
+ "edit_view": {
1295
+ "view_type": "default",
1296
+ "search_params": {},
1297
+ "summary_attributes": ["email"]
1298
+ },
1299
+ "single_view": {
1300
+ "view_type": "default",
1301
+ "search_params": {},
1302
+ "summary_attributes": ["email"]
1303
+ },
1304
+ "list_item": {
1305
+ "summary_attributes": [],
1306
+ "quick_actions": [],
1307
+ "ui_config": {}
1308
+ },
1309
+ "sharing": {
1310
+ "show_sharing_button": true
1311
+ }
1312
+ },
1313
+ "capabilities": [
1314
+ {
1315
+ "id": "d5839b94-ba20-4225-a78e-76951d352bd6",
1316
+ "name": "customer_messaging",
1317
+ "title": "Messaging",
1318
+ "attributes": [],
1319
+ "_purpose": ["taxonomy-slug:classification-slug"],
1320
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
1321
+ "app_id": "123e4567-e89b-12d3-a456-426614174000",
1322
+ "ui_config": {},
1323
+ "ui_hooks": [],
1324
+ "feature_flag": "FF_MY_FEATURE_FLAG",
1325
+ "settings_flag": [],
1326
+ "schemas": []
1327
+ }
1328
+ ],
1329
+ "group_settings": [
1330
+ {
1331
+ "id": "e18a532b-ae79-4d86-a6a5-e5dbfb579d14",
1332
+ "label": "Contact Details",
1333
+ "expanded": true,
1334
+ "order": 1
1335
+ },
1336
+ {
1337
+ "id": "e9a1ae28-27ba-4fa0-a79c-e279cc5c4a6e",
1338
+ "label": "Address Details",
1339
+ "expanded": false,
1340
+ "order": 2,
1341
+ "info_tooltip_title": {}
1342
+ }
1343
+ ],
1344
+ "layout_settings": {
1345
+ "grid_gap": "string",
1346
+ "grid_template_columns": "string"
1347
+ },
1348
+ "dialog_config": {},
1349
+ "attributes": [
1350
+ {
1351
+ "name": "email",
1352
+ "type": "email",
1353
+ "label": "Email",
1354
+ "required": true
1355
+ },
1356
+ {
1357
+ "name": "first_name",
1358
+ "type": "string",
1359
+ "label": "First Name"
1360
+ }
1361
+ ],
1362
+ "_purpose": ["string"],
1363
+ "explicit_search_mappings": {
1364
+ "image": {
1365
+ "type": "keyword",
1366
+ "index": false
1367
+ }
1368
+ },
1369
+ "group_headlines": [
1370
+ {
1371
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1372
+ "name": "string",
1373
+ "label": "string",
1374
+ "layout": "string",
1375
+ "group": "string",
1376
+ "order": 0,
1377
+ "type": "headline",
1378
+ "enable_divider": false,
1379
+ "divider": "top_divider",
1380
+ "_purpose": ["taxonomy-slug:classification-slug"],
1381
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
1382
+ }
1383
+ ]
1054
1384
  }
1055
1385
  ```
1056
1386
 
@@ -1120,6 +1450,8 @@ const { data } = await client.listSchemaBlueprints()
1120
1450
  "updated_at": "string",
1121
1451
  "comment": "string",
1122
1452
  "source": {},
1453
+ "frozen": true,
1454
+ "latest": true,
1123
1455
  "_summary": true,
1124
1456
  "slug": "contact",
1125
1457
  "version": 1,
@@ -5684,6 +6016,8 @@ type EntitySchemaItem = {
5684
6016
  id?: string
5685
6017
  type?: string
5686
6018
  }
6019
+ frozen?: boolean
6020
+ latest?: boolean
5687
6021
  _summary?: boolean
5688
6022
  slug: string
5689
6023
  version?: number
@@ -5773,8 +6107,6 @@ type EntitySchemaItem = {
5773
6107
  icon?: { ... }
5774
6108
  render_condition?: { ... }
5775
6109
  _purpose?: { ... }
5776
- _manifest?: { ... }
5777
- constraints?: { ... }
5778
6110
  // ...
5779
6111
  }
5780
6112
  ```