@zilfu/sdk 0.2.26 → 1.0.0
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 +25 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -23
- package/dist/index.d.ts +142 -23
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/package.json +11 -9
package/dist/index.cjs
CHANGED
|
@@ -862,6 +862,25 @@ var Accounts = class extends HeyApiClient {
|
|
|
862
862
|
...options
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
+
/**
|
|
866
|
+
* Activate or deactivate an account
|
|
867
|
+
*
|
|
868
|
+
* Deactivating parks the account: it stops publishing and disappears from
|
|
869
|
+
* the composer and the bio page, while the connection itself, its posts and
|
|
870
|
+
* its analytics stay intact. Activating one again is refused when your plan
|
|
871
|
+
* has no free slot left, since a parked account still occupies one.
|
|
872
|
+
*/
|
|
873
|
+
update(options) {
|
|
874
|
+
return (options.client ?? this.client).patch({
|
|
875
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
876
|
+
url: "/spaces/{space}/accounts/{account}",
|
|
877
|
+
...options,
|
|
878
|
+
headers: {
|
|
879
|
+
"Content-Type": "application/json",
|
|
880
|
+
...options.headers
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
}
|
|
865
884
|
};
|
|
866
885
|
var Analytics = class extends HeyApiClient {
|
|
867
886
|
/**
|
|
@@ -869,7 +888,7 @@ var Analytics = class extends HeyApiClient {
|
|
|
869
888
|
*
|
|
870
889
|
* One compact row per account in the space — never merged — so a caller can
|
|
871
890
|
* see each account's collection health before drilling into one of them.
|
|
872
|
-
* Defaults to the last 7 days in the
|
|
891
|
+
* Defaults to the last 7 days in the organization timezone.
|
|
873
892
|
*/
|
|
874
893
|
list(options) {
|
|
875
894
|
return (options.client ?? this.client).get({
|
|
@@ -884,7 +903,7 @@ var Analytics = class extends HeyApiClient {
|
|
|
884
903
|
* The full report for one connected account: its metric catalogue, totals,
|
|
885
904
|
* interaction score, rates, publish-date series, audience history and best
|
|
886
905
|
* times. Individual posts have their own endpoint. Defaults to the last 7
|
|
887
|
-
* days in the
|
|
906
|
+
* days in the organization timezone.
|
|
888
907
|
*/
|
|
889
908
|
get(options) {
|
|
890
909
|
return (options.client ?? this.client).get({
|
|
@@ -900,7 +919,7 @@ var Analytics = class extends HeyApiClient {
|
|
|
900
919
|
* post, with a column for each metric the platform declares. Order it by
|
|
901
920
|
* `sort` — `published_at`, `interactions` or any declared metric key — and
|
|
902
921
|
* `dir`; a key this account does not declare is a 422 naming the ones it
|
|
903
|
-
* does. Defaults to the last 7 days in the
|
|
922
|
+
* does. Defaults to the last 7 days in the organization timezone, newest first,
|
|
904
923
|
* 20 per page.
|
|
905
924
|
*/
|
|
906
925
|
posts(options) {
|
|
@@ -1226,7 +1245,7 @@ var Members = class extends HeyApiClient {
|
|
|
1226
1245
|
});
|
|
1227
1246
|
}
|
|
1228
1247
|
/**
|
|
1229
|
-
* Update a member's
|
|
1248
|
+
* Update a member's role across the organization
|
|
1230
1249
|
*/
|
|
1231
1250
|
update(options) {
|
|
1232
1251
|
return (options.client ?? this.client).patch({
|
|
@@ -1508,7 +1527,8 @@ var Subscription = class extends HeyApiClient {
|
|
|
1508
1527
|
/**
|
|
1509
1528
|
* Get subscription details
|
|
1510
1529
|
*
|
|
1511
|
-
* Returns the user's current plan, account usage, plan catalog,
|
|
1530
|
+
* Returns the user's current plan, account usage, plan catalog, billing
|
|
1531
|
+
* state and trial status.
|
|
1512
1532
|
*/
|
|
1513
1533
|
get(options) {
|
|
1514
1534
|
return (options?.client ?? this.client).get({
|