@oursprivacy/platform-sdk 1.12.0 → 1.14.0

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.
Files changed (152) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +35 -0
  3. package/client.d.mts +32 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +26 -4
  8. package/client.js.map +1 -1
  9. package/client.mjs +26 -4
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +60 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +60 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/allowed-events.d.mts +18 -18
  37. package/resources/allowed-events.d.mts.map +1 -1
  38. package/resources/allowed-events.d.ts +18 -18
  39. package/resources/allowed-events.d.ts.map +1 -1
  40. package/resources/allowed-events.js +7 -7
  41. package/resources/allowed-events.js.map +1 -1
  42. package/resources/allowed-events.mjs +7 -7
  43. package/resources/allowed-events.mjs.map +1 -1
  44. package/resources/consent-settings.d.mts +2568 -124
  45. package/resources/consent-settings.d.mts.map +1 -1
  46. package/resources/consent-settings.d.ts +2568 -124
  47. package/resources/consent-settings.d.ts.map +1 -1
  48. package/resources/consent-settings.js +24 -7
  49. package/resources/consent-settings.js.map +1 -1
  50. package/resources/consent-settings.mjs +24 -7
  51. package/resources/consent-settings.mjs.map +1 -1
  52. package/resources/destinations.d.mts +33 -32
  53. package/resources/destinations.d.mts.map +1 -1
  54. package/resources/destinations.d.ts +33 -32
  55. package/resources/destinations.d.ts.map +1 -1
  56. package/resources/destinations.js +8 -7
  57. package/resources/destinations.js.map +1 -1
  58. package/resources/destinations.mjs +8 -7
  59. package/resources/destinations.mjs.map +1 -1
  60. package/resources/experiment-settings.d.mts +277 -0
  61. package/resources/experiment-settings.d.mts.map +1 -0
  62. package/resources/experiment-settings.d.ts +277 -0
  63. package/resources/experiment-settings.d.ts.map +1 -0
  64. package/resources/experiment-settings.js +77 -0
  65. package/resources/experiment-settings.js.map +1 -0
  66. package/resources/experiment-settings.mjs +73 -0
  67. package/resources/experiment-settings.mjs.map +1 -0
  68. package/resources/experiment-variants.d.mts +653 -0
  69. package/resources/experiment-variants.d.mts.map +1 -0
  70. package/resources/experiment-variants.d.ts +653 -0
  71. package/resources/experiment-variants.d.ts.map +1 -0
  72. package/resources/experiment-variants.js +86 -0
  73. package/resources/experiment-variants.js.map +1 -0
  74. package/resources/experiment-variants.mjs +82 -0
  75. package/resources/experiment-variants.mjs.map +1 -0
  76. package/resources/experiments.d.mts +2002 -0
  77. package/resources/experiments.d.mts.map +1 -0
  78. package/resources/experiments.d.ts +2002 -0
  79. package/resources/experiments.d.ts.map +1 -0
  80. package/resources/experiments.js +166 -0
  81. package/resources/experiments.js.map +1 -0
  82. package/resources/experiments.mjs +162 -0
  83. package/resources/experiments.mjs.map +1 -0
  84. package/resources/global-dispatch-centers.d.mts +125 -58
  85. package/resources/global-dispatch-centers.d.mts.map +1 -1
  86. package/resources/global-dispatch-centers.d.ts +125 -58
  87. package/resources/global-dispatch-centers.d.ts.map +1 -1
  88. package/resources/global-dispatch-centers.js +10 -7
  89. package/resources/global-dispatch-centers.js.map +1 -1
  90. package/resources/global-dispatch-centers.mjs +10 -7
  91. package/resources/global-dispatch-centers.mjs.map +1 -1
  92. package/resources/index.d.mts +11 -7
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +11 -7
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mappings.d.mts +138 -0
  101. package/resources/mappings.d.mts.map +1 -0
  102. package/resources/mappings.d.ts +138 -0
  103. package/resources/mappings.d.ts.map +1 -0
  104. package/resources/mappings.js +45 -0
  105. package/resources/mappings.js.map +1 -0
  106. package/resources/mappings.mjs +41 -0
  107. package/resources/mappings.mjs.map +1 -0
  108. package/resources/replay-settings.d.mts +48 -48
  109. package/resources/replay-settings.d.mts.map +1 -1
  110. package/resources/replay-settings.d.ts +48 -48
  111. package/resources/replay-settings.d.ts.map +1 -1
  112. package/resources/replay-settings.js +13 -8
  113. package/resources/replay-settings.js.map +1 -1
  114. package/resources/replay-settings.mjs +13 -8
  115. package/resources/replay-settings.mjs.map +1 -1
  116. package/resources/sources.d.mts +64 -27
  117. package/resources/sources.d.mts.map +1 -1
  118. package/resources/sources.d.ts +64 -27
  119. package/resources/sources.d.ts.map +1 -1
  120. package/resources/sources.js +14 -7
  121. package/resources/sources.js.map +1 -1
  122. package/resources/sources.mjs +14 -7
  123. package/resources/sources.mjs.map +1 -1
  124. package/resources/versions.d.mts +742 -16
  125. package/resources/versions.d.mts.map +1 -1
  126. package/resources/versions.d.ts +742 -16
  127. package/resources/versions.d.ts.map +1 -1
  128. package/resources/versions.js +45 -5
  129. package/resources/versions.js.map +1 -1
  130. package/resources/versions.mjs +45 -5
  131. package/resources/versions.mjs.map +1 -1
  132. package/src/client.ts +210 -29
  133. package/src/core/pagination.ts +165 -0
  134. package/src/index.ts +1 -0
  135. package/src/pagination.ts +2 -0
  136. package/src/resources/allowed-events.ts +27 -27
  137. package/src/resources/consent-settings.ts +3036 -244
  138. package/src/resources/destinations.ts +128 -127
  139. package/src/resources/experiment-settings.ts +367 -0
  140. package/src/resources/experiment-variants.ts +868 -0
  141. package/src/resources/experiments.ts +2446 -0
  142. package/src/resources/global-dispatch-centers.ts +155 -65
  143. package/src/resources/index.ts +77 -7
  144. package/src/resources/mappings.ts +236 -0
  145. package/src/resources/replay-settings.ts +67 -59
  146. package/src/resources/sources.ts +116 -71
  147. package/src/resources/versions.ts +1130 -17
  148. package/src/version.ts +1 -1
  149. package/version.d.mts +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/version.mjs +1 -1
