@oursprivacy/platform-sdk 1.22.0 → 1.24.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 (95) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +17 -14
  3. package/client.d.mts +12 -9
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -9
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/allowed-events.d.mts +206 -5
  13. package/resources/allowed-events.d.mts.map +1 -1
  14. package/resources/allowed-events.d.ts +206 -5
  15. package/resources/allowed-events.d.ts.map +1 -1
  16. package/resources/allowed-events.js +48 -4
  17. package/resources/allowed-events.js.map +1 -1
  18. package/resources/allowed-events.mjs +48 -4
  19. package/resources/allowed-events.mjs.map +1 -1
  20. package/resources/consent-analytics.d.mts +57 -0
  21. package/resources/consent-analytics.d.mts.map +1 -0
  22. package/resources/consent-analytics.d.ts +57 -0
  23. package/resources/consent-analytics.d.ts.map +1 -0
  24. package/resources/consent-analytics.js +22 -0
  25. package/resources/consent-analytics.js.map +1 -0
  26. package/resources/consent-analytics.mjs +18 -0
  27. package/resources/consent-analytics.mjs.map +1 -0
  28. package/resources/consent-settings.d.mts +198 -1
  29. package/resources/consent-settings.d.mts.map +1 -1
  30. package/resources/consent-settings.d.ts +198 -1
  31. package/resources/consent-settings.d.ts.map +1 -1
  32. package/resources/consent-settings.js +40 -0
  33. package/resources/consent-settings.js.map +1 -1
  34. package/resources/consent-settings.mjs +40 -0
  35. package/resources/consent-settings.mjs.map +1 -1
  36. package/resources/data-governance.d.mts +793 -0
  37. package/resources/data-governance.d.mts.map +1 -0
  38. package/resources/data-governance.d.ts +793 -0
  39. package/resources/data-governance.d.ts.map +1 -0
  40. package/resources/data-governance.js +70 -0
  41. package/resources/data-governance.js.map +1 -0
  42. package/resources/data-governance.mjs +66 -0
  43. package/resources/data-governance.mjs.map +1 -0
  44. package/resources/default-mappings.d.mts +60 -3
  45. package/resources/default-mappings.d.mts.map +1 -1
  46. package/resources/default-mappings.d.ts +60 -3
  47. package/resources/default-mappings.d.ts.map +1 -1
  48. package/resources/destinations.d.mts +7 -7
  49. package/resources/destinations.d.mts.map +1 -1
  50. package/resources/destinations.d.ts +7 -7
  51. package/resources/destinations.d.ts.map +1 -1
  52. package/resources/index.d.mts +5 -4
  53. package/resources/index.d.mts.map +1 -1
  54. package/resources/index.d.ts +5 -4
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +5 -3
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +2 -1
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/mappings.d.mts +174 -15
  61. package/resources/mappings.d.mts.map +1 -1
  62. package/resources/mappings.d.ts +174 -15
  63. package/resources/mappings.d.ts.map +1 -1
  64. package/resources/sources.d.mts +213 -45
  65. package/resources/sources.d.mts.map +1 -1
  66. package/resources/sources.d.ts +213 -45
  67. package/resources/sources.d.ts.map +1 -1
  68. package/resources/sources.js +18 -7
  69. package/resources/sources.js.map +1 -1
  70. package/resources/sources.mjs +18 -7
  71. package/resources/sources.mjs.map +1 -1
  72. package/src/client.ts +60 -27
  73. package/src/resources/allowed-events.ts +232 -4
  74. package/src/resources/consent-analytics.ts +76 -0
  75. package/src/resources/consent-settings.ts +272 -0
  76. package/src/resources/data-governance.ts +1091 -0
  77. package/src/resources/default-mappings.ts +60 -3
  78. package/src/resources/destinations.ts +9 -2
  79. package/src/resources/index.ts +27 -12
  80. package/src/resources/mappings.ts +174 -15
  81. package/src/resources/sources.ts +337 -88
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
  87. package/resources/global-dispatch-centers.d.mts +0 -349
  88. package/resources/global-dispatch-centers.d.mts.map +0 -1
  89. package/resources/global-dispatch-centers.d.ts +0 -349
  90. package/resources/global-dispatch-centers.d.ts.map +0 -1
  91. package/resources/global-dispatch-centers.js +0 -43
  92. package/resources/global-dispatch-centers.js.map +0 -1
  93. package/resources/global-dispatch-centers.mjs +0 -39
  94. package/resources/global-dispatch-centers.mjs.map +0 -1
  95. package/src/resources/global-dispatch-centers.ts +0 -458
