@epilot/sdk 2.0.3 → 2.1.0-rc.0

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 (214) 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 +4443 -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 +4850 -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 +3376 -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 +15000 -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 +962 -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 +2627 -0
  35. package/definitions/email-template-runtime.json +1 -0
  36. package/definitions/email-template.json +1419 -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 +10074 -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 +5845 -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 +2341 -0
  53. package/definitions/kanban-runtime.json +1 -0
  54. package/definitions/kanban.json +929 -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 +629 -0
  65. package/definitions/partner-directory-runtime.json +1 -0
  66. package/definitions/partner-directory.json +1718 -0
  67. package/definitions/permissions-runtime.json +1 -0
  68. package/definitions/permissions.json +1480 -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 +1525 -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 +4106 -0
  93. package/dist/apis/access-token.cjs +7 -7
  94. package/dist/apis/access-token.js +1 -1
  95. package/dist/apis/address-suggestions.cjs +7 -7
  96. package/dist/apis/address-suggestions.js +1 -1
  97. package/dist/apis/address.cjs +7 -7
  98. package/dist/apis/address.js +1 -1
  99. package/dist/apis/ai-agents.cjs +7 -7
  100. package/dist/apis/ai-agents.js +1 -1
  101. package/dist/apis/app.cjs +7 -7
  102. package/dist/apis/app.d.cts +2 -2
  103. package/dist/apis/app.d.ts +2 -2
  104. package/dist/apis/app.js +1 -1
  105. package/dist/apis/audit-logs.cjs +7 -7
  106. package/dist/apis/audit-logs.js +1 -1
  107. package/dist/apis/automation.cjs +7 -7
  108. package/dist/apis/automation.js +1 -1
  109. package/dist/apis/billing.cjs +7 -7
  110. package/dist/apis/billing.js +1 -1
  111. package/dist/apis/blueprint-manifest.cjs +8 -8
  112. package/dist/apis/blueprint-manifest.d.cts +2 -2
  113. package/dist/apis/blueprint-manifest.d.ts +2 -2
  114. package/dist/apis/blueprint-manifest.js +2 -2
  115. package/dist/apis/consent.cjs +7 -7
  116. package/dist/apis/consent.js +1 -1
  117. package/dist/apis/customer-portal.cjs +7 -7
  118. package/dist/apis/customer-portal.js +1 -1
  119. package/dist/apis/dashboard.cjs +7 -7
  120. package/dist/apis/dashboard.js +1 -1
  121. package/dist/apis/data-management.cjs +7 -7
  122. package/dist/apis/data-management.d.cts +2 -2
  123. package/dist/apis/data-management.d.ts +2 -2
  124. package/dist/apis/data-management.js +1 -1
  125. package/dist/apis/deduplication.cjs +7 -7
  126. package/dist/apis/deduplication.js +1 -1
  127. package/dist/apis/design.cjs +7 -7
  128. package/dist/apis/design.js +1 -1
  129. package/dist/apis/document.cjs +7 -7
  130. package/dist/apis/document.js +1 -1
  131. package/dist/apis/email-settings.cjs +7 -7
  132. package/dist/apis/email-settings.js +1 -1
  133. package/dist/apis/email-template.cjs +7 -7
  134. package/dist/apis/email-template.d.cts +2 -2
  135. package/dist/apis/email-template.d.ts +2 -2
  136. package/dist/apis/email-template.js +1 -1
  137. package/dist/apis/entity-mapping.cjs +7 -7
  138. package/dist/apis/entity-mapping.js +1 -1
  139. package/dist/apis/entity.cjs +8 -8
  140. package/dist/apis/entity.d.cts +2 -2
  141. package/dist/apis/entity.d.ts +2 -2
  142. package/dist/apis/entity.js +2 -2
  143. package/dist/apis/environments.cjs +7 -7
  144. package/dist/apis/environments.js +1 -1
  145. package/dist/apis/erp-integration.cjs +7 -7
  146. package/dist/apis/erp-integration.js +1 -1
  147. package/dist/apis/event-catalog.cjs +7 -7
  148. package/dist/apis/event-catalog.js +1 -1
  149. package/dist/apis/file.cjs +7 -7
  150. package/dist/apis/file.js +1 -1
  151. package/dist/apis/iban.cjs +7 -7
  152. package/dist/apis/iban.js +1 -1
  153. package/dist/apis/journey.cjs +7 -7
  154. package/dist/apis/journey.js +1 -1
  155. package/dist/apis/kanban.cjs +7 -7
  156. package/dist/apis/kanban.js +1 -1
  157. package/dist/apis/message.cjs +7 -7
  158. package/dist/apis/message.js +1 -1
  159. package/dist/apis/metering.cjs +7 -7
  160. package/dist/apis/metering.js +1 -1
  161. package/dist/apis/notes.cjs +7 -7
  162. package/dist/apis/notes.js +1 -1
  163. package/dist/apis/notification.cjs +7 -7
  164. package/dist/apis/notification.js +1 -1
  165. package/dist/apis/organization.cjs +7 -7
  166. package/dist/apis/organization.js +1 -1
  167. package/dist/apis/partner-directory.cjs +7 -7
  168. package/dist/apis/partner-directory.js +1 -1
  169. package/dist/apis/permissions.cjs +7 -7
  170. package/dist/apis/permissions.js +1 -1
  171. package/dist/apis/pricing-tier.cjs +7 -7
  172. package/dist/apis/pricing-tier.js +1 -1
  173. package/dist/apis/pricing.cjs +7 -7
  174. package/dist/apis/pricing.js +1 -1
  175. package/dist/apis/purpose.cjs +7 -7
  176. package/dist/apis/purpose.js +1 -1
  177. package/dist/apis/sandbox.cjs +7 -7
  178. package/dist/apis/sandbox.js +1 -1
  179. package/dist/apis/submission.cjs +7 -7
  180. package/dist/apis/submission.js +1 -1
  181. package/dist/apis/targeting.cjs +7 -7
  182. package/dist/apis/targeting.js +1 -1
  183. package/dist/apis/template-variables.cjs +7 -7
  184. package/dist/apis/template-variables.js +1 -1
  185. package/dist/apis/user.cjs +7 -7
  186. package/dist/apis/user.js +1 -1
  187. package/dist/apis/validation-rules.cjs +7 -7
  188. package/dist/apis/validation-rules.js +1 -1
  189. package/dist/apis/webhooks.cjs +7 -7
  190. package/dist/apis/webhooks.js +1 -1
  191. package/dist/apis/workflow-definition.cjs +7 -7
  192. package/dist/apis/workflow-definition.js +1 -1
  193. package/dist/apis/workflow.cjs +7 -7
  194. package/dist/apis/workflow.js +1 -1
  195. package/dist/{app.d-Dr03n4J4.d.cts → app.d-BXy_QUym.d.cts} +21 -3
  196. package/dist/{app.d-Dr03n4J4.d.ts → app.d-BXy_QUym.d.ts} +21 -3
  197. package/dist/bin/cli.js +123 -25
  198. package/dist/{blueprint-manifest.d-CEWRdF3i.d.ts → blueprint-manifest.d-DECw6HdM.d.cts} +110 -2
  199. package/dist/{blueprint-manifest.d-CEWRdF3i.d.cts → blueprint-manifest.d-DECw6HdM.d.ts} +110 -2
  200. package/dist/{chunk-QMQNMCOC.js → chunk-XE25WERA.js} +1 -1
  201. package/dist/{chunk-5LXNSDG2.cjs → chunk-XEQMAKGA.cjs} +1 -1
  202. package/dist/{data-management.d-pnuiRU2h.d.cts → data-management.d-CkDmJwpx.d.cts} +1 -2
  203. package/dist/{data-management.d-pnuiRU2h.d.ts → data-management.d-CkDmJwpx.d.ts} +1 -2
  204. package/dist/{email-template.d-BeqkDHtk.d.cts → email-template.d-gtQkdaXM.d.cts} +17 -3
  205. package/dist/{email-template.d-BeqkDHtk.d.ts → email-template.d-gtQkdaXM.d.ts} +17 -3
  206. package/dist/{entity.d-CrtZaZr8.d.cts → entity.d-DtiajmaY.d.cts} +292 -10
  207. package/dist/{entity.d-CrtZaZr8.d.ts → entity.d-DtiajmaY.d.ts} +292 -10
  208. package/dist/index.cjs +17 -17
  209. package/dist/index.d.cts +5 -5
  210. package/dist/index.d.ts +5 -5
  211. package/dist/index.js +10 -10
  212. package/dist/js-yaml-UPZKYVRY.js +2645 -0
  213. package/package.json +11 -10
  214. package/LICENSE +0 -21
