@oursprivacy/platform-sdk 1.68.0 → 1.70.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 (114) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/analytics.d.mts +10 -0
  12. package/resources/analytics.d.mts.map +1 -1
  13. package/resources/analytics.d.ts +10 -0
  14. package/resources/analytics.d.ts.map +1 -1
  15. package/resources/dashboards.d.mts +646 -4
  16. package/resources/dashboards.d.mts.map +1 -1
  17. package/resources/dashboards.d.ts +646 -4
  18. package/resources/dashboards.d.ts.map +1 -1
  19. package/resources/destinations.d.mts +7 -7
  20. package/resources/destinations.d.mts.map +1 -1
  21. package/resources/destinations.d.ts +7 -7
  22. package/resources/destinations.d.ts.map +1 -1
  23. package/resources/funnels.d.mts +253 -7
  24. package/resources/funnels.d.mts.map +1 -1
  25. package/resources/funnels.d.ts +253 -7
  26. package/resources/funnels.d.ts.map +1 -1
  27. package/resources/funnels.js +10 -7
  28. package/resources/funnels.js.map +1 -1
  29. package/resources/funnels.mjs +10 -7
  30. package/resources/funnels.mjs.map +1 -1
  31. package/resources/index.d.mts +3 -2
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -2
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/insights.d.mts +73 -12
  40. package/resources/insights.d.mts.map +1 -1
  41. package/resources/insights.d.ts +73 -12
  42. package/resources/insights.d.ts.map +1 -1
  43. package/resources/insights.js +9 -7
  44. package/resources/insights.js.map +1 -1
  45. package/resources/insights.mjs +9 -7
  46. package/resources/insights.mjs.map +1 -1
  47. package/resources/journey-flows.d.mts +242 -18
  48. package/resources/journey-flows.d.mts.map +1 -1
  49. package/resources/journey-flows.d.ts +242 -18
  50. package/resources/journey-flows.d.ts.map +1 -1
  51. package/resources/journey-flows.js +18 -12
  52. package/resources/journey-flows.js.map +1 -1
  53. package/resources/journey-flows.mjs +18 -12
  54. package/resources/journey-flows.mjs.map +1 -1
  55. package/resources/locations.d.mts +653 -13
  56. package/resources/locations.d.mts.map +1 -1
  57. package/resources/locations.d.ts +653 -13
  58. package/resources/locations.d.ts.map +1 -1
  59. package/resources/locations.js +10 -3
  60. package/resources/locations.js.map +1 -1
  61. package/resources/locations.mjs +10 -3
  62. package/resources/locations.mjs.map +1 -1
  63. package/resources/query-dispatches.d.mts +241 -0
  64. package/resources/query-dispatches.d.mts.map +1 -0
  65. package/resources/query-dispatches.d.ts +241 -0
  66. package/resources/query-dispatches.d.ts.map +1 -0
  67. package/resources/query-dispatches.js +56 -0
  68. package/resources/query-dispatches.js.map +1 -0
  69. package/resources/query-dispatches.mjs +52 -0
  70. package/resources/query-dispatches.mjs.map +1 -0
  71. package/resources/query-events.d.mts +10 -0
  72. package/resources/query-events.d.mts.map +1 -1
  73. package/resources/query-events.d.ts +10 -0
  74. package/resources/query-events.d.ts.map +1 -1
  75. package/resources/report-branding.d.mts +112 -28
  76. package/resources/report-branding.d.mts.map +1 -1
  77. package/resources/report-branding.d.ts +112 -28
  78. package/resources/report-branding.d.ts.map +1 -1
  79. package/resources/report-branding.js +29 -15
  80. package/resources/report-branding.js.map +1 -1
  81. package/resources/report-branding.mjs +29 -15
  82. package/resources/report-branding.mjs.map +1 -1
  83. package/resources/sources.d.mts +6 -6
  84. package/resources/sources.d.mts.map +1 -1
  85. package/resources/sources.d.ts +6 -6
  86. package/resources/sources.d.ts.map +1 -1
  87. package/resources/test-events.d.mts +28 -0
  88. package/resources/test-events.d.mts.map +1 -1
  89. package/resources/test-events.d.ts +28 -0
  90. package/resources/test-events.d.ts.map +1 -1
  91. package/resources/web-analytics.d.mts +24 -0
  92. package/resources/web-analytics.d.mts.map +1 -1
  93. package/resources/web-analytics.d.ts +24 -0
  94. package/resources/web-analytics.d.ts.map +1 -1
  95. package/src/client.ts +29 -0
  96. package/src/resources/analytics.ts +12 -0
  97. package/src/resources/dashboards.ts +876 -8
  98. package/src/resources/destinations.ts +23 -2
  99. package/src/resources/funnels.ts +332 -7
  100. package/src/resources/index.ts +13 -0
  101. package/src/resources/insights.ts +107 -12
  102. package/src/resources/journey-flows.ts +300 -22
  103. package/src/resources/locations.ts +690 -12
  104. package/src/resources/query-dispatches.ts +323 -0
  105. package/src/resources/query-events.ts +12 -0
  106. package/src/resources/report-branding.ts +132 -27
  107. package/src/resources/sources.ts +12 -0
  108. package/src/resources/test-events.ts +33 -0
  109. package/src/resources/web-analytics.ts +40 -0
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/version.mjs +1 -1
@@ -0,0 +1,323 @@
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 { RequestOptions } from '../internal/request-options';
6
+
7
+ export class QueryDispatches extends APIResource {
8
+ /**
9
+ * Return the Query Dispatches query version, date-range limits, and breakdown
10
+ * limits. Requires the API-key scope `report:view-dispatch`. Requires API-key
11
+ * scope or current OAuth user permission: report:view-dispatch
12
+ */
13
+ capabilities(options?: RequestOptions): APIPromise<QueryDispatchCapabilitiesResponse> {
14
+ return this._client.get('/rest/v1/query-dispatches/capabilities', options);
15
+ }
16
+
17
+ /**
18
+ * Count dispatches to destinations, grouped by up to two of destination,
19
+ * destination type, status, reason, event name, source, or identifier, optionally
20
+ * per hour or day. Use it for dispatch health over a window (filter
21
+ * `destinationIds`, group by `STATUS` and `REASON`), dispatches per event and day
22
+ * (filter `eventNames`, `timeGrain: DAY`), or identifier coverage per destination.
23
+ * To diagnose delivery problems, group by `STATUS` and `REASON` rather than
24
+ * filtering to `FAILED`, since `NOT_SENT` also covers destination settings to fix.
25
+ * JSON-encode `input` and `breakdown` in the query string. Returns counts only,
26
+ * never dispatch payloads or visitor identifiers. A destination or source ID this
27
+ * account does not own returns 404. Requires the API-key scope
28
+ * `report:view-dispatch`. Requires API-key scope or current OAuth user permission:
29
+ * report:view-dispatch
30
+ */
31
+ breakdown(
32
+ query: QueryDispatchBreakdownParams,
33
+ options?: RequestOptions,
34
+ ): APIPromise<QueryDispatchBreakdownResponse> {
35
+ return this._client.get('/rest/v1/query-dispatches/breakdown', { query, ...options });
36
+ }
37
+
38
+ /**
39
+ * List the values seen for one dispatch dimension in a date range, with dispatch
40
+ * counts, such as the failure reasons or event names to filter a breakdown by.
41
+ * Counts include test events; set `includeTestEvents` on the breakdown to match
42
+ * them. JSON-encode `input` in the query string. A destination ID this account
43
+ * does not own returns 404. Requires the API-key scope `report:view-dispatch`.
44
+ * Requires API-key scope or current OAuth user permission: report:view-dispatch
45
+ */
46
+ facetValues(
47
+ query: QueryDispatchFacetValuesParams,
48
+ options?: RequestOptions,
49
+ ): APIPromise<QueryDispatchFacetValuesResponse> {
50
+ return this._client.get('/rest/v1/query-dispatches/facet-values', { query, ...options });
51
+ }
52
+
53
+ /**
54
+ * Suggest the payload field paths and value types sent to destinations, from a
55
+ * sample of recent dispatches, to check which mapped fields a destination
56
+ * receives. Returns paths and types only, never values. JSON-encode the optional
57
+ * `input` in the query string. A destination ID this account does not own
58
+ * returns 404. Requires the API-key scope `report:view-dispatch`. Requires API-key
59
+ * scope or current OAuth user permission: report:view-dispatch
60
+ */
61
+ propertySuggestions(
62
+ query: QueryDispatchPropertySuggestionsParams | null | undefined = {},
63
+ options?: RequestOptions,
64
+ ): APIPromise<QueryDispatchPropertySuggestionsResponse> {
65
+ return this._client.get('/rest/v1/query-dispatches/property-suggestions', { query, ...options });
66
+ }
67
+ }
68
+
69
+ export interface QueryDispatchCapabilitiesResponse {
70
+ /**
71
+ * Days covered when property suggestions omit from.
72
+ */
73
+ defaultDateRangeDays: number;
74
+
75
+ /**
76
+ * Most dimensions in one breakdown.
77
+ */
78
+ maxBreakdownDimensions: number;
79
+
80
+ /**
81
+ * Most groups returned before the rest fold into otherDispatches.
82
+ */
83
+ maxBreakdownGroups: number;
84
+
85
+ /**
86
+ * Longest from-to range, in days.
87
+ */
88
+ maxDateRangeDays: number;
89
+
90
+ /**
91
+ * Longest range, in days, for an HOUR time grain.
92
+ */
93
+ maxHourlyDateRangeDays: number;
94
+
95
+ /**
96
+ * Query format version to send as input.version.
97
+ */
98
+ version: number;
99
+ }
100
+
101
+ export interface QueryDispatchBreakdownResponse {
102
+ /**
103
+ * Dispatches in groups past the limit. Zero when grouped by IDENTIFIER, since a
104
+ * dispatch can count in several groups.
105
+ */
106
+ otherDispatches: number;
107
+
108
+ /**
109
+ * Largest groups first, up to the group limit in capabilities.
110
+ */
111
+ rows: Array<QueryDispatchBreakdownResponse.Row>;
112
+
113
+ /**
114
+ * All dispatches matching input.
115
+ */
116
+ totalDispatches: number;
117
+
118
+ /**
119
+ * True when groups beyond the group limit were folded into otherDispatches.
120
+ */
121
+ truncated: boolean;
122
+ }
123
+
124
+ export namespace QueryDispatchBreakdownResponse {
125
+ export interface Row {
126
+ /**
127
+ * Dispatches matching the keys other than IDENTIFIER: the denominator for
128
+ * identifier coverage.
129
+ */
130
+ baseDispatches: number;
131
+
132
+ /**
133
+ * Start of the time bucket; null without a time grain.
134
+ */
135
+ bucket: string | null;
136
+
137
+ /**
138
+ * Dispatches in this group. Under an IDENTIFIER key, those carrying it.
139
+ */
140
+ dispatches: number;
141
+
142
+ /**
143
+ * Per-identifier counts when breakdown.identifiers was set.
144
+ */
145
+ identifierCounts: Array<Row.IdentifierCount>;
146
+
147
+ /**
148
+ * One key per requested dimension, in request order.
149
+ */
150
+ keys: Array<Row.Key>;
151
+ }
152
+
153
+ export namespace Row {
154
+ export interface IdentifierCount {
155
+ /**
156
+ * Dispatches in the row to destination types that use the identifier: the
157
+ * denominator for its coverage.
158
+ */
159
+ applicableDispatches: number;
160
+
161
+ /**
162
+ * Dispatches in the row that carried the identifier.
163
+ */
164
+ count: number;
165
+
166
+ /**
167
+ * Identifier a destination can match on. CLICK_ID is the destination platform's
168
+ * own click ID, such as ttclid or msclkid.
169
+ */
170
+ identifier:
171
+ | 'EMAIL'
172
+ | 'PHONE'
173
+ | 'EXTERNAL_ID'
174
+ | 'FBC'
175
+ | 'FBP'
176
+ | 'GCLID'
177
+ | 'GBRAID'
178
+ | 'WBRAID'
179
+ | 'CLICK_ID'
180
+ | 'IP_ADDRESS'
181
+ | 'USER_AGENT';
182
+ }
183
+
184
+ export interface Key {
185
+ /**
186
+ * Dimension to group by. IDENTIFIER makes one group per identifier a dispatch
187
+ * carried, so a dispatch counts once in each.
188
+ */
189
+ dimension:
190
+ 'DESTINATION' | 'DESTINATION_TYPE' | 'STATUS' | 'REASON' | 'EVENT_NAME' | 'SOURCE' | 'IDENTIFIER';
191
+
192
+ /**
193
+ * Display name for the value, such as the destination name, when one exists.
194
+ */
195
+ label: string | null;
196
+
197
+ /**
198
+ * Group value, such as a destination ID or event name; null when absent.
199
+ */
200
+ value: string | null;
201
+ }
202
+ }
203
+ }
204
+
205
+ export interface QueryDispatchFacetValuesResponse {
206
+ /**
207
+ * Start of the counted range.
208
+ */
209
+ from: string;
210
+
211
+ /**
212
+ * Exclusive end of the counted range.
213
+ */
214
+ to: string;
215
+
216
+ /**
217
+ * Most frequent values first, up to 100.
218
+ */
219
+ values: Array<QueryDispatchFacetValuesResponse.Value>;
220
+ }
221
+
222
+ export namespace QueryDispatchFacetValuesResponse {
223
+ export interface Value {
224
+ /**
225
+ * Dispatches with this value in the range, test events included.
226
+ */
227
+ count: number;
228
+
229
+ /**
230
+ * Display name for the value, when one exists.
231
+ */
232
+ label: string | null;
233
+
234
+ /**
235
+ * Value to use in a breakdown filter.
236
+ */
237
+ value: string;
238
+ }
239
+ }
240
+
241
+ export interface QueryDispatchPropertySuggestionsResponse {
242
+ /**
243
+ * Payload field paths and types seen in a sample of recent dispatches; no values.
244
+ */
245
+ entities: Array<QueryDispatchPropertySuggestionsResponse.Entity>;
246
+
247
+ /**
248
+ * Start of the sampled range.
249
+ */
250
+ from: string;
251
+
252
+ /**
253
+ * True when the paths come from a sample, so rare paths may be missing.
254
+ */
255
+ sampled: boolean;
256
+
257
+ /**
258
+ * Exclusive end of the sampled range.
259
+ */
260
+ to: string;
261
+ }
262
+
263
+ export namespace QueryDispatchPropertySuggestionsResponse {
264
+ export interface Entity {
265
+ /**
266
+ * Payload path segments, outermost first. A `0` segment is the first array item.
267
+ */
268
+ path: Array<string>;
269
+
270
+ /**
271
+ * Always `dispatch.payload`: the payload sent to the destination.
272
+ */
273
+ property: string;
274
+
275
+ /**
276
+ * False when the path identifies a person, such as an email field.
277
+ */
278
+ supportsBreakdown: boolean;
279
+
280
+ /**
281
+ * Value type observed at this path.
282
+ */
283
+ type: 'string' | 'number' | 'boolean';
284
+ }
285
+ }
286
+
287
+ export interface QueryDispatchBreakdownParams {
288
+ /**
289
+ * How to group the counts. JSON-encode breakdown in the REST query string.
290
+ */
291
+ breakdown: string;
292
+
293
+ /**
294
+ * Which dispatches to count. JSON-encode input in the REST query string.
295
+ */
296
+ input: string;
297
+ }
298
+
299
+ export interface QueryDispatchFacetValuesParams {
300
+ /**
301
+ * Which values to list. JSON-encode input in the REST query string.
302
+ */
303
+ input: string;
304
+ }
305
+
306
+ export interface QueryDispatchPropertySuggestionsParams {
307
+ /**
308
+ * Which dispatches to sample. JSON-encode input in the REST query string.
309
+ */
310
+ input?: string;
311
+ }
312
+
313
+ export declare namespace QueryDispatches {
314
+ export {
315
+ type QueryDispatchCapabilitiesResponse as QueryDispatchCapabilitiesResponse,
316
+ type QueryDispatchBreakdownResponse as QueryDispatchBreakdownResponse,
317
+ type QueryDispatchFacetValuesResponse as QueryDispatchFacetValuesResponse,
318
+ type QueryDispatchPropertySuggestionsResponse as QueryDispatchPropertySuggestionsResponse,
319
+ type QueryDispatchBreakdownParams as QueryDispatchBreakdownParams,
320
+ type QueryDispatchFacetValuesParams as QueryDispatchFacetValuesParams,
321
+ type QueryDispatchPropertySuggestionsParams as QueryDispatchPropertySuggestionsParams,
322
+ };
323
+ }
@@ -215,6 +215,12 @@ export namespace QueryEventCatalogResponse {
215
215
  */
216
216
  scope: string;
217
217
 
218
+ /**
219
+ * False when the field identifies a person, so reports can filter on it but not
220
+ * break down by it.
221
+ */
222
+ supportsBreakdown: boolean;
223
+
218
224
  /**
219
225
  * Value type the filter compares against.
220
226
  */
@@ -266,6 +272,12 @@ export namespace QueryEventPropertySuggestionsResponse {
266
272
  */
267
273
  property: 'event.properties' | 'event.visitor_properties';
268
274
 
275
+ /**
276
+ * False when the path identifies a person, so reports can filter on it but not
277
+ * break down by it.
278
+ */
279
+ supportsBreakdown: boolean;
280
+
269
281
  /**
270
282
  * Value type observed at this path.
271
283
  */
@@ -6,11 +6,13 @@ import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  export class ReportBranding extends APIResource {
8
8
  /**
9
- * Get the organization logo shown on Dashboards and Dashboard PDFs. Returns {
10
- * logo: null } when no logo is set. Pass includeDataUrl=false to omit the image
11
- * data and read only its format, dimensions, size, and update time. Requires
12
- * Analytics Suite access. Requires API-key scope or current OAuth user permission:
13
- * web-analytics:view
9
+ * Get the organization report branding: the logo shown on Dashboards,
10
+ * presentations, and PDF reports, and the brand color printed on PDF reports.
11
+ * Returns logo null when no logo is set and brandColor null when PDFs use the
12
+ * default navy. Pass includeDataUrl=false to omit the image data and read only its
13
+ * format, dimensions, size, and update time. Change the color with PATCH
14
+ * /rest/v1/report-branding/colors. Requires API-key scope or current OAuth user
15
+ * permission: web-analytics:view or organization:manage-report-branding
14
16
  */
15
17
  retrieve(
16
18
  query: ReportBrandingRetrieveParams | null | undefined = {},
@@ -20,12 +22,12 @@ export class ReportBranding extends APIResource {
20
22
  }
21
23
 
22
24
  /**
23
- * Replace the organization logo used on Dashboards and Dashboard PDFs. Send
24
- * contentType and base64 data for a PNG, JPEG, or WebP image of at most 524288
25
- * bytes and 4096 pixels in each dimension. The bytes must match contentType; SVG
26
- * is not accepted, so rasterize vector logos first. Requires Analytics Suite
27
- * access and organization:manage-report-branding. Requires API-key scope or
28
- * current OAuth user permission: organization:manage-report-branding
25
+ * Replace the organization logo used on Dashboards, presentations, and PDF
26
+ * reports. Send contentType and base64 data for a PNG, JPEG, or WebP image of at
27
+ * most 524288 bytes and 4096 pixels in each dimension. The bytes must match
28
+ * contentType; SVG is not accepted, so rasterize vector logos first. The brand
29
+ * color is unchanged. Requires API-key scope or current OAuth user permission:
30
+ * organization:manage-report-branding
29
31
  */
30
32
  replace(
31
33
  body: ReportBrandingReplaceParams,
@@ -35,28 +37,52 @@ export class ReportBranding extends APIResource {
35
37
  }
36
38
 
37
39
  /**
38
- * Remove the organization logo from Dashboards and Dashboard PDFs. Succeeds when
39
- * no logo is set. Requires Analytics Suite access and
40
- * organization:manage-report-branding. Requires API-key scope or current OAuth
41
- * user permission: organization:manage-report-branding
40
+ * Remove the organization logo from Dashboards, presentations, and PDF reports.
41
+ * Succeeds when no logo is set. The brand color is kept; clear it with PATCH
42
+ * /rest/v1/report-branding/colors and brandColor null. Requires API-key scope or
43
+ * current OAuth user permission: organization:manage-report-branding
42
44
  */
43
45
  delete(options?: RequestOptions): APIPromise<ReportBrandingDeleteResponse> {
44
46
  return this._client.delete('/rest/v1/report-branding/logo', options);
45
47
  }
48
+
49
+ /**
50
+ * Set the brand color printed on PDF reports for the header rule, table headers,
51
+ * summary band, and (when dark enough for text) headings. Send brandColor as
52
+ * #RRGGBB in either case (it is stored and returned lowercase), or null to return
53
+ * to the Ours Privacy default navy; the logo is unchanged. New PDFs use the color
54
+ * right away. Read it back with GET /rest/v1/report-branding/logo. Requires
55
+ * API-key scope or current OAuth user permission:
56
+ * organization:manage-report-branding
57
+ */
58
+ update(
59
+ body: ReportBrandingUpdateParams,
60
+ options?: RequestOptions,
61
+ ): APIPromise<ReportBrandingUpdateResponse> {
62
+ return this._client.patch('/rest/v1/report-branding/colors', { body, ...options });
63
+ }
46
64
  }
47
65
 
48
66
  export interface ReportBrandingRetrieveResponse {
49
67
  /**
50
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
51
- * set.
68
+ * Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
69
+ * table headers, summary band, and (when dark enough for text) headings, or null
70
+ * when PDFs use the Ours Privacy default navy. Independent of the logo: removing
71
+ * the logo keeps it.
72
+ */
73
+ brandColor: string | null;
74
+
75
+ /**
76
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
77
+ * when none is set.
52
78
  */
53
79
  logo: ReportBrandingRetrieveResponse.Logo | null;
54
80
  }
55
81
 
56
82
  export namespace ReportBrandingRetrieveResponse {
57
83
  /**
58
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
59
- * set.
84
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
85
+ * when none is set.
60
86
  */
61
87
  export interface Logo {
62
88
  /**
@@ -90,16 +116,24 @@ export namespace ReportBrandingRetrieveResponse {
90
116
 
91
117
  export interface ReportBrandingReplaceResponse {
92
118
  /**
93
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
94
- * set.
119
+ * Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
120
+ * table headers, summary band, and (when dark enough for text) headings, or null
121
+ * when PDFs use the Ours Privacy default navy. Independent of the logo: removing
122
+ * the logo keeps it.
123
+ */
124
+ brandColor: string | null;
125
+
126
+ /**
127
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
128
+ * when none is set.
95
129
  */
96
130
  logo: ReportBrandingReplaceResponse.Logo | null;
97
131
  }
98
132
 
99
133
  export namespace ReportBrandingReplaceResponse {
100
134
  /**
101
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
102
- * set.
135
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
136
+ * when none is set.
103
137
  */
104
138
  export interface Logo {
105
139
  /**
@@ -133,16 +167,75 @@ export namespace ReportBrandingReplaceResponse {
133
167
 
134
168
  export interface ReportBrandingDeleteResponse {
135
169
  /**
136
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
137
- * set.
170
+ * Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
171
+ * table headers, summary band, and (when dark enough for text) headings, or null
172
+ * when PDFs use the Ours Privacy default navy. Independent of the logo: removing
173
+ * the logo keeps it.
174
+ */
175
+ brandColor: string | null;
176
+
177
+ /**
178
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
179
+ * when none is set.
138
180
  */
139
181
  logo: ReportBrandingDeleteResponse.Logo | null;
140
182
  }
141
183
 
142
184
  export namespace ReportBrandingDeleteResponse {
143
185
  /**
144
- * Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
145
- * set.
186
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
187
+ * when none is set.
188
+ */
189
+ export interface Logo {
190
+ /**
191
+ * Decoded image size in bytes.
192
+ */
193
+ byteSize: number;
194
+
195
+ contentType: 'image/png' | 'image/jpeg' | 'image/webp';
196
+
197
+ /**
198
+ * Image height in pixels.
199
+ */
200
+ height: number;
201
+
202
+ updatedAt: string;
203
+
204
+ updatedByUserId: string;
205
+
206
+ /**
207
+ * Image width in pixels.
208
+ */
209
+ width: number;
210
+
211
+ /**
212
+ * data: URL containing the base64 image. Returned by GET unless includeDataUrl is
213
+ * false; omitted from write responses.
214
+ */
215
+ dataUrl?: string;
216
+ }
217
+ }
218
+
219
+ export interface ReportBrandingUpdateResponse {
220
+ /**
221
+ * Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
222
+ * table headers, summary band, and (when dark enough for text) headings, or null
223
+ * when PDFs use the Ours Privacy default navy. Independent of the logo: removing
224
+ * the logo keeps it.
225
+ */
226
+ brandColor: string | null;
227
+
228
+ /**
229
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
230
+ * when none is set.
231
+ */
232
+ logo: ReportBrandingUpdateResponse.Logo | null;
233
+ }
234
+
235
+ export namespace ReportBrandingUpdateResponse {
236
+ /**
237
+ * Organization logo shown on Dashboards, presentations, and PDF reports, or null
238
+ * when none is set.
146
239
  */
147
240
  export interface Logo {
148
241
  /**
@@ -196,12 +289,24 @@ export interface ReportBrandingReplaceParams {
196
289
  data: string;
197
290
  }
198
291
 
292
+ export interface ReportBrandingUpdateParams {
293
+ /**
294
+ * Brand color as #RRGGBB in either case; it is stored and returned lowercase.
295
+ * Needs at least 3:1 contrast against white so it stays readable on the page;
296
+ * lighter colors are rejected. Send null to return to the Ours Privacy default
297
+ * navy; omit it to leave the color unchanged.
298
+ */
299
+ brandColor?: string | null;
300
+ }
301
+
199
302
  export declare namespace ReportBranding {
200
303
  export {
201
304
  type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse,
202
305
  type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse,
203
306
  type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse,
307
+ type ReportBrandingUpdateResponse as ReportBrandingUpdateResponse,
204
308
  type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams,
205
309
  type ReportBrandingReplaceParams as ReportBrandingReplaceParams,
310
+ type ReportBrandingUpdateParams as ReportBrandingUpdateParams,
206
311
  };
207
312
  }
@@ -113,6 +113,8 @@ export interface SourceListResponse {
113
113
  | 'HubspotFormWebhook'
114
114
  | 'JotFormWebhooks'
115
115
  | 'KotlinApi'
116
+ | 'Liine'
117
+ | 'Moonfall'
116
118
  | 'NodejsApi'
117
119
  | 'PHPApi'
118
120
  | 'PixelImage'
@@ -216,6 +218,8 @@ export interface SourceCreateResponse {
216
218
  | 'HubspotFormWebhook'
217
219
  | 'JotFormWebhooks'
218
220
  | 'KotlinApi'
221
+ | 'Liine'
222
+ | 'Moonfall'
219
223
  | 'NodejsApi'
220
224
  | 'PHPApi'
221
225
  | 'PixelImage'
@@ -319,6 +323,8 @@ export interface SourceRetrieveResponse {
319
323
  | 'HubspotFormWebhook'
320
324
  | 'JotFormWebhooks'
321
325
  | 'KotlinApi'
326
+ | 'Liine'
327
+ | 'Moonfall'
322
328
  | 'NodejsApi'
323
329
  | 'PHPApi'
324
330
  | 'PixelImage'
@@ -422,6 +428,8 @@ export interface SourceUpdateResponse {
422
428
  | 'HubspotFormWebhook'
423
429
  | 'JotFormWebhooks'
424
430
  | 'KotlinApi'
431
+ | 'Liine'
432
+ | 'Moonfall'
425
433
  | 'NodejsApi'
426
434
  | 'PHPApi'
427
435
  | 'PixelImage'
@@ -603,6 +611,8 @@ export interface SourceListParams extends CursorParams {
603
611
  | 'HubspotFormWebhook'
604
612
  | 'JotFormWebhooks'
605
613
  | 'KotlinApi'
614
+ | 'Liine'
615
+ | 'Moonfall'
606
616
  | 'NodejsApi'
607
617
  | 'PHPApi'
608
618
  | 'PixelImage'
@@ -641,6 +651,8 @@ export interface SourceCreateParams {
641
651
  | 'HubspotFormWebhook'
642
652
  | 'JotFormWebhooks'
643
653
  | 'KotlinApi'
654
+ | 'Liine'
655
+ | 'Moonfall'
644
656
  | 'NodejsApi'
645
657
  | 'PHPApi'
646
658
  | 'PixelImage'
@@ -524,6 +524,13 @@ export namespace TestEventCreateParams {
524
524
  */
525
525
  gbraid?: string | null;
526
526
 
527
+ /**
528
+ * The Growth Channel tracking ID, captured from the `gc_ref_id` URL parameter.
529
+ * Advertisers add `?gc_ref_id={TRACKING_ID}` to their Growth Channel landing URLs.
530
+ * Sent as `ref_id` on Growth Channel postbacks. Ex: gc_ref_abc123
531
+ */
532
+ gc_ref_id?: string | null;
533
+
527
534
  /**
528
535
  * The Google Click ID. Ex: gclid123
529
536
  */
@@ -574,6 +581,26 @@ export namespace TestEventCreateParams {
574
581
  */
575
582
  is_bot?: boolean | null;
576
583
 
584
+ /**
585
+ * The Katalys offer ID. The Web SDK stores the `offer_id` landing-page parameter
586
+ * under this name only when the link also carries `publisher_id`. Ex: 1001
587
+ */
588
+ katalys_offer_id?: string | null;
589
+
590
+ /**
591
+ * The Katalys publisher (affiliate) ID, captured from the `publisher_id`
592
+ * landing-page parameter on Katalys links. Sent to Katalys as `aff_id`. Ex: 2002
593
+ */
594
+ katalys_publisher_id?: string | null;
595
+
596
+ /**
597
+ * The Katalys click (transaction) ID. The Web SDK stores the `transaction_id`
598
+ * landing-page parameter under this name only when the link also carries
599
+ * `publisher_id`, so another network's `transaction_id` is not captured. Ex:
600
+ * ka_tx_abc123
601
+ */
602
+ katalys_transaction_id?: string | null;
603
+
577
604
  /**
578
605
  * The LinkedIn Click ID. Ex: li_fat_id123
579
606
  */
@@ -659,6 +686,12 @@ export namespace TestEventCreateParams {
659
686
  */
660
687
  referring_domain?: string | null;
661
688
 
689
+ /**
690
+ * The Renshu click ID. The Web SDK stores the `uid` landing-page parameter under
691
+ * this name. Sent as `uid` on Renshu postbacks. Ex: rs_click_abc123
692
+ */
693
+ renshu_uid?: string | null;
694
+
662
695
  /**
663
696
  * The StackAdapt Tracking ID. Ex: sacid123
664
697
  */