@epilot/sdk 2.18.19 → 2.18.21

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 (136) hide show
  1. package/definitions/billing-runtime.json +1 -1
  2. package/definitions/billing.json +195 -19
  3. package/definitions/integration-toolkit.json +26 -6
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +8 -8
  19. package/dist/apis/billing.d.cts +2 -2
  20. package/dist/apis/billing.d.ts +2 -2
  21. package/dist/apis/billing.js +2 -2
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.js +1 -1
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.d.cts +2 -2
  60. package/dist/apis/integration-toolkit.d.ts +2 -2
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/billing-MN36KAKQ.cjs +7 -0
  113. package/dist/billing-UAVEPNBZ.js +7 -0
  114. package/dist/{billing-runtime-3OCFZU2K.js → billing-runtime-OSGDEA63.js} +1 -1
  115. package/dist/{billing-runtime-PKKLWPQY.cjs → billing-runtime-YZEHKRAZ.cjs} +2 -2
  116. package/dist/{billing.d-N_1F759g.d.cts → billing.d-Blv16_el.d.cts} +205 -34
  117. package/dist/{billing.d-N_1F759g.d.ts → billing.d-Blv16_el.d.ts} +205 -34
  118. package/dist/{chunk-U5XZ4ERL.js → chunk-5SAISAQY.js} +1 -1
  119. package/dist/{chunk-YQ5ZNKOC.js → chunk-C2BFLFHE.js} +3 -3
  120. package/dist/{chunk-4XOJVIUQ.cjs → chunk-PNVSKDMV.cjs} +1 -1
  121. package/dist/{chunk-ELTL6P4A.cjs → chunk-ZCEIXRDJ.cjs} +3 -3
  122. package/dist/index.cjs +10 -10
  123. package/dist/index.d.cts +2 -2
  124. package/dist/index.d.ts +2 -2
  125. package/dist/index.js +2 -2
  126. package/dist/integration-toolkit-LMRJVLJA.js +7 -0
  127. package/dist/integration-toolkit-YMVNGSQ5.cjs +7 -0
  128. package/dist/{integration-toolkit.d-CoMi10QU.d.cts → integration-toolkit.d-Dj-tULW0.d.cts} +26 -13
  129. package/dist/{integration-toolkit.d-CoMi10QU.d.ts → integration-toolkit.d-Dj-tULW0.d.ts} +26 -13
  130. package/docs/billing.md +553 -171
  131. package/docs/integration-toolkit.md +6 -5
  132. package/package.json +1 -1
  133. package/dist/billing-C45UEPBV.cjs +0 -7
  134. package/dist/billing-IV5ABNW4.js +0 -7
  135. package/dist/integration-toolkit-GR4ZQAY5.cjs +0 -7
  136. package/dist/integration-toolkit-XGQNDLIZ.js +0 -7
@@ -1347,6 +1347,12 @@ declare namespace Components {
1347
1347
  * Return a sample of the file's first rows in `preview`. Only controls whether the sample comes BACK — the head is read either way, because that read is how an unreadable file gets refused.
1348
1348
  */
1349
1349
  include_preview?: boolean;
1350
+ /**
1351
+ * Repoint an EXISTING import at this file instead of registering a new one — same row, same id, so iterating on which file to import leaves one entry in the history rather than one per attempt.
1352
+ * Only a PENDING import may be repointed; any other status returns 409 with code `IMPORT_NOT_REPLACEABLE`. Past the first check the previous verdict is what tells the user what to fix, and a job that reached the execute phase may already have published rows under `correlation_id`.
1353
+ * An id that names nothing returns 404. It never falls back to registering a new import: a stale id must fail loudly rather than quietly produce a second one.
1354
+ */
1355
+ import_id?: string;
1350
1356
  }
