@oursprivacy/platform-sdk 1.9.0 → 1.11.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/allowed-events.d.mts +1 -1
  10. package/resources/allowed-events.d.mts.map +1 -1
  11. package/resources/allowed-events.d.ts +1 -1
  12. package/resources/allowed-events.d.ts.map +1 -1
  13. package/resources/consent-settings.d.mts +126 -12
  14. package/resources/consent-settings.d.mts.map +1 -1
  15. package/resources/consent-settings.d.ts +126 -12
  16. package/resources/consent-settings.d.ts.map +1 -1
  17. package/resources/destinations.d.mts +8 -8
  18. package/resources/destinations.d.mts.map +1 -1
  19. package/resources/destinations.d.ts +8 -8
  20. package/resources/destinations.d.ts.map +1 -1
  21. package/resources/global-dispatch-centers.d.mts +221 -7
  22. package/resources/global-dispatch-centers.d.mts.map +1 -1
  23. package/resources/global-dispatch-centers.d.ts +221 -7
  24. package/resources/global-dispatch-centers.d.ts.map +1 -1
  25. package/resources/global-dispatch-centers.js +2 -2
  26. package/resources/global-dispatch-centers.js.map +1 -1
  27. package/resources/global-dispatch-centers.mjs +2 -2
  28. package/resources/global-dispatch-centers.mjs.map +1 -1
  29. package/resources/index.d.mts +1 -1
  30. package/resources/index.d.mts.map +1 -1
  31. package/resources/index.d.ts +1 -1
  32. package/resources/index.d.ts.map +1 -1
  33. package/resources/index.js.map +1 -1
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/replay-settings.d.mts +13 -5
  36. package/resources/replay-settings.d.mts.map +1 -1
  37. package/resources/replay-settings.d.ts +13 -5
  38. package/resources/replay-settings.d.ts.map +1 -1
  39. package/resources/sources.d.mts +6 -6
  40. package/resources/sources.d.mts.map +1 -1
  41. package/resources/sources.d.ts +6 -6
  42. package/resources/sources.d.ts.map +1 -1
  43. package/resources/versions.d.mts +11 -11
  44. package/resources/versions.d.mts.map +1 -1
  45. package/resources/versions.d.ts +11 -11
  46. package/resources/versions.d.ts.map +1 -1
  47. package/src/client.ts +2 -0
  48. package/src/resources/allowed-events.ts +1 -1
  49. package/src/resources/consent-settings.ts +196 -12
  50. package/src/resources/destinations.ts +8 -3
  51. package/src/resources/global-dispatch-centers.ts +251 -7
  52. package/src/resources/index.ts +1 -0
  53. package/src/resources/replay-settings.ts +19 -5
  54. package/src/resources/sources.ts +6 -6
  55. package/src/resources/versions.ts +11 -11
  56. package/src/version.ts +1 -1
  57. package/version.d.mts +1 -1
  58. package/version.d.mts.map +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.d.ts.map +1 -1
  61. package/version.js +1 -1
  62. package/version.js.map +1 -1
  63. package/version.mjs +1 -1
  64. package/version.mjs.map +1 -1
