@oursprivacy/platform-sdk 1.47.0 → 1.49.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 (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/index.d.mts +1 -1
  10. package/resources/index.d.mts.map +1 -1
  11. package/resources/index.d.ts +1 -1
  12. package/resources/index.d.ts.map +1 -1
  13. package/resources/index.js.map +1 -1
  14. package/resources/index.mjs.map +1 -1
  15. package/resources/translation-widgets.d.mts +294 -1
  16. package/resources/translation-widgets.d.mts.map +1 -1
  17. package/resources/translation-widgets.d.ts +294 -1
  18. package/resources/translation-widgets.d.ts.map +1 -1
  19. package/resources/translation-widgets.js +54 -0
  20. package/resources/translation-widgets.js.map +1 -1
  21. package/resources/translation-widgets.mjs +54 -0
  22. package/resources/translation-widgets.mjs.map +1 -1
  23. package/resources/web-scanners.d.mts +57 -14
  24. package/resources/web-scanners.d.mts.map +1 -1
  25. package/resources/web-scanners.d.ts +57 -14
  26. package/resources/web-scanners.d.ts.map +1 -1
  27. package/resources/web-scanners.js +15 -14
  28. package/resources/web-scanners.js.map +1 -1
  29. package/resources/web-scanners.mjs +15 -14
  30. package/resources/web-scanners.mjs.map +1 -1
  31. package/src/client.ts +8 -0
  32. package/src/resources/index.ts +4 -0
  33. package/src/resources/translation-widgets.ts +431 -0
  34. package/src/resources/web-scanners.ts +129 -14
  35. package/src/version.ts +1 -1
  36. package/version.d.mts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
@@ -2,13 +2,257 @@ import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class TranslationWidgets extends APIResource {
5
+ /**
6
+ * List every translation widget configured on the account, including the domains
7
+ * it runs on, its appearance settings, and the languages it offers. Not paginated
8
+ * — widgets are capped by the account's translation widget limit. Requires scope:
9
+ * translationWidget:list
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const translationWidgets =
14
+ * await client.translationWidgets.list();
15
+ * ```
16
+ */
17
+ list(options?: RequestOptions): APIPromise<TranslationWidgetListResponse>;
18
+ /**
19
+ * Create a translation widget. Every field is optional — anything omitted comes
20
+ * back as `null` and the widget falls back to its built-in appearance, and
21
+ * omitting `enabledLanguages` offers every supported language. Returns the full
22
+ * widget, including its id, so it can be installed without a follow-up request.
23
+ * Requires scope: translationWidget:create
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const translationWidget =
28
+ * await client.translationWidgets.create();
29
+ * ```
30
+ */
31
+ create(body: TranslationWidgetCreateParams, options?: RequestOptions): APIPromise<TranslationWidgetCreateResponse>;
32
+ /**
33
+ * Fetch one translation widget by its id. Returns 404 when it does not exist.
34
+ * Requires scope: translationWidget:find
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const translationWidget =
39
+ * await client.translationWidgets.retrieve(
40
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
41
+ * );
42
+ * ```
43
+ */
44
+ retrieve(id: string, options?: RequestOptions): APIPromise<TranslationWidgetRetrieveResponse>;
5
45
  /**
6
46
  * Return usage totals and language, host, and page breakdowns for one translation
7
47
  * widget over the requested date range. Requires scope:
8
48
  * report:translation-analytics
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * const response = await client.translationWidgets.analytics(
53
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
54
+ * { from: '2019-12-27', to: '2019-12-27' },
55
+ * );
56
+ * ```
9
57
  */
10
58
  analytics(id: string, query: TranslationWidgetAnalyticsParams, options?: RequestOptions): APIPromise<TranslationWidgetAnalyticsResponse>;
11
59
  }
60
+ export interface TranslationWidgetListResponse {
61
+ /**
62
+ * Every translation widget on the account. Not paginated — widgets are capped by
63
+ * the account's translation widget limit, so the full set always fits in one
64
+ * response.
65
+ */
66
+ entities: Array<TranslationWidgetListResponse.Entity>;
67
+ }
68
+ export declare namespace TranslationWidgetListResponse {
69
+ interface Entity {
70
+ /**
71
+ * Unique identifier for the translation widget.
72
+ */
73
+ id: string;
74
+ /**
75
+ * ISO-8601 timestamp when the widget was created.
76
+ */
77
+ createdAt: string;
78
+ /**
79
+ * Accent colour for the widget button and modal, as a hex value — `#RGB`,
80
+ * `#RRGGBB`, or `#RRGGBBAA`.
81
+ */
82
+ brandColor?: string | null;
83
+ /**
84
+ * Custom domain used to serve the widget script (e.g. `translate.example.com`).
85
+ * Leave null to use the default Ours Privacy domain. Send the bare host — no
86
+ * scheme, port, or path.
87
+ */
88
+ customDomain?: string | null;
89
+ /**
90
+ * Languages offered in the widget, as ISO codes such as `en`, `es`, `fr`, `zh-TW`.
91
+ * Omit or send an empty array to offer every supported language. An unrecognised
92
+ * code is rejected with 400 rather than silently ignored.
93
+ */
94
+ enabledLanguages?: Array<string> | null;
95
+ /**
96
+ * Layout of the language-selection modal: `standard` list, `grid` of languages, or
97
+ * a `dropdown`.
98
+ */
99
+ modalVariant?: 'standard' | 'grid' | 'dropdown' | null;
100
+ /**
101
+ * Terms the widget keeps in their original form in every language — brand names,
102
+ * product names, and the like. Up to 500 terms of 200 characters each; duplicates
103
+ * and purely numeric terms are dropped.
104
+ */
105
+ noTranslateTerms?: Array<string> | null;
106
+ /**
107
+ * Corner of the viewport the widget button is anchored to.
108
+ */
109
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | null;
110
+ /**
111
+ * Colour scheme the widget renders in.
112
+ */
113
+ theme?: 'light' | 'dark' | null;
114
+ /**
115
+ * ISO-8601 timestamp of the most recent change. Matches `createdAt` on a widget
116
+ * that has never been edited.
117
+ */
118
+ updatedAt?: string | null;
119
+ /**
120
+ * Domains where this widget is allowed to run. The widget refuses to load anywhere
121
+ * else, so a missing host means the widget never appears. Send bare hosts — no
122
+ * scheme, port, or path.
123
+ */
124
+ whitelistedDomains?: Array<string> | null;
125
+ /**
126
+ * Visual style of the widget button: `compact` for an icon-sized button,
127
+ * `extended` for a labelled button, `minimal` for the least intrusive treatment.
128
+ */
129
+ widgetVariant?: 'compact' | 'extended' | 'minimal' | null;
130
+ }
131
+ }
132
+ export interface TranslationWidgetCreateResponse {
133
+ /**
134
+ * Unique identifier for the translation widget.
135
+ */
136
+ id: string;
137
+ /**
138
+ * ISO-8601 timestamp when the widget was created.
139
+ */
140
+ createdAt: string;
141
+ /**
142
+ * Accent colour for the widget button and modal, as a hex value — `#RGB`,
143
+ * `#RRGGBB`, or `#RRGGBBAA`.
144
+ */
145
+ brandColor?: string | null;
146
+ /**
147
+ * Custom domain used to serve the widget script (e.g. `translate.example.com`).
148
+ * Leave null to use the default Ours Privacy domain. Send the bare host — no
149
+ * scheme, port, or path.
150
+ */
151
+ customDomain?: string | null;
152
+ /**
153
+ * Languages offered in the widget, as ISO codes such as `en`, `es`, `fr`, `zh-TW`.
154
+ * Omit or send an empty array to offer every supported language. An unrecognised
155
+ * code is rejected with 400 rather than silently ignored.
156
+ */
157
+ enabledLanguages?: Array<string> | null;
158
+ /**
159
+ * Layout of the language-selection modal: `standard` list, `grid` of languages, or
160
+ * a `dropdown`.
161
+ */
162
+ modalVariant?: 'standard' | 'grid' | 'dropdown' | null;
163
+ /**
164
+ * Terms the widget keeps in their original form in every language — brand names,
165
+ * product names, and the like. Up to 500 terms of 200 characters each; duplicates
166
+ * and purely numeric terms are dropped.
167
+ */
168
+ noTranslateTerms?: Array<string> | null;
169
+ /**
170
+ * Corner of the viewport the widget button is anchored to.
171
+ */
172
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | null;
173
+ /**
174
+ * Colour scheme the widget renders in.
175
+ */
176
+ theme?: 'light' | 'dark' | null;
177
+ /**
178
+ * ISO-8601 timestamp of the most recent change. Matches `createdAt` on a widget
179
+ * that has never been edited.
180
+ */
181
+ updatedAt?: string | null;
182
+ /**
183
+ * Domains where this widget is allowed to run. The widget refuses to load anywhere
184
+ * else, so a missing host means the widget never appears. Send bare hosts — no
185
+ * scheme, port, or path.
186
+ */
187
+ whitelistedDomains?: Array<string> | null;
188
+ /**
189
+ * Visual style of the widget button: `compact` for an icon-sized button,
190
+ * `extended` for a labelled button, `minimal` for the least intrusive treatment.
191
+ */
192
+ widgetVariant?: 'compact' | 'extended' | 'minimal' | null;
193
+ }
194
+ export interface TranslationWidgetRetrieveResponse {
195
+ /**
196
+ * Unique identifier for the translation widget.
197
+ */
198
+ id: string;
199
+ /**
200
+ * ISO-8601 timestamp when the widget was created.
201
+ */
202
+ createdAt: string;
203
+ /**
204
+ * Accent colour for the widget button and modal, as a hex value — `#RGB`,
205
+ * `#RRGGBB`, or `#RRGGBBAA`.
206
+ */
207
+ brandColor?: string | null;
208
+ /**
209
+ * Custom domain used to serve the widget script (e.g. `translate.example.com`).
210
+ * Leave null to use the default Ours Privacy domain. Send the bare host — no
211
+ * scheme, port, or path.
212
+ */
213
+ customDomain?: string | null;
214
+ /**
215
+ * Languages offered in the widget, as ISO codes such as `en`, `es`, `fr`, `zh-TW`.
216
+ * Omit or send an empty array to offer every supported language. An unrecognised
217
+ * code is rejected with 400 rather than silently ignored.
218
+ */
219
+ enabledLanguages?: Array<string> | null;
220
+ /**
221
+ * Layout of the language-selection modal: `standard` list, `grid` of languages, or
222
+ * a `dropdown`.
223
+ */
224
+ modalVariant?: 'standard' | 'grid' | 'dropdown' | null;
225
+ /**
226
+ * Terms the widget keeps in their original form in every language — brand names,
227
+ * product names, and the like. Up to 500 terms of 200 characters each; duplicates
228
+ * and purely numeric terms are dropped.
229
+ */
230
+ noTranslateTerms?: Array<string> | null;
231
+ /**
232
+ * Corner of the viewport the widget button is anchored to.
233
+ */
234
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | null;
235
+ /**
236
+ * Colour scheme the widget renders in.
237
+ */
238
+ theme?: 'light' | 'dark' | null;
239
+ /**
240
+ * ISO-8601 timestamp of the most recent change. Matches `createdAt` on a widget
241
+ * that has never been edited.
242
+ */
243
+ updatedAt?: string | null;
244
+ /**
245
+ * Domains where this widget is allowed to run. The widget refuses to load anywhere
246
+ * else, so a missing host means the widget never appears. Send bare hosts — no
247
+ * scheme, port, or path.
248
+ */
249
+ whitelistedDomains?: Array<string> | null;
250
+ /**
251
+ * Visual style of the widget button: `compact` for an icon-sized button,
252
+ * `extended` for a labelled button, `minimal` for the least intrusive treatment.
253
+ */
254
+ widgetVariant?: 'compact' | 'extended' | 'minimal' | null;
255
+ }
12
256
  export interface TranslationWidgetAnalyticsResponse {
13
257
  byHost: Array<TranslationWidgetAnalyticsResponse.ByHost>;
14
258
  byLanguage: Array<TranslationWidgetAnalyticsResponse.ByLanguage>;
@@ -42,6 +286,55 @@ export declare namespace TranslationWidgetAnalyticsResponse {
42
286
  }
43
287
  }
44
288
  }