@@ -6,6 +6,13 @@ import { RequestOptions } from '../internal/request-options';
6
6
  import { path } from '../internal/utils/path';
7
7
 
8
8
  export class Destinations extends APIResource {
9
+ /**
10
+ * List all destinations. Requires scope: destination:list
11
+ */
12
+ list(options?: RequestOptions): APIPromise<DestinationListResponse> {
13
+ return this._client.get('/rest/v1/destinations', options);
14
+ }
15
+
9
16
  /**
10
17
  * Create a new destination. Requires scope: destination:create
11
18
  */
@@ -21,7 +28,8 @@ export class Destinations extends APIResource {
21
28
  }
22
29
 
23
30
  /**
24
- * Update a destination. Requires scope: destination:update
31
+ * Partially update a destination. Only the fields you send are changed. Requires
32
+ * scope: destination:update
25
33
  */
26
34
  update(
27
35
  id: string,
@@ -31,13 +39,6 @@ export class Destinations extends APIResource {
31
39
  return this._client.patch(path`/rest/v1/destinations/${id}`, { body, ...options });
32
40
  }
33
41
 
34
- /**
35
- * List all destinations. Requires scope: destination:list
36
- */
37
- list(options?: RequestOptions): APIPromise<DestinationListResponse> {
38
- return this._client.get('/rest/v1/destinations', options);
39
- }
40
-
41
42
  /**
42
43
  * Delete a destination. Requires scope: destination:delete
43
44
  */
@@ -46,6 +47,124 @@ export class Destinations extends APIResource {
46
47
  }
47
48
  }
48
49
 
50
+ export interface DestinationListResponse {
51
+ entities: Array<DestinationListResponse.Entity>;
52
+ }
53
+
54
+ export namespace DestinationListResponse {
55
+ export interface Entity {
56
+ id: string;
57
+
58
+ createdAt: string;
59
+
60
+ status: 'Disabled' | 'Enabled';
61
+
62
+ type:
63
+ | 'AWSEventBridge'
64
+ | 'AWSKinesis'
65
+ | 'AWSLambda'
66
+ | 'AWSS3'
67
+ | 'AWSSNS'
68
+ | 'ActiveCampaignApi'
69
+ | 'Admitad'
70
+ | 'AmazonDSP'
71
+ | 'Amplitude'
72
+ | 'AppLovin'
73
+ | 'ArtsAI'
74
+ | 'Attentive'
75
+ | 'Audiohook'
76
+ | 'AzureBlob'
77
+ | 'BasisPostback'
78
+ | 'BingAds'
79
+ | 'BingAdsWeb'
80
+ | 'Braze'
81
+ | 'ConvertABTestingEvent'
82
+ | 'Customerio'
83
+ | 'DomoWarehouse'
84
+ | 'Facebook'
85
+ | 'FloodlightSGTM'
86
+ | 'FullContact'
87
+ | 'G4Analytics'
88
+ | 'GA4MeasurementProtocol'
89
+ | 'GA4ServerProxy'
90
+ | 'Google'
91
+ | 'GoogleAds360'
92
+ | 'GoogleAdsServerContainer'
93
+ | 'GoogleBigQuery'
94
+ | 'GoogleBigQueryWarehouse'
95
+ | 'GoogleDataManagerEventIngest'
96
+ | 'GooglePubSub'
97
+ | 'GoogleStorage'
98
+ | 'HTTPCustomRequest'
99
+ | 'HTTPDestination'
100
+ | 'Hubspot'
101
+ | 'IHeartMediaMagellan'
102
+ | 'Impact'
103
+ | 'Iterable'
104
+ | 'Klaviyo'
105
+ | 'LinkedInAdsCAPI'
106
+ | 'LiveIntent'
107
+ | 'LiveRampWarehouse'
108
+ | 'Mailchimp'
109
+ | 'Mixpanel'
110
+ | 'NextdoorAds'
111
+ | 'OursSyntheticData'
112
+ | 'Partnerize'
113
+ | 'Pinterest'
114
+ | 'Plausible'
115
+ | 'Podscribe'
116
+ | 'PostHog'
117
+ | 'QuantcastCAPI'
118
+ | 'QuoraAds'
119
+ | 'Reddit'
120
+ | 'RokuCAPI'
121
+ | 'SnapchatAdsCapi'
122
+ | 'Spotify'
123
+ | 'StackAdaptAPI'
124
+ | 'Taboola'
125
+ | 'Tatari'
126
+ | 'TheTradeDesk'
127
+ | 'TikTok'
128
+ | 'VWO'
129
+ | 'Viant'
130
+ | 'Vibe'
131
+ | 'Woopra'
132
+ | 'XAds'
133
+ | 'Zendesk'
134
+ | 'ZoomInfo';
135
+
136
+ facebookConversionAPIKey?: string | null;
137
+
138
+ facebookPixelId?: string | null;
139
+
140
+ g4AnalyticsApiKey?: string | null;
141
+
142
+ g4AnalyticsMeasurementId?: string | null;
143
+
144
+ g4AnalyticsTrackOnPage?: boolean | null;
145
+
146
+ hashingSalt?: string | null;
147
+
148
+ httpDestinationUrl?: string | null;
149
+
150
+ limitedToSourceIds?: Array<string> | null;
151
+
152
+ managerGoogleCustomerId?: string | null;
153
+
154
+ name?: string | null;
155
+
156
+ projectAPIKey?: string | null;
157
+
158
+ projectToken?: string | null;
159
+
160
+ selectedAccountId?: string | null;
161
+
162
+ settings?: unknown | null;
163
+
164
+ updatedAt?: string | null;
165
+ }
166
+ }
167
+
49
168
  export interface DestinationCreateResponse {
50
169
  id: string;
51
170
 
@@ -330,124 +449,6 @@ export interface DestinationUpdateResponse {
330
449
  updatedAt?: string | null;
331
450
  }
332
451
 
333
- export interface DestinationListResponse {
334
- entities: Array<DestinationListResponse.Entity>;
335
- }
336
-
337
- export namespace DestinationListResponse {
338
- export interface Entity {
339
- id: string;
340
-
341
- createdAt: string;
342
-
343
- status: 'Disabled' | 'Enabled';
344
-
345
- type:
346
- | 'AWSEventBridge'
347
- | 'AWSKinesis'
348
- | 'AWSLambda'
349
- | 'AWSS3'
350
- | 'AWSSNS'
351
- | 'ActiveCampaignApi'
352
- | 'Admitad'
353
- | 'AmazonDSP'
354
- | 'Amplitude'
355
- | 'AppLovin'
356
- | 'ArtsAI'
357
- | 'Attentive'
358
- | 'Audiohook'
359
- | 'AzureBlob'
360
- | 'BasisPostback'
361
- | 'BingAds'
362
- | 'BingAdsWeb'
363
- | 'Braze'
364
- | 'ConvertABTestingEvent'
365
- | 'Customerio'
366
- | 'DomoWarehouse'
367
- | 'Facebook'
368
- | 'FloodlightSGTM'
369
- | 'FullContact'
370
- | 'G4Analytics'
371
- | 'GA4MeasurementProtocol'
372
- | 'GA4ServerProxy'
373
- | 'Google'
374
- | 'GoogleAds360'
375
- | 'GoogleAdsServerContainer'
376
- | 'GoogleBigQuery'
377
- | 'GoogleBigQueryWarehouse'
378
- | 'GoogleDataManagerEventIngest'
379
- | 'GooglePubSub'
380
- | 'GoogleStorage'
381
- | 'HTTPCustomRequest'
382
- | 'HTTPDestination'
383
- | 'Hubspot'
384
- | 'IHeartMediaMagellan'
385
- | 'Impact'
386
- | 'Iterable'
387
- | 'Klaviyo'
388
- | 'LinkedInAdsCAPI'
389
- | 'LiveIntent'
390
- | 'LiveRampWarehouse'
391
- | 'Mailchimp'
392
- | 'Mixpanel'
393
- | 'NextdoorAds'
394
- | 'OursSyntheticData'
395
- | 'Partnerize'
396
- | 'Pinterest'
397
- | 'Plausible'
398
- | 'Podscribe'
399
- | 'PostHog'
400
- | 'QuantcastCAPI'
401
- | 'QuoraAds'
402
- | 'Reddit'
403
- | 'RokuCAPI'
404
- | 'SnapchatAdsCapi'
405
- | 'Spotify'
406
- | 'StackAdaptAPI'
407
- | 'Taboola'
408
- | 'Tatari'
409
- | 'TheTradeDesk'
410
- | 'TikTok'
411
- | 'VWO'
412
- | 'Viant'
413
- | 'Vibe'
414
- | 'Woopra'
415
- | 'XAds'
416
- | 'Zendesk'
417
- | 'ZoomInfo';
418
-
419
- facebookConversionAPIKey?: string | null;
420
-
421
- facebookPixelId?: string | null;
422
-
423
- g4AnalyticsApiKey?: string | null;
424
-
425
- g4AnalyticsMeasurementId?: string | null;
426
-
427
- g4AnalyticsTrackOnPage?: boolean | null;
428
-
429
- hashingSalt?: string | null;
430
-
431
- httpDestinationUrl?: string | null;
432
-
433
- limitedToSourceIds?: Array<string> | null;
434
-
435
- managerGoogleCustomerId?: string | null;
436
-
437
- name?: string | null;
438
-
439
- projectAPIKey?: string | null;
440
-
441
- projectToken?: string | null;
442
-
443
- selectedAccountId?: string | null;
444
-
445
- settings?: unknown | null;
446
-
447
- updatedAt?: string | null;
448
- }
449
- }
450
-
451
452
  export type DestinationDeleteResponse = boolean;
452
453
 
453
454
  export interface DestinationCreateParams {
@@ -562,10 +563,10 @@ export interface DestinationUpdateParams {
562
563
 
563
564
  export declare namespace Destinations {
564
565
  export {
566
+ type DestinationListResponse as DestinationListResponse,
565
567
  type DestinationCreateResponse as DestinationCreateResponse,
566
568
  type DestinationRetrieveResponse as DestinationRetrieveResponse,
567
569
  type DestinationUpdateResponse as DestinationUpdateResponse,
568
- type DestinationListResponse as DestinationListResponse,
569
570
  type DestinationDeleteResponse as DestinationDeleteResponse,
570
571
  type DestinationCreateParams as DestinationCreateParams,
571
572
  type DestinationUpdateParams as DestinationUpdateParams,
@@ -0,0 +1,367 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ export class ExperimentSettings extends APIResource {
9
+ /**
10
+ * List experiment settings records for the account. Use the returned `id` as
11
+ * `experimentSettingsId` when creating an experiment. Requires scope:
12
+ * experimentSettings:list
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const experimentSettings =
17
+ * await client.experimentSettings.list();
18
+ * ```
19
+ */
20
+ list(options?: RequestOptions): APIPromise<ExperimentSettingListResponse> {
21
+ return this._client.get('/rest/v1/experiment-settings', options);
22
+ }
23
+
24
+ /**
25
+ * Create the account-level experimentation bootstrap record. Most accounts should
26
+ * only ever have one. Requires scope: experimentSettings:create
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const experimentSetting =
31
+ * await client.experimentSettings.create();
32
+ * ```
33
+ */
34
+ create(
35
+ body: ExperimentSettingCreateParams,
36
+ options?: RequestOptions,
37
+ ): APIPromise<ExperimentSettingCreateResponse> {
38
+ return this._client.post('/rest/v1/experiment-settings', { body, ...options });
39
+ }
40
+
41
+ /**
42
+ * Find a single experiment settings record by ID. Returns 404 when no record
43
+ * matches the supplied id. Requires scope: experimentSettings:find
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const experimentSetting =
48
+ * await client.experimentSettings.retrieve('id');
49
+ * ```
50
+ */
51
+ retrieve(id: string, options?: RequestOptions): APIPromise<ExperimentSettingRetrieveResponse> {
52
+ return this._client.get(path`/rest/v1/experiment-settings/${id}`, options);
53
+ }
54
+
55
+ /**
56
+ * Partially update an experiment settings. Only the fields you send are changed.
57
+ * Requires scope: experimentSettings:update
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const experimentSetting =
62
+ * await client.experimentSettings.update('id');
63
+ * ```
64
+ */
65
+ update(
66
+ id: string,
67
+ body: ExperimentSettingUpdateParams,
68
+ options?: RequestOptions,
69
+ ): APIPromise<ExperimentSettingUpdateResponse> {
70
+ return this._client.patch(path`/rest/v1/experiment-settings/${id}`, { body, ...options });
71
+ }
72
+
73
+ /**
74
+ * Delete the experimentation bootstrap record. This also deletes child
75
+ * experiments, variants, and personalization properties owned by it. Requires
76
+ * scope: experimentSettings:delete
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const experimentSetting =
81
+ * await client.experimentSettings.delete('id');
82
+ * ```
83
+ */
84
+ delete(id: string, options?: RequestOptions): APIPromise<ExperimentSettingDeleteResponse> {
85
+ return this._client.delete(path`/rest/v1/experiment-settings/${id}`, options);
86
+ }
87
+ }
88
+
89
+ export interface ExperimentSettingListResponse {
90
+ /**
91
+ * Experiment settings records available to the current account. Use the `id` from
92
+ * this response as `experimentSettingsId` when creating an experiment. Most
93
+ * accounts have a single record; this list is not paginated.
94
+ */
95
+ entities: Array<ExperimentSettingListResponse.Entity>;
96
+ }
97
+
98
+ export namespace ExperimentSettingListResponse {
99
+ export interface Entity {
100
+ /**
101
+ * Unique identifier for the account-level experiment settings record.
102
+ */
103
+ id: string;
104
+
105
+ /**
106
+ * Account that owns this experiment settings record.
107
+ */
108
+ accountId: string;
109
+
110
+ createdAt: string;
111
+
112
+ /**
113
+ * Human-readable name for this experimentation configuration.
114
+ */
115
+ name: string;
116
+
117
+ /**
118
+ * Pixel token used by the experiments runtime and CDN configuration. This is
119
+ * informative for REST clients; use the settings `id` for createExperiment.
120
+ */
121
+ pixel: string;
122
+
123
+ /**
124
+ * Cookie name used to persist sticky variant assignments in the browser.
125
+ */
126
+ cookieName?: string | null;
127
+
128
+ createdByUserId?: string | null;
129
+
130
+ updatedAt?: string | null;
131
+
132
+ updatedByUserId?: string | null;
133
+
134
+ /**
135
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
136
+ * using this settings record are only served on these domains. This is separate
137
+ * from source `whitelistDomains`, which gates source event ingestion.
138
+ */
139
+ whitelistDomains?: Array<string> | null;
140
+ }
141
+ }
142
+
143
+ export interface ExperimentSettingCreateResponse {
144
+ /**
145
+ * Unique identifier for the account-level experiment settings record.
146
+ */
147
+ id: string;
148
+
149
+ /**
150
+ * Account that owns this experiment settings record.
151
+ */
152
+ accountId: string;
153
+
154
+ createdAt: string;
155
+
156
+ /**
157
+ * Human-readable name for this experimentation configuration.
158
+ */
159
+ name: string;
160
+
161
+ /**
162
+ * Pixel token used by the experiments runtime and CDN configuration. This is
163
+ * informative for REST clients; use the settings `id` for createExperiment.
164
+ */
165
+ pixel: string;
166
+
167
+ /**
168
+ * Cookie name used to persist sticky variant assignments in the browser.
169
+ */
170
+ cookieName?: string | null;
171
+
172
+ createdByUserId?: string | null;
173
+
174
+ updatedAt?: string | null;
175
+
176
+ updatedByUserId?: string | null;
177
+
178
+ /**
179
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
180
+ * using this settings record are only served on these domains. This is separate
181
+ * from source `whitelistDomains`, which gates source event ingestion.
182
+ */
183
+ whitelistDomains?: Array<string> | null;
184
+ }
185
+
186
+ export interface ExperimentSettingRetrieveResponse {
187
+ /**
188
+ * Unique identifier for the account-level experiment settings record.
189
+ */
190
+ id: string;
191
+
192
+ /**
193
+ * Account that owns this experiment settings record.
194
+ */
195
+ accountId: string;
196
+
197
+ createdAt: string;
198
+
199
+ /**
200
+ * Human-readable name for this experimentation configuration.
201
+ */
202
+ name: string;
203
+
204
+ /**
205
+ * Pixel token used by the experiments runtime and CDN configuration. This is
206
+ * informative for REST clients; use the settings `id` for createExperiment.
207
+ */
208
+ pixel: string;
209
+
210
+ /**
211
+ * Cookie name used to persist sticky variant assignments in the browser.
212
+ */
213
+ cookieName?: string | null;
214
+
215
+ createdByUserId?: string | null;
216
+
217
+ updatedAt?: string | null;
218
+
219
+ updatedByUserId?: string | null;
220
+
221
+ /**
222
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
223
+ * using this settings record are only served on these domains. This is separate
224
+ * from source `whitelistDomains`, which gates source event ingestion.
225
+ */
226
+ whitelistDomains?: Array<string> | null;
227
+ }
228
+
229
+ export interface ExperimentSettingUpdateResponse {
230
+ /**
231
+ * Unique identifier for the account-level experiment settings record.
232
+ */
233
+ id: string;
234
+
235
+ /**
236
+ * Account that owns this experiment settings record.
237
+ */
238
+ accountId: string;
239
+
240
+ createdAt: string;
241
+
242
+ /**
243
+ * Human-readable name for this experimentation configuration.
244
+ */
245
+ name: string;
246
+
247
+ /**
248
+ * Pixel token used by the experiments runtime and CDN configuration. This is
249
+ * informative for REST clients; use the settings `id` for createExperiment.
250
+ */
251
+ pixel: string;
252
+
253
+ /**
254
+ * Cookie name used to persist sticky variant assignments in the browser.
255
+ */
256
+ cookieName?: string | null;
257
+
258
+ createdByUserId?: string | null;
259
+
260
+ updatedAt?: string | null;
261
+
262
+ updatedByUserId?: string | null;
263
+
264
+ /**
265
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
266
+ * using this settings record are only served on these domains. This is separate
267
+ * from source `whitelistDomains`, which gates source event ingestion.
268
+ */
269
+ whitelistDomains?: Array<string> | null;
270
+ }
271
+
272
+ export interface ExperimentSettingDeleteResponse {
273
+ /**
274
+ * Unique identifier for the account-level experiment settings record.
275
+ */
276
+ id: string;
277
+
278
+ /**
279
+ * Account that owns this experiment settings record.
280
+ */
281
+ accountId: string;
282
+
283
+ createdAt: string;
284
+
285
+ /**
286
+ * Human-readable name for this experimentation configuration.
287
+ */
288
+ name: string;
289
+
290
+ /**
291
+ * Pixel token used by the experiments runtime and CDN configuration. This is
292
+ * informative for REST clients; use the settings `id` for createExperiment.
293
+ */
294
+ pixel: string;
295
+
296
+ /**
297
+ * Cookie name used to persist sticky variant assignments in the browser.
298
+ */
299
+ cookieName?: string | null;
300
+
301
+ createdByUserId?: string | null;
302
+
303
+ updatedAt?: string | null;
304
+
305
+ updatedByUserId?: string | null;
306
+
307
+ /**
308
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
309
+ * using this settings record are only served on these domains. This is separate
310
+ * from source `whitelistDomains`, which gates source event ingestion.
311
+ */
312
+ whitelistDomains?: Array<string> | null;
313
+ }
314
+
315
+ export interface ExperimentSettingCreateParams {
316
+ /**
317
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
318
+ * to `_cord_exp` when omitted on create.
319
+ */
320
+ cookieName?: string | null;
321
+
322
+ /**
323
+ * Human-readable name for this experimentation configuration. Defaults to
324
+ * `Experiment Settings` when omitted on create.
325
+ */
326
+ name?: string | null;
327
+
328
+ /**
329
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
330
+ * using this settings record are only served on these domains. This is separate
331
+ * from source `whitelistDomains`, which gates CDP event ingestion.
332
+ */
333
+ whitelistDomains?: Array<string> | null;
334
+ }
335
+
336
+ export interface ExperimentSettingUpdateParams {
337
+ /**
338
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
339
+ * to `_cord_exp` when omitted on create.
340
+ */
341
+ cookieName?: string | null;
342
+
343
+ /**
344
+ * Human-readable name for this experimentation configuration. Defaults to
345
+ * `Experiment Settings` when omitted on create.
346
+ */
347
+ name?: string | null;
348
+
349
+ /**
350
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
351
+ * using this settings record are only served on these domains. This is separate
352
+ * from source `whitelistDomains`, which gates CDP event ingestion.
353
+ */
354
+ whitelistDomains?: Array<string> | null;
355
+ }
356
+
357
+ export declare namespace ExperimentSettings {
358
+ export {
359
+ type ExperimentSettingListResponse as ExperimentSettingListResponse,
360
+ type ExperimentSettingCreateResponse as ExperimentSettingCreateResponse,
361
+ type ExperimentSettingRetrieveResponse as ExperimentSettingRetrieveResponse,
362
+ type ExperimentSettingUpdateResponse as ExperimentSettingUpdateResponse,
363
+ type ExperimentSettingDeleteResponse as ExperimentSettingDeleteResponse,
364
+ type ExperimentSettingCreateParams as ExperimentSettingCreateParams,
365
+ type ExperimentSettingUpdateParams as ExperimentSettingUpdateParams,
366
+ };
367
+ }