@oursprivacy/platform-sdk 1.20.0 → 1.22.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 (179) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +7 -7
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +7 -7
  11. package/client.d.ts.map +1 -1
  12. package/client.js +3 -3
  13. package/client.js.map +1 -1
  14. package/client.mjs +3 -3
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/request-options.d.mts.map +1 -1
  43. package/internal/request-options.d.ts.map +1 -1
  44. package/internal/shims.d.mts +6 -0
  45. package/internal/shims.d.mts.map +1 -1
  46. package/internal/shims.d.ts +6 -0
  47. package/internal/shims.d.ts.map +1 -1
  48. package/internal/to-file.d.mts.map +1 -1
  49. package/internal/to-file.d.ts.map +1 -1
  50. package/internal/to-file.mjs.map +1 -1
  51. package/internal/types.d.mts +4 -4
  52. package/internal/types.d.mts.map +1 -1
  53. package/internal/types.d.ts +4 -4
  54. package/internal/types.d.ts.map +1 -1
  55. package/internal/uploads.d.mts.map +1 -1
  56. package/internal/uploads.d.ts.map +1 -1
  57. package/internal/uploads.mjs.map +1 -1
  58. package/internal/utils/base64.mjs.map +1 -1
  59. package/internal/utils/log.d.mts.map +1 -1
  60. package/internal/utils/log.d.ts.map +1 -1
  61. package/internal/utils/log.mjs.map +1 -1
  62. package/internal/utils/path.mjs.map +1 -1
  63. package/internal/utils/query.mjs.map +1 -1
  64. package/internal/utils/values.mjs.map +1 -1
  65. package/internal/utils.d.mts.map +1 -1
  66. package/internal/utils.d.ts.map +1 -1
  67. package/internal/utils.mjs.map +1 -1
  68. package/package.json +1 -1
  69. package/pagination.d.mts +1 -0
  70. package/pagination.d.mts.map +1 -1
  71. package/pagination.d.ts +1 -0
  72. package/pagination.d.ts.map +1 -1
  73. package/pagination.mjs +1 -0
  74. package/pagination.mjs.map +1 -1
  75. package/resource.d.mts +1 -0
  76. package/resource.d.mts.map +1 -1
  77. package/resource.d.ts +1 -0
  78. package/resource.d.ts.map +1 -1
  79. package/resource.mjs +1 -0
  80. package/resource.mjs.map +1 -1
  81. package/resources/allowed-events.d.mts.map +1 -1
  82. package/resources/allowed-events.d.ts.map +1 -1
  83. package/resources/allowed-events.mjs.map +1 -1
  84. package/resources/consent-settings.d.mts.map +1 -1
  85. package/resources/consent-settings.d.ts.map +1 -1
  86. package/resources/consent-settings.mjs.map +1 -1
  87. package/resources/default-mappings.d.mts +140 -0
  88. package/resources/default-mappings.d.mts.map +1 -0
  89. package/resources/default-mappings.d.ts +140 -0
  90. package/resources/default-mappings.d.ts.map +1 -0
  91. package/resources/default-mappings.js +38 -0
  92. package/resources/default-mappings.js.map +1 -0
  93. package/resources/default-mappings.mjs +34 -0
  94. package/resources/default-mappings.mjs.map +1 -0
  95. package/resources/destinations.d.mts +78 -5
  96. package/resources/destinations.d.mts.map +1 -1
  97. package/resources/destinations.d.ts +78 -5
  98. package/resources/destinations.d.ts.map +1 -1
  99. package/resources/destinations.js +11 -0
  100. package/resources/destinations.js.map +1 -1
  101. package/resources/destinations.mjs +11 -0
  102. package/resources/destinations.mjs.map +1 -1
  103. package/resources/experiment-settings.d.mts.map +1 -1
  104. package/resources/experiment-settings.d.ts.map +1 -1
  105. package/resources/experiment-settings.mjs.map +1 -1
  106. package/resources/experiment-variants.d.mts.map +1 -1
  107. package/resources/experiment-variants.d.ts.map +1 -1
  108. package/resources/experiment-variants.mjs.map +1 -1
  109. package/resources/experiments.d.mts.map +1 -1
  110. package/resources/experiments.d.ts.map +1 -1
  111. package/resources/experiments.mjs.map +1 -1
  112. package/resources/global-dispatch-centers.d.mts.map +1 -1
  113. package/resources/global-dispatch-centers.d.ts.map +1 -1
  114. package/resources/global-dispatch-centers.mjs.map +1 -1
  115. package/resources/heatmap-pages.d.mts.map +1 -1
  116. package/resources/heatmap-pages.d.ts.map +1 -1
  117. package/resources/heatmap-pages.mjs.map +1 -1
  118. package/resources/index.d.mts +3 -3
  119. package/resources/index.d.mts.map +1 -1
  120. package/resources/index.d.ts +3 -3
  121. package/resources/index.d.ts.map +1 -1
  122. package/resources/index.js +3 -3
  123. package/resources/index.js.map +1 -1
  124. package/resources/index.mjs +1 -1
  125. package/resources/index.mjs.map +1 -1
  126. package/resources/locations.d.mts.map +1 -1
  127. package/resources/locations.d.ts.map +1 -1
  128. package/resources/locations.mjs.map +1 -1
  129. package/resources/mappings.d.mts +373 -6
  130. package/resources/mappings.d.mts.map +1 -1
  131. package/resources/mappings.d.ts +373 -6
  132. package/resources/mappings.d.ts.map +1 -1
  133. package/resources/mappings.js +67 -3
  134. package/resources/mappings.js.map +1 -1
  135. package/resources/mappings.mjs +67 -3
  136. package/resources/mappings.mjs.map +1 -1
  137. package/resources/replay-settings.d.mts.map +1 -1
  138. package/resources/replay-settings.d.ts.map +1 -1
  139. package/resources/replay-settings.mjs.map +1 -1
  140. package/resources/sources.d.mts.map +1 -1
  141. package/resources/sources.d.ts.map +1 -1
  142. package/resources/sources.mjs.map +1 -1
  143. package/resources/versions.d.mts.map +1 -1
  144. package/resources/versions.d.ts.map +1 -1
  145. package/resources/versions.mjs.map +1 -1
  146. package/resources/web-scanner-rules.d.mts.map +1 -1
  147. package/resources/web-scanner-rules.d.ts.map +1 -1
  148. package/resources/web-scanner-rules.mjs.map +1 -1
  149. package/resources/web-scanners.d.mts.map +1 -1
  150. package/resources/web-scanners.d.ts.map +1 -1
  151. package/resources/web-scanners.mjs.map +1 -1
  152. package/resources.d.mts.map +1 -1
  153. package/resources.d.ts.map +1 -1
  154. package/resources.mjs.map +1 -1
  155. package/src/client.ts +29 -9
  156. package/src/resources/default-mappings.ts +332 -0
  157. package/src/resources/destinations.ts +189 -4
  158. package/src/resources/index.ts +14 -4
  159. package/src/resources/mappings.ts +663 -5
  160. package/src/version.ts +1 -1
  161. package/uploads.d.mts +1 -0
  162. package/uploads.d.mts.map +1 -1
  163. package/uploads.d.ts +1 -0
  164. package/uploads.d.ts.map +1 -1
  165. package/uploads.mjs +1 -0
  166. package/uploads.mjs.map +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
  171. package/resources/destination-types.d.mts +0 -146
  172. package/resources/destination-types.d.mts.map +0 -1
  173. package/resources/destination-types.d.ts +0 -146
  174. package/resources/destination-types.d.ts.map +0 -1
  175. package/resources/destination-types.js +0 -28
  176. package/resources/destination-types.js.map +0 -1
  177. package/resources/destination-types.mjs +0 -24
  178. package/resources/destination-types.mjs.map +0 -1
  179. package/src/resources/destination-types.ts +0 -373
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.20.0'; // x-release-please-version
1
+ export const VERSION = '1.22.0'; // x-release-please-version
package/uploads.d.mts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.d.mts.map
package/uploads.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/uploads.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.js";
2
3
  //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
