@zernio/node 0.2.960 → 0.2.962
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/README.md +4 -0
- package/dist/index.d.mts +159 -2
- package/dist/index.d.ts +159 -2
- package/dist/index.js +35 -1
- package/dist/index.mjs +35 -1
- package/package.json +1 -1
- package/src/client.ts +14 -0
- package/src/generated/sdk.gen.ts +80 -2
- package/src/generated/types.gen.ts +161 -1
|
@@ -8739,6 +8739,27 @@ export type SocialAccount = {
|
|
|
8739
8739
|
|
|
8740
8740
|
export type platform10 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'sms' | 'phone' | 'rcs';
|
|
8741
8741
|
|
|
8742
|
+
/**
|
|
8743
|
+
* A tracking tag's install on a connected store (Shopify web pixel).
|
|
8744
|
+
*/
|
|
8745
|
+
export type StorePixelInstall = {
|
|
8746
|
+
storeAccountId?: string;
|
|
8747
|
+
platform?: 'shopify';
|
|
8748
|
+
shopDomain?: string;
|
|
8749
|
+
/**
|
|
8750
|
+
* True when this tag is the pixel the store fires.
|
|
8751
|
+
*/
|
|
8752
|
+
installed?: boolean;
|
|
8753
|
+
/**
|
|
8754
|
+
* The Meta pixel the store fires now (may be a different tag), or null.
|
|
8755
|
+
*/
|
|
8756
|
+
installedTagId?: (string) | null;
|
|
8757
|
+
/**
|
|
8758
|
+
* Shopify web pixel id, or null when nothing is installed.
|
|
8759
|
+
*/
|
|
8760
|
+
webPixelId?: (string) | null;
|
|
8761
|
+
};
|
|
8762
|
+
|
|
8742
8763
|
/**
|
|
8743
8764
|
* Normalized, platform-agnostic ad-targeting spec. Every field is optional, an
|
|
8744
8765
|
* empty object targets the platform's default broadest audience. Field names are
|
|
@@ -15383,6 +15404,14 @@ export type GetCallsUsageResponse = ({
|
|
|
15383
15404
|
* WhatsApp only: Meta's per-minute charge, billed by Meta directly to your WABA. Display only.
|
|
15384
15405
|
*/
|
|
15385
15406
|
metaUSD?: number;
|
|
15407
|
+
/**
|
|
15408
|
+
* Outbound calls that carried a Branded Calling surcharge.
|
|
15409
|
+
*/
|
|
15410
|
+
brandedCalls?: number;
|
|
15411
|
+
/**
|
|
15412
|
+
* The Branded Calling surcharge on those calls, already inside billableUSD.
|
|
15413
|
+
*/
|
|
15414
|
+
brandedCallUSD?: number;
|
|
15386
15415
|
};
|
|
15387
15416
|
/**
|
|
15388
15417
|
* Present (possibly empty) when `groupBy` is set.
|
|
@@ -15397,6 +15426,8 @@ export type GetCallsUsageResponse = ({
|
|
|
15397
15426
|
minutes?: number;
|
|
15398
15427
|
billableUSD?: number;
|
|
15399
15428
|
metaUSD?: number;
|
|
15429
|
+
brandedCalls?: number;
|
|
15430
|
+
brandedCallUSD?: number;
|
|
15400
15431
|
}>;
|
|
15401
15432
|
});
|
|
15402
15433
|
|
|
@@ -28782,6 +28813,12 @@ export type CreateBrandedCallingEnterpriseData = {
|
|
|
28782
28813
|
physicalAddress: BrandedCallingAddress;
|
|
28783
28814
|
billingAddress: BrandedCallingAddress;
|
|
28784
28815
|
};
|
|
28816
|
+
headers?: {
|
|
28817
|
+
/**
|
|
28818
|
+
* 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.
|
|
28819
|
+
*/
|
|
28820
|
+
'Idempotency-Key'?: string;
|
|
28821
|
+
};
|
|
28785
28822
|
};
|
|
28786
28823
|
|
|
28787
28824
|
export type CreateBrandedCallingEnterpriseResponse = (BrandedCallingEnterprise);
|
|
@@ -28862,6 +28899,12 @@ export type CreateBrandedCallingIdentityData = {
|
|
|
28862
28899
|
};
|
|
28863
28900
|
references: BrandedCallingReferences;
|
|
28864
28901
|
};
|
|
28902
|
+
headers?: {
|
|
28903
|
+
/**
|
|
28904
|
+
* 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.
|
|
28905
|
+
*/
|
|
28906
|
+
'Idempotency-Key'?: string;
|
|
28907
|
+
};
|
|
28865
28908
|
};
|
|
28866
28909
|
|
|
28867
28910
|
export type CreateBrandedCallingIdentityResponse = (BrandedCallingIdentity);
|
|
@@ -28878,6 +28921,40 @@ export type ListBrandedCallingIdentitiesError = ({
|
|
|
28878
28921
|
error?: string;
|
|
28879
28922
|
});
|
|
28880
28923
|
|
|
28924
|
+
export type PreflightBrandedCallingIdentityData = {
|
|
28925
|
+
body: {
|
|
28926
|
+
enterpriseId: string;
|
|
28927
|
+
displayName: string;
|
|
28928
|
+
callReasons: Array<(string)>;
|
|
28929
|
+
logoUrl?: string;
|
|
28930
|
+
authorizer: {
|
|
28931
|
+
name: string;
|
|
28932
|
+
email: string;
|
|
28933
|
+
};
|
|
28934
|
+
references: BrandedCallingReferences;
|
|
28935
|
+
};
|
|
28936
|
+
};
|
|
28937
|
+
|
|
28938
|
+
export type PreflightBrandedCallingIdentityResponse = ({
|
|
28939
|
+
/**
|
|
28940
|
+
* True when no finding is a block.
|
|
28941
|
+
*/
|
|
28942
|
+
ok?: boolean;
|
|
28943
|
+
findings?: Array<{
|
|
28944
|
+
code?: 'display-name-mismatch' | 'call-reasons-manual' | 'authorizer-free-mail' | 'authorizer-domain-mismatch' | 'reference-phone-duplicate' | 'reference-internal' | 'reference-financial-free-mail' | 'reference-timezone-invalid' | 'logo-unreachable';
|
|
28945
|
+
severity?: 'block' | 'warn';
|
|
28946
|
+
/**
|
|
28947
|
+
* The body field the finding is about, e.g. references.financial.email.
|
|
28948
|
+
*/
|
|
28949
|
+
field?: string;
|
|
28950
|
+
message?: string;
|
|
28951
|
+
}>;
|
|
28952
|
+
});
|
|
28953
|
+
|
|
28954
|
+
export type PreflightBrandedCallingIdentityError = (ErrorResponse | {
|
|
28955
|
+
error?: string;
|
|
28956
|
+
} | unknown);
|
|
28957
|
+
|
|
28881
28958
|
export type GetBrandedCallingIdentityData = {
|
|
28882
28959
|
path: {
|
|
28883
28960
|
id: string;
|
|
@@ -28916,11 +28993,14 @@ export type UpdateBrandedCallingIdentityData = {
|
|
|
28916
28993
|
};
|
|
28917
28994
|
references?: BrandedCallingReferences;
|
|
28918
28995
|
/**
|
|
28919
|
-
* One entry per point id of the open reviewRequest.
|
|
28996
|
+
* One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/upload). A point id that is not on the open request is a 422.
|
|
28920
28997
|
*/
|
|
28921
28998
|
reviewAnswers?: {
|
|
28922
28999
|
[key: string]: {
|
|
28923
29000
|
text?: string;
|
|
29001
|
+
/**
|
|
29002
|
+
* A live page, or the URL of an uploaded file for file points.
|
|
29003
|
+
*/
|
|
28924
29004
|
url?: string;
|
|
28925
29005
|
};
|
|
28926
29006
|
};
|
|
@@ -48460,6 +48540,86 @@ export type RemoveTrackingTagSharedAccountError = (unknown | {
|
|
|
48460
48540
|
error?: string;
|
|
48461
48541
|
} | ErrorResponse);
|
|
48462
48542
|
|
|
48543
|
+
export type InstallTrackingTagOnStoreData = {
|
|
48544
|
+
body: {
|
|
48545
|
+
/**
|
|
48546
|
+
* The connected Shopify account id (platform `shopify`).
|
|
48547
|
+
*/
|
|
48548
|
+
storeAccountId: string;
|
|
48549
|
+
};
|
|
48550
|
+
path: {
|
|
48551
|
+
accountId: string;
|
|
48552
|
+
/**
|
|
48553
|
+
* Meta pixel id.
|
|
48554
|
+
*/
|
|
48555
|
+
tagId: string;
|
|
48556
|
+
};
|
|
48557
|
+
};
|
|
48558
|
+
|
|
48559
|
+
export type InstallTrackingTagOnStoreResponse = ({
|
|
48560
|
+
platform?: 'metaads';
|
|
48561
|
+
install?: (StorePixelInstall & {
|
|
48562
|
+
/**
|
|
48563
|
+
* The pixel this install replaced on the store, if any.
|
|
48564
|
+
*/
|
|
48565
|
+
replacedTagId?: (string) | null;
|
|
48566
|
+
});
|
|
48567
|
+
});
|
|
48568
|
+
|
|
48569
|
+
export type InstallTrackingTagOnStoreError = (ErrorResponse | {
|
|
48570
|
+
error?: string;
|
|
48571
|
+
} | unknown);
|
|
48572
|
+
|
|
48573
|
+
export type GetTrackingTagStoreInstallData = {
|
|
48574
|
+
path: {
|
|
48575
|
+
accountId: string;
|
|
48576
|
+
/**
|
|
48577
|
+
* Meta pixel id.
|
|
48578
|
+
*/
|
|
48579
|
+
tagId: string;
|
|
48580
|
+
};
|
|
48581
|
+
query: {
|
|
48582
|
+
/**
|
|
48583
|
+
* The connected Shopify account id.
|
|
48584
|
+
*/
|
|
48585
|
+
storeAccountId: string;
|
|
48586
|
+
};
|
|
48587
|
+
};
|
|
48588
|
+
|
|
48589
|
+
export type GetTrackingTagStoreInstallResponse = ({
|
|
48590
|
+
platform?: 'metaads';
|
|
48591
|
+
install?: StorePixelInstall;
|
|
48592
|
+
});
|
|
48593
|
+
|
|
48594
|
+
export type GetTrackingTagStoreInstallError = (ErrorResponse | {
|
|
48595
|
+
error?: string;
|
|
48596
|
+
} | unknown);
|
|
48597
|
+
|
|
48598
|
+
export type RemoveTrackingTagFromStoreData = {
|
|
48599
|
+
path: {
|
|
48600
|
+
accountId: string;
|
|
48601
|
+
/**
|
|
48602
|
+
* Meta pixel id.
|
|
48603
|
+
*/
|
|
48604
|
+
tagId: string;
|
|
48605
|
+
};
|
|
48606
|
+
query: {
|
|
48607
|
+
/**
|
|
48608
|
+
* The connected Shopify account id.
|
|
48609
|
+
*/
|
|
48610
|
+
storeAccountId: string;
|
|
48611
|
+
};
|
|
48612
|
+
};
|
|
48613
|
+
|
|
48614
|
+
export type RemoveTrackingTagFromStoreResponse = ({
|
|
48615
|
+
platform?: 'metaads';
|
|
48616
|
+
install?: StorePixelInstall;
|
|
48617
|
+
});
|
|
48618
|
+
|
|
48619
|
+
export type RemoveTrackingTagFromStoreError = (ErrorResponse | {
|
|
48620
|
+
error?: string;
|
|
48621
|
+
} | unknown);
|
|
48622
|
+
|
|
48463
48623
|
export type GetTrackingTagStatsData = {
|
|
48464
48624
|
path: {
|
|
48465
48625
|
accountId: string;
|