@aurora-interactive/fankare-api-sdk 0.1.0 → 0.1.2
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/README.md +37 -1
- package/esm/funcs/creators-discovery-get-featured-creators.d.ts +14 -0
- package/esm/funcs/creators-discovery-get-featured-creators.d.ts.map +1 -0
- package/esm/funcs/creators-discovery-get-featured-creators.js +85 -0
- package/esm/funcs/creators-discovery-get-featured-creators.js.map +1 -0
- package/esm/funcs/creators-discovery-get-trending-creators.d.ts +14 -0
- package/esm/funcs/creators-discovery-get-trending-creators.d.ts.map +1 -0
- package/esm/funcs/creators-discovery-get-trending-creators.js +85 -0
- package/esm/funcs/creators-discovery-get-trending-creators.js.map +1 -0
- package/esm/funcs/notifications-get-notifications.d.ts +14 -0
- package/esm/funcs/notifications-get-notifications.d.ts.map +1 -0
- package/esm/funcs/notifications-get-notifications.js +87 -0
- package/esm/funcs/notifications-get-notifications.js.map +1 -0
- package/esm/funcs/notifications-get-unread-notification-count.d.ts +14 -0
- package/esm/funcs/notifications-get-unread-notification-count.d.ts.map +1 -0
- package/esm/funcs/notifications-get-unread-notification-count.js +67 -0
- package/esm/funcs/notifications-get-unread-notification-count.js.map +1 -0
- package/esm/funcs/notifications-mark-notifications-as-read.d.ts +14 -0
- package/esm/funcs/notifications-mark-notifications-as-read.d.ts.map +1 -0
- package/esm/funcs/notifications-mark-notifications-as-read.js +78 -0
- package/esm/funcs/notifications-mark-notifications-as-read.js.map +1 -0
- package/esm/funcs/posts-create-comment.d.ts +14 -0
- package/esm/funcs/posts-create-comment.d.ts.map +1 -0
- package/esm/funcs/posts-create-comment.js +89 -0
- package/esm/funcs/posts-create-comment.js.map +1 -0
- package/esm/funcs/posts-delete-comment.d.ts +13 -0
- package/esm/funcs/posts-delete-comment.d.ts.map +1 -0
- package/esm/funcs/posts-delete-comment.js +91 -0
- package/esm/funcs/posts-delete-comment.js.map +1 -0
- package/esm/funcs/posts-get-post-comments.d.ts +14 -0
- package/esm/funcs/posts-get-post-comments.d.ts.map +1 -0
- package/esm/funcs/posts-get-post-comments.js +94 -0
- package/esm/funcs/posts-get-post-comments.js.map +1 -0
- package/esm/funcs/posts-get-post-likes.d.ts +14 -0
- package/esm/funcs/posts-get-post-likes.d.ts.map +1 -0
- package/esm/funcs/posts-get-post-likes.js +94 -0
- package/esm/funcs/posts-get-post-likes.js.map +1 -0
- package/esm/funcs/posts-like-post.d.ts +13 -0
- package/esm/funcs/posts-like-post.d.ts.map +1 -0
- package/esm/funcs/posts-like-post.js +86 -0
- package/esm/funcs/posts-like-post.js.map +1 -0
- package/esm/funcs/posts-unlike-post.d.ts +13 -0
- package/esm/funcs/posts-unlike-post.d.ts.map +1 -0
- package/esm/funcs/posts-unlike-post.js +86 -0
- package/esm/funcs/posts-unlike-post.js.map +1 -0
- package/esm/funcs/user-discovery-get-follower-count.d.ts +14 -0
- package/esm/funcs/user-discovery-get-follower-count.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-follower-count.js +67 -0
- package/esm/funcs/user-discovery-get-follower-count.js.map +1 -0
- package/esm/funcs/user-discovery-get-followers.d.ts +14 -0
- package/esm/funcs/user-discovery-get-followers.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-followers.js +87 -0
- package/esm/funcs/user-discovery-get-followers.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-follower-count.d.ts +14 -0
- package/esm/funcs/user-discovery-get-user-follower-count.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-follower-count.js +87 -0
- package/esm/funcs/user-discovery-get-user-follower-count.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-followers.d.ts +14 -0
- package/esm/funcs/user-discovery-get-user-followers.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-followers.js +94 -0
- package/esm/funcs/user-discovery-get-user-followers.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/comment.d.ts +15 -0
- package/esm/models/comment.d.ts.map +1 -0
- package/esm/models/comment.js +20 -0
- package/esm/models/comment.js.map +1 -0
- package/esm/models/create-comment-request.d.ts +15 -0
- package/esm/models/create-comment-request.d.ts.map +1 -0
- package/esm/models/create-comment-request.js +13 -0
- package/esm/models/create-comment-request.js.map +1 -0
- package/esm/models/follower-count-response.d.ts +10 -0
- package/esm/models/follower-count-response.d.ts.map +1 -0
- package/esm/models/follower-count-response.js +15 -0
- package/esm/models/follower-count-response.js.map +1 -0
- package/esm/models/index.d.ts +10 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +10 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/mark-notifications-read-request.d.ts +20 -0
- package/esm/models/mark-notifications-read-request.d.ts.map +1 -0
- package/esm/models/mark-notifications-read-request.js +14 -0
- package/esm/models/mark-notifications-read-request.js.map +1 -0
- package/esm/models/notification.d.ts +30 -0
- package/esm/models/notification.d.ts.map +1 -0
- package/esm/models/notification.js +31 -0
- package/esm/models/notification.js.map +1 -0
- package/esm/models/operations/create-comment.d.ts +15 -0
- package/esm/models/operations/create-comment.d.ts.map +1 -0
- package/esm/models/operations/create-comment.js +15 -0
- package/esm/models/operations/create-comment.js.map +1 -0
- package/esm/models/operations/delete-comment.d.ts +14 -0
- package/esm/models/operations/delete-comment.d.ts.map +1 -0
- package/esm/models/operations/delete-comment.js +14 -0
- package/esm/models/operations/delete-comment.js.map +1 -0
- package/esm/models/operations/get-featured-creators.d.ts +12 -0
- package/esm/models/operations/get-featured-creators.d.ts.map +1 -0
- package/esm/models/operations/get-featured-creators.js +13 -0
- package/esm/models/operations/get-featured-creators.js.map +1 -0
- package/esm/models/operations/get-followers.d.ts +17 -0
- package/esm/models/operations/get-followers.d.ts.map +1 -0
- package/esm/models/operations/get-followers.js +14 -0
- package/esm/models/operations/get-followers.js.map +1 -0
- package/esm/models/operations/get-notifications.d.ts +17 -0
- package/esm/models/operations/get-notifications.d.ts.map +1 -0
- package/esm/models/operations/get-notifications.js +14 -0
- package/esm/models/operations/get-notifications.js.map +1 -0
- package/esm/models/operations/get-post-comments.d.ts +19 -0
- package/esm/models/operations/get-post-comments.d.ts.map +1 -0
- package/esm/models/operations/get-post-comments.js +15 -0
- package/esm/models/operations/get-post-comments.js.map +1 -0
- package/esm/models/operations/get-post-likes.d.ts +19 -0
- package/esm/models/operations/get-post-likes.d.ts.map +1 -0
- package/esm/models/operations/get-post-likes.js +15 -0
- package/esm/models/operations/get-post-likes.js.map +1 -0
- package/esm/models/operations/get-trending-creators.d.ts +12 -0
- package/esm/models/operations/get-trending-creators.d.ts.map +1 -0
- package/esm/models/operations/get-trending-creators.js +13 -0
- package/esm/models/operations/get-trending-creators.js.map +1 -0
- package/esm/models/operations/get-user-follower-count.d.ts +12 -0
- package/esm/models/operations/get-user-follower-count.d.ts.map +1 -0
- package/esm/models/operations/get-user-follower-count.js +13 -0
- package/esm/models/operations/get-user-follower-count.js.map +1 -0
- package/esm/models/operations/get-user-followers.d.ts +19 -0
- package/esm/models/operations/get-user-followers.d.ts.map +1 -0
- package/esm/models/operations/get-user-followers.js +15 -0
- package/esm/models/operations/get-user-followers.js.map +1 -0
- package/esm/models/operations/index.d.ts +12 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +12 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/like-post.d.ts +12 -0
- package/esm/models/operations/like-post.d.ts.map +1 -0
- package/esm/models/operations/like-post.js +13 -0
- package/esm/models/operations/like-post.js.map +1 -0
- package/esm/models/operations/unlike-post.d.ts +12 -0
- package/esm/models/operations/unlike-post.d.ts.map +1 -0
- package/esm/models/operations/unlike-post.js +13 -0
- package/esm/models/operations/unlike-post.js.map +1 -0
- package/esm/models/paginated-comments-response.d.ts +15 -0
- package/esm/models/paginated-comments-response.d.ts.map +1 -0
- package/esm/models/paginated-comments-response.js +17 -0
- package/esm/models/paginated-comments-response.js.map +1 -0
- package/esm/models/paginated-followers-response.d.ts +15 -0
- package/esm/models/paginated-followers-response.d.ts.map +1 -0
- package/esm/models/paginated-followers-response.js +17 -0
- package/esm/models/paginated-followers-response.js.map +1 -0
- package/esm/models/paginated-likes-response.d.ts +15 -0
- package/esm/models/paginated-likes-response.d.ts.map +1 -0
- package/esm/models/paginated-likes-response.js +17 -0
- package/esm/models/paginated-likes-response.js.map +1 -0
- package/esm/models/paginated-notifications-response.d.ts +15 -0
- package/esm/models/paginated-notifications-response.d.ts.map +1 -0
- package/esm/models/paginated-notifications-response.js +17 -0
- package/esm/models/paginated-notifications-response.js.map +1 -0
- package/esm/models/unread-count-response.d.ts +10 -0
- package/esm/models/unread-count-response.d.ts.map +1 -0
- package/esm/models/unread-count-response.js +15 -0
- package/esm/models/unread-count-response.js.map +1 -0
- package/esm/models/user.d.ts +4 -0
- package/esm/models/user.d.ts.map +1 -1
- package/esm/models/user.js +1 -0
- package/esm/models/user.js.map +1 -1
- package/esm/sdk/creators-discovery.d.ts +13 -0
- package/esm/sdk/creators-discovery.d.ts.map +1 -0
- package/esm/sdk/creators-discovery.js +23 -0
- package/esm/sdk/creators-discovery.js.map +1 -0
- package/esm/sdk/notifications.d.ts +17 -0
- package/esm/sdk/notifications.d.ts.map +1 -0
- package/esm/sdk/notifications.js +30 -0
- package/esm/sdk/notifications.js.map +1 -0
- package/esm/sdk/posts.d.ts +24 -0
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +42 -0
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +6 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +10 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/user-discovery.d.ts +16 -0
- package/esm/sdk/user-discovery.d.ts.map +1 -1
- package/esm/sdk/user-discovery.js +28 -0
- package/esm/sdk/user-discovery.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/creators-discovery-get-featured-creators.ts +174 -0
- package/src/funcs/creators-discovery-get-trending-creators.ts +174 -0
- package/src/funcs/notifications-get-notifications.ts +179 -0
- package/src/funcs/notifications-get-unread-notification-count.ts +142 -0
- package/src/funcs/notifications-mark-notifications-as-read.ts +162 -0
- package/src/funcs/posts-create-comment.ts +176 -0
- package/src/funcs/posts-delete-comment.ts +178 -0
- package/src/funcs/posts-get-post-comments.ts +185 -0
- package/src/funcs/posts-get-post-likes.ts +185 -0
- package/src/funcs/posts-like-post.ts +170 -0
- package/src/funcs/posts-unlike-post.ts +170 -0
- package/src/funcs/user-discovery-get-follower-count.ts +142 -0
- package/src/funcs/user-discovery-get-followers.ts +176 -0
- package/src/funcs/user-discovery-get-user-follower-count.ts +172 -0
- package/src/funcs/user-discovery-get-user-followers.ts +186 -0
- package/src/lib/config.ts +3 -3
- package/src/models/comment.ts +38 -0
- package/src/models/create-comment-request.ts +34 -0
- package/src/models/follower-count-response.ts +32 -0
- package/src/models/index.ts +10 -0
- package/src/models/mark-notifications-read-request.ts +42 -0
- package/src/models/notification.ts +60 -0
- package/src/models/operations/create-comment.ts +35 -0
- package/src/models/operations/delete-comment.ts +34 -0
- package/src/models/operations/get-featured-creators.ts +31 -0
- package/src/models/operations/get-followers.ts +37 -0
- package/src/models/operations/get-notifications.ts +37 -0
- package/src/models/operations/get-post-comments.ts +40 -0
- package/src/models/operations/get-post-likes.ts +40 -0
- package/src/models/operations/get-trending-creators.ts +31 -0
- package/src/models/operations/get-user-follower-count.ts +33 -0
- package/src/models/operations/get-user-followers.ts +40 -0
- package/src/models/operations/index.ts +12 -0
- package/src/models/operations/like-post.ts +29 -0
- package/src/models/operations/unlike-post.ts +31 -0
- package/src/models/paginated-comments-response.ts +38 -0
- package/src/models/paginated-followers-response.ts +38 -0
- package/src/models/paginated-likes-response.ts +38 -0
- package/src/models/paginated-notifications-response.ts +38 -0
- package/src/models/unread-count-response.ts +32 -0
- package/src/models/user.ts +5 -0
- package/src/sdk/creators-discovery.ts +40 -0
- package/src/sdk/notifications.ts +55 -0
- package/src/sdk/posts.ts +102 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/user-discovery.ts +64 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4085e9ab1118
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as models from "../models/index.js";
|
|
14
|
+
import * as operations from "../models/operations/index.js";
|
|
15
|
+
import { APIPromise } from "../types/async.js";
|
|
16
|
+
/**
|
|
17
|
+
* Fetch a specific user's paginated list of followers
|
|
18
|
+
*/
|
|
19
|
+
export function userDiscoveryGetUserFollowers(client, userId, limit, cursor, options) {
|
|
20
|
+
return new APIPromise($do(client, userId, limit, cursor, options));
|
|
21
|
+
}
|
|
22
|
+
async function $do(client, userId, limit, cursor, options) {
|
|
23
|
+
const input = {
|
|
24
|
+
userId: userId,
|
|
25
|
+
limit: limit,
|
|
26
|
+
cursor: cursor,
|
|
27
|
+
};
|
|
28
|
+
const parsed = safeParse(input, (value) => z.parse(operations.GetUserFollowersRequest$outboundSchema, value), "Input validation failed");
|
|
29
|
+
if (!parsed.ok) {
|
|
30
|
+
return [parsed, { status: "invalid" }];
|
|
31
|
+
}
|
|
32
|
+
const payload = parsed.value;
|
|
33
|
+
const body = null;
|
|
34
|
+
const pathParams = {
|
|
35
|
+
userId: encodeSimple("userId", payload.userId, {
|
|
36
|
+
explode: false,
|
|
37
|
+
charEncoding: "percent",
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
const path = pathToFunc("/users/{userId}/followers")(pathParams);
|
|
41
|
+
const query = encodeFormQuery({
|
|
42
|
+
"cursor": payload.cursor,
|
|
43
|
+
"limit": payload.limit,
|
|
44
|
+
});
|
|
45
|
+
const headers = new Headers(compactMap({
|
|
46
|
+
Accept: "application/json",
|
|
47
|
+
}));
|
|
48
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
49
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
50
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51
|
+
const context = {
|
|
52
|
+
options: client._options,
|
|
53
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54
|
+
operationID: "getUserFollowers",
|
|
55
|
+
oAuth2Scopes: null,
|
|
56
|
+
resolvedSecurity: requestSecurity,
|
|
57
|
+
securitySource: client._options.bearerAuth,
|
|
58
|
+
retryConfig: options?.retries
|
|
59
|
+
|| client._options.retryConfig
|
|
60
|
+
|| { strategy: "none" },
|
|
61
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
62
|
+
};
|
|
63
|
+
const requestRes = client._createRequest(context, {
|
|
64
|
+
security: requestSecurity,
|
|
65
|
+
method: "GET",
|
|
66
|
+
baseURL: options?.serverURL,
|
|
67
|
+
path: path,
|
|
68
|
+
headers: headers,
|
|
69
|
+
query: query,
|
|
70
|
+
body: body,
|
|
71
|
+
userAgent: client._options.userAgent,
|
|
72
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
73
|
+
}, options);
|
|
74
|
+
if (!requestRes.ok) {
|
|
75
|
+
return [requestRes, { status: "invalid" }];
|
|
76
|
+
}
|
|
77
|
+
const req = requestRes.value;
|
|
78
|
+
const doResult = await client._do(req, {
|
|
79
|
+
context,
|
|
80
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81
|
+
retryConfig: context.retryConfig,
|
|
82
|
+
retryCodes: context.retryCodes,
|
|
83
|
+
});
|
|
84
|
+
if (!doResult.ok) {
|
|
85
|
+
return [doResult, { status: "request-error", request: req }];
|
|
86
|
+
}
|
|
87
|
+
const response = doResult.value;
|
|
88
|
+
const [result] = await M.match(M.json(200, models.PaginatedFollowersResponse$inboundSchema), M.fail([401, 404, "4XX"]), M.fail("5XX"))(response, req);
|
|
89
|
+
if (!result.ok) {
|
|
90
|
+
return [result, { status: "complete", request: req, response }];
|
|
91
|
+
}
|
|
92
|
+
return [result, { status: "complete", request: req, response }];
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=user-discovery-get-user-followers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-discovery-get-user-followers.js","sourceRoot":"","sources":["../../src/funcs/user-discovery-get-user-followers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAsB,EACtB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d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { RetryConfig } from "./retries.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Contains the list of servers available to the SDK
|
|
6
6
|
*/
|
|
7
|
-
export declare const ServerList: readonly ["
|
|
7
|
+
export declare const ServerList: readonly ["https://api.fankare.vip/api/v1"];
|
|
8
8
|
export type SDKOptions = {
|
|
9
9
|
bearerAuth?: string | (() => Promise<string>) | undefined;
|
|
10
10
|
httpClient?: HTTPClient;
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.1.
|
|
34
|
+
readonly sdkVersion: "0.1.2";
|
|
35
35
|
readonly genVersion: "2.911.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.2 2.911.0 1.1.0 openapi";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,6CAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
package/esm/lib/config.js
CHANGED
|
@@ -10,7 +10,7 @@ export const ServerList = [
|
|
|
10
10
|
/**
|
|
11
11
|
* Local Development Server
|
|
12
12
|
*/
|
|
13
|
-
"
|
|
13
|
+
"https://api.fankare.vip/api/v1",
|
|
14
14
|
];
|
|
15
15
|
export function serverURLFromOptions(options) {
|
|
16
16
|
let serverURL = options.serverURL;
|
|
@@ -28,8 +28,8 @@ export function serverURLFromOptions(options) {
|
|
|
28
28
|
export const SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "1.1.0",
|
|
31
|
-
sdkVersion: "0.1.
|
|
31
|
+
sdkVersion: "0.1.2",
|
|
32
32
|
genVersion: "2.911.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.1.2 2.911.0 1.1.0 openapi",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/esm/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,gCAAgC;CACxB,CAAC;AA0BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB,EAAc;IACpE,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,sDAAsD;CACzD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { User } from "./user.js";
|
|
5
|
+
export type Comment = {
|
|
6
|
+
id: number;
|
|
7
|
+
postId: number;
|
|
8
|
+
user: User;
|
|
9
|
+
content: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const Comment$inboundSchema: z.ZodMiniType<Comment, unknown>;
|
|
14
|
+
export declare function commentFromJSON(jsonString: string): SafeParseResult<Comment, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAMhE,CAAC;AAEH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 31da50e38c51
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { User$inboundSchema } from "./user.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const Comment$inboundSchema = z.object({
|
|
11
|
+
id: types.number(),
|
|
12
|
+
postId: types.number(),
|
|
13
|
+
user: User$inboundSchema,
|
|
14
|
+
content: types.string(),
|
|
15
|
+
createdAt: types.date(),
|
|
16
|
+
});
|
|
17
|
+
export function commentFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => Comment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Comment' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.js","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAoC,CAAC,CAAC,MAAM,CAAC;IAC7E,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAC7B,UAAkB,EAC4B;IAC9C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type CreateCommentRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* The textual content of the comment.
|
|
5
|
+
*/
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type CreateCommentRequest$Outbound = {
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const CreateCommentRequest$outboundSchema: z.ZodMiniType<CreateCommentRequest$Outbound, CreateCommentRequest>;
|
|
14
|
+
export declare function createCommentRequestToJSON(createCommentRequest: CreateCommentRequest): string;
|
|
15
|
+
//# sourceMappingURL=create-comment-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment-request.d.ts","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1281f847c1db
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const CreateCommentRequest$outboundSchema = z.object({
|
|
8
|
+
content: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export function createCommentRequestToJSON(createCommentRequest) {
|
|
11
|
+
return JSON.stringify(CreateCommentRequest$outboundSchema.parse(createCommentRequest));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=create-comment-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment-request.js","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAcjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
export type FollowerCountResponse = {
|
|
5
|
+
count: number;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const FollowerCountResponse$inboundSchema: z.ZodMiniType<FollowerCountResponse, unknown>;
|
|
9
|
+
export declare function followerCountResponseFromJSON(jsonString: string): SafeParseResult<FollowerCountResponse, SDKValidationError>;
|
|
10
|
+
//# sourceMappingURL=follower-count-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follower-count-response.d.ts","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,qBAAqB,EACrB,OAAO,CAGP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b61cb4711504
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const FollowerCountResponse$inboundSchema = z.object({
|
|
10
|
+
count: types.number(),
|
|
11
|
+
});
|
|
12
|
+
export function followerCountResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => FollowerCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FollowerCountResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=follower-count-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follower-count-response.js","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAOhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB,EAC0C;IAC5D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AAAA,CACH"}
|
package/esm/models/index.d.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
export * from "./asset-declaration.js";
|
|
2
2
|
export * from "./asset-processing-callback-request.js";
|
|
3
3
|
export * from "./collection.js";
|
|
4
|
+
export * from "./comment.js";
|
|
4
5
|
export * from "./conversation.js";
|
|
6
|
+
export * from "./create-comment-request.js";
|
|
5
7
|
export * from "./create-post-request.js";
|
|
6
8
|
export * from "./create-post-response.js";
|
|
9
|
+
export * from "./follower-count-response.js";
|
|
7
10
|
export * from "./login-request.js";
|
|
11
|
+
export * from "./mark-notifications-read-request.js";
|
|
8
12
|
export * from "./media-asset.js";
|
|
9
13
|
export * from "./message.js";
|
|
14
|
+
export * from "./notification.js";
|
|
15
|
+
export * from "./paginated-comments-response.js";
|
|
16
|
+
export * from "./paginated-followers-response.js";
|
|
17
|
+
export * from "./paginated-likes-response.js";
|
|
18
|
+
export * from "./paginated-notifications-response.js";
|
|
10
19
|
export * from "./paginated-posts-response.js";
|
|
11
20
|
export * from "./post.js";
|
|
12
21
|
export * from "./profile-media-confirm-request.js";
|
|
@@ -15,6 +24,7 @@ export * from "./profile-media-upload-response.js";
|
|
|
15
24
|
export * from "./register-request.js";
|
|
16
25
|
export * from "./security.js";
|
|
17
26
|
export * from "./send-message-request.js";
|
|
27
|
+
export * from "./unread-count-response.js";
|
|
18
28
|
export * from "./update-post-request.js";
|
|
19
29
|
export * from "./update-profile-request.js";
|
|
20
30
|
export * from "./upload-slot.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
package/esm/models/index.js
CHANGED
|
@@ -5,12 +5,21 @@
|
|
|
5
5
|
export * from "./asset-declaration.js";
|
|
6
6
|
export * from "./asset-processing-callback-request.js";
|
|
7
7
|
export * from "./collection.js";
|
|
8
|
+
export * from "./comment.js";
|
|
8
9
|
export * from "./conversation.js";
|
|
10
|
+
export * from "./create-comment-request.js";
|
|
9
11
|
export * from "./create-post-request.js";
|
|
10
12
|
export * from "./create-post-response.js";
|
|
13
|
+
export * from "./follower-count-response.js";
|
|
11
14
|
export * from "./login-request.js";
|
|
15
|
+
export * from "./mark-notifications-read-request.js";
|
|
12
16
|
export * from "./media-asset.js";
|
|
13
17
|
export * from "./message.js";
|
|
18
|
+
export * from "./notification.js";
|
|
19
|
+
export * from "./paginated-comments-response.js";
|
|
20
|
+
export * from "./paginated-followers-response.js";
|
|
21
|
+
export * from "./paginated-likes-response.js";
|
|
22
|
+
export * from "./paginated-notifications-response.js";
|
|
14
23
|
export * from "./paginated-posts-response.js";
|
|
15
24
|
export * from "./post.js";
|
|
16
25
|
export * from "./profile-media-confirm-request.js";
|
|
@@ -19,6 +28,7 @@ export * from "./profile-media-upload-response.js";
|
|
|
19
28
|
export * from "./register-request.js";
|
|
20
29
|
export * from "./security.js";
|
|
21
30
|
export * from "./send-message-request.js";
|
|
31
|
+
export * from "./unread-count-response.js";
|
|
22
32
|
export * from "./update-post-request.js";
|
|
23
33
|
export * from "./update-profile-request.js";
|
|
24
34
|
export * from "./upload-slot.js";
|
package/esm/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type MarkNotificationsReadRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Specific notification IDs to mark as read. If empty/omitted and markAll is true, marks all as read.
|
|
5
|
+
*/
|
|
6
|
+
notificationIds?: Array<number> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* If true, marks all notifications for the user as read. If false, only marks the specified notificationIds.
|
|
9
|
+
*/
|
|
10
|
+
markAll?: boolean | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type MarkNotificationsReadRequest$Outbound = {
|
|
14
|
+
notificationIds?: Array<number> | undefined;
|
|
15
|
+
markAll: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const MarkNotificationsReadRequest$outboundSchema: z.ZodMiniType<MarkNotificationsReadRequest$Outbound, MarkNotificationsReadRequest>;
|
|
19
|
+
export declare function markNotificationsReadRequestToJSON(markNotificationsReadRequest: MarkNotificationsReadRequest): string;
|
|
20
|
+
//# sourceMappingURL=mark-notifications-read-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-notifications-read-request.d.ts","sourceRoot":"","sources":["../../src/models/mark-notifications-read-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,WAAW,CACrE,qCAAqC,EACrC,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b985d3fe8187
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const MarkNotificationsReadRequest$outboundSchema = z.object({
|
|
8
|
+
notificationIds: z.optional(z.array(z.int())),
|
|
9
|
+
markAll: z._default(z.boolean(), false),
|
|
10
|
+
});
|
|
11
|
+
export function markNotificationsReadRequestToJSON(markNotificationsReadRequest) {
|
|
12
|
+
return JSON.stringify(MarkNotificationsReadRequest$outboundSchema.parse(markNotificationsReadRequest));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=mark-notifications-read-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-notifications-read-request.js","sourceRoot":"","sources":["../../src/models/mark-notifications-read-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAmBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAGpD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D,EAClD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
import { User } from "./user.js";
|
|
6
|
+
export declare const ActivityType: {
|
|
7
|
+
readonly Like: "LIKE";
|
|
8
|
+
readonly Comment: "COMMENT";
|
|
9
|
+
readonly ListAddition: "LIST_ADDITION";
|
|
10
|
+
readonly NewFollower: "NEW_FOLLOWER";
|
|
11
|
+
};
|
|
12
|
+
export type ActivityType = OpenEnum<typeof ActivityType>;
|
|
13
|
+
export type Notification = {
|
|
14
|
+
id: number;
|
|
15
|
+
recipientId: number;
|
|
16
|
+
sender: User;
|
|
17
|
+
activityType: ActivityType;
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the post, comment, list, or subscription associated with the activity.
|
|
20
|
+
*/
|
|
21
|
+
sourceId?: number | null | undefined;
|
|
22
|
+
isRead: boolean;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ActivityType$inboundSchema: z.ZodMiniType<ActivityType, unknown>;
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const Notification$inboundSchema: z.ZodMiniType<Notification, unknown>;
|
|
29
|
+
export declare function notificationFromJSON(jsonString: string): SafeParseResult<Notification, SDKValidationError>;
|
|
30
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/models/notification.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,IAAI,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,EAAE,OAAO,CACrC,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CAAC,YAAY,EAAE,OAAO,CASxE,CAAC;AAEL,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e9cd3c32fa84
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { User$inboundSchema } from "./user.js";
|
|
10
|
+
export const ActivityType = {
|
|
11
|
+
Like: "LIKE",
|
|
12
|
+
Comment: "COMMENT",
|
|
13
|
+
ListAddition: "LIST_ADDITION",
|
|
14
|
+
NewFollower: "NEW_FOLLOWER",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ActivityType$inboundSchema = openEnums.inboundSchema(ActivityType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const Notification$inboundSchema = z.object({
|
|
20
|
+
id: types.number(),
|
|
21
|
+
recipientId: types.number(),
|
|
22
|
+
sender: User$inboundSchema,
|
|
23
|
+
activityType: ActivityType$inboundSchema,
|
|
24
|
+
sourceId: z.optional(z.nullable(types.number())),
|
|
25
|
+
isRead: types.boolean(),
|
|
26
|
+
createdAt: types.date(),
|
|
27
|
+
});
|
|
28
|
+
export function notificationFromJSON(jsonString) {
|
|
29
|
+
return safeParse(jsonString, (x) => Notification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Notification' from JSON`);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type CreateCommentRequest = {
|
|
4
|
+
postId: number;
|
|
5
|
+
body: models.CreateCommentRequest;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export type CreateCommentRequest$Outbound = {
|
|
9
|
+
postId: number;
|
|
10
|
+
body: models.CreateCommentRequest$Outbound;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const CreateCommentRequest$outboundSchema: z.ZodMiniType<CreateCommentRequest$Outbound, CreateCommentRequest>;
|
|
14
|
+
export declare function createCommentRequestToJSON(createCommentRequest: CreateCommentRequest): string;
|
|
15
|
+
//# sourceMappingURL=create-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.d.ts","sourceRoot":"","sources":["../../../src/models/operations/create-comment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,6BAA6B,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fcbe666d71bb
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as models from "../index.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const CreateCommentRequest$outboundSchema = z.object({
|
|
9
|
+
postId: z.int(),
|
|
10
|
+
body: models.CreateCommentRequest$outboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function createCommentRequestToJSON(createCommentRequest) {
|
|
13
|
+
return JSON.stringify(CreateCommentRequest$outboundSchema.parse(createCommentRequest));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=create-comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment.js","sourceRoot":"","sources":["../../../src/models/operations/create-comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAatC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,IAAI,EAAE,MAAM,CAAC,mCAAmC;CACjD,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type DeleteCommentRequest = {
|
|
3
|
+
postId: number;
|
|
4
|
+
commentId: number;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export type DeleteCommentRequest$Outbound = {
|
|
8
|
+
postId: number;
|
|
9
|
+
commentId: number;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const DeleteCommentRequest$outboundSchema: z.ZodMiniType<DeleteCommentRequest$Outbound, DeleteCommentRequest>;
|
|
13
|
+
export declare function deleteCommentRequestToJSON(deleteCommentRequest: DeleteCommentRequest): string;
|
|
14
|
+
//# sourceMappingURL=delete-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-comment.d.ts","sourceRoot":"","sources":["../../../src/models/operations/delete-comment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b335b32bc098
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const DeleteCommentRequest$outboundSchema = z.object({
|
|
8
|
+
postId: z.int(),
|
|
9
|
+
commentId: z.int(),
|
|
10
|
+
});
|
|
11
|
+
export function deleteCommentRequestToJSON(deleteCommentRequest) {
|
|
12
|
+
return JSON.stringify(DeleteCommentRequest$outboundSchema.parse(deleteCommentRequest));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=delete-comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-comment.js","sourceRoot":"","sources":["../../../src/models/operations/delete-comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAajC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type GetFeaturedCreatorsRequest = {
|
|
3
|
+
limit?: number | undefined;
|
|
4
|
+
};
|
|
5
|
+
/** @internal */
|
|
6
|
+
export type GetFeaturedCreatorsRequest$Outbound = {
|
|
7
|
+
limit: number;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const GetFeaturedCreatorsRequest$outboundSchema: z.ZodMiniType<GetFeaturedCreatorsRequest$Outbound, GetFeaturedCreatorsRequest>;
|
|
11
|
+
export declare function getFeaturedCreatorsRequestToJSON(getFeaturedCreatorsRequest: GetFeaturedCreatorsRequest): string;
|
|
12
|
+
//# sourceMappingURL=get-featured-creators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-featured-creators.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-featured-creators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,mCAAmC,EACnC,0BAA0B,CAG1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f8f0efa3bb43
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const GetFeaturedCreatorsRequest$outboundSchema = z.object({
|
|
8
|
+
limit: z._default(z.int(), 10),
|
|
9
|
+
});
|
|
10
|
+
export function getFeaturedCreatorsRequestToJSON(getFeaturedCreatorsRequest) {
|
|
11
|
+
return JSON.stringify(GetFeaturedCreatorsRequest$outboundSchema.parse(getFeaturedCreatorsRequest));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=get-featured-creators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-featured-creators.js","sourceRoot":"","sources":["../../../src/models/operations/get-featured-creators.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAWjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAGlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD,EAC9C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type GetFollowersRequest = {
|
|
3
|
+
limit?: number | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* Opaque cursor pointing to the last subscription timestamp/ID for pagination
|
|
6
|
+
*/
|
|
7
|
+
cursor?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type GetFollowersRequest$Outbound = {
|
|
11
|
+
limit: number;
|
|
12
|
+
cursor?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const GetFollowersRequest$outboundSchema: z.ZodMiniType<GetFollowersRequest$Outbound, GetFollowersRequest>;
|
|
16
|
+
export declare function getFollowersRequestToJSON(getFollowersRequest: GetFollowersRequest): string;
|
|
17
|
+
//# sourceMappingURL=get-followers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-followers.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-followers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,4BAA4B,EAC5B,mBAAmB,CAInB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|