289
+ export interface TranslationWidgetCreateParams {
290
+ /**
291
+ * Accent colour for the widget button and modal, as a hex value — `#RGB`,
292
+ * `#RRGGBB`, or `#RRGGBBAA`.
293
+ */
294
+ brandColor?: string | null;
295
+ /**
296
+ * Custom domain used to serve the widget script (e.g. `translate.example.com`).
297
+ * Leave null to use the default Ours Privacy domain. Send the bare host — no
298
+ * scheme, port, or path.
299
+ */
300
+ customDomain?: string | null;
301
+ /**
302
+ * Languages offered in the widget, as ISO codes such as `en`, `es`, `fr`, `zh-TW`.
303
+ * Omit or send an empty array to offer every supported language. An unrecognised
304
+ * code is rejected with 400 rather than silently ignored.
305
+ */
306
+ enabledLanguages?: Array<'af' | 'sq' | 'am' | 'ar' | 'hy' | 'az' | 'bn' | 'bs' | 'bg' | 'ca' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fa' | 'tl' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'gu' | 'ht' | 'ha' | 'he' | 'hi' | 'hu' | 'is' | 'id' | 'ga' | 'it' | 'ja' | 'kn' | 'kk' | 'ko' | 'lv' | 'lt' | 'mk' | 'ms' | 'ml' | 'mt' | 'mr' | 'mn' | 'no' | 'ps' | 'pl' | 'pt' | 'pt-PT' | 'pa' | 'ro' | 'ru' | 'sr' | 'si' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'ta' | 'te' | 'th' | 'tr' | 'uk' | 'ur' | 'uz' | 'vi' | 'cy'> | null;
307
+ /**
308
+ * Layout of the language-selection modal: `standard` list, `grid` of languages, or
309
+ * a `dropdown`.
310
+ */
311
+ modalVariant?: 'standard' | 'grid' | 'dropdown';
312
+ /**
313
+ * Terms the widget keeps in their original form in every language — brand names,
314
+ * product names, and the like. Up to 500 terms of 200 characters each; duplicates
315
+ * and purely numeric terms are dropped.
316
+ */
317
+ noTranslateTerms?: Array<string> | null;
318
+ /**
319
+ * Corner of the viewport the widget button is anchored to.
320
+ */
321
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
322
+ /**
323
+ * Colour scheme the widget renders in.
324
+ */
325
+ theme?: 'light' | 'dark';
326
+ /**
327
+ * Domains where this widget is allowed to run. The widget refuses to load anywhere
328
+ * else, so a missing host means the widget never appears. Send bare hosts — no
329
+ * scheme, port, or path.
330
+ */
331
+ whitelistedDomains?: Array<string> | null;
332
+ /**
333
+ * Visual style of the widget button: `compact` for an icon-sized button,
334
+ * `extended` for a labelled button, `minimal` for the least intrusive treatment.
335
+ */
336
+ widgetVariant?: 'compact' | 'extended' | 'minimal';
337
+ }
45
338
  export interface TranslationWidgetAnalyticsParams {
46
339
  /**
47
340
  * Inclusive lower bound of the analytics window as `YYYY-MM-DD`.
@@ -57,6 +350,6 @@ export interface TranslationWidgetAnalyticsParams {
57
350
  limit?: number;
58
351
  }
59
352
  export declare namespace TranslationWidgets {
60
- export { type TranslationWidgetAnalyticsResponse as TranslationWidgetAnalyticsResponse, type TranslationWidgetAnalyticsParams as TranslationWidgetAnalyticsParams, };
353
+ export { type TranslationWidgetListResponse as TranslationWidgetListResponse, type TranslationWidgetCreateResponse as TranslationWidgetCreateResponse, type TranslationWidgetRetrieveResponse as TranslationWidgetRetrieveResponse, type TranslationWidgetAnalyticsResponse as TranslationWidgetAnalyticsResponse, type TranslationWidgetCreateParams as TranslationWidgetCreateParams, type TranslationWidgetAnalyticsParams as TranslationWidgetAnalyticsParams, };
61
354
  }
62
355
  //# sourceMappingURL=translation-widgets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translation-widgets.d.ts","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;OAIG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;CAGlD;AAED,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,KAAK,CAAC,kCAAkC,CAAC,MAAM,CAAC,CAAC;IAEzD,UAAU,EAAE,KAAK,CAAC,kCAAkC,CAAC,UAAU,CAAC,CAAC;IAEjE,aAAa,EAAE,MAAM,CAAC;IAEtB,QAAQ,EAAE,KAAK,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,iBAAiB,EAAE,MAAM,CAAC;IAE1B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC;QAEb,YAAY,EAAE,MAAM,CAAC;QAErB,WAAW,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,UAAU;QACzB,YAAY,EAAE,MAAM,CAAC;QAErB,YAAY,EAAE,MAAM,CAAC;QAErB,WAAW,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,OAAO;QACtB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAEtC,YAAY,EAAE,MAAM,CAAC;QAErB,WAAW,EAAE,MAAM,CAAC;QAEpB,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,UAAU;YACzB,YAAY,EAAE,MAAM,CAAC;YAErB,YAAY,EAAE,MAAM,CAAC;YAErB,WAAW,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
1
+ {"version":3,"file":"translation-widgets.d.ts","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAIzE;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,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IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP,GAAG,IAAI,CAAC;IAET;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;IAEhD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;IAErE;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE1C;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;CACpD;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;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,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -5,10 +5,64 @@ exports.TranslationWidgets = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const path_1 = require("../internal/utils/path.js");
7
7
  class TranslationWidgets extends resource_1.APIResource {
8
+ /**
9
+ * List every translation widget configured on the account, including the domains
10
+ * it runs on, its appearance settings, and the languages it offers. Not paginated
11
+ * — widgets are capped by the account's translation widget limit. Requires scope:
12
+ * translationWidget:list
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const translationWidgets =
17
+ * await client.translationWidgets.list();
18
+ * ```
19
+ */
20
+ list(options) {
21
+ return this._client.get('/rest/v1/translation-widgets', options);
22
+ }
23
+ /**
24
+ * Create a translation widget. Every field is optional — anything omitted comes
25
+ * back as `null` and the widget falls back to its built-in appearance, and
26
+ * omitting `enabledLanguages` offers every supported language. Returns the full
27
+ * widget, including its id, so it can be installed without a follow-up request.
28
+ * Requires scope: translationWidget:create
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const translationWidget =
33
+ * await client.translationWidgets.create();
34
+ * ```
35
+ */
36
+ create(body, options) {
37
+ return this._client.post('/rest/v1/translation-widgets', { body, ...options });
38
+ }
39
+ /**
40
+ * Fetch one translation widget by its id. Returns 404 when it does not exist.
41
+ * Requires scope: translationWidget:find
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const translationWidget =
46
+ * await client.translationWidgets.retrieve(
47
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
48
+ * );
49
+ * ```
50
+ */
51
+ retrieve(id, options) {
52
+ return this._client.get((0, path_1.path) `/rest/v1/translation-widgets/${id}`, options);
53
+ }
8
54
  /**
9
55
  * Return usage totals and language, host, and page breakdowns for one translation
10
56
  * widget over the requested date range. Requires scope:
11
57
  * report:translation-analytics
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response = await client.translationWidgets.analytics(
62
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
63
+ * { from: '2019-12-27', to: '2019-12-27' },
64
+ * );
65
+ * ```
12
66
  */
13
67
  analytics(id, query, options) {
14
68
  return this._client.get((0, path_1.path) `/rest/v1/translation-widgets/${id}/analytics`, { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"translation-widgets.js","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;OAIG;IACH,SAAS,CACP,EAAU,EACV,KAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAbD,gDAaC"}
1
+ {"version":3,"file":"translation-widgets.js","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;OAYG;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;;;;;;;;;;;OAWG;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;;;;;;;;;;;;OAYG;IACH,SAAS,CACP,EAAU,EACV,KAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAzED,gDAyEC"}
@@ -2,10 +2,64 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { path } from "../internal/utils/path.mjs";
4
4
  export class TranslationWidgets extends APIResource {
5
+ /**
6
+ * List every translation widget configured on the account, including the domains
7
+ * it runs on, its appearance settings, and the languages it offers. Not paginated
8
+ * — widgets are capped by the account's translation widget limit. Requires scope:
9
+ * translationWidget:list
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const translationWidgets =
14
+ * await client.translationWidgets.list();
15
+ * ```
16
+ */
17
+ list(options) {
18
+ return this._client.get('/rest/v1/translation-widgets', options);
19
+ }
20
+ /**
21
+ * Create a translation widget. Every field is optional — anything omitted comes
22
+ * back as `null` and the widget falls back to its built-in appearance, and
23
+ * omitting `enabledLanguages` offers every supported language. Returns the full
24
+ * widget, including its id, so it can be installed without a follow-up request.
25
+ * Requires scope: translationWidget:create
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const translationWidget =
30
+ * await client.translationWidgets.create();
31
+ * ```
32
+ */
33
+ create(body, options) {
34
+ return this._client.post('/rest/v1/translation-widgets', { body, ...options });
35
+ }
36
+ /**
37
+ * Fetch one translation widget by its id. Returns 404 when it does not exist.
38
+ * Requires scope: translationWidget:find
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const translationWidget =
43
+ * await client.translationWidgets.retrieve(
44
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(id, options) {
49
+ return this._client.get(path `/rest/v1/translation-widgets/${id}`, options);
50
+ }
5
51
  /**
6
52
  * Return usage totals and language, host, and page breakdowns for one translation
7
53
  * widget over the requested date range. Requires scope:
8
54
  * report:translation-analytics
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const response = await client.translationWidgets.analytics(
59
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
60
+ * { from: '2019-12-27', to: '2019-12-27' },
61
+ * );
62
+ * ```
9
63
  */
10
64
  analytics(id, query, options) {
11
65
  return this._client.get(path `/rest/v1/translation-widgets/${id}/analytics`, { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"translation-widgets.mjs","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;OAIG;IACH,SAAS,CACP,EAAU,EACV,KAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
1
+ {"version":3,"file":"translation-widgets.mjs","sourceRoot":"","sources":["../src/resources/translation-widgets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;;;OAYG;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;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CACP,EAAU,EACV,KAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
@@ -135,10 +135,9 @@ export declare class WebScanners extends APIResource {
135
135
  verificationRun(id: string, query: WebScannerVerificationRunParams, options?: RequestOptions): APIPromise<WebScannerVerificationRunResponse>;
136
136
  /**
137
137
  * List the one-page verification runs recorded for this scanner, newest first,
138
- * each with its own capture counts. This is how a fix is compared against the
139
- * attempts before it without reading each run individually. Verification runs are
140
- * isolated from monitor history and never affect inventory counts or the
141
- * monitor-wide last-scanned timestamp. Requires scope: webScanner:find
138
+ * each with its own capture counts. Verification runs are isolated from monitor
139
+ * history and never affect inventory counts or the monitor-wide last-scanned
140
+ * timestamp. Requires scope: webScanner:find
142
141
  *
143
142
  * @example
144
143
  * ```ts
@@ -150,16 +149,18 @@ export declare class WebScanners extends APIResource {
150
149
  verificationRuns(id: string, query?: WebScannerVerificationRunsParams | null | undefined, options?: RequestOptions): APIPromise<WebScannerVerificationRunsResponse>;
151
150
  /**
152
151
  * List the third-party trackers (requests) found on a scan run, with their risk,
153
- * category, the pages they were seen on, and whether each host is already covered
154
- * by a CMP consent service. Defaults to the latest run; pass `date` (an ISO-8601
155
- * timestamp; only the calendar day is used to select the run) to read an earlier
156
- * run. Documented exception to the cursor-pagination standard: paginates with
157
- * `limit` and `offset` because each run is an immutable snapshot. A host that is
158
- * neither covered (`coveredByCmp: false`) nor matched by a suppression rule still
159
- * needs a triage decision — resolve it by adding the host to a CMP consent service
160
- * or by creating a suppression rule with `POST /rest/v1/web-scanner-rules`. Use
161
- * `GET /rest/v1/web-scanners/{id}/summary` for the rolled-up counts. Requires
162
- * scope: webScanner:find
152
+ * category, the pages they were seen on, redacted deterministic PII/PHI data-flow
153
+ * metadata, and whether each host is already covered by a CMP consent service.
154
+ * Data-flow findings include only recipient metadata, categories, safe field
155
+ * names, and counts; query and body values are never returned. Defaults to the
156
+ * latest run; pass `date` (an ISO-8601 timestamp; only the calendar day is used to
157
+ * select the run) to read an earlier run. Documented exception to the
158
+ * cursor-pagination standard: paginates with `limit` and `offset` because each run
159
+ * is an immutable snapshot. A host that is neither covered (`coveredByCmp: false`)
160
+ * nor matched by a suppression rule still needs a triage decision — resolve it by
161
+ * adding the host to a CMP consent service or by creating a suppression rule with
162
+ * `POST /rest/v1/web-scanner-rules`. Use `GET /rest/v1/web-scanners/{id}/summary`
163
+ * for the rolled-up counts. Requires scope: webScanner:find
163
164
  *
164
165
  * @example
165
166
  * ```ts
@@ -486,6 +487,7 @@ export declare namespace WebScannerFindingsResponse {
486
487
  category?: string | null;
487
488
  cookies?: Array<Item.Cookie> | null;
488
489
  coveredByVendorLabel?: string | null;
490
+ dataFlow?: Item.DataFlow | null;
489
491
  displayName?: string | null;
490
492
  privacyKeywords?: Array<string> | null;
491
493
  risk?: string | null;
@@ -497,6 +499,26 @@ export declare namespace WebScannerFindingsResponse {
497
499
  path?: string | null;
498
500
  value?: string | null;
499
501
  }
502
+ interface DataFlow {
503
+ categories: Array<'credit_card' | 'date_of_birth' | 'diagnosis' | 'email' | 'health_condition' | 'health_plan_id' | 'ip_address' | 'medical_record_number' | 'medication' | 'phone' | 'ssn'>;
504
+ recipient: DataFlow.Recipient;
505
+ requestCount: number;
506
+ signals: Array<DataFlow.Signal>;
507
+ }
508
+ namespace DataFlow {
509
+ interface Recipient {
510
+ hostname: string;
511
+ category?: string | null;
512
+ displayName?: string | null;
513
+ risk?: string | null;
514
+ }
515
+ interface Signal {
516
+ category: 'credit_card' | 'date_of_birth' | 'diagnosis' | 'email' | 'health_condition' | 'health_plan_id' | 'ip_address' | 'medical_record_number' | 'medication' | 'phone' | 'ssn';
517
+ source: 'query_parameter' | 'request_body';
518
+ encoding?: string | null;
519
+ field?: string | null;
520
+ }
521
+ }
500
522
  }
501
523
  }
502
524
  export interface WebScannerCookiesResponse {
@@ -605,6 +627,7 @@ export declare namespace WebScannerSummaryResponse {
605
627
  category?: string | null;
606
628
  cookies?: Array<TopUncoveredHost.Cookie> | null;
607
629
  coveredByVendorLabel?: string | null;
630
+ dataFlow?: TopUncoveredHost.DataFlow | null;
608
631
  displayName?: string | null;
609
632
  privacyKeywords?: Array<string> | null;
610
633
  risk?: string | null;
@@ -616,6 +639,26 @@ export declare namespace WebScannerSummaryResponse {
616
639
  path?: string | null;
617
640
  value?: string | null;
618
641
  }
642
+ interface DataFlow {
643
+ categories: Array<'credit_card' | 'date_of_birth' | 'diagnosis' | 'email' | 'health_condition' | 'health_plan_id' | 'ip_address' | 'medical_record_number' | 'medication' | 'phone' | 'ssn'>;
644
+ recipient: DataFlow.Recipient;
645
+ requestCount: number;
646
+ signals: Array<DataFlow.Signal>;
647
+ }
648
+ namespace DataFlow {
649
+ interface Recipient {
650
+ hostname: string;
651
+ category?: string | null;
652
+ displayName?: string | null;
653
+ risk?: string | null;
654
+ }
655
+ interface Signal {
656
+ category: 'credit_card' | 'date_of_birth' | 'diagnosis' | 'email' | 'health_condition' | 'health_plan_id' | 'ip_address' | 'medical_record_number' | 'medication' | 'phone' | 'ssn';
657
+ source: 'query_parameter' | 'request_body';
658
+ encoding?: string | null;
659
+ field?: string | null;
660
+ }
661
+ }
619
662
  }
620
663
  /**
621
664
  * Automated accessibility (WCAG 2.1/2.2 A + AA) rollup for the run: `score` is a