@oursprivacy/platform-sdk 1.12.0 → 1.13.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 (152) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +32 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +26 -4
  8. package/client.js.map +1 -1
  9. package/client.mjs +26 -4
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +60 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +60 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/allowed-events.d.mts +18 -18
  37. package/resources/allowed-events.d.mts.map +1 -1
  38. package/resources/allowed-events.d.ts +18 -18
  39. package/resources/allowed-events.d.ts.map +1 -1
  40. package/resources/allowed-events.js +7 -7
  41. package/resources/allowed-events.js.map +1 -1
  42. package/resources/allowed-events.mjs +7 -7
  43. package/resources/allowed-events.mjs.map +1 -1
  44. package/resources/consent-settings.d.mts +2568 -124
  45. package/resources/consent-settings.d.mts.map +1 -1
  46. package/resources/consent-settings.d.ts +2568 -124
  47. package/resources/consent-settings.d.ts.map +1 -1
  48. package/resources/consent-settings.js +24 -7
  49. package/resources/consent-settings.js.map +1 -1
  50. package/resources/consent-settings.mjs +24 -7
  51. package/resources/consent-settings.mjs.map +1 -1
  52. package/resources/destinations.d.mts +33 -32
  53. package/resources/destinations.d.mts.map +1 -1
  54. package/resources/destinations.d.ts +33 -32
  55. package/resources/destinations.d.ts.map +1 -1
  56. package/resources/destinations.js +8 -7
  57. package/resources/destinations.js.map +1 -1
  58. package/resources/destinations.mjs +8 -7
  59. package/resources/destinations.mjs.map +1 -1
  60. package/resources/experiment-settings.d.mts +277 -0
  61. package/resources/experiment-settings.d.mts.map +1 -0
  62. package/resources/experiment-settings.d.ts +277 -0
  63. package/resources/experiment-settings.d.ts.map +1 -0
  64. package/resources/experiment-settings.js +77 -0
  65. package/resources/experiment-settings.js.map +1 -0
  66. package/resources/experiment-settings.mjs +73 -0
  67. package/resources/experiment-settings.mjs.map +1 -0
  68. package/resources/experiment-variants.d.mts +659 -0
  69. package/resources/experiment-variants.d.mts.map +1 -0
  70. package/resources/experiment-variants.d.ts +659 -0
  71. package/resources/experiment-variants.d.ts.map +1 -0
  72. package/resources/experiment-variants.js +79 -0
  73. package/resources/experiment-variants.js.map +1 -0
  74. package/resources/experiment-variants.mjs +75 -0
  75. package/resources/experiment-variants.mjs.map +1 -0
  76. package/resources/experiments.d.mts +2002 -0
  77. package/resources/experiments.d.mts.map +1 -0
  78. package/resources/experiments.d.ts +2002 -0
  79. package/resources/experiments.d.ts.map +1 -0
  80. package/resources/experiments.js +166 -0
  81. package/resources/experiments.js.map +1 -0
  82. package/resources/experiments.mjs +162 -0
  83. package/resources/experiments.mjs.map +1 -0
  84. package/resources/global-dispatch-centers.d.mts +125 -58
  85. package/resources/global-dispatch-centers.d.mts.map +1 -1
  86. package/resources/global-dispatch-centers.d.ts +125 -58
  87. package/resources/global-dispatch-centers.d.ts.map +1 -1
  88. package/resources/global-dispatch-centers.js +10 -7
  89. package/resources/global-dispatch-centers.js.map +1 -1
  90. package/resources/global-dispatch-centers.mjs +10 -7
  91. package/resources/global-dispatch-centers.mjs.map +1 -1
  92. package/resources/index.d.mts +11 -7
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +11 -7
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mappings.d.mts +136 -0
  101. package/resources/mappings.d.mts.map +1 -0
  102. package/resources/mappings.d.ts +136 -0
  103. package/resources/mappings.d.ts.map +1 -0
  104. package/resources/mappings.js +41 -0
  105. package/resources/mappings.js.map +1 -0
  106. package/resources/mappings.mjs +37 -0
  107. package/resources/mappings.mjs.map +1 -0
  108. package/resources/replay-settings.d.mts +48 -48
  109. package/resources/replay-settings.d.mts.map +1 -1
  110. package/resources/replay-settings.d.ts +48 -48
  111. package/resources/replay-settings.d.ts.map +1 -1
  112. package/resources/replay-settings.js +13 -8
  113. package/resources/replay-settings.js.map +1 -1
  114. package/resources/replay-settings.mjs +13 -8
  115. package/resources/replay-settings.mjs.map +1 -1
  116. package/resources/sources.d.mts +64 -27
  117. package/resources/sources.d.mts.map +1 -1
  118. package/resources/sources.d.ts +64 -27
  119. package/resources/sources.d.ts.map +1 -1
  120. package/resources/sources.js +14 -7
  121. package/resources/sources.js.map +1 -1
  122. package/resources/sources.mjs +14 -7
  123. package/resources/sources.mjs.map +1 -1
  124. package/resources/versions.d.mts +742 -16
  125. package/resources/versions.d.mts.map +1 -1
  126. package/resources/versions.d.ts +742 -16
  127. package/resources/versions.d.ts.map +1 -1
  128. package/resources/versions.js +45 -5
  129. package/resources/versions.js.map +1 -1
  130. package/resources/versions.mjs +45 -5
  131. package/resources/versions.mjs.map +1 -1
  132. package/src/client.ts +206 -29
  133. package/src/core/pagination.ts +165 -0
  134. package/src/index.ts +1 -0
  135. package/src/pagination.ts +2 -0
  136. package/src/resources/allowed-events.ts +27 -27
  137. package/src/resources/consent-settings.ts +3036 -244
  138. package/src/resources/destinations.ts +128 -127
  139. package/src/resources/experiment-settings.ts +367 -0
  140. package/src/resources/experiment-variants.ts +870 -0
  141. package/src/resources/experiments.ts +2446 -0
  142. package/src/resources/global-dispatch-centers.ts +155 -65
  143. package/src/resources/index.ts +75 -7
  144. package/src/resources/mappings.ts +230 -0
  145. package/src/resources/replay-settings.ts +67 -59
  146. package/src/resources/sources.ts +116 -71
  147. package/src/resources/versions.ts +1130 -17
  148. package/src/version.ts +1 -1
  149. package/version.d.mts +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. 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