@@ -0,0 +1,1091 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class DataGovernance extends APIResource {
10
+ /**
11
+ * List the data-governance record(s) on this account. Each account has at most one
12
+ * record, so this list returns either an empty array or a single entity. Cursor
13
+ * pagination is exposed for consistency with other list endpoints but is rarely
14
+ * meaningful here. Data governance is the second stage of the dispatch flow
15
+ * (Source → Allowed Events → Data Governance → Mappings → Destination) — it
16
+ * evaluates each event against the configured category logic and stops dispatch to
17
+ * the destinations on any matching category. Requires scope: globalDispatch:list
18
+ */
19
+ list(
20
+ query: DataGovernanceListParams | null | undefined = {},
21
+ options?: RequestOptions,
22
+ ): PagePromise<DataGovernanceListResponsesCursor, DataGovernanceListResponse> {
23
+ return this._client.getAPIList('/rest/v1/data-governance', Cursor<DataGovernanceListResponse>, {
24
+ query,
25
+ ...options,
26
+ });
27
+ }
28
+
29
+ /**
30
+ * Create the data-governance record for this account. Each account may have at
31
+ * most one — a second POST returns 409. Body is optional; defaults are
32
+ * `isEnabled: false` and no categories. Categories are added later via PATCH.
33
+ * Requires scope: globalDispatch:create
34
+ */
35
+ create(
36
+ body: DataGovernanceCreateParams,
37
+ options?: RequestOptions,
38
+ ): APIPromise<DataGovernanceCreateResponse> {
39
+ return this._client.post('/rest/v1/data-governance', { body, ...options });
40
+ }
41
+
42
+ /**
43
+ * Fetch the data-governance record by id, including its categories (logic,
44
+ * destinations, priority). Returns 404 when no record matches. Requires scope:
45
+ * globalDispatch:find
46
+ */
47
+ retrieve(id: string, options?: RequestOptions): APIPromise<DataGovernanceRetrieveResponse | null> {
48
+ return this._client.get(path`/rest/v1/data-governance/${id}`, options);
49
+ }
50
+
51
+ /**
52
+ * Partially update the data-governance record. Top-level fields (`name`, `notes`,
53
+ * `isEnabled`) follow the standard PATCH semantic — only the fields you send are
54
+ * changed.
55
+ *
56
+ * `categories` is the documented exception: when sent, it is **replaced
57
+ * wholesale**. There is no partial-merge for individual categories. To change one
58
+ * category, fetch the current record, modify the array, and PATCH it back.
59
+ *
60
+ * On write, categories are sorted ascending by the `priority` field you supplied
61
+ * (a sort key, not a stored value), then re-stamped `1..N` so the persisted
62
+ * `priority` is always sequential with no gaps. Stale `destinationIds` (deleted
63
+ * destinations or destinations on another account) are silently filtered out — the
64
+ * response echoes the filtered list, so a follow-up GET is not required to see
65
+ * what was saved. Requires scope: globalDispatch:update
66
+ */
67
+ update(
68
+ id: string,
69
+ body: DataGovernanceUpdateParams,
70
+ options?: RequestOptions,
71
+ ): APIPromise<DataGovernanceUpdateResponse> {
72
+ return this._client.patch(path`/rest/v1/data-governance/${id}`, { body, ...options });
73
+ }
74
+
75
+ /**
76
+ * Delete the data-governance record. After deletion, inbound events flow through
77
+ * to destinations without category-level gating. Create a new record with POST to
78
+ * reinstate governance. Requires scope: globalDispatch:delete
79
+ */
80
+ delete(id: string, options?: RequestOptions): APIPromise<DataGovernanceDeleteResponse> {
81
+ return this._client.delete(path`/rest/v1/data-governance/${id}`, options);
82
+ }
83
+ }
84
+
85
+ export type DataGovernanceListResponsesCursor = Cursor<DataGovernanceListResponse>;
86
+
87
+ export interface DataGovernanceListResponse {
88
+ /**
89
+ * Server-assigned UUID for this data-governance record.
90
+ */
91
+ id: string;
92
+
93
+ /**
94
+ * ISO 8601 timestamp when the record was created.
95
+ */
96
+ createdAt: string;
97
+
98
+ /**
99
+ * When false, data governance is configured but does not gate dispatch — inbound
100
+ * events flow through to destinations regardless of category logic.
101
+ */
102
+ isEnabled: boolean;
103
+
104
+ /**
105
+ * Discriminator for the entity type. Always "dataGovernance" on the REST surface.
106
+ * The underlying storage discriminator is "globalDispatchCenter" — REST translates
107
+ * it on the way out.
108
+ */
109
+ kind: string;
110
+
111
+ /**
112
+ * Governance categories in priority order (1..N).
113
+ */
114
+ categories?: Array<DataGovernanceListResponse.Category> | null;
115
+
116
+ /**
117
+ * Human-readable name shown in the dashboard.
118
+ */
119
+ name?: string | null;
120
+
121
+ /**
122
+ * Free-form notes for this record.
123
+ */
124
+ notes?: string | null;
125
+
126
+ /**
127
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
128
+ * record; advances on every PATCH.
129
+ */
130
+ updatedAt?: string | null;
131
+ }
132
+
133
+ export namespace DataGovernanceListResponse {
134
+ export interface Category {
135
+ /**
136
+ * Display name for the category.
137
+ */
138
+ name: string;
139
+
140
+ /**
141
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
142
+ * details.
143
+ */
144
+ priority: number;
145
+
146
+ /**
147
+ * Optional human-readable description.
148
+ */
149
+ description?: string | null;
150
+
151
+ /**
152
+ * Destinations gated by this category when its logic evaluates to TRUE.
153
+ */
154
+ destinationIds?: Array<string> | null;
155
+
156
+ /**
157
+ * Condition tree evaluated against each inbound event. Write conditions that
158
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
159
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
160
+ * themselves logic nodes, so trees nest arbitrarily.
161
+ *
162
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
163
+ * platform-provided `property` paths (visitor consent arrays, event fields,
164
+ * request context, identity fields). Custom `event.event_properties.*` paths are
165
+ * caller-defined.
166
+ *
167
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
168
+ * category):
169
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
170
+ *
171
+ * Example combinator:
172
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
173
+ */
174
+ logic?: Category.Logic | null;
175
+ }
176
+
177
+ export namespace Category {
178
+ /**
179
+ * Condition tree evaluated against each inbound event. Write conditions that
180
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
181
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
182
+ * themselves logic nodes, so trees nest arbitrarily.
183
+ *
184
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
185
+ * platform-provided `property` paths (visitor consent arrays, event fields,
186
+ * request context, identity fields). Custom `event.event_properties.*` paths are
187
+ * caller-defined.
188
+ *
189
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
190
+ * category):
191
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
192
+ *
193
+ * Example combinator:
194
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
195
+ */
196
+ export interface Logic {
197
+ /**
198
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
199
+ * or combinator).
200
+ */
201
+ AND?: Array<unknown> | null;
202
+
203
+ condition?: Logic.Condition;
204
+
205
+ /**
206
+ * Negates a single child logic node.
207
+ */
208
+ NOT?: unknown;
209
+
210
+ /**
211
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
212
+ * or combinator).
213
+ */
214
+ OR?: Array<unknown> | null;
215
+ }
216
+
217
+ export namespace Logic {
218
+ export interface Condition {
219
+ /**
220
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
221
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
222
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
223
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
224
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
225
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
226
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
227
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
228
+ */
229
+ operator:
230
+ | 'Is'
231
+ | 'IsNot'
232
+ | 'Contains'
233
+ | 'DoesNotContain'
234
+ | 'StartsWith'
235
+ | 'EndsWith'
236
+ | 'IsFalsy'
237
+ | 'IsTruthy'
238
+ | 'IsNull'
239
+ | 'IsNotNull'
240
+ | 'IsUndefined'
241
+ | 'IsNotUndefined'
242
+ | 'IsGreaterThan'
243
+ | 'IsGreaterThanOrEqual'
244
+ | 'IsLessThan'
245
+ | 'IsLessThanOrEqual'
246
+ | 'IsIn'
247
+ | 'IsNotIn'
248
+ | 'IsFoundIn'
249
+ | 'IsNotFoundIn'
250
+ | 'IsTrue'
251
+ | 'IsFalse'
252
+ | 'IsBefore'
253
+ | 'IsAfter'
254
+ | 'IsBetween'
255
+ | 'IsOnOrBefore'
256
+ | 'IsOnOrAfter'
257
+ | 'MatchesRegex'
258
+ | 'MatchesRegexIgnoreCase'
259
+ | 'DoesNotMatchRegex'
260
+ | 'DoesNotMatchRegexIgnoreCase';
261
+
262
+ /**
263
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
264
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
265
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
266
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
267
+ * and would be compared as a literal string.
268
+ */
269
+ property: string;
270
+
271
+ /**
272
+ * String compared against the resolved property. Operators that take no value
273
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
274
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
275
+ */
276
+ value: string;
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ export interface DataGovernanceCreateResponse {
283
+ /**
284
+ * Server-assigned UUID for this data-governance record.
285
+ */
286
+ id: string;
287
+
288
+ /**
289
+ * ISO 8601 timestamp when the record was created.
290
+ */
291
+ createdAt: string;
292
+
293
+ /**
294
+ * When false, data governance is configured but does not gate dispatch — inbound
295
+ * events flow through to destinations regardless of category logic.
296
+ */
297
+ isEnabled: boolean;
298
+
299
+ /**
300
+ * Discriminator for the entity type. Always "dataGovernance" on the REST surface.
301
+ * The underlying storage discriminator is "globalDispatchCenter" — REST translates
302
+ * it on the way out.
303
+ */
304
+ kind: string;
305
+
306
+ /**
307
+ * Governance categories in priority order (1..N).
308
+ */
309
+ categories?: Array<DataGovernanceCreateResponse.Category> | null;
310
+
311
+ /**
312
+ * Human-readable name shown in the dashboard.
313
+ */
314
+ name?: string | null;
315
+
316
+ /**
317
+ * Free-form notes for this record.
318
+ */
319
+ notes?: string | null;
320
+
321
+ /**
322
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
323
+ * record; advances on every PATCH.
324
+ */
325
+ updatedAt?: string | null;
326
+ }
327
+
328
+ export namespace DataGovernanceCreateResponse {
329
+ export interface Category {
330
+ /**
331
+ * Display name for the category.
332
+ */
333
+ name: string;
334
+
335
+ /**
336
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
337
+ * details.
338
+ */
339
+ priority: number;
340
+
341
+ /**
342
+ * Optional human-readable description.
343
+ */
344
+ description?: string | null;
345
+
346
+ /**
347
+ * Destinations gated by this category when its logic evaluates to TRUE.
348
+ */
349
+ destinationIds?: Array<string> | null;
350
+
351
+ /**
352
+ * Condition tree evaluated against each inbound event. Write conditions that
353
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
354
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
355
+ * themselves logic nodes, so trees nest arbitrarily.
356
+ *
357
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
358
+ * platform-provided `property` paths (visitor consent arrays, event fields,
359
+ * request context, identity fields). Custom `event.event_properties.*` paths are
360
+ * caller-defined.
361
+ *
362
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
363
+ * category):
364
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
365
+ *
366
+ * Example combinator:
367
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
368
+ */
369
+ logic?: Category.Logic | null;
370
+ }
371
+
372
+ export namespace Category {
373
+ /**
374
+ * Condition tree evaluated against each inbound event. Write conditions that
375
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
376
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
377
+ * themselves logic nodes, so trees nest arbitrarily.
378
+ *
379
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
380
+ * platform-provided `property` paths (visitor consent arrays, event fields,
381
+ * request context, identity fields). Custom `event.event_properties.*` paths are
382
+ * caller-defined.
383
+ *
384
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
385
+ * category):
386
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
387
+ *
388
+ * Example combinator:
389
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
390
+ */
391
+ export interface Logic {
392
+ /**
393
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
394
+ * or combinator).
395
+ */
396
+ AND?: Array<unknown> | null;
397
+
398
+ condition?: Logic.Condition;
399
+
400
+ /**
401
+ * Negates a single child logic node.
402
+ */
403
+ NOT?: unknown;
404
+
405
+ /**
406
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
407
+ * or combinator).
408
+ */
409
+ OR?: Array<unknown> | null;
410
+ }
411
+
412
+ export namespace Logic {
413
+ export interface Condition {
414
+ /**
415
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
416
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
417
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
418
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
419
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
420
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
421
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
422
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
423
+ */
424
+ operator:
425
+ | 'Is'
426
+ | 'IsNot'
427
+ | 'Contains'
428
+ | 'DoesNotContain'
429
+ | 'StartsWith'
430
+ | 'EndsWith'
431
+ | 'IsFalsy'
432
+ | 'IsTruthy'
433
+ | 'IsNull'
434
+ | 'IsNotNull'
435
+ | 'IsUndefined'
436
+ | 'IsNotUndefined'
437
+ | 'IsGreaterThan'
438
+ | 'IsGreaterThanOrEqual'
439
+ | 'IsLessThan'
440
+ | 'IsLessThanOrEqual'
441
+ | 'IsIn'
442
+ | 'IsNotIn'
443
+ | 'IsFoundIn'
444
+ | 'IsNotFoundIn'
445
+ | 'IsTrue'
446
+ | 'IsFalse'
447
+ | 'IsBefore'
448
+ | 'IsAfter'
449
+ | 'IsBetween'
450
+ | 'IsOnOrBefore'
451
+ | 'IsOnOrAfter'
452
+ | 'MatchesRegex'
453
+ | 'MatchesRegexIgnoreCase'
454
+ | 'DoesNotMatchRegex'
455
+ | 'DoesNotMatchRegexIgnoreCase';
456
+
457
+ /**
458
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
459
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
460
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
461
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
462
+ * and would be compared as a literal string.
463
+ */
464
+ property: string;
465
+
466
+ /**
467
+ * String compared against the resolved property. Operators that take no value
468
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
469
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
470
+ */
471
+ value: string;
472
+ }
473
+ }
474
+ }
475
+ }
476
+
477
+ export interface DataGovernanceRetrieveResponse {
478
+ /**
479
+ * Server-assigned UUID for this data-governance record.
480
+ */
481
+ id: string;
482
+
483
+ /**
484
+ * ISO 8601 timestamp when the record was created.
485
+ */
486
+ createdAt: string;
487
+
488
+ /**
489
+ * When false, data governance is configured but does not gate dispatch — inbound
490
+ * events flow through to destinations regardless of category logic.
491
+ */
492
+ isEnabled: boolean;
493
+
494
+ /**
495
+ * Discriminator for the entity type. Always "dataGovernance" on the REST surface.
496
+ * The underlying storage discriminator is "globalDispatchCenter" — REST translates
497
+ * it on the way out.
498
+ */
499
+ kind: string;
500
+
501
+ /**
502
+ * Governance categories in priority order (1..N).
503
+ */
504
+ categories?: Array<DataGovernanceRetrieveResponse.Category> | null;
505
+
506
+ /**
507
+ * Human-readable name shown in the dashboard.
508
+ */
509
+ name?: string | null;
510
+
511
+ /**
512
+ * Free-form notes for this record.
513
+ */
514
+ notes?: string | null;
515
+
516
+ /**
517
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
518
+ * record; advances on every PATCH.
519
+ */
520
+ updatedAt?: string | null;
521
+ }
522
+
523
+ export namespace DataGovernanceRetrieveResponse {
524
+ export interface Category {
525
+ /**
526
+ * Display name for the category.
527
+ */
528
+ name: string;
529
+
530
+ /**
531
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
532
+ * details.
533
+ */
534
+ priority: number;
535
+
536
+ /**
537
+ * Optional human-readable description.
538
+ */
539
+ description?: string | null;
540
+
541
+ /**
542
+ * Destinations gated by this category when its logic evaluates to TRUE.
543
+ */
544
+ destinationIds?: Array<string> | null;
545
+
546
+ /**
547
+ * Condition tree evaluated against each inbound event. Write conditions that
548
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
549
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
550
+ * themselves logic nodes, so trees nest arbitrarily.
551
+ *
552
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
553
+ * platform-provided `property` paths (visitor consent arrays, event fields,
554
+ * request context, identity fields). Custom `event.event_properties.*` paths are
555
+ * caller-defined.
556
+ *
557
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
558
+ * category):
559
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
560
+ *
561
+ * Example combinator:
562
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
563
+ */
564
+ logic?: Category.Logic | null;
565
+ }
566
+
567
+ export namespace Category {
568
+ /**
569
+ * Condition tree evaluated against each inbound event. Write conditions that
570
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
571
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
572
+ * themselves logic nodes, so trees nest arbitrarily.
573
+ *
574
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
575
+ * platform-provided `property` paths (visitor consent arrays, event fields,
576
+ * request context, identity fields). Custom `event.event_properties.*` paths are
577
+ * caller-defined.
578
+ *
579
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
580
+ * category):
581
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
582
+ *
583
+ * Example combinator:
584
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
585
+ */
586
+ export interface Logic {
587
+ /**
588
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
589
+ * or combinator).
590
+ */
591
+ AND?: Array<unknown> | null;
592
+
593
+ condition?: Logic.Condition;
594
+
595
+ /**
596
+ * Negates a single child logic node.
597
+ */
598
+ NOT?: unknown;
599
+
600
+ /**
601
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
602
+ * or combinator).
603
+ */
604
+ OR?: Array<unknown> | null;
605
+ }
606
+
607
+ export namespace Logic {
608
+ export interface Condition {
609
+ /**
610
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
611
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
612
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
613
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
614
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
615
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
616
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
617
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
618
+ */
619
+ operator:
620
+ | 'Is'
621
+ | 'IsNot'
622
+ | 'Contains'
623
+ | 'DoesNotContain'
624
+ | 'StartsWith'
625
+ | 'EndsWith'
626
+ | 'IsFalsy'
627
+ | 'IsTruthy'
628
+ | 'IsNull'
629
+ | 'IsNotNull'
630
+ | 'IsUndefined'
631
+ | 'IsNotUndefined'
632
+ | 'IsGreaterThan'
633
+ | 'IsGreaterThanOrEqual'
634
+ | 'IsLessThan'
635
+ | 'IsLessThanOrEqual'
636
+ | 'IsIn'
637
+ | 'IsNotIn'
638
+ | 'IsFoundIn'
639
+ | 'IsNotFoundIn'
640
+ | 'IsTrue'
641
+ | 'IsFalse'
642
+ | 'IsBefore'
643
+ | 'IsAfter'
644
+ | 'IsBetween'
645
+ | 'IsOnOrBefore'
646
+ | 'IsOnOrAfter'
647
+ | 'MatchesRegex'
648
+ | 'MatchesRegexIgnoreCase'
649
+ | 'DoesNotMatchRegex'
650
+ | 'DoesNotMatchRegexIgnoreCase';
651
+
652
+ /**
653
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
654
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
655
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
656
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
657
+ * and would be compared as a literal string.
658
+ */
659
+ property: string;
660
+
661
+ /**
662
+ * String compared against the resolved property. Operators that take no value
663
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
664
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
665
+ */
666
+ value: string;
667
+ }
668
+ }
669
+ }
670
+ }
671
+
672
+ export interface DataGovernanceUpdateResponse {
673
+ /**
674
+ * Server-assigned UUID for this data-governance record.
675
+ */
676
+ id: string;
677
+
678
+ /**
679
+ * ISO 8601 timestamp when the record was created.
680
+ */
681
+ createdAt: string;
682
+
683
+ /**
684
+ * When false, data governance is configured but does not gate dispatch — inbound
685
+ * events flow through to destinations regardless of category logic.
686
+ */
687
+ isEnabled: boolean;
688
+
689
+ /**
690
+ * Discriminator for the entity type. Always "dataGovernance" on the REST surface.
691
+ * The underlying storage discriminator is "globalDispatchCenter" — REST translates
692
+ * it on the way out.
693
+ */
694
+ kind: string;
695
+
696
+ /**
697
+ * Governance categories in priority order (1..N).
698
+ */
699
+ categories?: Array<DataGovernanceUpdateResponse.Category> | null;
700
+
701
+ /**
702
+ * Human-readable name shown in the dashboard.
703
+ */
704
+ name?: string | null;
705
+
706
+ /**
707
+ * Free-form notes for this record.
708
+ */
709
+ notes?: string | null;
710
+
711
+ /**
712
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
713
+ * record; advances on every PATCH.
714
+ */
715
+ updatedAt?: string | null;
716
+ }
717
+
718
+ export namespace DataGovernanceUpdateResponse {
719
+ export interface Category {
720
+ /**
721
+ * Display name for the category.
722
+ */
723
+ name: string;
724
+
725
+ /**
726
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
727
+ * details.
728
+ */
729
+ priority: number;
730
+
731
+ /**
732
+ * Optional human-readable description.
733
+ */
734
+ description?: string | null;
735
+
736
+ /**
737
+ * Destinations gated by this category when its logic evaluates to TRUE.
738
+ */
739
+ destinationIds?: Array<string> | null;
740
+
741
+ /**
742
+ * Condition tree evaluated against each inbound event. Write conditions that
743
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
744
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
745
+ * themselves logic nodes, so trees nest arbitrarily.
746
+ *
747
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
748
+ * platform-provided `property` paths (visitor consent arrays, event fields,
749
+ * request context, identity fields). Custom `event.event_properties.*` paths are
750
+ * caller-defined.
751
+ *
752
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
753
+ * category):
754
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
755
+ *
756
+ * Example combinator:
757
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
758
+ */
759
+ logic?: Category.Logic | null;
760
+ }
761
+
762
+ export namespace Category {
763
+ /**
764
+ * Condition tree evaluated against each inbound event. Write conditions that
765
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
766
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
767
+ * themselves logic nodes, so trees nest arbitrarily.
768
+ *
769
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
770
+ * platform-provided `property` paths (visitor consent arrays, event fields,
771
+ * request context, identity fields). Custom `event.event_properties.*` paths are
772
+ * caller-defined.
773
+ *
774
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
775
+ * category):
776
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
777
+ *
778
+ * Example combinator:
779
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
780
+ */
781
+ export interface Logic {
782
+ /**
783
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
784
+ * or combinator).
785
+ */
786
+ AND?: Array<unknown> | null;
787
+
788
+ condition?: Logic.Condition;
789
+
790
+ /**
791
+ * Negates a single child logic node.
792
+ */
793
+ NOT?: unknown;
794
+
795
+ /**
796
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
797
+ * or combinator).
798
+ */
799
+ OR?: Array<unknown> | null;
800
+ }
801
+
802
+ export namespace Logic {
803
+ export interface Condition {
804
+ /**
805
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
806
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
807
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
808
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
809
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
810
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
811
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
812
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
813
+ */
814
+ operator:
815
+ | 'Is'
816
+ | 'IsNot'
817
+ | 'Contains'
818
+ | 'DoesNotContain'
819
+ | 'StartsWith'
820
+ | 'EndsWith'
821
+ | 'IsFalsy'
822
+ | 'IsTruthy'
823
+ | 'IsNull'
824
+ | 'IsNotNull'
825
+ | 'IsUndefined'
826
+ | 'IsNotUndefined'
827
+ | 'IsGreaterThan'
828
+ | 'IsGreaterThanOrEqual'
829
+ | 'IsLessThan'
830
+ | 'IsLessThanOrEqual'
831
+ | 'IsIn'
832
+ | 'IsNotIn'
833
+ | 'IsFoundIn'
834
+ | 'IsNotFoundIn'
835
+ | 'IsTrue'
836
+ | 'IsFalse'
837
+ | 'IsBefore'
838
+ | 'IsAfter'
839
+ | 'IsBetween'
840
+ | 'IsOnOrBefore'
841
+ | 'IsOnOrAfter'
842
+ | 'MatchesRegex'
843
+ | 'MatchesRegexIgnoreCase'
844
+ | 'DoesNotMatchRegex'
845
+ | 'DoesNotMatchRegexIgnoreCase';
846
+
847
+ /**
848
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
849
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
850
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
851
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
852
+ * and would be compared as a literal string.
853
+ */
854
+ property: string;
855
+
856
+ /**
857
+ * String compared against the resolved property. Operators that take no value
858
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
859
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
860
+ */
861
+ value: string;
862
+ }
863
+ }
864
+ }
865
+ }
866
+
867
+ export interface DataGovernanceDeleteResponse {
868
+ /**
869
+ * The id of the data-governance record that was deleted.
870
+ */
871
+ id: string;
872
+
873
+ /**
874
+ * True when the underlying mutation succeeded; the entity is gone.
875
+ */
876
+ deleted: boolean;
877
+ }
878
+
879
+ export interface DataGovernanceListParams extends CursorParams {}
880
+
881
+ export interface DataGovernanceCreateParams {
882
+ /**
883
+ * Whether the record starts enabled. Defaults to false — opt in by setting true
884
+ * here or via PATCH later. When disabled, every category is bypassed and inbound
885
+ * events flow through to destinations regardless of consent state.
886
+ */
887
+ isEnabled?: boolean | null;
888
+
889
+ /**
890
+ * Display name for the new record. Defaults to "Data Governance".
891
+ */
892
+ name?: string | null;
893
+
894
+ /**
895
+ * Free-form notes shown in the dashboard. Not used for routing.
896
+ */
897
+ notes?: string | null;
898
+ }
899
+
900
+ export interface DataGovernanceUpdateParams {
901
+ /**
902
+ * Full replacement of the categories list. The sent array becomes the new state —
903
+ * there is no partial-merge semantic for categories. Categories are sorted by
904
+ * priority on write and re-stamped 1..N. Omit to leave existing categories
905
+ * untouched.
906
+ */
907
+ categories?: Array<DataGovernanceUpdateParams.Category> | null;
908
+
909
+ /**
910
+ * Toggle data governance on/off without changing any other config.
911
+ */
912
+ isEnabled?: boolean | null;
913
+
914
+ /**
915
+ * New display name for the record.
916
+ */
917
+ name?: string | null;
918
+
919
+ /**
920
+ * Replace the free-form notes.
921
+ */
922
+ notes?: string | null;
923
+ }
924
+
925
+ export namespace DataGovernanceUpdateParams {
926
+ export interface Category {
927
+ /**
928
+ * Optional human-readable description shown in the dashboard.
929
+ */
930
+ description?: string | null;
931
+
932
+ /**
933
+ * Destinations gated by this category. When the category logic evaluates to TRUE
934
+ * for an inbound event, dispatch to every destination on this list is stopped.
935
+ * Stale IDs (deleted destinations or destinations on another account) are silently
936
+ * filtered out at write time.
937
+ */
938
+ destinationIds?: Array<string> | null;
939
+
940
+ /**
941
+ * Condition tree evaluated against each inbound event. Write conditions that
942
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
943
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
944
+ * themselves logic nodes, so trees nest arbitrarily.
945
+ *
946
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
947
+ * platform-provided `property` paths (visitor consent arrays, event fields,
948
+ * request context, identity fields). Custom `event.event_properties.*` paths are
949
+ * caller-defined.
950
+ *
951
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
952
+ * category):
953
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
954
+ *
955
+ * Example combinator:
956
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
957
+ */
958
+ logic?: Category.Logic | null;
959
+
960
+ /**
961
+ * Display name for the category. Auto-generated if omitted.
962
+ */
963
+ name?: string | null;
964
+
965
+ /**
966
+ * Used as a sort key on write. The server sorts categories by this value
967
+ * (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
968
+ * positive number — gaps are ironed out, duplicate values keep input order via
969
+ * stable sort. Omit to fall to the end.
970
+ */
971
+ priority?: number | null;
972
+ }
973
+
974
+ export namespace Category {
975
+ /**
976
+ * Condition tree evaluated against each inbound event. Write conditions that
977
+ * evaluate **TRUE for events you want to STOP**. A node is either a leaf
978
+ * `condition` or a combinator (`AND`, `OR`, `NOT`); combinator children are
979
+ * themselves logic nodes, so trees nest arbitrarily.
980
+ *
981
+ * Discovery: `GET /rest/v1/mappings/default-variables` lists the canonical
982
+ * platform-provided `property` paths (visitor consent arrays, event fields,
983
+ * request context, identity fields). Custom `event.event_properties.*` paths are
984
+ * caller-defined.
985
+ *
986
+ * Example leaf (stop dispatch when the visitor rejected the `advertising` consent
987
+ * category):
988
+ * `{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }`.
989
+ *
990
+ * Example combinator:
991
+ * `{ "AND": [{ "condition": { "property": "visitor.consent.rejected_categories", "operator": "Contains", "value": "advertising" } }, { "OR": [/* nested logic nodes * /] }] }`.
992
+ */
993
+ export interface Logic {
994
+ /**
995
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
996
+ * or combinator).
997
+ */
998
+ AND?: Array<unknown> | null;
999
+
1000
+ condition?: Logic.Condition;
1001
+
1002
+ /**
1003
+ * Negates a single child logic node.
1004
+ */
1005
+ NOT?: unknown;
1006
+
1007
+ /**
1008
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
1009
+ * or combinator).
1010
+ */
1011
+ OR?: Array<unknown> | null;
1012
+ }
1013
+
1014
+ export namespace Logic {
1015
+ export interface Condition {
1016
+ /**
1017
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
1018
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
1019
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
1020
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
1021
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
1022
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
1023
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
1024
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
1025
+ */
1026
+ operator:
1027
+ | 'Is'
1028
+ | 'IsNot'
1029
+ | 'Contains'
1030
+ | 'DoesNotContain'
1031
+ | 'StartsWith'
1032
+ | 'EndsWith'
1033
+ | 'IsFalsy'
1034
+ | 'IsTruthy'
1035
+ | 'IsNull'
1036
+ | 'IsNotNull'
1037
+ | 'IsUndefined'
1038
+ | 'IsNotUndefined'
1039
+ | 'IsGreaterThan'
1040
+ | 'IsGreaterThanOrEqual'
1041
+ | 'IsLessThan'
1042
+ | 'IsLessThanOrEqual'
1043
+ | 'IsIn'
1044
+ | 'IsNotIn'
1045
+ | 'IsFoundIn'
1046
+ | 'IsNotFoundIn'
1047
+ | 'IsTrue'
1048
+ | 'IsFalse'
1049
+ | 'IsBefore'
1050
+ | 'IsAfter'
1051
+ | 'IsBetween'
1052
+ | 'IsOnOrBefore'
1053
+ | 'IsOnOrAfter'
1054
+ | 'MatchesRegex'
1055
+ | 'MatchesRegexIgnoreCase'
1056
+ | 'DoesNotMatchRegex'
1057
+ | 'DoesNotMatchRegexIgnoreCase';
1058
+
1059
+ /**
1060
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
1061
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
1062
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
1063
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
1064
+ * and would be compared as a literal string.
1065
+ */
1066
+ property: string;
1067
+
1068
+ /**
1069
+ * String compared against the resolved property. Operators that take no value
1070
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
1071
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
1072
+ */
1073
+ value: string;
1074
+ }
1075
+ }
1076
+ }
1077
+ }
1078
+
1079
+ export declare namespace DataGovernance {
1080
+ export {
1081
+ type DataGovernanceListResponse as DataGovernanceListResponse,
1082
+ type DataGovernanceCreateResponse as DataGovernanceCreateResponse,
1083
+ type DataGovernanceRetrieveResponse as DataGovernanceRetrieveResponse,
1084
+ type DataGovernanceUpdateResponse as DataGovernanceUpdateResponse,
1085
+ type DataGovernanceDeleteResponse as DataGovernanceDeleteResponse,
1086
+ type DataGovernanceListResponsesCursor as DataGovernanceListResponsesCursor,
1087
+ type DataGovernanceListParams as DataGovernanceListParams,
1088
+ type DataGovernanceCreateParams as DataGovernanceCreateParams,
1089
+ type DataGovernanceUpdateParams as DataGovernanceUpdateParams,
1090
+ };
1091
+ }