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
package/Client.d.ts CHANGED
@@ -4,25 +4,25 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import * as Extend from "./api/index";
7
+ import { File_ } from "./api/resources/file/client/Client";
8
+ import { ParserRun } from "./api/resources/parserRun/client/Client";
9
+ import { Edit } from "./api/resources/edit/client/Client";
10
+ import { Workflow } from "./api/resources/workflow/client/Client";
7
11
  import { WorkflowRun } from "./api/resources/workflowRun/client/Client";
12
+ import { WorkflowRunOutput } from "./api/resources/workflowRunOutput/client/Client";
8
13
  import { BatchWorkflowRun } from "./api/resources/batchWorkflowRun/client/Client";
14
+ import { BatchProcessorRun } from "./api/resources/batchProcessorRun/client/Client";
15
+ import { EvaluationSet } from "./api/resources/evaluationSet/client/Client";
16
+ import { EvaluationSetItem } from "./api/resources/evaluationSetItem/client/Client";
9
17
  import { ProcessorRun } from "./api/resources/processorRun/client/Client";
10
18
  import { Processor } from "./api/resources/processor/client/Client";
11
19
  import { ProcessorVersion } from "./api/resources/processorVersion/client/Client";
12
- import { ParserRun } from "./api/resources/parserRun/client/Client";
13
- import { Edit } from "./api/resources/edit/client/Client";
14
- import { File_ } from "./api/resources/file/client/Client";
15
- import { EvaluationSet } from "./api/resources/evaluationSet/client/Client";
16
- import { EvaluationSetItem } from "./api/resources/evaluationSetItem/client/Client";
17
- import { WorkflowRunOutput } from "./api/resources/workflowRunOutput/client/Client";
18
- import { BatchProcessorRun } from "./api/resources/batchProcessorRun/client/Client";
19
- import { Workflow } from "./api/resources/workflow/client/Client";
20
20
  export declare namespace ExtendClient {
21
21
  interface Options {
22
22
  environment?: core.Supplier<environments.ExtendEnvironment | string>;
23
23
  /** Specify a custom URL to connect the client to. */
24
24
  baseUrl?: core.Supplier<string>;
25
- token?: core.Supplier<core.BearerToken | undefined>;
25
+ token: core.Supplier<core.BearerToken>;
26
26
  /** Override the x-extend-api-version header */
27
27
  extendApiVersion?: "2025-04-21";
28
28
  /** Additional headers to include in requests. */
@@ -46,33 +46,33 @@ export declare namespace ExtendClient {
46
46
  }
47
47
  export declare class ExtendClient {
48
48
  protected readonly _options: ExtendClient.Options;
49
+ protected _file: File_ | undefined;
50
+ protected _parserRun: ParserRun | undefined;
51
+ protected _edit: Edit | undefined;
52
+ protected _workflow: Workflow | undefined;
49
53
  protected _workflowRun: WorkflowRun | undefined;
54
+ protected _workflowRunOutput: WorkflowRunOutput | undefined;
50
55
  protected _batchWorkflowRun: BatchWorkflowRun | undefined;
56
+ protected _batchProcessorRun: BatchProcessorRun | undefined;
57
+ protected _evaluationSet: EvaluationSet | undefined;
58
+ protected _evaluationSetItem: EvaluationSetItem | undefined;
51
59
  protected _processorRun: ProcessorRun | undefined;
52
60
  protected _processor: Processor | undefined;
53
61
  protected _processorVersion: ProcessorVersion | undefined;
54
- protected _parserRun: ParserRun | undefined;
55
- protected _edit: Edit | undefined;
56
- protected _file: File_ | undefined;
57
- protected _evaluationSet: EvaluationSet | undefined;
58
- protected _evaluationSetItem: EvaluationSetItem | undefined;
59
- protected _workflowRunOutput: WorkflowRunOutput | undefined;
60
- protected _batchProcessorRun: BatchProcessorRun | undefined;
61
- protected _workflow: Workflow | undefined;
62
- constructor(_options?: ExtendClient.Options);
62
+ constructor(_options: ExtendClient.Options);
63
+ get file(): File_;
64
+ get parserRun(): ParserRun;
65
+ get edit(): Edit;
66
+ get workflow(): Workflow;
63
67
  get workflowRun(): WorkflowRun;
68
+ get workflowRunOutput(): WorkflowRunOutput;
64
69
  get batchWorkflowRun(): BatchWorkflowRun;
70
+ get batchProcessorRun(): BatchProcessorRun;
71
+ get evaluationSet(): EvaluationSet;
72
+ get evaluationSetItem(): EvaluationSetItem;
65
73
  get processorRun(): ProcessorRun;
66
74
  get processor(): Processor;
67
75
  get processorVersion(): ProcessorVersion;
68
- get parserRun(): ParserRun;
69
- get edit(): Edit;
70
- get file(): File_;
71
- get evaluationSet(): EvaluationSet;
72
- get evaluationSetItem(): EvaluationSetItem;
73
- get workflowRunOutput(): WorkflowRunOutput;
74
- get batchProcessorRun(): BatchProcessorRun;
75
- get workflow(): Workflow;
76
76
  /**
77
77
  * Parse files to get cleaned, chunked target content (e.g. markdown).
78
78
  *
@@ -124,5 +124,5 @@ export declare class ExtendClient {
124
124
  */
125
125
  parseAsync(request: Extend.ParseAsyncRequest, requestOptions?: ExtendClient.RequestOptions): core.HttpResponsePromise<Extend.ParserRunStatus>;
126
126
  private __parseAsync;
127
- protected _getAuthorizationHeader(): Promise<string | undefined>;
127
+ protected _getAuthorizationHeader(): Promise<string>;
128
128
  }
package/Client.js CHANGED
@@ -62,63 +62,63 @@ const core = __importStar(require("./core"));
62
62
  const headers_1 = require("./core/headers");
63
63
  const Extend = __importStar(require("./api/index"));
64
64
  const errors = __importStar(require("./errors/index"));
65
- const Client_1 = require("./api/resources/workflowRun/client/Client");
66
- const Client_2 = require("./api/resources/batchWorkflowRun/client/Client");
67
- const Client_3 = require("./api/resources/processorRun/client/Client");
68
- const Client_4 = require("./api/resources/processor/client/Client");
69
- const Client_5 = require("./api/resources/processorVersion/client/Client");
70
- const Client_6 = require("./api/resources/parserRun/client/Client");
71
- const Client_7 = require("./api/resources/edit/client/Client");
72
- const Client_8 = require("./api/resources/file/client/Client");
65
+ const Client_1 = require("./api/resources/file/client/Client");
66
+ const Client_2 = require("./api/resources/parserRun/client/Client");
67
+ const Client_3 = require("./api/resources/edit/client/Client");
68
+ const Client_4 = require("./api/resources/workflow/client/Client");
69
+ const Client_5 = require("./api/resources/workflowRun/client/Client");
70
+ const Client_6 = require("./api/resources/workflowRunOutput/client/Client");
71
+ const Client_7 = require("./api/resources/batchWorkflowRun/client/Client");
72
+ const Client_8 = require("./api/resources/batchProcessorRun/client/Client");
73
73
  const Client_9 = require("./api/resources/evaluationSet/client/Client");
74
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");
75
+ const Client_11 = require("./api/resources/processorRun/client/Client");
76
+ const Client_12 = require("./api/resources/processor/client/Client");
77
+ const Client_13 = require("./api/resources/processorVersion/client/Client");
78
78
  class ExtendClient {
79
- constructor(_options = {}) {
79
+ constructor(_options) {
80
80
  var _a;
81
81
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
82
82
  "x-extend-api-version": (_a = _options === null || _options === void 0 ? void 0 : _options.extendApiVersion) !== null && _a !== void 0 ? _a : "2025-04-21",
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "extend-ai",
85
- "X-Fern-SDK-Version": "0.0.18",
86
- "User-Agent": "extend-ai/0.0.18",
85
+ "X-Fern-SDK-Version": "0.1.0",
86
+ "User-Agent": "extend-ai/0.1.0",
87
87
  "X-Fern-Runtime": core.RUNTIME.type,
88
88
  "X-Fern-Runtime-Version": core.RUNTIME.version,
89
89
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
90
90
  }
91
- get workflowRun() {
91
+ get file() {
92
92
  var _a;
93
- return ((_a = this._workflowRun) !== null && _a !== void 0 ? _a : (this._workflowRun = new Client_1.WorkflowRun(this._options)));
93
+ return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_1.File_(this._options)));
94
94
  }
95
- get batchWorkflowRun() {
95
+ get parserRun() {
96
96
  var _a;
97
- return ((_a = this._batchWorkflowRun) !== null && _a !== void 0 ? _a : (this._batchWorkflowRun = new Client_2.BatchWorkflowRun(this._options)));
97
+ return ((_a = this._parserRun) !== null && _a !== void 0 ? _a : (this._parserRun = new Client_2.ParserRun(this._options)));
98
98
  }
99
- get processorRun() {
99
+ get edit() {
100
100
  var _a;
101
- return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_3.ProcessorRun(this._options)));
101
+ return ((_a = this._edit) !== null && _a !== void 0 ? _a : (this._edit = new Client_3.Edit(this._options)));
102
102
  }
103
- get processor() {
103
+ get workflow() {
104
104
  var _a;
105
- return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_4.Processor(this._options)));
105
+ return ((_a = this._workflow) !== null && _a !== void 0 ? _a : (this._workflow = new Client_4.Workflow(this._options)));
106
106
  }
107
- get processorVersion() {
107
+ get workflowRun() {
108
108
  var _a;
109
- return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_5.ProcessorVersion(this._options)));
109
+ return ((_a = this._workflowRun) !== null && _a !== void 0 ? _a : (this._workflowRun = new Client_5.WorkflowRun(this._options)));
110
110
  }
111
- get parserRun() {
111
+ get workflowRunOutput() {
112
112
  var _a;
113
- return ((_a = this._parserRun) !== null && _a !== void 0 ? _a : (this._parserRun = new Client_6.ParserRun(this._options)));
113
+ return ((_a = this._workflowRunOutput) !== null && _a !== void 0 ? _a : (this._workflowRunOutput = new Client_6.WorkflowRunOutput(this._options)));
114
114
  }
115
- get edit() {
115
+ get batchWorkflowRun() {
116
116
  var _a;
117
- return ((_a = this._edit) !== null && _a !== void 0 ? _a : (this._edit = new Client_7.Edit(this._options)));
117
+ return ((_a = this._batchWorkflowRun) !== null && _a !== void 0 ? _a : (this._batchWorkflowRun = new Client_7.BatchWorkflowRun(this._options)));
118
118
  }
119
- get file() {
119
+ get batchProcessorRun() {
120
120
  var _a;
121
- return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_8.File_(this._options)));
121
+ return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_8.BatchProcessorRun(this._options)));
122
122
  }
