extend-ai 0.0.1-beta → 0.0.3

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 (97) hide show
  1. package/Client.js +1 -1
  2. package/README.md +1 -1
  3. package/api/resources/batchProcessorRun/client/Client.js +1 -1
  4. package/api/resources/batchWorkflowRun/client/Client.js +1 -1
  5. package/api/resources/evaluationSet/client/Client.d.ts +36 -0
  6. package/api/resources/evaluationSet/client/Client.js +153 -1
  7. package/api/resources/evaluationSet/client/requests/EvaluationSetListRequest.d.ts +29 -0
  8. package/api/resources/evaluationSet/client/requests/EvaluationSetListRequest.js +5 -0
  9. package/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
  10. package/api/resources/evaluationSet/types/EvaluationSetGetResponse.d.ts +8 -0
  11. package/api/resources/evaluationSet/types/EvaluationSetGetResponse.js +5 -0
  12. package/api/resources/evaluationSet/types/EvaluationSetListResponse.d.ts +9 -0
  13. package/api/resources/evaluationSet/types/EvaluationSetListResponse.js +5 -0
  14. package/api/resources/evaluationSet/types/index.d.ts +2 -0
  15. package/api/resources/evaluationSet/types/index.js +2 -0
  16. package/api/resources/evaluationSetItem/client/Client.d.ts +22 -0
  17. package/api/resources/evaluationSetItem/client/Client.js +90 -3
  18. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemListRequest.d.ts +22 -0
  19. package/api/resources/evaluationSetItem/client/requests/EvaluationSetItemListRequest.js +5 -0
  20. package/api/resources/evaluationSetItem/client/requests/index.d.ts +1 -0
  21. package/api/resources/evaluationSetItem/types/EvaluationSetItemListResponse.d.ts +9 -0
  22. package/api/resources/evaluationSetItem/types/EvaluationSetItemListResponse.js +5 -0
  23. package/api/resources/evaluationSetItem/types/index.d.ts +1 -0
  24. package/api/resources/evaluationSetItem/types/index.js +1 -0
  25. package/api/resources/file/client/Client.js +3 -3
  26. package/api/resources/processor/client/Client.js +2 -2
  27. package/api/resources/processorRun/client/Client.d.ts +19 -0
  28. package/api/resources/processorRun/client/Client.js +71 -2
  29. package/api/resources/processorRun/types/ProcessorRunCancelResponse.d.ts +8 -0
  30. package/api/resources/processorRun/types/ProcessorRunCancelResponse.js +5 -0
  31. package/api/resources/processorRun/types/index.d.ts +1 -0
  32. package/api/resources/processorRun/types/index.js +1 -0
  33. package/api/resources/processorVersion/client/Client.js +3 -3
  34. package/api/resources/workflow/client/Client.js +1 -1
  35. package/api/resources/workflowRun/client/Client.js +8 -5
  36. package/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +6 -0
  37. package/api/resources/workflowRunOutput/client/Client.js +1 -1
  38. package/api/types/ExtractionAdvancedOptions.d.ts +0 -2
  39. package/api/types/ProcessorRun.d.ts +1 -0
  40. package/api/types/ProcessorRunStatus.d.ts +3 -1
  41. package/api/types/ProcessorRunStatus.js +1 -0
  42. package/api/types/SplitterConfig.d.ts +3 -3
  43. package/api/types/SplitterConfigBaseProcessor.d.ts +11 -0
  44. package/api/types/SplitterConfigBaseProcessor.js +10 -0
  45. package/api/types/index.d.ts +1 -0
  46. package/api/types/index.js +1 -0
  47. package/dist/Client.js +1 -1
  48. package/dist/api/resources/batchProcessorRun/client/Client.js +1 -1
  49. package/dist/api/resources/batchWorkflowRun/client/Client.js +1 -1
  50. package/dist/api/resources/evaluationSet/client/Client.d.ts +36 -0
  51. package/dist/api/resources/evaluationSet/client/Client.js +153 -1
  52. package/dist/api/resources/evaluationSet/client/requests/EvaluationSetListRequest.d.ts +29 -0
  53. package/dist/api/resources/evaluationSet/client/requests/EvaluationSetListRequest.js +5 -0
  54. package/dist/api/resources/evaluationSet/client/requests/index.d.ts +1 -0
  55. package/dist/api/resources/evaluationSet/types/EvaluationSetGetResponse.d.ts +8 -0
  56. package/dist/api/resources/evaluationSet/types/EvaluationSetGetResponse.js +5 -0
  57. package/dist/api/resources/evaluationSet/types/EvaluationSetListResponse.d.ts +9 -0
  58. package/dist/api/resources/evaluationSet/types/EvaluationSetListResponse.js +5 -0
  59. package/dist/api/resources/evaluationSet/types/index.d.ts +2 -0
  60. package/dist/api/resources/evaluationSet/types/index.js +2 -0
  61. package/dist/api/resources/evaluationSetItem/client/Client.d.ts +22 -0
  62. package/dist/api/resources/evaluationSetItem/client/Client.js +90 -3
  63. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemListRequest.d.ts +22 -0
  64. package/dist/api/resources/evaluationSetItem/client/requests/EvaluationSetItemListRequest.js +5 -0
  65. package/dist/api/resources/evaluationSetItem/client/requests/index.d.ts +1 -0
  66. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemListResponse.d.ts +9 -0
  67. package/dist/api/resources/evaluationSetItem/types/EvaluationSetItemListResponse.js +5 -0
  68. package/dist/api/resources/evaluationSetItem/types/index.d.ts +1 -0
  69. package/dist/api/resources/evaluationSetItem/types/index.js +1 -0
  70. package/dist/api/resources/file/client/Client.js +3 -3
  71. package/dist/api/resources/processor/client/Client.js +2 -2
  72. package/dist/api/resources/processorRun/client/Client.d.ts +19 -0
  73. package/dist/api/resources/processorRun/client/Client.js +71 -2
  74. package/dist/api/resources/processorRun/types/ProcessorRunCancelResponse.d.ts +8 -0
  75. package/dist/api/resources/processorRun/types/ProcessorRunCancelResponse.js +5 -0
  76. package/dist/api/resources/processorRun/types/index.d.ts +1 -0
  77. package/dist/api/resources/processorRun/types/index.js +1 -0
  78. package/dist/api/resources/processorVersion/client/Client.js +3 -3
  79. package/dist/api/resources/workflow/client/Client.js +1 -1
  80. package/dist/api/resources/workflowRun/client/Client.js +8 -5
  81. package/dist/api/resources/workflowRun/client/requests/WorkflowRunListRequest.d.ts +6 -0
  82. package/dist/api/resources/workflowRunOutput/client/Client.js +1 -1
  83. package/dist/api/types/ExtractionAdvancedOptions.d.ts +0 -2
  84. package/dist/api/types/ProcessorRun.d.ts +1 -0
  85. package/dist/api/types/ProcessorRunStatus.d.ts +3 -1
  86. package/dist/api/types/ProcessorRunStatus.js +1 -0
  87. package/dist/api/types/SplitterConfig.d.ts +3 -3
  88. package/dist/api/types/SplitterConfigBaseProcessor.d.ts +11 -0
  89. package/dist/api/types/SplitterConfigBaseProcessor.js +10 -0
  90. package/dist/api/types/index.d.ts +1 -0
  91. package/dist/api/types/index.js +1 -0
  92. package/dist/version.d.ts +1 -1
  93. package/dist/version.js +1 -1
  94. package/package.json +1 -1
  95. package/reference.md +283 -0
  96. package/version.d.ts +1 -1
  97. package/version.js +1 -1
