@zernio/node 0.2.1483 → 0.2.1484
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.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -1
- package/src/generated/types.gen.ts +15 -3
package/dist/index.d.mts
CHANGED
|
@@ -15357,6 +15357,10 @@ type Post = {
|
|
|
15357
15357
|
* Queue ID if the post was scheduled via a specific queue
|
|
15358
15358
|
*/
|
|
15359
15359
|
queueId?: string;
|
|
15360
|
+
/**
|
|
15361
|
+
* Profile the post is filed under. Set only on drafts that have no platforms.
|
|
15362
|
+
*/
|
|
15363
|
+
profileId?: string;
|
|
15360
15364
|
createdAt?: string;
|
|
15361
15365
|
/**
|
|
15362
15366
|
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
@@ -19055,7 +19059,9 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
19055
19059
|
username: string;
|
|
19056
19060
|
displayName?: string;
|
|
19057
19061
|
/**
|
|
19058
|
-
*
|
|
19062
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
19063
|
+
*
|
|
19064
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
19059
19065
|
*/
|
|
19060
19066
|
disconnectionType: 'intentional' | 'unintentional';
|
|
19061
19067
|
/**
|
|
@@ -19070,7 +19076,9 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
19070
19076
|
};
|
|
19071
19077
|
type event5 = 'account.disconnected';
|
|
19072
19078
|
/**
|
|
19073
|
-
*
|
|
19079
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
19080
|
+
*
|
|
19081
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
19074
19082
|
*/
|
|
19075
19083
|
type disconnectionType = 'intentional' | 'unintentional';
|
|
19076
19084
|
/**
|
|
@@ -27995,7 +28003,7 @@ type ListPostsData = {
|
|
|
27995
28003
|
page?: number;
|
|
27996
28004
|
platform?: string;
|
|
27997
28005
|
/**
|
|
27998
|
-
* Filter posts to a specific profile (24-char hex ObjectId). Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
28006
|
+
* Filter posts to a specific profile (24-char hex ObjectId), including drafts filed under it without platforms. Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
27999
28007
|
*/
|
|
28000
28008
|
profileId?: string;
|
|
28001
28009
|
/**
|
|
@@ -28158,6 +28166,10 @@ type CreatePostData = {
|
|
|
28158
28166
|
*
|
|
28159
28167
|
*/
|
|
28160
28168
|
queueId?: string;
|
|
28169
|
+
/**
|
|
28170
|
+
* Files a draft with no platforms under this profile so it lists under ?profileId= and profile-scoped API keys. Ignored when platforms are set. When promoting the draft via PUT, send platforms, isDraft false and scheduledFor again.
|
|
28171
|
+
*/
|
|
28172
|
+
profileId?: string;
|
|
28161
28173
|
};
|
|
28162
28174
|
headers?: {
|
|
28163
28175
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -15357,6 +15357,10 @@ type Post = {
|
|
|
15357
15357
|
* Queue ID if the post was scheduled via a specific queue
|
|
15358
15358
|
*/
|
|
15359
15359
|
queueId?: string;
|
|
15360
|
+
/**
|
|
15361
|
+
* Profile the post is filed under. Set only on drafts that have no platforms.
|
|
15362
|
+
*/
|
|
15363
|
+
profileId?: string;
|
|
15360
15364
|
createdAt?: string;
|
|
15361
15365
|
/**
|
|
15362
15366
|
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
@@ -19055,7 +19059,9 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
19055
19059
|
username: string;
|
|
19056
19060
|
displayName?: string;
|
|
19057
19061
|
/**
|
|
19058
|
-
*
|
|
19062
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
19063
|
+
*
|
|
19064
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
19059
19065
|
*/
|
|
19060
19066
|
disconnectionType: 'intentional' | 'unintentional';
|
|
19061
19067
|
/**
|
|
@@ -19070,7 +19076,9 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
19070
19076
|
};
|
|
19071
19077
|
type event5 = 'account.disconnected';
|
|
19072
19078
|
/**
|
|
19073
|
-
*
|
|
19079
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
19080
|
+
*
|
|
19081
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
19074
19082
|
*/
|
|
19075
19083
|
type disconnectionType = 'intentional' | 'unintentional';
|
|
19076
19084
|
/**
|
|
@@ -27995,7 +28003,7 @@ type ListPostsData = {
|
|
|
27995
28003
|
page?: number;
|
|
27996
28004
|
platform?: string;
|
|
27997
28005
|
/**
|
|
27998
|
-
* Filter posts to a specific profile (24-char hex ObjectId). Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
28006
|
+
* Filter posts to a specific profile (24-char hex ObjectId), including drafts filed under it without platforms. Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
27999
28007
|
*/
|
|
28000
28008
|
profileId?: string;
|
|
28001
28009
|
/**
|
|
@@ -28158,6 +28166,10 @@ type CreatePostData = {
|
|
|
28158
28166
|
*
|
|
28159
28167
|
*/
|
|
28160
28168
|
queueId?: string;
|
|
28169
|
+
/**
|
|
28170
|
+
* Files a draft with no platforms under this profile so it lists under ?profileId= and profile-scoped API keys. Ignored when platforms are set. When promoting the draft via PUT, send platforms, isDraft false and scheduledFor again.
|
|
28171
|
+
*/
|
|
28172
|
+
profileId?: string;
|
|
28161
28173
|
};
|
|
28162
28174
|
headers?: {
|
|
28163
28175
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1484",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1484",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2292,7 +2292,11 @@ export const moveAccountToProfile = <ThrowOnError extends boolean = false>(optio
|
|
|
2292
2292
|
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Disconnect account
|
|
2295
|
-
* Disconnects and removes a connected account
|
|
2295
|
+
* Disconnects and removes a connected account, and fires account.disconnected with disconnectionType intentional.
|
|
2296
|
+
*
|
|
2297
|
+
* The account is kept for a 1h grace window. Reconnecting the same account within it restores it with the same accountId and its scheduled posts. After that it is deleted permanently.
|
|
2298
|
+
*
|
|
2299
|
+
* Repeating the call for an account already disconnected returns 404, the account stays in its 1h grace window and the disconnect is not re-run.
|
|
2296
2300
|
*/
|
|
2297
2301
|
export const deleteAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteAccountData, ThrowOnError>) => {
|
|
2298
2302
|
return (options?.client ?? client).delete<DeleteAccountResponse, DeleteAccountError, ThrowOnError>({
|
|
@@ -13645,6 +13645,10 @@ export type Post = {
|
|
|
13645
13645
|
* Queue ID if the post was scheduled via a specific queue
|
|
13646
13646
|
*/
|
|
13647
13647
|
queueId?: string;
|
|
13648
|
+
/**
|
|
13649
|
+
* Profile the post is filed under. Set only on drafts that have no platforms.
|
|
13650
|
+
*/
|
|
13651
|
+
profileId?: string;
|
|
13648
13652
|
createdAt?: string;
|
|
13649
13653
|
/**
|
|
13650
13654
|
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
@@ -17516,7 +17520,9 @@ export type WebhookPayloadAccountDisconnected = {
|
|
|
17516
17520
|
username: string;
|
|
17517
17521
|
displayName?: string;
|
|
17518
17522
|
/**
|
|
17519
|
-
*
|
|
17523
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
17524
|
+
*
|
|
17525
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
17520
17526
|
*/
|
|
17521
17527
|
disconnectionType: 'intentional' | 'unintentional';
|
|
17522
17528
|
/**
|
|
@@ -17533,7 +17539,9 @@ export type WebhookPayloadAccountDisconnected = {
|
|
|
17533
17539
|
export type event5 = 'account.disconnected';
|
|
17534
17540
|
|
|
17535
17541
|
/**
|
|
17536
|
-
*
|
|
17542
|
+
* intentional: removed on purpose, for example with DELETE /v1/accounts/{accountId} or by a switch to the Free plan for the accounts over its limit. The account is deleted permanently 1 hour later unless the same account is reconnected within that hour.
|
|
17543
|
+
*
|
|
17544
|
+
* unintentional: the connection broke (token expired or revoked, access lost on the platform). The account stays in Zernio, inactive, until it is reconnected (keeping its accountId) or removed.
|
|
17537
17545
|
*/
|
|
17538
17546
|
export type disconnectionType = 'intentional' | 'unintentional';
|
|
17539
17547
|
|
|
@@ -26941,7 +26949,7 @@ export type ListPostsData = {
|
|
|
26941
26949
|
page?: number;
|
|
26942
26950
|
platform?: string;
|
|
26943
26951
|
/**
|
|
26944
|
-
* Filter posts to a specific profile (24-char hex ObjectId). Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
26952
|
+
* Filter posts to a specific profile (24-char hex ObjectId), including drafts filed under it without platforms. Omit it, or send `all` or an empty value, to list posts across every profile.
|
|
26945
26953
|
*/
|
|
26946
26954
|
profileId?: string;
|
|
26947
26955
|
/**
|
|
@@ -27107,6 +27115,10 @@ export type CreatePostData = {
|
|
|
27107
27115
|
*
|
|
27108
27116
|
*/
|
|
27109
27117
|
queueId?: string;
|
|
27118
|
+
/**
|
|
27119
|
+
* Files a draft with no platforms under this profile so it lists under ?profileId= and profile-scoped API keys. Ignored when platforms are set. When promoting the draft via PUT, send platforms, isDraft false and scheduledFor again.
|
|
27120
|
+
*/
|
|
27121
|
+
profileId?: string;
|
|
27110
27122
|
};
|
|
27111
27123
|
headers?: {
|
|
27112
27124
|
/**
|