@usenadia/node 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +119 -2
- package/dist/index.d.mts +4408 -0
- package/dist/index.d.ts +4408 -0
- package/dist/index.js +1729 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1623 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +37 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4408 @@
|
|
|
1
|
+
type AuthToken = string | undefined;
|
|
2
|
+
interface Auth {
|
|
3
|
+
/**
|
|
4
|
+
* Which part of the request do we use to send the auth?
|
|
5
|
+
*
|
|
6
|
+
* @default 'header'
|
|
7
|
+
*/
|
|
8
|
+
in?: 'header' | 'query' | 'cookie';
|
|
9
|
+
/**
|
|
10
|
+
* A unique identifier for the security scheme.
|
|
11
|
+
*
|
|
12
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
13
|
+
* shape would otherwise be identical.
|
|
14
|
+
*/
|
|
15
|
+
key?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Header or query parameter name.
|
|
18
|
+
*
|
|
19
|
+
* @default 'Authorization'
|
|
20
|
+
*/
|
|
21
|
+
name?: string;
|
|
22
|
+
scheme?: 'basic' | 'bearer';
|
|
23
|
+
type: 'apiKey' | 'http';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface SerializerOptions<T> {
|
|
27
|
+
/**
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
explode: boolean;
|
|
31
|
+
style: T;
|
|
32
|
+
}
|
|
33
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
34
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
35
|
+
|
|
36
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
37
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
38
|
+
type QuerySerializerOptionsObject = {
|
|
39
|
+
allowReserved?: boolean;
|
|
40
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
41
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
42
|
+
};
|
|
43
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
44
|
+
/**
|
|
45
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
46
|
+
* override the global array/object settings for specific parameter names.
|
|
47
|
+
*/
|
|
48
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
52
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
53
|
+
/**
|
|
54
|
+
* Returns the final request URL.
|
|
55
|
+
*/
|
|
56
|
+
buildUrl: BuildUrlFn;
|
|
57
|
+
getConfig: () => Config;
|
|
58
|
+
request: RequestFn;
|
|
59
|
+
setConfig: (config: Config) => Config;
|
|
60
|
+
} & {
|
|
61
|
+
[K in HttpMethod]: MethodFn;
|
|
62
|
+
} & ([SseFn] extends [never] ? {
|
|
63
|
+
sse?: never;
|
|
64
|
+
} : {
|
|
65
|
+
sse: {
|
|
66
|
+
[K in HttpMethod]: SseFn;
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
interface Config$1 {
|
|
70
|
+
/**
|
|
71
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
72
|
+
* added to the request payload as defined by its `security` array.
|
|
73
|
+
*/
|
|
74
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
75
|
+
/**
|
|
76
|
+
* A function for serializing request body parameter. By default,
|
|
77
|
+
* {@link JSON.stringify()} will be used.
|
|
78
|
+
*/
|
|
79
|
+
bodySerializer?: BodySerializer | null;
|
|
80
|
+
/**
|
|
81
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
82
|
+
* `Headers` object with.
|
|
83
|
+
*
|
|
84
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
85
|
+
*/
|
|
86
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* The request method.
|
|
89
|
+
*
|
|
90
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
91
|
+
*/
|
|
92
|
+
method?: Uppercase<HttpMethod>;
|
|
93
|
+
/**
|
|
94
|
+
* A function for serializing request query parameters. By default, arrays
|
|
95
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
96
|
+
* style, and reserved characters are percent-encoded.
|
|
97
|
+
*
|
|
98
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
99
|
+
* API function is used.
|
|
100
|
+
*
|
|
101
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
102
|
+
*/
|
|
103
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
104
|
+
/**
|
|
105
|
+
* A function validating request data. This is useful if you want to ensure
|
|
106
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
107
|
+
* the server.
|
|
108
|
+
*/
|
|
109
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
110
|
+
/**
|
|
111
|
+
* A function transforming response data before it's returned. This is useful
|
|
112
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
113
|
+
*/
|
|
114
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
115
|
+
/**
|
|
116
|
+
* A function validating response data. This is useful if you want to ensure
|
|
117
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
118
|
+
* the transformers and returned to the user.
|
|
119
|
+
*/
|
|
120
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
124
|
+
*/
|
|
125
|
+
interface ClientMeta {
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
129
|
+
/**
|
|
130
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
131
|
+
* fetch instance.
|
|
132
|
+
*
|
|
133
|
+
* @default globalThis.fetch
|
|
134
|
+
*/
|
|
135
|
+
fetch?: typeof fetch;
|
|
136
|
+
/**
|
|
137
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
138
|
+
*/
|
|
139
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
140
|
+
/**
|
|
141
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
142
|
+
*
|
|
143
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
144
|
+
*
|
|
145
|
+
* @param error The error that occurred.
|
|
146
|
+
*/
|
|
147
|
+
onSseError?: (error: unknown) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Callback invoked when an event is streamed from the server.
|
|
150
|
+
*
|
|
151
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
152
|
+
*
|
|
153
|
+
* @param event Event streamed from the server.
|
|
154
|
+
* @returns Nothing (void).
|
|
155
|
+
*/
|
|
156
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
157
|
+
serializedBody?: RequestInit['body'];
|
|
158
|
+
/**
|
|
159
|
+
* Default retry delay in milliseconds.
|
|
160
|
+
*
|
|
161
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
162
|
+
*
|
|
163
|
+
* @default 3000
|
|
164
|
+
*/
|
|
165
|
+
sseDefaultRetryDelay?: number;
|
|
166
|
+
/**
|
|
167
|
+
* Maximum number of retry attempts before giving up.
|
|
168
|
+
*/
|
|
169
|
+
sseMaxRetryAttempts?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Maximum retry delay in milliseconds.
|
|
172
|
+
*
|
|
173
|
+
* Applies only when exponential backoff is used.
|
|
174
|
+
*
|
|
175
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
176
|
+
*
|
|
177
|
+
* @default 30000
|
|
178
|
+
*/
|
|
179
|
+
sseMaxRetryDelay?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Optional sleep function for retry backoff.
|
|
182
|
+
*
|
|
183
|
+
* Defaults to using `setTimeout`.
|
|
184
|
+
*/
|
|
185
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
186
|
+
url: string;
|
|
187
|
+
};
|
|
188
|
+
interface StreamEvent<TData = unknown> {
|
|
189
|
+
data: TData;
|
|
190
|
+
event?: string;
|
|
191
|
+
id?: string;
|
|
192
|
+
retry?: number;
|
|
193
|
+
}
|
|
194
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
195
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
199
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
200
|
+
response: Res | undefined,
|
|
201
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
202
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
203
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
204
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
205
|
+
declare class Interceptors<Interceptor> {
|
|
206
|
+
fns: Array<Interceptor | null>;
|
|
207
|
+
clear(): void;
|
|
208
|
+
eject(id: number | Interceptor): void;
|
|
209
|
+
exists(id: number | Interceptor): boolean;
|
|
210
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
211
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
212
|
+
use(fn: Interceptor): number;
|
|
213
|
+
}
|
|
214
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
215
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
216
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
217
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
type ResponseStyle = 'data' | 'fields';
|
|
221
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
222
|
+
/**
|
|
223
|
+
* Base URL for all requests made by this client.
|
|
224
|
+
*/
|
|
225
|
+
baseUrl?: T['baseUrl'];
|
|
226
|
+
/**
|
|
227
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
228
|
+
* fetch instance.
|
|
229
|
+
*
|
|
230
|
+
* @default globalThis.fetch
|
|
231
|
+
*/
|
|
232
|
+
fetch?: typeof fetch;
|
|
233
|
+
/**
|
|
234
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
235
|
+
* options won't have any effect.
|
|
236
|
+
*
|
|
237
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
238
|
+
*/
|
|
239
|
+
next?: never;
|
|
240
|
+
/**
|
|
241
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
242
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
243
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
244
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
245
|
+
*
|
|
246
|
+
* @default 'auto'
|
|
247
|
+
*/
|
|
248
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
249
|
+
/**
|
|
250
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
251
|
+
*
|
|
252
|
+
* @default 'fields'
|
|
253
|
+
*/
|
|
254
|
+
responseStyle?: ResponseStyle;
|
|
255
|
+
/**
|
|
256
|
+
* Throw an error instead of returning it in the response?
|
|
257
|
+
*
|
|
258
|
+
* @default false
|
|
259
|
+
*/
|
|
260
|
+
throwOnError?: T['throwOnError'];
|
|
261
|
+
}
|
|
262
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
263
|
+
responseStyle: TResponseStyle;
|
|
264
|
+
throwOnError: ThrowOnError;
|
|
265
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
266
|
+
/**
|
|
267
|
+
* Any body that you want to add to your request.
|
|
268
|
+
*
|
|
269
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
270
|
+
*/
|
|
271
|
+
body?: unknown;
|
|
272
|
+
path?: Record<string, unknown>;
|
|
273
|
+
query?: Record<string, unknown>;
|
|
274
|
+
/**
|
|
275
|
+
* Security mechanism(s) to use for the request.
|
|
276
|
+
*/
|
|
277
|
+
security?: ReadonlyArray<Auth>;
|
|
278
|
+
url: Url;
|
|
279
|
+
}
|
|
280
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
281
|
+
headers: Headers;
|
|
282
|
+
serializedBody?: string;
|
|
283
|
+
}
|
|
284
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
285
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
286
|
+
request: Request;
|
|
287
|
+
response: Response;
|
|
288
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
289
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
290
|
+
error: undefined;
|
|
291
|
+
} | {
|
|
292
|
+
data: undefined;
|
|
293
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
294
|
+
}) & {
|
|
295
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
296
|
+
request?: Request;
|
|
297
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
298
|
+
response?: Response;
|
|
299
|
+
}>;
|
|
300
|
+
interface ClientOptions$1 {
|
|
301
|
+
baseUrl?: string;
|
|
302
|
+
responseStyle?: ResponseStyle;
|
|
303
|
+
throwOnError?: boolean;
|
|
304
|
+
}
|
|
305
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
306
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
307
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
308
|
+
type BuildUrlFn = <TData extends {
|
|
309
|
+
body?: unknown;
|
|
310
|
+
path?: Record<string, unknown>;
|
|
311
|
+
query?: Record<string, unknown>;
|
|
312
|
+
url: string;
|
|
313
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
314
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
315
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
316
|
+
};
|
|
317
|
+
interface TDataShape {
|
|
318
|
+
body?: unknown;
|
|
319
|
+
headers?: unknown;
|
|
320
|
+
path?: unknown;
|
|
321
|
+
query?: unknown;
|
|
322
|
+
url: string;
|
|
323
|
+
}
|
|
324
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
325
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
326
|
+
|
|
327
|
+
type ClientOptions = {
|
|
328
|
+
baseUrl: 'https://app.usenadia.com/api' | (string & {});
|
|
329
|
+
};
|
|
330
|
+
type ApiErrorDto = {
|
|
331
|
+
/**
|
|
332
|
+
* Human-readable reason.
|
|
333
|
+
*/
|
|
334
|
+
msg: string;
|
|
335
|
+
};
|
|
336
|
+
type MediaResponseDto = {
|
|
337
|
+
/**
|
|
338
|
+
* Media id — what you pass as `image[].id` when creating a post.
|
|
339
|
+
*/
|
|
340
|
+
id: string;
|
|
341
|
+
/**
|
|
342
|
+
* Stored file name.
|
|
343
|
+
*/
|
|
344
|
+
name: string;
|
|
345
|
+
/**
|
|
346
|
+
* Name of the file as it was sent, when known.
|
|
347
|
+
*/
|
|
348
|
+
originalName: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* Public URL of the file — what you pass as `image[].path` when creating a post.
|
|
351
|
+
*/
|
|
352
|
+
path: string;
|
|
353
|
+
/**
|
|
354
|
+
* Thumbnail URL, when one was generated.
|
|
355
|
+
*/
|
|
356
|
+
thumbnail: string | null;
|
|
357
|
+
/**
|
|
358
|
+
* Alt text, when one was set.
|
|
359
|
+
*/
|
|
360
|
+
alt: string | null;
|
|
361
|
+
};
|
|
362
|
+
type UploadDto = {
|
|
363
|
+
url: string;
|
|
364
|
+
};
|
|
365
|
+
type FindSlotDto = {
|
|
366
|
+
/**
|
|
367
|
+
* Next free slot for the channel.
|
|
368
|
+
*/
|
|
369
|
+
date: string;
|
|
370
|
+
};
|
|
371
|
+
type PostTagDto = {
|
|
372
|
+
/**
|
|
373
|
+
* The tag record (`name`, `color`…).
|
|
374
|
+
*/
|
|
375
|
+
tag: {
|
|
376
|
+
[key: string]: unknown;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
type PostIntegrationSummaryDto = {
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
providerIdentifier: string;
|
|
383
|
+
picture: string | null;
|
|
384
|
+
};
|
|
385
|
+
type PostDto = {
|
|
386
|
+
id: string;
|
|
387
|
+
/**
|
|
388
|
+
* Groups the posts published together as one action — this is what DELETE /posts/group/{group} takes.
|
|
389
|
+
*/
|
|
390
|
+
group: string;
|
|
391
|
+
/**
|
|
392
|
+
* Post body (HTML).
|
|
393
|
+
*/
|
|
394
|
+
content: string;
|
|
395
|
+
/**
|
|
396
|
+
* Scheduled publication time (UTC).
|
|
397
|
+
*/
|
|
398
|
+
publishDate: string;
|
|
399
|
+
state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT' | 'SENT_UNCONFIRMED';
|
|
400
|
+
/**
|
|
401
|
+
* URL of the published post, once published.
|
|
402
|
+
*/
|
|
403
|
+
releaseURL?: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* Provider post id, once published. `missing` when the provider returned none.
|
|
406
|
+
*/
|
|
407
|
+
releaseId?: string | null;
|
|
408
|
+
/**
|
|
409
|
+
* Repeat interval in days, for a repeating post.
|
|
410
|
+
*/
|
|
411
|
+
intervalInDays?: number | null;
|
|
412
|
+
/**
|
|
413
|
+
* Where the post came from.
|
|
414
|
+
*/
|
|
415
|
+
creationMethod?: 'API' | 'CLI' | 'UI' | 'MCP';
|
|
416
|
+
tags?: Array<PostTagDto>;
|
|
417
|
+
integration?: PostIntegrationSummaryDto;
|
|
418
|
+
};
|
|
419
|
+
type PostListDto = {
|
|
420
|
+
posts: Array<PostDto>;
|
|
421
|
+
};
|
|
422
|
+
type Tags = {
|
|
423
|
+
value: string;
|
|
424
|
+
label: string;
|
|
425
|
+
};
|
|
426
|
+
type Integration = {
|
|
427
|
+
id: string;
|
|
428
|
+
};
|
|
429
|
+
type MediaDto = {
|
|
430
|
+
id: string;
|
|
431
|
+
path: string;
|
|
432
|
+
alt?: string;
|
|
433
|
+
thumbnail?: string;
|
|
434
|
+
};
|
|
435
|
+
type PostContent = {
|
|
436
|
+
content: string;
|
|
437
|
+
id: string;
|
|
438
|
+
delay: number;
|
|
439
|
+
image: Array<MediaDto>;
|
|
440
|
+
};
|
|
441
|
+
type Post = {
|
|
442
|
+
type?: string;
|
|
443
|
+
integration: Integration;
|
|
444
|
+
value: Array<PostContent>;
|
|
445
|
+
group: string;
|
|
446
|
+
settings: {
|
|
447
|
+
[key: string]: unknown;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
type PublicCreatePostDto = {
|
|
451
|
+
/**
|
|
452
|
+
* Tags where the post came from, for analytics. Anything else is recorded as `API`.
|
|
453
|
+
*/
|
|
454
|
+
creationMethod?: 'API' | 'CLI';
|
|
455
|
+
type: 'draft' | 'schedule' | 'now' | 'update';
|
|
456
|
+
order?: string;
|
|
457
|
+
shortLink: boolean;
|
|
458
|
+
inter?: number;
|
|
459
|
+
date: string;
|
|
460
|
+
tags: Array<Tags>;
|
|
461
|
+
posts: Array<Post>;
|
|
462
|
+
};
|
|
463
|
+
type CreatePostResultItemDto = {
|
|
464
|
+
/**
|
|
465
|
+
* Created post id.
|
|
466
|
+
*/
|
|
467
|
+
postId: string;
|
|
468
|
+
/**
|
|
469
|
+
* Channel it was created for.
|
|
470
|
+
*/
|
|
471
|
+
integration: string;
|
|
472
|
+
};
|
|
473
|
+
type DeletedIdDto = {
|
|
474
|
+
/**
|
|
475
|
+
* Id of the deleted record.
|
|
476
|
+
*/
|
|
477
|
+
id: string;
|
|
478
|
+
};
|
|
479
|
+
type IsConnectedDto = {
|
|
480
|
+
/**
|
|
481
|
+
* Always true — the route exists to validate an API key.
|
|
482
|
+
*/
|
|
483
|
+
connected: boolean;
|
|
484
|
+
};
|
|
485
|
+
type GroupDto = {
|
|
486
|
+
/**
|
|
487
|
+
* Group (customer) id.
|
|
488
|
+
*/
|
|
489
|
+
id: string;
|
|
490
|
+
/**
|
|
491
|
+
* Group name, as shown in the app.
|
|
492
|
+
*/
|
|
493
|
+
name: string;
|
|
494
|
+
};
|
|
495
|
+
type IntegrationListItemDto = {
|
|
496
|
+
/**
|
|
497
|
+
* Channel id — what every other route calls `integrationId`.
|
|
498
|
+
*/
|
|
499
|
+
id: string;
|
|
500
|
+
/**
|
|
501
|
+
* Channel name, as shown in the app.
|
|
502
|
+
*/
|
|
503
|
+
name: string;
|
|
504
|
+
/**
|
|
505
|
+
* Provider identifier, e.g. `instagram-standalone`, `tiktok`, `x`.
|
|
506
|
+
*/
|
|
507
|
+
identifier: string;
|
|
508
|
+
/**
|
|
509
|
+
* Avatar URL.
|
|
510
|
+
*/
|
|
511
|
+
picture: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* True when the channel is disconnected or out of plan.
|
|
514
|
+
*/
|
|
515
|
+
disabled: boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Provider handle / profile name.
|
|
518
|
+
*/
|
|
519
|
+
profile: string | null;
|
|
520
|
+
/**
|
|
521
|
+
* Group the channel belongs to, when it belongs to one.
|
|
522
|
+
*/
|
|
523
|
+
customer?: GroupDto;
|
|
524
|
+
};
|
|
525
|
+
type SocialAuthUrlDto = {
|
|
526
|
+
/**
|
|
527
|
+
* URL to send the person to, to connect the channel.
|
|
528
|
+
*/
|
|
529
|
+
url: string;
|
|
530
|
+
};
|
|
531
|
+
type NotificationDto = {
|
|
532
|
+
id: string;
|
|
533
|
+
content: string;
|
|
534
|
+
link?: string | null;
|
|
535
|
+
createdAt: string;
|
|
536
|
+
};
|
|
537
|
+
type NotificationsPageDto = {
|
|
538
|
+
notifications: Array<NotificationDto>;
|
|
539
|
+
/**
|
|
540
|
+
* Total across all pages.
|
|
541
|
+
*/
|
|
542
|
+
total: number;
|
|
543
|
+
/**
|
|
544
|
+
* Current page, 0-indexed.
|
|
545
|
+
*/
|
|
546
|
+
page: number;
|
|
547
|
+
/**
|
|
548
|
+
* Notifications per page (100).
|
|
549
|
+
*/
|
|
550
|
+
limit: number;
|
|
551
|
+
/**
|
|
552
|
+
* Whether a next page exists.
|
|
553
|
+
*/
|
|
554
|
+
hasMore: boolean;
|
|
555
|
+
};
|
|
556
|
+
type VideoDto = {
|
|
557
|
+
type: string;
|
|
558
|
+
output: 'vertical' | 'horizontal';
|
|
559
|
+
customParams: {
|
|
560
|
+
[key: string]: unknown;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
type GeneratedVideoDto = {
|
|
564
|
+
/**
|
|
565
|
+
* Media id — what you pass as `image[].id` when creating a post.
|
|
566
|
+
*/
|
|
567
|
+
id: string;
|
|
568
|
+
/**
|
|
569
|
+
* Stored file name.
|
|
570
|
+
*/
|
|
571
|
+
name: string;
|
|
572
|
+
/**
|
|
573
|
+
* Name of the file as it was sent, when known.
|
|
574
|
+
*/
|
|
575
|
+
originalName: string | null;
|
|
576
|
+
/**
|
|
577
|
+
* Public URL of the file — what you pass as `image[].path` when creating a post.
|
|
578
|
+
*/
|
|
579
|
+
path: string;
|
|
580
|
+
/**
|
|
581
|
+
* Thumbnail URL, when one was generated.
|
|
582
|
+
*/
|
|
583
|
+
thumbnail: string | null;
|
|
584
|
+
/**
|
|
585
|
+
* Alt text, when one was set.
|
|
586
|
+
*/
|
|
587
|
+
alt: string | null;
|
|
588
|
+
};
|
|
589
|
+
type VideoFunctionDto = {
|
|
590
|
+
identifier: string;
|
|
591
|
+
functionName: string;
|
|
592
|
+
params?: {
|
|
593
|
+
[key: string]: unknown;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
type IntegrationToolParamDto = {
|
|
597
|
+
/**
|
|
598
|
+
* Key to send in `data`.
|
|
599
|
+
*/
|
|
600
|
+
key: string;
|
|
601
|
+
type: string;
|
|
602
|
+
description: string;
|
|
603
|
+
};
|
|
604
|
+
type IntegrationToolDto = {
|
|
605
|
+
/**
|
|
606
|
+
* Method to call on POST /integration-trigger/{id}.
|
|
607
|
+
*/
|
|
608
|
+
methodName: string;
|
|
609
|
+
/**
|
|
610
|
+
* What the tool does.
|
|
611
|
+
*/
|
|
612
|
+
description: string;
|
|
613
|
+
/**
|
|
614
|
+
* The keys `data` accepts.
|
|
615
|
+
*/
|
|
616
|
+
dataSchema: Array<IntegrationToolParamDto>;
|
|
617
|
+
};
|
|
618
|
+
type IntegrationSettingsOutputDto = {
|
|
619
|
+
/**
|
|
620
|
+
* Human-readable posting rules for the provider.
|
|
621
|
+
*/
|
|
622
|
+
rules: string;
|
|
623
|
+
/**
|
|
624
|
+
* Maximum post length for this channel, verification taken into account.
|
|
625
|
+
*/
|
|
626
|
+
maxLength: number;
|
|
627
|
+
/**
|
|
628
|
+
* JSON schema of the provider settings, or the string "No additional settings required" when the provider needs none.
|
|
629
|
+
*/
|
|
630
|
+
settings: {
|
|
631
|
+
[key: string]: unknown;
|
|
632
|
+
};
|
|
633
|
+
tools: Array<IntegrationToolDto>;
|
|
634
|
+
};
|
|
635
|
+
type IntegrationSettingsDto = {
|
|
636
|
+
output: IntegrationSettingsOutputDto;
|
|
637
|
+
};
|
|
638
|
+
type MissingContentItemDto = {
|
|
639
|
+
/**
|
|
640
|
+
* Provider id of the item — what PUT /posts/{id}/release-id takes as `releaseId`.
|
|
641
|
+
*/
|
|
642
|
+
id: string;
|
|
643
|
+
/**
|
|
644
|
+
* Cover or preview URL, to recognise the item.
|
|
645
|
+
*/
|
|
646
|
+
url: string;
|
|
647
|
+
};
|
|
648
|
+
type ChangePostStatusDto = {
|
|
649
|
+
status: 'draft' | 'schedule';
|
|
650
|
+
};
|
|
651
|
+
type PostStatusDto = {
|
|
652
|
+
id: string;
|
|
653
|
+
state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT';
|
|
654
|
+
};
|
|
655
|
+
type UpdateReleaseIdDto = {
|
|
656
|
+
/**
|
|
657
|
+
* Provider post id to record against the post.
|
|
658
|
+
*/
|
|
659
|
+
releaseId: string;
|
|
660
|
+
};
|
|
661
|
+
type AnalyticsPointDto = {
|
|
662
|
+
date: string;
|
|
663
|
+
total: string;
|
|
664
|
+
};
|
|
665
|
+
type AnalyticsMetricDto = {
|
|
666
|
+
/**
|
|
667
|
+
* Metric label, e.g. `Followers`, `Reach`.
|
|
668
|
+
*/
|
|
669
|
+
label: string;
|
|
670
|
+
data: Array<AnalyticsPointDto>;
|
|
671
|
+
percentageChange?: number;
|
|
672
|
+
};
|
|
673
|
+
type AccountHistoryItemDto = {
|
|
674
|
+
integrationId: string;
|
|
675
|
+
/**
|
|
676
|
+
* Collection timestamp.
|
|
677
|
+
*/
|
|
678
|
+
at: string;
|
|
679
|
+
/**
|
|
680
|
+
* Metric name as the provider names it.
|
|
681
|
+
*/
|
|
682
|
+
metric: string;
|
|
683
|
+
value: number;
|
|
684
|
+
};
|
|
685
|
+
type HistoryPageDto = {
|
|
686
|
+
items: Array<AccountHistoryItemDto>;
|
|
687
|
+
/**
|
|
688
|
+
* Total rows in the window, before limit/offset.
|
|
689
|
+
*/
|
|
690
|
+
total: number;
|
|
691
|
+
limit: number;
|
|
692
|
+
offset: number;
|
|
693
|
+
/**
|
|
694
|
+
* Start of the window actually used (defaults to 30 days back).
|
|
695
|
+
*/
|
|
696
|
+
from: string;
|
|
697
|
+
/**
|
|
698
|
+
* End of the window actually used (defaults to now).
|
|
699
|
+
*/
|
|
700
|
+
to: string;
|
|
701
|
+
};
|
|
702
|
+
type VideoIdentityDto = {
|
|
703
|
+
/**
|
|
704
|
+
* Provider video id — the key used in `items`.
|
|
705
|
+
*/
|
|
706
|
+
videoId: string;
|
|
707
|
+
title?: string | null;
|
|
708
|
+
cover?: string | null;
|
|
709
|
+
/**
|
|
710
|
+
* Duration in seconds.
|
|
711
|
+
*/
|
|
712
|
+
duration?: number | null;
|
|
713
|
+
};
|
|
714
|
+
type VideoHistoryPageDto = {
|
|
715
|
+
items: Array<AccountHistoryItemDto>;
|
|
716
|
+
/**
|
|
717
|
+
* Total rows in the window, before limit/offset.
|
|
718
|
+
*/
|
|
719
|
+
total: number;
|
|
720
|
+
limit: number;
|
|
721
|
+
offset: number;
|
|
722
|
+
/**
|
|
723
|
+
* Start of the window actually used (defaults to 30 days back).
|
|
724
|
+
*/
|
|
725
|
+
from: string;
|
|
726
|
+
/**
|
|
727
|
+
* End of the window actually used (defaults to now).
|
|
728
|
+
*/
|
|
729
|
+
to: string;
|
|
730
|
+
/**
|
|
731
|
+
* Videos confirmed deleted on the provider, excluded from `items`. Lets a consumer tell a shrinking catalogue from a collection gap.
|
|
732
|
+
*/
|
|
733
|
+
hidden: number;
|
|
734
|
+
/**
|
|
735
|
+
* Identity of the video ids in `items` — the series alone only knows opaque ids.
|
|
736
|
+
*/
|
|
737
|
+
videos: Array<VideoIdentityDto>;
|
|
738
|
+
};
|
|
739
|
+
type IntegrationTriggerDto = {
|
|
740
|
+
/**
|
|
741
|
+
* Tool to run, as listed by `GET /integration-settings/{id}` under `output.tools[].methodName`.
|
|
742
|
+
*/
|
|
743
|
+
methodName: string;
|
|
744
|
+
/**
|
|
745
|
+
* Arguments for the tool. Shape depends on the tool.
|
|
746
|
+
*/
|
|
747
|
+
data?: {
|
|
748
|
+
[key: string]: string;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
type IntegrationTriggerResultDto = {
|
|
752
|
+
/**
|
|
753
|
+
* Raw provider answer — its shape depends on the tool called.
|
|
754
|
+
*/
|
|
755
|
+
output: {
|
|
756
|
+
[key: string]: unknown;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
type InstagramMediaDto = {
|
|
760
|
+
/**
|
|
761
|
+
* Media id — what a pose stores as `mediaId`.
|
|
762
|
+
*/
|
|
763
|
+
id: string;
|
|
764
|
+
caption?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* `IMAGE`, `VIDEO`, `CAROUSEL_ALBUM`, `STORY`.
|
|
767
|
+
*/
|
|
768
|
+
media_type?: string;
|
|
769
|
+
media_url?: string;
|
|
770
|
+
permalink?: string;
|
|
771
|
+
timestamp?: string;
|
|
772
|
+
comments_count?: number;
|
|
773
|
+
like_count?: number;
|
|
774
|
+
};
|
|
775
|
+
type InstagramCommentAuthorDto = {
|
|
776
|
+
id: string;
|
|
777
|
+
/**
|
|
778
|
+
* Read this, not the top-level `username`: the top-level one only exists for accounts holding a role on the Meta app.
|
|
779
|
+
*/
|
|
780
|
+
username: string;
|
|
781
|
+
};
|
|
782
|
+
type InstagramCommentDto = {
|
|
783
|
+
id: string;
|
|
784
|
+
text: string;
|
|
785
|
+
timestamp: string;
|
|
786
|
+
from: InstagramCommentAuthorDto;
|
|
787
|
+
/**
|
|
788
|
+
* Set when the comment is a reply — top-level comments have none.
|
|
789
|
+
*/
|
|
790
|
+
parent_id?: string | null;
|
|
791
|
+
/**
|
|
792
|
+
* True when the comment is hidden: only its author still sees it.
|
|
793
|
+
*/
|
|
794
|
+
hidden?: boolean;
|
|
795
|
+
};
|
|
796
|
+
type ReplyToCommentDto = {
|
|
797
|
+
integrationId: string;
|
|
798
|
+
message: string;
|
|
799
|
+
};
|
|
800
|
+
type SuccessDto = {
|
|
801
|
+
success: boolean;
|
|
802
|
+
};
|
|
803
|
+
type HideCommentDto = {
|
|
804
|
+
hide: boolean;
|
|
805
|
+
};
|
|
806
|
+
type InboxConversationDto = {
|
|
807
|
+
id: string;
|
|
808
|
+
/**
|
|
809
|
+
* Box the conversation sits in (`category`) and its sort timestamp (`sortAt`).
|
|
810
|
+
*/
|
|
811
|
+
inbox?: {
|
|
812
|
+
[key: string]: unknown;
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Meta shape: `{ data: [ { id, username } ] }`.
|
|
816
|
+
*/
|
|
817
|
+
participants?: {
|
|
818
|
+
[key: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* Meta shape: `{ data: [ message ] }`, most recent first.
|
|
822
|
+
*/
|
|
823
|
+
messages?: {
|
|
824
|
+
[key: string]: unknown;
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
type SendMessageDto = {
|
|
828
|
+
recipientId: string;
|
|
829
|
+
text: string;
|
|
830
|
+
linkUrl?: string;
|
|
831
|
+
linkButtonText?: string;
|
|
832
|
+
};
|
|
833
|
+
type InboxPollResultDto = {
|
|
834
|
+
/**
|
|
835
|
+
* Conversations read from Meta during this poll.
|
|
836
|
+
*/
|
|
837
|
+
conversations: number;
|
|
838
|
+
/**
|
|
839
|
+
* Inbound messages handed to the automations waiting on them.
|
|
840
|
+
*/
|
|
841
|
+
handled: number;
|
|
842
|
+
};
|
|
843
|
+
type InboxParticipantDto = {
|
|
844
|
+
id: string;
|
|
845
|
+
username?: string;
|
|
846
|
+
};
|
|
847
|
+
type InboxMessageDto = {
|
|
848
|
+
id: string;
|
|
849
|
+
message: string;
|
|
850
|
+
created_time: string;
|
|
851
|
+
from?: InboxParticipantDto;
|
|
852
|
+
};
|
|
853
|
+
type AutomationFlowIssueDto = {
|
|
854
|
+
level: 'error' | 'warning';
|
|
855
|
+
/**
|
|
856
|
+
* A code of flow.validate.ts (`empty_text`, `button_title_too_long`, `window_closed`…).
|
|
857
|
+
*/
|
|
858
|
+
code: string;
|
|
859
|
+
/**
|
|
860
|
+
* The step concerned.
|
|
861
|
+
*/
|
|
862
|
+
nodeId?: string | null;
|
|
863
|
+
params?: {
|
|
864
|
+
[key: string]: unknown;
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
type AutomationFlowCountsDto = {
|
|
868
|
+
/**
|
|
869
|
+
* Publications the template is posed on.
|
|
870
|
+
*/
|
|
871
|
+
poses: number;
|
|
872
|
+
/**
|
|
873
|
+
* People who went through it (skipped runs excluded).
|
|
874
|
+
*/
|
|
875
|
+
runs: number;
|
|
876
|
+
};
|
|
877
|
+
type AutomationFlowResponseDto = {
|
|
878
|
+
id: string;
|
|
879
|
+
name: string;
|
|
880
|
+
/**
|
|
881
|
+
* The Instagram channel the DMs go out from; null = not chosen yet.
|
|
882
|
+
*/
|
|
883
|
+
integrationId?: string | null;
|
|
884
|
+
/**
|
|
885
|
+
* The switch of every pose of the template.
|
|
886
|
+
*/
|
|
887
|
+
status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
|
|
888
|
+
/**
|
|
889
|
+
* The tree (FlowDefinition of automation-flow/flow.types.ts): nodes, edges, variables. A template carries no trigger word and no variable value — those belong to a pose.
|
|
890
|
+
*/
|
|
891
|
+
definition: {
|
|
892
|
+
[key: string]: unknown;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* What is left to finish, and what Instagram would refuse. ACTIVE is refused while an error remains.
|
|
896
|
+
*/
|
|
897
|
+
issues: Array<AutomationFlowIssueDto>;
|
|
898
|
+
_count?: AutomationFlowCountsDto;
|
|
899
|
+
createdAt: string;
|
|
900
|
+
updatedAt: string;
|
|
901
|
+
};
|
|
902
|
+
type EmailPreviewDto = {
|
|
903
|
+
brevoTemplateId: number;
|
|
904
|
+
dmLinkUrl?: string | null;
|
|
905
|
+
resourceName?: string | null;
|
|
906
|
+
keyword?: string | null;
|
|
907
|
+
username?: string | null;
|
|
908
|
+
};
|
|
909
|
+
type EmailPreviewDtoResponse = {
|
|
910
|
+
templateId: number;
|
|
911
|
+
templateName: string;
|
|
912
|
+
/**
|
|
913
|
+
* Whether Brevo has the template active.
|
|
914
|
+
*/
|
|
915
|
+
active: boolean;
|
|
916
|
+
/**
|
|
917
|
+
* Rendered subject.
|
|
918
|
+
*/
|
|
919
|
+
subject: string;
|
|
920
|
+
/**
|
|
921
|
+
* Brevo sender (name, email).
|
|
922
|
+
*/
|
|
923
|
+
sender: {
|
|
924
|
+
[key: string]: unknown;
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* Rendered HTML body.
|
|
928
|
+
*/
|
|
929
|
+
html: string;
|
|
930
|
+
/**
|
|
931
|
+
* The params the template was rendered with (LINK, RESOURCE, KEYWORD, USERNAME).
|
|
932
|
+
*/
|
|
933
|
+
params: {
|
|
934
|
+
[key: string]: unknown;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
type EmailTestDto = {
|
|
938
|
+
brevoTemplateId: number;
|
|
939
|
+
dmLinkUrl?: string | null;
|
|
940
|
+
resourceName?: string | null;
|
|
941
|
+
keyword?: string | null;
|
|
942
|
+
username?: string | null;
|
|
943
|
+
to?: string | null;
|
|
944
|
+
};
|
|
945
|
+
type EmailSentDto = {
|
|
946
|
+
sent: boolean;
|
|
947
|
+
/**
|
|
948
|
+
* The address it went to.
|
|
949
|
+
*/
|
|
950
|
+
to: string;
|
|
951
|
+
};
|
|
952
|
+
type AutomationFlowDto = {
|
|
953
|
+
name: string;
|
|
954
|
+
integrationId?: string | null;
|
|
955
|
+
definition: {
|
|
956
|
+
[key: string]: unknown;
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
type UpdateAutomationFlowDto = {
|
|
960
|
+
name?: string;
|
|
961
|
+
integrationId?: string | null;
|
|
962
|
+
definition?: {
|
|
963
|
+
[key: string]: unknown;
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
type AutomationFlowStatusDto = {
|
|
967
|
+
status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
|
|
968
|
+
};
|
|
969
|
+
type AutomationPoseFlowDto = {
|
|
970
|
+
id: string;
|
|
971
|
+
name: string;
|
|
972
|
+
status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
|
|
973
|
+
};
|
|
974
|
+
type AutomationPoseCountsDto = {
|
|
975
|
+
runs: number;
|
|
976
|
+
waiting: number;
|
|
977
|
+
done: number;
|
|
978
|
+
failed: number;
|
|
979
|
+
emails: number;
|
|
980
|
+
};
|
|
981
|
+
type AutomationFlowPoseResponseDto = {
|
|
982
|
+
id: string;
|
|
983
|
+
flowId: string;
|
|
984
|
+
integrationId: string;
|
|
985
|
+
/**
|
|
986
|
+
* The UseNadia post it was chosen on, when it came from the composer.
|
|
987
|
+
*/
|
|
988
|
+
postId?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* The Instagram publication watched: a post id, or a story id.
|
|
991
|
+
*/
|
|
992
|
+
mediaId: string;
|
|
993
|
+
source: 'post_comment' | 'story_reply';
|
|
994
|
+
/**
|
|
995
|
+
* This publication’s trigger words.
|
|
996
|
+
*/
|
|
997
|
+
keywords: Array<string>;
|
|
998
|
+
/**
|
|
999
|
+
* { ressource: "le kit AWS", bouton: "Le kit AWS", lien: "https://…" } — one value per variable of the template.
|
|
1000
|
+
*/
|
|
1001
|
+
variables: {
|
|
1002
|
+
[key: string]: string;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* The pause of this pose alone.
|
|
1006
|
+
*/
|
|
1007
|
+
active: boolean;
|
|
1008
|
+
flow?: AutomationPoseFlowDto;
|
|
1009
|
+
/**
|
|
1010
|
+
* Present on list routes.
|
|
1011
|
+
*/
|
|
1012
|
+
counts?: AutomationPoseCountsDto;
|
|
1013
|
+
createdAt: string;
|
|
1014
|
+
updatedAt: string;
|
|
1015
|
+
};
|
|
1016
|
+
type PoseAutomationFlowDto = {
|
|
1017
|
+
integrationId: string;
|
|
1018
|
+
mediaId: string;
|
|
1019
|
+
kind?: 'post' | 'story';
|
|
1020
|
+
keywords?: Array<string>;
|
|
1021
|
+
variables?: {
|
|
1022
|
+
[key: string]: unknown;
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
type UpdateAutomationFlowPoseDto = {
|
|
1026
|
+
keywords?: Array<string>;
|
|
1027
|
+
variables?: {
|
|
1028
|
+
[key: string]: unknown;
|
|
1029
|
+
};
|
|
1030
|
+
active?: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
type AutomationFlowRunResponseDto = {
|
|
1033
|
+
id: string;
|
|
1034
|
+
poseId: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Id of the comment or message that started it.
|
|
1037
|
+
*/
|
|
1038
|
+
triggerId: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* `from.id` of the trigger (not the messaging id for a comment).
|
|
1041
|
+
*/
|
|
1042
|
+
commenterId: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* The IGSID usable with the Messaging API, once known.
|
|
1045
|
+
*/
|
|
1046
|
+
personId?: string | null;
|
|
1047
|
+
username?: string | null;
|
|
1048
|
+
keyword: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* The trigger text.
|
|
1051
|
+
*/
|
|
1052
|
+
text: string;
|
|
1053
|
+
status: 'PENDING' | 'WAITING' | 'DELAYED' | 'DONE' | 'HANDED_OFF' | 'FAILED' | 'SKIPPED';
|
|
1054
|
+
email?: string | null;
|
|
1055
|
+
tags: Array<string>;
|
|
1056
|
+
isFollower?: boolean | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Why it failed, or what Brevo refused.
|
|
1059
|
+
*/
|
|
1060
|
+
error?: string | null;
|
|
1061
|
+
createdAt: string;
|
|
1062
|
+
updatedAt: string;
|
|
1063
|
+
completedAt?: string | null;
|
|
1064
|
+
};
|
|
1065
|
+
type AutomationFlowPollResultDto = {
|
|
1066
|
+
/**
|
|
1067
|
+
* Comments read on the publication.
|
|
1068
|
+
*/
|
|
1069
|
+
checked: number;
|
|
1070
|
+
/**
|
|
1071
|
+
* Runs started by this poll.
|
|
1072
|
+
*/
|
|
1073
|
+
started: number;
|
|
1074
|
+
};
|
|
1075
|
+
type ReplayPoseDto = {
|
|
1076
|
+
commentIds: Array<string>;
|
|
1077
|
+
resend?: boolean;
|
|
1078
|
+
};
|
|
1079
|
+
type AutomationFlowReplayResultDto = {
|
|
1080
|
+
commentId: string;
|
|
1081
|
+
username?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* `started`, or why not: `not_on_post`, `already_has_a_run`, `no_keyword`, `once_per_user`, `is_a_reply`, `own_comment`, `no_author`, `outside_meta_7_day_window`, `pose_has_errors`.
|
|
1084
|
+
*/
|
|
1085
|
+
outcome: string;
|
|
1086
|
+
keyword?: string;
|
|
1087
|
+
status?: string;
|
|
1088
|
+
error?: string | null;
|
|
1089
|
+
};
|
|
1090
|
+
type WebhookEventDto = {
|
|
1091
|
+
name: string;
|
|
1092
|
+
description: string;
|
|
1093
|
+
};
|
|
1094
|
+
type WebhookEventListDto = {
|
|
1095
|
+
events: Array<WebhookEventDto>;
|
|
1096
|
+
};
|
|
1097
|
+
type WebhookDto = {
|
|
1098
|
+
id: string;
|
|
1099
|
+
name: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Where deliveries are POSTed.
|
|
1102
|
+
*/
|
|
1103
|
+
url: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Comma-separated event names this endpoint wants. Null or empty means every event.
|
|
1106
|
+
*/
|
|
1107
|
+
events?: string | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Whether a signing secret exists. The secret itself is returned once, by the creation call, and stripped everywhere else.
|
|
1110
|
+
*/
|
|
1111
|
+
hasSecret: boolean;
|
|
1112
|
+
createdAt: string;
|
|
1113
|
+
updatedAt: string;
|
|
1114
|
+
};
|
|
1115
|
+
type WebhooksIntegrationDto = {
|
|
1116
|
+
id: string;
|
|
1117
|
+
};
|
|
1118
|
+
type CreatePublicWebhookDto = {
|
|
1119
|
+
id?: string;
|
|
1120
|
+
name: string;
|
|
1121
|
+
url: string;
|
|
1122
|
+
integrations?: Array<WebhooksIntegrationDto>;
|
|
1123
|
+
events?: Array<'post.published' | 'comment.received' | 'dm.received' | 'automation.triggered' | 'automation.email_captured'>;
|
|
1124
|
+
};
|
|
1125
|
+
type WebhookCreatedDto = {
|
|
1126
|
+
id: string;
|
|
1127
|
+
name: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Where deliveries are POSTed.
|
|
1130
|
+
*/
|
|
1131
|
+
url: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Comma-separated event names this endpoint wants. Null or empty means every event.
|
|
1134
|
+
*/
|
|
1135
|
+
events?: string | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Whether a signing secret exists. The secret itself is returned once, by the creation call, and stripped everywhere else.
|
|
1138
|
+
*/
|
|
1139
|
+
hasSecret: boolean;
|
|
1140
|
+
createdAt: string;
|
|
1141
|
+
updatedAt: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* Shared secret signing deliveries (`X-Nadia-Signature`). **Returned only here** — store it now, no other call gives it back.
|
|
1144
|
+
*/
|
|
1145
|
+
secret?: string;
|
|
1146
|
+
};
|
|
1147
|
+
type ContentChannelPerformanceDto = {
|
|
1148
|
+
integrationId: string;
|
|
1149
|
+
postId: string;
|
|
1150
|
+
releaseURL?: string | null;
|
|
1151
|
+
videoId?: string | null;
|
|
1152
|
+
publishedAt?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* When the counters were last read.
|
|
1155
|
+
*/
|
|
1156
|
+
takenAt?: string | null;
|
|
1157
|
+
views?: number | null;
|
|
1158
|
+
likes?: number | null;
|
|
1159
|
+
comments?: number | null;
|
|
1160
|
+
shares?: number | null;
|
|
1161
|
+
saves?: number | null;
|
|
1162
|
+
/**
|
|
1163
|
+
* Interactions / views, in %.
|
|
1164
|
+
*/
|
|
1165
|
+
engagementRate?: number | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* Instagram only, in %.
|
|
1168
|
+
*/
|
|
1169
|
+
skipRate?: number | null;
|
|
1170
|
+
avgWatchSeconds?: number | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* What the account gained in the 48 h after publication.
|
|
1173
|
+
*/
|
|
1174
|
+
followersGained?: number | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* People who triggered a keyword flow of the post.
|
|
1177
|
+
*/
|
|
1178
|
+
leads: number;
|
|
1179
|
+
/**
|
|
1180
|
+
* E-mails collected by those flows.
|
|
1181
|
+
*/
|
|
1182
|
+
emails: number;
|
|
1183
|
+
};
|
|
1184
|
+
type ContentPerformanceDto = {
|
|
1185
|
+
/**
|
|
1186
|
+
* Null when no channel is collected: never a 0 nobody measured.
|
|
1187
|
+
*/
|
|
1188
|
+
views?: number | null;
|
|
1189
|
+
engagementRate?: number | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Weighted by views.
|
|
1192
|
+
*/
|
|
1193
|
+
skipRate?: number | null;
|
|
1194
|
+
followersGained?: number | null;
|
|
1195
|
+
leads: number;
|
|
1196
|
+
emails: number;
|
|
1197
|
+
channels: Array<ContentChannelPerformanceDto>;
|
|
1198
|
+
};
|
|
1199
|
+
type ContentPostDto = {
|
|
1200
|
+
id: string;
|
|
1201
|
+
integrationId: string;
|
|
1202
|
+
state: 'QUEUE' | 'PUBLISHED' | 'ERROR' | 'DRAFT' | 'SENT_UNCONFIRMED';
|
|
1203
|
+
publishDate: string;
|
|
1204
|
+
releaseURL?: string | null;
|
|
1205
|
+
};
|
|
1206
|
+
type ContentListItemDto = {
|
|
1207
|
+
id: string;
|
|
1208
|
+
title: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Your own id for the card, unique per organisation.
|
|
1211
|
+
*/
|
|
1212
|
+
externalId?: string | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* The spoken hook (markdown).
|
|
1215
|
+
*/
|
|
1216
|
+
hook?: string | null;
|
|
1217
|
+
/**
|
|
1218
|
+
* The text shown on screen over the first seconds.
|
|
1219
|
+
*/
|
|
1220
|
+
hookText?: string | null;
|
|
1221
|
+
/**
|
|
1222
|
+
* The script (markdown).
|
|
1223
|
+
*/
|
|
1224
|
+
script?: string | null;
|
|
1225
|
+
notes?: string | null;
|
|
1226
|
+
/**
|
|
1227
|
+
* Free labels, e.g. a series.
|
|
1228
|
+
*/
|
|
1229
|
+
tags: Array<string>;
|
|
1230
|
+
/**
|
|
1231
|
+
* The resource the video gives away: READY, or TO_CREATE (the card cannot move to TO_SCHEDULE or PUBLISHED). Null: no resource.
|
|
1232
|
+
*/
|
|
1233
|
+
resourceStatus?: 'TO_CREATE' | 'READY';
|
|
1234
|
+
/**
|
|
1235
|
+
* Where the resource lives, or will live.
|
|
1236
|
+
*/
|
|
1237
|
+
resourceUrl?: string | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* What the resource holds, or the prompt to make it (markdown).
|
|
1240
|
+
*/
|
|
1241
|
+
resourceBrief?: string | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* The column of the card, in board order.
|
|
1244
|
+
*/
|
|
1245
|
+
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1246
|
+
/**
|
|
1247
|
+
* Rank inside the column (fractional, ascending).
|
|
1248
|
+
*/
|
|
1249
|
+
position: number;
|
|
1250
|
+
/**
|
|
1251
|
+
* Target channels (integration ids).
|
|
1252
|
+
*/
|
|
1253
|
+
integrationIds: Array<string>;
|
|
1254
|
+
plannedAt?: string | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* The final video, a media id of the library.
|
|
1257
|
+
*/
|
|
1258
|
+
videoMediaId?: string | null;
|
|
1259
|
+
videoPath?: string | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* The `group` of each post scheduled from the card.
|
|
1262
|
+
*/
|
|
1263
|
+
postGroups: Array<string>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Set when the card moved to PUBLISHED because its post went live.
|
|
1266
|
+
*/
|
|
1267
|
+
publishedAt?: string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
* The card this one is repurposed from.
|
|
1270
|
+
*/
|
|
1271
|
+
parentId?: string | null;
|
|
1272
|
+
createdAt: string;
|
|
1273
|
+
updatedAt: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Live cards repurposed from this one.
|
|
1276
|
+
*/
|
|
1277
|
+
childrenCount: number;
|
|
1278
|
+
/**
|
|
1279
|
+
* One entry per channel of each post scheduled from the card. Empty when there is none, or they were deleted.
|
|
1280
|
+
*/
|
|
1281
|
+
posts: Array<ContentPostDto>;
|
|
1282
|
+
};
|
|
1283
|
+
type CreateContentDto = {
|
|
1284
|
+
/**
|
|
1285
|
+
* Your own id for the card (a script file path, a build id). Unique per organisation: POST /contents/upsert finds the card by it.
|
|
1286
|
+
*/
|
|
1287
|
+
externalId?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Column the card starts in. Defaults to IDEA.
|
|
1290
|
+
*/
|
|
1291
|
+
stage?: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1292
|
+
/**
|
|
1293
|
+
* The card this one is repurposed from.
|
|
1294
|
+
*/
|
|
1295
|
+
parentId?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* The spoken hook (markdown).
|
|
1298
|
+
*/
|
|
1299
|
+
hook?: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* The text shown on screen over the first seconds.
|
|
1302
|
+
*/
|
|
1303
|
+
hookText?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* The script (markdown).
|
|
1306
|
+
*/
|
|
1307
|
+
script?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Free labels, e.g. a series.
|
|
1310
|
+
*/
|
|
1311
|
+
tags?: Array<string>;
|
|
1312
|
+
/**
|
|
1313
|
+
* The resource the video gives away (a link, a guide): READY, or TO_CREATE, which keeps the card out of TO_SCHEDULE and PUBLISHED. Omitted: no resource.
|
|
1314
|
+
*/
|
|
1315
|
+
resourceStatus?: 'TO_CREATE' | 'READY';
|
|
1316
|
+
/**
|
|
1317
|
+
* Where the resource lives, or will live.
|
|
1318
|
+
*/
|
|
1319
|
+
resourceUrl?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* What the resource holds, or the prompt to make it (markdown).
|
|
1322
|
+
*/
|
|
1323
|
+
resourceBrief?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Target channels (integration ids).
|
|
1326
|
+
*/
|
|
1327
|
+
integrationIds?: Array<string>;
|
|
1328
|
+
title: string;
|
|
1329
|
+
notes?: string;
|
|
1330
|
+
plannedAt?: string;
|
|
1331
|
+
};
|
|
1332
|
+
type ContentDto = {
|
|
1333
|
+
id: string;
|
|
1334
|
+
title: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Your own id for the card, unique per organisation.
|
|
1337
|
+
*/
|
|
1338
|
+
externalId?: string | null;
|
|
1339
|
+
/**
|
|
1340
|
+
* The spoken hook (markdown).
|
|
1341
|
+
*/
|
|
1342
|
+
hook?: string | null;
|
|
1343
|
+
/**
|
|
1344
|
+
* The text shown on screen over the first seconds.
|
|
1345
|
+
*/
|
|
1346
|
+
hookText?: string | null;
|
|
1347
|
+
/**
|
|
1348
|
+
* The script (markdown).
|
|
1349
|
+
*/
|
|
1350
|
+
script?: string | null;
|
|
1351
|
+
notes?: string | null;
|
|
1352
|
+
/**
|
|
1353
|
+
* Free labels, e.g. a series.
|
|
1354
|
+
*/
|
|
1355
|
+
tags: Array<string>;
|
|
1356
|
+
/**
|
|
1357
|
+
* The resource the video gives away: READY, or TO_CREATE (the card cannot move to TO_SCHEDULE or PUBLISHED). Null: no resource.
|
|
1358
|
+
*/
|
|
1359
|
+
resourceStatus?: 'TO_CREATE' | 'READY';
|
|
1360
|
+
/**
|
|
1361
|
+
* Where the resource lives, or will live.
|
|
1362
|
+
*/
|
|
1363
|
+
resourceUrl?: string | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* What the resource holds, or the prompt to make it (markdown).
|
|
1366
|
+
*/
|
|
1367
|
+
resourceBrief?: string | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* The column of the card, in board order.
|
|
1370
|
+
*/
|
|
1371
|
+
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1372
|
+
/**
|
|
1373
|
+
* Rank inside the column (fractional, ascending).
|
|
1374
|
+
*/
|
|
1375
|
+
position: number;
|
|
1376
|
+
/**
|
|
1377
|
+
* Target channels (integration ids).
|
|
1378
|
+
*/
|
|
1379
|
+
integrationIds: Array<string>;
|
|
1380
|
+
plannedAt?: string | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* The final video, a media id of the library.
|
|
1383
|
+
*/
|
|
1384
|
+
videoMediaId?: string | null;
|
|
1385
|
+
videoPath?: string | null;
|
|
1386
|
+
/**
|
|
1387
|
+
* The `group` of each post scheduled from the card.
|
|
1388
|
+
*/
|
|
1389
|
+
postGroups: Array<string>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Set when the card moved to PUBLISHED because its post went live.
|
|
1392
|
+
*/
|
|
1393
|
+
publishedAt?: string | null;
|
|
1394
|
+
/**
|
|
1395
|
+
* The card this one is repurposed from.
|
|
1396
|
+
*/
|
|
1397
|
+
parentId?: string | null;
|
|
1398
|
+
createdAt: string;
|
|
1399
|
+
updatedAt: string;
|
|
1400
|
+
};
|
|
1401
|
+
type UpsertContentDto = {
|
|
1402
|
+
/**
|
|
1403
|
+
* Column the card starts in. Defaults to IDEA.
|
|
1404
|
+
*/
|
|
1405
|
+
stage?: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1406
|
+
/**
|
|
1407
|
+
* The card this one is repurposed from.
|
|
1408
|
+
*/
|
|
1409
|
+
parentId?: string;
|
|
1410
|
+
/**
|
|
1411
|
+
* The spoken hook (markdown).
|
|
1412
|
+
*/
|
|
1413
|
+
hook?: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* The text shown on screen over the first seconds.
|
|
1416
|
+
*/
|
|
1417
|
+
hookText?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* The script (markdown).
|
|
1420
|
+
*/
|
|
1421
|
+
script?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* Free labels, e.g. a series.
|
|
1424
|
+
*/
|
|
1425
|
+
tags?: Array<string>;
|
|
1426
|
+
/**
|
|
1427
|
+
* The resource the video gives away (a link, a guide): READY, or TO_CREATE, which keeps the card out of TO_SCHEDULE and PUBLISHED. Omitted: no resource.
|
|
1428
|
+
*/
|
|
1429
|
+
resourceStatus?: 'TO_CREATE' | 'READY';
|
|
1430
|
+
/**
|
|
1431
|
+
* Where the resource lives, or will live.
|
|
1432
|
+
*/
|
|
1433
|
+
resourceUrl?: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* What the resource holds, or the prompt to make it (markdown).
|
|
1436
|
+
*/
|
|
1437
|
+
resourceBrief?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Target channels (integration ids).
|
|
1440
|
+
*/
|
|
1441
|
+
integrationIds?: Array<string>;
|
|
1442
|
+
title: string;
|
|
1443
|
+
notes?: string;
|
|
1444
|
+
plannedAt?: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* Your own id for the card: the key of the upsert.
|
|
1447
|
+
*/
|
|
1448
|
+
externalId: string;
|
|
1449
|
+
};
|
|
1450
|
+
type ContentUpsertDto = {
|
|
1451
|
+
/**
|
|
1452
|
+
* True when no card held the externalId and one was created.
|
|
1453
|
+
*/
|
|
1454
|
+
created: boolean;
|
|
1455
|
+
content: ContentDto;
|
|
1456
|
+
};
|
|
1457
|
+
type UpdateContentDto = {
|
|
1458
|
+
tags?: Array<string>;
|
|
1459
|
+
resourceStatus?: 'TO_CREATE' | 'READY';
|
|
1460
|
+
title?: string;
|
|
1461
|
+
externalId?: string | null;
|
|
1462
|
+
hook?: string | null;
|
|
1463
|
+
hookText?: string | null;
|
|
1464
|
+
script?: string | null;
|
|
1465
|
+
notes?: string | null;
|
|
1466
|
+
resourceUrl?: string | null;
|
|
1467
|
+
resourceBrief?: string | null;
|
|
1468
|
+
integrationIds?: Array<string>;
|
|
1469
|
+
plannedAt?: string | null;
|
|
1470
|
+
videoMediaId?: string | null;
|
|
1471
|
+
videoPath?: string | null;
|
|
1472
|
+
};
|
|
1473
|
+
type MoveContentDto = {
|
|
1474
|
+
stage: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
1475
|
+
/**
|
|
1476
|
+
* Rank inside the column (fractional). Omitted, the card goes to the bottom.
|
|
1477
|
+
*/
|
|
1478
|
+
position?: number;
|
|
1479
|
+
};
|
|
1480
|
+
type LinkContentPostDto = {
|
|
1481
|
+
/**
|
|
1482
|
+
* The `group` of the post: the id shared by every channel of one publication.
|
|
1483
|
+
*/
|
|
1484
|
+
postGroup: string;
|
|
1485
|
+
};
|
|
1486
|
+
type OkDto = {
|
|
1487
|
+
ok: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
type HookDto = {
|
|
1490
|
+
id: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* Year of publication.
|
|
1493
|
+
*/
|
|
1494
|
+
year?: number | null;
|
|
1495
|
+
language: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* The hook: the first sentence of the video.
|
|
1498
|
+
*/
|
|
1499
|
+
hook: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* The first ~40 words, context only.
|
|
1502
|
+
*/
|
|
1503
|
+
opening: string;
|
|
1504
|
+
views: number;
|
|
1505
|
+
/**
|
|
1506
|
+
* views / baseline of the account that day — ×5 = five times its usual views.
|
|
1507
|
+
*/
|
|
1508
|
+
normViews: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* Hook family (taxonomy slug).
|
|
1511
|
+
*/
|
|
1512
|
+
family?: string | null;
|
|
1513
|
+
familySecond?: string | null;
|
|
1514
|
+
/**
|
|
1515
|
+
* What the video delivers (`tuto_methode`, `ressource_outil`…).
|
|
1516
|
+
*/
|
|
1517
|
+
nature?: string | null;
|
|
1518
|
+
/**
|
|
1519
|
+
* The viewer leaves with something usable.
|
|
1520
|
+
*/
|
|
1521
|
+
concrete?: boolean | null;
|
|
1522
|
+
audience?: string | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* The subject in clear.
|
|
1525
|
+
*/
|
|
1526
|
+
subject?: string | null;
|
|
1527
|
+
format?: string | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* `1`, `2` or `3+` gestures before 15 s.
|
|
1530
|
+
*/
|
|
1531
|
+
lockinGestures?: string | null;
|
|
1532
|
+
textOnScreen?: boolean | null;
|
|
1533
|
+
/**
|
|
1534
|
+
* How many words of `q` this hook matched.
|
|
1535
|
+
*/
|
|
1536
|
+
matchedWords: number;
|
|
1537
|
+
};
|
|
1538
|
+
type HooksSearchResultDto = {
|
|
1539
|
+
/**
|
|
1540
|
+
* Size of the whole library.
|
|
1541
|
+
*/
|
|
1542
|
+
total: number;
|
|
1543
|
+
hooks: Array<HookDto>;
|
|
1544
|
+
};
|
|
1545
|
+
type HookFormDto = {
|
|
1546
|
+
/**
|
|
1547
|
+
* Hook family (taxonomy slug).
|
|
1548
|
+
*/
|
|
1549
|
+
family: string;
|
|
1550
|
+
/**
|
|
1551
|
+
* What the family is, in one line.
|
|
1552
|
+
*/
|
|
1553
|
+
label: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* Nature the numbers are measured on.
|
|
1556
|
+
*/
|
|
1557
|
+
nature: string;
|
|
1558
|
+
ratio?: number | null;
|
|
1559
|
+
ps?: number | null;
|
|
1560
|
+
bangers?: number | null;
|
|
1561
|
+
accountsFor: number;
|
|
1562
|
+
accountsAgainst: number;
|
|
1563
|
+
verdict: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* Real hooks of this family, drawn at random (catastrophic ones left out) — a hook on the subject itself comes first.
|
|
1566
|
+
*/
|
|
1567
|
+
examples: Array<HookDto>;
|
|
1568
|
+
};
|
|
1569
|
+
type HookFamilyDto = {
|
|
1570
|
+
family: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* Nature of video the row is measured on; `all` = the whole corpus.
|
|
1573
|
+
*/
|
|
1574
|
+
nature: string;
|
|
1575
|
+
n: number;
|
|
1576
|
+
accounts: number;
|
|
1577
|
+
/**
|
|
1578
|
+
* Views vs the rest at equal baseline (geometric means): ×1.10 = +10 %.
|
|
1579
|
+
*/
|
|
1580
|
+
ratio?: number | null;
|
|
1581
|
+
/**
|
|
1582
|
+
* Probability of superiority, 0.50 = no effect.
|
|
1583
|
+
*/
|
|
1584
|
+
ps?: number | null;
|
|
1585
|
+
/**
|
|
1586
|
+
* Share of videos at ≥ 2× the baseline.
|
|
1587
|
+
*/
|
|
1588
|
+
bangers?: number | null;
|
|
1589
|
+
bangersRest?: number | null;
|
|
1590
|
+
/**
|
|
1591
|
+
* Accounts where the family beats the rest of the same account.
|
|
1592
|
+
*/
|
|
1593
|
+
accountsFor: number;
|
|
1594
|
+
accountsAgainst: number;
|
|
1595
|
+
pSign?: number | null;
|
|
1596
|
+
/**
|
|
1597
|
+
* `PROUVÉ +/−`, `piste …` or `neutre` — only a proven family is a rule.
|
|
1598
|
+
*/
|
|
1599
|
+
verdict: string;
|
|
1600
|
+
measuredAt: string;
|
|
1601
|
+
};
|
|
1602
|
+
type HookImportItemDto = {
|
|
1603
|
+
source?: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Creator handle.
|
|
1606
|
+
*/
|
|
1607
|
+
account: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* Id of the video on the platform.
|
|
1610
|
+
*/
|
|
1611
|
+
externalId: string;
|
|
1612
|
+
publishedAt?: string;
|
|
1613
|
+
language?: string;
|
|
1614
|
+
/**
|
|
1615
|
+
* The first sentence.
|
|
1616
|
+
*/
|
|
1617
|
+
hook: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* The first ~40 words, context only.
|
|
1620
|
+
*/
|
|
1621
|
+
opening: string;
|
|
1622
|
+
views: number;
|
|
1623
|
+
/**
|
|
1624
|
+
* views / baseline of the account that day.
|
|
1625
|
+
*/
|
|
1626
|
+
normViews: number;
|
|
1627
|
+
family?: string;
|
|
1628
|
+
familySecond?: string;
|
|
1629
|
+
nature?: string;
|
|
1630
|
+
concrete?: boolean;
|
|
1631
|
+
audience?: string;
|
|
1632
|
+
/**
|
|
1633
|
+
* The subject in clear, a few words.
|
|
1634
|
+
*/
|
|
1635
|
+
subject?: string;
|
|
1636
|
+
format?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* `1`, `2` or `3+` gestures before 15 s.
|
|
1639
|
+
*/
|
|
1640
|
+
lockinGestures?: string;
|
|
1641
|
+
textOnScreen?: boolean;
|
|
1642
|
+
};
|
|
1643
|
+
type HooksImportDto = {
|
|
1644
|
+
/**
|
|
1645
|
+
* Up to 500 hooks per call, upserted on (source, account, externalId).
|
|
1646
|
+
*/
|
|
1647
|
+
items: Array<HookImportItemDto>;
|
|
1648
|
+
};
|
|
1649
|
+
type HooksImportResultDto = {
|
|
1650
|
+
imported: number;
|
|
1651
|
+
total: number;
|
|
1652
|
+
};
|
|
1653
|
+
type HookFamilyStatDto = {
|
|
1654
|
+
family: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* Nature of video this row is measured on; `all` = the whole corpus.
|
|
1657
|
+
*/
|
|
1658
|
+
nature?: string;
|
|
1659
|
+
n: number;
|
|
1660
|
+
accounts: number;
|
|
1661
|
+
ratio?: number | null;
|
|
1662
|
+
ps?: number | null;
|
|
1663
|
+
bangers?: number | null;
|
|
1664
|
+
bangersRest?: number | null;
|
|
1665
|
+
accountsFor: number;
|
|
1666
|
+
accountsAgainst: number;
|
|
1667
|
+
pSign?: number | null;
|
|
1668
|
+
verdict: string;
|
|
1669
|
+
};
|
|
1670
|
+
type HookFamiliesImportDto = {
|
|
1671
|
+
/**
|
|
1672
|
+
* When the corpus was measured.
|
|
1673
|
+
*/
|
|
1674
|
+
measuredAt: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* The whole table: it replaces the previous one.
|
|
1677
|
+
*/
|
|
1678
|
+
families: Array<HookFamilyStatDto>;
|
|
1679
|
+
};
|
|
1680
|
+
type MusicTrackDto = {
|
|
1681
|
+
/**
|
|
1682
|
+
* Stable identifier.
|
|
1683
|
+
*/
|
|
1684
|
+
slug: string;
|
|
1685
|
+
title: string;
|
|
1686
|
+
artist: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* `piano` (storytelling, educational, default), `news` (tension, actu), `synthwave` (tech), `epique` (cinematic).
|
|
1689
|
+
*/
|
|
1690
|
+
pillar: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* Seconds.
|
|
1693
|
+
*/
|
|
1694
|
+
durationS: number;
|
|
1695
|
+
bpm?: number | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Shape of the first seconds: crescendo, fade-in, nappe…
|
|
1698
|
+
*/
|
|
1699
|
+
intro?: string | null;
|
|
1700
|
+
/**
|
|
1701
|
+
* `ok` = fits under a voice; `limite` = usable, a bit fast or a punch early on.
|
|
1702
|
+
*/
|
|
1703
|
+
verdict: string;
|
|
1704
|
+
verdictWhy?: string | null;
|
|
1705
|
+
/**
|
|
1706
|
+
* Public Domain, CC0, CC-BY 3.0, CC-BY 4.0.
|
|
1707
|
+
*/
|
|
1708
|
+
license: string;
|
|
1709
|
+
attributionRequired: boolean;
|
|
1710
|
+
/**
|
|
1711
|
+
* The exact line to paste at the bottom of the description, before the hashtags. Null when nothing is owed.
|
|
1712
|
+
*/
|
|
1713
|
+
creditLine?: string | null;
|
|
1714
|
+
sourceUrl?: string | null;
|
|
1715
|
+
licenseUrl?: string | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* Flagged by YouTube Content ID (no effect on TikTok / Instagram).
|
|
1718
|
+
*/
|
|
1719
|
+
contentIdYoutube?: string | null;
|
|
1720
|
+
/**
|
|
1721
|
+
* Public URL of the prepared mp3: dynamics flattened, normalised to `storedLufs`.
|
|
1722
|
+
*/
|
|
1723
|
+
url: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* Integrated loudness (LUFS) of the file at `url`.
|
|
1726
|
+
*/
|
|
1727
|
+
storedLufs?: number | null;
|
|
1728
|
+
/**
|
|
1729
|
+
* Spread (LU) of its short-term loudness over 10 s windows — under 3 the bed is flat.
|
|
1730
|
+
*/
|
|
1731
|
+
storedSpreadLu?: number | null;
|
|
1732
|
+
fileSize: number;
|
|
1733
|
+
};
|
|
1734
|
+
type MusicListResultDto = {
|
|
1735
|
+
/**
|
|
1736
|
+
* Tracks available in the whole catalogue (verdict ok or limite, file present).
|
|
1737
|
+
*/
|
|
1738
|
+
total: number;
|
|
1739
|
+
/**
|
|
1740
|
+
* How to set the level and credit the track — the same recipe for every track.
|
|
1741
|
+
*/
|
|
1742
|
+
howTo: string;
|
|
1743
|
+
tracks: Array<MusicTrackDto>;
|
|
1744
|
+
};
|
|
1745
|
+
type MusicPillarDto = {
|
|
1746
|
+
pillar: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* What it is for.
|
|
1749
|
+
*/
|
|
1750
|
+
use: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Tracks with verdict ok.
|
|
1753
|
+
*/
|
|
1754
|
+
ok: number;
|
|
1755
|
+
/**
|
|
1756
|
+
* Tracks with verdict limite.
|
|
1757
|
+
*/
|
|
1758
|
+
limite: number;
|
|
1759
|
+
};
|
|
1760
|
+
type MusicImportItemDto = {
|
|
1761
|
+
/**
|
|
1762
|
+
* Stable identifier (file name without extension).
|
|
1763
|
+
*/
|
|
1764
|
+
slug: string;
|
|
1765
|
+
title: string;
|
|
1766
|
+
artist: string;
|
|
1767
|
+
pillar: 'piano' | 'news' | 'synthwave' | 'epique';
|
|
1768
|
+
/**
|
|
1769
|
+
* Seconds.
|
|
1770
|
+
*/
|
|
1771
|
+
durationS: number;
|
|
1772
|
+
bpm?: number;
|
|
1773
|
+
centroidHz?: number;
|
|
1774
|
+
intro?: string;
|
|
1775
|
+
earlyPunch?: number;
|
|
1776
|
+
verdict: 'ok' | 'limite' | 'hors-gabarit';
|
|
1777
|
+
verdictWhy?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Public Domain, CC0, CC-BY 3.0, CC-BY 4.0…
|
|
1780
|
+
*/
|
|
1781
|
+
license: string;
|
|
1782
|
+
attributionRequired: boolean;
|
|
1783
|
+
/**
|
|
1784
|
+
* The exact credit line, when attribution is required.
|
|
1785
|
+
*/
|
|
1786
|
+
creditLine?: string;
|
|
1787
|
+
sourceUrl?: string;
|
|
1788
|
+
licenseUrl?: string;
|
|
1789
|
+
contentIdYoutube?: string;
|
|
1790
|
+
notes?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* Integrated loudness (LUFS) of the prepared file.
|
|
1793
|
+
*/
|
|
1794
|
+
storedLufs?: number;
|
|
1795
|
+
/**
|
|
1796
|
+
* Spread (LU) of the short-term loudness over 10 s windows of the prepared file.
|
|
1797
|
+
*/
|
|
1798
|
+
storedSpreadLu?: number;
|
|
1799
|
+
/**
|
|
1800
|
+
* Flattening applied before normalisation: normal | dur.
|
|
1801
|
+
*/
|
|
1802
|
+
flatten?: string;
|
|
1803
|
+
};
|
|
1804
|
+
type MusicImportDto = {
|
|
1805
|
+
/**
|
|
1806
|
+
* Up to 100 tracks per call, upserted on `slug`.
|
|
1807
|
+
*/
|
|
1808
|
+
items: Array<MusicImportItemDto>;
|
|
1809
|
+
};
|
|
1810
|
+
type MusicImportResultDto = {
|
|
1811
|
+
imported: number;
|
|
1812
|
+
/**
|
|
1813
|
+
* Tracks in the catalogue, file or not.
|
|
1814
|
+
*/
|
|
1815
|
+
total: number;
|
|
1816
|
+
};
|
|
1817
|
+
type UploadFileData = {
|
|
1818
|
+
body: {
|
|
1819
|
+
file: Blob | File;
|
|
1820
|
+
};
|
|
1821
|
+
path?: never;
|
|
1822
|
+
query?: never;
|
|
1823
|
+
url: '/public/v1/upload';
|
|
1824
|
+
};
|
|
1825
|
+
type UploadFileErrors = {
|
|
1826
|
+
/**
|
|
1827
|
+
* The request was rejected — `msg` says why.
|
|
1828
|
+
*/
|
|
1829
|
+
400: ApiErrorDto;
|
|
1830
|
+
/**
|
|
1831
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1832
|
+
*/
|
|
1833
|
+
401: ApiErrorDto;
|
|
1834
|
+
/**
|
|
1835
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1836
|
+
*/
|
|
1837
|
+
404: ApiErrorDto;
|
|
1838
|
+
};
|
|
1839
|
+
type UploadFileError = UploadFileErrors[keyof UploadFileErrors];
|
|
1840
|
+
type UploadFileResponses = {
|
|
1841
|
+
201: MediaResponseDto;
|
|
1842
|
+
};
|
|
1843
|
+
type UploadFileResponse = UploadFileResponses[keyof UploadFileResponses];
|
|
1844
|
+
type UploadFromUrlData = {
|
|
1845
|
+
body: UploadDto;
|
|
1846
|
+
path?: never;
|
|
1847
|
+
query?: never;
|
|
1848
|
+
url: '/public/v1/upload-from-url';
|
|
1849
|
+
};
|
|
1850
|
+
type UploadFromUrlErrors = {
|
|
1851
|
+
/**
|
|
1852
|
+
* The request was rejected — `msg` says why.
|
|
1853
|
+
*/
|
|
1854
|
+
400: ApiErrorDto;
|
|
1855
|
+
/**
|
|
1856
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1857
|
+
*/
|
|
1858
|
+
401: ApiErrorDto;
|
|
1859
|
+
/**
|
|
1860
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1861
|
+
*/
|
|
1862
|
+
404: ApiErrorDto;
|
|
1863
|
+
};
|
|
1864
|
+
type UploadFromUrlError = UploadFromUrlErrors[keyof UploadFromUrlErrors];
|
|
1865
|
+
type UploadFromUrlResponses = {
|
|
1866
|
+
201: MediaResponseDto;
|
|
1867
|
+
};
|
|
1868
|
+
type UploadFromUrlResponse = UploadFromUrlResponses[keyof UploadFromUrlResponses];
|
|
1869
|
+
type FindSlotData = {
|
|
1870
|
+
body?: never;
|
|
1871
|
+
path: {
|
|
1872
|
+
id: string;
|
|
1873
|
+
};
|
|
1874
|
+
query?: never;
|
|
1875
|
+
url: '/public/v1/find-slot/{id}';
|
|
1876
|
+
};
|
|
1877
|
+
type FindSlotErrors = {
|
|
1878
|
+
/**
|
|
1879
|
+
* The request was rejected — `msg` says why.
|
|
1880
|
+
*/
|
|
1881
|
+
400: ApiErrorDto;
|
|
1882
|
+
/**
|
|
1883
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1884
|
+
*/
|
|
1885
|
+
401: ApiErrorDto;
|
|
1886
|
+
/**
|
|
1887
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1888
|
+
*/
|
|
1889
|
+
404: ApiErrorDto;
|
|
1890
|
+
};
|
|
1891
|
+
type FindSlotError = FindSlotErrors[keyof FindSlotErrors];
|
|
1892
|
+
type FindSlotResponses = {
|
|
1893
|
+
200: FindSlotDto;
|
|
1894
|
+
};
|
|
1895
|
+
type FindSlotResponse = FindSlotResponses[keyof FindSlotResponses];
|
|
1896
|
+
type ListPostsData = {
|
|
1897
|
+
body?: never;
|
|
1898
|
+
path?: never;
|
|
1899
|
+
query: {
|
|
1900
|
+
startDate: string;
|
|
1901
|
+
endDate: string;
|
|
1902
|
+
customer?: string;
|
|
1903
|
+
group?: string;
|
|
1904
|
+
integration?: string;
|
|
1905
|
+
};
|
|
1906
|
+
url: '/public/v1/posts';
|
|
1907
|
+
};
|
|
1908
|
+
type ListPostsErrors = {
|
|
1909
|
+
/**
|
|
1910
|
+
* The request was rejected — `msg` says why.
|
|
1911
|
+
*/
|
|
1912
|
+
400: ApiErrorDto;
|
|
1913
|
+
/**
|
|
1914
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1915
|
+
*/
|
|
1916
|
+
401: ApiErrorDto;
|
|
1917
|
+
/**
|
|
1918
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1919
|
+
*/
|
|
1920
|
+
404: ApiErrorDto;
|
|
1921
|
+
};
|
|
1922
|
+
type ListPostsError = ListPostsErrors[keyof ListPostsErrors];
|
|
1923
|
+
type ListPostsResponses = {
|
|
1924
|
+
200: PostListDto;
|
|
1925
|
+
};
|
|
1926
|
+
type ListPostsResponse = ListPostsResponses[keyof ListPostsResponses];
|
|
1927
|
+
type CreatePostData = {
|
|
1928
|
+
body: PublicCreatePostDto;
|
|
1929
|
+
path?: never;
|
|
1930
|
+
query?: never;
|
|
1931
|
+
url: '/public/v1/posts';
|
|
1932
|
+
};
|
|
1933
|
+
type CreatePostErrors = {
|
|
1934
|
+
/**
|
|
1935
|
+
* The request was rejected — `msg` says why.
|
|
1936
|
+
*/
|
|
1937
|
+
400: ApiErrorDto;
|
|
1938
|
+
/**
|
|
1939
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1940
|
+
*/
|
|
1941
|
+
401: ApiErrorDto;
|
|
1942
|
+
/**
|
|
1943
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1944
|
+
*/
|
|
1945
|
+
404: ApiErrorDto;
|
|
1946
|
+
};
|
|
1947
|
+
type CreatePostError = CreatePostErrors[keyof CreatePostErrors];
|
|
1948
|
+
type CreatePostResponses = {
|
|
1949
|
+
201: Array<CreatePostResultItemDto>;
|
|
1950
|
+
};
|
|
1951
|
+
type CreatePostResponse = CreatePostResponses[keyof CreatePostResponses];
|
|
1952
|
+
type DeletePostData = {
|
|
1953
|
+
body?: never;
|
|
1954
|
+
path: {
|
|
1955
|
+
id: string;
|
|
1956
|
+
};
|
|
1957
|
+
query?: never;
|
|
1958
|
+
url: '/public/v1/posts/{id}';
|
|
1959
|
+
};
|
|
1960
|
+
type DeletePostErrors = {
|
|
1961
|
+
/**
|
|
1962
|
+
* The request was rejected — `msg` says why.
|
|
1963
|
+
*/
|
|
1964
|
+
400: ApiErrorDto;
|
|
1965
|
+
/**
|
|
1966
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1967
|
+
*/
|
|
1968
|
+
401: ApiErrorDto;
|
|
1969
|
+
/**
|
|
1970
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1971
|
+
*/
|
|
1972
|
+
404: ApiErrorDto;
|
|
1973
|
+
};
|
|
1974
|
+
type DeletePostError = DeletePostErrors[keyof DeletePostErrors];
|
|
1975
|
+
type DeletePostResponses = {
|
|
1976
|
+
200: DeletedIdDto;
|
|
1977
|
+
};
|
|
1978
|
+
type DeletePostResponse = DeletePostResponses[keyof DeletePostResponses];
|
|
1979
|
+
type DeletePostGroupData = {
|
|
1980
|
+
body?: never;
|
|
1981
|
+
path: {
|
|
1982
|
+
group: string;
|
|
1983
|
+
};
|
|
1984
|
+
query?: never;
|
|
1985
|
+
url: '/public/v1/posts/group/{group}';
|
|
1986
|
+
};
|
|
1987
|
+
type DeletePostGroupErrors = {
|
|
1988
|
+
/**
|
|
1989
|
+
* The request was rejected — `msg` says why.
|
|
1990
|
+
*/
|
|
1991
|
+
400: ApiErrorDto;
|
|
1992
|
+
/**
|
|
1993
|
+
* Missing or invalid API key (`Authorization` header).
|
|
1994
|
+
*/
|
|
1995
|
+
401: ApiErrorDto;
|
|
1996
|
+
/**
|
|
1997
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
1998
|
+
*/
|
|
1999
|
+
404: ApiErrorDto;
|
|
2000
|
+
};
|
|
2001
|
+
type DeletePostGroupError = DeletePostGroupErrors[keyof DeletePostGroupErrors];
|
|
2002
|
+
type DeletePostGroupResponses = {
|
|
2003
|
+
200: DeletedIdDto;
|
|
2004
|
+
};
|
|
2005
|
+
type DeletePostGroupResponse = DeletePostGroupResponses[keyof DeletePostGroupResponses];
|
|
2006
|
+
type CheckConnectionData = {
|
|
2007
|
+
body?: never;
|
|
2008
|
+
path?: never;
|
|
2009
|
+
query?: never;
|
|
2010
|
+
url: '/public/v1/is-connected';
|
|
2011
|
+
};
|
|
2012
|
+
type CheckConnectionErrors = {
|
|
2013
|
+
/**
|
|
2014
|
+
* The request was rejected — `msg` says why.
|
|
2015
|
+
*/
|
|
2016
|
+
400: ApiErrorDto;
|
|
2017
|
+
/**
|
|
2018
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2019
|
+
*/
|
|
2020
|
+
401: ApiErrorDto;
|
|
2021
|
+
/**
|
|
2022
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2023
|
+
*/
|
|
2024
|
+
404: ApiErrorDto;
|
|
2025
|
+
};
|
|
2026
|
+
type CheckConnectionError = CheckConnectionErrors[keyof CheckConnectionErrors];
|
|
2027
|
+
type CheckConnectionResponses = {
|
|
2028
|
+
200: IsConnectedDto;
|
|
2029
|
+
};
|
|
2030
|
+
type CheckConnectionResponse = CheckConnectionResponses[keyof CheckConnectionResponses];
|
|
2031
|
+
type ListGroupsData = {
|
|
2032
|
+
body?: never;
|
|
2033
|
+
path?: never;
|
|
2034
|
+
query?: never;
|
|
2035
|
+
url: '/public/v1/groups';
|
|
2036
|
+
};
|
|
2037
|
+
type ListGroupsErrors = {
|
|
2038
|
+
/**
|
|
2039
|
+
* The request was rejected — `msg` says why.
|
|
2040
|
+
*/
|
|
2041
|
+
400: ApiErrorDto;
|
|
2042
|
+
/**
|
|
2043
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2044
|
+
*/
|
|
2045
|
+
401: ApiErrorDto;
|
|
2046
|
+
/**
|
|
2047
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2048
|
+
*/
|
|
2049
|
+
404: ApiErrorDto;
|
|
2050
|
+
};
|
|
2051
|
+
type ListGroupsError = ListGroupsErrors[keyof ListGroupsErrors];
|
|
2052
|
+
type ListGroupsResponses = {
|
|
2053
|
+
200: Array<GroupDto>;
|
|
2054
|
+
};
|
|
2055
|
+
type ListGroupsResponse = ListGroupsResponses[keyof ListGroupsResponses];
|
|
2056
|
+
type ListChannelsData = {
|
|
2057
|
+
body?: never;
|
|
2058
|
+
path?: never;
|
|
2059
|
+
query?: {
|
|
2060
|
+
group?: string;
|
|
2061
|
+
};
|
|
2062
|
+
url: '/public/v1/integrations';
|
|
2063
|
+
};
|
|
2064
|
+
type ListChannelsErrors = {
|
|
2065
|
+
/**
|
|
2066
|
+
* The request was rejected — `msg` says why.
|
|
2067
|
+
*/
|
|
2068
|
+
400: ApiErrorDto;
|
|
2069
|
+
/**
|
|
2070
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2071
|
+
*/
|
|
2072
|
+
401: ApiErrorDto;
|
|
2073
|
+
/**
|
|
2074
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2075
|
+
*/
|
|
2076
|
+
404: ApiErrorDto;
|
|
2077
|
+
};
|
|
2078
|
+
type ListChannelsError = ListChannelsErrors[keyof ListChannelsErrors];
|
|
2079
|
+
type ListChannelsResponses = {
|
|
2080
|
+
200: Array<IntegrationListItemDto>;
|
|
2081
|
+
};
|
|
2082
|
+
type ListChannelsResponse = ListChannelsResponses[keyof ListChannelsResponses];
|
|
2083
|
+
type StartChannelConnectionData = {
|
|
2084
|
+
body?: never;
|
|
2085
|
+
path: {
|
|
2086
|
+
integration: string;
|
|
2087
|
+
};
|
|
2088
|
+
query?: {
|
|
2089
|
+
refresh?: string;
|
|
2090
|
+
};
|
|
2091
|
+
url: '/public/v1/social/{integration}';
|
|
2092
|
+
};
|
|
2093
|
+
type StartChannelConnectionErrors = {
|
|
2094
|
+
/**
|
|
2095
|
+
* The request was rejected — `msg` says why.
|
|
2096
|
+
*/
|
|
2097
|
+
400: ApiErrorDto;
|
|
2098
|
+
/**
|
|
2099
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2100
|
+
*/
|
|
2101
|
+
401: ApiErrorDto;
|
|
2102
|
+
/**
|
|
2103
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2104
|
+
*/
|
|
2105
|
+
404: ApiErrorDto;
|
|
2106
|
+
};
|
|
2107
|
+
type StartChannelConnectionError = StartChannelConnectionErrors[keyof StartChannelConnectionErrors];
|
|
2108
|
+
type StartChannelConnectionResponses = {
|
|
2109
|
+
200: SocialAuthUrlDto;
|
|
2110
|
+
};
|
|
2111
|
+
type StartChannelConnectionResponse = StartChannelConnectionResponses[keyof StartChannelConnectionResponses];
|
|
2112
|
+
type ListNotificationsData = {
|
|
2113
|
+
body?: never;
|
|
2114
|
+
path?: never;
|
|
2115
|
+
query?: {
|
|
2116
|
+
page?: number;
|
|
2117
|
+
};
|
|
2118
|
+
url: '/public/v1/notifications';
|
|
2119
|
+
};
|
|
2120
|
+
type ListNotificationsErrors = {
|
|
2121
|
+
/**
|
|
2122
|
+
* The request was rejected — `msg` says why.
|
|
2123
|
+
*/
|
|
2124
|
+
400: ApiErrorDto;
|
|
2125
|
+
/**
|
|
2126
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2127
|
+
*/
|
|
2128
|
+
401: ApiErrorDto;
|
|
2129
|
+
/**
|
|
2130
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2131
|
+
*/
|
|
2132
|
+
404: ApiErrorDto;
|
|
2133
|
+
};
|
|
2134
|
+
type ListNotificationsError = ListNotificationsErrors[keyof ListNotificationsErrors];
|
|
2135
|
+
type ListNotificationsResponses = {
|
|
2136
|
+
200: NotificationsPageDto;
|
|
2137
|
+
};
|
|
2138
|
+
type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses];
|
|
2139
|
+
type GenerateVideoData = {
|
|
2140
|
+
body: VideoDto;
|
|
2141
|
+
path?: never;
|
|
2142
|
+
query?: never;
|
|
2143
|
+
url: '/public/v1/generate-video';
|
|
2144
|
+
};
|
|
2145
|
+
type GenerateVideoErrors = {
|
|
2146
|
+
/**
|
|
2147
|
+
* The request was rejected — `msg` says why.
|
|
2148
|
+
*/
|
|
2149
|
+
400: ApiErrorDto;
|
|
2150
|
+
/**
|
|
2151
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2152
|
+
*/
|
|
2153
|
+
401: ApiErrorDto;
|
|
2154
|
+
/**
|
|
2155
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2156
|
+
*/
|
|
2157
|
+
404: ApiErrorDto;
|
|
2158
|
+
};
|
|
2159
|
+
type GenerateVideoError = GenerateVideoErrors[keyof GenerateVideoErrors];
|
|
2160
|
+
type GenerateVideoResponses = {
|
|
2161
|
+
201: GeneratedVideoDto;
|
|
2162
|
+
};
|
|
2163
|
+
type GenerateVideoResponse = GenerateVideoResponses[keyof GenerateVideoResponses];
|
|
2164
|
+
type CallVideoFunctionData = {
|
|
2165
|
+
body: VideoFunctionDto;
|
|
2166
|
+
path?: never;
|
|
2167
|
+
query?: never;
|
|
2168
|
+
url: '/public/v1/video/function';
|
|
2169
|
+
};
|
|
2170
|
+
type CallVideoFunctionErrors = {
|
|
2171
|
+
/**
|
|
2172
|
+
* The request was rejected — `msg` says why.
|
|
2173
|
+
*/
|
|
2174
|
+
400: ApiErrorDto;
|
|
2175
|
+
/**
|
|
2176
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2177
|
+
*/
|
|
2178
|
+
401: ApiErrorDto;
|
|
2179
|
+
/**
|
|
2180
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2181
|
+
*/
|
|
2182
|
+
404: ApiErrorDto;
|
|
2183
|
+
};
|
|
2184
|
+
type CallVideoFunctionError = CallVideoFunctionErrors[keyof CallVideoFunctionErrors];
|
|
2185
|
+
type CallVideoFunctionResponses = {
|
|
2186
|
+
/**
|
|
2187
|
+
* Raw answer of the video provider function — shape depends on `functionName`.
|
|
2188
|
+
*/
|
|
2189
|
+
201: {
|
|
2190
|
+
[key: string]: unknown;
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
type CallVideoFunctionResponse = CallVideoFunctionResponses[keyof CallVideoFunctionResponses];
|
|
2194
|
+
type DeleteChannelData = {
|
|
2195
|
+
body?: never;
|
|
2196
|
+
path: {
|
|
2197
|
+
id: string;
|
|
2198
|
+
};
|
|
2199
|
+
query?: never;
|
|
2200
|
+
url: '/public/v1/integrations/{id}';
|
|
2201
|
+
};
|
|
2202
|
+
type DeleteChannelErrors = {
|
|
2203
|
+
/**
|
|
2204
|
+
* The request was rejected — `msg` says why.
|
|
2205
|
+
*/
|
|
2206
|
+
400: ApiErrorDto;
|
|
2207
|
+
/**
|
|
2208
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2209
|
+
*/
|
|
2210
|
+
401: ApiErrorDto;
|
|
2211
|
+
/**
|
|
2212
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2213
|
+
*/
|
|
2214
|
+
404: ApiErrorDto;
|
|
2215
|
+
};
|
|
2216
|
+
type DeleteChannelError = DeleteChannelErrors[keyof DeleteChannelErrors];
|
|
2217
|
+
type DeleteChannelResponses = {
|
|
2218
|
+
200: IntegrationListItemDto;
|
|
2219
|
+
};
|
|
2220
|
+
type DeleteChannelResponse = DeleteChannelResponses[keyof DeleteChannelResponses];
|
|
2221
|
+
type GetChannelSettingsData = {
|
|
2222
|
+
body?: never;
|
|
2223
|
+
path: {
|
|
2224
|
+
id: string;
|
|
2225
|
+
};
|
|
2226
|
+
query?: never;
|
|
2227
|
+
url: '/public/v1/integration-settings/{id}';
|
|
2228
|
+
};
|
|
2229
|
+
type GetChannelSettingsErrors = {
|
|
2230
|
+
/**
|
|
2231
|
+
* The request was rejected — `msg` says why.
|
|
2232
|
+
*/
|
|
2233
|
+
400: ApiErrorDto;
|
|
2234
|
+
/**
|
|
2235
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2236
|
+
*/
|
|
2237
|
+
401: ApiErrorDto;
|
|
2238
|
+
/**
|
|
2239
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2240
|
+
*/
|
|
2241
|
+
404: ApiErrorDto;
|
|
2242
|
+
};
|
|
2243
|
+
type GetChannelSettingsError = GetChannelSettingsErrors[keyof GetChannelSettingsErrors];
|
|
2244
|
+
type GetChannelSettingsResponses = {
|
|
2245
|
+
200: IntegrationSettingsDto;
|
|
2246
|
+
};
|
|
2247
|
+
type GetChannelSettingsResponse = GetChannelSettingsResponses[keyof GetChannelSettingsResponses];
|
|
2248
|
+
type ListMissingMediaData = {
|
|
2249
|
+
body?: never;
|
|
2250
|
+
path: {
|
|
2251
|
+
id: string;
|
|
2252
|
+
};
|
|
2253
|
+
query?: never;
|
|
2254
|
+
url: '/public/v1/posts/{id}/missing';
|
|
2255
|
+
};
|
|
2256
|
+
type ListMissingMediaErrors = {
|
|
2257
|
+
/**
|
|
2258
|
+
* The request was rejected — `msg` says why.
|
|
2259
|
+
*/
|
|
2260
|
+
400: ApiErrorDto;
|
|
2261
|
+
/**
|
|
2262
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2263
|
+
*/
|
|
2264
|
+
401: ApiErrorDto;
|
|
2265
|
+
/**
|
|
2266
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2267
|
+
*/
|
|
2268
|
+
404: ApiErrorDto;
|
|
2269
|
+
};
|
|
2270
|
+
type ListMissingMediaError = ListMissingMediaErrors[keyof ListMissingMediaErrors];
|
|
2271
|
+
type ListMissingMediaResponses = {
|
|
2272
|
+
200: Array<MissingContentItemDto>;
|
|
2273
|
+
};
|
|
2274
|
+
type ListMissingMediaResponse = ListMissingMediaResponses[keyof ListMissingMediaResponses];
|
|
2275
|
+
type ChangePostStatusData = {
|
|
2276
|
+
body: ChangePostStatusDto;
|
|
2277
|
+
path: {
|
|
2278
|
+
id: string;
|
|
2279
|
+
};
|
|
2280
|
+
query?: never;
|
|
2281
|
+
url: '/public/v1/posts/{id}/status';
|
|
2282
|
+
};
|
|
2283
|
+
type ChangePostStatusErrors = {
|
|
2284
|
+
/**
|
|
2285
|
+
* The request was rejected — `msg` says why.
|
|
2286
|
+
*/
|
|
2287
|
+
400: ApiErrorDto;
|
|
2288
|
+
/**
|
|
2289
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2290
|
+
*/
|
|
2291
|
+
401: ApiErrorDto;
|
|
2292
|
+
/**
|
|
2293
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2294
|
+
*/
|
|
2295
|
+
404: ApiErrorDto;
|
|
2296
|
+
};
|
|
2297
|
+
type ChangePostStatusError = ChangePostStatusErrors[keyof ChangePostStatusErrors];
|
|
2298
|
+
type ChangePostStatusResponses = {
|
|
2299
|
+
200: PostStatusDto;
|
|
2300
|
+
};
|
|
2301
|
+
type ChangePostStatusResponse = ChangePostStatusResponses[keyof ChangePostStatusResponses];
|
|
2302
|
+
type SetPostReleaseIdData = {
|
|
2303
|
+
body: UpdateReleaseIdDto;
|
|
2304
|
+
path: {
|
|
2305
|
+
id: string;
|
|
2306
|
+
};
|
|
2307
|
+
query?: never;
|
|
2308
|
+
url: '/public/v1/posts/{id}/release-id';
|
|
2309
|
+
};
|
|
2310
|
+
type SetPostReleaseIdErrors = {
|
|
2311
|
+
/**
|
|
2312
|
+
* The request was rejected — `msg` says why.
|
|
2313
|
+
*/
|
|
2314
|
+
400: ApiErrorDto;
|
|
2315
|
+
/**
|
|
2316
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2317
|
+
*/
|
|
2318
|
+
401: ApiErrorDto;
|
|
2319
|
+
/**
|
|
2320
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2321
|
+
*/
|
|
2322
|
+
404: ApiErrorDto;
|
|
2323
|
+
};
|
|
2324
|
+
type SetPostReleaseIdError = SetPostReleaseIdErrors[keyof SetPostReleaseIdErrors];
|
|
2325
|
+
type SetPostReleaseIdResponses = {
|
|
2326
|
+
200: PostDto;
|
|
2327
|
+
};
|
|
2328
|
+
type SetPostReleaseIdResponse = SetPostReleaseIdResponses[keyof SetPostReleaseIdResponses];
|
|
2329
|
+
type GetChannelAnalyticsData = {
|
|
2330
|
+
body?: never;
|
|
2331
|
+
path: {
|
|
2332
|
+
integration: string;
|
|
2333
|
+
};
|
|
2334
|
+
query: {
|
|
2335
|
+
date: string;
|
|
2336
|
+
};
|
|
2337
|
+
url: '/public/v1/analytics/{integration}';
|
|
2338
|
+
};
|
|
2339
|
+
type GetChannelAnalyticsErrors = {
|
|
2340
|
+
/**
|
|
2341
|
+
* The request was rejected — `msg` says why.
|
|
2342
|
+
*/
|
|
2343
|
+
400: ApiErrorDto;
|
|
2344
|
+
/**
|
|
2345
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2346
|
+
*/
|
|
2347
|
+
401: ApiErrorDto;
|
|
2348
|
+
/**
|
|
2349
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2350
|
+
*/
|
|
2351
|
+
404: ApiErrorDto;
|
|
2352
|
+
};
|
|
2353
|
+
type GetChannelAnalyticsError = GetChannelAnalyticsErrors[keyof GetChannelAnalyticsErrors];
|
|
2354
|
+
type GetChannelAnalyticsResponses = {
|
|
2355
|
+
200: Array<AnalyticsMetricDto>;
|
|
2356
|
+
};
|
|
2357
|
+
type GetChannelAnalyticsResponse = GetChannelAnalyticsResponses[keyof GetChannelAnalyticsResponses];
|
|
2358
|
+
type ListVideoPerformanceData = {
|
|
2359
|
+
body?: never;
|
|
2360
|
+
path: {
|
|
2361
|
+
integrationId: string;
|
|
2362
|
+
};
|
|
2363
|
+
query?: {
|
|
2364
|
+
max_count?: string;
|
|
2365
|
+
cursor?: string;
|
|
2366
|
+
};
|
|
2367
|
+
url: '/public/v1/video-list/{integrationId}';
|
|
2368
|
+
};
|
|
2369
|
+
type ListVideoPerformanceErrors = {
|
|
2370
|
+
/**
|
|
2371
|
+
* The request was rejected — `msg` says why.
|
|
2372
|
+
*/
|
|
2373
|
+
400: ApiErrorDto;
|
|
2374
|
+
/**
|
|
2375
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2376
|
+
*/
|
|
2377
|
+
401: ApiErrorDto;
|
|
2378
|
+
/**
|
|
2379
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2380
|
+
*/
|
|
2381
|
+
404: ApiErrorDto;
|
|
2382
|
+
};
|
|
2383
|
+
type ListVideoPerformanceError = ListVideoPerformanceErrors[keyof ListVideoPerformanceErrors];
|
|
2384
|
+
type ListVideoPerformanceResponses = {
|
|
2385
|
+
/**
|
|
2386
|
+
* Per-video performance as the provider returns it (TikTok/Instagram shapes differ).
|
|
2387
|
+
*/
|
|
2388
|
+
200: {
|
|
2389
|
+
[key: string]: unknown;
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
type ListVideoPerformanceResponse = ListVideoPerformanceResponses[keyof ListVideoPerformanceResponses];
|
|
2393
|
+
type GetAccountHistoryData = {
|
|
2394
|
+
body?: never;
|
|
2395
|
+
path: {
|
|
2396
|
+
integrationId: string;
|
|
2397
|
+
};
|
|
2398
|
+
query?: {
|
|
2399
|
+
from?: string;
|
|
2400
|
+
to?: string;
|
|
2401
|
+
videoId?: string;
|
|
2402
|
+
limit?: number;
|
|
2403
|
+
offset?: number;
|
|
2404
|
+
};
|
|
2405
|
+
url: '/public/v1/analytics-history/{integrationId}';
|
|
2406
|
+
};
|
|
2407
|
+
type GetAccountHistoryErrors = {
|
|
2408
|
+
/**
|
|
2409
|
+
* The request was rejected — `msg` says why.
|
|
2410
|
+
*/
|
|
2411
|
+
400: ApiErrorDto;
|
|
2412
|
+
/**
|
|
2413
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2414
|
+
*/
|
|
2415
|
+
401: ApiErrorDto;
|
|
2416
|
+
/**
|
|
2417
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2418
|
+
*/
|
|
2419
|
+
404: ApiErrorDto;
|
|
2420
|
+
};
|
|
2421
|
+
type GetAccountHistoryError = GetAccountHistoryErrors[keyof GetAccountHistoryErrors];
|
|
2422
|
+
type GetAccountHistoryResponses = {
|
|
2423
|
+
200: HistoryPageDto;
|
|
2424
|
+
};
|
|
2425
|
+
type GetAccountHistoryResponse = GetAccountHistoryResponses[keyof GetAccountHistoryResponses];
|
|
2426
|
+
type GetVideoHistoryData = {
|
|
2427
|
+
body?: never;
|
|
2428
|
+
path: {
|
|
2429
|
+
integrationId: string;
|
|
2430
|
+
};
|
|
2431
|
+
query?: {
|
|
2432
|
+
from?: string;
|
|
2433
|
+
to?: string;
|
|
2434
|
+
videoId?: string;
|
|
2435
|
+
limit?: number;
|
|
2436
|
+
offset?: number;
|
|
2437
|
+
};
|
|
2438
|
+
url: '/public/v1/video-history/{integrationId}';
|
|
2439
|
+
};
|
|
2440
|
+
type GetVideoHistoryErrors = {
|
|
2441
|
+
/**
|
|
2442
|
+
* The request was rejected — `msg` says why.
|
|
2443
|
+
*/
|
|
2444
|
+
400: ApiErrorDto;
|
|
2445
|
+
/**
|
|
2446
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2447
|
+
*/
|
|
2448
|
+
401: ApiErrorDto;
|
|
2449
|
+
/**
|
|
2450
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2451
|
+
*/
|
|
2452
|
+
404: ApiErrorDto;
|
|
2453
|
+
};
|
|
2454
|
+
type GetVideoHistoryError = GetVideoHistoryErrors[keyof GetVideoHistoryErrors];
|
|
2455
|
+
type GetVideoHistoryResponses = {
|
|
2456
|
+
200: VideoHistoryPageDto;
|
|
2457
|
+
};
|
|
2458
|
+
type GetVideoHistoryResponse = GetVideoHistoryResponses[keyof GetVideoHistoryResponses];
|
|
2459
|
+
type GetPostAnalyticsData = {
|
|
2460
|
+
body?: never;
|
|
2461
|
+
path: {
|
|
2462
|
+
postId: string;
|
|
2463
|
+
};
|
|
2464
|
+
query: {
|
|
2465
|
+
date: string;
|
|
2466
|
+
};
|
|
2467
|
+
url: '/public/v1/analytics/post/{postId}';
|
|
2468
|
+
};
|
|
2469
|
+
type GetPostAnalyticsErrors = {
|
|
2470
|
+
/**
|
|
2471
|
+
* The request was rejected — `msg` says why.
|
|
2472
|
+
*/
|
|
2473
|
+
400: ApiErrorDto;
|
|
2474
|
+
/**
|
|
2475
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2476
|
+
*/
|
|
2477
|
+
401: ApiErrorDto;
|
|
2478
|
+
/**
|
|
2479
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2480
|
+
*/
|
|
2481
|
+
404: ApiErrorDto;
|
|
2482
|
+
};
|
|
2483
|
+
type GetPostAnalyticsError = GetPostAnalyticsErrors[keyof GetPostAnalyticsErrors];
|
|
2484
|
+
type GetPostAnalyticsResponses = {
|
|
2485
|
+
/**
|
|
2486
|
+
* Per-post metrics as the provider returns them.
|
|
2487
|
+
*/
|
|
2488
|
+
200: {
|
|
2489
|
+
[key: string]: unknown;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
type GetPostAnalyticsResponse = GetPostAnalyticsResponses[keyof GetPostAnalyticsResponses];
|
|
2493
|
+
type RunChannelToolData = {
|
|
2494
|
+
body: IntegrationTriggerDto;
|
|
2495
|
+
path: {
|
|
2496
|
+
id: string;
|
|
2497
|
+
};
|
|
2498
|
+
query?: never;
|
|
2499
|
+
url: '/public/v1/integration-trigger/{id}';
|
|
2500
|
+
};
|
|
2501
|
+
type RunChannelToolErrors = {
|
|
2502
|
+
/**
|
|
2503
|
+
* The request was rejected — `msg` says why.
|
|
2504
|
+
*/
|
|
2505
|
+
400: ApiErrorDto;
|
|
2506
|
+
/**
|
|
2507
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2508
|
+
*/
|
|
2509
|
+
401: ApiErrorDto;
|
|
2510
|
+
/**
|
|
2511
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2512
|
+
*/
|
|
2513
|
+
404: ApiErrorDto;
|
|
2514
|
+
};
|
|
2515
|
+
type RunChannelToolError = RunChannelToolErrors[keyof RunChannelToolErrors];
|
|
2516
|
+
type RunChannelToolResponses = {
|
|
2517
|
+
201: IntegrationTriggerResultDto;
|
|
2518
|
+
};
|
|
2519
|
+
type RunChannelToolResponse = RunChannelToolResponses[keyof RunChannelToolResponses];
|
|
2520
|
+
type ListChannelMediaData = {
|
|
2521
|
+
body?: never;
|
|
2522
|
+
path: {
|
|
2523
|
+
integrationId: string;
|
|
2524
|
+
};
|
|
2525
|
+
query?: never;
|
|
2526
|
+
url: '/public/v1/inbox/media/{integrationId}';
|
|
2527
|
+
};
|
|
2528
|
+
type ListChannelMediaErrors = {
|
|
2529
|
+
/**
|
|
2530
|
+
* The request was rejected — `msg` says why.
|
|
2531
|
+
*/
|
|
2532
|
+
400: ApiErrorDto;
|
|
2533
|
+
/**
|
|
2534
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2535
|
+
*/
|
|
2536
|
+
401: ApiErrorDto;
|
|
2537
|
+
/**
|
|
2538
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2539
|
+
*/
|
|
2540
|
+
404: ApiErrorDto;
|
|
2541
|
+
};
|
|
2542
|
+
type ListChannelMediaError = ListChannelMediaErrors[keyof ListChannelMediaErrors];
|
|
2543
|
+
type ListChannelMediaResponses = {
|
|
2544
|
+
200: Array<InstagramMediaDto>;
|
|
2545
|
+
};
|
|
2546
|
+
type ListChannelMediaResponse = ListChannelMediaResponses[keyof ListChannelMediaResponses];
|
|
2547
|
+
type ListChannelStoriesData = {
|
|
2548
|
+
body?: never;
|
|
2549
|
+
path: {
|
|
2550
|
+
integrationId: string;
|
|
2551
|
+
};
|
|
2552
|
+
query?: never;
|
|
2553
|
+
url: '/public/v1/inbox/stories/{integrationId}';
|
|
2554
|
+
};
|
|
2555
|
+
type ListChannelStoriesErrors = {
|
|
2556
|
+
/**
|
|
2557
|
+
* The request was rejected — `msg` says why.
|
|
2558
|
+
*/
|
|
2559
|
+
400: ApiErrorDto;
|
|
2560
|
+
/**
|
|
2561
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2562
|
+
*/
|
|
2563
|
+
401: ApiErrorDto;
|
|
2564
|
+
/**
|
|
2565
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2566
|
+
*/
|
|
2567
|
+
404: ApiErrorDto;
|
|
2568
|
+
};
|
|
2569
|
+
type ListChannelStoriesError = ListChannelStoriesErrors[keyof ListChannelStoriesErrors];
|
|
2570
|
+
type ListChannelStoriesResponses = {
|
|
2571
|
+
200: Array<InstagramMediaDto>;
|
|
2572
|
+
};
|
|
2573
|
+
type ListChannelStoriesResponse = ListChannelStoriesResponses[keyof ListChannelStoriesResponses];
|
|
2574
|
+
type ListMediaCommentsData = {
|
|
2575
|
+
body?: never;
|
|
2576
|
+
path: {
|
|
2577
|
+
integrationId: string;
|
|
2578
|
+
mediaId: string;
|
|
2579
|
+
};
|
|
2580
|
+
query?: never;
|
|
2581
|
+
url: '/public/v1/inbox/comments/{integrationId}/{mediaId}';
|
|
2582
|
+
};
|
|
2583
|
+
type ListMediaCommentsErrors = {
|
|
2584
|
+
/**
|
|
2585
|
+
* The request was rejected — `msg` says why.
|
|
2586
|
+
*/
|
|
2587
|
+
400: ApiErrorDto;
|
|
2588
|
+
/**
|
|
2589
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2590
|
+
*/
|
|
2591
|
+
401: ApiErrorDto;
|
|
2592
|
+
/**
|
|
2593
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2594
|
+
*/
|
|
2595
|
+
404: ApiErrorDto;
|
|
2596
|
+
};
|
|
2597
|
+
type ListMediaCommentsError = ListMediaCommentsErrors[keyof ListMediaCommentsErrors];
|
|
2598
|
+
type ListMediaCommentsResponses = {
|
|
2599
|
+
200: Array<InstagramCommentDto>;
|
|
2600
|
+
};
|
|
2601
|
+
type ListMediaCommentsResponse = ListMediaCommentsResponses[keyof ListMediaCommentsResponses];
|
|
2602
|
+
type ReplyToCommentData = {
|
|
2603
|
+
body: ReplyToCommentDto;
|
|
2604
|
+
path: {
|
|
2605
|
+
commentId: string;
|
|
2606
|
+
};
|
|
2607
|
+
query?: never;
|
|
2608
|
+
url: '/public/v1/inbox/comments/{commentId}/reply';
|
|
2609
|
+
};
|
|
2610
|
+
type ReplyToCommentErrors = {
|
|
2611
|
+
/**
|
|
2612
|
+
* The request was rejected — `msg` says why.
|
|
2613
|
+
*/
|
|
2614
|
+
400: ApiErrorDto;
|
|
2615
|
+
/**
|
|
2616
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2617
|
+
*/
|
|
2618
|
+
401: ApiErrorDto;
|
|
2619
|
+
/**
|
|
2620
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2621
|
+
*/
|
|
2622
|
+
404: ApiErrorDto;
|
|
2623
|
+
};
|
|
2624
|
+
type ReplyToCommentError = ReplyToCommentErrors[keyof ReplyToCommentErrors];
|
|
2625
|
+
type ReplyToCommentResponses = {
|
|
2626
|
+
201: SuccessDto;
|
|
2627
|
+
};
|
|
2628
|
+
type ReplyToCommentResponse = ReplyToCommentResponses[keyof ReplyToCommentResponses];
|
|
2629
|
+
type HideCommentData = {
|
|
2630
|
+
body: HideCommentDto;
|
|
2631
|
+
path: {
|
|
2632
|
+
integrationId: string;
|
|
2633
|
+
commentId: string;
|
|
2634
|
+
};
|
|
2635
|
+
query?: never;
|
|
2636
|
+
url: '/public/v1/inbox/comments/{integrationId}/{commentId}/hide';
|
|
2637
|
+
};
|
|
2638
|
+
type HideCommentErrors = {
|
|
2639
|
+
/**
|
|
2640
|
+
* The request was rejected — `msg` says why.
|
|
2641
|
+
*/
|
|
2642
|
+
400: ApiErrorDto;
|
|
2643
|
+
/**
|
|
2644
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2645
|
+
*/
|
|
2646
|
+
401: ApiErrorDto;
|
|
2647
|
+
/**
|
|
2648
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2649
|
+
*/
|
|
2650
|
+
404: ApiErrorDto;
|
|
2651
|
+
};
|
|
2652
|
+
type HideCommentError = HideCommentErrors[keyof HideCommentErrors];
|
|
2653
|
+
type HideCommentResponses = {
|
|
2654
|
+
201: SuccessDto;
|
|
2655
|
+
};
|
|
2656
|
+
type HideCommentResponse = HideCommentResponses[keyof HideCommentResponses];
|
|
2657
|
+
type DeleteCommentData = {
|
|
2658
|
+
body?: never;
|
|
2659
|
+
path: {
|
|
2660
|
+
integrationId: string;
|
|
2661
|
+
commentId: string;
|
|
2662
|
+
};
|
|
2663
|
+
query?: never;
|
|
2664
|
+
url: '/public/v1/inbox/comments/{integrationId}/{commentId}';
|
|
2665
|
+
};
|
|
2666
|
+
type DeleteCommentErrors = {
|
|
2667
|
+
/**
|
|
2668
|
+
* The request was rejected — `msg` says why.
|
|
2669
|
+
*/
|
|
2670
|
+
400: ApiErrorDto;
|
|
2671
|
+
/**
|
|
2672
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2673
|
+
*/
|
|
2674
|
+
401: ApiErrorDto;
|
|
2675
|
+
/**
|
|
2676
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2677
|
+
*/
|
|
2678
|
+
404: ApiErrorDto;
|
|
2679
|
+
};
|
|
2680
|
+
type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
|
|
2681
|
+
type DeleteCommentResponses = {
|
|
2682
|
+
200: SuccessDto;
|
|
2683
|
+
};
|
|
2684
|
+
type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
|
|
2685
|
+
type ListConversationsData = {
|
|
2686
|
+
body?: never;
|
|
2687
|
+
path: {
|
|
2688
|
+
integrationId: string;
|
|
2689
|
+
};
|
|
2690
|
+
query?: {
|
|
2691
|
+
limit?: string;
|
|
2692
|
+
};
|
|
2693
|
+
url: '/public/v1/inbox/{integrationId}';
|
|
2694
|
+
};
|
|
2695
|
+
type ListConversationsErrors = {
|
|
2696
|
+
/**
|
|
2697
|
+
* The request was rejected — `msg` says why.
|
|
2698
|
+
*/
|
|
2699
|
+
400: ApiErrorDto;
|
|
2700
|
+
/**
|
|
2701
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2702
|
+
*/
|
|
2703
|
+
401: ApiErrorDto;
|
|
2704
|
+
/**
|
|
2705
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2706
|
+
*/
|
|
2707
|
+
404: ApiErrorDto;
|
|
2708
|
+
};
|
|
2709
|
+
type ListConversationsError = ListConversationsErrors[keyof ListConversationsErrors];
|
|
2710
|
+
type ListConversationsResponses = {
|
|
2711
|
+
200: Array<InboxConversationDto>;
|
|
2712
|
+
};
|
|
2713
|
+
type ListConversationsResponse = ListConversationsResponses[keyof ListConversationsResponses];
|
|
2714
|
+
type SendDirectMessageData = {
|
|
2715
|
+
body: SendMessageDto;
|
|
2716
|
+
path: {
|
|
2717
|
+
integrationId: string;
|
|
2718
|
+
};
|
|
2719
|
+
query?: never;
|
|
2720
|
+
url: '/public/v1/inbox/{integrationId}/send';
|
|
2721
|
+
};
|
|
2722
|
+
type SendDirectMessageErrors = {
|
|
2723
|
+
/**
|
|
2724
|
+
* The request was rejected — `msg` says why.
|
|
2725
|
+
*/
|
|
2726
|
+
400: ApiErrorDto;
|
|
2727
|
+
/**
|
|
2728
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2729
|
+
*/
|
|
2730
|
+
401: ApiErrorDto;
|
|
2731
|
+
/**
|
|
2732
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2733
|
+
*/
|
|
2734
|
+
404: ApiErrorDto;
|
|
2735
|
+
};
|
|
2736
|
+
type SendDirectMessageError = SendDirectMessageErrors[keyof SendDirectMessageErrors];
|
|
2737
|
+
type SendDirectMessageResponses = {
|
|
2738
|
+
201: SuccessDto;
|
|
2739
|
+
};
|
|
2740
|
+
type SendDirectMessageResponse = SendDirectMessageResponses[keyof SendDirectMessageResponses];
|
|
2741
|
+
type PollInboxData = {
|
|
2742
|
+
body?: never;
|
|
2743
|
+
path: {
|
|
2744
|
+
integrationId: string;
|
|
2745
|
+
};
|
|
2746
|
+
query?: never;
|
|
2747
|
+
url: '/public/v1/inbox/{integrationId}/poll';
|
|
2748
|
+
};
|
|
2749
|
+
type PollInboxErrors = {
|
|
2750
|
+
/**
|
|
2751
|
+
* The request was rejected — `msg` says why.
|
|
2752
|
+
*/
|
|
2753
|
+
400: ApiErrorDto;
|
|
2754
|
+
/**
|
|
2755
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2756
|
+
*/
|
|
2757
|
+
401: ApiErrorDto;
|
|
2758
|
+
/**
|
|
2759
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2760
|
+
*/
|
|
2761
|
+
404: ApiErrorDto;
|
|
2762
|
+
};
|
|
2763
|
+
type PollInboxError = PollInboxErrors[keyof PollInboxErrors];
|
|
2764
|
+
type PollInboxResponses = {
|
|
2765
|
+
201: InboxPollResultDto;
|
|
2766
|
+
};
|
|
2767
|
+
type PollInboxResponse = PollInboxResponses[keyof PollInboxResponses];
|
|
2768
|
+
type SubscribeInboxWebhookData = {
|
|
2769
|
+
body?: never;
|
|
2770
|
+
path: {
|
|
2771
|
+
integrationId: string;
|
|
2772
|
+
};
|
|
2773
|
+
query?: never;
|
|
2774
|
+
url: '/public/v1/inbox/{integrationId}/subscribe-webhook';
|
|
2775
|
+
};
|
|
2776
|
+
type SubscribeInboxWebhookErrors = {
|
|
2777
|
+
/**
|
|
2778
|
+
* The request was rejected — `msg` says why.
|
|
2779
|
+
*/
|
|
2780
|
+
400: ApiErrorDto;
|
|
2781
|
+
/**
|
|
2782
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2783
|
+
*/
|
|
2784
|
+
401: ApiErrorDto;
|
|
2785
|
+
/**
|
|
2786
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2787
|
+
*/
|
|
2788
|
+
404: ApiErrorDto;
|
|
2789
|
+
};
|
|
2790
|
+
type SubscribeInboxWebhookError = SubscribeInboxWebhookErrors[keyof SubscribeInboxWebhookErrors];
|
|
2791
|
+
type SubscribeInboxWebhookResponses = {
|
|
2792
|
+
201: SuccessDto;
|
|
2793
|
+
};
|
|
2794
|
+
type SubscribeInboxWebhookResponse = SubscribeInboxWebhookResponses[keyof SubscribeInboxWebhookResponses];
|
|
2795
|
+
type GetConversationData = {
|
|
2796
|
+
body?: never;
|
|
2797
|
+
path: {
|
|
2798
|
+
integrationId: string;
|
|
2799
|
+
conversationId: string;
|
|
2800
|
+
};
|
|
2801
|
+
query?: never;
|
|
2802
|
+
url: '/public/v1/inbox/{integrationId}/{conversationId}';
|
|
2803
|
+
};
|
|
2804
|
+
type GetConversationErrors = {
|
|
2805
|
+
/**
|
|
2806
|
+
* The request was rejected — `msg` says why.
|
|
2807
|
+
*/
|
|
2808
|
+
400: ApiErrorDto;
|
|
2809
|
+
/**
|
|
2810
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2811
|
+
*/
|
|
2812
|
+
401: ApiErrorDto;
|
|
2813
|
+
/**
|
|
2814
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
2815
|
+
*/
|
|
2816
|
+
404: ApiErrorDto;
|
|
2817
|
+
};
|
|
2818
|
+
type GetConversationError = GetConversationErrors[keyof GetConversationErrors];
|
|
2819
|
+
type GetConversationResponses = {
|
|
2820
|
+
200: Array<InboxMessageDto>;
|
|
2821
|
+
};
|
|
2822
|
+
type GetConversationResponse = GetConversationResponses[keyof GetConversationResponses];
|
|
2823
|
+
type ListAutomationFlowsData = {
|
|
2824
|
+
body?: never;
|
|
2825
|
+
path?: never;
|
|
2826
|
+
query?: never;
|
|
2827
|
+
url: '/public/v1/automation-flows';
|
|
2828
|
+
};
|
|
2829
|
+
type ListAutomationFlowsErrors = {
|
|
2830
|
+
/**
|
|
2831
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2832
|
+
*/
|
|
2833
|
+
400: ApiErrorDto;
|
|
2834
|
+
/**
|
|
2835
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2836
|
+
*/
|
|
2837
|
+
401: ApiErrorDto;
|
|
2838
|
+
/**
|
|
2839
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2840
|
+
*/
|
|
2841
|
+
404: ApiErrorDto;
|
|
2842
|
+
};
|
|
2843
|
+
type ListAutomationFlowsError = ListAutomationFlowsErrors[keyof ListAutomationFlowsErrors];
|
|
2844
|
+
type ListAutomationFlowsResponses = {
|
|
2845
|
+
200: Array<AutomationFlowResponseDto>;
|
|
2846
|
+
};
|
|
2847
|
+
type ListAutomationFlowsResponse = ListAutomationFlowsResponses[keyof ListAutomationFlowsResponses];
|
|
2848
|
+
type CreateAutomationFlowData = {
|
|
2849
|
+
body: AutomationFlowDto;
|
|
2850
|
+
path?: never;
|
|
2851
|
+
query?: never;
|
|
2852
|
+
url: '/public/v1/automation-flows';
|
|
2853
|
+
};
|
|
2854
|
+
type CreateAutomationFlowErrors = {
|
|
2855
|
+
/**
|
|
2856
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2857
|
+
*/
|
|
2858
|
+
400: ApiErrorDto;
|
|
2859
|
+
/**
|
|
2860
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2861
|
+
*/
|
|
2862
|
+
401: ApiErrorDto;
|
|
2863
|
+
/**
|
|
2864
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2865
|
+
*/
|
|
2866
|
+
404: ApiErrorDto;
|
|
2867
|
+
};
|
|
2868
|
+
type CreateAutomationFlowError = CreateAutomationFlowErrors[keyof CreateAutomationFlowErrors];
|
|
2869
|
+
type CreateAutomationFlowResponses = {
|
|
2870
|
+
201: AutomationFlowResponseDto;
|
|
2871
|
+
};
|
|
2872
|
+
type CreateAutomationFlowResponse = CreateAutomationFlowResponses[keyof CreateAutomationFlowResponses];
|
|
2873
|
+
type PreviewAutomationEmailData = {
|
|
2874
|
+
body: EmailPreviewDto;
|
|
2875
|
+
path?: never;
|
|
2876
|
+
query?: never;
|
|
2877
|
+
url: '/public/v1/automation-flows/email-preview';
|
|
2878
|
+
};
|
|
2879
|
+
type PreviewAutomationEmailErrors = {
|
|
2880
|
+
/**
|
|
2881
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2882
|
+
*/
|
|
2883
|
+
400: ApiErrorDto;
|
|
2884
|
+
/**
|
|
2885
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2886
|
+
*/
|
|
2887
|
+
401: ApiErrorDto;
|
|
2888
|
+
/**
|
|
2889
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2890
|
+
*/
|
|
2891
|
+
404: ApiErrorDto;
|
|
2892
|
+
};
|
|
2893
|
+
type PreviewAutomationEmailError = PreviewAutomationEmailErrors[keyof PreviewAutomationEmailErrors];
|
|
2894
|
+
type PreviewAutomationEmailResponses = {
|
|
2895
|
+
201: EmailPreviewDtoResponse;
|
|
2896
|
+
};
|
|
2897
|
+
type PreviewAutomationEmailResponse = PreviewAutomationEmailResponses[keyof PreviewAutomationEmailResponses];
|
|
2898
|
+
type SendAutomationTestEmailData = {
|
|
2899
|
+
body: EmailTestDto;
|
|
2900
|
+
path?: never;
|
|
2901
|
+
query?: never;
|
|
2902
|
+
url: '/public/v1/automation-flows/email-test';
|
|
2903
|
+
};
|
|
2904
|
+
type SendAutomationTestEmailErrors = {
|
|
2905
|
+
/**
|
|
2906
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2907
|
+
*/
|
|
2908
|
+
400: ApiErrorDto;
|
|
2909
|
+
/**
|
|
2910
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2911
|
+
*/
|
|
2912
|
+
401: ApiErrorDto;
|
|
2913
|
+
/**
|
|
2914
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2915
|
+
*/
|
|
2916
|
+
404: ApiErrorDto;
|
|
2917
|
+
};
|
|
2918
|
+
type SendAutomationTestEmailError = SendAutomationTestEmailErrors[keyof SendAutomationTestEmailErrors];
|
|
2919
|
+
type SendAutomationTestEmailResponses = {
|
|
2920
|
+
201: EmailSentDto;
|
|
2921
|
+
};
|
|
2922
|
+
type SendAutomationTestEmailResponse = SendAutomationTestEmailResponses[keyof SendAutomationTestEmailResponses];
|
|
2923
|
+
type DeleteAutomationFlowData = {
|
|
2924
|
+
body?: never;
|
|
2925
|
+
path: {
|
|
2926
|
+
id: string;
|
|
2927
|
+
};
|
|
2928
|
+
query?: never;
|
|
2929
|
+
url: '/public/v1/automation-flows/{id}';
|
|
2930
|
+
};
|
|
2931
|
+
type DeleteAutomationFlowErrors = {
|
|
2932
|
+
/**
|
|
2933
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2934
|
+
*/
|
|
2935
|
+
400: ApiErrorDto;
|
|
2936
|
+
/**
|
|
2937
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2938
|
+
*/
|
|
2939
|
+
401: ApiErrorDto;
|
|
2940
|
+
/**
|
|
2941
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2942
|
+
*/
|
|
2943
|
+
404: ApiErrorDto;
|
|
2944
|
+
};
|
|
2945
|
+
type DeleteAutomationFlowError = DeleteAutomationFlowErrors[keyof DeleteAutomationFlowErrors];
|
|
2946
|
+
type DeleteAutomationFlowResponses = {
|
|
2947
|
+
200: SuccessDto;
|
|
2948
|
+
};
|
|
2949
|
+
type DeleteAutomationFlowResponse = DeleteAutomationFlowResponses[keyof DeleteAutomationFlowResponses];
|
|
2950
|
+
type GetAutomationFlowData = {
|
|
2951
|
+
body?: never;
|
|
2952
|
+
path: {
|
|
2953
|
+
id: string;
|
|
2954
|
+
};
|
|
2955
|
+
query?: never;
|
|
2956
|
+
url: '/public/v1/automation-flows/{id}';
|
|
2957
|
+
};
|
|
2958
|
+
type GetAutomationFlowErrors = {
|
|
2959
|
+
/**
|
|
2960
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2961
|
+
*/
|
|
2962
|
+
400: ApiErrorDto;
|
|
2963
|
+
/**
|
|
2964
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2965
|
+
*/
|
|
2966
|
+
401: ApiErrorDto;
|
|
2967
|
+
/**
|
|
2968
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2969
|
+
*/
|
|
2970
|
+
404: ApiErrorDto;
|
|
2971
|
+
};
|
|
2972
|
+
type GetAutomationFlowError = GetAutomationFlowErrors[keyof GetAutomationFlowErrors];
|
|
2973
|
+
type GetAutomationFlowResponses = {
|
|
2974
|
+
200: AutomationFlowResponseDto;
|
|
2975
|
+
};
|
|
2976
|
+
type GetAutomationFlowResponse = GetAutomationFlowResponses[keyof GetAutomationFlowResponses];
|
|
2977
|
+
type UpdateAutomationFlowData = {
|
|
2978
|
+
body: UpdateAutomationFlowDto;
|
|
2979
|
+
path: {
|
|
2980
|
+
id: string;
|
|
2981
|
+
};
|
|
2982
|
+
query?: never;
|
|
2983
|
+
url: '/public/v1/automation-flows/{id}';
|
|
2984
|
+
};
|
|
2985
|
+
type UpdateAutomationFlowErrors = {
|
|
2986
|
+
/**
|
|
2987
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
2988
|
+
*/
|
|
2989
|
+
400: ApiErrorDto;
|
|
2990
|
+
/**
|
|
2991
|
+
* Missing or invalid API key (`Authorization` header).
|
|
2992
|
+
*/
|
|
2993
|
+
401: ApiErrorDto;
|
|
2994
|
+
/**
|
|
2995
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
2996
|
+
*/
|
|
2997
|
+
404: ApiErrorDto;
|
|
2998
|
+
};
|
|
2999
|
+
type UpdateAutomationFlowError = UpdateAutomationFlowErrors[keyof UpdateAutomationFlowErrors];
|
|
3000
|
+
type UpdateAutomationFlowResponses = {
|
|
3001
|
+
200: AutomationFlowResponseDto;
|
|
3002
|
+
};
|
|
3003
|
+
type UpdateAutomationFlowResponse = UpdateAutomationFlowResponses[keyof UpdateAutomationFlowResponses];
|
|
3004
|
+
type SetAutomationFlowStatusData = {
|
|
3005
|
+
body: AutomationFlowStatusDto;
|
|
3006
|
+
path: {
|
|
3007
|
+
id: string;
|
|
3008
|
+
};
|
|
3009
|
+
query?: never;
|
|
3010
|
+
url: '/public/v1/automation-flows/{id}/status';
|
|
3011
|
+
};
|
|
3012
|
+
type SetAutomationFlowStatusErrors = {
|
|
3013
|
+
/**
|
|
3014
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3015
|
+
*/
|
|
3016
|
+
400: ApiErrorDto;
|
|
3017
|
+
/**
|
|
3018
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3019
|
+
*/
|
|
3020
|
+
401: ApiErrorDto;
|
|
3021
|
+
/**
|
|
3022
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3023
|
+
*/
|
|
3024
|
+
404: ApiErrorDto;
|
|
3025
|
+
};
|
|
3026
|
+
type SetAutomationFlowStatusError = SetAutomationFlowStatusErrors[keyof SetAutomationFlowStatusErrors];
|
|
3027
|
+
type SetAutomationFlowStatusResponses = {
|
|
3028
|
+
200: AutomationFlowResponseDto;
|
|
3029
|
+
};
|
|
3030
|
+
type SetAutomationFlowStatusResponse = SetAutomationFlowStatusResponses[keyof SetAutomationFlowStatusResponses];
|
|
3031
|
+
type ListAutomationFlowPosesData = {
|
|
3032
|
+
body?: never;
|
|
3033
|
+
path: {
|
|
3034
|
+
id: string;
|
|
3035
|
+
};
|
|
3036
|
+
query?: never;
|
|
3037
|
+
url: '/public/v1/automation-flows/{id}/poses';
|
|
3038
|
+
};
|
|
3039
|
+
type ListAutomationFlowPosesErrors = {
|
|
3040
|
+
/**
|
|
3041
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3042
|
+
*/
|
|
3043
|
+
400: ApiErrorDto;
|
|
3044
|
+
/**
|
|
3045
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3046
|
+
*/
|
|
3047
|
+
401: ApiErrorDto;
|
|
3048
|
+
/**
|
|
3049
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3050
|
+
*/
|
|
3051
|
+
404: ApiErrorDto;
|
|
3052
|
+
};
|
|
3053
|
+
type ListAutomationFlowPosesError = ListAutomationFlowPosesErrors[keyof ListAutomationFlowPosesErrors];
|
|
3054
|
+
type ListAutomationFlowPosesResponses = {
|
|
3055
|
+
200: Array<AutomationFlowPoseResponseDto>;
|
|
3056
|
+
};
|
|
3057
|
+
type ListAutomationFlowPosesResponse = ListAutomationFlowPosesResponses[keyof ListAutomationFlowPosesResponses];
|
|
3058
|
+
type PoseAutomationFlowData = {
|
|
3059
|
+
body: PoseAutomationFlowDto;
|
|
3060
|
+
path: {
|
|
3061
|
+
id: string;
|
|
3062
|
+
};
|
|
3063
|
+
query?: never;
|
|
3064
|
+
url: '/public/v1/automation-flows/{id}/poses';
|
|
3065
|
+
};
|
|
3066
|
+
type PoseAutomationFlowErrors = {
|
|
3067
|
+
/**
|
|
3068
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3069
|
+
*/
|
|
3070
|
+
400: ApiErrorDto;
|
|
3071
|
+
/**
|
|
3072
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3073
|
+
*/
|
|
3074
|
+
401: ApiErrorDto;
|
|
3075
|
+
/**
|
|
3076
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3077
|
+
*/
|
|
3078
|
+
404: ApiErrorDto;
|
|
3079
|
+
};
|
|
3080
|
+
type PoseAutomationFlowError = PoseAutomationFlowErrors[keyof PoseAutomationFlowErrors];
|
|
3081
|
+
type PoseAutomationFlowResponses = {
|
|
3082
|
+
201: AutomationFlowPoseResponseDto;
|
|
3083
|
+
};
|
|
3084
|
+
type PoseAutomationFlowResponse = PoseAutomationFlowResponses[keyof PoseAutomationFlowResponses];
|
|
3085
|
+
type ListChannelAutomationPosesData = {
|
|
3086
|
+
body?: never;
|
|
3087
|
+
path?: never;
|
|
3088
|
+
query: {
|
|
3089
|
+
integrationId: string;
|
|
3090
|
+
mediaId?: string;
|
|
3091
|
+
};
|
|
3092
|
+
url: '/public/v1/automation-flow-poses';
|
|
3093
|
+
};
|
|
3094
|
+
type ListChannelAutomationPosesErrors = {
|
|
3095
|
+
/**
|
|
3096
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3097
|
+
*/
|
|
3098
|
+
400: ApiErrorDto;
|
|
3099
|
+
/**
|
|
3100
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3101
|
+
*/
|
|
3102
|
+
401: ApiErrorDto;
|
|
3103
|
+
/**
|
|
3104
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3105
|
+
*/
|
|
3106
|
+
404: ApiErrorDto;
|
|
3107
|
+
};
|
|
3108
|
+
type ListChannelAutomationPosesError = ListChannelAutomationPosesErrors[keyof ListChannelAutomationPosesErrors];
|
|
3109
|
+
type ListChannelAutomationPosesResponses = {
|
|
3110
|
+
200: Array<AutomationFlowPoseResponseDto>;
|
|
3111
|
+
};
|
|
3112
|
+
type ListChannelAutomationPosesResponse = ListChannelAutomationPosesResponses[keyof ListChannelAutomationPosesResponses];
|
|
3113
|
+
type DeleteAutomationPoseData = {
|
|
3114
|
+
body?: never;
|
|
3115
|
+
path: {
|
|
3116
|
+
id: string;
|
|
3117
|
+
};
|
|
3118
|
+
query?: never;
|
|
3119
|
+
url: '/public/v1/automation-flow-poses/{id}';
|
|
3120
|
+
};
|
|
3121
|
+
type DeleteAutomationPoseErrors = {
|
|
3122
|
+
/**
|
|
3123
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3124
|
+
*/
|
|
3125
|
+
400: ApiErrorDto;
|
|
3126
|
+
/**
|
|
3127
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3128
|
+
*/
|
|
3129
|
+
401: ApiErrorDto;
|
|
3130
|
+
/**
|
|
3131
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3132
|
+
*/
|
|
3133
|
+
404: ApiErrorDto;
|
|
3134
|
+
};
|
|
3135
|
+
type DeleteAutomationPoseError = DeleteAutomationPoseErrors[keyof DeleteAutomationPoseErrors];
|
|
3136
|
+
type DeleteAutomationPoseResponses = {
|
|
3137
|
+
200: SuccessDto;
|
|
3138
|
+
};
|
|
3139
|
+
type DeleteAutomationPoseResponse = DeleteAutomationPoseResponses[keyof DeleteAutomationPoseResponses];
|
|
3140
|
+
type GetAutomationPoseData = {
|
|
3141
|
+
body?: never;
|
|
3142
|
+
path: {
|
|
3143
|
+
id: string;
|
|
3144
|
+
};
|
|
3145
|
+
query?: never;
|
|
3146
|
+
url: '/public/v1/automation-flow-poses/{id}';
|
|
3147
|
+
};
|
|
3148
|
+
type GetAutomationPoseErrors = {
|
|
3149
|
+
/**
|
|
3150
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3151
|
+
*/
|
|
3152
|
+
400: ApiErrorDto;
|
|
3153
|
+
/**
|
|
3154
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3155
|
+
*/
|
|
3156
|
+
401: ApiErrorDto;
|
|
3157
|
+
/**
|
|
3158
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3159
|
+
*/
|
|
3160
|
+
404: ApiErrorDto;
|
|
3161
|
+
};
|
|
3162
|
+
type GetAutomationPoseError = GetAutomationPoseErrors[keyof GetAutomationPoseErrors];
|
|
3163
|
+
type GetAutomationPoseResponses = {
|
|
3164
|
+
200: AutomationFlowPoseResponseDto;
|
|
3165
|
+
};
|
|
3166
|
+
type GetAutomationPoseResponse = GetAutomationPoseResponses[keyof GetAutomationPoseResponses];
|
|
3167
|
+
type UpdateAutomationPoseData = {
|
|
3168
|
+
body: UpdateAutomationFlowPoseDto;
|
|
3169
|
+
path: {
|
|
3170
|
+
id: string;
|
|
3171
|
+
};
|
|
3172
|
+
query?: never;
|
|
3173
|
+
url: '/public/v1/automation-flow-poses/{id}';
|
|
3174
|
+
};
|
|
3175
|
+
type UpdateAutomationPoseErrors = {
|
|
3176
|
+
/**
|
|
3177
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3178
|
+
*/
|
|
3179
|
+
400: ApiErrorDto;
|
|
3180
|
+
/**
|
|
3181
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3182
|
+
*/
|
|
3183
|
+
401: ApiErrorDto;
|
|
3184
|
+
/**
|
|
3185
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3186
|
+
*/
|
|
3187
|
+
404: ApiErrorDto;
|
|
3188
|
+
};
|
|
3189
|
+
type UpdateAutomationPoseError = UpdateAutomationPoseErrors[keyof UpdateAutomationPoseErrors];
|
|
3190
|
+
type UpdateAutomationPoseResponses = {
|
|
3191
|
+
200: AutomationFlowPoseResponseDto;
|
|
3192
|
+
};
|
|
3193
|
+
type UpdateAutomationPoseResponse = UpdateAutomationPoseResponses[keyof UpdateAutomationPoseResponses];
|
|
3194
|
+
type ListAutomationPoseRunsData = {
|
|
3195
|
+
body?: never;
|
|
3196
|
+
path: {
|
|
3197
|
+
id: string;
|
|
3198
|
+
};
|
|
3199
|
+
query?: {
|
|
3200
|
+
status?: string;
|
|
3201
|
+
};
|
|
3202
|
+
url: '/public/v1/automation-flow-poses/{id}/runs';
|
|
3203
|
+
};
|
|
3204
|
+
type ListAutomationPoseRunsErrors = {
|
|
3205
|
+
/**
|
|
3206
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3207
|
+
*/
|
|
3208
|
+
400: ApiErrorDto;
|
|
3209
|
+
/**
|
|
3210
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3211
|
+
*/
|
|
3212
|
+
401: ApiErrorDto;
|
|
3213
|
+
/**
|
|
3214
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3215
|
+
*/
|
|
3216
|
+
404: ApiErrorDto;
|
|
3217
|
+
};
|
|
3218
|
+
type ListAutomationPoseRunsError = ListAutomationPoseRunsErrors[keyof ListAutomationPoseRunsErrors];
|
|
3219
|
+
type ListAutomationPoseRunsResponses = {
|
|
3220
|
+
200: Array<AutomationFlowRunResponseDto>;
|
|
3221
|
+
};
|
|
3222
|
+
type ListAutomationPoseRunsResponse = ListAutomationPoseRunsResponses[keyof ListAutomationPoseRunsResponses];
|
|
3223
|
+
type PollAutomationPoseData = {
|
|
3224
|
+
body?: never;
|
|
3225
|
+
path: {
|
|
3226
|
+
id: string;
|
|
3227
|
+
};
|
|
3228
|
+
query?: never;
|
|
3229
|
+
url: '/public/v1/automation-flow-poses/{id}/poll';
|
|
3230
|
+
};
|
|
3231
|
+
type PollAutomationPoseErrors = {
|
|
3232
|
+
/**
|
|
3233
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3234
|
+
*/
|
|
3235
|
+
400: ApiErrorDto;
|
|
3236
|
+
/**
|
|
3237
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3238
|
+
*/
|
|
3239
|
+
401: ApiErrorDto;
|
|
3240
|
+
/**
|
|
3241
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3242
|
+
*/
|
|
3243
|
+
404: ApiErrorDto;
|
|
3244
|
+
};
|
|
3245
|
+
type PollAutomationPoseError = PollAutomationPoseErrors[keyof PollAutomationPoseErrors];
|
|
3246
|
+
type PollAutomationPoseResponses = {
|
|
3247
|
+
200: AutomationFlowPollResultDto;
|
|
3248
|
+
};
|
|
3249
|
+
type PollAutomationPoseResponse = PollAutomationPoseResponses[keyof PollAutomationPoseResponses];
|
|
3250
|
+
type ReplayAutomationPoseData = {
|
|
3251
|
+
body: ReplayPoseDto;
|
|
3252
|
+
path: {
|
|
3253
|
+
id: string;
|
|
3254
|
+
};
|
|
3255
|
+
query?: never;
|
|
3256
|
+
url: '/public/v1/automation-flow-poses/{id}/replay';
|
|
3257
|
+
};
|
|
3258
|
+
type ReplayAutomationPoseErrors = {
|
|
3259
|
+
/**
|
|
3260
|
+
* The request was rejected — `message` says why (a template with errors cannot be activated, a pose with a hole cannot be created).
|
|
3261
|
+
*/
|
|
3262
|
+
400: ApiErrorDto;
|
|
3263
|
+
/**
|
|
3264
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3265
|
+
*/
|
|
3266
|
+
401: ApiErrorDto;
|
|
3267
|
+
/**
|
|
3268
|
+
* The template, pose or channel named in the path does not belong to your organisation.
|
|
3269
|
+
*/
|
|
3270
|
+
404: ApiErrorDto;
|
|
3271
|
+
};
|
|
3272
|
+
type ReplayAutomationPoseError = ReplayAutomationPoseErrors[keyof ReplayAutomationPoseErrors];
|
|
3273
|
+
type ReplayAutomationPoseResponses = {
|
|
3274
|
+
200: Array<AutomationFlowReplayResultDto>;
|
|
3275
|
+
};
|
|
3276
|
+
type ReplayAutomationPoseResponse = ReplayAutomationPoseResponses[keyof ReplayAutomationPoseResponses];
|
|
3277
|
+
type ListWebhookEventsData = {
|
|
3278
|
+
body?: never;
|
|
3279
|
+
path?: never;
|
|
3280
|
+
query?: never;
|
|
3281
|
+
url: '/public/v1/webhooks/events';
|
|
3282
|
+
};
|
|
3283
|
+
type ListWebhookEventsErrors = {
|
|
3284
|
+
/**
|
|
3285
|
+
* The request was rejected — `msg` says why.
|
|
3286
|
+
*/
|
|
3287
|
+
400: ApiErrorDto;
|
|
3288
|
+
/**
|
|
3289
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3290
|
+
*/
|
|
3291
|
+
401: ApiErrorDto;
|
|
3292
|
+
/**
|
|
3293
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
3294
|
+
*/
|
|
3295
|
+
404: ApiErrorDto;
|
|
3296
|
+
};
|
|
3297
|
+
type ListWebhookEventsError = ListWebhookEventsErrors[keyof ListWebhookEventsErrors];
|
|
3298
|
+
type ListWebhookEventsResponses = {
|
|
3299
|
+
200: WebhookEventListDto;
|
|
3300
|
+
};
|
|
3301
|
+
type ListWebhookEventsResponse = ListWebhookEventsResponses[keyof ListWebhookEventsResponses];
|
|
3302
|
+
type ListWebhooksData = {
|
|
3303
|
+
body?: never;
|
|
3304
|
+
path?: never;
|
|
3305
|
+
query?: never;
|
|
3306
|
+
url: '/public/v1/webhooks';
|
|
3307
|
+
};
|
|
3308
|
+
type ListWebhooksErrors = {
|
|
3309
|
+
/**
|
|
3310
|
+
* The request was rejected — `msg` says why.
|
|
3311
|
+
*/
|
|
3312
|
+
400: ApiErrorDto;
|
|
3313
|
+
/**
|
|
3314
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3315
|
+
*/
|
|
3316
|
+
401: ApiErrorDto;
|
|
3317
|
+
/**
|
|
3318
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
3319
|
+
*/
|
|
3320
|
+
404: ApiErrorDto;
|
|
3321
|
+
};
|
|
3322
|
+
type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
|
|
3323
|
+
type ListWebhooksResponses = {
|
|
3324
|
+
200: Array<WebhookDto>;
|
|
3325
|
+
};
|
|
3326
|
+
type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
3327
|
+
type CreateWebhookData = {
|
|
3328
|
+
body: CreatePublicWebhookDto;
|
|
3329
|
+
path?: never;
|
|
3330
|
+
query?: never;
|
|
3331
|
+
url: '/public/v1/webhooks';
|
|
3332
|
+
};
|
|
3333
|
+
type CreateWebhookErrors = {
|
|
3334
|
+
/**
|
|
3335
|
+
* The request was rejected — `msg` says why.
|
|
3336
|
+
*/
|
|
3337
|
+
400: ApiErrorDto;
|
|
3338
|
+
/**
|
|
3339
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3340
|
+
*/
|
|
3341
|
+
401: ApiErrorDto;
|
|
3342
|
+
/**
|
|
3343
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
3344
|
+
*/
|
|
3345
|
+
404: ApiErrorDto;
|
|
3346
|
+
};
|
|
3347
|
+
type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
|
|
3348
|
+
type CreateWebhookResponses = {
|
|
3349
|
+
201: WebhookCreatedDto;
|
|
3350
|
+
};
|
|
3351
|
+
type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
|
|
3352
|
+
type DeleteWebhookData = {
|
|
3353
|
+
body?: never;
|
|
3354
|
+
path: {
|
|
3355
|
+
id: string;
|
|
3356
|
+
};
|
|
3357
|
+
query?: never;
|
|
3358
|
+
url: '/public/v1/webhooks/{id}';
|
|
3359
|
+
};
|
|
3360
|
+
type DeleteWebhookErrors = {
|
|
3361
|
+
/**
|
|
3362
|
+
* The request was rejected — `msg` says why.
|
|
3363
|
+
*/
|
|
3364
|
+
400: ApiErrorDto;
|
|
3365
|
+
/**
|
|
3366
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3367
|
+
*/
|
|
3368
|
+
401: ApiErrorDto;
|
|
3369
|
+
/**
|
|
3370
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
3371
|
+
*/
|
|
3372
|
+
404: ApiErrorDto;
|
|
3373
|
+
};
|
|
3374
|
+
type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
|
|
3375
|
+
type DeleteWebhookResponses = {
|
|
3376
|
+
200: DeletedIdDto;
|
|
3377
|
+
};
|
|
3378
|
+
type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses];
|
|
3379
|
+
type GetWebhookData = {
|
|
3380
|
+
body?: never;
|
|
3381
|
+
path: {
|
|
3382
|
+
id: string;
|
|
3383
|
+
};
|
|
3384
|
+
query?: never;
|
|
3385
|
+
url: '/public/v1/webhooks/{id}';
|
|
3386
|
+
};
|
|
3387
|
+
type GetWebhookErrors = {
|
|
3388
|
+
/**
|
|
3389
|
+
* The request was rejected — `msg` says why.
|
|
3390
|
+
*/
|
|
3391
|
+
400: ApiErrorDto;
|
|
3392
|
+
/**
|
|
3393
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3394
|
+
*/
|
|
3395
|
+
401: ApiErrorDto;
|
|
3396
|
+
/**
|
|
3397
|
+
* The channel, post or record named in the path does not belong to your organisation.
|
|
3398
|
+
*/
|
|
3399
|
+
404: ApiErrorDto;
|
|
3400
|
+
};
|
|
3401
|
+
type GetWebhookError = GetWebhookErrors[keyof GetWebhookErrors];
|
|
3402
|
+
type GetWebhookResponses = {
|
|
3403
|
+
200: WebhookDto;
|
|
3404
|
+
};
|
|
3405
|
+
type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
3406
|
+
type ListContentsData = {
|
|
3407
|
+
body?: never;
|
|
3408
|
+
path?: never;
|
|
3409
|
+
query?: {
|
|
3410
|
+
/**
|
|
3411
|
+
* One column.
|
|
3412
|
+
*/
|
|
3413
|
+
stage?: 'IDEA' | 'SCRIPT' | 'VALIDATED' | 'TO_SHOOT' | 'TO_EDIT' | 'TO_SCHEDULE' | 'PUBLISHED';
|
|
3414
|
+
/**
|
|
3415
|
+
* Cards carrying this tag.
|
|
3416
|
+
*/
|
|
3417
|
+
tag?: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* The card with this external id.
|
|
3420
|
+
*/
|
|
3421
|
+
externalId?: string;
|
|
3422
|
+
/**
|
|
3423
|
+
* Comma-separated fields to return, e.g. `id,title,stage` (the id always comes back). Omitted: every field, scripts included.
|
|
3424
|
+
*/
|
|
3425
|
+
fields?: string;
|
|
3426
|
+
};
|
|
3427
|
+
url: '/public/v1/contents';
|
|
3428
|
+
};
|
|
3429
|
+
type ListContentsErrors = {
|
|
3430
|
+
/**
|
|
3431
|
+
* The request was rejected — `msg` says why.
|
|
3432
|
+
*/
|
|
3433
|
+
400: ApiErrorDto;
|
|
3434
|
+
/**
|
|
3435
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3436
|
+
*/
|
|
3437
|
+
401: ApiErrorDto;
|
|
3438
|
+
/**
|
|
3439
|
+
* The card named in the path does not belong to your organisation.
|
|
3440
|
+
*/
|
|
3441
|
+
404: ApiErrorDto;
|
|
3442
|
+
};
|
|
3443
|
+
type ListContentsError = ListContentsErrors[keyof ListContentsErrors];
|
|
3444
|
+
type ListContentsResponses = {
|
|
3445
|
+
200: Array<ContentListItemDto>;
|
|
3446
|
+
};
|
|
3447
|
+
type ListContentsResponse = ListContentsResponses[keyof ListContentsResponses];
|
|
3448
|
+
type CreateContentData = {
|
|
3449
|
+
body: CreateContentDto;
|
|
3450
|
+
path?: never;
|
|
3451
|
+
query?: never;
|
|
3452
|
+
url: '/public/v1/contents';
|
|
3453
|
+
};
|
|
3454
|
+
type CreateContentErrors = {
|
|
3455
|
+
/**
|
|
3456
|
+
* The request was rejected — `msg` says why.
|
|
3457
|
+
*/
|
|
3458
|
+
400: ApiErrorDto;
|
|
3459
|
+
/**
|
|
3460
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3461
|
+
*/
|
|
3462
|
+
401: ApiErrorDto;
|
|
3463
|
+
/**
|
|
3464
|
+
* The card named in the path does not belong to your organisation.
|
|
3465
|
+
*/
|
|
3466
|
+
404: ApiErrorDto;
|
|
3467
|
+
/**
|
|
3468
|
+
* Another card already holds this `externalId`.
|
|
3469
|
+
*/
|
|
3470
|
+
409: ApiErrorDto;
|
|
3471
|
+
};
|
|
3472
|
+
type CreateContentError = CreateContentErrors[keyof CreateContentErrors];
|
|
3473
|
+
type CreateContentResponses = {
|
|
3474
|
+
201: ContentDto;
|
|
3475
|
+
};
|
|
3476
|
+
type CreateContentResponse = CreateContentResponses[keyof CreateContentResponses];
|
|
3477
|
+
type GetContentsPerformanceData = {
|
|
3478
|
+
body?: never;
|
|
3479
|
+
path?: never;
|
|
3480
|
+
query?: never;
|
|
3481
|
+
url: '/public/v1/contents/performance';
|
|
3482
|
+
};
|
|
3483
|
+
type GetContentsPerformanceErrors = {
|
|
3484
|
+
/**
|
|
3485
|
+
* The request was rejected — `msg` says why.
|
|
3486
|
+
*/
|
|
3487
|
+
400: ApiErrorDto;
|
|
3488
|
+
/**
|
|
3489
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3490
|
+
*/
|
|
3491
|
+
401: ApiErrorDto;
|
|
3492
|
+
/**
|
|
3493
|
+
* The card named in the path does not belong to your organisation.
|
|
3494
|
+
*/
|
|
3495
|
+
404: ApiErrorDto;
|
|
3496
|
+
};
|
|
3497
|
+
type GetContentsPerformanceError = GetContentsPerformanceErrors[keyof GetContentsPerformanceErrors];
|
|
3498
|
+
type GetContentsPerformanceResponses = {
|
|
3499
|
+
200: {
|
|
3500
|
+
[key: string]: ContentPerformanceDto;
|
|
3501
|
+
};
|
|
3502
|
+
};
|
|
3503
|
+
type GetContentsPerformanceResponse = GetContentsPerformanceResponses[keyof GetContentsPerformanceResponses];
|
|
3504
|
+
type DeleteContentData = {
|
|
3505
|
+
body?: never;
|
|
3506
|
+
path: {
|
|
3507
|
+
id: string;
|
|
3508
|
+
};
|
|
3509
|
+
query?: never;
|
|
3510
|
+
url: '/public/v1/contents/{id}';
|
|
3511
|
+
};
|
|
3512
|
+
type DeleteContentErrors = {
|
|
3513
|
+
/**
|
|
3514
|
+
* The request was rejected — `msg` says why.
|
|
3515
|
+
*/
|
|
3516
|
+
400: ApiErrorDto;
|
|
3517
|
+
/**
|
|
3518
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3519
|
+
*/
|
|
3520
|
+
401: ApiErrorDto;
|
|
3521
|
+
/**
|
|
3522
|
+
* The card named in the path does not belong to your organisation.
|
|
3523
|
+
*/
|
|
3524
|
+
404: ApiErrorDto;
|
|
3525
|
+
};
|
|
3526
|
+
type DeleteContentError = DeleteContentErrors[keyof DeleteContentErrors];
|
|
3527
|
+
type DeleteContentResponses = {
|
|
3528
|
+
200: ContentDto;
|
|
3529
|
+
};
|
|
3530
|
+
type DeleteContentResponse = DeleteContentResponses[keyof DeleteContentResponses];
|
|
3531
|
+
type GetContentData = {
|
|
3532
|
+
body?: never;
|
|
3533
|
+
path: {
|
|
3534
|
+
id: string;
|
|
3535
|
+
};
|
|
3536
|
+
query?: never;
|
|
3537
|
+
url: '/public/v1/contents/{id}';
|
|
3538
|
+
};
|
|
3539
|
+
type GetContentErrors = {
|
|
3540
|
+
/**
|
|
3541
|
+
* The request was rejected — `msg` says why.
|
|
3542
|
+
*/
|
|
3543
|
+
400: ApiErrorDto;
|
|
3544
|
+
/**
|
|
3545
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3546
|
+
*/
|
|
3547
|
+
401: ApiErrorDto;
|
|
3548
|
+
/**
|
|
3549
|
+
* The card named in the path does not belong to your organisation.
|
|
3550
|
+
*/
|
|
3551
|
+
404: ApiErrorDto;
|
|
3552
|
+
};
|
|
3553
|
+
type GetContentError = GetContentErrors[keyof GetContentErrors];
|
|
3554
|
+
type GetContentResponses = {
|
|
3555
|
+
200: ContentListItemDto;
|
|
3556
|
+
};
|
|
3557
|
+
type GetContentResponse = GetContentResponses[keyof GetContentResponses];
|
|
3558
|
+
type UpdateContentData = {
|
|
3559
|
+
body: UpdateContentDto;
|
|
3560
|
+
path: {
|
|
3561
|
+
id: string;
|
|
3562
|
+
};
|
|
3563
|
+
query?: never;
|
|
3564
|
+
url: '/public/v1/contents/{id}';
|
|
3565
|
+
};
|
|
3566
|
+
type UpdateContentErrors = {
|
|
3567
|
+
/**
|
|
3568
|
+
* The request was rejected — `msg` says why.
|
|
3569
|
+
*/
|
|
3570
|
+
400: ApiErrorDto;
|
|
3571
|
+
/**
|
|
3572
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3573
|
+
*/
|
|
3574
|
+
401: ApiErrorDto;
|
|
3575
|
+
/**
|
|
3576
|
+
* The card named in the path does not belong to your organisation.
|
|
3577
|
+
*/
|
|
3578
|
+
404: ApiErrorDto;
|
|
3579
|
+
};
|
|
3580
|
+
type UpdateContentError = UpdateContentErrors[keyof UpdateContentErrors];
|
|
3581
|
+
type UpdateContentResponses = {
|
|
3582
|
+
200: ContentDto;
|
|
3583
|
+
};
|
|
3584
|
+
type UpdateContentResponse = UpdateContentResponses[keyof UpdateContentResponses];
|
|
3585
|
+
type UpsertContentData = {
|
|
3586
|
+
body: UpsertContentDto;
|
|
3587
|
+
path?: never;
|
|
3588
|
+
query?: never;
|
|
3589
|
+
url: '/public/v1/contents/upsert';
|
|
3590
|
+
};
|
|
3591
|
+
type UpsertContentErrors = {
|
|
3592
|
+
/**
|
|
3593
|
+
* The request was rejected — `msg` says why.
|
|
3594
|
+
*/
|
|
3595
|
+
400: ApiErrorDto;
|
|
3596
|
+
/**
|
|
3597
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3598
|
+
*/
|
|
3599
|
+
401: ApiErrorDto;
|
|
3600
|
+
/**
|
|
3601
|
+
* The card named in the path does not belong to your organisation.
|
|
3602
|
+
*/
|
|
3603
|
+
404: ApiErrorDto;
|
|
3604
|
+
};
|
|
3605
|
+
type UpsertContentError = UpsertContentErrors[keyof UpsertContentErrors];
|
|
3606
|
+
type UpsertContentResponses = {
|
|
3607
|
+
201: ContentUpsertDto;
|
|
3608
|
+
};
|
|
3609
|
+
type UpsertContentResponse = UpsertContentResponses[keyof UpsertContentResponses];
|
|
3610
|
+
type MoveContentData = {
|
|
3611
|
+
body: MoveContentDto;
|
|
3612
|
+
path: {
|
|
3613
|
+
id: string;
|
|
3614
|
+
};
|
|
3615
|
+
query?: never;
|
|
3616
|
+
url: '/public/v1/contents/{id}/move';
|
|
3617
|
+
};
|
|
3618
|
+
type MoveContentErrors = {
|
|
3619
|
+
/**
|
|
3620
|
+
* The request was rejected — `msg` says why.
|
|
3621
|
+
*/
|
|
3622
|
+
400: ApiErrorDto;
|
|
3623
|
+
/**
|
|
3624
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3625
|
+
*/
|
|
3626
|
+
401: ApiErrorDto;
|
|
3627
|
+
/**
|
|
3628
|
+
* The card named in the path does not belong to your organisation.
|
|
3629
|
+
*/
|
|
3630
|
+
404: ApiErrorDto;
|
|
3631
|
+
};
|
|
3632
|
+
type MoveContentError = MoveContentErrors[keyof MoveContentErrors];
|
|
3633
|
+
type MoveContentResponses = {
|
|
3634
|
+
200: ContentDto;
|
|
3635
|
+
};
|
|
3636
|
+
type MoveContentResponse = MoveContentResponses[keyof MoveContentResponses];
|
|
3637
|
+
type LinkContentPostData = {
|
|
3638
|
+
body: LinkContentPostDto;
|
|
3639
|
+
path: {
|
|
3640
|
+
id: string;
|
|
3641
|
+
};
|
|
3642
|
+
query?: never;
|
|
3643
|
+
url: '/public/v1/contents/{id}/post';
|
|
3644
|
+
};
|
|
3645
|
+
type LinkContentPostErrors = {
|
|
3646
|
+
/**
|
|
3647
|
+
* The request was rejected — `msg` says why.
|
|
3648
|
+
*/
|
|
3649
|
+
400: ApiErrorDto;
|
|
3650
|
+
/**
|
|
3651
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3652
|
+
*/
|
|
3653
|
+
401: ApiErrorDto;
|
|
3654
|
+
/**
|
|
3655
|
+
* The card named in the path does not belong to your organisation.
|
|
3656
|
+
*/
|
|
3657
|
+
404: ApiErrorDto;
|
|
3658
|
+
};
|
|
3659
|
+
type LinkContentPostError = LinkContentPostErrors[keyof LinkContentPostErrors];
|
|
3660
|
+
type LinkContentPostResponses = {
|
|
3661
|
+
200: OkDto;
|
|
3662
|
+
};
|
|
3663
|
+
type LinkContentPostResponse = LinkContentPostResponses[keyof LinkContentPostResponses];
|
|
3664
|
+
type SearchHooksData = {
|
|
3665
|
+
body?: never;
|
|
3666
|
+
path?: never;
|
|
3667
|
+
query?: {
|
|
3668
|
+
/**
|
|
3669
|
+
* Words of the subject, any of them (accents and case ignored), looked up in the hook, its opening and the subject of the video. Hooks with the most matches come first, then the best views.
|
|
3670
|
+
*/
|
|
3671
|
+
q?: string;
|
|
3672
|
+
/**
|
|
3673
|
+
* Only this hook family (slug of the taxonomy, e.g. `ciblage_si_tu`).
|
|
3674
|
+
*/
|
|
3675
|
+
family?: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* Only videos of this nature (what they deliver, e.g. `tuto_methode`, `ressource_outil`).
|
|
3678
|
+
*/
|
|
3679
|
+
nature?: string;
|
|
3680
|
+
/**
|
|
3681
|
+
* `fr` (default), `en` or `all`.
|
|
3682
|
+
*/
|
|
3683
|
+
language?: 'fr' | 'en' | 'all';
|
|
3684
|
+
/**
|
|
3685
|
+
* Floor on normalised views: 2 = the video did at least twice the baseline of its account that day.
|
|
3686
|
+
*/
|
|
3687
|
+
minNorm?: number;
|
|
3688
|
+
limit?: number;
|
|
3689
|
+
};
|
|
3690
|
+
url: '/public/v1/hooks';
|
|
3691
|
+
};
|
|
3692
|
+
type SearchHooksErrors = {
|
|
3693
|
+
/**
|
|
3694
|
+
* The request was rejected — `msg` says why.
|
|
3695
|
+
*/
|
|
3696
|
+
400: ApiErrorDto;
|
|
3697
|
+
/**
|
|
3698
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3699
|
+
*/
|
|
3700
|
+
401: ApiErrorDto;
|
|
3701
|
+
};
|
|
3702
|
+
type SearchHooksError = SearchHooksErrors[keyof SearchHooksErrors];
|
|
3703
|
+
type SearchHooksResponses = {
|
|
3704
|
+
200: HooksSearchResultDto;
|
|
3705
|
+
};
|
|
3706
|
+
type SearchHooksResponse = SearchHooksResponses[keyof SearchHooksResponses];
|
|
3707
|
+
type GetHookFormsData = {
|
|
3708
|
+
body?: never;
|
|
3709
|
+
path?: never;
|
|
3710
|
+
query?: {
|
|
3711
|
+
/**
|
|
3712
|
+
* Nature of the video being prepared (`tuto_methode`, `ressource_outil`, `story_perso`…): the families are ranked by their effect on that nature. Omitted: the whole corpus.
|
|
3713
|
+
*/
|
|
3714
|
+
nature?: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Words of the subject: a real hook on the same subject comes first in its family.
|
|
3717
|
+
*/
|
|
3718
|
+
q?: string;
|
|
3719
|
+
language?: 'fr' | 'en' | 'all';
|
|
3720
|
+
/**
|
|
3721
|
+
* How many families.
|
|
3722
|
+
*/
|
|
3723
|
+
forms?: number;
|
|
3724
|
+
/**
|
|
3725
|
+
* Real hooks per family.
|
|
3726
|
+
*/
|
|
3727
|
+
examples?: number;
|
|
3728
|
+
};
|
|
3729
|
+
url: '/public/v1/hooks/forms';
|
|
3730
|
+
};
|
|
3731
|
+
type GetHookFormsErrors = {
|
|
3732
|
+
/**
|
|
3733
|
+
* The request was rejected — `msg` says why.
|
|
3734
|
+
*/
|
|
3735
|
+
400: ApiErrorDto;
|
|
3736
|
+
/**
|
|
3737
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3738
|
+
*/
|
|
3739
|
+
401: ApiErrorDto;
|
|
3740
|
+
};
|
|
3741
|
+
type GetHookFormsError = GetHookFormsErrors[keyof GetHookFormsErrors];
|
|
3742
|
+
type GetHookFormsResponses = {
|
|
3743
|
+
200: Array<HookFormDto>;
|
|
3744
|
+
};
|
|
3745
|
+
type GetHookFormsResponse = GetHookFormsResponses[keyof GetHookFormsResponses];
|
|
3746
|
+
type ListHookFamiliesData = {
|
|
3747
|
+
body?: never;
|
|
3748
|
+
path?: never;
|
|
3749
|
+
query?: {
|
|
3750
|
+
nature?: string;
|
|
3751
|
+
};
|
|
3752
|
+
url: '/public/v1/hooks/families';
|
|
3753
|
+
};
|
|
3754
|
+
type ListHookFamiliesErrors = {
|
|
3755
|
+
/**
|
|
3756
|
+
* The request was rejected — `msg` says why.
|
|
3757
|
+
*/
|
|
3758
|
+
400: ApiErrorDto;
|
|
3759
|
+
/**
|
|
3760
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3761
|
+
*/
|
|
3762
|
+
401: ApiErrorDto;
|
|
3763
|
+
};
|
|
3764
|
+
type ListHookFamiliesError = ListHookFamiliesErrors[keyof ListHookFamiliesErrors];
|
|
3765
|
+
type ListHookFamiliesResponses = {
|
|
3766
|
+
200: Array<HookFamilyDto>;
|
|
3767
|
+
};
|
|
3768
|
+
type ListHookFamiliesResponse = ListHookFamiliesResponses[keyof ListHookFamiliesResponses];
|
|
3769
|
+
type ReplaceHookFamiliesData = {
|
|
3770
|
+
body: HookFamiliesImportDto;
|
|
3771
|
+
path?: never;
|
|
3772
|
+
query?: never;
|
|
3773
|
+
url: '/public/v1/hooks/families';
|
|
3774
|
+
};
|
|
3775
|
+
type ReplaceHookFamiliesErrors = {
|
|
3776
|
+
/**
|
|
3777
|
+
* The request was rejected — `msg` says why.
|
|
3778
|
+
*/
|
|
3779
|
+
400: ApiErrorDto;
|
|
3780
|
+
/**
|
|
3781
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3782
|
+
*/
|
|
3783
|
+
401: ApiErrorDto;
|
|
3784
|
+
};
|
|
3785
|
+
type ReplaceHookFamiliesError = ReplaceHookFamiliesErrors[keyof ReplaceHookFamiliesErrors];
|
|
3786
|
+
type ReplaceHookFamiliesResponses = {
|
|
3787
|
+
200: Array<HookFamilyDto>;
|
|
3788
|
+
};
|
|
3789
|
+
type ReplaceHookFamiliesResponse = ReplaceHookFamiliesResponses[keyof ReplaceHookFamiliesResponses];
|
|
3790
|
+
type ImportHooksData = {
|
|
3791
|
+
body: HooksImportDto;
|
|
3792
|
+
path?: never;
|
|
3793
|
+
query?: never;
|
|
3794
|
+
url: '/public/v1/hooks/import';
|
|
3795
|
+
};
|
|
3796
|
+
type ImportHooksErrors = {
|
|
3797
|
+
/**
|
|
3798
|
+
* The request was rejected — `msg` says why.
|
|
3799
|
+
*/
|
|
3800
|
+
400: ApiErrorDto;
|
|
3801
|
+
/**
|
|
3802
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3803
|
+
*/
|
|
3804
|
+
401: ApiErrorDto;
|
|
3805
|
+
};
|
|
3806
|
+
type ImportHooksError = ImportHooksErrors[keyof ImportHooksErrors];
|
|
3807
|
+
type ImportHooksResponses = {
|
|
3808
|
+
200: HooksImportResultDto;
|
|
3809
|
+
};
|
|
3810
|
+
type ImportHooksResponse = ImportHooksResponses[keyof ImportHooksResponses];
|
|
3811
|
+
type ListMusicData = {
|
|
3812
|
+
body?: never;
|
|
3813
|
+
path?: never;
|
|
3814
|
+
query?: {
|
|
3815
|
+
/**
|
|
3816
|
+
* Only this pillar.
|
|
3817
|
+
*/
|
|
3818
|
+
pillar?: 'piano' | 'news' | 'synthwave' | 'epique';
|
|
3819
|
+
/**
|
|
3820
|
+
* Seconds of the video: prefer tracks at least this long (shorter ones loop, with an audible seam on a crescendo).
|
|
3821
|
+
*/
|
|
3822
|
+
minDuration?: number;
|
|
3823
|
+
/**
|
|
3824
|
+
* Words looked up in the title and the artist (case ignored).
|
|
3825
|
+
*/
|
|
3826
|
+
q?: string;
|
|
3827
|
+
/**
|
|
3828
|
+
* Also return the `limite` tracks (a bit fast, or a punch early on): more choice, less safe under a voice.
|
|
3829
|
+
*/
|
|
3830
|
+
includeLimite?: boolean;
|
|
3831
|
+
limit?: number;
|
|
3832
|
+
};
|
|
3833
|
+
url: '/public/v1/music';
|
|
3834
|
+
};
|
|
3835
|
+
type ListMusicErrors = {
|
|
3836
|
+
/**
|
|
3837
|
+
* The request was rejected — `msg` says why.
|
|
3838
|
+
*/
|
|
3839
|
+
400: ApiErrorDto;
|
|
3840
|
+
/**
|
|
3841
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3842
|
+
*/
|
|
3843
|
+
401: ApiErrorDto;
|
|
3844
|
+
};
|
|
3845
|
+
type ListMusicError = ListMusicErrors[keyof ListMusicErrors];
|
|
3846
|
+
type ListMusicResponses = {
|
|
3847
|
+
200: MusicListResultDto;
|
|
3848
|
+
};
|
|
3849
|
+
type ListMusicResponse = ListMusicResponses[keyof ListMusicResponses];
|
|
3850
|
+
type ListMusicPillarsData = {
|
|
3851
|
+
body?: never;
|
|
3852
|
+
path?: never;
|
|
3853
|
+
query?: never;
|
|
3854
|
+
url: '/public/v1/music/pillars';
|
|
3855
|
+
};
|
|
3856
|
+
type ListMusicPillarsErrors = {
|
|
3857
|
+
/**
|
|
3858
|
+
* The request was rejected — `msg` says why.
|
|
3859
|
+
*/
|
|
3860
|
+
400: ApiErrorDto;
|
|
3861
|
+
/**
|
|
3862
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3863
|
+
*/
|
|
3864
|
+
401: ApiErrorDto;
|
|
3865
|
+
};
|
|
3866
|
+
type ListMusicPillarsError = ListMusicPillarsErrors[keyof ListMusicPillarsErrors];
|
|
3867
|
+
type ListMusicPillarsResponses = {
|
|
3868
|
+
200: Array<MusicPillarDto>;
|
|
3869
|
+
};
|
|
3870
|
+
type ListMusicPillarsResponse = ListMusicPillarsResponses[keyof ListMusicPillarsResponses];
|
|
3871
|
+
type GetMusicTrackData = {
|
|
3872
|
+
body?: never;
|
|
3873
|
+
path: {
|
|
3874
|
+
slug: string;
|
|
3875
|
+
};
|
|
3876
|
+
query?: never;
|
|
3877
|
+
url: '/public/v1/music/{slug}';
|
|
3878
|
+
};
|
|
3879
|
+
type GetMusicTrackErrors = {
|
|
3880
|
+
/**
|
|
3881
|
+
* The request was rejected — `msg` says why.
|
|
3882
|
+
*/
|
|
3883
|
+
400: ApiErrorDto;
|
|
3884
|
+
/**
|
|
3885
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3886
|
+
*/
|
|
3887
|
+
401: ApiErrorDto;
|
|
3888
|
+
404: ApiErrorDto;
|
|
3889
|
+
};
|
|
3890
|
+
type GetMusicTrackError = GetMusicTrackErrors[keyof GetMusicTrackErrors];
|
|
3891
|
+
type GetMusicTrackResponses = {
|
|
3892
|
+
200: MusicTrackDto;
|
|
3893
|
+
};
|
|
3894
|
+
type GetMusicTrackResponse = GetMusicTrackResponses[keyof GetMusicTrackResponses];
|
|
3895
|
+
type ImportMusicData = {
|
|
3896
|
+
body: MusicImportDto;
|
|
3897
|
+
path?: never;
|
|
3898
|
+
query?: never;
|
|
3899
|
+
url: '/public/v1/music/import';
|
|
3900
|
+
};
|
|
3901
|
+
type ImportMusicErrors = {
|
|
3902
|
+
/**
|
|
3903
|
+
* The request was rejected — `msg` says why.
|
|
3904
|
+
*/
|
|
3905
|
+
400: ApiErrorDto;
|
|
3906
|
+
/**
|
|
3907
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3908
|
+
*/
|
|
3909
|
+
401: ApiErrorDto;
|
|
3910
|
+
/**
|
|
3911
|
+
* The catalogue is global: only a super admin writes it.
|
|
3912
|
+
*/
|
|
3913
|
+
403: ApiErrorDto;
|
|
3914
|
+
};
|
|
3915
|
+
type ImportMusicError = ImportMusicErrors[keyof ImportMusicErrors];
|
|
3916
|
+
type ImportMusicResponses = {
|
|
3917
|
+
200: MusicImportResultDto;
|
|
3918
|
+
};
|
|
3919
|
+
type ImportMusicResponse = ImportMusicResponses[keyof ImportMusicResponses];
|
|
3920
|
+
type UploadMusicFileData = {
|
|
3921
|
+
body: {
|
|
3922
|
+
file: Blob | File;
|
|
3923
|
+
};
|
|
3924
|
+
path: {
|
|
3925
|
+
slug: string;
|
|
3926
|
+
};
|
|
3927
|
+
query?: never;
|
|
3928
|
+
url: '/public/v1/music/{slug}/file';
|
|
3929
|
+
};
|
|
3930
|
+
type UploadMusicFileErrors = {
|
|
3931
|
+
/**
|
|
3932
|
+
* The request was rejected — `msg` says why.
|
|
3933
|
+
*/
|
|
3934
|
+
400: ApiErrorDto;
|
|
3935
|
+
/**
|
|
3936
|
+
* Missing or invalid API key (`Authorization` header).
|
|
3937
|
+
*/
|
|
3938
|
+
401: ApiErrorDto;
|
|
3939
|
+
403: ApiErrorDto;
|
|
3940
|
+
/**
|
|
3941
|
+
* Import the track before its file.
|
|
3942
|
+
*/
|
|
3943
|
+
404: ApiErrorDto;
|
|
3944
|
+
};
|
|
3945
|
+
type UploadMusicFileError = UploadMusicFileErrors[keyof UploadMusicFileErrors];
|
|
3946
|
+
type UploadMusicFileResponses = {
|
|
3947
|
+
200: MusicTrackDto;
|
|
3948
|
+
};
|
|
3949
|
+
type UploadMusicFileResponse = UploadMusicFileResponses[keyof UploadMusicFileResponses];
|
|
3950
|
+
|
|
3951
|
+
declare const client: Client;
|
|
3952
|
+
|
|
3953
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
3954
|
+
/**
|
|
3955
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
3956
|
+
* individual options. This might be also useful if you want to implement a
|
|
3957
|
+
* custom client.
|
|
3958
|
+
*/
|
|
3959
|
+
client?: Client;
|
|
3960
|
+
/**
|
|
3961
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
3962
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
3963
|
+
*/
|
|
3964
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
3965
|
+
};
|
|
3966
|
+
/**
|
|
3967
|
+
* Upload a file and get a URL usable in a post
|
|
3968
|
+
*/
|
|
3969
|
+
declare const uploadFile: <ThrowOnError extends boolean = false>(options: Options<UploadFileData, ThrowOnError>) => RequestResult<UploadFileResponses, UploadFileErrors, ThrowOnError>;
|
|
3970
|
+
/**
|
|
3971
|
+
* Import a file from a URL into your media library
|
|
3972
|
+
*/
|
|
3973
|
+
declare const uploadFromUrl: <ThrowOnError extends boolean = false>(options: Options<UploadFromUrlData, ThrowOnError>) => RequestResult<UploadFromUrlResponses, UploadFromUrlErrors, ThrowOnError>;
|
|
3974
|
+
/**
|
|
3975
|
+
* Next free slot in the channel's schedule
|
|
3976
|
+
*/
|
|
3977
|
+
declare const findSlot: <ThrowOnError extends boolean = false>(options: Options<FindSlotData, ThrowOnError>) => RequestResult<FindSlotResponses, FindSlotErrors, ThrowOnError>;
|
|
3978
|
+
/**
|
|
3979
|
+
* List posts in a date range
|
|
3980
|
+
*/
|
|
3981
|
+
declare const listPosts: <ThrowOnError extends boolean = false>(options: Options<ListPostsData, ThrowOnError>) => RequestResult<ListPostsResponses, ListPostsErrors, ThrowOnError>;
|
|
3982
|
+
/**
|
|
3983
|
+
* Schedule, publish or draft a post on one or more channels
|
|
3984
|
+
*/
|
|
3985
|
+
declare const createPost: <ThrowOnError extends boolean = false>(options: Options<CreatePostData, ThrowOnError>) => RequestResult<CreatePostResponses, CreatePostErrors, ThrowOnError>;
|
|
3986
|
+
/**
|
|
3987
|
+
* Delete a post and everything published with it
|
|
3988
|
+
*/
|
|
3989
|
+
declare const deletePost: <ThrowOnError extends boolean = false>(options: Options<DeletePostData, ThrowOnError>) => RequestResult<DeletePostResponses, DeletePostErrors, ThrowOnError>;
|
|
3990
|
+
/**
|
|
3991
|
+
* Delete a publication group
|
|
3992
|
+
*/
|
|
3993
|
+
declare const deletePostGroup: <ThrowOnError extends boolean = false>(options: Options<DeletePostGroupData, ThrowOnError>) => RequestResult<DeletePostGroupResponses, DeletePostGroupErrors, ThrowOnError>;
|
|
3994
|
+
/**
|
|
3995
|
+
* Check that an API key is valid
|
|
3996
|
+
*/
|
|
3997
|
+
declare const checkConnection: <ThrowOnError extends boolean = false>(options?: Options<CheckConnectionData, ThrowOnError>) => RequestResult<CheckConnectionResponses, CheckConnectionErrors, ThrowOnError>;
|
|
3998
|
+
/**
|
|
3999
|
+
* List your groups
|
|
4000
|
+
*/
|
|
4001
|
+
declare const listGroups: <ThrowOnError extends boolean = false>(options?: Options<ListGroupsData, ThrowOnError>) => RequestResult<ListGroupsResponses, ListGroupsErrors, ThrowOnError>;
|
|
4002
|
+
/**
|
|
4003
|
+
* List your connected channels
|
|
4004
|
+
*/
|
|
4005
|
+
declare const listChannels: <ThrowOnError extends boolean = false>(options?: Options<ListChannelsData, ThrowOnError>) => RequestResult<ListChannelsResponses, ListChannelsErrors, ThrowOnError>;
|
|
4006
|
+
/**
|
|
4007
|
+
* Start connecting a channel — returns the URL to open
|
|
4008
|
+
*/
|
|
4009
|
+
declare const startChannelConnection: <ThrowOnError extends boolean = false>(options: Options<StartChannelConnectionData, ThrowOnError>) => RequestResult<StartChannelConnectionResponses, StartChannelConnectionErrors, ThrowOnError>;
|
|
4010
|
+
/**
|
|
4011
|
+
* List your notifications, paginated
|
|
4012
|
+
*/
|
|
4013
|
+
declare const listNotifications: <ThrowOnError extends boolean = false>(options?: Options<ListNotificationsData, ThrowOnError>) => RequestResult<ListNotificationsResponses, ListNotificationsErrors, ThrowOnError>;
|
|
4014
|
+
/**
|
|
4015
|
+
* Generate a video
|
|
4016
|
+
*/
|
|
4017
|
+
declare const generateVideo: <ThrowOnError extends boolean = false>(options: Options<GenerateVideoData, ThrowOnError>) => RequestResult<GenerateVideoResponses, GenerateVideoErrors, ThrowOnError>;
|
|
4018
|
+
/**
|
|
4019
|
+
* Call a function of a video provider
|
|
4020
|
+
*/
|
|
4021
|
+
declare const callVideoFunction: <ThrowOnError extends boolean = false>(options: Options<CallVideoFunctionData, ThrowOnError>) => RequestResult<CallVideoFunctionResponses, CallVideoFunctionErrors, ThrowOnError>;
|
|
4022
|
+
/**
|
|
4023
|
+
* Disconnect a channel and delete its posts
|
|
4024
|
+
*/
|
|
4025
|
+
declare const deleteChannel: <ThrowOnError extends boolean = false>(options: Options<DeleteChannelData, ThrowOnError>) => RequestResult<DeleteChannelResponses, DeleteChannelErrors, ThrowOnError>;
|
|
4026
|
+
/**
|
|
4027
|
+
* Posting rules, maximum length and tools of a channel
|
|
4028
|
+
*/
|
|
4029
|
+
declare const getChannelSettings: <ThrowOnError extends boolean = false>(options: Options<GetChannelSettingsData, ThrowOnError>) => RequestResult<GetChannelSettingsResponses, GetChannelSettingsErrors, ThrowOnError>;
|
|
4030
|
+
/**
|
|
4031
|
+
* Recent provider items to match a post whose releaseId is `missing`
|
|
4032
|
+
*
|
|
4033
|
+
* When a post published but the provider returned no usable id (`releaseId` is `missing`), lists the account's recent items so the right one can be recorded with PUT /posts/{id}/release-id. Empty when the post is not in that state, or the provider cannot list (today only TikTok can).
|
|
4034
|
+
*/
|
|
4035
|
+
declare const listMissingMedia: <ThrowOnError extends boolean = false>(options: Options<ListMissingMediaData, ThrowOnError>) => RequestResult<ListMissingMediaResponses, ListMissingMediaErrors, ThrowOnError>;
|
|
4036
|
+
/**
|
|
4037
|
+
* Change a post's status
|
|
4038
|
+
*/
|
|
4039
|
+
declare const changePostStatus: <ThrowOnError extends boolean = false>(options: Options<ChangePostStatusData, ThrowOnError>) => RequestResult<ChangePostStatusResponses, ChangePostStatusErrors, ThrowOnError>;
|
|
4040
|
+
/**
|
|
4041
|
+
* Record the provider post id against a post
|
|
4042
|
+
*/
|
|
4043
|
+
declare const setPostReleaseId: <ThrowOnError extends boolean = false>(options: Options<SetPostReleaseIdData, ThrowOnError>) => RequestResult<SetPostReleaseIdResponses, SetPostReleaseIdErrors, ThrowOnError>;
|
|
4044
|
+
/**
|
|
4045
|
+
* Account metrics, read live from the provider
|
|
4046
|
+
*/
|
|
4047
|
+
declare const getChannelAnalytics: <ThrowOnError extends boolean = false>(options: Options<GetChannelAnalyticsData, ThrowOnError>) => RequestResult<GetChannelAnalyticsResponses, GetChannelAnalyticsErrors, ThrowOnError>;
|
|
4048
|
+
/**
|
|
4049
|
+
* Per-video performance of a channel
|
|
4050
|
+
*/
|
|
4051
|
+
declare const listVideoPerformance: <ThrowOnError extends boolean = false>(options: Options<ListVideoPerformanceData, ThrowOnError>) => RequestResult<ListVideoPerformanceResponses, ListVideoPerformanceErrors, ThrowOnError>;
|
|
4052
|
+
/**
|
|
4053
|
+
* Stored account time series, collected every 30 minutes
|
|
4054
|
+
*/
|
|
4055
|
+
declare const getAccountHistory: <ThrowOnError extends boolean = false>(options: Options<GetAccountHistoryData, ThrowOnError>) => RequestResult<GetAccountHistoryResponses, GetAccountHistoryErrors, ThrowOnError>;
|
|
4056
|
+
/**
|
|
4057
|
+
* Stored per-video time series
|
|
4058
|
+
*/
|
|
4059
|
+
declare const getVideoHistory: <ThrowOnError extends boolean = false>(options: Options<GetVideoHistoryData, ThrowOnError>) => RequestResult<GetVideoHistoryResponses, GetVideoHistoryErrors, ThrowOnError>;
|
|
4060
|
+
/**
|
|
4061
|
+
* Metrics of one published post
|
|
4062
|
+
*/
|
|
4063
|
+
declare const getPostAnalytics: <ThrowOnError extends boolean = false>(options: Options<GetPostAnalyticsData, ThrowOnError>) => RequestResult<GetPostAnalyticsResponses, GetPostAnalyticsErrors, ThrowOnError>;
|
|
4064
|
+
/**
|
|
4065
|
+
* Run a provider tool on a channel
|
|
4066
|
+
*/
|
|
4067
|
+
declare const runChannelTool: <ThrowOnError extends boolean = false>(options: Options<RunChannelToolData, ThrowOnError>) => RequestResult<RunChannelToolResponses, RunChannelToolErrors, ThrowOnError>;
|
|
4068
|
+
/**
|
|
4069
|
+
* Recent posts of an Instagram channel
|
|
4070
|
+
*/
|
|
4071
|
+
declare const listChannelMedia: <ThrowOnError extends boolean = false>(options: Options<ListChannelMediaData, ThrowOnError>) => RequestResult<ListChannelMediaResponses, ListChannelMediaErrors, ThrowOnError>;
|
|
4072
|
+
/**
|
|
4073
|
+
* Live stories of a channel (they only exist 24 h)
|
|
4074
|
+
*/
|
|
4075
|
+
declare const listChannelStories: <ThrowOnError extends boolean = false>(options: Options<ListChannelStoriesData, ThrowOnError>) => RequestResult<ListChannelStoriesResponses, ListChannelStoriesErrors, ThrowOnError>;
|
|
4076
|
+
/**
|
|
4077
|
+
* Comments under a post
|
|
4078
|
+
*/
|
|
4079
|
+
declare const listMediaComments: <ThrowOnError extends boolean = false>(options: Options<ListMediaCommentsData, ThrowOnError>) => RequestResult<ListMediaCommentsResponses, ListMediaCommentsErrors, ThrowOnError>;
|
|
4080
|
+
/**
|
|
4081
|
+
* Reply publicly to a comment
|
|
4082
|
+
*/
|
|
4083
|
+
declare const replyToComment: <ThrowOnError extends boolean = false>(options: Options<ReplyToCommentData, ThrowOnError>) => RequestResult<ReplyToCommentResponses, ReplyToCommentErrors, ThrowOnError>;
|
|
4084
|
+
/**
|
|
4085
|
+
* Hide or unhide a comment under one of your posts
|
|
4086
|
+
*/
|
|
4087
|
+
declare const hideComment: <ThrowOnError extends boolean = false>(options: Options<HideCommentData, ThrowOnError>) => RequestResult<HideCommentResponses, HideCommentErrors, ThrowOnError>;
|
|
4088
|
+
/**
|
|
4089
|
+
* Delete a comment under one of your posts
|
|
4090
|
+
*/
|
|
4091
|
+
declare const deleteComment: <ThrowOnError extends boolean = false>(options: Options<DeleteCommentData, ThrowOnError>) => RequestResult<DeleteCommentResponses, DeleteCommentErrors, ThrowOnError>;
|
|
4092
|
+
/**
|
|
4093
|
+
* Direct message conversations of a channel
|
|
4094
|
+
*/
|
|
4095
|
+
declare const listConversations: <ThrowOnError extends boolean = false>(options: Options<ListConversationsData, ThrowOnError>) => RequestResult<ListConversationsResponses, ListConversationsErrors, ThrowOnError>;
|
|
4096
|
+
/**
|
|
4097
|
+
* Send a direct message
|
|
4098
|
+
*/
|
|
4099
|
+
declare const sendDirectMessage: <ThrowOnError extends boolean = false>(options: Options<SendDirectMessageData, ThrowOnError>) => RequestResult<SendDirectMessageResponses, SendDirectMessageErrors, ThrowOnError>;
|
|
4100
|
+
/**
|
|
4101
|
+
* Read the inbox now: what a missed webhook would have delivered reaches the automations
|
|
4102
|
+
*/
|
|
4103
|
+
declare const pollInbox: <ThrowOnError extends boolean = false>(options: Options<PollInboxData, ThrowOnError>) => RequestResult<PollInboxResponses, PollInboxErrors, ThrowOnError>;
|
|
4104
|
+
/**
|
|
4105
|
+
* Opt the account in to Meta webhook delivery
|
|
4106
|
+
*/
|
|
4107
|
+
declare const subscribeInboxWebhook: <ThrowOnError extends boolean = false>(options: Options<SubscribeInboxWebhookData, ThrowOnError>) => RequestResult<SubscribeInboxWebhookResponses, SubscribeInboxWebhookErrors, ThrowOnError>;
|
|
4108
|
+
/**
|
|
4109
|
+
* Messages of one conversation
|
|
4110
|
+
*/
|
|
4111
|
+
declare const getConversation: <ThrowOnError extends boolean = false>(options: Options<GetConversationData, ThrowOnError>) => RequestResult<GetConversationResponses, GetConversationErrors, ThrowOnError>;
|
|
4112
|
+
/**
|
|
4113
|
+
* List your automation templates
|
|
4114
|
+
*/
|
|
4115
|
+
declare const listAutomationFlows: <ThrowOnError extends boolean = false>(options?: Options<ListAutomationFlowsData, ThrowOnError>) => RequestResult<ListAutomationFlowsResponses, ListAutomationFlowsErrors, ThrowOnError>;
|
|
4116
|
+
/**
|
|
4117
|
+
* Create an automation template
|
|
4118
|
+
*/
|
|
4119
|
+
declare const createAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<CreateAutomationFlowData, ThrowOnError>) => RequestResult<CreateAutomationFlowResponses, CreateAutomationFlowErrors, ThrowOnError>;
|
|
4120
|
+
/**
|
|
4121
|
+
* Render a Brevo step's email without sending it
|
|
4122
|
+
*/
|
|
4123
|
+
declare const previewAutomationEmail: <ThrowOnError extends boolean = false>(options: Options<PreviewAutomationEmailData, ThrowOnError>) => RequestResult<PreviewAutomationEmailResponses, PreviewAutomationEmailErrors, ThrowOnError>;
|
|
4124
|
+
/**
|
|
4125
|
+
* Send a Brevo step's email to one address
|
|
4126
|
+
*/
|
|
4127
|
+
declare const sendAutomationTestEmail: <ThrowOnError extends boolean = false>(options: Options<SendAutomationTestEmailData, ThrowOnError>) => RequestResult<SendAutomationTestEmailResponses, SendAutomationTestEmailErrors, ThrowOnError>;
|
|
4128
|
+
/**
|
|
4129
|
+
* Delete an automation template
|
|
4130
|
+
*/
|
|
4131
|
+
declare const deleteAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<DeleteAutomationFlowData, ThrowOnError>) => RequestResult<DeleteAutomationFlowResponses, DeleteAutomationFlowErrors, ThrowOnError>;
|
|
4132
|
+
/**
|
|
4133
|
+
* One automation template
|
|
4134
|
+
*/
|
|
4135
|
+
declare const getAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<GetAutomationFlowData, ThrowOnError>) => RequestResult<GetAutomationFlowResponses, GetAutomationFlowErrors, ThrowOnError>;
|
|
4136
|
+
/**
|
|
4137
|
+
* Update an automation template
|
|
4138
|
+
*/
|
|
4139
|
+
declare const updateAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<UpdateAutomationFlowData, ThrowOnError>) => RequestResult<UpdateAutomationFlowResponses, UpdateAutomationFlowErrors, ThrowOnError>;
|
|
4140
|
+
/**
|
|
4141
|
+
* Activate or pause a template (ACTIVE is refused while it has errors)
|
|
4142
|
+
*/
|
|
4143
|
+
declare const setAutomationFlowStatus: <ThrowOnError extends boolean = false>(options: Options<SetAutomationFlowStatusData, ThrowOnError>) => RequestResult<SetAutomationFlowStatusResponses, SetAutomationFlowStatusErrors, ThrowOnError>;
|
|
4144
|
+
/**
|
|
4145
|
+
* The publications a template is posed on
|
|
4146
|
+
*/
|
|
4147
|
+
declare const listAutomationFlowPoses: <ThrowOnError extends boolean = false>(options: Options<ListAutomationFlowPosesData, ThrowOnError>) => RequestResult<ListAutomationFlowPosesResponses, ListAutomationFlowPosesErrors, ThrowOnError>;
|
|
4148
|
+
/**
|
|
4149
|
+
* Pose a template on a post or story already live, with its words and values
|
|
4150
|
+
*/
|
|
4151
|
+
declare const poseAutomationFlow: <ThrowOnError extends boolean = false>(options: Options<PoseAutomationFlowData, ThrowOnError>) => RequestResult<PoseAutomationFlowResponses, PoseAutomationFlowErrors, ThrowOnError>;
|
|
4152
|
+
/**
|
|
4153
|
+
* The poses of a channel (one publication, or all)
|
|
4154
|
+
*/
|
|
4155
|
+
declare const listChannelAutomationPoses: <ThrowOnError extends boolean = false>(options: Options<ListChannelAutomationPosesData, ThrowOnError>) => RequestResult<ListChannelAutomationPosesResponses, ListChannelAutomationPosesErrors, ThrowOnError>;
|
|
4156
|
+
/**
|
|
4157
|
+
* Remove a pose from its publication
|
|
4158
|
+
*/
|
|
4159
|
+
declare const deleteAutomationPose: <ThrowOnError extends boolean = false>(options: Options<DeleteAutomationPoseData, ThrowOnError>) => RequestResult<DeleteAutomationPoseResponses, DeleteAutomationPoseErrors, ThrowOnError>;
|
|
4160
|
+
/**
|
|
4161
|
+
* One pose
|
|
4162
|
+
*/
|
|
4163
|
+
declare const getAutomationPose: <ThrowOnError extends boolean = false>(options: Options<GetAutomationPoseData, ThrowOnError>) => RequestResult<GetAutomationPoseResponses, GetAutomationPoseErrors, ThrowOnError>;
|
|
4164
|
+
/**
|
|
4165
|
+
* Change the words, values or pause of a pose
|
|
4166
|
+
*/
|
|
4167
|
+
declare const updateAutomationPose: <ThrowOnError extends boolean = false>(options: Options<UpdateAutomationPoseData, ThrowOnError>) => RequestResult<UpdateAutomationPoseResponses, UpdateAutomationPoseErrors, ThrowOnError>;
|
|
4168
|
+
/**
|
|
4169
|
+
* The people who went through a pose
|
|
4170
|
+
*/
|
|
4171
|
+
declare const listAutomationPoseRuns: <ThrowOnError extends boolean = false>(options: Options<ListAutomationPoseRunsData, ThrowOnError>) => RequestResult<ListAutomationPoseRunsResponses, ListAutomationPoseRunsErrors, ThrowOnError>;
|
|
4172
|
+
/**
|
|
4173
|
+
* Read the publication’s comments now and start what a missed webhook left behind
|
|
4174
|
+
*/
|
|
4175
|
+
declare const pollAutomationPose: <ThrowOnError extends boolean = false>(options: Options<PollAutomationPoseData, ThrowOnError>) => RequestResult<PollAutomationPoseResponses, PollAutomationPoseErrors, ThrowOnError>;
|
|
4176
|
+
/**
|
|
4177
|
+
* Replay the automation on named comments, whatever their date
|
|
4178
|
+
*/
|
|
4179
|
+
declare const replayAutomationPose: <ThrowOnError extends boolean = false>(options: Options<ReplayAutomationPoseData, ThrowOnError>) => RequestResult<ReplayAutomationPoseResponses, ReplayAutomationPoseErrors, ThrowOnError>;
|
|
4180
|
+
/**
|
|
4181
|
+
* The event catalogue a webhook can subscribe to
|
|
4182
|
+
*/
|
|
4183
|
+
declare const listWebhookEvents: <ThrowOnError extends boolean = false>(options?: Options<ListWebhookEventsData, ThrowOnError>) => RequestResult<ListWebhookEventsResponses, ListWebhookEventsErrors, ThrowOnError>;
|
|
4184
|
+
/**
|
|
4185
|
+
* List your webhook endpoints
|
|
4186
|
+
*/
|
|
4187
|
+
declare const listWebhooks: <ThrowOnError extends boolean = false>(options?: Options<ListWebhooksData, ThrowOnError>) => RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError>;
|
|
4188
|
+
/**
|
|
4189
|
+
* Register a webhook endpoint — the response carries the signing secret, once
|
|
4190
|
+
*/
|
|
4191
|
+
declare const createWebhook: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>) => RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError>;
|
|
4192
|
+
/**
|
|
4193
|
+
* Unregister a webhook endpoint
|
|
4194
|
+
*/
|
|
4195
|
+
declare const deleteWebhook: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookData, ThrowOnError>) => RequestResult<DeleteWebhookResponses, DeleteWebhookErrors, ThrowOnError>;
|
|
4196
|
+
/**
|
|
4197
|
+
* One webhook endpoint
|
|
4198
|
+
*/
|
|
4199
|
+
declare const getWebhook: <ThrowOnError extends boolean = false>(options: Options<GetWebhookData, ThrowOnError>) => RequestResult<GetWebhookResponses, GetWebhookErrors, ThrowOnError>;
|
|
4200
|
+
/**
|
|
4201
|
+
* List the cards of the board
|
|
4202
|
+
*
|
|
4203
|
+
* Filters combine. With `fields`, each card carries only the fields asked for (plus its id).
|
|
4204
|
+
*/
|
|
4205
|
+
declare const listContents: <ThrowOnError extends boolean = false>(options?: Options<ListContentsData, ThrowOnError>) => RequestResult<ListContentsResponses, ListContentsErrors, ThrowOnError>;
|
|
4206
|
+
/**
|
|
4207
|
+
* Create a card
|
|
4208
|
+
*/
|
|
4209
|
+
declare const createContent: <ThrowOnError extends boolean = false>(options: Options<CreateContentData, ThrowOnError>) => RequestResult<CreateContentResponses, CreateContentErrors, ThrowOnError>;
|
|
4210
|
+
/**
|
|
4211
|
+
* The numbers of the published cards, keyed by card id
|
|
4212
|
+
*/
|
|
4213
|
+
declare const getContentsPerformance: <ThrowOnError extends boolean = false>(options?: Options<GetContentsPerformanceData, ThrowOnError>) => RequestResult<GetContentsPerformanceResponses, GetContentsPerformanceErrors, ThrowOnError>;
|
|
4214
|
+
/**
|
|
4215
|
+
* Delete a card
|
|
4216
|
+
*/
|
|
4217
|
+
declare const deleteContent: <ThrowOnError extends boolean = false>(options: Options<DeleteContentData, ThrowOnError>) => RequestResult<DeleteContentResponses, DeleteContentErrors, ThrowOnError>;
|
|
4218
|
+
/**
|
|
4219
|
+
* One card
|
|
4220
|
+
*/
|
|
4221
|
+
declare const getContent: <ThrowOnError extends boolean = false>(options: Options<GetContentData, ThrowOnError>) => RequestResult<GetContentResponses, GetContentErrors, ThrowOnError>;
|
|
4222
|
+
/**
|
|
4223
|
+
* Update a card (only the fields sent; null clears)
|
|
4224
|
+
*/
|
|
4225
|
+
declare const updateContent: <ThrowOnError extends boolean = false>(options: Options<UpdateContentData, ThrowOnError>) => RequestResult<UpdateContentResponses, UpdateContentErrors, ThrowOnError>;
|
|
4226
|
+
/**
|
|
4227
|
+
* Create or update a card by your own id
|
|
4228
|
+
*
|
|
4229
|
+
* The card holding `externalId` is updated with the fields sent (its column is left alone: use /move); without one, a card is created. Re-running an import never duplicates.
|
|
4230
|
+
*/
|
|
4231
|
+
declare const upsertContent: <ThrowOnError extends boolean = false>(options: Options<UpsertContentData, ThrowOnError>) => RequestResult<UpsertContentResponses, UpsertContentErrors, ThrowOnError>;
|
|
4232
|
+
/**
|
|
4233
|
+
* Move a card to another column
|
|
4234
|
+
*/
|
|
4235
|
+
declare const moveContent: <ThrowOnError extends boolean = false>(options: Options<MoveContentData, ThrowOnError>) => RequestResult<MoveContentResponses, MoveContentErrors, ThrowOnError>;
|
|
4236
|
+
/**
|
|
4237
|
+
* Tie a card to a post scheduled from it
|
|
4238
|
+
*
|
|
4239
|
+
* Pass the `group` of a post created with POST /public/v1/posts. A card holds several posts (e.g. a TikTok draft and an Instagram post): each call adds one. A card behind "To schedule" jumps there; it moves to PUBLISHED when the first of its posts goes live.
|
|
4240
|
+
*/
|
|
4241
|
+
declare const linkContentPost: <ThrowOnError extends boolean = false>(options: Options<LinkContentPostData, ThrowOnError>) => RequestResult<LinkContentPostResponses, LinkContentPostErrors, ThrowOnError>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Search real hooks that worked
|
|
4244
|
+
*
|
|
4245
|
+
* Words of `q` are looked up in the hook, its opening and the subject of the video; the hooks matching the most words come first, then the best normalised views. Without `q`: the best hooks passing the filters. French only unless `language` says otherwise.
|
|
4246
|
+
*/
|
|
4247
|
+
declare const searchHooks: <ThrowOnError extends boolean = false>(options?: Options<SearchHooksData, ThrowOnError>) => RequestResult<SearchHooksResponses, SearchHooksErrors, ThrowOnError>;
|
|
4248
|
+
/**
|
|
4249
|
+
* The best hook forms for a video, with real examples
|
|
4250
|
+
*
|
|
4251
|
+
* A catalogue of hook families for the video being prepared, ordered (weakly) by their measured effect on its nature (`nature`), each with real hooks: one on the subject (`q`) when there is one, the rest drawn at random among the hooks of the family, catastrophic ones left out. Two calls never give the same examples. Views follow the size of the subject, they do not rank the examples. The agent adapts the form of these hooks to its subject; it never invents one.
|
|
4252
|
+
*/
|
|
4253
|
+
declare const getHookForms: <ThrowOnError extends boolean = false>(options?: Options<GetHookFormsData, ThrowOnError>) => RequestResult<GetHookFormsResponses, GetHookFormsErrors, ThrowOnError>;
|
|
4254
|
+
/**
|
|
4255
|
+
* The measured effect of each hook family
|
|
4256
|
+
*
|
|
4257
|
+
* From the studies corpus: views vs the rest, probability of superiority, share of bangers, and in how many accounts the family beats the rest of the same account. Only a `PROUVÉ` family is a rule. `nature` gives the table measured on one nature of video (`tuto_methode`…), default the whole corpus.
|
|
4258
|
+
*/
|
|
4259
|
+
declare const listHookFamilies: <ThrowOnError extends boolean = false>(options?: Options<ListHookFamiliesData, ThrowOnError>) => RequestResult<ListHookFamiliesResponses, ListHookFamiliesErrors, ThrowOnError>;
|
|
4260
|
+
/**
|
|
4261
|
+
* Replace the family table
|
|
4262
|
+
*/
|
|
4263
|
+
declare const replaceHookFamilies: <ThrowOnError extends boolean = false>(options: Options<ReplaceHookFamiliesData, ThrowOnError>) => RequestResult<ReplaceHookFamiliesResponses, ReplaceHookFamiliesErrors, ThrowOnError>;
|
|
4264
|
+
/**
|
|
4265
|
+
* Import hooks (upsert on source, account, externalId)
|
|
4266
|
+
*/
|
|
4267
|
+
declare const importHooks: <ThrowOnError extends boolean = false>(options: Options<ImportHooksData, ThrowOnError>) => RequestResult<ImportHooksResponses, ImportHooksErrors, ThrowOnError>;
|
|
4268
|
+
/**
|
|
4269
|
+
* Royalty-free music for a video
|
|
4270
|
+
*
|
|
4271
|
+
* Public domain and CC-BY tracks only, every file prepared (dynamics flattened, normalised to `storedLufs`). `ok` tracks first, in a random order, then `limite` ones when asked. `howTo` is the recipe: level under the voice, mix, credit line.
|
|
4272
|
+
*/
|
|
4273
|
+
declare const listMusic: <ThrowOnError extends boolean = false>(options?: Options<ListMusicData, ThrowOnError>) => RequestResult<ListMusicResponses, ListMusicErrors, ThrowOnError>;
|
|
4274
|
+
/**
|
|
4275
|
+
* The pillars of the music catalogue
|
|
4276
|
+
*
|
|
4277
|
+
* What each pillar (piano, news, synthwave, epique) is for, with the number of tracks.
|
|
4278
|
+
*/
|
|
4279
|
+
declare const listMusicPillars: <ThrowOnError extends boolean = false>(options?: Options<ListMusicPillarsData, ThrowOnError>) => RequestResult<ListMusicPillarsResponses, ListMusicPillarsErrors, ThrowOnError>;
|
|
4280
|
+
/**
|
|
4281
|
+
* One track of the catalogue
|
|
4282
|
+
*/
|
|
4283
|
+
declare const getMusicTrack: <ThrowOnError extends boolean = false>(options: Options<GetMusicTrackData, ThrowOnError>) => RequestResult<GetMusicTrackResponses, GetMusicTrackErrors, ThrowOnError>;
|
|
4284
|
+
/**
|
|
4285
|
+
* Import tracks (upsert on slug) — super admin only
|
|
4286
|
+
*/
|
|
4287
|
+
declare const importMusic: <ThrowOnError extends boolean = false>(options: Options<ImportMusicData, ThrowOnError>) => RequestResult<ImportMusicResponses, ImportMusicErrors, ThrowOnError>;
|
|
4288
|
+
/**
|
|
4289
|
+
* Upload the prepared mp3 of a track — super admin only
|
|
4290
|
+
*/
|
|
4291
|
+
declare const uploadMusicFile: <ThrowOnError extends boolean = false>(options: Options<UploadMusicFileData, ThrowOnError>) => RequestResult<UploadMusicFileResponses, UploadMusicFileErrors, ThrowOnError>;
|
|
4292
|
+
|
|
4293
|
+
/** Body of {@link Nadia.post}. */
|
|
4294
|
+
type CreatePostBody = PublicCreatePostDto;
|
|
4295
|
+
/** A column of the content board, in board order. */
|
|
4296
|
+
type ContentStage = MoveContentDto['stage'];
|
|
4297
|
+
declare const DEFAULT_BASE_URL = "https://app.usenadia.com/api";
|
|
4298
|
+
/** Thrown for every response with a status >= 400. */
|
|
4299
|
+
declare class NadiaError extends Error {
|
|
4300
|
+
readonly status: number;
|
|
4301
|
+
readonly body: unknown;
|
|
4302
|
+
constructor(status: number, body: unknown, message?: string);
|
|
4303
|
+
/**
|
|
4304
|
+
* True when retrying later could plausibly work: a rate limit, a server
|
|
4305
|
+
* hiccup, or a request that never completed at all (status 0).
|
|
4306
|
+
*/
|
|
4307
|
+
get isTransient(): boolean;
|
|
4308
|
+
}
|
|
4309
|
+
interface NadiaOptions {
|
|
4310
|
+
/** Defaults to `https://app.usenadia.com/api`. */
|
|
4311
|
+
baseUrl?: string;
|
|
4312
|
+
/** Retries on 429 and 5xx. Default 2, set 0 to disable. */
|
|
4313
|
+
retries?: number;
|
|
4314
|
+
/** Swap in a custom fetch (tests, proxies, instrumentation). */
|
|
4315
|
+
fetch?: typeof fetch;
|
|
4316
|
+
}
|
|
4317
|
+
/** Shape every generated operation resolves to. */
|
|
4318
|
+
type GeneratedResult<T> = {
|
|
4319
|
+
data?: T;
|
|
4320
|
+
error?: unknown;
|
|
4321
|
+
request?: Request;
|
|
4322
|
+
response?: Response;
|
|
4323
|
+
};
|
|
4324
|
+
declare class Nadia {
|
|
4325
|
+
private readonly client;
|
|
4326
|
+
private readonly retries;
|
|
4327
|
+
constructor(apiKey: string, options?: string | NadiaOptions);
|
|
4328
|
+
/**
|
|
4329
|
+
* Runs a generated operation, turns a non-2xx into a `NadiaError`, and
|
|
4330
|
+
* retries the transient ones. Every method below goes through here — that is
|
|
4331
|
+
* the whole point of the facade.
|
|
4332
|
+
*/
|
|
4333
|
+
private call;
|
|
4334
|
+
/** Schedule, publish or draft a post on one or more channels. */
|
|
4335
|
+
post(body: CreatePostBody): Promise<CreatePostResultItemDto[]>;
|
|
4336
|
+
/** List posts in a date range. */
|
|
4337
|
+
postList(query?: Record<string, unknown>): Promise<PostListDto>;
|
|
4338
|
+
/** Upload a file and get a URL usable in a post. */
|
|
4339
|
+
upload(file: Blob | File, filename?: string): Promise<MediaResponseDto>;
|
|
4340
|
+
/** List your connected channels. */
|
|
4341
|
+
integrations(): Promise<IntegrationListItemDto[]>;
|
|
4342
|
+
/** Delete a post and everything published with it. */
|
|
4343
|
+
deletePost(id: string): Promise<DeletedIdDto>;
|
|
4344
|
+
/** Check that the API key is valid. Throws `NadiaError` with status 401 if not. */
|
|
4345
|
+
isConnected(): Promise<boolean>;
|
|
4346
|
+
/** Next free slot in a channel's schedule. */
|
|
4347
|
+
findSlot(integrationId: string): Promise<FindSlotDto>;
|
|
4348
|
+
/** List your groups (brands). */
|
|
4349
|
+
groups(): Promise<GroupDto[]>;
|
|
4350
|
+
/** Direct message conversations of a channel. */
|
|
4351
|
+
inbox(integrationId: string, limit?: number): Promise<InboxConversationDto[]>;
|
|
4352
|
+
/**
|
|
4353
|
+
* The cards of the board, with the posts scheduled from each. Filters
|
|
4354
|
+
* combine: `stage`, `tag`, `externalId`; `fields` (`'id,title,stage'`)
|
|
4355
|
+
* leaves the scripts out.
|
|
4356
|
+
*/
|
|
4357
|
+
contents(query?: ListContentsData['query']): Promise<ContentListItemDto[]>;
|
|
4358
|
+
/** One card. */
|
|
4359
|
+
content(id: string): Promise<ContentListItemDto>;
|
|
4360
|
+
/** Create a card — in IDEA unless `stage` says otherwise. */
|
|
4361
|
+
createContent(body: CreateContentDto): Promise<ContentDto>;
|
|
4362
|
+
/**
|
|
4363
|
+
* Create or update the card holding `externalId` (your own id: a script
|
|
4364
|
+
* file path, a build id). Re-running an import never duplicates; an
|
|
4365
|
+
* existing card keeps its column.
|
|
4366
|
+
*/
|
|
4367
|
+
upsertContent(body: UpsertContentDto): Promise<ContentUpsertDto>;
|
|
4368
|
+
/** Update a card: only the fields sent change, `null` clears one. */
|
|
4369
|
+
updateContent(id: string, body: UpdateContentDto): Promise<ContentDto>;
|
|
4370
|
+
/** Move a card to another column (to the bottom unless `position` is given). */
|
|
4371
|
+
moveContent(id: string, stage: ContentStage, position?: number): Promise<ContentDto>;
|
|
4372
|
+
/**
|
|
4373
|
+
* Tie a card to a post scheduled from it — the `group` passed on
|
|
4374
|
+
* {@link Nadia.post}. A card holds several posts (a TikTok draft, an
|
|
4375
|
+
* Instagram post): each call adds one. The card moves to PUBLISHED when
|
|
4376
|
+
* the first of them goes live.
|
|
4377
|
+
*/
|
|
4378
|
+
linkContentPost(id: string, postGroup: string): Promise<OkDto>;
|
|
4379
|
+
/** Delete a card. */
|
|
4380
|
+
deleteContent(id: string): Promise<ContentDto>;
|
|
4381
|
+
/** The numbers of the published cards, keyed by card id. */
|
|
4382
|
+
contentsPerformance(): Promise<{
|
|
4383
|
+
[key: string]: ContentPerformanceDto;
|
|
4384
|
+
}>;
|
|
4385
|
+
/**
|
|
4386
|
+
* Runs any generated operation with the facade's guarantees — a non-2xx
|
|
4387
|
+
* throws a `NadiaError`, the transient ones are retried. The way to reach
|
|
4388
|
+
* what the facade does not sugar without giving those up.
|
|
4389
|
+
*
|
|
4390
|
+
* import { getChannelAnalytics } from '@usenadia/node';
|
|
4391
|
+
* await nadia.request((o) =>
|
|
4392
|
+
* getChannelAnalytics({ ...o, path: { integration: id }, query: { date: '7' } })
|
|
4393
|
+
* );
|
|
4394
|
+
*/
|
|
4395
|
+
request<T>(operation: (options: {
|
|
4396
|
+
client: typeof client;
|
|
4397
|
+
}) => Promise<GeneratedResult<T>>): Promise<T>;
|
|
4398
|
+
/**
|
|
4399
|
+
* The generated client, configured with your key. Use it for any of the
|
|
4400
|
+
* operations the facade does not wrap — nothing here is a dead end.
|
|
4401
|
+
*
|
|
4402
|
+
* import { getChannelAnalytics } from '@usenadia/node';
|
|
4403
|
+
* await getChannelAnalytics({ client: nadia.raw, path: {...} });
|
|
4404
|
+
*/
|
|
4405
|
+
get raw(): Client;
|
|
4406
|
+
}
|
|
4407
|
+
|
|
4408
|
+
export { type AccountHistoryItemDto, type AnalyticsMetricDto, type AnalyticsPointDto, type ApiErrorDto, type AutomationFlowCountsDto, type AutomationFlowDto, type AutomationFlowIssueDto, type AutomationFlowPollResultDto, type AutomationFlowPoseResponseDto, type AutomationFlowReplayResultDto, type AutomationFlowResponseDto, type AutomationFlowRunResponseDto, type AutomationFlowStatusDto, type AutomationPoseCountsDto, type AutomationPoseFlowDto, type CallVideoFunctionData, type CallVideoFunctionError, type CallVideoFunctionErrors, type CallVideoFunctionResponse, type CallVideoFunctionResponses, type ChangePostStatusData, type ChangePostStatusDto, type ChangePostStatusError, type ChangePostStatusErrors, type ChangePostStatusResponse, type ChangePostStatusResponses, type CheckConnectionData, type CheckConnectionError, type CheckConnectionErrors, type CheckConnectionResponse, type CheckConnectionResponses, type ClientOptions, type ContentChannelPerformanceDto, type ContentDto, type ContentListItemDto, type ContentPerformanceDto, type ContentPostDto, type ContentStage, type ContentUpsertDto, type CreateAutomationFlowData, type CreateAutomationFlowError, type CreateAutomationFlowErrors, type CreateAutomationFlowResponse, type CreateAutomationFlowResponses, type CreateContentData, type CreateContentDto, type CreateContentError, type CreateContentErrors, type CreateContentResponse, type CreateContentResponses, type CreatePostBody, type CreatePostData, type CreatePostError, type CreatePostErrors, type CreatePostResponse, type CreatePostResponses, type CreatePostResultItemDto, type CreatePublicWebhookDto, type CreateWebhookData, type CreateWebhookError, type CreateWebhookErrors, type CreateWebhookResponse, type CreateWebhookResponses, DEFAULT_BASE_URL, type DeleteAutomationFlowData, type DeleteAutomationFlowError, type DeleteAutomationFlowErrors, type DeleteAutomationFlowResponse, type DeleteAutomationFlowResponses, type DeleteAutomationPoseData, type DeleteAutomationPoseError, type DeleteAutomationPoseErrors, type DeleteAutomationPoseResponse, type DeleteAutomationPoseResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteContentData, type DeleteContentError, type DeleteContentErrors, type DeleteContentResponse, type DeleteContentResponses, type DeletePostData, type DeletePostError, type DeletePostErrors, type DeletePostGroupData, type DeletePostGroupError, type DeletePostGroupErrors, type DeletePostGroupResponse, type DeletePostGroupResponses, type DeletePostResponse, type DeletePostResponses, type DeleteWebhookData, type DeleteWebhookError, type DeleteWebhookErrors, type DeleteWebhookResponse, type DeleteWebhookResponses, type DeletedIdDto, type EmailPreviewDto, type EmailPreviewDtoResponse, type EmailSentDto, type EmailTestDto, type FindSlotData, type FindSlotDto, type FindSlotError, type FindSlotErrors, type FindSlotResponse, type FindSlotResponses, type GenerateVideoData, type GenerateVideoError, type GenerateVideoErrors, type GenerateVideoResponse, type GenerateVideoResponses, type GeneratedVideoDto, type GetAccountHistoryData, type GetAccountHistoryError, type GetAccountHistoryErrors, type GetAccountHistoryResponse, type GetAccountHistoryResponses, type GetAutomationFlowData, type GetAutomationFlowError, type GetAutomationFlowErrors, type GetAutomationFlowResponse, type GetAutomationFlowResponses, type GetAutomationPoseData, type GetAutomationPoseError, type GetAutomationPoseErrors, type GetAutomationPoseResponse, type GetAutomationPoseResponses, type GetChannelAnalyticsData, type GetChannelAnalyticsError, type GetChannelAnalyticsErrors, type GetChannelAnalyticsResponse, type GetChannelAnalyticsResponses, type GetChannelSettingsData, type GetChannelSettingsError, type GetChannelSettingsErrors, type GetChannelSettingsResponse, type GetChannelSettingsResponses, type GetContentData, type GetContentError, type GetContentErrors, type GetContentResponse, type GetContentResponses, type GetContentsPerformanceData, type GetContentsPerformanceError, type GetContentsPerformanceErrors, type GetContentsPerformanceResponse, type GetContentsPerformanceResponses, type GetConversationData, type GetConversationError, type GetConversationErrors, type GetConversationResponse, type GetConversationResponses, type GetHookFormsData, type GetHookFormsError, type GetHookFormsErrors, type GetHookFormsResponse, type GetHookFormsResponses, type GetMusicTrackData, type GetMusicTrackError, type GetMusicTrackErrors, type GetMusicTrackResponse, type GetMusicTrackResponses, type GetPostAnalyticsData, type GetPostAnalyticsError, type GetPostAnalyticsErrors, type GetPostAnalyticsResponse, type GetPostAnalyticsResponses, type GetVideoHistoryData, type GetVideoHistoryError, type GetVideoHistoryErrors, type GetVideoHistoryResponse, type GetVideoHistoryResponses, type GetWebhookData, type GetWebhookError, type GetWebhookErrors, type GetWebhookResponse, type GetWebhookResponses, type GroupDto, type HideCommentData, type HideCommentDto, type HideCommentError, type HideCommentErrors, type HideCommentResponse, type HideCommentResponses, type HistoryPageDto, type HookDto, type HookFamiliesImportDto, type HookFamilyDto, type HookFamilyStatDto, type HookFormDto, type HookImportItemDto, type HooksImportDto, type HooksImportResultDto, type HooksSearchResultDto, type ImportHooksData, type ImportHooksError, type ImportHooksErrors, type ImportHooksResponse, type ImportHooksResponses, type ImportMusicData, type ImportMusicError, type ImportMusicErrors, type ImportMusicResponse, type ImportMusicResponses, type InboxConversationDto, type InboxMessageDto, type InboxParticipantDto, type InboxPollResultDto, type InstagramCommentAuthorDto, type InstagramCommentDto, type InstagramMediaDto, type Integration, type IntegrationListItemDto, type IntegrationSettingsDto, type IntegrationSettingsOutputDto, type IntegrationToolDto, type IntegrationToolParamDto, type IntegrationTriggerDto, type IntegrationTriggerResultDto, type IsConnectedDto, type LinkContentPostData, type LinkContentPostDto, type LinkContentPostError, type LinkContentPostErrors, type LinkContentPostResponse, type LinkContentPostResponses, type ListAutomationFlowPosesData, type ListAutomationFlowPosesError, type ListAutomationFlowPosesErrors, type ListAutomationFlowPosesResponse, type ListAutomationFlowPosesResponses, type ListAutomationFlowsData, type ListAutomationFlowsError, type ListAutomationFlowsErrors, type ListAutomationFlowsResponse, type ListAutomationFlowsResponses, type ListAutomationPoseRunsData, type ListAutomationPoseRunsError, type ListAutomationPoseRunsErrors, type ListAutomationPoseRunsResponse, type ListAutomationPoseRunsResponses, type ListChannelAutomationPosesData, type ListChannelAutomationPosesError, type ListChannelAutomationPosesErrors, type ListChannelAutomationPosesResponse, type ListChannelAutomationPosesResponses, type ListChannelMediaData, type ListChannelMediaError, type ListChannelMediaErrors, type ListChannelMediaResponse, type ListChannelMediaResponses, type ListChannelStoriesData, type ListChannelStoriesError, type ListChannelStoriesErrors, type ListChannelStoriesResponse, type ListChannelStoriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListContentsData, type ListContentsError, type ListContentsErrors, type ListContentsResponse, type ListContentsResponses, type ListConversationsData, type ListConversationsError, type ListConversationsErrors, type ListConversationsResponse, type ListConversationsResponses, type ListGroupsData, type ListGroupsError, type ListGroupsErrors, type ListGroupsResponse, type ListGroupsResponses, type ListHookFamiliesData, type ListHookFamiliesError, type ListHookFamiliesErrors, type ListHookFamiliesResponse, type ListHookFamiliesResponses, type ListMediaCommentsData, type ListMediaCommentsError, type ListMediaCommentsErrors, type ListMediaCommentsResponse, type ListMediaCommentsResponses, type ListMissingMediaData, type ListMissingMediaError, type ListMissingMediaErrors, type ListMissingMediaResponse, type ListMissingMediaResponses, type ListMusicData, type ListMusicError, type ListMusicErrors, type ListMusicPillarsData, type ListMusicPillarsError, type ListMusicPillarsErrors, type ListMusicPillarsResponse, type ListMusicPillarsResponses, type ListMusicResponse, type ListMusicResponses, type ListNotificationsData, type ListNotificationsError, type ListNotificationsErrors, type ListNotificationsResponse, type ListNotificationsResponses, type ListPostsData, type ListPostsError, type ListPostsErrors, type ListPostsResponse, type ListPostsResponses, type ListVideoPerformanceData, type ListVideoPerformanceError, type ListVideoPerformanceErrors, type ListVideoPerformanceResponse, type ListVideoPerformanceResponses, type ListWebhookEventsData, type ListWebhookEventsError, type ListWebhookEventsErrors, type ListWebhookEventsResponse, type ListWebhookEventsResponses, type ListWebhooksData, type ListWebhooksError, type ListWebhooksErrors, type ListWebhooksResponse, type ListWebhooksResponses, type MediaDto, type MediaResponseDto, type MissingContentItemDto, type MoveContentData, type MoveContentDto, type MoveContentError, type MoveContentErrors, type MoveContentResponse, type MoveContentResponses, type MusicImportDto, type MusicImportItemDto, type MusicImportResultDto, type MusicListResultDto, type MusicPillarDto, type MusicTrackDto, Nadia, NadiaError, type NadiaOptions, type NotificationDto, type NotificationsPageDto, type OkDto, type Options, type PollAutomationPoseData, type PollAutomationPoseError, type PollAutomationPoseErrors, type PollAutomationPoseResponse, type PollAutomationPoseResponses, type PollInboxData, type PollInboxError, type PollInboxErrors, type PollInboxResponse, type PollInboxResponses, type PoseAutomationFlowData, type PoseAutomationFlowDto, type PoseAutomationFlowError, type PoseAutomationFlowErrors, type PoseAutomationFlowResponse, type PoseAutomationFlowResponses, type Post, type PostContent, type PostDto, type PostIntegrationSummaryDto, type PostListDto, type PostStatusDto, type PostTagDto, type PreviewAutomationEmailData, type PreviewAutomationEmailError, type PreviewAutomationEmailErrors, type PreviewAutomationEmailResponse, type PreviewAutomationEmailResponses, type PublicCreatePostDto, type ReplaceHookFamiliesData, type ReplaceHookFamiliesError, type ReplaceHookFamiliesErrors, type ReplaceHookFamiliesResponse, type ReplaceHookFamiliesResponses, type ReplayAutomationPoseData, type ReplayAutomationPoseError, type ReplayAutomationPoseErrors, type ReplayAutomationPoseResponse, type ReplayAutomationPoseResponses, type ReplayPoseDto, type ReplyToCommentData, type ReplyToCommentDto, type ReplyToCommentError, type ReplyToCommentErrors, type ReplyToCommentResponse, type ReplyToCommentResponses, type RunChannelToolData, type RunChannelToolError, type RunChannelToolErrors, type RunChannelToolResponse, type RunChannelToolResponses, type SearchHooksData, type SearchHooksError, type SearchHooksErrors, type SearchHooksResponse, type SearchHooksResponses, type SendAutomationTestEmailData, type SendAutomationTestEmailError, type SendAutomationTestEmailErrors, type SendAutomationTestEmailResponse, type SendAutomationTestEmailResponses, type SendDirectMessageData, type SendDirectMessageError, type SendDirectMessageErrors, type SendDirectMessageResponse, type SendDirectMessageResponses, type SendMessageDto, type SetAutomationFlowStatusData, type SetAutomationFlowStatusError, type SetAutomationFlowStatusErrors, type SetAutomationFlowStatusResponse, type SetAutomationFlowStatusResponses, type SetPostReleaseIdData, type SetPostReleaseIdError, type SetPostReleaseIdErrors, type SetPostReleaseIdResponse, type SetPostReleaseIdResponses, type SocialAuthUrlDto, type StartChannelConnectionData, type StartChannelConnectionError, type StartChannelConnectionErrors, type StartChannelConnectionResponse, type StartChannelConnectionResponses, type SubscribeInboxWebhookData, type SubscribeInboxWebhookError, type SubscribeInboxWebhookErrors, type SubscribeInboxWebhookResponse, type SubscribeInboxWebhookResponses, type SuccessDto, type Tags, type UpdateAutomationFlowData, type UpdateAutomationFlowDto, type UpdateAutomationFlowError, type UpdateAutomationFlowErrors, type UpdateAutomationFlowPoseDto, type UpdateAutomationFlowResponse, type UpdateAutomationFlowResponses, type UpdateAutomationPoseData, type UpdateAutomationPoseError, type UpdateAutomationPoseErrors, type UpdateAutomationPoseResponse, type UpdateAutomationPoseResponses, type UpdateContentData, type UpdateContentDto, type UpdateContentError, type UpdateContentErrors, type UpdateContentResponse, type UpdateContentResponses, type UpdateReleaseIdDto, type UploadDto, type UploadFileData, type UploadFileError, type UploadFileErrors, type UploadFileResponse, type UploadFileResponses, type UploadFromUrlData, type UploadFromUrlError, type UploadFromUrlErrors, type UploadFromUrlResponse, type UploadFromUrlResponses, type UploadMusicFileData, type UploadMusicFileError, type UploadMusicFileErrors, type UploadMusicFileResponse, type UploadMusicFileResponses, type UpsertContentData, type UpsertContentDto, type UpsertContentError, type UpsertContentErrors, type UpsertContentResponse, type UpsertContentResponses, type VideoDto, type VideoFunctionDto, type VideoHistoryPageDto, type VideoIdentityDto, type WebhookCreatedDto, type WebhookDto, type WebhookEventDto, type WebhookEventListDto, type WebhooksIntegrationDto, callVideoFunction, changePostStatus, checkConnection, createAutomationFlow, createContent, createPost, createWebhook, Nadia as default, deleteAutomationFlow, deleteAutomationPose, deleteChannel, deleteComment, deleteContent, deletePost, deletePostGroup, deleteWebhook, findSlot, generateVideo, getAccountHistory, getAutomationFlow, getAutomationPose, getChannelAnalytics, getChannelSettings, getContent, getContentsPerformance, getConversation, getHookForms, getMusicTrack, getPostAnalytics, getVideoHistory, getWebhook, hideComment, importHooks, importMusic, linkContentPost, listAutomationFlowPoses, listAutomationFlows, listAutomationPoseRuns, listChannelAutomationPoses, listChannelMedia, listChannelStories, listChannels, listContents, listConversations, listGroups, listHookFamilies, listMediaComments, listMissingMedia, listMusic, listMusicPillars, listNotifications, listPosts, listVideoPerformance, listWebhookEvents, listWebhooks, moveContent, pollAutomationPose, pollInbox, poseAutomationFlow, previewAutomationEmail, replaceHookFamilies, replayAutomationPose, replyToComment, runChannelTool, searchHooks, sendAutomationTestEmail, sendDirectMessage, setAutomationFlowStatus, setPostReleaseId, startChannelConnection, subscribeInboxWebhook, updateAutomationFlow, updateAutomationPose, updateContent, uploadFile, uploadFromUrl, uploadMusicFile, upsertContent };
|