@zilfu/sdk 0.2.2 → 0.2.4

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
@@ -939,14 +939,15 @@ var Blocks = class extends HeyApiClient {
939
939
  });
940
940
  }
941
941
  /**
942
- * Reorder a bio block
942
+ * Reorder the bio page's content blocks
943
943
  *
944
- * Moves the block up or down by swapping with its neighbour.
944
+ * Writes each block's sort_order to match its position in the given
945
+ * id list. Ids that do not belong to the space's bio page are ignored.
945
946
  */
946
947
  reorder(options) {
947
948
  return (options.client ?? this.client).post({
948
949
  security: [{ scheme: "bearer", type: "http" }],
949
- url: "/spaces/{space}/bio/blocks/{block}/reorder",
950
+ url: "/spaces/{space}/bio/blocks/reorder",
950
951
  ...options,
951
952
  headers: {
952
953
  "Content-Type": "application/json",
@@ -989,21 +990,32 @@ var Bio = class extends HeyApiClient {
989
990
  return (options.client ?? this.client).put({
990
991
  security: [{ scheme: "bearer", type: "http" }],
991
992
  url: "/spaces/{space}/bio",
993
+ ...options
994
+ });
995
+ }
996
+ /**
997
+ * Upload a bio page avatar
998
+ */
999
+ uploadAvatar(options) {
1000
+ return (options.client ?? this.client).post({
1001
+ ...formDataBodySerializer,
1002
+ security: [{ scheme: "bearer", type: "http" }],
1003
+ url: "/spaces/{space}/bio/avatar",
992
1004
  ...options,
993
1005
  headers: {
994
- "Content-Type": "application/json",
1006
+ "Content-Type": null,
995
1007
  ...options.headers
996
1008
  }
997
1009
  });
998
1010
  }
999
1011
  /**
1000
- * Upload a bio page avatar
1012
+ * Upload an image for a bio image block
1001
1013
  */
1002
- uploadAvatar(options) {
1014
+ image(options) {
1003
1015
  return (options.client ?? this.client).post({
1004
1016
  ...formDataBodySerializer,
1005
1017
  security: [{ scheme: "bearer", type: "http" }],
1006
- url: "/spaces/{space}/bio/avatar",
1018
+ url: "/spaces/{space}/bio/image",
1007
1019
  ...options,
1008
1020
  headers: {
1009
1021
  "Content-Type": null,