extend-ai 0.0.12 → 0.0.14

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 (184) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +19 -14
  3. package/api/resources/edit/client/Client.d.ts +120 -0
  4. package/api/resources/edit/client/Client.js +368 -0
  5. package/api/resources/edit/client/index.d.ts +2 -0
  6. package/api/resources/edit/client/index.js +17 -0
  7. package/api/resources/edit/client/requests/EditCreateAsyncRequest.d.ts +16 -0
  8. package/api/resources/edit/client/requests/EditCreateRequest.d.ts +16 -0
  9. package/api/resources/edit/client/requests/index.d.ts +2 -0
  10. package/api/resources/edit/client/requests/index.js +2 -0
  11. package/api/resources/edit/index.d.ts +2 -0
  12. package/api/resources/edit/index.js +18 -0
  13. package/api/resources/edit/types/EditCreateAsyncRequestConfig.d.ts +14 -0
  14. package/api/resources/edit/types/EditCreateAsyncRequestConfig.js +5 -0
  15. package/api/resources/edit/types/EditCreateAsyncRequestConfigAdvancedOptions.d.ts +12 -0
  16. package/api/resources/edit/types/EditCreateAsyncRequestConfigAdvancedOptions.js +5 -0
  17. package/api/resources/edit/types/EditCreateAsyncRequestFile.d.ts +18 -0
  18. package/api/resources/edit/types/EditCreateAsyncRequestFile.js +5 -0
  19. package/api/resources/edit/types/EditCreateRequestConfig.d.ts +14 -0
  20. package/api/resources/edit/types/EditCreateRequestConfig.js +5 -0
  21. package/api/resources/edit/types/EditCreateRequestConfigAdvancedOptions.d.ts +12 -0
  22. package/api/resources/edit/types/EditCreateRequestConfigAdvancedOptions.js +5 -0
  23. package/api/resources/edit/types/EditCreateRequestFile.d.ts +18 -0
  24. package/api/resources/edit/types/EditCreateRequestFile.js +5 -0
  25. package/api/resources/edit/types/EditDeleteResponse.d.ts +10 -0
  26. package/api/resources/edit/types/EditDeleteResponse.js +5 -0
  27. package/api/resources/edit/types/EditGetResponse.d.ts +10 -0
  28. package/api/resources/edit/types/EditGetResponse.js +5 -0
  29. package/api/resources/edit/types/EditGetResponseEditRun.d.ts +13 -0
  30. package/api/resources/edit/types/EditGetResponseEditRun.js +5 -0
  31. package/api/resources/edit/types/index.d.ts +9 -0
  32. package/api/resources/edit/types/index.js +25 -0
  33. package/api/resources/index.d.ts +3 -0
  34. package/api/resources/index.js +4 -1
  35. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +5 -1
  36. package/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +5 -1
  37. package/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +2 -0
  38. package/api/types/ArrayStrategy.d.ts +14 -3
  39. package/api/types/ArrayStrategyType.d.ts +23 -0
  40. package/api/types/ArrayStrategyType.js +11 -0
  41. package/api/types/EditBoundingBox.d.ts +16 -0
  42. package/api/types/EditBoundingBox.js +5 -0
  43. package/api/types/EditError.d.ts +10 -0
  44. package/api/types/EditError.js +5 -0
  45. package/api/types/EditErrorCode.d.ts +15 -0
  46. package/api/types/EditErrorCode.js +17 -0
  47. package/api/types/EditJsonSchema.d.ts +60 -0
  48. package/api/types/EditJsonSchema.js +5 -0
  49. package/api/types/EditJsonSchemaExtendEditFieldType.d.ts +24 -0
  50. package/api/types/EditJsonSchemaExtendEditFieldType.js +16 -0
  51. package/api/types/EditObjectJsonSchema.d.ts +21 -0
  52. package/api/types/EditObjectJsonSchema.js +5 -0
  53. package/api/types/EditRootJsonSchema.d.ts +17 -0
  54. package/api/types/EditRootJsonSchema.js +5 -0
  55. package/api/types/EditRun.d.ts +32 -0
  56. package/api/types/EditRun.js +5 -0
  57. package/api/types/EditRunConfig.d.ts +14 -0
  58. package/api/types/EditRunConfig.js +5 -0
  59. package/api/types/EditRunConfigAdvancedOptions.d.ts +12 -0
  60. package/api/types/EditRunConfigAdvancedOptions.js +5 -0
  61. package/api/types/EditRunEditedFile.d.ts +12 -0
  62. package/api/types/EditRunEditedFile.js +5 -0
  63. package/api/types/EditRunMetrics.d.ts +20 -0
  64. package/api/types/EditRunMetrics.js +5 -0
  65. package/api/types/EditRunStatus.d.ts +21 -0
  66. package/api/types/EditRunStatus.js +5 -0
  67. package/api/types/EditRunStatusStatus.d.ts +12 -0
  68. package/api/types/EditRunStatusStatus.js +11 -0
  69. package/api/types/EditRunUsage.d.ts +10 -0
  70. package/api/types/EditRunUsage.js +5 -0
  71. package/api/types/EditTextOptions.d.ts +18 -0
  72. package/api/types/EditTextOptions.js +5 -0
  73. package/api/types/ExtractionAdvancedOptions.d.ts +9 -0
  74. package/api/types/ExtractionAdvancedOptionsReviewAgent.d.ts +15 -0
  75. package/api/types/ExtractionAdvancedOptionsReviewAgent.js +5 -0
  76. package/api/types/ExtractionOutputEdits.d.ts +2 -0
  77. package/api/types/Insight.d.ts +9 -3
  78. package/api/types/InsightType.d.ts +15 -0
  79. package/api/types/InsightType.js +11 -0
  80. package/api/types/JsonOutputMetadataValue.d.ts +13 -1
  81. package/api/types/OutputMetadataValue.d.ts +9 -0
  82. package/api/types/ParseConfigAdvancedOptions.d.ts +2 -0
  83. package/api/types/ParserRun.d.ts +2 -0
  84. package/api/types/ParserRunStatus.d.ts +2 -0
  85. package/api/types/index.d.ts +19 -1
  86. package/api/types/index.js +19 -1
  87. package/dist/Client.d.ts +3 -0
  88. package/dist/Client.js +19 -14
  89. package/dist/api/resources/edit/client/Client.d.ts +120 -0
  90. package/dist/api/resources/edit/client/Client.js +368 -0
  91. package/dist/api/resources/edit/client/index.d.ts +2 -0
  92. package/dist/api/resources/edit/client/index.js +17 -0
  93. package/dist/api/resources/edit/client/requests/EditCreateAsyncRequest.d.ts +16 -0
  94. package/dist/api/resources/edit/client/requests/EditCreateAsyncRequest.js +5 -0
  95. package/dist/api/resources/edit/client/requests/EditCreateRequest.d.ts +16 -0
  96. package/dist/api/resources/edit/client/requests/EditCreateRequest.js +5 -0
  97. package/dist/api/resources/edit/client/requests/index.d.ts +2 -0
  98. package/dist/api/resources/edit/client/requests/index.js +2 -0
  99. package/dist/api/resources/edit/index.d.ts +2 -0
  100. package/dist/api/resources/edit/index.js +18 -0
  101. package/dist/api/resources/edit/types/EditCreateAsyncRequestConfig.d.ts +14 -0
  102. package/dist/api/resources/edit/types/EditCreateAsyncRequestConfig.js +5 -0
  103. package/dist/api/resources/edit/types/EditCreateAsyncRequestConfigAdvancedOptions.d.ts +12 -0
  104. package/dist/api/resources/edit/types/EditCreateAsyncRequestConfigAdvancedOptions.js +5 -0
  105. package/dist/api/resources/edit/types/EditCreateAsyncRequestFile.d.ts +18 -0
  106. package/dist/api/resources/edit/types/EditCreateAsyncRequestFile.js +5 -0
  107. package/dist/api/resources/edit/types/EditCreateRequestConfig.d.ts +14 -0
  108. package/dist/api/resources/edit/types/EditCreateRequestConfig.js +5 -0
  109. package/dist/api/resources/edit/types/EditCreateRequestConfigAdvancedOptions.d.ts +12 -0
  110. package/dist/api/resources/edit/types/EditCreateRequestConfigAdvancedOptions.js +5 -0
  111. package/dist/api/resources/edit/types/EditCreateRequestFile.d.ts +18 -0
  112. package/dist/api/resources/edit/types/EditCreateRequestFile.js +5 -0
  113. package/dist/api/resources/edit/types/EditDeleteResponse.d.ts +10 -0
  114. package/dist/api/resources/edit/types/EditDeleteResponse.js +5 -0
  115. package/dist/api/resources/edit/types/EditGetResponse.d.ts +10 -0
  116. package/dist/api/resources/edit/types/EditGetResponse.js +5 -0
  117. package/dist/api/resources/edit/types/EditGetResponseEditRun.d.ts +13 -0
  118. package/dist/api/resources/edit/types/EditGetResponseEditRun.js +5 -0
  119. package/dist/api/resources/edit/types/index.d.ts +9 -0
  120. package/dist/api/resources/edit/types/index.js +25 -0
  121. package/dist/api/resources/index.d.ts +3 -0
  122. package/dist/api/resources/index.js +4 -1
  123. package/dist/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +5 -1
  124. package/dist/api/resources/workflowRun/client/requests/WorkflowRunCreateRequest.d.ts +5 -1
  125. package/dist/api/resources/workflowRun/client/requests/WorkflowRunUpdateRequest.d.ts +2 -0
  126. package/dist/api/types/ArrayStrategy.d.ts +14 -3
  127. package/dist/api/types/ArrayStrategyType.d.ts +23 -0
  128. package/dist/api/types/ArrayStrategyType.js +11 -0
  129. package/dist/api/types/EditBoundingBox.d.ts +16 -0
  130. package/dist/api/types/EditBoundingBox.js +5 -0
  131. package/dist/api/types/EditError.d.ts +10 -0
  132. package/dist/api/types/EditError.js +5 -0
  133. package/dist/api/types/EditErrorCode.d.ts +15 -0
  134. package/dist/api/types/EditErrorCode.js +17 -0
  135. package/dist/api/types/EditJsonSchema.d.ts +60 -0
  136. package/dist/api/types/EditJsonSchema.js +5 -0
  137. package/dist/api/types/EditJsonSchemaExtendEditFieldType.d.ts +24 -0
  138. package/dist/api/types/EditJsonSchemaExtendEditFieldType.js +16 -0
  139. package/dist/api/types/EditObjectJsonSchema.d.ts +21 -0
  140. package/dist/api/types/EditObjectJsonSchema.js +5 -0
  141. package/dist/api/types/EditRootJsonSchema.d.ts +17 -0
  142. package/dist/api/types/EditRootJsonSchema.js +5 -0
  143. package/dist/api/types/EditRun.d.ts +32 -0
  144. package/dist/api/types/EditRun.js +5 -0
  145. package/dist/api/types/EditRunConfig.d.ts +14 -0
  146. package/dist/api/types/EditRunConfig.js +5 -0
  147. package/dist/api/types/EditRunConfigAdvancedOptions.d.ts +12 -0
  148. package/dist/api/types/EditRunConfigAdvancedOptions.js +5 -0
  149. package/dist/api/types/EditRunEditedFile.d.ts +12 -0
  150. package/dist/api/types/EditRunEditedFile.js +5 -0
  151. package/dist/api/types/EditRunMetrics.d.ts +20 -0
  152. package/dist/api/types/EditRunMetrics.js +5 -0
  153. package/dist/api/types/EditRunStatus.d.ts +21 -0
  154. package/dist/api/types/EditRunStatus.js +5 -0
  155. package/dist/api/types/EditRunStatusStatus.d.ts +12 -0
  156. package/dist/api/types/EditRunStatusStatus.js +11 -0
  157. package/dist/api/types/EditRunUsage.d.ts +10 -0
  158. package/dist/api/types/EditRunUsage.js +5 -0
  159. package/dist/api/types/EditTextOptions.d.ts +18 -0
  160. package/dist/api/types/EditTextOptions.js +5 -0
  161. package/dist/api/types/ExtractionAdvancedOptions.d.ts +9 -0
  162. package/dist/api/types/ExtractionAdvancedOptionsReviewAgent.d.ts +15 -0
  163. package/dist/api/types/ExtractionAdvancedOptionsReviewAgent.js +5 -0
  164. package/dist/api/types/ExtractionOutputEdits.d.ts +2 -0
  165. package/dist/api/types/Insight.d.ts +9 -3
  166. package/dist/api/types/InsightType.d.ts +15 -0
  167. package/dist/api/types/InsightType.js +11 -0
  168. package/dist/api/types/JsonOutputMetadataValue.d.ts +13 -1
  169. package/dist/api/types/OutputMetadataValue.d.ts +9 -0
  170. package/dist/api/types/ParseConfigAdvancedOptions.d.ts +2 -0
  171. package/dist/api/types/ParserRun.d.ts +2 -0
  172. package/dist/api/types/ParserRunStatus.d.ts +2 -0
  173. package/dist/api/types/index.d.ts +19 -1
  174. package/dist/api/types/index.js +19 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +1 -1
  178. package/reference.md +280 -0
  179. package/version.d.ts +1 -1
  180. package/version.js +1 -1
  181. package/api/types/JsonOutputMetadataValueInsightsItem.d.ts +0 -9
  182. package/dist/api/types/JsonOutputMetadataValueInsightsItem.d.ts +0 -9
  183. /package/api/{types/JsonOutputMetadataValueInsightsItem.js → resources/edit/client/requests/EditCreateAsyncRequest.js} +0 -0
  184. /package/{dist/api/types/JsonOutputMetadataValueInsightsItem.js → api/resources/edit/client/requests/EditCreateRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -10,6 +10,7 @@ import { ProcessorRun } from "./api/resources/processorRun/client/Client";
10
10
  import { Processor } from "./api/resources/processor/client/Client";
11
11
  import { ProcessorVersion } from "./api/resources/processorVersion/client/Client";
12
12
  import { ParserRun } from "./api/resources/parserRun/client/Client";
13
+ import { Edit } from "./api/resources/edit/client/Client";
13
14
  import { File_ } from "./api/resources/file/client/Client";
14
15
  import { EvaluationSet } from "./api/resources/evaluationSet/client/Client";
15
16
  import { EvaluationSetItem } from "./api/resources/evaluationSetItem/client/Client";
@@ -51,6 +52,7 @@ export declare class ExtendClient {
51
52
  protected _processor: Processor | undefined;
52
53
  protected _processorVersion: ProcessorVersion | undefined;
53
54
  protected _parserRun: ParserRun | undefined;
55
+ protected _edit: Edit | undefined;
54
56
  protected _file: File_ | undefined;
55
57
  protected _evaluationSet: EvaluationSet | undefined;
56
58
  protected _evaluationSetItem: EvaluationSetItem | undefined;
@@ -64,6 +66,7 @@ export declare class ExtendClient {
64
66
  get processor(): Processor;
65
67
  get processorVersion(): ProcessorVersion;
66
68
  get parserRun(): ParserRun;
69
+ get edit(): Edit;
67
70
  get file(): File_;
68
71
  get evaluationSet(): EvaluationSet;
69
72
  get evaluationSetItem(): EvaluationSetItem;
package/Client.js CHANGED
@@ -68,12 +68,13 @@ const Client_3 = require("./api/resources/processorRun/client/Client");
68
68
  const Client_4 = require("./api/resources/processor/client/Client");
69
69
  const Client_5 = require("./api/resources/processorVersion/client/Client");
70
70
  const Client_6 = require("./api/resources/parserRun/client/Client");
71
- const Client_7 = require("./api/resources/file/client/Client");
72
- const Client_8 = require("./api/resources/evaluationSet/client/Client");
73
- const Client_9 = require("./api/resources/evaluationSetItem/client/Client");
74
- const Client_10 = require("./api/resources/workflowRunOutput/client/Client");
75
- const Client_11 = require("./api/resources/batchProcessorRun/client/Client");
76
- const Client_12 = require("./api/resources/workflow/client/Client");
71
+ const Client_7 = require("./api/resources/edit/client/Client");
72
+ const Client_8 = require("./api/resources/file/client/Client");
73
+ const Client_9 = require("./api/resources/evaluationSet/client/Client");
74
+ const Client_10 = require("./api/resources/evaluationSetItem/client/Client");
75
+ const Client_11 = require("./api/resources/workflowRunOutput/client/Client");
76
+ const Client_12 = require("./api/resources/batchProcessorRun/client/Client");
77
+ const Client_13 = require("./api/resources/workflow/client/Client");
77
78
  class ExtendClient {
78
79
  constructor(_options = {}) {
79
80
  var _a;
@@ -81,8 +82,8 @@ class ExtendClient {
81
82
  "x-extend-api-version": (_a = _options === null || _options === void 0 ? void 0 : _options.extendApiVersion) !== null && _a !== void 0 ? _a : "2025-04-21",
82
83
  "X-Fern-Language": "JavaScript",
83
84
  "X-Fern-SDK-Name": "extend-ai",
84
- "X-Fern-SDK-Version": "0.0.12",
85
- "User-Agent": "extend-ai/0.0.12",
85
+ "X-Fern-SDK-Version": "0.0.14",
86
+ "User-Agent": "extend-ai/0.0.14",
86
87
  "X-Fern-Runtime": core.RUNTIME.type,
87
88
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
89
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -111,29 +112,33 @@ class ExtendClient {
111
112
  var _a;
112
113
  return ((_a = this._parserRun) !== null && _a !== void 0 ? _a : (this._parserRun = new Client_6.ParserRun(this._options)));
113
114
  }
115
+ get edit() {
116
+ var _a;
117
+ return ((_a = this._edit) !== null && _a !== void 0 ? _a : (this._edit = new Client_7.Edit(this._options)));
118
+ }
114
119
  get file() {
115
120
  var _a;
116
- return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_7.File_(this._options)));
121
+ return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_8.File_(this._options)));
117
122
  }
118
123
  get evaluationSet() {
119
124
  var _a;
120
- return ((_a = this._evaluationSet) !== null && _a !== void 0 ? _a : (this._evaluationSet = new Client_8.EvaluationSet(this._options)));
125
+ return ((_a = this._evaluationSet) !== null && _a !== void 0 ? _a : (this._evaluationSet = new Client_9.EvaluationSet(this._options)));
121
126
  }
122
127
  get evaluationSetItem() {
123
128
  var _a;
124
- return ((_a = this._evaluationSetItem) !== null && _a !== void 0 ? _a : (this._evaluationSetItem = new Client_9.EvaluationSetItem(this._options)));
129
+ return ((_a = this._evaluationSetItem) !== null && _a !== void 0 ? _a : (this._evaluationSetItem = new Client_10.EvaluationSetItem(this._options)));
125
130
  }
126
131
  get workflowRunOutput() {
127
132
  var _a;
128
- return ((_a = this._workflowRunOutput) !== null && _a !== void 0 ? _a : (this._workflowRunOutput = new Client_10.WorkflowRunOutput(this._options)));
133
+ return ((_a = this._workflowRunOutput) !== null && _a !== void 0 ? _a : (this._workflowRunOutput = new Client_11.WorkflowRunOutput(this._options)));
129
134
  }
130
135
  get batchProcessorRun() {
131
136
  var _a;
132
- return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_11.BatchProcessorRun(this._options)));
137
+ return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_12.BatchProcessorRun(this._options)));
133
138
  }
