@oursprivacy/platform-sdk 1.8.1 → 1.9.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 +24 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/consent-settings.d.mts +107 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +107 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/destinations.d.mts +31 -5
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +31 -5
- package/resources/destinations.d.ts.map +1 -1
- package/resources/global-dispatch-centers.d.mts +2 -0
- package/resources/global-dispatch-centers.d.mts.map +1 -1
- package/resources/global-dispatch-centers.d.ts +2 -0
- package/resources/global-dispatch-centers.d.ts.map +1 -1
- package/resources/replay-settings.d.mts +2 -0
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +2 -0
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/sources.d.mts +18 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +18 -0
- package/resources/sources.d.ts.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/consent-settings.ts +172 -0
- package/src/resources/destinations.ts +72 -0
- package/src/resources/global-dispatch-centers.ts +4 -0
- package/src/resources/replay-settings.ts +4 -0
- package/src/resources/sources.ts +36 -0
- 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/resources/sources.d.ts
CHANGED
|
@@ -35,7 +35,16 @@ export interface SourceRetrieveResponse {
|
|
|
35
35
|
createdAt: string;
|
|
36
36
|
status: 'Disabled' | 'Enabled';
|
|
37
37
|
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';
|
|
38
|
+
botControlMode?: string | null;
|
|
39
|
+
botScoreThreshold?: number | null;
|
|
40
|
+
excludeRequestContext?: boolean | null;
|
|
38
41
|
name?: string | null;
|
|
42
|
+
probabilisticIdentity?: unknown | null;
|
|
43
|
+
projectAPIKey?: string | null;
|
|
44
|
+
redirectUrl?: string | null;
|
|
45
|
+
selectedAccountId?: string | null;
|
|
46
|
+
whitelistDomains?: Array<unknown> | null;
|
|
47
|
+
whitelistIps?: Array<unknown> | null;
|
|
39
48
|
}
|
|
40
49
|
export interface SourceUpdateResponse {
|
|
41
50
|
id: string;
|
|
@@ -53,7 +62,16 @@ export declare namespace SourceListResponse {
|
|
|
53
62
|
createdAt: string;
|
|
54
63
|
status: 'Disabled' | 'Enabled';
|
|
55
64
|
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';
|
|
65
|
+
botControlMode?: string | null;
|
|
66
|
+
botScoreThreshold?: number | null;
|
|
67
|
+
excludeRequestContext?: boolean | null;
|
|
56
68
|
name?: string | null;
|
|
69
|
+
probabilisticIdentity?: unknown | null;
|
|
70
|
+
projectAPIKey?: string | null;
|
|
71
|
+
redirectUrl?: string | null;
|
|
72
|
+
selectedAccountId?: string | null;
|
|
73
|
+
whitelistDomains?: Array<unknown> | null;
|
|
74
|
+
whitelistIps?: Array<unknown> | null;
|
|
57
75
|
}
|
|
58
76
|
}
|
|
59
77
|
export type SourceDeleteResponse = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;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;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9D;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UA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AAG,IAAI,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,gBAAgB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAEzC,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -232,6 +232,18 @@ export class OursPrivacyPlatform {
|
|
|
232
232
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
233
233
|
this.#encoder = Opts.FallbackEncoder;
|
|
234
234
|
|
|
235
|
+
const customHeadersEnv = readEnv('OURS_PRIVACY_PLATFORM_CUSTOM_HEADERS');
|
|
236
|
+
if (customHeadersEnv) {
|
|
237
|
+
const parsed: Record<string, string> = {};
|
|
238
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
239
|
+
const colon = line.indexOf(':');
|
|
240
|
+
if (colon >= 0) {
|
|
241
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
245
|
+
}
|
|
246
|
+
|
|
235
247
|
this._options = options;
|
|
236
248
|
|
|
237
249
|
this.apiKey = apiKey;
|
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -72,15 +72,187 @@ export namespace ConsentSettingListResponse {
|
|
|
72
72
|
export interface Entity {
|
|
73
73
|
id: string;
|
|
74
74
|
|
|
75
|
+
categories: Array<Entity.Category>;
|
|
76
|
+
|
|
75
77
|
createdAt: string;
|
|
76
78
|
|
|
79
|
+
default: Entity.Default;
|
|
80
|
+
|
|
77
81
|
kind: string;
|
|
78
82
|
|
|
79
83
|
name: string;
|
|
80
84
|
|
|
85
|
+
regions: Array<Entity.Region>;
|
|
86
|
+
|
|
87
|
+
services: Array<Entity.Service>;
|
|
88
|
+
|
|
81
89
|
status: 'Disabled' | 'Enabled';
|
|
82
90
|
|
|
91
|
+
consentCookieName?: string | null;
|
|
92
|
+
|
|
93
|
+
customDomain?: string | null;
|
|
94
|
+
|
|
95
|
+
revision?: number | null;
|
|
96
|
+
|
|
97
|
+
skipBlockingClassNames?: Array<unknown> | null;
|
|
98
|
+
|
|
83
99
|
updatedAt?: string | null;
|
|
100
|
+
|
|
101
|
+
webSDKToken?: string | null;
|
|
102
|
+
|
|
103
|
+
whitelistDomains?: Array<unknown> | null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace Entity {
|
|
107
|
+
export interface Category {
|
|
108
|
+
label: string;
|
|
109
|
+
|
|
110
|
+
priority: number;
|
|
111
|
+
|
|
112
|
+
value: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface Default {
|
|
116
|
+
categories: Array<Default.Category>;
|
|
117
|
+
|
|
118
|
+
language: string;
|
|
119
|
+
|
|
120
|
+
mode: 'opt_in' | 'opt_out';
|
|
121
|
+
|
|
122
|
+
translations: Array<Default.Translation>;
|
|
123
|
+
|
|
124
|
+
autoblockUnknown?: boolean | null;
|
|
125
|
+
|
|
126
|
+
autoShow?: boolean | null;
|
|
127
|
+
|
|
128
|
+
autoShowDismissConfig?: unknown | null;
|
|
129
|
+
|
|
130
|
+
autoShowDismissMode?: string | null;
|
|
131
|
+
|
|
132
|
+
disablePageInteraction?: boolean | null;
|
|
133
|
+
|
|
134
|
+
guiOptions?: unknown | null;
|
|
135
|
+
|
|
136
|
+
hideFromBots?: boolean | null;
|
|
137
|
+
|
|
138
|
+
showVendorsInPreferences?: boolean | null;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export namespace Default {
|
|
142
|
+
export interface Category {
|
|
143
|
+
key: string;
|
|
144
|
+
|
|
145
|
+
value: Category.Value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export namespace Category {
|
|
149
|
+
export interface Value {
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
|
|
152
|
+
autoDisableOnGPC?: boolean | null;
|
|
153
|
+
|
|
154
|
+
readOnly?: boolean | null;
|
|
155
|
+
|
|
156
|
+
reloadPage?: boolean | null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface Translation {
|
|
161
|
+
language: string;
|
|
162
|
+
|
|
163
|
+
value: Translation.Value;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace Translation {
|
|
167
|
+
export interface Value {
|
|
168
|
+
consentModal?: unknown | null;
|
|
169
|
+
|
|
170
|
+
preferencesModal?: unknown | null;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface Region {
|
|
176
|
+
regionCode: string;
|
|
177
|
+
|
|
178
|
+
rule: Region.Rule;
|
|
179
|
+
|
|
180
|
+
additionalRegions?: Array<unknown> | null;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export namespace Region {
|
|
184
|
+
export interface Rule {
|
|
185
|
+
categories: Array<Rule.Category>;
|
|
186
|
+
|
|
187
|
+
language: string;
|
|
188
|
+
|
|
189
|
+
mode: 'opt_in' | 'opt_out';
|
|
190
|
+
|
|
191
|
+
translations: Array<Rule.Translation>;
|
|
192
|
+
|
|
193
|
+
autoblockUnknown?: boolean | null;
|
|
194
|
+
|
|
195
|
+
autoShow?: boolean | null;
|
|
196
|
+
|
|
197
|
+
autoShowDismissConfig?: unknown | null;
|
|
198
|
+
|
|
199
|
+
autoShowDismissMode?: string | null;
|
|
200
|
+
|
|
201
|
+
disablePageInteraction?: boolean | null;
|
|
202
|
+
|
|
203
|
+
guiOptions?: unknown | null;
|
|
204
|
+
|
|
205
|
+
hideFromBots?: boolean | null;
|
|
206
|
+
|
|
207
|
+
showVendorsInPreferences?: boolean | null;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export namespace Rule {
|
|
211
|
+
export interface Category {
|
|
212
|
+
key: string;
|
|
213
|
+
|
|
214
|
+
value: Category.Value;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export namespace Category {
|
|
218
|
+
export interface Value {
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
|
|
221
|
+
autoDisableOnGPC?: boolean | null;
|
|
222
|
+
|
|
223
|
+
readOnly?: boolean | null;
|
|
224
|
+
|
|
225
|
+
reloadPage?: boolean | null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface Translation {
|
|
230
|
+
language: string;
|
|
231
|
+
|
|
232
|
+
value: Translation.Value;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export namespace Translation {
|
|
236
|
+
export interface Value {
|
|
237
|
+
consentModal?: unknown | null;
|
|
238
|
+
|
|
239
|
+
preferencesModal?: unknown | null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Service {
|
|
246
|
+
internalNotes: string;
|
|
247
|
+
|
|
248
|
+
label: string;
|
|
249
|
+
|
|
250
|
+
additionalCategories?: Array<unknown> | null;
|
|
251
|
+
|
|
252
|
+
category?: string | null;
|
|
253
|
+
|
|
254
|
+
domainPatterns?: Array<unknown> | null;
|
|
255
|
+
}
|
|
84
256
|
}
|
|
85
257
|
}
|
|
86
258
|
|
|
@@ -60,10 +60,12 @@ export interface DestinationCreateResponse {
|
|
|
60
60
|
| 'AWSS3'
|
|
61
61
|
| 'AWSSNS'
|
|
62
62
|
| 'ActiveCampaignApi'
|
|
63
|
+
| 'Admitad'
|
|
63
64
|
| 'AmazonDSP'
|
|
64
65
|
| 'Amplitude'
|
|
65
66
|
| 'AppLovin'
|
|
66
67
|
| 'ArtsAI'
|
|
68
|
+
| 'Attentive'
|
|
67
69
|
| 'Audiohook'
|
|
68
70
|
| 'AzureBlob'
|
|
69
71
|
| 'BasisPostback'
|
|
@@ -103,7 +105,9 @@ export interface DestinationCreateResponse {
|
|
|
103
105
|
| 'OursSyntheticData'
|
|
104
106
|
| 'Partnerize'
|
|
105
107
|
| 'Pinterest'
|
|
108
|
+
| 'Plausible'
|
|
106
109
|
| 'Podscribe'
|
|
110
|
+
| 'PostHog'
|
|
107
111
|
| 'QuantcastCAPI'
|
|
108
112
|
| 'QuoraAds'
|
|
109
113
|
| 'Reddit'
|
|
@@ -141,10 +145,12 @@ export interface DestinationRetrieveResponse {
|
|
|
141
145
|
| 'AWSS3'
|
|
142
146
|
| 'AWSSNS'
|
|
143
147
|
| 'ActiveCampaignApi'
|
|
148
|
+
| 'Admitad'
|
|
144
149
|
| 'AmazonDSP'
|
|
145
150
|
| 'Amplitude'
|
|
146
151
|
| 'AppLovin'
|
|
147
152
|
| 'ArtsAI'
|
|
153
|
+
| 'Attentive'
|
|
148
154
|
| 'Audiohook'
|
|
149
155
|
| 'AzureBlob'
|
|
150
156
|
| 'BasisPostback'
|
|
@@ -184,7 +190,9 @@ export interface DestinationRetrieveResponse {
|
|
|
184
190
|
| 'OursSyntheticData'
|
|
185
191
|
| 'Partnerize'
|
|
186
192
|
| 'Pinterest'
|
|
193
|
+
| 'Plausible'
|
|
187
194
|
| 'Podscribe'
|
|
195
|
+
| 'PostHog'
|
|
188
196
|
| 'QuantcastCAPI'
|
|
189
197
|
| 'QuoraAds'
|
|
190
198
|
| 'Reddit'
|
|
@@ -203,8 +211,34 @@ export interface DestinationRetrieveResponse {
|
|
|
203
211
|
| 'Zendesk'
|
|
204
212
|
| 'ZoomInfo';
|
|
205
213
|
|
|
214
|
+
facebookConversionAPIKey?: string | null;
|
|
215
|
+
|
|
216
|
+
facebookPixelId?: string | null;
|
|
217
|
+
|
|
218
|
+
g4AnalyticsApiKey?: string | null;
|
|
219
|
+
|
|
220
|
+
g4AnalyticsMeasurementId?: string | null;
|
|
221
|
+
|
|
222
|
+
g4AnalyticsTrackOnPage?: boolean | null;
|
|
223
|
+
|
|
224
|
+
hashingSalt?: string | null;
|
|
225
|
+
|
|
226
|
+
httpDestinationUrl?: string | null;
|
|
227
|
+
|
|
228
|
+
limitedToSourceIds?: Array<unknown> | null;
|
|
229
|
+
|
|
230
|
+
managerGoogleCustomerId?: string | null;
|
|
231
|
+
|
|
206
232
|
name?: string | null;
|
|
207
233
|
|
|
234
|
+
projectAPIKey?: string | null;
|
|
235
|
+
|
|
236
|
+
projectToken?: string | null;
|
|
237
|
+
|
|
238
|
+
selectedAccountId?: string | null;
|
|
239
|
+
|
|
240
|
+
settings?: unknown | null;
|
|
241
|
+
|
|
208
242
|
updatedAt?: string | null;
|
|
209
243
|
}
|
|
210
244
|
|
|
@@ -222,10 +256,12 @@ export interface DestinationUpdateResponse {
|
|
|
222
256
|
| 'AWSS3'
|
|
223
257
|
| 'AWSSNS'
|
|
224
258
|
| 'ActiveCampaignApi'
|
|
259
|
+
| 'Admitad'
|
|
225
260
|
| 'AmazonDSP'
|
|
226
261
|
| 'Amplitude'
|
|
227
262
|
| 'AppLovin'
|
|
228
263
|
| 'ArtsAI'
|
|
264
|
+
| 'Attentive'
|
|
229
265
|
| 'Audiohook'
|
|
230
266
|
| 'AzureBlob'
|
|
231
267
|
| 'BasisPostback'
|
|
@@ -265,7 +301,9 @@ export interface DestinationUpdateResponse {
|
|
|
265
301
|
| 'OursSyntheticData'
|
|
266
302
|
| 'Partnerize'
|
|
267
303
|
| 'Pinterest'
|
|
304
|
+
| 'Plausible'
|
|
268
305
|
| 'Podscribe'
|
|
306
|
+
| 'PostHog'
|
|
269
307
|
| 'QuantcastCAPI'
|
|
270
308
|
| 'QuoraAds'
|
|
271
309
|
| 'Reddit'
|
|
@@ -308,10 +346,12 @@ export namespace DestinationListResponse {
|
|
|
308
346
|
| 'AWSS3'
|
|
309
347
|
| 'AWSSNS'
|
|
310
348
|
| 'ActiveCampaignApi'
|
|
349
|
+
| 'Admitad'
|
|
311
350
|
| 'AmazonDSP'
|
|
312
351
|
| 'Amplitude'
|
|
313
352
|
| 'AppLovin'
|
|
314
353
|
| 'ArtsAI'
|
|
354
|
+
| 'Attentive'
|
|
315
355
|
| 'Audiohook'
|
|
316
356
|
| 'AzureBlob'
|
|
317
357
|
| 'BasisPostback'
|
|
@@ -351,7 +391,9 @@ export namespace DestinationListResponse {
|
|
|
351
391
|
| 'OursSyntheticData'
|
|
352
392
|
| 'Partnerize'
|
|
353
393
|
| 'Pinterest'
|
|
394
|
+
| 'Plausible'
|
|
354
395
|
| 'Podscribe'
|
|
396
|
+
| 'PostHog'
|
|
355
397
|
| 'QuantcastCAPI'
|
|
356
398
|
| 'QuoraAds'
|
|
357
399
|
| 'Reddit'
|
|
@@ -370,8 +412,34 @@ export namespace DestinationListResponse {
|
|
|
370
412
|
| 'Zendesk'
|
|
371
413
|
| 'ZoomInfo';
|
|
372
414
|
|
|
415
|
+
facebookConversionAPIKey?: string | null;
|
|
416
|
+
|
|
417
|
+
facebookPixelId?: string | null;
|
|
418
|
+
|
|
419
|
+
g4AnalyticsApiKey?: string | null;
|
|
420
|
+
|
|
421
|
+
g4AnalyticsMeasurementId?: string | null;
|
|
422
|
+
|
|
423
|
+
g4AnalyticsTrackOnPage?: boolean | null;
|
|
424
|
+
|
|
425
|
+
hashingSalt?: string | null;
|
|
426
|
+
|
|
427
|
+
httpDestinationUrl?: string | null;
|
|
428
|
+
|
|
429
|
+
limitedToSourceIds?: Array<unknown> | null;
|
|
430
|
+
|
|
431
|
+
managerGoogleCustomerId?: string | null;
|
|
432
|
+
|
|
373
433
|
name?: string | null;
|
|
374
434
|
|
|
435
|
+
projectAPIKey?: string | null;
|
|
436
|
+
|
|
437
|
+
projectToken?: string | null;
|
|
438
|
+
|
|
439
|
+
selectedAccountId?: string | null;
|
|
440
|
+
|
|
441
|
+
settings?: unknown | null;
|
|
442
|
+
|
|
375
443
|
updatedAt?: string | null;
|
|
376
444
|
}
|
|
377
445
|
}
|
|
@@ -386,10 +454,12 @@ export interface DestinationCreateParams {
|
|
|
386
454
|
| 'AWSS3'
|
|
387
455
|
| 'AWSSNS'
|
|
388
456
|
| 'ActiveCampaignApi'
|
|
457
|
+
| 'Admitad'
|
|
389
458
|
| 'AmazonDSP'
|
|
390
459
|
| 'Amplitude'
|
|
391
460
|
| 'AppLovin'
|
|
392
461
|
| 'ArtsAI'
|
|
462
|
+
| 'Attentive'
|
|
393
463
|
| 'Audiohook'
|
|
394
464
|
| 'AzureBlob'
|
|
395
465
|
| 'BasisPostback'
|
|
@@ -429,7 +499,9 @@ export interface DestinationCreateParams {
|
|
|
429
499
|
| 'OursSyntheticData'
|
|
430
500
|
| 'Partnerize'
|
|
431
501
|
| 'Pinterest'
|
|
502
|
+
| 'Plausible'
|
|
432
503
|
| 'Podscribe'
|
|
504
|
+
| 'PostHog'
|
|
433
505
|
| 'QuantcastCAPI'
|
|
434
506
|
| 'QuoraAds'
|
|
435
507
|
| 'Reddit'
|
package/src/resources/sources.ts
CHANGED
|
@@ -125,7 +125,25 @@ export interface SourceRetrieveResponse {
|
|
|
125
125
|
| 'WhatConverts'
|
|
126
126
|
| 'iOSNativeApi';
|
|
127
127
|
|
|
128
|
+
botControlMode?: string | null;
|
|
129
|
+
|
|
130
|
+
botScoreThreshold?: number | null;
|
|
131
|
+
|
|
132
|
+
excludeRequestContext?: boolean | null;
|
|
133
|
+
|
|
128
134
|
name?: string | null;
|
|
135
|
+
|
|
136
|
+
probabilisticIdentity?: unknown | null;
|
|
137
|
+
|
|
138
|
+
projectAPIKey?: string | null;
|
|
139
|
+
|
|
140
|
+
redirectUrl?: string | null;
|
|
141
|
+
|
|
142
|
+
selectedAccountId?: string | null;
|
|
143
|
+
|
|
144
|
+
whitelistDomains?: Array<unknown> | null;
|
|
145
|
+
|
|
146
|
+
whitelistIps?: Array<unknown> | null;
|
|
129
147
|
}
|
|
130
148
|
|
|
131
149
|
export interface SourceUpdateResponse {
|
|
@@ -216,7 +234,25 @@ export namespace SourceListResponse {
|
|
|
216
234
|
| 'WhatConverts'
|
|
217
235
|
| 'iOSNativeApi';
|
|
218
236
|
|
|
237
|
+
botControlMode?: string | null;
|
|
238
|
+
|
|
239
|
+
botScoreThreshold?: number | null;
|
|
240
|
+
|
|
241
|
+
excludeRequestContext?: boolean | null;
|
|
242
|
+
|
|
219
243
|
name?: string | null;
|
|
244
|
+
|
|
245
|
+
probabilisticIdentity?: unknown | null;
|
|
246
|
+
|
|
247
|
+
projectAPIKey?: string | null;
|
|
248
|
+
|
|
249
|
+
redirectUrl?: string | null;
|
|
250
|
+
|
|
251
|
+
selectedAccountId?: string | null;
|
|
252
|
+
|
|
253
|
+
whitelistDomains?: Array<unknown> | null;
|
|
254
|
+
|
|
255
|
+
whitelistIps?: Array<unknown> | null;
|
|
220
256
|
}
|
|
221
257
|
}
|
|
222
258
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.9.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.9.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|