@calmlens/sdk 0.9.0 → 0.9.1

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.
@@ -288,6 +288,26 @@ const PUBLIC_ERROR_CODES = {
288
288
  defaultMessage: "Multipart upload state is missing",
289
289
  status: 409
290
290
  }),
291
+ UPLOAD_SIZE_MISMATCH: new sendable_error.ErrorCode({
292
+ id: "upload/size-mismatch",
293
+ defaultMessage: "The uploaded parts do not add up to the totalSizeInBytes declared when the multipart upload started.",
294
+ status: 400
295
+ }),
296
+ INVALID_IDEMPOTENCY_KEY: new sendable_error.ErrorCode({
297
+ id: "idempotency/invalid-key",
298
+ defaultMessage: "The Idempotency-Key header must be 1 to 255 printable ASCII characters, such as a UUID.",
299
+ status: 400
300
+ }),
301
+ IDEMPOTENCY_KEY_REUSED: new sendable_error.ErrorCode({
302
+ id: "idempotency/key-reused",
303
+ defaultMessage: "This Idempotency-Key was already used for a different request. Use a new key for each distinct request.",
304
+ status: 409
305
+ }),
306
+ IDEMPOTENT_REQUEST_IN_PROGRESS: new sendable_error.ErrorCode({
307
+ id: "idempotency/request-in-progress",
308
+ defaultMessage: "A request with this Idempotency-Key is still being processed. Retry after the Retry-After delay to receive its result.",
309
+ status: 409
310
+ }),
291
311
  ASSET_NOT_FOUND: new sendable_error.ErrorCode({
292
312
  id: "asset/not-found",
293
313
  defaultMessage: "Asset not found",
package/cjs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensUtils = require("./CalmLensUtils-CArkVfj0.js");
2
+ const require_CalmLensUtils = require("./CalmLensUtils-B6vwJijv.js");
3
3
  let zod = require("zod");
4
4
  zod = require_CalmLensUtils.__toESM(zod);
5
5
  require("zod/v4");
package/cjs/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_CalmLensUtils = require("./CalmLensUtils-CArkVfj0.js");
2
+ const require_CalmLensUtils = require("./CalmLensUtils-B6vwJijv.js");
3
3
  let zod = require("zod");
4
4
  zod = require_CalmLensUtils.__toESM(zod);
5
5
  //#region ../shared/src/Permissions.ts
@@ -266,6 +266,26 @@ const PUBLIC_ERROR_CODES = {
266
266
  defaultMessage: "Multipart upload state is missing",
267
267
  status: 409
268
268
  }),
269
+ UPLOAD_SIZE_MISMATCH: new ErrorCode({
270
+ id: "upload/size-mismatch",
271
+ defaultMessage: "The uploaded parts do not add up to the totalSizeInBytes declared when the multipart upload started.",
272
+ status: 400
273
+ }),
274
+ INVALID_IDEMPOTENCY_KEY: new ErrorCode({
275
+ id: "idempotency/invalid-key",
276
+ defaultMessage: "The Idempotency-Key header must be 1 to 255 printable ASCII characters, such as a UUID.",
277
+ status: 400
278
+ }),
279
+ IDEMPOTENCY_KEY_REUSED: new ErrorCode({
280
+ id: "idempotency/key-reused",
281
+ defaultMessage: "This Idempotency-Key was already used for a different request. Use a new key for each distinct request.",
282
+ status: 409
283
+ }),
284
+ IDEMPOTENT_REQUEST_IN_PROGRESS: new ErrorCode({
285
+ id: "idempotency/request-in-progress",
286
+ defaultMessage: "A request with this Idempotency-Key is still being processed. Retry after the Retry-After delay to receive its result.",
287
+ status: 409
288
+ }),
269
289
  ASSET_NOT_FOUND: new ErrorCode({
270
290
  id: "asset/not-found",
271
291
  defaultMessage: "Asset not found",
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as _objectSpread2, S as _asyncToGenerator, a as validateClientOptions, b as getRawBase64, c as SDK_ERRORS, d as MAX_IMAGE_UPLOAD_BYTES, f as MIN_MULTIPART_IMAGE_UPLOAD_BYTES, g as stringifyJsonCanonical, h as PUBLIC_ERROR_CODES, i as toTextAssetOptions, l as calmLensError, m as isRejectedUploadMimeType, n as encodePathSegment, o as _objectWithoutProperties, p as getRejectedUploadMimeTypeError, r as stringifyQuery, s as CalmLensError, t as appendCdnSelector, u as DOMAIN, v as assetToData, x as validateAssetPayload, y as getAssetPayloadByteLength } from "./CalmLensUtils-Bnikzonc.js";
1
+ import { C as _objectSpread2, S as _asyncToGenerator, a as validateClientOptions, b as getRawBase64, c as SDK_ERRORS, d as MAX_IMAGE_UPLOAD_BYTES, f as MIN_MULTIPART_IMAGE_UPLOAD_BYTES, g as stringifyJsonCanonical, h as PUBLIC_ERROR_CODES, i as toTextAssetOptions, l as calmLensError, m as isRejectedUploadMimeType, n as encodePathSegment, o as _objectWithoutProperties, p as getRejectedUploadMimeTypeError, r as stringifyQuery, s as CalmLensError, t as appendCdnSelector, u as DOMAIN, v as assetToData, x as validateAssetPayload, y as getAssetPayloadByteLength } from "./CalmLensUtils-O1xk_Ts0.js";
2
2
  import * as zod from "zod";
3
3
  import "zod/v4";
4
4
  import { Api, FetchRequestBackend, RequestCoalescingMiddleware, RequestEvent, getErrorResponse, isRequestError } from "api-def";
package/esm/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as _objectSpread2, S as _asyncToGenerator, _ as assetDataToUint8Array, a as validateClientOptions, g as stringifyJsonCanonical, h as PUBLIC_ERROR_CODES, i as toTextAssetOptions, l as calmLensError, m as isRejectedUploadMimeType, n as encodePathSegment, o as _objectWithoutProperties, p as getRejectedUploadMimeTypeError, t as appendCdnSelector, v as assetToData, x as validateAssetPayload, y as getAssetPayloadByteLength } from "./CalmLensUtils-Bnikzonc.js";
1
+ import { C as _objectSpread2, S as _asyncToGenerator, _ as assetDataToUint8Array, a as validateClientOptions, g as stringifyJsonCanonical, h as PUBLIC_ERROR_CODES, i as toTextAssetOptions, l as calmLensError, m as isRejectedUploadMimeType, n as encodePathSegment, o as _objectWithoutProperties, p as getRejectedUploadMimeTypeError, t as appendCdnSelector, v as assetToData, x as validateAssetPayload, y as getAssetPayloadByteLength } from "./CalmLensUtils-O1xk_Ts0.js";
2
2
  import * as zod from "zod";
3
3
  //#region ../shared/src/Permissions.ts
4
4
  const ACTION_SCHEMA = zod.enum([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calmlens/sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Censkh/CalmLens.git",