@zernio/node 0.2.1062 → 0.2.1064
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 +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -2
- package/src/generated/types.gen.ts +49 -6
package/dist/index.d.mts
CHANGED
|
@@ -21340,9 +21340,19 @@ type SelectGoogleBusinessLocationData = {
|
|
|
21340
21340
|
*/
|
|
21341
21341
|
profileId: string;
|
|
21342
21342
|
/**
|
|
21343
|
-
* The Google Business Profile location ID selected by the user
|
|
21343
|
+
* The Google Business Profile location ID selected by the user. Send this or locations, not both.
|
|
21344
21344
|
*/
|
|
21345
|
-
locationId
|
|
21345
|
+
locationId?: string;
|
|
21346
|
+
/**
|
|
21347
|
+
* Several locations to connect from one sign-in, each as its own account. The sign-in is used once for the whole batch and handed back only if none connected. With two or more distinct locations the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single location behaves exactly like locationId.
|
|
21348
|
+
*/
|
|
21349
|
+
locations?: Array<{
|
|
21350
|
+
locationId: string;
|
|
21351
|
+
/**
|
|
21352
|
+
* The location's Google Business Profile Account resource name, as for the top-level accountId.
|
|
21353
|
+
*/
|
|
21354
|
+
accountId?: string;
|
|
21355
|
+
}>;
|
|
21346
21356
|
/**
|
|
21347
21357
|
* Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the selected location (returned per-location by GET /v1/connect/googlebusiness/locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts that own many locations. Omit only for small accounts.
|
|
21348
21358
|
*
|
|
@@ -21382,6 +21392,23 @@ type SelectGoogleBusinessLocationResponse = ({
|
|
|
21382
21392
|
*/
|
|
21383
21393
|
selectedLocationId?: string;
|
|
21384
21394
|
};
|
|
21395
|
+
/**
|
|
21396
|
+
* locations with two or more distinct entries only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
|
|
21397
|
+
*/
|
|
21398
|
+
accounts?: Array<{
|
|
21399
|
+
[key: string]: unknown;
|
|
21400
|
+
}>;
|
|
21401
|
+
/**
|
|
21402
|
+
* locations only. The locations that could not be connected while the others were.
|
|
21403
|
+
*/
|
|
21404
|
+
failed?: Array<{
|
|
21405
|
+
/**
|
|
21406
|
+
* The location ID.
|
|
21407
|
+
*/
|
|
21408
|
+
id?: string;
|
|
21409
|
+
code?: string;
|
|
21410
|
+
message?: string;
|
|
21411
|
+
}>;
|
|
21385
21412
|
});
|
|
21386
21413
|
type SelectGoogleBusinessLocationError = (unknown | ErrorResponse);
|
|
21387
21414
|
type GetGoogleBusinessReviewsData = {
|
|
@@ -23421,13 +23448,21 @@ type ConnectDiscordChannelData = {
|
|
|
23421
23448
|
*/
|
|
23422
23449
|
guildId: string;
|
|
23423
23450
|
/**
|
|
23424
|
-
* Text, announcement or forum channel to publish to
|
|
23451
|
+
* Text, announcement or forum channel to publish to. Send this or channelIds, not both.
|
|
23425
23452
|
*/
|
|
23426
|
-
channelId
|
|
23453
|
+
channelId?: string;
|
|
23454
|
+
/**
|
|
23455
|
+
* Several channels of the server to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`. A single id behaves exactly like channelId.
|
|
23456
|
+
*/
|
|
23457
|
+
channelIds?: Array<(string)>;
|
|
23427
23458
|
/**
|
|
23428
23459
|
* Profile to connect the channel to
|
|
23429
23460
|
*/
|
|
23430
23461
|
profileId: string;
|
|
23462
|
+
/**
|
|
23463
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
23464
|
+
*/
|
|
23465
|
+
redirect_url?: string;
|
|
23431
23466
|
};
|
|
23432
23467
|
};
|
|
23433
23468
|
type ConnectDiscordChannelResponse = (unknown);
|
|
@@ -23544,9 +23579,17 @@ type ConnectSlackChannelData = {
|
|
|
23544
23579
|
body: {
|
|
23545
23580
|
profileId: string;
|
|
23546
23581
|
/**
|
|
23547
|
-
* Slack channel id, C... or G
|
|
23582
|
+
* Slack channel id, C... or G.... Send this or channelIds, not both.
|
|
23548
23583
|
*/
|
|
23549
|
-
channelId
|
|
23584
|
+
channelId?: string;
|
|
23585
|
+
/**
|
|
23586
|
+
* Several channels of the workspace to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single id behaves exactly like channelId.
|
|
23587
|
+
*/
|
|
23588
|
+
channelIds?: Array<(string)>;
|
|
23589
|
+
/**
|
|
23590
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
23591
|
+
*/
|
|
23592
|
+
redirect_url?: string;
|
|
23550
23593
|
/**
|
|
23551
23594
|
* Nonce from the OAuth redirect. Required unless accountId is sent.
|
|
23552
23595
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -21340,9 +21340,19 @@ type SelectGoogleBusinessLocationData = {
|
|
|
21340
21340
|
*/
|
|
21341
21341
|
profileId: string;
|
|
21342
21342
|
/**
|
|
21343
|
-
* The Google Business Profile location ID selected by the user
|
|
21343
|
+
* The Google Business Profile location ID selected by the user. Send this or locations, not both.
|
|
21344
21344
|
*/
|
|
21345
|
-
locationId
|
|
21345
|
+
locationId?: string;
|
|
21346
|
+
/**
|
|
21347
|
+
* Several locations to connect from one sign-in, each as its own account. The sign-in is used once for the whole batch and handed back only if none connected. With two or more distinct locations the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single location behaves exactly like locationId.
|
|
21348
|
+
*/
|
|
21349
|
+
locations?: Array<{
|
|
21350
|
+
locationId: string;
|
|
21351
|
+
/**
|
|
21352
|
+
* The location's Google Business Profile Account resource name, as for the top-level accountId.
|
|
21353
|
+
*/
|
|
21354
|
+
accountId?: string;
|
|
21355
|
+
}>;
|
|
21346
21356
|
/**
|
|
21347
21357
|
* Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the selected location (returned per-location by GET /v1/connect/googlebusiness/locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts that own many locations. Omit only for small accounts.
|
|
21348
21358
|
*
|
|
@@ -21382,6 +21392,23 @@ type SelectGoogleBusinessLocationResponse = ({
|
|
|
21382
21392
|
*/
|
|
21383
21393
|
selectedLocationId?: string;
|
|
21384
21394
|
};
|
|
21395
|
+
/**
|
|
21396
|
+
* locations with two or more distinct entries only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
|
|
21397
|
+
*/
|
|
21398
|
+
accounts?: Array<{
|
|
21399
|
+
[key: string]: unknown;
|
|
21400
|
+
}>;
|
|
21401
|
+
/**
|
|
21402
|
+
* locations only. The locations that could not be connected while the others were.
|
|
21403
|
+
*/
|
|
21404
|
+
failed?: Array<{
|
|
21405
|
+
/**
|
|
21406
|
+
* The location ID.
|
|
21407
|
+
*/
|
|
21408
|
+
id?: string;
|
|
21409
|
+
code?: string;
|
|
21410
|
+
message?: string;
|
|
21411
|
+
}>;
|
|
21385
21412
|
});
|
|
21386
21413
|
type SelectGoogleBusinessLocationError = (unknown | ErrorResponse);
|
|
21387
21414
|
type GetGoogleBusinessReviewsData = {
|
|
@@ -23421,13 +23448,21 @@ type ConnectDiscordChannelData = {
|
|
|
23421
23448
|
*/
|
|
23422
23449
|
guildId: string;
|
|
23423
23450
|
/**
|
|
23424
|
-
* Text, announcement or forum channel to publish to
|
|
23451
|
+
* Text, announcement or forum channel to publish to. Send this or channelIds, not both.
|
|
23425
23452
|
*/
|
|
23426
|
-
channelId
|
|
23453
|
+
channelId?: string;
|
|
23454
|
+
/**
|
|
23455
|
+
* Several channels of the server to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`. A single id behaves exactly like channelId.
|
|
23456
|
+
*/
|
|
23457
|
+
channelIds?: Array<(string)>;
|
|
23427
23458
|
/**
|
|
23428
23459
|
* Profile to connect the channel to
|
|
23429
23460
|
*/
|
|
23430
23461
|
profileId: string;
|
|
23462
|
+
/**
|
|
23463
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
23464
|
+
*/
|
|
23465
|
+
redirect_url?: string;
|
|
23431
23466
|
};
|
|
23432
23467
|
};
|
|
23433
23468
|
type ConnectDiscordChannelResponse = (unknown);
|
|
@@ -23544,9 +23579,17 @@ type ConnectSlackChannelData = {
|
|
|
23544
23579
|
body: {
|
|
23545
23580
|
profileId: string;
|
|
23546
23581
|
/**
|
|
23547
|
-
* Slack channel id, C... or G
|
|
23582
|
+
* Slack channel id, C... or G.... Send this or channelIds, not both.
|
|
23548
23583
|
*/
|
|
23549
|
-
channelId
|
|
23584
|
+
channelId?: string;
|
|
23585
|
+
/**
|
|
23586
|
+
* Several channels of the workspace to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single id behaves exactly like channelId.
|
|
23587
|
+
*/
|
|
23588
|
+
channelIds?: Array<(string)>;
|
|
23589
|
+
/**
|
|
23590
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
23591
|
+
*/
|
|
23592
|
+
redirect_url?: string;
|
|
23550
23593
|
/**
|
|
23551
23594
|
* Nonce from the OAuth redirect. Required unless accountId is sent.
|
|
23552
23595
|
*/
|
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.1064",
|
|
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.1064",
|
|
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
|
@@ -2515,7 +2515,7 @@ export const getWhatsAppSdkConfig = <ThrowOnError extends boolean = false>(optio
|
|
|
2515
2515
|
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Connect a Discord channel
|
|
2518
|
-
* Finalize a Discord connect by binding
|
|
2518
|
+
* Finalize a Discord connect by binding channels to a profile. Served by a dedicated route, so it is not reachable through POST /v1/connect/{platform}. One connected account per channel: send channelIds to connect several channels of the server at once, or repeat the call with a different channelId.
|
|
2519
2519
|
*/
|
|
2520
2520
|
export const connectDiscordChannel = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ConnectDiscordChannelData, ThrowOnError>) => {
|
|
2521
2521
|
return (options?.client ?? client).post<ConnectDiscordChannelResponse, ConnectDiscordChannelError, ThrowOnError>({
|
|
@@ -5535,7 +5535,8 @@ export const listImessageSenderOrders = <ThrowOnError extends boolean = false>(o
|
|
|
5535
5535
|
* the response is 202 with the lifecycle object; poll
|
|
5536
5536
|
* GET /v1/imessage/senders/{senderId} or subscribe to the
|
|
5537
5537
|
* account.connected webhook. Billing starts at activation (monthly per
|
|
5538
|
-
* sender, no proration)
|
|
5538
|
+
* sender, no proration); when the account spend threshold is below the
|
|
5539
|
+
* sender price, the first month is charged before the number is bought. Requires usage-based billing and a valid
|
|
5539
5540
|
* payment method. Pass purchaseIntentId to make retries idempotent —
|
|
5540
5541
|
* the provider-side order is never retried automatically. Ordered phone
|
|
5541
5542
|
* senders include SMS/RCS fallback with call forwarding and the ability
|
|
@@ -20311,9 +20311,19 @@ export type SelectGoogleBusinessLocationData = {
|
|
|
20311
20311
|
*/
|
|
20312
20312
|
profileId: string;
|
|
20313
20313
|
/**
|
|
20314
|
-
* The Google Business Profile location ID selected by the user
|
|
20314
|
+
* The Google Business Profile location ID selected by the user. Send this or locations, not both.
|
|
20315
20315
|
*/
|
|
20316
|
-
locationId
|
|
20316
|
+
locationId?: string;
|
|
20317
|
+
/**
|
|
20318
|
+
* Several locations to connect from one sign-in, each as its own account. The sign-in is used once for the whole batch and handed back only if none connected. With two or more distinct locations the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single location behaves exactly like locationId.
|
|
20319
|
+
*/
|
|
20320
|
+
locations?: Array<{
|
|
20321
|
+
locationId: string;
|
|
20322
|
+
/**
|
|
20323
|
+
* The location's Google Business Profile Account resource name, as for the top-level accountId.
|
|
20324
|
+
*/
|
|
20325
|
+
accountId?: string;
|
|
20326
|
+
}>;
|
|
20317
20327
|
/**
|
|
20318
20328
|
* Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the selected location (returned per-location by GET /v1/connect/googlebusiness/locations). When provided, the location is resolved directly instead of by enumerating the account, which is required for accounts that own many locations. Omit only for small accounts.
|
|
20319
20329
|
*
|
|
@@ -20354,6 +20364,23 @@ export type SelectGoogleBusinessLocationResponse = ({
|
|
|
20354
20364
|
*/
|
|
20355
20365
|
selectedLocationId?: string;
|
|
20356
20366
|
};
|
|
20367
|
+
/**
|
|
20368
|
+
* locations with two or more distinct entries only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
|
|
20369
|
+
*/
|
|
20370
|
+
accounts?: Array<{
|
|
20371
|
+
[key: string]: unknown;
|
|
20372
|
+
}>;
|
|
20373
|
+
/**
|
|
20374
|
+
* locations only. The locations that could not be connected while the others were.
|
|
20375
|
+
*/
|
|
20376
|
+
failed?: Array<{
|
|
20377
|
+
/**
|
|
20378
|
+
* The location ID.
|
|
20379
|
+
*/
|
|
20380
|
+
id?: string;
|
|
20381
|
+
code?: string;
|
|
20382
|
+
message?: string;
|
|
20383
|
+
}>;
|
|
20357
20384
|
});
|
|
20358
20385
|
|
|
20359
20386
|
export type SelectGoogleBusinessLocationError = (unknown | ErrorResponse);
|
|
@@ -22512,13 +22539,21 @@ export type ConnectDiscordChannelData = {
|
|
|
22512
22539
|
*/
|
|
22513
22540
|
guildId: string;
|
|
22514
22541
|
/**
|
|
22515
|
-
* Text, announcement or forum channel to publish to
|
|
22542
|
+
* Text, announcement or forum channel to publish to. Send this or channelIds, not both.
|
|
22516
22543
|
*/
|
|
22517
|
-
channelId
|
|
22544
|
+
channelId?: string;
|
|
22545
|
+
/**
|
|
22546
|
+
* Several channels of the server to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`. A single id behaves exactly like channelId.
|
|
22547
|
+
*/
|
|
22548
|
+
channelIds?: Array<(string)>;
|
|
22518
22549
|
/**
|
|
22519
22550
|
* Profile to connect the channel to
|
|
22520
22551
|
*/
|
|
22521
22552
|
profileId: string;
|
|
22553
|
+
/**
|
|
22554
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
22555
|
+
*/
|
|
22556
|
+
redirect_url?: string;
|
|
22522
22557
|
};
|
|
22523
22558
|
};
|
|
22524
22559
|
|
|
@@ -22641,9 +22676,17 @@ export type ConnectSlackChannelData = {
|
|
|
22641
22676
|
body: {
|
|
22642
22677
|
profileId: string;
|
|
22643
22678
|
/**
|
|
22644
|
-
* Slack channel id, C... or G
|
|
22679
|
+
* Slack channel id, C... or G.... Send this or channelIds, not both.
|
|
22645
22680
|
*/
|
|
22646
|
-
channelId
|
|
22681
|
+
channelId?: string;
|
|
22682
|
+
/**
|
|
22683
|
+
* Several channels of the workspace to connect, each as its own account. With two or more distinct ids the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 on a reconnect. A single id behaves exactly like channelId.
|
|
22684
|
+
*/
|
|
22685
|
+
channelIds?: Array<(string)>;
|
|
22686
|
+
/**
|
|
22687
|
+
* channelIds only: a URL to return in `redirect_url`, with `connected`, `profileId`, `accountId` and `accountIds` appended.
|
|
22688
|
+
*/
|
|
22689
|
+
redirect_url?: string;
|
|
22647
22690
|
/**
|
|
22648
22691
|
* Nonce from the OAuth redirect. Required unless accountId is sent.
|
|
22649
22692
|
*/
|