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