@zilfu/sdk 0.2.8 → 0.2.10

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.cjs CHANGED
@@ -1041,6 +1041,40 @@ var Health = class extends HeyApiClient {
1041
1041
  }
1042
1042
  };
1043
1043
  var Media = class extends HeyApiClient {
1044
+ /**
1045
+ * List a space's reusable media library
1046
+ */
1047
+ list(options) {
1048
+ return (options.client ?? this.client).get({
1049
+ security: [{ scheme: "bearer", type: "http" }],
1050
+ url: "/spaces/{space}/media",
1051
+ ...options
1052
+ });
1053
+ }
1054
+ /**
1055
+ * Ingest a completed upload into the space's media library
1056
+ */
1057
+ create(options) {
1058
+ return (options.client ?? this.client).post({
1059
+ security: [{ scheme: "bearer", type: "http" }],
1060
+ url: "/spaces/{space}/media",
1061
+ ...options,
1062
+ headers: {
1063
+ "Content-Type": "application/json",
1064
+ ...options.headers
1065
+ }
1066
+ });
1067
+ }
1068
+ /**
1069
+ * Remove a media asset from the space library
1070
+ */
1071
+ delete(options) {
1072
+ return (options.client ?? this.client).delete({
1073
+ security: [{ scheme: "bearer", type: "http" }],
1074
+ url: "/spaces/{space}/media/{media}",
1075
+ ...options
1076
+ });
1077
+ }
1044
1078
  /**
1045
1079
  * Get an upload URL
1046
1080
  *