@getlatedev/node 0.2.383 → 0.2.385

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.
@@ -1962,8 +1962,8 @@ export type FoodMenuItem = {
1962
1962
  * Item variants/options (e.g. sizes, preparations)
1963
1963
  */
1964
1964
  options?: Array<{
1965
- labels?: Array<FoodMenuLabel>;
1966
- attributes?: FoodMenuItemAttributes;
1965
+ labels: Array<FoodMenuLabel>;
1966
+ attributes: FoodMenuItemAttributes;
1967
1967
  }>;
1968
1968
  };
1969
1969
 
@@ -1972,7 +1972,7 @@ export type FoodMenuItemAttributes = {
1972
1972
  /**
1973
1973
  * Spiciness level (e.g. MILD, MEDIUM, HOT)
1974
1974
  */
1975
- spiciness?: string;
1975
+ spiciness?: 'SPICINESS_UNSPECIFIED' | 'MILD' | 'MEDIUM' | 'HOT';
1976
1976
  /**
1977
1977
  * Allergens (e.g. DAIRY, GLUTEN, SHELLFISH)
1978
1978
  */
@@ -1995,6 +1995,11 @@ export type FoodMenuItemAttributes = {
1995
1995
  mediaKeys?: Array<(string)>;
1996
1996
  };
1997
1997
 
1998
+ /**
1999
+ * Spiciness level (e.g. MILD, MEDIUM, HOT)
2000
+ */
2001
+ export type spiciness = 'SPICINESS_UNSPECIFIED' | 'MILD' | 'MEDIUM' | 'HOT';
2002
+
1998
2003
  export type FoodMenuLabel = {
1999
2004
  /**
2000
2005
  * Display name of the item/section/menu
@@ -9319,7 +9324,7 @@ export type GetAllAccountsHealthResponse = ({
9319
9324
  }>;
9320
9325
  });
9321
9326
 
9322
- export type GetAllAccountsHealthError = ({
9327
+ export type GetAllAccountsHealthError = (ErrorResponse | {
9323
9328
  error?: string;
9324
9329
  });
9325
9330
 
@@ -10695,7 +10700,7 @@ export type CreateGoogleBusinessMediaData = {
10695
10700
  /**
10696
10701
  * Where the photo appears on the listing
10697
10702
  */
10698
- category?: 'COVER' | 'PROFILE' | 'LOGO' | 'EXTERIOR' | 'INTERIOR' | 'FOOD_AND_DRINK' | 'MENU' | 'PRODUCT' | 'TEAMS' | 'ADDITIONAL';
10703
+ category?: 'CATEGORY_UNSPECIFIED' | 'COVER' | 'PROFILE' | 'LOGO' | 'EXTERIOR' | 'INTERIOR' | 'PRODUCT' | 'FOOD_AND_DRINK' | 'MENU' | 'COMMON_AREA' | 'ROOMS' | 'TEAMS' | 'AT_WORK' | 'ADDITIONAL';
10699
10704
  };
10700
10705
  path: {
10701
10706
  accountId: string;
@@ -10863,12 +10868,16 @@ export type GetGoogleBusinessAttributesError = (ErrorResponse);
10863
10868
  export type UpdateGoogleBusinessAttributesData = {
10864
10869
  body: {
10865
10870
  attributes: Array<{
10866
- name?: string;
10871
+ name: string;
10872
+ valueType?: 'ATTRIBUTE_VALUE_TYPE_UNSPECIFIED' | 'BOOL' | 'ENUM' | 'URL' | 'REPEATED_ENUM';
10867
10873
  values?: Array<unknown>;
10868
10874
  repeatedEnumValue?: {
10869
10875
  setValues?: Array<(string)>;
10870
10876
  unsetValues?: Array<(string)>;
10871
10877
  };
10878
+ uriValues?: Array<{
10879
+ uri: string;
10880
+ }>;
10872
10881
  }>;
10873
10882
  /**
10874
10883
  * Comma-separated attribute names to update (e.g. 'has_delivery,has_takeout')
@@ -10998,7 +11007,7 @@ export type UpdateGoogleBusinessPlaceActionData = {
10998
11007
  */
10999
11008
  name: string;
11000
11009
  /**
11001
- * New action URL
11010
+ * New action URL. At least one of uri or placeActionType is required (enforced server-side; not modeled as anyOf because required-only anyOf branches break SDK generators).
11002
11011
  */
11003
11012
  uri?: string;
11004
11013
  /**
@@ -11067,15 +11076,19 @@ export type GetGoogleBusinessServicesError = (ErrorResponse);
11067
11076
  export type UpdateGoogleBusinessServicesData = {
11068
11077
  body: {
11069
11078
  serviceItems: Array<{
11079
+ /**
11080
+ * Exactly one of structuredServiceItem or freeFormServiceItem is required per item (enforced server-side; not modeled as oneOf because required-only oneOf branches break SDK generators).
11081
+ */
11070
11082
  structuredServiceItem?: {
11071
- serviceTypeId?: string;
11083
+ serviceTypeId: string;
11072
11084
  description?: string;
11073
11085
  };
11074
11086
  freeFormServiceItem?: {
11075
- category?: string;
11076
- label?: {
11077
- displayName?: string;
11087
+ category: string;
11088
+ label: {
11089
+ displayName: string;
11078
11090
  description?: string;
11091
+ languageCode?: string;
11079
11092
  };
11080
11093
  };
11081
11094
  price?: {
@@ -11305,7 +11318,11 @@ export type SelectLinkedInOrganizationData = {
11305
11318
  };
11306
11319
  accountType: 'personal' | 'organization';
11307
11320
  selectedOrganization?: {
11308
- [key: string]: unknown;
11321
+ id: string;
11322
+ urn: string;
11323
+ name: string;
11324
+ logoUrl?: string;
11325
+ vanityName?: string;
11309
11326
  };
11310
11327
  redirect_url?: string;
11311
11328
  };
@@ -12084,7 +12101,7 @@ export type GetLinkedInPostReactionsData = {
12084
12101
  /**
12085
12102
  * Offset-based pagination start index
12086
12103
  */
12087
- cursor?: string;
12104
+ cursor?: number;
12088
12105
  /**
12089
12106
  * Maximum number of reactions to return per page
12090
12107
  */
@@ -12153,10 +12170,7 @@ export type GetLinkedInPostReactionsResponse = ({
12153
12170
  lastUpdated?: string;
12154
12171
  });
12155
12172
 
12156
- export type GetLinkedInPostReactionsError = ({
12157
- error?: string;
12158
- code?: 'missing_urn' | 'invalid_urn' | 'invalid_platform' | 'PLATFORM_LIMITATION';
12159
- } | {
12173
+ export type GetLinkedInPostReactionsError = (ErrorResponse | {
12160
12174
  error?: string;
12161
12175
  } | unknown);
12162
12176
 
@@ -12174,7 +12188,8 @@ export type UpdateLinkedInOrganizationData = {
12174
12188
 
12175
12189
  export type UpdateLinkedInOrganizationResponse = ({
12176
12190
  message?: string;
12177
- account?: SocialAccount;
12191
+ accountType?: 'personal' | 'organization';
12192
+ accountName?: string;
12178
12193
  });
12179
12194
 
12180
12195
  export type UpdateLinkedInOrganizationError = (unknown | {
@@ -14114,6 +14129,9 @@ export type ListInboxConversationsData = {
14114
14129
 
14115
14130
  export type ListInboxConversationsResponse = ({
14116
14131
  data?: Array<{
14132
+ /**
14133
+ * Opaque conversation identifier. Pass it back verbatim to any /v1/inbox/conversations/{conversationId} route; do not assume a fixed format.
14134
+ */
14117
14135
  id?: string;
14118
14136
  platform?: string;
14119
14137
  accountId?: string;
@@ -15428,7 +15446,7 @@ export type DeleteMessengerMenuData = {
15428
15446
 
15429
15447
  export type DeleteMessengerMenuResponse = (unknown);
15430
15448
 
15431
- export type DeleteMessengerMenuError = ({
15449
+ export type DeleteMessengerMenuError = (ErrorResponse | {
15432
15450
  error?: string;
15433
15451
  });
15434
15452
 
@@ -15474,7 +15492,7 @@ export type DeleteInstagramIceBreakersData = {
15474
15492
 
15475
15493
  export type DeleteInstagramIceBreakersResponse = (unknown);
15476
15494
 
15477
- export type DeleteInstagramIceBreakersError = ({
15495
+ export type DeleteInstagramIceBreakersError = (ErrorResponse | {
15478
15496
  error?: string;
15479
15497
  });
15480
15498
 
@@ -15527,7 +15545,7 @@ export type DeleteTelegramCommandsData = {
15527
15545
 
15528
15546
  export type DeleteTelegramCommandsResponse = (unknown);
15529
15547
 
15530
- export type DeleteTelegramCommandsError = ({
15548
+ export type DeleteTelegramCommandsError = (ErrorResponse | {
15531
15549
  error?: string;
15532
15550
  });
15533
15551
 
@@ -24666,7 +24684,7 @@ export type CreateStandaloneAdData = {
24666
24684
  */
24667
24685
  budgetType?: 'daily' | 'lifetime';
24668
24686
  /**
24669
- * Meta only. Publish state of the created ad set + ad. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused and skips activation, so you can review before they spend.
24687
+ * Meta and TikTok. Publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused and skips activation, so you can review before they spend. On TikTok the whole campaign > ad group > ad hierarchy stays paused.
24670
24688
  */
24671
24689
  status?: 'ACTIVE' | 'PAUSED';
24672
24690
  /**
@@ -24856,9 +24874,9 @@ export type CreateStandaloneAdData = {
24856
24874
  */
24857
24875
  countries?: Array<(string)>;
24858
24876
  /**
24859
- * Meta-only. City-level geo targeting. Each city is targeted by Meta's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?type=city&q=<name>&country_code=<ISO>`. Optional `radius` + `distance_unit` extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
24877
+ * City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
24860
24878
  *
24861
- * Cannot overlap with the same country in `countries` (Meta returns a "locations overlap" error). Either drop the country or scope it to a different country.
24879
+ * On Meta, cannot overlap with the same country in `countries` (Meta returns a "locations overlap" error). Either drop the country or scope it to a different country. On TikTok, keys are numeric location ids and can be sent without `countries`.
24862
24880
  *
24863
24881
  */
24864
24882
  cities?: Array<{
@@ -24876,12 +24894,12 @@ export type CreateStandaloneAdData = {
24876
24894
  distance_unit?: 'mile' | 'kilometer';
24877
24895
  }>;
24878
24896
  /**
24879
- * Meta-only. Region-level (state/province) geo targeting. Each region is targeted by Meta's opaque `key` (the region ID) which can be looked up via `GET /v1/ads/targeting/search?type=region&q=<name>&country_code=<ISO>`.
24897
+ * Region-level (state/province) geo targeting (Meta and TikTok). Each region is targeted by the platform's opaque `key` (the region ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`.
24880
24898
  *
24881
24899
  */
24882
24900
  regions?: Array<{
24883
24901
  /**
24884
- * Meta region ID, from /v1/ads/targeting/search results.
24902
+ * Platform region ID, from /v1/ads/targeting/search results.
24885
24903
  */
24886
24904
  key: string;
24887
24905
  }>;
@@ -24902,7 +24920,7 @@ export type CreateStandaloneAdData = {
24902
24920
  name?: string;
24903
24921
  }>;
24904
24922
  /**
24905
- * DMA / metro-area geo targeting. `key` is the platform's metro ID from /v1/ads/targeting/search?dimension=geo&geoType=metro.
24923
+ * DMA / metro-area geo targeting (Meta and TikTok). `key` is the platform's metro ID from /v1/ads/targeting/search?dimension=geo&geoType=metro (TikTok metros appear as type `metro`, e.g. the New York DMA).
24906
24924
  */
24907
24925
  metros?: Array<{
24908
24926
  key: string;
@@ -25287,15 +25305,14 @@ export type CreateStandaloneAdData = {
25287
25305
  * for `goal: conversions`.
25288
25306
  *
25289
25307
  * **TikTok:** an `optimization_event` code (UPPER_SNAKE, not Meta's vocabulary
25290
- * and not PascalCase). Must be one of the event types your TikTok Pixel is
25291
- * configured to track; passed through verbatim and validated by TikTok.
25292
- * Newer pixels (Events API / funnel-template setups) use TikTok's updated
25293
- * taxonomy, e.g. `SHOPPING` for purchase/payment events; legacy pixels use
25294
- * codes like `ON_WEB_ORDER` (Complete Payment), `INITIATE_ORDER` (Place an
25295
- * Order), `ON_WEB_CART` (Add to Cart), `ON_WEB_REGISTER` (Complete
25296
- * Registration), `FORM` (Submit Form), `ON_WEB_DETAIL` (View Content).
25297
- * On rejection the error lists the event types your pixel actually tracks.
25298
- * Optional for `goal: conversions`.
25308
+ * and not PascalCase), OR the exact event name shown in TikTok Events Manager
25309
+ * (auto-resolved to its code). Must be one of the event types your TikTok
25310
+ * Pixel tracks; custom events are not optimizable. Current taxonomy:
25311
+ * `SHOPPING` (Purchase), `ON_WEB_CART` (Add to Cart), `INITIATE_ORDER`
25312
+ * (Initiate Checkout), `FORM` (Lead), `ON_WEB_REGISTER` (Complete
25313
+ * Registration), `ON_WEB_DETAIL` (View Content). `ON_WEB_ORDER` is
25314
+ * deprecated. On rejection the error lists the event types your pixel
25315
+ * actually tracks. Optional for `goal: conversions`.
25299
25316
  *
25300
25317
  */
25301
25318
  customEventType?: string;