extend-ai 0.0.18 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/Client.d.ts +27 -27
  2. package/Client.js +37 -41
  3. package/api/errors/index.d.ts +1 -1
  4. package/api/errors/index.js +1 -1
  5. package/api/resources/batchProcessorRun/client/Client.d.ts +3 -3
  6. package/api/resources/batchProcessorRun/client/Client.js +2 -6
  7. package/api/resources/batchWorkflowRun/client/Client.d.ts +3 -3
  8. package/api/resources/batchWorkflowRun/client/Client.js +2 -6
  9. package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +1 -1
  10. package/api/resources/edit/client/Client.d.ts +3 -3
  11. package/api/resources/edit/client/Client.js +2 -6
  12. package/api/resources/evaluationSet/client/Client.d.ts +3 -3
  13. package/api/resources/evaluationSet/client/Client.js +2 -6
  14. package/api/resources/evaluationSetItem/client/Client.d.ts +3 -3
  15. package/api/resources/evaluationSetItem/client/Client.js +2 -6
  16. package/api/resources/file/client/Client.d.ts +3 -3
  17. package/api/resources/file/client/Client.js +2 -6
  18. package/api/resources/index.d.ts +23 -23
  19. package/api/resources/index.js +24 -24
  20. package/api/resources/parserRun/client/Client.d.ts +3 -3
  21. package/api/resources/parserRun/client/Client.js +2 -6
  22. package/api/resources/processor/client/Client.d.ts +3 -3
  23. package/api/resources/processor/client/Client.js +2 -6
  24. package/api/resources/processorRun/client/Client.d.ts +4 -4
  25. package/api/resources/processorRun/client/Client.js +3 -7
  26. package/api/resources/processorVersion/client/Client.d.ts +23 -23
  27. package/api/resources/processorVersion/client/Client.js +49 -53
  28. package/api/resources/processorVersion/types/index.d.ts +1 -1
  29. package/api/resources/processorVersion/types/index.js +1 -1
  30. package/api/resources/workflow/client/Client.d.ts +3 -3
  31. package/api/resources/workflow/client/Client.js +2 -6
  32. package/api/resources/workflowRun/client/Client.d.ts +3 -3
  33. package/api/resources/workflowRun/client/Client.js +2 -6
  34. package/api/resources/workflowRunOutput/client/Client.d.ts +3 -3
  35. package/api/resources/workflowRunOutput/client/Client.js +2 -6
  36. package/api/types/EditBoundingBox.d.ts +4 -4
  37. package/api/types/ParseConfig.d.ts +1 -1
  38. package/api/types/ParseConfigAdvancedOptions.d.ts +11 -0
  39. package/api/types/ParseConfigAdvancedOptionsExcelParsingMode.d.ts +16 -0
  40. package/api/types/ParseConfigAdvancedOptionsExcelParsingMode.js +10 -0
  41. package/api/types/ParseConfigTarget.d.ts +1 -1
  42. package/api/types/index.d.ts +132 -133
  43. package/api/types/index.js +132 -133
  44. package/dist/Client.d.ts +27 -27
  45. package/dist/Client.js +37 -41
  46. package/dist/api/errors/index.d.ts +1 -1
  47. package/dist/api/errors/index.js +1 -1
  48. package/dist/api/resources/batchProcessorRun/client/Client.d.ts +3 -3
  49. package/dist/api/resources/batchProcessorRun/client/Client.js +2 -6
  50. package/dist/api/resources/batchWorkflowRun/client/Client.d.ts +3 -3
  51. package/dist/api/resources/batchWorkflowRun/client/Client.js +2 -6
  52. package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +1 -1
  53. package/dist/api/resources/edit/client/Client.d.ts +3 -3
  54. package/dist/api/resources/edit/client/Client.js +2 -6
  55. package/dist/api/resources/evaluationSet/client/Client.d.ts +3 -3
  56. package/dist/api/resources/evaluationSet/client/Client.js +2 -6
  57. package/dist/api/resources/evaluationSetItem/client/Client.d.ts +3 -3
  58. package/dist/api/resources/evaluationSetItem/client/Client.js +2 -6
  59. package/dist/api/resources/file/client/Client.d.ts +3 -3
  60. package/dist/api/resources/file/client/Client.js +2 -6
  61. package/dist/api/resources/index.d.ts +23 -23
  62. package/dist/api/resources/index.js +24 -24
  63. package/dist/api/resources/parserRun/client/Client.d.ts +3 -3
  64. package/dist/api/resources/parserRun/client/Client.js +2 -6
  65. package/dist/api/resources/processor/client/Client.d.ts +3 -3
  66. package/dist/api/resources/processor/client/Client.js +2 -6
  67. package/dist/api/resources/processorRun/client/Client.d.ts +4 -4
  68. package/dist/api/resources/processorRun/client/Client.js +3 -7
  69. package/dist/api/resources/processorVersion/client/Client.d.ts +23 -23
  70. package/dist/api/resources/processorVersion/client/Client.js +49 -53
  71. package/dist/api/resources/processorVersion/types/index.d.ts +1 -1
  72. package/dist/api/resources/processorVersion/types/index.js +1 -1
  73. package/dist/api/resources/workflow/client/Client.d.ts +3 -3
  74. package/dist/api/resources/workflow/client/Client.js +2 -6
  75. package/dist/api/resources/workflowRun/client/Client.d.ts +3 -3
  76. package/dist/api/resources/workflowRun/client/Client.js +2 -6
  77. package/dist/api/resources/workflowRunOutput/client/Client.d.ts +3 -3
  78. package/dist/api/resources/workflowRunOutput/client/Client.js +2 -6
  79. package/dist/api/types/EditBoundingBox.d.ts +4 -4
  80. package/dist/api/types/ParseConfig.d.ts +1 -1
  81. package/dist/api/types/ParseConfigAdvancedOptions.d.ts +11 -0
  82. package/dist/api/types/ParseConfigAdvancedOptionsExcelParsingMode.d.ts +16 -0
  83. package/dist/api/types/ParseConfigAdvancedOptionsExcelParsingMode.js +10 -0
  84. package/dist/api/types/ParseConfigTarget.d.ts +1 -1
  85. package/dist/api/types/index.d.ts +132 -133
  86. package/dist/api/types/index.js +132 -133
  87. package/dist/version.d.ts +1 -1
  88. package/dist/version.js +1 -1
  89. package/package.json +1 -1
  90. package/reference.md +511 -511
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/api/types/OutputMetadata.d.ts +0 -5
  94. package/api/types/OutputMetadata.js +0 -5
  95. package/api/types/OutputMetadataValue.d.ts +0 -22
  96. package/api/types/OutputMetadataValue.js +0 -5
  97. package/dist/api/types/OutputMetadata.d.ts +0 -5
  98. package/dist/api/types/OutputMetadata.js +0 -5
  99. package/dist/api/types/OutputMetadataValue.d.ts +0 -22
  100. package/dist/api/types/OutputMetadataValue.js +0 -5
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class BatchWorkflowRun {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -146,11 +146,7 @@ class BatchWorkflowRun {
146
146
  }
147
147
  _getAuthorizationHeader() {
148
148
  return __awaiter(this, void 0, void 0, function* () {
149
- const bearer = yield core.Supplier.get(this._options.token);
150
- if (bearer != null) {
151
- return `Bearer ${bearer}`;
152
- }
153
- return undefined;
149
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
154
150
  });
155
151
  }
156
152
  }
