@getlatedev/node 0.2.1111 → 0.2.1113

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 CHANGED
@@ -10652,9 +10652,13 @@ type PlatformAnalytics = {
10652
10652
  */
10653
10653
  errorMessage?: (string) | null;
10654
10654
  /**
10655
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10655
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10656
10656
  */
10657
- errorCode?: ('post_not_found' | 'permission_missing') | null;
10657
+ errorCode?: ('post_not_found' | 'not_post_owner' | 'permission_missing') | null;
10658
+ /**
10659
+ * Facebook only: true when the connected Page authored the post, false when Facebook reports another author (a collab post), null when unknown or for other platforms.
10660
+ */
10661
+ isOwner?: (boolean) | null;
10658
10662
  };
10659
10663
  type status24 = 'published' | 'failed';
10660
10664
  /**
@@ -10662,9 +10666,9 @@ type status24 = 'published' | 'failed';
10662
10666
  */
10663
10667
  type syncStatus2 = 'synced' | 'pending' | 'unavailable';
10664
10668
  /**
10665
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10669
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10666
10670
  */
10667
- type errorCode = 'post_not_found' | 'permission_missing';
10671
+ type errorCode = 'post_not_found' | 'not_post_owner' | 'permission_missing';
10668
10672
  type PlatformTarget = {
10669
10673
  /**
10670
10674
  * Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram
@@ -41587,6 +41591,16 @@ type ListCampaignAssetsResponse = ({
41587
41591
  header?: string;
41588
41592
  values?: Array<(string)>;
41589
41593
  }>;
41594
+ images?: Array<{
41595
+ assetResourceName?: string;
41596
+ campaignAssetResourceName?: string;
41597
+ /**
41598
+ * Google-hosted copy of the image.
41599
+ */
41600
+ imageUrl?: string;
41601
+ width?: number;
41602
+ height?: number;
41603
+ }>;
41590
41604
  /**
41591
41605
  * Time of the cached Google read. Null when no cache was used.
41592
41606
  */
@@ -41615,6 +41629,10 @@ type AttachCampaignAssetsData = {
41615
41629
  sitelinks?: Array<GoogleSitelink>;
41616
41630
  callouts?: Array<(string)>;
41617
41631
  structuredSnippets?: Array<GoogleStructuredSnippet>;
41632
+ /**
41633
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
41634
+ */
41635
+ images?: Array<(string)>;
41618
41636
  };
41619
41637
  path: {
41620
41638
  /**
@@ -41628,6 +41646,7 @@ type AttachCampaignAssetsResponse = ({
41628
41646
  sitelinkAssetResourceNames?: Array<(string)>;
41629
41647
  calloutAssetResourceNames?: Array<(string)>;
41630
41648
  structuredSnippetAssetResourceNames?: Array<(string)>;
41649
+ imageAssetResourceNames?: Array<(string)>;
41631
41650
  });
41632
41651
  type AttachCampaignAssetsError = (ErrorResponse | unknown);
41633
41652
  type UpdateCampaignAssetsData = {
@@ -41730,6 +41749,16 @@ type ListAdGroupAssetsResponse = ({
41730
41749
  header?: string;
41731
41750
  values?: Array<(string)>;
41732
41751
  }>;
41752
+ images?: Array<{
41753
+ assetResourceName?: string;
41754
+ adGroupAssetResourceName?: string;
41755
+ /**
41756
+ * Google-hosted copy of the image.
41757
+ */
41758
+ imageUrl?: string;
41759
+ width?: number;
41760
+ height?: number;
41761
+ }>;
41733
41762
  /**
41734
41763
  * Time of the cached Google read. Null when no cache was used.
41735
41764
  */
@@ -41758,6 +41787,10 @@ type AttachAdGroupAssetsData = {
41758
41787
  sitelinks?: Array<GoogleSitelink>;
41759
41788
  callouts?: Array<(string)>;
41760
41789
  structuredSnippets?: Array<GoogleStructuredSnippet>;
41790
+ /**
41791
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
41792
+ */
41793
+ images?: Array<(string)>;
41761
41794
  };
