@oursprivacy/platform-sdk 1.52.0 → 1.53.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 +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- 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 +220 -120
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +220 -120
- 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/data-governance.d.mts +8 -6
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +8 -6
- 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 +6 -5
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +6 -5
- 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 +17 -12
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +17 -12
- 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 +9 -5
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +9 -5
- 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 +30 -19
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +30 -19
- 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 +11 -10
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +11 -10
- 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 +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +17 -12
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +17 -12
- 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 +6 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +6 -5
- 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 +18 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +18 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +18 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +18 -12
- package/resources/mappings.mjs.map +1 -1
- 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 +9 -6
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +9 -6
- 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 +4 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +4 -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 +11 -7
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +11 -7
- 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 +12 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +12 -6
- 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 +11 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +11 -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 +12 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +12 -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 +27 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +27 -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 +10 -5
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +10 -5
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +6 -4
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +6 -4
- 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 +21 -11
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +21 -11
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +16 -11
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +16 -11
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +15 -9
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +15 -9
- 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 +8 -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 +264 -120
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/data-governance.ts +8 -6
- package/src/resources/default-mappings.ts +6 -5
- package/src/resources/destinations.ts +17 -7
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +9 -5
- package/src/resources/experiments.ts +30 -19
- package/src/resources/funnels.ts +11 -10
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +4 -0
- package/src/resources/journey-flows.ts +17 -12
- package/src/resources/locations.ts +6 -5
- package/src/resources/mappings.ts +18 -12
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +9 -6
- package/src/resources/session-replays.ts +4 -2
- package/src/resources/short-links.ts +11 -7
- package/src/resources/sources.ts +12 -6
- 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 +11 -7
- package/src/resources/tag-manager-triggers.ts +12 -7
- package/src/resources/tag-manager-variables.ts +23 -19
- package/src/resources/tag-managers.ts +10 -5
- package/src/resources/test-events.ts +6 -4
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +22 -11
- package/src/resources/video-channels.ts +15 -9
- 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
package/resources/short-links.js
CHANGED
|
@@ -12,7 +12,7 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
12
12
|
* excluded. Supports cursor pagination and optional `status`, `nameContains`, and
|
|
13
13
|
* `search` filters. Search matches names, destinations, and codes. Each entity
|
|
14
14
|
* bundles the destination URL, immutable code, path format, and QR/campaign
|
|
15
|
-
* design. Requires scope: source:list
|
|
15
|
+
* design. Requires API-key scope or current OAuth user permission: source:list
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -34,7 +34,8 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
34
34
|
* compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
|
|
35
35
|
* parameters. All body fields are optional: send `{}` to create an unconfigured
|
|
36
36
|
* link and fill it in later with PATCH. A newly created short link only resolves
|
|
37
|
-
* at the edge once a version is published. Requires scope
|
|
37
|
+
* at the edge once a version is published. Requires API-key scope or current OAuth
|
|
38
|
+
* user permission: source:create
|
|
38
39
|
*
|
|
39
40
|
* @example
|
|
40
41
|
* ```ts
|
|
@@ -47,7 +48,8 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
47
48
|
/**
|
|
48
49
|
* Fetch a single short link by id, including its destination, immutable code,
|
|
49
50
|
* composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
|
|
50
|
-
* matches the id or it belongs to a different account. Requires scope
|
|
51
|
+
* matches the id or it belongs to a different account. Requires API-key scope or
|
|
52
|
+
* current OAuth user permission: source:view
|
|
51
53
|
*
|
|
52
54
|
* @example
|
|
53
55
|
* ```ts
|
|
@@ -61,7 +63,8 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
61
63
|
* Partially update a short link. Only the fields you send are changed; omitted
|
|
62
64
|
* fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
|
|
63
65
|
* `qr` objects are replaced wholesale when sent. Returns the full short link
|
|
64
|
-
* entity after the update. Requires scope
|
|
66
|
+
* entity after the update. Requires API-key scope or current OAuth user
|
|
67
|
+
* permission: source:update
|
|
65
68
|
*
|
|
66
69
|
* @example
|
|
67
70
|
* ```ts
|
|
@@ -73,7 +76,8 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
73
76
|
}
|
|
74
77
|
/**
|
|
75
78
|
* Delete a short link and its QR/campaign design. After deletion the short URL
|
|
76
|
-
* stops resolving on the next publish. Requires scope
|
|
79
|
+
* stops resolving on the next publish. Requires API-key scope or current OAuth
|
|
80
|
+
* user permission: source:delete
|
|
77
81
|
*
|
|
78
82
|
* @example
|
|
79
83
|
* ```ts
|
|
@@ -86,7 +90,7 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
86
90
|
/**
|
|
87
91
|
* Duplicate a short link with its campaign tags and QR styling. The copy starts
|
|
88
92
|
* disabled with a new code. Requires permission to view the original and create a
|
|
89
|
-
* source. Requires scope: source:create
|
|
93
|
+
* source. Requires API-key scope or current OAuth user permission: source:create
|
|
90
94
|
*
|
|
91
95
|
* @example
|
|
92
96
|
* ```ts
|
|
@@ -103,7 +107,7 @@ class ShortLinks extends resource_1.APIResource {
|
|
|
103
107
|
* (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
|
|
104
108
|
* `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
|
|
105
109
|
* scope, which is gated separately because analytics data is PHI-bearing. Requires
|
|
106
|
-
* scope: shortlink:reporting
|
|
110
|
+
* API-key scope or current OAuth user permission: shortlink:reporting
|
|
107
111
|
*
|
|
108
112
|
* @example
|
|
109
113
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"short-links.js","sourceRoot":"","sources":["../src/resources/short-links.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,mBAA6B,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"short-links.js","sourceRoot":"","sources":["../src/resources/short-links.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,C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G,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAvID,gCAuIC"}
|
|
@@ -9,7 +9,7 @@ export 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
|
|
@@ -31,7 +31,8 @@ export class ShortLinks extends APIResource {
|
|
|
31
31
|
* compact code; `shortUrl` resolves as `/r/{pixel}` without tracking query
|
|
32
32
|
* parameters. All body fields are optional: send `{}` to create an unconfigured
|
|
33
33
|
* link and fill it in later with PATCH. A newly created short link only resolves
|
|
34
|
-
* at the edge once a version is published. Requires scope
|
|
34
|
+
* at the edge once a version is published. Requires API-key scope or current OAuth
|
|
35
|
+
* user permission: source:create
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* ```ts
|
|
@@ -44,7 +45,8 @@ export class ShortLinks extends APIResource {
|
|
|
44
45
|
/**
|
|
45
46
|
* Fetch a single short link by id, including its destination, immutable code,
|
|
46
47
|
* composed `shortUrl`, and QR/campaign design. Returns 404 when no short link
|
|
47
|
-
* matches the id or it belongs to a different account. Requires scope
|
|
48
|
+
* matches the id or it belongs to a different account. Requires API-key scope or
|
|
49
|
+
* current OAuth user permission: source:view
|
|
48
50
|
*
|
|
49
51
|
* @example
|
|
50
52
|
* ```ts
|
|
@@ -58,7 +60,8 @@ export class ShortLinks extends APIResource {
|
|
|
58
60
|
* Partially update a short link. Only the fields you send are changed; omitted
|
|
59
61
|
* fields are unchanged. Send explicit `null` to clear `redirectUrl`. The `utm` and
|
|
60
62
|
* `qr` objects are replaced wholesale when sent. Returns the full short link
|
|
61
|
-
* entity after the update. Requires scope
|
|
63
|
+
* entity after the update. Requires API-key scope or current OAuth user
|
|
64
|
+
* permission: source:update
|
|
62
65
|
*
|
|
63
66
|
* @example
|
|
64
67
|
* ```ts
|
|
@@ -70,7 +73,8 @@ export class ShortLinks extends APIResource {
|
|
|
70
73
|
}
|
|
71
74
|
/**
|
|
72
75
|
* Delete a short link and its QR/campaign design. After deletion the short URL
|
|
73
|
-
* stops resolving on the next publish. Requires scope
|
|
76
|
+
* stops resolving on the next publish. Requires API-key scope or current OAuth
|
|
77
|
+
* user permission: source:delete
|
|
74
78
|
*
|
|
75
79
|
* @example
|
|
76
80
|
* ```ts
|
|
@@ -83,7 +87,7 @@ export class ShortLinks extends APIResource {
|
|
|
83
87
|
/**
|
|
84
88
|
* Duplicate a short link with its campaign tags and QR styling. The copy starts
|
|
85
89
|
* disabled with a new code. Requires permission to view the original and create a
|
|
86
|
-
* source. Requires scope: source:create
|
|
90
|
+
* source. Requires API-key scope or current OAuth user permission: source:create
|
|
87
91
|
*
|
|
88
92
|
* @example
|
|
89
93
|
* ```ts
|
|
@@ -100,7 +104,7 @@ export class ShortLinks extends APIResource {
|
|
|
100
104
|
* (`YYYY-MM-DD`); set `granularity=HOURLY` for hourly buckets and
|
|
101
105
|
* `excludeBots=false` to include bot traffic. Requires the `shortlink:reporting`
|
|
102
106
|
* scope, which is gated separately because analytics data is PHI-bearing. Requires
|
|
103
|
-
* scope: shortlink:reporting
|
|
107
|
+
* API-key scope or current OAuth user permission: shortlink:reporting
|
|
104
108
|
*
|
|
105
109
|
* @example
|
|
106
110
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"short-links.mjs","sourceRoot":"","sources":["../src/resources/short-links.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACz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AG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAU,EAAE,OAAwB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,EAAU,EACV,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
package/resources/sources.d.mts
CHANGED
|
@@ -6,27 +6,32 @@ export declare class Sources extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* List all sources for this account. Supports cursor pagination and optional
|
|
8
8
|
* filters for `type`, `status`, and `nameContains`. Results are sorted by creation
|
|
9
|
-
* date descending. Requires scope
|
|
9
|
+
* date descending. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* source:list
|
|
10
11
|
*/
|
|
11
12
|
list(query?: SourceListParams | null | undefined, options?: RequestOptions): PagePromise<SourceListResponsesCursor, SourceListResponse>;
|
|
12
13
|
/**
|
|
13
14
|
* Create a new source. Returns the full source entity (same shape as GET
|
|
14
15
|
* /sources/{id}) so callers can read all server-assigned fields without a
|
|
15
|
-
* follow-up GET. Requires scope
|
|
16
|
+
* follow-up GET. Requires API-key scope or current OAuth user permission:
|
|
17
|
+
* source:create
|
|
16
18
|
*/
|
|
17
19
|
create(body: SourceCreateParams, options?: RequestOptions): APIPromise<SourceCreateResponse>;
|
|
18
20
|
/**
|
|
19
|
-
* Find a single source by ID. Requires scope
|
|
21
|
+
* Find a single source by ID. Requires API-key scope or current OAuth user
|
|
22
|
+
* permission: source:view
|
|
20
23
|
*/
|
|
21
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse>;
|
|
22
25
|
/**
|
|
23
26
|
* Partially update a source. Only the fields you send are changed; omitted fields
|
|
24
27
|
* are unchanged. Send explicit `null` to clear a nullable field. Returns the full
|
|
25
|
-
* source entity after the update. Requires scope
|
|
28
|
+
* source entity after the update. Requires API-key scope or current OAuth user
|
|
29
|
+
* permission: source:update
|
|
26
30
|
*/
|
|
27
31
|
update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse>;
|
|
28
32
|
/**
|
|
29
|
-
* Delete a source. Requires scope
|
|
33
|
+
* Delete a source. Requires API-key scope or current OAuth user permission:
|
|
34
|
+
* source:delete
|
|
30
35
|
*/
|
|
31
36
|
delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse>;
|
|
32
37
|
/**
|
|
@@ -36,7 +41,8 @@ export declare class Sources extends APIResource {
|
|
|
36
41
|
* and webhook sources return
|
|
37
42
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
38
43
|
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
39
|
-
* variant to expect. Requires scope
|
|
44
|
+
* variant to expect. Requires API-key scope or current OAuth user permission:
|
|
45
|
+
* source:view
|
|
40
46
|
*/
|
|
41
47
|
tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse>;
|
|
42
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.mts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,MAAM,EAAE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ources/sources.d.ts
CHANGED
|
@@ -6,27 +6,32 @@ export declare class Sources extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* List all sources for this account. Supports cursor pagination and optional
|
|
8
8
|
* filters for `type`, `status`, and `nameContains`. Results are sorted by creation
|
|
9
|
-
* date descending. Requires scope
|
|
9
|
+
* date descending. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* source:list
|
|
10
11
|
*/
|
|
11
12
|
list(query?: SourceListParams | null | undefined, options?: RequestOptions): PagePromise<SourceListResponsesCursor, SourceListResponse>;
|
|
12
13
|
/**
|
|
13
14
|
* Create a new source. Returns the full source entity (same shape as GET
|
|
14
15
|
* /sources/{id}) so callers can read all server-assigned fields without a
|
|
15
|
-
* follow-up GET. Requires scope
|
|
16
|
+
* follow-up GET. Requires API-key scope or current OAuth user permission:
|
|
17
|
+
* source:create
|
|
16
18
|
*/
|
|
17
19
|
create(body: SourceCreateParams, options?: RequestOptions): APIPromise<SourceCreateResponse>;
|
|
18
20
|
/**
|
|
19
|
-
* Find a single source by ID. Requires scope
|
|
21
|
+
* Find a single source by ID. Requires API-key scope or current OAuth user
|
|
22
|
+
* permission: source:view
|
|
20
23
|
*/
|
|
21
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse>;
|
|
22
25
|
/**
|
|
23
26
|
* Partially update a source. Only the fields you send are changed; omitted fields
|
|
24
27
|
* are unchanged. Send explicit `null` to clear a nullable field. Returns the full
|
|
25
|
-
* source entity after the update. Requires scope
|
|
28
|
+
* source entity after the update. Requires API-key scope or current OAuth user
|
|
29
|
+
* permission: source:update
|
|
26
30
|
*/
|
|
27
31
|
update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse>;
|
|
28
32
|
/**
|
|
29
|
-
* Delete a source. Requires scope
|
|
33
|
+
* Delete a source. Requires API-key scope or current OAuth user permission:
|
|
34
|
+
* source:delete
|
|
30
35
|
*/
|
|
31
36
|
delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse>;
|
|
32
37
|
/**
|
|
@@ -36,7 +41,8 @@ export declare class Sources extends APIResource {
|
|
|
36
41
|
* and webhook sources return
|
|
37
42
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
38
43
|
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
39
|
-
* variant to expect. Requires scope
|
|
44
|
+
* variant to expect. Requires API-key scope or current OAuth user permission:
|
|
45
|
+
* source:view
|
|
40
46
|
*/
|
|
41
47
|
tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse>;
|
|
42
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,kBAAkB,CAAC;IAI7D;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,kBA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C,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAExC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/sources.js
CHANGED
|
@@ -9,7 +9,8 @@ class Sources extends resource_1.APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* List all sources for this account. Supports cursor pagination and optional
|
|
11
11
|
* filters for `type`, `status`, and `nameContains`. Results are sorted by creation
|
|
12
|
-
* date descending. Requires scope
|
|
12
|
+
* date descending. Requires API-key scope or current OAuth user permission:
|
|
13
|
+
* source:list
|
|
13
14
|
*/
|
|
14
15
|
list(query = {}, options) {
|
|
15
16
|
return this._client.getAPIList('/rest/v1/sources', (pagination_1.Cursor), { query, ...options });
|
|
@@ -17,13 +18,15 @@ class Sources extends resource_1.APIResource {
|
|
|
17
18
|
/**
|
|
18
19
|
* Create a new source. Returns the full source entity (same shape as GET
|
|
19
20
|
* /sources/{id}) so callers can read all server-assigned fields without a
|
|
20
|
-
* follow-up GET. Requires scope
|
|
21
|
+
* follow-up GET. Requires API-key scope or current OAuth user permission:
|
|
22
|
+
* source:create
|
|
21
23
|
*/
|
|
22
24
|
create(body, options) {
|
|
23
25
|
return this._client.post('/rest/v1/sources', { body, ...options });
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
|
-
* Find a single source by ID. Requires scope
|
|
28
|
+
* Find a single source by ID. Requires API-key scope or current OAuth user
|
|
29
|
+
* permission: source:view
|
|
27
30
|
*/
|
|
28
31
|
retrieve(id, options) {
|
|
29
32
|
return this._client.get((0, path_1.path) `/rest/v1/sources/${id}`, options);
|
|
@@ -31,13 +34,15 @@ class Sources extends resource_1.APIResource {
|
|
|
31
34
|
/**
|
|
32
35
|
* Partially update a source. Only the fields you send are changed; omitted fields
|
|
33
36
|
* are unchanged. Send explicit `null` to clear a nullable field. Returns the full
|
|
34
|
-
* source entity after the update. Requires scope
|
|
37
|
+
* source entity after the update. Requires API-key scope or current OAuth user
|
|
38
|
+
* permission: source:update
|
|
35
39
|
*/
|
|
36
40
|
update(id, body, options) {
|
|
37
41
|
return this._client.patch((0, path_1.path) `/rest/v1/sources/${id}`, { body, ...options });
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
|
-
* Delete a source. Requires scope
|
|
44
|
+
* Delete a source. Requires API-key scope or current OAuth user permission:
|
|
45
|
+
* source:delete
|
|
41
46
|
*/
|
|
42
47
|
delete(id, options) {
|
|
43
48
|
return this._client.delete((0, path_1.path) `/rest/v1/sources/${id}`, options);
|
|
@@ -49,7 +54,8 @@ class Sources extends resource_1.APIResource {
|
|
|
49
54
|
* and webhook sources return
|
|
50
55
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
51
56
|
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
52
|
-
* variant to expect. Requires scope
|
|
57
|
+
* variant to expect. Requires API-key scope or current OAuth user permission:
|
|
58
|
+
* source:view
|
|
53
59
|
*/
|
|
54
60
|
tokens(id, options) {
|
|
55
61
|
return this._client.get((0, path_1.path) `/rest/v1/sources/${id}/tokens`, options);
|
package/resources/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;OAKG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,mBAA0B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AA/DD,0BA+DC"}
|
package/resources/sources.mjs
CHANGED
|
@@ -6,7 +6,8 @@ export class Sources extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* List all sources for this account. Supports cursor pagination and optional
|
|
8
8
|
* filters for `type`, `status`, and `nameContains`. Results are sorted by creation
|
|
9
|
-
* date descending. Requires scope
|
|
9
|
+
* date descending. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* source:list
|
|
10
11
|
*/
|
|
11
12
|
list(query = {}, options) {
|
|
12
13
|
return this._client.getAPIList('/rest/v1/sources', (Cursor), { query, ...options });
|
|
@@ -14,13 +15,15 @@ export class Sources extends APIResource {
|
|
|
14
15
|
/**
|
|
15
16
|
* Create a new source. Returns the full source entity (same shape as GET
|
|
16
17
|
* /sources/{id}) so callers can read all server-assigned fields without a
|
|
17
|
-
* follow-up GET. Requires scope
|
|
18
|
+
* follow-up GET. Requires API-key scope or current OAuth user permission:
|
|
19
|
+
* source:create
|
|
18
20
|
*/
|
|
19
21
|
create(body, options) {
|
|
20
22
|
return this._client.post('/rest/v1/sources', { body, ...options });
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
|
-
* Find a single source by ID. Requires scope
|
|
25
|
+
* Find a single source by ID. Requires API-key scope or current OAuth user
|
|
26
|
+
* permission: source:view
|
|
24
27
|
*/
|
|
25
28
|
retrieve(id, options) {
|
|
26
29
|
return this._client.get(path `/rest/v1/sources/${id}`, options);
|
|
@@ -28,13 +31,15 @@ export class Sources extends APIResource {
|
|
|
28
31
|
/**
|
|
29
32
|
* Partially update a source. Only the fields you send are changed; omitted fields
|
|
30
33
|
* are unchanged. Send explicit `null` to clear a nullable field. Returns the full
|
|
31
|
-
* source entity after the update. Requires scope
|
|
34
|
+
* source entity after the update. Requires API-key scope or current OAuth user
|
|
35
|
+
* permission: source:update
|
|
32
36
|
*/
|
|
33
37
|
update(id, body, options) {
|
|
34
38
|
return this._client.patch(path `/rest/v1/sources/${id}`, { body, ...options });
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
|
-
* Delete a source. Requires scope
|
|
41
|
+
* Delete a source. Requires API-key scope or current OAuth user permission:
|
|
42
|
+
* source:delete
|
|
38
43
|
*/
|
|
39
44
|
delete(id, options) {
|
|
40
45
|
return this._client.delete(path `/rest/v1/sources/${id}`, options);
|
|
@@ -46,7 +51,8 @@ export class Sources extends APIResource {
|
|
|
46
51
|
* and webhook sources return
|
|
47
52
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
48
53
|
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
49
|
-
* variant to expect. Requires scope
|
|
54
|
+
* variant to expect. Requires API-key scope or current OAuth user permission:
|
|
55
|
+
* source:view
|
|
50
56
|
*/
|
|
51
57
|
tokens(id, options) {
|
|
52
58
|
return this._client.get(path `/rest/v1/sources/${id}/tokens`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.mjs","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"sources.mjs","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,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6,8 @@ export declare class TagManagerAssetFolders extends APIResource {
|
|
|
6
6
|
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
7
7
|
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
8
8
|
* a full replace — calling it again with a different `folderId` silently moves the
|
|
9
|
-
* asset. Requires scope
|
|
9
|
+
* asset. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* tagManagers:update
|
|
10
11
|
*/
|
|
11
12
|
create(body: TagManagerAssetFolderCreateParams, options?: RequestOptions): APIPromise<TagManagerAssetFolderCreateResponse>;
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-manager-asset-folders.d.mts","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"tag-manager-asset-folders.d.mts","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED,MAAM,WAAW,mCAAmC;IAClD,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;IAExE,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;IAExE;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -6,7 +6,8 @@ export declare class TagManagerAssetFolders extends APIResource {
|
|
|
6
6
|
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
7
7
|
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
8
8
|
* a full replace — calling it again with a different `folderId` silently moves the
|
|
9
|
-
* asset. Requires scope
|
|
9
|
+
* asset. Requires API-key scope or current OAuth user permission:
|
|
10
|
+
* tagManagers:update
|
|
10
11
|
*/
|
|
11
12
|
create(body: TagManagerAssetFolderCreateParams, options?: RequestOptions): APIPromise<TagManagerAssetFolderCreateResponse>;
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-manager-asset-folders.d.ts","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"tag-manager-asset-folders.d.ts","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED,MAAM,WAAW,mCAAmC;IAClD,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;IAExE,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;IAExE;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -8,7 +8,8 @@ class TagManagerAssetFolders extends resource_1.APIResource {
|
|
|
8
8
|
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
9
9
|
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
10
10
|
* a full replace — calling it again with a different `folderId` silently moves the
|
|
11
|
-
* asset. Requires scope
|
|
11
|
+
* asset. Requires API-key scope or current OAuth user permission:
|
|
12
|
+
* tagManagers:update
|
|
12
13
|
*/
|
|
13
14
|
create(body, options) {
|
|
14
15
|
return this._client.post('/rest/v1/tag-manager-asset-folders', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-manager-asset-folders.js","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD
|
|
1
|
+
{"version":3,"file":"tag-manager-asset-folders.js","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;OAMG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAdD,wDAcC"}
|
|
@@ -5,7 +5,8 @@ export class TagManagerAssetFolders extends APIResource {
|
|
|
5
5
|
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
6
6
|
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
7
7
|
* a full replace — calling it again with a different `folderId` silently moves the
|
|
8
|
-
* asset. Requires scope
|
|
8
|
+
* asset. Requires API-key scope or current OAuth user permission:
|
|
9
|
+
* tagManagers:update
|
|
9
10
|
*/
|
|
10
11
|
create(body, options) {
|
|
11
12
|
return this._client.post('/rest/v1/tag-manager-asset-folders', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-manager-asset-folders.mjs","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"tag-manager-asset-folders.mjs","sourceRoot":"","sources":["../src/resources/tag-manager-asset-folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;OAMG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
|
@@ -8,30 +8,32 @@ export declare class TagManagerFolders extends APIResource {
|
|
|
8
8
|
* organizational containers — they do not affect tag evaluation. Requires the
|
|
9
9
|
* `tagManagerId` query parameter. Supports cursor pagination via `limit` and
|
|
10
10
|
* `cursor`; the limit clamp is 1000 so a single request can return the full set
|
|
11
|
-
* (the web-app workspace renders all folders in one shot). Requires scope
|
|
12
|
-
* tagManagers:find
|
|
11
|
+
* (the web-app workspace renders all folders in one shot). Requires API-key scope
|
|
12
|
+
* or current OAuth user permission: tagManagers:find
|
|
13
13
|
*/
|
|
14
14
|
list(query: TagManagerFolderListParams, options?: RequestOptions): PagePromise<TagManagerFolderListResponsesCursor, TagManagerFolderListResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* Create a folder inside a tag manager. `tagManagerId` is required in the body.
|
|
17
17
|
* Names are case-insensitively unique within the tag manager — collisions return
|
|
18
|
-
* 409 with the reason in the response `error` field. Requires scope
|
|
19
|
-
* tagManagers:update
|
|
18
|
+
* 409 with the reason in the response `error` field. Requires API-key scope or
|
|
19
|
+
* current OAuth user permission: tagManagers:update
|
|
20
20
|
*/
|
|
21
21
|
create(body: TagManagerFolderCreateParams, options?: RequestOptions): APIPromise<TagManagerFolderCreateResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Find a single tag manager folder by ID. Requires scope
|
|
23
|
+
* Find a single tag manager folder by ID. Requires API-key scope or current OAuth
|
|
24
|
+
* user permission: tagManagers:find
|
|
24
25
|
*/
|
|
25
26
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerFolderRetrieveResponse>;
|
|
26
27
|
/**
|
|
27
28
|
* Rename a folder. The new name must be case-insensitively unique within the tag
|
|
28
|
-
* manager; collisions return 409. Requires scope
|
|
29
|
+
* manager; collisions return 409. Requires API-key scope or current OAuth user
|
|
30
|
+
* permission: tagManagers:update
|
|
29
31
|
*/
|
|
30
32
|
update(id: string, body: TagManagerFolderUpdateParams, options?: RequestOptions): APIPromise<TagManagerFolderUpdateResponse>;
|
|
31
33
|
/**
|
|
32
34
|
* Delete a folder. Tags, triggers, and variables previously assigned to the folder
|
|
33
35
|
* are no longer grouped under it; the assets themselves are not deleted. Requires
|
|
34
|
-
* scope: tagManagers:update
|
|
36
|
+
* API-key scope or current OAuth user permission: tagManagers:update
|
|
35
37
|
*/
|
|
36
38
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerFolderDeleteResponse>;
|
|
37
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-manager-folders.d.mts","sourceRoot":"","sources":["../src/resources/tag-manager-folders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,+BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,4BAA4B,CAAC;IAOjF;;;;;OAKG;IACH,MAAM,CACJ,IAAI,EAAE,4BAA4B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