123
123
  get evaluationSet() {
124
124
  var _a;
@@ -128,17 +128,17 @@ class ExtendClient {
128
128
  var _a;
129
129
  return ((_a = this._evaluationSetItem) !== null && _a !== void 0 ? _a : (this._evaluationSetItem = new Client_10.EvaluationSetItem(this._options)));
130
130
  }
131
- get workflowRunOutput() {
131
+ get processorRun() {
132
132
  var _a;
133
- return ((_a = this._workflowRunOutput) !== null && _a !== void 0 ? _a : (this._workflowRunOutput = new Client_11.WorkflowRunOutput(this._options)));
133
+ return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_11.ProcessorRun(this._options)));
134
134
  }
135
- get batchProcessorRun() {
135
+ get processor() {
136
136
  var _a;
137
- return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_12.BatchProcessorRun(this._options)));
137
+ return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_12.Processor(this._options)));
138
138
  }
139
- get workflow() {
139
+ get processorVersion() {
140
140
  var _a;
141
- return ((_a = this._workflow) !== null && _a !== void 0 ? _a : (this._workflow = new Client_13.Workflow(this._options)));
141
+ return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_13.ProcessorVersion(this._options)));
142
142
  }
143
143
  /**
144
144
  * Parse files to get cleaned, chunked target content (e.g. markdown).
@@ -314,11 +314,7 @@ class ExtendClient {
314
314
  }
315
315
  _getAuthorizationHeader() {
316
316
  return __awaiter(this, void 0, void 0, function* () {
317
- const bearer = yield core.Supplier.get(this._options.token);
318
- if (bearer != null) {
319
- return `Bearer ${bearer}`;
320
- }
321
- return undefined;
317
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
322
318
  });
323
319
  }
324
320
  }
@@ -2,6 +2,6 @@ export * from "./BadRequestError";
2
2
  export * from "./UnauthorizedError";
3
3
  export * from "./NotFoundError";
4
4
  export * from "./InternalServerError";
5
- export * from "./TooManyRequestsError";
6
5
  export * from "./PaymentRequiredError";
7
6
  export * from "./UnprocessableEntityError";
7
+ export * from "./TooManyRequestsError";
@@ -18,6 +18,6 @@ __exportStar(require("./BadRequestError"), exports);
18
18
  __exportStar(require("./UnauthorizedError"), exports);
19
19
  __exportStar(require("./NotFoundError"), exports);
20
20
  __exportStar(require("./InternalServerError"), exports);
21
- __exportStar(require("./TooManyRequestsError"), exports);
22
21
  __exportStar(require("./PaymentRequiredError"), exports);
23
22
  __exportStar(require("./UnprocessableEntityError"), exports);
23
+ __exportStar(require("./TooManyRequestsError"), exports);
@@ -9,7 +9,7 @@ export declare namespace BatchProcessorRun {
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 BatchProcessorRun {
33
33
  }
34
34
  export declare class BatchProcessorRun {
35
35
  protected readonly _options: BatchProcessorRun.Options;
36
- constructor(_options?: BatchProcessorRun.Options);
36
+ constructor(_options: BatchProcessorRun.Options);
37
37
  /**
38
38
  * Retrieve details about a batch processor run, including evaluation runs
39
39
  *
@@ -51,5 +51,5 @@ export declare class BatchProcessorRun {
51
51
  */
