@camunda8/orchestration-cluster-api 10.0.0-alpha.35 → 10.0.0-alpha.37

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.
@@ -1652,17 +1652,6 @@ var searchAgentInstances = (options) => (options?.client ?? client).post({
1652
1652
  ...options?.headers
1653
1653
  }
1654
1654
  });
1655
- var createAgentInstanceHistoryItem = (options) => (options.client ?? client).post({
1656
- requestValidator: void 0,
1657
- responseValidator: void 0,
1658
- security: [{ scheme: "bearer", type: "http" }, { scheme: "basic", type: "http" }],
1659
- url: "/agent-instances/{agentInstanceKey}/history",
1660
- ...options,
1661
- headers: {
1662
- "Content-Type": "application/json",
1663
- ...options.headers
1664
- }
1665
- });
1666
1655
  var searchAgentInstanceHistory = (options) => (options.client ?? client).post({
1667
1656
  requestValidator: void 0,
1668
1657
  responseValidator: void 0,
@@ -5184,7 +5173,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
5184
5173
  }
5185
5174
 
5186
5175
  // src/runtime/version.ts
5187
- var packageVersion = "10.0.0-alpha.35";
5176
+ var packageVersion = "10.0.0-alpha.37";
5188
5177
 
5189
5178
  // src/runtime/supportLogger.ts
5190
5179
  var NoopSupportLogger = class {
@@ -7268,7 +7257,7 @@ var CamundaClientBase = class {
7268
7257
  _schemasPromise = null;
7269
7258
  _loadSchemas() {
7270
7259
  if (!this._schemasPromise) {
7271
- this._schemasPromise = import("./zod.gen-JARMY5IR.js");
7260
+ this._schemasPromise = import("./zod.gen-FH5QFVZD.js");
7272
7261
  }
7273
7262
  return this._schemasPromise;
7274
7263
  }
@@ -8904,66 +8893,6 @@ var CamundaClientBase = class {
8904
8893
  return this._invokeWithRetry(() => call(), { opId: "createAgentInstance", exempt: false, retryOverride: options?.retry });
8905
8894
  });
8906
8895
  }
8907
- createAgentInstanceHistoryItem(arg, options) {
8908
- return toCancelable2(async (signal) => {
8909
- const { agentInstanceKey, ..._body } = arg || {};
8910
- let envelope = {};
8911
- envelope.path = { agentInstanceKey };
8912
- envelope.body = _body;
8913
- if (this._validation.settings.req !== "none") {
8914
- const _schemas = await this._loadSchemas();
8915
- if (envelope.body !== void 0) {
8916
- const maybeBody = await this._validation.gateRequest("createAgentInstanceHistoryItem", _schemas.zCreateAgentInstanceHistoryItemBody, envelope.body);
8917
- if (this._validation.settings.req === "strict") envelope.body = maybeBody;
8918
- }
8919
- if (envelope.path !== void 0) {
8920
- const maybePath = await this._validation.gateRequest("createAgentInstanceHistoryItem", _schemas.zCreateAgentInstanceHistoryItemPath, envelope.path);
8921
- if (this._validation.settings.req === "strict") envelope.path = maybePath;
8922
- }
8923
- }
8924
- const opts = { client: this._client, signal, throwOnError: false };
8925
- if (envelope.path) opts.path = envelope.path;
8926
- if (envelope.body !== void 0) opts.body = envelope.body;
8927
- const call = async () => {
8928
- try {
8929
- const _raw = await createAgentInstanceHistoryItem(opts);
8930
- let data = this._evaluateResponse(_raw, "createAgentInstanceHistoryItem", (resp) => {
8931
- const st = resp.status ?? resp.response?.status;
8932
- if (!st) return void 0;
8933
- const candidate = st === 429 || st === 503 || st === 500;
8934
- if (!candidate) return void 0;
8935
- let prob = void 0;
8936
- if (resp.error && typeof resp.error === "object") prob = resp.error;
8937
- const err = new Error(prob && (prob.title || prob.detail) ? prob.title || prob.detail : "HTTP " + st);
8938
- err.status = st;
8939
- err.name = "HttpSdkError";
8940
- if (prob) {
8941
- for (const k of ["type", "title", "detail", "instance"]) if (prob[k] !== void 0) err[k] = prob[k];
8942
- }
8943
- const isBp = st === 429 || st === 503 && err.title === "RESOURCE_EXHAUSTED" || st === 500 && (typeof err.detail === "string" && /RESOURCE_EXHAUSTED/.test(err.detail));
8944
- if (!isBp) err.nonRetryable = true;
8945
- return err;
8946
- });
8947
- const _respSchemaName = "zCreateAgentInstanceHistoryItemResponse";
8948
- if (this._isVoidResponse(_respSchemaName)) {
8949
- data = void 0;
8950
- }
8951
- if (this._validation.settings.res !== "none") {
8952
- const _schemas = await this._loadSchemas();
8953
- const _schema = _schemas.zCreateAgentInstanceHistoryItemResponse;
8954
- if (_schema) {
8955
- const maybeR = await this._validation.gateResponse("createAgentInstanceHistoryItem", _schema, data);
8956
- if (this._validation.settings.res === "strict") data = maybeR;
8957
- }
8958
- }
8959
- return data;
8960
- } catch (e) {
8961
- throw e;
8962
- }
8963
- };
8964
- return this._invokeWithRetry(() => call(), { opId: "createAgentInstanceHistoryItem", exempt: false, retryOverride: options?.retry });
8965
- });
8966
- }
8967
8896
  createAuthorization(arg, options) {
8968
8897
  return toCancelable2(async (signal) => {
8969
8898
  const _body = arg;
@@ -21446,4 +21375,4 @@ export {
21446
21375
  createCamundaClient,
21447
21376
  CamundaClient
21448
21377
  };
21449
- //# sourceMappingURL=chunk-2SYK2XZI.js.map
21378
+ //# sourceMappingURL=chunk-QMVXOINT.js.map