@oursprivacy/platform-sdk 1.53.0 → 1.54.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 (158) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +10 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/resources/consent-settings.d.mts +5930 -442
  12. package/resources/consent-settings.d.mts.map +1 -1
  13. package/resources/consent-settings.d.ts +5930 -442
  14. package/resources/consent-settings.d.ts.map +1 -1
  15. package/resources/custom-domains.d.mts +301 -0
  16. package/resources/custom-domains.d.mts.map +1 -0
  17. package/resources/custom-domains.d.ts +301 -0
  18. package/resources/custom-domains.d.ts.map +1 -0
  19. package/resources/custom-domains.js +55 -0
  20. package/resources/custom-domains.js.map +1 -0
  21. package/resources/custom-domains.mjs +51 -0
  22. package/resources/custom-domains.mjs.map +1 -0
  23. package/resources/data-governance.d.mts +75 -15
  24. package/resources/data-governance.d.mts.map +1 -1
  25. package/resources/data-governance.d.ts +75 -15
  26. package/resources/data-governance.d.ts.map +1 -1
  27. package/resources/default-mappings.d.mts +207 -3
  28. package/resources/default-mappings.d.mts.map +1 -1
  29. package/resources/default-mappings.d.ts +207 -3
  30. package/resources/default-mappings.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +33 -13
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +33 -13
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +117 -14
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +117 -14
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +3979 -253
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +3979 -253
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/funnels.d.mts +648 -7
  44. package/resources/funnels.d.mts.map +1 -1
  45. package/resources/funnels.d.ts +648 -7
  46. package/resources/funnels.d.ts.map +1 -1
  47. package/resources/index.d.mts +4 -2
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +4 -2
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +5 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -0
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/journey-flows.d.mts +580 -16
  56. package/resources/journey-flows.d.mts.map +1 -1
  57. package/resources/journey-flows.d.ts +580 -16
  58. package/resources/journey-flows.d.ts.map +1 -1
  59. package/resources/locations.d.mts +25 -5
  60. package/resources/locations.d.mts.map +1 -1
  61. package/resources/locations.d.ts +25 -5
  62. package/resources/locations.d.ts.map +1 -1
  63. package/resources/mappings.d.mts +540 -12
  64. package/resources/mappings.d.mts.map +1 -1
  65. package/resources/mappings.d.ts +540 -12
  66. package/resources/mappings.d.ts.map +1 -1
  67. package/resources/mappings.js +22 -0
  68. package/resources/mappings.js.map +1 -1
  69. package/resources/mappings.mjs +22 -0
  70. package/resources/mappings.mjs.map +1 -1
  71. package/resources/me.d.mts +29 -0
  72. package/resources/me.d.mts.map +1 -0
  73. package/resources/me.d.ts +29 -0
  74. package/resources/me.d.ts.map +1 -0
  75. package/resources/me.js +17 -0
  76. package/resources/me.js.map +1 -0
  77. package/resources/me.mjs +13 -0
  78. package/resources/me.mjs.map +1 -0
  79. package/resources/replay-settings.d.mts +117 -3
  80. package/resources/replay-settings.d.mts.map +1 -1
  81. package/resources/replay-settings.d.ts +117 -3
  82. package/resources/replay-settings.d.ts.map +1 -1
  83. package/resources/session-replays.d.mts +5 -0
  84. package/resources/session-replays.d.mts.map +1 -1
  85. package/resources/session-replays.d.ts +5 -0
  86. package/resources/session-replays.d.ts.map +1 -1
  87. package/resources/short-links.d.mts +722 -10
  88. package/resources/short-links.d.mts.map +1 -1
  89. package/resources/short-links.d.ts +722 -10
  90. package/resources/short-links.d.ts.map +1 -1
  91. package/resources/sources.d.mts +86 -11
  92. package/resources/sources.d.mts.map +1 -1
  93. package/resources/sources.d.ts +86 -11
  94. package/resources/sources.d.ts.map +1 -1
  95. package/resources/tag-manager-tags.d.mts +3 -1
  96. package/resources/tag-manager-tags.d.mts.map +1 -1
  97. package/resources/tag-manager-tags.d.ts +3 -1
  98. package/resources/tag-manager-tags.d.ts.map +1 -1
  99. package/resources/tag-manager-triggers.d.mts +3 -1
  100. package/resources/tag-manager-triggers.d.mts.map +1 -1
  101. package/resources/tag-manager-triggers.d.ts +3 -1
  102. package/resources/tag-manager-triggers.d.ts.map +1 -1
  103. package/resources/tag-manager-variables.d.mts +39 -13
  104. package/resources/tag-manager-variables.d.mts.map +1 -1
  105. package/resources/tag-manager-variables.d.ts +39 -13
  106. package/resources/tag-manager-variables.d.ts.map +1 -1
  107. package/resources/tag-managers.d.mts +14 -1
  108. package/resources/tag-managers.d.mts.map +1 -1
  109. package/resources/tag-managers.d.ts +14 -1
  110. package/resources/tag-managers.d.ts.map +1 -1
  111. package/resources/tag-managers.js +8 -0
  112. package/resources/tag-managers.js.map +1 -1
  113. package/resources/tag-managers.mjs +8 -0
  114. package/resources/tag-managers.mjs.map +1 -1
  115. package/resources/test-events.d.mts +67 -11
  116. package/resources/test-events.d.mts.map +1 -1
  117. package/resources/test-events.d.ts +67 -11
  118. package/resources/test-events.d.ts.map +1 -1
  119. package/resources/versions.d.mts +82 -37
  120. package/resources/versions.d.mts.map +1 -1
  121. package/resources/versions.d.ts +82 -37
  122. package/resources/versions.d.ts.map +1 -1
  123. package/resources/versions.js +5 -5
  124. package/resources/versions.mjs +5 -5
  125. package/resources/video-channels.d.mts +32 -4
  126. package/resources/video-channels.d.mts.map +1 -1
  127. package/resources/video-channels.d.ts +32 -4
  128. package/resources/video-channels.d.ts.map +1 -1
  129. package/src/client.ts +36 -0
  130. package/src/resources/consent-settings.ts +7287 -374
  131. package/src/resources/custom-domains.ts +450 -0
  132. package/src/resources/data-governance.ts +45 -15
  133. package/src/resources/default-mappings.ts +303 -3
  134. package/src/resources/destinations.ts +23 -8
  135. package/src/resources/experiment-variants.ts +131 -14
  136. package/src/resources/experiments.ts +8021 -443
  137. package/src/resources/funnels.ts +1355 -7
  138. package/src/resources/index.ts +15 -0
  139. package/src/resources/journey-flows.ts +1224 -16
  140. package/src/resources/locations.ts +35 -5
  141. package/src/resources/mappings.ts +794 -19
  142. package/src/resources/me.ts +37 -0
  143. package/src/resources/replay-settings.ts +138 -3
  144. package/src/resources/session-replays.ts +6 -0
  145. package/src/resources/short-links.ts +872 -10
  146. package/src/resources/sources.ts +96 -11
  147. package/src/resources/tag-manager-tags.ts +7 -1
  148. package/src/resources/tag-manager-triggers.ts +7 -1
  149. package/src/resources/tag-manager-variables.ts +91 -13
  150. package/src/resources/tag-managers.ts +25 -0
  151. package/src/resources/test-events.ts +47 -11
  152. package/src/resources/versions.ts +83 -37
  153. package/src/resources/video-channels.ts +44 -4
  154. package/src/version.ts +1 -1
  155. package/version.d.mts +1 -1
  156. package/version.d.ts +1 -1
  157. package/version.js +1 -1
  158. package/version.mjs +1 -1