@@ -9,6 +9,6 @@ export interface BatchWorkflowRunCreateRequestInputsItem {
9
9
  rawText?: string;
10
10
  /** An optional object containing arbitrary key-value pairs to associate with this specific workflow run. This metadata will be included in webhook payloads and responses when fetching the workflow run details. */
11
11
  metadata?: Extend.JsonObject;
12
- /** An optional object containing secrets to be used by processors within the workflow for this specific run. Secrets provided here override any globally configured secrets for the workflow. */
12
+ /** An optional object containing secrets to be used by processors within the workflow for this specific run. */
13
13
  secrets?: Record<string, unknown>;
14
14
  }
@@ -9,7 +9,7 @@ export declare namespace Edit {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace Edit {
33
33
  }
34
34
  export declare class Edit {
35
35
  protected readonly _options: Edit.Options;
36
- constructor(_options?: Edit.Options);
36
+ constructor(_options: Edit.Options);
37
37
  /**
38
38
  * Edit and manipulate PDF documents by detecting and filling form fields.
39
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.
@@ -116,5 +116,5 @@ export declare class Edit {
116
116
  */
117
117
  delete(id: string, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditDeleteResponse>;
118
118
  private __delete;
119
- protected _getAuthorizationHeader(): Promise<string | undefined>;
119
+ protected _getAuthorizationHeader(): Promise<string>;
120
120
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class Edit {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -357,11 +357,7 @@ class Edit {
357
357
  }
358
358
  _getAuthorizationHeader() {
359
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;
360
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
365
361
  });
366
362
  }
367
363
  }
@@ -9,7 +9,7 @@ export declare namespace EvaluationSet {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace EvaluationSet {
33
33
  }
34
34
  export declare class EvaluationSet {
35
35
  protected readonly _options: EvaluationSet.Options;
36
- constructor(_options?: EvaluationSet.Options);
36
+ constructor(_options: EvaluationSet.Options);
37
37
  /**
38
38
  * List evaluation sets in your account. You can use the `processorId` parameter to filter evaluation sets by processor.
39
39
  *
@@ -93,5 +93,5 @@ export declare class EvaluationSet {
93
93
  */
94
94
  get(id: string, requestOptions?: EvaluationSet.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetGetResponse>;
95
95
  private __get;
96
- protected _getAuthorizationHeader(): Promise<string | undefined>;
96
+ protected _getAuthorizationHeader(): Promise<string>;
97
97
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class EvaluationSet {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -291,11 +291,7 @@ class EvaluationSet {
291
291
  }
292
292
  _getAuthorizationHeader() {
293
293
  return __awaiter(this, void 0, void 0, function* () {
294
- const bearer = yield core.Supplier.get(this._options.token);
295
- if (bearer != null) {
296
- return `Bearer ${bearer}`;
297
- }
298
- return undefined;
294
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
299
295
  });
300
296
  }
301
297
  }
@@ -9,7 +9,7 @@ export declare namespace EvaluationSetItem {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace EvaluationSetItem {
33
33
  }
34
34
  export declare class EvaluationSetItem {
35
35
  protected readonly _options: EvaluationSetItem.Options;
36
- constructor(_options?: EvaluationSetItem.Options);
36
+ constructor(_options: EvaluationSetItem.Options);
37
37
  /**
38
38
  * List all items in a specific evaluation set. Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend.
39
39
  *
@@ -162,5 +162,5 @@ export declare class EvaluationSetItem {
162
162
  */
163
163
  createBatch(request: Extend.EvaluationSetItemCreateBatchRequest, requestOptions?: EvaluationSetItem.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetItemCreateBatchResponse>;
164
164
  private __createBatch;
165
- protected _getAuthorizationHeader(): Promise<string | undefined>;
165
+ protected _getAuthorizationHeader(): Promise<string>;
166
166
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class EvaluationSetItem {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -479,11 +479,7 @@ class EvaluationSetItem {
479
479
  }
480
480
  _getAuthorizationHeader() {
481
481
  return __awaiter(this, void 0, void 0, function* () {
482
- const bearer = yield core.Supplier.get(this._options.token);
483
- if (bearer != null) {
484
- return `Bearer ${bearer}`;
485
- }
486
- return undefined;
482
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
487
483
  });
488
484
  }
489
485
  }
@@ -11,7 +11,7 @@ export declare namespace File_ {
11
11
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
12
12
  /** Specify a custom URL to connect the client to. */
13
13
  baseUrl?: core.Supplier<string>;
14
- token?: core.Supplier<core.BearerToken | undefined>;
14
+ token: core.Supplier<core.BearerToken>;
15
15
  /** Override the x-extend-api-version header */
16
16
  extendApiVersion?: "2025-04-21";
17
17
  /** Additional headers to include in requests. */
@@ -35,7 +35,7 @@ export declare namespace File_ {
35
35
  }
36
36
  export declare class File_ {
37
37
  protected readonly _options: File_.Options;
38
- constructor(_options?: File_.Options);
38
+ constructor(_options: File_.Options);
39
39
  /**
40
40
  * List files in your account. Files represent documents that have been uploaded to Extend. This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
41
41
  *
@@ -117,5 +117,5 @@ export declare class File_ {
117
117
  */
118
118
  upload(file: File | fs.ReadStream | Blob, requestOptions?: File_.RequestOptions): core.HttpResponsePromise<Extend.FileUploadResponse>;
119
119
  private __upload;
120
- protected _getAuthorizationHeader(): Promise<string | undefined>;
120
+ protected _getAuthorizationHeader(): Promise<string>;
121
121
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class File_ {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -370,11 +370,7 @@ class File_ {
370
370
  }
371
371
  _getAuthorizationHeader() {
372
372
  return __awaiter(this, void 0, void 0, function* () {
373
- const bearer = yield core.Supplier.get(this._options.token);
374
- if (bearer != null) {
375
- return `Bearer ${bearer}`;
376
- }
377
- return undefined;
373
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
378
374
  });
379
375
  }
380
376
  }
@@ -1,38 +1,38 @@
1
+ export * as file from "./file";
2
+ export * from "./file/types";
3
+ export * as parserRun from "./parserRun";
4
+ export * from "./parserRun/types";
5
+ export * as edit from "./edit";
6
+ export * from "./edit/types";
7
+ export * as workflow from "./workflow";
8
+ export * from "./workflow/types";
1
9
  export * as workflowRun from "./workflowRun";
2
10
  export * from "./workflowRun/types";
11
+ export * as workflowRunOutput from "./workflowRunOutput";
12
+ export * from "./workflowRunOutput/types";
3
13
  export * as batchWorkflowRun from "./batchWorkflowRun";
4
14
  export * from "./batchWorkflowRun/types";
15
+ export * as batchProcessorRun from "./batchProcessorRun";
16
+ export * from "./batchProcessorRun/types";
17
+ export * as evaluationSet from "./evaluationSet";
18
+ export * from "./evaluationSet/types";
19
+ export * as evaluationSetItem from "./evaluationSetItem";
20
+ export * from "./evaluationSetItem/types";
5
21
  export * as processorRun from "./processorRun";
6
22
  export * from "./processorRun/types";
7
23
  export * as processor from "./processor";
8
24
  export * from "./processor/types";
9
25
  export * as processorVersion from "./processorVersion";
10
26
  export * from "./processorVersion/types";
11
- export * as parserRun from "./parserRun";
12
- export * from "./parserRun/types";
13
- export * as edit from "./edit";
14
- export * from "./edit/types";
15
- export * as file from "./file";
16
- export * from "./file/types";
17
- export * as evaluationSet from "./evaluationSet";
18
- export * from "./evaluationSet/types";
19
- export * as evaluationSetItem from "./evaluationSetItem";
20
- export * from "./evaluationSetItem/types";
21
- export * as workflowRunOutput from "./workflowRunOutput";
22
- export * from "./workflowRunOutput/types";
23
- export * as batchProcessorRun from "./batchProcessorRun";
24
- export * from "./batchProcessorRun/types";
25
- export * as workflow from "./workflow";
26
- export * from "./workflow/types";
27
+ export * from "./file/client/requests";
28
+ export * from "./parserRun/client/requests";
29
+ export * from "./edit/client/requests";
30
+ export * from "./workflow/client/requests";
27
31
  export * from "./workflowRun/client/requests";
32
+ export * from "./workflowRunOutput/client/requests";
28
33
  export * from "./batchWorkflowRun/client/requests";
34
+ export * from "./evaluationSet/client/requests";
35
+ export * from "./evaluationSetItem/client/requests";
29
36
  export * from "./processorRun/client/requests";
30
37
  export * from "./processor/client/requests";
31
38
  export * from "./processorVersion/client/requests";
32
- export * from "./parserRun/client/requests";
33
- export * from "./edit/client/requests";
34
- export * from "./file/client/requests";
35
- export * from "./evaluationSet/client/requests";
36
- export * from "./evaluationSetItem/client/requests";
37
- export * from "./workflowRunOutput/client/requests";
38
- export * from "./workflow/client/requests";
@@ -36,42 +36,42 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workflow = exports.batchProcessorRun = exports.workflowRunOutput = exports.evaluationSetItem = exports.evaluationSet = exports.file = exports.edit = exports.parserRun = exports.processorVersion = exports.processor = exports.processorRun = exports.batchWorkflowRun = exports.workflowRun = void 0;
39
+ exports.processorVersion = exports.processor = exports.processorRun = exports.evaluationSetItem = exports.evaluationSet = exports.batchProcessorRun = exports.batchWorkflowRun = exports.workflowRunOutput = exports.workflowRun = exports.workflow = exports.edit = exports.parserRun = exports.file = void 0;
40
+ exports.file = __importStar(require("./file"));
41
+ __exportStar(require("./file/types"), exports);
42
+ exports.parserRun = __importStar(require("./parserRun"));
43
+ __exportStar(require("./parserRun/types"), exports);
44
+ exports.edit = __importStar(require("./edit"));
45
+ __exportStar(require("./edit/types"), exports);
46
+ exports.workflow = __importStar(require("./workflow"));
47
+ __exportStar(require("./workflow/types"), exports);
40
48
  exports.workflowRun = __importStar(require("./workflowRun"));
41
49
  __exportStar(require("./workflowRun/types"), exports);
50
+ exports.workflowRunOutput = __importStar(require("./workflowRunOutput"));
51
+ __exportStar(require("./workflowRunOutput/types"), exports);
42
52
  exports.batchWorkflowRun = __importStar(require("./batchWorkflowRun"));
43
53
  __exportStar(require("./batchWorkflowRun/types"), exports);
54
+ exports.batchProcessorRun = __importStar(require("./batchProcessorRun"));
55
+ __exportStar(require("./batchProcessorRun/types"), exports);
56
+ exports.evaluationSet = __importStar(require("./evaluationSet"));
57
+ __exportStar(require("./evaluationSet/types"), exports);
58
+ exports.evaluationSetItem = __importStar(require("./evaluationSetItem"));
59
+ __exportStar(require("./evaluationSetItem/types"), exports);
44
60
  exports.processorRun = __importStar(require("./processorRun"));
45
61
  __exportStar(require("./processorRun/types"), exports);
46
62
  exports.processor = __importStar(require("./processor"));
47
63
  __exportStar(require("./processor/types"), exports);
48
64
  exports.processorVersion = __importStar(require("./processorVersion"));
49
65
  __exportStar(require("./processorVersion/types"), exports);
50
- exports.parserRun = __importStar(require("./parserRun"));
51
- __exportStar(require("./parserRun/types"), exports);
52
- exports.edit = __importStar(require("./edit"));
53
- __exportStar(require("./edit/types"), exports);
54
- exports.file = __importStar(require("./file"));
55
- __exportStar(require("./file/types"), exports);
56
- exports.evaluationSet = __importStar(require("./evaluationSet"));
57
- __exportStar(require("./evaluationSet/types"), exports);
58
- exports.evaluationSetItem = __importStar(require("./evaluationSetItem"));
59
- __exportStar(require("./evaluationSetItem/types"), exports);
60
- exports.workflowRunOutput = __importStar(require("./workflowRunOutput"));
61
- __exportStar(require("./workflowRunOutput/types"), exports);
62
- exports.batchProcessorRun = __importStar(require("./batchProcessorRun"));
63
- __exportStar(require("./batchProcessorRun/types"), exports);
64
- exports.workflow = __importStar(require("./workflow"));
65
- __exportStar(require("./workflow/types"), exports);
66
+ __exportStar(require("./file/client/requests"), exports);
67
+ __exportStar(require("./parserRun/client/requests"), exports);
68
+ __exportStar(require("./edit/client/requests"), exports);
69
+ __exportStar(require("./workflow/client/requests"), exports);
66
70
  __exportStar(require("./workflowRun/client/requests"), exports);
71
+ __exportStar(require("./workflowRunOutput/client/requests"), exports);
67
72
  __exportStar(require("./batchWorkflowRun/client/requests"), exports);
73
+ __exportStar(require("./evaluationSet/client/requests"), exports);
74
+ __exportStar(require("./evaluationSetItem/client/requests"), exports);
68
75
  __exportStar(require("./processorRun/client/requests"), exports);
69
76
  __exportStar(require("./processor/client/requests"), exports);
70
77
  __exportStar(require("./processorVersion/client/requests"), exports);
71
- __exportStar(require("./parserRun/client/requests"), exports);
72
- __exportStar(require("./edit/client/requests"), exports);
73
- __exportStar(require("./file/client/requests"), exports);
74
- __exportStar(require("./evaluationSet/client/requests"), exports);
75
- __exportStar(require("./evaluationSetItem/client/requests"), exports);
76
- __exportStar(require("./workflowRunOutput/client/requests"), exports);
77
- __exportStar(require("./workflow/client/requests"), exports);
@@ -9,7 +9,7 @@ export declare namespace ParserRun {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace ParserRun {
33
33
  }
34
34
  export declare class ParserRun {
35
35
  protected readonly _options: ParserRun.Options;
36
- constructor(_options?: ParserRun.Options);
36
+ constructor(_options: ParserRun.Options);
37
37
  /**
38
38
  * Retrieve the status and results of a parser run.
39
39
  *
@@ -76,5 +76,5 @@ export declare class ParserRun {
76
76
  */
77
77
  delete(id: string, requestOptions?: ParserRun.RequestOptions): core.HttpResponsePromise<Extend.ParserRunDeleteResponse>;
78
78
  private __delete;
79
- protected _getAuthorizationHeader(): Promise<string | undefined>;
79
+ protected _getAuthorizationHeader(): Promise<string>;
80
80
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class ParserRun {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -208,11 +208,7 @@ class ParserRun {
208
208
  }
209
209
  _getAuthorizationHeader() {
210
210
  return __awaiter(this, void 0, void 0, function* () {
211
- const bearer = yield core.Supplier.get(this._options.token);
212
- if (bearer != null) {
213
- return `Bearer ${bearer}`;
214
- }
215
- return undefined;
211
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
216
212
  });
217
213
  }
218
214
  }
@@ -9,7 +9,7 @@ export declare namespace Processor {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace Processor {
33
33
  }
34
34
  export declare class Processor {
35
35
  protected readonly _options: Processor.Options;
36
- constructor(_options?: Processor.Options);
36
+ constructor(_options: Processor.Options);
37
37
  /**
38
38
  * List all processors in your organization
39
39
  *
@@ -92,5 +92,5 @@ export declare class Processor {
92
92
  */
93
93
  update(id: string, request?: Extend.ProcessorUpdateRequest, requestOptions?: Processor.RequestOptions): core.HttpResponsePromise<Extend.ProcessorUpdateResponse>;
94
94
  private __update;
95
- protected _getAuthorizationHeader(): Promise<string | undefined>;
95
+ protected _getAuthorizationHeader(): Promise<string>;
96
96
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class Processor {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -299,11 +299,7 @@ class Processor {
299
299
  }
300
300
  _getAuthorizationHeader() {
301
301
  return __awaiter(this, void 0, void 0, function* () {
302
- const bearer = yield core.Supplier.get(this._options.token);
303
- if (bearer != null) {
304
- return `Bearer ${bearer}`;
305
- }
306
- return undefined;
302
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
307
303
  });
308
304
  }
309
305
  }
@@ -9,7 +9,7 @@ export declare namespace ProcessorRun {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,7 +33,7 @@ export declare namespace ProcessorRun {
33
33
  }
34
34
  export declare class ProcessorRun {
35
35
  protected readonly _options: ProcessorRun.Options;
36
- constructor(_options?: ProcessorRun.Options);
36
+ constructor(_options: ProcessorRun.Options);
37
37
  /**
38
38
  * List runs of a Processor. A ProcessorRun represents a single execution of a processor against a file.
39
39
  *
@@ -67,7 +67,7 @@ export declare class ProcessorRun {
67
67
  * - **Synchronous**: Set `sync: true` to wait for completion and get final results in the response (5-minute timeout).
68
68
  *
69
69
  * **For asynchronous processing:**
70
- * - You can [configure webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration) to receive notifications when a processor run is complete or failed.
70
+ * - You can [configure webhooks](https://docs.extend.ai/product/webhooks/configuration) to receive notifications when a processor run is complete or failed.
71
71
  * - Or you can [poll the get endpoint](https://docs.extend.ai/2025-04-21/developers/api-reference/processor-endpoints/get-processor-run) for updates on the status of the processor run.
72
72
  *
73
73
  * @param {Extend.ProcessorRunCreateRequest} request
@@ -141,5 +141,5 @@ export declare class ProcessorRun {
141
141
  */
142
142
  cancel(id: string, requestOptions?: ProcessorRun.RequestOptions): core.HttpResponsePromise<Extend.ProcessorRunCancelResponse>;
143
143
  private __cancel;
144
- protected _getAuthorizationHeader(): Promise<string | undefined>;
144
+ protected _getAuthorizationHeader(): Promise<string>;
145
145
  }
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
52
52
  const headers_1 = require("../../../../core/headers");
53
53
  const errors = __importStar(require("../../../../errors/index"));
54
54
  class ProcessorRun {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -171,7 +171,7 @@ class ProcessorRun {
171
171
  * - **Synchronous**: Set `sync: true` to wait for completion and get final results in the response (5-minute timeout).
172
172
  *
173
173
  * **For asynchronous processing:**
174
- * - You can [configure webhooks](https://docs.extend.ai/2025-04-21/developers/webhooks/configuration) to receive notifications when a processor run is complete or failed.
174
+ * - You can [configure webhooks](https://docs.extend.ai/product/webhooks/configuration) to receive notifications when a processor run is complete or failed.
175
175
  * - Or you can [poll the get endpoint](https://docs.extend.ai/2025-04-21/developers/api-reference/processor-endpoints/get-processor-run) for updates on the status of the processor run.
176
176
  *
177
177
  * @param {Extend.ProcessorRunCreateRequest} request
@@ -462,11 +462,7 @@ class ProcessorRun {
462
462
  }
463
463
  _getAuthorizationHeader() {
464
464
  return __awaiter(this, void 0, void 0, function* () {
465
- const bearer = yield core.Supplier.get(this._options.token);
466
- if (bearer != null) {
467
- return `Bearer ${bearer}`;
468
- }
469
- return undefined;
465
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
470
466
  });
471
467
  }
472
468
  }
@@ -9,7 +9,7 @@ export declare namespace ProcessorVersion {
9
9
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
12
+ token: core.Supplier<core.BearerToken>;
13
13
  /** Override the x-extend-api-version header */
14
14
  extendApiVersion?: "2025-04-21";
15
15
  /** Additional headers to include in requests. */
@@ -33,27 +33,7 @@ export declare namespace ProcessorVersion {
33
33
  }
34
34
  export declare class ProcessorVersion {
35
35
  protected readonly _options: ProcessorVersion.Options;
36
- constructor(_options?: ProcessorVersion.Options);
37
- /**
38
- * Retrieve a specific version of a processor in Extend
39
- *
40
- * @param {string} processorId - The ID of the processor.
41
- *
42
- * Example: `"dp_Xj8mK2pL9nR4vT7qY5wZ"`
43
- * @param {string} processorVersionId - The ID of the specific processor version to retrieve.
44
- *
45
- * Example: `"dpv_QYk6jgHA_8CsO8rVWhyNC"`
46
- * @param {ProcessorVersion.RequestOptions} requestOptions - Request-specific configuration.
47
- *
48
- * @throws {@link Extend.BadRequestError}
49
- * @throws {@link Extend.UnauthorizedError}
50
- * @throws {@link Extend.NotFoundError}
51
- *
52
- * @example
53
- * await client.processorVersion.get("processor_id_here", "processor_version_id_here")
54
- */
55
- get(processorId: string, processorVersionId: string, requestOptions?: ProcessorVersion.RequestOptions): core.HttpResponsePromise<Extend.ProcessorVersionGetResponse>;
56
- private __get;
36
+ constructor(_options: ProcessorVersion.Options);
57
37
  /**
58
38
  * This endpoint allows you to fetch all versions of a given processor, including the current `draft` version.
59
39
  *
@@ -95,5 +75,25 @@ export declare class ProcessorVersion {
95
75
  */
96
76
  create(id: string, request: Extend.ProcessorVersionCreateRequest, requestOptions?: ProcessorVersion.RequestOptions): core.HttpResponsePromise<Extend.ProcessorVersionCreateResponse>;
97
77
  private __create;
98
- protected _getAuthorizationHeader(): Promise<string | undefined>;
78
+ /**
79
+ * Retrieve a specific version of a processor in Extend
80
+ *
81
+ * @param {string} processorId - The ID of the processor.
82
+ *
83
+ * Example: `"dp_Xj8mK2pL9nR4vT7qY5wZ"`
84
+ * @param {string} processorVersionId - The ID of the specific processor version to retrieve.
85
+ *
86
+ * Example: `"dpv_QYk6jgHA_8CsO8rVWhyNC"`
87
+ * @param {ProcessorVersion.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Extend.BadRequestError}
90
+ * @throws {@link Extend.UnauthorizedError}
91
+ * @throws {@link Extend.NotFoundError}
92
+ *
93
+ * @example
94
+ * await client.processorVersion.get("processor_id_here", "processor_version_id_here")
95
+ */
96
+ get(processorId: string, processorVersionId: string, requestOptions?: ProcessorVersion.RequestOptions): core.HttpResponsePromise<Extend.ProcessorVersionGetResponse>;
97
+ private __get;
98
+ protected _getAuthorizationHeader(): Promise<string>;
99
99
  }