@warmhub/sdk-ts 0.80.0 → 0.81.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.
@@ -8262,6 +8262,7 @@ var DEFINITE_CLIENT_REJECT_CODES = /* @__PURE__ */ new Set([
8262
8262
  "TOO_MANY_REQUESTS",
8263
8263
  "UNRESOLVED_TOKEN"
8264
8264
  ]);
8265
+ var TERMINAL_AMBIGUOUS_CODES = /* @__PURE__ */ new Set(["COMMIT_OUTCOME_UNKNOWN"]);
8265
8266
  function extractErrorCode(cause) {
8266
8267
  if (!cause || typeof cause !== "object") return void 0;
8267
8268
  const direct = cause.code;
@@ -8285,11 +8286,17 @@ function extractHttpStatus(cause) {
8285
8286
  function isDefiniteClientRejectionStatus(status) {
8286
8287
  return status !== void 0 && status >= 400 && status < 500 && status !== 408;
8287
8288
  }
8289
+ function isTerminalAmbiguousError(cause) {
8290
+ const code = extractErrorCode(cause);
8291
+ return code !== void 0 && TERMINAL_AMBIGUOUS_CODES.has(code);
8292
+ }
8288
8293
  function isDefiniteClientError(cause) {
8294
+ if (isTerminalAmbiguousError(cause)) return false;
8289
8295
  const code = extractErrorCode(cause);
8290
8296
  return code !== void 0 && DEFINITE_CLIENT_REJECT_CODES.has(code) || isDefiniteClientRejectionStatus(extractHttpStatus(cause));
8291
8297
  }
8292
8298
  function isTransientStreamFailure(cause) {
8299
+ if (isTerminalAmbiguousError(cause)) return false;
8293
8300
  if (isDefiniteClientError(cause)) return false;
8294
8301
  if (isFetchNetworkTypeError(cause)) return true;
8295
8302
  if (cause instanceof TypeError) return false;
@@ -8563,7 +8570,7 @@ var SDK_DEVELOPMENT_VERSION = "0.0.0-development";
8563
8570
  function sdkVersionIsDevelopment(version) {
8564
8571
  return version === SDK_DEVELOPMENT_VERSION;
8565
8572
  }
8566
- var SDK_VERSION = "0.80.0" ;
8573
+ var SDK_VERSION = "0.81.0" ;
8567
8574
 
8568
8575
  // src/component-cli.ts
8569
8576
  var SUPPORTED_METHODS = /* @__PURE__ */ new Set([
@@ -12980,5 +12987,5 @@ re2js/build/index.js:
12980
12987
  */
12981
12988
 
12982
12989
  export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT2 as MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
12983
- //# sourceMappingURL=chunk-OVJASB3M.js.map
12984
- //# sourceMappingURL=chunk-OVJASB3M.js.map
12990
+ //# sourceMappingURL=chunk-6FGMWOWC.js.map
12991
+ //# sourceMappingURL=chunk-6FGMWOWC.js.map