package/Client.js CHANGED
@@ -143,7 +143,7 @@ class ExtendClient {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "parse"),
145
145
  method: "POST",
146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: request,
package/README.md CHANGED
@@ -4,7 +4,7 @@ The Extend TypeScript library provides convenient access to the Extend API from
4
4
 
5
5
  ## Documentation
6
6
 
7
- API reference documentation is available [here](https://docs.extend.ai/2025-04-21/developers/authentication).
7
+ API reference documentation is available [here](https://docs.extend.ai/2025-04-21/developers).
8
8
 
9
9
  ## Installation
10
10
 
@@ -82,7 +82,7 @@ class BatchProcessorRun {
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
83
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `batch_processor_runs/${encodeURIComponent(id)}`),
84
84
  method: "GET",
85
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
@@ -93,7 +93,7 @@ class BatchWorkflowRun {
93
93
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
94
94
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "workflow_runs/batch"),
95
95
  method: "POST",
96
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  contentType: "application/json",
98
98
  requestType: "json",
99
99
  body: request,
@@ -30,6 +30,25 @@ export declare namespace EvaluationSet {
30
30
  export declare class EvaluationSet {
31
31
  protected readonly _options: EvaluationSet.Options;
32
32
  constructor(_options: EvaluationSet.Options);
33
+ /**
34
+ * List evaluation sets in your account. You can use the `processorId` parameter to filter evaluation sets by processor.
35
+ *
36
+ * This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
37
+ *
38
+ * @param {Extend.EvaluationSetListRequest} request
39
+ * @param {EvaluationSet.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @throws {@link Extend.BadRequestError}
42
+ * @throws {@link Extend.UnauthorizedError}
43
+ *
44
+ * @example
45
+ * await client.evaluationSet.list({
46
+ * processorId: "processor_id_here",
47
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
48
+ * })
49
+ */
50
+ list(request?: Extend.EvaluationSetListRequest, requestOptions?: EvaluationSet.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetListResponse>;
51
+ private __list;
33
52
  /**
34
53
  * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set in Extend, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2025-04-21/developers/api-reference/evaluation-set-endpoints/create-evaluation-set-item) endpoint.
35
54
  *
@@ -50,5 +69,22 @@ export declare class EvaluationSet {
50
69
  */
51
70
  create(request: Extend.EvaluationSetCreateRequest, requestOptions?: EvaluationSet.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetCreateResponse>;
52
71
  private __create;
72
+ /**
73
+ * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2025-04-21/developers/api-reference/evaluation-set-endpoints/list-evaluation-set-items) endpoint to get the items in an evaluation set.
74
+ *
75
+ * @param {string} id - The ID of the evaluation set to retrieve.
76
+ *
77
+ * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"`
78
+ * @param {EvaluationSet.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link Extend.BadRequestError}
81
+ * @throws {@link Extend.UnauthorizedError}
82
+ * @throws {@link Extend.NotFoundError}
83
+ *
84
+ * @example
85
+ * await client.evaluationSet.get("evaluation_set_id_here")
86
+ */
87
+ get(id: string, requestOptions?: EvaluationSet.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetGetResponse>;
88
+ private __get;
53
89
  protected _getAuthorizationHeader(): Promise<string>;
54
90
  }
@@ -58,6 +58,91 @@ class EvaluationSet {
58
58
  constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
+ /**
62
+ * List evaluation sets in your account. You can use the `processorId` parameter to filter evaluation sets by processor.
63
+ *
64
+ * This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
65
+ *
66
+ * @param {Extend.EvaluationSetListRequest} request
67
+ * @param {EvaluationSet.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Extend.BadRequestError}
70
+ * @throws {@link Extend.UnauthorizedError}
71
+ *
72
+ * @example
73
+ * await client.evaluationSet.list({
74
+ * processorId: "processor_id_here",
75
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
76
+ * })
77
+ */
78
+ list(request = {}, requestOptions) {
79
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
80
+ }
81
+ __list() {
82
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
83
+ var _a, _b, _c, _d, _e, _f;
84
+ const { processorId, sortBy, sortDir, nextPageToken, maxPageSize } = request;
85
+ const _queryParams = {};
86
+ if (processorId != null) {
87
+ _queryParams["processorId"] = processorId;
88
+ }
89
+ if (sortBy != null) {
90
+ _queryParams["sortBy"] = sortBy;
91
+ }
92
+ if (sortDir != null) {
93
+ _queryParams["sortDir"] = sortDir;
94
+ }
95
+ if (nextPageToken != null) {
96
+ _queryParams["nextPageToken"] = nextPageToken;
97
+ }
98
+ if (maxPageSize != null) {
99
+ _queryParams["maxPageSize"] = maxPageSize.toString();
100
+ }
101
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_sets"),
103
+ method: "GET",
104
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ contentType: "application/json",
106
+ queryParameters: _queryParams,
107
+ requestType: "json",
108
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
109
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
110
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
+ });
112
+ if (_response.ok) {
113
+ return { data: _response.body, rawResponse: _response.rawResponse };
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ switch (_response.error.statusCode) {
117
+ case 400:
118
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
119
+ case 401:
120
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
121
+ default:
122
+ throw new errors.ExtendError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.body,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ }
128
+ }
129
+ switch (_response.error.reason) {
130
+ case "non-json":
131
+ throw new errors.ExtendError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.rawBody,
134
+ rawResponse: _response.rawResponse,
135
+ });
136
+ case "timeout":
137
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling GET /evaluation_sets.");
138
+ case "unknown":
139
+ throw new errors.ExtendError({
140
+ message: _response.error.errorMessage,
141
+ rawResponse: _response.rawResponse,
142
+ });
143
+ }
144
+ });
145
+ }
61
146
  /**
62
147
  * Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set in Extend, which items can be added to using the [Create Evaluation Set Item](https://docs.extend.ai/2025-04-21/developers/api-reference/evaluation-set-endpoints/create-evaluation-set-item) endpoint.
63
148
  *
@@ -85,7 +170,7 @@ class EvaluationSet {
85
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
171
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_sets"),
87
172
  method: "POST",
88
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
174
  contentType: "application/json",
90
175
  requestType: "json",
91
176
  body: request,
@@ -127,6 +212,73 @@ class EvaluationSet {
127
212
  }
128
213
  });
129
214
  }
215
+ /**
216
+ * Retrieve a specific evaluation set by ID. This returns an evaluation set object, but does not include the items in the evaluation set. You can use the [List Evaluation Set Items](https://docs.extend.ai/2025-04-21/developers/api-reference/evaluation-set-endpoints/list-evaluation-set-items) endpoint to get the items in an evaluation set.
217
+ *
218
+ * @param {string} id - The ID of the evaluation set to retrieve.
219
+ *
220
+ * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"`
221
+ * @param {EvaluationSet.RequestOptions} requestOptions - Request-specific configuration.
222
+ *
223
+ * @throws {@link Extend.BadRequestError}
224
+ * @throws {@link Extend.UnauthorizedError}
225
+ * @throws {@link Extend.NotFoundError}
226
+ *
227
+ * @example
228
+ * await client.evaluationSet.get("evaluation_set_id_here")
229
+ */
230
+ get(id, requestOptions) {
231
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
232
+ }
233
+ __get(id, requestOptions) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ var _a, _b, _c, _d, _e, _f;
236
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `evaluation_sets/${encodeURIComponent(id)}`),
238
+ method: "GET",
239
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ contentType: "application/json",
241
+ requestType: "json",
242
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
243
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
244
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
245
+ });
246
+ if (_response.ok) {
247
+ return { data: _response.body, rawResponse: _response.rawResponse };
248
+ }
249
+ if (_response.error.reason === "status-code") {
250
+ switch (_response.error.statusCode) {
251
+ case 400:
252
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
253
+ case 401:
254
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
255
+ case 404:
256
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
257
+ default:
258
+ throw new errors.ExtendError({
259
+ statusCode: _response.error.statusCode,
260
+ body: _response.error.body,
261
+ rawResponse: _response.rawResponse,
262
+ });
263
+ }
264
+ }
265
+ switch (_response.error.reason) {
266
+ case "non-json":
267
+ throw new errors.ExtendError({
268
+ statusCode: _response.error.statusCode,
269
+ body: _response.error.rawBody,
270
+ rawResponse: _response.rawResponse,
271
+ });
272
+ case "timeout":
273
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling GET /evaluation_sets/{id}.");
274
+ case "unknown":
275
+ throw new errors.ExtendError({
276
+ message: _response.error.errorMessage,
277
+ rawResponse: _response.rawResponse,
278
+ });
279
+ }
280
+ });
281
+ }
130
282
  _getAuthorizationHeader() {
131
283
  return __awaiter(this, void 0, void 0, function* () {
132
284
  return `Bearer ${yield core.Supplier.get(this._options.token)}`;
@@ -0,0 +1,29 @@
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
+ * processorId: "processor_id_here",
9
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
10
+ * }
11
+ */
12
+ export interface EvaluationSetListRequest {
13
+ /**
14
+ * The ID of the processor to filter evaluation sets by.
15
+ *
16
+ * Example: `"dp_Xj8mK2pL9nR4vT7qY5wZ"`
17
+ */
18
+ processorId?: string;
19
+ /**
20
+ * Sorts the evaluation sets by the given field.
21
+ */
22
+ sortBy?: Extend.SortByEnum;
23
+ /**
24
+ * Sorts the evaluation sets in ascending or descending order. Ascending order means the earliest evaluation set is returned first.
25
+ */
26
+ sortDir?: Extend.SortDirEnum;
27
+ nextPageToken?: Extend.NextPageToken;
28
+ maxPageSize?: Extend.MaxPageSize;
29
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
+ export { type EvaluationSetListRequest } from "./EvaluationSetListRequest";
1
2
  export { type EvaluationSetCreateRequest } from "./EvaluationSetCreateRequest";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetGetResponse {
6
+ success: boolean;
7
+ evaluationSet: Extend.EvaluationSet;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetListResponse {
6
+ success: boolean;
7
+ evaluationSets: Extend.EvaluationSet[];
8
+ nextPageToken?: Extend.NextPageToken;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
+ export * from "./EvaluationSetListResponse";
1
2
  export * from "./EvaluationSetCreateResponse";
3
+ export * from "./EvaluationSetGetResponse";
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EvaluationSetListResponse"), exports);
17
18
  __exportStar(require("./EvaluationSetCreateResponse"), exports);
19
+ __exportStar(require("./EvaluationSetGetResponse"), exports);
@@ -30,6 +30,28 @@ export declare namespace EvaluationSetItem {
30
30
  export declare class EvaluationSetItem {
31
31
  protected readonly _options: EvaluationSetItem.Options;
32
32
  constructor(_options: EvaluationSetItem.Options);
33
+ /**
34
+ * 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.
35
+ *
36
+ * This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
37
+ *
38
+ * @param {string} id - The ID of the evaluation set to retrieve items for.
39
+ *
40
+ * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"`
41
+ * @param {Extend.EvaluationSetItemListRequest} request
42
+ * @param {EvaluationSetItem.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link Extend.BadRequestError}
45
+ * @throws {@link Extend.UnauthorizedError}
46
+ * @throws {@link Extend.NotFoundError}
47
+ *
48
+ * @example
49
+ * await client.evaluationSetItem.list("evaluation_set_id_here", {
50
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
51
+ * })
52
+ */
53
+ list(id: string, request?: Extend.EvaluationSetItemListRequest, requestOptions?: EvaluationSetItem.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetItemListResponse>;
54
+ private __list;
33
55
  /**
34
56
  * Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set item in Extend, which will be used during an evaluation run.
35
57
  *
@@ -58,6 +58,93 @@ class EvaluationSetItem {
58
58
  constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
+ /**
62
+ * 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.
63
+ *
64
+ * This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
65
+ *
66
+ * @param {string} id - The ID of the evaluation set to retrieve items for.
67
+ *
68
+ * Example: `"ev_2LcgeY_mp2T5yPaEuq5Lw"`
69
+ * @param {Extend.EvaluationSetItemListRequest} request
70
+ * @param {EvaluationSetItem.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Extend.BadRequestError}
73
+ * @throws {@link Extend.UnauthorizedError}
74
+ * @throws {@link Extend.NotFoundError}
75
+ *
76
+ * @example
77
+ * await client.evaluationSetItem.list("evaluation_set_id_here", {
78
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
79
+ * })
80
+ */
81
+ list(id, request = {}, requestOptions) {
82
+ return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
83
+ }
84
+ __list(id_1) {
85
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
86
+ var _a, _b, _c, _d, _e, _f;
87
+ const { sortBy, sortDir, nextPageToken, maxPageSize } = request;
88
+ const _queryParams = {};
89
+ if (sortBy != null) {
90
+ _queryParams["sortBy"] = sortBy;
91
+ }
92
+ if (sortDir != null) {
93
+ _queryParams["sortDir"] = sortDir;
94
+ }
95
+ if (nextPageToken != null) {
96
+ _queryParams["nextPageToken"] = nextPageToken;
97
+ }
98
+ if (maxPageSize != null) {
99
+ _queryParams["maxPageSize"] = maxPageSize.toString();
100
+ }
101
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `evaluation_sets/${encodeURIComponent(id)}/items`),
103
+ method: "GET",
104
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ contentType: "application/json",
106
+ queryParameters: _queryParams,
107
+ requestType: "json",
108
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 300000,
109
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
110
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
+ });
112
+ if (_response.ok) {
113
+ return { data: _response.body, rawResponse: _response.rawResponse };
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ switch (_response.error.statusCode) {
117
+ case 400:
118
+ throw new Extend.BadRequestError(_response.error.body, _response.rawResponse);
119
+ case 401:
120
+ throw new Extend.UnauthorizedError(_response.error.body, _response.rawResponse);
121
+ case 404:
122
+ throw new Extend.NotFoundError(_response.error.body, _response.rawResponse);
123
+ default:
124
+ throw new errors.ExtendError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.body,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ }
131
+ switch (_response.error.reason) {
132
+ case "non-json":
133
+ throw new errors.ExtendError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.rawBody,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ case "timeout":
139
+ throw new errors.ExtendTimeoutError("Timeout exceeded when calling GET /evaluation_sets/{id}/items.");
140
+ case "unknown":
141
+ throw new errors.ExtendError({
142
+ message: _response.error.errorMessage,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ }
146
+ });
147
+ }
61
148
  /**
62
149
  * Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set item in Extend, which will be used during an evaluation run.
63
150
  *
@@ -100,7 +187,7 @@ class EvaluationSetItem {
100
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
188
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_set_items"),
102
189
  method: "POST",
103
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
191
  contentType: "application/json",
105
192
  requestType: "json",
106
193
  body: request,
@@ -176,7 +263,7 @@ class EvaluationSetItem {
176
263
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
177
264
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, `evaluation_set_items/${encodeURIComponent(id)}`),
178
265
  method: "POST",
179
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
267
  contentType: "application/json",
181
268
  requestType: "json",
182
269
  body: request,
@@ -256,7 +343,7 @@ class EvaluationSetItem {
256
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
344
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ExtendEnvironment.Production, "evaluation_set_items/bulk"),
258
345
  method: "POST",
259
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.1-beta", "User-Agent": "extend-ai/0.0.1-beta", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "x-extend-api-version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.extendApiVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.extendApiVersion) !== null && _f !== void 0 ? _f : "2025-04-21", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "extend-ai", "X-Fern-SDK-Version": "0.0.3", "User-Agent": "extend-ai/0.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
347
  contentType: "application/json",
261
348
  requestType: "json",
262
349
  body: request,
@@ -0,0 +1,22 @@
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
+ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ="
9
+ * }
10
+ */
11
+ export interface EvaluationSetItemListRequest {
12
+ /**
13
+ * Sorts the evaluation set items by the given field.
14
+ */
15
+ sortBy?: Extend.SortByEnum;
16
+ /**
17
+ * Sorts the evaluation set items in ascending or descending order. Ascending order means the earliest evaluation set is returned first.
18
+ */
19
+ sortDir?: Extend.SortDirEnum;
20
+ nextPageToken?: Extend.NextPageToken;
21
+ maxPageSize?: Extend.MaxPageSize;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export { type EvaluationSetItemListRequest } from "./EvaluationSetItemListRequest";
1
2
  export { type EvaluationSetItemCreateRequest } from "./EvaluationSetItemCreateRequest";
2
3
  export { type EvaluationSetItemUpdateRequest } from "./EvaluationSetItemUpdateRequest";
3
4
  export { type EvaluationSetItemCreateBatchRequest } from "./EvaluationSetItemCreateBatchRequest";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Extend from "../../../index";
5
+ export interface EvaluationSetItemListResponse {
6
+ success: boolean;
7
+ evaluationSetItems: Extend.EvaluationSetItem[];
8
+ nextPageToken?: Extend.NextPageToken;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./EvaluationSetItemListResponse";
1
2
  export * from "./EvaluationSetItemCreateResponse";
2
3
  export * from "./EvaluationSetItemUpdateResponse";
3
4
  export * from "./EvaluationSetItemCreateBatchRequestItemsItem";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./EvaluationSetItemListResponse"), exports);
17
18
  __exportStar(require("./EvaluationSetItemCreateResponse"), exports);
18
19
  __exportStar(require("./EvaluationSetItemUpdateResponse"), exports);
19
20
  __exportStar(require("./EvaluationSetItemCreateBatchRequestItemsItem"), exports);