@use_socials/sdk 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.
@@ -0,0 +1,762 @@
1
+ /**
2
+ * use-socials API
3
+ * Social media publishing API as a service. Allows app builders to let their users post to YouTube, TikTok, Instagram, and Pinterest.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ export interface HandlersAccountResponse {
17
+ 'createdAt'?: string;
18
+ 'id'?: string;
19
+ 'platform'?: string;
20
+ 'platformAccountId'?: string;
21
+ 'platformUsername'?: string;
22
+ 'status'?: string;
23
+ }
24
+ export interface HandlersCompleteMediaResponse {
25
+ 'contentType'?: string;
26
+ 'mediaId'?: string;
27
+ 'publicUrl'?: string;
28
+ 'size'?: number;
29
+ 'status'?: string;
30
+ }
31
+ export interface HandlersCreatePostRequest {
32
+ 'content'?: object;
33
+ 'mediaUrl'?: string;
34
+ 'socialAccountId'?: string;
35
+ 'socialAccountIds'?: Array<string>;
36
+ 'title'?: string;
37
+ 'userId'?: string;
38
+ }
39
+ export interface HandlersCreateUserRequest {
40
+ 'externalId': string;
41
+ }
42
+ export interface HandlersErrorResponse {
43
+ 'code'?: string;
44
+ 'error'?: string;
45
+ }
46
+ export interface HandlersOAuthCallbackResponse {
47
+ 'status'?: string;
48
+ }
49
+ export interface HandlersOAuthURLResponse {
50
+ 'url'?: string;
51
+ }
52
+ export interface HandlersPostMediaOutput {
53
+ 'filename'?: string;
54
+ 'id'?: string;
55
+ 'mimeType'?: string;
56
+ 'sizeBytes'?: number;
57
+ 'type'?: string;
58
+ 'url'?: string;
59
+ }
60
+ export interface HandlersPostResponse {
61
+ 'content'?: object;
62
+ 'createdAt'?: string;
63
+ 'createdByUserId'?: string;
64
+ 'id'?: string;
65
+ 'mediaItems'?: Array<HandlersPostMediaOutput>;
66
+ 'status'?: string;
67
+ 'targets'?: Array<HandlersPostTargetOutput>;
68
+ 'title'?: string;
69
+ 'updatedAt'?: string;
70
+ }
71
+ export interface HandlersPostTargetOutput {
72
+ 'error'?: string;
73
+ 'id'?: string;
74
+ 'platform'?: string;
75
+ 'platformPostId'?: string;
76
+ 'platformPostUrl'?: string;
77
+ 'platformUsername'?: string;
78
+ 'publishedAt'?: string;
79
+ 'retryCount'?: number;
80
+ 'socialAccountId'?: string;
81
+ 'status'?: string;
82
+ }
83
+ export interface HandlersPresignMediaRequest {
84
+ 'contentType': string;
85
+ 'filename': string;
86
+ 'size': number;
87
+ }
88
+ export interface HandlersPresignMediaResponse {
89
+ 'contentType'?: string;
90
+ 'expiresAt'?: string;
91
+ 'key'?: string;
92
+ 'mediaId'?: string;
93
+ 'publicUrl'?: string;
94
+ 'uploadUrl'?: string;
95
+ }
96
+ export interface HandlersPublishTaskResponse {
97
+ 'attempts'?: number;
98
+ 'content'?: object;
99
+ 'createdAt'?: string;
100
+ 'error'?: string;
101
+ 'id'?: string;
102
+ 'lastAttemptAt'?: string;
103
+ 'maxAttempts'?: number;
104
+ 'mediaUrl'?: string;
105
+ 'platform'?: string;
106
+ 'platformPostId'?: string;
107
+ 'platformPostUrl'?: string;
108
+ 'postTargetId'?: string;
109
+ 'socialAccountId'?: string;
110
+ 'status'?: string;
111
+ 'updatedAt'?: string;
112
+ }
113
+ export interface HandlersRetryResponse {
114
+ 'status'?: string;
115
+ 'targetId'?: string;
116
+ }
117
+ export interface HandlersUserResponse {
118
+ 'externalId'?: string;
119
+ 'userId'?: string;
120
+ }
121
+ export interface HandlersWaitlistRequest {
122
+ 'email': string;
123
+ }
124
+ export interface HandlersWaitlistResponse {
125
+ 'ok'?: boolean;
126
+ }
127
+ /**
128
+ * HealthApi - axios parameter creator
129
+ */
130
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
131
+ /**
132
+ * Returns the current health status of the API.
133
+ * @summary Health check
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ healthGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
+ };
139
+ /**
140
+ * HealthApi - functional programming interface
141
+ */
142
+ export declare const HealthApiFp: (configuration?: Configuration) => {
143
+ /**
144
+ * Returns the current health status of the API.
145
+ * @summary Health check
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ healthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
150
+ [key: string]: string;
151
+ }>>;
152
+ };
153
+ /**
154
+ * HealthApi - factory interface
155
+ */
156
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
157
+ /**
158
+ * Returns the current health status of the API.
159
+ * @summary Health check
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ healthGet(options?: RawAxiosRequestConfig): AxiosPromise<{
164
+ [key: string]: string;
165
+ }>;
166
+ };
167
+ /**
168
+ * HealthApi - object-oriented interface
169
+ */
170
+ export declare class HealthApi extends BaseAPI {
171
+ /**
172
+ * Returns the current health status of the API.
173
+ * @summary Health check
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ healthGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
178
+ [key: string]: string;
179
+ }, any, {}>>;
180
+ }
181
+ /**
182
+ * MediaApi - axios parameter creator
183
+ */
184
+ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration) => {
185
+ /**
186
+ * Confirms media upload is complete and ready for use in publish jobs.
187
+ * @summary Complete media upload
188
+ * @param {string} mediaId Media ID
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ apiV1MediaMediaIdCompletePost: (mediaId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
193
+ /**
194
+ * Returns a presigned URL for direct media upload to cloud storage.
195
+ * @summary Generate presigned upload URL
196
+ * @param {HandlersPresignMediaRequest} body Media presign request
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ apiV1MediaPresignPost: (body: HandlersPresignMediaRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
201
+ };
202
+ /**
203
+ * MediaApi - functional programming interface
204
+ */
205
+ export declare const MediaApiFp: (configuration?: Configuration) => {
206
+ /**
207
+ * Confirms media upload is complete and ready for use in publish jobs.
208
+ * @summary Complete media upload
209
+ * @param {string} mediaId Media ID
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ apiV1MediaMediaIdCompletePost(mediaId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersCompleteMediaResponse>>;
214
+ /**
215
+ * Returns a presigned URL for direct media upload to cloud storage.
216
+ * @summary Generate presigned upload URL
217
+ * @param {HandlersPresignMediaRequest} body Media presign request
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ apiV1MediaPresignPost(body: HandlersPresignMediaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersPresignMediaResponse>>;
222
+ };
223
+ /**
224
+ * MediaApi - factory interface
225
+ */
226
+ export declare const MediaApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
227
+ /**
228
+ * Confirms media upload is complete and ready for use in publish jobs.
229
+ * @summary Complete media upload
230
+ * @param {string} mediaId Media ID
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ apiV1MediaMediaIdCompletePost(mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersCompleteMediaResponse>;
235
+ /**
236
+ * Returns a presigned URL for direct media upload to cloud storage.
237
+ * @summary Generate presigned upload URL
238
+ * @param {HandlersPresignMediaRequest} body Media presign request
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ apiV1MediaPresignPost(body: HandlersPresignMediaRequest, options?: RawAxiosRequestConfig): AxiosPromise<HandlersPresignMediaResponse>;
243
+ };
244
+ /**
245
+ * MediaApi - object-oriented interface
246
+ */
247
+ export declare class MediaApi extends BaseAPI {
248
+ /**
249
+ * Confirms media upload is complete and ready for use in publish jobs.
250
+ * @summary Complete media upload
251
+ * @param {string} mediaId Media ID
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ apiV1MediaMediaIdCompletePost(mediaId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersCompleteMediaResponse, any, {}>>;
256
+ /**
257
+ * Returns a presigned URL for direct media upload to cloud storage.
258
+ * @summary Generate presigned upload URL
259
+ * @param {HandlersPresignMediaRequest} body Media presign request
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ apiV1MediaPresignPost(body: HandlersPresignMediaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersPresignMediaResponse, any, {}>>;
264
+ }
265
+ /**
266
+ * OauthApi - axios parameter creator
267
+ */
268
+ export declare const OauthApiAxiosParamCreator: (configuration?: Configuration) => {
269
+ /**
270
+ * Callback endpoint for social platform OAuth flows. On success, the social account is connected immediately and the response returns `status=connected`.
271
+ * @summary OAuth callback endpoint
272
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
273
+ * @param {string} code Authorization code from the platform
274
+ * @param {string} state State parameter for CSRF protection
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ apiV1OauthPlatformCallbackGet: (platform: string, code: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
279
+ /**
280
+ * Returns an authorization URL for the user to authenticate with the specified social platform.
281
+ * @summary Generate OAuth authorization URL
282
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
283
+ * @param {string} userId User ID
284
+ * @param {string} [redirectUrl] URL to redirect to after OAuth callback
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ apiV1OauthPlatformUrlGet: (platform: string, userId: string, redirectUrl?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
289
+ };
290
+ /**
291
+ * OauthApi - functional programming interface
292
+ */
293
+ export declare const OauthApiFp: (configuration?: Configuration) => {
294
+ /**
295
+ * Callback endpoint for social platform OAuth flows. On success, the social account is connected immediately and the response returns `status=connected`.
296
+ * @summary OAuth callback endpoint
297
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
298
+ * @param {string} code Authorization code from the platform
299
+ * @param {string} state State parameter for CSRF protection
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ apiV1OauthPlatformCallbackGet(platform: string, code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersOAuthCallbackResponse>>;
304
+ /**
305
+ * Returns an authorization URL for the user to authenticate with the specified social platform.
306
+ * @summary Generate OAuth authorization URL
307
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
308
+ * @param {string} userId User ID
309
+ * @param {string} [redirectUrl] URL to redirect to after OAuth callback
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ apiV1OauthPlatformUrlGet(platform: string, userId: string, redirectUrl?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersOAuthURLResponse>>;
314
+ };
315
+ /**
316
+ * OauthApi - factory interface
317
+ */
318
+ export declare const OauthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
319
+ /**
320
+ * Callback endpoint for social platform OAuth flows. On success, the social account is connected immediately and the response returns `status=connected`.
321
+ * @summary OAuth callback endpoint
322
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
323
+ * @param {string} code Authorization code from the platform
324
+ * @param {string} state State parameter for CSRF protection
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ apiV1OauthPlatformCallbackGet(platform: string, code: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersOAuthCallbackResponse>;
329
+ /**
330
+ * Returns an authorization URL for the user to authenticate with the specified social platform.
331
+ * @summary Generate OAuth authorization URL
332
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
333
+ * @param {string} userId User ID
334
+ * @param {string} [redirectUrl] URL to redirect to after OAuth callback
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ apiV1OauthPlatformUrlGet(platform: string, userId: string, redirectUrl?: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersOAuthURLResponse>;
339
+ };
340
+ /**
341
+ * OauthApi - object-oriented interface
342
+ */
343
+ export declare class OauthApi extends BaseAPI {
344
+ /**
345
+ * Callback endpoint for social platform OAuth flows. On success, the social account is connected immediately and the response returns `status=connected`.
346
+ * @summary OAuth callback endpoint
347
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
348
+ * @param {string} code Authorization code from the platform
349
+ * @param {string} state State parameter for CSRF protection
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ apiV1OauthPlatformCallbackGet(platform: string, code: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersOAuthCallbackResponse, any, {}>>;
354
+ /**
355
+ * Returns an authorization URL for the user to authenticate with the specified social platform.
356
+ * @summary Generate OAuth authorization URL
357
+ * @param {string} platform Platform name (youtube, tiktok, instagram, pinterest)
358
+ * @param {string} userId User ID
359
+ * @param {string} [redirectUrl] URL to redirect to after OAuth callback
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ apiV1OauthPlatformUrlGet(platform: string, userId: string, redirectUrl?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersOAuthURLResponse, any, {}>>;
364
+ }
365
+ /**
366
+ * PostsApi - axios parameter creator
367
+ */
368
+ export declare const PostsApiAxiosParamCreator: (configuration?: Configuration) => {
369
+ /**
370
+ * Returns all posts for a user.
371
+ * @summary List posts
372
+ * @param {string} userId User ID
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ apiV1UsersUserIdPostsGet: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
377
+ /**
378
+ * Creates a post for one or more connected social accounts and enqueues publish tasks.
379
+ * @summary Create a new post
380
+ * @param {string} userId User ID
381
+ * @param {HandlersCreatePostRequest} body Post payload
382
+ * @param {string} [idempotencyKey] Idempotency key for safe retries (optional)
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ apiV1UsersUserIdPostsPost: (userId: string, body: HandlersCreatePostRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
387
+ /**
388
+ * Returns a post with all social publication targets.
389
+ * @summary Get post
390
+ * @param {string} userId User ID
391
+ * @param {string} postId Post ID
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ apiV1UsersUserIdPostsPostIdGet: (userId: string, postId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
396
+ /**
397
+ * Retries publish for a specific social target row.
398
+ * @summary Retry post publish for a failed target
399
+ * @param {string} userId User ID
400
+ * @param {string} postId Post ID
401
+ * @param {string} targetId Post target ID
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ apiV1UsersUserIdPostsPostIdTargetsTargetIdRetryPost: (userId: string, postId: string, targetId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
406
+ };
407
+ /**
408
+ * PostsApi - functional programming interface
409
+ */
410
+ export declare const PostsApiFp: (configuration?: Configuration) => {
411
+ /**
412
+ * Returns all posts for a user.
413
+ * @summary List posts
414
+ * @param {string} userId User ID
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ apiV1UsersUserIdPostsGet(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HandlersPostResponse>>>;
419
+ /**
420
+ * Creates a post for one or more connected social accounts and enqueues publish tasks.
421
+ * @summary Create a new post
422
+ * @param {string} userId User ID
423
+ * @param {HandlersCreatePostRequest} body Post payload
424
+ * @param {string} [idempotencyKey] Idempotency key for safe retries (optional)
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ apiV1UsersUserIdPostsPost(userId: string, body: HandlersCreatePostRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersPostResponse>>;
429
+ /**
430
+ * Returns a post with all social publication targets.
431
+ * @summary Get post
432
+ * @param {string} userId User ID
433
+ * @param {string} postId Post ID
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ apiV1UsersUserIdPostsPostIdGet(userId: string, postId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersPostResponse>>;
438
+ /**
439
+ * Retries publish for a specific social target row.
440
+ * @summary Retry post publish for a failed target
441
+ * @param {string} userId User ID
442
+ * @param {string} postId Post ID
443
+ * @param {string} targetId Post target ID
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ apiV1UsersUserIdPostsPostIdTargetsTargetIdRetryPost(userId: string, postId: string, targetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersRetryResponse>>;
448
+ };
449
+ /**
450
+ * PostsApi - factory interface
451
+ */
452
+ export declare const PostsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
453
+ /**
454
+ * Returns all posts for a user.
455
+ * @summary List posts
456
+ * @param {string} userId User ID
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ apiV1UsersUserIdPostsGet(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HandlersPostResponse>>;
461
+ /**
462
+ * Creates a post for one or more connected social accounts and enqueues publish tasks.
463
+ * @summary Create a new post
464
+ * @param {string} userId User ID
465
+ * @param {HandlersCreatePostRequest} body Post payload
466
+ * @param {string} [idempotencyKey] Idempotency key for safe retries (optional)
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ apiV1UsersUserIdPostsPost(userId: string, body: HandlersCreatePostRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersPostResponse>;
471
+ /**
472
+ * Returns a post with all social publication targets.
473
+ * @summary Get post
474
+ * @param {string} userId User ID
475
+ * @param {string} postId Post ID
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ apiV1UsersUserIdPostsPostIdGet(userId: string, postId: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersPostResponse>;
480
+ /**
481
+ * Retries publish for a specific social target row.
482
+ * @summary Retry post publish for a failed target
483
+ * @param {string} userId User ID
484
+ * @param {string} postId Post ID
485
+ * @param {string} targetId Post target ID
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ apiV1UsersUserIdPostsPostIdTargetsTargetIdRetryPost(userId: string, postId: string, targetId: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersRetryResponse>;
490
+ };
491
+ /**
492
+ * PostsApi - object-oriented interface
493
+ */
494
+ export declare class PostsApi extends BaseAPI {
495
+ /**
496
+ * Returns all posts for a user.
497
+ * @summary List posts
498
+ * @param {string} userId User ID
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ apiV1UsersUserIdPostsGet(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersPostResponse[], any, {}>>;
503
+ /**
504
+ * Creates a post for one or more connected social accounts and enqueues publish tasks.
505
+ * @summary Create a new post
506
+ * @param {string} userId User ID
507
+ * @param {HandlersCreatePostRequest} body Post payload
508
+ * @param {string} [idempotencyKey] Idempotency key for safe retries (optional)
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ apiV1UsersUserIdPostsPost(userId: string, body: HandlersCreatePostRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersPostResponse, any, {}>>;
513
+ /**
514
+ * Returns a post with all social publication targets.
515
+ * @summary Get post
516
+ * @param {string} userId User ID
517
+ * @param {string} postId Post ID
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ apiV1UsersUserIdPostsPostIdGet(userId: string, postId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersPostResponse, any, {}>>;
522
+ /**
523
+ * Retries publish for a specific social target row.
524
+ * @summary Retry post publish for a failed target
525
+ * @param {string} userId User ID
526
+ * @param {string} postId Post ID
527
+ * @param {string} targetId Post target ID
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ apiV1UsersUserIdPostsPostIdTargetsTargetIdRetryPost(userId: string, postId: string, targetId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersRetryResponse, any, {}>>;
532
+ }
533
+ /**
534
+ * PublishApi - axios parameter creator
535
+ */
536
+ export declare const PublishApiAxiosParamCreator: (configuration?: Configuration) => {
537
+ /**
538
+ * Returns the current status and results of a publish task.
539
+ * @summary Get publish task status
540
+ * @param {string} jobId Job ID
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ apiV1PublishJobsJobIdGet: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
545
+ };
546
+ /**
547
+ * PublishApi - functional programming interface
548
+ */
549
+ export declare const PublishApiFp: (configuration?: Configuration) => {
550
+ /**
551
+ * Returns the current status and results of a publish task.
552
+ * @summary Get publish task status
553
+ * @param {string} jobId Job ID
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ apiV1PublishJobsJobIdGet(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersPublishTaskResponse>>;
558
+ };
559
+ /**
560
+ * PublishApi - factory interface
561
+ */
562
+ export declare const PublishApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
563
+ /**
564
+ * Returns the current status and results of a publish task.
565
+ * @summary Get publish task status
566
+ * @param {string} jobId Job ID
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ apiV1PublishJobsJobIdGet(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<HandlersPublishTaskResponse>;
571
+ };
572
+ /**
573
+ * PublishApi - object-oriented interface
574
+ */
575
+ export declare class PublishApi extends BaseAPI {
576
+ /**
577
+ * Returns the current status and results of a publish task.
578
+ * @summary Get publish task status
579
+ * @param {string} jobId Job ID
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ apiV1PublishJobsJobIdGet(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersPublishTaskResponse, any, {}>>;
584
+ }
585
+ /**
586
+ * UsersApi - axios parameter creator
587
+ */
588
+ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration) => {
589
+ /**
590
+ * Creates a new user or retrieves an existing one for an organization. Idempotent by externalId.
591
+ * @summary Create or retrieve a user
592
+ * @param {HandlersCreateUserRequest} body Create user request
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ apiV1UsersPost: (body: HandlersCreateUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
597
+ /**
598
+ * Revokes access to a connected social media account.
599
+ * @summary Disconnect a social media account
600
+ * @param {string} userId User ID
601
+ * @param {string} accountId Account ID
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ apiV1UsersUserIdAccountsAccountIdDelete: (userId: string, accountId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
606
+ /**
607
+ * Returns all connected social media accounts for a specific user.
608
+ * @summary List social media accounts for a user
609
+ * @param {string} userId User ID
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ */
613
+ apiV1UsersUserIdAccountsGet: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
614
+ };
615
+ /**
616
+ * UsersApi - functional programming interface
617
+ */
618
+ export declare const UsersApiFp: (configuration?: Configuration) => {
619
+ /**
620
+ * Creates a new user or retrieves an existing one for an organization. Idempotent by externalId.
621
+ * @summary Create or retrieve a user
622
+ * @param {HandlersCreateUserRequest} body Create user request
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ apiV1UsersPost(body: HandlersCreateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersUserResponse>>;
627
+ /**
628
+ * Revokes access to a connected social media account.
629
+ * @summary Disconnect a social media account
630
+ * @param {string} userId User ID
631
+ * @param {string} accountId Account ID
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ apiV1UsersUserIdAccountsAccountIdDelete(userId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
636
+ [key: string]: boolean;
637
+ }>>;
638
+ /**
639
+ * Returns all connected social media accounts for a specific user.
640
+ * @summary List social media accounts for a user
641
+ * @param {string} userId User ID
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ apiV1UsersUserIdAccountsGet(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HandlersAccountResponse>>>;
646
+ };
647
+ /**
648
+ * UsersApi - factory interface
649
+ */
650
+ export declare const UsersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
651
+ /**
652
+ * Creates a new user or retrieves an existing one for an organization. Idempotent by externalId.
653
+ * @summary Create or retrieve a user
654
+ * @param {HandlersCreateUserRequest} body Create user request
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ apiV1UsersPost(body: HandlersCreateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<HandlersUserResponse>;
659
+ /**
660
+ * Revokes access to a connected social media account.
661
+ * @summary Disconnect a social media account
662
+ * @param {string} userId User ID
663
+ * @param {string} accountId Account ID
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ apiV1UsersUserIdAccountsAccountIdDelete(userId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise<{
668
+ [key: string]: boolean;
669
+ }>;
670
+ /**
671
+ * Returns all connected social media accounts for a specific user.
672
+ * @summary List social media accounts for a user
673
+ * @param {string} userId User ID
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ apiV1UsersUserIdAccountsGet(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HandlersAccountResponse>>;
678
+ };
679
+ /**
680
+ * UsersApi - object-oriented interface
681
+ */
682
+ export declare class UsersApi extends BaseAPI {
683
+ /**
684
+ * Creates a new user or retrieves an existing one for an organization. Idempotent by externalId.
685
+ * @summary Create or retrieve a user
686
+ * @param {HandlersCreateUserRequest} body Create user request
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ apiV1UsersPost(body: HandlersCreateUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersUserResponse, any, {}>>;
691
+ /**
692
+ * Revokes access to a connected social media account.
693
+ * @summary Disconnect a social media account
694
+ * @param {string} userId User ID
695
+ * @param {string} accountId Account ID
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ apiV1UsersUserIdAccountsAccountIdDelete(userId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
700
+ [key: string]: boolean;
701
+ }, any, {}>>;
702
+ /**
703
+ * Returns all connected social media accounts for a specific user.
704
+ * @summary List social media accounts for a user
705
+ * @param {string} userId User ID
706
+ * @param {*} [options] Override http request option.
707
+ * @throws {RequiredError}
708
+ */
709
+ apiV1UsersUserIdAccountsGet(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersAccountResponse[], any, {}>>;
710
+ }
711
+ /**
712
+ * WaitlistApi - axios parameter creator
713
+ */
714
+ export declare const WaitlistApiAxiosParamCreator: (configuration?: Configuration) => {
715
+ /**
716
+ * Add an email address to the waitlist for early access.
717
+ * @summary Join the waitlist
718
+ * @param {HandlersWaitlistRequest} body Waitlist signup
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ waitlistPost: (body: HandlersWaitlistRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
723
+ };
724
+ /**
725
+ * WaitlistApi - functional programming interface
726
+ */
727
+ export declare const WaitlistApiFp: (configuration?: Configuration) => {
728
+ /**
729
+ * Add an email address to the waitlist for early access.
730
+ * @summary Join the waitlist
731
+ * @param {HandlersWaitlistRequest} body Waitlist signup
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ waitlistPost(body: HandlersWaitlistRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersWaitlistResponse>>;
736
+ };
737
+ /**
738
+ * WaitlistApi - factory interface
739
+ */
740
+ export declare const WaitlistApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
741
+ /**
742
+ * Add an email address to the waitlist for early access.
743
+ * @summary Join the waitlist
744
+ * @param {HandlersWaitlistRequest} body Waitlist signup
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ waitlistPost(body: HandlersWaitlistRequest, options?: RawAxiosRequestConfig): AxiosPromise<HandlersWaitlistResponse>;
749
+ };
750
+ /**
751
+ * WaitlistApi - object-oriented interface
752
+ */
753
+ export declare class WaitlistApi extends BaseAPI {
754
+ /**
755
+ * Add an email address to the waitlist for early access.
756
+ * @summary Join the waitlist
757
+ * @param {HandlersWaitlistRequest} body Waitlist signup
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ waitlistPost(body: HandlersWaitlistRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HandlersWaitlistResponse, any, {}>>;
762
+ }