@oursprivacy/platform-sdk 1.18.0 → 1.20.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 +21 -0
- package/README.md +8 -12
- package/client.d.mts +14 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -2
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/destination-types.d.mts +146 -0
- package/resources/destination-types.d.mts.map +1 -0
- package/resources/destination-types.d.ts +146 -0
- package/resources/destination-types.d.ts.map +1 -0
- package/resources/destination-types.js +28 -0
- package/resources/destination-types.js.map +1 -0
- package/resources/destination-types.mjs +24 -0
- package/resources/destination-types.mjs.map +1 -0
- package/resources/destinations.d.mts +67 -52
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +67 -52
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +9 -3
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +9 -3
- package/resources/destinations.mjs.map +1 -1
- package/resources/index.d.mts +5 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/locations.d.mts +270 -0
- package/resources/locations.d.mts.map +1 -0
- package/resources/locations.d.ts +270 -0
- package/resources/locations.d.ts.map +1 -0
- package/resources/locations.js +48 -0
- package/resources/locations.js.map +1 -0
- package/resources/locations.mjs +44 -0
- package/resources/locations.mjs.map +1 -0
- package/resources/web-scanner-rules.d.mts +195 -0
- package/resources/web-scanner-rules.d.mts.map +1 -0
- package/resources/web-scanner-rules.d.ts +195 -0
- package/resources/web-scanner-rules.d.ts.map +1 -0
- package/resources/web-scanner-rules.js +48 -0
- package/resources/web-scanner-rules.js.map +1 -0
- package/resources/web-scanner-rules.mjs +44 -0
- package/resources/web-scanner-rules.mjs.map +1 -0
- package/resources/web-scanners.d.mts +199 -0
- package/resources/web-scanners.d.mts.map +1 -0
- package/resources/web-scanners.d.ts +199 -0
- package/resources/web-scanners.d.ts.map +1 -0
- package/resources/web-scanners.js +67 -0
- package/resources/web-scanners.js.map +1 -0
- package/resources/web-scanners.mjs +63 -0
- package/resources/web-scanners.mjs.map +1 -0
- package/src/client.ts +90 -0
- package/src/resources/destination-types.ts +373 -0
- package/src/resources/destinations.ts +239 -161
- package/src/resources/index.ts +39 -0
- package/src/resources/locations.ts +463 -0
- package/src/resources/web-scanner-rules.ts +304 -0
- package/src/resources/web-scanners.ts +333 -0
- 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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Locations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List every location for this account. Not paginated — each account has a small
|
|
7
|
+
* map-count limit (single digits in practice) so the response always fits in a
|
|
8
|
+
* single page. Requires scope: maps:list
|
|
9
|
+
*/
|
|
10
|
+
list(options?: RequestOptions): APIPromise<LocationListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new location (map embed). All address fields are optional and can be
|
|
13
|
+
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
14
|
+
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
15
|
+
* Requires scope: maps:create
|
|
16
|
+
*/
|
|
17
|
+
create(body: LocationCreateParams, options?: RequestOptions): APIPromise<LocationCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Partially update a location. Only the fields you send are changed.
|
|
20
|
+
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
21
|
+
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
22
|
+
* latest coordinates. Requires scope: maps:update
|
|
23
|
+
*/
|
|
24
|
+
update(id: string, body: LocationUpdateParams, options?: RequestOptions): APIPromise<LocationUpdateResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Generate the paste-ready HTML embed snippet for a location. The response is a
|
|
27
|
+
* single self-contained HTML string (a `<style>` block + `<div>` wrapping an
|
|
28
|
+
* `<iframe>` pointed at the maps CDN for the current stage, plus an optional
|
|
29
|
+
* JSON-LD `<script>`). Customize the render with the optional query params
|
|
30
|
+
* (`color`, `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
31
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires scope:
|
|
32
|
+
* maps:find
|
|
33
|
+
*/
|
|
34
|
+
embedCode(id: string, query?: LocationEmbedCodeParams | null | undefined, options?: RequestOptions): APIPromise<LocationEmbedCodeResponse>;
|
|
35
|
+
}
|
|
36
|
+
export interface LocationListResponse {
|
|
37
|
+
entities: Array<LocationListResponse.Entity>;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace LocationListResponse {
|
|
40
|
+
interface Entity {
|
|
41
|
+
id: string;
|
|
42
|
+
accountId: string;
|
|
43
|
+
additionalAddresses?: Array<Entity.AdditionalAddress> | null;
|
|
44
|
+
center?: unknown | null;
|
|
45
|
+
city?: string | null;
|
|
46
|
+
country?: string | null;
|
|
47
|
+
createdAt?: string | null;
|
|
48
|
+
customDomain?: string | null;
|
|
49
|
+
latitude?: number | null;
|
|
50
|
+
line1?: string | null;
|
|
51
|
+
line2?: string | null;
|
|
52
|
+
longitude?: number | null;
|
|
53
|
+
mapName?: string | null;
|
|
54
|
+
name?: string | null;
|
|
55
|
+
phoneNumber?: string | null;
|
|
56
|
+
state?: string | null;
|
|
57
|
+
updatedAt?: string | null;
|
|
58
|
+
websiteLinkText?: string | null;
|
|
59
|
+
websiteUrl?: string | null;
|
|
60
|
+
zip?: string | null;
|
|
61
|
+
}
|
|
62
|
+
namespace Entity {
|
|
63
|
+
interface AdditionalAddress {
|
|
64
|
+
city?: string | null;
|
|
65
|
+
country?: string | null;
|
|
66
|
+
latitude?: number | null;
|
|
67
|
+
line1?: string | null;
|
|
68
|
+
line2?: string | null;
|
|
69
|
+
longitude?: number | null;
|
|
70
|
+
name?: string | null;
|
|
71
|
+
phoneNumber?: string | null;
|
|
72
|
+
state?: string | null;
|
|
73
|
+
websiteLinkText?: string | null;
|
|
74
|
+
websiteUrl?: string | null;
|
|
75
|
+
zip?: string | null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export interface LocationCreateResponse {
|
|
80
|
+
id: string;
|
|
81
|
+
accountId: string;
|
|
82
|
+
additionalAddresses?: Array<LocationCreateResponse.AdditionalAddress> | null;
|
|
83
|
+
center?: unknown | null;
|
|
84
|
+
city?: string | null;
|
|
85
|
+
country?: string | null;
|
|
86
|
+
createdAt?: string | null;
|
|
87
|
+
customDomain?: string | null;
|
|
88
|
+
latitude?: number | null;
|
|
89
|
+
line1?: string | null;
|
|
90
|
+
line2?: string | null;
|
|
91
|
+
longitude?: number | null;
|
|
92
|
+
mapName?: string | null;
|
|
93
|
+
name?: string | null;
|
|
94
|
+
phoneNumber?: string | null;
|
|
95
|
+
state?: string | null;
|
|
96
|
+
updatedAt?: string | null;
|
|
97
|
+
websiteLinkText?: string | null;
|
|
98
|
+
websiteUrl?: string | null;
|
|
99
|
+
zip?: string | null;
|
|
100
|
+
}
|
|
101
|
+
export declare namespace LocationCreateResponse {
|
|
102
|
+
interface AdditionalAddress {
|
|
103
|
+
city?: string | null;
|
|
104
|
+
country?: string | null;
|
|
105
|
+
latitude?: number | null;
|
|
106
|
+
line1?: string | null;
|
|
107
|
+
line2?: string | null;
|
|
108
|
+
longitude?: number | null;
|
|
109
|
+
name?: string | null;
|
|
110
|
+
phoneNumber?: string | null;
|
|
111
|
+
state?: string | null;
|
|
112
|
+
websiteLinkText?: string | null;
|
|
113
|
+
websiteUrl?: string | null;
|
|
114
|
+
zip?: string | null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export interface LocationUpdateResponse {
|
|
118
|
+
id: string;
|
|
119
|
+
accountId: string;
|
|
120
|
+
additionalAddresses?: Array<LocationUpdateResponse.AdditionalAddress> | null;
|
|
121
|
+
center?: unknown | null;
|
|
122
|
+
city?: string | null;
|
|
123
|
+
country?: string | null;
|
|
124
|
+
createdAt?: string | null;
|
|
125
|
+
customDomain?: string | null;
|
|
126
|
+
latitude?: number | null;
|
|
127
|
+
line1?: string | null;
|
|
128
|
+
line2?: string | null;
|
|
129
|
+
longitude?: number | null;
|
|
130
|
+
mapName?: string | null;
|
|
131
|
+
name?: string | null;
|
|
132
|
+
phoneNumber?: string | null;
|
|
133
|
+
state?: string | null;
|
|
134
|
+
updatedAt?: string | null;
|
|
135
|
+
websiteLinkText?: string | null;
|
|
136
|
+
websiteUrl?: string | null;
|
|
137
|
+
zip?: string | null;
|
|
138
|
+
}
|
|
139
|
+
export declare namespace LocationUpdateResponse {
|
|
140
|
+
interface AdditionalAddress {
|
|
141
|
+
city?: string | null;
|
|
142
|
+
country?: string | null;
|
|
143
|
+
latitude?: number | null;
|
|
144
|
+
line1?: string | null;
|
|
145
|
+
line2?: string | null;
|
|
146
|
+
longitude?: number | null;
|
|
147
|
+
name?: string | null;
|
|
148
|
+
phoneNumber?: string | null;
|
|
149
|
+
state?: string | null;
|
|
150
|
+
websiteLinkText?: string | null;
|
|
151
|
+
websiteUrl?: string | null;
|
|
152
|
+
zip?: string | null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export interface LocationEmbedCodeResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Self-contained HTML snippet (a `<style>` + `<div>` wrapping an `<iframe>`, plus
|
|
158
|
+
* an optional JSON-LD `<script>`) ready to paste into any page. The iframe `src`
|
|
159
|
+
* points to the maps CDN for the current stage.
|
|
160
|
+
*/
|
|
161
|
+
embedCode: string;
|
|
162
|
+
}
|
|
163
|
+
export interface LocationCreateParams {
|
|
164
|
+
additionalAddresses?: Array<LocationCreateParams.AdditionalAddress> | null;
|
|
165
|
+
center?: unknown | null;
|
|
166
|
+
city?: string | null;
|
|
167
|
+
country?: string | null;
|
|
168
|
+
customDomain?: string | null;
|
|
169
|
+
latitude?: number | null;
|
|
170
|
+
line1?: string | null;
|
|
171
|
+
line2?: string | null;
|
|
172
|
+
longitude?: number | null;
|
|
173
|
+
mapName?: string | null;
|
|
174
|
+
name?: string | null;
|
|
175
|
+
phoneNumber?: string | null;
|
|
176
|
+
state?: string | null;
|
|
177
|
+
websiteLinkText?: string | null;
|
|
178
|
+
websiteUrl?: string | null;
|
|
179
|
+
zip?: string | null;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace LocationCreateParams {
|
|
182
|
+
interface AdditionalAddress {
|
|
183
|
+
latitude: number;
|
|
184
|
+
longitude: number;
|
|
185
|
+
city?: string | null;
|
|
186
|
+
country?: string | null;
|
|
187
|
+
line1?: string | null;
|
|
188
|
+
line2?: string | null;
|
|
189
|
+
name?: string | null;
|
|
190
|
+
phoneNumber?: string | null;
|
|
191
|
+
state?: string | null;
|
|
192
|
+
websiteLinkText?: string | null;
|
|
193
|
+
websiteUrl?: string | null;
|
|
194
|
+
zip?: string | null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
export interface LocationUpdateParams {
|
|
198
|
+
additionalAddresses?: Array<LocationUpdateParams.AdditionalAddress> | null;
|
|
199
|
+
center?: unknown | null;
|
|
200
|
+
city?: string | null;
|
|
201
|
+
country?: string | null;
|
|
202
|
+
customDomain?: string | null;
|
|
203
|
+
latitude?: number | null;
|
|
204
|
+
line1?: string | null;
|
|
205
|
+
line2?: string | null;
|
|
206
|
+
longitude?: number | null;
|
|
207
|
+
mapName?: string | null;
|
|
208
|
+
name?: string | null;
|
|
209
|
+
phoneNumber?: string | null;
|
|
210
|
+
state?: string | null;
|
|
211
|
+
websiteLinkText?: string | null;
|
|
212
|
+
websiteUrl?: string | null;
|
|
213
|
+
zip?: string | null;
|
|
214
|
+
}
|
|
215
|
+
export declare namespace LocationUpdateParams {
|
|
216
|
+
interface AdditionalAddress {
|
|
217
|
+
latitude: number;
|
|
218
|
+
longitude: number;
|
|
219
|
+
city?: string | null;
|
|
220
|
+
country?: string | null;
|
|
221
|
+
line1?: string | null;
|
|
222
|
+
line2?: string | null;
|
|
223
|
+
name?: string | null;
|
|
224
|
+
phoneNumber?: string | null;
|
|
225
|
+
state?: string | null;
|
|
226
|
+
websiteLinkText?: string | null;
|
|
227
|
+
websiteUrl?: string | null;
|
|
228
|
+
zip?: string | null;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export interface LocationEmbedCodeParams {
|
|
232
|
+
/**
|
|
233
|
+
* Brand color used in the embedded map UI. Any CSS color string.
|
|
234
|
+
*/
|
|
235
|
+
color?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Light or dark color scheme.
|
|
238
|
+
*/
|
|
239
|
+
colorScheme?: 'light' | 'dark';
|
|
240
|
+
/**
|
|
241
|
+
* Render the address sidebar overlay next to the map. Send `false` to hide.
|
|
242
|
+
*/
|
|
243
|
+
includeAddressBox?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the embed renders map controls. `accessible` enables keyboard-navigable
|
|
246
|
+
* controls.
|
|
247
|
+
*/
|
|
248
|
+
includeControls?: 'yes' | 'no' | 'accessible';
|
|
249
|
+
/**
|
|
250
|
+
* Emit a `schema.org` Place JSON-LD block alongside the iframe so search engines
|
|
251
|
+
* can index the location.
|
|
252
|
+
*/
|
|
253
|
+
includeSEOSchema?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Base map style.
|
|
256
|
+
*/
|
|
257
|
+
mapStyle?: 'Standard' | 'Monochrome';
|
|
258
|
+
/**
|
|
259
|
+
* Visual theme variant.
|
|
260
|
+
*/
|
|
261
|
+
theme?: 'default' | 'modern';
|
|
262
|
+
/**
|
|
263
|
+
* Initial map zoom level (Google-style 1–20).
|
|
264
|
+
*/
|
|
265
|
+
zoom?: number;
|
|
266
|
+
}
|
|
267
|
+
export declare namespace Locations {
|
|
268
|
+
export { type LocationListResponse as LocationListResponse, type LocationCreateResponse as LocationCreateResponse, type LocationUpdateResponse as LocationUpdateResponse, type LocationEmbedCodeResponse as LocationEmbedCodeResponse, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, type LocationEmbedCodeParams as LocationEmbedCodeParams, };
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhE;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;OAKG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;OAQG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,yBAAiB,oBAAoB,CAA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rD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Locations = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Locations extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List every location for this account. Not paginated — each account has a small
|
|
10
|
+
* map-count limit (single digits in practice) so the response always fits in a
|
|
11
|
+
* single page. Requires scope: maps:list
|
|
12
|
+
*/
|
|
13
|
+
list(options) {
|
|
14
|
+
return this._client.get('/rest/v1/locations', options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a new location (map embed). All address fields are optional and can be
|
|
18
|
+
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
19
|
+
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
20
|
+
* Requires scope: maps:create
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Partially update a location. Only the fields you send are changed.
|
|
27
|
+
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
28
|
+
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
29
|
+
* latest coordinates. Requires scope: maps:update
|
|
30
|
+
*/
|
|
31
|
+
update(id, body, options) {
|
|
32
|
+
return this._client.patch((0, path_1.path) `/rest/v1/locations/${id}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Generate the paste-ready HTML embed snippet for a location. The response is a
|
|
36
|
+
* single self-contained HTML string (a `<style>` block + `<div>` wrapping an
|
|
37
|
+
* `<iframe>` pointed at the maps CDN for the current stage, plus an optional
|
|
38
|
+
* JSON-LD `<script>`). Customize the render with the optional query params
|
|
39
|
+
* (`color`, `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
40
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires scope:
|
|
41
|
+
* maps:find
|
|
42
|
+
*/
|
|
43
|
+
embedCode(id, query = {}, options) {
|
|
44
|
+
return this._client.get((0, path_1.path) `/rest/v1/locations/${id}/embed-code`, { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.Locations = Locations;
|
|
48
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CACP,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAlDD,8BAkDC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Locations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List every location for this account. Not paginated — each account has a small
|
|
7
|
+
* map-count limit (single digits in practice) so the response always fits in a
|
|
8
|
+
* single page. Requires scope: maps:list
|
|
9
|
+
*/
|
|
10
|
+
list(options) {
|
|
11
|
+
return this._client.get('/rest/v1/locations', options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Create a new location (map embed). All address fields are optional and can be
|
|
15
|
+
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
16
|
+
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
17
|
+
* Requires scope: maps:create
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Partially update a location. Only the fields you send are changed.
|
|
24
|
+
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
25
|
+
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
26
|
+
* latest coordinates. Requires scope: maps:update
|
|
27
|
+
*/
|
|
28
|
+
update(id, body, options) {
|
|
29
|
+
return this._client.patch(path `/rest/v1/locations/${id}`, { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Generate the paste-ready HTML embed snippet for a location. The response is a
|
|
33
|
+
* single self-contained HTML string (a `<style>` block + `<div>` wrapping an
|
|
34
|
+
* `<iframe>` pointed at the maps CDN for the current stage, plus an optional
|
|
35
|
+
* JSON-LD `<script>`). Customize the render with the optional query params
|
|
36
|
+
* (`color`, `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
37
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires scope:
|
|
38
|
+
* maps:find
|
|
39
|
+
*/
|
|
40
|
+
embedCode(id, query = {}, options) {
|
|
41
|
+
return this._client.get(path `/rest/v1/locations/${id}/embed-code`, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=locations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.mjs","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CACP,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class WebScannerRules extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List suppression rules for a single web scanner. Requires the `scannerId` query
|
|
7
|
+
* parameter — rules are always scoped to a parent scanner. Not paginated; the
|
|
8
|
+
* per-scanner rule count is bounded. Requires scope: webScanner:find
|
|
9
|
+
*/
|
|
10
|
+
list(query: WebScannerRuleListParams, options?: RequestOptions): APIPromise<WebScannerRuleListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a suppression rule on a web scanner. Auth is enforced against the parent
|
|
13
|
+
* scanner via `webScanner:update`. At least one of `cookiePatterns`,
|
|
14
|
+
* `domainPatterns`, or `scriptPatterns` should be set for the rule to match
|
|
15
|
+
* anything; omitted pattern arrays default to `[]`. Requires scope:
|
|
16
|
+
* webScanner:update
|
|
17
|
+
*/
|
|
18
|
+
create(body: WebScannerRuleCreateParams, options?: RequestOptions): APIPromise<WebScannerRuleCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Find a single web scanner rule by ID. Requires scope: webScanner:find
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WebScannerRuleRetrieveResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Partially update a suppression rule. Only the fields you send are changed.
|
|
25
|
+
* List-valued fields (`cookiePatterns`, `domainPatterns`, `scriptPatterns`) are
|
|
26
|
+
* replaced wholesale when sent. Requires scope: webScanner:update
|
|
27
|
+
*/
|
|
28
|
+
update(id: string, body: WebScannerRuleUpdateParams, options?: RequestOptions): APIPromise<WebScannerRuleUpdateResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a web scanner rule. Requires scope: webScanner:update
|
|
31
|
+
*/
|
|
32
|
+
delete(id: string, options?: RequestOptions): APIPromise<WebScannerRuleDeleteResponse>;
|
|
33
|
+
}
|
|
34
|
+
export interface WebScannerRuleListResponse {
|
|
35
|
+
entities: Array<WebScannerRuleListResponse.Entity>;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace WebScannerRuleListResponse {
|
|
38
|
+
interface Entity {
|
|
39
|
+
id: string;
|
|
40
|
+
accountId: string;
|
|
41
|
+
cookiePatterns: Array<string>;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
domainPatterns: Array<string>;
|
|
44
|
+
name: string;
|
|
45
|
+
priority: number;
|
|
46
|
+
scannerId: string;
|
|
47
|
+
scriptPatterns: Array<string>;
|
|
48
|
+
createdByUserId?: string | null;
|
|
49
|
+
notes?: string | null;
|
|
50
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
51
|
+
updatedAt?: string | null;
|
|
52
|
+
updatedByUserId?: string | null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface WebScannerRuleCreateResponse {
|
|
56
|
+
id: string;
|
|
57
|
+
accountId: string;
|
|
58
|
+
cookiePatterns: Array<string>;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
domainPatterns: Array<string>;
|
|
61
|
+
name: string;
|
|
62
|
+
priority: number;
|
|
63
|
+
scannerId: string;
|
|
64
|
+
scriptPatterns: Array<string>;
|
|
65
|
+
createdByUserId?: string | null;
|
|
66
|
+
notes?: string | null;
|
|
67
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
68
|
+
updatedAt?: string | null;
|
|
69
|
+
updatedByUserId?: string | null;
|
|
70
|
+
}
|
|
71
|
+
export interface WebScannerRuleRetrieveResponse {
|
|
72
|
+
id: string;
|
|
73
|
+
accountId: string;
|
|
74
|
+
cookiePatterns: Array<string>;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
domainPatterns: Array<string>;
|
|
77
|
+
name: string;
|
|
78
|
+
priority: number;
|
|
79
|
+
scannerId: string;
|
|
80
|
+
scriptPatterns: Array<string>;
|
|
81
|
+
createdByUserId?: string | null;
|
|
82
|
+
notes?: string | null;
|
|
83
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
84
|
+
updatedAt?: string | null;
|
|
85
|
+
updatedByUserId?: string | null;
|
|
86
|
+
}
|
|
87
|
+
export interface WebScannerRuleUpdateResponse {
|
|
88
|
+
id: string;
|
|
89
|
+
accountId: string;
|
|
90
|
+
cookiePatterns: Array<string>;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
domainPatterns: Array<string>;
|
|
93
|
+
name: string;
|
|
94
|
+
priority: number;
|
|
95
|
+
scannerId: string;
|
|
96
|
+
scriptPatterns: Array<string>;
|
|
97
|
+
createdByUserId?: string | null;
|
|
98
|
+
notes?: string | null;
|
|
99
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
100
|
+
updatedAt?: string | null;
|
|
101
|
+
updatedByUserId?: string | null;
|
|
102
|
+
}
|
|
103
|
+
export interface WebScannerRuleDeleteResponse {
|
|
104
|
+
/**
|
|
105
|
+
* The id of the suppression rule that was deleted.
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
/**
|
|
109
|
+
* True when the underlying mutation succeeded.
|
|
110
|
+
*/
|
|
111
|
+
deleted: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface WebScannerRuleListParams {
|
|
114
|
+
/**
|
|
115
|
+
* The web scanner whose suppression rules should be returned.
|
|
116
|
+
*/
|
|
117
|
+
scannerId: string;
|
|
118
|
+
}
|
|
119
|
+
export interface WebScannerRuleCreateParams {
|
|
120
|
+
/**
|
|
121
|
+
* User-friendly name for the suppression rule.
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
/**
|
|
125
|
+
* Rule priority (1–10,000). Lower numbers are evaluated first when multiple rules
|
|
126
|
+
* match.
|
|
127
|
+
*/
|
|
128
|
+
priority: number;
|
|
129
|
+
/**
|
|
130
|
+
* The web scanner this rule belongs to.
|
|
131
|
+
*/
|
|
132
|
+
scannerId: string;
|
|
133
|
+
/**
|
|
134
|
+
* Glob patterns matched against cookie names (e.g. `_ga*`). Max 100 entries. When
|
|
135
|
+
* sent on PATCH, replaces the existing list wholesale.
|
|
136
|
+
*/
|
|
137
|
+
cookiePatterns?: Array<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Glob patterns matched against cookie domain / script hostname (e.g.
|
|
140
|
+
* `*.google-analytics.com`). Max 100 entries. When sent on PATCH, replaces the
|
|
141
|
+
* existing list wholesale.
|
|
142
|
+
*/
|
|
143
|
+
domainPatterns?: Array<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Free-form notes about why this rule exists or what it covers. Trimmed
|
|
146
|
+
* server-side; empty strings become `null`.
|
|
147
|
+
*/
|
|
148
|
+
notes?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Why this rule was added. Surfaced in audit views. Send `null` to clear an
|
|
151
|
+
* existing reason on patch.
|
|
152
|
+
*/
|
|
153
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
154
|
+
/**
|
|
155
|
+
* Glob patterns matched against full script URLs (e.g.
|
|
156
|
+
* `https://www.googletagmanager.com/gtm.js?id=*`). Max 100 entries. When sent on
|
|
157
|
+
* PATCH, replaces the existing list wholesale.
|
|
158
|
+
*/
|
|
159
|
+
scriptPatterns?: Array<string>;
|
|
160
|
+
}
|
|
161
|
+
export interface WebScannerRuleUpdateParams {
|
|
162
|
+
/**
|
|
163
|
+
* Glob patterns matched against cookie names (e.g. `_ga*`). Max 100 entries. When
|
|
164
|
+
* sent on PATCH, replaces the existing list wholesale.
|
|
165
|
+
*/
|
|
166
|
+
cookiePatterns?: Array<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Glob patterns matched against cookie domain / script hostname (e.g.
|
|
169
|
+
* `*.google-analytics.com`). Max 100 entries. When sent on PATCH, replaces the
|
|
170
|
+
* existing list wholesale.
|
|
171
|
+
*/
|
|
172
|
+
domainPatterns?: Array<string>;
|
|
173
|
+
name?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Free-form notes about why this rule exists or what it covers. Trimmed
|
|
176
|
+
* server-side; empty strings become `null`.
|
|
177
|
+
*/
|
|
178
|
+
notes?: string | null;
|
|
179
|
+
priority?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Why this rule was added. Surfaced in audit views. Send `null` to clear an
|
|
182
|
+
* existing reason on patch.
|
|
183
|
+
*/
|
|
184
|
+
reason?: 'approved' | 'baa' | 'compliant' | 'firstParty' | 'ignore' | 'internal' | 'other' | null;
|
|
185
|
+
/**
|
|
186
|
+
* Glob patterns matched against full script URLs (e.g.
|
|
187
|
+
* `https://www.googletagmanager.com/gtm.js?id=*`). Max 100 entries. When sent on
|
|
188
|
+
* PATCH, replaces the existing list wholesale.
|
|
189
|
+
*/
|
|
190
|
+
scriptPatterns?: Array<string>;
|
|
191
|
+
}
|
|
192
|
+
export declare namespace WebScannerRules {
|
|
193
|
+
export { type WebScannerRuleListResponse as WebScannerRuleListResponse, type WebScannerRuleCreateResponse as WebScannerRuleCreateResponse, type WebScannerRuleRetrieveResponse as WebScannerRuleRetrieveResponse, type WebScannerRuleUpdateResponse as WebScannerRuleUpdateResponse, type WebScannerRuleDeleteResponse as WebScannerRuleDeleteResponse, type WebScannerRuleListParams as WebScannerRuleListParams, type WebScannerRuleCreateParams as WebScannerRuleCreateParams, type WebScannerRuleUpdateParams as WebScannerRuleUpdateParams, };
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=web-scanner-rules.d.mts.map
|
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