@@ -5,11 +5,11 @@ export declare class GlobalDispatchCenters extends APIResource {
5
5
  /**
6
6
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
7
  */
8
- create(options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
8
+ create(body: GlobalDispatchCenterCreateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
9
9
  /**
10
10
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
11
11
  */
12
- retrieve(id: string, options?: RequestOptions): APIPromise<unknown>;
12
+ retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
13
13
  /**
14
14
  * Update a global dispatch center. Requires scope: globalDispatch:update
15
15
  */
@@ -24,20 +24,117 @@ export declare class GlobalDispatchCenters extends APIResource {
24
24
  delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
25
25
  }
26
26
  export interface GlobalDispatchCenterCreateResponse {
27
+ /**
28
+ * Server-assigned UUID for this dispatch center.
29
+ */
27
30
  id: string;
31
+ /**
32
+ * ISO 8601 timestamp when the center was created.
33
+ */
28
34
  createdAt: string;
35
+ /**
36
+ * When false, the dispatch center is configured but does not route events.
37
+ */
29
38
  isEnabled: boolean;
39
+ /**
40
+ * Discriminator for the entity type. Always "globalDispatchCenter".
41
+ */
30
42
  kind: string;
43
+ /**
44
+ * Human-readable name shown in the dashboard.
45
+ */
31
46
  name?: string | null;
47
+ /**
48
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
49
+ * center; advances on every PATCH.
50
+ */
32
51
  updatedAt?: string | null;
33
52
  }
34
- export type GlobalDispatchCenterRetrieveResponse = unknown;
53
+ export interface GlobalDispatchCenterRetrieveResponse {
54
+ /**
55
+ * Server-assigned UUID for this dispatch center.
56
+ */
57
+ id: string;
58
+ /**
59
+ * ISO 8601 timestamp when the center was created.
60
+ */
61
+ createdAt: string;
62
+ /**
63
+ * When false, the dispatch center is configured but does not route events.
64
+ */
65
+ isEnabled: boolean;
66
+ /**
67
+ * Discriminator for the entity type. Always "globalDispatchCenter".
68
+ */
69
+ kind: string;
70
+ /**
71
+ * Routing categories in priority order (1..N).
72
+ */
73
+ categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
74
+ /**
75
+ * Human-readable name shown in the dashboard.
76
+ */
77
+ name?: string | null;
78
+ /**
79
+ * Free-form notes for this center.
80
+ */
81
+ notes?: string | null;
82
+ /**
83
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
84
+ * center; advances on every PATCH.
85
+ */
86
+ updatedAt?: string | null;
87
+ }
88
+ export declare namespace GlobalDispatchCenterRetrieveResponse {
89
+ interface Category {
90
+ /**
91
+ * Display name for the category.
92
+ */
93
+ name: string;
94
+ /**
95
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
96
+ * details.
97
+ */
98
+ priority: number;
99
+ /**
100
+ * Optional human-readable description.
101
+ */
102
+ description?: string | null;
103
+ /**
104
+ * Destinations that receive events matching this category.
105
+ */
106
+ destinationIds?: Array<string> | null;
107
+ /**
108
+ * Optional condition tree gating which events match this category.
109
+ */
110
+ logic?: unknown | null;
111
+ }
112
+ }
35
113
  export interface GlobalDispatchCenterUpdateResponse {
114
+ /**
115
+ * Server-assigned UUID for this dispatch center.
116
+ */
36
117
  id: string;
118
+ /**
119
+ * ISO 8601 timestamp when the center was created.
120
+ */
37
121
  createdAt: string;
122
+ /**
123
+ * When false, the dispatch center is configured but does not route events.
124
+ */
38
125
  isEnabled: boolean;
126
+ /**
127
+ * Discriminator for the entity type. Always "globalDispatchCenter".
128
+ */
39
129
  kind: string;
130
+ /**
131
+ * Human-readable name shown in the dashboard.
132
+ */
40
133
  name?: string | null;
134
+ /**
135
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
136
+ * center; advances on every PATCH.
137
+ */
41
138
  updatedAt?: string | null;
42
139
  }
43
140
  export interface GlobalDispatchCenterListResponse {
@@ -45,24 +142,141 @@ export interface GlobalDispatchCenterListResponse {
45
142
  }
46
143
  export declare namespace GlobalDispatchCenterListResponse {
47
144
  interface Entity {
145
+ /**
146
+ * Server-assigned UUID for this dispatch center.
147
+ */
48
148
  id: string;
149
+ /**
150
+ * ISO 8601 timestamp when the center was created.
151
+ */
49
152
  createdAt: string;
153
+ /**
154
+ * When false, the dispatch center is configured but does not route events.
155
+ */
50
156
  isEnabled: boolean;
157
+ /**
158
+ * Discriminator for the entity type. Always "globalDispatchCenter".
159
+ */
51
160
  kind: string;
52
- categories?: Array<unknown> | null;
161
+ /**
162
+ * Routing categories in priority order (1..N).
163
+ */
164
+ categories?: Array<Entity.Category> | null;
165
+ /**
166
+ * Human-readable name shown in the dashboard.
167
+ */
53
168
  name?: string | null;
169
+ /**
170
+ * Free-form notes for this center.
171
+ */
54
172
  notes?: string | null;
173
+ /**
174
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
175
+ * center; advances on every PATCH.
176
+ */
55
177
  updatedAt?: string | null;
56
178
  }
179
+ namespace Entity {
180
+ interface Category {
181
+ /**
182
+ * Display name for the category.
183
+ */
184
+ name: string;
185
+ /**
186
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
187
+ * details.
188
+ */
189
+ priority: number;
190
+ /**
191
+ * Optional human-readable description.
192
+ */
193
+ description?: string | null;
194
+ /**
195
+ * Destinations that receive events matching this category.
196
+ */
197
+ destinationIds?: Array<string> | null;
198
+ /**
199
+ * Optional condition tree gating which events match this category.
200
+ */
201
+ logic?: unknown | null;
202
+ }
203
+ }
204
+ }
205
+ export interface GlobalDispatchCenterDeleteResponse {
206
+ /**
207
+ * The id of the dispatch center that was deleted.
208
+ */
209
+ id: string;
210
+ /**
211
+ * True when the underlying mutation succeeded; the entity is gone.
212
+ */
213
+ deleted: boolean;
214
+ }
215
+ export interface GlobalDispatchCenterCreateParams {
216
+ /**
217
+ * Whether the center starts enabled. Defaults to false — opt in by setting true
218
+ * here or via PATCH later.
219
+ */
220
+ isEnabled?: boolean | null;
221
+ /**
222
+ * Display name for the new center. Defaults to "Consent Dispatch Center".
223
+ */
224
+ name?: string | null;
225
+ /**
226
+ * Free-form notes shown in the dashboard. Not used for routing.
227
+ */
228
+ notes?: string | null;
57
229
  }
58
- export type GlobalDispatchCenterDeleteResponse = boolean;
59
230
  export interface GlobalDispatchCenterUpdateParams {
60
- categories?: Array<unknown> | null;
231
+ /**
232
+ * Full replacement of the categories list. Categories are sorted by priority on
233
+ * write and re-stamped 1..N — see the priority field. Omit to leave existing
234
+ * categories untouched.
235
+ */
236
+ categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
237
+ /**
238
+ * Toggle the dispatch center on/off without changing any other config.
239
+ */
61
240
  isEnabled?: boolean | null;
241
+ /**
242
+ * New display name for the center.
243
+ */
62
244
  name?: string | null;
245
+ /**
246
+ * Replace the free-form notes.
247
+ */
63
248
  notes?: string | null;
64
249
  }
250
+ export declare namespace GlobalDispatchCenterUpdateParams {
251
+ interface Category {
252
+ /**
253
+ * Optional human-readable description shown in the dashboard.
254
+ */
255
+ description?: string | null;
256
+ /**
257
+ * Destinations that receive events matching this category. Stale IDs (deleted
258
+ * destinations or ones from another account) are silently filtered out at write
259
+ * time.
260
+ */
261
+ destinationIds?: Array<string> | null;
262
+ /**
263
+ * Optional condition tree. When set, only matching events route to this category.
264
+ */
265
+ logic?: unknown | null;
266
+ /**
267
+ * Display name for the category. Auto-generated if omitted.
268
+ */
269
+ name?: string | null;
270
+ /**
271
+ * Used as a sort key on write. The server sorts categories by this value
272
+ * (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
273
+ * positive number — gaps are ironed out, duplicate values keep input order via
274
+ * stable sort. Omit to fall to the end.
275
+ */
276
+ priority?: number | null;
277
+ }
278
+ }
65
279
  export declare namespace GlobalDispatchCenters {
66
- export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
280
+ export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
67
281
  }
68
282
  //# sourceMappingURL=global-dispatch-centers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.d.mts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,E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WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;;WAIG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -5,11 +5,11 @@ export declare class GlobalDispatchCenters extends APIResource {
5
5
  /**
6
6
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
7
  */
8
- create(options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
8
+ create(body: GlobalDispatchCenterCreateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
9
9
  /**
10
10
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
11
11
  */
12
- retrieve(id: string, options?: RequestOptions): APIPromise<unknown>;
12
+ retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
13
13
  /**
14
14
  * Update a global dispatch center. Requires scope: globalDispatch:update
15
15
  */
@@ -24,20 +24,117 @@ export declare class GlobalDispatchCenters extends APIResource {
24
24
  delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
25
25
  }
26
26
  export interface GlobalDispatchCenterCreateResponse {
27
+ /**
28
+ * Server-assigned UUID for this dispatch center.
29
+ */
27
30
  id: string;
31
+ /**
32
+ * ISO 8601 timestamp when the center was created.
33
+ */
28
34
  createdAt: string;
35
+ /**
36
+ * When false, the dispatch center is configured but does not route events.
37
+ */
29
38
  isEnabled: boolean;
39
+ /**
40
+ * Discriminator for the entity type. Always "globalDispatchCenter".
41
+ */
30
42
  kind: string;
43
+ /**
44
+ * Human-readable name shown in the dashboard.
45
+ */
31
46
  name?: string | null;
47
+ /**
48
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
49
+ * center; advances on every PATCH.
50
+ */
32
51
  updatedAt?: string | null;
33
52
  }
34
- export type GlobalDispatchCenterRetrieveResponse = unknown;
53
+ export interface GlobalDispatchCenterRetrieveResponse {
54
+ /**
55
+ * Server-assigned UUID for this dispatch center.
56
+ */
57
+ id: string;
58
+ /**
59
+ * ISO 8601 timestamp when the center was created.
60
+ */
61
+ createdAt: string;
62
+ /**
63
+ * When false, the dispatch center is configured but does not route events.
64
+ */
65
+ isEnabled: boolean;
66
+ /**
67
+ * Discriminator for the entity type. Always "globalDispatchCenter".
68
+ */
69
+ kind: string;
70
+ /**
71
+ * Routing categories in priority order (1..N).
72
+ */
73
+ categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
74
+ /**
75
+ * Human-readable name shown in the dashboard.
76
+ */
77
+ name?: string | null;
78
+ /**
79
+ * Free-form notes for this center.
80
+ */
81
+ notes?: string | null;
82
+ /**
83
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
84
+ * center; advances on every PATCH.
85
+ */
86
+ updatedAt?: string | null;
87
+ }
88
+ export declare namespace GlobalDispatchCenterRetrieveResponse {
89
+ interface Category {
90
+ /**
91
+ * Display name for the category.
92
+ */
93
+ name: string;
94
+ /**
95
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
96
+ * details.
97
+ */
98
+ priority: number;
99
+ /**
100
+ * Optional human-readable description.
101
+ */
102
+ description?: string | null;
103
+ /**
104
+ * Destinations that receive events matching this category.
105
+ */
106
+ destinationIds?: Array<string> | null;
107
+ /**
108
+ * Optional condition tree gating which events match this category.
109
+ */
110
+ logic?: unknown | null;
111
+ }
112
+ }
35
113
  export interface GlobalDispatchCenterUpdateResponse {
114
+ /**
115
+ * Server-assigned UUID for this dispatch center.
116
+ */
36
117
  id: string;
118
+ /**
119
+ * ISO 8601 timestamp when the center was created.
120
+ */
37
121
  createdAt: string;
122
+ /**
123
+ * When false, the dispatch center is configured but does not route events.
124
+ */
38
125
  isEnabled: boolean;
126
+ /**
127
+ * Discriminator for the entity type. Always "globalDispatchCenter".
128
+ */
39
129
  kind: string;
130
+ /**
131
+ * Human-readable name shown in the dashboard.
132
+ */
40
133
  name?: string | null;
134
+ /**
135
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
136
+ * center; advances on every PATCH.
137
+ */
41
138
  updatedAt?: string | null;
42
139
  }
43
140
  export interface GlobalDispatchCenterListResponse {
@@ -45,24 +142,141 @@ export interface GlobalDispatchCenterListResponse {
45
142
  }
46
143
  export declare namespace GlobalDispatchCenterListResponse {
47
144
  interface Entity {
145
+ /**
146
+ * Server-assigned UUID for this dispatch center.
147
+ */
48
148
  id: string;
149
+ /**
150
+ * ISO 8601 timestamp when the center was created.
151
+ */
49
152
  createdAt: string;
153
+ /**
154
+ * When false, the dispatch center is configured but does not route events.
155
+ */
50
156
  isEnabled: boolean;
157
+ /**
158
+ * Discriminator for the entity type. Always "globalDispatchCenter".
159
+ */
51
160
  kind: string;
52
- categories?: Array<unknown> | null;
161
+ /**
162
+ * Routing categories in priority order (1..N).
163
+ */
164
+ categories?: Array<Entity.Category> | null;
165
+ /**
166
+ * Human-readable name shown in the dashboard.
167
+ */
53
168
  name?: string | null;
169
+ /**
170
+ * Free-form notes for this center.
171
+ */
54
172
  notes?: string | null;
173
+ /**
174
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
175
+ * center; advances on every PATCH.
176
+ */
55
177
  updatedAt?: string | null;
56
178
  }
179
+ namespace Entity {
180
+ interface Category {
181
+ /**
182
+ * Display name for the category.
183
+ */
184
+ name: string;
185
+ /**
186
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
187
+ * details.
188
+ */
189
+ priority: number;
190
+ /**
191
+ * Optional human-readable description.
192
+ */
193
+ description?: string | null;
194
+ /**
195
+ * Destinations that receive events matching this category.
196
+ */
197
+ destinationIds?: Array<string> | null;
198
+ /**
199
+ * Optional condition tree gating which events match this category.
200
+ */
201
+ logic?: unknown | null;
202
+ }
203
+ }
204
+ }
205
+ export interface GlobalDispatchCenterDeleteResponse {
206
+ /**
207
+ * The id of the dispatch center that was deleted.
208
+ */
209
+ id: string;
210
+ /**
211
+ * True when the underlying mutation succeeded; the entity is gone.
212
+ */
213
+ deleted: boolean;
214
+ }
215
+ export interface GlobalDispatchCenterCreateParams {
216
+ /**
217
+ * Whether the center starts enabled. Defaults to false — opt in by setting true
218
+ * here or via PATCH later.
219
+ */
220
+ isEnabled?: boolean | null;
221
+ /**
222
+ * Display name for the new center. Defaults to "Consent Dispatch Center".
223
+ */
224
+ name?: string | null;
225
+ /**
226
+ * Free-form notes shown in the dashboard. Not used for routing.
227
+ */
228
+ notes?: string | null;
57
229
  }
58
- export type GlobalDispatchCenterDeleteResponse = boolean;
59
230
  export interface GlobalDispatchCenterUpdateParams {
60
- categories?: Array<unknown> | null;
231
+ /**
232
+ * Full replacement of the categories list. Categories are sorted by priority on
233
+ * write and re-stamped 1..N — see the priority field. Omit to leave existing
234
+ * categories untouched.
235
+ */
236
+ categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
237
+ /**
238
+ * Toggle the dispatch center on/off without changing any other config.
239
+ */
61
240
  isEnabled?: boolean | null;
241
+ /**
242
+ * New display name for the center.
243
+ */
62
244
  name?: string | null;
245
+ /**
246
+ * Replace the free-form notes.
247
+ */
63
248
  notes?: string | null;
64
249
  }
250
+ export declare namespace GlobalDispatchCenterUpdateParams {
251
+ interface Category {
252
+ /**
253
+ * Optional human-readable description shown in the dashboard.
254
+ */
255
+ description?: string | null;
256
+ /**
257
+ * Destinations that receive events matching this category. Stale IDs (deleted
258
+ * destinations or ones from another account) are silently filtered out at write
259
+ * time.
260
+ */
261
+ destinationIds?: Array<string> | null;
262
+ /**
263
+ * Optional condition tree. When set, only matching events route to this category.
264
+ */
265
+ logic?: unknown | null;
266
+ /**
267
+ * Display name for the category. Auto-generated if omitted.
268
+ */
269
+ name?: string | null;
270
+ /**
271
+ * Used as a sort key on write. The server sorts categories by this value
272
+ * (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
273
+ * positive number — gaps are ironed out, duplicate values keep input order via
274
+ * stable sort. Omit to fall to the end.
275
+ */
276
+ priority?: number | null;
277
+ }
278
+ }
65
279
  export declare namespace GlobalDispatchCenters {
66
- export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
280
+ export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
67
281
  }
68
282
  //# sourceMappingURL=global-dispatch-centers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.d.ts","sourceRoot":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CAAgC,CAAC;IAChD,UAAiB,QAAQ;QACvB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;;WAIG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -8,8 +8,8 @@ class GlobalDispatchCenters extends resource_1.APIResource {
8
8
  /**
9
9
  * Create a new global dispatch center. Requires scope: globalDispatch:create
10
10
  */
11
- create(options) {
12
- return this._client.post('/rest/v1/global-dispatch-centers', options);
11
+ create(body, options) {
12
+ return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
13
13
  }
14
14
  /**
15
15
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAvCD,sDAuCC"}
1
+ {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AA1CD,sDA0CC"}
@@ -5,8 +5,8 @@ export class GlobalDispatchCenters extends APIResource {
5
5
  /**
6
6
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
7
  */
8
- create(options) {
9
- return this._client.post('/rest/v1/global-dispatch-centers', options);
8
+ create(body, options) {
9
+ return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
10
10
  }
11
11
  /**
12
12
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
1
+ {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.mjs";
2
2
  export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.mjs";
3
3
  export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.mjs";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.mjs";
4
+ export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.mjs";
5
5
  export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.mjs";
6
6
  export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.mjs";
7
7
  export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
@@ -1,7 +1,7 @@
1
1
  export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.js";
2
2
  export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.js";
3
3
  export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.js";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.js";
4
+ export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.js";
5
5
  export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.js";
6
6
  export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.js";
7
7
  export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.js";