@oursprivacy/platform-sdk 1.52.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 +14 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- 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/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.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 +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- 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 +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- 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/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +44 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- 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
|
@@ -9,7 +9,7 @@ export declare class ShortLinks extends APIResource {
|
|
|
9
9
|
* excluded. Supports cursor pagination and optional `status`, `nameContains`, and
|
|
10
10
|
* `search` filters. Search matches names, destinations, and codes. Each entity
|
|
11
11
|
* bundles the destination URL, immutable code, path format, and QR/campaign
|
|
12
|
-
* design. Requires scope: source:list
|
|
12
|
+
* design. Requires API-key scope or current OAuth user permission: source:list
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -26,7 +26,8 @@ export declare class ShortLinks extends APIResource {
|
|
|
26
26
|
* compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
|
|
27
27
|
* parameters. All body fields are optional: send `{}` to create an unconfigured
|
|
28
28
|
* link and fill it in later with PATCH. A newly created short link only resolves
|
|
29
|
-
* at the edge once a version is published. Requires scope
|
|
29
|
+
* at the edge once a version is published. Requires API-key scope or current OAuth
|
|
30
|
+
* user permission: source:create
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* ```ts
|
|
@@ -37,7 +38,8 @@ export declare class ShortLinks extends APIResource {
|
|
|
37
38
|
/**
|
|
38
39
|
* Fetch a single short link by id, including its destination, immutable code,
|
|
39
40
|
* composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
|
|
40
|
-
* matches the id or it belongs to a different account. Requires scope
|
|
41
|
+
* matches the id or it belongs to a different account. Requires API-key scope or
|
|
42
|
+
* current OAuth user permission: source:view
|
|
41
43
|
*
|
|
42
44
|
* @example
|
|
43
45
|
* ```ts
|
|
@@ -49,7 +51,8 @@ export declare class ShortLinks extends APIResource {
|
|
|
49
51
|
* Partially update a short link. Only the fields you send are changed; omitted
|
|
50
52
|
* fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
|
|
51
53
|
* `qr` objects are replaced wholesale when sent. Returns the full short link
|
|
52
|
-
* entity after the update. Requires scope
|
|
54
|
+
* entity after the update. Requires API-key scope or current OAuth user
|
|
55
|
+
* permission: source:update
|
|
53
56
|
*
|
|
54
57
|
* @example
|
|
55
58
|
* ```ts
|
|
@@ -59,7 +62,8 @@ export declare class ShortLinks extends APIResource {
|
|
|
59
62
|
update(id: string, body: ShortLinkUpdateParams, options?: RequestOptions): APIPromise<ShortLinkUpdateResponse>;
|
|
60
63
|
/**
|
|
61
64
|
* Delete a short link and its QR/campaign design. After deletion the short URL
|
|
62
|
-
* stops resolving on the next publish. Requires scope
|
|
65
|
+
* stops resolving on the next publish. Requires API-key scope or current OAuth
|
|
66
|
+
* user permission: source:delete
|
|
63
67
|
*
|
|
64
68
|
* @example
|
|
65
69
|
* ```ts
|
|
@@ -70,7 +74,7 @@ export declare class ShortLinks extends APIResource {
|
|
|
70
74
|
/**
|
|
71
75
|
* Duplicate a short link with its campaign tags and QR styling. The copy starts
|
|
72
76
|
* disabled with a new code. Requires permission to view the original and create a
|
|
73
|
-
* source. Requires scope: source:create
|
|
77
|
+
* source. Requires API-key scope or current OAuth user permission: source:create
|
|
74
78
|
*
|
|
75
79
|
* @example
|
|
76
80
|
* ```ts
|
|
@@ -85,7 +89,7 @@ export declare class ShortLinks extends APIResource {
|
|
|
85
89
|
* (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
|
|
86
90
|
* `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
|
|
87
91
|
* scope, which is gated separately because analytics data is PHI-bearing. Requires
|
|
88
|
-
* scope: shortlink:reporting
|
|
92
|
+
* API-key scope or current OAuth user permission: shortlink:reporting
|
|
89
93
|
*
|
|
90
94
|
* @example
|
|
91
95
|
* ```ts
|
|
@@ -139,7 +143,7 @@ export interface ShortLinkListResponse {
|
|
|
139
143
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
140
144
|
* may return null.
|
|
141
145
|
*/
|
|
142
|
-
shortLinkDesign?:
|
|
146
|
+
shortLinkDesign?: ShortLinkListResponse.ShortLinkDesign | null;
|
|
143
147
|
/**
|
|
144
148
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
145
149
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -147,6 +151,110 @@ export interface ShortLinkListResponse {
|
|
|
147
151
|
*/
|
|
148
152
|
shortUrl?: string | null;
|
|
149
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
|
+
}
|
|
150
258
|
export interface ShortLinkCreateResponse {
|
|
151
259
|
id: string;
|
|
152
260
|
/**
|
|
@@ -188,7 +296,7 @@ export interface ShortLinkCreateResponse {
|
|
|
188
296
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
189
297
|
* may return null.
|
|
190
298
|
*/
|
|
191
|
-
shortLinkDesign?:
|
|
299
|
+
shortLinkDesign?: ShortLinkCreateResponse.ShortLinkDesign | null;
|
|
192
300
|
/**
|
|
193
301
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
194
302
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -196,6 +304,110 @@ export interface ShortLinkCreateResponse {
|
|
|
196
304
|
*/
|
|
197
305
|
shortUrl?: string | null;
|
|
198
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
|
+
}
|
|
199
411
|
export interface ShortLinkRetrieveResponse {
|
|
200
412
|
id: string;
|
|
201
413
|
/**
|
|
@@ -237,7 +449,7 @@ export interface ShortLinkRetrieveResponse {
|
|
|
237
449
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
238
450
|
* may return null.
|
|
239
451
|
*/
|
|
240
|
-
shortLinkDesign?:
|
|
452
|
+
shortLinkDesign?: ShortLinkRetrieveResponse.ShortLinkDesign | null;
|
|
241
453
|
/**
|
|
242
454
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
243
455
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -245,6 +457,110 @@ export interface ShortLinkRetrieveResponse {
|
|
|
245
457
|
*/
|
|
246
458
|
shortUrl?: string | null;
|
|
247
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
|
+
}
|
|
248
564
|
export interface ShortLinkUpdateResponse {
|
|
249
565
|
id: string;
|
|
250
566
|
/**
|
|
@@ -286,7 +602,7 @@ export interface ShortLinkUpdateResponse {
|
|
|
286
602
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
287
603
|
* may return null.
|
|
288
604
|
*/
|
|
289
|
-
shortLinkDesign?:
|
|
605
|
+
shortLinkDesign?: ShortLinkUpdateResponse.ShortLinkDesign | null;
|
|
290
606
|
/**
|
|
291
607
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
292
608
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -294,6 +610,110 @@ export interface ShortLinkUpdateResponse {
|
|
|
294
610
|
*/
|
|
295
611
|
shortUrl?: string | null;
|
|
296
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
|
+
}
|
|
297
717
|
export interface ShortLinkDeleteResponse {
|
|
298
718
|
deleted: true;
|
|
299
719
|
}
|
|
@@ -338,7 +758,7 @@ export interface ShortLinkCloneResponse {
|
|
|
338
758
|
* QR styling + campaign tags. New links include an empty design; legacy redirects
|
|
339
759
|
* may return null.
|
|
340
760
|
*/
|
|
341
|
-
shortLinkDesign?:
|
|
761
|
+
shortLinkDesign?: ShortLinkCloneResponse.ShortLinkDesign | null;
|
|
342
762
|
/**
|
|
343
763
|
* The public short-link URL that the QR encodes and callers share. New links use
|
|
344
764
|
* `/r/{pixel}`; tracked event and campaign defaults are stored server-side. Also
|
|
@@ -346,6 +766,110 @@ export interface ShortLinkCloneResponse {
|
|
|
346
766
|
*/
|
|
347
767
|
shortUrl?: string | null;
|
|
348
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
|
+
}
|
|
349
873
|
export interface ShortLinkResultsResponse {
|
|
350
874
|
devices: Array<ShortLinkResultsResponse.Device>;
|
|
351
875
|
geoByCity: Array<ShortLinkResultsResponse.GeoByCity>;
|
|
@@ -407,7 +931,7 @@ export interface ShortLinkCreateParams {
|
|
|
407
931
|
/**
|
|
408
932
|
* QR code visual styling.
|
|
409
933
|
*/
|
|
410
|
-
qr?:
|
|
934
|
+
qr?: ShortLinkCreateParams.Qr | null;
|
|
411
935
|
/**
|
|
412
936
|
* Destination URL the short link redirects to. Must be a valid URL.
|
|
413
937
|
*/
|
|
@@ -415,7 +939,106 @@ export interface ShortLinkCreateParams {
|
|
|
415
939
|
/**
|
|
416
940
|
* Campaign / UTM tags appended to the tracked short-link URL.
|
|
417
941
|
*/
|
|
418
|
-
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
|
+
}
|
|
419
1042
|
}
|
|
420
1043
|
export interface ShortLinkUpdateParams {
|
|
421
1044
|
code?: string | null;
|
|
@@ -425,7 +1048,7 @@ export interface ShortLinkUpdateParams {
|
|
|
425
1048
|
*/
|
|
426
1049
|
forwardUtmToDestination?: boolean;
|
|
427
1050
|
name?: string | null;
|
|
428
|
-
qr?:
|
|
1051
|
+
qr?: ShortLinkUpdateParams.Qr | null;
|
|
429
1052
|
/**
|
|
430
1053
|
* Destination URL the short link redirects to. Must be a valid URL. Send `null` to
|
|
431
1054
|
* clear it.
|
|
@@ -435,8 +1058,101 @@ export interface ShortLinkUpdateParams {
|
|
|
435
1058
|
* Whether the short link resolves at the edge. Send `Enabled` or `Disabled`;
|
|
436
1059
|
* `null` is rejected since storage cannot represent it.
|
|
437
1060
|
*/
|
|
438
|
-
status?:
|
|
439
|
-
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
|
+
}
|
|
440
1156
|
}
|
|
441
1157
|
export interface ShortLinkResultsParams {
|
|
442
1158
|
/**
|