@schedulin/sdk 0.3.0 → 0.4.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/cjs/api/errors/BadRequestError.d.ts +7 -0
- package/cjs/api/errors/BadRequestError.js +54 -0
- package/cjs/api/errors/ConflictError.d.ts +7 -0
- package/cjs/api/errors/ConflictError.js +54 -0
- package/cjs/api/errors/ForbiddenError.d.ts +7 -0
- package/cjs/api/errors/ForbiddenError.js +54 -0
- package/cjs/api/errors/NotFoundError.d.ts +7 -0
- package/cjs/api/errors/NotFoundError.js +54 -0
- package/cjs/api/errors/PaymentRequiredError.d.ts +7 -0
- package/cjs/api/errors/PaymentRequiredError.js +54 -0
- package/cjs/api/errors/TooManyRequestsError.d.ts +7 -0
- package/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/cjs/api/errors/index.d.ts +7 -0
- package/cjs/api/errors/index.js +7 -0
- package/cjs/api/resources/ai/client/Client.d.ts +11 -2
- package/cjs/api/resources/ai/client/Client.js +27 -0
- package/cjs/api/resources/ai/index.d.ts +1 -0
- package/cjs/api/resources/ai/index.js +1 -0
- package/cjs/api/resources/ai/types/GenerateImageAiResponse.d.ts +3 -0
- package/cjs/api/resources/ai/types/GenerateImageAiResponse.js +3 -0
- package/cjs/api/resources/ai/types/index.d.ts +1 -0
- package/cjs/api/resources/ai/types/index.js +17 -0
- package/cjs/api/resources/index.d.ts +2 -0
- package/cjs/api/resources/index.js +2 -0
- package/cjs/api/resources/media/client/Client.d.ts +59 -9
- package/cjs/api/resources/media/client/Client.js +159 -4
- package/cjs/api/resources/media/client/requests/UpdateMediaRequest.d.ts +2 -3
- package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/DeleteMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/DeleteMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/SetTagsMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/SetTagsMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/index.d.ts +3 -0
- package/cjs/api/resources/media/types/index.js +3 -0
- package/cjs/api/resources/platforms/client/Client.d.ts +4 -0
- package/cjs/api/resources/platforms/client/Client.js +12 -0
- package/cjs/api/resources/posts/client/Client.d.ts +56 -1
- package/cjs/api/resources/posts/client/Client.js +165 -0
- package/cjs/api/resources/posts/types/CountByTabPostsResponse.d.ts +7 -0
- package/cjs/api/resources/posts/types/CountByTabPostsResponse.js +3 -0
- package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +1 -0
- package/cjs/api/resources/posts/types/index.d.ts +1 -0
- package/cjs/api/resources/posts/types/index.js +1 -0
- package/cjs/api/resources/socialAccounts/client/Client.d.ts +93 -0
- package/cjs/api/resources/socialAccounts/client/Client.js +289 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/index.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/types/index.js +2 -0
- package/cjs/api/resources/tags/client/Client.d.ts +21 -0
- package/cjs/api/resources/tags/client/Client.js +63 -0
- package/cjs/api/resources/webhooks/client/Client.d.ts +51 -8
- package/cjs/api/resources/webhooks/client/Client.js +133 -1
- package/cjs/api/resources/webhooks/index.d.ts +1 -0
- package/cjs/api/resources/webhooks/index.js +1 -0
- package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.d.ts +3 -0
- package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/ListWebhooksResponse.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/ListWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/TestWebhooksResponse.d.ts +3 -0
- package/cjs/api/resources/webhooks/types/TestWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/index.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/index.js +20 -0
- package/cjs/api/types/AiGeneration.d.ts +27 -0
- package/cjs/api/types/AiGeneration.js +14 -0
- package/cjs/api/types/ErrorResponse.d.ts +14 -2
- package/cjs/api/types/Media.d.ts +4 -0
- package/cjs/api/types/MediaUpdate.d.ts +1 -1
- package/cjs/api/types/Post.d.ts +3 -0
- package/cjs/api/types/PostMedia.d.ts +14 -0
- package/cjs/api/types/PostMedia.js +3 -0
- package/cjs/api/types/PostWithRelations.d.ts +5 -68
- package/cjs/api/types/PostWithRelations.js +0 -54
- package/cjs/api/types/RateLimitErrorResponse.d.ts +17 -0
- package/cjs/api/types/RateLimitErrorResponse.js +3 -0
- package/cjs/api/types/ValidationErrorResponse.d.ts +17 -0
- package/cjs/api/types/ValidationErrorResponse.js +3 -0
- package/cjs/api/types/WebhookDelivery.d.ts +20 -0
- package/cjs/api/types/WebhookDelivery.js +12 -0
- package/cjs/api/types/WebhookEndpoint.d.ts +26 -0
- package/cjs/api/types/WebhookEndpoint.js +16 -0
- package/cjs/api/types/index.d.ts +6 -0
- package/cjs/api/types/index.js +6 -0
- package/esm/api/errors/BadRequestError.d.mts +7 -0
- package/esm/api/errors/BadRequestError.mjs +17 -0
- package/esm/api/errors/ConflictError.d.mts +7 -0
- package/esm/api/errors/ConflictError.mjs +17 -0
- package/esm/api/errors/ForbiddenError.d.mts +7 -0
- package/esm/api/errors/ForbiddenError.mjs +17 -0
- package/esm/api/errors/NotFoundError.d.mts +7 -0
- package/esm/api/errors/NotFoundError.mjs +17 -0
- package/esm/api/errors/PaymentRequiredError.d.mts +7 -0
- package/esm/api/errors/PaymentRequiredError.mjs +17 -0
- package/esm/api/errors/TooManyRequestsError.d.mts +7 -0
- package/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
- package/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/esm/api/errors/index.d.mts +7 -0
- package/esm/api/errors/index.mjs +7 -0
- package/esm/api/resources/ai/client/Client.d.mts +11 -2
- package/esm/api/resources/ai/client/Client.mjs +27 -0
- package/esm/api/resources/ai/index.d.mts +1 -0
- package/esm/api/resources/ai/index.mjs +1 -0
- package/esm/api/resources/ai/types/GenerateImageAiResponse.d.mts +3 -0
- package/esm/api/resources/ai/types/GenerateImageAiResponse.mjs +2 -0
- package/esm/api/resources/ai/types/index.d.mts +1 -0
- package/esm/api/resources/ai/types/index.mjs +1 -0
- package/esm/api/resources/index.d.mts +2 -0
- package/esm/api/resources/index.mjs +2 -0
- package/esm/api/resources/media/client/Client.d.mts +59 -9
- package/esm/api/resources/media/client/Client.mjs +159 -4
- package/esm/api/resources/media/client/requests/UpdateMediaRequest.d.mts +2 -3
- package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/DeleteMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/DeleteMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/SetTagsMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/SetTagsMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/index.d.mts +3 -0
- package/esm/api/resources/media/types/index.mjs +3 -0
- package/esm/api/resources/platforms/client/Client.d.mts +4 -0
- package/esm/api/resources/platforms/client/Client.mjs +12 -0
- package/esm/api/resources/posts/client/Client.d.mts +56 -1
- package/esm/api/resources/posts/client/Client.mjs +165 -0
- package/esm/api/resources/posts/types/CountByTabPostsResponse.d.mts +7 -0
- package/esm/api/resources/posts/types/CountByTabPostsResponse.mjs +2 -0
- package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +1 -0
- package/esm/api/resources/posts/types/index.d.mts +1 -0
- package/esm/api/resources/posts/types/index.mjs +1 -0
- package/esm/api/resources/socialAccounts/client/Client.d.mts +93 -0
- package/esm/api/resources/socialAccounts/client/Client.mjs +289 -0
- package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/index.d.mts +2 -0
- package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/index.d.mts +2 -0
- package/esm/api/resources/socialAccounts/types/index.mjs +2 -0
- package/esm/api/resources/tags/client/Client.d.mts +21 -0
- package/esm/api/resources/tags/client/Client.mjs +63 -0
- package/esm/api/resources/webhooks/client/Client.d.mts +51 -8
- package/esm/api/resources/webhooks/client/Client.mjs +133 -1
- package/esm/api/resources/webhooks/index.d.mts +1 -0
- package/esm/api/resources/webhooks/index.mjs +1 -0
- package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.d.mts +3 -0
- package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.mts +4 -0
- package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +4 -0
- package/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/TestWebhooksResponse.d.mts +3 -0
- package/esm/api/resources/webhooks/types/TestWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/index.d.mts +4 -0
- package/esm/api/resources/webhooks/types/index.mjs +4 -0
- package/esm/api/types/AiGeneration.d.mts +27 -0
- package/esm/api/types/AiGeneration.mjs +11 -0
- package/esm/api/types/ErrorResponse.d.mts +14 -2
- package/esm/api/types/Media.d.mts +4 -0
- package/esm/api/types/MediaUpdate.d.mts +1 -1
- package/esm/api/types/Post.d.mts +3 -0
- package/esm/api/types/PostMedia.d.mts +14 -0
- package/esm/api/types/PostMedia.mjs +2 -0
- package/esm/api/types/PostWithRelations.d.mts +5 -68
- package/esm/api/types/PostWithRelations.mjs +1 -53
- package/esm/api/types/RateLimitErrorResponse.d.mts +17 -0
- package/esm/api/types/RateLimitErrorResponse.mjs +2 -0
- package/esm/api/types/ValidationErrorResponse.d.mts +17 -0
- package/esm/api/types/ValidationErrorResponse.mjs +2 -0
- package/esm/api/types/WebhookDelivery.d.mts +20 -0
- package/esm/api/types/WebhookDelivery.mjs +9 -0
- package/esm/api/types/WebhookEndpoint.d.mts +26 -0
- package/esm/api/types/WebhookEndpoint.mjs +13 -0
- package/esm/api/types/index.d.mts +6 -0
- package/esm/api/types/index.mjs +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var AiGeneration;
|
|
3
|
+
(function (AiGeneration) {
|
|
4
|
+
AiGeneration.Status = {
|
|
5
|
+
Pending: "PENDING",
|
|
6
|
+
Processing: "PROCESSING",
|
|
7
|
+
Completed: "COMPLETED",
|
|
8
|
+
Failed: "FAILED",
|
|
9
|
+
Cancelled: "CANCELLED",
|
|
10
|
+
};
|
|
11
|
+
})(AiGeneration || (AiGeneration = {}));
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Error envelope. The machine-readable `code` and HTTP `status` are always present; the human-readable reason is in `
|
|
2
|
+
* Error envelope. The machine-readable `code` and HTTP `status` are always present; the human-readable reason is in `message` / `data.message`.
|
|
3
3
|
*/
|
|
4
4
|
export interface ErrorResponse {
|
|
5
5
|
/** e.g. "BAD_REQUEST", "UNAUTHORIZED", "NOT_FOUND". */
|
|
6
6
|
code: string;
|
|
7
7
|
status: number;
|
|
8
8
|
message?: string | undefined;
|
|
9
|
-
|
|
9
|
+
defined?: boolean | undefined;
|
|
10
|
+
data?: ErrorResponse.Data | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace ErrorResponse {
|
|
13
|
+
interface Data {
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
/** End-user-safe explanation, when available. */
|
|
16
|
+
userMessage?: string | undefined;
|
|
17
|
+
errorTag?: string | undefined;
|
|
18
|
+
isRetryable?: boolean | undefined;
|
|
19
|
+
/** Accepts any additional properties */
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
10
22
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Schedulin from "../index.mjs";
|
|
1
2
|
export interface Media {
|
|
2
3
|
id: string;
|
|
3
4
|
url: string;
|
|
@@ -11,4 +12,7 @@ export interface Media {
|
|
|
11
12
|
bucket: string;
|
|
12
13
|
key: string;
|
|
13
14
|
size: number | null;
|
|
15
|
+
alt: string | null;
|
|
16
|
+
thumbnailUrl: string | null;
|
|
17
|
+
tags?: Schedulin.Tag[] | undefined;
|
|
14
18
|
}
|
package/esm/api/types/Post.d.mts
CHANGED
|
@@ -14,6 +14,9 @@ export interface Post {
|
|
|
14
14
|
platformConfiguration: Record<string, unknown> | null;
|
|
15
15
|
socialAccountId: string;
|
|
16
16
|
url: string | null;
|
|
17
|
+
title: string | null;
|
|
18
|
+
postedAt: string | null;
|
|
19
|
+
errorMessage: string | null;
|
|
17
20
|
createdAt: string;
|
|
18
21
|
updatedAt: string;
|
|
19
22
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PostMedia {
|
|
2
|
+
id: string;
|
|
3
|
+
url: string;
|
|
4
|
+
name: string;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
width: number | null;
|
|
7
|
+
height: number | null;
|
|
8
|
+
duration: number | null;
|
|
9
|
+
size: number | null;
|
|
10
|
+
alt: string | null;
|
|
11
|
+
thumbnailUrl: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
}
|
|
@@ -14,76 +14,13 @@ export interface PostWithRelations {
|
|
|
14
14
|
platformConfiguration: Record<string, unknown> | null;
|
|
15
15
|
socialAccountId: string;
|
|
16
16
|
url: string | null;
|
|
17
|
+
title: string | null;
|
|
18
|
+
postedAt: string | null;
|
|
19
|
+
errorMessage: string | null;
|
|
17
20
|
createdAt: string;
|
|
18
21
|
updatedAt: string;
|
|
19
22
|
socialAccount: Schedulin.SocialAccount;
|
|
20
|
-
media:
|
|
23
|
+
media: Schedulin.PostMedia[];
|
|
24
|
+
thumbnail: Schedulin.PostMedia | null;
|
|
21
25
|
tags: Schedulin.Tag[];
|
|
22
26
|
}
|
|
23
|
-
export declare namespace PostWithRelations {
|
|
24
|
-
type Media = Media.Item[];
|
|
25
|
-
namespace Media {
|
|
26
|
-
interface Item {
|
|
27
|
-
url: string;
|
|
28
|
-
thumbnail_url?: (string | null) | undefined;
|
|
29
|
-
thumbnail_timestamp_ms?: (number | null) | undefined;
|
|
30
|
-
tags?: Item.Tags.Item[] | undefined;
|
|
31
|
-
alt?: (string | null) | undefined;
|
|
32
|
-
skip_processing?: boolean | undefined;
|
|
33
|
-
}
|
|
34
|
-
namespace Item {
|
|
35
|
-
type Tags = Tags.Item[];
|
|
36
|
-
namespace Tags {
|
|
37
|
-
interface Item {
|
|
38
|
-
id: string;
|
|
39
|
-
type: Item.Type;
|
|
40
|
-
platform: Item.Platform;
|
|
41
|
-
x?: number | undefined;
|
|
42
|
-
y?: number | undefined;
|
|
43
|
-
}
|
|
44
|
-
namespace Item {
|
|
45
|
-
const Type: {
|
|
46
|
-
readonly User: "user";
|
|
47
|
-
readonly Business: "business";
|
|
48
|
-
};
|
|
49
|
-
type Type = (typeof Type)[keyof typeof Type];
|
|
50
|
-
const Platform: {
|
|
51
|
-
readonly Bluesky: "bluesky";
|
|
52
|
-
readonly Facebook: "facebook";
|
|
53
|
-
readonly GoogleBusinessProfile: "google_business_profile";
|
|
54
|
-
readonly Instagram: "instagram";
|
|
55
|
-
readonly Linkedin: "linkedin";
|
|
56
|
-
readonly Pinterest: "pinterest";
|
|
57
|
-
readonly Reddit: "reddit";
|
|
58
|
-
readonly Snapchat: "snapchat";
|
|
59
|
-
readonly Threads: "threads";
|
|
60
|
-
readonly Tiktok: "tiktok";
|
|
61
|
-
readonly Twitter: "twitter";
|
|
62
|
-
readonly Youtube: "youtube";
|
|
63
|
-
readonly Mastodon: "mastodon";
|
|
64
|
-
readonly Telegram: "telegram";
|
|
65
|
-
readonly Devto: "devto";
|
|
66
|
-
readonly Hashnode: "hashnode";
|
|
67
|
-
readonly Medium: "medium";
|
|
68
|
-
readonly Wordpress: "wordpress";
|
|
69
|
-
readonly Lemmy: "lemmy";
|
|
70
|
-
readonly Nostr: "nostr";
|
|
71
|
-
readonly Discord: "discord";
|
|
72
|
-
readonly Dribbble: "dribbble";
|
|
73
|
-
readonly Farcaster: "farcaster";
|
|
74
|
-
readonly Kick: "kick";
|
|
75
|
-
readonly Listmonk: "listmonk";
|
|
76
|
-
readonly Mewe: "mewe";
|
|
77
|
-
readonly Moltbook: "moltbook";
|
|
78
|
-
readonly Skool: "skool";
|
|
79
|
-
readonly Slack: "slack";
|
|
80
|
-
readonly Twitch: "twitch";
|
|
81
|
-
readonly Vk: "vk";
|
|
82
|
-
readonly Whop: "whop";
|
|
83
|
-
};
|
|
84
|
-
type Platform = (typeof Platform)[keyof typeof Platform];
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,54 +1,2 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
3
|
-
(function (PostWithRelations) {
|
|
4
|
-
let Media;
|
|
5
|
-
(function (Media) {
|
|
6
|
-
let Item;
|
|
7
|
-
(function (Item_1) {
|
|
8
|
-
let Tags;
|
|
9
|
-
(function (Tags) {
|
|
10
|
-
let Item;
|
|
11
|
-
(function (Item) {
|
|
12
|
-
Item.Type = {
|
|
13
|
-
User: "user",
|
|
14
|
-
Business: "business",
|
|
15
|
-
};
|
|
16
|
-
Item.Platform = {
|
|
17
|
-
Bluesky: "bluesky",
|
|
18
|
-
Facebook: "facebook",
|
|
19
|
-
GoogleBusinessProfile: "google_business_profile",
|
|
20
|
-
Instagram: "instagram",
|
|
21
|
-
Linkedin: "linkedin",
|
|
22
|
-
Pinterest: "pinterest",
|
|
23
|
-
Reddit: "reddit",
|
|
24
|
-
Snapchat: "snapchat",
|
|
25
|
-
Threads: "threads",
|
|
26
|
-
Tiktok: "tiktok",
|
|
27
|
-
Twitter: "twitter",
|
|
28
|
-
Youtube: "youtube",
|
|
29
|
-
Mastodon: "mastodon",
|
|
30
|
-
Telegram: "telegram",
|
|
31
|
-
Devto: "devto",
|
|
32
|
-
Hashnode: "hashnode",
|
|
33
|
-
Medium: "medium",
|
|
34
|
-
Wordpress: "wordpress",
|
|
35
|
-
Lemmy: "lemmy",
|
|
36
|
-
Nostr: "nostr",
|
|
37
|
-
Discord: "discord",
|
|
38
|
-
Dribbble: "dribbble",
|
|
39
|
-
Farcaster: "farcaster",
|
|
40
|
-
Kick: "kick",
|
|
41
|
-
Listmonk: "listmonk",
|
|
42
|
-
Mewe: "mewe",
|
|
43
|
-
Moltbook: "moltbook",
|
|
44
|
-
Skool: "skool",
|
|
45
|
-
Slack: "slack",
|
|
46
|
-
Twitch: "twitch",
|
|
47
|
-
Vk: "vk",
|
|
48
|
-
Whop: "whop",
|
|
49
|
-
};
|
|
50
|
-
})(Item = Tags.Item || (Tags.Item = {}));
|
|
51
|
-
})(Tags = Item_1.Tags || (Item_1.Tags = {}));
|
|
52
|
-
})(Item = Media.Item || (Media.Item = {}));
|
|
53
|
-
})(Media = PostWithRelations.Media || (PostWithRelations.Media = {}));
|
|
54
|
-
})(PostWithRelations || (PostWithRelations = {}));
|
|
2
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 429 rate-limit error. Per-key request limits return `code: "RATE_LIMITED"` (also mirrored under `error`); the per-user limiter returns `code: "TOO_MANY_REQUESTS"`. Honor the `Retry-After` header.
|
|
3
|
+
*/
|
|
4
|
+
export interface RateLimitErrorResponse {
|
|
5
|
+
code: string;
|
|
6
|
+
status: number;
|
|
7
|
+
message?: string | undefined;
|
|
8
|
+
defined?: boolean | undefined;
|
|
9
|
+
data?: Record<string, unknown> | undefined;
|
|
10
|
+
error?: RateLimitErrorResponse.Error_ | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace RateLimitErrorResponse {
|
|
13
|
+
interface Error_ {
|
|
14
|
+
code: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 422 input validation error. `data.fieldErrors` maps each invalid field to its messages; `data.formErrors` holds errors not tied to one field.
|
|
3
|
+
*/
|
|
4
|
+
export interface ValidationErrorResponse {
|
|
5
|
+
/** "INPUT_VALIDATION_FAILED" */
|
|
6
|
+
code: string;
|
|
7
|
+
status: number;
|
|
8
|
+
message?: string | undefined;
|
|
9
|
+
defined?: boolean | undefined;
|
|
10
|
+
data: ValidationErrorResponse.Data;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace ValidationErrorResponse {
|
|
13
|
+
interface Data {
|
|
14
|
+
formErrors?: string[] | undefined;
|
|
15
|
+
fieldErrors?: Record<string, string[]> | undefined;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface WebhookDelivery {
|
|
2
|
+
id: string;
|
|
3
|
+
endpointId: string;
|
|
4
|
+
event: string;
|
|
5
|
+
payload: Record<string, unknown>;
|
|
6
|
+
status: WebhookDelivery.Status;
|
|
7
|
+
attempts: number;
|
|
8
|
+
responseStatus: number | null;
|
|
9
|
+
lastError: string | null;
|
|
10
|
+
deliveredAt: string | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace WebhookDelivery {
|
|
14
|
+
const Status: {
|
|
15
|
+
readonly Pending: "PENDING";
|
|
16
|
+
readonly Success: "SUCCESS";
|
|
17
|
+
readonly Failed: "FAILED";
|
|
18
|
+
};
|
|
19
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var WebhookDelivery;
|
|
3
|
+
(function (WebhookDelivery) {
|
|
4
|
+
WebhookDelivery.Status = {
|
|
5
|
+
Pending: "PENDING",
|
|
6
|
+
Success: "SUCCESS",
|
|
7
|
+
Failed: "FAILED",
|
|
8
|
+
};
|
|
9
|
+
})(WebhookDelivery || (WebhookDelivery = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface WebhookEndpoint {
|
|
2
|
+
id: string;
|
|
3
|
+
url: string;
|
|
4
|
+
secret: string;
|
|
5
|
+
events: WebhookEndpoint.Events.Item[];
|
|
6
|
+
description: string | null;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
consecutiveFailures: number;
|
|
9
|
+
lastSuccessAt: string | null;
|
|
10
|
+
lastFailureAt: string | null;
|
|
11
|
+
disabledAt: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace WebhookEndpoint {
|
|
16
|
+
type Events = Events.Item[];
|
|
17
|
+
namespace Events {
|
|
18
|
+
const Item: {
|
|
19
|
+
readonly PostPublished: "post.published";
|
|
20
|
+
readonly PostFailed: "post.failed";
|
|
21
|
+
readonly GenerationCompleted: "generation.completed";
|
|
22
|
+
readonly GenerationFailed: "generation.failed";
|
|
23
|
+
};
|
|
24
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var WebhookEndpoint;
|
|
3
|
+
(function (WebhookEndpoint) {
|
|
4
|
+
let Events;
|
|
5
|
+
(function (Events) {
|
|
6
|
+
Events.Item = {
|
|
7
|
+
PostPublished: "post.published",
|
|
8
|
+
PostFailed: "post.failed",
|
|
9
|
+
GenerationCompleted: "generation.completed",
|
|
10
|
+
GenerationFailed: "generation.failed",
|
|
11
|
+
};
|
|
12
|
+
})(Events = WebhookEndpoint.Events || (WebhookEndpoint.Events = {}));
|
|
13
|
+
})(WebhookEndpoint || (WebhookEndpoint = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AiGeneration.mjs";
|
|
1
2
|
export * from "./AnalyticsStatus.mjs";
|
|
2
3
|
export * from "./ErrorResponse.mjs";
|
|
3
4
|
export * from "./ImageProcessingStatus.mjs";
|
|
@@ -9,11 +10,13 @@ export * from "./MediaUpdate.mjs";
|
|
|
9
10
|
export * from "./OauthScope.mjs";
|
|
10
11
|
export * from "./Post.mjs";
|
|
11
12
|
export * from "./PostApprovalStatus.mjs";
|
|
13
|
+
export * from "./PostMedia.mjs";
|
|
12
14
|
export * from "./PostPublishDraft.mjs";
|
|
13
15
|
export * from "./PostSearch.mjs";
|
|
14
16
|
export * from "./PostStatus.mjs";
|
|
15
17
|
export * from "./PostWithRelations.mjs";
|
|
16
18
|
export * from "./PresignedPost.mjs";
|
|
19
|
+
export * from "./RateLimitErrorResponse.mjs";
|
|
17
20
|
export * from "./SocialAccount.mjs";
|
|
18
21
|
export * from "./SocialAccountDisconnectedReason.mjs";
|
|
19
22
|
export * from "./SocialAccountPublic.mjs";
|
|
@@ -22,3 +25,6 @@ export * from "./SocialPlatform.mjs";
|
|
|
22
25
|
export * from "./Tag.mjs";
|
|
23
26
|
export * from "./TagSearch.mjs";
|
|
24
27
|
export * from "./TagUpsert.mjs";
|
|
28
|
+
export * from "./ValidationErrorResponse.mjs";
|
|
29
|
+
export * from "./WebhookDelivery.mjs";
|
|
30
|
+
export * from "./WebhookEndpoint.mjs";
|
package/esm/api/types/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AiGeneration.mjs";
|
|
1
2
|
export * from "./AnalyticsStatus.mjs";
|
|
2
3
|
export * from "./ErrorResponse.mjs";
|
|
3
4
|
export * from "./ImageProcessingStatus.mjs";
|
|
@@ -9,11 +10,13 @@ export * from "./MediaUpdate.mjs";
|
|
|
9
10
|
export * from "./OauthScope.mjs";
|
|
10
11
|
export * from "./Post.mjs";
|
|
11
12
|
export * from "./PostApprovalStatus.mjs";
|
|
13
|
+
export * from "./PostMedia.mjs";
|
|
12
14
|
export * from "./PostPublishDraft.mjs";
|
|
13
15
|
export * from "./PostSearch.mjs";
|
|
14
16
|
export * from "./PostStatus.mjs";
|
|
15
17
|
export * from "./PostWithRelations.mjs";
|
|
16
18
|
export * from "./PresignedPost.mjs";
|
|
19
|
+
export * from "./RateLimitErrorResponse.mjs";
|
|
17
20
|
export * from "./SocialAccount.mjs";
|
|
18
21
|
export * from "./SocialAccountDisconnectedReason.mjs";
|
|
19
22
|
export * from "./SocialAccountPublic.mjs";
|
|
@@ -22,3 +25,6 @@ export * from "./SocialPlatform.mjs";
|
|
|
22
25
|
export * from "./Tag.mjs";
|
|
23
26
|
export * from "./TagSearch.mjs";
|
|
24
27
|
export * from "./TagUpsert.mjs";
|
|
28
|
+
export * from "./ValidationErrorResponse.mjs";
|
|
29
|
+
export * from "./WebhookDelivery.mjs";
|
|
30
|
+
export * from "./WebhookEndpoint.mjs";
|