@oursprivacy/platform-sdk 1.12.0 → 1.14.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 +24 -0
- package/README.md +35 -0
- package/client.d.mts +32 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -14
- package/client.d.ts.map +1 -1
- package/client.js +26 -4
- package/client.js.map +1 -1
- package/client.mjs +26 -4
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/allowed-events.d.mts +18 -18
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +18 -18
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +7 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +7 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/consent-settings.d.mts +2568 -124
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +2568 -124
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +24 -7
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +24 -7
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/destinations.d.mts +33 -32
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +33 -32
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +8 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +8 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +277 -0
- package/resources/experiment-settings.d.mts.map +1 -0
- package/resources/experiment-settings.d.ts +277 -0
- package/resources/experiment-settings.d.ts.map +1 -0
- package/resources/experiment-settings.js +77 -0
- package/resources/experiment-settings.js.map +1 -0
- package/resources/experiment-settings.mjs +73 -0
- package/resources/experiment-settings.mjs.map +1 -0
- package/resources/experiment-variants.d.mts +653 -0
- package/resources/experiment-variants.d.mts.map +1 -0
- package/resources/experiment-variants.d.ts +653 -0
- package/resources/experiment-variants.d.ts.map +1 -0
- package/resources/experiment-variants.js +86 -0
- package/resources/experiment-variants.js.map +1 -0
- package/resources/experiment-variants.mjs +82 -0
- package/resources/experiment-variants.mjs.map +1 -0
- package/resources/experiments.d.mts +2002 -0
- package/resources/experiments.d.mts.map +1 -0
- package/resources/experiments.d.ts +2002 -0
- package/resources/experiments.d.ts.map +1 -0
- package/resources/experiments.js +166 -0
- package/resources/experiments.js.map +1 -0
- package/resources/experiments.mjs +162 -0
- package/resources/experiments.mjs.map +1 -0
- package/resources/global-dispatch-centers.d.mts +125 -58
- package/resources/global-dispatch-centers.d.mts.map +1 -1
- package/resources/global-dispatch-centers.d.ts +125 -58
- package/resources/global-dispatch-centers.d.ts.map +1 -1
- package/resources/global-dispatch-centers.js +10 -7
- package/resources/global-dispatch-centers.js.map +1 -1
- package/resources/global-dispatch-centers.mjs +10 -7
- package/resources/global-dispatch-centers.mjs.map +1 -1
- package/resources/index.d.mts +11 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -7
- 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/mappings.d.mts +138 -0
- package/resources/mappings.d.mts.map +1 -0
- package/resources/mappings.d.ts +138 -0
- package/resources/mappings.d.ts.map +1 -0
- package/resources/mappings.js +45 -0
- package/resources/mappings.js.map +1 -0
- package/resources/mappings.mjs +41 -0
- package/resources/mappings.mjs.map +1 -0
- package/resources/replay-settings.d.mts +48 -48
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +48 -48
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +13 -8
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +13 -8
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/sources.d.mts +64 -27
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +64 -27
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +14 -7
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +14 -7
- package/resources/sources.mjs.map +1 -1
- package/resources/versions.d.mts +742 -16
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +742 -16
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +45 -5
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +45 -5
- package/resources/versions.mjs.map +1 -1
- package/src/client.ts +210 -29
- package/src/core/pagination.ts +165 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/allowed-events.ts +27 -27
- package/src/resources/consent-settings.ts +3036 -244
- package/src/resources/destinations.ts +128 -127
- package/src/resources/experiment-settings.ts +367 -0
- package/src/resources/experiment-variants.ts +868 -0
- package/src/resources/experiments.ts +2446 -0
- package/src/resources/global-dispatch-centers.ts +155 -65
- package/src/resources/index.ts +77 -7
- package/src/resources/mappings.ts +236 -0
- package/src/resources/replay-settings.ts +67 -59
- package/src/resources/sources.ts +116 -71
- package/src/resources/versions.ts +1130 -17
- 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
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
5
|
export declare class GlobalDispatchCenters extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List global dispatch centers for this account. Supports cursor pagination via
|
|
8
|
+
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
9
|
+
*/
|
|
10
|
+
list(query?: GlobalDispatchCenterListParams | null | undefined, options?: RequestOptions): PagePromise<GlobalDispatchCenterListResponsesCursor, GlobalDispatchCenterListResponse>;
|
|
5
11
|
/**
|
|
6
12
|
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
7
13
|
*/
|
|
@@ -11,19 +17,17 @@ export declare class GlobalDispatchCenters extends APIResource {
|
|
|
11
17
|
*/
|
|
12
18
|
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
21
|
+
* Requires scope: globalDispatch:update
|
|
15
22
|
*/
|
|
16
23
|
update(id: string, body: GlobalDispatchCenterUpdateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterUpdateResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* List all global dispatch centers. Requires scope: globalDispatch:list
|
|
19
|
-
*/
|
|
20
|
-
list(options?: RequestOptions): APIPromise<GlobalDispatchCenterListResponse>;
|
|
21
24
|
/**
|
|
22
25
|
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
23
26
|
*/
|
|
24
27
|
delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
|
|
25
28
|
}
|
|
26
|
-
export
|
|
29
|
+
export type GlobalDispatchCenterListResponsesCursor = Cursor<GlobalDispatchCenterListResponse>;
|
|
30
|
+
export interface GlobalDispatchCenterListResponse {
|
|
27
31
|
/**
|
|
28
32
|
* Server-assigned UUID for this dispatch center.
|
|
29
33
|
*/
|
|
@@ -40,17 +44,50 @@ export interface GlobalDispatchCenterCreateResponse {
|
|
|
40
44
|
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
41
45
|
*/
|
|
42
46
|
kind: string;
|
|
47
|
+
/**
|
|
48
|
+
* Routing categories in priority order (1..N).
|
|
49
|
+
*/
|
|
50
|
+
categories?: Array<GlobalDispatchCenterListResponse.Category> | null;
|
|
43
51
|
/**
|
|
44
52
|
* Human-readable name shown in the dashboard.
|
|
45
53
|
*/
|
|
46
54
|
name?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Free-form notes for this center.
|
|
57
|
+
*/
|
|
58
|
+
notes?: string | null;
|
|
47
59
|
/**
|
|
48
60
|
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
49
61
|
* center; advances on every PATCH.
|
|
50
62
|
*/
|
|
51
63
|
updatedAt?: string | null;
|
|
52
64
|
}
|
|
53
|
-
export
|
|
65
|
+
export declare namespace GlobalDispatchCenterListResponse {
|
|
66
|
+
interface Category {
|
|
67
|
+
/**
|
|
68
|
+
* Display name for the category.
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
73
|
+
* details.
|
|
74
|
+
*/
|
|
75
|
+
priority: number;
|
|
76
|
+
/**
|
|
77
|
+
* Optional human-readable description.
|
|
78
|
+
*/
|
|
79
|
+
description?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Destinations that receive events matching this category.
|
|
82
|
+
*/
|
|
83
|
+
destinationIds?: Array<string> | null;
|
|
84
|
+
/**
|
|
85
|
+
* Optional condition tree gating which events match this category.
|
|
86
|
+
*/
|
|
87
|
+
logic?: unknown | null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export interface GlobalDispatchCenterCreateResponse {
|
|
54
91
|
/**
|
|
55
92
|
* Server-assigned UUID for this dispatch center.
|
|
56
93
|
*/
|
|
@@ -70,7 +107,7 @@ export interface GlobalDispatchCenterRetrieveResponse {
|
|
|
70
107
|
/**
|
|
71
108
|
* Routing categories in priority order (1..N).
|
|
72
109
|
*/
|
|
73
|
-
categories?: Array<
|
|
110
|
+
categories?: Array<GlobalDispatchCenterCreateResponse.Category> | null;
|
|
74
111
|
/**
|
|
75
112
|
* Human-readable name shown in the dashboard.
|
|
76
113
|
*/
|
|
@@ -85,7 +122,7 @@ export interface GlobalDispatchCenterRetrieveResponse {
|
|
|
85
122
|
*/
|
|
86
123
|
updatedAt?: string | null;
|
|
87
124
|
}
|
|
88
|
-
export declare namespace
|
|
125
|
+
export declare namespace GlobalDispatchCenterCreateResponse {
|
|
89
126
|
interface Category {
|
|
90
127
|
/**
|
|
91
128
|
* Display name for the category.
|
|
@@ -110,7 +147,7 @@ export declare namespace GlobalDispatchCenterRetrieveResponse {
|
|
|
110
147
|
logic?: unknown | null;
|
|
111
148
|
}
|
|
112
149
|
}
|
|
113
|
-
export interface
|
|
150
|
+
export interface GlobalDispatchCenterRetrieveResponse {
|
|
114
151
|
/**
|
|
115
152
|
* Server-assigned UUID for this dispatch center.
|
|
116
153
|
*/
|
|
@@ -127,79 +164,107 @@ export interface GlobalDispatchCenterUpdateResponse {
|
|
|
127
164
|
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
128
165
|
*/
|
|
129
166
|
kind: string;
|
|
167
|
+
/**
|
|
168
|
+
* Routing categories in priority order (1..N).
|
|
169
|
+
*/
|
|
170
|
+
categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
|
|
130
171
|
/**
|
|
131
172
|
* Human-readable name shown in the dashboard.
|
|
132
173
|
*/
|
|
133
174
|
name?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Free-form notes for this center.
|
|
177
|
+
*/
|
|
178
|
+
notes?: string | null;
|
|
134
179
|
/**
|
|
135
180
|
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
136
181
|
* center; advances on every PATCH.
|
|
137
182
|
*/
|
|
138
183
|
updatedAt?: string | null;
|
|
139
184
|
}
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
export declare namespace GlobalDispatchCenterListResponse {
|
|
144
|
-
interface Entity {
|
|
185
|
+
export declare namespace GlobalDispatchCenterRetrieveResponse {
|
|
186
|
+
interface Category {
|
|
145
187
|
/**
|
|
146
|
-
*
|
|
188
|
+
* Display name for the category.
|
|
147
189
|
*/
|
|
148
|
-
|
|
190
|
+
name: string;
|
|
149
191
|
/**
|
|
150
|
-
*
|
|
192
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
193
|
+
* details.
|
|
151
194
|
*/
|
|
152
|
-
|
|
195
|
+
priority: number;
|
|
153
196
|
/**
|
|
154
|
-
*
|
|
197
|
+
* Optional human-readable description.
|
|
155
198
|
*/
|
|
156
|
-
|
|
199
|
+
description?: string | null;
|
|
157
200
|
/**
|
|
158
|
-
*
|
|
201
|
+
* Destinations that receive events matching this category.
|
|
159
202
|
*/
|
|
160
|
-
|
|
203
|
+
destinationIds?: Array<string> | null;
|
|
161
204
|
/**
|
|
162
|
-
*
|
|
205
|
+
* Optional condition tree gating which events match this category.
|
|
163
206
|
*/
|
|
164
|
-
|
|
207
|
+
logic?: unknown | null;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
export interface GlobalDispatchCenterUpdateResponse {
|
|
211
|
+
/**
|
|
212
|
+
* Server-assigned UUID for this dispatch center.
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
215
|
+
/**
|
|
216
|
+
* ISO 8601 timestamp when the center was created.
|
|
217
|
+
*/
|
|
218
|
+
createdAt: string;
|
|
219
|
+
/**
|
|
220
|
+
* When false, the dispatch center is configured but does not route events.
|
|
221
|
+
*/
|
|
222
|
+
isEnabled: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
225
|
+
*/
|
|
226
|
+
kind: string;
|
|
227
|
+
/**
|
|
228
|
+
* Routing categories in priority order (1..N).
|
|
229
|
+
*/
|
|
230
|
+
categories?: Array<GlobalDispatchCenterUpdateResponse.Category> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Human-readable name shown in the dashboard.
|
|
233
|
+
*/
|
|
234
|
+
name?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Free-form notes for this center.
|
|
237
|
+
*/
|
|
238
|
+
notes?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
241
|
+
* center; advances on every PATCH.
|
|
242
|
+
*/
|
|
243
|
+
updatedAt?: string | null;
|
|
244
|
+
}
|
|
245
|
+
export declare namespace GlobalDispatchCenterUpdateResponse {
|
|
246
|
+
interface Category {
|
|
165
247
|
/**
|
|
166
|
-
*
|
|
248
|
+
* Display name for the category.
|
|
167
249
|
*/
|
|
168
|
-
name
|
|
250
|
+
name: string;
|
|
169
251
|
/**
|
|
170
|
-
*
|
|
252
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
253
|
+
* details.
|
|
171
254
|
*/
|
|
172
|
-
|
|
255
|
+
priority: number;
|
|
173
256
|
/**
|
|
174
|
-
*
|
|
175
|
-
* center; advances on every PATCH.
|
|
257
|
+
* Optional human-readable description.
|
|
176
258
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
}
|
|
259
|
+
description?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* Destinations that receive events matching this category.
|
|
262
|
+
*/
|
|
263
|
+
destinationIds?: Array<string> | null;
|
|
264
|
+
/**
|
|
265
|
+
* Optional condition tree gating which events match this category.
|
|
266
|
+
*/
|
|
267
|
+
logic?: unknown | null;
|
|
203
268
|
}
|
|
204
269
|
}
|
|
205
270
|
export interface GlobalDispatchCenterDeleteResponse {
|
|
@@ -212,6 +277,8 @@ export interface GlobalDispatchCenterDeleteResponse {
|
|
|
212
277
|
*/
|
|
213
278
|
deleted: boolean;
|
|
214
279
|
}
|
|
280
|
+
export interface GlobalDispatchCenterListParams extends CursorParams {
|
|
281
|
+
}
|
|
215
282
|
export interface GlobalDispatchCenterCreateParams {
|
|
216
283
|
/**
|
|
217
284
|
* Whether the center starts enabled. Defaults to false — opt in by setting true
|
|
@@ -277,6 +344,6 @@ export declare namespace GlobalDispatchCenterUpdateParams {
|
|
|
277
344
|
}
|
|
278
345
|
}
|
|
279
346
|
export declare namespace GlobalDispatchCenters {
|
|
280
|
-
export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type
|
|
347
|
+
export { type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterListResponsesCursor as GlobalDispatchCenterListResponsesCursor, type GlobalDispatchCenterListParams as GlobalDispatchCenterListParams, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
|
|
281
348
|
}
|
|
282
349
|
//# 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,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,GAAG,IAAI,CAAC;IAIvG
|
|
1
|
+
{"version":3,"file":"global-dispatch-centers.d.mts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,gCAAgC,CAAC;IAQzF;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,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AAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
export declare class GlobalDispatchCenters extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List global dispatch centers for this account. Supports cursor pagination via
|
|
8
|
+
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
9
|
+
*/
|
|
10
|
+
list(query?: GlobalDispatchCenterListParams | null | undefined, options?: RequestOptions): PagePromise<GlobalDispatchCenterListResponsesCursor, GlobalDispatchCenterListResponse>;
|
|
5
11
|
/**
|
|
6
12
|
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
7
13
|
*/
|
|
@@ -11,19 +17,17 @@ export declare class GlobalDispatchCenters extends APIResource {
|
|
|
11
17
|
*/
|
|
12
18
|
retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
|
|
13
19
|
/**
|
|
14
|
-
*
|
|
20
|
+
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
21
|
+
* Requires scope: globalDispatch:update
|
|
15
22
|
*/
|
|
16
23
|
update(id: string, body: GlobalDispatchCenterUpdateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterUpdateResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* List all global dispatch centers. Requires scope: globalDispatch:list
|
|
19
|
-
*/
|
|
20
|
-
list(options?: RequestOptions): APIPromise<GlobalDispatchCenterListResponse>;
|
|
21
24
|
/**
|
|
22
25
|
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
23
26
|
*/
|
|
24
27
|
delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
|
|
25
28
|
}
|
|
26
|
-
export
|
|
29
|
+
export type GlobalDispatchCenterListResponsesCursor = Cursor<GlobalDispatchCenterListResponse>;
|
|
30
|
+
export interface GlobalDispatchCenterListResponse {
|
|
27
31
|
/**
|
|
28
32
|
* Server-assigned UUID for this dispatch center.
|
|
29
33
|
*/
|
|
@@ -40,17 +44,50 @@ export interface GlobalDispatchCenterCreateResponse {
|
|
|
40
44
|
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
41
45
|
*/
|
|
42
46
|
kind: string;
|
|
47
|
+
/**
|
|
48
|
+
* Routing categories in priority order (1..N).
|
|
49
|
+
*/
|
|
50
|
+
categories?: Array<GlobalDispatchCenterListResponse.Category> | null;
|
|
43
51
|
/**
|
|
44
52
|
* Human-readable name shown in the dashboard.
|
|
45
53
|
*/
|
|
46
54
|
name?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Free-form notes for this center.
|
|
57
|
+
*/
|
|
58
|
+
notes?: string | null;
|
|
47
59
|
/**
|
|
48
60
|
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
49
61
|
* center; advances on every PATCH.
|
|
50
62
|
*/
|
|
51
63
|
updatedAt?: string | null;
|
|
52
64
|
}
|
|
53
|
-
export
|
|
65
|
+
export declare namespace GlobalDispatchCenterListResponse {
|
|
66
|
+
interface Category {
|
|
67
|
+
/**
|
|
68
|
+
* Display name for the category.
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
73
|
+
* details.
|
|
74
|
+
*/
|
|
75
|
+
priority: number;
|
|
76
|
+
/**
|
|
77
|
+
* Optional human-readable description.
|
|
78
|
+
*/
|
|
79
|
+
description?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Destinations that receive events matching this category.
|
|
82
|
+
*/
|
|
83
|
+
destinationIds?: Array<string> | null;
|
|
84
|
+
/**
|
|
85
|
+
* Optional condition tree gating which events match this category.
|
|
86
|
+
*/
|
|
87
|
+
logic?: unknown | null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export interface GlobalDispatchCenterCreateResponse {
|
|
54
91
|
/**
|
|
55
92
|
* Server-assigned UUID for this dispatch center.
|
|
56
93
|
*/
|
|
@@ -70,7 +107,7 @@ export interface GlobalDispatchCenterRetrieveResponse {
|
|
|
70
107
|
/**
|
|
71
108
|
* Routing categories in priority order (1..N).
|
|
72
109
|
*/
|
|
73
|
-
categories?: Array<
|
|
110
|
+
categories?: Array<GlobalDispatchCenterCreateResponse.Category> | null;
|
|
74
111
|
/**
|
|
75
112
|
* Human-readable name shown in the dashboard.
|
|
76
113
|
*/
|
|
@@ -85,7 +122,7 @@ export interface GlobalDispatchCenterRetrieveResponse {
|
|
|
85
122
|
*/
|
|
86
123
|
updatedAt?: string | null;
|
|
87
124
|
}
|
|
88
|
-
export declare namespace
|
|
125
|
+
export declare namespace GlobalDispatchCenterCreateResponse {
|
|
89
126
|
interface Category {
|
|
90
127
|
/**
|
|
91
128
|
* Display name for the category.
|
|
@@ -110,7 +147,7 @@ export declare namespace GlobalDispatchCenterRetrieveResponse {
|
|
|
110
147
|
logic?: unknown | null;
|
|
111
148
|
}
|
|
112
149
|
}
|
|
113
|
-
export interface
|
|
150
|
+
export interface GlobalDispatchCenterRetrieveResponse {
|
|
114
151
|
/**
|
|
115
152
|
* Server-assigned UUID for this dispatch center.
|
|
116
153
|
*/
|
|
@@ -127,79 +164,107 @@ export interface GlobalDispatchCenterUpdateResponse {
|
|
|
127
164
|
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
128
165
|
*/
|
|
129
166
|
kind: string;
|
|
167
|
+
/**
|
|
168
|
+
* Routing categories in priority order (1..N).
|
|
169
|
+
*/
|
|
170
|
+
categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
|
|
130
171
|
/**
|
|
131
172
|
* Human-readable name shown in the dashboard.
|
|
132
173
|
*/
|
|
133
174
|
name?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Free-form notes for this center.
|
|
177
|
+
*/
|
|
178
|
+
notes?: string | null;
|
|
134
179
|
/**
|
|
135
180
|
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
136
181
|
* center; advances on every PATCH.
|
|
137
182
|
*/
|
|
138
183
|
updatedAt?: string | null;
|
|
139
184
|
}
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
export declare namespace GlobalDispatchCenterListResponse {
|
|
144
|
-
interface Entity {
|
|
185
|
+
export declare namespace GlobalDispatchCenterRetrieveResponse {
|
|
186
|
+
interface Category {
|
|
145
187
|
/**
|
|
146
|
-
*
|
|
188
|
+
* Display name for the category.
|
|
147
189
|
*/
|
|
148
|
-
|
|
190
|
+
name: string;
|
|
149
191
|
/**
|
|
150
|
-
*
|
|
192
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
193
|
+
* details.
|
|
151
194
|
*/
|
|
152
|
-
|
|
195
|
+
priority: number;
|
|
153
196
|
/**
|
|
154
|
-
*
|
|
197
|
+
* Optional human-readable description.
|
|
155
198
|
*/
|
|
156
|
-
|
|
199
|
+
description?: string | null;
|
|
157
200
|
/**
|
|
158
|
-
*
|
|
201
|
+
* Destinations that receive events matching this category.
|
|
159
202
|
*/
|
|
160
|
-
|
|
203
|
+
destinationIds?: Array<string> | null;
|
|
161
204
|
/**
|
|
162
|
-
*
|
|
205
|
+
* Optional condition tree gating which events match this category.
|
|
163
206
|
*/
|
|
164
|
-
|
|
207
|
+
logic?: unknown | null;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
export interface GlobalDispatchCenterUpdateResponse {
|
|
211
|
+
/**
|
|
212
|
+
* Server-assigned UUID for this dispatch center.
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
215
|
+
/**
|
|
216
|
+
* ISO 8601 timestamp when the center was created.
|
|
217
|
+
*/
|
|
218
|
+
createdAt: string;
|
|
219
|
+
/**
|
|
220
|
+
* When false, the dispatch center is configured but does not route events.
|
|
221
|
+
*/
|
|
222
|
+
isEnabled: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Discriminator for the entity type. Always "globalDispatchCenter".
|
|
225
|
+
*/
|
|
226
|
+
kind: string;
|
|
227
|
+
/**
|
|
228
|
+
* Routing categories in priority order (1..N).
|
|
229
|
+
*/
|
|
230
|
+
categories?: Array<GlobalDispatchCenterUpdateResponse.Category> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Human-readable name shown in the dashboard.
|
|
233
|
+
*/
|
|
234
|
+
name?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Free-form notes for this center.
|
|
237
|
+
*/
|
|
238
|
+
notes?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
|
|
241
|
+
* center; advances on every PATCH.
|
|
242
|
+
*/
|
|
243
|
+
updatedAt?: string | null;
|
|
244
|
+
}
|
|
245
|
+
export declare namespace GlobalDispatchCenterUpdateResponse {
|
|
246
|
+
interface Category {
|
|
165
247
|
/**
|
|
166
|
-
*
|
|
248
|
+
* Display name for the category.
|
|
167
249
|
*/
|
|
168
|
-
name
|
|
250
|
+
name: string;
|
|
169
251
|
/**
|
|
170
|
-
*
|
|
252
|
+
* 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
|
|
253
|
+
* details.
|
|
171
254
|
*/
|
|
172
|
-
|
|
255
|
+
priority: number;
|
|
173
256
|
/**
|
|
174
|
-
*
|
|
175
|
-
* center; advances on every PATCH.
|
|
257
|
+
* Optional human-readable description.
|
|
176
258
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
}
|
|
259
|
+
description?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* Destinations that receive events matching this category.
|
|
262
|
+
*/
|
|
263
|
+
destinationIds?: Array<string> | null;
|
|
264
|
+
/**
|
|
265
|
+
* Optional condition tree gating which events match this category.
|
|
266
|
+
*/
|
|
267
|
+
logic?: unknown | null;
|
|
203
268
|
}
|
|
204
269
|
}
|
|
205
270
|
export interface GlobalDispatchCenterDeleteResponse {
|
|
@@ -212,6 +277,8 @@ export interface GlobalDispatchCenterDeleteResponse {
|
|
|
212
277
|
*/
|
|
213
278
|
deleted: boolean;
|
|
214
279
|
}
|
|
280
|
+
export interface GlobalDispatchCenterListParams extends CursorParams {
|
|
281
|
+
}
|
|
215
282
|
export interface GlobalDispatchCenterCreateParams {
|
|
216
283
|
/**
|
|
217
284
|
* Whether the center starts enabled. Defaults to false — opt in by setting true
|
|
@@ -277,6 +344,6 @@ export declare namespace GlobalDispatchCenterUpdateParams {
|
|
|
277
344
|
}
|
|
278
345
|
}
|
|
279
346
|
export declare namespace GlobalDispatchCenters {
|
|
280
|
-
export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type
|
|
347
|
+
export { type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterListResponsesCursor as GlobalDispatchCenterListResponsesCursor, type GlobalDispatchCenterListParams as GlobalDispatchCenterListParams, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
|
|
281
348
|
}
|
|
282
349
|
//# sourceMappingURL=global-dispatch-centers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-dispatch-centers.d.ts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,GAAG,IAAI,CAAC;IAIvG
|
|
1
|
+
{"version":3,"file":"global-dispatch-centers.d.ts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE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AC,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,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GlobalDispatchCenters = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class GlobalDispatchCenters extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List global dispatch centers for this account. Supports cursor pagination via
|
|
11
|
+
* `limit` and `cursor`. Requires scope: globalDispatch:list
|
|
12
|
+
*/
|
|
13
|
+
list(query = {}, options) {
|
|
14
|
+
return this._client.getAPIList('/rest/v1/global-dispatch-centers', (pagination_1.Cursor), { query, ...options });
|
|
15
|
+
}
|
|
8
16
|
/**
|
|
9
17
|
* Create a new global dispatch center. Requires scope: globalDispatch:create
|
|
10
18
|
*/
|
|
@@ -18,17 +26,12 @@ class GlobalDispatchCenters extends resource_1.APIResource {
|
|
|
18
26
|
return this._client.get((0, path_1.path) `/rest/v1/global-dispatch-centers/${id}`, options);
|
|
19
27
|
}
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
29
|
+
* Partially update a global dispatch center. Only the fields you send are changed.
|
|
30
|
+
* Requires scope: globalDispatch:update
|
|
22
31
|
*/
|
|
23
32
|
update(id, body, options) {
|
|
24
33
|
return this._client.patch((0, path_1.path) `/rest/v1/global-dispatch-centers/${id}`, { body, ...options });
|
|
25
34
|
}
|
|
26
|
-
/**
|
|
27
|
-
* List all global dispatch centers. Requires scope: globalDispatch:list
|
|
28
|
-
*/
|
|
29
|
-
list(options) {
|
|
30
|
-
return this._client.get('/rest/v1/global-dispatch-centers', options);
|
|
31
|
-
}
|
|
32
35
|
/**
|
|
33
36
|
* Delete a global dispatch center. Requires scope: globalDispatch:delete
|
|
34
37
|
*/
|