41762
41795
  path: {
41763
41796
  /**
@@ -41771,6 +41804,7 @@ type AttachAdGroupAssetsResponse = ({
41771
41804
  sitelinkAssetResourceNames?: Array<(string)>;
41772
41805
  calloutAssetResourceNames?: Array<(string)>;
41773
41806
  structuredSnippetAssetResourceNames?: Array<(string)>;
41807
+ imageAssetResourceNames?: Array<(string)>;
41774
41808
  });
41775
41809
  type AttachAdGroupAssetsError = (ErrorResponse | unknown);
41776
41810
  type UpdateAdGroupAssetsData = {
package/dist/index.d.ts CHANGED
@@ -10652,9 +10652,13 @@ type PlatformAnalytics = {
10652
10652
  */
10653
10653
  errorMessage?: (string) | null;
10654
10654
  /**
10655
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10655
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10656
10656
  */
10657
- errorCode?: ('post_not_found' | 'permission_missing') | null;
10657
+ errorCode?: ('post_not_found' | 'not_post_owner' | 'permission_missing') | null;
10658
+ /**
10659
+ * Facebook only: true when the connected Page authored the post, false when Facebook reports another author (a collab post), null when unknown or for other platforms.
10660
+ */
10661
+ isOwner?: (boolean) | null;
10658
10662
  };
10659
10663
  type status24 = 'published' | 'failed';
10660
10664
  /**
@@ -10662,9 +10666,9 @@ type status24 = 'published' | 'failed';
10662
10666
  */
10663
10667
  type syncStatus2 = 'synced' | 'pending' | 'unavailable';
10664
10668
  /**
10665
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10669
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
10666
10670
  */
10667
- type errorCode = 'post_not_found' | 'permission_missing';
10671
+ type errorCode = 'post_not_found' | 'not_post_owner' | 'permission_missing';
10668
10672
  type PlatformTarget = {
10669
10673
  /**
10670
10674
  * Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram
@@ -41587,6 +41591,16 @@ type ListCampaignAssetsResponse = ({
41587
41591
  header?: string;
41588
41592
  values?: Array<(string)>;
41589
41593
  }>;
41594
+ images?: Array<{
41595
+ assetResourceName?: string;
41596
+ campaignAssetResourceName?: string;
41597
+ /**
41598
+ * Google-hosted copy of the image.
41599
+ */
41600
+ imageUrl?: string;
41601
+ width?: number;
41602
+ height?: number;
41603
+ }>;
41590
41604
  /**
41591
41605
  * Time of the cached Google read. Null when no cache was used.
41592
41606
  */
@@ -41615,6 +41629,10 @@ type AttachCampaignAssetsData = {
41615
41629
  sitelinks?: Array<GoogleSitelink>;
41616
41630
  callouts?: Array<(string)>;
41617
41631
  structuredSnippets?: Array<GoogleStructuredSnippet>;
41632
+ /**
41633
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
41634
+ */
41635
+ images?: Array<(string)>;
41618
41636
  };
41619
41637
  path: {
41620
41638
  /**
@@ -41628,6 +41646,7 @@ type AttachCampaignAssetsResponse = ({
41628
41646
  sitelinkAssetResourceNames?: Array<(string)>;
41629
41647
  calloutAssetResourceNames?: Array<(string)>;
41630
41648
  structuredSnippetAssetResourceNames?: Array<(string)>;
41649
+ imageAssetResourceNames?: Array<(string)>;
41631
41650
  });
41632
41651
  type AttachCampaignAssetsError = (ErrorResponse | unknown);
41633
41652
  type UpdateCampaignAssetsData = {
@@ -41730,6 +41749,16 @@ type ListAdGroupAssetsResponse = ({
41730
41749
  header?: string;
41731
41750
  values?: Array<(string)>;
41732
41751
  }>;
41752
+ images?: Array<{
41753
+ assetResourceName?: string;
41754
+ adGroupAssetResourceName?: string;
41755
+ /**
41756
+ * Google-hosted copy of the image.
41757
+ */
41758
+ imageUrl?: string;
41759
+ width?: number;
41760
+ height?: number;
41761
+ }>;
41733
41762
  /**
41734
41763
  * Time of the cached Google read. Null when no cache was used.
41735
41764
  */
