@oursprivacy/platform-sdk 1.23.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.
@@ -1,13 +1,18 @@
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 Sources extends APIResource {
5
6
  /**
6
- * List all sources. Requires scope: source:list
7
+ * List all sources for this account. Supports cursor pagination and optional
8
+ * filters for `type`, `status`, and `nameContains`. Results are sorted by creation
9
+ * date descending. Requires scope: source:list
7
10
  */
8
- list(options?: RequestOptions): APIPromise<SourceListResponse>;
11
+ list(query?: SourceListParams | null | undefined, options?: RequestOptions): PagePromise<SourceListResponsesCursor, SourceListResponse>;
9
12
  /**
10
- * Create a new source. Requires scope: source:create
13
+ * Create a new source. Returns the full source entity (same shape as GET
14
+ * /sources/{id}) so callers can read all server-assigned fields without a
15
+ * follow-up GET. Requires scope: source:create
11
16
  */
12
17
  create(body: SourceCreateParams, options?: RequestOptions): APIPromise<SourceCreateResponse>;
13
18
  /**
@@ -15,8 +20,9 @@ export declare class Sources extends APIResource {
15
20
  */
16
21
  retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse>;
17
22
  /**
18
- * Partially update a source. Only the fields you send are changed. Requires scope:
19
- * source:update
23
+ * Partially update a source. Only the fields you send are changed; omitted fields
24
+ * are unchanged. Send explicit `null` to clear a nullable field. Returns the full
25
+ * source entity after the update. Requires scope: source:update
20
26
  */
21
27
  update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse>;
22
28
  /**
@@ -24,51 +30,123 @@ export declare class Sources extends APIResource {
24
30
  */
25
31
  delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse>;
26
32
  /**
27
- * Fetch install tokens and snippets for a source. Requires scope: source:view
33
+ * Returns the install or ingest tokens for a source. Pixel sources (WebSource,
34
+ * PixelImage, HTTPApiSource) return
35
+ * `{ sourceType: "pixel", token, testToken, installScript, testInstallScript }`.
36
+ * Webhook sources (Webhook, CallRail, Formstack, Healthie, etc.) return
37
+ * `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
38
+ * Requires scope: source:view
28
39
  */
29
40
  tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse>;
30
41
  }
42
+ export type SourceListResponsesCursor = Cursor<SourceListResponse>;
31
43
  export interface SourceListResponse {
32
- entities: Array<SourceListResponse.Entity>;
33
- }
34
- export declare namespace SourceListResponse {
35
- interface Entity {
36
- id: string;
37
- createdAt: string;
38
- status: 'Disabled' | 'Enabled';
39
- type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
40
- botControlMode?: string | null;
41
- botScoreThreshold?: number | null;
42
- excludeRequestContext?: boolean | null;
43
- name?: string | null;
44
- probabilisticIdentity?: unknown | null;
45
- projectAPIKey?: string | null;
46
- redirectUrl?: string | null;
47
- selectedAccountId?: string | null;
48
- /**
49
- * Limits which domains can send events to the CDP. When set, only requests from
50
- * these domains are accepted for this source. Separate from experiment settings
51
- * `whitelistDomains`, which limits which domains can load your experiments.
52
- */
53
- whitelistDomains?: Array<string> | null;
54
- whitelistIps?: Array<string> | null;
55
- }
44
+ id: string;
45
+ /**
46
+ * Organization id that owns this source.
47
+ */
48
+ accountId: string;
49
+ createdAt: string;
50
+ status: 'Disabled' | 'Enabled';
51
+ type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
52
+ botControlMode?: string | null;
53
+ botScoreThreshold?: number | null;
54
+ excludeRequestContext?: boolean | null;
55
+ /**
56
+ * Whether this source exists in the currently published version. A source that is
57
+ * not published will not accept events.
58
+ */
59
+ isPublished?: boolean | null;
60
+ /**
61
+ * ISO-8601 timestamp of the most recent event from this source successfully
62
+ * dispatched to a destination.
63
+ */
64
+ lastDispatchedAt?: string | null;
65
+ /**
66
+ * ISO-8601 timestamp of the most recent inbound request received by this source.
67
+ * Useful for debugging "is my webhook even reaching us?"
68
+ */
69
+ lastTriggeredAt?: string | null;
70
+ name?: string | null;
71
+ probabilisticIdentity?: unknown | null;
72
+ projectAPIKey?: string | null;
73
+ redirectUrl?: string | null;
74
+ selectedAccountId?: string | null;
75
+ /**
76
+ * Limits which domains can send events to the CDP. When set, only requests from
77
+ * these domains are accepted for this source. Separate from experiment settings
78
+ * `whitelistDomains`, which limits which domains can load your experiments.
79
+ */
80
+ whitelistDomains?: Array<string> | null;
81
+ whitelistIps?: Array<string> | null;
56
82
  }
