@epilot/sdk 2.2.3 → 2.2.5

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 (133) hide show
  1. package/definitions/data-management-runtime.json +1 -1
  2. package/definitions/data-management.json +11 -5
  3. package/definitions/workflow-definition-runtime.json +1 -1
  4. package/definitions/workflow-definition.json +72 -201
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +6 -6
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-management.cjs +8 -8
  30. package/dist/apis/data-management.d.cts +2 -2
  31. package/dist/apis/data-management.d.ts +2 -2
  32. package/dist/apis/data-management.js +2 -2
  33. package/dist/apis/deduplication.cjs +6 -6
  34. package/dist/apis/deduplication.js +1 -1
  35. package/dist/apis/design.cjs +6 -6
  36. package/dist/apis/design.js +1 -1
  37. package/dist/apis/document.cjs +6 -6
  38. package/dist/apis/document.js +1 -1
  39. package/dist/apis/email-settings.cjs +6 -6
  40. package/dist/apis/email-settings.js +1 -1
  41. package/dist/apis/email-template.cjs +6 -6
  42. package/dist/apis/email-template.js +1 -1
  43. package/dist/apis/entity-mapping.cjs +6 -6
  44. package/dist/apis/entity-mapping.js +1 -1
  45. package/dist/apis/entity.cjs +6 -6
  46. package/dist/apis/entity.js +1 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/erp-integration.cjs +6 -6
  50. package/dist/apis/erp-integration.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/file.cjs +6 -6
  54. package/dist/apis/file.js +1 -1
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/journey.cjs +6 -6
  58. package/dist/apis/journey.js +1 -1
  59. package/dist/apis/kanban.cjs +6 -6
  60. package/dist/apis/kanban.js +1 -1
  61. package/dist/apis/message.cjs +6 -6
  62. package/dist/apis/message.js +1 -1
  63. package/dist/apis/metering.cjs +6 -6
  64. package/dist/apis/metering.js +1 -1
  65. package/dist/apis/notes.cjs +6 -6
  66. package/dist/apis/notes.js +1 -1
  67. package/dist/apis/notification.cjs +6 -6
  68. package/dist/apis/notification.js +1 -1
  69. package/dist/apis/organization.cjs +6 -6
  70. package/dist/apis/organization.js +1 -1
  71. package/dist/apis/partner-directory.cjs +6 -6
  72. package/dist/apis/partner-directory.js +1 -1
  73. package/dist/apis/permissions.cjs +6 -6
  74. package/dist/apis/permissions.js +1 -1
  75. package/dist/apis/pricing-tier.cjs +6 -6
  76. package/dist/apis/pricing-tier.js +1 -1
  77. package/dist/apis/pricing.cjs +6 -6
  78. package/dist/apis/pricing.js +1 -1
  79. package/dist/apis/purpose.cjs +6 -6
  80. package/dist/apis/purpose.js +1 -1
  81. package/dist/apis/sandbox.cjs +6 -6
  82. package/dist/apis/sandbox.js +1 -1
  83. package/dist/apis/submission.cjs +6 -6
  84. package/dist/apis/submission.js +1 -1
  85. package/dist/apis/targeting.cjs +6 -6
  86. package/dist/apis/targeting.js +1 -1
  87. package/dist/apis/template-variables.cjs +6 -6
  88. package/dist/apis/template-variables.js +1 -1
  89. package/dist/apis/user.cjs +6 -6
  90. package/dist/apis/user.js +1 -1
  91. package/dist/apis/validation-rules.cjs +6 -6
  92. package/dist/apis/validation-rules.js +1 -1
  93. package/dist/apis/webhooks.cjs +6 -6
  94. package/dist/apis/webhooks.js +1 -1
  95. package/dist/apis/workflow-definition.cjs +8 -8
  96. package/dist/apis/workflow-definition.d.cts +2 -2
  97. package/dist/apis/workflow-definition.d.ts +2 -2
  98. package/dist/apis/workflow-definition.js +2 -2
  99. package/dist/apis/workflow.cjs +6 -6
  100. package/dist/apis/workflow.js +1 -1
  101. package/dist/chunk-43GJY2EB.js +14 -0
  102. package/dist/chunk-4BCQGZJB.cjs +14 -0
  103. package/dist/chunk-6GC363VV.js +14 -0
  104. package/dist/chunk-CYS6QBW6.cjs +14 -0
  105. package/dist/{chunk-TUSCE6W2.js → chunk-OTSGPLDM.js} +4 -4
  106. package/dist/{chunk-EH7KVFLO.cjs → chunk-ZXLTSQYE.cjs} +4 -4
  107. package/dist/data-management-3N3A3XBM.js +7 -0
  108. package/dist/data-management-YXFLQWLV.cjs +7 -0
  109. package/dist/{data-management-runtime-XZ347IUB.js → data-management-runtime-DN7FGK7G.js} +1 -1
  110. package/dist/{data-management-runtime-PAC7UFGT.cjs → data-management-runtime-J5IS7T47.cjs} +2 -2
  111. package/dist/{data-management.d-CkDmJwpx.d.cts → data-management.d-BXS5jbJY.d.cts} +1 -0
  112. package/dist/{data-management.d-CkDmJwpx.d.ts → data-management.d-BXS5jbJY.d.ts} +1 -0
  113. package/dist/index.cjs +12 -12
  114. package/dist/index.d.cts +2 -2
  115. package/dist/index.d.ts +2 -2
  116. package/dist/index.js +3 -3
  117. package/dist/workflow-definition-MBOMPMCG.js +7 -0
  118. package/dist/workflow-definition-SPAHD3HS.cjs +7 -0
  119. package/dist/{workflow-definition-runtime-VRND6VQR.cjs → workflow-definition-runtime-GACBV4WM.cjs} +2 -2
  120. package/dist/{workflow-definition-runtime-S7AZHOU7.js → workflow-definition-runtime-OVXRSE34.js} +1 -1
  121. package/dist/{workflow-definition.d-CE3kk9gl.d.cts → workflow-definition.d-CtmE-ymB.d.cts} +52 -211
  122. package/dist/{workflow-definition.d-CE3kk9gl.d.ts → workflow-definition.d-CtmE-ymB.d.ts} +52 -211
  123. package/docs/data-management.md +15 -6
  124. package/docs/workflow-definition.md +121 -487
  125. package/package.json +1 -1
  126. package/dist/chunk-46HU6232.cjs +0 -14
  127. package/dist/chunk-5JPM6YUD.js +0 -14
  128. package/dist/chunk-JICWF5VI.cjs +0 -14
  129. package/dist/chunk-QT44OHHL.js +0 -14
  130. package/dist/data-management-QH2IJ5QV.js +0 -7
  131. package/dist/data-management-TEFRLGSU.cjs +0 -7
  132. package/dist/workflow-definition-B6ELOZUR.cjs +0 -7
  133. package/dist/workflow-definition-D24CRCK2.js +0 -7
