@getlatedev/node 0.2.934 → 0.2.936

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
@@ -2676,7 +2676,7 @@ type matchType2 = 'broad' | 'phrase' | 'exact';
2676
2676
  * For `goal: app_promotion`, it is also sent on the campaign only when
2677
2677
  * `isSkadnetworkAttribution: true`. Plain Android app installs keep the
2678
2678
  * existing campaign payload, with the promoted object only on the ad set.
2679
- * POST /v1/ads/campaigns forwards this object only for that explicit SKAN flag.
2679
+ * POST /v1/ads/campaigns forwards this object on Meta only for that explicit SKAN flag.
2680
2680
  * Required for goals whose ad-set optimization_goal points at a specific
2681
2681
  * event/page/app (without it Meta rejects the ad-set create with
2682
2682
  * `error_subcode: 1815430` "Please select a promoted object for your ad set"):
@@ -2696,8 +2696,13 @@ type matchType2 = 'broad' | 'phrase' | 'exact';
2696
2696
  * the App ID of an app registered on the TikTok Ads account (Assets → Events →
2697
2697
  * App Events). Install optimization needs the app's MMP tracking configured.
2698
2698
  *
2699
+ * **OpenAI (ChatGPT) Ads**: `goal: conversions` only, on POST /v1/ads/create and
2700
+ * POST /v1/ads/campaigns. `customEventType` picks the conversion event the campaign
2701
+ * optimizes for (sent as the campaign's `conversion_event_setting_ids`); every other
2702
+ * `promotedObject` field is rejected with a 400. See `customEventType` below.
2703
+ *
2699
2704
  * The remaining `promotedObject.*` fields are Meta-only. Platforms other than
2700
- * Meta and TikTok ignore `promotedObject` entirely.
2705
+ * Meta, TikTok and OpenAI ignore `promotedObject` entirely.
2701
2706
  *
2702
2707
  */
2703
2708
  type AdPromotedObject = {
@@ -2733,6 +2738,17 @@ type AdPromotedObject = {
2733
2738
  * deprecated. On rejection the error lists the event types your pixel
2734
2739
  * actually tracks. Optional for `goal: conversions`.
2735
2740
  *
2741
+ * **OpenAI (ChatGPT) Ads:** a conversion event from
2742
+ * `GET /v1/accounts/{accountId}/conversion-destinations` (`conversionEvents[]`),
2743
+ * given as its `id` (exact), its `eventType` (e.g. `order_created`) or its `name`
2744
+ * (e.g. `Purchase`), both case-insensitive. It must be `optimizable` (active and
2745
+ * not custom). An unknown, archived or custom event returns a 400 listing the
2746
+ * account's optimizable events; a type or name shared by several optimizable
2747
+ * events returns a 400 asking for the id. `validateOnly: true` runs the same
2748
+ * check and names the resolved event in its `message`. Optional: when omitted,
2749
+ * the campaign optimizes for the first optimizable event in OpenAI's own list
2750
+ * order, which is the most recently created one.
2751
+ *
2736
2752
  */
2737
2753
  customEventType?: string;
2738
2754
  /**
@@ -12359,6 +12375,14 @@ type WebhookPayloadPost = {
12359
12375
  platformPostId?: string;
12360
12376
  publishedUrl?: string;
12361
12377
  error?: string;
12378
+ /**
12379
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12380
+ */
12381
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12382
+ /**
12383
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
12384
+ */
12385
+ errorSource?: 'user' | 'platform' | 'system';
12362
12386
  platformError?: PostPlatformError;
12363
12387
  }>;
12364
12388
  /**
@@ -12422,6 +12446,14 @@ type WebhookPayloadPostPlatform = {
12422
12446
  platformPostId?: string;
12423
12447
  publishedUrl?: string;
12424
12448
  error?: string;
12449
+ /**
12450
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12451
+ */
12452
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12453
+ /**
12454
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
12455
+ */
12456
+ errorSource?: 'user' | 'platform' | 'system';
12425
12457
  platformError?: PostPlatformError;
12426
12458
  }>;
12427
12459
  /**
@@ -12455,6 +12487,14 @@ type WebhookPayloadPostPlatform = {
12455
12487
  * Error message from the platform. Present on `failed` only.
12456
12488
  */
12457
12489
  error?: string;
12490
+ /**
12491
+ * Error category for programmatic handling. Present on `failed` only. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12492
+ */
12493
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12494
+ /**
12495
+ * Who must act on the failure: user (fix content or reconnect), platform (outage or policy), system (Zernio). Present on `failed` only.
12496
+ */
12497
+ errorSource?: 'user' | 'platform' | 'system';
12458
12498
  /**
12459
12499
  * When the platform-side deletion was detected by Zernio sync (ISO 8601). Present only on `post.platform.deleted`.
12460
12500
  */
@@ -40366,7 +40406,7 @@ type CreateStandaloneAdData = {
40366
40406
  * - For `conversions` on LinkedIn, or to promote an existing post, use POST /v1/ads/boost.
40367
40407
  *
40368
40408
  * **OpenAI Ads**
40369
- * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 422.
40409
+ * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 400. Pick the event with `promotedObject.customEventType` (see AdPromotedObject); without it the most recently created optimizable event is used.
40370
40410
  *
40371
40411
  */
40372
40412
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'job_applicants';
@@ -43542,9 +43582,12 @@ type ListConversionDestinationsResponse = ({
43542
43582
  adAccountId?: string;
43543
43583
  /**
43544
43584
  * OpenAI Ads only: the conversion event settings wired
43545
- * to this pixel. A `goal: conversions` create on
43546
- * POST /v1/ads/create optimizes for the first
43547
- * `optimizable` one; when none is, it returns 400.
43585
+ * to this pixel. Pass one's `id`, `eventType` or `name`
43586
+ * as `promotedObject.customEventType` on a
43587
+ * `goal: conversions` create (POST /v1/ads/create or
43588
+ * POST /v1/ads/campaigns) to optimize for it. Without
43589
+ * it, the account's most recently created `optimizable`
43590
+ * event is used; when none is, the create returns 400.
43548
43591
  *
43549
43592
  */
43550
43593
  conversionEvents?: Array<{
package/dist/index.d.ts CHANGED
@@ -2676,7 +2676,7 @@ type matchType2 = 'broad' | 'phrase' | 'exact';
2676
2676
  * For `goal: app_promotion`, it is also sent on the campaign only when
2677
2677
  * `isSkadnetworkAttribution: true`. Plain Android app installs keep the
2678
2678
  * existing campaign payload, with the promoted object only on the ad set.
2679
- * POST /v1/ads/campaigns forwards this object only for that explicit SKAN flag.
2679
+ * POST /v1/ads/campaigns forwards this object on Meta only for that explicit SKAN flag.
2680
2680
  * Required for goals whose ad-set optimization_goal points at a specific
2681
2681
  * event/page/app (without it Meta rejects the ad-set create with
2682
2682
  * `error_subcode: 1815430` "Please select a promoted object for your ad set"):
@@ -2696,8 +2696,13 @@ type matchType2 = 'broad' | 'phrase' | 'exact';
2696
2696
  * the App ID of an app registered on the TikTok Ads account (Assets → Events →
2697
2697
  * App Events). Install optimization needs the app's MMP tracking configured.
2698
2698
  *
2699
+ * **OpenAI (ChatGPT) Ads**: `goal: conversions` only, on POST /v1/ads/create and
2700
+ * POST /v1/ads/campaigns. `customEventType` picks the conversion event the campaign
2701
+ * optimizes for (sent as the campaign's `conversion_event_setting_ids`); every other
2702
+ * `promotedObject` field is rejected with a 400. See `customEventType` below.
2703
+ *
2699
2704
  * The remaining `promotedObject.*` fields are Meta-only. Platforms other than
2700
- * Meta and TikTok ignore `promotedObject` entirely.
2705
+ * Meta, TikTok and OpenAI ignore `promotedObject` entirely.
2701
2706
  *
2702
2707
  */
2703
2708
  type AdPromotedObject = {
@@ -2733,6 +2738,17 @@ type AdPromotedObject = {
2733
2738
  * deprecated. On rejection the error lists the event types your pixel
2734
2739
  * actually tracks. Optional for `goal: conversions`.
2735
2740
  *
2741
+ * **OpenAI (ChatGPT) Ads:** a conversion event from
2742
+ * `GET /v1/accounts/{accountId}/conversion-destinations` (`conversionEvents[]`),
2743
+ * given as its `id` (exact), its `eventType` (e.g. `order_created`) or its `name`
2744
+ * (e.g. `Purchase`), both case-insensitive. It must be `optimizable` (active and
2745
+ * not custom). An unknown, archived or custom event returns a 400 listing the
2746
+ * account's optimizable events; a type or name shared by several optimizable
2747
+ * events returns a 400 asking for the id. `validateOnly: true` runs the same
2748
+ * check and names the resolved event in its `message`. Optional: when omitted,
2749
+ * the campaign optimizes for the first optimizable event in OpenAI's own list
2750
+ * order, which is the most recently created one.
2751
+ *
2736
2752
  */
2737
2753
  customEventType?: string;
2738
2754
  /**
@@ -12359,6 +12375,14 @@ type WebhookPayloadPost = {
12359
12375
  platformPostId?: string;
12360
12376
  publishedUrl?: string;
12361
12377
  error?: string;
12378
+ /**
12379
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12380
+ */
12381
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12382
+ /**
12383
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
12384
+ */
12385
+ errorSource?: 'user' | 'platform' | 'system';
12362
12386
  platformError?: PostPlatformError;
12363
12387
  }>;
12364
12388
  /**
@@ -12422,6 +12446,14 @@ type WebhookPayloadPostPlatform = {
12422
12446
  platformPostId?: string;
12423
12447
  publishedUrl?: string;
12424
12448
  error?: string;
12449
+ /**
12450
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12451
+ */
12452
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12453
+ /**
12454
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
12455
+ */
12456
+ errorSource?: 'user' | 'platform' | 'system';
12425
12457
  platformError?: PostPlatformError;
12426
12458
  }>;
12427
12459
  /**
@@ -12455,6 +12487,14 @@ type WebhookPayloadPostPlatform = {
12455
12487
  * Error message from the platform. Present on `failed` only.
12456
12488
  */
12457
12489
  error?: string;
12490
+ /**
12491
+ * Error category for programmatic handling. Present on `failed` only. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
12492
+ */
12493
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
12494
+ /**
12495
+ * Who must act on the failure: user (fix content or reconnect), platform (outage or policy), system (Zernio). Present on `failed` only.
12496
+ */
12497
+ errorSource?: 'user' | 'platform' | 'system';
12458
12498
  /**
12459
12499
  * When the platform-side deletion was detected by Zernio sync (ISO 8601). Present only on `post.platform.deleted`.
12460
12500
  */
@@ -40366,7 +40406,7 @@ type CreateStandaloneAdData = {
40366
40406
  * - For `conversions` on LinkedIn, or to promote an existing post, use POST /v1/ads/boost.
40367
40407
  *
40368
40408
  * **OpenAI Ads**
40369
- * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 422.
40409
+ * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 400. Pick the event with `promotedObject.customEventType` (see AdPromotedObject); without it the most recently created optimizable event is used.
40370
40410
  *
40371
40411
  */
40372
40412
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'job_applicants';
@@ -43542,9 +43582,12 @@ type ListConversionDestinationsResponse = ({
43542
43582
  adAccountId?: string;
43543
43583
  /**
43544
43584
  * OpenAI Ads only: the conversion event settings wired
43545
- * to this pixel. A `goal: conversions` create on
43546
- * POST /v1/ads/create optimizes for the first
43547
- * `optimizable` one; when none is, it returns 400.
43585
+ * to this pixel. Pass one's `id`, `eventType` or `name`
43586
+ * as `promotedObject.customEventType` on a
43587
+ * `goal: conversions` create (POST /v1/ads/create or
43588
+ * POST /v1/ads/campaigns) to optimize for it. Without
43589
+ * it, the account's most recently created `optimizable`
43590
+ * event is used; when none is, the create returns 400.
43548
43591
  *
43549
43592
  */
43550
43593
  conversionEvents?: Array<{
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.934",
39
+ version: "0.2.936",
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.934",
8
+ version: "0.2.936",
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.934",
3
+ "version": "0.2.936",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1017,7 +1017,7 @@ export type matchType2 = 'broad' | 'phrase' | 'exact';
1017
1017
  * For `goal: app_promotion`, it is also sent on the campaign only when
1018
1018
  * `isSkadnetworkAttribution: true`. Plain Android app installs keep the
1019
1019
  * existing campaign payload, with the promoted object only on the ad set.
1020
- * POST /v1/ads/campaigns forwards this object only for that explicit SKAN flag.
1020
+ * POST /v1/ads/campaigns forwards this object on Meta only for that explicit SKAN flag.
1021
1021
  * Required for goals whose ad-set optimization_goal points at a specific
1022
1022
  * event/page/app (without it Meta rejects the ad-set create with
1023
1023
  * `error_subcode: 1815430` "Please select a promoted object for your ad set"):
@@ -1037,8 +1037,13 @@ export type matchType2 = 'broad' | 'phrase' | 'exact';
1037
1037
  * the App ID of an app registered on the TikTok Ads account (Assets → Events →
1038
1038
  * App Events). Install optimization needs the app's MMP tracking configured.
1039
1039
  *
1040
+ * **OpenAI (ChatGPT) Ads**: `goal: conversions` only, on POST /v1/ads/create and
1041
+ * POST /v1/ads/campaigns. `customEventType` picks the conversion event the campaign
1042
+ * optimizes for (sent as the campaign's `conversion_event_setting_ids`); every other
1043
+ * `promotedObject` field is rejected with a 400. See `customEventType` below.
1044
+ *
1040
1045
  * The remaining `promotedObject.*` fields are Meta-only. Platforms other than
1041
- * Meta and TikTok ignore `promotedObject` entirely.
1046
+ * Meta, TikTok and OpenAI ignore `promotedObject` entirely.
1042
1047
  *
1043
1048
  */
1044
1049
  export type AdPromotedObject = {
@@ -1074,6 +1079,17 @@ export type AdPromotedObject = {
1074
1079
  * deprecated. On rejection the error lists the event types your pixel
1075
1080
  * actually tracks. Optional for `goal: conversions`.
1076
1081
  *
1082
+ * **OpenAI (ChatGPT) Ads:** a conversion event from
1083
+ * `GET /v1/accounts/{accountId}/conversion-destinations` (`conversionEvents[]`),
1084
+ * given as its `id` (exact), its `eventType` (e.g. `order_created`) or its `name`
1085
+ * (e.g. `Purchase`), both case-insensitive. It must be `optimizable` (active and
1086
+ * not custom). An unknown, archived or custom event returns a 400 listing the
1087
+ * account's optimizable events; a type or name shared by several optimizable
1088
+ * events returns a 400 asking for the id. `validateOnly: true` runs the same
1089
+ * check and names the resolved event in its `message`. Optional: when omitted,
1090
+ * the campaign optimizes for the first optimizable event in OpenAI's own list
1091
+ * order, which is the most recently created one.
1092
+ *
1077
1093
  */
1078
1094
  customEventType?: string;
1079
1095
  /**
@@ -11084,6 +11100,14 @@ export type WebhookPayloadPost = {
11084
11100
  platformPostId?: string;
11085
11101
  publishedUrl?: string;
11086
11102
  error?: string;
11103
+ /**
11104
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
11105
+ */
11106
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
11107
+ /**
11108
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
11109
+ */
11110
+ errorSource?: 'user' | 'platform' | 'system';
11087
11111
  platformError?: PostPlatformError;
11088
11112
  }>;
11089
11113
  /**
@@ -11149,6 +11173,14 @@ export type WebhookPayloadPostPlatform = {
11149
11173
  platformPostId?: string;
11150
11174
  publishedUrl?: string;
11151
11175
  error?: string;
11176
+ /**
11177
+ * Present when this target failed. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
11178
+ */
11179
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
11180
+ /**
11181
+ * Present when this target failed. Who must act: user, platform or system (Zernio).
11182
+ */
11183
+ errorSource?: 'user' | 'platform' | 'system';
11152
11184
  platformError?: PostPlatformError;
11153
11185
  }>;
11154
11186
  /**
@@ -11182,6 +11214,14 @@ export type WebhookPayloadPostPlatform = {
11182
11214
  * Error message from the platform. Present on `failed` only.
11183
11215
  */
11184
11216
  error?: string;
11217
+ /**
11218
+ * Error category for programmatic handling. Present on `failed` only. Same taxonomy as `platforms[].errorCategory` on GET /v1/posts.
11219
+ */
11220
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'platform_rate_limit' | 'quota_exhausted' | 'system_error' | 'unknown';
11221
+ /**
11222
+ * Who must act on the failure: user (fix content or reconnect), platform (outage or policy), system (Zernio). Present on `failed` only.
11223
+ */
11224
+ errorSource?: 'user' | 'platform' | 'system';
11185
11225
  /**
11186
11226
  * When the platform-side deletion was detected by Zernio sync (ISO 8601). Present only on `post.platform.deleted`.
11187
11227
  */
@@ -41024,7 +41064,7 @@ export type CreateStandaloneAdData = {
41024
41064
  * - For `conversions` on LinkedIn, or to promote an existing post, use POST /v1/ads/boost.
41025
41065
  *
41026
41066
  * **OpenAI Ads**
41027
- * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 422.
41067
+ * - Only `traffic`, `awareness`, and `conversions` are supported (other goals return 400). Maps to OpenAI's `bidding_type` (clicks, impressions, conversions respectively). `conversions` requires an active conversion event setting on the account; create a tracking tag with `defaultEventType` via the tracking-tags API (`POST /v1/accounts/{accountId}/tracking-tags`), or configure a conversion event in OpenAI Ads Manager, or the request returns 400. Pick the event with `promotedObject.customEventType` (see AdPromotedObject); without it the most recently created optimizable event is used.
41028
41068
  *
41029
41069
  */
41030
41070
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'job_applicants';
@@ -44354,9 +44394,12 @@ export type ListConversionDestinationsResponse = ({
44354
44394
  adAccountId?: string;
44355
44395
  /**
44356
44396
  * OpenAI Ads only: the conversion event settings wired
44357
- * to this pixel. A `goal: conversions` create on
44358
- * POST /v1/ads/create optimizes for the first
44359
- * `optimizable` one; when none is, it returns 400.
44397
+ * to this pixel. Pass one's `id`, `eventType` or `name`
44398
+ * as `promotedObject.customEventType` on a
44399
+ * `goal: conversions` create (POST /v1/ads/create or
44400
+ * POST /v1/ads/campaigns) to optimize for it. Without
44401
+ * it, the account's most recently created `optimizable`
44402
+ * event is used; when none is, the create returns 400.
44360
44403
  *
44361
44404
  */
44362
44405
  conversionEvents?: Array<{