@oursprivacy/platform-sdk 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/consent-analytics.d.mts +4 -2
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +4 -2
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +4 -2
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +4 -2
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +11 -9
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +11 -9
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +11 -9
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +11 -9
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/data-governance.d.mts +7 -7
- package/resources/data-governance.d.ts +7 -7
- package/resources/data-governance.js +6 -6
- package/resources/data-governance.mjs +6 -6
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/heatmap-pages.d.mts +4 -5
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +4 -5
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +4 -5
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +4 -5
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/locations.d.mts +3 -3
- package/resources/locations.d.ts +3 -3
- package/resources/locations.js +3 -3
- package/resources/locations.mjs +3 -3
- package/resources/mappings.d.mts +5 -6
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +5 -6
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +5 -6
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +5 -6
- package/resources/mappings.mjs.map +1 -1
- package/resources/sources.d.mts +6 -5
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -5
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +6 -5
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +6 -5
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +42 -0
- package/resources/tag-manager-asset-folders.d.mts.map +1 -0
- package/resources/tag-manager-asset-folders.d.ts +42 -0
- package/resources/tag-manager-asset-folders.d.ts.map +1 -0
- package/resources/tag-manager-asset-folders.js +18 -0
- package/resources/tag-manager-asset-folders.js.map +1 -0
- package/resources/tag-manager-asset-folders.mjs +14 -0
- package/resources/tag-manager-asset-folders.mjs.map +1 -0
- package/resources/tag-manager-tags.d.mts +33 -49
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +33 -49
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +5 -7
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +5 -7
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +33 -39
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +33 -39
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +2 -1
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +2 -1
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +25 -39
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +25 -39
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +2 -1
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +2 -1
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +8 -4
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +8 -4
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +7 -3
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +7 -3
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +1 -1
- package/resources/web-scanner-rules.d.ts +1 -1
- package/resources/web-scanners.d.mts +6 -7
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +6 -7
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +5 -6
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +5 -6
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/consent-analytics.ts +4 -2
- package/src/resources/consent-settings.ts +11 -9
- package/src/resources/data-governance.ts +7 -7
- package/src/resources/destinations.ts +9 -2
- package/src/resources/heatmap-pages.ts +4 -5
- package/src/resources/index.ts +5 -0
- package/src/resources/locations.ts +3 -3
- package/src/resources/mappings.ts +5 -6
- package/src/resources/sources.ts +6 -5
- package/src/resources/tag-manager-asset-folders.ts +64 -0
- package/src/resources/tag-manager-tags.ts +33 -55
- package/src/resources/tag-manager-triggers.ts +33 -45
- package/src/resources/tag-manager-variables.ts +25 -45
- package/src/resources/tag-managers.ts +8 -4
- package/src/resources/web-scanner-rules.ts +1 -1
- package/src/resources/web-scanners.ts +6 -7
- 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
|
@@ -75,9 +75,10 @@ export class ConsentSettings extends APIResource {
|
|
|
75
75
|
* (`COUNT(DISTINCT visitor_id)`). Use the optional `pagePath` and `region` filters
|
|
76
76
|
* to scope to one page or one visitor region; use `compareWithPreviousPeriod=true`
|
|
77
77
|
* to also receive the matching prior window. `DAILY` allows a 90-day window;
|
|
78
|
-
* `HOURLY` is capped at 14 days.
|
|
79
|
-
*
|
|
80
|
-
*
|
|
78
|
+
* `HOURLY` is capped at 14 days. Requires the API-key scope
|
|
79
|
+
* `report:consent-analytics` (this endpoint returns consent analytics report data,
|
|
80
|
+
* which is PHI-bearing and gated separately from consent-settings management).
|
|
81
|
+
* Requires scope: report:consent-analytics
|
|
81
82
|
*/
|
|
82
83
|
analytics(
|
|
83
84
|
id: string,
|
|
@@ -91,10 +92,10 @@ export class ConsentSettings extends APIResource {
|
|
|
91
92
|
* Per-page consent breakdown for one consent settings record, ranked by opt-outs
|
|
92
93
|
* (descending). Each row bundles banner views, opt-outs, close-icon clicks, and
|
|
93
94
|
* the derived opt-out rate. Documented exception to the cursor-pagination
|
|
94
|
-
* standard: this
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* standard: this endpoint paginates with `limit` and `offset` rather than
|
|
96
|
+
* `cursor`. `search` is a substring match against `pathname`; `region` filters to
|
|
97
|
+
* one visitor region. Requires the API-key scope `report:consent-page-analysis`
|
|
98
|
+
* (PHI-bearing report data). Requires scope: report:consent-page-analysis
|
|
98
99
|
*/
|
|
99
100
|
pageAnalysis(
|
|
100
101
|
id: string,
|
|
@@ -111,8 +112,9 @@ export class ConsentSettings extends APIResource {
|
|
|
111
112
|
* traffic, IP geo failure) are bucketed under the literal `Unknown` so per-region
|
|
112
113
|
* counts always sum to the global totals. Use this to discover the region names
|
|
113
114
|
* you can later pass to the `region` filter on
|
|
114
|
-
* `GET /rest/v1/consent-settings/{id}/analytics`.
|
|
115
|
-
* `
|
|
115
|
+
* `GET /rest/v1/consent-settings/{id}/analytics`. Requires the API-key scope
|
|
116
|
+
* `report:consent-analytics` (PHI-bearing report data). Requires scope:
|
|
117
|
+
* report:consent-analytics
|
|
116
118
|
*/
|
|
117
119
|
analyticsByRegion(
|
|
118
120
|
id: string,
|
|
@@ -57,12 +57,12 @@ export class DataGovernance extends APIResource {
|
|
|
57
57
|
* wholesale**. There is no partial-merge for individual categories. To change one
|
|
58
58
|
* category, fetch the current record, modify the array, and PATCH it back.
|
|
59
59
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* destinations
|
|
64
|
-
*
|
|
65
|
-
*
|
|
60
|
+
* Categories are sorted ascending by the `priority` you supplied and then
|
|
61
|
+
* renumbered `1..N` in the response, so the returned `priority` values are always
|
|
62
|
+
* sequential with no gaps. Stale `destinationIds` (deleted destinations or
|
|
63
|
+
* destinations on another account) are silently filtered out — the response echoes
|
|
64
|
+
* the filtered list, so a follow-up GET is not required to see what was saved.
|
|
65
|
+
* Requires scope: globalDispatch:update
|
|
66
66
|
*/
|
|
67
67
|
update(
|
|
68
68
|
id: string,
|
|
@@ -871,7 +871,7 @@ export interface DataGovernanceDeleteResponse {
|
|
|
871
871
|
id: string;
|
|
872
872
|
|
|
873
873
|
/**
|
|
874
|
-
* True when the
|
|
874
|
+
* True when the record was deleted.
|
|
875
875
|
*/
|
|
876
876
|
deleted: boolean;
|
|
877
877
|
}
|
|
@@ -133,6 +133,7 @@ export interface DestinationListResponse {
|
|
|
133
133
|
| 'Mailchimp'
|
|
134
134
|
| 'Mixpanel'
|
|
135
135
|
| 'NextdoorAds'
|
|
136
|
+
| 'OpenAIAds'
|
|
136
137
|
| 'OursSyntheticData'
|
|
137
138
|
| 'Partnerize'
|
|
138
139
|
| 'Pinterest'
|
|
@@ -234,6 +235,7 @@ export interface DestinationCreateResponse {
|
|
|
234
235
|
| 'Mailchimp'
|
|
235
236
|
| 'Mixpanel'
|
|
236
237
|
| 'NextdoorAds'
|
|
238
|
+
| 'OpenAIAds'
|
|
237
239
|
| 'OursSyntheticData'
|
|
238
240
|
| 'Partnerize'
|
|
239
241
|
| 'Pinterest'
|
|
@@ -335,6 +337,7 @@ export interface DestinationRetrieveResponse {
|
|
|
335
337
|
| 'Mailchimp'
|
|
336
338
|
| 'Mixpanel'
|
|
337
339
|
| 'NextdoorAds'
|
|
340
|
+
| 'OpenAIAds'
|
|
338
341
|
| 'OursSyntheticData'
|
|
339
342
|
| 'Partnerize'
|
|
340
343
|
| 'Pinterest'
|
|
@@ -436,6 +439,7 @@ export interface DestinationUpdateResponse {
|
|
|
436
439
|
| 'Mailchimp'
|
|
437
440
|
| 'Mixpanel'
|
|
438
441
|
| 'NextdoorAds'
|
|
442
|
+
| 'OpenAIAds'
|
|
439
443
|
| 'OursSyntheticData'
|
|
440
444
|
| 'Partnerize'
|
|
441
445
|
| 'Pinterest'
|
|
@@ -550,7 +554,8 @@ export namespace DestinationTypesResponse {
|
|
|
550
554
|
| 'Everflow'
|
|
551
555
|
| 'BeeswaxPostback'
|
|
552
556
|
| 'AdobeAnalytics'
|
|
553
|
-
| 'UniversalAds'
|
|
557
|
+
| 'UniversalAds'
|
|
558
|
+
| 'OpenAIAds';
|
|
554
559
|
|
|
555
560
|
capabilities: Entity.Capabilities;
|
|
556
561
|
|
|
@@ -711,6 +716,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
711
716
|
| 'Mailchimp'
|
|
712
717
|
| 'Mixpanel'
|
|
713
718
|
| 'NextdoorAds'
|
|
719
|
+
| 'OpenAIAds'
|
|
714
720
|
| 'OursSyntheticData'
|
|
715
721
|
| 'Partnerize'
|
|
716
722
|
| 'Pinterest'
|
|
@@ -813,7 +819,8 @@ export interface DestinationCreateParams {
|
|
|
813
819
|
| 'Everflow'
|
|
814
820
|
| 'BeeswaxPostback'
|
|
815
821
|
| 'AdobeAnalytics'
|
|
816
|
-
| 'UniversalAds'
|
|
822
|
+
| 'UniversalAds'
|
|
823
|
+
| 'OpenAIAds';
|
|
817
824
|
|
|
818
825
|
name?: string | null;
|
|
819
826
|
|
|
@@ -10,11 +10,10 @@ export class HeatmapPages extends APIResource {
|
|
|
10
10
|
* List pages with heatmap coverage in a date window, ranked for triage. Each
|
|
11
11
|
* entity is identified by `pageKey` (origin + pathname, query string stripped);
|
|
12
12
|
* use that value to drill into `GET /rest/v1/heatmap-pages/summary`. Supports
|
|
13
|
-
* cursor pagination
|
|
14
|
-
*
|
|
15
|
-
* `from`/`to`
|
|
16
|
-
*
|
|
17
|
-
* scope: web-analytics:view
|
|
13
|
+
* cursor pagination, with cursor depth capped at roughly 10,000 entries; if you
|
|
14
|
+
* need pages beyond that, narrow `from`/`to` or add filters rather than paginating
|
|
15
|
+
* further. `from`/`to` are UTC calendar days in `YYYY-MM-DD`; the window must be
|
|
16
|
+
* 60 days or fewer. Requires scope: web-analytics:view
|
|
18
17
|
*/
|
|
19
18
|
list(
|
|
20
19
|
query: HeatmapPageListParams,
|
package/src/resources/index.ts
CHANGED
|
@@ -174,6 +174,11 @@ export {
|
|
|
174
174
|
type SourceUpdateParams,
|
|
175
175
|
type SourceListResponsesCursor,
|
|
176
176
|
} from './sources';
|
|
177
|
+
export {
|
|
178
|
+
TagManagerAssetFolders,
|
|
179
|
+
type TagManagerAssetFolderCreateResponse,
|
|
180
|
+
type TagManagerAssetFolderCreateParams,
|
|
181
|
+
} from './tag-manager-asset-folders';
|
|
177
182
|
export {
|
|
178
183
|
TagManagerFolders,
|
|
179
184
|
type TagManagerFolderListResponse,
|
|
@@ -42,9 +42,9 @@ export class Locations extends APIResource {
|
|
|
42
42
|
/**
|
|
43
43
|
* Generate the paste-ready HTML embed snippet for a location. The response is a
|
|
44
44
|
* single self-contained HTML string (a `<style>` block + `<div>` wrapping an
|
|
45
|
-
* `<iframe>` pointed at the maps CDN
|
|
46
|
-
*
|
|
47
|
-
*
|
|
45
|
+
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
46
|
+
* `<script>`). Customize the render with the optional query params (`color`,
|
|
47
|
+
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
48
48
|
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires scope:
|
|
49
49
|
* maps:find
|
|
50
50
|
*/
|
|
@@ -79,9 +79,8 @@ export class Mappings extends APIResource {
|
|
|
79
79
|
* `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
|
|
80
80
|
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
81
81
|
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
82
|
-
* built-in default template
|
|
83
|
-
*
|
|
84
|
-
* mapping:find
|
|
82
|
+
* built-in default template, configured via
|
|
83
|
+
* `PUT /rest/v1/default-mappings/{destinationId}`. Requires scope: mapping:find
|
|
85
84
|
*/
|
|
86
85
|
templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse> {
|
|
87
86
|
return this._client.get('/rest/v1/mappings/templates', { query, ...options });
|
|
@@ -100,9 +99,9 @@ export class Mappings extends APIResource {
|
|
|
100
99
|
/**
|
|
101
100
|
* Lists the custom variables observed in this account’s recent event stream (last
|
|
102
101
|
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
103
|
-
* target in mapping `value` fields.
|
|
104
|
-
* list means no custom properties have been
|
|
105
|
-
* scope: variables:find-custom
|
|
102
|
+
* target in mapping `value` fields. Newly seen properties may take a few minutes
|
|
103
|
+
* to appear; an empty list means no custom properties have been observed yet for
|
|
104
|
+
* this account. Requires scope: variables:find-custom
|
|
106
105
|
*/
|
|
107
106
|
customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse> {
|
|
108
107
|
return this._client.get('/rest/v1/mappings/custom-variables', options);
|
package/src/resources/sources.ts
CHANGED
|
@@ -52,12 +52,13 @@ export class Sources extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Returns the install or ingest tokens for a source.
|
|
56
|
-
*
|
|
57
|
-
* `{ sourceType: "pixel", token, testToken, installScript, testInstallScript }
|
|
58
|
-
*
|
|
55
|
+
* Returns the install or ingest tokens for a source. The response is a
|
|
56
|
+
* discriminated union on `sourceType`: pixel sources return
|
|
57
|
+
* `{ sourceType: "pixel", token, testToken, installScript, testInstallScript }`,
|
|
58
|
+
* and webhook sources return
|
|
59
59
|
* `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
|
|
60
|
-
*
|
|
60
|
+
* Inspect the source's `type` field (`GET /rest/v1/sources/{id}`) to know which
|
|
61
|
+
* variant to expect. Requires scope: source:view
|
|
61
62
|
*/
|
|
62
63
|
tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse> {
|
|
63
64
|
return this._client.get(path`/rest/v1/sources/${id}/tokens`, options);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class TagManagerAssetFolders extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Assign a tag, trigger, or variable to a folder within its tag manager, or send
|
|
10
|
+
* `folderId: null` to remove the asset from its current folder. The assignment is
|
|
11
|
+
* a full replace — calling it again with a different `folderId` silently moves the
|
|
12
|
+
* asset. Requires scope: tagManagers:update
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: TagManagerAssetFolderCreateParams,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<TagManagerAssetFolderCreateResponse> {
|
|
18
|
+
return this._client.post('/rest/v1/tag-manager-asset-folders', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TagManagerAssetFolderCreateResponse {
|
|
23
|
+
id: string;
|
|
24
|
+
|
|
25
|
+
accountId: string;
|
|
26
|
+
|
|
27
|
+
assetId: string;
|
|
28
|
+
|
|
29
|
+
assetType: 'tagManagerTag' | 'tagManagerTrigger' | 'tagManagerVariable';
|
|
30
|
+
|
|
31
|
+
tagManagerId: string;
|
|
32
|
+
|
|
33
|
+
createdAt?: string | null;
|
|
34
|
+
|
|
35
|
+
folderId?: string | null;
|
|
36
|
+
|
|
37
|
+
updatedAt?: string | null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface TagManagerAssetFolderCreateParams {
|
|
41
|
+
/**
|
|
42
|
+
* UUID of the tag, trigger, or variable to assign.
|
|
43
|
+
*/
|
|
44
|
+
assetId: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Asset type to assign. Must be one of `tagManagerTag`, `tagManagerTrigger`, or
|
|
48
|
+
* `tagManagerVariable`.
|
|
49
|
+
*/
|
|
50
|
+
assetType: 'tagManagerTag' | 'tagManagerTrigger' | 'tagManagerVariable';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Folder UUID to assign to. Send `null` to remove the asset from its current
|
|
54
|
+
* folder.
|
|
55
|
+
*/
|
|
56
|
+
folderId: string | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare namespace TagManagerAssetFolders {
|
|
60
|
+
export {
|
|
61
|
+
type TagManagerAssetFolderCreateResponse as TagManagerAssetFolderCreateResponse,
|
|
62
|
+
type TagManagerAssetFolderCreateParams as TagManagerAssetFolderCreateParams,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -26,9 +26,8 @@ export class TagManagerTags extends APIResource {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Create a new tag inside a tag manager. `tagManagerId` is required in the body.
|
|
29
|
-
* Newly created tags are not assigned to any folder —
|
|
30
|
-
*
|
|
31
|
-
* tagManagers:update
|
|
29
|
+
* Newly created tags are not assigned to any folder — assign after creation via
|
|
30
|
+
* PATCH with `folderId`. Requires scope: tagManagers:update
|
|
32
31
|
*/
|
|
33
32
|
create(body: TagManagerTagCreateParams, options?: RequestOptions): APIPromise<TagManagerTagCreateResponse> {
|
|
34
33
|
return this._client.post('/rest/v1/tag-manager-tags', { body, ...options });
|
|
@@ -43,10 +42,9 @@ export class TagManagerTags extends APIResource {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
|
-
* Partially update a tag. Only the fields you send are changed.
|
|
47
|
-
*
|
|
48
|
-
* `
|
|
49
|
-
* managers (omit `tagManagerId` on patch). Requires scope: tagManagers:update
|
|
45
|
+
* Partially update a tag. Only the fields you send are changed. Tags cannot be
|
|
46
|
+
* moved between tag managers. To assign a tag to a folder, use
|
|
47
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
|
|
50
48
|
*/
|
|
51
49
|
update(
|
|
52
50
|
id: string,
|
|
@@ -103,19 +101,16 @@ export interface TagManagerTagListResponse {
|
|
|
103
101
|
*/
|
|
104
102
|
parameters: { [key: string]: unknown };
|
|
105
103
|
|
|
106
|
-
/**
|
|
107
|
-
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
108
|
-
* legacy tags whose implementation diverged from the type label.
|
|
109
|
-
*/
|
|
110
|
-
Tag: string;
|
|
111
|
-
|
|
112
104
|
/**
|
|
113
105
|
* Parent tag manager that owns this tag.
|
|
114
106
|
*/
|
|
115
107
|
tagManagerId: string;
|
|
116
108
|
|
|
117
109
|
/**
|
|
118
|
-
* Tag type discriminator
|
|
110
|
+
* Tag type discriminator. Examples that exist today: `OursTrackTag`,
|
|
111
|
+
* `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from
|
|
112
|
+
* `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are
|
|
113
|
+
* not valid ids.
|
|
119
114
|
*/
|
|
120
115
|
type: string;
|
|
121
116
|
|
|
@@ -132,8 +127,8 @@ export interface TagManagerTagListResponse {
|
|
|
132
127
|
enabled?: boolean | null;
|
|
133
128
|
|
|
134
129
|
/**
|
|
135
|
-
* Folder this tag belongs to in the dashboard.
|
|
136
|
-
*
|
|
130
|
+
* Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder
|
|
131
|
+
* UUID to assign, or `null` to remove from its current folder.
|
|
137
132
|
*/
|
|
138
133
|
folderId?: string | null;
|
|
139
134
|
|
|
@@ -170,19 +165,16 @@ export interface TagManagerTagCreateResponse {
|
|
|
170
165
|
*/
|
|
171
166
|
parameters: { [key: string]: unknown };
|
|
172
167
|
|
|
173
|
-
/**
|
|
174
|
-
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
175
|
-
* legacy tags whose implementation diverged from the type label.
|
|
176
|
-
*/
|
|
177
|
-
Tag: string;
|
|
178
|
-
|
|
179
168
|
/**
|
|
180
169
|
* Parent tag manager that owns this tag.
|
|
181
170
|
*/
|
|
182
171
|
tagManagerId: string;
|
|
183
172
|
|
|
184
173
|
/**
|
|
185
|
-
* Tag type discriminator
|
|
174
|
+
* Tag type discriminator. Examples that exist today: `OursTrackTag`,
|
|
175
|
+
* `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from
|
|
176
|
+
* `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are
|
|
177
|
+
* not valid ids.
|
|
186
178
|
*/
|
|
187
179
|
type: string;
|
|
188
180
|
|
|
@@ -199,8 +191,8 @@ export interface TagManagerTagCreateResponse {
|
|
|
199
191
|
enabled?: boolean | null;
|
|
200
192
|
|
|
201
193
|
/**
|
|
202
|
-
* Folder this tag belongs to in the dashboard.
|
|
203
|
-
*
|
|
194
|
+
* Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder
|
|
195
|
+
* UUID to assign, or `null` to remove from its current folder.
|
|
204
196
|
*/
|
|
205
197
|
folderId?: string | null;
|
|
206
198
|
|
|
@@ -237,19 +229,16 @@ export interface TagManagerTagRetrieveResponse {
|
|
|
237
229
|
*/
|
|
238
230
|
parameters: { [key: string]: unknown };
|
|
239
231
|
|
|
240
|
-
/**
|
|
241
|
-
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
242
|
-
* legacy tags whose implementation diverged from the type label.
|
|
243
|
-
*/
|
|
244
|
-
Tag: string;
|
|
245
|
-
|
|
246
232
|
/**
|
|
247
233
|
* Parent tag manager that owns this tag.
|
|
248
234
|
*/
|
|
249
235
|
tagManagerId: string;
|
|
250
236
|
|
|
251
237
|
/**
|
|
252
|
-
* Tag type discriminator
|
|
238
|
+
* Tag type discriminator. Examples that exist today: `OursTrackTag`,
|
|
239
|
+
* `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from
|
|
240
|
+
* `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are
|
|
241
|
+
* not valid ids.
|
|
253
242
|
*/
|
|
254
243
|
type: string;
|
|
255
244
|
|
|
@@ -266,8 +255,8 @@ export interface TagManagerTagRetrieveResponse {
|
|
|
266
255
|
enabled?: boolean | null;
|
|
267
256
|
|
|
268
257
|
/**
|
|
269
|
-
* Folder this tag belongs to in the dashboard.
|
|
270
|
-
*
|
|
258
|
+
* Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder
|
|
259
|
+
* UUID to assign, or `null` to remove from its current folder.
|
|
271
260
|
*/
|
|
272
261
|
folderId?: string | null;
|
|
273
262
|
|
|
@@ -304,19 +293,16 @@ export interface TagManagerTagUpdateResponse {
|
|
|
304
293
|
*/
|
|
305
294
|
parameters: { [key: string]: unknown };
|
|
306
295
|
|
|
307
|
-
/**
|
|
308
|
-
* Tag implementation identifier — usually matches `type` but kept distinct for
|
|
309
|
-
* legacy tags whose implementation diverged from the type label.
|
|
310
|
-
*/
|
|
311
|
-
Tag: string;
|
|
312
|
-
|
|
313
296
|
/**
|
|
314
297
|
* Parent tag manager that owns this tag.
|
|
315
298
|
*/
|
|
316
299
|
tagManagerId: string;
|
|
317
300
|
|
|
318
301
|
/**
|
|
319
|
-
* Tag type discriminator
|
|
302
|
+
* Tag type discriminator. Examples that exist today: `OursTrackTag`,
|
|
303
|
+
* `OursInitTag`, `OursIdentifyTag`, `CustomHtmlTag`. Pick from
|
|
304
|
+
* `GET /tag-manager-tags/types` for the canonical set — names like `GA4Event` are
|
|
305
|
+
* not valid ids.
|
|
320
306
|
*/
|
|
321
307
|
type: string;
|
|
322
308
|
|
|
@@ -333,8 +319,8 @@ export interface TagManagerTagUpdateResponse {
|
|
|
333
319
|
enabled?: boolean | null;
|
|
334
320
|
|
|
335
321
|
/**
|
|
336
|
-
* Folder this tag belongs to in the dashboard.
|
|
337
|
-
*
|
|
322
|
+
* Folder this tag belongs to in the dashboard. Settable via PATCH — send a folder
|
|
323
|
+
* UUID to assign, or `null` to remove from its current folder.
|
|
338
324
|
*/
|
|
339
325
|
folderId?: string | null;
|
|
340
326
|
|
|
@@ -466,18 +452,15 @@ export interface TagManagerTagCreateParams {
|
|
|
466
452
|
*/
|
|
467
453
|
parameters: { [key: string]: unknown };
|
|
468
454
|
|
|
469
|
-
/**
|
|
470
|
-
* Tag implementation identifier (typically equals `type`).
|
|
471
|
-
*/
|
|
472
|
-
Tag: string;
|
|
473
|
-
|
|
474
455
|
/**
|
|
475
456
|
* Parent tag manager that will own the new tag.
|
|
476
457
|
*/
|
|
477
458
|
tagManagerId: string;
|
|
478
459
|
|
|
479
460
|
/**
|
|
480
|
-
* Tag type discriminator
|
|
461
|
+
* Tag type discriminator. Pick from `GET /tag-manager-tags/types` for the
|
|
462
|
+
* canonical set (e.g. `OursTrackTag`, `OursInitTag`, `CustomHtmlTag`). Names like
|
|
463
|
+
* `GA4Event` are not valid ids.
|
|
481
464
|
*/
|
|
482
465
|
type: string;
|
|
483
466
|
|
|
@@ -529,12 +512,7 @@ export interface TagManagerTagUpdateParams {
|
|
|
529
512
|
priority?: number | null;
|
|
530
513
|
|
|
531
514
|
/**
|
|
532
|
-
* Updated tag
|
|
533
|
-
*/
|
|
534
|
-
Tag?: string;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Updated tag type.
|
|
515
|
+
* Updated tag type. Pick from `GET /tag-manager-tags/types`.
|
|
538
516
|
*/
|
|
539
517
|
type?: string;
|
|
540
518
|
}
|
|
@@ -45,7 +45,8 @@ export class TagManagerTriggers extends APIResource {
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Partially update a trigger. Only the fields you send are changed. `conditions`
|
|
48
|
-
* is replaced wholesale when sent.
|
|
48
|
+
* is replaced wholesale when sent. To assign a trigger to a folder, use
|
|
49
|
+
* `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
|
|
49
50
|
*/
|
|
50
51
|
update(
|
|
51
52
|
id: string,
|
|
@@ -97,12 +98,11 @@ export interface TagManagerTriggerListResponse {
|
|
|
97
98
|
tagManagerId: string;
|
|
98
99
|
|
|
99
100
|
/**
|
|
100
|
-
* Trigger
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
* Trigger type (e.g. `Initialization`, `PageView`, `Click`).
|
|
101
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
102
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
103
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
104
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
105
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
106
106
|
*/
|
|
107
107
|
type: string;
|
|
108
108
|
|
|
@@ -111,8 +111,8 @@ export interface TagManagerTriggerListResponse {
|
|
|
111
111
|
enabled?: boolean | null;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Folder this trigger belongs to.
|
|
115
|
-
* `
|
|
114
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
115
|
+
* assign, or `null` to remove from its current folder.
|
|
116
116
|
*/
|
|
117
117
|
folderId?: string | null;
|
|
118
118
|
|
|
@@ -140,12 +140,11 @@ export interface TagManagerTriggerCreateResponse {
|
|
|
140
140
|
tagManagerId: string;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* Trigger
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* Trigger type (e.g. `Initialization`, `PageView`, `Click`).
|
|
143
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
144
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
145
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
146
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
147
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
149
148
|
*/
|
|
150
149
|
type: string;
|
|
151
150
|
|
|
@@ -154,8 +153,8 @@ export interface TagManagerTriggerCreateResponse {
|
|
|
154
153
|
enabled?: boolean | null;
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
|
-
* Folder this trigger belongs to.
|
|
158
|
-
* `
|
|
156
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
157
|
+
* assign, or `null` to remove from its current folder.
|
|
159
158
|
*/
|
|
160
159
|
folderId?: string | null;
|
|
161
160
|
|
|
@@ -183,12 +182,11 @@ export interface TagManagerTriggerRetrieveResponse {
|
|
|
183
182
|
tagManagerId: string;
|
|
184
183
|
|
|
185
184
|
/**
|
|
186
|
-
* Trigger
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
* Trigger type (e.g. `Initialization`, `PageView`, `Click`).
|
|
185
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
186
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
187
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
188
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
189
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
192
190
|
*/
|
|
193
191
|
type: string;
|
|
194
192
|
|
|
@@ -197,8 +195,8 @@ export interface TagManagerTriggerRetrieveResponse {
|
|
|
197
195
|
enabled?: boolean | null;
|
|
198
196
|
|
|
199
197
|
/**
|
|
200
|
-
* Folder this trigger belongs to.
|
|
201
|
-
* `
|
|
198
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
199
|
+
* assign, or `null` to remove from its current folder.
|
|
202
200
|
*/
|
|
203
201
|
folderId?: string | null;
|
|
204
202
|
|
|
@@ -226,12 +224,11 @@ export interface TagManagerTriggerUpdateResponse {
|
|
|
226
224
|
tagManagerId: string;
|
|
227
225
|
|
|
228
226
|
/**
|
|
229
|
-
* Trigger
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
* Trigger type (e.g. `Initialization`, `PageView`, `Click`).
|
|
227
|
+
* Trigger type discriminator. Examples that exist today: `PageView`, `DomReady`,
|
|
228
|
+
* `Initialization`, `AllElementsClick`, `AllLinksClick`, `FormSubmit`,
|
|
229
|
+
* `CustomEvent`, `ScrollReach`, `Timer`. Pick from
|
|
230
|
+
* `GET /tag-manager-triggers/types` for the canonical set. Note there is no plain
|
|
231
|
+
* `Click` id; use one of the `All*Click` variants.
|
|
235
232
|
*/
|
|
236
233
|
type: string;
|
|
237
234
|
|
|
@@ -240,8 +237,8 @@ export interface TagManagerTriggerUpdateResponse {
|
|
|
240
237
|
enabled?: boolean | null;
|
|
241
238
|
|
|
242
239
|
/**
|
|
243
|
-
* Folder this trigger belongs to.
|
|
244
|
-
* `
|
|
240
|
+
* Folder this trigger belongs to. Settable via PATCH — send a folder UUID to
|
|
241
|
+
* assign, or `null` to remove from its current folder.
|
|
245
242
|
*/
|
|
246
243
|
folderId?: string | null;
|
|
247
244
|
|
|
@@ -371,12 +368,8 @@ export interface TagManagerTriggerCreateParams {
|
|
|
371
368
|
tagManagerId: string;
|
|
372
369
|
|
|
373
370
|
/**
|
|
374
|
-
* Trigger
|
|
375
|
-
|
|
376
|
-
Trigger: string;
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Trigger type discriminator.
|
|
371
|
+
* Trigger type discriminator. Pick from `GET /tag-manager-triggers/types` for the
|
|
372
|
+
* canonical set (e.g. `PageView`, `CustomEvent`, `AllElementsClick`).
|
|
380
373
|
*/
|
|
381
374
|
type: string;
|
|
382
375
|
|
|
@@ -405,12 +398,7 @@ export interface TagManagerTriggerUpdateParams {
|
|
|
405
398
|
parameters?: { [key: string]: unknown };
|
|
406
399
|
|
|
407
400
|
/**
|
|
408
|
-
* Updated trigger
|
|
409
|
-
*/
|
|
410
|
-
Trigger?: string;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Updated trigger type.
|
|
401
|
+
* Updated trigger type. Pick from `GET /tag-manager-triggers/types`.
|
|
414
402
|
*/
|
|
415
403
|
type?: string;
|
|
416
404
|
}
|