@hautechai/sdk 1.7.0 → 1.8.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.
package/dist/index.mjs CHANGED
@@ -10603,12 +10603,13 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
10603
10603
  },
10604
10604
  /**
10605
10605
  *
10606
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10606
10607
  * @param {number} [limit]
10607
- * @param {number} [offset]
10608
+ * @param {string} [cursor]
10608
10609
  * @param {*} [options] Override http request option.
10609
10610
  * @throws {RequiredError}
10610
10611
  */
10611
- workflowsControllerListWorkflowsV1: async (limit, offset, options = {}) => {
10612
+ workflowsControllerListWorkflowsV1: async (orderBy, limit, cursor, options = {}) => {
10612
10613
  const localVarPath = `/v1/workflows`;
10613
10614
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10614
10615
  let baseOptions;
@@ -10619,11 +10620,14 @@ var WorkflowsApiAxiosParamCreator = function(configuration) {
10619
10620
  const localVarHeaderParameter = {};
10620
10621
  const localVarQueryParameter = {};
10621
10622
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
10623
+ if (orderBy !== void 0) {
10624
+ localVarQueryParameter["orderBy"] = orderBy;
10625
+ }
10622
10626
  if (limit !== void 0) {
10623
10627
  localVarQueryParameter["limit"] = limit;
10624
10628
  }
10625
- if (offset !== void 0) {
10626
- localVarQueryParameter["offset"] = offset;
10629
+ if (cursor !== void 0) {
10630
+ localVarQueryParameter["cursor"] = cursor;
10627
10631
  }
10628
10632
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10629
10633
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -10732,13 +10736,14 @@ var WorkflowsApiFp = function(configuration) {
10732
10736
  },
10733
10737
  /**
10734
10738
  *
10739
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10735
10740
  * @param {number} [limit]
10736
- * @param {number} [offset]
10741
+ * @param {string} [cursor]
10737
10742
  * @param {*} [options] Override http request option.
10738
10743
  * @throws {RequiredError}
10739
10744
  */
10740
- async workflowsControllerListWorkflowsV1(limit, offset, options) {
10741
- const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(limit, offset, options);
10745
+ async workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options);
10742
10747
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10743
10748
  const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.workflowsControllerListWorkflowsV1"]?.[localVarOperationServerIndex]?.url;
10744
10749
  return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
@@ -10802,13 +10807,14 @@ var WorkflowsApiFactory = function(configuration, basePath, axios2) {
10802
10807
  },
10803
10808
  /**
10804
10809
  *
10810
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10805
10811
  * @param {number} [limit]
10806
- * @param {number} [offset]
10812
+ * @param {string} [cursor]
10807
10813
  * @param {*} [options] Override http request option.
10808
10814
  * @throws {RequiredError}
10809
10815
  */
10810
- workflowsControllerListWorkflowsV1(limit, offset, options) {
10811
- return localVarFp.workflowsControllerListWorkflowsV1(limit, offset, options).then((request) => request(axios2, basePath));
10816
+ workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10817
+ return localVarFp.workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(axios2, basePath));
10812
10818
  },
10813
10819
  /**
10814
10820
  *
@@ -10864,14 +10870,15 @@ var WorkflowsApi = class extends BaseAPI {
10864
10870
  }
10865
10871
  /**
10866
10872
  *
10873
+ * @param {WorkflowsControllerListWorkflowsV1OrderByEnum} [orderBy]
10867
10874
  * @param {number} [limit]
10868
- * @param {number} [offset]
10875
+ * @param {string} [cursor]
10869
10876
  * @param {*} [options] Override http request option.
10870
10877
  * @throws {RequiredError}
10871
10878
  * @memberof WorkflowsApi
10872
10879
  */
10873
- workflowsControllerListWorkflowsV1(limit, offset, options) {
10874
- return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(limit, offset, options).then((request) => request(this.axios, this.basePath));
10880
+ workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options) {
10881
+ return WorkflowsApiFp(this.configuration).workflowsControllerListWorkflowsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
10875
10882
  }
10876
10883
  /**
10877
10884
  *
@@ -10895,6 +10902,12 @@ var WorkflowsApi = class extends BaseAPI {
10895
10902
  return WorkflowsApiFp(this.configuration).workflowsControllerUpdateWorkflowV1(id, options).then((request) => request(this.axios, this.basePath));
10896
10903
  }
10897
10904
  };
10905
+ var WorkflowsControllerListWorkflowsV1OrderByEnum = {
10906
+ CreatedAtAsc: "createdAt_ASC",
10907
+ CreatedAtDesc: "createdAt_DESC",
10908
+ UpdatedAtAsc: "updatedAt_ASC",
10909
+ UpdatedAtDesc: "updatedAt_DESC"
10910
+ };
10898
10911
 
10899
10912
  // src/autogenerated/configuration.ts
10900
10913
  var Configuration = class {
@@ -11609,7 +11622,7 @@ var pipelines = (options) => {
11609
11622
  metadata: props.metadata,
11610
11623
  tasks: props.template?.tasks ?? props.tasks,
11611
11624
  state: props.state,
11612
- pipelineInput: props.template?.inputRef,
11625
+ pipelineInput: props.template?.input,
11613
11626
  outputRef: props.template?.outputRef
11614
11627
  });
11615
11628
  }
@@ -11859,7 +11872,8 @@ var workflows = (options) => {
11859
11872
  run: (methods) => methods.workflowsControllerGetWorkflowV1(props.id)
11860
11873
  }),
11861
11874
  list: () => api.call({
11862
- run: (methods) => methods.workflowsControllerListWorkflowsV1()
11875
+ run: (methods) => methods.workflowsControllerListWorkflowsV1(),
11876
+ transform: transformToListResponse
11863
11877
  }),
11864
11878
  update: async (props) => api.call({
11865
11879
  run: (methods) => methods.workflowsControllerUpdateWorkflowV1(props.id, props)
@@ -12173,6 +12187,7 @@ export {
12173
12187
  WorkflowsApiAxiosParamCreator,
12174
12188
  WorkflowsApiFactory,
12175
12189
  WorkflowsApiFp,
12190
+ WorkflowsControllerListWorkflowsV1OrderByEnum,
12176
12191
  createSDK,
12177
12192
  createTokenSigner
12178
12193
  };