package/uploads.mjs CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.mjs.map
package/uploads.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.20.0";
1
+ export declare const VERSION = "1.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.20.0";
1
+ export declare const VERSION = "1.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.20.0'; // x-release-please-version
4
+ exports.VERSION = '1.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.20.0'; // x-release-please-version
1
+ export const VERSION = '1.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,146 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class DestinationTypes extends APIResource {
5
- /**
6
- * Lists every destination type the platform supports, with its human-readable
7
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
8
- * settings descriptor used to configure a destination of that type.
9
- * Account-agnostic — the response is the same for every API key. Requires scope:
10
- * destination:list
11
- */
12
- list(options?: RequestOptions): APIPromise<DestinationTypeListResponse>;
13
- /**
14
- * Fetch the descriptor for a single destination type by its identifier (e.g.
15
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
16
- * identifier is unknown. Requires scope: destination:list
17
- */
18
- retrieve(id: string, options?: RequestOptions): APIPromise<DestinationTypeRetrieveResponse>;
19
- }
20
- export interface DestinationTypeListResponse {
21
- entities: Array<DestinationTypeListResponse.Entity>;
22
- }
23
- export declare namespace DestinationTypeListResponse {
24
- interface Entity {
25
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
26
- capabilities: Entity.Capabilities;
27
- label: string;
28
- settings: Array<Entity.UnionMember0 | Entity.UnionMember1 | Entity.UnionMember2 | Entity.UnionMember3 | Entity.UnionMember4>;
29
- status: 'deprecated' | 'ga';
30
- }
31
- namespace Entity {
32
- interface Capabilities {
33
- listsAccounts: boolean;
34
- oauth: boolean;
35
- supportsRenamedEvents: boolean;
36
- }
37
- interface UnionMember0 {
38
- key: string;
39
- /**
40
- * Informational display message only. Do not send this key in POST or PATCH
41
- * settings.
42
- */
43
- label: string;
44
- type: 'Alert';
45
- }
46
- interface UnionMember1 {
47
- key: string;
48
- label: string;
49
- options: Array<UnionMember1.Option>;
50
- type: 'Select';
51
- required?: boolean | null;
52
- sublabel?: string | null;
53
- }
54
- namespace UnionMember1 {
55
- interface Option {
56
- label: string;
57
- value: string;
58
- }
59
- }
60
- interface UnionMember2 {
61
- key: string;
62
- label: string;
63
- type: 'Switch';
64
- defaultValue?: boolean | null;
65
- required?: boolean | null;
66
- sublabel?: string | null;
67
- }
68
- interface UnionMember3 {
69
- key: string;
70
- label: string;
71
- type: 'GenericOauth';
72
- sublabel?: string | null;
73
- }
74
- interface UnionMember4 {
75
- key: string;
76
- label: string;
77
- placeholder: string;
78
- type: 'Text' | 'Secret';
79
- required?: boolean | null;
80
- sublabel?: string | null;
81
- }
82
- }
83
- }
84
- export interface DestinationTypeRetrieveResponse {
85
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
86
- capabilities: DestinationTypeRetrieveResponse.Capabilities;
87
- label: string;
88
- settings: Array<DestinationTypeRetrieveResponse.UnionMember0 | DestinationTypeRetrieveResponse.UnionMember1 | DestinationTypeRetrieveResponse.UnionMember2 | DestinationTypeRetrieveResponse.UnionMember3 | DestinationTypeRetrieveResponse.UnionMember4>;
89
- status: 'deprecated' | 'ga';
90
- }
91
- export declare namespace DestinationTypeRetrieveResponse {
92
- interface Capabilities {
93
- listsAccounts: boolean;
94
- oauth: boolean;
95
- supportsRenamedEvents: boolean;
96
- }
97
- interface UnionMember0 {
98
- key: string;
99
- /**
100
- * Informational display message only. Do not send this key in POST or PATCH
101
- * settings.
102
- */
103
- label: string;
104
- type: 'Alert';
105
- }
106
- interface UnionMember1 {
107
- key: string;
108
- label: string;
109
- options: Array<UnionMember1.Option>;
110
- type: 'Select';
111
- required?: boolean | null;
112
- sublabel?: string | null;
113
- }
114
- namespace UnionMember1 {
115
- interface Option {
116
- label: string;
117
- value: string;
118
- }
119
- }
120
- interface UnionMember2 {
121
- key: string;
122
- label: string;
123
- type: 'Switch';
124
- defaultValue?: boolean | null;
125
- required?: boolean | null;
126
- sublabel?: string | null;
127
- }
128
- interface UnionMember3 {
129
- key: string;
130
- label: string;
131
- type: 'GenericOauth';
132
- sublabel?: string | null;
133
- }
134
- interface UnionMember4 {
135
- key: string;
136
- label: string;
137
- placeholder: string;
138
- type: 'Text' | 'Secret';
139
- required?: boolean | null;
140
- sublabel?: string | null;
141
- }
142
- }
143
- export declare namespace DestinationTypes {
144
- export { type DestinationTypeListResponse as DestinationTypeListResponse, type DestinationTypeRetrieveResponse as DestinationTypeRetrieveResponse, };
145
- }
146
- //# sourceMappingURL=destination-types.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.d.mts","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIvE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAA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C;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;QAExB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -1,146 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- export declare class DestinationTypes extends APIResource {
5
- /**
6
- * Lists every destination type the platform supports, with its human-readable
7
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
8
- * settings descriptor used to configure a destination of that type.
9
- * Account-agnostic — the response is the same for every API key. Requires scope:
10
- * destination:list
11
- */
12
- list(options?: RequestOptions): APIPromise<DestinationTypeListResponse>;
13
- /**
14
- * Fetch the descriptor for a single destination type by its identifier (e.g.
15
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
16
- * identifier is unknown. Requires scope: destination:list
17
- */
18
- retrieve(id: string, options?: RequestOptions): APIPromise<DestinationTypeRetrieveResponse>;
19
- }
20
- export interface DestinationTypeListResponse {
21
- entities: Array<DestinationTypeListResponse.Entity>;
22
- }
23
- export declare namespace DestinationTypeListResponse {
24
- interface Entity {
25
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
26
- capabilities: Entity.Capabilities;
27
- label: string;
28
- settings: Array<Entity.UnionMember0 | Entity.UnionMember1 | Entity.UnionMember2 | Entity.UnionMember3 | Entity.UnionMember4>;
29
- status: 'deprecated' | 'ga';
30
- }
31
- namespace Entity {
32
- interface Capabilities {
33
- listsAccounts: boolean;
34
- oauth: boolean;
35
- supportsRenamedEvents: boolean;
36
- }
37
- interface UnionMember0 {
38
- key: string;
39
- /**
40
- * Informational display message only. Do not send this key in POST or PATCH
41
- * settings.
42
- */
43
- label: string;
44
- type: 'Alert';
45
- }
46
- interface UnionMember1 {
47
- key: string;
48
- label: string;
49
- options: Array<UnionMember1.Option>;
50
- type: 'Select';
51
- required?: boolean | null;
52
- sublabel?: string | null;
53
- }
54
- namespace UnionMember1 {
55
- interface Option {
56
- label: string;
57
- value: string;
58
- }
59
- }
60
- interface UnionMember2 {
61
- key: string;
62
- label: string;
63
- type: 'Switch';
64
- defaultValue?: boolean | null;
65
- required?: boolean | null;
66
- sublabel?: string | null;
67
- }
68
- interface UnionMember3 {
69
- key: string;
70
- label: string;
71
- type: 'GenericOauth';
72
- sublabel?: string | null;
73
- }
74
- interface UnionMember4 {
75
- key: string;
76
- label: string;
77
- placeholder: string;
78
- type: 'Text' | 'Secret';
79
- required?: boolean | null;
80
- sublabel?: string | null;
81
- }
82
- }
83
- }
84
- export interface DestinationTypeRetrieveResponse {
85
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
86
- capabilities: DestinationTypeRetrieveResponse.Capabilities;
87
- label: string;
88
- settings: Array<DestinationTypeRetrieveResponse.UnionMember0 | DestinationTypeRetrieveResponse.UnionMember1 | DestinationTypeRetrieveResponse.UnionMember2 | DestinationTypeRetrieveResponse.UnionMember3 | DestinationTypeRetrieveResponse.UnionMember4>;
89
- status: 'deprecated' | 'ga';
90
- }
91
- export declare namespace DestinationTypeRetrieveResponse {
92
- interface Capabilities {
93
- listsAccounts: boolean;
94
- oauth: boolean;
95
- supportsRenamedEvents: boolean;
96
- }
97
- interface UnionMember0 {
98
- key: string;
99
- /**
100
- * Informational display message only. Do not send this key in POST or PATCH
101
- * settings.
102
- */
103
- label: string;
104
- type: 'Alert';
105
- }
106
- interface UnionMember1 {
107
- key: string;
108
- label: string;
109
- options: Array<UnionMember1.Option>;
110
- type: 'Select';
111
- required?: boolean | null;
112
- sublabel?: string | null;
113
- }
114
- namespace UnionMember1 {
115
- interface Option {
116
- label: string;
117
- value: string;
118
- }
119
- }
120
- interface UnionMember2 {
121
- key: string;
122
- label: string;
123
- type: 'Switch';
124
- defaultValue?: boolean | null;
125
- required?: boolean | null;
126
- sublabel?: string | null;
127
- }
128
- interface UnionMember3 {
129
- key: string;
130
- label: string;
131
- type: 'GenericOauth';
132
- sublabel?: string | null;
133
- }
134
- interface UnionMember4 {
135
- key: string;
136
- label: string;
137
- placeholder: string;
138
- type: 'Text' | 'Secret';
139
- required?: boolean | null;
140
- sublabel?: string | null;
141
- }
142
- }
143
- export declare namespace DestinationTypes {
144
- export { type DestinationTypeListResponse as DestinationTypeListResponse, type DestinationTypeRetrieveResponse as DestinationTypeRetrieveResponse, };
145
- }
146
- //# sourceMappingURL=destination-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.d.ts","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIvE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG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,KAAK,EAAE,MAAM,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;QAExB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DestinationTypes = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const path_1 = require("../internal/utils/path.js");
7
- class DestinationTypes extends resource_1.APIResource {
8
- /**
9
- * Lists every destination type the platform supports, with its human-readable
10
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
11
- * settings descriptor used to configure a destination of that type.
12
- * Account-agnostic — the response is the same for every API key. Requires scope:
13
- * destination:list
14
- */
15
- list(options) {
16
- return this._client.get('/rest/v1/destination-types', options);
17
- }
18
- /**
19
- * Fetch the descriptor for a single destination type by its identifier (e.g.
20
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
21
- * identifier is unknown. Requires scope: destination:list
22
- */
23
- retrieve(id, options) {
24
- return this._client.get((0, path_1.path) `/rest/v1/destination-types/${id}`, options);
25
- }
26
- }
27
- exports.DestinationTypes = DestinationTypes;
28
- //# sourceMappingURL=destination-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.js","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AApBD,4CAoBC"}
@@ -1,24 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { path } from "../internal/utils/path.mjs";
4
- export class DestinationTypes extends APIResource {
5
- /**
6
- * Lists every destination type the platform supports, with its human-readable
7
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
8
- * settings descriptor used to configure a destination of that type.
9
- * Account-agnostic — the response is the same for every API key. Requires scope:
10
- * destination:list
11
- */
12
- list(options) {
13
- return this._client.get('/rest/v1/destination-types', options);
14
- }
15
- /**
16
- * Fetch the descriptor for a single destination type by its identifier (e.g.
17
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
18
- * identifier is unknown. Requires scope: destination:list
19
- */
20
- retrieve(id, options) {
21
- return this._client.get(path `/rest/v1/destination-types/${id}`, options);
22
- }
23
- }
24
- //# sourceMappingURL=destination-types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.mjs","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}