@oursprivacy/platform-sdk 1.11.0 → 1.13.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 +31 -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 +659 -0
  69. package/resources/experiment-variants.d.mts.map +1 -0
  70. package/resources/experiment-variants.d.ts +659 -0
  71. package/resources/experiment-variants.d.ts.map +1 -0
  72. package/resources/experiment-variants.js +79 -0
  73. package/resources/experiment-variants.js.map +1 -0
  74. package/resources/experiment-variants.mjs +75 -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 +136 -0
  101. package/resources/mappings.d.mts.map +1 -0
  102. package/resources/mappings.d.ts +136 -0
  103. package/resources/mappings.d.ts.map +1 -0
  104. package/resources/mappings.js +41 -0
  105. package/resources/mappings.js.map +1 -0
  106. package/resources/mappings.mjs +37 -0
  107. package/resources/mappings.mjs.map +1 -0
  108. package/resources/replay-settings.d.mts +123 -24
  109. package/resources/replay-settings.d.mts.map +1 -1
  110. package/resources/replay-settings.d.ts +123 -24
  111. package/resources/replay-settings.d.ts.map +1 -1
  112. package/resources/replay-settings.js +24 -10
  113. package/resources/replay-settings.js.map +1 -1
  114. package/resources/replay-settings.mjs +24 -10
  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 +206 -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 +870 -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 +75 -7
  144. package/src/resources/mappings.ts +230 -0
  145. package/src/resources/replay-settings.ts +142 -35
  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
