@aurora-interactive/fankare-api-sdk 0.0.2 → 0.0.3
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 +20 -20
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts +2 -5
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -1
- package/esm/funcs/creator-timelines-get-creator-posts.js +7 -8
- package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -1
- package/esm/funcs/custom-collections-add-collection-member.d.ts +14 -0
- package/esm/funcs/custom-collections-add-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-add-collection-member.js +88 -0
- package/esm/funcs/custom-collections-add-collection-member.js.map +1 -0
- package/esm/funcs/custom-collections-create-collection.d.ts +15 -0
- package/esm/funcs/custom-collections-create-collection.d.ts.map +1 -0
- package/esm/funcs/custom-collections-create-collection.js +79 -0
- package/esm/funcs/custom-collections-create-collection.js.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.js +87 -0
- package/esm/funcs/custom-collections-get-collection-members.js.map +1 -0
- package/esm/funcs/custom-collections-get-collections.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collections.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collections.js +68 -0
- package/esm/funcs/custom-collections-get-collections.js.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts +13 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.js +91 -0
- package/esm/funcs/custom-collections-remove-collection-member.js.map +1 -0
- package/esm/funcs/direct-messaging-get-conversations.d.ts +0 -3
- package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -1
- package/esm/funcs/direct-messaging-get-conversations.js +0 -3
- package/esm/funcs/direct-messaging-get-conversations.js.map +1 -1
- package/esm/funcs/direct-messaging-get-message-history.d.ts +3 -3
- package/esm/funcs/direct-messaging-get-message-history.d.ts.map +1 -1
- package/esm/funcs/direct-messaging-get-message-history.js +13 -7
- package/esm/funcs/direct-messaging-get-message-history.js.map +1 -1
- package/esm/funcs/posts-create-post.d.ts +0 -3
- package/esm/funcs/posts-create-post.d.ts.map +1 -1
- package/esm/funcs/posts-create-post.js +0 -3
- package/esm/funcs/posts-create-post.js.map +1 -1
- package/esm/funcs/posts-get-collection-feed.d.ts +14 -0
- package/esm/funcs/posts-get-collection-feed.d.ts.map +1 -0
- package/esm/funcs/posts-get-collection-feed.js +94 -0
- package/esm/funcs/posts-get-collection-feed.js.map +1 -0
- package/esm/funcs/posts-get-feed.d.ts +3 -6
- package/esm/funcs/posts-get-feed.d.ts.map +1 -1
- package/esm/funcs/posts-get-feed.js +3 -5
- package/esm/funcs/posts-get-feed.js.map +1 -1
- package/esm/funcs/user-discovery-get-following.d.ts +0 -3
- package/esm/funcs/user-discovery-get-following.d.ts.map +1 -1
- package/esm/funcs/user-discovery-get-following.js +0 -3
- package/esm/funcs/user-discovery-get-following.js.map +1 -1
- package/esm/funcs/user-discovery-get-user-profile.d.ts +0 -3
- package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -1
- package/esm/funcs/user-discovery-get-user-profile.js +0 -3
- package/esm/funcs/user-discovery-get-user-profile.js.map +1 -1
- package/esm/funcs/user-discovery-search-users.d.ts +0 -3
- package/esm/funcs/user-discovery-search-users.d.ts.map +1 -1
- package/esm/funcs/user-discovery-search-users.js +0 -3
- package/esm/funcs/user-discovery-search-users.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/collection.d.ts +12 -0
- package/esm/models/collection.d.ts.map +1 -0
- package/esm/models/collection.js +18 -0
- package/esm/models/collection.js.map +1 -0
- package/esm/models/conversation.d.ts +0 -3
- package/esm/models/conversation.d.ts.map +1 -1
- package/esm/models/conversation.js.map +1 -1
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/operations/add-collection-member.d.ts +24 -0
- package/esm/models/operations/add-collection-member.d.ts.map +1 -0
- package/esm/models/operations/add-collection-member.js +21 -0
- package/esm/models/operations/add-collection-member.js.map +1 -0
- package/esm/models/operations/create-collection.d.ts +12 -0
- package/esm/models/operations/create-collection.d.ts.map +1 -0
- package/esm/models/operations/create-collection.js +13 -0
- package/esm/models/operations/create-collection.js.map +1 -0
- package/esm/models/operations/create-post.d.ts +1 -1
- package/esm/models/operations/get-collection-feed.d.ts +19 -0
- package/esm/models/operations/get-collection-feed.d.ts.map +1 -0
- package/esm/models/operations/get-collection-feed.js +15 -0
- package/esm/models/operations/get-collection-feed.js.map +1 -0
- package/esm/models/operations/get-collection-members.d.ts +12 -0
- package/esm/models/operations/get-collection-members.d.ts.map +1 -0
- package/esm/models/operations/get-collection-members.js +13 -0
- package/esm/models/operations/get-collection-members.js.map +1 -0
- package/esm/models/operations/get-creator-posts.d.ts +5 -0
- package/esm/models/operations/get-creator-posts.d.ts.map +1 -1
- package/esm/models/operations/get-creator-posts.js +1 -0
- package/esm/models/operations/get-creator-posts.js.map +1 -1
- package/esm/models/operations/get-feed.d.ts +3 -13
- package/esm/models/operations/get-feed.d.ts.map +1 -1
- package/esm/models/operations/get-feed.js +0 -11
- package/esm/models/operations/get-feed.js.map +1 -1
- package/esm/models/operations/get-message-history.d.ts +20 -0
- package/esm/models/operations/get-message-history.d.ts.map +1 -1
- package/esm/models/operations/get-message-history.js +13 -0
- package/esm/models/operations/get-message-history.js.map +1 -1
- package/esm/models/operations/index.d.ts +5 -5
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +5 -5
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/remove-collection-member.d.ts +14 -0
- package/esm/models/operations/remove-collection-member.d.ts.map +1 -0
- package/esm/models/operations/remove-collection-member.js +14 -0
- package/esm/models/operations/remove-collection-member.js.map +1 -0
- package/esm/models/paginated-posts-response.d.ts +15 -0
- package/esm/models/paginated-posts-response.d.ts.map +1 -0
- package/esm/models/paginated-posts-response.js +17 -0
- package/esm/models/paginated-posts-response.js.map +1 -0
- package/esm/sdk/creator-timelines.d.ts +2 -5
- package/esm/sdk/creator-timelines.d.ts.map +1 -1
- package/esm/sdk/creator-timelines.js +3 -6
- package/esm/sdk/creator-timelines.js.map +1 -1
- package/esm/sdk/custom-collections.d.ts +26 -0
- package/esm/sdk/custom-collections.d.ts.map +1 -0
- package/esm/sdk/custom-collections.js +44 -0
- package/esm/sdk/custom-collections.js.map +1 -0
- package/esm/sdk/direct-messaging.d.ts +3 -5
- package/esm/sdk/direct-messaging.d.ts.map +1 -1
- package/esm/sdk/direct-messaging.js +3 -6
- package/esm/sdk/direct-messaging.js.map +1 -1
- package/esm/sdk/posts.d.ts +4 -10
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +5 -11
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/user-discovery.d.ts +0 -9
- package/esm/sdk/user-discovery.d.ts.map +1 -1
- package/esm/sdk/user-discovery.js +0 -9
- package/esm/sdk/user-discovery.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/creator-timelines-get-creator-posts.ts +10 -8
- package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts} +15 -14
- package/src/funcs/{custom-lists-create-list.ts → custom-collections-create-collection.ts} +13 -12
- package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts} +13 -12
- package/src/funcs/{custom-lists-get-lists.ts → custom-collections-get-collections.ts} +9 -9
- package/src/funcs/{custom-lists-remove-list-member.ts → custom-collections-remove-collection-member.ts} +12 -12
- package/src/funcs/direct-messaging-get-conversations.ts +0 -3
- package/src/funcs/direct-messaging-get-message-history.ts +20 -7
- package/src/funcs/posts-create-post.ts +0 -3
- package/src/funcs/{posts-get-list-feed.ts → posts-get-collection-feed.ts} +22 -16
- package/src/funcs/posts-get-feed.ts +6 -8
- package/src/funcs/user-discovery-get-following.ts +0 -3
- package/src/funcs/user-discovery-get-user-profile.ts +0 -3
- package/src/funcs/user-discovery-search-users.ts +0 -3
- package/src/lib/config.ts +2 -2
- package/src/models/{custom-list.ts → collection.ts} +7 -7
- package/src/models/conversation.ts +0 -3
- package/src/models/index.ts +2 -1
- package/src/models/operations/add-collection-member.ts +61 -0
- package/src/models/operations/create-collection.ts +31 -0
- package/src/models/operations/create-post.ts +1 -1
- package/src/models/operations/get-collection-feed.ts +40 -0
- package/src/models/operations/get-collection-members.ts +33 -0
- package/src/models/operations/get-creator-posts.ts +6 -0
- package/src/models/operations/get-feed.ts +3 -32
- package/src/models/operations/get-message-history.ts +41 -0
- package/src/models/operations/index.ts +5 -5
- package/src/models/operations/remove-collection-member.ts +36 -0
- package/src/models/paginated-posts-response.ts +38 -0
- package/src/sdk/creator-timelines.ts +4 -5
- package/src/sdk/custom-collections.ts +88 -0
- package/src/sdk/direct-messaging.ts +7 -5
- package/src/sdk/posts.ts +11 -15
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/user-discovery.ts +0 -9
- package/src/models/operations/add-list-member.ts +0 -59
- package/src/models/operations/create-list.ts +0 -31
- package/src/models/operations/get-list-feed.ts +0 -34
- package/src/models/operations/get-list-members.ts +0 -31
- package/src/models/operations/remove-list-member.ts +0 -34
- package/src/sdk/custom-lists.ts +0 -88
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
* @generated-id: 0d9ffaf774d2
|
|
4
4
|
*/
|
|
5
|
-
export * from "./add-
|
|
6
|
-
export * from "./create-
|
|
5
|
+
export * from "./add-collection-member.js";
|
|
6
|
+
export * from "./create-collection.js";
|
|
7
7
|
export * from "./create-post.js";
|
|
8
|
+
export * from "./get-collection-feed.js";
|
|
9
|
+
export * from "./get-collection-members.js";
|
|
8
10
|
export * from "./get-creator-posts.js";
|
|
9
11
|
export * from "./get-feed.js";
|
|
10
|
-
export * from "./get-list-feed.js";
|
|
11
|
-
export * from "./get-list-members.js";
|
|
12
12
|
export * from "./get-message-history.js";
|
|
13
13
|
export * from "./get-user-profile.js";
|
|
14
14
|
export * from "./login-user.js";
|
|
15
|
-
export * from "./remove-
|
|
15
|
+
export * from "./remove-collection-member.js";
|
|
16
16
|
export * from "./search-users.js";
|
|
17
17
|
export * from "./send-message.js";
|
|
18
18
|
export * from "./subscribe-to-user.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/operations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/operations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type RemoveCollectionMemberRequest = {
|
|
3
|
+
collectionId: number;
|
|
4
|
+
userId: number;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export type RemoveCollectionMemberRequest$Outbound = {
|
|
8
|
+
collectionId: number;
|
|
9
|
+
userId: number;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const RemoveCollectionMemberRequest$outboundSchema: z.ZodMiniType<RemoveCollectionMemberRequest$Outbound, RemoveCollectionMemberRequest>;
|
|
13
|
+
export declare function removeCollectionMemberRequestToJSON(removeCollectionMemberRequest: RemoveCollectionMemberRequest): string;
|
|
14
|
+
//# sourceMappingURL=remove-collection-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-collection-member.d.ts","sourceRoot":"","sources":["../../../src/models/operations/remove-collection-member.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,WAAW,CACtE,sCAAsC,EACtC,6BAA6B,CAI7B,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 05d660fe0d9c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const RemoveCollectionMemberRequest$outboundSchema = z.object({
|
|
8
|
+
collectionId: z.int(),
|
|
9
|
+
userId: z.int(),
|
|
10
|
+
});
|
|
11
|
+
export function removeCollectionMemberRequestToJSON(removeCollectionMemberRequest) {
|
|
12
|
+
return JSON.stringify(RemoveCollectionMemberRequest$outboundSchema.parse(removeCollectionMemberRequest));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=remove-collection-member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-collection-member.js","sourceRoot":"","sources":["../../../src/models/operations/remove-collection-member.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAajC,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAGrD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC,CACjD,6BAA4D,EACpD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,4CAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AAAA,CACH"}
|
|
@@ -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 { Post } from "./post.js";
|
|
5
|
+
export type PaginatedPostsResponse = {
|
|
6
|
+
items?: Array<Post> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Provide this value to the next request's cursor query parameter to fetch the next block.
|
|
9
|
+
*/
|
|
10
|
+
nextCursor?: string | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const PaginatedPostsResponse$inboundSchema: z.ZodMiniType<PaginatedPostsResponse, unknown>;
|
|
14
|
+
export declare function paginatedPostsResponseFromJSON(jsonString: string): SafeParseResult<PaginatedPostsResponse, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=paginated-posts-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginated-posts-response.d.ts","sourceRoot":"","sources":["../../src/models/paginated-posts-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;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,sBAAsB,EACtB,OAAO,CAIP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4d6d6852ae23
|
|
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 { Post$inboundSchema } from "./post.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const PaginatedPostsResponse$inboundSchema = z.object({
|
|
11
|
+
items: types.optional(z.array(Post$inboundSchema)),
|
|
12
|
+
nextCursor: z.optional(z.nullable(types.string())),
|
|
13
|
+
});
|
|
14
|
+
export function paginatedPostsResponseFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => PaginatedPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaginatedPostsResponse' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=paginated-posts-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginated-posts-response.js","sourceRoot":"","sources":["../../src/models/paginated-posts-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;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAClD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB,EAC2C;IAC7D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AAAA,CACH"}
|
|
@@ -2,11 +2,8 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
export declare class CreatorTimelines extends ClientSDK {
|
|
4
4
|
/**
|
|
5
|
-
* Get a specific creator's timeline
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Retrieves individual posts uploaded strictly by the requested user account.
|
|
5
|
+
* Get a specific creator's timeline with pagination
|
|
9
6
|
*/
|
|
10
|
-
getCreatorPosts(userId: number, limit?: number | undefined, options?: RequestOptions): Promise<
|
|
7
|
+
getCreatorPosts(userId: number, limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<models.PaginatedPostsResponse>;
|
|
11
8
|
}
|
|
12
9
|
//# sourceMappingURL=creator-timelines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creator-timelines.d.ts","sourceRoot":"","sources":["../../src/sdk/creator-timelines.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C
|
|
1
|
+
{"version":3,"file":"creator-timelines.d.ts","sourceRoot":"","sources":["../../src/sdk/creator-timelines.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;OAEG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAQxC;CACF"}
|
|
@@ -7,13 +7,10 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
8
|
export class CreatorTimelines extends ClientSDK {
|
|
9
9
|
/**
|
|
10
|
-
* Get a specific creator's timeline
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Retrieves individual posts uploaded strictly by the requested user account.
|
|
10
|
+
* Get a specific creator's timeline with pagination
|
|
14
11
|
*/
|
|
15
|
-
async getCreatorPosts(userId, limit, options) {
|
|
16
|
-
return unwrapAsync(creatorTimelinesGetCreatorPosts(this, userId, limit, options));
|
|
12
|
+
async getCreatorPosts(userId, limit, cursor, options) {
|
|
13
|
+
return unwrapAsync(creatorTimelinesGetCreatorPosts(this, userId, limit, cursor, options));
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
16
|
//# sourceMappingURL=creator-timelines.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creator-timelines.js","sourceRoot":"","sources":["../../src/sdk/creator-timelines.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C
|
|
1
|
+
{"version":3,"file":"creator-timelines.js","sourceRoot":"","sources":["../../src/sdk/creator-timelines.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C;;OAEG;IACH,KAAK,CAAC,eAAe,CACnB,MAAc,EACd,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class CustomCollections extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Get all collections created by the user
|
|
7
|
+
*/
|
|
8
|
+
getCollections(options?: RequestOptions): Promise<Array<models.Collection>>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new custom grouping collection
|
|
11
|
+
*/
|
|
12
|
+
createCollection(request: operations.CreateCollectionRequest, options?: RequestOptions): Promise<models.Collection>;
|
|
13
|
+
/**
|
|
14
|
+
* Get all members belonging to a custom collection
|
|
15
|
+
*/
|
|
16
|
+
getCollectionMembers(collectionId: number, options?: RequestOptions): Promise<Array<models.User>>;
|
|
17
|
+
/**
|
|
18
|
+
* Add a user to a custom collection
|
|
19
|
+
*/
|
|
20
|
+
addCollectionMember(collectionId: number, body: operations.AddCollectionMemberRequestBody, options?: RequestOptions): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Remove a user from a custom collection
|
|
23
|
+
*/
|
|
24
|
+
removeCollectionMember(collectionId: number, userId: number, options?: RequestOptions): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=custom-collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-collections.d.ts","sourceRoot":"","sources":["../../src/sdk/custom-collections.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C;;OAEG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAKnC;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAM5B;IAED;;OAEG;IACG,oBAAoB,CACxB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAM7B;IAED;;OAEG;IACG,mBAAmB,CACvB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,CAAC,8BAA8B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAOf;IAED;;OAEG;IACG,sBAAsB,CAC1B,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAOf;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 26de8c8c4014
|
|
4
|
+
*/
|
|
5
|
+
import { customCollectionsAddCollectionMember } from "../funcs/custom-collections-add-collection-member.js";
|
|
6
|
+
import { customCollectionsCreateCollection } from "../funcs/custom-collections-create-collection.js";
|
|
7
|
+
import { customCollectionsGetCollectionMembers } from "../funcs/custom-collections-get-collection-members.js";
|
|
8
|
+
import { customCollectionsGetCollections } from "../funcs/custom-collections-get-collections.js";
|
|
9
|
+
import { customCollectionsRemoveCollectionMember } from "../funcs/custom-collections-remove-collection-member.js";
|
|
10
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
export class CustomCollections extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Get all collections created by the user
|
|
15
|
+
*/
|
|
16
|
+
async getCollections(options) {
|
|
17
|
+
return unwrapAsync(customCollectionsGetCollections(this, options));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a new custom grouping collection
|
|
21
|
+
*/
|
|
22
|
+
async createCollection(request, options) {
|
|
23
|
+
return unwrapAsync(customCollectionsCreateCollection(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get all members belonging to a custom collection
|
|
27
|
+
*/
|
|
28
|
+
async getCollectionMembers(collectionId, options) {
|
|
29
|
+
return unwrapAsync(customCollectionsGetCollectionMembers(this, collectionId, options));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Add a user to a custom collection
|
|
33
|
+
*/
|
|
34
|
+
async addCollectionMember(collectionId, body, options) {
|
|
35
|
+
return unwrapAsync(customCollectionsAddCollectionMember(this, collectionId, body, options));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Remove a user from a custom collection
|
|
39
|
+
*/
|
|
40
|
+
async removeCollectionMember(collectionId, userId, options) {
|
|
41
|
+
return unwrapAsync(customCollectionsRemoveCollectionMember(this, collectionId, userId, options));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=custom-collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-collections.js","sourceRoot":"","sources":["../../src/sdk/custom-collections.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oCAAoC,EAAE,MAAM,sDAAsD,CAAC;AAC5G,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AACrG,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAC9G,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,uCAAuC,EAAE,MAAM,yDAAyD,CAAC;AAClH,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,OAAwB,EACW;QACnC,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB,EACI;QAC5B,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,YAAoB,EACpB,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,YAAY,EACZ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,YAAoB,EACpB,IAA+C,EAC/C,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,oCAAoC,CACrD,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAC1B,YAAoB,EACpB,MAAc,EACd,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,uCAAuC,CACxD,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
3
4
|
export declare class DirectMessaging extends ClientSDK {
|
|
4
5
|
/**
|
|
5
6
|
* Fetch active DM threads
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Gets recent conversation summary records containing index context of opposing communication profiles.
|
|
9
7
|
*/
|
|
10
8
|
getConversations(options?: RequestOptions): Promise<Array<models.Conversation>>;
|
|
11
9
|
/**
|
|
12
|
-
* Load message history with a specific
|
|
10
|
+
* Load message history with a specific user with pagination
|
|
13
11
|
*/
|
|
14
|
-
getMessageHistory(userId: number, options?: RequestOptions): Promise<
|
|
12
|
+
getMessageHistory(userId: number, limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<operations.GetMessageHistoryResponse>;
|
|
15
13
|
/**
|
|
16
14
|
* Send a direct text message
|
|
17
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct-messaging.d.ts","sourceRoot":"","sources":["../../src/sdk/direct-messaging.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"direct-messaging.d.ts","sourceRoot":"","sources":["../../src/sdk/direct-messaging.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,eAAgB,SAAQ,SAAS;IAC5C;;OAEG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAKrC;IAED;;OAEG;IACG,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAQ/C;IAED;;OAEG;IACG,WAAW,CACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,CAAC,kBAAkB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAOzB;CACF"}
|
|
@@ -10,18 +10,15 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
export class DirectMessaging extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* Fetch active DM threads
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Gets recent conversation summary records containing index context of opposing communication profiles.
|
|
16
13
|
*/
|
|
17
14
|
async getConversations(options) {
|
|
18
15
|
return unwrapAsync(directMessagingGetConversations(this, options));
|
|
19
16
|
}
|
|
20
17
|
/**
|
|
21
|
-
* Load message history with a specific
|
|
18
|
+
* Load message history with a specific user with pagination
|
|
22
19
|
*/
|
|
23
|
-
async getMessageHistory(userId, options) {
|
|
24
|
-
return unwrapAsync(directMessagingGetMessageHistory(this, userId, options));
|
|
20
|
+
async getMessageHistory(userId, limit, cursor, options) {
|
|
21
|
+
return unwrapAsync(directMessagingGetMessageHistory(this, userId, limit, cursor, options));
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
27
24
|
* Send a direct text message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct-messaging.js","sourceRoot":"","sources":["../../src/sdk/direct-messaging.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"direct-messaging.js","sourceRoot":"","sources":["../../src/sdk/direct-messaging.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAwB,EACa;QACrC,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,MAAc,EACd,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EACuB;QAC/C,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,MAAc,EACd,IAA+B,EAC/B,OAAwB,EACC;QACzB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/esm/sdk/posts.d.ts
CHANGED
|
@@ -3,22 +3,16 @@ import * as models from "../models/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Posts extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* Get the consolidated timeline feed
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Retrieves posts from users the current authenticated user is subscribed to.
|
|
6
|
+
* Get the consolidated timeline feed with pagination
|
|
10
7
|
*/
|
|
11
|
-
getFeed(limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<
|
|
8
|
+
getFeed(limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<models.PaginatedPostsResponse>;
|
|
12
9
|
/**
|
|
13
10
|
* Create a post blueprint requesting batch upload slots
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Accepts a list of metadata parts for grids/carousels and responds with multiple presigned destination configurations mapped out of SeaweedFS routing rules.
|
|
17
11
|
*/
|
|
18
12
|
createPost(request: models.CreatePostRequest, options?: RequestOptions): Promise<operations.CreatePostResponse>;
|
|
19
13
|
/**
|
|
20
|
-
* Get a timeline filtered strictly by members of this
|
|
14
|
+
* Get a timeline filtered strictly by members of this collection with pagination
|
|
21
15
|
*/
|
|
22
|
-
|
|
16
|
+
getCollectionFeed(collectionId: number, limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): Promise<models.PaginatedPostsResponse>;
|
|
23
17
|
}
|
|
24
18
|
//# sourceMappingURL=posts.d.ts.map
|
package/esm/sdk/posts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC
|
|
1
|
+
{"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACG,OAAO,CACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAOxC;IAED;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,MAAM,CAAC,iBAAiB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAMxC;IAED;;OAEG;IACG,iBAAiB,CACrB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAQxC;CACF"}
|
package/esm/sdk/posts.js
CHANGED
|
@@ -3,34 +3,28 @@
|
|
|
3
3
|
* @generated-id: 6787631da7f6
|
|
4
4
|
*/
|
|
5
5
|
import { postsCreatePost } from "../funcs/posts-create-post.js";
|
|
6
|
+
import { postsGetCollectionFeed } from "../funcs/posts-get-collection-feed.js";
|
|
6
7
|
import { postsGetFeed } from "../funcs/posts-get-feed.js";
|
|
7
|
-
import { postsGetListFeed } from "../funcs/posts-get-list-feed.js";
|
|
8
8
|
import { ClientSDK } from "../lib/sdks.js";
|
|
9
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
10
|
export class Posts extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
* Get the consolidated timeline feed
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Retrieves posts from users the current authenticated user is subscribed to.
|
|
12
|
+
* Get the consolidated timeline feed with pagination
|
|
16
13
|
*/
|
|
17
14
|
async getFeed(limit, cursor, options) {
|
|
18
15
|
return unwrapAsync(postsGetFeed(this, limit, cursor, options));
|
|
19
16
|
}
|
|
20
17
|
/**
|
|
21
18
|
* Create a post blueprint requesting batch upload slots
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Accepts a list of metadata parts for grids/carousels and responds with multiple presigned destination configurations mapped out of SeaweedFS routing rules.
|
|
25
19
|
*/
|
|
26
20
|
async createPost(request, options) {
|
|
27
21
|
return unwrapAsync(postsCreatePost(this, request, options));
|
|
28
22
|
}
|
|
29
23
|
/**
|
|
30
|
-
* Get a timeline filtered strictly by members of this
|
|
24
|
+
* Get a timeline filtered strictly by members of this collection with pagination
|
|
31
25
|
*/
|
|
32
|
-
async
|
|
33
|
-
return unwrapAsync(
|
|
26
|
+
async getCollectionFeed(collectionId, limit, cursor, options) {
|
|
27
|
+
return unwrapAsync(postsGetCollectionFeed(this, collectionId, limit, cursor, options));
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
30
|
//# sourceMappingURL=posts.js.map
|
package/esm/sdk/posts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/sdk/posts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAiC,EACjC,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,YAAoB,EACpB,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientSDK } from "../lib/sdks.js";
|
|
2
2
|
import { Authentication } from "./authentication.js";
|
|
3
3
|
import { CreatorTimelines } from "./creator-timelines.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CustomCollections } from "./custom-collections.js";
|
|
5
5
|
import { DirectMessaging } from "./direct-messaging.js";
|
|
6
6
|
import { Posts } from "./posts.js";
|
|
7
7
|
import { Subscriptions } from "./subscriptions.js";
|
|
@@ -19,7 +19,7 @@ export declare class FankareSDK extends ClientSDK {
|
|
|
19
19
|
get posts(): Posts;
|
|
20
20
|
private _directMessaging?;
|
|
21
21
|
get directMessaging(): DirectMessaging;
|
|
22
|
-
private
|
|
23
|
-
get
|
|
22
|
+
private _customCollections?;
|
|
23
|
+
get customCollections(): CustomCollections;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=sdk.d.ts.map
|
package/esm/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,UAAW,SAAQ,SAAS;IACvC,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,IAAI,aAAa,IAAI,aAAa,CAEjC;IAED,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,IAAI,aAAa,IAAI,aAAa,CAEjC;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,gBAAgB,CAAC,CAAkB;IAC3C,IAAI,eAAe,IAAI,eAAe,CAErC;IAED,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,IAAI,iBAAiB,IAAI,iBAAiB,CAEzC;CACF"}
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { Authentication } from "./authentication.js";
|
|
7
7
|
import { CreatorTimelines } from "./creator-timelines.js";
|
|
8
|
-
import {
|
|
8
|
+
import { CustomCollections } from "./custom-collections.js";
|
|
9
9
|
import { DirectMessaging } from "./direct-messaging.js";
|
|
10
10
|
import { Posts } from "./posts.js";
|
|
11
11
|
import { Subscriptions } from "./subscriptions.js";
|
|
@@ -35,9 +35,9 @@ export class FankareSDK extends ClientSDK {
|
|
|
35
35
|
get directMessaging() {
|
|
36
36
|
return (this._directMessaging ?? (this._directMessaging = new DirectMessaging(this._options)));
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
get
|
|
40
|
-
return (this.
|
|
38
|
+
_customCollections;
|
|
39
|
+
get customCollections() {
|
|
40
|
+
return (this._customCollections ?? (this._customCollections = new CustomCollections(this._options)));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=sdk.js.map
|
package/esm/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,OAAO,UAAW,SAAQ,SAAS;IAC/B,eAAe,CAAkB;IACzC,IAAI,cAAc,GAAmB;QACnC,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACrE;IAEO,cAAc,CAAiB;IACvC,IAAI,aAAa,GAAkB;QACjC,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACnE;IAEO,cAAc,CAAiB;IACvC,IAAI,aAAa,GAAkB;QACjC,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACnE;IAEO,iBAAiB,CAAoB;IAC7C,IAAI,gBAAgB,GAAqB;QACvC,OAAO,CAAC,IAAI,CAAC,iBAAiB,KAAtB,IAAI,CAAC,iBAAiB,GAAK,IAAI,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACzE;IAEO,MAAM,CAAS;IACvB,IAAI,KAAK,GAAU;QACjB,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACnD;IAEO,gBAAgB,CAAmB;IAC3C,IAAI,eAAe,GAAoB;QACrC,OAAO,CAAC,IAAI,CAAC,gBAAgB,KAArB,IAAI,CAAC,gBAAgB,GAAK,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACvE;IAEO,kBAAkB,CAAqB;IAC/C,IAAI,iBAAiB,GAAsB;QACzC,OAAO,CAAC,IAAI,CAAC,kBAAkB,KAAvB,IAAI,CAAC,kBAAkB,GAAK,IAAI,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CAC3E;CACF"}
|
|
@@ -3,23 +3,14 @@ import * as models from "../models/index.js";
|
|
|
3
3
|
export declare class UserDiscovery extends ClientSDK {
|
|
4
4
|
/**
|
|
5
5
|
* Search global user profiles
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Queries the global database for user profiles matching a search string.
|
|
9
6
|
*/
|
|
10
7
|
searchUsers(query: string, options?: RequestOptions): Promise<Array<models.User>>;
|
|
11
8
|
/**
|
|
12
9
|
* Retrieve user profile metadata
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Fetches a user's target profile metrics including counts and media references.
|
|
16
10
|
*/
|
|
17
11
|
getUserProfile(userId: number, options?: RequestOptions): Promise<models.UserProfile>;
|
|
18
12
|
/**
|
|
19
13
|
* Get subscriptions list
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Retrieves an array of all users the current caller is subscribed to for initializing active client button states.
|
|
23
14
|
*/
|
|
24
15
|
getFollowing(options?: RequestOptions): Promise<Array<models.User>>;
|
|
25
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-discovery.d.ts","sourceRoot":"","sources":["../../src/sdk/user-discovery.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,aAAc,SAAQ,SAAS;IAC1C
|
|
1
|
+
{"version":3,"file":"user-discovery.d.ts","sourceRoot":"","sources":["../../src/sdk/user-discovery.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAM7B;IAED;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAM7B;IAED;;OAEG;IACG,YAAY,CAChB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAK7B;CACF"}
|
|
@@ -10,27 +10,18 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
export class UserDiscovery extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* Search global user profiles
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Queries the global database for user profiles matching a search string.
|
|
16
13
|
*/
|
|
17
14
|
async searchUsers(query, options) {
|
|
18
15
|
return unwrapAsync(userDiscoverySearchUsers(this, query, options));
|
|
19
16
|
}
|
|
20
17
|
/**
|
|
21
18
|
* Retrieve user profile metadata
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Fetches a user's target profile metrics including counts and media references.
|
|
25
19
|
*/
|
|
26
20
|
async getUserProfile(userId, options) {
|
|
27
21
|
return unwrapAsync(userDiscoveryGetUserProfile(this, userId, options));
|
|
28
22
|
}
|
|
29
23
|
/**
|
|
30
24
|
* Get subscriptions list
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Retrieves an array of all users the current caller is subscribed to for initializing active client button states.
|
|
34
25
|
*/
|
|
35
26
|
async getFollowing(options) {
|
|
36
27
|
return unwrapAsync(userDiscoveryGetFollowing(this, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-discovery.js","sourceRoot":"","sources":["../../src/sdk/user-discovery.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C
|
|
1
|
+
{"version":3,"file":"user-discovery.js","sourceRoot":"","sources":["../../src/sdk/user-discovery.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,KAAa,EACb,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,KAAK,EACL,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,MAAc,EACd,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,MAAM,EACN,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,19 +29,17 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
29
29
|
import { Result } from "../types/fp.js";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Get a specific creator's timeline
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Retrieves individual posts uploaded strictly by the requested user account.
|
|
32
|
+
* Get a specific creator's timeline with pagination
|
|
36
33
|
*/
|
|
37
34
|
export function creatorTimelinesGetCreatorPosts(
|
|
38
35
|
client: FankareSDKCore,
|
|
39
36
|
userId: number,
|
|
40
37
|
limit?: number | undefined,
|
|
38
|
+
cursor?: string | undefined,
|
|
41
39
|
options?: RequestOptions,
|
|
42
40
|
): APIPromise<
|
|
43
41
|
Result<
|
|
44
|
-
|
|
42
|
+
models.PaginatedPostsResponse,
|
|
45
43
|
| FankareSDKError
|
|
46
44
|
| ResponseValidationError
|
|
47
45
|
| ConnectionError
|
|
@@ -56,6 +54,7 @@ export function creatorTimelinesGetCreatorPosts(
|
|
|
56
54
|
client,
|
|
57
55
|
userId,
|
|
58
56
|
limit,
|
|
57
|
+
cursor,
|
|
59
58
|
options,
|
|
60
59
|
));
|
|
61
60
|
}
|
|
@@ -64,11 +63,12 @@ async function $do(
|
|
|
64
63
|
client: FankareSDKCore,
|
|
65
64
|
userId: number,
|
|
66
65
|
limit?: number | undefined,
|
|
66
|
+
cursor?: string | undefined,
|
|
67
67
|
options?: RequestOptions,
|
|
68
68
|
): Promise<
|
|
69
69
|
[
|
|
70
70
|
Result<
|
|
71
|
-
|
|
71
|
+
models.PaginatedPostsResponse,
|
|
72
72
|
| FankareSDKError
|
|
73
73
|
| ResponseValidationError
|
|
74
74
|
| ConnectionError
|
|
@@ -84,6 +84,7 @@ async function $do(
|
|
|
84
84
|
const input: operations.GetCreatorPostsRequest = {
|
|
85
85
|
userId: userId,
|
|
86
86
|
limit: limit,
|
|
87
|
+
cursor: cursor,
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
const parsed = safeParse(
|
|
@@ -106,6 +107,7 @@ async function $do(
|
|
|
106
107
|
const path = pathToFunc("/users/{userId}/posts")(pathParams);
|
|
107
108
|
|
|
108
109
|
const query = encodeFormQuery({
|
|
110
|
+
"cursor": payload.cursor,
|
|
109
111
|
"limit": payload.limit,
|
|
110
112
|
});
|
|
111
113
|
|
|
@@ -161,7 +163,7 @@ async function $do(
|
|
|
161
163
|
const response = doResult.value;
|
|
162
164
|
|
|
163
165
|
const [result] = await M.match<
|
|
164
|
-
|
|
166
|
+
models.PaginatedPostsResponse,
|
|
165
167
|
| FankareSDKError
|
|
166
168
|
| ResponseValidationError
|
|
167
169
|
| ConnectionError
|
|
@@ -171,7 +173,7 @@ async function $do(
|
|
|
171
173
|
| UnexpectedClientError
|
|
172
174
|
| SDKValidationError
|
|
173
175
|
>(
|
|
174
|
-
M.json(200,
|
|
176
|
+
M.json(200, models.PaginatedPostsResponse$inboundSchema),
|
|
175
177
|
M.fail("4XX"),
|
|
176
178
|
M.fail("5XX"),
|
|
177
179
|
)(response, req);
|