@oursprivacy/platform-sdk 1.50.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +2 -2
- package/resources/analytics.d.ts +2 -2
- package/resources/analytics.js +2 -2
- package/resources/analytics.mjs +2 -2
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiments.d.mts +661 -35
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +661 -35
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +27 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +27 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +4155 -0
- package/resources/journey-flows.d.mts.map +1 -0
- package/resources/journey-flows.d.ts +4155 -0
- package/resources/journey-flows.d.ts.map +1 -0
- package/resources/journey-flows.js +90 -0
- package/resources/journey-flows.js.map +1 -0
- package/resources/journey-flows.mjs +86 -0
- package/resources/journey-flows.mjs.map +1 -0
- package/resources/short-links.d.mts +40 -0
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +40 -0
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +20 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +20 -0
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +540 -0
- package/resources/test-events.d.mts.map +1 -0
- package/resources/test-events.d.ts +540 -0
- package/resources/test-events.d.ts.map +1 -0
- package/resources/test-events.js +88 -0
- package/resources/test-events.js.map +1 -0
- package/resources/test-events.mjs +84 -0
- package/resources/test-events.mjs.map +1 -0
- package/resources/video-channels.d.mts +13 -0
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +13 -0
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/videos.d.mts +160 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +160 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +32 -2
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +32 -2
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +9 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +9 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +2 -2
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +2 -2
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +28 -17
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +28 -17
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +19 -14
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +19 -14
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +80 -4
- package/src/resources/analytics.ts +2 -2
- package/src/resources/destinations.ts +7 -0
- package/src/resources/experiments.ts +808 -35
- package/src/resources/index.ts +37 -2
- package/src/resources/journey-flows.ts +8244 -0
- package/src/resources/short-links.ts +47 -0
- package/src/resources/sources.ts +24 -0
- package/src/resources/test-events.ts +701 -0
- package/src/resources/video-channels.ts +22 -0
- package/src/resources/videos.ts +279 -2
- package/src/resources/web-analytics.ts +13 -13
- package/src/resources/web-scanners.ts +28 -17
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/client.ts
CHANGED
|
@@ -204,6 +204,26 @@ import {
|
|
|
204
204
|
HeatmapPageSummaryResponse,
|
|
205
205
|
HeatmapPages,
|
|
206
206
|
} from './resources/heatmap-pages';
|
|
207
|
+
import {
|
|
208
|
+
JourneyFlowCapabilitiesResponse,
|
|
209
|
+
JourneyFlowCreateParams,
|
|
210
|
+
JourneyFlowCreateResponse,
|
|
211
|
+
JourneyFlowDeleteParams,
|
|
212
|
+
JourneyFlowDeleteResponse,
|
|
213
|
+
JourneyFlowExportParams,
|
|
214
|
+
JourneyFlowExportResponse,
|
|
215
|
+
JourneyFlowListParams,
|
|
216
|
+
JourneyFlowListResponse,
|
|
217
|
+
JourneyFlowListResponsesCursor,
|
|
218
|
+
JourneyFlowPreviewParams,
|
|
219
|
+
JourneyFlowPreviewResponse,
|
|
220
|
+
JourneyFlowResultsParams,
|
|
221
|
+
JourneyFlowResultsResponse,
|
|
222
|
+
JourneyFlowRetrieveResponse,
|
|
223
|
+
JourneyFlowUpdateParams,
|
|
224
|
+
JourneyFlowUpdateResponse,
|
|
225
|
+
JourneyFlows,
|
|
226
|
+
} from './resources/journey-flows';
|
|
207
227
|
import {
|
|
208
228
|
LocationCreateParams,
|
|
209
229
|
LocationCreateResponse,
|
|
@@ -358,6 +378,16 @@ import {
|
|
|
358
378
|
TagManagerUpdateResponse,
|
|
359
379
|
TagManagers,
|
|
360
380
|
} from './resources/tag-managers';
|
|
381
|
+
import {
|
|
382
|
+
TestEventCreateParams,
|
|
383
|
+
TestEventCreateResponse,
|
|
384
|
+
TestEventDispatchesResponse,
|
|
385
|
+
TestEventListParams,
|
|
386
|
+
TestEventListResponse,
|
|
387
|
+
TestEventListResponsesCursor,
|
|
388
|
+
TestEventRetrieveResponse,
|
|
389
|
+
TestEvents,
|
|
390
|
+
} from './resources/test-events';
|
|
361
391
|
import {
|
|
362
392
|
TranslationWidgetAnalyticsParams,
|
|
363
393
|
TranslationWidgetAnalyticsResponse,
|
|
@@ -411,13 +441,18 @@ import {
|
|
|
411
441
|
VideoAnalyticsResponse,
|
|
412
442
|
VideoAnalyticsTimeseriesParams,
|
|
413
443
|
VideoAnalyticsTimeseriesResponse,
|
|
444
|
+
VideoCancelCaptionTranslationParams,
|
|
445
|
+
VideoCancelCaptionTranslationResponse,
|
|
414
446
|
VideoCreateParams,
|
|
415
447
|
VideoCreateResponse,
|
|
416
448
|
VideoDeleteResponse,
|
|
417
449
|
VideoListParams,
|
|
418
450
|
VideoListResponse,
|
|
419
451
|
VideoListResponsesCursor,
|
|
452
|
+
VideoRequestCaptionTranslationParams,
|
|
453
|
+
VideoRequestCaptionTranslationResponse,
|
|
420
454
|
VideoRetrieveResponse,
|
|
455
|
+
VideoTranscriptParams,
|
|
421
456
|
VideoTranscriptResponse,
|
|
422
457
|
VideoUpdateParams,
|
|
423
458
|
VideoUpdateResponse,
|
|
@@ -433,14 +468,14 @@ import {
|
|
|
433
468
|
WebAnalyticsCurrentVisitorsResponse,
|
|
434
469
|
WebAnalyticsDevicesParams,
|
|
435
470
|
WebAnalyticsDevicesResponse,
|
|
436
|
-
WebAnalyticsJourneyParams,
|
|
437
|
-
WebAnalyticsJourneyResponse,
|
|
438
471
|
WebAnalyticsLocationsParams,
|
|
439
472
|
WebAnalyticsLocationsResponse,
|
|
440
473
|
WebAnalyticsOverviewParams,
|
|
441
474
|
WebAnalyticsOverviewResponse,
|
|
442
475
|
WebAnalyticsPagesParams,
|
|
443
476
|
WebAnalyticsPagesResponse,
|
|
477
|
+
WebAnalyticsPathExplorerParams,
|
|
478
|
+
WebAnalyticsPathExplorerResponse,
|
|
444
479
|
WebAnalyticsSourcesParams,
|
|
445
480
|
WebAnalyticsSourcesResponse,
|
|
446
481
|
} from './resources/web-analytics';
|
|
@@ -1263,6 +1298,8 @@ export class OursPrivacyPlatform {
|
|
|
1263
1298
|
webScanners: API.WebScanners = new API.WebScanners(this);
|
|
1264
1299
|
personalizationProperties: API.PersonalizationProperties = new API.PersonalizationProperties(this);
|
|
1265
1300
|
analytics: API.Analytics = new API.Analytics(this);
|
|
1301
|
+
journeyFlows: API.JourneyFlows = new API.JourneyFlows(this);
|
|
1302
|
+
testEvents: API.TestEvents = new API.TestEvents(this);
|
|
1266
1303
|
}
|
|
1267
1304
|
|
|
1268
1305
|
OursPrivacyPlatform.AllowedEvents = AllowedEvents;
|
|
@@ -1300,6 +1337,8 @@ OursPrivacyPlatform.WebScannerRules = WebScannerRules;
|
|
|
1300
1337
|
OursPrivacyPlatform.WebScanners = WebScanners;
|
|
1301
1338
|
OursPrivacyPlatform.PersonalizationProperties = PersonalizationProperties;
|
|
1302
1339
|
OursPrivacyPlatform.Analytics = Analytics;
|
|
1340
|
+
OursPrivacyPlatform.JourneyFlows = JourneyFlows;
|
|
1341
|
+
OursPrivacyPlatform.TestEvents = TestEvents;
|
|
1303
1342
|
|
|
1304
1343
|
export declare namespace OursPrivacyPlatform {
|
|
1305
1344
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1695,6 +1734,8 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1695
1734
|
type VideoUploadResponse as VideoUploadResponse,
|
|
1696
1735
|
type VideoTranscriptResponse as VideoTranscriptResponse,
|
|
1697
1736
|
type VideoUpdateTranscriptResponse as VideoUpdateTranscriptResponse,
|
|
1737
|
+
type VideoRequestCaptionTranslationResponse as VideoRequestCaptionTranslationResponse,
|
|
1738
|
+
type VideoCancelCaptionTranslationResponse as VideoCancelCaptionTranslationResponse,
|
|
1698
1739
|
type VideoAnalyticsResponse as VideoAnalyticsResponse,
|
|
1699
1740
|
type VideoAnalyticsTimeseriesResponse as VideoAnalyticsTimeseriesResponse,
|
|
1700
1741
|
type VideoListResponsesCursor as VideoListResponsesCursor,
|
|
@@ -1702,7 +1743,10 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1702
1743
|
type VideoCreateParams as VideoCreateParams,
|
|
1703
1744
|
type VideoUpdateParams as VideoUpdateParams,
|
|
1704
1745
|
type VideoUploadParams as VideoUploadParams,
|
|
1746
|
+
type VideoTranscriptParams as VideoTranscriptParams,
|
|
1705
1747
|
type VideoUpdateTranscriptParams as VideoUpdateTranscriptParams,
|
|
1748
|
+
type VideoRequestCaptionTranslationParams as VideoRequestCaptionTranslationParams,
|
|
1749
|
+
type VideoCancelCaptionTranslationParams as VideoCancelCaptionTranslationParams,
|
|
1706
1750
|
type VideoAnalyticsParams as VideoAnalyticsParams,
|
|
1707
1751
|
type VideoAnalyticsTimeseriesParams as VideoAnalyticsTimeseriesParams,
|
|
1708
1752
|
};
|
|
@@ -1735,14 +1779,14 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1735
1779
|
type WebAnalyticsLocationsResponse as WebAnalyticsLocationsResponse,
|
|
1736
1780
|
type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
|
|
1737
1781
|
type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
|
|
1738
|
-
type
|
|
1782
|
+
type WebAnalyticsPathExplorerResponse as WebAnalyticsPathExplorerResponse,
|
|
1739
1783
|
type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
|
|
1740
1784
|
type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
|
|
1741
1785
|
type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
|
|
1742
1786
|
type WebAnalyticsLocationsParams as WebAnalyticsLocationsParams,
|
|
1743
1787
|
type WebAnalyticsDevicesParams as WebAnalyticsDevicesParams,
|
|
1744
1788
|
type WebAnalyticsCurrentVisitorsParams as WebAnalyticsCurrentVisitorsParams,
|
|
1745
|
-
type
|
|
1789
|
+
type WebAnalyticsPathExplorerParams as WebAnalyticsPathExplorerParams,
|
|
1746
1790
|
};
|
|
1747
1791
|
|
|
1748
1792
|
export {
|
|
@@ -1806,4 +1850,36 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1806
1850
|
type AnalyticsPropertySuggestionsResponse as AnalyticsPropertySuggestionsResponse,
|
|
1807
1851
|
type AnalyticsPropertySuggestionsParams as AnalyticsPropertySuggestionsParams,
|
|
1808
1852
|
};
|
|
1853
|
+
|
|
1854
|
+
export {
|
|
1855
|
+
JourneyFlows as JourneyFlows,
|
|
1856
|
+
type JourneyFlowListResponse as JourneyFlowListResponse,
|
|
1857
|
+
type JourneyFlowCreateResponse as JourneyFlowCreateResponse,
|
|
1858
|
+
type JourneyFlowRetrieveResponse as JourneyFlowRetrieveResponse,
|
|
1859
|
+
type JourneyFlowUpdateResponse as JourneyFlowUpdateResponse,
|
|
1860
|
+
type JourneyFlowDeleteResponse as JourneyFlowDeleteResponse,
|
|
1861
|
+
type JourneyFlowCapabilitiesResponse as JourneyFlowCapabilitiesResponse,
|
|
1862
|
+
type JourneyFlowResultsResponse as JourneyFlowResultsResponse,
|
|
1863
|
+
type JourneyFlowExportResponse as JourneyFlowExportResponse,
|
|
1864
|
+
type JourneyFlowPreviewResponse as JourneyFlowPreviewResponse,
|
|
1865
|
+
type JourneyFlowListResponsesCursor as JourneyFlowListResponsesCursor,
|
|
1866
|
+
type JourneyFlowListParams as JourneyFlowListParams,
|
|
1867
|
+
type JourneyFlowCreateParams as JourneyFlowCreateParams,
|
|
1868
|
+
type JourneyFlowUpdateParams as JourneyFlowUpdateParams,
|
|
1869
|
+
type JourneyFlowDeleteParams as JourneyFlowDeleteParams,
|
|
1870
|
+
type JourneyFlowResultsParams as JourneyFlowResultsParams,
|
|
1871
|
+
type JourneyFlowExportParams as JourneyFlowExportParams,
|
|
1872
|
+
type JourneyFlowPreviewParams as JourneyFlowPreviewParams,
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
export {
|
|
1876
|
+
TestEvents as TestEvents,
|
|
1877
|
+
type TestEventListResponse as TestEventListResponse,
|
|
1878
|
+
type TestEventCreateResponse as TestEventCreateResponse,
|
|
1879
|
+
type TestEventRetrieveResponse as TestEventRetrieveResponse,
|
|
1880
|
+
type TestEventDispatchesResponse as TestEventDispatchesResponse,
|
|
1881
|
+
type TestEventListResponsesCursor as TestEventListResponsesCursor,
|
|
1882
|
+
type TestEventListParams as TestEventListParams,
|
|
1883
|
+
type TestEventCreateParams as TestEventCreateParams,
|
|
1884
|
+
};
|
|
1809
1885
|
}
|
|
@@ -7,7 +7,7 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
7
7
|
export class Analytics extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Discover the filter properties, operators, and providers available to analytics
|
|
10
|
-
* query definitions. Requires scope:
|
|
10
|
+
* query definitions. Requires scope: variables:find-default
|
|
11
11
|
*/
|
|
12
12
|
queryCatalog(options?: RequestOptions): APIPromise<AnalyticsQueryCatalogResponse> {
|
|
13
13
|
return this._client.get('/rest/v1/analytics/query-catalog', options);
|
|
@@ -17,7 +17,7 @@ export class Analytics extends APIResource {
|
|
|
17
17
|
* Discover property paths recently observed in event data. Results are suggestions
|
|
18
18
|
* from a fixed recent 30-day sample and may be incomplete; callers can still use
|
|
19
19
|
* manually entered paths. Use `eventName` and `sourceId` to narrow the
|
|
20
|
-
* suggestions. Requires scope: web-analytics:view
|
|
20
|
+
* suggestions. Requires scope: variables:find-custom, web-analytics:view
|
|
21
21
|
*/
|
|
22
22
|
propertySuggestions(
|
|
23
23
|
query: AnalyticsPropertySuggestionsParams | null | undefined = {},
|
|
@@ -161,6 +161,7 @@ export interface DestinationListResponse {
|
|
|
161
161
|
| 'QuantcastCAPI'
|
|
162
162
|
| 'QuoraAds'
|
|
163
163
|
| 'Reddit'
|
|
164
|
+
| 'RedditCapiV3'
|
|
164
165
|
| 'Rokt'
|
|
165
166
|
| 'RokuCAPI'
|
|
166
167
|
| 'SnapchatAdsCapi'
|
|
@@ -277,6 +278,7 @@ export interface DestinationCreateResponse {
|
|
|
277
278
|
| 'QuantcastCAPI'
|
|
278
279
|
| 'QuoraAds'
|
|
279
280
|
| 'Reddit'
|
|
281
|
+
| 'RedditCapiV3'
|
|
280
282
|
| 'Rokt'
|
|
281
283
|
| 'RokuCAPI'
|
|
282
284
|
| 'SnapchatAdsCapi'
|
|
@@ -393,6 +395,7 @@ export interface DestinationRetrieveResponse {
|
|
|
393
395
|
| 'QuantcastCAPI'
|
|
394
396
|
| 'QuoraAds'
|
|
395
397
|
| 'Reddit'
|
|
398
|
+
| 'RedditCapiV3'
|
|
396
399
|
| 'Rokt'
|
|
397
400
|
| 'RokuCAPI'
|
|
398
401
|
| 'SnapchatAdsCapi'
|
|
@@ -509,6 +512,7 @@ export interface DestinationUpdateResponse {
|
|
|
509
512
|
| 'QuantcastCAPI'
|
|
510
513
|
| 'QuoraAds'
|
|
511
514
|
| 'Reddit'
|
|
515
|
+
| 'RedditCapiV3'
|
|
512
516
|
| 'Rokt'
|
|
513
517
|
| 'RokuCAPI'
|
|
514
518
|
| 'SnapchatAdsCapi'
|
|
@@ -581,6 +585,7 @@ export namespace DestinationTypesResponse {
|
|
|
581
585
|
| 'Amplitude'
|
|
582
586
|
| 'TikTok'
|
|
583
587
|
| 'Reddit'
|
|
588
|
+
| 'RedditCapiV3'
|
|
584
589
|
| 'Podscribe'
|
|
585
590
|
| 'Pinterest'
|
|
586
591
|
| 'Mailchimp'
|
|
@@ -860,6 +865,7 @@ export interface DestinationListParams extends CursorParams {
|
|
|
860
865
|
| 'QuantcastCAPI'
|
|
861
866
|
| 'QuoraAds'
|
|
862
867
|
| 'Reddit'
|
|
868
|
+
| 'RedditCapiV3'
|
|
863
869
|
| 'Rokt'
|
|
864
870
|
| 'RokuCAPI'
|
|
865
871
|
| 'SnapchatAdsCapi'
|
|
@@ -921,6 +927,7 @@ export interface DestinationCreateParams {
|
|
|
921
927
|
| 'Amplitude'
|
|
922
928
|
| 'TikTok'
|
|
923
929
|
| 'Reddit'
|
|
930
|
+
| 'RedditCapiV3'
|
|
924
931
|
| 'Podscribe'
|
|
925
932
|
| 'Pinterest'
|
|
926
933
|
| 'Mailchimp'
|