@@ -0,0 +1,37 @@
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
+
7
+ export class Me extends APIResource {
8
+ /**
9
+ * Identify the authenticated credential. Requires no API-key scope or OAuth user
10
+ * permission, so a narrow API key or a new OAuth connection can confirm it is
11
+ * valid before calling other operations.
12
+ */
13
+ retrieve(options?: RequestOptions): APIPromise<MeRetrieveResponse> {
14
+ return this._client.get('/rest/v1/me', options);
15
+ }
16
+ }
17
+
18
+ export interface MeRetrieveResponse {
19
+ /**
20
+ * ISO-8601 expiration of the API key or OAuth access token, or null.
21
+ */
22
+ expiresAt: string | null;
23
+
24
+ /**
25
+ * Organization the credential acts for.
26
+ */
27
+ organizationId: string;
28
+
29
+ /**
30
+ * Display name of the organization, or null when unavailable.
31
+ */
32
+ organizationName: string | null;
33
+ }
34
+
35
+ export declare namespace Me {
36
+ export { type MeRetrieveResponse as MeRetrieveResponse };
37
+ }
@@ -116,7 +116,52 @@ export interface ReplaySettingCreateResponse {
116
116
 
117
117
  cause?: string | null;
118
118
 
119
- replaySettings?: unknown | null;
119
+ replaySettings?: ReplaySettingCreateResponse.ReplaySettings | null;
120
+ }
121
+
122
+ export namespace ReplaySettingCreateResponse {
123
+ export interface ReplaySettings {
124
+ /**
125
+ * Stable identifier (UUID) for this replay configuration.
126
+ */
127
+ id: string;
128
+
129
+ /**
130
+ * ISO-8601 timestamp when this configuration was created.
131
+ */
132
+ createdAt: string;
133
+
134
+ /**
135
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
136
+ * be empty.
137
+ */
138
+ name: string;
139
+
140
+ /**
141
+ * Whether session replay capture is currently active. Set to "Enabled" to start
142
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
143
+ * without losing the configuration.
144
+ */
145
+ status: 'Disabled' | 'Enabled';
146
+
147
+ /**
148
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
149
+ * to use the default Ours Privacy domain.
150
+ */
151
+ customDomain?: string | null;
152
+
153
+ /**
154
+ * ISO-8601 timestamp of the most recent update, or null if never updated.
155
+ */
156
+ updatedAt?: string | null;
157
+
158
+ /**
159
+ * Hostnames where session replay capture is permitted. Replays initiated from any
160
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
161
+ * not merged.
162
+ */
163
+ whitelistDomains?: Array<string> | null;
164
+ }
120
165
  }
