@getlatedev/node 0.2.1366 → 0.2.1368
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 +28 -6
- package/dist/index.d.ts +28 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +28 -5
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1368",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1368",
|
|
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
|
@@ -17833,6 +17833,8 @@ export const listBlogArticles = <ThrowOnError extends boolean = false>(options:
|
|
|
17833
17833
|
* top-level HTML element must fit 30,000 characters), and images in
|
|
17834
17834
|
* the body are imported into the site's Media Manager.
|
|
17835
17835
|
*
|
|
17836
|
+
* Send an Idempotency-Key header to make retries safe: a retry with the same key and body replays the original 201 instead of creating a second article. A retry while the first request is still running returns 409; retry after a short backoff.
|
|
17837
|
+
*
|
|
17836
17838
|
* Supported on Shopify (`shopify`), WordPress (`wordpress`), Wix (`wix`) and Webflow (`webflow`). WordPress
|
|
17837
17839
|
* native scheduling depends on the site's scheduler/WP-Cron.
|
|
17838
17840
|
*
|
|
@@ -11164,7 +11164,7 @@ export type OAuthApp = {
|
|
|
11164
11164
|
/**
|
|
11165
11165
|
* The permission areas every connect through this app requests. Pick only what your app is approved for on the platform.
|
|
11166
11166
|
*/
|
|
11167
|
-
scopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
11167
|
+
scopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
11168
11168
|
/**
|
|
11169
11169
|
* `ok`: the platform accepted the keys at the last check. `unchecked`: the check could not reach a verdict (see lastError). `invalid`: the platform rejected the keys; connects and token refreshes through this app will fail until the secret is rotated.
|
|
11170
11170
|
*/
|
|
@@ -11179,6 +11179,18 @@ export type OAuthApp = {
|
|
|
11179
11179
|
* The OAuth redirect URI to allow in your app's settings on the platform.
|
|
11180
11180
|
*/
|
|
11181
11181
|
redirectUri: string;
|
|
11182
|
+
/**
|
|
11183
|
+
* Facebook and Instagram only: Meta delivers comments and messages to your app's own webhook, so set it to this callback URL and verify token on the app's webhook product (Page for Facebook, Instagram for Instagram) and subscribe the listed fields. Zernio checks each delivery against your app secret. Null on platforms with nothing to set up.
|
|
11184
|
+
*/
|
|
11185
|
+
webhook?: {
|
|
11186
|
+
callbackUrl: string;
|
|
11187
|
+
verifyToken: string;
|
|
11188
|
+
object: OAuthAppWebhookObject;
|
|
11189
|
+
/**
|
|
11190
|
+
* Subscribe the app to these fields.
|
|
11191
|
+
*/
|
|
11192
|
+
fields: Array<(string)>;
|
|
11193
|
+
} | null;
|
|
11182
11194
|
createdAt: string;
|
|
11183
11195
|
};
|
|
11184
11196
|
|
|
@@ -11201,11 +11213,16 @@ export type OAuthAppSetup = {
|
|
|
11201
11213
|
* The areas an app on this platform can enable, each with the scopes it requests.
|
|
11202
11214
|
*/
|
|
11203
11215
|
scopeAreas: Array<{
|
|
11204
|
-
area: 'posting' | 'analytics' | 'comments' | 'messaging'
|
|
11216
|
+
area: 'posting' | 'analytics' | 'comments' | 'messaging';
|
|
11205
11217
|
scopes: Array<(string)>;
|
|
11206
11218
|
}>;
|
|
11207
11219
|
};
|
|
11208
11220
|
|
|
11221
|
+
/**
|
|
11222
|
+
* The webhook object to configure.
|
|
11223
|
+
*/
|
|
11224
|
+
export type OAuthAppWebhookObject = 'page' | 'instagram';
|
|
11225
|
+
|
|
11209
11226
|
export type OpenHours = Array<{
|
|
11210
11227
|
/**
|
|
11211
11228
|
* 0 = Sunday.
|
|
@@ -15251,7 +15268,7 @@ export type WebhookPayloadAccountPermissionsChanged = {
|
|
|
15251
15268
|
/**
|
|
15252
15269
|
* Every area now missing. Enable the permission on your app (or have the user grant it), then reconnect the account.
|
|
15253
15270
|
*/
|
|
15254
|
-
missingScopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
15271
|
+
missingScopeAreas: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
15255
15272
|
/**
|
|
15256
15273
|
* The platform error that revealed it.
|
|
15257
15274
|
*/
|
|
@@ -27413,7 +27430,7 @@ export type CreateOAuthAppData = {
|
|
|
27413
27430
|
/**
|
|
27414
27431
|
* Areas this app requests. Defaults to every area the platform supports; an area the platform cannot request separately is a 400.
|
|
27415
27432
|
*/
|
|
27416
|
-
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
27433
|
+
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
27417
27434
|
};
|
|
27418
27435
|
};
|
|
27419
27436
|
|
|
@@ -27444,7 +27461,7 @@ export type UpdateOAuthAppData = {
|
|
|
27444
27461
|
/**
|
|
27445
27462
|
* Replaces the areas new connects request. Accounts already connected keep what they were granted until they reconnect.
|
|
27446
27463
|
*/
|
|
27447
|
-
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging'
|
|
27464
|
+
scopeAreas?: Array<('posting' | 'analytics' | 'comments' | 'messaging')>;
|
|
27448
27465
|
};
|
|
27449
27466
|
path: {
|
|
27450
27467
|
appId: string;
|
|
@@ -61024,6 +61041,12 @@ export type CreateBlogArticleData = {
|
|
|
61024
61041
|
[key: string]: unknown;
|
|
61025
61042
|
};
|
|
61026
61043
|
};
|
|
61044
|
+
headers?: {
|
|
61045
|
+
/**
|
|
61046
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
61047
|
+
*/
|
|
61048
|
+
'Idempotency-Key'?: string;
|
|
61049
|
+
};
|
|
61027
61050
|
path: {
|
|
61028
61051
|
/**
|
|
61029
61052
|
* Connected Shopify, WordPress, Wix or Webflow account id.
|