@oursprivacy/platform-sdk 1.26.0 → 1.27.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 (142) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/consent-analytics.d.mts +4 -2
  12. package/resources/consent-analytics.d.mts.map +1 -1
  13. package/resources/consent-analytics.d.ts +4 -2
  14. package/resources/consent-analytics.d.ts.map +1 -1
  15. package/resources/consent-analytics.js +4 -2
  16. package/resources/consent-analytics.js.map +1 -1
  17. package/resources/consent-analytics.mjs +4 -2
  18. package/resources/consent-analytics.mjs.map +1 -1
  19. package/resources/consent-settings.d.mts +11 -9
  20. package/resources/consent-settings.d.mts.map +1 -1
  21. package/resources/consent-settings.d.ts +11 -9
  22. package/resources/consent-settings.d.ts.map +1 -1
  23. package/resources/consent-settings.js +11 -9
  24. package/resources/consent-settings.js.map +1 -1
  25. package/resources/consent-settings.mjs +11 -9
  26. package/resources/consent-settings.mjs.map +1 -1
  27. package/resources/data-governance.d.mts +7 -7
  28. package/resources/data-governance.d.ts +7 -7
  29. package/resources/data-governance.js +6 -6
  30. package/resources/data-governance.mjs +6 -6
  31. package/resources/destinations.d.mts +7 -7
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +7 -7
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/heatmap-pages.d.mts +4 -5
  36. package/resources/heatmap-pages.d.mts.map +1 -1
  37. package/resources/heatmap-pages.d.ts +4 -5
  38. package/resources/heatmap-pages.d.ts.map +1 -1
  39. package/resources/heatmap-pages.js +4 -5
  40. package/resources/heatmap-pages.js.map +1 -1
  41. package/resources/heatmap-pages.mjs +4 -5
  42. package/resources/heatmap-pages.mjs.map +1 -1
  43. package/resources/index.d.mts +1 -0
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +1 -0
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +1 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/locations.d.mts +3 -3
  52. package/resources/locations.d.ts +3 -3
  53. package/resources/locations.js +3 -3
  54. package/resources/locations.mjs +3 -3
  55. package/resources/mappings.d.mts +5 -6
  56. package/resources/mappings.d.mts.map +1 -1
  57. package/resources/mappings.d.ts +5 -6
  58. package/resources/mappings.d.ts.map +1 -1
  59. package/resources/mappings.js +5 -6
  60. package/resources/mappings.js.map +1 -1
  61. package/resources/mappings.mjs +5 -6
  62. package/resources/mappings.mjs.map +1 -1
  63. package/resources/sources.d.mts +6 -5
  64. package/resources/sources.d.mts.map +1 -1
  65. package/resources/sources.d.ts +6 -5
  66. package/resources/sources.d.ts.map +1 -1
  67. package/resources/sources.js +6 -5
  68. package/resources/sources.js.map +1 -1
  69. package/resources/sources.mjs +6 -5
  70. package/resources/sources.mjs.map +1 -1
  71. package/resources/tag-manager-asset-folders.d.mts +42 -0
  72. package/resources/tag-manager-asset-folders.d.mts.map +1 -0
  73. package/resources/tag-manager-asset-folders.d.ts +42 -0
  74. package/resources/tag-manager-asset-folders.d.ts.map +1 -0
  75. package/resources/tag-manager-asset-folders.js +18 -0
  76. package/resources/tag-manager-asset-folders.js.map +1 -0
  77. package/resources/tag-manager-asset-folders.mjs +14 -0
  78. package/resources/tag-manager-asset-folders.mjs.map +1 -0
  79. package/resources/tag-manager-tags.d.mts +33 -49
  80. package/resources/tag-manager-tags.d.mts.map +1 -1
  81. package/resources/tag-manager-tags.d.ts +33 -49
  82. package/resources/tag-manager-tags.d.ts.map +1 -1
  83. package/resources/tag-manager-tags.js +5 -7
  84. package/resources/tag-manager-tags.js.map +1 -1
  85. package/resources/tag-manager-tags.mjs +5 -7
  86. package/resources/tag-manager-tags.mjs.map +1 -1
  87. package/resources/tag-manager-triggers.d.mts +33 -39
  88. package/resources/tag-manager-triggers.d.mts.map +1 -1
  89. package/resources/tag-manager-triggers.d.ts +33 -39
  90. package/resources/tag-manager-triggers.d.ts.map +1 -1
  91. package/resources/tag-manager-triggers.js +2 -1
  92. package/resources/tag-manager-triggers.js.map +1 -1
  93. package/resources/tag-manager-triggers.mjs +2 -1
  94. package/resources/tag-manager-triggers.mjs.map +1 -1
  95. package/resources/tag-manager-variables.d.mts +25 -39
  96. package/resources/tag-manager-variables.d.mts.map +1 -1
  97. package/resources/tag-manager-variables.d.ts +25 -39
  98. package/resources/tag-manager-variables.d.ts.map +1 -1
  99. package/resources/tag-manager-variables.js +2 -1
  100. package/resources/tag-manager-variables.js.map +1 -1
  101. package/resources/tag-manager-variables.mjs +2 -1
  102. package/resources/tag-manager-variables.mjs.map +1 -1
  103. package/resources/tag-managers.d.mts +8 -4
  104. package/resources/tag-managers.d.mts.map +1 -1
  105. package/resources/tag-managers.d.ts +8 -4
  106. package/resources/tag-managers.d.ts.map +1 -1
  107. package/resources/tag-managers.js +7 -3
  108. package/resources/tag-managers.js.map +1 -1
  109. package/resources/tag-managers.mjs +7 -3
  110. package/resources/tag-managers.mjs.map +1 -1
  111. package/resources/web-scanner-rules.d.mts +1 -1
  112. package/resources/web-scanner-rules.d.ts +1 -1
  113. package/resources/web-scanners.d.mts +6 -7
  114. package/resources/web-scanners.d.mts.map +1 -1
  115. package/resources/web-scanners.d.ts +6 -7
  116. package/resources/web-scanners.d.ts.map +1 -1
  117. package/resources/web-scanners.js +5 -6
  118. package/resources/web-scanners.js.map +1 -1
  119. package/resources/web-scanners.mjs +5 -6
  120. package/resources/web-scanners.mjs.map +1 -1
  121. package/src/client.ts +13 -0
  122. package/src/resources/consent-analytics.ts +4 -2
  123. package/src/resources/consent-settings.ts +11 -9
  124. package/src/resources/data-governance.ts +7 -7
  125. package/src/resources/destinations.ts +9 -2
  126. package/src/resources/heatmap-pages.ts +4 -5
  127. package/src/resources/index.ts +5 -0
  128. package/src/resources/locations.ts +3 -3
  129. package/src/resources/mappings.ts +5 -6
  130. package/src/resources/sources.ts +6 -5
  131. package/src/resources/tag-manager-asset-folders.ts +64 -0
  132. package/src/resources/tag-manager-tags.ts +33 -55
  133. package/src/resources/tag-manager-triggers.ts +33 -45
  134. package/src/resources/tag-manager-variables.ts +25 -45
  135. package/src/resources/tag-managers.ts +8 -4
  136. package/src/resources/web-scanner-rules.ts +1 -1
  137. package/src/resources/web-scanners.ts +6 -7
  138. package/src/version.ts +1 -1
  139. package/version.d.mts +1 -1
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
  142. package/version.mjs +1 -1
