@getlatedev/node 0.2.390 → 0.2.392
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 +6 -0
- package/dist/index.d.mts +255 -11
- package/dist/index.d.ts +255 -11
- package/dist/index.js +43 -1
- package/dist/index.mjs +43 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +107 -8
- package/src/generated/types.gen.ts +267 -10
|
@@ -3910,6 +3910,43 @@ export type ReviewWebhookReview = {
|
|
|
3910
3910
|
*/
|
|
3911
3911
|
export type platform4 = 'googlebusiness';
|
|
3912
3912
|
|
|
3913
|
+
/**
|
|
3914
|
+
* A Meta Reach & Frequency prediction. Money values in whole units of the ad account currency.
|
|
3915
|
+
*/
|
|
3916
|
+
export type RfPrediction = {
|
|
3917
|
+
predictionId?: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* ready | pending | failed:<meta code>
|
|
3920
|
+
*/
|
|
3921
|
+
status?: string;
|
|
3922
|
+
/**
|
|
3923
|
+
* Quoted (or provided) lifetime budget for the window.
|
|
3924
|
+
*/
|
|
3925
|
+
budget?: (number) | null;
|
|
3926
|
+
/**
|
|
3927
|
+
* Predicted (or requested) unique reach.
|
|
3928
|
+
*/
|
|
3929
|
+
reach?: (number) | null;
|
|
3930
|
+
impressions?: (number) | null;
|
|
3931
|
+
/**
|
|
3932
|
+
* Meta's allowed lower bound for this spec.
|
|
3933
|
+
*/
|
|
3934
|
+
minBudget?: (number) | null;
|
|
3935
|
+
maxBudget?: (number) | null;
|
|
3936
|
+
minReach?: (number) | null;
|
|
3937
|
+
maxReach?: (number) | null;
|
|
3938
|
+
frequencyCap?: (number) | null;
|
|
3939
|
+
/**
|
|
3940
|
+
* Unix seconds; the reserved window the R&F ad set will run on.
|
|
3941
|
+
*/
|
|
3942
|
+
startTime?: (number) | null;
|
|
3943
|
+
stopTime?: (number) | null;
|
|
3944
|
+
/**
|
|
3945
|
+
* When the reservation's locked price expires (set after reserving).
|
|
3946
|
+
*/
|
|
3947
|
+
expiresAt?: (string) | null;
|
|
3948
|
+
};
|
|
3949
|
+
|
|
3913
3950
|
/**
|
|
3914
3951
|
* An ad account a tracking tag is shared with (Meta `shared_accounts` edge).
|
|
3915
3952
|
*/
|
|
@@ -19673,21 +19710,32 @@ export type CreatePhoneNumberPortInData = {
|
|
|
19673
19710
|
*/
|
|
19674
19711
|
accountNumber: string;
|
|
19675
19712
|
/**
|
|
19676
|
-
* Transfer PIN. Required for mobile numbers (wireless carriers reject PIN-less ports). Forwarded to the carrier, never stored.
|
|
19713
|
+
* Transfer PIN. Required for US/CA mobile numbers (wireless carriers reject PIN-less ports). Forwarded to the carrier, never stored. International porting codes (e.g. the UK PAC) go through `requirements` instead.
|
|
19677
19714
|
*/
|
|
19678
19715
|
pinPasscode?: string;
|
|
19716
|
+
/**
|
|
19717
|
+
* Company tax id on the carrier account (EU ports, e.g. Spanish CIF).
|
|
19718
|
+
*/
|
|
19719
|
+
taxIdentifier?: string;
|
|
19720
|
+
/**
|
|
19721
|
+
* Business registration id on the carrier account (EU ports).
|
|
19722
|
+
*/
|
|
19723
|
+
businessIdentifier?: string;
|
|
19679
19724
|
streetAddress: string;
|
|
19680
19725
|
extendedAddress?: string;
|
|
19681
19726
|
locality: string;
|
|
19682
19727
|
/**
|
|
19683
|
-
* 2-letter
|
|
19728
|
+
* Region. Required for US/CA as the 2-letter state/province code (full names are accepted and normalized); optional elsewhere.
|
|
19684
19729
|
*/
|
|
19685
|
-
administrativeArea
|
|
19730
|
+
administrativeArea?: string;
|
|
19686
19731
|
/**
|
|
19687
|
-
* US ZIP
|
|
19732
|
+
* Postal code. Validated as a US ZIP / Canadian postal code for US/CA; free-form elsewhere.
|
|
19688
19733
|
*/
|
|
19689
19734
|
postalCode: string;
|
|
19690
|
-
|
|
19735
|
+
/**
|
|
19736
|
+
* Service-address country (a supported port-in country).
|
|
19737
|
+
*/
|
|
19738
|
+
countryCode: 'US' | 'CA' | 'GB' | 'ES' | 'DE' | 'FR' | 'NL' | 'AU';
|
|
19691
19739
|
};
|
|
19692
19740
|
/**
|
|
19693
19741
|
* Document id from POST /v1/phone-numbers/port-in/documents (kind=loa).
|
|
@@ -19698,7 +19746,7 @@ export type CreatePhoneNumberPortInData = {
|
|
|
19698
19746
|
*/
|
|
19699
19747
|
invoiceDocumentId: string;
|
|
19700
19748
|
/**
|
|
19701
|
-
* Requested port date; the carrier confirms the actual FOC later.
|
|
19749
|
+
* Requested port date; the carrier confirms the actual FOC later. US/CA default is one week out (shifted off weekends); international orders are scheduled into the carrier's next allowed porting window at or after this date.
|
|
19702
19750
|
*/
|
|
19703
19751
|
focDatetimeRequested?: string;
|
|
19704
19752
|
customerReference?: string;
|
|
@@ -19706,6 +19754,19 @@ export type CreatePhoneNumberPortInData = {
|
|
|
19706
19754
|
* Whether the losing account ports all its numbers (full) or keeps some (partial).
|
|
19707
19755
|
*/
|
|
19708
19756
|
portType?: 'full' | 'partial';
|
|
19757
|
+
/**
|
|
19758
|
+
* Country-specific requirement values for international ports (from GET /v1/phone-numbers/port-in/requirements). Not needed for US/CA. The LOA and invoice requirements are satisfied automatically by loaDocumentId/invoiceDocumentId, and address-type requirements by the endUser service address.
|
|
19759
|
+
*/
|
|
19760
|
+
requirements?: Array<{
|
|
19761
|
+
/**
|
|
19762
|
+
* The requirement's id, from the requirements endpoint.
|
|
19763
|
+
*/
|
|
19764
|
+
requirementTypeId: string;
|
|
19765
|
+
/**
|
|
19766
|
+
* Text value, ISO datetime, or a documentId from POST /v1/phone-numbers/port-in/documents, per the requirement's kind.
|
|
19767
|
+
*/
|
|
19768
|
+
fieldValue: string;
|
|
19769
|
+
}>;
|
|
19709
19770
|
};
|
|
19710
19771
|
};
|
|
19711
19772
|
|
|
@@ -19729,7 +19790,7 @@ export type CreatePhoneNumberPortInResponse = ({
|
|
|
19729
19790
|
}>;
|
|
19730
19791
|
});
|
|
19731
19792
|
|
|
19732
|
-
export type CreatePhoneNumberPortInError = ({
|
|
19793
|
+
export type CreatePhoneNumberPortInError = (ErrorResponse | {
|
|
19733
19794
|
error?: string;
|
|
19734
19795
|
} | unknown);
|
|
19735
19796
|
|
|
@@ -19774,9 +19835,17 @@ export type CheckPhoneNumberPortabilityResponse = ({
|
|
|
19774
19835
|
*/
|
|
19775
19836
|
fastPortable?: boolean;
|
|
19776
19837
|
/**
|
|
19777
|
-
* Line type when known (mobile, landline, voip…). A mobile number requires the transfer PIN at submit.
|
|
19838
|
+
* Line type when known (mobile, landline, voip…). A US/CA mobile number requires the transfer PIN at submit.
|
|
19778
19839
|
*/
|
|
19779
19840
|
lineType?: (string) | null;
|
|
19841
|
+
/**
|
|
19842
|
+
* ISO country of the number — pass it to GET /v1/phone-numbers/port-in/requirements for international numbers.
|
|
19843
|
+
*/
|
|
19844
|
+
countryCode?: (string) | null;
|
|
19845
|
+
/**
|
|
19846
|
+
* Carrier number-type classification (local, mobile, national, toll_free…) — the numberType for the requirements endpoint.
|
|
19847
|
+
*/
|
|
19848
|
+
phoneNumberType?: (string) | null;
|
|
19780
19849
|
/**
|
|
19781
19850
|
* Carrier reason when not portable; null when portable.
|
|
19782
19851
|
*/
|
|
@@ -19795,9 +19864,9 @@ export type UploadPhoneNumberPortInDocumentData = {
|
|
|
19795
19864
|
*/
|
|
19796
19865
|
file: (Blob | File);
|
|
19797
19866
|
/**
|
|
19798
|
-
* Informational; used for the stored filename.
|
|
19867
|
+
* 'loa', 'invoice', or any short slug for requirement documents. Informational; used for the stored filename.
|
|
19799
19868
|
*/
|
|
19800
|
-
kind?:
|
|
19869
|
+
kind?: string;
|
|
19801
19870
|
};
|
|
19802
19871
|
};
|
|
19803
19872
|
|
|
@@ -19809,6 +19878,79 @@ export type UploadPhoneNumberPortInDocumentError = (unknown | {
|
|
|
19809
19878
|
error?: string;
|
|
19810
19879
|
});
|
|
19811
19880
|
|
|
19881
|
+
export type GetPhoneNumberPortInRequirementsData = {
|
|
19882
|
+
query: {
|
|
19883
|
+
/**
|
|
19884
|
+
* ISO country of the numbers being ported (a supported port-in country).
|
|
19885
|
+
*/
|
|
19886
|
+
country: string;
|
|
19887
|
+
/**
|
|
19888
|
+
* The portability check's phoneNumberType — requirements differ by type.
|
|
19889
|
+
*/
|
|
19890
|
+
numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
|
|
19891
|
+
};
|
|
19892
|
+
};
|
|
19893
|
+
|
|
19894
|
+
export type GetPhoneNumberPortInRequirementsResponse = ({
|
|
19895
|
+
country?: string;
|
|
19896
|
+
numberType?: string;
|
|
19897
|
+
/**
|
|
19898
|
+
* false when the combination includes a step that can't be completed through the API (e.g. an in-person identity verification) — porting it needs support.
|
|
19899
|
+
*/
|
|
19900
|
+
supported?: boolean;
|
|
19901
|
+
fields?: Array<{
|
|
19902
|
+
/**
|
|
19903
|
+
* Pass back as requirements[].requirementTypeId.
|
|
19904
|
+
*/
|
|
19905
|
+
requirementId?: string;
|
|
19906
|
+
label?: string;
|
|
19907
|
+
/**
|
|
19908
|
+
* text/date take a string value; file takes a documentId from the documents endpoint; address is satisfied automatically from the end-user service address.
|
|
19909
|
+
*/
|
|
19910
|
+
kind?: 'text' | 'date' | 'address' | 'file' | 'action';
|
|
19911
|
+
description?: string;
|
|
19912
|
+
example?: string;
|
|
19913
|
+
/**
|
|
19914
|
+
* When present, the value must be one of these.
|
|
19915
|
+
*/
|
|
19916
|
+
acceptableValues?: Array<(string)>;
|
|
19917
|
+
}>;
|
|
19918
|
+
});
|
|
19919
|
+
|
|
19920
|
+
export type GetPhoneNumberPortInRequirementsError = (ErrorResponse | {
|
|
19921
|
+
error?: string;
|
|
19922
|
+
} | unknown);
|
|
19923
|
+
|
|
19924
|
+
export type GetPhoneNumberPortInOrderRequirementsData = {
|
|
19925
|
+
path: {
|
|
19926
|
+
/**
|
|
19927
|
+
* Porting order ID (from the port-in list).
|
|
19928
|
+
*/
|
|
19929
|
+
id: string;
|
|
19930
|
+
};
|
|
19931
|
+
};
|
|
19932
|
+
|
|
19933
|
+
export type GetPhoneNumberPortInOrderRequirementsResponse = ({
|
|
19934
|
+
country?: string;
|
|
19935
|
+
requirements?: Array<{
|
|
19936
|
+
requirementId?: string;
|
|
19937
|
+
label?: string;
|
|
19938
|
+
kind?: 'text' | 'date' | 'address' | 'file' | 'action';
|
|
19939
|
+
description?: string;
|
|
19940
|
+
example?: string;
|
|
19941
|
+
acceptableValues?: Array<(string)>;
|
|
19942
|
+
/**
|
|
19943
|
+
* requirement-info-pending | requirement-info-under-review | requirement-info-exception | approved
|
|
19944
|
+
*/
|
|
19945
|
+
status?: string;
|
|
19946
|
+
filled?: boolean;
|
|
19947
|
+
}>;
|
|
19948
|
+
});
|
|
19949
|
+
|
|
19950
|
+
export type GetPhoneNumberPortInOrderRequirementsError = (ErrorResponse | {
|
|
19951
|
+
error?: string;
|
|
19952
|
+
} | unknown);
|
|
19953
|
+
|
|
19812
19954
|
export type CancelPhoneNumberPortInData = {
|
|
19813
19955
|
path: {
|
|
19814
19956
|
/**
|
|
@@ -24790,6 +24932,113 @@ export type GetAdsActivityLogError = (unknown | {
|
|
|
24790
24932
|
error?: string;
|
|
24791
24933
|
});
|
|
24792
24934
|
|
|
24935
|
+
export type CreateRfPredictionData = {
|
|
24936
|
+
body: {
|
|
24937
|
+
/**
|
|
24938
|
+
* Zernio SocialAccount id (posting or ads variant).
|
|
24939
|
+
*/
|
|
24940
|
+
accountId: string;
|
|
24941
|
+
/**
|
|
24942
|
+
* Meta ad account id (act_<n>).
|
|
24943
|
+
*/
|
|
24944
|
+
adAccountId: string;
|
|
24945
|
+
/**
|
|
24946
|
+
* Whole currency units. Exactly one of budgetAmount / reach.
|
|
24947
|
+
*/
|
|
24948
|
+
budgetAmount?: number;
|
|
24949
|
+
/**
|
|
24950
|
+
* Target unique reach. Exactly one of budgetAmount / reach.
|
|
24951
|
+
*/
|
|
24952
|
+
reach?: number;
|
|
24953
|
+
/**
|
|
24954
|
+
* Campaign window start (must be in the future).
|
|
24955
|
+
*/
|
|
24956
|
+
startDate: string;
|
|
24957
|
+
endDate: string;
|
|
24958
|
+
/**
|
|
24959
|
+
* Max impressions per person over the window.
|
|
24960
|
+
*/
|
|
24961
|
+
frequencyCap?: number;
|
|
24962
|
+
/**
|
|
24963
|
+
* Canonical camelCase TargetingSpec (same shape as /v1/ads/create's `targeting`). Defaults to countries: [US].
|
|
24964
|
+
*/
|
|
24965
|
+
targeting?: {
|
|
24966
|
+
[key: string]: unknown;
|
|
24967
|
+
};
|
|
24968
|
+
/**
|
|
24969
|
+
* Meta placements object (same shape as /v1/ads/create's `placements`).
|
|
24970
|
+
*/
|
|
24971
|
+
placements?: {
|
|
24972
|
+
[key: string]: unknown;
|
|
24973
|
+
};
|
|
24974
|
+
};
|
|
24975
|
+
};
|
|
24976
|
+
|
|
24977
|
+
export type CreateRfPredictionResponse = ({
|
|
24978
|
+
adAccountId?: string;
|
|
24979
|
+
currency?: string;
|
|
24980
|
+
prediction?: RfPrediction;
|
|
24981
|
+
});
|
|
24982
|
+
|
|
24983
|
+
export type CreateRfPredictionError = (unknown | {
|
|
24984
|
+
error?: string;
|
|
24985
|
+
});
|
|
24986
|
+
|
|
24987
|
+
export type GetRfPredictionData = {
|
|
24988
|
+
path: {
|
|
24989
|
+
predictionId: string;
|
|
24990
|
+
};
|
|
24991
|
+
query: {
|
|
24992
|
+
accountId: string;
|
|
24993
|
+
adAccountId: string;
|
|
24994
|
+
};
|
|
24995
|
+
};
|
|
24996
|
+
|
|
24997
|
+
export type GetRfPredictionResponse = ({
|
|
24998
|
+
adAccountId?: string;
|
|
24999
|
+
currency?: string;
|
|
25000
|
+
prediction?: RfPrediction;
|
|
25001
|
+
});
|
|
25002
|
+
|
|
25003
|
+
export type GetRfPredictionError = (unknown | {
|
|
25004
|
+
error?: string;
|
|
25005
|
+
});
|
|
25006
|
+
|
|
25007
|
+
export type CancelRfReservationData = {
|
|
25008
|
+
path: {
|
|
25009
|
+
predictionId: string;
|
|
25010
|
+
};
|
|
25011
|
+
query: {
|
|
25012
|
+
accountId: string;
|
|
25013
|
+
adAccountId: string;
|
|
25014
|
+
};
|
|
25015
|
+
};
|
|
25016
|
+
|
|
25017
|
+
export type CancelRfReservationResponse = (unknown);
|
|
25018
|
+
|
|
25019
|
+
export type CancelRfReservationError = (unknown | {
|
|
25020
|
+
error?: string;
|
|
25021
|
+
});
|
|
25022
|
+
|
|
25023
|
+
export type ReserveRfPredictionData = {
|
|
25024
|
+
body: {
|
|
25025
|
+
accountId: string;
|
|
25026
|
+
adAccountId: string;
|
|
25027
|
+
};
|
|
25028
|
+
path: {
|
|
25029
|
+
predictionId: string;
|
|
25030
|
+
};
|
|
25031
|
+
};
|
|
25032
|
+
|
|
25033
|
+
export type ReserveRfPredictionResponse = ({
|
|
25034
|
+
adAccountId?: string;
|
|
25035
|
+
prediction?: RfPrediction;
|
|
25036
|
+
});
|
|
25037
|
+
|
|
25038
|
+
export type ReserveRfPredictionError = (unknown | {
|
|
25039
|
+
error?: string;
|
|
25040
|
+
});
|
|
25041
|
+
|
|
24793
25042
|
export type ListAdStudiesData = {
|
|
24794
25043
|
query: {
|
|
24795
25044
|
/**
|
|
@@ -25299,6 +25548,14 @@ export type CreateStandaloneAdData = {
|
|
|
25299
25548
|
* Meta only. Explicit ad-set `billing_event`. Defaults to `IMPRESSIONS`. Forwarded verbatim to Meta, which validates compatibility with the optimization goal.
|
|
25300
25549
|
*/
|
|
25301
25550
|
billingEvent?: string;
|
|
25551
|
+
/**
|
|
25552
|
+
* Meta only. RESERVED = Reach & Frequency: requires `rfPredictionId` (a RESERVED prediction from /v1/ads/rf-predictions + /reserve). Budget, schedule and pricing come from the reservation, so budgetAmount/budgetType are not required and bid fields are ignored. Only the plain single-ad shape (no creatives[], adSetId, existingCampaignId or dynamicCreative).
|
|
25553
|
+
*/
|
|
25554
|
+
buyingType?: 'AUCTION' | 'RESERVED';
|
|
25555
|
+
/**
|
|
25556
|
+
* Meta only. The RESERVED prediction id the R&F ad set runs on (reserving mints a new id — pass that one). Requires buyingType RESERVED.
|
|
25557
|
+
*/
|
|
25558
|
+
rfPredictionId?: string;
|
|
25302
25559
|
/**
|
|
25303
25560
|
* Required on legacy + multi-creative shapes. Inherited on attach.
|
|
25304
25561
|
*/
|