57
83
  export interface SourceCreateResponse {
58
84
  id: string;
85
+ /**
86
+ * Organization id that owns this source.
87
+ */
88
+ accountId: string;
59
89
  createdAt: string;
60
90
  status: 'Disabled' | 'Enabled';
61
91
  type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
92
+ botControlMode?: string | null;
93
+ botScoreThreshold?: number | null;
94
+ excludeRequestContext?: boolean | null;
95
+ /**
96
+ * Whether this source exists in the currently published version. A source that is
97
+ * not published will not accept events.
98
+ */
99
+ isPublished?: boolean | null;
100
+ /**
101
+ * ISO-8601 timestamp of the most recent event from this source successfully
102
+ * dispatched to a destination.
103
+ */
104
+ lastDispatchedAt?: string | null;
105
+ /**
106
+ * ISO-8601 timestamp of the most recent inbound request received by this source.
107
+ * Useful for debugging "is my webhook even reaching us?"
108
+ */
109
+ lastTriggeredAt?: string | null;
62
110
  name?: string | null;
111
+ probabilisticIdentity?: unknown | null;
112
+ projectAPIKey?: string | null;
113
+ redirectUrl?: string | null;
114
+ selectedAccountId?: string | null;
115
+ /**
116
+ * Limits which domains can send events to the CDP. When set, only requests from
117
+ * these domains are accepted for this source. Separate from experiment settings
118
+ * `whitelistDomains`, which limits which domains can load your experiments.
119
+ */
120
+ whitelistDomains?: Array<string> | null;
121
+ whitelistIps?: Array<string> | null;
63
122
  }