@@ -6,25 +6,25 @@ var _chunkJIUTCNTBcjs = require('../chunk-JIUTCNTB.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkEH7KVFLOcjs = require('../chunk-EH7KVFLO.cjs');
9
+ var _chunkZXLTSQYEcjs = require('../chunk-ZXLTSQYE.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/validation-rules.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkJIUTCNTBcjs.require_validation_rules_runtime.call(void 0, );
15
- return _chunkEH7KVFLOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: def, apiName: "validationRules" });
21
+ _instance = _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: def, apiName: "validationRules" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkEH7KVFLOcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkZXLTSQYEcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "validationRules" }),
27
+ createClient: () => _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "validationRules" }),
28
28
  apiName: "validationRules"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var validationRules = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunkEH7KVFLOcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.validationRules = validationRules;
38
+ exports.authorize = _chunkZXLTSQYEcjs.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-TUSCE6W2.js";
9
+ } from "../chunk-OTSGPLDM.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/validation-rules.ts
@@ -6,25 +6,25 @@ var _chunkHHMXS5NCcjs = require('../chunk-HHMXS5NC.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkEH7KVFLOcjs = require('../chunk-EH7KVFLO.cjs');
9
+ var _chunkZXLTSQYEcjs = require('../chunk-ZXLTSQYE.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/webhooks.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkHHMXS5NCcjs.require_webhooks_runtime.call(void 0, );
15
- return _chunkEH7KVFLOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
21
+ _instance = _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkEH7KVFLOcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkZXLTSQYEcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
27
+ createClient: () => _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
28
28
  apiName: "webhooks"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var webhooks = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.authorize = _chunkEH7KVFLOcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
38
+ exports.authorize = _chunkZXLTSQYEcjs.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-TUSCE6W2.js";
9
+ } from "../chunk-OTSGPLDM.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/webhooks.ts
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk46HU6232cjs = require('../chunk-46HU6232.cjs');
3
+ var _chunkCYS6QBW6cjs = require('../chunk-CYS6QBW6.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkEH7KVFLOcjs = require('../chunk-EH7KVFLO.cjs');
9
+ var _chunkZXLTSQYEcjs = require('../chunk-ZXLTSQYE.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow-definition.ts
13
13
  var loadDefinition = () => {
14
- const mod = _chunk46HU6232cjs.require_workflow_definition_runtime.call(void 0, );
15
- return _chunkEH7KVFLOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
14
+ const mod = _chunkCYS6QBW6cjs.require_workflow_definition_runtime.call(void 0, );
15
+ return _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
21
+ _instance = _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkEH7KVFLOcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkZXLTSQYEcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
27
+ createClient: () => _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
38
+ exports.authorize = _chunkZXLTSQYEcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
@@ -1,7 +1,7 @@
1
1
  import { A as ApiHandle } from '../types-ChU9Acbv.cjs';
2
2
  export { T as TokenArg, a as authorize } from '../types-ChU9Acbv.cjs';
3
- import { C as Client } from '../workflow-definition.d-CE3kk9gl.cjs';
4
- export { A as ActionSchedule, c as AgentConfig, d as AiAgentTask, e as AutomationConfig, f as AutomationTask, g as AutomationTrigger, h as ChangeReasonStatusReq, i as ClosingReason, j as ClosingReasonId, k as ClosingReasonNotFoundResp, l as ClosingReasons, m as ClosingReasonsIds, n as ClosingReasonsStatus, a as Components, o as Condition, p as CreateFlowTemplate, D as DecisionTask, q as DefinitionNotFoundResp, r as DelayedSchedule, s as DueDateConfig, t as DynamicDueDate, E as ECPDetails, u as Edge, v as EnableRequirement, w as EntitySync, x as ErrorResp, y as EvaluationSource, F as FlowTemplate, z as FlowTemplateBase, B as FlowTemplateExport, G as FlowTemplateId, H as FlowTemplateImportResult, I as FlowTemplatesList, J as ImmediateSchedule, K as ItemType, L as JourneyAutomationTrigger, M as JourneySubmissionTrigger, N as ManualTask, Q as ManualTrigger, R as MaxAllowedLimit, O as OperationMethods, S as Operator, P as Paths, b as PathsDictionary, T as Phase, U as RelativeSchedule, V as SearchFlowTemplates, W as Section, X as Statement, Y as Step, Z as StepDescription, _ as StepJourney, $ as StepRequirement, a0 as StepType, a1 as Task, a2 as TaskBase, a3 as TaskType, a4 as TimeUnit, a5 as Trigger, a6 as TriggerMode, a7 as TriggerType, a8 as UpdateEntityAttributes, a9 as VariableAssignment, aa as Version, ab as WorkflowDefinition } from '../workflow-definition.d-CE3kk9gl.cjs';
3
+ import { C as Client } from '../workflow-definition.d-CtmE-ymB.cjs';
4
+ export { A as ActionSchedule, c as AgentConfig, d as AiAgentTask, e as AutomationConfig, f as AutomationTask, g as AutomationTrigger, h as ChangeReasonStatusReq, i as ClosingReason, j as ClosingReasonId, k as ClosingReasonNotFoundResp, l as ClosingReasons, m as ClosingReasonsIds, n as ClosingReasonsStatus, a as Components, o as Condition, p as CreateFlowTemplate, D as DecisionTask, q as DefinitionNotFoundResp, r as DelayedSchedule, s as DueDateConfig, t as DynamicDueDate, E as ECPDetails, u as Edge, v as EnableRequirement, w as EntitySync, x as ErrorResp, y as EvaluationSource, F as FlowTemplate, z as FlowTemplateBase, B as FlowTemplateId, G as FlowTemplatesList, I as ImmediateSchedule, H as ItemType, J as JourneyAutomationTrigger, K as JourneySubmissionTrigger, M as ManualTask, L as ManualTrigger, N as MaxAllowedLimit, O as OperationMethods, Q as Operator, R as PartnerDetails, P as Paths, b as PathsDictionary, S as Phase, T as RelativeSchedule, U as SearchFlowTemplates, V as Section, W as Statement, X as Step, Y as StepDescription, Z as StepJourney, _ as StepRequirement, $ as StepType, a0 as Task, a1 as TaskBase, a2 as TaskType, a3 as TimeUnit, a4 as Trigger, a5 as TriggerMode, a6 as TriggerType, a7 as UpdateEntityAttributes, a8 as VariableAssignment, a9 as Version, aa as WorkflowDefinition } from '../workflow-definition.d-CtmE-ymB.cjs';
5
5
  export { OpenAPIClient } from 'openapi-client-axios';
6
6
  import 'axios';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { A as ApiHandle } from '../types-ChU9Acbv.js';
2
2
  export { T as TokenArg, a as authorize } from '../types-ChU9Acbv.js';
3
- import { C as Client } from '../workflow-definition.d-CE3kk9gl.js';
4
- export { A as ActionSchedule, c as AgentConfig, d as AiAgentTask, e as AutomationConfig, f as AutomationTask, g as AutomationTrigger, h as ChangeReasonStatusReq, i as ClosingReason, j as ClosingReasonId, k as ClosingReasonNotFoundResp, l as ClosingReasons, m as ClosingReasonsIds, n as ClosingReasonsStatus, a as Components, o as Condition, p as CreateFlowTemplate, D as DecisionTask, q as DefinitionNotFoundResp, r as DelayedSchedule, s as DueDateConfig, t as DynamicDueDate, E as ECPDetails, u as Edge, v as EnableRequirement, w as EntitySync, x as ErrorResp, y as EvaluationSource, F as FlowTemplate, z as FlowTemplateBase, B as FlowTemplateExport, G as FlowTemplateId, H as FlowTemplateImportResult, I as FlowTemplatesList, J as ImmediateSchedule, K as ItemType, L as JourneyAutomationTrigger, M as JourneySubmissionTrigger, N as ManualTask, Q as ManualTrigger, R as MaxAllowedLimit, O as OperationMethods, S as Operator, P as Paths, b as PathsDictionary, T as Phase, U as RelativeSchedule, V as SearchFlowTemplates, W as Section, X as Statement, Y as Step, Z as StepDescription, _ as StepJourney, $ as StepRequirement, a0 as StepType, a1 as Task, a2 as TaskBase, a3 as TaskType, a4 as TimeUnit, a5 as Trigger, a6 as TriggerMode, a7 as TriggerType, a8 as UpdateEntityAttributes, a9 as VariableAssignment, aa as Version, ab as WorkflowDefinition } from '../workflow-definition.d-CE3kk9gl.js';
3
+ import { C as Client } from '../workflow-definition.d-CtmE-ymB.js';
4
+ export { A as ActionSchedule, c as AgentConfig, d as AiAgentTask, e as AutomationConfig, f as AutomationTask, g as AutomationTrigger, h as ChangeReasonStatusReq, i as ClosingReason, j as ClosingReasonId, k as ClosingReasonNotFoundResp, l as ClosingReasons, m as ClosingReasonsIds, n as ClosingReasonsStatus, a as Components, o as Condition, p as CreateFlowTemplate, D as DecisionTask, q as DefinitionNotFoundResp, r as DelayedSchedule, s as DueDateConfig, t as DynamicDueDate, E as ECPDetails, u as Edge, v as EnableRequirement, w as EntitySync, x as ErrorResp, y as EvaluationSource, F as FlowTemplate, z as FlowTemplateBase, B as FlowTemplateId, G as FlowTemplatesList, I as ImmediateSchedule, H as ItemType, J as JourneyAutomationTrigger, K as JourneySubmissionTrigger, M as ManualTask, L as ManualTrigger, N as MaxAllowedLimit, O as OperationMethods, Q as Operator, R as PartnerDetails, P as Paths, b as PathsDictionary, S as Phase, T as RelativeSchedule, U as SearchFlowTemplates, V as Section, W as Statement, X as Step, Y as StepDescription, Z as StepJourney, _ as StepRequirement, $ as StepType, a0 as Task, a1 as TaskBase, a2 as TaskType, a3 as TimeUnit, a4 as Trigger, a5 as TriggerMode, a6 as TriggerType, a7 as UpdateEntityAttributes, a8 as VariableAssignment, a9 as Version, aa as WorkflowDefinition } from '../workflow-definition.d-CtmE-ymB.js';
5
5
  export { OpenAPIClient } from 'openapi-client-axios';
6
6
  import 'axios';
7
7
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  require_workflow_definition_runtime
3
- } from "../chunk-5JPM6YUD.js";
3
+ } from "../chunk-43GJY2EB.js";
4
4
  import {
5
5
  authorize,
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-TUSCE6W2.js";
9
+ } from "../chunk-OTSGPLDM.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/workflow-definition.ts
@@ -6,25 +6,25 @@ var _chunkZI33AJQ5cjs = require('../chunk-ZI33AJQ5.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkEH7KVFLOcjs = require('../chunk-EH7KVFLO.cjs');
9
+ var _chunkZXLTSQYEcjs = require('../chunk-ZXLTSQYE.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/workflow.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkZI33AJQ5cjs.require_workflow_runtime.call(void 0, );
15
- return _chunkEH7KVFLOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
21
+ _instance = _chunkZXLTSQYEcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkEH7KVFLOcjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkZXLTSQYEcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkEH7KVFLOcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
27
+ createClient: () => _chunkZXLTSQYEcjs.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 = _chunkEH7KVFLOcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
38
+ exports.authorize = _chunkZXLTSQYEcjs.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-TUSCE6W2.js";
9
+ } from "../chunk-OTSGPLDM.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/workflow-definition-runtime.json
6
+ var require_workflow_definition_runtime = __commonJS({
7
+ "src/definitions/workflow-definition-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://workflows-definition.sls.epilot.io", o: [["getMaxAllowedLimit", "get", "/v1/workflows/limits/max-allowed"], ["getDefinitions", "get", "/v1/workflows/definitions"], ["createDefinition", "post", "/v1/workflows/definitions", null, 1], ["listFlowTemplates", "get", "/v2/flows/templates", [["trigger_type", "q"], ["trigger_source_id", "q"], ["trigger_schema", "q"]]], ["createFlowTemplate", "post", "/v2/flows/templates", null, 1], ["searchFlowTemplates", "post", "/v2/flows/templates:search", null, 1], ["getFlowTemplate", "get", "/v2/flows/templates/{flowId}", [["flowId", "p", true]]], ["updateFlowTemplate", "put", "/v2/flows/templates/{flowId}", [["flowId", "p", true]], 1], ["deleteFlowTemplate", "delete", "/v2/flows/templates/{flowId}", [["flowId", "p", true]]], ["duplicateFlowTemplate", "post", "/v2/flows/templates/{flowId}/duplicate", [["flowId", "p", true]]], ["getDefinition", "get", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]]], ["updateDefinition", "put", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]], 1], ["deleteDefinition", "delete", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]]], ["getAllClosingReasons", "get", "/v1/workflows/closing-reasons", [["includeInactive", "q"]]], ["createClosingReason", "post", "/v1/workflows/closing-reasons", null, 1], ["getClosingReason", "get", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["updateClosingReason", "patch", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]], 1], ["deleteClosingReason", "delete", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["getClosingReasonV1", "get", "/v1/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["changeReasonStatus", "patch", "/v1/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]], 1], ["getWorkflowClosingReasons", "get", "/v1/workflows/definitions/{definitionId}/closing-reasons", [["definitionId", "p", true]]], ["setWorkflowClosingReasons", "patch", "/v1/workflows/definitions/{definitionId}/closing-reasons", [["definitionId", "p", true]], 1]], v: "3.0.0" };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_workflow_definition_runtime
14
+ };
@@ -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/data-management-runtime.json
6
+ var require_data_management_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
+ "src/definitions/data-management-runtime.json"(exports, module) {
8
+ module.exports = { s: "", o: [["queryEntities", "post", "/data-management/v1/{entity_schema}/query", [["entity_schema", "p", true]], 1], ["createJob", "post", "/data-management/v1/{entity_schema}/jobs", [["entity_schema", "p", true]], 1], ["updateJob", "patch", "/data-management/v1/{entity_schema}/jobs/{job_id}", [["entity_schema", "p", true], ["job_id", "p", true]], 1], ["getJob", "get", "/data-management/v1/jobs/{job_id}", [["job_id", "p", true]]], ["getJobReportUrl", "get", "/data-management/v1/jobs/{job_id}/report-url", [["job_id", "p", true]]], ["getConfig", "get", "/data-management/v1/configs/{config_id}", [["config_id", "p", true]]], ["createJobForConfig", "post", "/data-management/v1/configs/{config_id}/jobs", [["config_id", "p", true]]], ["upsertConfig", "post", "/data-management/v1/{entity_schema}/configs", [["entity_schema", "p", true]], 1], ["listConfigs", "get", "/data-management/v1/configs", [["limit", "q"], ["cursor", "q"], ["entity_schema", "q"], ["type", "q"], ["next_run_at", "q"], ["enabled", "q"]]], ["listJobs", "get", "/data-management/v1/jobs", [["limit", "q"], ["cursor", "q"], ["entity_schema", "q"], ["type", "q"], ["status", "q"], ["config_id", "q"]]]], v: "3.0.3" };
9
+ }
10
+ });
11
+
12
+
13
+
14
+ exports.require_data_management_runtime = require_data_management_runtime;
@@ -0,0 +1,14 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-YPSWSI3M.js";
4
+
5
+ // src/definitions/data-management-runtime.json
6
+ var require_data_management_runtime = __commonJS({
7
+ "src/definitions/data-management-runtime.json"(exports, module) {
8
+ module.exports = { s: "", o: [["queryEntities", "post", "/data-management/v1/{entity_schema}/query", [["entity_schema", "p", true]], 1], ["createJob", "post", "/data-management/v1/{entity_schema}/jobs", [["entity_schema", "p", true]], 1], ["updateJob", "patch", "/data-management/v1/{entity_schema}/jobs/{job_id}", [["entity_schema", "p", true], ["job_id", "p", true]], 1], ["getJob", "get", "/data-management/v1/jobs/{job_id}", [["job_id", "p", true]]], ["getJobReportUrl", "get", "/data-management/v1/jobs/{job_id}/report-url", [["job_id", "p", true]]], ["getConfig", "get", "/data-management/v1/configs/{config_id}", [["config_id", "p", true]]], ["createJobForConfig", "post", "/data-management/v1/configs/{config_id}/jobs", [["config_id", "p", true]]], ["upsertConfig", "post", "/data-management/v1/{entity_schema}/configs", [["entity_schema", "p", true]], 1], ["listConfigs", "get", "/data-management/v1/configs", [["limit", "q"], ["cursor", "q"], ["entity_schema", "q"], ["type", "q"], ["next_run_at", "q"], ["enabled", "q"]]], ["listJobs", "get", "/data-management/v1/jobs", [["limit", "q"], ["cursor", "q"], ["entity_schema", "q"], ["type", "q"], ["status", "q"], ["config_id", "q"]]]], v: "3.0.3" };
9
+ }
10
+ });
11
+
12
+ export {
13
+ require_data_management_runtime
14
+ };
@@ -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/workflow-definition-runtime.json
6
+ var require_workflow_definition_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
+ "src/definitions/workflow-definition-runtime.json"(exports, module) {
8
+ module.exports = { s: "https://workflows-definition.sls.epilot.io", o: [["getMaxAllowedLimit", "get", "/v1/workflows/limits/max-allowed"], ["getDefinitions", "get", "/v1/workflows/definitions"], ["createDefinition", "post", "/v1/workflows/definitions", null, 1], ["listFlowTemplates", "get", "/v2/flows/templates", [["trigger_type", "q"], ["trigger_source_id", "q"], ["trigger_schema", "q"]]], ["createFlowTemplate", "post", "/v2/flows/templates", null, 1], ["searchFlowTemplates", "post", "/v2/flows/templates:search", null, 1], ["getFlowTemplate", "get", "/v2/flows/templates/{flowId}", [["flowId", "p", true]]], ["updateFlowTemplate", "put", "/v2/flows/templates/{flowId}", [["flowId", "p", true]], 1], ["deleteFlowTemplate", "delete", "/v2/flows/templates/{flowId}", [["flowId", "p", true]]], ["duplicateFlowTemplate", "post", "/v2/flows/templates/{flowId}/duplicate", [["flowId", "p", true]]], ["getDefinition", "get", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]]], ["updateDefinition", "put", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]], 1], ["deleteDefinition", "delete", "/v1/workflows/definitions/{definitionId}", [["definitionId", "p", true]]], ["getAllClosingReasons", "get", "/v1/workflows/closing-reasons", [["includeInactive", "q"]]], ["createClosingReason", "post", "/v1/workflows/closing-reasons", null, 1], ["getClosingReason", "get", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["updateClosingReason", "patch", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]], 1], ["deleteClosingReason", "delete", "/v2/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["getClosingReasonV1", "get", "/v1/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]]], ["changeReasonStatus", "patch", "/v1/workflows/closing-reasons/{reasonId}", [["reasonId", "p", true]], 1], ["getWorkflowClosingReasons", "get", "/v1/workflows/definitions/{definitionId}/closing-reasons", [["definitionId", "p", true]]], ["setWorkflowClosingReasons", "patch", "/v1/workflows/definitions/{definitionId}/closing-reasons", [["definitionId", "p", true]], 1]], v: "3.0.0" };
9
+ }
10
+ });
11
+
12
+
13
+
14
+ exports.require_workflow_definition_runtime = require_workflow_definition_runtime;
@@ -32,7 +32,7 @@ var globImport_docs = __glob({
32
32
  "./docs/consent.json": () => import("./consent-NNYHF2N4.js"),
33
33
  "./docs/customer-portal.json": () => import("./customer-portal-Y3GLUVMW.js"),
34
34
  "./docs/dashboard.json": () => import("./dashboard-UTPGXFW5.js"),
35
- "./docs/data-management.json": () => import("./data-management-QH2IJ5QV.js"),
35
+ "./docs/data-management.json": () => import("./data-management-3N3A3XBM.js"),
36
36
  "./docs/deduplication.json": () => import("./deduplication-GYIST22B.js"),
37
37
  "./docs/design.json": () => import("./design-YKBXRW5C.js"),
38
38
  "./docs/document.json": () => import("./document-CY2A2OE7.js"),
@@ -64,7 +64,7 @@ var globImport_docs = __glob({
64
64
  "./docs/user.json": () => import("./user-EIEOI3OG.js"),
65
65
  "./docs/validation-rules.json": () => import("./validation-rules-P6F5P73P.js"),
66
66
  "./docs/webhooks.json": () => import("./webhooks-RTOU3MS5.js"),
67
- "./docs/workflow-definition.json": () => import("./workflow-definition-D24CRCK2.js"),
67
+ "./docs/workflow-definition.json": () => import("./workflow-definition-MBOMPMCG.js"),
68
68
  "./docs/workflow.json": () => import("./workflow-3LLURW3H.js")
69
69
  });
70
70
 
@@ -108,7 +108,7 @@ var globImport_definitions_json = __glob({
108
108
  "./definitions/customer-portal.json": () => import("./customer-portal-L5DEQEGC.js"),
109
109
  "./definitions/dashboard-runtime.json": () => import("./dashboard-runtime-PSKSGLCF.js"),
110
110
  "./definitions/dashboard.json": () => import("./dashboard-UDL26RGG.js"),
111
- "./definitions/data-management-runtime.json": () => import("./data-management-runtime-XZ347IUB.js"),
111
+ "./definitions/data-management-runtime.json": () => import("./data-management-runtime-DN7FGK7G.js"),
112
112
  "./definitions/data-management.json": () => import("./data-management-W5JQGGGH.js"),
113
113
  "./definitions/deduplication-runtime.json": () => import("./deduplication-runtime-DLGBF4RN.js"),
114
114
  "./definitions/deduplication.json": () => import("./deduplication-RKLRTNZU.js"),
@@ -172,7 +172,7 @@ var globImport_definitions_json = __glob({
172
172
  "./definitions/validation-rules.json": () => import("./validation-rules-GCI64B57.js"),
173
173
  "./definitions/webhooks-runtime.json": () => import("./webhooks-runtime-XCQYIGQK.js"),
174
174
  "./definitions/webhooks.json": () => import("./webhooks-XXLU2KWP.js"),
175
- "./definitions/workflow-definition-runtime.json": () => import("./workflow-definition-runtime-S7AZHOU7.js"),
175
+ "./definitions/workflow-definition-runtime.json": () => import("./workflow-definition-runtime-OVXRSE34.js"),
176
176
  "./definitions/workflow-definition.json": () => import("./workflow-definition-VFYWBQQ3.js"),
177
177
  "./definitions/workflow-runtime.json": () => import("./workflow-runtime-RLZO2OQB.js"),
178
178
  "./definitions/workflow.json": () => import("./workflow-VLNZNE3S.js")
@@ -32,7 +32,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
32
32
  "./docs/consent.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-CS2ZBZX4.cjs"))),
33
33
  "./docs/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-AEFMNNYP.cjs"))),