@@ -41758,6 +41787,10 @@ type AttachAdGroupAssetsData = {
41758
41787
  sitelinks?: Array<GoogleSitelink>;
41759
41788
  callouts?: Array<(string)>;
41760
41789
  structuredSnippets?: Array<GoogleStructuredSnippet>;
41790
+ /**
41791
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
41792
+ */
41793
+ images?: Array<(string)>;
41761
41794
  };
41762
41795
  path: {
41763
41796
  /**
@@ -41771,6 +41804,7 @@ type AttachAdGroupAssetsResponse = ({
41771
41804
  sitelinkAssetResourceNames?: Array<(string)>;
41772
41805
  calloutAssetResourceNames?: Array<(string)>;
41773
41806
  structuredSnippetAssetResourceNames?: Array<(string)>;
41807
+ imageAssetResourceNames?: Array<(string)>;
41774
41808
  });
41775
41809
  type AttachAdGroupAssetsError = (ErrorResponse | unknown);
41776
41810
  type UpdateAdGroupAssetsData = {
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1111",
39
+ version: "0.2.1113",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1111",
8
+ version: "0.2.1113",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1111",
3
+ "version": "0.2.1113",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -10502,7 +10502,7 @@ export const listCampaignAssets = <ThrowOnError extends boolean = false>(options
10502
10502
 
10503
10503
  /**
10504
10504
  * Attach campaign assets
10505
- * Creates and attaches sitelinks, callouts and structured snippets in one Google mutation.
10505
+ * Creates and attaches sitelinks, callouts, structured snippets and image assets in one Google mutation. Google shows images only on accounts it deems eligible (account age, policy history, vertical).
10506
10506
  */
10507
10507
  export const attachCampaignAssets = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AttachCampaignAssetsData, ThrowOnError>) => {
10508
10508
  return (options?.client ?? client).post<AttachCampaignAssetsResponse, AttachCampaignAssetsError, ThrowOnError>({
@@ -10546,7 +10546,7 @@ export const listAdGroupAssets = <ThrowOnError extends boolean = false>(options:
10546
10546
 
10547
10547
  /**
10548
10548
  * Attach ad-group assets
10549
- * Creates and attaches sitelinks, callouts and structured snippets in one Google mutation.
10549
+ * Creates and attaches sitelinks, callouts, structured snippets and image assets in one Google mutation. Google shows images only on accounts it deems eligible (account age, policy history, vertical).
10550
10550
  */
10551
10551
  export const attachAdGroupAssets = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AttachAdGroupAssetsData, ThrowOnError>) => {
10552
10552
  return (options?.client ?? client).post<AttachAdGroupAssetsResponse, AttachAdGroupAssetsError, ThrowOnError>({
@@ -9041,9 +9041,13 @@ export type PlatformAnalytics = {
9041
9041
  */
9042
9042
  errorMessage?: (string) | null;
9043
9043
  /**
9044
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
9044
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
9045
9045
  */
9046
- errorCode?: ('post_not_found' | 'permission_missing') | null;
9046
+ errorCode?: ('post_not_found' | 'not_post_owner' | 'permission_missing') | null;
9047
+ /**
9048
+ * Facebook only: true when the connected Page authored the post, false when Facebook reports another author (a collab post), null when unknown or for other platforms.
9049
+ */
9050
+ isOwner?: (boolean) | null;
9047
9051
  };
9048
9052
 
9049
9053
  export type status24 = 'published' | 'failed';
@@ -9054,9 +9058,9 @@ export type status24 = 'published' | 'failed';
9054
9058
  export type syncStatus2 = 'synced' | 'pending' | 'unavailable';
9055
9059
 
9056
9060
  /**
9057
- * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
9061
+ * Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. not_post_owner: the post is owned by another Page or user (collab or visitor post); its analytics cannot be read with this Page's token. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
9058
9062
  */
9059
- export type errorCode = 'post_not_found' | 'permission_missing';
9063
+ export type errorCode = 'post_not_found' | 'not_post_owner' | 'permission_missing';
9060
9064
 
9061
9065
  export type PlatformTarget = {
9062
9066
  /**
@@ -42081,6 +42085,16 @@ export type ListCampaignAssetsResponse = ({
42081
42085
  header?: string;
42082
42086
  values?: Array<(string)>;
42083
42087
  }>;
42088
+ images?: Array<{
42089
+ assetResourceName?: string;
42090
+ campaignAssetResourceName?: string;
42091
+ /**
42092
+ * Google-hosted copy of the image.
42093
+ */
42094
+ imageUrl?: string;
42095
+ width?: number;
42096
+ height?: number;
42097
+ }>;
42084
42098
  /**
42085
42099
  * Time of the cached Google read. Null when no cache was used.
42086
42100
  */
@@ -42111,6 +42125,10 @@ export type AttachCampaignAssetsData = {
42111
42125
  sitelinks?: Array<GoogleSitelink>;
42112
42126
  callouts?: Array<(string)>;
42113
42127
  structuredSnippets?: Array<GoogleStructuredSnippet>;
42128
+ /**
42129
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
42130
+ */
42131
+ images?: Array<(string)>;
42114
42132
  };
42115
42133
  path: {
42116
42134
  /**
@@ -42125,6 +42143,7 @@ export type AttachCampaignAssetsResponse = ({
42125
42143
  sitelinkAssetResourceNames?: Array<(string)>;
42126
42144
  calloutAssetResourceNames?: Array<(string)>;
42127
42145
  structuredSnippetAssetResourceNames?: Array<(string)>;
42146
+ imageAssetResourceNames?: Array<(string)>;
42128
42147
  });
42129
42148
 
42130
42149
  export type AttachCampaignAssetsError = (ErrorResponse | unknown);
@@ -42236,6 +42255,16 @@ export type ListAdGroupAssetsResponse = ({
42236
42255
  header?: string;
42237
42256
  values?: Array<(string)>;
42238
42257
  }>;
42258
+ images?: Array<{
42259
+ assetResourceName?: string;
42260
+ adGroupAssetResourceName?: string;
42261
+ /**
42262
+ * Google-hosted copy of the image.
42263
+ */
42264
+ imageUrl?: string;
42265
+ width?: number;
42266
+ height?: number;
42267
+ }>;
42239
42268
  /**
42240
42269
  * Time of the cached Google read. Null when no cache was used.
42241
42270
  */
@@ -42266,6 +42295,10 @@ export type AttachAdGroupAssetsData = {
42266
42295
  sitelinks?: Array<GoogleSitelink>;
42267
42296
  callouts?: Array<(string)>;
42268
42297
  structuredSnippets?: Array<GoogleStructuredSnippet>;
42298
+ /**
42299
+ * Public image URLs, uploaded to Google as image assets. Landscape 1.91:1 (min 600x314) or square 1:1 (min 300x300), up to 5 MB each.
42300
+ */
42301
+ images?: Array<(string)>;
42269
42302
  };
42270
42303
  path: {
42271
42304
  /**
@@ -42280,6 +42313,7 @@ export type AttachAdGroupAssetsResponse = ({
42280
42313
  sitelinkAssetResourceNames?: Array<(string)>;
42281
42314
  calloutAssetResourceNames?: Array<(string)>;
42282
42315
  structuredSnippetAssetResourceNames?: Array<(string)>;
42316
+ imageAssetResourceNames?: Array<(string)>;
42283
42317
  });
42284
42318
 
42285
42319
  export type AttachAdGroupAssetsError = (ErrorResponse | unknown);