@zilfu/sdk 0.2.11 → 0.2.13
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 +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1028,6 +1028,22 @@ var Bio = class extends HeyApiClient {
|
|
|
1028
1028
|
return this._blocks ??= new Blocks({ client: this.client });
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
|
+
var EmailPreferences = class extends HeyApiClient {
|
|
1032
|
+
/**
|
|
1033
|
+
* Update the user's per-type email preferences
|
|
1034
|
+
*/
|
|
1035
|
+
update(options) {
|
|
1036
|
+
return (options.client ?? this.client).put({
|
|
1037
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1038
|
+
url: "/settings/email-preferences",
|
|
1039
|
+
...options,
|
|
1040
|
+
headers: {
|
|
1041
|
+
"Content-Type": "application/json",
|
|
1042
|
+
...options.headers
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1031
1047
|
var Health = class extends HeyApiClient {
|
|
1032
1048
|
/**
|
|
1033
1049
|
* Health check
|
|
@@ -1522,6 +1538,10 @@ var ZilfuApi = class _ZilfuApi extends HeyApiClient {
|
|
|
1522
1538
|
get bio() {
|
|
1523
1539
|
return this._bio ??= new Bio({ client: this.client });
|
|
1524
1540
|
}
|
|
1541
|
+
_emailPreferences;
|
|
1542
|
+
get emailPreferences() {
|
|
1543
|
+
return this._emailPreferences ??= new EmailPreferences({ client: this.client });
|
|
1544
|
+
}
|
|
1525
1545
|
_health;
|
|
1526
1546
|
get health() {
|
|
1527
1547
|
return this._health ??= new Health({ client: this.client });
|