@epilot/sdk 2.15.14 → 2.15.15

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 (126) hide show
  1. package/definitions/integration-toolkit-runtime.json +1 -1
  2. package/definitions/integration-toolkit.json +492 -2
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +6 -6
  28. package/dist/apis/customer-portal.js +1 -1
  29. package/dist/apis/dashboard.cjs +6 -6
  30. package/dist/apis/dashboard.js +1 -1
  31. package/dist/apis/data-governance.cjs +6 -6
  32. package/dist/apis/data-governance.js +1 -1
  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/event-catalog.cjs +6 -6
  50. package/dist/apis/event-catalog.js +1 -1
  51. package/dist/apis/file.cjs +6 -6
  52. package/dist/apis/file.js +1 -1
  53. package/dist/apis/iban.cjs +6 -6
  54. package/dist/apis/iban.js +1 -1
  55. package/dist/apis/integration-toolkit.cjs +8 -8
  56. package/dist/apis/integration-toolkit.d.cts +2 -2
  57. package/dist/apis/integration-toolkit.d.ts +2 -2
  58. package/dist/apis/integration-toolkit.js +2 -2
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/snapshot.cjs +6 -6
  90. package/dist/apis/snapshot.js +1 -1
  91. package/dist/apis/submission.cjs +6 -6
  92. package/dist/apis/submission.js +1 -1
  93. package/dist/apis/target.cjs +6 -6
  94. package/dist/apis/target.js +1 -1
  95. package/dist/apis/targeting.cjs +6 -6
  96. package/dist/apis/targeting.js +1 -1
  97. package/dist/apis/template-variables.cjs +6 -6
  98. package/dist/apis/template-variables.js +1 -1
  99. package/dist/apis/user.cjs +6 -6
  100. package/dist/apis/user.js +1 -1
  101. package/dist/apis/validation-rules.cjs +6 -6
  102. package/dist/apis/validation-rules.js +1 -1
  103. package/dist/apis/webhooks.cjs +6 -6
  104. package/dist/apis/webhooks.js +1 -1
  105. package/dist/apis/workflow-definition.cjs +6 -6
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/{chunk-7YXY2AFM.cjs → chunk-QXKCYTF3.cjs} +1 -1
  110. package/dist/{chunk-U6KIZOOU.js → chunk-RJHXXGJ3.js} +1 -1
  111. package/dist/{chunk-SVVKPKJX.js → chunk-UCCKYJMU.js} +2 -2
  112. package/dist/{chunk-WQ4S6ZH3.cjs → chunk-X3MPAK4C.cjs} +2 -2
  113. package/dist/index.cjs +10 -10
  114. package/dist/index.d.cts +1 -1
  115. package/dist/index.d.ts +1 -1
  116. package/dist/index.js +2 -2
  117. package/dist/integration-toolkit-DEKRQV2C.js +7 -0
  118. package/dist/integration-toolkit-GPRIODXO.cjs +7 -0
  119. package/dist/{integration-toolkit-runtime-SX6HZTRB.cjs → integration-toolkit-runtime-PI5G3OXL.cjs} +2 -2
  120. package/dist/{integration-toolkit-runtime-O4742UZV.js → integration-toolkit-runtime-VUOXZ6HU.js} +1 -1
  121. package/dist/{integration-toolkit.d-BUCHo8ZQ.d.cts → integration-toolkit.d-DUJR0HBY.d.cts} +332 -1
  122. package/dist/{integration-toolkit.d-BUCHo8ZQ.d.ts → integration-toolkit.d-DUJR0HBY.d.ts} +332 -1
  123. package/docs/integration-toolkit.md +367 -0
  124. package/package.json +1 -1
  125. package/dist/integration-toolkit-MQ6PTYCJ.cjs +0 -7
  126. package/dist/integration-toolkit-Y43WV22G.js +0 -7