64
123
  export interface SourceRetrieveResponse {
65
124
  id: string;
125
+ /**
126
+ * Organization id that owns this source.
127
+ */
128
+ accountId: string;
66
129
  createdAt: string;
67
130
  status: 'Disabled' | 'Enabled';
68
131
  type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
69
132
  botControlMode?: string | null;
70
133
  botScoreThreshold?: number | null;
71
134
  excludeRequestContext?: boolean | null;
135
+ /**
136
+ * Whether this source exists in the currently published version. A source that is
137
+ * not published will not accept events.
138
+ */
139
+ isPublished?: boolean | null;
140
+ /**
141
+ * ISO-8601 timestamp of the most recent event from this source successfully
142
+ * dispatched to a destination.
143
+ */
144
+ lastDispatchedAt?: string | null;
145
+ /**
146
+ * ISO-8601 timestamp of the most recent inbound request received by this source.
147
+ * Useful for debugging "is my webhook even reaching us?"
148
+ */
149
+ lastTriggeredAt?: string | null;
72
150
  name?: string | null;
73
151
  probabilisticIdentity?: unknown | null;
74
152
  projectAPIKey?: string | null;
@@ -84,38 +162,127 @@ export interface SourceRetrieveResponse {
84
162
  }
85
163
  export interface SourceUpdateResponse {
86
164
  id: string;
165
+ /**
166
+ * Organization id that owns this source.
167
+ */
168
+ accountId: string;
87
169
  createdAt: string;
88
170
  status: 'Disabled' | 'Enabled';
89
171
  type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
172
+ botControlMode?: string | null;
173
+ botScoreThreshold?: number | null;
174
+ excludeRequestContext?: boolean | null;
175
+ /**
176
+ * Whether this source exists in the currently published version. A source that is
177
+ * not published will not accept events.
178
+ */
179
+ isPublished?: boolean | null;
180
+ /**
181
+ * ISO-8601 timestamp of the most recent event from this source successfully
182
+ * dispatched to a destination.
183
+ */
184
+ lastDispatchedAt?: string | null;
185
+ /**
186
+ * ISO-8601 timestamp of the most recent inbound request received by this source.
187
+ * Useful for debugging "is my webhook even reaching us?"
188
+ */
189
+ lastTriggeredAt?: string | null;
90
190
  name?: string | null;
91
- }
92
- export type SourceDeleteResponse = boolean;
93
- export interface SourceTokensResponse {
191
+ probabilisticIdentity?: unknown | null;
192
+ projectAPIKey?: string | null;
193
+ redirectUrl?: string | null;
194
+ selectedAccountId?: string | null;
94
195
  /**
95
- * Install token for the source.
196
+ * Limits which domains can send events to the CDP. When set, only requests from
197
+ * these domains are accepted for this source. Separate from experiment settings
198
+ * `whitelistDomains`, which limits which domains can load your experiments.
96
199
  */
97
- token: string;
200
+ whitelistDomains?: Array<string> | null;
201
+ whitelistIps?: Array<string> | null;
202
+ }
203
+ export interface SourceDeleteResponse {
204
+ deleted: true;
205
+ }
206
+ /**
207
+ * Token data for the source. The `sourceType` field discriminates between pixel
208
+ * sources (web / PixelImage) which return an `installScript`, and webhook sources
209
+ * which return an `ingestUrl` and `sampleCurl` instead. Pixel sources use
210
+ * `installScript` / `testInstallScript` to add the tracking pixel to a website.
211
+ * Webhook sources POST JSON to `ingestUrl` directly.
212
+ */
213
+ export type SourceTokensResponse = SourceTokensResponse.UnionMember0 | SourceTokensResponse.UnionMember1;
214
+ export declare namespace SourceTokensResponse {
215
+ interface UnionMember0 {
216
+ /**
217
+ * Install token for the source.
218
+ */
219
+ token: string;
220
+ /**
221
+ * Ready-to-paste install snippet for the production token, including linked
222
+ * runtime tokens for supported modules.
223
+ */
224
+ installScript: string;
225
+ /**
226
+ * Discriminator: this is a pixel/web source.
227
+ */
228
+ sourceType: 'pixel';
229
+ /**
230
+ * Ready-to-paste install snippet for the test token, suitable for validation
231
+ * before a live install.
232
+ */
233
+ testInstallScript: string;
234
+ /**
235
+ * Test-mode token derived from `token`.
236
+ */
237
+ testToken: string;
238
+ }
239
+ interface UnionMember1 {
240
+ /**
241
+ * Source token (the source id).
242
+ */
243
+ token: string;
244
+ /**
245
+ * Production ingest URL for the webhook source.
246
+ */
247
+ ingestUrl: string;
248
+ /**
249
+ * Example curl command showing how to POST a sample event to the ingest URL. Copy
250
+ * and run to verify connectivity.
251
+ */
252
+ sampleCurl: string;
253
+ /**
254
+ * Discriminator: this is a webhook source.
255
+ */
256
+ sourceType: 'webhook';
257
+ /**
258
+ * Test-mode ingest URL.
259
+ */
260
+ testIngestUrl: string;
261
+ /**
262
+ * Test-mode token derived from `token`.
263
+ */
264
+ testToken: string;
265
+ }
266
+ }
267
+ export interface SourceListParams extends CursorParams {
98
268
  /**
99
- * Ready-to-paste install snippet for the production token, including linked
100
- * runtime tokens for supported modules.
269
+ * Case-insensitive substring filter on the source name.
101
270
  */
102
- installScript: string;
271
+ nameContains?: string;
103
272
  /**
104
- * Ready-to-paste install snippet for the test token, suitable for validation
105
- * before a live install.
273
+ * Filter by source status.
106
274
  */
107
- testInstallScript: string;
275
+ status?: 'Disabled' | 'Enabled';
108
276
  /**
109
- * Test-mode token derived from `token`.
277
+ * Filter by source type.
110
278
  */
111
- testToken: string;
279
+ type?: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
112
280
  }
113
281
  export interface SourceCreateParams {
114
282
  type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
115
283
  name?: string | null;
116
284
  }
117
285
  export interface SourceUpdateParams {
118
- status: 'Disabled' | 'Enabled';
119
286
  botControlMode?: string | null;
120
287
  botScoreThreshold?: number | null;
121
288
  excludeRequestContext?: boolean | null;
@@ -124,10 +291,11 @@ export interface SourceUpdateParams {
124
291
  projectAPIKey?: string | null;
125
292
  redirectUrl?: string | null;
126
293
  selectedAccountId?: string | null;
294
+ status?: string | null;
127
295
  whitelistDomains?: Array<string> | null;
128
296
  whitelistIps?: Array<string> | null;
129
297
  }
130
298
  export declare namespace Sources {
131
- export { type SourceListResponse as SourceListResponse, type SourceCreateResponse as SourceCreateResponse, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceUpdateResponse as SourceUpdateResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceTokensResponse as SourceTokensResponse, type SourceCreateParams as SourceCreateParams, type SourceUpdateParams as SourceUpdateParams, };
299
+ export { type SourceListResponse as SourceListResponse, type SourceCreateResponse as SourceCreateResponse, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceUpdateResponse as SourceUpdateResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceTokensResponse as SourceTokensResponse, type SourceListResponsesCursor as SourceListResponsesCursor, type SourceListParams as SourceListParams, type SourceCreateParams as SourceCreateParams, type SourceUpdateParams as SourceUpdateParams, };
132
300
  }
133
301
  //# sourceMappingURL=sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI9E;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/E;AAED,MAAM,WAAW,k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AI,CAAC;IAEvC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,qBAAqB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAExC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,16 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Sources = 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 Sources extends resource_1.APIResource {
8
9
  /**
9
- * List all sources. Requires scope: source:list
10
+ * List all sources for this account. Supports cursor pagination and optional
11
+ * filters for `type`, `status`, and `nameContains`. Results are sorted by creation
12
+ * date descending. Requires scope: source:list
10
13
  */
11
- list(options) {
12
- return this._client.get('/rest/v1/sources', options);
14
+ list(query = {}, options) {
15
+ return this._client.getAPIList('/rest/v1/sources', (pagination_1.Cursor), { query, ...options });
13
16
  }
14
17
  /**
15
- * Create a new source. Requires scope: source:create
18
+ * Create a new source. Returns the full source entity (same shape as GET
19
+ * /sources/{id}) so callers can read all server-assigned fields without a
20
+ * follow-up GET. Requires scope: source:create
16
21
  */
17
22
  create(body, options) {
18
23
  return this._client.post('/rest/v1/sources', { body, ...options });
@@ -24,8 +29,9 @@ class Sources extends resource_1.APIResource {
24
29
  return this._client.get((0, path_1.path) `/rest/v1/sources/${id}`, options);
25
30
  }
26
31
  /**
27
- * Partially update a source. Only the fields you send are changed. Requires scope:
28
- * source:update
32
+ * Partially update a source. Only the fields you send are changed; omitted fields
33
+ * are unchanged. Send explicit `null` to clear a nullable field. Returns the full
34
+ * source entity after the update. Requires scope: source:update
29
35
  */
30
36
  update(id, body, options) {
31
37
  return this._client.patch((0, path_1.path) `/rest/v1/sources/${id}`, { body, ...options });
@@ -37,7 +43,12 @@ class Sources extends resource_1.APIResource {
37
43
  return this._client.delete((0, path_1.path) `/rest/v1/sources/${id}`, options);
38
44
  }
39
45
  /**
40
- * Fetch install tokens and snippets for a source. Requires scope: source:view
46
+ * Returns the install or ingest tokens for a source. Pixel sources (WebSource,
47
+ * PixelImage, HTTPApiSource) return
48
+ * `{ sourceType: "pixel", token, testToken, installScript, testInstallScript }`.
49
+ * Webhook sources (Webhook, CallRail, Formstack, Healthie, etc.) return
50
+ * `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
51
+ * Requires scope: source:view
41
52
  */
42
53
  tokens(id, options) {
43
54
  return this._client.get((0, path_1.path) `/rest/v1/sources/${id}/tokens`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;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IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,mBAA0B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAxDD,0BAwDC"}
@@ -1,15 +1,20 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
4
5
  export class Sources extends APIResource {
5
6
  /**
6
- * List all sources. Requires scope: source:list
7
+ * List all sources for this account. Supports cursor pagination and optional
8
+ * filters for `type`, `status`, and `nameContains`. Results are sorted by creation
9
+ * date descending. Requires scope: source:list
7
10
  */
8
- list(options) {
9
- return this._client.get('/rest/v1/sources', options);
11
+ list(query = {}, options) {
12
+ return this._client.getAPIList('/rest/v1/sources', (Cursor), { query, ...options });
10
13
  }
11
14
  /**
12
- * Create a new source. Requires scope: source:create
15
+ * Create a new source. Returns the full source entity (same shape as GET
16
+ * /sources/{id}) so callers can read all server-assigned fields without a
17
+ * follow-up GET. Requires scope: source:create
13
18
  */
14
19
  create(body, options) {
15
20
  return this._client.post('/rest/v1/sources', { body, ...options });
@@ -21,8 +26,9 @@ export class Sources extends APIResource {
21
26
  return this._client.get(path `/rest/v1/sources/${id}`, options);
22
27
  }
23
28
  /**
24
- * Partially update a source. Only the fields you send are changed. Requires scope:
25
- * source:update
29
+ * Partially update a source. Only the fields you send are changed; omitted fields
30
+ * are unchanged. Send explicit `null` to clear a nullable field. Returns the full
31
+ * source entity after the update. Requires scope: source:update
26
32
  */
27
33
  update(id, body, options) {
28
34
  return this._client.patch(path `/rest/v1/sources/${id}`, { body, ...options });
@@ -34,7 +40,12 @@ export class Sources extends APIResource {
34
40
  return this._client.delete(path `/rest/v1/sources/${id}`, options);
35
41
  }
36
42
  /**
37
- * Fetch install tokens and snippets for a source. Requires scope: source:view
43
+ * Returns the install or ingest tokens for a source. Pixel sources (WebSource,
44
+ * PixelImage, HTTPApiSource) return
45
+ * `{ sourceType: "pixel", token, testToken, installScript, testInstallScript }`.
46
+ * Webhook sources (Webhook, CallRail, Formstack, Healthie, etc.) return
47
+ * `{ sourceType: "webhook", token, testToken, ingestUrl, testIngestUrl, sampleCurl }`.
48
+ * Requires scope: source:view
38
49
  */
39
50
  tokens(id, options) {
40
51
  return this._client.get(path `/r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U,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -184,7 +184,9 @@ import {
184
184
  SourceCreateParams,
185
185
  SourceCreateResponse,
186
186
  SourceDeleteResponse,
187
+ SourceListParams,
187
188
  SourceListResponse,
189
+ SourceListResponsesCursor,
188
190
  SourceRetrieveResponse,
189
191
  SourceTokensResponse,
190
192
  SourceUpdateParams,
@@ -1189,6 +1191,8 @@ export declare namespace OursPrivacyPlatform {
1189
1191
  type SourceUpdateResponse as SourceUpdateResponse,
1190
1192
  type SourceDeleteResponse as SourceDeleteResponse,
1191
1193
  type SourceTokensResponse as SourceTokensResponse,
1194
+ type SourceListResponsesCursor as SourceListResponsesCursor,
1195
+ type SourceListParams as SourceListParams,
1192
1196
  type SourceCreateParams as SourceCreateParams,
1193
1197
  type SourceUpdateParams as SourceUpdateParams,
1194
1198
  };
@@ -150,6 +150,7 @@ export interface DestinationListResponse {
150
150
  | 'Tatari'
151
151
  | 'TheTradeDesk'
152
152
  | 'TikTok'
153
+ | 'UniversalAds'
153
154
  | 'VWO'
154
155
  | 'Viant'
155
156
  | 'Vibe'
@@ -249,6 +250,7 @@ export interface DestinationCreateResponse {
249
250
  | 'Tatari'
250
251
  | 'TheTradeDesk'
251
252
  | 'TikTok'
253
+ | 'UniversalAds'
252
254
  | 'VWO'
253
255
  | 'Viant'
254
256
  | 'Vibe'
@@ -348,6 +350,7 @@ export interface DestinationRetrieveResponse {
348
350
  | 'Tatari'
349
351
  | 'TheTradeDesk'
350
352
  | 'TikTok'
353
+ | 'UniversalAds'
351
354
  | 'VWO'
352
355
  | 'Viant'
353
356
  | 'Vibe'
@@ -447,6 +450,7 @@ export interface DestinationUpdateResponse {
447
450
  | 'Tatari'
448
451
  | 'TheTradeDesk'
449
452
  | 'TikTok'
453
+ | 'UniversalAds'
450
454
  | 'VWO'
451
455
  | 'Viant'
452
456
  | 'Vibe'
@@ -540,7 +544,8 @@ export namespace DestinationTypesResponse {
540
544
  | 'RokuCAPI'
541
545
  | 'Everflow'
542
546
  | 'BeeswaxPostback'
543
- | 'AdobeAnalytics';
547
+ | 'AdobeAnalytics'
548
+ | 'UniversalAds';
544
549
 
545
550
  capabilities: Entity.Capabilities;
546
551
 
@@ -718,6 +723,7 @@ export interface DestinationListParams extends CursorParams {
718
723
  | 'Tatari'
719
724
  | 'TheTradeDesk'
720
725
  | 'TikTok'
726
+ | 'UniversalAds'
721
727
  | 'VWO'
722
728
  | 'Viant'
723
729
  | 'Vibe'
@@ -799,7 +805,8 @@ export interface DestinationCreateParams {
799
805
  | 'RokuCAPI'
800
806
  | 'Everflow'
801
807
  | 'BeeswaxPostback'
802
- | 'AdobeAnalytics';
808
+ | 'AdobeAnalytics'
809
+ | 'UniversalAds';
803
810
 
804
811
  name?: string | null;
805
812
 
@@ -169,8 +169,10 @@ export {
169
169
  type SourceUpdateResponse,
170
170
  type SourceDeleteResponse,
171
171
  type SourceTokensResponse,
172
+ type SourceListParams,
172
173
  type SourceCreateParams,
173
174
  type SourceUpdateParams,
175
+ type SourceListResponsesCursor,
174
176
  } from './sources';
175
177
  export {
176
178
  Versions,