@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.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/consent-settings.d.mts +5930 -442
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +5930 -442
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +75 -15
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +75 -15
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/default-mappings.d.mts +207 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +207 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/destinations.d.mts +33 -13
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +33 -13
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +117 -14
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +117 -14
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +3979 -253
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +3979 -253
- package/resources/experiments.d.ts.map +1 -1
- package/resources/funnels.d.mts +648 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +648 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +580 -16
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +580 -16
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/locations.d.mts +25 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +25 -5
- package/resources/locations.d.ts.map +1 -1
- package/resources/mappings.d.mts +540 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +540 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +22 -0
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +22 -0
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/replay-settings.d.mts +117 -3
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +117 -3
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/session-replays.d.mts +5 -0
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +5 -0
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/short-links.d.mts +722 -10
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +722 -10
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +86 -11
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +86 -11
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +3 -1
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +3 -1
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-triggers.d.mts +3 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +3 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-variables.d.mts +39 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +39 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-managers.d.mts +14 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +14 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +8 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +8 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +67 -11
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +67 -11
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +82 -37
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +82 -37
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +5 -5
- package/resources/versions.mjs +5 -5
- package/resources/video-channels.d.mts +32 -4
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +32 -4
- package/resources/video-channels.d.ts.map +1 -1
- package/src/client.ts +36 -0
- package/src/resources/consent-settings.ts +7287 -374
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +45 -15
- package/src/resources/default-mappings.ts +303 -3
- package/src/resources/destinations.ts +23 -8
- package/src/resources/experiment-variants.ts +131 -14
- package/src/resources/experiments.ts +8021 -443
- package/src/resources/funnels.ts +1355 -7
- package/src/resources/index.ts +15 -0
- package/src/resources/journey-flows.ts +1224 -16
- package/src/resources/locations.ts +35 -5
- package/src/resources/mappings.ts +794 -19
- package/src/resources/me.ts +37 -0
- package/src/resources/replay-settings.ts +138 -3
- package/src/resources/session-replays.ts +6 -0
- package/src/resources/short-links.ts +872 -10
- package/src/resources/sources.ts +96 -11
- package/src/resources/tag-manager-tags.ts +7 -1
- package/src/resources/tag-manager-triggers.ts +7 -1
- package/src/resources/tag-manager-variables.ts +91 -13
- package/src/resources/tag-managers.ts +25 -0
- package/src/resources/test-events.ts +47 -11
- package/src/resources/versions.ts +83 -37
- package/src/resources/video-channels.ts +44 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -143,7 +143,7 @@ export interface ShortLinkListResponse {
|
|
|
143
143
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
144
144
|
* may return null.
|
|
145
145
|
*/
|
|
146
|
-
shortLinkDesign?:
|
|
146
|
+
shortLinkDesign?: ShortLinkListResponse.ShortLinkDesign | null;
|
|
147
147
|
/**
|
|
148
148
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
149
149
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -151,6 +151,110 @@ export interface ShortLinkListResponse {
|
|
|
151
151
|
*/
|
|
152
152
|
shortUrl?: string | null;
|
|
153
153
|
}
|
|
154
|
+
export declare namespace ShortLinkListResponse {
|
|
155
|
+
/**
|
|
156
|
+
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
157
|
+
* may return null.
|
|
158
|
+
*/
|
|
159
|
+
interface ShortLinkDesign {
|
|
160
|
+
qr?: ShortLinkDesign.Qr | null;
|
|
161
|
+
utm?: ShortLinkDesign.Utm | null;
|
|
162
|
+
}
|
|
163
|
+
namespace ShortLinkDesign {
|
|
164
|
+
interface Qr {
|
|
165
|
+
/**
|
|
166
|
+
* Background color.
|
|
167
|
+
*/
|
|
168
|
+
bgColor?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Finder (corner) dot shape: `square` or `dot`.
|
|
171
|
+
*/
|
|
172
|
+
cornerDotStyle?: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
|
|
175
|
+
*/
|
|
176
|
+
cornerSquareStyle?: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
|
|
179
|
+
* `extra-rounded`.
|
|
180
|
+
*/
|
|
181
|
+
dotStyle?: string | null;
|
|
182
|
+
/**
|
|
183
|
+
* Foreground (module) color.
|
|
184
|
+
*/
|
|
185
|
+
fgColor?: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* Download frame: `square`, `rounded`, or `circle`.
|
|
188
|
+
*/
|
|
189
|
+
frameShape?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* A two-stop gradient fill for the QR modules.
|
|
192
|
+
*/
|
|
193
|
+
gradient?: Qr.Gradient | null;
|
|
194
|
+
/**
|
|
195
|
+
* Base64 data URL of a centered logo overlay.
|
|
196
|
+
*/
|
|
197
|
+
logo?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* Logo size as a fraction of the QR (0–0.4).
|
|
200
|
+
*/
|
|
201
|
+
logoSizeRatio?: number | null;
|
|
202
|
+
/**
|
|
203
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
204
|
+
*/
|
|
205
|
+
theme?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* When true, the background is exported transparent.
|
|
208
|
+
*/
|
|
209
|
+
transparentBackground?: boolean | null;
|
|
210
|
+
}
|
|
211
|
+
namespace Qr {
|
|
212
|
+
/**
|
|
213
|
+
* A two-stop gradient fill for the QR modules.
|
|
214
|
+
*/
|
|
215
|
+
interface Gradient {
|
|
216
|
+
/**
|
|
217
|
+
* Gradient end color.
|
|
218
|
+
*/
|
|
219
|
+
endColor: string;
|
|
220
|
+
/**
|
|
221
|
+
* Gradient start color.
|
|
222
|
+
*/
|
|
223
|
+
startColor: string;
|
|
224
|
+
/**
|
|
225
|
+
* Gradient type: `linear` or `radial`.
|
|
226
|
+
*/
|
|
227
|
+
type: string;
|
|
228
|
+
/**
|
|
229
|
+
* Rotation in radians (linear gradients only).
|
|
230
|
+
*/
|
|
231
|
+
rotation?: number | null;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
interface Utm {
|
|
235
|
+
/**
|
|
236
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
237
|
+
*/
|
|
238
|
+
campaign?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* The `utm_content` value.
|
|
241
|
+
*/
|
|
242
|
+
content?: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* The `utm_medium` value.
|
|
245
|
+
*/
|
|
246
|
+
medium?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* The `utm_source` value.
|
|
249
|
+
*/
|
|
250
|
+
source?: string | null;
|
|
251
|
+
/**
|
|
252
|
+
* The `utm_term` value.
|
|
253
|
+
*/
|
|
254
|
+
term?: string | null;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
154
258
|
export interface ShortLinkCreateResponse {
|
|
155
259
|
id: string;
|
|
156
260
|
/**
|
|
@@ -192,7 +296,7 @@ export interface ShortLinkCreateResponse {
|
|
|
192
296
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
193
297
|
* may return null.
|
|
194
298
|
*/
|
|
195
|
-
shortLinkDesign?:
|
|
299
|
+
shortLinkDesign?: ShortLinkCreateResponse.ShortLinkDesign | null;
|
|
196
300
|
/**
|
|
197
301
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
198
302
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -200,6 +304,110 @@ export interface ShortLinkCreateResponse {
|
|
|
200
304
|
*/
|
|
201
305
|
shortUrl?: string | null;
|
|
202
306
|
}
|
|
307
|
+
export declare namespace ShortLinkCreateResponse {
|
|
308
|
+
/**
|
|
309
|
+
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
310
|
+
* may return null.
|
|
311
|
+
*/
|
|
312
|
+
interface ShortLinkDesign {
|
|
313
|
+
qr?: ShortLinkDesign.Qr | null;
|
|
314
|
+
utm?: ShortLinkDesign.Utm | null;
|
|
315
|
+
}
|
|
316
|
+
namespace ShortLinkDesign {
|
|
317
|
+
interface Qr {
|
|
318
|
+
/**
|
|
319
|
+
* Background color.
|
|
320
|
+
*/
|
|
321
|
+
bgColor?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* Finder (corner) dot shape: `square` or `dot`.
|
|
324
|
+
*/
|
|
325
|
+
cornerDotStyle?: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
|
|
328
|
+
*/
|
|
329
|
+
cornerSquareStyle?: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
|
|
332
|
+
* `extra-rounded`.
|
|
333
|
+
*/
|
|
334
|
+
dotStyle?: string | null;
|
|
335
|
+
/**
|
|
336
|
+
* Foreground (module) color.
|
|
337
|
+
*/
|
|
338
|
+
fgColor?: string | null;
|
|
339
|
+
/**
|
|
340
|
+
* Download frame: `square`, `rounded`, or `circle`.
|
|
341
|
+
*/
|
|
342
|
+
frameShape?: string | null;
|
|
343
|
+
/**
|
|
344
|
+
* A two-stop gradient fill for the QR modules.
|
|
345
|
+
*/
|
|
346
|
+
gradient?: Qr.Gradient | null;
|
|
347
|
+
/**
|
|
348
|
+
* Base64 data URL of a centered logo overlay.
|
|
349
|
+
*/
|
|
350
|
+
logo?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Logo size as a fraction of the QR (0–0.4).
|
|
353
|
+
*/
|
|
354
|
+
logoSizeRatio?: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
357
|
+
*/
|
|
358
|
+
theme?: string | null;
|
|
359
|
+
/**
|
|
360
|
+
* When true, the background is exported transparent.
|
|
361
|
+
*/
|
|
362
|
+
transparentBackground?: boolean | null;
|
|
363
|
+
}
|
|
364
|
+
namespace Qr {
|
|
365
|
+
/**
|
|
366
|
+
* A two-stop gradient fill for the QR modules.
|
|
367
|
+
*/
|
|
368
|
+
interface Gradient {
|
|
369
|
+
/**
|
|
370
|
+
* Gradient end color.
|
|
371
|
+
*/
|
|
372
|
+
endColor: string;
|
|
373
|
+
/**
|
|
374
|
+
* Gradient start color.
|
|
375
|
+
*/
|
|
376
|
+
startColor: string;
|
|
377
|
+
/**
|
|
378
|
+
* Gradient type: `linear` or `radial`.
|
|
379
|
+
*/
|
|
380
|
+
type: string;
|
|
381
|
+
/**
|
|
382
|
+
* Rotation in radians (linear gradients only).
|
|
383
|
+
*/
|
|
384
|
+
rotation?: number | null;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
interface Utm {
|
|
388
|
+
/**
|
|
389
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
390
|
+
*/
|
|
391
|
+
campaign?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* The `utm_content` value.
|
|
394
|
+
*/
|
|
395
|
+
content?: string | null;
|
|
396
|
+
/**
|
|
397
|
+
* The `utm_medium` value.
|
|
398
|
+
*/
|
|
399
|
+
medium?: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* The `utm_source` value.
|
|
402
|
+
*/
|
|
403
|
+
source?: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* The `utm_term` value.
|
|
406
|
+
*/
|
|
407
|
+
term?: string | null;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
203
411
|
export interface ShortLinkRetrieveResponse {
|
|
204
412
|
id: string;
|
|
205
413
|
/**
|
|
@@ -241,7 +449,7 @@ export interface ShortLinkRetrieveResponse {
|
|
|
241
449
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
242
450
|
* may return null.
|
|
243
451
|
*/
|
|
244
|
-
shortLinkDesign?:
|
|
452
|
+
shortLinkDesign?: ShortLinkRetrieveResponse.ShortLinkDesign | null;
|
|
245
453
|
/**
|
|
246
454
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
247
455
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -249,6 +457,110 @@ export interface ShortLinkRetrieveResponse {
|
|
|
249
457
|
*/
|
|
250
458
|
shortUrl?: string | null;
|
|
251
459
|
}
|
|
460
|
+
export declare namespace ShortLinkRetrieveResponse {
|
|
461
|
+
/**
|
|
462
|
+
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
463
|
+
* may return null.
|
|
464
|
+
*/
|
|
465
|
+
interface ShortLinkDesign {
|
|
466
|
+
qr?: ShortLinkDesign.Qr | null;
|
|
467
|
+
utm?: ShortLinkDesign.Utm | null;
|
|
468
|
+
}
|
|
469
|
+
namespace ShortLinkDesign {
|
|
470
|
+
interface Qr {
|
|
471
|
+
/**
|
|
472
|
+
* Background color.
|
|
473
|
+
*/
|
|
474
|
+
bgColor?: string | null;
|
|
475
|
+
/**
|
|
476
|
+
* Finder (corner) dot shape: `square` or `dot`.
|
|
477
|
+
*/
|
|
478
|
+
cornerDotStyle?: string | null;
|
|
479
|
+
/**
|
|
480
|
+
* Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
|
|
481
|
+
*/
|
|
482
|
+
cornerSquareStyle?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
|
|
485
|
+
* `extra-rounded`.
|
|
486
|
+
*/
|
|
487
|
+
dotStyle?: string | null;
|
|
488
|
+
/**
|
|
489
|
+
* Foreground (module) color.
|
|
490
|
+
*/
|
|
491
|
+
fgColor?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Download frame: `square`, `rounded`, or `circle`.
|
|
494
|
+
*/
|
|
495
|
+
frameShape?: string | null;
|
|
496
|
+
/**
|
|
497
|
+
* A two-stop gradient fill for the QR modules.
|
|
498
|
+
*/
|
|
499
|
+
gradient?: Qr.Gradient | null;
|
|
500
|
+
/**
|
|
501
|
+
* Base64 data URL of a centered logo overlay.
|
|
502
|
+
*/
|
|
503
|
+
logo?: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* Logo size as a fraction of the QR (0–0.4).
|
|
506
|
+
*/
|
|
507
|
+
logoSizeRatio?: number | null;
|
|
508
|
+
/**
|
|
509
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
510
|
+
*/
|
|
511
|
+
theme?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* When true, the background is exported transparent.
|
|
514
|
+
*/
|
|
515
|
+
transparentBackground?: boolean | null;
|
|
516
|
+
}
|
|
517
|
+
namespace Qr {
|
|
518
|
+
/**
|
|
519
|
+
* A two-stop gradient fill for the QR modules.
|
|
520
|
+
*/
|
|
521
|
+
interface Gradient {
|
|
522
|
+
/**
|
|
523
|
+
* Gradient end color.
|
|
524
|
+
*/
|
|
525
|
+
endColor: string;
|
|
526
|
+
/**
|
|
527
|
+
* Gradient start color.
|
|
528
|
+
*/
|
|
529
|
+
startColor: string;
|
|
530
|
+
/**
|
|
531
|
+
* Gradient type: `linear` or `radial`.
|
|
532
|
+
*/
|
|
533
|
+
type: string;
|
|
534
|
+
/**
|
|
535
|
+
* Rotation in radians (linear gradients only).
|
|
536
|
+
*/
|
|
537
|
+
rotation?: number | null;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
interface Utm {
|
|
541
|
+
/**
|
|
542
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
543
|
+
*/
|
|
544
|
+
campaign?: string | null;
|
|
545
|
+
/**
|
|
546
|
+
* The `utm_content` value.
|
|
547
|
+
*/
|
|
548
|
+
content?: string | null;
|
|
549
|
+
/**
|
|
550
|
+
* The `utm_medium` value.
|
|
551
|
+
*/
|
|
552
|
+
medium?: string | null;
|
|
553
|
+
/**
|
|
554
|
+
* The `utm_source` value.
|
|
555
|
+
*/
|
|
556
|
+
source?: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* The `utm_term` value.
|
|
559
|
+
*/
|
|
560
|
+
term?: string | null;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
252
564
|
export interface ShortLinkUpdateResponse {
|
|
253
565
|
id: string;
|
|
254
566
|
/**
|
|
@@ -290,7 +602,7 @@ export interface ShortLinkUpdateResponse {
|
|
|
290
602
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
291
603
|
* may return null.
|
|
292
604
|
*/
|
|
293
|
-
shortLinkDesign?:
|
|
605
|
+
shortLinkDesign?: ShortLinkUpdateResponse.ShortLinkDesign | null;
|
|
294
606
|
/**
|
|
295
607
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
296
608
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -298,6 +610,110 @@ export interface ShortLinkUpdateResponse {
|
|
|
298
610
|
*/
|
|
299
611
|
shortUrl?: string | null;
|
|
300
612
|
}
|
|
613
|
+
export declare namespace ShortLinkUpdateResponse {
|
|
614
|
+
/**
|
|
615
|
+
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
616
|
+
* may return null.
|
|
617
|
+
*/
|
|
618
|
+
interface ShortLinkDesign {
|
|
619
|
+
qr?: ShortLinkDesign.Qr | null;
|
|
620
|
+
utm?: ShortLinkDesign.Utm | null;
|
|
621
|
+
}
|
|
622
|
+
namespace ShortLinkDesign {
|
|
623
|
+
interface Qr {
|
|
624
|
+
/**
|
|
625
|
+
* Background color.
|
|
626
|
+
*/
|
|
627
|
+
bgColor?: string | null;
|
|
628
|
+
/**
|
|
629
|
+
* Finder (corner) dot shape: `square` or `dot`.
|
|
630
|
+
*/
|
|
631
|
+
cornerDotStyle?: string | null;
|
|
632
|
+
/**
|
|
633
|
+
* Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
|
|
634
|
+
*/
|
|
635
|
+
cornerSquareStyle?: string | null;
|
|
636
|
+
/**
|
|
637
|
+
* Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
|
|
638
|
+
* `extra-rounded`.
|
|
639
|
+
*/
|
|
640
|
+
dotStyle?: string | null;
|
|
641
|
+
/**
|
|
642
|
+
* Foreground (module) color.
|
|
643
|
+
*/
|
|
644
|
+
fgColor?: string | null;
|
|
645
|
+
/**
|
|
646
|
+
* Download frame: `square`, `rounded`, or `circle`.
|
|
647
|
+
*/
|
|
648
|
+
frameShape?: string | null;
|
|
649
|
+
/**
|
|
650
|
+
* A two-stop gradient fill for the QR modules.
|
|
651
|
+
*/
|
|
652
|
+
gradient?: Qr.Gradient | null;
|
|
653
|
+
/**
|
|
654
|
+
* Base64 data URL of a centered logo overlay.
|
|
655
|
+
*/
|
|
656
|
+
logo?: string | null;
|
|
657
|
+
/**
|
|
658
|
+
* Logo size as a fraction of the QR (0–0.4).
|
|
659
|
+
*/
|
|
660
|
+
logoSizeRatio?: number | null;
|
|
661
|
+
/**
|
|
662
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
663
|
+
*/
|
|
664
|
+
theme?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* When true, the background is exported transparent.
|
|
667
|
+
*/
|
|
668
|
+
transparentBackground?: boolean | null;
|
|
669
|
+
}
|
|
670
|
+
namespace Qr {
|
|
671
|
+
/**
|
|
672
|
+
* A two-stop gradient fill for the QR modules.
|
|
673
|
+
*/
|
|
674
|
+
interface Gradient {
|
|
675
|
+
/**
|
|
676
|
+
* Gradient end color.
|
|
677
|
+
*/
|
|
678
|
+
endColor: string;
|
|
679
|
+
/**
|
|
680
|
+
* Gradient start color.
|
|
681
|
+
*/
|
|
682
|
+
startColor: string;
|
|
683
|
+
/**
|
|
684
|
+
* Gradient type: `linear` or `radial`.
|
|
685
|
+
*/
|
|
686
|
+
type: string;
|
|
687
|
+
/**
|
|
688
|
+
* Rotation in radians (linear gradients only).
|
|
689
|
+
*/
|
|
690
|
+
rotation?: number | null;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
interface Utm {
|
|
694
|
+
/**
|
|
695
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
696
|
+
*/
|
|
697
|
+
campaign?: string | null;
|
|
698
|
+
/**
|
|
699
|
+
* The `utm_content` value.
|
|
700
|
+
*/
|
|
701
|
+
content?: string | null;
|
|
702
|
+
/**
|
|
703
|
+
* The `utm_medium` value.
|
|
704
|
+
*/
|
|
705
|
+
medium?: string | null;
|
|
706
|
+
/**
|
|
707
|
+
* The `utm_source` value.
|
|
708
|
+
*/
|
|
709
|
+
source?: string | null;
|
|
710
|
+
/**
|
|
711
|
+
* The `utm_term` value.
|
|
712
|
+
*/
|
|
713
|
+
term?: string | null;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
301
717
|
export interface ShortLinkDeleteResponse {
|
|
302
718
|
deleted: true;
|
|
303
719
|
}
|
|
@@ -342,7 +758,7 @@ export interface ShortLinkCloneResponse {
|
|
|
342
758
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
343
759
|
* may return null.
|
|
344
760
|
*/
|
|
345
|
-
shortLinkDesign?:
|
|
761
|
+
shortLinkDesign?: ShortLinkCloneResponse.ShortLinkDesign | null;
|
|
346
762
|
/**
|
|
347
763
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
348
764
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -350,6 +766,110 @@ export interface ShortLinkCloneResponse {
|
|
|
350
766
|
*/
|
|
351
767
|
shortUrl?: string | null;
|
|
352
768
|
}
|
|
769
|
+
export declare namespace ShortLinkCloneResponse {
|
|
770
|
+
/**
|
|
771
|
+
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
772
|
+
* may return null.
|
|
773
|
+
*/
|
|
774
|
+
interface ShortLinkDesign {
|
|
775
|
+
qr?: ShortLinkDesign.Qr | null;
|
|
776
|
+
utm?: ShortLinkDesign.Utm | null;
|
|
777
|
+
}
|
|
778
|
+
namespace ShortLinkDesign {
|
|
779
|
+
interface Qr {
|
|
780
|
+
/**
|
|
781
|
+
* Background color.
|
|
782
|
+
*/
|
|
783
|
+
bgColor?: string | null;
|
|
784
|
+
/**
|
|
785
|
+
* Finder (corner) dot shape: `square` or `dot`.
|
|
786
|
+
*/
|
|
787
|
+
cornerDotStyle?: string | null;
|
|
788
|
+
/**
|
|
789
|
+
* Finder (corner) square shape: `square`, `dot`, or `extra-rounded`.
|
|
790
|
+
*/
|
|
791
|
+
cornerSquareStyle?: string | null;
|
|
792
|
+
/**
|
|
793
|
+
* Module shape: `square`, `rounded`, `dots`, `classy`, `classy-rounded`, or
|
|
794
|
+
* `extra-rounded`.
|
|
795
|
+
*/
|
|
796
|
+
dotStyle?: string | null;
|
|
797
|
+
/**
|
|
798
|
+
* Foreground (module) color.
|
|
799
|
+
*/
|
|
800
|
+
fgColor?: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* Download frame: `square`, `rounded`, or `circle`.
|
|
803
|
+
*/
|
|
804
|
+
frameShape?: string | null;
|
|
805
|
+
/**
|
|
806
|
+
* A two-stop gradient fill for the QR modules.
|
|
807
|
+
*/
|
|
808
|
+
gradient?: Qr.Gradient | null;
|
|
809
|
+
/**
|
|
810
|
+
* Base64 data URL of a centered logo overlay.
|
|
811
|
+
*/
|
|
812
|
+
logo?: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* Logo size as a fraction of the QR (0–0.4).
|
|
815
|
+
*/
|
|
816
|
+
logoSizeRatio?: number | null;
|
|
817
|
+
/**
|
|
818
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
819
|
+
*/
|
|
820
|
+
theme?: string | null;
|
|
821
|
+
/**
|
|
822
|
+
* When true, the background is exported transparent.
|
|
823
|
+
*/
|
|
824
|
+
transparentBackground?: boolean | null;
|
|
825
|
+
}
|
|
826
|
+
namespace Qr {
|
|
827
|
+
/**
|
|
828
|
+
* A two-stop gradient fill for the QR modules.
|
|
829
|
+
*/
|
|
830
|
+
interface Gradient {
|
|
831
|
+
/**
|
|
832
|
+
* Gradient end color.
|
|
833
|
+
*/
|
|
834
|
+
endColor: string;
|
|
835
|
+
/**
|
|
836
|
+
* Gradient start color.
|
|
837
|
+
*/
|
|
838
|
+
startColor: string;
|
|
839
|
+
/**
|
|
840
|
+
* Gradient type: `linear` or `radial`.
|
|
841
|
+
*/
|
|
842
|
+
type: string;
|
|
843
|
+
/**
|
|
844
|
+
* Rotation in radians (linear gradients only).
|
|
845
|
+
*/
|
|
846
|
+
rotation?: number | null;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
interface Utm {
|
|
850
|
+
/**
|
|
851
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
852
|
+
*/
|
|
853
|
+
campaign?: string | null;
|
|
854
|
+
/**
|
|
855
|
+
* The `utm_content` value.
|
|
856
|
+
*/
|
|
857
|
+
content?: string | null;
|
|
858
|
+
/**
|
|
859
|
+
* The `utm_medium` value.
|
|
860
|
+
*/
|
|
861
|
+
medium?: string | null;
|
|
862
|
+
/**
|
|
863
|
+
* The `utm_source` value.
|
|
864
|
+
*/
|
|
865
|
+
source?: string | null;
|
|
866
|
+
/**
|
|
867
|
+
* The `utm_term` value.
|
|
868
|
+
*/
|
|
869
|
+
term?: string | null;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
353
873
|
export interface ShortLinkResultsResponse {
|
|
354
874
|
devices: Array<ShortLinkResultsResponse.Device>;
|
|
355
875
|
geoByCity: Array<ShortLinkResultsResponse.GeoByCity>;
|
|
@@ -411,7 +931,7 @@ export interface ShortLinkCreateParams {
|
|
|
411
931
|
/**
|
|
412
932
|
* QR code visual styling.
|
|
413
933
|
*/
|
|
414
|
-
qr?:
|
|
934
|
+
qr?: ShortLinkCreateParams.Qr | null;
|
|
415
935
|
/**
|
|
416
936
|
* Destination URL the short link redirects to. Must be a valid URL.
|
|
417
937
|
*/
|
|
@@ -419,7 +939,106 @@ export interface ShortLinkCreateParams {
|
|
|
419
939
|
/**
|
|
420
940
|
* Campaign / UTM tags appended to the tracked short-link URL.
|
|
421
941
|
*/
|
|
422
|
-
utm?:
|
|
942
|
+
utm?: ShortLinkCreateParams.Utm | null;
|
|
943
|
+
}
|
|
944
|
+
export declare namespace ShortLinkCreateParams {
|
|
945
|
+
/**
|
|
946
|
+
* QR code visual styling.
|
|
947
|
+
*/
|
|
948
|
+
interface Qr {
|
|
949
|
+
/**
|
|
950
|
+
* Background color.
|
|
951
|
+
*/
|
|
952
|
+
bgColor?: string | null;
|
|
953
|
+
/**
|
|
954
|
+
* Finder (corner) dot shape.
|
|
955
|
+
*/
|
|
956
|
+
cornerDotStyle?: 'square' | 'dot' | null;
|
|
957
|
+
/**
|
|
958
|
+
* Finder (corner) square shape.
|
|
959
|
+
*/
|
|
960
|
+
cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
|
|
961
|
+
/**
|
|
962
|
+
* Module shape.
|
|
963
|
+
*/
|
|
964
|
+
dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
|
|
965
|
+
/**
|
|
966
|
+
* Foreground (module) color.
|
|
967
|
+
*/
|
|
968
|
+
fgColor?: string | null;
|
|
969
|
+
/**
|
|
970
|
+
* Download frame.
|
|
971
|
+
*/
|
|
972
|
+
frameShape?: 'square' | 'rounded' | 'circle' | null;
|
|
973
|
+
/**
|
|
974
|
+
* A two-stop gradient fill for the QR modules.
|
|
975
|
+
*/
|
|
976
|
+
gradient?: Qr.Gradient | null;
|
|
977
|
+
/**
|
|
978
|
+
* Base64 data URL of a centered logo overlay.
|
|
979
|
+
*/
|
|
980
|
+
logo?: string | null;
|
|
981
|
+
/**
|
|
982
|
+
* Logo size as a fraction of the QR.
|
|
983
|
+
*/
|
|
984
|
+
logoSizeRatio?: number | null;
|
|
985
|
+
/**
|
|
986
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
987
|
+
*/
|
|
988
|
+
theme?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* When true, the background is exported transparent.
|
|
991
|
+
*/
|
|
992
|
+
transparentBackground?: boolean | null;
|
|
993
|
+
}
|
|
994
|
+
namespace Qr {
|
|
995
|
+
/**
|
|
996
|
+
* A two-stop gradient fill for the QR modules.
|
|
997
|
+
*/
|
|
998
|
+
interface Gradient {
|
|
999
|
+
/**
|
|
1000
|
+
* Gradient end color.
|
|
1001
|
+
*/
|
|
1002
|
+
endColor: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* Gradient start color.
|
|
1005
|
+
*/
|
|
1006
|
+
startColor: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* Gradient type.
|
|
1009
|
+
*/
|
|
1010
|
+
type: 'linear' | 'radial';
|
|
1011
|
+
/**
|
|
1012
|
+
* Rotation in radians (linear gradients only).
|
|
1013
|
+
*/
|
|
1014
|
+
rotation?: number | null;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Campaign / UTM tags appended to the tracked short-link URL.
|
|
1019
|
+
*/
|
|
1020
|
+
interface Utm {
|
|
1021
|
+
/**
|
|
1022
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
1023
|
+
*/
|
|
1024
|
+
campaign?: string | null;
|
|
1025
|
+
/**
|
|
1026
|
+
* The `utm_content` value.
|
|
1027
|
+
*/
|
|
1028
|
+
content?: string | null;
|
|
1029
|
+
/**
|
|
1030
|
+
* The `utm_medium` value.
|
|
1031
|
+
*/
|
|
1032
|
+
medium?: string | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* The `utm_source` value.
|
|
1035
|
+
*/
|
|
1036
|
+
source?: string | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* The `utm_term` value.
|
|
1039
|
+
*/
|
|
1040
|
+
term?: string | null;
|
|
1041
|
+
}
|
|
423
1042
|
}
|
|
424
1043
|
export interface ShortLinkUpdateParams {
|
|
425
1044
|
code?: string | null;
|
|
@@ -429,7 +1048,7 @@ export interface ShortLinkUpdateParams {
|
|
|
429
1048
|
*/
|
|
430
1049
|
forwardUtmToDestination?: boolean;
|
|
431
1050
|
name?: string | null;
|
|
432
|
-
qr?:
|
|
1051
|
+
qr?: ShortLinkUpdateParams.Qr | null;
|
|
433
1052
|
/**
|
|
434
1053
|
* Destination URL the short link redirects to. Must be a valid URL. Send `null` to
|
|
435
1054
|
* clear it.
|
|
@@ -439,8 +1058,101 @@ export interface ShortLinkUpdateParams {
|
|
|
439
1058
|
* Whether the short link resolves at the edge. Send `Enabled` or `Disabled`;
|
|
440
1059
|
* `null` is rejected since storage cannot represent it.
|
|
441
1060
|
*/
|
|
442
|
-
status?:
|
|
443
|
-
utm?:
|
|
1061
|
+
status?: 'Disabled' | 'Enabled' | null;
|
|
1062
|
+
utm?: ShortLinkUpdateParams.Utm | null;
|
|
1063
|
+
}
|
|
1064
|
+
export declare namespace ShortLinkUpdateParams {
|
|
1065
|
+
interface Qr {
|
|
1066
|
+
/**
|
|
1067
|
+
* Background color.
|
|
1068
|
+
*/
|
|
1069
|
+
bgColor?: string | null;
|
|
1070
|
+
/**
|
|
1071
|
+
* Finder (corner) dot shape.
|
|
1072
|
+
*/
|
|
1073
|
+
cornerDotStyle?: 'square' | 'dot' | null;
|
|
1074
|
+
/**
|
|
1075
|
+
* Finder (corner) square shape.
|
|
1076
|
+
*/
|
|
1077
|
+
cornerSquareStyle?: 'square' | 'dot' | 'extra-rounded' | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Module shape.
|
|
1080
|
+
*/
|
|
1081
|
+
dotStyle?: 'square' | 'rounded' | 'dots' | 'classy' | 'classy-rounded' | 'extra-rounded' | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Foreground (module) color.
|
|
1084
|
+
*/
|
|
1085
|
+
fgColor?: string | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Download frame.
|
|
1088
|
+
*/
|
|
1089
|
+
frameShape?: 'square' | 'rounded' | 'circle' | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* A two-stop gradient fill for the QR modules.
|
|
1092
|
+
*/
|
|
1093
|
+
gradient?: Qr.Gradient | null;
|
|
1094
|
+
/**
|
|
1095
|
+
* Base64 data URL of a centered logo overlay.
|
|
1096
|
+
*/
|
|
1097
|
+
logo?: string | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Logo size as a fraction of the QR.
|
|
1100
|
+
*/
|
|
1101
|
+
logoSizeRatio?: number | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* The selected preset theme id, for re-highlighting it in a UI.
|
|
1104
|
+
*/
|
|
1105
|
+
theme?: string | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* When true, the background is exported transparent.
|
|
1108
|
+
*/
|
|
1109
|
+
transparentBackground?: boolean | null;
|
|
1110
|
+
}
|
|
1111
|
+
namespace Qr {
|
|
1112
|
+
/**
|
|
1113
|
+
* A two-stop gradient fill for the QR modules.
|
|
1114
|
+
*/
|
|
1115
|
+
interface Gradient {
|
|
1116
|
+
/**
|
|
1117
|
+
* Gradient end color.
|
|
1118
|
+
*/
|
|
1119
|
+
endColor: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Gradient start color.
|
|
1122
|
+
*/
|
|
1123
|
+
startColor: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Gradient type.
|
|
1126
|
+
*/
|
|
1127
|
+
type: 'linear' | 'radial';
|
|
1128
|
+
/**
|
|
1129
|
+
* Rotation in radians (linear gradients only).
|
|
1130
|
+
*/
|
|
1131
|
+
rotation?: number | null;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
interface Utm {
|
|
1135
|
+
/**
|
|
1136
|
+
* The `utm_campaign` value appended to the tracked short-link URL.
|
|
1137
|
+
*/
|
|
1138
|
+
campaign?: string | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* The `utm_content` value.
|
|
1141
|
+
*/
|
|
1142
|
+
content?: string | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* The `utm_medium` value.
|
|
1145
|
+
*/
|
|
1146
|
+
medium?: string | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* The `utm_source` value.
|
|
1149
|
+
*/
|
|
1150
|
+
source?: string | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* The `utm_term` value.
|
|
1153
|
+
*/
|
|
1154
|
+
term?: string | null;
|
|
1155
|
+
}
|
|
444
1156
|
}
|
|
445
1157
|
export interface ShortLinkResultsParams {
|
|
446
1158
|
/**
|