34
34
  "./docs/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-UHYR5RTY.cjs"))),
35
- "./docs/data-management.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-management-TEFRLGSU.cjs"))),
35
+ "./docs/data-management.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-management-YXFLQWLV.cjs"))),
36
36
  "./docs/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-ECVAZVVA.cjs"))),
37
37
  "./docs/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-KUVXMFFK.cjs"))),
38
38
  "./docs/document.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./document-RYQ7MF6U.cjs"))),
@@ -64,7 +64,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
64
64
  "./docs/user.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-NJJ7XVKB.cjs"))),
65
65
  "./docs/validation-rules.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./validation-rules-VDU3CIZV.cjs"))),
66
66
  "./docs/webhooks.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./webhooks-H3RT33BF.cjs"))),
67
- "./docs/workflow-definition.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-B6ELOZUR.cjs"))),
67
+ "./docs/workflow-definition.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-SPAHD3HS.cjs"))),
68
68
  "./docs/workflow.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-RAGQDYXT.cjs")))
69
69
  });
70
70
 
@@ -108,7 +108,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
108
108
  "./definitions/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-MXILX4KH.cjs"))),
109
109
  "./definitions/dashboard-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-runtime-EXP2AM44.cjs"))),
110
110
  "./definitions/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-RKUQLIME.cjs"))),
