@oursprivacy/platform-sdk 1.10.0 → 1.12.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 +16 -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 +1 -1
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +1 -1
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/consent-settings.d.mts +126 -12
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +126 -12
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/destinations.d.mts +3 -3
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +3 -3
- package/resources/destinations.d.ts.map +1 -1
- package/resources/global-dispatch-centers.d.mts +221 -7
- package/resources/global-dispatch-centers.d.mts.map +1 -1
- package/resources/global-dispatch-centers.d.ts +221 -7
- package/resources/global-dispatch-centers.d.ts.map +1 -1
- package/resources/global-dispatch-centers.js +2 -2
- package/resources/global-dispatch-centers.js.map +1 -1
- package/resources/global-dispatch-centers.mjs +2 -2
- package/resources/global-dispatch-centers.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/replay-settings.d.mts +119 -12
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +119 -12
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +14 -5
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +14 -5
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/sources.d.mts +6 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/versions.d.mts +11 -11
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +11 -11
- package/resources/versions.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/allowed-events.ts +1 -1
- package/src/resources/consent-settings.ts +196 -12
- package/src/resources/destinations.ts +3 -3
- package/src/resources/global-dispatch-centers.ts +251 -7
- package/src/resources/index.ts +1 -0
- package/src/resources/replay-settings.ts +125 -12
- package/src/resources/sources.ts +6 -6
- package/src/resources/versions.ts +11 -11
- 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
|
@@ -16,7 +16,7 @@ export class ConsentSettings extends APIResource {
|
|
|
16
16
|
/**
|
|
17
17
|
* Find a single consent setting by ID. Requires scope: consentSettings:find
|
|
18
18
|
*/
|
|
19
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse | null> {
|
|
20
20
|
return this._client.get(path`/rest/v1/consent-settings/${id}`, options);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -54,7 +54,191 @@ export interface ConsentSettingCreateResponse {
|
|
|
54
54
|
consentSettings?: unknown | null;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export
|
|
57
|
+
export interface ConsentSettingRetrieveResponse {
|
|
58
|
+
id: string;
|
|
59
|
+
|
|
60
|
+
categories: Array<ConsentSettingRetrieveResponse.Category>;
|
|
61
|
+
|
|
62
|
+
createdAt: string;
|
|
63
|
+
|
|
64
|
+
default: ConsentSettingRetrieveResponse.Default;
|
|
65
|
+
|
|
66
|
+
kind: string;
|
|
67
|
+
|
|
68
|
+
name: string;
|
|
69
|
+
|
|
70
|
+
regions: Array<ConsentSettingRetrieveResponse.Region>;
|
|
71
|
+
|
|
72
|
+
services: Array<ConsentSettingRetrieveResponse.Service>;
|
|
73
|
+
|
|
74
|
+
status: 'Disabled' | 'Enabled';
|
|
75
|
+
|
|
76
|
+
consentCookieName?: string | null;
|
|
77
|
+
|
|
78
|
+
customDomain?: string | null;
|
|
79
|
+
|
|
80
|
+
revision?: number | null;
|
|
81
|
+
|
|
82
|
+
skipBlockingClassNames?: Array<string> | null;
|
|
83
|
+
|
|
84
|
+
updatedAt?: string | null;
|
|
85
|
+
|
|
86
|
+
webSDKToken?: string | null;
|
|
87
|
+
|
|
88
|
+
whitelistDomains?: Array<string> | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export namespace ConsentSettingRetrieveResponse {
|
|
92
|
+
export interface Category {
|
|
93
|
+
label: string;
|
|
94
|
+
|
|
95
|
+
priority: number;
|
|
96
|
+
|
|
97
|
+
value: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface Default {
|
|
101
|
+
categories: Array<Default.Category>;
|
|
102
|
+
|
|
103
|
+
language: string;
|
|
104
|
+
|
|
105
|
+
mode: 'opt_in' | 'opt_out';
|
|
106
|
+
|
|
107
|
+
translations: Array<Default.Translation>;
|
|
108
|
+
|
|
109
|
+
autoblockUnknown?: boolean | null;
|
|
110
|
+
|
|
111
|
+
autoShow?: boolean | null;
|
|
112
|
+
|
|
113
|
+
autoShowDismissConfig?: unknown | null;
|
|
114
|
+
|
|
115
|
+
autoShowDismissMode?: string | null;
|
|
116
|
+
|
|
117
|
+
disablePageInteraction?: boolean | null;
|
|
118
|
+
|
|
119
|
+
guiOptions?: unknown | null;
|
|
120
|
+
|
|
121
|
+
hideFromBots?: boolean | null;
|
|
122
|
+
|
|
123
|
+
showVendorsInPreferences?: boolean | null;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export namespace Default {
|
|
127
|
+
export interface Category {
|
|
128
|
+
key: string;
|
|
129
|
+
|
|
130
|
+
value: Category.Value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export namespace Category {
|
|
134
|
+
export interface Value {
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
|
|
137
|
+
autoDisableOnGPC?: boolean | null;
|
|
138
|
+
|
|
139
|
+
readOnly?: boolean | null;
|
|
140
|
+
|
|
141
|
+
reloadPage?: boolean | null;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface Translation {
|
|
146
|
+
language: string;
|
|
147
|
+
|
|
148
|
+
value: Translation.Value;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export namespace Translation {
|
|
152
|
+
export interface Value {
|
|
153
|
+
consentModal?: unknown | null;
|
|
154
|
+
|
|
155
|
+
preferencesModal?: unknown | null;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface Region {
|
|
161
|
+
regionCode: string;
|
|
162
|
+
|
|
163
|
+
rule: Region.Rule;
|
|
164
|
+
|
|
165
|
+
additionalRegions?: Array<string> | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace Region {
|
|
169
|
+
export interface Rule {
|
|
170
|
+
categories: Array<Rule.Category>;
|
|
171
|
+
|
|
172
|
+
language: string;
|
|
173
|
+
|
|
174
|
+
mode: 'opt_in' | 'opt_out';
|
|
175
|
+
|
|
176
|
+
translations: Array<Rule.Translation>;
|
|
177
|
+
|
|
178
|
+
autoblockUnknown?: boolean | null;
|
|
179
|
+
|
|
180
|
+
autoShow?: boolean | null;
|
|
181
|
+
|
|
182
|
+
autoShowDismissConfig?: unknown | null;
|
|
183
|
+
|
|
184
|
+
autoShowDismissMode?: string | null;
|
|
185
|
+
|
|
186
|
+
disablePageInteraction?: boolean | null;
|
|
187
|
+
|
|
188
|
+
guiOptions?: unknown | null;
|
|
189
|
+
|
|
190
|
+
hideFromBots?: boolean | null;
|
|
191
|
+
|
|
192
|
+
showVendorsInPreferences?: boolean | null;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export namespace Rule {
|
|
196
|
+
export interface Category {
|
|
197
|
+
key: string;
|
|
198
|
+
|
|
199
|
+
value: Category.Value;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export namespace Category {
|
|
203
|
+
export interface Value {
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
|
|
206
|
+
autoDisableOnGPC?: boolean | null;
|
|
207
|
+
|
|
208
|
+
readOnly?: boolean | null;
|
|
209
|
+
|
|
210
|
+
reloadPage?: boolean | null;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface Translation {
|
|
215
|
+
language: string;
|
|
216
|
+
|
|
217
|
+
value: Translation.Value;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export namespace Translation {
|
|
221
|
+
export interface Value {
|
|
222
|
+
consentModal?: unknown | null;
|
|
223
|
+
|
|
224
|
+
preferencesModal?: unknown | null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface Service {
|
|
231
|
+
internalNotes: string;
|
|
232
|
+
|
|
233
|
+
label: string;
|
|
234
|
+
|
|
235
|
+
additionalCategories?: Array<string> | null;
|
|
236
|
+
|
|
237
|
+
category?: string | null;
|
|
238
|
+
|
|
239
|
+
domainPatterns?: Array<string> | null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
58
242
|
|
|
59
243
|
export interface ConsentSettingUpdateResponse {
|
|
60
244
|
isSuccess: boolean;
|
|
@@ -94,13 +278,13 @@ export namespace ConsentSettingListResponse {
|
|
|
94
278
|
|
|
95
279
|
revision?: number | null;
|
|
96
280
|
|
|
97
|
-
skipBlockingClassNames?: Array<
|
|
281
|
+
skipBlockingClassNames?: Array<string> | null;
|
|
98
282
|
|
|
99
283
|
updatedAt?: string | null;
|
|
100
284
|
|
|
101
285
|
webSDKToken?: string | null;
|
|
102
286
|
|
|
103
|
-
whitelistDomains?: Array<
|
|
287
|
+
whitelistDomains?: Array<string> | null;
|
|
104
288
|
}
|
|
105
289
|
|
|
106
290
|
export namespace Entity {
|
|
@@ -177,7 +361,7 @@ export namespace ConsentSettingListResponse {
|
|
|
177
361
|
|
|
178
362
|
rule: Region.Rule;
|
|
179
363
|
|
|
180
|
-
additionalRegions?: Array<
|
|
364
|
+
additionalRegions?: Array<string> | null;
|
|
181
365
|
}
|
|
182
366
|
|
|
183
367
|
export namespace Region {
|
|
@@ -247,11 +431,11 @@ export namespace ConsentSettingListResponse {
|
|
|
247
431
|
|
|
248
432
|
label: string;
|
|
249
433
|
|
|
250
|
-
additionalCategories?: Array<
|
|
434
|
+
additionalCategories?: Array<string> | null;
|
|
251
435
|
|
|
252
436
|
category?: string | null;
|
|
253
437
|
|
|
254
|
-
domainPatterns?: Array<
|
|
438
|
+
domainPatterns?: Array<string> | null;
|
|
255
439
|
}
|
|
256
440
|
}
|
|
257
441
|
}
|
|
@@ -289,11 +473,11 @@ export interface ConsentSettingUpdateParams {
|
|
|
289
473
|
|
|
290
474
|
revision?: number | null;
|
|
291
475
|
|
|
292
|
-
skipBlockingClassNames?: Array<
|
|
476
|
+
skipBlockingClassNames?: Array<string> | null;
|
|
293
477
|
|
|
294
478
|
webSDKToken?: string | null;
|
|
295
479
|
|
|
296
|
-
whitelistDomains?: Array<
|
|
480
|
+
whitelistDomains?: Array<string> | null;
|
|
297
481
|
}
|
|
298
482
|
|
|
299
483
|
export namespace ConsentSettingUpdateParams {
|
|
@@ -370,7 +554,7 @@ export namespace ConsentSettingUpdateParams {
|
|
|
370
554
|
|
|
371
555
|
rule: Region.Rule;
|
|
372
556
|
|
|
373
|
-
additionalRegions?: Array<
|
|
557
|
+
additionalRegions?: Array<string> | null;
|
|
374
558
|
}
|
|
375
559
|
|
|
376
560
|
export namespace Region {
|
|
@@ -440,11 +624,11 @@ export namespace ConsentSettingUpdateParams {
|
|
|
440
624
|
|
|
441
625
|
label: string;
|
|
442
626
|
|
|
443
|
-
additionalCategories?: Array<
|
|
627
|
+
additionalCategories?: Array<string> | null;
|
|
444
628
|
|
|
445
629
|
category?: string | null;
|
|
446
630
|
|
|
447
|
-
domainPatterns?: Array<
|
|
631
|
+
domainPatterns?: Array<string> | null;
|
|
448
632
|
}
|
|
449
633
|
}
|
|
450
634
|
|
|
@@ -227,7 +227,7 @@ export interface DestinationRetrieveResponse {
|
|
|
227
227
|
|
|
228
228
|
httpDestinationUrl?: string | null;
|
|
229
229
|
|
|
230
|
-
limitedToSourceIds?: Array<
|
|
230
|
+
limitedToSourceIds?: Array<string> | null;
|
|
231
231
|
|
|
232
232
|
managerGoogleCustomerId?: string | null;
|
|
233
233
|
|
|
@@ -430,7 +430,7 @@ export namespace DestinationListResponse {
|
|
|
430
430
|
|
|
431
431
|
httpDestinationUrl?: string | null;
|
|
432
432
|
|
|
433
|
-
limitedToSourceIds?: Array<
|
|
433
|
+
limitedToSourceIds?: Array<string> | null;
|
|
434
434
|
|
|
435
435
|
managerGoogleCustomerId?: string | null;
|
|
436
436
|
|
|
@@ -545,7 +545,7 @@ export interface DestinationUpdateParams {
|
|
|
545
545
|
|
|
546
546
|
httpDestinationUrl?: string | null;
|
|
547
547
|
|
|
548
|
-
limitedToSourceIds?: Array<
|
|
548
|
+
limitedToSourceIds?: Array<string> | null;
|
|
549
549
|
|
|
550
550
|
managerGoogleCustomerId?: string | null;
|
|
551
551
|
|
|
@@ -9,14 +9,17 @@ export class GlobalDispatchCenters extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
11
11
|
*/
|
|
12
|
-
create(
|
|
13
|
-
|
|
12
|
+
create(
|
|
13
|
+
body: GlobalDispatchCenterCreateParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): APIPromise<GlobalDispatchCenterCreateResponse> {
|
|
16
|
+
return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* Find a single global dispatch center by ID. Requires scope: globalDispatch:find
|
|
18
21
|
*/
|
|
19
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null> {
|
|
20
23
|
return this._client.get(path`/rest/v1/global-dispatch-centers/${id}`, options);
|
|
21
24
|
}
|
|
22
25
|
|
|
@@ -47,32 +50,141 @@ export class GlobalDispatchCenters extends APIResource {
|
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
export interface GlobalDispatchCenterCreateResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Server-assigned UUID for this dispatch center.
|
|
55
|
+
*/
|
|
50
56
|
id: string;
|
|
51
57
|
|
|
58
|
+
/**
|
|
59
|
+
* ISO 8601 timestamp when the center was created.
|
|
60
|
+
*/
|
|
52
61
|
createdAt: string;
|
|
53
62
|
|
|
63
|
+
/**
|
|
64
|
+
* When false, the dispatch center is configured but does not route events.
|
|
65
|
+
*/
|
|
54
66
|
isEnabled: boolean;
|
|
55
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
70
|
+
*/
|
|
56
71
|
kind: string;
|
|
57
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Human-readable name shown in the dashboard.
|
|
75
|
+
*/
|
|
58
76
|
name?: string | null;
|
|
59
77
|
|
|
78
|
+
/**
|
|
79
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
80
|
+
* center; advances on every PATCH.
|
|
81
|
+
*/
|
|
60
82
|
updatedAt?: string | null;
|
|
61
83
|
}
|
|
62
84
|
|
|
63
|
-
export
|
|
85
|
+
export interface GlobalDispatchCenterRetrieveResponse {
|
|
86
|
+
/**
|
|
87
|
+
* Server-assigned UUID for this dispatch center.
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* ISO 8601 timestamp when the center was created.
|
|
93
|
+
*/
|
|
94
|
+
createdAt: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* When false, the dispatch center is configured but does not route events.
|
|
98
|
+
*/
|
|
99
|
+
isEnabled: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
103
|
+
*/
|
|
104
|
+
kind: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Routing categories in priority order (1..N).
|
|
108
|
+
*/
|
|
109
|
+
categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Human-readable name shown in the dashboard.
|
|
113
|
+
*/
|
|
114
|
+
name?: string | null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Free-form notes for this center.
|
|
118
|
+
*/
|
|
119
|
+
notes?: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
123
|
+
* center; advances on every PATCH.
|
|
124
|
+
*/
|
|
125
|
+
updatedAt?: string | null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export namespace GlobalDispatchCenterRetrieveResponse {
|
|
129
|
+
export interface Category {
|
|
130
|
+
/**
|
|
131
|
+
* Display name for the category.
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
137
|
+
* details.
|
|
138
|
+
*/
|
|
139
|
+
priority: number;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Optional human-readable description.
|
|
143
|
+
*/
|
|
144
|
+
description?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Destinations that receive events matching this category.
|
|
148
|
+
*/
|
|
149
|
+
destinationIds?: Array<string> | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Optional condition tree gating which events match this category.
|
|
153
|
+
*/
|
|
154
|
+
logic?: unknown | null;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
64
157
|
|
|
65
158
|
export interface GlobalDispatchCenterUpdateResponse {
|
|
159
|
+
/**
|
|
160
|
+
* Server-assigned UUID for this dispatch center.
|
|
161
|
+
*/
|
|
66
162
|
id: string;
|
|
67
163
|
|
|
164
|
+
/**
|
|
165
|
+
* ISO 8601 timestamp when the center was created.
|
|
166
|
+
*/
|
|
68
167
|
createdAt: string;
|
|
69
168
|
|
|
169
|
+
/**
|
|
170
|
+
* When false, the dispatch center is configured but does not route events.
|
|
171
|
+
*/
|
|
70
172
|
isEnabled: boolean;
|
|
71
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
176
|
+
*/
|
|
72
177
|
kind: string;
|
|
73
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Human-readable name shown in the dashboard.
|
|
181
|
+
*/
|
|
74
182
|
name?: string | null;
|
|
75
183
|
|
|
184
|
+
/**
|
|
185
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
186
|
+
* center; advances on every PATCH.
|
|
187
|
+
*/
|
|
76
188
|
updatedAt?: string | null;
|
|
77
189
|
}
|
|
78
190
|
|
|
@@ -82,36 +194,167 @@ export interface GlobalDispatchCenterListResponse {
|
|
|
82
194
|
|
|
83
195
|
export namespace GlobalDispatchCenterListResponse {
|
|
84
196
|
export interface Entity {
|
|
197
|
+
/**
|
|
198
|
+
* Server-assigned UUID for this dispatch center.
|
|
199
|
+
*/
|
|
85
200
|
id: string;
|
|
86
201
|
|
|
202
|
+
/**
|
|
203
|
+
* ISO 8601 timestamp when the center was created.
|
|
204
|
+
*/
|
|
87
205
|
createdAt: string;
|
|
88
206
|
|
|
207
|
+
/**
|
|
208
|
+
* When false, the dispatch center is configured but does not route events.
|
|
209
|
+
*/
|
|
89
210
|
isEnabled: boolean;
|
|
90
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
214
|
+
*/
|
|
91
215
|
kind: string;
|
|
92
216
|
|
|
93
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Routing categories in priority order (1..N).
|
|
219
|
+
*/
|
|
220
|
+
categories?: Array<Entity.Category> | null;
|
|
94
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Human-readable name shown in the dashboard.
|
|
224
|
+
*/
|
|
95
225
|
name?: string | null;
|
|
96
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Free-form notes for this center.
|
|
229
|
+
*/
|
|
97
230
|
notes?: string | null;
|
|
98
231
|
|
|
232
|
+
/**
|
|
233
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
234
|
+
* center; advances on every PATCH.
|
|
235
|
+
*/
|
|
99
236
|
updatedAt?: string | null;
|
|
100
237
|
}
|
|
238
|
+
|
|
239
|
+
export namespace Entity {
|
|
240
|
+
export interface Category {
|
|
241
|
+
/**
|
|
242
|
+
* Display name for the category.
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
248
|
+
* details.
|
|
249
|
+
*/
|
|
250
|
+
priority: number;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Optional human-readable description.
|
|
254
|
+
*/
|
|
255
|
+
description?: string | null;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Destinations that receive events matching this category.
|
|
259
|
+
*/
|
|
260
|
+
destinationIds?: Array<string> | null;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Optional condition tree gating which events match this category.
|
|
264
|
+
*/
|
|
265
|
+
logic?: unknown | null;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
101
268
|
}
|
|
102
269
|
|
|
103
|
-
export
|
|
270
|
+
export interface GlobalDispatchCenterDeleteResponse {
|
|
271
|
+
/**
|
|
272
|
+
* The id of the dispatch center that was deleted.
|
|
273
|
+
*/
|
|
274
|
+
id: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* True when the underlying mutation succeeded; the entity is gone.
|
|
278
|
+
*/
|
|
279
|
+
deleted: boolean;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface GlobalDispatchCenterCreateParams {
|
|
283
|
+
/**
|
|
284
|
+
* Whether the center starts enabled. Defaults to false — opt in by setting true
|
|
285
|
+
* here or via PATCH later.
|
|
286
|
+
*/
|
|
287
|
+
isEnabled?: boolean | null;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Display name for the new center. Defaults to "Consent Dispatch Center".
|
|
291
|
+
*/
|
|
292
|
+
name?: string | null;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Free-form notes shown in the dashboard. Not used for routing.
|
|
296
|
+
*/
|
|
297
|
+
notes?: string | null;
|
|
298
|
+
}
|
|
104
299
|
|
|
105
300
|
export interface GlobalDispatchCenterUpdateParams {
|
|
106
|
-
|
|
301
|
+
/**
|
|
302
|
+
* Full replacement of the categories list. Categories are sorted by priority on
|
|
303
|
+
* write and re-stamped 1..N — see the priority field. Omit to leave existing
|
|
304
|
+
* categories untouched.
|
|
305
|
+
*/
|
|
306
|
+
categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
|
|
107
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Toggle the dispatch center on/off without changing any other config.
|
|
310
|
+
*/
|
|
108
311
|
isEnabled?: boolean | null;
|
|
109
312
|
|
|
313
|
+
/**
|
|
314
|
+
* New display name for the center.
|
|
315
|
+
*/
|
|
110
316
|
name?: string | null;
|
|
111
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Replace the free-form notes.
|
|
320
|
+
*/
|
|
112
321
|
notes?: string | null;
|
|
113
322
|
}
|
|
114
323
|
|
|
324
|
+
export namespace GlobalDispatchCenterUpdateParams {
|
|
325
|
+
export interface Category {
|
|
326
|
+
/**
|
|
327
|
+
* Optional human-readable description shown in the dashboard.
|
|
328
|
+
*/
|
|
329
|
+
description?: string | null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Destinations that receive events matching this category. Stale IDs (deleted
|
|
333
|
+
* destinations or ones from another account) are silently filtered out at write
|
|
334
|
+
* time.
|
|
335
|
+
*/
|
|
336
|
+
destinationIds?: Array<string> | null;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Optional condition tree. When set, only matching events route to this category.
|
|
340
|
+
*/
|
|
341
|
+
logic?: unknown | null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Display name for the category. Auto-generated if omitted.
|
|
345
|
+
*/
|
|
346
|
+
name?: string | null;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Used as a sort key on write. The server sorts categories by this value
|
|
350
|
+
* (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
|
|
351
|
+
* positive number — gaps are ironed out, duplicate values keep input order via
|
|
352
|
+
* stable sort. Omit to fall to the end.
|
|
353
|
+
*/
|
|
354
|
+
priority?: number | null;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
115
358
|
export declare namespace GlobalDispatchCenters {
|
|
116
359
|
export {
|
|
117
360
|
type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse,
|
|
@@ -119,6 +362,7 @@ export declare namespace GlobalDispatchCenters {
|
|
|
119
362
|
type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse,
|
|
120
363
|
type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse,
|
|
121
364
|
type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse,
|
|
365
|
+
type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams,
|
|
122
366
|
type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams,
|
|
123
367
|
};
|
|
124
368
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export {
|
|
|
34
34
|
type GlobalDispatchCenterUpdateResponse,
|
|
35
35
|
type GlobalDispatchCenterListResponse,
|
|
36
36
|
type GlobalDispatchCenterDeleteResponse,
|
|
37
|
+
type GlobalDispatchCenterCreateParams,
|
|
37
38
|
type GlobalDispatchCenterUpdateParams,
|
|
38
39
|
} from './global-dispatch-centers';
|
|
39
40
|
export {
|