121
166
 
122
167
  export interface ReplaySettingRetrieveResponse {
@@ -167,7 +212,52 @@ export interface ReplaySettingUpdateResponse {
167
212
 
168
213
  cause?: string | null;
169
214
 
170
- replaySettings?: unknown | null;
215
+ replaySettings?: ReplaySettingUpdateResponse.ReplaySettings | null;
216
+ }
217
+
218
+ export namespace ReplaySettingUpdateResponse {
219
+ export interface ReplaySettings {
220
+ /**
221
+ * Stable identifier (UUID) for this replay configuration.
222
+ */
223
+ id: string;
224
+
225
+ /**
226
+ * ISO-8601 timestamp when this configuration was created.
227
+ */
228
+ createdAt: string;
229
+
230
+ /**
231
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
232
+ * be empty.
233
+ */
234
+ name: string;
235
+
236
+ /**
237
+ * Whether session replay capture is currently active. Set to "Enabled" to start
238
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
239
+ * without losing the configuration.
240
+ */
241
+ status: 'Disabled' | 'Enabled';
242
+
243
+ /**
244
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
245
+ * to use the default Ours Privacy domain.
246
+ */
247
+ customDomain?: string | null;
248
+
249
+ /**
250
+ * ISO-8601 timestamp of the most recent update, or null if never updated.
251
+ */
252
+ updatedAt?: string | null;
253
+
254
+ /**
255
+ * Hostnames where session replay capture is permitted. Replays initiated from any
256
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
257
+ * not merged.
258
+ */
259
+ whitelistDomains?: Array<string> | null;
260
+ }
171
261
  }
172
262
 
173
263
  export interface ReplaySettingDeleteResponse {
@@ -175,7 +265,52 @@ export interface ReplaySettingDeleteResponse {
175
265
 
176
266
  cause?: string | null;
177
267
 
178
- replaySettings?: unknown | null;
268
+ replaySettings?: ReplaySettingDeleteResponse.ReplaySettings | null;
269
+ }
270
+
271
+ export namespace ReplaySettingDeleteResponse {
272
+ export interface ReplaySettings {
273
+ /**
274
+ * Stable identifier (UUID) for this replay configuration.
275
+ */
276
+ id: string;
277
+
278
+ /**
279
+ * ISO-8601 timestamp when this configuration was created.
280
+ */
281
+ createdAt: string;
282
+
283
+ /**
284
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
285
+ * be empty.
286
+ */
287
+ name: string;
288
+
289
+ /**
290
+ * Whether session replay capture is currently active. Set to "Enabled" to start
291
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
292
+ * without losing the configuration.
293
+ */
294
+ status: 'Disabled' | 'Enabled';
295
+
296
+ /**
297
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
298
+ * to use the default Ours Privacy domain.
299
+ */
300
+ customDomain?: string | null;
301
+
302
+ /**
303
+ * ISO-8601 timestamp of the most recent update, or null if never updated.
304
+ */
305
+ updatedAt?: string | null;
306
+
307
+ /**
308
+ * Hostnames where session replay capture is permitted. Replays initiated from any
309
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
310
+ * not merged.
311
+ */
312
+ whitelistDomains?: Array<string> | null;
313
+ }
179
314
  }
180
315
 
181
316
  export interface ReplaySettingListParams extends CursorParams {}
@@ -91,6 +91,12 @@ export interface SessionReplayListParams {
91
91
 
92
92
  eventName?: string;
93
93
 
94
+ /**
95
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
96
+ * property IDs and operators, including event, session, and custom properties.
97
+ */
98
+ filter?: string;
99
+
94
100
  /**
95
101
  * Maximum replay sessions to return. Defaults to the report default.
96
102
  */