@@ -1,8 +1,6 @@
1
1
  import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
2
 
3
3
  /* Auto-copied from entity-client */
4
- /* eslint-disable */
5
-
6
4
 
7
5
 
8
6
  declare namespace Components {
@@ -707,7 +705,7 @@ declare namespace Components {
707
705
  */
708
706
  DefaultAddressFields;
709
707
  }
710
- export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
708
+ export type Attribute = /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row. */ TableAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute;
711
709
  /**
712
710
  * a readonly computed ID for the attribute including schema slug and the attribute ID
713
711
  */
@@ -723,7 +721,7 @@ declare namespace Components {
723
721
  * contact
724
722
  */
725
723
  schema?: string;
726
- } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
724
+ } & (/* a readonly computed ID for the attribute including schema slug and the attribute ID */ /* Textarea or text input */ TextAttribute | /* Link with title and href */ LinkAttribute | /* Date or Datetime picker */ DateAttribute | /* Country picker */ CountryAttribute | /* Yes / No Toggle */ BooleanAttribute | /* Dropdown select */ SelectAttribute | /* Multi Choice Selection */ MultiSelectAttribute | /* Status select */ StatusAttribute | /* Sequence of unique identifiers */ SequenceAttribute | /* Entity Relationship */ RelationAttribute | /* User Relationship */ UserRelationAttribute | /* Address attribute */ AddressAttribute | /* Reference to an address attribute of another entity */ AddressRelationAttribute | /* Reference to a payment method attribute of another entity */ PaymentMethodRelationAttribute | /* Currency input */ CurrencyAttribute | /* Tags */ TagsAttribute | /* Message emil address */ MessageEmailAddressAttribute | /* Numeric input */ NumberAttribute | /* Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row. */ TableAttribute | /* Consent Management */ ConsentAttribute | /* No UI representation */ InternalAttribute | /* Type of attribute to render N number of ordered fields */ OrderedListAttribute | /* File or Image Attachment */ FileAttribute | /* An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) */ ComputedAttribute | /* Partner Status */ PartnerStatusAttribute | /* Email address for send invitation */ InvitationEmailAttribute | /* Automation entity */ AutomationAttribute | /* Epilot internal user info */ InternalUserAttribute | /* Entity Taxonomy */ PurposeAttribute | /* Shared Partner Organisations */ PartnerOrganisationAttribute | /* Portal access configuration */ PortalAccessAttribute | /* Phone number */ PhoneAttribute | /* Email address */ EmailAttribute | /* Payment method */ PaymentAttribute | /* Price component */ PriceComponentAttribute);
727
725
  /**
728
726
  * Automation entity
729
727
  */
@@ -2610,6 +2608,18 @@ declare namespace Components {
2610
2608
  * This capability should only be active when all the settings have the correct value
2611
2609
  */
2612
2610
  settings_flag?: SettingFlag[];
2611
+ /**
2612
+ * Schema-specific configuration for the capability
2613
+ */
2614
+ schemas?: {
2615
+ [name: string]: any;
2616
+ /**
2617
+ * Entity schema slug
2618
+ * example:
2619
+ * contact
2620
+ */
2621
+ schema: string;
2622
+ }[];
2613
2623
  }