111
- "./definitions/data-management-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-management-runtime-PAC7UFGT.cjs"))),
111
+ "./definitions/data-management-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-management-runtime-J5IS7T47.cjs"))),
112
112
  "./definitions/data-management.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-management-XFSRLFYA.cjs"))),
113
113
  "./definitions/deduplication-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-runtime-BBHG7MJW.cjs"))),
114
114
  "./definitions/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-7RTGTLN5.cjs"))),
@@ -172,7 +172,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
172
172
  "./definitions/validation-rules.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./validation-rules-AYCAOVDZ.cjs"))),
173
173
  "./definitions/webhooks-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./webhooks-runtime-EBM4M3SU.cjs"))),
174
174
  "./definitions/webhooks.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./webhooks-L3FXPRKT.cjs"))),
175
- "./definitions/workflow-definition-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-runtime-VRND6VQR.cjs"))),
175
+ "./definitions/workflow-definition-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-runtime-GACBV4WM.cjs"))),
176
176
  "./definitions/workflow-definition.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-7BA4H6W3.cjs"))),
177
177
  "./definitions/workflow-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-runtime-WCJ7NRTH.cjs"))),
178
178
  "./definitions/workflow.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-YJHUCGVK.cjs")))
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/data-management.json
4
+ var data_management_default = '# Data Management API\n\n- **Full API Docs:** [https://docs.epilot.io/api/data-management](https://docs.epilot.io/api/data-management)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dataManagement.queryEntities(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/data-management\'\n\nconst dataManagementClient = getClient()\nauthorize(dataManagementClient, () => \'<token>\')\nconst { data } = await dataManagementClient.queryEntities(...)\n```\n\n## Operations\n\n**Data Management**\n- [`queryEntities`](#queryentities)\n- [`createJob`](#createjob)\n- [`updateJob`](#updatejob)\n- [`getJob`](#getjob)\n- [`getJobReportUrl`](#getjobreporturl)\n- [`getConfig`](#getconfig)\n- [`createJobForConfig`](#createjobforconfig)\n- [`upsertConfig`](#upsertconfig)\n- [`listConfigs`](#listconfigs)\n- [`listJobs`](#listjobs)\n\n**Schemas**\n- [`ConfigType`](#configtype)\n- [`JobStatus`](#jobstatus)\n- [`JobTrigger`](#jobtrigger)\n- [`JobReportFormat`](#jobreportformat)\n- [`JobReport`](#jobreport)\n- [`CreateJobRequest`](#createjobrequest)\n- [`JobDetails`](#jobdetails)\n- [`UpdateJobRequest`](#updatejobrequest)\n- [`Job`](#job)\n- [`ListJobsResponse`](#listjobsresponse)\n- [`JobReportUrlResponse`](#jobreporturlresponse)\n- [`QueryFilterType`](#queryfiltertype)\n- [`QueryFilter`](#queryfilter)\n- [`QueryConfig`](#queryconfig)\n- [`QueryEntitiesRequest`](#queryentitiesrequest)\n- [`QueryEntitiesResult`](#queryentitiesresult)\n- [`ConfigSchedule`](#configschedule)\n- [`IntervalConfigSchedule`](#intervalconfigschedule)\n- [`UpsertConfigRequest`](#upsertconfigrequest)\n- [`Config`](#config)\n- [`DeletionRelationEntitySchema`](#deletionrelationentityschema)\n- [`ListConfigsResponse`](#listconfigsresponse)\n\n### `queryEntities`\n\nQuery entities using a saved view with additional data filters\n\n`POST /data-management/v1/{entity_schema}/query`\n\n```ts\nconst { data } = await client.queryEntities(\n {\n entity_schema: \'example\',\n },\n {\n saved_view_id: \'string\',\n include_deleted: \'true\',\n filters: [\n {\n type: \'entity_workflows_only_in_closed_or_cancelled_status\',\n related_entity_schemas: [\'string\'],\n lookback_period_days: 0,\n message_type: [\'SENT\'],\n workflow_status: [\'CLOSED\']\n }\n ],\n from: 0,\n size: 0,\n hydrate: true,\n fields: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hits": 0,\n "results": [\n {}\n ]\n}\n```\n\n</details>\n\n---\n\n### `createJob`\n\nCreate a new job run\n\n`POST /data-management/v1/{entity_schema}/jobs`\n\n```ts\nconst { data } = await client.createJob(\n {\n entity_schema: \'example\',\n },\n {\n type: \'deletion\',\n config_id: \'string\',\n scheduled_for: \'1970-01-01\',\n status: \'in_progress\',\n started_at: \'1970-01-01T00:00:00.000Z\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `updateJob`\n\nUpdate an existing job run\n\n`PATCH /data-management/v1/{entity_schema}/jobs/{job_id}`\n\n```ts\nconst { data } = await client.updateJob(\n {\n entity_schema: \'example\',\n job_id: \'example\',\n },\n {\n status: \'in_progress\',\n details: {},\n completed_at: \'1970-01-01T00:00:00.000Z\',\n error: \'string\',\n report: {\n bucket: \'string\',\n key: \'string\',\n format: \'csv\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `getJob`\n\nGet a job by id\n\n`GET /data-management/v1/jobs/{job_id}`\n\n```ts\nconst { data } = await client.getJob({\n job_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `getJobReportUrl`\n\nGet report download URL for a job\n\n`GET /data-management/v1/jobs/{job_id}/report-url`\n\n```ts\nconst { data } = await client.getJobReportUrl({\n job_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "url": "string",\n "expires_in": 0\n}\n```\n\n</details>\n\n---\n\n### `getConfig`\n\nGet a config by id\n\n`GET /data-management/v1/configs/{config_id}`\n\n```ts\nconst { data } = await client.getConfig({\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `createJobForConfig`\n\nTrigger a manual job run for a config\n\n`POST /data-management/v1/configs/{config_id}/jobs`\n\n```ts\nconst { data } = await client.createJobForConfig({\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `upsertConfig`\n\nUpsert config\n\n`POST /data-management/v1/{entity_schema}/configs`\n\n```ts\nconst { data } = await client.upsertConfig(\n {\n entity_schema: \'example\',\n },\n {\n type: \'deletion\',\n query: {\n saved_view_id: \'string\',\n include_deleted: \'true\',\n filters: [\n {\n type: \'entity_workflows_only_in_closed_or_cancelled_status\',\n related_entity_schemas: [\'string\'],\n lookback_period_days: 0,\n message_type: [\'SENT\'],\n workflow_status: [\'CLOSED\']\n }\n ]\n },\n schedule: {\n frequency: \'interval\',\n interval_days: 1,\n start_date: \'1970-01-01\',\n end_date: \'1970-01-01\'\n },\n relations_for_deletion: [\'contact\'],\n enabled: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs\n\n`GET /data-management/v1/configs`\n\n```ts\nconst { data } = await client.listConfigs({\n limit: 1,\n cursor: \'example\',\n entity_schema: \'example\',\n type: \'example\',\n next_run_at: \'example\',\n enabled: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "configs": [\n {\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `listJobs`\n\nList jobs\n\n`GET /data-management/v1/jobs`\n\n```ts\nconst { data } = await client.listJobs({\n limit: 1,\n cursor: \'example\',\n entity_schema: \'example\',\n type: \'example\',\n status: \'example\',\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "jobs": [\n {\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n }\n ],\n "cursor": "string"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ConfigType`\n\nType of configuration (e.g. deletion)\n\n```ts\ntype ConfigType = "deletion"\n```\n\n### `JobStatus`\n\n```ts\ntype JobStatus = "in_progress" | "success" | "failed"\n```\n\n### `JobTrigger`\n\n```ts\ntype JobTrigger = "schedule" | "manual"\n```\n\n### `JobReportFormat`\n\n```ts\ntype JobReportFormat = "csv"\n```\n\n### `JobReport`\n\n```ts\ntype JobReport = {\n bucket?: string\n key?: string\n format?: "csv"\n}\n```\n\n### `CreateJobRequest`\n\n```ts\ntype CreateJobRequest = {\n type: "deletion"\n config_id: string\n scheduled_for: string // date\n status?: "in_progress" | "success" | "failed"\n started_at?: string // date-time\n}\n```\n\n### `JobDetails`\n\nGeneric, type-specific job details payload (e.g. matched count, deleted count, failed count, etc.).\n\n```ts\ntype JobDetails = Record<string, unknown>\n```\n\n### `UpdateJobRequest`\n\n```ts\ntype UpdateJobRequest = {\n status?: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: string\n key?: string\n format?: "csv"\n }\n}\n```\n\n### `Job`\n\n```ts\ntype Job = {\n id: string\n type: "deletion"\n config_id: string\n entity_schema: string\n scheduled_for: string // date\n status: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n started_at?: string // date-time\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: string\n key?: string\n format?: "csv"\n }\n created_at: string // date-time\n last_updated_at: string // date-time\n trigger?: "schedule" | "manual"\n triggered_by?: string\n}\n```\n\n### `ListJobsResponse`\n\n```ts\ntype ListJobsResponse = {\n jobs?: Array<{\n id: string\n type: "deletion"\n config_id: string\n entity_schema: string\n scheduled_for: string // date\n status: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n started_at?: string // date-time\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: { ... }\n key?: { ... }\n format?: { ... }\n }\n created_at: string // date-time\n last_updated_at: string // date-time\n trigger?: "schedule" | "manual"\n triggered_by?: string\n }>\n cursor?: string\n}\n```\n\n### `JobReportUrlResponse`\n\n```ts\ntype JobReportUrlResponse = {\n url?: string\n expires_in?: number\n}\n```\n\n### `QueryFilterType`\n\n```ts\ntype QueryFilterType = "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n```\n\n### `QueryFilter`\n\n```ts\ntype QueryFilter = {\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n}\n```\n\n### `QueryConfig`\n\n```ts\ntype QueryConfig = {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n }>\n}\n```\n\n### `QueryEntitiesRequest`\n\n```ts\ntype QueryEntitiesRequest = {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n }>\n from?: number\n size?: number\n hydrate?: boolean\n fields?: string[]\n}\n```\n\n### `QueryEntitiesResult`\n\n```ts\ntype QueryEntitiesResult = {\n hits?: number\n results?: Record<string, unknown>[]\n}\n```\n\n### `ConfigSchedule`\n\n```ts\ntype ConfigSchedule = {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n}\n```\n\n### `IntervalConfigSchedule`\n\n```ts\ntype IntervalConfigSchedule = {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n}\n```\n\n### `UpsertConfigRequest`\n\n```ts\ntype UpsertConfigRequest = {\n type: "deletion"\n query: {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: { ... }\n related_entity_schemas?: { ... }\n lookback_period_days?: { ... }\n message_type?: { ... }\n workflow_status?: { ... }\n }>\n }\n schedule: {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n }\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n enabled?: boolean\n}\n```\n\n### `Config`\n\n```ts\ntype Config = {\n id: string\n type: "deletion"\n entity_schema: string\n query: {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: { ... }\n related_entity_schemas?: { ... }\n lookback_period_days?: { ... }\n message_type?: { ... }\n workflow_status?: { ... }\n }>\n }\n schedule?: {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n }\n enabled?: boolean\n created_at?: string // date-time\n last_updated_at?: string // date-time\n next_run_at?: string // date\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n last_run_at?: string // date-time\n}\n```\n\n### `DeletionRelationEntitySchema`\n\n```ts\ntype DeletionRelationEntitySchema = "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"\n```\n\n### `ListConfigsResponse`\n\n```ts\ntype ListConfigsResponse = {\n configs?: Array<{\n id: string\n type: "deletion"\n entity_schema: string\n query: {\n saved_view_id: { ... }\n include_deleted?: { ... }\n filters?: { ... }\n }\n schedule?: {\n frequency: { ... }\n interval_days: { ... }\n start_date?: { ... }\n end_date?: { ... }\n }\n enabled?: boolean\n created_at?: string // date-time\n last_updated_at?: string // date-time\n next_run_at?: string // date\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n last_run_at?: string // date-time\n }>\n cursor?: string\n}\n```\n';
5
+ export {
6
+ data_management_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/data-management.json
4
+ var data_management_default = '# Data Management API\n\n- **Full API Docs:** [https://docs.epilot.io/api/data-management](https://docs.epilot.io/api/data-management)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.dataManagement.queryEntities(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/data-management\'\n\nconst dataManagementClient = getClient()\nauthorize(dataManagementClient, () => \'<token>\')\nconst { data } = await dataManagementClient.queryEntities(...)\n```\n\n## Operations\n\n**Data Management**\n- [`queryEntities`](#queryentities)\n- [`createJob`](#createjob)\n- [`updateJob`](#updatejob)\n- [`getJob`](#getjob)\n- [`getJobReportUrl`](#getjobreporturl)\n- [`getConfig`](#getconfig)\n- [`createJobForConfig`](#createjobforconfig)\n- [`upsertConfig`](#upsertconfig)\n- [`listConfigs`](#listconfigs)\n- [`listJobs`](#listjobs)\n\n**Schemas**\n- [`ConfigType`](#configtype)\n- [`JobStatus`](#jobstatus)\n- [`JobTrigger`](#jobtrigger)\n- [`JobReportFormat`](#jobreportformat)\n- [`JobReport`](#jobreport)\n- [`CreateJobRequest`](#createjobrequest)\n- [`JobDetails`](#jobdetails)\n- [`UpdateJobRequest`](#updatejobrequest)\n- [`Job`](#job)\n- [`ListJobsResponse`](#listjobsresponse)\n- [`JobReportUrlResponse`](#jobreporturlresponse)\n- [`QueryFilterType`](#queryfiltertype)\n- [`QueryFilter`](#queryfilter)\n- [`QueryConfig`](#queryconfig)\n- [`QueryEntitiesRequest`](#queryentitiesrequest)\n- [`QueryEntitiesResult`](#queryentitiesresult)\n- [`ConfigSchedule`](#configschedule)\n- [`IntervalConfigSchedule`](#intervalconfigschedule)\n- [`UpsertConfigRequest`](#upsertconfigrequest)\n- [`Config`](#config)\n- [`DeletionRelationEntitySchema`](#deletionrelationentityschema)\n- [`ListConfigsResponse`](#listconfigsresponse)\n\n### `queryEntities`\n\nQuery entities using a saved view with additional data filters\n\n`POST /data-management/v1/{entity_schema}/query`\n\n```ts\nconst { data } = await client.queryEntities(\n {\n entity_schema: \'example\',\n },\n {\n saved_view_id: \'string\',\n include_deleted: \'true\',\n filters: [\n {\n type: \'entity_workflows_only_in_closed_or_cancelled_status\',\n related_entity_schemas: [\'string\'],\n lookback_period_days: 0,\n message_type: [\'SENT\'],\n workflow_status: [\'CLOSED\']\n }\n ],\n from: 0,\n size: 0,\n hydrate: true,\n fields: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "hits": 0,\n "results": [\n {}\n ]\n}\n```\n\n</details>\n\n---\n\n### `createJob`\n\nCreate a new job run\n\n`POST /data-management/v1/{entity_schema}/jobs`\n\n```ts\nconst { data } = await client.createJob(\n {\n entity_schema: \'example\',\n },\n {\n type: \'deletion\',\n config_id: \'string\',\n scheduled_for: \'1970-01-01\',\n status: \'in_progress\',\n started_at: \'1970-01-01T00:00:00.000Z\'\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `updateJob`\n\nUpdate an existing job run\n\n`PATCH /data-management/v1/{entity_schema}/jobs/{job_id}`\n\n```ts\nconst { data } = await client.updateJob(\n {\n entity_schema: \'example\',\n job_id: \'example\',\n },\n {\n status: \'in_progress\',\n details: {},\n completed_at: \'1970-01-01T00:00:00.000Z\',\n error: \'string\',\n report: {\n bucket: \'string\',\n key: \'string\',\n format: \'csv\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `getJob`\n\nGet a job by id\n\n`GET /data-management/v1/jobs/{job_id}`\n\n```ts\nconst { data } = await client.getJob({\n job_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `getJobReportUrl`\n\nGet report download URL for a job\n\n`GET /data-management/v1/jobs/{job_id}/report-url`\n\n```ts\nconst { data } = await client.getJobReportUrl({\n job_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "url": "string",\n "expires_in": 0\n}\n```\n\n</details>\n\n---\n\n### `getConfig`\n\nGet a config by id\n\n`GET /data-management/v1/configs/{config_id}`\n\n```ts\nconst { data } = await client.getConfig({\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `createJobForConfig`\n\nTrigger a manual job run for a config\n\n`POST /data-management/v1/configs/{config_id}/jobs`\n\n```ts\nconst { data } = await client.createJobForConfig({\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n}\n```\n\n</details>\n\n---\n\n### `upsertConfig`\n\nUpsert config\n\n`POST /data-management/v1/{entity_schema}/configs`\n\n```ts\nconst { data } = await client.upsertConfig(\n {\n entity_schema: \'example\',\n },\n {\n type: \'deletion\',\n query: {\n saved_view_id: \'string\',\n include_deleted: \'true\',\n filters: [\n {\n type: \'entity_workflows_only_in_closed_or_cancelled_status\',\n related_entity_schemas: [\'string\'],\n lookback_period_days: 0,\n message_type: [\'SENT\'],\n workflow_status: [\'CLOSED\']\n }\n ]\n },\n schedule: {\n frequency: \'interval\',\n interval_days: 1,\n start_date: \'1970-01-01\',\n end_date: \'1970-01-01\'\n },\n relations_for_deletion: [\'contact\'],\n enabled: true\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs\n\n`GET /data-management/v1/configs`\n\n```ts\nconst { data } = await client.listConfigs({\n limit: 1,\n cursor: \'example\',\n entity_schema: \'example\',\n type: \'example\',\n next_run_at: \'example\',\n enabled: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "configs": [\n {\n "id": "string",\n "type": "deletion",\n "entity_schema": "string",\n "query": {\n "saved_view_id": "string",\n "include_deleted": "true",\n "filters": [\n {\n "type": "entity_workflows_only_in_closed_or_cancelled_status",\n "related_entity_schemas": ["string"],\n "lookback_period_days": 0,\n "message_type": ["SENT"],\n "workflow_status": ["CLOSED"]\n }\n ]\n },\n "schedule": {\n "frequency": "interval",\n "interval_days": 1,\n "start_date": "1970-01-01",\n "end_date": "1970-01-01"\n },\n "enabled": true,\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "next_run_at": "1970-01-01",\n "relations_for_deletion": ["contact"],\n "last_run_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `listJobs`\n\nList jobs\n\n`GET /data-management/v1/jobs`\n\n```ts\nconst { data } = await client.listJobs({\n limit: 1,\n cursor: \'example\',\n entity_schema: \'example\',\n type: \'example\',\n status: \'example\',\n config_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "jobs": [\n {\n "id": "string",\n "type": "deletion",\n "config_id": "string",\n "entity_schema": "string",\n "scheduled_for": "1970-01-01",\n "status": "in_progress",\n "details": {},\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "error": "string",\n "report": {\n "bucket": "string",\n "key": "string",\n "format": "csv"\n },\n "created_at": "1970-01-01T00:00:00.000Z",\n "last_updated_at": "1970-01-01T00:00:00.000Z",\n "trigger": "schedule",\n "triggered_by": "string"\n }\n ],\n "cursor": "string"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ConfigType`\n\nType of configuration (e.g. deletion)\n\n```ts\ntype ConfigType = "deletion"\n```\n\n### `JobStatus`\n\n```ts\ntype JobStatus = "in_progress" | "success" | "failed"\n```\n\n### `JobTrigger`\n\n```ts\ntype JobTrigger = "schedule" | "manual"\n```\n\n### `JobReportFormat`\n\n```ts\ntype JobReportFormat = "csv"\n```\n\n### `JobReport`\n\n```ts\ntype JobReport = {\n bucket?: string\n key?: string\n format?: "csv"\n}\n```\n\n### `CreateJobRequest`\n\n```ts\ntype CreateJobRequest = {\n type: "deletion"\n config_id: string\n scheduled_for: string // date\n status?: "in_progress" | "success" | "failed"\n started_at?: string // date-time\n}\n```\n\n### `JobDetails`\n\nGeneric, type-specific job details payload (e.g. matched count, deleted count, failed count, etc.).\n\n```ts\ntype JobDetails = Record<string, unknown>\n```\n\n### `UpdateJobRequest`\n\n```ts\ntype UpdateJobRequest = {\n status?: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: string\n key?: string\n format?: "csv"\n }\n}\n```\n\n### `Job`\n\n```ts\ntype Job = {\n id: string\n type: "deletion"\n config_id: string\n entity_schema: string\n scheduled_for: string // date\n status: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n started_at?: string // date-time\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: string\n key?: string\n format?: "csv"\n }\n created_at: string // date-time\n last_updated_at: string // date-time\n trigger?: "schedule" | "manual"\n triggered_by?: string\n}\n```\n\n### `ListJobsResponse`\n\n```ts\ntype ListJobsResponse = {\n jobs?: Array<{\n id: string\n type: "deletion"\n config_id: string\n entity_schema: string\n scheduled_for: string // date\n status: "in_progress" | "success" | "failed"\n details?: Record<string, unknown>\n started_at?: string // date-time\n completed_at?: string // date-time\n error?: string\n report?: {\n bucket?: { ... }\n key?: { ... }\n format?: { ... }\n }\n created_at: string // date-time\n last_updated_at: string // date-time\n trigger?: "schedule" | "manual"\n triggered_by?: string\n }>\n cursor?: string\n}\n```\n\n### `JobReportUrlResponse`\n\n```ts\ntype JobReportUrlResponse = {\n url?: string\n expires_in?: number\n}\n```\n\n### `QueryFilterType`\n\n```ts\ntype QueryFilterType = "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n```\n\n### `QueryFilter`\n\n```ts\ntype QueryFilter = {\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n}\n```\n\n### `QueryConfig`\n\n```ts\ntype QueryConfig = {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n }>\n}\n```\n\n### `QueryEntitiesRequest`\n\n```ts\ntype QueryEntitiesRequest = {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"\n related_entity_schemas?: string[]\n lookback_period_days?: number\n message_type?: "SENT" | "RECEIVED"[]\n workflow_status?: "CLOSED" | "DONE"[]\n }>\n from?: number\n size?: number\n hydrate?: boolean\n fields?: string[]\n}\n```\n\n### `QueryEntitiesResult`\n\n```ts\ntype QueryEntitiesResult = {\n hits?: number\n results?: Record<string, unknown>[]\n}\n```\n\n### `ConfigSchedule`\n\n```ts\ntype ConfigSchedule = {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n}\n```\n\n### `IntervalConfigSchedule`\n\n```ts\ntype IntervalConfigSchedule = {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n}\n```\n\n### `UpsertConfigRequest`\n\n```ts\ntype UpsertConfigRequest = {\n type: "deletion"\n query: {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: { ... }\n related_entity_schemas?: { ... }\n lookback_period_days?: { ... }\n message_type?: { ... }\n workflow_status?: { ... }\n }>\n }\n schedule: {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n }\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n enabled?: boolean\n}\n```\n\n### `Config`\n\n```ts\ntype Config = {\n id: string\n type: "deletion"\n entity_schema: string\n query: {\n saved_view_id: string\n include_deleted?: "true" | "false" | "only"\n filters?: Array<{\n type: { ... }\n related_entity_schemas?: { ... }\n lookback_period_days?: { ... }\n message_type?: { ... }\n workflow_status?: { ... }\n }>\n }\n schedule?: {\n frequency: "interval"\n interval_days: number\n start_date?: string // date\n end_date?: string // date\n }\n enabled?: boolean\n created_at?: string // date-time\n last_updated_at?: string // date-time\n next_run_at?: string // date\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n last_run_at?: string // date-time\n}\n```\n\n### `DeletionRelationEntitySchema`\n\n```ts\ntype DeletionRelationEntitySchema = "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"\n```\n\n### `ListConfigsResponse`\n\n```ts\ntype ListConfigsResponse = {\n configs?: Array<{\n id: string\n type: "deletion"\n entity_schema: string\n query: {\n saved_view_id: { ... }\n include_deleted?: { ... }\n filters?: { ... }\n }\n schedule?: {\n frequency: { ... }\n interval_days: { ... }\n start_date?: { ... }\n end_date?: { ... }\n }\n enabled?: boolean\n created_at?: string // date-time\n last_updated_at?: string // date-time\n next_run_at?: string // date\n relations_for_deletion?: "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"[]\n last_run_at?: string // date-time\n }>\n cursor?: string\n}\n```\n';
5
+
6
+
7
+ exports.default = data_management_default;
@@ -1,5 +1,5 @@
1
1
  import {
2
2
  require_data_management_runtime
3
- } from "./chunk-QT44OHHL.js";
3
+ } from "./chunk-6GC363VV.js";
4
4
  import "./chunk-YPSWSI3M.js";