@@ -0,0 +1,277 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class ExperimentSettings extends APIResource {
5
+ /**
6
+ * List experiment settings records for the account. Use the returned `id` as
7
+ * `experimentSettingsId` when creating an experiment. Requires scope:
8
+ * experimentSettings:list
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const experimentSettings =
13
+ * await client.experimentSettings.list();
14
+ * ```
15
+ */
16
+ list(options?: RequestOptions): APIPromise<ExperimentSettingListResponse>;
17
+ /**
18
+ * Create the account-level experimentation bootstrap record. Most accounts should
19
+ * only ever have one. Requires scope: experimentSettings:create
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const experimentSetting =
24
+ * await client.experimentSettings.create();
25
+ * ```
26
+ */
27
+ create(body: ExperimentSettingCreateParams, options?: RequestOptions): APIPromise<ExperimentSettingCreateResponse>;
28
+ /**
29
+ * Find a single experiment settings record by ID. Returns 404 when no record
30
+ * matches the supplied id. Requires scope: experimentSettings:find
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const experimentSetting =
35
+ * await client.experimentSettings.retrieve('id');
36
+ * ```
37
+ */
38
+ retrieve(id: string, options?: RequestOptions): APIPromise<ExperimentSettingRetrieveResponse>;
39
+ /**
40
+ * Partially update an experiment settings. Only the fields you send are changed.
41
+ * Requires scope: experimentSettings:update
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const experimentSetting =
46
+ * await client.experimentSettings.update('id');
47
+ * ```
48
+ */
49
+ update(id: string, body: ExperimentSettingUpdateParams, options?: RequestOptions): APIPromise<ExperimentSettingUpdateResponse>;
50
+ /**
51
+ * Delete the experimentation bootstrap record. This also deletes child
52
+ * experiments, variants, and personalization properties owned by it. Requires
53
+ * scope: experimentSettings:delete
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const experimentSetting =
58
+ * await client.experimentSettings.delete('id');
59
+ * ```
60
+ */
61
+ delete(id: string, options?: RequestOptions): APIPromise<ExperimentSettingDeleteResponse>;
62
+ }
63
+ export interface ExperimentSettingListResponse {
64
+ /**
65
+ * Experiment settings records available to the current account. Use the `id` from
66
+ * this response as `experimentSettingsId` when creating an experiment. Most
67
+ * accounts have a single record; this list is not paginated.
68
+ */
69
+ entities: Array<ExperimentSettingListResponse.Entity>;
70
+ }
71
+ export declare namespace ExperimentSettingListResponse {
72
+ interface Entity {
73
+ /**
74
+ * Unique identifier for the account-level experiment settings record.
75
+ */
76
+ id: string;
77
+ /**
78
+ * Account that owns this experiment settings record.
79
+ */
80
+ accountId: string;
81
+ createdAt: string;
82
+ /**
83
+ * Human-readable name for this experimentation configuration.
84
+ */
85
+ name: string;
86
+ /**
87
+ * Pixel token used by the experiments runtime and CDN configuration. This is
88
+ * informative for REST clients; use the settings `id` for createExperiment.
89
+ */
90
+ pixel: string;
91
+ /**
92
+ * Cookie name used to persist sticky variant assignments in the browser.
93
+ */
94
+ cookieName?: string | null;
95
+ createdByUserId?: string | null;
96
+ updatedAt?: string | null;
97
+ updatedByUserId?: string | null;
98
+ /**
99
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
100
+ * using this settings record are only served on these domains. This is separate
101
+ * from source `whitelistDomains`, which gates source event ingestion.
102
+ */
103
+ whitelistDomains?: Array<string> | null;
104
+ }
105
+ }
106
+ export interface ExperimentSettingCreateResponse {
107
+ /**
108
+ * Unique identifier for the account-level experiment settings record.
109
+ */
110
+ id: string;
111
+ /**
112
+ * Account that owns this experiment settings record.
113
+ */
114
+ accountId: string;
115
+ createdAt: string;
116
+ /**
117
+ * Human-readable name for this experimentation configuration.
118
+ */
119
+ name: string;
120
+ /**
121
+ * Pixel token used by the experiments runtime and CDN configuration. This is
122
+ * informative for REST clients; use the settings `id` for createExperiment.
123
+ */
124
+ pixel: string;
125
+ /**
126
+ * Cookie name used to persist sticky variant assignments in the browser.
127
+ */
128
+ cookieName?: string | null;
129
+ createdByUserId?: string | null;
130
+ updatedAt?: string | null;
131
+ updatedByUserId?: string | null;
132
+ /**
133
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
134
+ * using this settings record are only served on these domains. This is separate
135
+ * from source `whitelistDomains`, which gates source event ingestion.
136
+ */
137
+ whitelistDomains?: Array<string> | null;
138
+ }
139
+ export interface ExperimentSettingRetrieveResponse {
140
+ /**
141
+ * Unique identifier for the account-level experiment settings record.
142
+ */
143
+ id: string;
144
+ /**
145
+ * Account that owns this experiment settings record.
146
+ */
147
+ accountId: string;
148
+ createdAt: string;
149
+ /**
150
+ * Human-readable name for this experimentation configuration.
151
+ */
152
+ name: string;
153
+ /**
154
+ * Pixel token used by the experiments runtime and CDN configuration. This is
155
+ * informative for REST clients; use the settings `id` for createExperiment.
156
+ */
157
+ pixel: string;
158
+ /**
159
+ * Cookie name used to persist sticky variant assignments in the browser.
160
+ */
161
+ cookieName?: string | null;
162
+ createdByUserId?: string | null;
163
+ updatedAt?: string | null;
164
+ updatedByUserId?: string | null;
165
+ /**
166
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
167
+ * using this settings record are only served on these domains. This is separate
168
+ * from source `whitelistDomains`, which gates source event ingestion.
169
+ */
170
+ whitelistDomains?: Array<string> | null;
171
+ }
172
+ export interface ExperimentSettingUpdateResponse {
173
+ /**
174
+ * Unique identifier for the account-level experiment settings record.
175
+ */
176
+ id: string;
177
+ /**
178
+ * Account that owns this experiment settings record.
179
+ */
180
+ accountId: string;
181
+ createdAt: string;
182
+ /**
183
+ * Human-readable name for this experimentation configuration.
184
+ */
185
+ name: string;
186
+ /**
187
+ * Pixel token used by the experiments runtime and CDN configuration. This is
188
+ * informative for REST clients; use the settings `id` for createExperiment.
189
+ */
190
+ pixel: string;
191
+ /**
192
+ * Cookie name used to persist sticky variant assignments in the browser.
193
+ */
194
+ cookieName?: string | null;
195
+ createdByUserId?: string | null;
196
+ updatedAt?: string | null;
197
+ updatedByUserId?: string | null;
198
+ /**
199
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
200
+ * using this settings record are only served on these domains. This is separate
201
+ * from source `whitelistDomains`, which gates source event ingestion.
202
+ */
203
+ whitelistDomains?: Array<string> | null;
204
+ }
205
+ export interface ExperimentSettingDeleteResponse {
206
+ /**
207
+ * Unique identifier for the account-level experiment settings record.
208
+ */
209
+ id: string;
210
+ /**
211
+ * Account that owns this experiment settings record.
212
+ */
213
+ accountId: string;
214
+ createdAt: string;
215
+ /**
216
+ * Human-readable name for this experimentation configuration.
217
+ */
218
+ name: string;
219
+ /**
220
+ * Pixel token used by the experiments runtime and CDN configuration. This is
221
+ * informative for REST clients; use the settings `id` for createExperiment.
222
+ */
223
+ pixel: string;
224
+ /**
225
+ * Cookie name used to persist sticky variant assignments in the browser.
226
+ */
227
+ cookieName?: string | null;
228
+ createdByUserId?: string | null;
229
+ updatedAt?: string | null;
230
+ updatedByUserId?: string | null;
231
+ /**
232
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
233
+ * using this settings record are only served on these domains. This is separate
234
+ * from source `whitelistDomains`, which gates source event ingestion.
235
+ */
236
+ whitelistDomains?: Array<string> | null;
237
+ }
238
+ export interface ExperimentSettingCreateParams {
239
+ /**
240
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
241
+ * to `_cord_exp` when omitted on create.
242
+ */
243
+ cookieName?: string | null;
244
+ /**
245
+ * Human-readable name for this experimentation configuration. Defaults to
246
+ * `Experiment Settings` when omitted on create.
247
+ */
248
+ name?: string | null;
249
+ /**
250
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
251
+ * using this settings record are only served on these domains. This is separate
252
+ * from source `whitelistDomains`, which gates CDP event ingestion.
253
+ */
254
+ whitelistDomains?: Array<string> | null;
255
+ }
256
+ export interface ExperimentSettingUpdateParams {
257
+ /**
258
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
259
+ * to `_cord_exp` when omitted on create.
260
+ */
261
+ cookieName?: string | null;
262
+ /**
263
+ * Human-readable name for this experimentation configuration. Defaults to
264
+ * `Experiment Settings` when omitted on create.
265
+ */
266
+ name?: string | null;
267
+ /**
268
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
269
+ * using this settings record are only served on these domains. This is separate
270
+ * from source `whitelistDomains`, which gates CDP event ingestion.
271
+ */
272
+ whitelistDomains?: Array<string> | null;
273
+ }
274
+ export declare namespace ExperimentSettings {
275
+ export { type ExperimentSettingListResponse as ExperimentSettingListResponse, type ExperimentSettingCreateResponse as ExperimentSettingCreateResponse, type ExperimentSettingRetrieveResponse as ExperimentSettingRetrieveResponse, type ExperimentSettingUpdateResponse as ExperimentSettingUpdateResponse, type ExperimentSettingDeleteResponse as ExperimentSettingDeleteResponse, type ExperimentSettingCreateParams as ExperimentSettingCreateParams, type ExperimentSettingUpdateParams as ExperimentSettingUpdateParams, };
276
+ }
277
+ //# sourceMappingURL=experiment-settings.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiment-settings.d.mts","sourceRoot":"","sources":["../src/resources/experiment-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAA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AAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -0,0 +1,277 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class ExperimentSettings extends APIResource {
5
+ /**
6
+ * List experiment settings records for the account. Use the returned `id` as
7
+ * `experimentSettingsId` when creating an experiment. Requires scope:
8
+ * experimentSettings:list
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const experimentSettings =
13
+ * await client.experimentSettings.list();
14
+ * ```
15
+ */
16
+ list(options?: RequestOptions): APIPromise<ExperimentSettingListResponse>;
17
+ /**
18
+ * Create the account-level experimentation bootstrap record. Most accounts should
19
+ * only ever have one. Requires scope: experimentSettings:create
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const experimentSetting =
24
+ * await client.experimentSettings.create();
25
+ * ```
26
+ */
27
+ create(body: ExperimentSettingCreateParams, options?: RequestOptions): APIPromise<ExperimentSettingCreateResponse>;
28
+ /**
29
+ * Find a single experiment settings record by ID. Returns 404 when no record
30
+ * matches the supplied id. Requires scope: experimentSettings:find
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const experimentSetting =
35
+ * await client.experimentSettings.retrieve('id');
36
+ * ```
37
+ */
38
+ retrieve(id: string, options?: RequestOptions): APIPromise<ExperimentSettingRetrieveResponse>;
39
+ /**
40
+ * Partially update an experiment settings. Only the fields you send are changed.
41
+ * Requires scope: experimentSettings:update
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const experimentSetting =
46
+ * await client.experimentSettings.update('id');
47
+ * ```
48
+ */
49
+ update(id: string, body: ExperimentSettingUpdateParams, options?: RequestOptions): APIPromise<ExperimentSettingUpdateResponse>;
50
+ /**
51
+ * Delete the experimentation bootstrap record. This also deletes child
52
+ * experiments, variants, and personalization properties owned by it. Requires
53
+ * scope: experimentSettings:delete
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const experimentSetting =
58
+ * await client.experimentSettings.delete('id');
59
+ * ```
60
+ */
61
+ delete(id: string, options?: RequestOptions): APIPromise<ExperimentSettingDeleteResponse>;
62
+ }
63
+ export interface ExperimentSettingListResponse {
64
+ /**
65
+ * Experiment settings records available to the current account. Use the `id` from
66
+ * this response as `experimentSettingsId` when creating an experiment. Most
67
+ * accounts have a single record; this list is not paginated.
68
+ */
69
+ entities: Array<ExperimentSettingListResponse.Entity>;
70
+ }
71
+ export declare namespace ExperimentSettingListResponse {
72
+ interface Entity {
73
+ /**
74
+ * Unique identifier for the account-level experiment settings record.
75
+ */
76
+ id: string;
77
+ /**
78
+ * Account that owns this experiment settings record.
79
+ */
80
+ accountId: string;
81
+ createdAt: string;
82
+ /**
83
+ * Human-readable name for this experimentation configuration.
84
+ */
85
+ name: string;
86
+ /**
87
+ * Pixel token used by the experiments runtime and CDN configuration. This is
88
+ * informative for REST clients; use the settings `id` for createExperiment.
89
+ */
90
+ pixel: string;
91
+ /**
92
+ * Cookie name used to persist sticky variant assignments in the browser.
93
+ */
94
+ cookieName?: string | null;
95
+ createdByUserId?: string | null;
96
+ updatedAt?: string | null;
97
+ updatedByUserId?: string | null;
98
+ /**
99
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
100
+ * using this settings record are only served on these domains. This is separate
101
+ * from source `whitelistDomains`, which gates source event ingestion.
102
+ */
103
+ whitelistDomains?: Array<string> | null;
104
+ }
105
+ }
106
+ export interface ExperimentSettingCreateResponse {
107
+ /**
108
+ * Unique identifier for the account-level experiment settings record.
109
+ */
110
+ id: string;
111
+ /**
112
+ * Account that owns this experiment settings record.
113
+ */
114
+ accountId: string;
115
+ createdAt: string;
116
+ /**
117
+ * Human-readable name for this experimentation configuration.
118
+ */
119
+ name: string;
120
+ /**
121
+ * Pixel token used by the experiments runtime and CDN configuration. This is
122
+ * informative for REST clients; use the settings `id` for createExperiment.
123
+ */
124
+ pixel: string;
125
+ /**
126
+ * Cookie name used to persist sticky variant assignments in the browser.
127
+ */
128
+ cookieName?: string | null;
129
+ createdByUserId?: string | null;
130
+ updatedAt?: string | null;
131
+ updatedByUserId?: string | null;
132
+ /**
133
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
134
+ * using this settings record are only served on these domains. This is separate
135
+ * from source `whitelistDomains`, which gates source event ingestion.
136
+ */
137
+ whitelistDomains?: Array<string> | null;
138
+ }
139
+ export interface ExperimentSettingRetrieveResponse {
140
+ /**
141
+ * Unique identifier for the account-level experiment settings record.
142
+ */
143
+ id: string;
144
+ /**
145
+ * Account that owns this experiment settings record.
146
+ */
147
+ accountId: string;
148
+ createdAt: string;
149
+ /**
150
+ * Human-readable name for this experimentation configuration.
151
+ */
152
+ name: string;
153
+ /**
154
+ * Pixel token used by the experiments runtime and CDN configuration. This is
155
+ * informative for REST clients; use the settings `id` for createExperiment.
156
+ */
157
+ pixel: string;
158
+ /**
159
+ * Cookie name used to persist sticky variant assignments in the browser.
160
+ */
161
+ cookieName?: string | null;
162
+ createdByUserId?: string | null;
163
+ updatedAt?: string | null;
164
+ updatedByUserId?: string | null;
165
+ /**
166
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
167
+ * using this settings record are only served on these domains. This is separate
168
+ * from source `whitelistDomains`, which gates source event ingestion.
169
+ */
170
+ whitelistDomains?: Array<string> | null;
171
+ }
172
+ export interface ExperimentSettingUpdateResponse {
173
+ /**
174
+ * Unique identifier for the account-level experiment settings record.
175
+ */
176
+ id: string;
177
+ /**
178
+ * Account that owns this experiment settings record.
179
+ */
180
+ accountId: string;
181
+ createdAt: string;
182
+ /**
183
+ * Human-readable name for this experimentation configuration.
184
+ */
185
+ name: string;
186
+ /**
187
+ * Pixel token used by the experiments runtime and CDN configuration. This is
188
+ * informative for REST clients; use the settings `id` for createExperiment.
189
+ */
190
+ pixel: string;
191
+ /**
192
+ * Cookie name used to persist sticky variant assignments in the browser.
193
+ */
194
+ cookieName?: string | null;
195
+ createdByUserId?: string | null;
196
+ updatedAt?: string | null;
197
+ updatedByUserId?: string | null;
198
+ /**
199
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
200
+ * using this settings record are only served on these domains. This is separate
201
+ * from source `whitelistDomains`, which gates source event ingestion.
202
+ */
203
+ whitelistDomains?: Array<string> | null;
204
+ }
205
+ export interface ExperimentSettingDeleteResponse {
206
+ /**
207
+ * Unique identifier for the account-level experiment settings record.
208
+ */
209
+ id: string;
210
+ /**
211
+ * Account that owns this experiment settings record.
212
+ */
213
+ accountId: string;
214
+ createdAt: string;
215
+ /**
216
+ * Human-readable name for this experimentation configuration.
217
+ */
218
+ name: string;
219
+ /**
220
+ * Pixel token used by the experiments runtime and CDN configuration. This is
221
+ * informative for REST clients; use the settings `id` for createExperiment.
222
+ */
223
+ pixel: string;
224
+ /**
225
+ * Cookie name used to persist sticky variant assignments in the browser.
226
+ */
227
+ cookieName?: string | null;
228
+ createdByUserId?: string | null;
229
+ updatedAt?: string | null;
230
+ updatedByUserId?: string | null;
231
+ /**
232
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
233
+ * using this settings record are only served on these domains. This is separate
234
+ * from source `whitelistDomains`, which gates source event ingestion.
235
+ */
236
+ whitelistDomains?: Array<string> | null;
237
+ }
238
+ export interface ExperimentSettingCreateParams {
239
+ /**
240
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
241
+ * to `_cord_exp` when omitted on create.
242
+ */
243
+ cookieName?: string | null;
244
+ /**
245
+ * Human-readable name for this experimentation configuration. Defaults to
246
+ * `Experiment Settings` when omitted on create.
247
+ */
248
+ name?: string | null;
249
+ /**
250
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
251
+ * using this settings record are only served on these domains. This is separate
252
+ * from source `whitelistDomains`, which gates CDP event ingestion.
253
+ */
254
+ whitelistDomains?: Array<string> | null;
255
+ }
256
+ export interface ExperimentSettingUpdateParams {
257
+ /**
258
+ * Cookie name used to persist sticky variant assignments in the browser. Defaults
259
+ * to `_cord_exp` when omitted on create.
260
+ */
261
+ cookieName?: string | null;
262
+ /**
263
+ * Human-readable name for this experimentation configuration. Defaults to
264
+ * `Experiment Settings` when omitted on create.
265
+ */
266
+ name?: string | null;
267
+ /**
268
+ * Optional domain allowlist for experiment SDK delivery. When set, experiments
269
+ * using this settings record are only served on these domains. This is separate
270
+ * from source `whitelistDomains`, which gates CDP event ingestion.
271
+ */
272
+ whitelistDomains?: Array<string> | null;
273
+ }
274
+ export declare namespace ExperimentSettings {
275
+ export { type ExperimentSettingListResponse as ExperimentSettingListResponse, type ExperimentSettingCreateResponse as ExperimentSettingCreateResponse, type ExperimentSettingRetrieveResponse as ExperimentSettingRetrieveResponse, type ExperimentSettingUpdateResponse as ExperimentSettingUpdateResponse, type ExperimentSettingDeleteResponse as ExperimentSettingDeleteResponse, type ExperimentSettingCreateParams as ExperimentSettingCreateParams, type ExperimentSettingUpdateParams as ExperimentSettingUpdateParams, };
276
+ }
277
+ //# sourceMappingURL=experiment-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiment-settings.d.ts","sourceRoot":"","sources":["../src/resources/experiment-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIzE;;;;;;;;;OASG;IACH,MAAM,CACJ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G,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExperimentSettings = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ class ExperimentSettings extends resource_1.APIResource {
8
+ /**
9
+ * List experiment settings records for the account. Use the returned `id` as
10
+ * `experimentSettingsId` when creating an experiment. Requires scope:
11
+ * experimentSettings:list
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const experimentSettings =
16
+ * await client.experimentSettings.list();
17
+ * ```
18
+ */
19
+ list(options) {
20
+ return this._client.get('/rest/v1/experiment-settings', options);
21
+ }
22
+ /**
23
+ * Create the account-level experimentation bootstrap record. Most accounts should
24
+ * only ever have one. Requires scope: experimentSettings:create
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const experimentSetting =
29
+ * await client.experimentSettings.create();
30
+ * ```
31
+ */
32
+ create(body, options) {
33
+ return this._client.post('/rest/v1/experiment-settings', { body, ...options });
34
+ }
35
+ /**
36
+ * Find a single experiment settings record by ID. Returns 404 when no record
37
+ * matches the supplied id. Requires scope: experimentSettings:find
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const experimentSetting =
42
+ * await client.experimentSettings.retrieve('id');
43
+ * ```
44
+ */
45
+ retrieve(id, options) {
46
+ return this._client.get((0, path_1.path) `/rest/v1/experiment-settings/${id}`, options);
47
+ }
48
+ /**
49
+ * Partially update an experiment settings. Only the fields you send are changed.
50
+ * Requires scope: experimentSettings:update
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const experimentSetting =
55
+ * await client.experimentSettings.update('id');
56
+ * ```
57
+ */
58
+ update(id, body, options) {
59
+ return this._client.patch((0, path_1.path) `/rest/v1/experiment-settings/${id}`, { body, ...options });
60
+ }
61
+ /**
62
+ * Delete the experimentation bootstrap record. This also deletes child
63
+ * experiments, variants, and personalization properties owned by it. Requires
64
+ * scope: experimentSettings:delete
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const experimentSetting =
69
+ * await client.experimentSettings.delete('id');
70
+ * ```
71
+ */
72
+ delete(id, options) {
73
+ return this._client.delete((0, path_1.path) `/rest/v1/experiment-settings/${id}`, options);
74
+ }
75
+ }
76
+ exports.ExperimentSettings = ExperimentSettings;
77
+ //# sourceMappingURL=experiment-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiment-settings.js","sourceRoot":"","sources":["../src/resources/experiment-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAU,EACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AA/ED,gDA+EC"}