2614
2624
  /**
2615
2625
  * a readonly computed ID for the entity capability including schema slug and the capability ID
@@ -2743,6 +2753,18 @@ declare namespace Components {
2743
2753
  * This capability should only be active when all the settings have the correct value
2744
2754
  */
2745
2755
  settings_flag?: SettingFlag[];
2756
+ /**
2757
+ * Schema-specific configuration for the capability
2758
+ */
2759
+ schemas?: {
2760
+ [name: string]: any;
2761
+ /**
2762
+ * Entity schema slug
2763
+ * example:
2764
+ * contact
2765
+ */
2766
+ schema: string;
2767
+ }[];
2746
2768
  /**
2747
2769
  * example:
2748
2770
  * contact:97644baa-083f-4e49-9188-fcff2ecaad7d
@@ -3440,6 +3462,22 @@ declare namespace Components {
3440
3462
  _manifest?: string /* uuid */[] | null;
3441
3463
  };
3442
3464
  };
3465
+ /**
3466
+ * Internal property for workflow origin tracking and infinite loop prevention.
3467
+ * Populated when an entity update originates from a workflow execution.
3468
+ * This allows downstream automation services to prevent circular triggering.
3469
+ *
3470
+ */
3471
+ _workflow_origin?: {
3472
+ /**
3473
+ * The ID of the workflow execution that triggered this entity update
3474
+ */
3475
+ workflow_exec_id?: string;
3476
+ /**
3477
+ * The flow template ID - used to detect and prevent circular triggering
3478
+ */
3479
+ flow_template_id?: string;
3480
+ };
3443
3481
  }
3444
3482
  /**
3445
3483
  * The user / organization owning this entity.
@@ -3843,6 +3881,10 @@ declare namespace Components {
3843
3881
  id?: string;
3844
3882
  type?: string;
3845
3883
  };
3884
+ /**
3885
+ * Indicates this is a truncated summary schema (attributes trimmed to summary_attributes only, no capabilities or group_settings)
3886
+ */
3887
+ _summary?: boolean;
3846
3888
  slug: /**
3847
3889
  * URL-friendly identifier for the entity schema
3848
3890
  * example:
@@ -9471,6 +9513,194 @@ declare namespace Components {
9471
9513
  */
9472
9514
  display_as?: string;
9473
9515
  }
9516
+ /**
9517
+ * Dynamic data table with configurable columns. Data is stored as an array of objects where each object represents a row.
9518
+ */
9519
+ export interface TableAttribute {
9520
+ /**
9521
+ * ID for the entity attribute
9522
+ * example:
9523
+ * d5839b94-ba20-4225-a78e-76951d352bd6
9524
+ */
9525
+ id?: string;
9526
+ name: string;
9527
+ label: string;
9528
+ placeholder?: string;
9529
+ /**
9530
+ * Do not render attribute in entity views
9531
+ */
9532
+ hidden?: boolean;
9533
+ /**
9534
+ * Render as a column in table views. When defined, overrides `hidden`
9535
+ */
9536
+ show_in_table?: boolean;
9537
+ /**
9538
+ * Allow sorting by this attribute in table views if `show_in_table` is true
9539
+ */
9540
+ sortable?: boolean;
9541
+ required?: boolean;
9542
+ readonly?: boolean;
9543
+ deprecated?: boolean;
9544
+ default_value?: any;
9545
+ /**
9546
+ * Which group the attribute should appear in. Accepts group ID or group name
9547
+ */
9548
+ group?: string;
9549
+ /**
9550
+ * Attribute sort order (ascending) in group
9551
+ * example:
9552
+ * 0
9553
+ */
9554
+ order?: number;
9555
+ /**
9556
+ * example:
9557
+ * full_width
9558
+ */
9559
+ layout?: string;
9560
+ /**
9561
+ * When set to true, will hide the label of the field.
9562
+ */
9563
+ hide_label?: boolean;
9564
+ /**
9565
+ * Code name of the icon to used to represent this attribute.
9566
+ * The value must be a valid @epilot/base-elements Icon name
9567
+ *
9568
+ */
9569
+ icon?: string;
9570
+ /**
9571
+ * Defines the conditional rendering expression for showing this field.
9572
+ * When a valid expression is parsed, their evaluation defines the visibility of this attribute.
9573
+ * Note: Empty or invalid expression have no effect on the field visibility.
9574
+ *
9575
+ */
9576
+ render_condition?: string;
9577
+ _purpose?: /**
9578
+ * example:
9579
+ * taxonomy-slug:classification-slug
9580
+ */
9581
+ ClassificationId[];
9582
+ /**
9583
+ * Manifest ID used to create/update the schema attribute
9584
+ */
9585
+ _manifest?: string /* uuid */[] | null;
9586
+ /**
9587
+ * A set of constraints applicable to the attribute.
9588
+ * These constraints should and will be enforced by the attribute renderer.
9589
+ *
9590
+ * example:
9591
+ * {
9592
+ * "disablePast": true
9593
+ * }
9594
+ */
9595
+ constraints?: {
9596
+ [key: string]: any;
9597
+ };
9598
+ /**
9599
+ * This attribute should only be active when the feature flag is enabled
9600
+ * example:
9601
+ * FF_MY_FEATURE_FLAG
9602
+ */
9603
+ feature_flag?: string;
9604
+ /**
9605
+ * This attribute should only be active when one of the provided settings have the correct value
9606
+ */
9607
+ settings_flag?: SettingFlag[];
9608
+ value_formatter?: string;
9609
+ preview_value_formatter?: string;
9610
+ /**
9611
+ * Setting to `true` disables editing the attribute on the entity builder UI
9612
+ */
9613
+ entity_builder_disable_edit?: boolean;
9614
+ /**
9615
+ * Setting to `true` prevents the attribute from being modified / deleted
9616
+ */
9617
+ protected?: boolean;
9618
+ /**
9619
+ * A set of configurations meant to document and assist the user in filling the attribute.
9620
+ */
9621
+ info_helpers?: {
9622
+ /**
9623
+ * The text to be displayed in the attribute hint helper.
9624
+ * When specified it overrides the `hint_text_key` configuration.
9625
+ *
9626
+ */
9627
+ hint_text?: string;
9628
+ /**
9629
+ * The key of the hint text to be displayed in the attribute hint helper.
9630
+ * The key should be a valid i18n key.
9631
+ *
9632
+ */
9633
+ hint_text_key?: string;
9634
+ /**
9635
+ * The name of the custom component to be used as the hint helper.
9636
+ * The component should be registered in the `@epilot360/entity-ui` on the index of the components directory.
9637
+ * When specified it overrides the `hint_text` or `hint_text_key` configuration.
9638
+ *
9639
+ */
9640
+ hint_custom_component?: string;
9641
+ /**
9642
+ * The placement of the hint tooltip.
9643
+ * The value should be a valid `@mui/core` tooltip placement.
9644
+ *
9645
+ * example:
9646
+ * top
9647
+ */
9648
+ hint_tooltip_placement?: string;
9649
+ };
9650
+ /**
9651
+ * When set to true, this attribute will always be searchable regardless of
9652
+ * the ELASTIC_MAX_SEARCH_FIELDS limit. Use this for critical search fields
9653
+ * that must always be included in search operations.
9654
+ *
9655
+ */
9656
+ explicit_searchable?: boolean;
9657
+ /**
9658
+ * When set to true, this attribute will be excluded from search fields.
9659
+ * Use this for fields that should not be matched during entity search operations,
9660
+ * such as internal hashes or identifiers that might accidentally match search terms.
9661
+ *
9662
+ */
9663
+ exclude_from_search?: boolean;
9664
+ /**
9665
+ * The attribute is a repeatable
9666
+ */
9667
+ repeatable?: boolean;
9668
+ has_primary?: boolean;
9669
+ type: "table";
9670
+ /**
9671
+ * Column definitions for the table
9672
+ */
9673
+ columns?: {
9674
+ /**
9675
+ * The column identifier (used as object key in row data)
9676
+ */
9677
+ name: string;
9678
+ /**
9679
+ * Display label for the column header
9680
+ */
9681
+ label: string;
9682
+ /**
9683
+ * The data type for cells in this column
9684
+ */
9685
+ type?: "string" | "number" | "date" | "boolean";
9686
+ /**
9687
+ * Optional column width (e.g., "100px", "20%")
9688
+ */
9689
+ width?: string;
9690
+ /**
9691
+ * Whether this column is required for each row
9692
+ */
9693
+ required?: boolean;
9694
+ }[];
9695
+ /**
9696
+ * Minimum number of rows required
9697
+ */
9698
+ min_rows?: number;
9699
+ /**
9700
+ * Maximum number of rows allowed
9701
+ */
9702
+ max_rows?: number;
9703
+ }
9474
9704
  /**
9475
9705
  * Tags
9476
9706
  */
