@zernio/node 0.2.764 → 0.2.766
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 +133 -11
- package/dist/index.d.ts +133 -11
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -1
- package/src/generated/types.gen.ts +131 -7
|
@@ -5770,10 +5770,129 @@ export type MetaInstagramIdentityRef = {
|
|
|
5770
5770
|
profilePictureUrl?: string;
|
|
5771
5771
|
};
|
|
5772
5772
|
|
|
5773
|
+
/**
|
|
5774
|
+
* A Meta Lead Gen form as Graph returns it, in Meta's own snake_case. Read through GET /v1/ads/lead-forms/{formId}. Every setting POST /v1/ads/lead-forms writes is present here, so a form can be diffed against what was created and drift from edits made in Meta's form builder is detectable. A compound field is omitted entirely when the form has no value for it, and `fields` narrows the selection.
|
|
5775
|
+
*
|
|
5776
|
+
*/
|
|
5777
|
+
export type MetaLeadForm = {
|
|
5778
|
+
id?: string;
|
|
5779
|
+
name?: string;
|
|
5780
|
+
/**
|
|
5781
|
+
* One of ACTIVE, ARCHIVED, DELETED or DRAFT.
|
|
5782
|
+
*/
|
|
5783
|
+
status?: string;
|
|
5784
|
+
locale?: string;
|
|
5785
|
+
created_time?: string;
|
|
5786
|
+
/**
|
|
5787
|
+
* Owning Facebook Page. A form on any other Page is a 404, whether read or archived.
|
|
5788
|
+
*/
|
|
5789
|
+
page_id?: string;
|
|
5790
|
+
leads_count?: number;
|
|
5791
|
+
organic_leads_count?: number;
|
|
5792
|
+
/**
|
|
5793
|
+
* Leads Meta has aged out of the retention window.
|
|
5794
|
+
*/
|
|
5795
|
+
expired_leads_count?: number;
|
|
5796
|
+
privacy_policy_url?: string;
|
|
5797
|
+
follow_up_action_url?: string;
|
|
5798
|
+
follow_up_action_text?: string;
|
|
5799
|
+
question_page_custom_headline?: string;
|
|
5800
|
+
is_optimized_for_quality?: boolean;
|
|
5801
|
+
block_display_for_non_targeted_viewer?: boolean;
|
|
5802
|
+
/**
|
|
5803
|
+
* Whether the form can also be submitted from an organic Page post.
|
|
5804
|
+
*/
|
|
5805
|
+
allow_organic_lead?: boolean;
|
|
5806
|
+
/**
|
|
5807
|
+
* Custom key/value pairs attached to every lead of this form.
|
|
5808
|
+
*/
|
|
5809
|
+
tracking_parameters?: Array<{
|
|
5810
|
+
key?: string;
|
|
5811
|
+
value?: string;
|
|
5812
|
+
}>;
|
|
5813
|
+
/**
|
|
5814
|
+
* Privacy policy and custom disclaimer as Meta stores them.
|
|
5815
|
+
*/
|
|
5816
|
+
legal_content?: {
|
|
5817
|
+
id?: string;
|
|
5818
|
+
privacy_policy?: {
|
|
5819
|
+
url?: string;
|
|
5820
|
+
link_text?: string;
|
|
5821
|
+
};
|
|
5822
|
+
/**
|
|
5823
|
+
* Set in Meta form builder only; there is no create parameter for it.
|
|
5824
|
+
*/
|
|
5825
|
+
custom_disclaimer?: {
|
|
5826
|
+
[key: string]: unknown;
|
|
5827
|
+
};
|
|
5828
|
+
};
|
|
5829
|
+
context_card?: {
|
|
5830
|
+
id?: string;
|
|
5831
|
+
title?: string;
|
|
5832
|
+
style?: 'LIST_STYLE' | 'PARAGRAPH_STYLE';
|
|
5833
|
+
content?: Array<(string)>;
|
|
5834
|
+
button_text?: string;
|
|
5835
|
+
cover_photo?: {
|
|
5836
|
+
id?: string;
|
|
5837
|
+
};
|
|
5838
|
+
};
|
|
5839
|
+
/**
|
|
5840
|
+
* The form's single ending page, mirroring the thankYou* create fields. Meta has exactly one per form; there is no multiple-ending-page API (thank_you_pages and ending_pages are not Graph fields).
|
|
5841
|
+
*
|
|
5842
|
+
*/
|
|
5843
|
+
thank_you_page?: {
|
|
5844
|
+
id?: string;
|
|
5845
|
+
title?: string;
|
|
5846
|
+
body?: string;
|
|
5847
|
+
button_text?: string;
|
|
5848
|
+
button_type?: string;
|
|
5849
|
+
website_url?: string;
|
|
5850
|
+
enable_messenger?: boolean;
|
|
5851
|
+
status?: string;
|
|
5852
|
+
lead_gen_use_case?: string;
|
|
5853
|
+
business_phone_number?: string;
|
|
5854
|
+
country_code?: string;
|
|
5855
|
+
};
|
|
5856
|
+
questions?: Array<{
|
|
5857
|
+
id?: string;
|
|
5858
|
+
key?: string;
|
|
5859
|
+
label?: string;
|
|
5860
|
+
/**
|
|
5861
|
+
* EMAIL, PHONE, FULL_NAME, CUSTOM, ...
|
|
5862
|
+
*/
|
|
5863
|
+
type?: string;
|
|
5864
|
+
inline_context?: string;
|
|
5865
|
+
options?: Array<{
|
|
5866
|
+
key?: string;
|
|
5867
|
+
value?: string;
|
|
5868
|
+
}>;
|
|
5869
|
+
/**
|
|
5870
|
+
* READ-ONLY. Conditional logic can only be authored in Meta form builder; Meta has no create parameter for it.
|
|
5871
|
+
*/
|
|
5872
|
+
conditional_questions_group_id?: string;
|
|
5873
|
+
/**
|
|
5874
|
+
* READ-ONLY. Which answers reveal the conditional group.
|
|
5875
|
+
*/
|
|
5876
|
+
conditional_questions_choices?: Array<{
|
|
5877
|
+
[key: string]: unknown;
|
|
5878
|
+
}>;
|
|
5879
|
+
/**
|
|
5880
|
+
* READ-ONLY. Questions revealed by the conditional group.
|
|
5881
|
+
*/
|
|
5882
|
+
dependent_conditional_questions?: Array<{
|
|
5883
|
+
[key: string]: unknown;
|
|
5884
|
+
}>;
|
|
5885
|
+
}>;
|
|
5886
|
+
};
|
|
5887
|
+
|
|
5888
|
+
export type style = 'LIST_STYLE' | 'PARAGRAPH_STYLE';
|
|
5889
|
+
|
|
5773
5890
|
/**
|
|
5774
5891
|
* Not supported. Meta validates creative_sourcing_spec.promotion_metadata_spec on the create call and then discards it, so a Promotion set through the Marketing API never reaches the creative. Any object is rejected with 400 invalid_field_value. Send null or omit the field, and set the Promotion on the ad in Ads Manager. Verified on 2026-09-11 across Graph v19.0 to v25.0 and every write path.
|
|
5775
5892
|
*/
|
|
5776
|
-
export type MetaPromotion =
|
|
5893
|
+
export type MetaPromotion = {
|
|
5894
|
+
[key: string]: unknown;
|
|
5895
|
+
} | null;
|
|
5777
5896
|
|
|
5778
5897
|
export type Money = {
|
|
5779
5898
|
/**
|
|
@@ -10914,7 +11033,7 @@ export type XArticleInlineStyleRange = {
|
|
|
10914
11033
|
style: 'bold' | 'italic' | 'strikethrough';
|
|
10915
11034
|
};
|
|
10916
11035
|
|
|
10917
|
-
export type
|
|
11036
|
+
export type style2 = 'bold' | 'italic' | 'strikethrough';
|
|
10918
11037
|
|
|
10919
11038
|
export type XArticleTextRange = {
|
|
10920
11039
|
/**
|
|
@@ -38741,19 +38860,24 @@ export type GetLeadFormData = {
|
|
|
38741
38860
|
* Connected facebook or linkedin ads account id (selects the platform).
|
|
38742
38861
|
*/
|
|
38743
38862
|
accountId: string;
|
|
38863
|
+
/**
|
|
38864
|
+
* Meta only. A Graph field selection passed through verbatim to GET /{form-id}, replacing the default projection, so fields Meta adds later are reachable without an API change. Field names, commas and {} expansion only; anything else (Graph field modifiers such as .limit(), or characters that could open another query parameter) is a 400. Ownership of the form is verified before the selection runs, so this cannot reach any Page but the one accountId manages. Unknown field names are rejected by Meta as a 400.
|
|
38865
|
+
*
|
|
38866
|
+
*/
|
|
38867
|
+
fields?: string;
|
|
38744
38868
|
};
|
|
38745
38869
|
};
|
|
38746
38870
|
|
|
38747
38871
|
export type GetLeadFormResponse = ({
|
|
38748
38872
|
status?: string;
|
|
38749
|
-
form?: {
|
|
38750
|
-
|
|
38751
|
-
|
|
38873
|
+
form?: (MetaLeadForm | {
|
|
38874
|
+
[key: string]: unknown;
|
|
38875
|
+
});
|
|
38752
38876
|
});
|
|
38753
38877
|
|
|
38754
38878
|
export type GetLeadFormError = (ErrorResponse | {
|
|
38755
38879
|
error?: string;
|
|
38756
|
-
});
|
|
38880
|
+
} | unknown);
|
|
38757
38881
|
|
|
38758
38882
|
export type ArchiveLeadFormData = {
|
|
38759
38883
|
path: {
|
|
@@ -38778,7 +38902,7 @@ export type ArchiveLeadFormResponse = ({
|
|
|
38778
38902
|
|
|
38779
38903
|
export type ArchiveLeadFormError = (ErrorResponse | {
|
|
38780
38904
|
error?: string;
|
|
38781
|
-
});
|
|
38905
|
+
} | unknown);
|
|
38782
38906
|
|
|
38783
38907
|
export type ListFormLeadsData = {
|
|
38784
38908
|
path: {
|