5
5
  export default require_data_management_runtime();
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJICWF5VIcjs = require('./chunk-JICWF5VI.cjs');
3
+ var _chunk4BCQGZJBcjs = require('./chunk-4BCQGZJB.cjs');
4
4
  require('./chunk-NJK5F5TF.cjs');
5
- exports. default = _chunkJICWF5VIcjs.require_data_management_runtime.call(void 0, );
5
+ exports. default = _chunk4BCQGZJBcjs.require_data_management_runtime.call(void 0, );
@@ -111,6 +111,7 @@ declare namespace Components {
111
111
  related_entity_schemas?: string[];
112
112
  lookback_period_days?: number;
113
113
  message_type?: ("SENT" | "RECEIVED")[];
114
+ workflow_status?: ("CLOSED" | "DONE")[];
114
115
  }
115
116
  export type QueryFilterType = "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since";
116
117
  export interface UpdateJobRequest {
@@ -111,6 +111,7 @@ declare namespace Components {
111
111
  related_entity_schemas?: string[];
112
112
  lookback_period_days?: number;
113
113
  message_type?: ("SENT" | "RECEIVED")[];
114
+ workflow_status?: ("CLOSED" | "DONE")[];
114
115
  }
115
116
  export type QueryFilterType = "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since";
116
117
  export interface UpdateJobRequest {