@@ -12168,7 +12398,7 @@ declare namespace Paths {
12168
12398
  /**
12169
12399
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
12170
12400
  * example:
12171
- * 2023-01-01T00:00:00.000Z
12401
+ * 2023-01-01T00:00:00Z
12172
12402
  */
12173
12403
  export type CreatedAfter = string; // date-time
12174
12404
  /**
@@ -12194,7 +12424,7 @@ declare namespace Paths {
12194
12424
  created_after?: /**
12195
12425
  * ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).
12196
12426
  * example:
12197
- * 2023-01-01T00:00:00.000Z
12427
+ * 2023-01-01T00:00:00Z
12198
12428
  */
12199
12429
  Parameters.CreatedAfter /* date-time */;
12200
12430
  sort_pending_first?: /* When true, sorts PENDING status jobs to the top of the results. */ Parameters.SortPendingFirst;
@@ -12354,11 +12584,32 @@ declare namespace Paths {
12354
12584
  namespace ListSchemas {
12355
12585
  namespace Parameters {
12356
12586
  export type Exclude = string[];
12587
+ export type Include = string[];
12357
12588
  export type Unpublished = boolean;
12358
12589
  }
12359
12590
  export interface QueryParameters {
12360
12591
  unpublished?: Parameters.Unpublished;
12361
12592
  exclude?: Parameters.Exclude;
12593
+ include?: Parameters.Include;
12594
+ }
12595
+ namespace Responses {
12596
+ export interface $200 {
12597
+ results?: /* The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. */ Components.Schemas.EntitySchemaItem[];
12598
+ }
12599
+ }
12600
+ }
12601
+ namespace ListSchemasV2 {
12602
+ namespace Parameters {
12603
+ export type Exclude = string[];
12604
+ export type Full = boolean;
12605
+ export type Include = string[];
12606
+ export type Unpublished = boolean;
12607
+ }
12608
+ export interface QueryParameters {
12609
+ full?: Parameters.Full;
12610
+ unpublished?: Parameters.Unpublished;
12611
+ exclude?: Parameters.Exclude;
12612
+ include?: Parameters.Include;
12362
12613
  }
12363
12614
  namespace Responses {
12364
12615
  export interface $200 {
@@ -13002,9 +13253,11 @@ declare namespace Paths {
13002
13253
  export interface $200 {
13003
13254
  created?: Components.Schemas.TaxonomyClassification[];
13004
13255
  updated?: Components.Schemas.TaxonomyClassification[];
13005
- deleted?: {
13006
- [key: string]: any;
13007
- };
13256
+ deleted?: /**
13257
+ * example:
13258
+ * taxonomy-slug:classification-slug
13259
+ */
13260
+ Components.Schemas.ClassificationId[];
13008
13261
  }
13009
13262
  export type $404 = /**
13010
13263
  * A generic error returned by the API
@@ -13574,6 +13827,19 @@ interface OperationMethods {
13574
13827
  data?: any,
13575
13828
  config?: AxiosRequestConfig
13576
13829
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
13830
+ /**
13831
+ * listSchemasV2 - listSchemasV2
13832
+ *
13833
+ * Get the latest versions of all schemas.
13834
+ * Returns summary schemas by default (only summary attributes, no capabilities).
13835
+ * Use ?full=true for complete schemas.
13836
+ *
13837
+ */
13838
+ 'listSchemasV2'(
13839
+ parameters?: Parameters<Paths.ListSchemasV2.QueryParameters> | null,
13840
+ data?: any,
13841
+ config?: AxiosRequestConfig
13842
+ ): OperationResponse<Paths.ListSchemasV2.Responses.$200>
13577
13843
  /**
13578
13844
  * getSchema - getSchema
13579
13845
  *
@@ -14677,6 +14943,21 @@ interface PathsDictionary {
14677
14943
  config?: AxiosRequestConfig
14678
14944
  ): OperationResponse<Paths.ListSchemas.Responses.$200>
14679
14945
  }
14946
+ ['/v2/entity/schemas']: {
14947
+ /**
14948
+ * listSchemasV2 - listSchemasV2
14949
+ *
14950
+ * Get the latest versions of all schemas.
14951
+ * Returns summary schemas by default (only summary attributes, no capabilities).
14952
+ * Use ?full=true for complete schemas.
14953
+ *
14954
+ */
14955
+ 'get'(
14956
+ parameters?: Parameters<Paths.ListSchemasV2.QueryParameters> | null,
14957
+ data?: any,
14958
+ config?: AxiosRequestConfig
14959
+ ): OperationResponse<Paths.ListSchemasV2.Responses.$200>
14960
+ }
14680
14961
  ['/v1/entity/schemas/{slug}']: {
14681
14962
  /**
14682
14963
  * getSchema - getSchema
@@ -16001,6 +16282,7 @@ type SettingFlag = Components.Schemas.SettingFlag;
16001
16282
  type StatusAttribute = Components.Schemas.StatusAttribute;
16002
16283
  type SummaryAttribute = Components.Schemas.SummaryAttribute;
16003
16284
  type SummaryField = Components.Schemas.SummaryField;
16285
+ type TableAttribute = Components.Schemas.TableAttribute;
16004
16286
  type TagsAttribute = Components.Schemas.TagsAttribute;
16005
16287
  type Taxonomy = Components.Schemas.Taxonomy;
16006
16288
  type TaxonomyBulkJob = Components.Schemas.TaxonomyBulkJob;
@@ -16014,4 +16296,4 @@ type TaxonomySlug = Components.Schemas.TaxonomySlug;
16014
16296
  type TextAttribute = Components.Schemas.TextAttribute;
16015
16297
  type UserRelationAttribute = Components.Schemas.UserRelationAttribute;
16016
16298
 
16017
- export { type EntitySearchResults as $, type Activity as A, type BaseActivityItem as B, type Client as C, type DateAttribute as D, type ESClusterAssignment as E, type EntityAcl as F, type EntityAction as G, type EntityCapability as H, type EntityCapabilityWithCompositeID as I, type EntityDefaultCreate as J, type EntityDefaultEdit as K, type EntityDefaultTable as L, type EntityId as M, type EntityImportParams as N, type OperationMethods as O, Paths as P, type EntityItem as Q, type EntityListParams as R, type EntityOperation as S, type EntityOwner as T, type EntitySchema as U, type EntitySchemaGroup as V, type EntitySchemaGroupWithCompositeID as W, type EntitySchemaItem as X, type EntitySearchIncludeDeletedParam as Y, type EntitySearchOptions as Z, type EntitySearchParams as _, Components as a, type SearchMappings as a$, type EntitySlug as a0, type EntityTableFilterOption as a1, type EntityTableFilterSearch as a2, type EntityValidationError as a3, type EntityValidationResult as a4, type EntityValidationResultError as a5, type EntityValidationResultSuccess as a6, type EntityValidationV2Error as a7, type EntityValidationV2Result as a8, type EntityValidationV2ResultError as a9, type LinkAttribute as aA, type ListSavedViewsResults as aB, type MessageEmailAddressAttribute as aC, type MultiSelectAttribute as aD, type NullableEntity as aE, type NumberAttribute as aF, type OrderedListAttribute as aG, type PartnerOrganisationAttribute as aH, type PartnerStatusAttribute as aI, type PaymentAttribute as aJ, type PaymentMethodRelationAttribute as aK, type PhoneAttribute as aL, type PortalAccessAttribute as aM, type PriceComponentAttribute as aN, type PurposeAttribute as aO, type RedirectEntityView as aP, type RelationAttribute as aQ, type RelationEntity as aR, type RelationItem as aS, type RepeatableAttribute as aT, type SavedView as aU, type SavedViewId as aV, type SavedViewItem as aW, type SavedViewPartial as aX, type SchemaId as aY, type SearchFilter as aZ, type SearchFilterValue as a_, type EntityValidationV2ResultSuccess as aa, type EntityViewDisabled as ab, type ErrorObject as ac, type ExportJobId as ad, type FieldsParam as ae, type FileAttribute as af, type GenerateEntityTableAIFiltersRequest as ag, type GenerateEntityTableAIFiltersResponse as ah, GetRelatedEntitiesCount as ai, type GetRelationsResp as aj, type GetRelationsRespWithPagination as ak, type GraphDefinition as al, type GraphEdge as am, type GraphNode as an, type GraphQueryRequest as ao, type GraphQueryResponse as ap, type GraphSeed as aq, type GroupHeadline as ar, type GroupHeadlineWithCompositeID as as, type HydratedEntity as at, type HydratedEntityItem as au, type InternalAttribute as av, type InternalUserAttribute as aw, type InvitationEmailAttribute as ax, type IsTemplate as ay, type Language as az, type PathsDictionary as b, type SelectAttribute as b0, type SequenceAttribute as b1, type SettingFlag as b2, type StatusAttribute as b3, type SummaryAttribute as b4, type SummaryField as b5, type TagsAttribute as b6, type Taxonomy as b7, type TaxonomyBulkJob as b8, type TaxonomyBulkJobActionType as b9, type TaxonomyBulkJobStatus as ba, type TaxonomyBulkJobTriggerResponse as bb, type TaxonomyClassification as bc, type TaxonomyLocationId as bd, type TaxonomySearchIncludeArchivedParam as be, type TaxonomySlug as bf, type TextAttribute as bg, type UserRelationAttribute as bh, type ActivityCallerContext as c, type ActivityId as d, type ActivityItem as e, type ActivityType as f, type AddressAttribute as g, type AddressRelationAttribute as h, type Attribute as i, type AttributeWithCompositeID as j, type AutomationAttribute as k, type BaseAttribute as l, type BaseEntity as m, type BlueprintEntityId as n, type BooleanAttribute as o, type ClassificationId as p, type ClassificationIdOrPattern as q, type ClassificationSlug as r, type ClassificationsUpdate as s, type ComputedAttribute as t, type ConsentAttribute as u, type CountryAttribute as v, type CurrencyAttribute as w, type DefaultAddressFields as x, type EmailAttribute as y, type Entity as z };
16299
+ export { type EntitySearchResults as $, type Activity as A, type BaseActivityItem as B, type Client as C, type DateAttribute as D, type ESClusterAssignment as E, type EntityAcl as F, type EntityAction as G, type EntityCapability as H, type EntityCapabilityWithCompositeID as I, type EntityDefaultCreate as J, type EntityDefaultEdit as K, type EntityDefaultTable as L, type EntityId as M, type EntityImportParams as N, type OperationMethods as O, Paths as P, type EntityItem as Q, type EntityListParams as R, type EntityOperation as S, type EntityOwner as T, type EntitySchema as U, type EntitySchemaGroup as V, type EntitySchemaGroupWithCompositeID as W, type EntitySchemaItem as X, type EntitySearchIncludeDeletedParam as Y, type EntitySearchOptions as Z, type EntitySearchParams as _, Components as a, type SearchMappings as a$, type EntitySlug as a0, type EntityTableFilterOption as a1, type EntityTableFilterSearch as a2, type EntityValidationError as a3, type EntityValidationResult as a4, type EntityValidationResultError as a5, type EntityValidationResultSuccess as a6, type EntityValidationV2Error as a7, type EntityValidationV2Result as a8, type EntityValidationV2ResultError as a9, type LinkAttribute as aA, type ListSavedViewsResults as aB, type MessageEmailAddressAttribute as aC, type MultiSelectAttribute as aD, type NullableEntity as aE, type NumberAttribute as aF, type OrderedListAttribute as aG, type PartnerOrganisationAttribute as aH, type PartnerStatusAttribute as aI, type PaymentAttribute as aJ, type PaymentMethodRelationAttribute as aK, type PhoneAttribute as aL, type PortalAccessAttribute as aM, type PriceComponentAttribute as aN, type PurposeAttribute as aO, type RedirectEntityView as aP, type RelationAttribute as aQ, type RelationEntity as aR, type RelationItem as aS, type RepeatableAttribute as aT, type SavedView as aU, type SavedViewId as aV, type SavedViewItem as aW, type SavedViewPartial as aX, type SchemaId as aY, type SearchFilter as aZ, type SearchFilterValue as a_, type EntityValidationV2ResultSuccess as aa, type EntityViewDisabled as ab, type ErrorObject as ac, type ExportJobId as ad, type FieldsParam as ae, type FileAttribute as af, type GenerateEntityTableAIFiltersRequest as ag, type GenerateEntityTableAIFiltersResponse as ah, GetRelatedEntitiesCount as ai, type GetRelationsResp as aj, type GetRelationsRespWithPagination as ak, type GraphDefinition as al, type GraphEdge as am, type GraphNode as an, type GraphQueryRequest as ao, type GraphQueryResponse as ap, type GraphSeed as aq, type GroupHeadline as ar, type GroupHeadlineWithCompositeID as as, type HydratedEntity as at, type HydratedEntityItem as au, type InternalAttribute as av, type InternalUserAttribute as aw, type InvitationEmailAttribute as ax, type IsTemplate as ay, type Language as az, type PathsDictionary as b, type SelectAttribute as b0, type SequenceAttribute as b1, type SettingFlag as b2, type StatusAttribute as b3, type SummaryAttribute as b4, type SummaryField as b5, type TableAttribute as b6, type TagsAttribute as b7, type Taxonomy as b8, type TaxonomyBulkJob as b9, type TaxonomyBulkJobActionType as ba, type TaxonomyBulkJobStatus as bb, type TaxonomyBulkJobTriggerResponse as bc, type TaxonomyClassification as bd, type TaxonomyLocationId as be, type TaxonomySearchIncludeArchivedParam as bf, type TaxonomySlug as bg, type TextAttribute as bh, type UserRelationAttribute as bi, type ActivityCallerContext as c, type ActivityId as d, type ActivityItem as e, type ActivityType as f, type AddressAttribute as g, type AddressRelationAttribute as h, type Attribute as i, type AttributeWithCompositeID as j, type AutomationAttribute as k, type BaseAttribute as l, type BaseEntity as m, type BlueprintEntityId as n, type BooleanAttribute as o, type ClassificationId as p, type ClassificationIdOrPattern as q, type ClassificationSlug as r, type ClassificationsUpdate as s, type ComputedAttribute as t, type ConsentAttribute as u, type CountryAttribute as v, type CurrencyAttribute as w, type DefaultAddressFields as x, type EmailAttribute as y, type Entity as z };
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
4
 
5
5
 
6
6
 
7
- var _chunk5LXNSDG2cjs = require('./chunk-5LXNSDG2.cjs');
7
+ var _chunkXEQMAKGAcjs = require('./chunk-XEQMAKGA.cjs');
8
8
 
9
9
  // src/large-response.ts
10
10
  var CONTENT_TYPE = "application/large-response.vnd+json";
@@ -32,7 +32,7 @@ var applyLargeResponseInterceptor = (params) => {
32
32
  // src/retry.ts
33
33
  var DEFAULT_MAX_RETRIES = 3;
34
34
  var DEFAULT_DELAY_MS = 1e3;
35
- var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
35
+ var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
36
36
  var RETRY_COUNT_HEADER = "x-epilot-sdk-retry-count";
37
37
  var applyRetryInterceptor = (params) => {
38
38
  const { client, config } = params;
@@ -68,7 +68,7 @@ var resolveClient = (params) => {
68
68
  }
69
69
  if (!entry.instance) {
70
70
  const definition = entry.loader();
71
- entry.instance = _chunk5LXNSDG2cjs.createApiClient.call(void 0, {
71
+ entry.instance = _chunkXEQMAKGAcjs.createApiClient.call(void 0, {
72
72
  definition,
73
73
  token: state.token,
74
74
  headers: state.globalHeaders
@@ -102,8 +102,8 @@ var resetAllClients = (registry) => {
102
102
  // src/apis/_registry.ts
103
103
  var base = "../definitions/";
104
104
  var loadDef = (name) => {
105
- const mod = _chunk5LXNSDG2cjs.__require.call(void 0, base + name + "-runtime.json");
106
- return _chunk5LXNSDG2cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
105
+ const mod = _chunkXEQMAKGAcjs.__require.call(void 0, base + name + "-runtime.json");
106
+ return _chunkXEQMAKGAcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
107
107
  };
108
108
  var registerBuiltinApis = (registry) => {
109
109
  registerApi({
@@ -339,26 +339,26 @@ var registerBuiltinApis = (registry) => {
339
339
  };
340
340
 
341
341
  // src/overrides.ts
342
- var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
343
- var _path = require('path'); var path = _interopRequireWildcard(_path);
344
342
  var OVERRIDES_PATH = ".epilot/sdk-overrides.json";
345
343
  var _loaded = false;
346
- var createSpecLoader = (specPath, baseDir) => {
344
+ var createSpecLoader = (specPath, baseDir, fsModule, pathModule) => {
347
345
  let cached = null;
348
346
  return () => {
349
347
  if (cached) return cached;
350
- const absolutePath = path.resolve(baseDir, specPath);
351
- const content = fs.readFileSync(absolutePath, "utf-8");
348
+ const absolutePath = pathModule.resolve(baseDir, specPath);
349
+ const content = fsModule.readFileSync(absolutePath, "utf-8");
352
350
  cached = JSON.parse(content);
353
351
  return cached;
354
352
  };
355
353
  };
356
- var loadOverrides = (registry) => {
354
+ var loadOverrides = (registry, cwd) => {
357
355
  if (_loaded) return;
358
356
  _loaded = true;
359
357
  try {
360
358
  if (typeof process === "undefined" || typeof process.cwd !== "function") return;
361
- let dir = process.cwd();
359
+ const fs = _chunkXEQMAKGAcjs.__require.call(void 0, "fs");
360
+ const path = _chunkXEQMAKGAcjs.__require.call(void 0, "path");
361
+ let dir = _nullishCoalesce(cwd, () => ( process.cwd()));
362
362
  let overridesFile = null;
363
363
  while (true) {
364
364
  const candidate = path.resolve(dir, OVERRIDES_PATH);
@@ -374,7 +374,7 @@ var loadOverrides = (registry) => {
374
374
  const baseDir = path.dirname(overridesFile);
375
375
  const overrides = JSON.parse(fs.readFileSync(overridesFile, "utf-8"));
376
376
  for (const [name, specPath] of Object.entries(overrides)) {
377
- const loader = createSpecLoader(specPath, baseDir);
377
+ const loader = createSpecLoader(specPath, baseDir, fs, path);
378
378
  const existing = registry.get(name);
379
379
  if (existing) {
380
380
  existing.loader = loader;
@@ -406,9 +406,9 @@ var createSDK = () => {
406
406
  const available = [...registry.keys()].join(", ");
407
407
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
408
408
  }
409
- return _chunk5LXNSDG2cjs.createApiHandle.call(void 0, {
409
+ return _chunkXEQMAKGAcjs.createApiHandle.call(void 0, {
410
410
  resolveClient: () => resolveClient({ registry, name, state }),
411
- createClient: () => _chunk5LXNSDG2cjs.createApiClient.call(void 0, { definition: entry.loader() })
411
+ createClient: () => _chunkXEQMAKGAcjs.createApiClient.call(void 0, { definition: entry.loader() })
412
412
  });
413
413
  };
414
414
  const sdk = new Proxy({}, {
@@ -478,4 +478,4 @@ var epilot = createSDK();
478
478
 
479
479
 
480
480
 
481
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk5LXNSDG2cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot;
481
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkXEQMAKGAcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot;
package/dist/index.d.cts CHANGED
@@ -5,21 +5,21 @@ import { C as Client } from './access-token.d-CnmUTOlq.cjs';
5
5
  import { C as Client$1 } from './address.d-CwAPOVxa.cjs';
6
6
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
7
7
  import { C as Client$3 } from './ai-agents.d-OkXfr2bz.cjs';
8
- import { C as Client$4 } from './app.d-Dr03n4J4.cjs';
8
+ import { C as Client$4 } from './app.d-BXy_QUym.cjs';
9
9
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
10
10
  import { C as Client$6 } from './automation.d-KOiZ6ru5.cjs';
11
11
  import { C as Client$7 } from './billing.d-Bs8Ku9qE.cjs';
12
- import { C as Client$8 } from './blueprint-manifest.d-CEWRdF3i.cjs';
12
+ import { C as Client$8 } from './blueprint-manifest.d-DECw6HdM.cjs';
13
13
  import { C as Client$9 } from './consent.d-C2PROHhX.cjs';
14
14
  import { C as Client$a } from './customer-portal.d-Bh9NF8cY.cjs';
15
15
  import { C as Client$b } from './dashboard.d-CsGcA74I.cjs';
16
- import { C as Client$c } from './data-management.d-pnuiRU2h.cjs';
16
+ import { C as Client$c } from './data-management.d-CkDmJwpx.cjs';
17
17
  import { C as Client$d } from './deduplication.d-w_2aJD5f.cjs';
18
18
  import { C as Client$e } from './design.d-eA-irKEX.cjs';
19
19
  import { C as Client$f } from './document.d-DN37pjdx.cjs';
20
20
  import { C as Client$g } from './email-settings.d-BXxYjVDr.cjs';
21
- import { C as Client$h } from './email-template.d-BeqkDHtk.cjs';
22
- import { C as Client$i } from './entity.d-CrtZaZr8.cjs';
21
+ import { C as Client$h } from './email-template.d-gtQkdaXM.cjs';
22
+ import { C as Client$i } from './entity.d-DtiajmaY.cjs';
23
23
  import { C as Client$j } from './entity-mapping.d-DKSW3sfy.cjs';
24
24
  import { C as Client$k } from './environments.d-H3LK_KuH.cjs';
25
25
  import { C as Client$l } from './erp-integration.d-DOhxy4P5.cjs';
package/dist/index.d.ts CHANGED
@@ -5,21 +5,21 @@ import { C as Client } from './access-token.d-CnmUTOlq.js';
5
5
  import { C as Client$1 } from './address.d-CwAPOVxa.js';
6
6
  import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
7
7
  import { C as Client$3 } from './ai-agents.d-OkXfr2bz.js';
8
- import { C as Client$4 } from './app.d-Dr03n4J4.js';
8
+ import { C as Client$4 } from './app.d-BXy_QUym.js';
9
9
  import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
10
10
  import { C as Client$6 } from './automation.d-KOiZ6ru5.js';
11
11
  import { C as Client$7 } from './billing.d-Bs8Ku9qE.js';
12
- import { C as Client$8 } from './blueprint-manifest.d-CEWRdF3i.js';
12
+ import { C as Client$8 } from './blueprint-manifest.d-DECw6HdM.js';
13
13
  import { C as Client$9 } from './consent.d-C2PROHhX.js';
14
14
  import { C as Client$a } from './customer-portal.d-Bh9NF8cY.js';
15
15
  import { C as Client$b } from './dashboard.d-CsGcA74I.js';
16
- import { C as Client$c } from './data-management.d-pnuiRU2h.js';
16
+ import { C as Client$c } from './data-management.d-CkDmJwpx.js';
17
17
  import { C as Client$d } from './deduplication.d-w_2aJD5f.js';
18
18
  import { C as Client$e } from './design.d-eA-irKEX.js';
19
19
  import { C as Client$f } from './document.d-DN37pjdx.js';
20
20
  import { C as Client$g } from './email-settings.d-BXxYjVDr.js';
21
- import { C as Client$h } from './email-template.d-BeqkDHtk.js';
22
- import { C as Client$i } from './entity.d-CrtZaZr8.js';
21
+ import { C as Client$h } from './email-template.d-gtQkdaXM.js';
22
+ import { C as Client$i } from './entity.d-DtiajmaY.js';
23
23
  import { C as Client$j } from './entity-mapping.d-DKSW3sfy.js';
24
24
  import { C as Client$k } from './environments.d-H3LK_KuH.js';
25
25
  import { C as Client$l } from './erp-integration.d-DOhxy4P5.js';
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createApiClient,
5
5
  createApiHandle,
6
6
  expand
7
- } from "./chunk-QMQNMCOC.js";
7
+ } from "./chunk-XE25WERA.js";
8
8
 
9
9
  // src/large-response.ts
10
10
  var CONTENT_TYPE = "application/large-response.vnd+json";
@@ -32,7 +32,7 @@ var applyLargeResponseInterceptor = (params) => {
32
32
  // src/retry.ts
33
33
  var DEFAULT_MAX_RETRIES = 3;
34
34
  var DEFAULT_DELAY_MS = 1e3;
35
- var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
35
+ var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
36
36
  var RETRY_COUNT_HEADER = "x-epilot-sdk-retry-count";
37
37
  var applyRetryInterceptor = (params) => {
38
38
  const { client, config } = params;
@@ -339,26 +339,26 @@ var registerBuiltinApis = (registry) => {
339
339
  };
340
340
 
341
341
  // src/overrides.ts
342
- import * as fs from "fs";
343
- import * as path from "path";
344
342
  var OVERRIDES_PATH = ".epilot/sdk-overrides.json";
345
343
  var _loaded = false;
346
- var createSpecLoader = (specPath, baseDir) => {
344
+ var createSpecLoader = (specPath, baseDir, fsModule, pathModule) => {
347
345
  let cached = null;
348
346
  return () => {
349
347
  if (cached) return cached;
350
- const absolutePath = path.resolve(baseDir, specPath);
351
- const content = fs.readFileSync(absolutePath, "utf-8");
348
+ const absolutePath = pathModule.resolve(baseDir, specPath);
349
+ const content = fsModule.readFileSync(absolutePath, "utf-8");
352
350
  cached = JSON.parse(content);
353
351
  return cached;
354
352
  };
355
353
  };
356
- var loadOverrides = (registry) => {
354
+ var loadOverrides = (registry, cwd) => {
357
355
  if (_loaded) return;
358
356
  _loaded = true;
359
357
  try {
360
358
  if (typeof process === "undefined" || typeof process.cwd !== "function") return;
361
- let dir = process.cwd();
359
+ const fs = __require("fs");
360
+ const path = __require("path");
361
+ let dir = cwd ?? process.cwd();
362
362
  let overridesFile = null;
363
363
  while (true) {
364
364
  const candidate = path.resolve(dir, OVERRIDES_PATH);
@@ -374,7 +374,7 @@ var loadOverrides = (registry) => {
374
374
  const baseDir = path.dirname(overridesFile);
375
375
  const overrides = JSON.parse(fs.readFileSync(overridesFile, "utf-8"));
376
376
  for (const [name, specPath] of Object.entries(overrides)) {
377
- const loader = createSpecLoader(specPath, baseDir);
377
+ const loader = createSpecLoader(specPath, baseDir, fs, path);
378
378
  const existing = registry.get(name);
379
379
  if (existing) {
380
380
  existing.loader = loader;