@@ -47,7 +47,8 @@ export class TagManagerVariables extends APIResource {
47
47
  /**
48
48
  * Partially update a variable. Only the fields you send are changed. Name
49
49
  * collisions with other variables in the same tag manager return 409 with the
50
- * reason in the response `error` field. Requires scope: tagManagers:update
50
+ * reason in the response `error` field. To assign a variable to a folder, use
51
+ * `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
51
52
  */
52
53
  update(
53
54
  id: string,
@@ -93,15 +94,12 @@ export interface TagManagerVariableListResponse {
93
94
  tagManagerId: string;
94
95
 
95
96
  /**
96
- * Variable type (e.g. `DataLayer`, `Constant`, `LookUpTable`).
97
+ * Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
98
+ * `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
99
+ * `GET /tag-manager-variables/types` for the canonical set.
97
100
  */
98
101
  type: string;
99
102
 
100
- /**
101
- * Variable implementation identifier (typically equals `type`).
102
- */
103
- Variable: string;
104
-
105
103
  createdAt?: string | null;
106
104
 
107
105
  /**
@@ -113,8 +111,8 @@ export interface TagManagerVariableListResponse {
113
111
  enabled?: boolean | null;
114
112
 
115
113
  /**
116
- * Folder this variable belongs to. Read-only on this endpoint — use the GraphQL
117
- * `assignTagManagerAssetToFolder` mutation to change.
114
+ * Folder this variable belongs to. Settable via PATCH — send a folder UUID to
115
+ * assign, or `null` to remove from its current folder.
118
116
  */
119
117
  folderId?: string | null;
120
118
 
@@ -141,15 +139,12 @@ export interface TagManagerVariableCreateResponse {
141
139
  tagManagerId: string;
142
140
 
143
141
  /**
144
- * Variable type (e.g. `DataLayer`, `Constant`, `LookUpTable`).
142
+ * Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
143
+ * `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
144
+ * `GET /tag-manager-variables/types` for the canonical set.
145
145
  */
146
146
  type: string;
147
147
 
148
- /**
149
- * Variable implementation identifier (typically equals `type`).
150
- */
151
- Variable: string;
152
-
153
148
  createdAt?: string | null;
154
149
 
155
150
  /**
@@ -161,8 +156,8 @@ export interface TagManagerVariableCreateResponse {
161
156
  enabled?: boolean | null;
162
157
 
163
158
  /**
164
- * Folder this variable belongs to. Read-only on this endpoint — use the GraphQL
165
- * `assignTagManagerAssetToFolder` mutation to change.
159
+ * Folder this variable belongs to. Settable via PATCH — send a folder UUID to
160
+ * assign, or `null` to remove from its current folder.
166
161
  */
167
162
  folderId?: string | null;
168
163
 
@@ -189,15 +184,12 @@ export interface TagManagerVariableRetrieveResponse {
189
184
  tagManagerId: string;
190
185
 
191
186
  /**
192
- * Variable type (e.g. `DataLayer`, `Constant`, `LookUpTable`).
187
+ * Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
188
+ * `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
189
+ * `GET /tag-manager-variables/types` for the canonical set.
193
190
  */
194
191
  type: string;
195
192
 
196
- /**
197
- * Variable implementation identifier (typically equals `type`).
198
- */
199
- Variable: string;
200
-
201
193
  createdAt?: string | null;
202
194
 
203
195
  /**
@@ -209,8 +201,8 @@ export interface TagManagerVariableRetrieveResponse {
209
201
  enabled?: boolean | null;
210
202
 
211
203
  /**
212
- * Folder this variable belongs to. Read-only on this endpoint — use the GraphQL
213
- * `assignTagManagerAssetToFolder` mutation to change.
204
+ * Folder this variable belongs to. Settable via PATCH — send a folder UUID to
205
+ * assign, or `null` to remove from its current folder.
214
206
  */
215
207
  folderId?: string | null;
216
208
 
@@ -237,15 +229,12 @@ export interface TagManagerVariableUpdateResponse {
237
229
  tagManagerId: string;
238
230
 
239
231
  /**
240
- * Variable type (e.g. `DataLayer`, `Constant`, `LookUpTable`).
232
+ * Variable type discriminator. Examples that exist today: `DataLayer`, `Constant`,
233
+ * `Cookie`, `Url`, `UrlParameter`, `Weekday`, `RandomNumber`. Pick from
234
+ * `GET /tag-manager-variables/types` for the canonical set.
241
235
  */
242
236
  type: string;
243
237
 
244
- /**
245
- * Variable implementation identifier (typically equals `type`).
246
- */
247
- Variable: string;
248
-
249
238
  createdAt?: string | null;
250
239
 
251
240
  /**
@@ -257,8 +246,8 @@ export interface TagManagerVariableUpdateResponse {
257
246
  enabled?: boolean | null;
258
247
 
259
248
  /**
260
- * Folder this variable belongs to. Read-only on this endpoint — use the GraphQL
261
- * `assignTagManagerAssetToFolder` mutation to change.
249
+ * Folder this variable belongs to. Settable via PATCH — send a folder UUID to
250
+ * assign, or `null` to remove from its current folder.
262
251
  */
263
252
  folderId?: string | null;
264
253
 
@@ -394,15 +383,11 @@ export interface TagManagerVariableCreateParams {
394
383
  tagManagerId: string;
395
384
 
396
385
  /**
397
- * Variable type discriminator.
386
+ * Variable type discriminator. Pick from `GET /tag-manager-variables/types` for
387
+ * the canonical set (e.g. `DataLayer`, `Constant`, `Cookie`, `Url`).
398
388
  */
399
389
  type: string;
400
390
 
401
- /**
402
- * Variable implementation identifier (typically equals `type`).
403
- */
404
- Variable: string;
405
-
406
391
  /**
407
392
  * Optional default value. JSON value of any type.
408
393
  */
@@ -443,14 +428,9 @@ export interface TagManagerVariableUpdateParams {
443
428
  parameters?: { [key: string]: unknown };
444
429
 
445
430
  /**
446
- * Updated variable type.
431
+ * Updated variable type. Pick from `GET /tag-manager-variables/types`.
447
432
  */
448
433
  type?: string;
449
-
450
- /**
451
- * Updated variable implementation identifier.
452
- */
453
- Variable?: string;
454
434
  }
455
435
 
456
436
  export declare namespace TagManagerVariables {
@@ -19,9 +19,13 @@ export class TagManagers extends APIResource {
19
19
  /**
20
20
  * Create a new tag manager. The server seeds three default triggers
21
21
  * (`Initialization`, `PageView`, `DomReady`) and one `OursInitTag` so the
22
- * container is immediately usable. Returns the bare entity. Accounts have a
23
- * per-account tag manager limit — exceeding it returns 409 with the reason in the
24
- * response `error` field. Requires scope: tagManagers:create
22
+ * container is immediately usable — call
23
+ * `GET /tag-manager-triggers?tagManagerId={id}` right after create to grab their
24
+ * server-assigned ids so you can reuse them in `fireTriggerIds` instead of
25
+ * redundantly creating a second `PageView`/`DomReady`/`Initialization`. Returns
26
+ * the bare entity. Accounts have a per-account tag manager limit — exceeding it
27
+ * returns 409 with the reason in the response `error` field. Requires scope:
28
+ * tagManagers:create
25
29
  */
26
30
  create(body: TagManagerCreateParams, options?: RequestOptions): APIPromise<TagManagerCreateResponse> {
27
31
  return this._client.post('/rest/v1/tag-managers', { body, ...options });
@@ -230,7 +234,7 @@ export interface TagManagerDeleteResponse {
230
234
  id: string;
231
235
 
232
236
  /**
233
- * True when the underlying mutation succeeded.
237
+ * True when the tag manager was deleted.
234
238
  */
235
239
  deleted: boolean;
236
240
  }
@@ -190,7 +190,7 @@ export interface WebScannerRuleDeleteResponse {
190
190
  id: string;
191
191
 
192
192
  /**
193
- * True when the underlying mutation succeeded.
193
+ * True when the rule was deleted.
194
194
  */
195
195
  deleted: boolean;
196
196
  }
@@ -61,13 +61,12 @@ export class WebScanners extends APIResource {
61
61
 
62
62
  /**
63
63
  * Manually kick off a new scan for this web scanner. The request body is empty (or
64
- * `{}`). A successful response means the enqueue request was accepted; because the
65
- * scan starts asynchronously, the returned entity may still reflect pre-trigger
66
- * values for fields like `scanStatus` and `lastScanStartedAt`. The trigger is
64
+ * `{}`). A successful response means the request was accepted; because the scan
65
+ * starts asynchronously, the returned entity may still reflect pre-trigger values
66
+ * for fields like `scanStatus` and `lastScanStartedAt`. The trigger is
67
67
  * rate-limited: a 409 is returned if another scan is already in flight, the
68
- * per-account cooldown has not elapsed, or the trigger backend rejects the
69
- * request; the reason is in the response `error` field. Requires scope:
70
- * webScanner:trigger
68
+ * per-account cooldown has not elapsed, or the request was otherwise rejected; the
69
+ * reason is in the response `error` field. Requires scope: webScanner:trigger
71
70
  */
72
71
  trigger(id: string, options?: RequestOptions): APIPromise<WebScannerTriggerResponse> {
73
72
  return this._client.post(path`/rest/v1/web-scanners/${id}/trigger`, options);
@@ -231,7 +230,7 @@ export interface WebScannerDeleteResponse {
231
230
  id: string;
232
231
 
233
232
  /**
234
- * True when the underlying mutation succeeded; the scanner and its rules are gone.
233
+ * True when the scanner and its rules were deleted.
235
234
  */
236
235
  deleted: boolean;
237
236
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.26.0'; // x-release-please-version
1
+ export const VERSION = '1.27.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.26.0";
1
+ export declare const VERSION = "1.27.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.26.0";
1
+ export declare const VERSION = "1.27.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.26.0'; // x-release-please-version
4
+ exports.VERSION = '1.27.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.26.0'; // x-release-please-version
1
+ export const VERSION = '1.27.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map