@zernio/node 0.2.953 → 0.2.954
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 +3 -0
- package/dist/index.d.mts +164 -15
- package/dist/index.d.ts +164 -15
- package/dist/index.js +28 -1
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +34 -1
- package/src/generated/types.gen.ts +167 -14
|
@@ -5487,6 +5487,62 @@ export type GooglePmaxAssetGroupUpdate = {
|
|
|
5487
5487
|
youtubeVideoIds?: Array<(string)>;
|
|
5488
5488
|
};
|
|
5489
5489
|
|
|
5490
|
+
export type GoogleRecommendation = {
|
|
5491
|
+
/**
|
|
5492
|
+
* customers/{customerId}/recommendations/{id}. Pass it to apply or dismiss.
|
|
5493
|
+
*/
|
|
5494
|
+
resourceName: string;
|
|
5495
|
+
id: string;
|
|
5496
|
+
/**
|
|
5497
|
+
* Google RecommendationType, such as CAMPAIGN_BUDGET, KEYWORD or SET_TARGET_CPA.
|
|
5498
|
+
*/
|
|
5499
|
+
type: string;
|
|
5500
|
+
dismissed: boolean;
|
|
5501
|
+
campaignId: (string) | null;
|
|
5502
|
+
/**
|
|
5503
|
+
* Every campaign the recommendation targets (several for account-level types).
|
|
5504
|
+
*/
|
|
5505
|
+
campaignIds: Array<(string)>;
|
|
5506
|
+
adGroupId: (string) | null;
|
|
5507
|
+
campaignBudgetId: (string) | null;
|
|
5508
|
+
/**
|
|
5509
|
+
* Google's estimate over its own window. Null when Google gives none for the type.
|
|
5510
|
+
*/
|
|
5511
|
+
impact: {
|
|
5512
|
+
base?: GoogleRecommendationMetrics;
|
|
5513
|
+
potential?: GoogleRecommendationMetrics;
|
|
5514
|
+
} | null;
|
|
5515
|
+
/**
|
|
5516
|
+
* The type-specific recommendation payload exactly as Google returns it (camelCase, amounts in micros), for example recommendedTargetCpaMicros or budgetOptions.
|
|
5517
|
+
*/
|
|
5518
|
+
details: {
|
|
5519
|
+
[key: string]: unknown;
|
|
5520
|
+
} | null;
|
|
5521
|
+
};
|
|
5522
|
+
|
|
5523
|
+
export type GoogleRecommendationMetrics = {
|
|
5524
|
+
impressions?: number;
|
|
5525
|
+
clicks?: number;
|
|
5526
|
+
/**
|
|
5527
|
+
* Account currency units.
|
|
5528
|
+
*/
|
|
5529
|
+
cost?: number;
|
|
5530
|
+
conversions?: number;
|
|
5531
|
+
conversionsValue?: number;
|
|
5532
|
+
videoViews?: number;
|
|
5533
|
+
};
|
|
5534
|
+
|
|
5535
|
+
export type GoogleRecommendationResult = {
|
|
5536
|
+
resourceName: string;
|
|
5537
|
+
status: 'applied' | 'dismissed' | 'failed';
|
|
5538
|
+
/**
|
|
5539
|
+
* Google's message when status is failed.
|
|
5540
|
+
*/
|
|
5541
|
+
error?: string;
|
|
5542
|
+
};
|
|
5543
|
+
|
|
5544
|
+
export type status14 = 'applied' | 'dismissed' | 'failed';
|
|
5545
|
+
|
|
5490
5546
|
export type GoogleRsaDescription = {
|
|
5491
5547
|
text: string;
|
|
5492
5548
|
/**
|
|
@@ -5617,7 +5673,7 @@ export type kind = 'phone' | 'email';
|
|
|
5617
5673
|
|
|
5618
5674
|
export type region = 'US' | 'GB';
|
|
5619
5675
|
|
|
5620
|
-
export type
|
|
5676
|
+
export type status15 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5621
5677
|
|
|
5622
5678
|
/**
|
|
5623
5679
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5689,7 +5745,7 @@ export type InboxWebhookConversation = {
|
|
|
5689
5745
|
contactId?: string;
|
|
5690
5746
|
};
|
|
5691
5747
|
|
|
5692
|
-
export type
|
|
5748
|
+
export type status16 = 'active' | 'archived';
|
|
5693
5749
|
|
|
5694
5750
|
/**
|
|
5695
5751
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -7276,7 +7332,7 @@ export type OwnedPhoneNumber = {
|
|
|
7276
7332
|
}>;
|
|
7277
7333
|
};
|
|
7278
7334
|
|
|
7279
|
-
export type
|
|
7335
|
+
export type status17 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
7280
7336
|
|
|
7281
7337
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
7282
7338
|
|
|
@@ -7401,7 +7457,7 @@ export type PlatformAnalytics = {
|
|
|
7401
7457
|
errorMessage?: (string) | null;
|
|
7402
7458
|
};
|
|
7403
7459
|
|
|
7404
|
-
export type
|
|
7460
|
+
export type status18 = 'published' | 'failed';
|
|
7405
7461
|
|
|
7406
7462
|
/**
|
|
7407
7463
|
* Sync state of analytics for this platform
|
|
@@ -7803,7 +7859,7 @@ export type Product = {
|
|
|
7803
7859
|
|
|
7804
7860
|
export type platform8 = 'shopify';
|
|
7805
7861
|
|
|
7806
|
-
export type
|
|
7862
|
+
export type status19 = 'active' | 'draft' | 'archived';
|
|
7807
7863
|
|
|
7808
7864
|
export type ProductImage = {
|
|
7809
7865
|
url?: string;
|
|
@@ -9079,7 +9135,7 @@ export type UploadTokenResponse = {
|
|
|
9079
9135
|
status?: 'pending' | 'completed' | 'expired';
|
|
9080
9136
|
};
|
|
9081
9137
|
|
|
9082
|
-
export type
|
|
9138
|
+
export type status20 = 'pending' | 'completed' | 'expired';
|
|
9083
9139
|
|
|
9084
9140
|
export type UploadTokenStatusResponse = {
|
|
9085
9141
|
token?: string;
|
|
@@ -9578,7 +9634,7 @@ export type Verification = {
|
|
|
9578
9634
|
resend?: boolean;
|
|
9579
9635
|
};
|
|
9580
9636
|
|
|
9581
|
-
export type
|
|
9637
|
+
export type status21 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9582
9638
|
|
|
9583
9639
|
export type channel4 = 'sms';
|
|
9584
9640
|
|
|
@@ -9727,7 +9783,7 @@ export type WebhookLog = {
|
|
|
9727
9783
|
/**
|
|
9728
9784
|
* Delivery outcome
|
|
9729
9785
|
*/
|
|
9730
|
-
export type
|
|
9786
|
+
export type status22 = 'success' | 'failed';
|
|
9731
9787
|
|
|
9732
9788
|
/**
|
|
9733
9789
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9839,7 +9895,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9839
9895
|
/**
|
|
9840
9896
|
* Overall outcome of the initial sync.
|
|
9841
9897
|
*/
|
|
9842
|
-
export type
|
|
9898
|
+
export type status23 = 'success' | 'failure';
|
|
9843
9899
|
|
|
9844
9900
|
/**
|
|
9845
9901
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11871,7 +11927,7 @@ export type event24 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11871
11927
|
/**
|
|
11872
11928
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11873
11929
|
*/
|
|
11874
|
-
export type
|
|
11930
|
+
export type status24 = 'published' | 'failed' | 'deleted';
|
|
11875
11931
|
|
|
11876
11932
|
/**
|
|
11877
11933
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -12137,7 +12193,7 @@ export type platform15 = 'whatsapp';
|
|
|
12137
12193
|
/**
|
|
12138
12194
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
12139
12195
|
*/
|
|
12140
|
-
export type
|
|
12196
|
+
export type status25 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
12141
12197
|
|
|
12142
12198
|
/**
|
|
12143
12199
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -12286,7 +12342,7 @@ export type event32 = 'whatsapp.template.status_updated';
|
|
|
12286
12342
|
* request before the template is actually removed.
|
|
12287
12343
|
*
|
|
12288
12344
|
*/
|
|
12289
|
-
export type
|
|
12345
|
+
export type status26 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
12290
12346
|
|
|
12291
12347
|
export type WhatsAppBodyComponent = {
|
|
12292
12348
|
type: 'body';
|
|
@@ -12440,7 +12496,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12440
12496
|
* list responses.
|
|
12441
12497
|
*
|
|
12442
12498
|
*/
|
|
12443
|
-
export type
|
|
12499
|
+
export type status27 = 'pending' | 'active';
|
|
12444
12500
|
|
|
12445
12501
|
export type WhatsAppTemplateButton = {
|
|
12446
12502
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12598,7 +12654,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12598
12654
|
|
|
12599
12655
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12600
12656
|
|
|
12601
|
-
export type
|
|
12657
|
+
export type status28 = 'success' | 'failed' | 'pending';
|
|
12602
12658
|
|
|
12603
12659
|
/**
|
|
12604
12660
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -35741,6 +35797,103 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
|
|
|
35741
35797
|
error?: string;
|
|
35742
35798
|
} | unknown);
|
|
35743
35799
|
|
|
35800
|
+
export type ListGoogleRecommendationsData = {
|
|
35801
|
+
query: {
|
|
35802
|
+
/**
|
|
35803
|
+
* Google ads SocialAccount id.
|
|
35804
|
+
*/
|
|
35805
|
+
accountId: string;
|
|
35806
|
+
/**
|
|
35807
|
+
* Google customer id, digits only. Defaults to the connection's only customer.
|
|
35808
|
+
*/
|
|
35809
|
+
adAccountId?: string;
|
|
35810
|
+
/**
|
|
35811
|
+
* Only recommendations targeting this campaign.
|
|
35812
|
+
*/
|
|
35813
|
+
campaignId?: string;
|
|
35814
|
+
/**
|
|
35815
|
+
* Alias of adAccountId, kept for consistency with other Google endpoints.
|
|
35816
|
+
* @deprecated
|
|
35817
|
+
*/
|
|
35818
|
+
customerId?: string;
|
|
35819
|
+
/**
|
|
35820
|
+
* Comma-separated Google RecommendationType values, for example CAMPAIGN_BUDGET,KEYWORD,SET_TARGET_CPA.
|
|
35821
|
+
*/
|
|
35822
|
+
types?: string;
|
|
35823
|
+
};
|
|
35824
|
+
};
|
|
35825
|
+
|
|
35826
|
+
export type ListGoogleRecommendationsResponse = ({
|
|
35827
|
+
adAccountId: string;
|
|
35828
|
+
recommendations: Array<GoogleRecommendation>;
|
|
35829
|
+
cachedAt: (string) | null;
|
|
35830
|
+
stale: boolean;
|
|
35831
|
+
});
|
|
35832
|
+
|
|
35833
|
+
export type ListGoogleRecommendationsError = (ErrorResponse | {
|
|
35834
|
+
error?: string;
|
|
35835
|
+
} | unknown);
|
|
35836
|
+
|
|
35837
|
+
export type ApplyGoogleRecommendationsData = {
|
|
35838
|
+
body: {
|
|
35839
|
+
/**
|
|
35840
|
+
* Google ads SocialAccount id.
|
|
35841
|
+
*/
|
|
35842
|
+
accountId: string;
|
|
35843
|
+
/**
|
|
35844
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35845
|
+
*/
|
|
35846
|
+
adAccountId?: string;
|
|
35847
|
+
recommendations: Array<{
|
|
35848
|
+
/**
|
|
35849
|
+
* Recommendation resource name from the list, or its id.
|
|
35850
|
+
*/
|
|
35851
|
+
resourceName: string;
|
|
35852
|
+
/**
|
|
35853
|
+
* One key, such as campaignBudget, keyword, textAd, targetCpaOptIn, targetRoasOptIn, callAsset, calloutAsset, sitelinkAsset, moveUnusedBudget, responsiveSearchAd, responsiveSearchAdAsset, responsiveSearchAdImproveAdStrength, useBroadMatchKeyword, raiseTargetCpa, lowerTargetRoas, setTargetCpa, setTargetRoas, forecastingSetTargetCpa, forecastingSetTargetRoas, leadFormAsset, raiseTargetCpaBidTooLow, raiseTargetCpaPerformanceBidTooLow, lowerTargetRoasPerformanceBidTooLow, calloutExtension, callExtension or sitelinkExtension.
|
|
35854
|
+
*/
|
|
35855
|
+
parameters?: {
|
|
35856
|
+
[key: string]: unknown;
|
|
35857
|
+
};
|
|
35858
|
+
}>;
|
|
35859
|
+
};
|
|
35860
|
+
};
|
|
35861
|
+
|
|
35862
|
+
export type ApplyGoogleRecommendationsResponse = ({
|
|
35863
|
+
adAccountId: string;
|
|
35864
|
+
results: Array<GoogleRecommendationResult>;
|
|
35865
|
+
});
|
|
35866
|
+
|
|
35867
|
+
export type ApplyGoogleRecommendationsError = (ErrorResponse | {
|
|
35868
|
+
error?: string;
|
|
35869
|
+
} | unknown);
|
|
35870
|
+
|
|
35871
|
+
export type DismissGoogleRecommendationsData = {
|
|
35872
|
+
body: {
|
|
35873
|
+
/**
|
|
35874
|
+
* Google ads SocialAccount id.
|
|
35875
|
+
*/
|
|
35876
|
+
accountId: string;
|
|
35877
|
+
/**
|
|
35878
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35879
|
+
*/
|
|
35880
|
+
adAccountId?: string;
|
|
35881
|
+
/**
|
|
35882
|
+
* Recommendation resource names from the list, or their ids.
|
|
35883
|
+
*/
|
|
35884
|
+
resourceNames: Array<(string)>;
|
|
35885
|
+
};
|
|
35886
|
+
};
|
|
35887
|
+
|
|
35888
|
+
export type DismissGoogleRecommendationsResponse = ({
|
|
35889
|
+
adAccountId: string;
|
|
35890
|
+
results: Array<GoogleRecommendationResult>;
|
|
35891
|
+
});
|
|
35892
|
+
|
|
35893
|
+
export type DismissGoogleRecommendationsError = (ErrorResponse | {
|
|
35894
|
+
error?: string;
|
|
35895
|
+
} | unknown);
|
|
35896
|
+
|
|
35744
35897
|
export type ListBidStrategiesData = {
|
|
35745
35898
|
query: {
|
|
35746
35899
|
/**
|