@postrun/js 3.3.0 → 4.0.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/dist/chunk-VCOKMHAJ.js +3205 -0
- package/dist/chunk-VCOKMHAJ.js.map +1 -0
- package/dist/chunk-YP26OO5J.js +1437 -0
- package/dist/chunk-YP26OO5J.js.map +1 -0
- package/dist/index.cjs +1543 -7311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -904
- package/dist/index.d.ts +88 -904
- package/dist/index.js +51 -48
- package/dist/index.js.map +1 -1
- package/dist/query.cjs +258 -3401
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +3267 -31911
- package/dist/query.d.ts +3267 -31911
- package/dist/query.js +258 -3250
- package/dist/query.js.map +1 -1
- package/dist/schemas/index.cjs +598 -5233
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +11261 -15569
- package/dist/schemas/index.d.ts +11261 -15569
- package/dist/schemas/index.js +1 -27
- package/dist/schemas/index.js.map +1 -1
- package/dist/server.cjs +586 -4713
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/types.gen-DjaUEnXO.d.cts +10571 -0
- package/dist/types.gen-DjaUEnXO.d.ts +10571 -0
- package/package.json +1 -1
- package/dist/chunk-62WCSNZ4.js +0 -7393
- package/dist/chunk-62WCSNZ4.js.map +0 -1
- package/dist/chunk-W37M2JFI.js +0 -2980
- package/dist/chunk-W37M2JFI.js.map +0 -1
- package/dist/types.gen-D7Xl9jUZ.d.cts +0 -37417
- package/dist/types.gen-D7Xl9jUZ.d.ts +0 -37417
package/dist/chunk-W37M2JFI.js
DELETED
|
@@ -1,2980 +0,0 @@
|
|
|
1
|
-
import { zErrorCode } from './chunk-62WCSNZ4.js';
|
|
2
|
-
import * as z from 'zod';
|
|
3
|
-
|
|
4
|
-
var ProblemSchema = z.object({
|
|
5
|
-
type: z.string().optional(),
|
|
6
|
-
title: z.string().optional(),
|
|
7
|
-
status: z.number().optional(),
|
|
8
|
-
code: z.string().optional(),
|
|
9
|
-
detail: z.string().optional(),
|
|
10
|
-
// RFC 9457 calls the occurrence id `instance`; our bodies emit it as
|
|
11
|
-
// `request_id`. Tolerate both, preferring `request_id`.
|
|
12
|
-
request_id: z.string().optional(),
|
|
13
|
-
instance: z.string().optional(),
|
|
14
|
-
errors: z.array(z.object({ field: z.string(), code: z.string(), detail: z.string() })).optional()
|
|
15
|
-
});
|
|
16
|
-
var PostrunError = class extends Error {
|
|
17
|
-
status;
|
|
18
|
-
/** The machine-readable code to branch on (closed union), if the body had one. */
|
|
19
|
-
code;
|
|
20
|
-
/** The request id for support/debugging (our `request_id`, or RFC `instance`). */
|
|
21
|
-
request_id;
|
|
22
|
-
/** Per-field validation problems on a 422, surfaced for convenience. */
|
|
23
|
-
fieldErrors;
|
|
24
|
-
problem;
|
|
25
|
-
constructor(status, rawProblem) {
|
|
26
|
-
const problem = ProblemSchema.safeParse(rawProblem).data;
|
|
27
|
-
super(problem?.detail ?? problem?.title ?? `Postrun API error (${status})`);
|
|
28
|
-
this.name = "PostrunError";
|
|
29
|
-
this.status = status;
|
|
30
|
-
this.code = zErrorCode.safeParse(problem?.code).data;
|
|
31
|
-
this.request_id = problem?.request_id ?? problem?.instance;
|
|
32
|
-
this.fieldErrors = problem?.errors ?? [];
|
|
33
|
-
this.problem = problem;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// src/client/core/bodySerializer.gen.ts
|
|
38
|
-
var jsonBodySerializer = {
|
|
39
|
-
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// src/client/core/serverSentEvents.gen.ts
|
|
43
|
-
function createSseClient({
|
|
44
|
-
onRequest,
|
|
45
|
-
onSseError,
|
|
46
|
-
onSseEvent,
|
|
47
|
-
responseTransformer,
|
|
48
|
-
responseValidator,
|
|
49
|
-
sseDefaultRetryDelay,
|
|
50
|
-
sseMaxRetryAttempts,
|
|
51
|
-
sseMaxRetryDelay,
|
|
52
|
-
sseSleepFn,
|
|
53
|
-
url,
|
|
54
|
-
...options
|
|
55
|
-
}) {
|
|
56
|
-
let lastEventId;
|
|
57
|
-
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
58
|
-
const createStream = async function* () {
|
|
59
|
-
let retryDelay = sseDefaultRetryDelay ?? 3e3;
|
|
60
|
-
let attempt = 0;
|
|
61
|
-
const signal = options.signal ?? new AbortController().signal;
|
|
62
|
-
while (true) {
|
|
63
|
-
if (signal.aborted) break;
|
|
64
|
-
attempt++;
|
|
65
|
-
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
66
|
-
if (lastEventId !== void 0) {
|
|
67
|
-
headers.set("Last-Event-ID", lastEventId);
|
|
68
|
-
}
|
|
69
|
-
try {
|
|
70
|
-
const requestInit = {
|
|
71
|
-
redirect: "follow",
|
|
72
|
-
...options,
|
|
73
|
-
body: options.serializedBody,
|
|
74
|
-
headers,
|
|
75
|
-
signal
|
|
76
|
-
};
|
|
77
|
-
let request = new Request(url, requestInit);
|
|
78
|
-
if (onRequest) {
|
|
79
|
-
request = await onRequest(url, requestInit);
|
|
80
|
-
}
|
|
81
|
-
const _fetch = options.fetch ?? globalThis.fetch;
|
|
82
|
-
const response = await _fetch(request);
|
|
83
|
-
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
84
|
-
if (!response.body) throw new Error("No body in SSE response");
|
|
85
|
-
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
86
|
-
let buffer = "";
|
|
87
|
-
const abortHandler = () => {
|
|
88
|
-
try {
|
|
89
|
-
reader.cancel();
|
|
90
|
-
} catch {
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
signal.addEventListener("abort", abortHandler);
|
|
94
|
-
try {
|
|
95
|
-
while (true) {
|
|
96
|
-
const { done, value } = await reader.read();
|
|
97
|
-
if (done) break;
|
|
98
|
-
buffer += value;
|
|
99
|
-
buffer = buffer.replace(/\r\n?/g, "\n");
|
|
100
|
-
const chunks = buffer.split("\n\n");
|
|
101
|
-
buffer = chunks.pop() ?? "";
|
|
102
|
-
for (const chunk of chunks) {
|
|
103
|
-
const lines = chunk.split("\n");
|
|
104
|
-
const dataLines = [];
|
|
105
|
-
let eventName;
|
|
106
|
-
for (const line of lines) {
|
|
107
|
-
if (line.startsWith("data:")) {
|
|
108
|
-
dataLines.push(line.replace(/^data:\s*/, ""));
|
|
109
|
-
} else if (line.startsWith("event:")) {
|
|
110
|
-
eventName = line.replace(/^event:\s*/, "");
|
|
111
|
-
} else if (line.startsWith("id:")) {
|
|
112
|
-
lastEventId = line.replace(/^id:\s*/, "");
|
|
113
|
-
} else if (line.startsWith("retry:")) {
|
|
114
|
-
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
115
|
-
if (!Number.isNaN(parsed)) {
|
|
116
|
-
retryDelay = parsed;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
let data;
|
|
121
|
-
let parsedJson = false;
|
|
122
|
-
if (dataLines.length) {
|
|
123
|
-
const rawData = dataLines.join("\n");
|
|
124
|
-
try {
|
|
125
|
-
data = JSON.parse(rawData);
|
|
126
|
-
parsedJson = true;
|
|
127
|
-
} catch {
|
|
128
|
-
data = rawData;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (parsedJson) {
|
|
132
|
-
if (responseValidator) {
|
|
133
|
-
await responseValidator(data);
|
|
134
|
-
}
|
|
135
|
-
if (responseTransformer) {
|
|
136
|
-
data = await responseTransformer(data);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
onSseEvent?.({
|
|
140
|
-
data,
|
|
141
|
-
event: eventName,
|
|
142
|
-
id: lastEventId,
|
|
143
|
-
retry: retryDelay
|
|
144
|
-
});
|
|
145
|
-
if (dataLines.length) {
|
|
146
|
-
yield data;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
} finally {
|
|
151
|
-
signal.removeEventListener("abort", abortHandler);
|
|
152
|
-
reader.releaseLock();
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
|
-
} catch (error) {
|
|
156
|
-
onSseError?.(error);
|
|
157
|
-
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
|
|
161
|
-
await sleep(backoff);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
const stream = createStream();
|
|
166
|
-
return { stream };
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// src/client/core/pathSerializer.gen.ts
|
|
170
|
-
var separatorArrayExplode = (style) => {
|
|
171
|
-
switch (style) {
|
|
172
|
-
case "label":
|
|
173
|
-
return ".";
|
|
174
|
-
case "matrix":
|
|
175
|
-
return ";";
|
|
176
|
-
case "simple":
|
|
177
|
-
return ",";
|
|
178
|
-
default:
|
|
179
|
-
return "&";
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
var separatorArrayNoExplode = (style) => {
|
|
183
|
-
switch (style) {
|
|
184
|
-
case "form":
|
|
185
|
-
return ",";
|
|
186
|
-
case "pipeDelimited":
|
|
187
|
-
return "|";
|
|
188
|
-
case "spaceDelimited":
|
|
189
|
-
return "%20";
|
|
190
|
-
default:
|
|
191
|
-
return ",";
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
var separatorObjectExplode = (style) => {
|
|
195
|
-
switch (style) {
|
|
196
|
-
case "label":
|
|
197
|
-
return ".";
|
|
198
|
-
case "matrix":
|
|
199
|
-
return ";";
|
|
200
|
-
case "simple":
|
|
201
|
-
return ",";
|
|
202
|
-
default:
|
|
203
|
-
return "&";
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
var serializeArrayParam = ({
|
|
207
|
-
allowReserved,
|
|
208
|
-
explode,
|
|
209
|
-
name,
|
|
210
|
-
style,
|
|
211
|
-
value
|
|
212
|
-
}) => {
|
|
213
|
-
if (!explode) {
|
|
214
|
-
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
215
|
-
switch (style) {
|
|
216
|
-
case "label":
|
|
217
|
-
return `.${joinedValues2}`;
|
|
218
|
-
case "matrix":
|
|
219
|
-
return `;${name}=${joinedValues2}`;
|
|
220
|
-
case "simple":
|
|
221
|
-
return joinedValues2;
|
|
222
|
-
default:
|
|
223
|
-
return `${name}=${joinedValues2}`;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
const separator = separatorArrayExplode(style);
|
|
227
|
-
const joinedValues = value.map((v) => {
|
|
228
|
-
if (style === "label" || style === "simple") {
|
|
229
|
-
return allowReserved ? v : encodeURIComponent(v);
|
|
230
|
-
}
|
|
231
|
-
return serializePrimitiveParam({
|
|
232
|
-
allowReserved,
|
|
233
|
-
name,
|
|
234
|
-
value: v
|
|
235
|
-
});
|
|
236
|
-
}).join(separator);
|
|
237
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
238
|
-
};
|
|
239
|
-
var serializePrimitiveParam = ({
|
|
240
|
-
allowReserved,
|
|
241
|
-
name,
|
|
242
|
-
value
|
|
243
|
-
}) => {
|
|
244
|
-
if (value === void 0 || value === null) {
|
|
245
|
-
return "";
|
|
246
|
-
}
|
|
247
|
-
if (typeof value === "object") {
|
|
248
|
-
throw new Error(
|
|
249
|
-
"Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
253
|
-
};
|
|
254
|
-
var serializeObjectParam = ({
|
|
255
|
-
allowReserved,
|
|
256
|
-
explode,
|
|
257
|
-
name,
|
|
258
|
-
style,
|
|
259
|
-
value,
|
|
260
|
-
valueOnly
|
|
261
|
-
}) => {
|
|
262
|
-
if (value instanceof Date) {
|
|
263
|
-
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
264
|
-
}
|
|
265
|
-
if (style !== "deepObject" && !explode) {
|
|
266
|
-
let values = [];
|
|
267
|
-
Object.entries(value).forEach(([key, v]) => {
|
|
268
|
-
values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
|
|
269
|
-
});
|
|
270
|
-
const joinedValues2 = values.join(",");
|
|
271
|
-
switch (style) {
|
|
272
|
-
case "form":
|
|
273
|
-
return `${name}=${joinedValues2}`;
|
|
274
|
-
case "label":
|
|
275
|
-
return `.${joinedValues2}`;
|
|
276
|
-
case "matrix":
|
|
277
|
-
return `;${name}=${joinedValues2}`;
|
|
278
|
-
default:
|
|
279
|
-
return joinedValues2;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
const separator = separatorObjectExplode(style);
|
|
283
|
-
const joinedValues = Object.entries(value).map(
|
|
284
|
-
([key, v]) => serializePrimitiveParam({
|
|
285
|
-
allowReserved,
|
|
286
|
-
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
287
|
-
value: v
|
|
288
|
-
})
|
|
289
|
-
).join(separator);
|
|
290
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
// src/client/core/utils.gen.ts
|
|
294
|
-
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
295
|
-
var defaultPathSerializer = ({ path, url: _url }) => {
|
|
296
|
-
let url = _url;
|
|
297
|
-
const matches = _url.match(PATH_PARAM_RE);
|
|
298
|
-
if (matches) {
|
|
299
|
-
for (const match of matches) {
|
|
300
|
-
let explode = false;
|
|
301
|
-
let name = match.substring(1, match.length - 1);
|
|
302
|
-
let style = "simple";
|
|
303
|
-
if (name.endsWith("*")) {
|
|
304
|
-
explode = true;
|
|
305
|
-
name = name.substring(0, name.length - 1);
|
|
306
|
-
}
|
|
307
|
-
if (name.startsWith(".")) {
|
|
308
|
-
name = name.substring(1);
|
|
309
|
-
style = "label";
|
|
310
|
-
} else if (name.startsWith(";")) {
|
|
311
|
-
name = name.substring(1);
|
|
312
|
-
style = "matrix";
|
|
313
|
-
}
|
|
314
|
-
const value = path[name];
|
|
315
|
-
if (value === void 0 || value === null) {
|
|
316
|
-
continue;
|
|
317
|
-
}
|
|
318
|
-
if (Array.isArray(value)) {
|
|
319
|
-
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if (typeof value === "object") {
|
|
323
|
-
url = url.replace(
|
|
324
|
-
match,
|
|
325
|
-
serializeObjectParam({
|
|
326
|
-
explode,
|
|
327
|
-
name,
|
|
328
|
-
style,
|
|
329
|
-
value,
|
|
330
|
-
valueOnly: true
|
|
331
|
-
})
|
|
332
|
-
);
|
|
333
|
-
continue;
|
|
334
|
-
}
|
|
335
|
-
if (style === "matrix") {
|
|
336
|
-
url = url.replace(
|
|
337
|
-
match,
|
|
338
|
-
`;${serializePrimitiveParam({
|
|
339
|
-
name,
|
|
340
|
-
value
|
|
341
|
-
})}`
|
|
342
|
-
);
|
|
343
|
-
continue;
|
|
344
|
-
}
|
|
345
|
-
const replaceValue = encodeURIComponent(
|
|
346
|
-
style === "label" ? `.${value}` : value
|
|
347
|
-
);
|
|
348
|
-
url = url.replace(match, replaceValue);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
return url;
|
|
352
|
-
};
|
|
353
|
-
var getUrl = ({
|
|
354
|
-
baseUrl,
|
|
355
|
-
path,
|
|
356
|
-
query,
|
|
357
|
-
querySerializer,
|
|
358
|
-
url: _url
|
|
359
|
-
}) => {
|
|
360
|
-
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
361
|
-
let url = (baseUrl ?? "") + pathUrl;
|
|
362
|
-
if (path) {
|
|
363
|
-
url = defaultPathSerializer({ path, url });
|
|
364
|
-
}
|
|
365
|
-
let search = query ? querySerializer(query) : "";
|
|
366
|
-
if (search.startsWith("?")) {
|
|
367
|
-
search = search.substring(1);
|
|
368
|
-
}
|
|
369
|
-
if (search) {
|
|
370
|
-
url += `?${search}`;
|
|
371
|
-
}
|
|
372
|
-
return url;
|
|
373
|
-
};
|
|
374
|
-
function getValidRequestBody(options) {
|
|
375
|
-
const hasBody = options.body !== void 0;
|
|
376
|
-
const isSerializedBody = hasBody && options.bodySerializer;
|
|
377
|
-
if (isSerializedBody) {
|
|
378
|
-
if ("serializedBody" in options) {
|
|
379
|
-
const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
|
|
380
|
-
return hasSerializedBody ? options.serializedBody : null;
|
|
381
|
-
}
|
|
382
|
-
return options.body !== "" ? options.body : null;
|
|
383
|
-
}
|
|
384
|
-
if (hasBody) {
|
|
385
|
-
return options.body;
|
|
386
|
-
}
|
|
387
|
-
return void 0;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
// src/client/core/auth.gen.ts
|
|
391
|
-
var getAuthToken = async (auth, callback) => {
|
|
392
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
393
|
-
if (!token) {
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
if (auth.scheme === "bearer") {
|
|
397
|
-
return `Bearer ${token}`;
|
|
398
|
-
}
|
|
399
|
-
if (auth.scheme === "basic") {
|
|
400
|
-
return `Basic ${btoa(token)}`;
|
|
401
|
-
}
|
|
402
|
-
return token;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
// src/client/client/utils.gen.ts
|
|
406
|
-
var createQuerySerializer = ({
|
|
407
|
-
parameters = {},
|
|
408
|
-
...args
|
|
409
|
-
} = {}) => {
|
|
410
|
-
const querySerializer = (queryParams) => {
|
|
411
|
-
const search = [];
|
|
412
|
-
if (queryParams && typeof queryParams === "object") {
|
|
413
|
-
for (const name in queryParams) {
|
|
414
|
-
const value = queryParams[name];
|
|
415
|
-
if (value === void 0 || value === null) {
|
|
416
|
-
continue;
|
|
417
|
-
}
|
|
418
|
-
const options = parameters[name] || args;
|
|
419
|
-
if (Array.isArray(value)) {
|
|
420
|
-
const serializedArray = serializeArrayParam({
|
|
421
|
-
allowReserved: options.allowReserved,
|
|
422
|
-
explode: true,
|
|
423
|
-
name,
|
|
424
|
-
style: "form",
|
|
425
|
-
value,
|
|
426
|
-
...options.array
|
|
427
|
-
});
|
|
428
|
-
if (serializedArray) search.push(serializedArray);
|
|
429
|
-
} else if (typeof value === "object") {
|
|
430
|
-
const serializedObject = serializeObjectParam({
|
|
431
|
-
allowReserved: options.allowReserved,
|
|
432
|
-
explode: true,
|
|
433
|
-
name,
|
|
434
|
-
style: "deepObject",
|
|
435
|
-
value,
|
|
436
|
-
...options.object
|
|
437
|
-
});
|
|
438
|
-
if (serializedObject) search.push(serializedObject);
|
|
439
|
-
} else {
|
|
440
|
-
const serializedPrimitive = serializePrimitiveParam({
|
|
441
|
-
allowReserved: options.allowReserved,
|
|
442
|
-
name,
|
|
443
|
-
value
|
|
444
|
-
});
|
|
445
|
-
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return search.join("&");
|
|
450
|
-
};
|
|
451
|
-
return querySerializer;
|
|
452
|
-
};
|
|
453
|
-
var getParseAs = (contentType) => {
|
|
454
|
-
if (!contentType) {
|
|
455
|
-
return "stream";
|
|
456
|
-
}
|
|
457
|
-
const cleanContent = contentType.split(";")[0]?.trim();
|
|
458
|
-
if (!cleanContent) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
462
|
-
return "json";
|
|
463
|
-
}
|
|
464
|
-
if (cleanContent === "multipart/form-data") {
|
|
465
|
-
return "formData";
|
|
466
|
-
}
|
|
467
|
-
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
468
|
-
return "blob";
|
|
469
|
-
}
|
|
470
|
-
if (cleanContent.startsWith("text/")) {
|
|
471
|
-
return "text";
|
|
472
|
-
}
|
|
473
|
-
return;
|
|
474
|
-
};
|
|
475
|
-
var checkForExistence = (options, name) => {
|
|
476
|
-
if (!name) {
|
|
477
|
-
return false;
|
|
478
|
-
}
|
|
479
|
-
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
480
|
-
return true;
|
|
481
|
-
}
|
|
482
|
-
return false;
|
|
483
|
-
};
|
|
484
|
-
async function setAuthParams(options) {
|
|
485
|
-
for (const auth of options.security ?? []) {
|
|
486
|
-
if (checkForExistence(options, auth.name)) {
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
const token = await getAuthToken(auth, options.auth);
|
|
490
|
-
if (!token) {
|
|
491
|
-
continue;
|
|
492
|
-
}
|
|
493
|
-
const name = auth.name ?? "Authorization";
|
|
494
|
-
switch (auth.in) {
|
|
495
|
-
case "query":
|
|
496
|
-
if (!options.query) {
|
|
497
|
-
options.query = {};
|
|
498
|
-
}
|
|
499
|
-
options.query[name] = token;
|
|
500
|
-
break;
|
|
501
|
-
case "cookie":
|
|
502
|
-
options.headers.append("Cookie", `${name}=${token}`);
|
|
503
|
-
break;
|
|
504
|
-
case "header":
|
|
505
|
-
default:
|
|
506
|
-
options.headers.set(name, token);
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
var buildUrl = (options) => getUrl({
|
|
512
|
-
baseUrl: options.baseUrl,
|
|
513
|
-
path: options.path,
|
|
514
|
-
query: options.query,
|
|
515
|
-
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
516
|
-
url: options.url
|
|
517
|
-
});
|
|
518
|
-
var mergeConfigs = (a, b) => {
|
|
519
|
-
const config = { ...a, ...b };
|
|
520
|
-
if (config.baseUrl?.endsWith("/")) {
|
|
521
|
-
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
522
|
-
}
|
|
523
|
-
config.headers = mergeHeaders(a.headers, b.headers);
|
|
524
|
-
return config;
|
|
525
|
-
};
|
|
526
|
-
var headersEntries = (headers) => {
|
|
527
|
-
const entries = [];
|
|
528
|
-
headers.forEach((value, key) => {
|
|
529
|
-
entries.push([key, value]);
|
|
530
|
-
});
|
|
531
|
-
return entries;
|
|
532
|
-
};
|
|
533
|
-
var mergeHeaders = (...headers) => {
|
|
534
|
-
const mergedHeaders = new Headers();
|
|
535
|
-
for (const header of headers) {
|
|
536
|
-
if (!header) {
|
|
537
|
-
continue;
|
|
538
|
-
}
|
|
539
|
-
const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
|
|
540
|
-
for (const [key, value] of iterator) {
|
|
541
|
-
if (value === null) {
|
|
542
|
-
mergedHeaders.delete(key);
|
|
543
|
-
} else if (Array.isArray(value)) {
|
|
544
|
-
for (const v of value) {
|
|
545
|
-
mergedHeaders.append(key, v);
|
|
546
|
-
}
|
|
547
|
-
} else if (value !== void 0) {
|
|
548
|
-
mergedHeaders.set(
|
|
549
|
-
key,
|
|
550
|
-
typeof value === "object" ? JSON.stringify(value) : value
|
|
551
|
-
);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
return mergedHeaders;
|
|
556
|
-
};
|
|
557
|
-
var Interceptors = class {
|
|
558
|
-
fns = [];
|
|
559
|
-
clear() {
|
|
560
|
-
this.fns = [];
|
|
561
|
-
}
|
|
562
|
-
eject(id) {
|
|
563
|
-
const index = this.getInterceptorIndex(id);
|
|
564
|
-
if (this.fns[index]) {
|
|
565
|
-
this.fns[index] = null;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
exists(id) {
|
|
569
|
-
const index = this.getInterceptorIndex(id);
|
|
570
|
-
return Boolean(this.fns[index]);
|
|
571
|
-
}
|
|
572
|
-
getInterceptorIndex(id) {
|
|
573
|
-
if (typeof id === "number") {
|
|
574
|
-
return this.fns[id] ? id : -1;
|
|
575
|
-
}
|
|
576
|
-
return this.fns.indexOf(id);
|
|
577
|
-
}
|
|
578
|
-
update(id, fn) {
|
|
579
|
-
const index = this.getInterceptorIndex(id);
|
|
580
|
-
if (this.fns[index]) {
|
|
581
|
-
this.fns[index] = fn;
|
|
582
|
-
return id;
|
|
583
|
-
}
|
|
584
|
-
return false;
|
|
585
|
-
}
|
|
586
|
-
use(fn) {
|
|
587
|
-
this.fns.push(fn);
|
|
588
|
-
return this.fns.length - 1;
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
var createInterceptors = () => ({
|
|
592
|
-
error: new Interceptors(),
|
|
593
|
-
request: new Interceptors(),
|
|
594
|
-
response: new Interceptors()
|
|
595
|
-
});
|
|
596
|
-
var defaultQuerySerializer = createQuerySerializer({
|
|
597
|
-
allowReserved: false,
|
|
598
|
-
array: {
|
|
599
|
-
explode: true,
|
|
600
|
-
style: "form"
|
|
601
|
-
},
|
|
602
|
-
object: {
|
|
603
|
-
explode: true,
|
|
604
|
-
style: "deepObject"
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
var defaultHeaders = {
|
|
608
|
-
"Content-Type": "application/json"
|
|
609
|
-
};
|
|
610
|
-
var createConfig = (override = {}) => ({
|
|
611
|
-
...jsonBodySerializer,
|
|
612
|
-
headers: defaultHeaders,
|
|
613
|
-
parseAs: "auto",
|
|
614
|
-
querySerializer: defaultQuerySerializer,
|
|
615
|
-
...override
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
// src/client/client/client.gen.ts
|
|
619
|
-
var createClient = (config = {}) => {
|
|
620
|
-
let _config = mergeConfigs(createConfig(), config);
|
|
621
|
-
const getConfig = () => ({ ..._config });
|
|
622
|
-
const setConfig = (config2) => {
|
|
623
|
-
_config = mergeConfigs(_config, config2);
|
|
624
|
-
return getConfig();
|
|
625
|
-
};
|
|
626
|
-
const interceptors = createInterceptors();
|
|
627
|
-
const beforeRequest = async (options) => {
|
|
628
|
-
const opts = {
|
|
629
|
-
..._config,
|
|
630
|
-
...options,
|
|
631
|
-
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
632
|
-
headers: mergeHeaders(_config.headers, options.headers),
|
|
633
|
-
serializedBody: void 0
|
|
634
|
-
};
|
|
635
|
-
if (opts.security) {
|
|
636
|
-
await setAuthParams(opts);
|
|
637
|
-
}
|
|
638
|
-
if (opts.requestValidator) {
|
|
639
|
-
await opts.requestValidator(opts);
|
|
640
|
-
}
|
|
641
|
-
if (opts.body !== void 0 && opts.bodySerializer) {
|
|
642
|
-
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
643
|
-
}
|
|
644
|
-
if (opts.body === void 0 || opts.serializedBody === "") {
|
|
645
|
-
opts.headers.delete("Content-Type");
|
|
646
|
-
}
|
|
647
|
-
const resolvedOpts = opts;
|
|
648
|
-
const url = buildUrl(resolvedOpts);
|
|
649
|
-
return { opts: resolvedOpts, url };
|
|
650
|
-
};
|
|
651
|
-
const request = async (options) => {
|
|
652
|
-
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
653
|
-
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
654
|
-
let request2;
|
|
655
|
-
let response;
|
|
656
|
-
try {
|
|
657
|
-
const { opts, url } = await beforeRequest(options);
|
|
658
|
-
const requestInit = {
|
|
659
|
-
redirect: "follow",
|
|
660
|
-
...opts,
|
|
661
|
-
body: getValidRequestBody(opts)
|
|
662
|
-
};
|
|
663
|
-
request2 = new Request(url, requestInit);
|
|
664
|
-
for (const fn of interceptors.request.fns) {
|
|
665
|
-
if (fn) {
|
|
666
|
-
request2 = await fn(request2, opts);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
const _fetch = opts.fetch;
|
|
670
|
-
response = await _fetch(request2);
|
|
671
|
-
for (const fn of interceptors.response.fns) {
|
|
672
|
-
if (fn) {
|
|
673
|
-
response = await fn(response, request2, opts);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
const result = {
|
|
677
|
-
request: request2,
|
|
678
|
-
response
|
|
679
|
-
};
|
|
680
|
-
if (response.ok) {
|
|
681
|
-
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
682
|
-
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
683
|
-
let emptyData;
|
|
684
|
-
switch (parseAs) {
|
|
685
|
-
case "arrayBuffer":
|
|
686
|
-
case "blob":
|
|
687
|
-
case "text":
|
|
688
|
-
emptyData = await response[parseAs]();
|
|
689
|
-
break;
|
|
690
|
-
case "formData":
|
|
691
|
-
emptyData = new FormData();
|
|
692
|
-
break;
|
|
693
|
-
case "stream":
|
|
694
|
-
emptyData = response.body;
|
|
695
|
-
break;
|
|
696
|
-
case "json":
|
|
697
|
-
default:
|
|
698
|
-
emptyData = {};
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
return opts.responseStyle === "data" ? emptyData : {
|
|
702
|
-
data: emptyData,
|
|
703
|
-
...result
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
let data;
|
|
707
|
-
switch (parseAs) {
|
|
708
|
-
case "arrayBuffer":
|
|
709
|
-
case "blob":
|
|
710
|
-
case "formData":
|
|
711
|
-
case "text":
|
|
712
|
-
data = await response[parseAs]();
|
|
713
|
-
break;
|
|
714
|
-
case "json": {
|
|
715
|
-
const text = await response.text();
|
|
716
|
-
data = text ? JSON.parse(text) : {};
|
|
717
|
-
break;
|
|
718
|
-
}
|
|
719
|
-
case "stream":
|
|
720
|
-
return opts.responseStyle === "data" ? response.body : {
|
|
721
|
-
data: response.body,
|
|
722
|
-
...result
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
if (parseAs === "json") {
|
|
726
|
-
if (opts.responseValidator) {
|
|
727
|
-
await opts.responseValidator(data);
|
|
728
|
-
}
|
|
729
|
-
if (opts.responseTransformer) {
|
|
730
|
-
data = await opts.responseTransformer(data);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
return opts.responseStyle === "data" ? data : {
|
|
734
|
-
data,
|
|
735
|
-
...result
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
const textError = await response.text();
|
|
739
|
-
let jsonError;
|
|
740
|
-
try {
|
|
741
|
-
jsonError = JSON.parse(textError);
|
|
742
|
-
} catch {
|
|
743
|
-
}
|
|
744
|
-
throw jsonError ?? textError;
|
|
745
|
-
} catch (error) {
|
|
746
|
-
let finalError = error;
|
|
747
|
-
for (const fn of interceptors.error.fns) {
|
|
748
|
-
if (fn) {
|
|
749
|
-
finalError = await fn(finalError, response, request2, options);
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
finalError = finalError || {};
|
|
753
|
-
if (throwOnError) {
|
|
754
|
-
throw finalError;
|
|
755
|
-
}
|
|
756
|
-
return responseStyle === "data" ? void 0 : {
|
|
757
|
-
error: finalError,
|
|
758
|
-
request: request2,
|
|
759
|
-
response
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
const makeMethodFn = (method) => (options) => request({ ...options, method });
|
|
764
|
-
const makeSseFn = (method) => async (options) => {
|
|
765
|
-
const { opts, url } = await beforeRequest(options);
|
|
766
|
-
return createSseClient({
|
|
767
|
-
...opts,
|
|
768
|
-
body: opts.body,
|
|
769
|
-
method,
|
|
770
|
-
onRequest: async (url2, init) => {
|
|
771
|
-
let request2 = new Request(url2, init);
|
|
772
|
-
for (const fn of interceptors.request.fns) {
|
|
773
|
-
if (fn) {
|
|
774
|
-
request2 = await fn(request2, opts);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
return request2;
|
|
778
|
-
},
|
|
779
|
-
serializedBody: getValidRequestBody(opts),
|
|
780
|
-
url
|
|
781
|
-
});
|
|
782
|
-
};
|
|
783
|
-
const _buildUrl = (options) => buildUrl({ ..._config, ...options });
|
|
784
|
-
return {
|
|
785
|
-
buildUrl: _buildUrl,
|
|
786
|
-
connect: makeMethodFn("CONNECT"),
|
|
787
|
-
delete: makeMethodFn("DELETE"),
|
|
788
|
-
get: makeMethodFn("GET"),
|
|
789
|
-
getConfig,
|
|
790
|
-
head: makeMethodFn("HEAD"),
|
|
791
|
-
interceptors,
|
|
792
|
-
options: makeMethodFn("OPTIONS"),
|
|
793
|
-
patch: makeMethodFn("PATCH"),
|
|
794
|
-
post: makeMethodFn("POST"),
|
|
795
|
-
put: makeMethodFn("PUT"),
|
|
796
|
-
request,
|
|
797
|
-
setConfig,
|
|
798
|
-
sse: {
|
|
799
|
-
connect: makeSseFn("CONNECT"),
|
|
800
|
-
delete: makeSseFn("DELETE"),
|
|
801
|
-
get: makeSseFn("GET"),
|
|
802
|
-
head: makeSseFn("HEAD"),
|
|
803
|
-
options: makeSseFn("OPTIONS"),
|
|
804
|
-
patch: makeSseFn("PATCH"),
|
|
805
|
-
post: makeSseFn("POST"),
|
|
806
|
-
put: makeSseFn("PUT"),
|
|
807
|
-
trace: makeSseFn("TRACE")
|
|
808
|
-
},
|
|
809
|
-
trace: makeMethodFn("TRACE")
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
// src/token-cache.ts
|
|
814
|
-
function createTokenCache(getToken) {
|
|
815
|
-
let cached;
|
|
816
|
-
let inFlight;
|
|
817
|
-
const mint = () => {
|
|
818
|
-
if (!inFlight) {
|
|
819
|
-
inFlight = Promise.resolve().then(getToken).then((token) => {
|
|
820
|
-
cached = token;
|
|
821
|
-
return token;
|
|
822
|
-
}).finally(() => {
|
|
823
|
-
inFlight = void 0;
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
return inFlight;
|
|
827
|
-
};
|
|
828
|
-
return {
|
|
829
|
-
current() {
|
|
830
|
-
return cached !== void 0 ? Promise.resolve(cached) : mint();
|
|
831
|
-
},
|
|
832
|
-
refresh() {
|
|
833
|
-
cached = void 0;
|
|
834
|
-
return mint();
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
// src/client.ts
|
|
840
|
-
var DEFAULT_BASE_URL = "https://api.postrun.ai/v1";
|
|
841
|
-
var UNAUTHORIZED = 401;
|
|
842
|
-
function createRetryingFetch(tokenCache) {
|
|
843
|
-
const realFetch = (...args) => globalThis.fetch(...args);
|
|
844
|
-
return async (input, init) => {
|
|
845
|
-
const request = new Request(input, init);
|
|
846
|
-
const retryable = request.clone();
|
|
847
|
-
const response = await realFetch(request);
|
|
848
|
-
if (response.status !== UNAUTHORIZED) {
|
|
849
|
-
return response;
|
|
850
|
-
}
|
|
851
|
-
try {
|
|
852
|
-
const token = await tokenCache.refresh();
|
|
853
|
-
const headers = new Headers(retryable.headers);
|
|
854
|
-
headers.set("Authorization", `Bearer ${token}`);
|
|
855
|
-
return await realFetch(new Request(retryable, { headers }));
|
|
856
|
-
} catch {
|
|
857
|
-
return response;
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
}
|
|
861
|
-
function appendScalar(parts, key, value) {
|
|
862
|
-
parts.push(
|
|
863
|
-
`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
|
|
864
|
-
);
|
|
865
|
-
}
|
|
866
|
-
function serializeQuery(query) {
|
|
867
|
-
const parts = [];
|
|
868
|
-
for (const [key, value] of Object.entries(query)) {
|
|
869
|
-
if (value === void 0 || value === null) {
|
|
870
|
-
continue;
|
|
871
|
-
}
|
|
872
|
-
if (Array.isArray(value)) {
|
|
873
|
-
for (const item of value) {
|
|
874
|
-
if (item !== void 0 && item !== null) {
|
|
875
|
-
appendScalar(parts, key, item);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
} else if (typeof value === "object") {
|
|
879
|
-
appendScalar(parts, key, JSON.stringify(value));
|
|
880
|
-
} else {
|
|
881
|
-
appendScalar(parts, key, value);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return parts.join("&");
|
|
885
|
-
}
|
|
886
|
-
function createPostrunClient(options) {
|
|
887
|
-
const tokenCache = createTokenCache(options.getToken);
|
|
888
|
-
const client2 = createClient(
|
|
889
|
-
createConfig({
|
|
890
|
-
baseUrl: options.baseUrl ?? DEFAULT_BASE_URL,
|
|
891
|
-
auth: () => tokenCache.current(),
|
|
892
|
-
fetch: createRetryingFetch(tokenCache),
|
|
893
|
-
querySerializer: serializeQuery,
|
|
894
|
-
throwOnError: true
|
|
895
|
-
})
|
|
896
|
-
);
|
|
897
|
-
client2.interceptors.error.use(
|
|
898
|
-
(error, response) => error instanceof PostrunError ? error : new PostrunError(response?.status ?? 0, error)
|
|
899
|
-
);
|
|
900
|
-
return client2;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
// src/client/client.gen.ts
|
|
904
|
-
var client = createClient(createConfig({ baseUrl: "https://api.postrun.ai/v1", throwOnError: true }));
|
|
905
|
-
|
|
906
|
-
// src/client/sdk.gen.ts
|
|
907
|
-
var profilesList = (options) => (options?.client ?? client).get({
|
|
908
|
-
security: [{
|
|
909
|
-
key: "secretKey",
|
|
910
|
-
scheme: "bearer",
|
|
911
|
-
type: "http"
|
|
912
|
-
}, {
|
|
913
|
-
key: "frontendToken",
|
|
914
|
-
scheme: "bearer",
|
|
915
|
-
type: "http"
|
|
916
|
-
}],
|
|
917
|
-
url: "/profiles",
|
|
918
|
-
...options
|
|
919
|
-
});
|
|
920
|
-
var profilesCreate = (options) => (options.client ?? client).post({
|
|
921
|
-
security: [{
|
|
922
|
-
key: "secretKey",
|
|
923
|
-
scheme: "bearer",
|
|
924
|
-
type: "http"
|
|
925
|
-
}, {
|
|
926
|
-
key: "frontendToken",
|
|
927
|
-
scheme: "bearer",
|
|
928
|
-
type: "http"
|
|
929
|
-
}],
|
|
930
|
-
url: "/profiles",
|
|
931
|
-
...options,
|
|
932
|
-
headers: {
|
|
933
|
-
"Content-Type": "application/json",
|
|
934
|
-
...options.headers
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
var profilesDelete = (options) => (options.client ?? client).delete({
|
|
938
|
-
security: [{
|
|
939
|
-
key: "secretKey",
|
|
940
|
-
scheme: "bearer",
|
|
941
|
-
type: "http"
|
|
942
|
-
}, {
|
|
943
|
-
key: "frontendToken",
|
|
944
|
-
scheme: "bearer",
|
|
945
|
-
type: "http"
|
|
946
|
-
}],
|
|
947
|
-
url: "/profiles/{id}",
|
|
948
|
-
...options
|
|
949
|
-
});
|
|
950
|
-
var profilesGet = (options) => (options.client ?? client).get({
|
|
951
|
-
security: [{
|
|
952
|
-
key: "secretKey",
|
|
953
|
-
scheme: "bearer",
|
|
954
|
-
type: "http"
|
|
955
|
-
}, {
|
|
956
|
-
key: "frontendToken",
|
|
957
|
-
scheme: "bearer",
|
|
958
|
-
type: "http"
|
|
959
|
-
}],
|
|
960
|
-
url: "/profiles/{id}",
|
|
961
|
-
...options
|
|
962
|
-
});
|
|
963
|
-
var profilesUpdate = (options) => (options.client ?? client).patch({
|
|
964
|
-
security: [{
|
|
965
|
-
key: "secretKey",
|
|
966
|
-
scheme: "bearer",
|
|
967
|
-
type: "http"
|
|
968
|
-
}, {
|
|
969
|
-
key: "frontendToken",
|
|
970
|
-
scheme: "bearer",
|
|
971
|
-
type: "http"
|
|
972
|
-
}],
|
|
973
|
-
url: "/profiles/{id}",
|
|
974
|
-
...options,
|
|
975
|
-
headers: {
|
|
976
|
-
"Content-Type": "application/json",
|
|
977
|
-
...options.headers
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
var connectionsListByProfile = (options) => (options.client ?? client).get({
|
|
981
|
-
security: [{
|
|
982
|
-
key: "secretKey",
|
|
983
|
-
scheme: "bearer",
|
|
984
|
-
type: "http"
|
|
985
|
-
}, {
|
|
986
|
-
key: "frontendToken",
|
|
987
|
-
scheme: "bearer",
|
|
988
|
-
type: "http"
|
|
989
|
-
}],
|
|
990
|
-
url: "/profiles/{id}/connections",
|
|
991
|
-
...options
|
|
992
|
-
});
|
|
993
|
-
var connectionsDelete = (options) => (options.client ?? client).delete({
|
|
994
|
-
security: [{
|
|
995
|
-
key: "secretKey",
|
|
996
|
-
scheme: "bearer",
|
|
997
|
-
type: "http"
|
|
998
|
-
}, {
|
|
999
|
-
key: "frontendToken",
|
|
1000
|
-
scheme: "bearer",
|
|
1001
|
-
type: "http"
|
|
1002
|
-
}],
|
|
1003
|
-
url: "/connections/{id}",
|
|
1004
|
-
...options
|
|
1005
|
-
});
|
|
1006
|
-
var connectionsGet = (options) => (options.client ?? client).get({
|
|
1007
|
-
security: [{
|
|
1008
|
-
key: "secretKey",
|
|
1009
|
-
scheme: "bearer",
|
|
1010
|
-
type: "http"
|
|
1011
|
-
}, {
|
|
1012
|
-
key: "frontendToken",
|
|
1013
|
-
scheme: "bearer",
|
|
1014
|
-
type: "http"
|
|
1015
|
-
}],
|
|
1016
|
-
url: "/connections/{id}",
|
|
1017
|
-
...options
|
|
1018
|
-
});
|
|
1019
|
-
var connectionsSelect = (options) => (options.client ?? client).patch({
|
|
1020
|
-
security: [{
|
|
1021
|
-
key: "secretKey",
|
|
1022
|
-
scheme: "bearer",
|
|
1023
|
-
type: "http"
|
|
1024
|
-
}, {
|
|
1025
|
-
key: "frontendToken",
|
|
1026
|
-
scheme: "bearer",
|
|
1027
|
-
type: "http"
|
|
1028
|
-
}],
|
|
1029
|
-
url: "/connections/{id}",
|
|
1030
|
-
...options,
|
|
1031
|
-
headers: {
|
|
1032
|
-
"Content-Type": "application/json",
|
|
1033
|
-
...options.headers
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
var connectionsListAccounts = (options) => (options.client ?? client).get({
|
|
1037
|
-
security: [{
|
|
1038
|
-
key: "secretKey",
|
|
1039
|
-
scheme: "bearer",
|
|
1040
|
-
type: "http"
|
|
1041
|
-
}, {
|
|
1042
|
-
key: "frontendToken",
|
|
1043
|
-
scheme: "bearer",
|
|
1044
|
-
type: "http"
|
|
1045
|
-
}],
|
|
1046
|
-
url: "/connections/{id}/accounts",
|
|
1047
|
-
...options
|
|
1048
|
-
});
|
|
1049
|
-
var connectionsConnect = (options) => (options.client ?? client).post({
|
|
1050
|
-
security: [{
|
|
1051
|
-
key: "secretKey",
|
|
1052
|
-
scheme: "bearer",
|
|
1053
|
-
type: "http"
|
|
1054
|
-
}, {
|
|
1055
|
-
key: "frontendToken",
|
|
1056
|
-
scheme: "bearer",
|
|
1057
|
-
type: "http"
|
|
1058
|
-
}],
|
|
1059
|
-
url: "/profiles/{id}/connect",
|
|
1060
|
-
...options,
|
|
1061
|
-
headers: {
|
|
1062
|
-
"Content-Type": "application/json",
|
|
1063
|
-
...options.headers
|
|
1064
|
-
}
|
|
1065
|
-
});
|
|
1066
|
-
var mediaList = (options) => (options?.client ?? client).get({
|
|
1067
|
-
security: [{
|
|
1068
|
-
key: "secretKey",
|
|
1069
|
-
scheme: "bearer",
|
|
1070
|
-
type: "http"
|
|
1071
|
-
}, {
|
|
1072
|
-
key: "frontendToken",
|
|
1073
|
-
scheme: "bearer",
|
|
1074
|
-
type: "http"
|
|
1075
|
-
}],
|
|
1076
|
-
url: "/media",
|
|
1077
|
-
...options
|
|
1078
|
-
});
|
|
1079
|
-
var mediaCreate = (options) => (options.client ?? client).post({
|
|
1080
|
-
security: [{
|
|
1081
|
-
key: "secretKey",
|
|
1082
|
-
scheme: "bearer",
|
|
1083
|
-
type: "http"
|
|
1084
|
-
}, {
|
|
1085
|
-
key: "frontendToken",
|
|
1086
|
-
scheme: "bearer",
|
|
1087
|
-
type: "http"
|
|
1088
|
-
}],
|
|
1089
|
-
url: "/media",
|
|
1090
|
-
...options,
|
|
1091
|
-
headers: {
|
|
1092
|
-
"Content-Type": "application/json",
|
|
1093
|
-
...options.headers
|
|
1094
|
-
}
|
|
1095
|
-
});
|
|
1096
|
-
var mediaDelete = (options) => (options.client ?? client).delete({
|
|
1097
|
-
security: [{
|
|
1098
|
-
key: "secretKey",
|
|
1099
|
-
scheme: "bearer",
|
|
1100
|
-
type: "http"
|
|
1101
|
-
}, {
|
|
1102
|
-
key: "frontendToken",
|
|
1103
|
-
scheme: "bearer",
|
|
1104
|
-
type: "http"
|
|
1105
|
-
}],
|
|
1106
|
-
url: "/media/{id}",
|
|
1107
|
-
...options
|
|
1108
|
-
});
|
|
1109
|
-
var mediaGet = (options) => (options.client ?? client).get({
|
|
1110
|
-
security: [{
|
|
1111
|
-
key: "secretKey",
|
|
1112
|
-
scheme: "bearer",
|
|
1113
|
-
type: "http"
|
|
1114
|
-
}, {
|
|
1115
|
-
key: "frontendToken",
|
|
1116
|
-
scheme: "bearer",
|
|
1117
|
-
type: "http"
|
|
1118
|
-
}],
|
|
1119
|
-
url: "/media/{id}",
|
|
1120
|
-
...options
|
|
1121
|
-
});
|
|
1122
|
-
var mediaUpdate = (options) => (options.client ?? client).patch({
|
|
1123
|
-
security: [{
|
|
1124
|
-
key: "secretKey",
|
|
1125
|
-
scheme: "bearer",
|
|
1126
|
-
type: "http"
|
|
1127
|
-
}, {
|
|
1128
|
-
key: "frontendToken",
|
|
1129
|
-
scheme: "bearer",
|
|
1130
|
-
type: "http"
|
|
1131
|
-
}],
|
|
1132
|
-
url: "/media/{id}",
|
|
1133
|
-
...options,
|
|
1134
|
-
headers: {
|
|
1135
|
-
"Content-Type": "application/json",
|
|
1136
|
-
...options.headers
|
|
1137
|
-
}
|
|
1138
|
-
});
|
|
1139
|
-
var mediaSignPart = (options) => (options.client ?? client).post({
|
|
1140
|
-
security: [{
|
|
1141
|
-
key: "secretKey",
|
|
1142
|
-
scheme: "bearer",
|
|
1143
|
-
type: "http"
|
|
1144
|
-
}, {
|
|
1145
|
-
key: "frontendToken",
|
|
1146
|
-
scheme: "bearer",
|
|
1147
|
-
type: "http"
|
|
1148
|
-
}],
|
|
1149
|
-
url: "/media/{id}/multipart/sign",
|
|
1150
|
-
...options,
|
|
1151
|
-
headers: {
|
|
1152
|
-
"Content-Type": "application/json",
|
|
1153
|
-
...options.headers
|
|
1154
|
-
}
|
|
1155
|
-
});
|
|
1156
|
-
var mediaListParts = (options) => (options.client ?? client).get({
|
|
1157
|
-
security: [{
|
|
1158
|
-
key: "secretKey",
|
|
1159
|
-
scheme: "bearer",
|
|
1160
|
-
type: "http"
|
|
1161
|
-
}, {
|
|
1162
|
-
key: "frontendToken",
|
|
1163
|
-
scheme: "bearer",
|
|
1164
|
-
type: "http"
|
|
1165
|
-
}],
|
|
1166
|
-
url: "/media/{id}/multipart/parts",
|
|
1167
|
-
...options
|
|
1168
|
-
});
|
|
1169
|
-
var mediaComplete = (options) => (options.client ?? client).post({
|
|
1170
|
-
security: [{
|
|
1171
|
-
key: "secretKey",
|
|
1172
|
-
scheme: "bearer",
|
|
1173
|
-
type: "http"
|
|
1174
|
-
}, {
|
|
1175
|
-
key: "frontendToken",
|
|
1176
|
-
scheme: "bearer",
|
|
1177
|
-
type: "http"
|
|
1178
|
-
}],
|
|
1179
|
-
url: "/media/{id}/multipart/complete",
|
|
1180
|
-
...options,
|
|
1181
|
-
headers: {
|
|
1182
|
-
"Content-Type": "application/json",
|
|
1183
|
-
...options.headers
|
|
1184
|
-
}
|
|
1185
|
-
});
|
|
1186
|
-
var mediaAbort = (options) => (options.client ?? client).post({
|
|
1187
|
-
security: [{
|
|
1188
|
-
key: "secretKey",
|
|
1189
|
-
scheme: "bearer",
|
|
1190
|
-
type: "http"
|
|
1191
|
-
}, {
|
|
1192
|
-
key: "frontendToken",
|
|
1193
|
-
scheme: "bearer",
|
|
1194
|
-
type: "http"
|
|
1195
|
-
}],
|
|
1196
|
-
url: "/media/{id}/multipart/abort",
|
|
1197
|
-
...options
|
|
1198
|
-
});
|
|
1199
|
-
var postsList = (options) => (options?.client ?? client).get({
|
|
1200
|
-
security: [{
|
|
1201
|
-
key: "secretKey",
|
|
1202
|
-
scheme: "bearer",
|
|
1203
|
-
type: "http"
|
|
1204
|
-
}, {
|
|
1205
|
-
key: "frontendToken",
|
|
1206
|
-
scheme: "bearer",
|
|
1207
|
-
type: "http"
|
|
1208
|
-
}],
|
|
1209
|
-
url: "/posts",
|
|
1210
|
-
...options
|
|
1211
|
-
});
|
|
1212
|
-
var postsCreate = (options) => (options.client ?? client).post({
|
|
1213
|
-
security: [{
|
|
1214
|
-
key: "secretKey",
|
|
1215
|
-
scheme: "bearer",
|
|
1216
|
-
type: "http"
|
|
1217
|
-
}, {
|
|
1218
|
-
key: "frontendToken",
|
|
1219
|
-
scheme: "bearer",
|
|
1220
|
-
type: "http"
|
|
1221
|
-
}],
|
|
1222
|
-
url: "/posts",
|
|
1223
|
-
...options,
|
|
1224
|
-
headers: {
|
|
1225
|
-
"Content-Type": "application/json",
|
|
1226
|
-
...options.headers
|
|
1227
|
-
}
|
|
1228
|
-
});
|
|
1229
|
-
var postsDelete = (options) => (options.client ?? client).delete({
|
|
1230
|
-
security: [{
|
|
1231
|
-
key: "secretKey",
|
|
1232
|
-
scheme: "bearer",
|
|
1233
|
-
type: "http"
|
|
1234
|
-
}, {
|
|
1235
|
-
key: "frontendToken",
|
|
1236
|
-
scheme: "bearer",
|
|
1237
|
-
type: "http"
|
|
1238
|
-
}],
|
|
1239
|
-
url: "/posts/{id}",
|
|
1240
|
-
...options
|
|
1241
|
-
});
|
|
1242
|
-
var postsGet = (options) => (options.client ?? client).get({
|
|
1243
|
-
security: [{
|
|
1244
|
-
key: "secretKey",
|
|
1245
|
-
scheme: "bearer",
|
|
1246
|
-
type: "http"
|
|
1247
|
-
}, {
|
|
1248
|
-
key: "frontendToken",
|
|
1249
|
-
scheme: "bearer",
|
|
1250
|
-
type: "http"
|
|
1251
|
-
}],
|
|
1252
|
-
url: "/posts/{id}",
|
|
1253
|
-
...options
|
|
1254
|
-
});
|
|
1255
|
-
var postsUpdate = (options) => (options.client ?? client).patch({
|
|
1256
|
-
security: [{
|
|
1257
|
-
key: "secretKey",
|
|
1258
|
-
scheme: "bearer",
|
|
1259
|
-
type: "http"
|
|
1260
|
-
}, {
|
|
1261
|
-
key: "frontendToken",
|
|
1262
|
-
scheme: "bearer",
|
|
1263
|
-
type: "http"
|
|
1264
|
-
}],
|
|
1265
|
-
url: "/posts/{id}",
|
|
1266
|
-
...options,
|
|
1267
|
-
headers: {
|
|
1268
|
-
"Content-Type": "application/json",
|
|
1269
|
-
...options.headers
|
|
1270
|
-
}
|
|
1271
|
-
});
|
|
1272
|
-
var postsValidate = (options) => (options.client ?? client).post({
|
|
1273
|
-
security: [{
|
|
1274
|
-
key: "secretKey",
|
|
1275
|
-
scheme: "bearer",
|
|
1276
|
-
type: "http"
|
|
1277
|
-
}, {
|
|
1278
|
-
key: "frontendToken",
|
|
1279
|
-
scheme: "bearer",
|
|
1280
|
-
type: "http"
|
|
1281
|
-
}],
|
|
1282
|
-
url: "/posts/validate",
|
|
1283
|
-
...options,
|
|
1284
|
-
headers: {
|
|
1285
|
-
"Content-Type": "application/json",
|
|
1286
|
-
...options.headers
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
var metaAccount = (options) => (options.client ?? client).get({
|
|
1290
|
-
security: [{
|
|
1291
|
-
key: "secretKey",
|
|
1292
|
-
scheme: "bearer",
|
|
1293
|
-
type: "http"
|
|
1294
|
-
}, {
|
|
1295
|
-
key: "frontendToken",
|
|
1296
|
-
scheme: "bearer",
|
|
1297
|
-
type: "http"
|
|
1298
|
-
}],
|
|
1299
|
-
url: "/meta/{connection_id}/account",
|
|
1300
|
-
...options
|
|
1301
|
-
});
|
|
1302
|
-
var metaInsights = (options) => (options.client ?? client).get({
|
|
1303
|
-
security: [{
|
|
1304
|
-
key: "secretKey",
|
|
1305
|
-
scheme: "bearer",
|
|
1306
|
-
type: "http"
|
|
1307
|
-
}, {
|
|
1308
|
-
key: "frontendToken",
|
|
1309
|
-
scheme: "bearer",
|
|
1310
|
-
type: "http"
|
|
1311
|
-
}],
|
|
1312
|
-
url: "/meta/{connection_id}/insights",
|
|
1313
|
-
...options
|
|
1314
|
-
});
|
|
1315
|
-
var metaCampaigns = (options) => (options.client ?? client).get({
|
|
1316
|
-
security: [{
|
|
1317
|
-
key: "secretKey",
|
|
1318
|
-
scheme: "bearer",
|
|
1319
|
-
type: "http"
|
|
1320
|
-
}, {
|
|
1321
|
-
key: "frontendToken",
|
|
1322
|
-
scheme: "bearer",
|
|
1323
|
-
type: "http"
|
|
1324
|
-
}],
|
|
1325
|
-
url: "/meta/{connection_id}/campaigns",
|
|
1326
|
-
...options
|
|
1327
|
-
});
|
|
1328
|
-
var metaCampaign = (options) => (options.client ?? client).get({
|
|
1329
|
-
security: [{
|
|
1330
|
-
key: "secretKey",
|
|
1331
|
-
scheme: "bearer",
|
|
1332
|
-
type: "http"
|
|
1333
|
-
}, {
|
|
1334
|
-
key: "frontendToken",
|
|
1335
|
-
scheme: "bearer",
|
|
1336
|
-
type: "http"
|
|
1337
|
-
}],
|
|
1338
|
-
url: "/meta/{connection_id}/campaigns/{campaign_id}",
|
|
1339
|
-
...options
|
|
1340
|
-
});
|
|
1341
|
-
var metaAdsets = (options) => (options.client ?? client).get({
|
|
1342
|
-
security: [{
|
|
1343
|
-
key: "secretKey",
|
|
1344
|
-
scheme: "bearer",
|
|
1345
|
-
type: "http"
|
|
1346
|
-
}, {
|
|
1347
|
-
key: "frontendToken",
|
|
1348
|
-
scheme: "bearer",
|
|
1349
|
-
type: "http"
|
|
1350
|
-
}],
|
|
1351
|
-
url: "/meta/{connection_id}/adsets",
|
|
1352
|
-
...options
|
|
1353
|
-
});
|
|
1354
|
-
var metaAdset = (options) => (options.client ?? client).get({
|
|
1355
|
-
security: [{
|
|
1356
|
-
key: "secretKey",
|
|
1357
|
-
scheme: "bearer",
|
|
1358
|
-
type: "http"
|
|
1359
|
-
}, {
|
|
1360
|
-
key: "frontendToken",
|
|
1361
|
-
scheme: "bearer",
|
|
1362
|
-
type: "http"
|
|
1363
|
-
}],
|
|
1364
|
-
url: "/meta/{connection_id}/adsets/{adset_id}",
|
|
1365
|
-
...options
|
|
1366
|
-
});
|
|
1367
|
-
var metaAds = (options) => (options.client ?? client).get({
|
|
1368
|
-
security: [{
|
|
1369
|
-
key: "secretKey",
|
|
1370
|
-
scheme: "bearer",
|
|
1371
|
-
type: "http"
|
|
1372
|
-
}, {
|
|
1373
|
-
key: "frontendToken",
|
|
1374
|
-
scheme: "bearer",
|
|
1375
|
-
type: "http"
|
|
1376
|
-
}],
|
|
1377
|
-
url: "/meta/{connection_id}/ads",
|
|
1378
|
-
...options
|
|
1379
|
-
});
|
|
1380
|
-
var metaAd = (options) => (options.client ?? client).get({
|
|
1381
|
-
security: [{
|
|
1382
|
-
key: "secretKey",
|
|
1383
|
-
scheme: "bearer",
|
|
1384
|
-
type: "http"
|
|
1385
|
-
}, {
|
|
1386
|
-
key: "frontendToken",
|
|
1387
|
-
scheme: "bearer",
|
|
1388
|
-
type: "http"
|
|
1389
|
-
}],
|
|
1390
|
-
url: "/meta/{connection_id}/ads/{ad_id}",
|
|
1391
|
-
...options
|
|
1392
|
-
});
|
|
1393
|
-
var googleGetAccount = (options) => (options.client ?? client).get({
|
|
1394
|
-
security: [{
|
|
1395
|
-
key: "secretKey",
|
|
1396
|
-
scheme: "bearer",
|
|
1397
|
-
type: "http"
|
|
1398
|
-
}, {
|
|
1399
|
-
key: "frontendToken",
|
|
1400
|
-
scheme: "bearer",
|
|
1401
|
-
type: "http"
|
|
1402
|
-
}],
|
|
1403
|
-
url: "/google/{connection_id}/account",
|
|
1404
|
-
...options
|
|
1405
|
-
});
|
|
1406
|
-
var googleEditAccount = (options) => (options.client ?? client).patch({
|
|
1407
|
-
security: [{
|
|
1408
|
-
key: "secretKey",
|
|
1409
|
-
scheme: "bearer",
|
|
1410
|
-
type: "http"
|
|
1411
|
-
}, {
|
|
1412
|
-
key: "frontendToken",
|
|
1413
|
-
scheme: "bearer",
|
|
1414
|
-
type: "http"
|
|
1415
|
-
}],
|
|
1416
|
-
url: "/google/{connection_id}/url-settings",
|
|
1417
|
-
...options,
|
|
1418
|
-
headers: {
|
|
1419
|
-
"Content-Type": "application/json",
|
|
1420
|
-
...options.headers
|
|
1421
|
-
}
|
|
1422
|
-
});
|
|
1423
|
-
var googleGetInsights = (options) => (options.client ?? client).post({
|
|
1424
|
-
security: [{
|
|
1425
|
-
key: "secretKey",
|
|
1426
|
-
scheme: "bearer",
|
|
1427
|
-
type: "http"
|
|
1428
|
-
}, {
|
|
1429
|
-
key: "frontendToken",
|
|
1430
|
-
scheme: "bearer",
|
|
1431
|
-
type: "http"
|
|
1432
|
-
}],
|
|
1433
|
-
url: "/google/{connection_id}/insights",
|
|
1434
|
-
...options,
|
|
1435
|
-
headers: {
|
|
1436
|
-
"Content-Type": "application/json",
|
|
1437
|
-
...options.headers
|
|
1438
|
-
}
|
|
1439
|
-
});
|
|
1440
|
-
var googleGetAdTree = (options) => (options.client ?? client).get({
|
|
1441
|
-
security: [{
|
|
1442
|
-
key: "secretKey",
|
|
1443
|
-
scheme: "bearer",
|
|
1444
|
-
type: "http"
|
|
1445
|
-
}, {
|
|
1446
|
-
key: "frontendToken",
|
|
1447
|
-
scheme: "bearer",
|
|
1448
|
-
type: "http"
|
|
1449
|
-
}],
|
|
1450
|
-
url: "/google/{connection_id}/ads/tree",
|
|
1451
|
-
...options
|
|
1452
|
-
});
|
|
1453
|
-
var googleRunGaql = (options) => (options.client ?? client).post({
|
|
1454
|
-
security: [{
|
|
1455
|
-
key: "secretKey",
|
|
1456
|
-
scheme: "bearer",
|
|
1457
|
-
type: "http"
|
|
1458
|
-
}, {
|
|
1459
|
-
key: "frontendToken",
|
|
1460
|
-
scheme: "bearer",
|
|
1461
|
-
type: "http"
|
|
1462
|
-
}],
|
|
1463
|
-
url: "/google/{connection_id}/gaql",
|
|
1464
|
-
...options,
|
|
1465
|
-
headers: {
|
|
1466
|
-
"Content-Type": "application/json",
|
|
1467
|
-
...options.headers
|
|
1468
|
-
}
|
|
1469
|
-
});
|
|
1470
|
-
var googleCreateBudget = (options) => (options.client ?? client).post({
|
|
1471
|
-
security: [{
|
|
1472
|
-
key: "secretKey",
|
|
1473
|
-
scheme: "bearer",
|
|
1474
|
-
type: "http"
|
|
1475
|
-
}],
|
|
1476
|
-
url: "/google/{connection_id}/budgets",
|
|
1477
|
-
...options,
|
|
1478
|
-
headers: {
|
|
1479
|
-
"Content-Type": "application/json",
|
|
1480
|
-
...options.headers
|
|
1481
|
-
}
|
|
1482
|
-
});
|
|
1483
|
-
var googleEditBudget = (options) => (options.client ?? client).patch({
|
|
1484
|
-
security: [{
|
|
1485
|
-
key: "secretKey",
|
|
1486
|
-
scheme: "bearer",
|
|
1487
|
-
type: "http"
|
|
1488
|
-
}],
|
|
1489
|
-
url: "/google/{connection_id}/budgets/{id}",
|
|
1490
|
-
...options,
|
|
1491
|
-
headers: {
|
|
1492
|
-
"Content-Type": "application/json",
|
|
1493
|
-
...options.headers
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
var googleRemoveBudget = (options) => (options.client ?? client).post({
|
|
1497
|
-
security: [{
|
|
1498
|
-
key: "secretKey",
|
|
1499
|
-
scheme: "bearer",
|
|
1500
|
-
type: "http"
|
|
1501
|
-
}],
|
|
1502
|
-
url: "/google/{connection_id}/budgets/{id}/remove",
|
|
1503
|
-
...options,
|
|
1504
|
-
headers: {
|
|
1505
|
-
"Content-Type": "application/json",
|
|
1506
|
-
...options.headers
|
|
1507
|
-
}
|
|
1508
|
-
});
|
|
1509
|
-
var googleListCampaigns = (options) => (options.client ?? client).get({
|
|
1510
|
-
security: [{
|
|
1511
|
-
key: "secretKey",
|
|
1512
|
-
scheme: "bearer",
|
|
1513
|
-
type: "http"
|
|
1514
|
-
}, {
|
|
1515
|
-
key: "frontendToken",
|
|
1516
|
-
scheme: "bearer",
|
|
1517
|
-
type: "http"
|
|
1518
|
-
}],
|
|
1519
|
-
url: "/google/{connection_id}/campaigns",
|
|
1520
|
-
...options
|
|
1521
|
-
});
|
|
1522
|
-
var googleCreateCampaign = (options) => (options.client ?? client).post({
|
|
1523
|
-
security: [{
|
|
1524
|
-
key: "secretKey",
|
|
1525
|
-
scheme: "bearer",
|
|
1526
|
-
type: "http"
|
|
1527
|
-
}, {
|
|
1528
|
-
key: "frontendToken",
|
|
1529
|
-
scheme: "bearer",
|
|
1530
|
-
type: "http"
|
|
1531
|
-
}],
|
|
1532
|
-
url: "/google/{connection_id}/campaigns",
|
|
1533
|
-
...options,
|
|
1534
|
-
headers: {
|
|
1535
|
-
"Content-Type": "application/json",
|
|
1536
|
-
...options.headers
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1539
|
-
var googleGetCampaign = (options) => (options.client ?? client).get({
|
|
1540
|
-
security: [{
|
|
1541
|
-
key: "secretKey",
|
|
1542
|
-
scheme: "bearer",
|
|
1543
|
-
type: "http"
|
|
1544
|
-
}, {
|
|
1545
|
-
key: "frontendToken",
|
|
1546
|
-
scheme: "bearer",
|
|
1547
|
-
type: "http"
|
|
1548
|
-
}],
|
|
1549
|
-
url: "/google/{connection_id}/campaigns/{id}",
|
|
1550
|
-
...options
|
|
1551
|
-
});
|
|
1552
|
-
var googleEditCampaign = (options) => (options.client ?? client).patch({
|
|
1553
|
-
security: [{
|
|
1554
|
-
key: "secretKey",
|
|
1555
|
-
scheme: "bearer",
|
|
1556
|
-
type: "http"
|
|
1557
|
-
}, {
|
|
1558
|
-
key: "frontendToken",
|
|
1559
|
-
scheme: "bearer",
|
|
1560
|
-
type: "http"
|
|
1561
|
-
}],
|
|
1562
|
-
url: "/google/{connection_id}/campaigns/{id}",
|
|
1563
|
-
...options,
|
|
1564
|
-
headers: {
|
|
1565
|
-
"Content-Type": "application/json",
|
|
1566
|
-
...options.headers
|
|
1567
|
-
}
|
|
1568
|
-
});
|
|
1569
|
-
var googleSetCampaignBidding = (options) => (options.client ?? client).patch({
|
|
1570
|
-
security: [{
|
|
1571
|
-
key: "secretKey",
|
|
1572
|
-
scheme: "bearer",
|
|
1573
|
-
type: "http"
|
|
1574
|
-
}],
|
|
1575
|
-
url: "/google/{connection_id}/campaigns/{id}/bidding",
|
|
1576
|
-
...options,
|
|
1577
|
-
headers: {
|
|
1578
|
-
"Content-Type": "application/json",
|
|
1579
|
-
...options.headers
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
var googleRemoveCampaign = (options) => (options.client ?? client).post({
|
|
1583
|
-
security: [{
|
|
1584
|
-
key: "secretKey",
|
|
1585
|
-
scheme: "bearer",
|
|
1586
|
-
type: "http"
|
|
1587
|
-
}, {
|
|
1588
|
-
key: "frontendToken",
|
|
1589
|
-
scheme: "bearer",
|
|
1590
|
-
type: "http"
|
|
1591
|
-
}],
|
|
1592
|
-
url: "/google/{connection_id}/campaigns/{id}/remove",
|
|
1593
|
-
...options,
|
|
1594
|
-
headers: {
|
|
1595
|
-
"Content-Type": "application/json",
|
|
1596
|
-
...options.headers
|
|
1597
|
-
}
|
|
1598
|
-
});
|
|
1599
|
-
var googlePauseCampaign = (options) => (options.client ?? client).post({
|
|
1600
|
-
security: [{
|
|
1601
|
-
key: "secretKey",
|
|
1602
|
-
scheme: "bearer",
|
|
1603
|
-
type: "http"
|
|
1604
|
-
}, {
|
|
1605
|
-
key: "frontendToken",
|
|
1606
|
-
scheme: "bearer",
|
|
1607
|
-
type: "http"
|
|
1608
|
-
}],
|
|
1609
|
-
url: "/google/{connection_id}/campaigns/{id}/pause",
|
|
1610
|
-
...options,
|
|
1611
|
-
headers: {
|
|
1612
|
-
"Content-Type": "application/json",
|
|
1613
|
-
...options.headers
|
|
1614
|
-
}
|
|
1615
|
-
});
|
|
1616
|
-
var googleEnableCampaign = (options) => (options.client ?? client).post({
|
|
1617
|
-
security: [{
|
|
1618
|
-
key: "secretKey",
|
|
1619
|
-
scheme: "bearer",
|
|
1620
|
-
type: "http"
|
|
1621
|
-
}, {
|
|
1622
|
-
key: "frontendToken",
|
|
1623
|
-
scheme: "bearer",
|
|
1624
|
-
type: "http"
|
|
1625
|
-
}],
|
|
1626
|
-
url: "/google/{connection_id}/campaigns/{id}/enable",
|
|
1627
|
-
...options,
|
|
1628
|
-
headers: {
|
|
1629
|
-
"Content-Type": "application/json",
|
|
1630
|
-
...options.headers
|
|
1631
|
-
}
|
|
1632
|
-
});
|
|
1633
|
-
var googleSearchGeoTargets = (options) => (options.client ?? client).get({
|
|
1634
|
-
security: [{
|
|
1635
|
-
key: "secretKey",
|
|
1636
|
-
scheme: "bearer",
|
|
1637
|
-
type: "http"
|
|
1638
|
-
}, {
|
|
1639
|
-
key: "frontendToken",
|
|
1640
|
-
scheme: "bearer",
|
|
1641
|
-
type: "http"
|
|
1642
|
-
}],
|
|
1643
|
-
url: "/google/{connection_id}/geo-targets/search",
|
|
1644
|
-
...options
|
|
1645
|
-
});
|
|
1646
|
-
var googleListCampaignCriteria = (options) => (options.client ?? client).get({
|
|
1647
|
-
security: [{
|
|
1648
|
-
key: "secretKey",
|
|
1649
|
-
scheme: "bearer",
|
|
1650
|
-
type: "http"
|
|
1651
|
-
}, {
|
|
1652
|
-
key: "frontendToken",
|
|
1653
|
-
scheme: "bearer",
|
|
1654
|
-
type: "http"
|
|
1655
|
-
}],
|
|
1656
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
|
|
1657
|
-
...options
|
|
1658
|
-
});
|
|
1659
|
-
var googleCreateCampaignCriterion = (options) => (options.client ?? client).post({
|
|
1660
|
-
security: [{
|
|
1661
|
-
key: "secretKey",
|
|
1662
|
-
scheme: "bearer",
|
|
1663
|
-
type: "http"
|
|
1664
|
-
}, {
|
|
1665
|
-
key: "frontendToken",
|
|
1666
|
-
scheme: "bearer",
|
|
1667
|
-
type: "http"
|
|
1668
|
-
}],
|
|
1669
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria",
|
|
1670
|
-
...options,
|
|
1671
|
-
headers: {
|
|
1672
|
-
"Content-Type": "application/json",
|
|
1673
|
-
...options.headers
|
|
1674
|
-
}
|
|
1675
|
-
});
|
|
1676
|
-
var googleRemoveCampaignCriterion = (options) => (options.client ?? client).post({
|
|
1677
|
-
security: [{
|
|
1678
|
-
key: "secretKey",
|
|
1679
|
-
scheme: "bearer",
|
|
1680
|
-
type: "http"
|
|
1681
|
-
}, {
|
|
1682
|
-
key: "frontendToken",
|
|
1683
|
-
scheme: "bearer",
|
|
1684
|
-
type: "http"
|
|
1685
|
-
}],
|
|
1686
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/criteria/{criterion_id}/remove",
|
|
1687
|
-
...options,
|
|
1688
|
-
headers: {
|
|
1689
|
-
"Content-Type": "application/json",
|
|
1690
|
-
...options.headers
|
|
1691
|
-
}
|
|
1692
|
-
});
|
|
1693
|
-
var googleSetCampaignGeoSettings = (options) => (options.client ?? client).patch({
|
|
1694
|
-
security: [{
|
|
1695
|
-
key: "secretKey",
|
|
1696
|
-
scheme: "bearer",
|
|
1697
|
-
type: "http"
|
|
1698
|
-
}, {
|
|
1699
|
-
key: "frontendToken",
|
|
1700
|
-
scheme: "bearer",
|
|
1701
|
-
type: "http"
|
|
1702
|
-
}],
|
|
1703
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/geo-settings",
|
|
1704
|
-
...options,
|
|
1705
|
-
headers: {
|
|
1706
|
-
"Content-Type": "application/json",
|
|
1707
|
-
...options.headers
|
|
1708
|
-
}
|
|
1709
|
-
});
|
|
1710
|
-
var googleListAdGroups = (options) => (options.client ?? client).get({
|
|
1711
|
-
security: [{
|
|
1712
|
-
key: "secretKey",
|
|
1713
|
-
scheme: "bearer",
|
|
1714
|
-
type: "http"
|
|
1715
|
-
}, {
|
|
1716
|
-
key: "frontendToken",
|
|
1717
|
-
scheme: "bearer",
|
|
1718
|
-
type: "http"
|
|
1719
|
-
}],
|
|
1720
|
-
url: "/google/{connection_id}/ad-groups",
|
|
1721
|
-
...options
|
|
1722
|
-
});
|
|
1723
|
-
var googleCreateAdGroup = (options) => (options.client ?? client).post({
|
|
1724
|
-
security: [{
|
|
1725
|
-
key: "secretKey",
|
|
1726
|
-
scheme: "bearer",
|
|
1727
|
-
type: "http"
|
|
1728
|
-
}, {
|
|
1729
|
-
key: "frontendToken",
|
|
1730
|
-
scheme: "bearer",
|
|
1731
|
-
type: "http"
|
|
1732
|
-
}],
|
|
1733
|
-
url: "/google/{connection_id}/ad-groups",
|
|
1734
|
-
...options,
|
|
1735
|
-
headers: {
|
|
1736
|
-
"Content-Type": "application/json",
|
|
1737
|
-
...options.headers
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
var googleGetAdGroup = (options) => (options.client ?? client).get({
|
|
1741
|
-
security: [{
|
|
1742
|
-
key: "secretKey",
|
|
1743
|
-
scheme: "bearer",
|
|
1744
|
-
type: "http"
|
|
1745
|
-
}, {
|
|
1746
|
-
key: "frontendToken",
|
|
1747
|
-
scheme: "bearer",
|
|
1748
|
-
type: "http"
|
|
1749
|
-
}],
|
|
1750
|
-
url: "/google/{connection_id}/ad-groups/{id}",
|
|
1751
|
-
...options
|
|
1752
|
-
});
|
|
1753
|
-
var googleEditAdGroup = (options) => (options.client ?? client).patch({
|
|
1754
|
-
security: [{
|
|
1755
|
-
key: "secretKey",
|
|
1756
|
-
scheme: "bearer",
|
|
1757
|
-
type: "http"
|
|
1758
|
-
}, {
|
|
1759
|
-
key: "frontendToken",
|
|
1760
|
-
scheme: "bearer",
|
|
1761
|
-
type: "http"
|
|
1762
|
-
}],
|
|
1763
|
-
url: "/google/{connection_id}/ad-groups/{id}",
|
|
1764
|
-
...options,
|
|
1765
|
-
headers: {
|
|
1766
|
-
"Content-Type": "application/json",
|
|
1767
|
-
...options.headers
|
|
1768
|
-
}
|
|
1769
|
-
});
|
|
1770
|
-
var googleSetAdGroupBids = (options) => (options.client ?? client).patch({
|
|
1771
|
-
security: [{
|
|
1772
|
-
key: "secretKey",
|
|
1773
|
-
scheme: "bearer",
|
|
1774
|
-
type: "http"
|
|
1775
|
-
}],
|
|
1776
|
-
url: "/google/{connection_id}/ad-groups/{id}/bids",
|
|
1777
|
-
...options,
|
|
1778
|
-
headers: {
|
|
1779
|
-
"Content-Type": "application/json",
|
|
1780
|
-
...options.headers
|
|
1781
|
-
}
|
|
1782
|
-
});
|
|
1783
|
-
var googleRemoveAdGroup = (options) => (options.client ?? client).post({
|
|
1784
|
-
security: [{
|
|
1785
|
-
key: "secretKey",
|
|
1786
|
-
scheme: "bearer",
|
|
1787
|
-
type: "http"
|
|
1788
|
-
}, {
|
|
1789
|
-
key: "frontendToken",
|
|
1790
|
-
scheme: "bearer",
|
|
1791
|
-
type: "http"
|
|
1792
|
-
}],
|
|
1793
|
-
url: "/google/{connection_id}/ad-groups/{id}/remove",
|
|
1794
|
-
...options,
|
|
1795
|
-
headers: {
|
|
1796
|
-
"Content-Type": "application/json",
|
|
1797
|
-
...options.headers
|
|
1798
|
-
}
|
|
1799
|
-
});
|
|
1800
|
-
var googlePauseAdGroup = (options) => (options.client ?? client).post({
|
|
1801
|
-
security: [{
|
|
1802
|
-
key: "secretKey",
|
|
1803
|
-
scheme: "bearer",
|
|
1804
|
-
type: "http"
|
|
1805
|
-
}, {
|
|
1806
|
-
key: "frontendToken",
|
|
1807
|
-
scheme: "bearer",
|
|
1808
|
-
type: "http"
|
|
1809
|
-
}],
|
|
1810
|
-
url: "/google/{connection_id}/ad-groups/{id}/pause",
|
|
1811
|
-
...options,
|
|
1812
|
-
headers: {
|
|
1813
|
-
"Content-Type": "application/json",
|
|
1814
|
-
...options.headers
|
|
1815
|
-
}
|
|
1816
|
-
});
|
|
1817
|
-
var googleEnableAdGroup = (options) => (options.client ?? client).post({
|
|
1818
|
-
security: [{
|
|
1819
|
-
key: "secretKey",
|
|
1820
|
-
scheme: "bearer",
|
|
1821
|
-
type: "http"
|
|
1822
|
-
}, {
|
|
1823
|
-
key: "frontendToken",
|
|
1824
|
-
scheme: "bearer",
|
|
1825
|
-
type: "http"
|
|
1826
|
-
}],
|
|
1827
|
-
url: "/google/{connection_id}/ad-groups/{id}/enable",
|
|
1828
|
-
...options,
|
|
1829
|
-
headers: {
|
|
1830
|
-
"Content-Type": "application/json",
|
|
1831
|
-
...options.headers
|
|
1832
|
-
}
|
|
1833
|
-
});
|
|
1834
|
-
var googleListAdGroupCriteria = (options) => (options.client ?? client).get({
|
|
1835
|
-
security: [{
|
|
1836
|
-
key: "secretKey",
|
|
1837
|
-
scheme: "bearer",
|
|
1838
|
-
type: "http"
|
|
1839
|
-
}, {
|
|
1840
|
-
key: "frontendToken",
|
|
1841
|
-
scheme: "bearer",
|
|
1842
|
-
type: "http"
|
|
1843
|
-
}],
|
|
1844
|
-
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
|
|
1845
|
-
...options
|
|
1846
|
-
});
|
|
1847
|
-
var googleCreateAdGroupCriterion = (options) => (options.client ?? client).post({
|
|
1848
|
-
security: [{
|
|
1849
|
-
key: "secretKey",
|
|
1850
|
-
scheme: "bearer",
|
|
1851
|
-
type: "http"
|
|
1852
|
-
}, {
|
|
1853
|
-
key: "frontendToken",
|
|
1854
|
-
scheme: "bearer",
|
|
1855
|
-
type: "http"
|
|
1856
|
-
}],
|
|
1857
|
-
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria",
|
|
1858
|
-
...options,
|
|
1859
|
-
headers: {
|
|
1860
|
-
"Content-Type": "application/json",
|
|
1861
|
-
...options.headers
|
|
1862
|
-
}
|
|
1863
|
-
});
|
|
1864
|
-
var googleRemoveAdGroupCriterion = (options) => (options.client ?? client).post({
|
|
1865
|
-
security: [{
|
|
1866
|
-
key: "secretKey",
|
|
1867
|
-
scheme: "bearer",
|
|
1868
|
-
type: "http"
|
|
1869
|
-
}, {
|
|
1870
|
-
key: "frontendToken",
|
|
1871
|
-
scheme: "bearer",
|
|
1872
|
-
type: "http"
|
|
1873
|
-
}],
|
|
1874
|
-
url: "/google/{connection_id}/ad-groups/{ad_group_id}/criteria/{criterion_id}/remove",
|
|
1875
|
-
...options,
|
|
1876
|
-
headers: {
|
|
1877
|
-
"Content-Type": "application/json",
|
|
1878
|
-
...options.headers
|
|
1879
|
-
}
|
|
1880
|
-
});
|
|
1881
|
-
var googleListAudiences = (options) => (options.client ?? client).get({
|
|
1882
|
-
security: [{
|
|
1883
|
-
key: "secretKey",
|
|
1884
|
-
scheme: "bearer",
|
|
1885
|
-
type: "http"
|
|
1886
|
-
}, {
|
|
1887
|
-
key: "frontendToken",
|
|
1888
|
-
scheme: "bearer",
|
|
1889
|
-
type: "http"
|
|
1890
|
-
}],
|
|
1891
|
-
url: "/google/{connection_id}/audiences",
|
|
1892
|
-
...options
|
|
1893
|
-
});
|
|
1894
|
-
var googleSetCampaignTargetingSetting = (options) => (options.client ?? client).patch({
|
|
1895
|
-
security: [{
|
|
1896
|
-
key: "secretKey",
|
|
1897
|
-
scheme: "bearer",
|
|
1898
|
-
type: "http"
|
|
1899
|
-
}, {
|
|
1900
|
-
key: "frontendToken",
|
|
1901
|
-
scheme: "bearer",
|
|
1902
|
-
type: "http"
|
|
1903
|
-
}],
|
|
1904
|
-
url: "/google/{connection_id}/campaigns/{campaign_id}/targeting-setting",
|
|
1905
|
-
...options,
|
|
1906
|
-
headers: {
|
|
1907
|
-
"Content-Type": "application/json",
|
|
1908
|
-
...options.headers
|
|
1909
|
-
}
|
|
1910
|
-
});
|
|
1911
|
-
var googleListAds = (options) => (options.client ?? client).get({
|
|
1912
|
-
security: [{
|
|
1913
|
-
key: "secretKey",
|
|
1914
|
-
scheme: "bearer",
|
|
1915
|
-
type: "http"
|
|
1916
|
-
}, {
|
|
1917
|
-
key: "frontendToken",
|
|
1918
|
-
scheme: "bearer",
|
|
1919
|
-
type: "http"
|
|
1920
|
-
}],
|
|
1921
|
-
url: "/google/{connection_id}/ads",
|
|
1922
|
-
...options
|
|
1923
|
-
});
|
|
1924
|
-
var googleCreateAd = (options) => (options.client ?? client).post({
|
|
1925
|
-
security: [{
|
|
1926
|
-
key: "secretKey",
|
|
1927
|
-
scheme: "bearer",
|
|
1928
|
-
type: "http"
|
|
1929
|
-
}, {
|
|
1930
|
-
key: "frontendToken",
|
|
1931
|
-
scheme: "bearer",
|
|
1932
|
-
type: "http"
|
|
1933
|
-
}],
|
|
1934
|
-
url: "/google/{connection_id}/ads",
|
|
1935
|
-
...options,
|
|
1936
|
-
headers: {
|
|
1937
|
-
"Content-Type": "application/json",
|
|
1938
|
-
...options.headers
|
|
1939
|
-
}
|
|
1940
|
-
});
|
|
1941
|
-
var googleGetAd = (options) => (options.client ?? client).get({
|
|
1942
|
-
security: [{
|
|
1943
|
-
key: "secretKey",
|
|
1944
|
-
scheme: "bearer",
|
|
1945
|
-
type: "http"
|
|
1946
|
-
}, {
|
|
1947
|
-
key: "frontendToken",
|
|
1948
|
-
scheme: "bearer",
|
|
1949
|
-
type: "http"
|
|
1950
|
-
}],
|
|
1951
|
-
url: "/google/{connection_id}/ads/{id}",
|
|
1952
|
-
...options
|
|
1953
|
-
});
|
|
1954
|
-
var googleEditAd = (options) => (options.client ?? client).patch({
|
|
1955
|
-
security: [{
|
|
1956
|
-
key: "secretKey",
|
|
1957
|
-
scheme: "bearer",
|
|
1958
|
-
type: "http"
|
|
1959
|
-
}, {
|
|
1960
|
-
key: "frontendToken",
|
|
1961
|
-
scheme: "bearer",
|
|
1962
|
-
type: "http"
|
|
1963
|
-
}],
|
|
1964
|
-
url: "/google/{connection_id}/ads/{id}",
|
|
1965
|
-
...options,
|
|
1966
|
-
headers: {
|
|
1967
|
-
"Content-Type": "application/json",
|
|
1968
|
-
...options.headers
|
|
1969
|
-
}
|
|
1970
|
-
});
|
|
1971
|
-
var googleCreateDisplayAd = (options) => (options.client ?? client).post({
|
|
1972
|
-
security: [{
|
|
1973
|
-
key: "secretKey",
|
|
1974
|
-
scheme: "bearer",
|
|
1975
|
-
type: "http"
|
|
1976
|
-
}, {
|
|
1977
|
-
key: "frontendToken",
|
|
1978
|
-
scheme: "bearer",
|
|
1979
|
-
type: "http"
|
|
1980
|
-
}],
|
|
1981
|
-
url: "/google/{connection_id}/display-ads",
|
|
1982
|
-
...options,
|
|
1983
|
-
headers: {
|
|
1984
|
-
"Content-Type": "application/json",
|
|
1985
|
-
...options.headers
|
|
1986
|
-
}
|
|
1987
|
-
});
|
|
1988
|
-
var googleEditDisplayAd = (options) => (options.client ?? client).patch({
|
|
1989
|
-
security: [{
|
|
1990
|
-
key: "secretKey",
|
|
1991
|
-
scheme: "bearer",
|
|
1992
|
-
type: "http"
|
|
1993
|
-
}, {
|
|
1994
|
-
key: "frontendToken",
|
|
1995
|
-
scheme: "bearer",
|
|
1996
|
-
type: "http"
|
|
1997
|
-
}],
|
|
1998
|
-
url: "/google/{connection_id}/display-ads/{id}",
|
|
1999
|
-
...options,
|
|
2000
|
-
headers: {
|
|
2001
|
-
"Content-Type": "application/json",
|
|
2002
|
-
...options.headers
|
|
2003
|
-
}
|
|
2004
|
-
});
|
|
2005
|
-
var googleRemoveAd = (options) => (options.client ?? client).post({
|
|
2006
|
-
security: [{
|
|
2007
|
-
key: "secretKey",
|
|
2008
|
-
scheme: "bearer",
|
|
2009
|
-
type: "http"
|
|
2010
|
-
}, {
|
|
2011
|
-
key: "frontendToken",
|
|
2012
|
-
scheme: "bearer",
|
|
2013
|
-
type: "http"
|
|
2014
|
-
}],
|
|
2015
|
-
url: "/google/{connection_id}/ads/{id}/remove",
|
|
2016
|
-
...options,
|
|
2017
|
-
headers: {
|
|
2018
|
-
"Content-Type": "application/json",
|
|
2019
|
-
...options.headers
|
|
2020
|
-
}
|
|
2021
|
-
});
|
|
2022
|
-
var googlePauseAd = (options) => (options.client ?? client).post({
|
|
2023
|
-
security: [{
|
|
2024
|
-
key: "secretKey",
|
|
2025
|
-
scheme: "bearer",
|
|
2026
|
-
type: "http"
|
|
2027
|
-
}, {
|
|
2028
|
-
key: "frontendToken",
|
|
2029
|
-
scheme: "bearer",
|
|
2030
|
-
type: "http"
|
|
2031
|
-
}],
|
|
2032
|
-
url: "/google/{connection_id}/ads/{id}/pause",
|
|
2033
|
-
...options,
|
|
2034
|
-
headers: {
|
|
2035
|
-
"Content-Type": "application/json",
|
|
2036
|
-
...options.headers
|
|
2037
|
-
}
|
|
2038
|
-
});
|
|
2039
|
-
var googleEnableAd = (options) => (options.client ?? client).post({
|
|
2040
|
-
security: [{
|
|
2041
|
-
key: "secretKey",
|
|
2042
|
-
scheme: "bearer",
|
|
2043
|
-
type: "http"
|
|
2044
|
-
}, {
|
|
2045
|
-
key: "frontendToken",
|
|
2046
|
-
scheme: "bearer",
|
|
2047
|
-
type: "http"
|
|
2048
|
-
}],
|
|
2049
|
-
url: "/google/{connection_id}/ads/{id}/enable",
|
|
2050
|
-
...options,
|
|
2051
|
-
headers: {
|
|
2052
|
-
"Content-Type": "application/json",
|
|
2053
|
-
...options.headers
|
|
2054
|
-
}
|
|
2055
|
-
});
|
|
2056
|
-
var googleListKeywords = (options) => (options.client ?? client).get({
|
|
2057
|
-
security: [{
|
|
2058
|
-
key: "secretKey",
|
|
2059
|
-
scheme: "bearer",
|
|
2060
|
-
type: "http"
|
|
2061
|
-
}, {
|
|
2062
|
-
key: "frontendToken",
|
|
2063
|
-
scheme: "bearer",
|
|
2064
|
-
type: "http"
|
|
2065
|
-
}],
|
|
2066
|
-
url: "/google/{connection_id}/keywords",
|
|
2067
|
-
...options
|
|
2068
|
-
});
|
|
2069
|
-
var googleCreateKeyword = (options) => (options.client ?? client).post({
|
|
2070
|
-
security: [{
|
|
2071
|
-
key: "secretKey",
|
|
2072
|
-
scheme: "bearer",
|
|
2073
|
-
type: "http"
|
|
2074
|
-
}, {
|
|
2075
|
-
key: "frontendToken",
|
|
2076
|
-
scheme: "bearer",
|
|
2077
|
-
type: "http"
|
|
2078
|
-
}],
|
|
2079
|
-
url: "/google/{connection_id}/keywords",
|
|
2080
|
-
...options,
|
|
2081
|
-
headers: {
|
|
2082
|
-
"Content-Type": "application/json",
|
|
2083
|
-
...options.headers
|
|
2084
|
-
}
|
|
2085
|
-
});
|
|
2086
|
-
var googleGetKeyword = (options) => (options.client ?? client).get({
|
|
2087
|
-
security: [{
|
|
2088
|
-
key: "secretKey",
|
|
2089
|
-
scheme: "bearer",
|
|
2090
|
-
type: "http"
|
|
2091
|
-
}, {
|
|
2092
|
-
key: "frontendToken",
|
|
2093
|
-
scheme: "bearer",
|
|
2094
|
-
type: "http"
|
|
2095
|
-
}],
|
|
2096
|
-
url: "/google/{connection_id}/keywords/{id}",
|
|
2097
|
-
...options
|
|
2098
|
-
});
|
|
2099
|
-
var googleSetKeywordBid = (options) => (options.client ?? client).patch({
|
|
2100
|
-
security: [{
|
|
2101
|
-
key: "secretKey",
|
|
2102
|
-
scheme: "bearer",
|
|
2103
|
-
type: "http"
|
|
2104
|
-
}],
|
|
2105
|
-
url: "/google/{connection_id}/keywords/{id}/bid",
|
|
2106
|
-
...options,
|
|
2107
|
-
headers: {
|
|
2108
|
-
"Content-Type": "application/json",
|
|
2109
|
-
...options.headers
|
|
2110
|
-
}
|
|
2111
|
-
});
|
|
2112
|
-
var googleRemoveKeyword = (options) => (options.client ?? client).post({
|
|
2113
|
-
security: [{
|
|
2114
|
-
key: "secretKey",
|
|
2115
|
-
scheme: "bearer",
|
|
2116
|
-
type: "http"
|
|
2117
|
-
}, {
|
|
2118
|
-
key: "frontendToken",
|
|
2119
|
-
scheme: "bearer",
|
|
2120
|
-
type: "http"
|
|
2121
|
-
}],
|
|
2122
|
-
url: "/google/{connection_id}/keywords/{id}/remove",
|
|
2123
|
-
...options,
|
|
2124
|
-
headers: {
|
|
2125
|
-
"Content-Type": "application/json",
|
|
2126
|
-
...options.headers
|
|
2127
|
-
}
|
|
2128
|
-
});
|
|
2129
|
-
var googlePauseKeyword = (options) => (options.client ?? client).post({
|
|
2130
|
-
security: [{
|
|
2131
|
-
key: "secretKey",
|
|
2132
|
-
scheme: "bearer",
|
|
2133
|
-
type: "http"
|
|
2134
|
-
}, {
|
|
2135
|
-
key: "frontendToken",
|
|
2136
|
-
scheme: "bearer",
|
|
2137
|
-
type: "http"
|
|
2138
|
-
}],
|
|
2139
|
-
url: "/google/{connection_id}/keywords/{id}/pause",
|
|
2140
|
-
...options,
|
|
2141
|
-
headers: {
|
|
2142
|
-
"Content-Type": "application/json",
|
|
2143
|
-
...options.headers
|
|
2144
|
-
}
|
|
2145
|
-
});
|
|
2146
|
-
var googleEnableKeyword = (options) => (options.client ?? client).post({
|
|
2147
|
-
security: [{
|
|
2148
|
-
key: "secretKey",
|
|
2149
|
-
scheme: "bearer",
|
|
2150
|
-
type: "http"
|
|
2151
|
-
}, {
|
|
2152
|
-
key: "frontendToken",
|
|
2153
|
-
scheme: "bearer",
|
|
2154
|
-
type: "http"
|
|
2155
|
-
}],
|
|
2156
|
-
url: "/google/{connection_id}/keywords/{id}/enable",
|
|
2157
|
-
...options,
|
|
2158
|
-
headers: {
|
|
2159
|
-
"Content-Type": "application/json",
|
|
2160
|
-
...options.headers
|
|
2161
|
-
}
|
|
2162
|
-
});
|
|
2163
|
-
var googleListConversionActions = (options) => (options.client ?? client).get({
|
|
2164
|
-
security: [{
|
|
2165
|
-
key: "secretKey",
|
|
2166
|
-
scheme: "bearer",
|
|
2167
|
-
type: "http"
|
|
2168
|
-
}, {
|
|
2169
|
-
key: "frontendToken",
|
|
2170
|
-
scheme: "bearer",
|
|
2171
|
-
type: "http"
|
|
2172
|
-
}],
|
|
2173
|
-
url: "/google/{connection_id}/conversion-actions",
|
|
2174
|
-
...options
|
|
2175
|
-
});
|
|
2176
|
-
var googleCreateConversionAction = (options) => (options.client ?? client).post({
|
|
2177
|
-
security: [{
|
|
2178
|
-
key: "secretKey",
|
|
2179
|
-
scheme: "bearer",
|
|
2180
|
-
type: "http"
|
|
2181
|
-
}, {
|
|
2182
|
-
key: "frontendToken",
|
|
2183
|
-
scheme: "bearer",
|
|
2184
|
-
type: "http"
|
|
2185
|
-
}],
|
|
2186
|
-
url: "/google/{connection_id}/conversion-actions",
|
|
2187
|
-
...options,
|
|
2188
|
-
headers: {
|
|
2189
|
-
"Content-Type": "application/json",
|
|
2190
|
-
...options.headers
|
|
2191
|
-
}
|
|
2192
|
-
});
|
|
2193
|
-
var googleGetConversionAction = (options) => (options.client ?? client).get({
|
|
2194
|
-
security: [{
|
|
2195
|
-
key: "secretKey",
|
|
2196
|
-
scheme: "bearer",
|
|
2197
|
-
type: "http"
|
|
2198
|
-
}, {
|
|
2199
|
-
key: "frontendToken",
|
|
2200
|
-
scheme: "bearer",
|
|
2201
|
-
type: "http"
|
|
2202
|
-
}],
|
|
2203
|
-
url: "/google/{connection_id}/conversion-actions/{id}",
|
|
2204
|
-
...options
|
|
2205
|
-
});
|
|
2206
|
-
var googleUpdateConversionAction = (options) => (options.client ?? client).patch({
|
|
2207
|
-
security: [{
|
|
2208
|
-
key: "secretKey",
|
|
2209
|
-
scheme: "bearer",
|
|
2210
|
-
type: "http"
|
|
2211
|
-
}, {
|
|
2212
|
-
key: "frontendToken",
|
|
2213
|
-
scheme: "bearer",
|
|
2214
|
-
type: "http"
|
|
2215
|
-
}],
|
|
2216
|
-
url: "/google/{connection_id}/conversion-actions/{id}",
|
|
2217
|
-
...options,
|
|
2218
|
-
headers: {
|
|
2219
|
-
"Content-Type": "application/json",
|
|
2220
|
-
...options.headers
|
|
2221
|
-
}
|
|
2222
|
-
});
|
|
2223
|
-
var googleRemoveConversionAction = (options) => (options.client ?? client).post({
|
|
2224
|
-
security: [{
|
|
2225
|
-
key: "secretKey",
|
|
2226
|
-
scheme: "bearer",
|
|
2227
|
-
type: "http"
|
|
2228
|
-
}, {
|
|
2229
|
-
key: "frontendToken",
|
|
2230
|
-
scheme: "bearer",
|
|
2231
|
-
type: "http"
|
|
2232
|
-
}],
|
|
2233
|
-
url: "/google/{connection_id}/conversion-actions/{id}/remove",
|
|
2234
|
-
...options,
|
|
2235
|
-
headers: {
|
|
2236
|
-
"Content-Type": "application/json",
|
|
2237
|
-
...options.headers
|
|
2238
|
-
}
|
|
2239
|
-
});
|
|
2240
|
-
var googleSendConversions = (options) => (options.client ?? client).post({
|
|
2241
|
-
security: [{
|
|
2242
|
-
key: "secretKey",
|
|
2243
|
-
scheme: "bearer",
|
|
2244
|
-
type: "http"
|
|
2245
|
-
}, {
|
|
2246
|
-
key: "frontendToken",
|
|
2247
|
-
scheme: "bearer",
|
|
2248
|
-
type: "http"
|
|
2249
|
-
}],
|
|
2250
|
-
url: "/google/{connection_id}/conversions:send",
|
|
2251
|
-
...options,
|
|
2252
|
-
headers: {
|
|
2253
|
-
"Content-Type": "application/json",
|
|
2254
|
-
...options.headers
|
|
2255
|
-
}
|
|
2256
|
-
});
|
|
2257
|
-
var googleGetConversionStatus = (options) => (options.client ?? client).get({
|
|
2258
|
-
security: [{
|
|
2259
|
-
key: "secretKey",
|
|
2260
|
-
scheme: "bearer",
|
|
2261
|
-
type: "http"
|
|
2262
|
-
}, {
|
|
2263
|
-
key: "frontendToken",
|
|
2264
|
-
scheme: "bearer",
|
|
2265
|
-
type: "http"
|
|
2266
|
-
}],
|
|
2267
|
-
url: "/google/{connection_id}/conversions/status",
|
|
2268
|
-
...options
|
|
2269
|
-
});
|
|
2270
|
-
var googleListConversionRequests = (options) => (options.client ?? client).get({
|
|
2271
|
-
security: [{
|
|
2272
|
-
key: "secretKey",
|
|
2273
|
-
scheme: "bearer",
|
|
2274
|
-
type: "http"
|
|
2275
|
-
}, {
|
|
2276
|
-
key: "frontendToken",
|
|
2277
|
-
scheme: "bearer",
|
|
2278
|
-
type: "http"
|
|
2279
|
-
}],
|
|
2280
|
-
url: "/google/{connection_id}/conversions",
|
|
2281
|
-
...options
|
|
2282
|
-
});
|
|
2283
|
-
var googleListConversionGoals = (options) => (options.client ?? client).get({
|
|
2284
|
-
security: [{
|
|
2285
|
-
key: "secretKey",
|
|
2286
|
-
scheme: "bearer",
|
|
2287
|
-
type: "http"
|
|
2288
|
-
}, {
|
|
2289
|
-
key: "frontendToken",
|
|
2290
|
-
scheme: "bearer",
|
|
2291
|
-
type: "http"
|
|
2292
|
-
}],
|
|
2293
|
-
url: "/google/{connection_id}/conversion-goals",
|
|
2294
|
-
...options
|
|
2295
|
-
});
|
|
2296
|
-
var googleSetConversionGoal = (options) => (options.client ?? client).post({
|
|
2297
|
-
security: [{
|
|
2298
|
-
key: "secretKey",
|
|
2299
|
-
scheme: "bearer",
|
|
2300
|
-
type: "http"
|
|
2301
|
-
}, {
|
|
2302
|
-
key: "frontendToken",
|
|
2303
|
-
scheme: "bearer",
|
|
2304
|
-
type: "http"
|
|
2305
|
-
}],
|
|
2306
|
-
url: "/google/{connection_id}/conversion-goals",
|
|
2307
|
-
...options,
|
|
2308
|
-
headers: {
|
|
2309
|
-
"Content-Type": "application/json",
|
|
2310
|
-
...options.headers
|
|
2311
|
-
}
|
|
2312
|
-
});
|
|
2313
|
-
var googleUploadImageAsset = (options) => (options.client ?? client).post({
|
|
2314
|
-
security: [{
|
|
2315
|
-
key: "secretKey",
|
|
2316
|
-
scheme: "bearer",
|
|
2317
|
-
type: "http"
|
|
2318
|
-
}, {
|
|
2319
|
-
key: "frontendToken",
|
|
2320
|
-
scheme: "bearer",
|
|
2321
|
-
type: "http"
|
|
2322
|
-
}],
|
|
2323
|
-
url: "/google/{connection_id}/assets/images",
|
|
2324
|
-
...options,
|
|
2325
|
-
headers: {
|
|
2326
|
-
"Content-Type": "application/json",
|
|
2327
|
-
...options.headers
|
|
2328
|
-
}
|
|
2329
|
-
});
|
|
2330
|
-
var googleUploadYoutubeVideoAsset = (options) => (options.client ?? client).post({
|
|
2331
|
-
security: [{
|
|
2332
|
-
key: "secretKey",
|
|
2333
|
-
scheme: "bearer",
|
|
2334
|
-
type: "http"
|
|
2335
|
-
}, {
|
|
2336
|
-
key: "frontendToken",
|
|
2337
|
-
scheme: "bearer",
|
|
2338
|
-
type: "http"
|
|
2339
|
-
}],
|
|
2340
|
-
url: "/google/{connection_id}/assets/youtube-video",
|
|
2341
|
-
...options,
|
|
2342
|
-
headers: {
|
|
2343
|
-
"Content-Type": "application/json",
|
|
2344
|
-
...options.headers
|
|
2345
|
-
}
|
|
2346
|
-
});
|
|
2347
|
-
var googleListAssetGroups = (options) => (options.client ?? client).get({
|
|
2348
|
-
security: [{
|
|
2349
|
-
key: "secretKey",
|
|
2350
|
-
scheme: "bearer",
|
|
2351
|
-
type: "http"
|
|
2352
|
-
}, {
|
|
2353
|
-
key: "frontendToken",
|
|
2354
|
-
scheme: "bearer",
|
|
2355
|
-
type: "http"
|
|
2356
|
-
}],
|
|
2357
|
-
url: "/google/{connection_id}/asset-groups",
|
|
2358
|
-
...options
|
|
2359
|
-
});
|
|
2360
|
-
var googleGetAssetGroup = (options) => (options.client ?? client).get({
|
|
2361
|
-
security: [{
|
|
2362
|
-
key: "secretKey",
|
|
2363
|
-
scheme: "bearer",
|
|
2364
|
-
type: "http"
|
|
2365
|
-
}, {
|
|
2366
|
-
key: "frontendToken",
|
|
2367
|
-
scheme: "bearer",
|
|
2368
|
-
type: "http"
|
|
2369
|
-
}],
|
|
2370
|
-
url: "/google/{connection_id}/asset-groups/{id}",
|
|
2371
|
-
...options
|
|
2372
|
-
});
|
|
2373
|
-
var googleEditAssetGroup = (options) => (options.client ?? client).patch({
|
|
2374
|
-
security: [{
|
|
2375
|
-
key: "secretKey",
|
|
2376
|
-
scheme: "bearer",
|
|
2377
|
-
type: "http"
|
|
2378
|
-
}, {
|
|
2379
|
-
key: "frontendToken",
|
|
2380
|
-
scheme: "bearer",
|
|
2381
|
-
type: "http"
|
|
2382
|
-
}],
|
|
2383
|
-
url: "/google/{connection_id}/asset-groups/{id}",
|
|
2384
|
-
...options,
|
|
2385
|
-
headers: {
|
|
2386
|
-
"Content-Type": "application/json",
|
|
2387
|
-
...options.headers
|
|
2388
|
-
}
|
|
2389
|
-
});
|
|
2390
|
-
var googleCreateAssetGroup = (options) => (options.client ?? client).post({
|
|
2391
|
-
security: [{
|
|
2392
|
-
key: "secretKey",
|
|
2393
|
-
scheme: "bearer",
|
|
2394
|
-
type: "http"
|
|
2395
|
-
}, {
|
|
2396
|
-
key: "frontendToken",
|
|
2397
|
-
scheme: "bearer",
|
|
2398
|
-
type: "http"
|
|
2399
|
-
}],
|
|
2400
|
-
url: "/google/{connection_id}/performance-max/{campaign_id}/asset-groups",
|
|
2401
|
-
...options,
|
|
2402
|
-
headers: {
|
|
2403
|
-
"Content-Type": "application/json",
|
|
2404
|
-
...options.headers
|
|
2405
|
-
}
|
|
2406
|
-
});
|
|
2407
|
-
var googlePauseAssetGroup = (options) => (options.client ?? client).post({
|
|
2408
|
-
security: [{
|
|
2409
|
-
key: "secretKey",
|
|
2410
|
-
scheme: "bearer",
|
|
2411
|
-
type: "http"
|
|
2412
|
-
}, {
|
|
2413
|
-
key: "frontendToken",
|
|
2414
|
-
scheme: "bearer",
|
|
2415
|
-
type: "http"
|
|
2416
|
-
}],
|
|
2417
|
-
url: "/google/{connection_id}/asset-groups/{id}/pause",
|
|
2418
|
-
...options,
|
|
2419
|
-
headers: {
|
|
2420
|
-
"Content-Type": "application/json",
|
|
2421
|
-
...options.headers
|
|
2422
|
-
}
|
|
2423
|
-
});
|
|
2424
|
-
var googleEnableAssetGroup = (options) => (options.client ?? client).post({
|
|
2425
|
-
security: [{
|
|
2426
|
-
key: "secretKey",
|
|
2427
|
-
scheme: "bearer",
|
|
2428
|
-
type: "http"
|
|
2429
|
-
}, {
|
|
2430
|
-
key: "frontendToken",
|
|
2431
|
-
scheme: "bearer",
|
|
2432
|
-
type: "http"
|
|
2433
|
-
}],
|
|
2434
|
-
url: "/google/{connection_id}/asset-groups/{id}/enable",
|
|
2435
|
-
...options,
|
|
2436
|
-
headers: {
|
|
2437
|
-
"Content-Type": "application/json",
|
|
2438
|
-
...options.headers
|
|
2439
|
-
}
|
|
2440
|
-
});
|
|
2441
|
-
var googleRemoveAssetGroup = (options) => (options.client ?? client).post({
|
|
2442
|
-
security: [{
|
|
2443
|
-
key: "secretKey",
|
|
2444
|
-
scheme: "bearer",
|
|
2445
|
-
type: "http"
|
|
2446
|
-
}, {
|
|
2447
|
-
key: "frontendToken",
|
|
2448
|
-
scheme: "bearer",
|
|
2449
|
-
type: "http"
|
|
2450
|
-
}],
|
|
2451
|
-
url: "/google/{connection_id}/asset-groups/{id}/remove",
|
|
2452
|
-
...options,
|
|
2453
|
-
headers: {
|
|
2454
|
-
"Content-Type": "application/json",
|
|
2455
|
-
...options.headers
|
|
2456
|
-
}
|
|
2457
|
-
});
|
|
2458
|
-
var googleListAssetGroupAssets = (options) => (options.client ?? client).get({
|
|
2459
|
-
security: [{
|
|
2460
|
-
key: "secretKey",
|
|
2461
|
-
scheme: "bearer",
|
|
2462
|
-
type: "http"
|
|
2463
|
-
}, {
|
|
2464
|
-
key: "frontendToken",
|
|
2465
|
-
scheme: "bearer",
|
|
2466
|
-
type: "http"
|
|
2467
|
-
}],
|
|
2468
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
|
|
2469
|
-
...options
|
|
2470
|
-
});
|
|
2471
|
-
var googleAttachAssetGroupAsset = (options) => (options.client ?? client).post({
|
|
2472
|
-
security: [{
|
|
2473
|
-
key: "secretKey",
|
|
2474
|
-
scheme: "bearer",
|
|
2475
|
-
type: "http"
|
|
2476
|
-
}, {
|
|
2477
|
-
key: "frontendToken",
|
|
2478
|
-
scheme: "bearer",
|
|
2479
|
-
type: "http"
|
|
2480
|
-
}],
|
|
2481
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets",
|
|
2482
|
-
...options,
|
|
2483
|
-
headers: {
|
|
2484
|
-
"Content-Type": "application/json",
|
|
2485
|
-
...options.headers
|
|
2486
|
-
}
|
|
2487
|
-
});
|
|
2488
|
-
var googleRemoveAssetGroupAsset = (options) => (options.client ?? client).post({
|
|
2489
|
-
security: [{
|
|
2490
|
-
key: "secretKey",
|
|
2491
|
-
scheme: "bearer",
|
|
2492
|
-
type: "http"
|
|
2493
|
-
}, {
|
|
2494
|
-
key: "frontendToken",
|
|
2495
|
-
scheme: "bearer",
|
|
2496
|
-
type: "http"
|
|
2497
|
-
}],
|
|
2498
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/assets/{id}/remove",
|
|
2499
|
-
...options,
|
|
2500
|
-
headers: {
|
|
2501
|
-
"Content-Type": "application/json",
|
|
2502
|
-
...options.headers
|
|
2503
|
-
}
|
|
2504
|
-
});
|
|
2505
|
-
var googleListAssetGroupSignals = (options) => (options.client ?? client).get({
|
|
2506
|
-
security: [{
|
|
2507
|
-
key: "secretKey",
|
|
2508
|
-
scheme: "bearer",
|
|
2509
|
-
type: "http"
|
|
2510
|
-
}, {
|
|
2511
|
-
key: "frontendToken",
|
|
2512
|
-
scheme: "bearer",
|
|
2513
|
-
type: "http"
|
|
2514
|
-
}],
|
|
2515
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
|
|
2516
|
-
...options
|
|
2517
|
-
});
|
|
2518
|
-
var googleCreateAssetGroupSignal = (options) => (options.client ?? client).post({
|
|
2519
|
-
security: [{
|
|
2520
|
-
key: "secretKey",
|
|
2521
|
-
scheme: "bearer",
|
|
2522
|
-
type: "http"
|
|
2523
|
-
}, {
|
|
2524
|
-
key: "frontendToken",
|
|
2525
|
-
scheme: "bearer",
|
|
2526
|
-
type: "http"
|
|
2527
|
-
}],
|
|
2528
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals",
|
|
2529
|
-
...options,
|
|
2530
|
-
headers: {
|
|
2531
|
-
"Content-Type": "application/json",
|
|
2532
|
-
...options.headers
|
|
2533
|
-
}
|
|
2534
|
-
});
|
|
2535
|
-
var googleRemoveAssetGroupSignal = (options) => (options.client ?? client).post({
|
|
2536
|
-
security: [{
|
|
2537
|
-
key: "secretKey",
|
|
2538
|
-
scheme: "bearer",
|
|
2539
|
-
type: "http"
|
|
2540
|
-
}, {
|
|
2541
|
-
key: "frontendToken",
|
|
2542
|
-
scheme: "bearer",
|
|
2543
|
-
type: "http"
|
|
2544
|
-
}],
|
|
2545
|
-
url: "/google/{connection_id}/asset-groups/{asset_group_id}/signals/{id}/remove",
|
|
2546
|
-
...options,
|
|
2547
|
-
headers: {
|
|
2548
|
-
"Content-Type": "application/json",
|
|
2549
|
-
...options.headers
|
|
2550
|
-
}
|
|
2551
|
-
});
|
|
2552
|
-
var googleCreatePerformanceMax = (options) => (options.client ?? client).post({
|
|
2553
|
-
security: [{
|
|
2554
|
-
key: "secretKey",
|
|
2555
|
-
scheme: "bearer",
|
|
2556
|
-
type: "http"
|
|
2557
|
-
}],
|
|
2558
|
-
url: "/google/{connection_id}/performance-max",
|
|
2559
|
-
...options,
|
|
2560
|
-
headers: {
|
|
2561
|
-
"Content-Type": "application/json",
|
|
2562
|
-
...options.headers
|
|
2563
|
-
}
|
|
2564
|
-
});
|
|
2565
|
-
var tiktokCreatorInfo = (options) => (options.client ?? client).get({
|
|
2566
|
-
security: [{
|
|
2567
|
-
key: "secretKey",
|
|
2568
|
-
scheme: "bearer",
|
|
2569
|
-
type: "http"
|
|
2570
|
-
}, {
|
|
2571
|
-
key: "frontendToken",
|
|
2572
|
-
scheme: "bearer",
|
|
2573
|
-
type: "http"
|
|
2574
|
-
}],
|
|
2575
|
-
url: "/connections/{id}/tiktok/creator-info",
|
|
2576
|
-
...options
|
|
2577
|
-
});
|
|
2578
|
-
var tiktokAdsListAdvertisers = (options) => (options.client ?? client).get({
|
|
2579
|
-
security: [{
|
|
2580
|
-
key: "secretKey",
|
|
2581
|
-
scheme: "bearer",
|
|
2582
|
-
type: "http"
|
|
2583
|
-
}, {
|
|
2584
|
-
key: "frontendToken",
|
|
2585
|
-
scheme: "bearer",
|
|
2586
|
-
type: "http"
|
|
2587
|
-
}],
|
|
2588
|
-
url: "/tiktok/{connection_id}/advertisers",
|
|
2589
|
-
...options
|
|
2590
|
-
});
|
|
2591
|
-
var tiktokAdsListBusinessCenters = (options) => (options.client ?? client).get({
|
|
2592
|
-
security: [{
|
|
2593
|
-
key: "secretKey",
|
|
2594
|
-
scheme: "bearer",
|
|
2595
|
-
type: "http"
|
|
2596
|
-
}, {
|
|
2597
|
-
key: "frontendToken",
|
|
2598
|
-
scheme: "bearer",
|
|
2599
|
-
type: "http"
|
|
2600
|
-
}],
|
|
2601
|
-
url: "/tiktok/{connection_id}/business-centers",
|
|
2602
|
-
...options
|
|
2603
|
-
});
|
|
2604
|
-
var tiktokAdsListCampaigns = (options) => (options.client ?? client).get({
|
|
2605
|
-
security: [{
|
|
2606
|
-
key: "secretKey",
|
|
2607
|
-
scheme: "bearer",
|
|
2608
|
-
type: "http"
|
|
2609
|
-
}, {
|
|
2610
|
-
key: "frontendToken",
|
|
2611
|
-
scheme: "bearer",
|
|
2612
|
-
type: "http"
|
|
2613
|
-
}],
|
|
2614
|
-
url: "/tiktok/{connection_id}/campaigns",
|
|
2615
|
-
...options
|
|
2616
|
-
});
|
|
2617
|
-
var tiktokAdsCreateCampaign = (options) => (options.client ?? client).post({
|
|
2618
|
-
security: [{
|
|
2619
|
-
key: "secretKey",
|
|
2620
|
-
scheme: "bearer",
|
|
2621
|
-
type: "http"
|
|
2622
|
-
}],
|
|
2623
|
-
url: "/tiktok/{connection_id}/campaigns",
|
|
2624
|
-
...options,
|
|
2625
|
-
headers: {
|
|
2626
|
-
"Content-Type": "application/json",
|
|
2627
|
-
...options.headers
|
|
2628
|
-
}
|
|
2629
|
-
});
|
|
2630
|
-
var tiktokAdsUpdateCampaignStatus = (options) => (options.client ?? client).post({
|
|
2631
|
-
security: [{
|
|
2632
|
-
key: "secretKey",
|
|
2633
|
-
scheme: "bearer",
|
|
2634
|
-
type: "http"
|
|
2635
|
-
}, {
|
|
2636
|
-
key: "frontendToken",
|
|
2637
|
-
scheme: "bearer",
|
|
2638
|
-
type: "http"
|
|
2639
|
-
}],
|
|
2640
|
-
url: "/tiktok/{connection_id}/campaigns/{campaign_id}/status",
|
|
2641
|
-
...options,
|
|
2642
|
-
headers: {
|
|
2643
|
-
"Content-Type": "application/json",
|
|
2644
|
-
...options.headers
|
|
2645
|
-
}
|
|
2646
|
-
});
|
|
2647
|
-
var tiktokAdsUpdateCampaignBudget = (options) => (options.client ?? client).post({
|
|
2648
|
-
security: [{
|
|
2649
|
-
key: "secretKey",
|
|
2650
|
-
scheme: "bearer",
|
|
2651
|
-
type: "http"
|
|
2652
|
-
}],
|
|
2653
|
-
url: "/tiktok/{connection_id}/campaigns/{campaign_id}/budget",
|
|
2654
|
-
...options,
|
|
2655
|
-
headers: {
|
|
2656
|
-
"Content-Type": "application/json",
|
|
2657
|
-
...options.headers
|
|
2658
|
-
}
|
|
2659
|
-
});
|
|
2660
|
-
var tiktokAdsRemoveCampaign = (options) => (options.client ?? client).post({
|
|
2661
|
-
security: [{
|
|
2662
|
-
key: "secretKey",
|
|
2663
|
-
scheme: "bearer",
|
|
2664
|
-
type: "http"
|
|
2665
|
-
}, {
|
|
2666
|
-
key: "frontendToken",
|
|
2667
|
-
scheme: "bearer",
|
|
2668
|
-
type: "http"
|
|
2669
|
-
}],
|
|
2670
|
-
url: "/tiktok/{connection_id}/campaigns/{campaign_id}/remove",
|
|
2671
|
-
...options
|
|
2672
|
-
});
|
|
2673
|
-
var tiktokAdsListAdGroups = (options) => (options.client ?? client).get({
|
|
2674
|
-
security: [{
|
|
2675
|
-
key: "secretKey",
|
|
2676
|
-
scheme: "bearer",
|
|
2677
|
-
type: "http"
|
|
2678
|
-
}, {
|
|
2679
|
-
key: "frontendToken",
|
|
2680
|
-
scheme: "bearer",
|
|
2681
|
-
type: "http"
|
|
2682
|
-
}],
|
|
2683
|
-
url: "/tiktok/{connection_id}/ad-groups",
|
|
2684
|
-
...options
|
|
2685
|
-
});
|
|
2686
|
-
var tiktokAdsCreateAdGroup = (options) => (options.client ?? client).post({
|
|
2687
|
-
security: [{
|
|
2688
|
-
key: "secretKey",
|
|
2689
|
-
scheme: "bearer",
|
|
2690
|
-
type: "http"
|
|
2691
|
-
}],
|
|
2692
|
-
url: "/tiktok/{connection_id}/ad-groups",
|
|
2693
|
-
...options,
|
|
2694
|
-
headers: {
|
|
2695
|
-
"Content-Type": "application/json",
|
|
2696
|
-
...options.headers
|
|
2697
|
-
}
|
|
2698
|
-
});
|
|
2699
|
-
var tiktokAdsUpdateAdGroupStatus = (options) => (options.client ?? client).post({
|
|
2700
|
-
security: [{
|
|
2701
|
-
key: "secretKey",
|
|
2702
|
-
scheme: "bearer",
|
|
2703
|
-
type: "http"
|
|
2704
|
-
}, {
|
|
2705
|
-
key: "frontendToken",
|
|
2706
|
-
scheme: "bearer",
|
|
2707
|
-
type: "http"
|
|
2708
|
-
}],
|
|
2709
|
-
url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/status",
|
|
2710
|
-
...options,
|
|
2711
|
-
headers: {
|
|
2712
|
-
"Content-Type": "application/json",
|
|
2713
|
-
...options.headers
|
|
2714
|
-
}
|
|
2715
|
-
});
|
|
2716
|
-
var tiktokAdsUpdateAdGroupBudget = (options) => (options.client ?? client).post({
|
|
2717
|
-
security: [{
|
|
2718
|
-
key: "secretKey",
|
|
2719
|
-
scheme: "bearer",
|
|
2720
|
-
type: "http"
|
|
2721
|
-
}],
|
|
2722
|
-
url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/budget",
|
|
2723
|
-
...options,
|
|
2724
|
-
headers: {
|
|
2725
|
-
"Content-Type": "application/json",
|
|
2726
|
-
...options.headers
|
|
2727
|
-
}
|
|
2728
|
-
});
|
|
2729
|
-
var tiktokAdsRemoveAdGroup = (options) => (options.client ?? client).post({
|
|
2730
|
-
security: [{
|
|
2731
|
-
key: "secretKey",
|
|
2732
|
-
scheme: "bearer",
|
|
2733
|
-
type: "http"
|
|
2734
|
-
}, {
|
|
2735
|
-
key: "frontendToken",
|
|
2736
|
-
scheme: "bearer",
|
|
2737
|
-
type: "http"
|
|
2738
|
-
}],
|
|
2739
|
-
url: "/tiktok/{connection_id}/ad-groups/{adgroup_id}/remove",
|
|
2740
|
-
...options
|
|
2741
|
-
});
|
|
2742
|
-
var tiktokAdsListAds = (options) => (options.client ?? client).get({
|
|
2743
|
-
security: [{
|
|
2744
|
-
key: "secretKey",
|
|
2745
|
-
scheme: "bearer",
|
|
2746
|
-
type: "http"
|
|
2747
|
-
}, {
|
|
2748
|
-
key: "frontendToken",
|
|
2749
|
-
scheme: "bearer",
|
|
2750
|
-
type: "http"
|
|
2751
|
-
}],
|
|
2752
|
-
url: "/tiktok/{connection_id}/ads",
|
|
2753
|
-
...options
|
|
2754
|
-
});
|
|
2755
|
-
var tiktokAdsCreateAd = (options) => (options.client ?? client).post({
|
|
2756
|
-
security: [{
|
|
2757
|
-
key: "secretKey",
|
|
2758
|
-
scheme: "bearer",
|
|
2759
|
-
type: "http"
|
|
2760
|
-
}, {
|
|
2761
|
-
key: "frontendToken",
|
|
2762
|
-
scheme: "bearer",
|
|
2763
|
-
type: "http"
|
|
2764
|
-
}],
|
|
2765
|
-
url: "/tiktok/{connection_id}/ads",
|
|
2766
|
-
...options,
|
|
2767
|
-
headers: {
|
|
2768
|
-
"Content-Type": "application/json",
|
|
2769
|
-
...options.headers
|
|
2770
|
-
}
|
|
2771
|
-
});
|
|
2772
|
-
var tiktokAdsUpdateAdStatus = (options) => (options.client ?? client).post({
|
|
2773
|
-
security: [{
|
|
2774
|
-
key: "secretKey",
|
|
2775
|
-
scheme: "bearer",
|
|
2776
|
-
type: "http"
|
|
2777
|
-
}, {
|
|
2778
|
-
key: "frontendToken",
|
|
2779
|
-
scheme: "bearer",
|
|
2780
|
-
type: "http"
|
|
2781
|
-
}],
|
|
2782
|
-
url: "/tiktok/{connection_id}/ads/{ad_id}/status",
|
|
2783
|
-
...options,
|
|
2784
|
-
headers: {
|
|
2785
|
-
"Content-Type": "application/json",
|
|
2786
|
-
...options.headers
|
|
2787
|
-
}
|
|
2788
|
-
});
|
|
2789
|
-
var tiktokAdsRemoveAd = (options) => (options.client ?? client).post({
|
|
2790
|
-
security: [{
|
|
2791
|
-
key: "secretKey",
|
|
2792
|
-
scheme: "bearer",
|
|
2793
|
-
type: "http"
|
|
2794
|
-
}, {
|
|
2795
|
-
key: "frontendToken",
|
|
2796
|
-
scheme: "bearer",
|
|
2797
|
-
type: "http"
|
|
2798
|
-
}],
|
|
2799
|
-
url: "/tiktok/{connection_id}/ads/{ad_id}/remove",
|
|
2800
|
-
...options
|
|
2801
|
-
});
|
|
2802
|
-
var tiktokAdsGetInsights = (options) => (options.client ?? client).post({
|
|
2803
|
-
security: [{
|
|
2804
|
-
key: "secretKey",
|
|
2805
|
-
scheme: "bearer",
|
|
2806
|
-
type: "http"
|
|
2807
|
-
}, {
|
|
2808
|
-
key: "frontendToken",
|
|
2809
|
-
scheme: "bearer",
|
|
2810
|
-
type: "http"
|
|
2811
|
-
}],
|
|
2812
|
-
url: "/tiktok/{connection_id}/insights",
|
|
2813
|
-
...options,
|
|
2814
|
-
headers: {
|
|
2815
|
-
"Content-Type": "application/json",
|
|
2816
|
-
...options.headers
|
|
2817
|
-
}
|
|
2818
|
-
});
|
|
2819
|
-
var tiktokAdsGetAdTree = (options) => (options.client ?? client).get({
|
|
2820
|
-
security: [{
|
|
2821
|
-
key: "secretKey",
|
|
2822
|
-
scheme: "bearer",
|
|
2823
|
-
type: "http"
|
|
2824
|
-
}, {
|
|
2825
|
-
key: "frontendToken",
|
|
2826
|
-
scheme: "bearer",
|
|
2827
|
-
type: "http"
|
|
2828
|
-
}],
|
|
2829
|
-
url: "/tiktok/{connection_id}/ads/tree",
|
|
2830
|
-
...options
|
|
2831
|
-
});
|
|
2832
|
-
var tiktokAdsListIdentities = (options) => (options.client ?? client).get({
|
|
2833
|
-
security: [{
|
|
2834
|
-
key: "secretKey",
|
|
2835
|
-
scheme: "bearer",
|
|
2836
|
-
type: "http"
|
|
2837
|
-
}, {
|
|
2838
|
-
key: "frontendToken",
|
|
2839
|
-
scheme: "bearer",
|
|
2840
|
-
type: "http"
|
|
2841
|
-
}],
|
|
2842
|
-
url: "/tiktok/{connection_id}/identities",
|
|
2843
|
-
...options
|
|
2844
|
-
});
|
|
2845
|
-
var tiktokAdsCreateIdentity = (options) => (options.client ?? client).post({
|
|
2846
|
-
security: [{
|
|
2847
|
-
key: "secretKey",
|
|
2848
|
-
scheme: "bearer",
|
|
2849
|
-
type: "http"
|
|
2850
|
-
}, {
|
|
2851
|
-
key: "frontendToken",
|
|
2852
|
-
scheme: "bearer",
|
|
2853
|
-
type: "http"
|
|
2854
|
-
}],
|
|
2855
|
-
url: "/tiktok/{connection_id}/identities",
|
|
2856
|
-
...options,
|
|
2857
|
-
headers: {
|
|
2858
|
-
"Content-Type": "application/json",
|
|
2859
|
-
...options.headers
|
|
2860
|
-
}
|
|
2861
|
-
});
|
|
2862
|
-
var logsList = (options) => (options?.client ?? client).get({
|
|
2863
|
-
security: [{
|
|
2864
|
-
key: "secretKey",
|
|
2865
|
-
scheme: "bearer",
|
|
2866
|
-
type: "http"
|
|
2867
|
-
}],
|
|
2868
|
-
url: "/logs",
|
|
2869
|
-
...options
|
|
2870
|
-
});
|
|
2871
|
-
var logsGet = (options) => (options.client ?? client).get({
|
|
2872
|
-
security: [{
|
|
2873
|
-
key: "secretKey",
|
|
2874
|
-
scheme: "bearer",
|
|
2875
|
-
type: "http"
|
|
2876
|
-
}],
|
|
2877
|
-
url: "/logs/{id}",
|
|
2878
|
-
...options
|
|
2879
|
-
});
|
|
2880
|
-
var webhooksListEndpoints = (options) => (options?.client ?? client).get({
|
|
2881
|
-
security: [{
|
|
2882
|
-
key: "secretKey",
|
|
2883
|
-
scheme: "bearer",
|
|
2884
|
-
type: "http"
|
|
2885
|
-
}],
|
|
2886
|
-
url: "/webhooks/endpoints",
|
|
2887
|
-
...options
|
|
2888
|
-
});
|
|
2889
|
-
var webhooksCreateEndpoint = (options) => (options.client ?? client).post({
|
|
2890
|
-
security: [{
|
|
2891
|
-
key: "secretKey",
|
|
2892
|
-
scheme: "bearer",
|
|
2893
|
-
type: "http"
|
|
2894
|
-
}],
|
|
2895
|
-
url: "/webhooks/endpoints",
|
|
2896
|
-
...options,
|
|
2897
|
-
headers: {
|
|
2898
|
-
"Content-Type": "application/json",
|
|
2899
|
-
...options.headers
|
|
2900
|
-
}
|
|
2901
|
-
});
|
|
2902
|
-
var webhooksDeleteEndpoint = (options) => (options.client ?? client).delete({
|
|
2903
|
-
security: [{
|
|
2904
|
-
key: "secretKey",
|
|
2905
|
-
scheme: "bearer",
|
|
2906
|
-
type: "http"
|
|
2907
|
-
}],
|
|
2908
|
-
url: "/webhooks/endpoints/{id}",
|
|
2909
|
-
...options
|
|
2910
|
-
});
|
|
2911
|
-
var webhooksGetEndpoint = (options) => (options.client ?? client).get({
|
|
2912
|
-
security: [{
|
|
2913
|
-
key: "secretKey",
|
|
2914
|
-
scheme: "bearer",
|
|
2915
|
-
type: "http"
|
|
2916
|
-
}],
|
|
2917
|
-
url: "/webhooks/endpoints/{id}",
|
|
2918
|
-
...options
|
|
2919
|
-
});
|
|
2920
|
-
var webhooksUpdateEndpoint = (options) => (options.client ?? client).patch({
|
|
2921
|
-
security: [{
|
|
2922
|
-
key: "secretKey",
|
|
2923
|
-
scheme: "bearer",
|
|
2924
|
-
type: "http"
|
|
2925
|
-
}],
|
|
2926
|
-
url: "/webhooks/endpoints/{id}",
|
|
2927
|
-
...options,
|
|
2928
|
-
headers: {
|
|
2929
|
-
"Content-Type": "application/json",
|
|
2930
|
-
...options.headers
|
|
2931
|
-
}
|
|
2932
|
-
});
|
|
2933
|
-
var webhooksCreatePortal = (options) => (options?.client ?? client).post({
|
|
2934
|
-
security: [{
|
|
2935
|
-
key: "secretKey",
|
|
2936
|
-
scheme: "bearer",
|
|
2937
|
-
type: "http"
|
|
2938
|
-
}],
|
|
2939
|
-
url: "/webhooks/portal",
|
|
2940
|
-
...options
|
|
2941
|
-
});
|
|
2942
|
-
var webhooksListEventTypes = (options) => (options?.client ?? client).get({
|
|
2943
|
-
security: [{
|
|
2944
|
-
key: "secretKey",
|
|
2945
|
-
scheme: "bearer",
|
|
2946
|
-
type: "http"
|
|
2947
|
-
}],
|
|
2948
|
-
url: "/webhooks/event-types",
|
|
2949
|
-
...options
|
|
2950
|
-
});
|
|
2951
|
-
var webhooksPing = (options) => (options.client ?? client).post({
|
|
2952
|
-
security: [{
|
|
2953
|
-
key: "secretKey",
|
|
2954
|
-
scheme: "bearer",
|
|
2955
|
-
type: "http"
|
|
2956
|
-
}],
|
|
2957
|
-
url: "/webhooks/ping",
|
|
2958
|
-
...options,
|
|
2959
|
-
headers: {
|
|
2960
|
-
"Content-Type": "application/json",
|
|
2961
|
-
...options.headers
|
|
2962
|
-
}
|
|
2963
|
-
});
|
|
2964
|
-
var tokensMint = (options) => (options.client ?? client).post({
|
|
2965
|
-
security: [{
|
|
2966
|
-
key: "secretKey",
|
|
2967
|
-
scheme: "bearer",
|
|
2968
|
-
type: "http"
|
|
2969
|
-
}],
|
|
2970
|
-
url: "/tokens",
|
|
2971
|
-
...options,
|
|
2972
|
-
headers: {
|
|
2973
|
-
"Content-Type": "application/json",
|
|
2974
|
-
...options.headers
|
|
2975
|
-
}
|
|
2976
|
-
});
|
|
2977
|
-
|
|
2978
|
-
export { PostrunError, connectionsConnect, connectionsDelete, connectionsGet, connectionsListAccounts, connectionsListByProfile, connectionsSelect, createPostrunClient, googleAttachAssetGroupAsset, googleCreateAd, googleCreateAdGroup, googleCreateAdGroupCriterion, googleCreateAssetGroup, googleCreateAssetGroupSignal, googleCreateBudget, googleCreateCampaign, googleCreateCampaignCriterion, googleCreateConversionAction, googleCreateDisplayAd, googleCreateKeyword, googleCreatePerformanceMax, googleEditAccount, googleEditAd, googleEditAdGroup, googleEditAssetGroup, googleEditBudget, googleEditCampaign, googleEditDisplayAd, googleEnableAd, googleEnableAdGroup, googleEnableAssetGroup, googleEnableCampaign, googleEnableKeyword, googleGetAccount, googleGetAd, googleGetAdGroup, googleGetAdTree, googleGetAssetGroup, googleGetCampaign, googleGetConversionAction, googleGetConversionStatus, googleGetInsights, googleGetKeyword, googleListAdGroupCriteria, googleListAdGroups, googleListAds, googleListAssetGroupAssets, googleListAssetGroupSignals, googleListAssetGroups, googleListAudiences, googleListCampaignCriteria, googleListCampaigns, googleListConversionActions, googleListConversionGoals, googleListConversionRequests, googleListKeywords, googlePauseAd, googlePauseAdGroup, googlePauseAssetGroup, googlePauseCampaign, googlePauseKeyword, googleRemoveAd, googleRemoveAdGroup, googleRemoveAdGroupCriterion, googleRemoveAssetGroup, googleRemoveAssetGroupAsset, googleRemoveAssetGroupSignal, googleRemoveBudget, googleRemoveCampaign, googleRemoveCampaignCriterion, googleRemoveConversionAction, googleRemoveKeyword, googleRunGaql, googleSearchGeoTargets, googleSendConversions, googleSetAdGroupBids, googleSetCampaignBidding, googleSetCampaignGeoSettings, googleSetCampaignTargetingSetting, googleSetConversionGoal, googleSetKeywordBid, googleUpdateConversionAction, googleUploadImageAsset, googleUploadYoutubeVideoAsset, logsGet, logsList, mediaAbort, mediaComplete, mediaCreate, mediaDelete, mediaGet, mediaList, mediaListParts, mediaSignPart, mediaUpdate, metaAccount, metaAd, metaAds, metaAdset, metaAdsets, metaCampaign, metaCampaigns, metaInsights, postsCreate, postsDelete, postsGet, postsList, postsUpdate, postsValidate, profilesCreate, profilesDelete, profilesGet, profilesList, profilesUpdate, tiktokAdsCreateAd, tiktokAdsCreateAdGroup, tiktokAdsCreateCampaign, tiktokAdsCreateIdentity, tiktokAdsGetAdTree, tiktokAdsGetInsights, tiktokAdsListAdGroups, tiktokAdsListAds, tiktokAdsListAdvertisers, tiktokAdsListBusinessCenters, tiktokAdsListCampaigns, tiktokAdsListIdentities, tiktokAdsRemoveAd, tiktokAdsRemoveAdGroup, tiktokAdsRemoveCampaign, tiktokAdsUpdateAdGroupBudget, tiktokAdsUpdateAdGroupStatus, tiktokAdsUpdateAdStatus, tiktokAdsUpdateCampaignBudget, tiktokAdsUpdateCampaignStatus, tiktokCreatorInfo, tokensMint, webhooksCreateEndpoint, webhooksCreatePortal, webhooksDeleteEndpoint, webhooksGetEndpoint, webhooksListEndpoints, webhooksListEventTypes, webhooksPing, webhooksUpdateEndpoint };
|
|
2979
|
-
//# sourceMappingURL=chunk-W37M2JFI.js.map
|
|
2980
|
-
//# sourceMappingURL=chunk-W37M2JFI.js.map
|