1351
1357
  export interface CreateErpImportResponse {
1352
1358
  job: ErpImportJob;
@@ -2659,9 +2665,10 @@ declare namespace Components {
2659
2665
  }
2660
2666
  /**
2661
2667
  * Upload-side settings for a file_proxy use case with `direction: upload`.
2662
- * Everything about WHAT is sent lives on the outbound mapping
2663
- * (see `FileProxyDeliveryConfig`); this object only governs HOW the transfer is bounded
2664
- * and judged.
2668
+ * The surrounding file_proxy configuration owns WHAT and HOW to send: `fan_out`,
2669
+ * `file_source`, `params_mapping`, lookups, constants, auth, and steps. This nested object
2670
+ * governs upload-specific limits and how the final external response is judged. The
2671
+ * outbound mapping remains a pure pointer to the recipe (see `FileProxyDeliveryConfig`).
2665
2672
  *
2666
2673
  */
2667
2674
  export interface FileProxyUploadConfig {
@@ -2673,10 +2680,10 @@ declare namespace Components {
2673
2680
  */
2674
2681
  max_file_bytes?: number;
2675
2682
  /**
2676
- * Maximum delivery attempts per item before the delivery is marked failed and the
2677
- * message is dead-lettered. Attempts are spaced by an exponential, jittered backoff
2678
- * spanning roughly 16 hours over the default 8 attempts, so an ERP maintenance window
2679
- * does not exhaust them.
2683
+ * Maximum delivery attempts per item before the delivery is marked failed. Attempts
2684
+ * are spaced by an exponential, jittered backoff. The default 8 attempts schedule at
2685
+ * most 7 delays, totaling about 7 hours 40 minutes before jitter, so a normal ERP
2686
+ * maintenance window does not immediately exhaust them.
2680
2687
  *
2681
2688
  * Lives here rather than on the outbound delivery because how hard to retry is a
2682
2689
  * property of the transport — the same judgement as `max_file_bytes` — and the outbound
@@ -2853,9 +2860,10 @@ declare namespace Components {
2853
2860
  direction?: "download" | "upload";
2854
2861
  upload?: /**
2855
2862
  * Upload-side settings for a file_proxy use case with `direction: upload`.
2856
- * Everything about WHAT is sent lives on the outbound mapping
2857
- * (see `FileProxyDeliveryConfig`); this object only governs HOW the transfer is bounded
2858
- * and judged.
2863
+ * The surrounding file_proxy configuration owns WHAT and HOW to send: `fan_out`,
2864
+ * `file_source`, `params_mapping`, lookups, constants, auth, and steps. This nested object
2865
+ * governs upload-specific limits and how the final external response is judged. The
2866
+ * outbound mapping remains a pure pointer to the recipe (see `FileProxyDeliveryConfig`).
2859
2867
  *
2860
2868
  */
2861
2869
  FileProxyUploadConfig;
@@ -5345,7 +5353,7 @@ declare namespace Components {
5345
5353
  */
5346
5354
  export interface OutboundMapping {
5347
5355
  /**
5348
- * Unique identifier for this mapping
5356
+ * Unique identifier for this mapping; generated by the API when omitted
5349
5357
  */
5350
5358
  id?: string; // uuid
5351
5359
  /**
@@ -7474,9 +7482,12 @@ declare namespace Paths {
7474
7482
  namespace CreateErpImport {
7475
7483
  export type RequestBody = /* Register an already-uploaded file as an import. The use case is chosen later, via `:validate` — upload and interpretation are separate decisions. */ Components.Schemas.CreateErpImportRequest;
7476
7484
  namespace Responses {
7485
+ export type $200 = Components.Schemas.CreateErpImportResponse;
7477
7486
  export type $201 = Components.Schemas.CreateErpImportResponse;
7478
7487
  export type $400 = Components.Responses.BadRequest;
7479
7488
  export type $403 = Components.Responses.Forbidden;
7489
+ export type $404 = Components.Responses.NotFound;
7490
+ export type $409 = Components.Responses.Conflict;
7480
7491
  export type $500 = Components.Responses.InternalServerError;
7481
7492
  }
7482
7493
  }
@@ -9358,12 +9369,13 @@ interface OperationMethods {
9358
9369
  * createErpImport - createErpImport
9359
9370
  *
9360
9371
  * Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.
9372
+ * Pass `import_id` to repoint an existing PENDING import at a different file instead, keeping its id and its place in the history.
9361
9373
  */
9362
9374
  'createErpImport'(
9363
9375
  parameters?: Parameters<UnknownParamsObject> | null,
9364
9376
  data?: Paths.CreateErpImport.RequestBody,
9365
9377
  config?: AxiosRequestConfig
9366
- ): OperationResponse<Paths.CreateErpImport.Responses.$201>
9378
+ ): OperationResponse<Paths.CreateErpImport.Responses.$200 | Paths.CreateErpImport.Responses.$201>
9367
9379
  /**
9368
9380
  * getErpImport - getErpImport
9369
9381
  *
@@ -10305,12 +10317,13 @@ interface PathsDictionary {
10305
10317
  * createErpImport - createErpImport
10306
10318
  *
10307
10319
  * Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.
10320
+ * Pass `import_id` to repoint an existing PENDING import at a different file instead, keeping its id and its place in the history.
10308
10321
  */
10309
10322
  'post'(
10310
10323
  parameters?: Parameters<UnknownParamsObject> | null,
10311
10324
  data?: Paths.CreateErpImport.RequestBody,
10312
10325
  config?: AxiosRequestConfig
10313
- ): OperationResponse<Paths.CreateErpImport.Responses.$201>
10326
+ ): OperationResponse<Paths.CreateErpImport.Responses.$200 | Paths.CreateErpImport.Responses.$201>
10314
10327
  /**
10315
10328
  * listErpImports - listErpImports
10316
10329
  *
@@ -1347,6 +1347,12 @@ declare namespace Components {
1347
1347
  * Return a sample of the file's first rows in `preview`. Only controls whether the sample comes BACK — the head is read either way, because that read is how an unreadable file gets refused.
1348
1348
  */
1349
1349
  include_preview?: boolean;
1350
+ /**
1351
+ * Repoint an EXISTING import at this file instead of registering a new one — same row, same id, so iterating on which file to import leaves one entry in the history rather than one per attempt.
1352
+ * Only a PENDING import may be repointed; any other status returns 409 with code `IMPORT_NOT_REPLACEABLE`. Past the first check the previous verdict is what tells the user what to fix, and a job that reached the execute phase may already have published rows under `correlation_id`.
1353
+ * An id that names nothing returns 404. It never falls back to registering a new import: a stale id must fail loudly rather than quietly produce a second one.
1354
+ */
1355
+ import_id?: string;
1350
1356
  }
1351
1357
  export interface CreateErpImportResponse {
1352
1358
  job: ErpImportJob;
@@ -2659,9 +2665,10 @@ declare namespace Components {
2659
2665
  }
2660
2666
  /**
2661
2667
  * Upload-side settings for a file_proxy use case with `direction: upload`.
2662
- * Everything about WHAT is sent lives on the outbound mapping
2663
- * (see `FileProxyDeliveryConfig`); this object only governs HOW the transfer is bounded
2664
- * and judged.
2668
+ * The surrounding file_proxy configuration owns WHAT and HOW to send: `fan_out`,
2669
+ * `file_source`, `params_mapping`, lookups, constants, auth, and steps. This nested object
2670
+ * governs upload-specific limits and how the final external response is judged. The
2671
+ * outbound mapping remains a pure pointer to the recipe (see `FileProxyDeliveryConfig`).
2665
2672
  *
2666
2673
  */
2667
2674
  export interface FileProxyUploadConfig {
@@ -2673,10 +2680,10 @@ declare namespace Components {
2673
2680
  */
2674
2681
  max_file_bytes?: number;
2675
2682
  /**
2676
- * Maximum delivery attempts per item before the delivery is marked failed and the
2677
- * message is dead-lettered. Attempts are spaced by an exponential, jittered backoff
2678
- * spanning roughly 16 hours over the default 8 attempts, so an ERP maintenance window
2679
- * does not exhaust them.
2683
+ * Maximum delivery attempts per item before the delivery is marked failed. Attempts
2684
+ * are spaced by an exponential, jittered backoff. The default 8 attempts schedule at
2685
+ * most 7 delays, totaling about 7 hours 40 minutes before jitter, so a normal ERP
2686
+ * maintenance window does not immediately exhaust them.
2680
2687
  *
2681
2688
  * Lives here rather than on the outbound delivery because how hard to retry is a
2682
2689
  * property of the transport — the same judgement as `max_file_bytes` — and the outbound
@@ -2853,9 +2860,10 @@ declare namespace Components {
2853
2860
  direction?: "download" | "upload";
2854
2861
  upload?: /**
2855
2862
  * Upload-side settings for a file_proxy use case with `direction: upload`.
2856
- * Everything about WHAT is sent lives on the outbound mapping
2857
- * (see `FileProxyDeliveryConfig`); this object only governs HOW the transfer is bounded
2858
- * and judged.
2863
+ * The surrounding file_proxy configuration owns WHAT and HOW to send: `fan_out`,
2864
+ * `file_source`, `params_mapping`, lookups, constants, auth, and steps. This nested object
2865
+ * governs upload-specific limits and how the final external response is judged. The
2866
+ * outbound mapping remains a pure pointer to the recipe (see `FileProxyDeliveryConfig`).
2859
2867
  *
2860
2868
  */
2861
2869
  FileProxyUploadConfig;
@@ -5345,7 +5353,7 @@ declare namespace Components {
5345
5353
  */
5346
5354
  export interface OutboundMapping {
5347
5355
  /**
5348
- * Unique identifier for this mapping
5356
+ * Unique identifier for this mapping; generated by the API when omitted
5349
5357
  */
5350
5358
  id?: string; // uuid
5351
5359
  /**
@@ -7474,9 +7482,12 @@ declare namespace Paths {
7474
7482
  namespace CreateErpImport {
7475
7483
  export type RequestBody = /* Register an already-uploaded file as an import. The use case is chosen later, via `:validate` — upload and interpretation are separate decisions. */ Components.Schemas.CreateErpImportRequest;
7476
7484
  namespace Responses {
7485
+ export type $200 = Components.Schemas.CreateErpImportResponse;
7477
7486
  export type $201 = Components.Schemas.CreateErpImportResponse;
7478
7487
  export type $400 = Components.Responses.BadRequest;
7479
7488
  export type $403 = Components.Responses.Forbidden;
7489
+ export type $404 = Components.Responses.NotFound;
7490
+ export type $409 = Components.Responses.Conflict;
7480
7491
  export type $500 = Components.Responses.InternalServerError;
7481
7492
  }
7482
7493
  }
@@ -9358,12 +9369,13 @@ interface OperationMethods {
9358
9369
  * createErpImport - createErpImport
9359
9370
  *
9360
9371
  * Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.
9372
+ * Pass `import_id` to repoint an existing PENDING import at a different file instead, keeping its id and its place in the history.
9361
9373
  */
9362
9374
  'createErpImport'(
9363
9375
  parameters?: Parameters<UnknownParamsObject> | null,
9364
9376
  data?: Paths.CreateErpImport.RequestBody,
9365
9377
  config?: AxiosRequestConfig
9366
- ): OperationResponse<Paths.CreateErpImport.Responses.$201>
9378
+ ): OperationResponse<Paths.CreateErpImport.Responses.$200 | Paths.CreateErpImport.Responses.$201>
9367
9379
  /**
9368
9380
  * getErpImport - getErpImport
9369
9381
  *
@@ -10305,12 +10317,13 @@ interface PathsDictionary {
10305
10317
  * createErpImport - createErpImport
10306
10318
  *
10307
10319
  * Register an already-uploaded file (S3 ref) as a pricing-file import job. Returns the job and a file preview. Nothing runs yet: no use case is chosen and no validation starts here. Optionally rank candidates with POST /v2/erp/imports/{importId}:suggest-use-cases, then start validation with POST /v2/erp/imports/{importId}:validate.
10320
+ * Pass `import_id` to repoint an existing PENDING import at a different file instead, keeping its id and its place in the history.
10308
10321
  */
10309
10322
  'post'(
10310
10323
  parameters?: Parameters<UnknownParamsObject> | null,
10311
10324
  data?: Paths.CreateErpImport.RequestBody,
10312
10325
  config?: AxiosRequestConfig
10313
- ): OperationResponse<Paths.CreateErpImport.Responses.$201>
10326
+ ): OperationResponse<Paths.CreateErpImport.Responses.$200 | Paths.CreateErpImport.Responses.$201>
10314
10327
  /**
10315
10328
  * listErpImports - listErpImports
10316
10329
  *