@zilfu/sdk 0.2.1 → 0.2.3
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 +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -15
- package/dist/index.d.ts +81 -15
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -989,21 +989,32 @@ var Bio = class extends HeyApiClient {
|
|
|
989
989
|
return (options.client ?? this.client).put({
|
|
990
990
|
security: [{ scheme: "bearer", type: "http" }],
|
|
991
991
|
url: "/spaces/{space}/bio",
|
|
992
|
+
...options
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Upload a bio page avatar
|
|
997
|
+
*/
|
|
998
|
+
uploadAvatar(options) {
|
|
999
|
+
return (options.client ?? this.client).post({
|
|
1000
|
+
...formDataBodySerializer,
|
|
1001
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1002
|
+
url: "/spaces/{space}/bio/avatar",
|
|
992
1003
|
...options,
|
|
993
1004
|
headers: {
|
|
994
|
-
"Content-Type":
|
|
1005
|
+
"Content-Type": null,
|
|
995
1006
|
...options.headers
|
|
996
1007
|
}
|
|
997
1008
|
});
|
|
998
1009
|
}
|
|
999
1010
|
/**
|
|
1000
|
-
* Upload a bio
|
|
1011
|
+
* Upload an image for a bio image block
|
|
1001
1012
|
*/
|
|
1002
|
-
|
|
1013
|
+
image(options) {
|
|
1003
1014
|
return (options.client ?? this.client).post({
|
|
1004
1015
|
...formDataBodySerializer,
|
|
1005
1016
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1006
|
-
url: "/spaces/{space}/bio/
|
|
1017
|
+
url: "/spaces/{space}/bio/image",
|
|
1007
1018
|
...options,
|
|
1008
1019
|
headers: {
|
|
1009
1020
|
"Content-Type": null,
|