@zernio/node 0.2.720 → 0.2.722
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 +40 -8
- package/dist/index.d.ts +40 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -12
- package/src/generated/types.gen.ts +39 -7
package/dist/index.d.mts
CHANGED
|
@@ -980,7 +980,7 @@ declare class Zernio {
|
|
|
980
980
|
* adlibrary API
|
|
981
981
|
*/
|
|
982
982
|
adlibrary: {
|
|
983
|
-
searchAdLibrary: <ThrowOnError extends boolean = false>(options
|
|
983
|
+
searchAdLibrary: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
|
|
984
984
|
};
|
|
985
985
|
/**
|
|
986
986
|
* adaudiences API
|
|
@@ -22654,6 +22654,10 @@ type GetWhatsAppTemplatesResponse = ({
|
|
|
22654
22654
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22655
22655
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22656
22656
|
language?: string;
|
|
22657
|
+
/**
|
|
22658
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22659
|
+
*/
|
|
22660
|
+
message_send_ttl_seconds?: number;
|
|
22657
22661
|
components?: Array<{
|
|
22658
22662
|
[key: string]: unknown;
|
|
22659
22663
|
}>;
|
|
@@ -22716,6 +22720,10 @@ type CreateWhatsAppTemplateData = {
|
|
|
22716
22720
|
};
|
|
22717
22721
|
phone_number?: string;
|
|
22718
22722
|
}>;
|
|
22723
|
+
/**
|
|
22724
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22725
|
+
*/
|
|
22726
|
+
message_send_ttl_seconds?: number;
|
|
22719
22727
|
};
|
|
22720
22728
|
};
|
|
22721
22729
|
type CreateWhatsAppTemplateResponse = ({
|
|
@@ -22729,6 +22737,10 @@ type CreateWhatsAppTemplateResponse = ({
|
|
|
22729
22737
|
status?: string;
|
|
22730
22738
|
category?: string;
|
|
22731
22739
|
language?: string;
|
|
22740
|
+
/**
|
|
22741
|
+
* Echoed when supplied on the request.
|
|
22742
|
+
*/
|
|
22743
|
+
message_send_ttl_seconds?: number;
|
|
22732
22744
|
};
|
|
22733
22745
|
});
|
|
22734
22746
|
type CreateWhatsAppTemplateError = (unknown | {
|
|
@@ -22769,6 +22781,10 @@ type GetWhatsAppTemplateResponse = ({
|
|
|
22769
22781
|
components?: Array<{
|
|
22770
22782
|
[key: string]: unknown;
|
|
22771
22783
|
}>;
|
|
22784
|
+
/**
|
|
22785
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22786
|
+
*/
|
|
22787
|
+
message_send_ttl_seconds?: number;
|
|
22772
22788
|
/**
|
|
22773
22789
|
* Only when status is REJECTED.
|
|
22774
22790
|
*/
|
|
@@ -22803,9 +22819,13 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22803
22819
|
*/
|
|
22804
22820
|
language?: string;
|
|
22805
22821
|
/**
|
|
22806
|
-
* Updated template components
|
|
22822
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22823
|
+
*/
|
|
22824
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22825
|
+
/**
|
|
22826
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22807
22827
|
*/
|
|
22808
|
-
|
|
22828
|
+
message_send_ttl_seconds?: number;
|
|
22809
22829
|
};
|
|
22810
22830
|
path: {
|
|
22811
22831
|
/**
|
|
@@ -22915,6 +22935,10 @@ type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22915
22935
|
components?: Array<{
|
|
22916
22936
|
[key: string]: unknown;
|
|
22917
22937
|
}>;
|
|
22938
|
+
/**
|
|
22939
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22940
|
+
*/
|
|
22941
|
+
message_send_ttl_seconds?: number;
|
|
22918
22942
|
/**
|
|
22919
22943
|
* Only when status is REJECTED.
|
|
22920
22944
|
*/
|
|
@@ -22937,9 +22961,13 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22937
22961
|
*/
|
|
22938
22962
|
accountId: string;
|
|
22939
22963
|
/**
|
|
22940
|
-
* Updated template components
|
|
22964
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22965
|
+
*/
|
|
22966
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22967
|
+
/**
|
|
22968
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22941
22969
|
*/
|
|
22942
|
-
|
|
22970
|
+
message_send_ttl_seconds?: number;
|
|
22943
22971
|
};
|
|
22944
22972
|
path: {
|
|
22945
22973
|
/**
|
|
@@ -35563,11 +35591,11 @@ type SearchAdTargetingError = (unknown | {
|
|
|
35563
35591
|
error?: string;
|
|
35564
35592
|
});
|
|
35565
35593
|
type SearchAdLibraryData = {
|
|
35566
|
-
query
|
|
35594
|
+
query?: {
|
|
35567
35595
|
/**
|
|
35568
|
-
* Zernio SocialAccount id (
|
|
35596
|
+
* Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
|
|
35569
35597
|
*/
|
|
35570
|
-
accountId
|
|
35598
|
+
accountId?: string;
|
|
35571
35599
|
/**
|
|
35572
35600
|
* Meta only.
|
|
35573
35601
|
*/
|
|
@@ -35604,6 +35632,10 @@ type SearchAdLibraryData = {
|
|
|
35604
35632
|
* Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
|
|
35605
35633
|
*/
|
|
35606
35634
|
pageIds?: string;
|
|
35635
|
+
/**
|
|
35636
|
+
* Which archive to search. `meta` needs no accountId. Required unless accountId is given.
|
|
35637
|
+
*/
|
|
35638
|
+
platform?: 'meta' | 'linkedin';
|
|
35607
35639
|
/**
|
|
35608
35640
|
* Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
|
|
35609
35641
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -980,7 +980,7 @@ declare class Zernio {
|
|
|
980
980
|
* adlibrary API
|
|
981
981
|
*/
|
|
982
982
|
adlibrary: {
|
|
983
|
-
searchAdLibrary: <ThrowOnError extends boolean = false>(options
|
|
983
|
+
searchAdLibrary: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
|
|
984
984
|
};
|
|
985
985
|
/**
|
|
986
986
|
* adaudiences API
|
|
@@ -22654,6 +22654,10 @@ type GetWhatsAppTemplatesResponse = ({
|
|
|
22654
22654
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22655
22655
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22656
22656
|
language?: string;
|
|
22657
|
+
/**
|
|
22658
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22659
|
+
*/
|
|
22660
|
+
message_send_ttl_seconds?: number;
|
|
22657
22661
|
components?: Array<{
|
|
22658
22662
|
[key: string]: unknown;
|
|
22659
22663
|
}>;
|
|
@@ -22716,6 +22720,10 @@ type CreateWhatsAppTemplateData = {
|
|
|
22716
22720
|
};
|
|
22717
22721
|
phone_number?: string;
|
|
22718
22722
|
}>;
|
|
22723
|
+
/**
|
|
22724
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22725
|
+
*/
|
|
22726
|
+
message_send_ttl_seconds?: number;
|
|
22719
22727
|
};
|
|
22720
22728
|
};
|
|
22721
22729
|
type CreateWhatsAppTemplateResponse = ({
|
|
@@ -22729,6 +22737,10 @@ type CreateWhatsAppTemplateResponse = ({
|
|
|
22729
22737
|
status?: string;
|
|
22730
22738
|
category?: string;
|
|
22731
22739
|
language?: string;
|
|
22740
|
+
/**
|
|
22741
|
+
* Echoed when supplied on the request.
|
|
22742
|
+
*/
|
|
22743
|
+
message_send_ttl_seconds?: number;
|
|
22732
22744
|
};
|
|
22733
22745
|
});
|
|
22734
22746
|
type CreateWhatsAppTemplateError = (unknown | {
|
|
@@ -22769,6 +22781,10 @@ type GetWhatsAppTemplateResponse = ({
|
|
|
22769
22781
|
components?: Array<{
|
|
22770
22782
|
[key: string]: unknown;
|
|
22771
22783
|
}>;
|
|
22784
|
+
/**
|
|
22785
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22786
|
+
*/
|
|
22787
|
+
message_send_ttl_seconds?: number;
|
|
22772
22788
|
/**
|
|
22773
22789
|
* Only when status is REJECTED.
|
|
22774
22790
|
*/
|
|
@@ -22803,9 +22819,13 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22803
22819
|
*/
|
|
22804
22820
|
language?: string;
|
|
22805
22821
|
/**
|
|
22806
|
-
* Updated template components
|
|
22822
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22823
|
+
*/
|
|
22824
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22825
|
+
/**
|
|
22826
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22807
22827
|
*/
|
|
22808
|
-
|
|
22828
|
+
message_send_ttl_seconds?: number;
|
|
22809
22829
|
};
|
|
22810
22830
|
path: {
|
|
22811
22831
|
/**
|
|
@@ -22915,6 +22935,10 @@ type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22915
22935
|
components?: Array<{
|
|
22916
22936
|
[key: string]: unknown;
|
|
22917
22937
|
}>;
|
|
22938
|
+
/**
|
|
22939
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22940
|
+
*/
|
|
22941
|
+
message_send_ttl_seconds?: number;
|
|
22918
22942
|
/**
|
|
22919
22943
|
* Only when status is REJECTED.
|
|
22920
22944
|
*/
|
|
@@ -22937,9 +22961,13 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22937
22961
|
*/
|
|
22938
22962
|
accountId: string;
|
|
22939
22963
|
/**
|
|
22940
|
-
* Updated template components
|
|
22964
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22965
|
+
*/
|
|
22966
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22967
|
+
/**
|
|
22968
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22941
22969
|
*/
|
|
22942
|
-
|
|
22970
|
+
message_send_ttl_seconds?: number;
|
|
22943
22971
|
};
|
|
22944
22972
|
path: {
|
|
22945
22973
|
/**
|
|
@@ -35563,11 +35591,11 @@ type SearchAdTargetingError = (unknown | {
|
|
|
35563
35591
|
error?: string;
|
|
35564
35592
|
});
|
|
35565
35593
|
type SearchAdLibraryData = {
|
|
35566
|
-
query
|
|
35594
|
+
query?: {
|
|
35567
35595
|
/**
|
|
35568
|
-
* Zernio SocialAccount id (
|
|
35596
|
+
* Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
|
|
35569
35597
|
*/
|
|
35570
|
-
accountId
|
|
35598
|
+
accountId?: string;
|
|
35571
35599
|
/**
|
|
35572
35600
|
* Meta only.
|
|
35573
35601
|
*/
|
|
@@ -35604,6 +35632,10 @@ type SearchAdLibraryData = {
|
|
|
35604
35632
|
* Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
|
|
35605
35633
|
*/
|
|
35606
35634
|
pageIds?: string;
|
|
35635
|
+
/**
|
|
35636
|
+
* Which archive to search. `meta` needs no accountId. Required unless accountId is given.
|
|
35637
|
+
*/
|
|
35638
|
+
platform?: 'meta' | 'linkedin';
|
|
35607
35639
|
/**
|
|
35608
35640
|
* Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
|
|
35609
35641
|
*/
|
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.722",
|
|
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.722",
|
|
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
|
@@ -4472,7 +4472,7 @@ export const getWhatsAppTemplate = <ThrowOnError extends boolean = false>(option
|
|
|
4472
4472
|
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Update template
|
|
4475
|
-
* Update one variant's components. Name, language and category cannot change after creation.
|
|
4475
|
+
* Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation.
|
|
4476
4476
|
*
|
|
4477
4477
|
* Meta stores one template per **name + language**, so a name identifies a family of variants,
|
|
4478
4478
|
* each with its own Meta id. Pass `language` to address one variant. Without it, a name with a
|
|
@@ -4528,7 +4528,7 @@ export const getWhatsAppTemplateById = <ThrowOnError extends boolean = false>(op
|
|
|
4528
4528
|
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Update template by id
|
|
4531
|
-
* Update one variant's components by its Meta id. Name, language and category cannot change.
|
|
4531
|
+
* Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change.
|
|
4532
4532
|
*
|
|
4533
4533
|
* Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
|
|
4534
4534
|
* template can be edited once per 24 hours and up to 10 times per 30 days. A successful update
|
|
@@ -9563,19 +9563,18 @@ export const searchAdTargeting = <ThrowOnError extends boolean = false>(options:
|
|
|
9563
9563
|
|
|
9564
9564
|
/**
|
|
9565
9565
|
* Search the public Ad Library
|
|
9566
|
-
* Competitor and market research over the
|
|
9567
|
-
*
|
|
9568
|
-
*
|
|
9569
|
-
*
|
|
9570
|
-
*
|
|
9566
|
+
* Competitor and market research over the public ad archives. Meta's Ad Library
|
|
9567
|
+
* (`GET /ads_archive`) is searched with Zernio's own developer access, so `platform=meta` needs
|
|
9568
|
+
* no connected account at all. LinkedIn's Ad Library (`GET /rest/adLibrary`) runs on a connected
|
|
9569
|
+
* `linkedin` / `linkedinads` account, passed as `accountId`. Passing a Meta account as `accountId`
|
|
9570
|
+
* also selects Meta. Rows are returned in the platform's raw shape under `data`; `paging.after`
|
|
9571
|
+
* is an opaque cursor on both (`null` when exhausted).
|
|
9571
9572
|
*
|
|
9572
9573
|
* **Meta coverage.** Political and social-issue ads are searchable worldwide. Every other ad is
|
|
9573
9574
|
* in the archive only if it was delivered to the EU or UK within the last year, so a US-only
|
|
9574
9575
|
* commercial advertiser is invisible. Spend, impressions and demographics are political-only
|
|
9575
|
-
* fields and are left out of the default projection; request them via `fields`.
|
|
9576
|
-
*
|
|
9577
|
-
* Facebook user behind the connection has done so, the call fails with
|
|
9578
|
-
* `meta_identity_confirmation_required` (403).
|
|
9576
|
+
* fields and are left out of the default projection; request them via `fields`. All customers
|
|
9577
|
+
* share Zernio's Meta quota, so a `429` means back off for a minute.
|
|
9579
9578
|
*
|
|
9580
9579
|
* **LinkedIn coverage.** Ads served after June 1 2023, worldwide, kept for a year after their
|
|
9581
9580
|
* last impression. EU-delivered ads carry impression ranges and the disclosed targeting facets.
|
|
@@ -9586,7 +9585,7 @@ export const searchAdTargeting = <ThrowOnError extends boolean = false>(options:
|
|
|
9586
9585
|
* `advertiser` is LinkedIn-only. Passing a param the account's platform does not support is a 400
|
|
9587
9586
|
* naming the param.
|
|
9588
9587
|
*/
|
|
9589
|
-
export const searchAdLibrary = <ThrowOnError extends boolean = false>(options
|
|
9588
|
+
export const searchAdLibrary = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => {
|
|
9590
9589
|
return (options?.client ?? client).get<SearchAdLibraryResponse, SearchAdLibraryError, ThrowOnError>({
|
|
9591
9590
|
...options,
|
|
9592
9591
|
url: '/v1/ads/library'
|
|
@@ -22402,6 +22402,10 @@ export type GetWhatsAppTemplatesResponse = ({
|
|
|
22402
22402
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22403
22403
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22404
22404
|
language?: string;
|
|
22405
|
+
/**
|
|
22406
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22407
|
+
*/
|
|
22408
|
+
message_send_ttl_seconds?: number;
|
|
22405
22409
|
components?: Array<{
|
|
22406
22410
|
[key: string]: unknown;
|
|
22407
22411
|
}>;
|
|
@@ -22466,6 +22470,10 @@ export type CreateWhatsAppTemplateData = {
|
|
|
22466
22470
|
};
|
|
22467
22471
|
phone_number?: string;
|
|
22468
22472
|
}>;
|
|
22473
|
+
/**
|
|
22474
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22475
|
+
*/
|
|
22476
|
+
message_send_ttl_seconds?: number;
|
|
22469
22477
|
};
|
|
22470
22478
|
};
|
|
22471
22479
|
|
|
@@ -22480,6 +22488,10 @@ export type CreateWhatsAppTemplateResponse = ({
|
|
|
22480
22488
|
status?: string;
|
|
22481
22489
|
category?: string;
|
|
22482
22490
|
language?: string;
|
|
22491
|
+
/**
|
|
22492
|
+
* Echoed when supplied on the request.
|
|
22493
|
+
*/
|
|
22494
|
+
message_send_ttl_seconds?: number;
|
|
22483
22495
|
};
|
|
22484
22496
|
});
|
|
22485
22497
|
|
|
@@ -22523,6 +22535,10 @@ export type GetWhatsAppTemplateResponse = ({
|
|
|
22523
22535
|
components?: Array<{
|
|
22524
22536
|
[key: string]: unknown;
|
|
22525
22537
|
}>;
|
|
22538
|
+
/**
|
|
22539
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22540
|
+
*/
|
|
22541
|
+
message_send_ttl_seconds?: number;
|
|
22526
22542
|
/**
|
|
22527
22543
|
* Only when status is REJECTED.
|
|
22528
22544
|
*/
|
|
@@ -22559,9 +22575,13 @@ export type UpdateWhatsAppTemplateData = {
|
|
|
22559
22575
|
*/
|
|
22560
22576
|
language?: string;
|
|
22561
22577
|
/**
|
|
22562
|
-
* Updated template components
|
|
22578
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22579
|
+
*/
|
|
22580
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22581
|
+
/**
|
|
22582
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22563
22583
|
*/
|
|
22564
|
-
|
|
22584
|
+
message_send_ttl_seconds?: number;
|
|
22565
22585
|
};
|
|
22566
22586
|
path: {
|
|
22567
22587
|
/**
|
|
@@ -22678,6 +22698,10 @@ export type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22678
22698
|
components?: Array<{
|
|
22679
22699
|
[key: string]: unknown;
|
|
22680
22700
|
}>;
|
|
22701
|
+
/**
|
|
22702
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22703
|
+
*/
|
|
22704
|
+
message_send_ttl_seconds?: number;
|
|
22681
22705
|
/**
|
|
22682
22706
|
* Only when status is REJECTED.
|
|
22683
22707
|
*/
|
|
@@ -22702,9 +22726,13 @@ export type UpdateWhatsAppTemplateByIdData = {
|
|
|
22702
22726
|
*/
|
|
22703
22727
|
accountId: string;
|
|
22704
22728
|
/**
|
|
22705
|
-
* Updated template components
|
|
22729
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22730
|
+
*/
|
|
22731
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22732
|
+
/**
|
|
22733
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22706
22734
|
*/
|
|
22707
|
-
|
|
22735
|
+
message_send_ttl_seconds?: number;
|
|
22708
22736
|
};
|
|
22709
22737
|
path: {
|
|
22710
22738
|
/**
|
|
@@ -36220,11 +36248,11 @@ export type SearchAdTargetingError = (unknown | {
|
|
|
36220
36248
|
});
|
|
36221
36249
|
|
|
36222
36250
|
export type SearchAdLibraryData = {
|
|
36223
|
-
query
|
|
36251
|
+
query?: {
|
|
36224
36252
|
/**
|
|
36225
|
-
* Zernio SocialAccount id (
|
|
36253
|
+
* Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
|
|
36226
36254
|
*/
|
|
36227
|
-
accountId
|
|
36255
|
+
accountId?: string;
|
|
36228
36256
|
/**
|
|
36229
36257
|
* Meta only.
|
|
36230
36258
|
*/
|
|
@@ -36261,6 +36289,10 @@ export type SearchAdLibraryData = {
|
|
|
36261
36289
|
* Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
|
|
36262
36290
|
*/
|
|
36263
36291
|
pageIds?: string;
|
|
36292
|
+
/**
|
|
36293
|
+
* Which archive to search. `meta` needs no accountId. Required unless accountId is given.
|
|
36294
|
+
*/
|
|
36295
|
+
platform?: 'meta' | 'linkedin';
|
|
36264
36296
|
/**
|
|
36265
36297
|
* Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
|
|
36266
36298
|
*/
|