@@ -6,6 +6,7 @@ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, Ope
6
6
  declare namespace Components {
7
7
  namespace Responses {
8
8
  export type BadRequest = Schemas.ErrorResponseBase;
9
+ export type Conflict = Schemas.ErrorResponseBase;
9
10
  export interface ERPUpdatesResponse {
10
11
  results?: {
11
12
  /**
@@ -159,6 +160,35 @@ declare namespace Components {
159
160
  has_more?: boolean;
160
161
  }
161
162
  export interface ReplayEventsResponse {
163
+ /**
164
+ * Number of events actually queued for re-processing.
165
+ * example:
166
+ * 2
167
+ */
168
+ replayed: number;
169
+ /**
170
+ * One entry per requested event id, in request order.
171
+ */
172
+ results: {
173
+ /**
174
+ * The requested (source) event ID.
175
+ */
176
+ event_id: string;
177
+ /**
178
+ * Outcome for this event. `success`/`queued` means it was enqueued for re-processing. `not_found` means no inbound event with that ID exists for the organization. `skipped` means it was deduplicated, `ignored` means no enabled use case matched it, and `error` means it could not be queued (see `message`).
179
+ *
180
+ */
181
+ status: "success" | "queued" | "skipped" | "ignored" | "not_found" | "error";
182
+ /**
183
+ * The new event ID assigned to the replayed event. Use it to follow the replay in monitoring.
184
+ *
185
+ */
186
+ replay_event_id?: string;
187
+ /**
188
+ * Human-readable detail for this outcome.
189
+ */
190
+ message?: string;
191
+ }[];
162
192
  /**
163
193
  * List of event IDs for which replay was requested
164
194
  */
@@ -1308,6 +1338,17 @@ declare namespace Components {
1308
1338
  */
1309
1339
  latest_types_package_name?: string;
1310
1340
  }
1341
+ export interface CreateErpImportRequest {
1342
+ s3_reference: S3Reference;
1343
+ integration_id: string;
1344
+ use_case_slug?: string;
1345
+ }
1346
+ export interface CreateErpImportResponse {
1347
+ /**
1348
+ * `imp_{ULID}` — time-ordered, also used as the job's correlation_id.
1349
+ */
1350
+ import_id: string;
1351
+ }
1311
1352
  export interface CreateFileProxyUseCaseRequest {
1312
1353
  /**
1313
1354
  * Use case name
@@ -1920,6 +1961,93 @@ declare namespace Components {
1920
1961
  */
1921
1962
  group_id?: string;
1922
1963
  };
1964
+ /**
1965
+ * Why the import failed — present if and only if status = FAILED.
1966
+ */
1967
+ export interface ErpImportError {
1968
+ /**
1969
+ * VALIDATION_BLOCKED = blocking row issues (see `validation`); PROCESSING_ERROR = a named, deterministic failure — retrying the same file cannot help; INTERNAL_ERROR = crashed or never started, so retry.
1970
+ */
1971
+ type: "VALIDATION_BLOCKED" | "PROCESSING_ERROR" | "INTERNAL_ERROR";
1972
+ /**
1973
+ * User-facing explanation of `type`.
1974
+ */
1975
+ message: string;
1976
+ }
1977
+ export interface ErpImportJob {
1978
+ /**
1979
+ * `imp_{ULID}` — time-ordered, also used as the job's correlation_id.
1980
+ */
1981
+ import_id: string;
1982
+ org_id: string;
1983
+ created_by?: string;
1984
+ integration_id: string;
1985
+ /**
1986
+ * The inbound use case whose mapping drives both phases.
1987
+ */
1988
+ use_case_slug?: string;
1989
+ format: "csv" | "xlsx";
1990
+ /**
1991
+ * PENDING → VALIDATING → READY → PROCESSING → IMPORTED, with FAILED reachable from any working status, and CANCELLING → CANCELLED reachable from VALIDATING or PROCESSING via :abort. IMPORTED, FAILED and CANCELLED are terminal and final.
1992
+ * IMPORTED means every row was handed to the platform, not that the platform finished — per-row outcomes live in monitoring, filtered by correlation_id. A file that fails validation is FAILED with error.type = VALIDATION_BLOCKED.
1993
+ * READY is legitimately idle for as long as the user takes to confirm, so it carries no running work and never goes stale.
1994
+ * CANCELLING is transient and cooperative: the abort has been recorded but the worker only notices at its next batch boundary. Rows already published stay published — a stop is not a rollback.
1995
+ */
1996
+ status: "PENDING" | "VALIDATING" | "READY" | "PROCESSING" | "IMPORTED" | "FAILED" | "CANCELLING" | "CANCELLED";
1997
+ s3_input_ref: S3Reference;
1998
+ validation?: /* Validate-phase summary: what the file will create, and whether it may be confirmed. Absent until the validate phase completes. No per-row detail is kept — a rejected file is corrected and imported again. */ ErpImportValidation;
1999
+ progress?: /**
2000
+ * How far the currently running phase has got. Written at every batch boundary, so it advances during long runs rather than only at the end.
2001
+ * `total_rows` is ABSENT during the validate phase until the file has been read to the end — there is deliberately no counting pass, since that would be a second unbounded read of the whole file. Render an indeterminate indicator while it is missing: dividing by a missing total yields a determinate bar pinned at 0%, which reads as a hung import.
2002
+ */
2003
+ ErpImportProgress;
2004
+ error?: /* Why the import failed — present if and only if status = FAILED. */ ErpImportError;
2005
+ /**
2006
+ * Scopes this run in monitoring. Always equal to `import_id`.
2007
+ */
2008
+ correlation_id?: string;
2009
+ activity_id?: string;
2010
+ created_at: string; // date-time
2011
+ updated_at: string; // date-time
2012
+ }
2013
+ export interface ErpImportList {
2014
+ results: ErpImportJob[];
2015
+ /**
2016
+ * Cursor for the next page, or null when there are no more rows.
2017
+ */
2018
+ next_cursor?: string | null;
2019
+ }
2020
+ /**
2021
+ * How far the currently running phase has got. Written at every batch boundary, so it advances during long runs rather than only at the end.
2022
+ * `total_rows` is ABSENT during the validate phase until the file has been read to the end — there is deliberately no counting pass, since that would be a second unbounded read of the whole file. Render an indeterminate indicator while it is missing: dividing by a missing total yields a determinate bar pinned at 0%, which reads as a hung import.
2023
+ */
2024
+ export interface ErpImportProgress {
2025
+ /**
2026
+ * Rows fully processed. An exact "the first N rows are done" watermark, not an estimate — it only advances once a batch has been completely handled.
2027
+ */
2028
+ processed_rows: number;
2029
+ /**
2030
+ * Rows in the file. Known only once a phase has read to EOF; the execute phase has it from the start, because validate recorded it first.
2031
+ */
2032
+ total_rows?: number;
2033
+ }
2034
+ /**
2035
+ * Validate-phase summary: what the file will create, and whether it may be confirmed. Absent until the validate phase completes. No per-row detail is kept — a rejected file is corrected and imported again.
2036
+ */
2037
+ export interface ErpImportValidation {
2038
+ /**
2039
+ * Data rows read from the file.
2040
+ */
2041
+ total_rows: number;
2042
+ blocking: number;
2043
+ warnings: number;
2044
+ /**
2045
+ * Distinct entities the file expresses, keyed by entity slug.
2046
+ */
2047
+ entities: {
2048
+ [name: string]: number;
2049
+ };
2050
+ }
1923
2051
  export interface ErpUpdatesEventsV2Request {
1924
2052
  /**
1925
2053
  * UUID that identifies the integration configuration to use
@@ -5608,6 +5736,10 @@ declare namespace Components {
5608
5736
  */
5609
5737
  buckets?: RuleBaselineBucket[] | null;
5610
5738
  }
5739
+ export interface S3Reference {
5740
+ bucket: string;
5741
+ key: string;
5742
+ }
5611
5743
  export interface SecureProxyRequest {
5612
5744
  /**
5613
5745
  * Integration ID that owns the secure_proxy use case
@@ -6455,6 +6587,21 @@ declare namespace Components {
6455
6587
  }
6456
6588
  }
6457
6589
  declare namespace Paths {
6590
+ namespace AbortErpImport {
6591
+ namespace Parameters {
6592
+ export type ImportId = string;
6593
+ }
6594
+ export interface PathParameters {
6595
+ importId: Parameters.ImportId;
6596
+ }
6597
+ namespace Responses {
6598
+ export type $202 = Components.Schemas.ErpImportJob;
6599
+ export type $403 = Components.Responses.Forbidden;
6600
+ export type $404 = Components.Responses.NotFound;
6601
+ export type $409 = Components.Responses.Conflict;
6602
+ export type $500 = Components.Responses.InternalServerError;
6603
+ }
6604
+ }
6458
6605
  namespace AckOutboundMessages {
6459
6606
  namespace Parameters {
6460
6607
  export type IntegrationId = string; // uuid
@@ -6509,6 +6656,15 @@ declare namespace Paths {
6509
6656
  export type $500 = Components.Responses.InternalServerError;
6510
6657
  }
6511
6658
  }
6659
+ namespace CreateErpImport {
6660
+ export type RequestBody = Components.Schemas.CreateErpImportRequest;
6661
+ namespace Responses {
6662
+ export type $202 = Components.Schemas.CreateErpImportResponse;
6663
+ export type $400 = Components.Responses.BadRequest;
6664
+ export type $403 = Components.Responses.Forbidden;
6665
+ export type $500 = Components.Responses.InternalServerError;
6666
+ }
6667
+ }
6512
6668
  namespace CreateIntegration {
6513
6669
  export type RequestBody = Components.Schemas.CreateIntegrationRequest;
6514
6670
  namespace Responses {
@@ -6621,6 +6777,21 @@ declare namespace Paths {
6621
6777
  export type $500 = Components.Responses.InternalServerError;
6622
6778
  }
6623
6779
  }
6780
+ namespace ExecuteErpImport {
6781
+ namespace Parameters {
6782
+ export type ImportId = string;
6783
+ }
6784
+ export interface PathParameters {
6785
+ importId: Parameters.ImportId;
6786
+ }
6787
+ namespace Responses {
6788
+ export type $200 = Components.Schemas.ErpImportJob;
6789
+ export type $403 = Components.Responses.Forbidden;
6790
+ export type $404 = Components.Responses.NotFound;
6791
+ export type $409 = Components.Responses.Conflict;
6792
+ export type $500 = Components.Responses.InternalServerError;
6793
+ }
6794
+ }
6624
6795
  namespace GenerateTypes {
6625
6796
  namespace Parameters {
6626
6797
  export type IntegrationId = string; // uuid
@@ -6668,6 +6839,20 @@ declare namespace Paths {
6668
6839
  export type $500 = Components.Responses.InternalServerError;
6669
6840
  }
6670
6841
  }
6842
+ namespace GetErpImport {
6843
+ namespace Parameters {
6844
+ export type ImportId = string;
6845
+ }
6846
+ export interface PathParameters {
6847
+ importId: Parameters.ImportId;
6848
+ }
6849
+ namespace Responses {
6850
+ export type $200 = Components.Schemas.ErpImportJob;
6851
+ export type $403 = Components.Responses.Forbidden;
6852
+ export type $404 = Components.Responses.NotFound;
6853
+ export type $500 = Components.Responses.InternalServerError;
6854
+ }
6855
+ }
6671
6856
  namespace GetIntegration {
6672
6857
  namespace Parameters {
6673
6858
  export type IntegrationId = string; // uuid
@@ -6870,6 +7055,22 @@ declare namespace Paths {
6870
7055
  export type $500 = Components.Responses.InternalServerError;
6871
7056
  }
6872
7057
  }
7058
+ namespace ListErpImports {
7059
+ namespace Parameters {
7060
+ export type Cursor = string;
7061
+ export type Limit = number;
7062
+ }
7063
+ export interface QueryParameters {
7064
+ limit?: Parameters.Limit;
7065
+ cursor?: Parameters.Cursor;
7066
+ }
7067
+ namespace Responses {
7068
+ export type $200 = Components.Schemas.ErpImportList;
7069
+ export type $400 = Components.Responses.BadRequest;
7070
+ export type $403 = Components.Responses.Forbidden;
7071
+ export type $500 = Components.Responses.InternalServerError;
7072
+ }
7073
+ }
6873
7074
  namespace ListIntegrations {
6874
7075
  namespace Responses {
6875
7076
  export interface $200 {
@@ -8153,6 +8354,63 @@ interface OperationMethods {
8153
8354
  data?: Paths.CommitTypes.RequestBody,
8154
8355
  config?: AxiosRequestConfig
8155
8356
  ): OperationResponse<Paths.CommitTypes.Responses.$200>
8357
+ /**
8358
+ * listErpImports - listErpImports
8359
+ *
8360
+ * List recent pricing-file import jobs for the org, newest first.
8361
+ *
8362
+ * Pass `next_cursor` back as `cursor` for the next page. A page can be
8363
+ * shorter than `limit` and still have more behind it, so stop on
8364
+ * `next_cursor: null`.
8365
+ *
8366
+ */
8367
+ 'listErpImports'(
8368
+ parameters?: Parameters<Paths.ListErpImports.QueryParameters> | null,
8369
+ data?: any,
8370
+ config?: AxiosRequestConfig
8371
+ ): OperationResponse<Paths.ListErpImports.Responses.$200>
8372
+ /**
8373
+ * createErpImport - createErpImport
8374
+ *
8375
+ * Create a pricing-file import job from an already-uploaded file (S3 ref). Returns a job id and starts the validate phase asynchronously — poll GET /v2/erp/imports/{importId}.
8376
+ */
8377
+ 'createErpImport'(
8378
+ parameters?: Parameters<UnknownParamsObject> | null,
8379
+ data?: Paths.CreateErpImport.RequestBody,
8380
+ config?: AxiosRequestConfig
8381
+ ): OperationResponse<Paths.CreateErpImport.Responses.$202>
8382
+ /**
8383
+ * getErpImport - getErpImport
8384
+ *
8385
+ * Get a pricing-file import job (status, counts, result links).
8386
+ */
8387
+ 'getErpImport'(
8388
+ parameters?: Parameters<Paths.GetErpImport.PathParameters> | null,
8389
+ data?: any,
8390
+ config?: AxiosRequestConfig
8391
+ ): OperationResponse<Paths.GetErpImport.Responses.$200>
8392
+ /**
8393
+ * executeErpImport - executeErpImport
8394
+ *
8395
+ * Confirm and run the write phase of a validated import. Only a READY job may be executed; any other status returns 409.
8396
+ */
8397
+ 'executeErpImport'(
8398
+ parameters?: Parameters<Paths.ExecuteErpImport.PathParameters> | null,
8399
+ data?: any,
8400
+ config?: AxiosRequestConfig
8401
+ ): OperationResponse<Paths.ExecuteErpImport.Responses.$200>
8402
+ /**
8403
+ * abortErpImport - abortErpImport
8404
+ *
8405
+ * Ask a running import to stop. Valid while the job is VALIDATING or PROCESSING; any other status returns 409.
8406
+ * The stop is cooperative: the job passes through CANCELLING and typically reaches CANCELLED within seconds.
8407
+ * Rows already published to the platform are **kept**: this is a stop, not a rollback. Aborting during VALIDATING has published nothing, so it is always clean; aborting during PROCESSING leaves a partial import, and the rows that landed are visible in monitoring under the job's correlation_id.
8408
+ */
8409
+ 'abortErpImport'(
8410
+ parameters?: Parameters<Paths.AbortErpImport.PathParameters> | null,
8411
+ data?: any,
8412
+ config?: AxiosRequestConfig
8413
+ ): OperationResponse<Paths.AbortErpImport.Responses.$202>
8156
8414
  }
8157
8415
 
8158
8416
  interface PathsDictionary {
@@ -8973,6 +9231,71 @@ interface PathsDictionary {
8973
9231
  config?: AxiosRequestConfig
8974
9232
  ): OperationResponse<Paths.CommitTypes.Responses.$200>
8975
9233
  }
9234
+ ['/v2/erp/imports']: {
9235
+ /**
9236
+ * createErpImport - createErpImport
9237
+ *
9238
+ * Create a pricing-file import job from an already-uploaded file (S3 ref). Returns a job id and starts the validate phase asynchronously — poll GET /v2/erp/imports/{importId}.
9239
+ */
9240
+ 'post'(
9241
+ parameters?: Parameters<UnknownParamsObject> | null,
9242
+ data?: Paths.CreateErpImport.RequestBody,
9243
+ config?: AxiosRequestConfig
9244
+ ): OperationResponse<Paths.CreateErpImport.Responses.$202>
9245
+ /**
9246
+ * listErpImports - listErpImports
9247
+ *
9248
+ * List recent pricing-file import jobs for the org, newest first.
9249
+ *
9250
+ * Pass `next_cursor` back as `cursor` for the next page. A page can be
9251
+ * shorter than `limit` and still have more behind it, so stop on
9252
+ * `next_cursor: null`.
9253
+ *
9254
+ */
9255
+ 'get'(
9256
+ parameters?: Parameters<Paths.ListErpImports.QueryParameters> | null,
9257
+ data?: any,
9258
+ config?: AxiosRequestConfig
9259
+ ): OperationResponse<Paths.ListErpImports.Responses.$200>
9260
+ }
9261
+ ['/v2/erp/imports/{importId}']: {
9262
+ /**
9263
+ * getErpImport - getErpImport
9264
+ *
9265
+ * Get a pricing-file import job (status, counts, result links).
9266
+ */
9267
+ 'get'(
9268
+ parameters?: Parameters<Paths.GetErpImport.PathParameters> | null,
9269
+ data?: any,
9270
+ config?: AxiosRequestConfig
9271
+ ): OperationResponse<Paths.GetErpImport.Responses.$200>
9272
+ }
9273
+ ['/v2/erp/imports/{importId}:execute']: {
9274
+ /**
9275
+ * executeErpImport - executeErpImport
9276
+ *
9277
+ * Confirm and run the write phase of a validated import. Only a READY job may be executed; any other status returns 409.
9278
+ */
9279
+ 'post'(
9280
+ parameters?: Parameters<Paths.ExecuteErpImport.PathParameters> | null,
9281
+ data?: any,
9282
+ config?: AxiosRequestConfig
9283
+ ): OperationResponse<Paths.ExecuteErpImport.Responses.$200>
9284
+ }
9285
+ ['/v2/erp/imports/{importId}:abort']: {
9286
+ /**
9287
+ * abortErpImport - abortErpImport
9288
+ *
9289
+ * Ask a running import to stop. Valid while the job is VALIDATING or PROCESSING; any other status returns 409.
9290
+ * The stop is cooperative: the job passes through CANCELLING and typically reaches CANCELLED within seconds.
9291
+ * Rows already published to the platform are **kept**: this is a stop, not a rollback. Aborting during VALIDATING has published nothing, so it is always clean; aborting during PROCESSING leaves a partial import, and the rows that landed are visible in monitoring under the job's correlation_id.
9292
+ */
9293
+ 'post'(
9294
+ parameters?: Parameters<Paths.AbortErpImport.PathParameters> | null,
9295
+ data?: any,
9296
+ config?: AxiosRequestConfig
9297
+ ): OperationResponse<Paths.AbortErpImport.Responses.$202>
9298
+ }
8976
9299
  }
8977
9300
 
8978
9301
  type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -8986,6 +9309,8 @@ type AutoRefreshSettings = Components.Schemas.AutoRefreshSettings;
8986
9309
  type CommitTypesRequest = Components.Schemas.CommitTypesRequest;
8987
9310
  type CommitTypesResponse = Components.Schemas.CommitTypesResponse;
8988
9311
  type ConnectorConfig = Components.Schemas.ConnectorConfig;
9312
+ type CreateErpImportRequest = Components.Schemas.CreateErpImportRequest;
9313
+ type CreateErpImportResponse = Components.Schemas.CreateErpImportResponse;
8989
9314
  type CreateFileProxyUseCaseRequest = Components.Schemas.CreateFileProxyUseCaseRequest;
8990
9315
  type CreateInboundUseCaseRequest = Components.Schemas.CreateInboundUseCaseRequest;
8991
9316
  type CreateIntegrationRequest = Components.Schemas.CreateIntegrationRequest;
@@ -9008,6 +9333,11 @@ type EnvVarRefConfig = Components.Schemas.EnvVarRefConfig;
9008
9333
  type EnvironmentFieldConfig = Components.Schemas.EnvironmentFieldConfig;
9009
9334
  type ErpEvent = Components.Schemas.ErpEvent;
9010
9335
  type ErpEventV3 = Components.Schemas.ErpEventV3;
9336
+ type ErpImportError = Components.Schemas.ErpImportError;
9337
+ type ErpImportJob = Components.Schemas.ErpImportJob;
9338
+ type ErpImportList = Components.Schemas.ErpImportList;
9339
+ type ErpImportProgress = Components.Schemas.ErpImportProgress;
9340
+ type ErpImportValidation = Components.Schemas.ErpImportValidation;
9011
9341
  type ErpUpdatesEventsV2Request = Components.Schemas.ErpUpdatesEventsV2Request;
9012
9342
  type ErpUpdatesEventsV3Request = Components.Schemas.ErpUpdatesEventsV3Request;
9013
9343
  type ErrorResponseBase = Components.Schemas.ErrorResponseBase;
@@ -9113,6 +9443,7 @@ type RepeatableFieldType = Components.Schemas.RepeatableFieldType;
9113
9443
  type ReplayEventsRequest = Components.Schemas.ReplayEventsRequest;
9114
9444
  type RuleBaselineBucket = Components.Schemas.RuleBaselineBucket;
9115
9445
  type RuleBaselineStatus = Components.Schemas.RuleBaselineStatus;
9446
+ type S3Reference = Components.Schemas.S3Reference;
9116
9447
  type SecureProxyRequest = Components.Schemas.SecureProxyRequest;
9117
9448
  type SecureProxyResponse = Components.Schemas.SecureProxyResponse;
9118
9449
  type SecureProxySummary = Components.Schemas.SecureProxySummary;
@@ -9151,4 +9482,4 @@ type UseCaseTypePreview = Components.Schemas.UseCaseTypePreview;
9151
9482
  type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
9152
9483
  type WebhookStatus = Components.Schemas.WebhookStatus;
9153
9484
 
9154
- export { type GetMonitoringStatsRequest as $, type AccessLogEntry as A, type EnvironmentFieldConfig as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type ErpEvent as F, type ErpEventV3 as G, type ErpUpdatesEventsV2Request as H, type ErpUpdatesEventsV3Request as I, type ErrorResponseBase as J, type ExternalMonitoringSpan as K, type FileProxyAuth as L, type FileProxyParam as M, type FileProxyResponseConfig as N, type OperationMethods as O, Paths as P, type FileProxySecureProxyAttachment as Q, type FileProxyStep as R, type FileProxyUrlConfig as S, type FileProxyUrlParam as T, type FileProxyUrlParams as U, type FileProxyUseCase as V, type FileProxyUseCaseConfiguration as W, type FileProxyUseCaseHistoryEntry as X, type GenerateTypesPreviewResponse as Y, type GenerateTypesRequest as Z, type GenerateTypesResponse as _, Components as a, type PollOutboundMessagesResponse as a$, type GetMonitoringStatsV2Request as a0, type GetMonitoringTimeSeriesRequest as a1, type GetMonitoringTimeSeriesV2Request as a2, type InboundIntegrationEventConfiguration as a3, type InboundMonitoringEvent as a4, type InboundUseCase as a5, type InboundUseCaseHistoryEntry as a6, type IngestExternalMonitoringEventsRequest as a7, type IngestExternalMonitoringEventsResponse as a8, type Integration as a9, type MeterUniqueIdsConfig as aA, type MonitoringEventV2 as aB, type MonitoringStats as aC, type MonitoringStatsV2 as aD, type MonitoringTraceResponse as aE, type NotificationChannelSet as aF, type NotificationDigestConfig as aG, type NotificationHistoryItem as aH, type NotificationHistoryResponse as aI, type NotificationRecipient as aJ, type NotificationRule as aK, type NotificationRuleStatus as aL, type NotificationStatusResponse as aM, type OutboundConflict as aN, type OutboundDlqListResponse as aO, type OutboundDlqMessage as aP, type OutboundIntegrationEventConfiguration as aQ, type OutboundMapping as aR, type OutboundMessage as aS, type OutboundMonitoringEvent as aT, type OutboundPollStatus as aU, type OutboundStatusResponse as aV, type OutboundUseCase as aW, type OutboundUseCaseHistoryEntry as aX, type OutboundUseCaseStatus as aY, type PollDeliveryConfig as aZ, type PollOutboundMessagesRequest as a_, type IntegrationAppMapping as aa, type IntegrationConfigurationV1 as ab, type IntegrationConfigurationV2 as ac, type IntegrationEditableFields as ad, type IntegrationEntity as ae, type IntegrationEntityField as af, type IntegrationFieldV1 as ag, type IntegrationMeterReading as ah, type IntegrationNotificationConfig as ai, type IntegrationObjectV1 as aj, type IntegrationSettings as ak, type IntegrationWithUseCases as al, type ManagedCallAuth as am, type ManagedCallErrorResponse as an, type ManagedCallExecuteRequest as ao, type ManagedCallExecuteResponse as ap, type ManagedCallOperation as aq, type ManagedCallOperationConfig as ar, type ManagedCallUseCase as as, type ManagedCallUseCaseHistoryEntry as at, type MappingSimulationRequest as au, type MappingSimulationResponse as av, type MappingSimulationV2Request as aw, type MappingSimulationWarning as ax, type MeterReadingPruneScopeConfig as ay, type MeterReadingUpdate as az, type PathsDictionary as b, type PortalOrigin as b0, type PortalRefConfig as b1, type PortalRefFilter as b2, type PruneScopeConfig as b3, type QueryAccessLogsRequest as b4, type QueryEventsRequest as b5, type QueryInboundMonitoringEventsRequest as b6, type QueryMonitoringEventsV2Request as b7, type QueryOutboundMonitoringEventsRequest as b8, type RedriveOutboundDlqRequest as b9, type TimeSeriesBucketV2 as bA, type TriggerErpActionRequest as bB, type TriggerWebhookResp as bC, type TypeAnnotations as bD, type TypeDescriptor as bE, type UnblockOutboundStreamRequest as bF, type UnblockOutboundStreamResponse as bG, type UpdateFileProxyUseCaseRequest as bH, type UpdateInboundUseCaseRequest as bI, type UpdateIntegrationRequest as bJ, type UpdateManagedCallUseCaseRequest as bK, type UpdateOutboundUseCaseRequest as bL, type UpdateSecureProxyUseCaseRequest as bM, type UpdateUseCaseRequest as bN, type UpdateUseCaseRequestBase as bO, type UpsertIntegrationWithUseCasesRequest as bP, type UseCase as bQ, type UseCaseBase as bR, type UseCaseHistoryEntry as bS, type UseCaseHistoryEntryBase as bT, type UseCaseTypePreview as bU, type WebhookDeliveryConfig as bV, type WebhookStatus as bW, type RedriveOutboundDlqResponse as ba, type RedriveOutboundDlqResult as bb, type RelationConfig as bc, type RelationItemConfig as bd, type RelationRefItemConfig as be, type RelationRefValueConfig as bf, type RelationRefsConfig as bg, type RelationUniqueIdField as bh, type RepeatableFieldType as bi, type ReplayEventsRequest as bj, type RuleBaselineBucket as bk, type RuleBaselineStatus as bl, type SecureProxyRequest as bm, type SecureProxyResponse as bn, type SecureProxySummary as bo, type SecureProxyUpstreamError as bp, type SecureProxyUseCase as bq, type SecureProxyUseCaseConfiguration as br, type SecureProxyUseCaseHistoryEntry as bs, type SecureProxyWhitelist as bt, type SecureProxyWhitelistUpdate as bu, type SetIntegrationAppMappingRequest as bv, type TestNotificationRequest as bw, type TestNotificationResponse as bx, type TimeSeriesBreakdownItemV2 as by, type TimeSeriesBucket as bz, type AckOutboundMessagesRequest as c, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateFileProxyUseCaseRequest as j, type CreateInboundUseCaseRequest as k, type CreateIntegrationRequest as l, type CreateManagedCallUseCaseRequest as m, type CreateOutboundUseCaseRequest as n, type CreateSecureProxyUseCaseRequest as o, type CreateUseCaseRequest as p, type CreateUseCaseRequestBase as q, type DeliveryConfig as r, type EmbeddedInboundUseCaseRequest as s, type EmbeddedManagedCallUseCaseRequest as t, type EmbeddedOutboundUseCaseRequest as u, type EmbeddedSecureProxyUseCaseRequest as v, type EmbeddedUseCaseRequest as w, type EmbeddedUseCaseRequestBase as x, type EntityUpdate as y, type EnvVarRefConfig as z };
9485
+ export { type FileProxyUrlParams as $, type AccessLogEntry as A, type EntityUpdate as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type EnvVarRefConfig as F, type EnvironmentFieldConfig as G, type ErpEvent as H, type ErpEventV3 as I, type ErpImportError as J, type ErpImportJob as K, type ErpImportList as L, type ErpImportProgress as M, type ErpImportValidation as N, type OperationMethods as O, Paths as P, type ErpUpdatesEventsV2Request as Q, type ErpUpdatesEventsV3Request as R, type ErrorResponseBase as S, type ExternalMonitoringSpan as T, type FileProxyAuth as U, type FileProxyParam as V, type FileProxyResponseConfig as W, type FileProxySecureProxyAttachment as X, type FileProxyStep as Y, type FileProxyUrlConfig as Z, type FileProxyUrlParam as _, Components as a, type OutboundPollStatus as a$, type FileProxyUseCase as a0, type FileProxyUseCaseConfiguration as a1, type FileProxyUseCaseHistoryEntry as a2, type GenerateTypesPreviewResponse as a3, type GenerateTypesRequest as a4, type GenerateTypesResponse as a5, type GetMonitoringStatsRequest as a6, type GetMonitoringStatsV2Request as a7, type GetMonitoringTimeSeriesRequest as a8, type GetMonitoringTimeSeriesV2Request as a9, type ManagedCallUseCaseHistoryEntry as aA, type MappingSimulationRequest as aB, type MappingSimulationResponse as aC, type MappingSimulationV2Request as aD, type MappingSimulationWarning as aE, type MeterReadingPruneScopeConfig as aF, type MeterReadingUpdate as aG, type MeterUniqueIdsConfig as aH, type MonitoringEventV2 as aI, type MonitoringStats as aJ, type MonitoringStatsV2 as aK, type MonitoringTraceResponse as aL, type NotificationChannelSet as aM, type NotificationDigestConfig as aN, type NotificationHistoryItem as aO, type NotificationHistoryResponse as aP, type NotificationRecipient as aQ, type NotificationRule as aR, type NotificationRuleStatus as aS, type NotificationStatusResponse as aT, type OutboundConflict as aU, type OutboundDlqListResponse as aV, type OutboundDlqMessage as aW, type OutboundIntegrationEventConfiguration as aX, type OutboundMapping as aY, type OutboundMessage as aZ, type OutboundMonitoringEvent as a_, type InboundIntegrationEventConfiguration as aa, type InboundMonitoringEvent as ab, type InboundUseCase as ac, type InboundUseCaseHistoryEntry as ad, type IngestExternalMonitoringEventsRequest as ae, type IngestExternalMonitoringEventsResponse as af, type Integration as ag, type IntegrationAppMapping as ah, type IntegrationConfigurationV1 as ai, type IntegrationConfigurationV2 as aj, type IntegrationEditableFields as ak, type IntegrationEntity as al, type IntegrationEntityField as am, type IntegrationFieldV1 as an, type IntegrationMeterReading as ao, type IntegrationNotificationConfig as ap, type IntegrationObjectV1 as aq, type IntegrationSettings as ar, type IntegrationWithUseCases as as, type ManagedCallAuth as at, type ManagedCallErrorResponse as au, type ManagedCallExecuteRequest as av, type ManagedCallExecuteResponse as aw, type ManagedCallOperation as ax, type ManagedCallOperationConfig as ay, type ManagedCallUseCase as az, type PathsDictionary as b, type UseCaseHistoryEntryBase as b$, type OutboundStatusResponse as b0, type OutboundUseCase as b1, type OutboundUseCaseHistoryEntry as b2, type OutboundUseCaseStatus as b3, type PollDeliveryConfig as b4, type PollOutboundMessagesRequest as b5, type PollOutboundMessagesResponse as b6, type PortalOrigin as b7, type PortalRefConfig as b8, type PortalRefFilter as b9, type SecureProxyUseCaseHistoryEntry as bA, type SecureProxyWhitelist as bB, type SecureProxyWhitelistUpdate as bC, type SetIntegrationAppMappingRequest as bD, type TestNotificationRequest as bE, type TestNotificationResponse as bF, type TimeSeriesBreakdownItemV2 as bG, type TimeSeriesBucket as bH, type TimeSeriesBucketV2 as bI, type TriggerErpActionRequest as bJ, type TriggerWebhookResp as bK, type TypeAnnotations as bL, type TypeDescriptor as bM, type UnblockOutboundStreamRequest as bN, type UnblockOutboundStreamResponse as bO, type UpdateFileProxyUseCaseRequest as bP, type UpdateInboundUseCaseRequest as bQ, type UpdateIntegrationRequest as bR, type UpdateManagedCallUseCaseRequest as bS, type UpdateOutboundUseCaseRequest as bT, type UpdateSecureProxyUseCaseRequest as bU, type UpdateUseCaseRequest as bV, type UpdateUseCaseRequestBase as bW, type UpsertIntegrationWithUseCasesRequest as bX, type UseCase as bY, type UseCaseBase as bZ, type UseCaseHistoryEntry as b_, type PruneScopeConfig as ba, type QueryAccessLogsRequest as bb, type QueryEventsRequest as bc, type QueryInboundMonitoringEventsRequest as bd, type QueryMonitoringEventsV2Request as be, type QueryOutboundMonitoringEventsRequest as bf, type RedriveOutboundDlqRequest as bg, type RedriveOutboundDlqResponse as bh, type RedriveOutboundDlqResult as bi, type RelationConfig as bj, type RelationItemConfig as bk, type RelationRefItemConfig as bl, type RelationRefValueConfig as bm, type RelationRefsConfig as bn, type RelationUniqueIdField as bo, type RepeatableFieldType as bp, type ReplayEventsRequest as bq, type RuleBaselineBucket as br, type RuleBaselineStatus as bs, type S3Reference as bt, type SecureProxyRequest as bu, type SecureProxyResponse as bv, type SecureProxySummary as bw, type SecureProxyUpstreamError as bx, type SecureProxyUseCase as by, type SecureProxyUseCaseConfiguration as bz, type AckOutboundMessagesRequest as c, type UseCaseTypePreview as c0, type WebhookDeliveryConfig as c1, type WebhookStatus as c2, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type EmbeddedInboundUseCaseRequest as u, type EmbeddedManagedCallUseCaseRequest as v, type EmbeddedOutboundUseCaseRequest as w, type EmbeddedSecureProxyUseCaseRequest as x, type EmbeddedUseCaseRequest as y, type EmbeddedUseCaseRequestBase as z };