@zernio/node 0.2.1019 → 0.2.1021
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 +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +7 -8
- package/src/generated/types.gen.ts +12 -8
package/dist/index.d.mts
CHANGED
|
@@ -2756,7 +2756,7 @@ type AdKeyword = {
|
|
|
2756
2756
|
};
|
|
2757
2757
|
syncedAt?: (string) | null;
|
|
2758
2758
|
/**
|
|
2759
|
-
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next
|
|
2759
|
+
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next daily sweep).
|
|
2760
2760
|
*/
|
|
2761
2761
|
metrics?: {
|
|
2762
2762
|
windowDays?: number;
|
|
@@ -6789,9 +6789,9 @@ type ErrorResponse = {
|
|
|
6789
6789
|
*/
|
|
6790
6790
|
quotaScope?: 'DEVELOPER' | 'ACCOUNT';
|
|
6791
6791
|
/**
|
|
6792
|
-
* Zernio Google Ads
|
|
6792
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
6793
6793
|
*/
|
|
6794
|
-
budgetScope?: 'user'
|
|
6794
|
+
budgetScope?: 'user';
|
|
6795
6795
|
[key: string]: unknown | string | boolean;
|
|
6796
6796
|
};
|
|
6797
6797
|
};
|
|
@@ -6808,9 +6808,9 @@ type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' |
|
|
|
6808
6808
|
*/
|
|
6809
6809
|
type quotaScope = 'DEVELOPER' | 'ACCOUNT';
|
|
6810
6810
|
/**
|
|
6811
|
-
* Zernio Google Ads
|
|
6811
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
6812
6812
|
*/
|
|
6813
|
-
type budgetScope = 'user'
|
|
6813
|
+
type budgetScope = 'user';
|
|
6814
6814
|
/**
|
|
6815
6815
|
* A media item on a native (external/synced) post, as carried by post.external.* webhook payloads. Distinct from the richer MediaItem used for Zernio-authored posts: external items are always already-published and limited to image or video. Kept as a separate schema so the generated SDK model does not collide with MediaItem.
|
|
6816
6816
|
*
|
|
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
|
|
|
18397
18397
|
* The platform to delete the post from
|
|
18398
18398
|
*/
|
|
18399
18399
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
18400
|
+
/**
|
|
18401
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
18402
|
+
*/
|
|
18403
|
+
accountId?: string;
|
|
18400
18404
|
};
|
|
18401
18405
|
path: {
|
|
18402
18406
|
postId: string;
|
|
@@ -18420,7 +18424,7 @@ type EditPostData = {
|
|
|
18420
18424
|
*/
|
|
18421
18425
|
content: string;
|
|
18422
18426
|
/**
|
|
18423
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
18427
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
18424
18428
|
*
|
|
18425
18429
|
*/
|
|
18426
18430
|
accountId?: string;
|
|
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
|
|
|
18444
18448
|
});
|
|
18445
18449
|
type EditPostError = (unknown | {
|
|
18446
18450
|
error?: string;
|
|
18447
|
-
});
|
|
18451
|
+
} | ErrorResponse);
|
|
18448
18452
|
type UpdatePostMetadataData = {
|
|
18449
18453
|
body: {
|
|
18450
18454
|
/**
|
|
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
|
|
|
18456
18460
|
*/
|
|
18457
18461
|
videoId?: string;
|
|
18458
18462
|
/**
|
|
18459
|
-
* Zernio account ID
|
|
18463
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
18460
18464
|
*/
|
|
18461
18465
|
accountId?: string;
|
|
18462
18466
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2756,7 +2756,7 @@ type AdKeyword = {
|
|
|
2756
2756
|
};
|
|
2757
2757
|
syncedAt?: (string) | null;
|
|
2758
2758
|
/**
|
|
2759
|
-
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next
|
|
2759
|
+
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next daily sweep).
|
|
2760
2760
|
*/
|
|
2761
2761
|
metrics?: {
|
|
2762
2762
|
windowDays?: number;
|
|
@@ -6789,9 +6789,9 @@ type ErrorResponse = {
|
|
|
6789
6789
|
*/
|
|
6790
6790
|
quotaScope?: 'DEVELOPER' | 'ACCOUNT';
|
|
6791
6791
|
/**
|
|
6792
|
-
* Zernio Google Ads
|
|
6792
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
6793
6793
|
*/
|
|
6794
|
-
budgetScope?: 'user'
|
|
6794
|
+
budgetScope?: 'user';
|
|
6795
6795
|
[key: string]: unknown | string | boolean;
|
|
6796
6796
|
};
|
|
6797
6797
|
};
|
|
@@ -6808,9 +6808,9 @@ type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' |
|
|
|
6808
6808
|
*/
|
|
6809
6809
|
type quotaScope = 'DEVELOPER' | 'ACCOUNT';
|
|
6810
6810
|
/**
|
|
6811
|
-
* Zernio Google Ads
|
|
6811
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
6812
6812
|
*/
|
|
6813
|
-
type budgetScope = 'user'
|
|
6813
|
+
type budgetScope = 'user';
|
|
6814
6814
|
/**
|
|
6815
6815
|
* A media item on a native (external/synced) post, as carried by post.external.* webhook payloads. Distinct from the richer MediaItem used for Zernio-authored posts: external items are always already-published and limited to image or video. Kept as a separate schema so the generated SDK model does not collide with MediaItem.
|
|
6816
6816
|
*
|
|
@@ -18397,6 +18397,10 @@ type UnpublishPostData = {
|
|
|
18397
18397
|
* The platform to delete the post from
|
|
18398
18398
|
*/
|
|
18399
18399
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
18400
|
+
/**
|
|
18401
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
18402
|
+
*/
|
|
18403
|
+
accountId?: string;
|
|
18400
18404
|
};
|
|
18401
18405
|
path: {
|
|
18402
18406
|
postId: string;
|
|
@@ -18420,7 +18424,7 @@ type EditPostData = {
|
|
|
18420
18424
|
*/
|
|
18421
18425
|
content: string;
|
|
18422
18426
|
/**
|
|
18423
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
18427
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
18424
18428
|
*
|
|
18425
18429
|
*/
|
|
18426
18430
|
accountId?: string;
|
|
@@ -18444,7 +18448,7 @@ type EditPostResponse = ({
|
|
|
18444
18448
|
});
|
|
18445
18449
|
type EditPostError = (unknown | {
|
|
18446
18450
|
error?: string;
|
|
18447
|
-
});
|
|
18451
|
+
} | ErrorResponse);
|
|
18448
18452
|
type UpdatePostMetadataData = {
|
|
18449
18453
|
body: {
|
|
18450
18454
|
/**
|
|
@@ -18456,7 +18460,7 @@ type UpdatePostMetadataData = {
|
|
|
18456
18460
|
*/
|
|
18457
18461
|
videoId?: string;
|
|
18458
18462
|
/**
|
|
18459
|
-
* Zernio account ID
|
|
18463
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
18460
18464
|
*/
|
|
18461
18465
|
accountId?: string;
|
|
18462
18466
|
/**
|
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.1021",
|
|
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.1021",
|
|
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
|
@@ -1078,8 +1078,8 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1078
1078
|
* Edit the text of an already-published post. Supported on X, Discord,
|
|
1079
1079
|
* Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
|
|
1080
1080
|
* and Slack. When a post was published to several accounts on the same platform,
|
|
1081
|
-
* pass `accountId` to pick which account's copy to edit (
|
|
1082
|
-
*
|
|
1081
|
+
* pass `accountId` to pick which account's copy to edit (without it the request
|
|
1082
|
+
* returns 409). Each platform enforces its own rules:
|
|
1083
1083
|
*
|
|
1084
1084
|
* **X**
|
|
1085
1085
|
* - Connected X account must have an active X Premium subscription
|
|
@@ -9229,12 +9229,11 @@ export const listLocalServicesLeadConversations = <ThrowOnError extends boolean
|
|
|
9229
9229
|
* List Search keywords
|
|
9230
9230
|
* Returns the Google Search keyword criteria (positive and negative) synced from
|
|
9231
9231
|
* connected Google Ads accounts, one row per ad-group keyword. Refreshed about
|
|
9232
|
-
* once a
|
|
9233
|
-
* pass on a slower slot,
|
|
9234
|
-
*
|
|
9235
|
-
*
|
|
9236
|
-
*
|
|
9237
|
-
* manual sync refreshes it immediately.
|
|
9232
|
+
* once a day per Google Ads customer (the keyword sweep rides the ads discovery
|
|
9233
|
+
* pass on a slower slot), so keywords added on Google can take up to a day to
|
|
9234
|
+
* appear. A customer synced for the first time is populated on the next discovery
|
|
9235
|
+
* pass rather than waiting for its daily slot, and connecting an account or
|
|
9236
|
+
* triggering a manual sync refreshes it immediately.
|
|
9238
9237
|
* Campaign-level negative keywords are not included; only ad-group-level
|
|
9239
9238
|
* criteria are.
|
|
9240
9239
|
*
|
|
@@ -817,7 +817,7 @@ export type AdKeyword = {
|
|
|
817
817
|
};
|
|
818
818
|
syncedAt?: (string) | null;
|
|
819
819
|
/**
|
|
820
|
-
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next
|
|
820
|
+
* Trailing 30-day window. Null on rows synced before the metrics columns existed (re-synced on the keyword's next daily sweep).
|
|
821
821
|
*/
|
|
822
822
|
metrics?: {
|
|
823
823
|
windowDays?: number;
|
|
@@ -5023,9 +5023,9 @@ export type ErrorResponse = {
|
|
|
5023
5023
|
*/
|
|
5024
5024
|
quotaScope?: 'DEVELOPER' | 'ACCOUNT';
|
|
5025
5025
|
/**
|
|
5026
|
-
* Zernio Google Ads
|
|
5026
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
5027
5027
|
*/
|
|
5028
|
-
budgetScope?: 'user'
|
|
5028
|
+
budgetScope?: 'user';
|
|
5029
5029
|
[key: string]: unknown | string | boolean;
|
|
5030
5030
|
};
|
|
5031
5031
|
};
|
|
@@ -5046,9 +5046,9 @@ export type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activa
|
|
|
5046
5046
|
export type quotaScope = 'DEVELOPER' | 'ACCOUNT';
|
|
5047
5047
|
|
|
5048
5048
|
/**
|
|
5049
|
-
* Zernio Google Ads
|
|
5049
|
+
* Zernio Google Ads burst-limit 429 only (never set alongside `quotaExhausted`). `user` is your own per-minute allowance on user-driven Google Ads calls; it clears within a minute.
|
|
5050
5050
|
*/
|
|
5051
|
-
export type budgetScope = 'user'
|
|
5051
|
+
export type budgetScope = 'user';
|
|
5052
5052
|
|
|
5053
5053
|
/**
|
|
5054
5054
|
* A media item on a native (external/synced) post, as carried by post.external.* webhook payloads. Distinct from the richer MediaItem used for Zernio-authored posts: external items are always already-published and limited to image or video. Kept as a separate schema so the generated SDK model does not collide with MediaItem.
|
|
@@ -17217,6 +17217,10 @@ export type UnpublishPostData = {
|
|
|
17217
17217
|
* The platform to delete the post from
|
|
17218
17218
|
*/
|
|
17219
17219
|
platform: 'threads' | 'facebook' | 'twitter' | 'linkedin' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram';
|
|
17220
|
+
/**
|
|
17221
|
+
* Which account's copy to delete when the post was published to several accounts on this platform. Required in that case.
|
|
17222
|
+
*/
|
|
17223
|
+
accountId?: string;
|
|
17220
17224
|
};
|
|
17221
17225
|
path: {
|
|
17222
17226
|
postId: string;
|
|
@@ -17243,7 +17247,7 @@ export type EditPostData = {
|
|
|
17243
17247
|
*/
|
|
17244
17248
|
content: string;
|
|
17245
17249
|
/**
|
|
17246
|
-
* Which account's copy of the post to edit when the post was published to several accounts on the same platform
|
|
17250
|
+
* Which account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
|
|
17247
17251
|
*
|
|
17248
17252
|
*/
|
|
17249
17253
|
accountId?: string;
|
|
@@ -17269,7 +17273,7 @@ export type EditPostResponse = ({
|
|
|
17269
17273
|
|
|
17270
17274
|
export type EditPostError = (unknown | {
|
|
17271
17275
|
error?: string;
|
|
17272
|
-
});
|
|
17276
|
+
} | ErrorResponse);
|
|
17273
17277
|
|
|
17274
17278
|
export type UpdatePostMetadataData = {
|
|
17275
17279
|
body: {
|
|
@@ -17282,7 +17286,7 @@ export type UpdatePostMetadataData = {
|
|
|
17282
17286
|
*/
|
|
17283
17287
|
videoId?: string;
|
|
17284
17288
|
/**
|
|
17285
|
-
* Zernio account ID
|
|
17289
|
+
* Zernio account ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
|
|
17286
17290
|
*/
|
|
17287
17291
|
accountId?: string;
|
|
17288
17292
|
/**
|