@zilfu/sdk 0.2.20 → 0.2.21

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.d.cts CHANGED
@@ -784,6 +784,10 @@ type MediaResource = {
784
784
  width: string;
785
785
  height: string;
786
786
  size: string;
787
+ /**
788
+ * Seconds, for video we could measure; null for everything else.
789
+ */
790
+ duration: string | null;
787
791
  alt: string;
788
792
  order: string;
789
793
  };
@@ -894,6 +898,13 @@ type SessionResource = {
894
898
  */
895
899
  type SignMediaRequest = {
896
900
  mime: 'image/jpeg' | 'image/png' | 'image/webp' | 'video/mp4' | 'video/quicktime';
901
+ /**
902
+ * The size of the file about to be uploaded. Optional, and taken on
903
+ * trust — the object is measured again once it lands. Sending it
904
+ * buys an immediate refusal instead of discovering the file was too
905
+ * large after transferring it.
906
+ */
907
+ size?: number | null;
897
908
  };
898
909
  /**
899
910
  * SlotResource
@@ -4359,6 +4370,11 @@ declare class Media extends HeyApiClient {
4359
4370
  create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceMediaData, ThrowOnError>): RequestResult<PostSpacesBySpaceMediaResponses, PostSpacesBySpaceMediaErrors, ThrowOnError, "fields">;
4360
4371
  /**
4361
4372
  * Remove a media asset from the space library
4373
+ *
4374
+ * Only library rows arrive here, and only the row is ever certain to go:
4375
+ * `Api\PostController::attachMedia` replicates a Media per post over the
4376
+ * same upload, so what the space sees as one asset is several rows deep by
4377
+ * the time it is deleted.
4362
4378
  */
4363
4379
  delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceMediaByMediaData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceMediaByMediaResponses, DeleteSpacesBySpaceMediaByMediaErrors, ThrowOnError, "fields">;
4364
4380
  /**
package/dist/index.d.ts CHANGED
@@ -784,6 +784,10 @@ type MediaResource = {
784
784
  width: string;
785
785
  height: string;
786
786
  size: string;
787
+ /**
788
+ * Seconds, for video we could measure; null for everything else.
789
+ */
790
+ duration: string | null;
787
791
  alt: string;
788
792
  order: string;
789
793
  };
@@ -894,6 +898,13 @@ type SessionResource = {
894
898
  */
895
899
  type SignMediaRequest = {
896
900
  mime: 'image/jpeg' | 'image/png' | 'image/webp' | 'video/mp4' | 'video/quicktime';
901
+ /**
902
+ * The size of the file about to be uploaded. Optional, and taken on
903
+ * trust — the object is measured again once it lands. Sending it
904
+ * buys an immediate refusal instead of discovering the file was too
905
+ * large after transferring it.
906
+ */
907
+ size?: number | null;
897
908
  };
898
909
  /**
899
910
  * SlotResource
@@ -4359,6 +4370,11 @@ declare class Media extends HeyApiClient {
4359
4370
  create<ThrowOnError extends boolean = false>(options: Options<PostSpacesBySpaceMediaData, ThrowOnError>): RequestResult<PostSpacesBySpaceMediaResponses, PostSpacesBySpaceMediaErrors, ThrowOnError, "fields">;
4360
4371
  /**
4361
4372
  * Remove a media asset from the space library
4373
+ *
4374
+ * Only library rows arrive here, and only the row is ever certain to go:
4375
+ * `Api\PostController::attachMedia` replicates a Media per post over the
4376
+ * same upload, so what the space sees as one asset is several rows deep by
4377
+ * the time it is deleted.
4362
4378
  */
4363
4379
  delete<ThrowOnError extends boolean = false>(options: Options<DeleteSpacesBySpaceMediaByMediaData, ThrowOnError>): RequestResult<DeleteSpacesBySpaceMediaByMediaResponses, DeleteSpacesBySpaceMediaByMediaErrors, ThrowOnError, "fields">;
4364
4380
  /**
package/dist/index.js CHANGED
@@ -1113,6 +1113,11 @@ var Media = class extends HeyApiClient {
1113
1113
  }
1114
1114
  /**
1115
1115
  * Remove a media asset from the space library
1116
+ *
1117
+ * Only library rows arrive here, and only the row is ever certain to go:
1118
+ * `Api\PostController::attachMedia` replicates a Media per post over the
1119
+ * same upload, so what the space sees as one asset is several rows deep by
1120
+ * the time it is deleted.
1116
1121
  */
1117
1122
  delete(options) {
1118
1123
  return (options.client ?? this.client).delete({