134
139
  get workflow() {
135
140
  var _a;
136
- return ((_a = this._workflow) !== null && _a !== void 0 ? _a : (this._workflow = new Client_12.Workflow(this._options)));
141
+ return ((_a = this._workflow) !== null && _a !== void 0 ? _a : (this._workflow = new Client_13.Workflow(this._options)));
137
142
  }
138
143
  /**
139
144
  * Parse files to get cleaned, chunked target content (e.g. markdown).
@@ -0,0 +1,120 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Extend from "../../../index";
7
+ export declare namespace Edit {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Override the x-extend-api-version header */
14
+ extendApiVersion?: "2025-04-21";
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
17
+ fetcher?: core.FetchFunction;
18
+ }
19
+ interface RequestOptions {
20
+ /** The maximum time to wait for a response in seconds. */
21
+ timeoutInSeconds?: number;
22
+ /** The number of times to retry the request. Defaults to 2. */
23
+ maxRetries?: number;
24
+ /** A hook to abort the request. */
25
+ abortSignal?: AbortSignal;
26
+ /** Override the x-extend-api-version header */
27
+ extendApiVersion?: "2025-04-21";
28
+ /** Additional query string parameters to include in the request. */
29
+ queryParams?: Record<string, unknown>;
30
+ /** Additional headers to include in the request. */
31
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
32
+ }
33
+ }
34
+ export declare class Edit {
35
+ protected readonly _options: Edit.Options;
36
+ constructor(_options?: Edit.Options);
37
+ /**
38
+ * Edit and manipulate PDF documents by detecting and filling form fields.
39
+ * This is a synchronous endpoint that will wait for the edit operation to complete (up to 5 minutes) before returning results. For longer operations, use the [Edit File Async](/developers/api-reference/edit-endpoints/edit-file-async) endpoint.
40
+ *
41
+ * @param {Extend.EditCreateRequest} request
42
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link Extend.BadRequestError}
45
+ * @throws {@link Extend.UnauthorizedError}
46
+ * @throws {@link Extend.PaymentRequiredError}
47
+ * @throws {@link Extend.NotFoundError}
48
+ * @throws {@link Extend.UnprocessableEntityError}
49
+ * @throws {@link Extend.InternalServerError}
50
+ *
51
+ * @example
52
+ * await client.edit.create({
53
+ * file: {}
54
+ * })
55
+ */
56
+ create(request: Extend.EditCreateRequest, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditRun>;
57
+ private __create;
58
+ /**
59
+ * Edit and manipulate PDF documents **asynchronously** by filling forms, adding/modifying text fields, and applying structured changes.
60
+ *
61
+ * The Edit Async endpoint allows you to convert and edit documents asynchronously and get an edit run ID that can be used to check status and retrieve results with the [Get Edit Run](/developers/api-reference/edit-endpoints/get-edit-run) endpoint.
62
+ *
63
+ * This is useful for:
64
+ * * Large files that may take longer to process
65
+ * * Avoiding timeout issues with synchronous editing
66
+ * * Processing multiple files in parallel
67
+ *
68
+ * @param {Extend.EditCreateAsyncRequest} request
69
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link Extend.BadRequestError}
72
+ * @throws {@link Extend.UnauthorizedError}
73
+ *
74
+ * @example
75
+ * await client.edit.createAsync({
76
+ * file: {}
77
+ * })
78
+ */
79
+ createAsync(request: Extend.EditCreateAsyncRequest, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditRunStatus>;
80
+ private __createAsync;
81
+ /**
82
+ * Retrieve the status and results of an edit run.
83
+ *
84
+ * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an asynchronous edit run initiated via the [Edit File Asynchronously](/developers/api-reference/edit-endpoints/edit-file-async) endpoint.
85
+ *
86
+ * If editing is still in progress, you'll receive a response with just the status. Once complete, you'll receive the full edited file information in the response.
87
+ *
88
+ * @param {string} id - The unique identifier for the edit run.
89
+ *
90
+ * Example: `"edit_run_xK9mLPqRtN3vS8wF5hB2cQ"`
91
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Extend.UnauthorizedError}
94
+ * @throws {@link Extend.NotFoundError}
95
+ *
96
+ * @example
97
+ * await client.edit.get("edit_run_id_here")
98
+ */
99
+ get(id: string, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditGetResponse>;
100
+ private __get;
101
+ /**
102
+ * Delete an edit run and all associated data from Extend. This operation is permanent and cannot be undone.
103
+ *
104
+ * This endpoint can be used if you'd like to manage data retention on your own rather than relying on automated data retention policies, or to make one-off deletions for your downstream customers.
105
+ *
106
+ * @param {string} id - The ID of the edit run to delete.
107
+ *
108
+ * Example: `"edit_run_xK9mLPqRtN3vS8wF5hB2cQ"`
109
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link Extend.NotFoundError}
112
+ * @throws {@link Extend.InternalServerError}
113
+ *
114
+ * @example
115
+ * await client.edit.delete("edit_run_id_here")
116
+ */
117
+ delete(id: string, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditDeleteResponse>;
118
+ private __delete;
119
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
120
+ }
@@ -0,0 +1,368 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Edit = void 0;
49
+ const environments = __importStar(require("../../../../environments"));
50
+ const core = __importStar(require("../../../../core"));
51
+ const Extend = __importStar(require("../../../index"));
52
+ const headers_1 = require("../../../../core/headers");
53
+ const errors = __importStar(require("../../../../errors/index"));
54
+ class Edit {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Edit and manipulate PDF documents by detecting and filling form fields.
60
+ * This is a synchronous endpoint that will wait for the edit operation to complete (up to 5 minutes) before returning results. For longer operations, use the [Edit File Async](/developers/api-reference/edit-endpoints/edit-file-async) endpoint.
61
+ *
62
+ * @param {Extend.EditCreateRequest} request
63
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Extend.BadRequestError}
66
+ * @throws {@link Extend.UnauthorizedError}
67
+ * @throws {@link Extend.PaymentRequiredError}
68
+ * @throws {@link Extend.NotFoundError}
69
+ * @throws {@link Extend.UnprocessableEntityError}
70
+ * @throws {@link Extend.InternalServerError}
71
+ *
72
+ * @example
73
+ * await client.edit.create({
74
+ * file: {}
75
+ * })
76
+ */
77
+ create(request, requestOptions) {
78
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
79
+ }
80
+ __create(request, requestOptions) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, _b, _c, _d, _e;
83
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
84
+ Authorization: yield this._getAuthorizationHeader(),
85
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2025-04-21",
86
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
88
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "edit"),
89
+ method: "POST",
90
+ headers: _headers,
91
+ contentType: "application/json",
92
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
+ requestType: "json",
94
+ body: request,
95
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
96
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
97
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
98
+ });
99
+ if (_response.ok) {
100
+ return { data: _response.body, rawResponse: _response.rawResponse };
101
+ }
102
+ if (_response.error.reason === "status-code") {
103
+ switch (_response.error.statusCode) {
104
+ case 400:
105
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
106
+ case 401:
107
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
108
+ case 402:
109
+ throw new Extend.PaymentRequiredError(_response.error.body, _response.rawResponse);
110
+ case 404:
111
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
112
+ case 422:
113
+ throw new Extend.UnprocessableEntityError(_response.error.body, _response.rawResponse);
114
+ case 500:
115
+ throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
116
+ default:
117
+ throw new errors.ExtendError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.body,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ }
124
+ switch (_response.error.reason) {
125
+ case "non-json":
126
+ throw new errors.ExtendError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.rawBody,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ case "timeout":
132
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /edit.");
133
+ case "unknown":
134
+ throw new errors.ExtendError({
135
+ message: _response.error.errorMessage,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ });
140
+ }
141
+ /**
142
+ * Edit and manipulate PDF documents **asynchronously** by filling forms, adding/modifying text fields, and applying structured changes.
143
+ *
144
+ * The Edit Async endpoint allows you to convert and edit documents asynchronously and get an edit run ID that can be used to check status and retrieve results with the [Get Edit Run](/developers/api-reference/edit-endpoints/get-edit-run) endpoint.
145
+ *
146
+ * This is useful for:
147
+ * * Large files that may take longer to process
148
+ * * Avoiding timeout issues with synchronous editing
149
+ * * Processing multiple files in parallel
150
+ *
151
+ * @param {Extend.EditCreateAsyncRequest} request
152
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link Extend.BadRequestError}
155
+ * @throws {@link Extend.UnauthorizedError}
156
+ *
157
+ * @example
158
+ * await client.edit.createAsync({
159
+ * file: {}
160
+ * })
161
+ */
162
+ createAsync(request, requestOptions) {
163
+ return core.HttpResponsePromise.fromPromise(this.__createAsync(request, requestOptions));
164
+ }
165
+ __createAsync(request, requestOptions) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ var _a, _b, _c, _d, _e;
168
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
169
+ Authorization: yield this._getAuthorizationHeader(),
170
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2025-04-21",
171
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
172
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
173
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, "edit/async"),
174
+ method: "POST",
175
+ headers: _headers,
176
+ contentType: "application/json",
177
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
178
+ requestType: "json",
179
+ body: request,
180
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
181
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
182
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
183
+ });
184
+ if (_response.ok) {
185
+ return { data: _response.body, rawResponse: _response.rawResponse };
186
+ }
187
+ if (_response.error.reason === "status-code") {
188
+ switch (_response.error.statusCode) {
189
+ case 400:
190
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
191
+ case 401:
192
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
193
+ default:
194
+ throw new errors.ExtendError({
195
+ statusCode: _response.error.statusCode,
196
+ body: _response.error.body,
197
+ rawResponse: _response.rawResponse,
198
+ });
199
+ }
200
+ }
201
+ switch (_response.error.reason) {
202
+ case "non-json":
203
+ throw new errors.ExtendError({
204
+ statusCode: _response.error.statusCode,
205
+ body: _response.error.rawBody,
206
+ rawResponse: _response.rawResponse,
207
+ });
208
+ case "timeout":
209
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling POST /edit/async.");
210
+ case "unknown":
211
+ throw new errors.ExtendError({
212
+ message: _response.error.errorMessage,
213
+ rawResponse: _response.rawResponse,
214
+ });
215
+ }
216
+ });
217
+ }
218
+ /**
219
+ * Retrieve the status and results of an edit run.
220
+ *
221
+ * Use this endpoint to get results for an edit run that has already completed, or to check on the status of an asynchronous edit run initiated via the [Edit File Asynchronously](/developers/api-reference/edit-endpoints/edit-file-async) endpoint.
222
+ *
223
+ * If editing is still in progress, you'll receive a response with just the status. Once complete, you'll receive the full edited file information in the response.
224
+ *
225
+ * @param {string} id - The unique identifier for the edit run.
226
+ *
227
+ * Example: `"edit_run_xK9mLPqRtN3vS8wF5hB2cQ"`
228
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
229
+ *
230
+ * @throws {@link Extend.UnauthorizedError}
231
+ * @throws {@link Extend.NotFoundError}
232
+ *
233
+ * @example
234
+ * await client.edit.get("edit_run_id_here")
235
+ */
236
+ get(id, requestOptions) {
237
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
238
+ }
239
+ __get(id, requestOptions) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ var _a, _b, _c, _d, _e;
242
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
243
+ Authorization: yield this._getAuthorizationHeader(),
244
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2025-04-21",
245
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
246
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
247
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `edit_runs/${encodeURIComponent(id)}`),
248
+ method: "GET",
249
+ headers: _headers,
250
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
251
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
252
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
254
+ });
255
+ if (_response.ok) {
256
+ return { data: _response.body, rawResponse: _response.rawResponse };
257
+ }
258
+ if (_response.error.reason === "status-code") {
259
+ switch (_response.error.statusCode) {
260
+ case 401:
261
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
262
+ case 404:
263
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
264
+ default:
265
+ throw new errors.ExtendError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.body,
268
+ rawResponse: _response.rawResponse,
269
+ });
270
+ }
271
+ }
272
+ switch (_response.error.reason) {
273
+ case "non-json":
274
+ throw new errors.ExtendError({
275
+ statusCode: _response.error.statusCode,
276
+ body: _response.error.rawBody,
277
+ rawResponse: _response.rawResponse,
278
+ });
279
+ case "timeout":
280
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling GET /edit_runs/{id}.");
281
+ case "unknown":
282
+ throw new errors.ExtendError({
283
+ message: _response.error.errorMessage,
284
+ rawResponse: _response.rawResponse,
285
+ });
286
+ }
287
+ });
288
+ }
289
+ /**
290
+ * Delete an edit run and all associated data from Extend. This operation is permanent and cannot be undone.
291
+ *
292
+ * This endpoint can be used if you'd like to manage data retention on your own rather than relying on automated data retention policies, or to make one-off deletions for your downstream customers.
293
+ *
294
+ * @param {string} id - The ID of the edit run to delete.
295
+ *
296
+ * Example: `"edit_run_xK9mLPqRtN3vS8wF5hB2cQ"`
297
+ * @param {Edit.RequestOptions} requestOptions - Request-specific configuration.
298
+ *
299
+ * @throws {@link Extend.NotFoundError}
300
+ * @throws {@link Extend.InternalServerError}
301
+ *
302
+ * @example
303
+ * await client.edit.delete("edit_run_id_here")
304
+ */
305
+ delete(id, requestOptions) {
306
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
307
+ }
308
+ __delete(id, requestOptions) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ var _a, _b, _c, _d, _e;
311
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
312
+ Authorization: yield this._getAuthorizationHeader(),
313
+ "x-extend-api-version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _b !== void 0 ? _b : "2025-04-21",
314
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
315
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
316
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ExtendEnvironment.Production, `edit_runs/${encodeURIComponent(id)}`),
317
+ method: "DELETE",
318
+ headers: _headers,
319
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
320
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
321
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
322
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
323
+ });
324
+ if (_response.ok) {
325
+ return { data: _response.body, rawResponse: _response.rawResponse };
326
+ }
327
+ if (_response.error.reason === "status-code") {
328
+ switch (_response.error.statusCode) {
329
+ case 404:
330
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
331
+ case 500:
332
+ throw new Extend.InternalServerError(_response.error.body, _response.rawResponse);
333
+ default:
334
+ throw new errors.ExtendError({
335
+ statusCode: _response.error.statusCode,
336
+ body: _response.error.body,
337
+ rawResponse: _response.rawResponse,
338
+ });
339
+ }
340
+ }
341
+ switch (_response.error.reason) {
342
+ case "non-json":
343
+ throw new errors.ExtendError({
344
+ statusCode: _response.error.statusCode,
345
+ body: _response.error.rawBody,
346
+ rawResponse: _response.rawResponse,
347
+ });
348
+ case "timeout":
349
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling DELETE /edit_runs/{id}.");
350
+ case "unknown":
351
+ throw new errors.ExtendError({
352
+ message: _response.error.errorMessage,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ });
357
+ }
358
+ _getAuthorizationHeader() {
359
+ return __awaiter(this, void 0, void 0, function* () {
360
+ const bearer = yield core.Supplier.get(this._options.token);
361
+ if (bearer != null) {
362
+ return `Bearer ${bearer}`;
363
+ }
364
+ return undefined;
365
+ });
366
+ }
367
+ }
368
+ exports.Edit = Edit;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * file: {}
9
+ * }
10
+ */
11
+ export interface EditCreateAsyncRequest {
12
+ /** A file object containing either a URL or a fileId. */
13
+ file: Extend.EditCreateAsyncRequestFile;
14
+ /** Configuration for the edit operation. Field values should be specified using `extend_edit:value` on each field in the schema. */
15
+ config?: Extend.EditCreateAsyncRequestConfig;
16
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * file: {}
9
+ * }
10
+ */
11
+ export interface EditCreateRequest {
12
+ /** A file object containing either a URL or a fileId. */
13
+ file: Extend.EditCreateRequestFile;
14
+ /** Configuration for the edit operation. Field values should be specified using `extend_edit:value` on each field in the schema. */
15
+ config?: Extend.EditCreateRequestConfig;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { type EditCreateRequest } from "./EditCreateRequest";
2
+ export { type EditCreateAsyncRequest } from "./EditCreateAsyncRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";