- * Update a global dispatch center. Requires scope: globalDispatch:update
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 interface GlobalDispatchCenterCreateResponse {
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 interface GlobalDispatchCenterRetrieveResponse {
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<GlobalDispatchCenterRetrieveResponse.Category> | null;
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 GlobalDispatchCenterRetrieveResponse {
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 GlobalDispatchCenterUpdateResponse {
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 interface GlobalDispatchCenterListResponse {
141
- entities: Array<GlobalDispatchCenterListResponse.Entity>;
142
- }
143
- export declare namespace GlobalDispatchCenterListResponse {
144
- interface Entity {
185
+ export declare namespace GlobalDispatchCenterRetrieveResponse {
186
+ interface Category {
145
187
  /**
146
- * Server-assigned UUID for this dispatch center.
188
+ * Display name for the category.
147
189
  */
148
- id: string;
190
+ name: string;
149
191
  /**
150
- * ISO 8601 timestamp when the center was created.
192
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
193
+ * details.
151
194
  */
152
- createdAt: string;
195
+ priority: number;
153
196
  /**
154
- * When false, the dispatch center is configured but does not route events.
197
+ * Optional human-readable description.
155
198
  */
156
- isEnabled: boolean;
199
+ description?: string | null;
157
200
  /**
158
- * Discriminator for the entity type. Always "globalDispatchCenter".
201
+ * Destinations that receive events matching this category.
159
202
  */
160
- kind: string;
203
+ destinationIds?: Array<string> | null;
161
204
  /**
162
- * Routing categories in priority order (1..N).
205
+ * Optional condition tree gating which events match this category.
163
206
  */
164
- categories?: Array<Entity.Category> | null;
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
- * Human-readable name shown in the dashboard.
248
+ * Display name for the category.
167
249
  */
168
- name?: string | null;
250
+ name: string;
169
251
  /**
170
- * Free-form notes for this center.
252
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
253
+ * details.
171
254
  */
172
- notes?: string | null;
255
+ priority: number;
173
256
  /**
174
- * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
175
- * center; advances on every PATCH.
257
+ * Optional human-readable description.
176
258
  */
177
- updatedAt?: string | null;
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
- }
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 GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
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;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE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AAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,yBAAiB,gCAAgC,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,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
- * Update a global dispatch center. Requires scope: globalDispatch:update
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 interface GlobalDispatchCenterCreateResponse {
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 interface GlobalDispatchCenterRetrieveResponse {
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<GlobalDispatchCenterRetrieveResponse.Category> | null;
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 GlobalDispatchCenterRetrieveResponse {
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 GlobalDispatchCenterUpdateResponse {
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 interface GlobalDispatchCenterListResponse {
141
- entities: Array<GlobalDispatchCenterListResponse.Entity>;
142
- }
143
- export declare namespace GlobalDispatchCenterListResponse {
144
- interface Entity {
185
+ export declare namespace GlobalDispatchCenterRetrieveResponse {
186
+ interface Category {
145
187
  /**
146
- * Server-assigned UUID for this dispatch center.
188
+ * Display name for the category.
147
189
  */
148
- id: string;
190
+ name: string;
149
191
  /**
150
- * ISO 8601 timestamp when the center was created.
192
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
193
+ * details.
151
194
  */
152
- createdAt: string;
195
+ priority: number;
153
196
  /**
154
- * When false, the dispatch center is configured but does not route events.
197
+ * Optional human-readable description.
155
198
  */
156
- isEnabled: boolean;
199
+ description?: string | null;
157
200
  /**
158
- * Discriminator for the entity type. Always "globalDispatchCenter".
201
+ * Destinations that receive events matching this category.
159
202
  */
160
- kind: string;
203
+ destinationIds?: Array<string> | null;
161
204
  /**
162
- * Routing categories in priority order (1..N).
205
+ * Optional condition tree gating which events match this category.
163
206
  */
164
- categories?: Array<Entity.Category> | null;
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
- * Human-readable name shown in the dashboard.
248
+ * Display name for the category.
167
249
  */
168
- name?: string | null;
250
+ name: string;
169
251
  /**
170
- * Free-form notes for this center.
252
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
253
+ * details.
171
254
  */
172
- notes?: string | null;
255
+ priority: number;
173
256
  /**
174
- * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
175
- * center; advances on every PATCH.
257
+ * Optional human-readable description.
176
258
  */
177
- updatedAt?: string | null;
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
- }
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 GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
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;;OA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CAAoC,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
- * Update a global dispatch center. Requires scope: globalDispatch:update
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
  */