52
52
  get(id: string, requestOptions?: BatchProcessorRun.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
53
53
  private __get;
54
- protected _getAuthorizationHeader(): Promise<string | undefined>;
54
+ protected _getAuthorizationHeader(): Promise<string>;
55
55
  }
@@ -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 BatchProcessorRun {
55
- constructor(_options = {}) {
55
+ constructor(_options) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
@@ -127,11 +127,7 @@ class BatchProcessorRun {
127
127
  }
128
128
  _getAuthorizationHeader() {
129
129
  return __awaiter(this, void 0, void 0, function* () {
130
- const bearer = yield core.Supplier.get(this._options.token);
131
- if (bearer != null) {
132
- return `Bearer ${bearer}`;
133
- }
134
- return undefined;
130
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
135
131
  });
136
132
  }
137
133
  }
@@ -9,7 +9,7 @@ export declare namespace BatchWorkflowRun {
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 BatchWorkflowRun {
33
33
  }
34
34
  export declare class BatchWorkflowRun {
35
35
  protected readonly _options: BatchWorkflowRun.Options;
36
- constructor(_options?: BatchWorkflowRun.Options);
36
+ constructor(_options: BatchWorkflowRun.Options);
37
37
  /**
38
38
  * This endpoint allows you to efficiently initiate large batches of workflow runs in a single request (up to 1,000 in a single request, but you can queue up multiple batches in rapid succession). It accepts an array of inputs, each containing a file and metadata pair. The primary use case for this endpoint is for doing large bulk runs of >1000 files at a time that can process over the course of a few hours without needing to manage rate limits that would likely occur using the primary run endpoint.
39
39
  *
@@ -64,5 +64,5 @@ export declare class BatchWorkflowRun {
64
64
  */
65
65
  create(request: Extend.BatchWorkflowRunCreateRequest, requestOptions?: BatchWorkflowRun.RequestOptions): core.HttpResponsePromise<Extend.BatchWorkflowRunCreateResponse>;
66
66
  private __create;
67
- protected _getAuthorizationHeader(): Promise<string | undefined>;
67
+ protected _getAuthorizationHeader(): Promise<string>;
68
68
  }
@@ -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";