@aurora-interactive/fankare-api-sdk 0.0.2 → 0.0.4
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/FUNCTIONS.md +2 -0
- package/README.md +32 -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/models/register-request.d.ts +4 -2
- package/esm/models/register-request.d.ts.map +1 -1
- package/esm/models/register-request.js +2 -1
- package/esm/models/register-request.js.map +1 -1
- package/esm/models/user-profile.d.ts +0 -1
- package/esm/models/user-profile.d.ts.map +1 -1
- package/esm/models/user-profile.js +0 -1
- package/esm/models/user-profile.js.map +1 -1
- package/esm/models/user.d.ts +32 -0
- package/esm/models/user.d.ts.map +1 -1
- package/esm/models/user.js +16 -0
- package/esm/models/user.js.map +1 -1
- 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/examples/authenticationRegisterUser.example.ts +2 -0
- 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/models/register-request.ts +6 -3
- package/src/models/user-profile.ts +0 -2
- package/src/models/user.ts +46 -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
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"}
|
|
@@ -21,7 +21,9 @@ const fankareSDK = new FankareSDK({
|
|
|
21
21
|
async function main() {
|
|
22
22
|
const result = await fankareSDK.authentication.registerUser({
|
|
23
23
|
username: "Nicklaus67",
|
|
24
|
+
email: "Erick_McClure81@hotmail.com",
|
|
24
25
|
password: "4rmpu4fcbiqyYPN",
|
|
26
|
+
displayName: "Abbey80",
|
|
25
27
|
});
|
|
26
28
|
|
|
27
29
|
console.log(result);
|
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);
|
package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: 09f25f5f8a76
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
@@ -28,12 +28,12 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Add a user to a custom
|
|
31
|
+
* Add a user to a custom collection
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function customCollectionsAddCollectionMember(
|
|
34
34
|
client: FankareSDKCore,
|
|
35
|
-
|
|
36
|
-
body: operations.
|
|
35
|
+
collectionId: number,
|
|
36
|
+
body: operations.AddCollectionMemberRequestBody,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -50,7 +50,7 @@ export function customListsAddListMember(
|
|
|
50
50
|
> {
|
|
51
51
|
return new APIPromise($do(
|
|
52
52
|
client,
|
|
53
|
-
|
|
53
|
+
collectionId,
|
|
54
54
|
body,
|
|
55
55
|
options,
|
|
56
56
|
));
|
|
@@ -58,8 +58,8 @@ export function customListsAddListMember(
|
|
|
58
58
|
|
|
59
59
|
async function $do(
|
|
60
60
|
client: FankareSDKCore,
|
|
61
|
-
|
|
62
|
-
body: operations.
|
|
61
|
+
collectionId: number,
|
|
62
|
+
body: operations.AddCollectionMemberRequestBody,
|
|
63
63
|
options?: RequestOptions,
|
|
64
64
|
): Promise<
|
|
65
65
|
[
|
|
@@ -77,14 +77,15 @@ async function $do(
|
|
|
77
77
|
APICall,
|
|
78
78
|
]
|
|
79
79
|
> {
|
|
80
|
-
const input: operations.
|
|
81
|
-
|
|
80
|
+
const input: operations.AddCollectionMemberRequest = {
|
|
81
|
+
collectionId: collectionId,
|
|
82
82
|
body: body,
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
const parsed = safeParse(
|
|
86
86
|
input,
|
|
87
|
-
(value) =>
|
|
87
|
+
(value) =>
|
|
88
|
+
z.parse(operations.AddCollectionMemberRequest$outboundSchema, value),
|
|
88
89
|
"Input validation failed",
|
|
89
90
|
);
|
|
90
91
|
if (!parsed.ok) {
|
|
@@ -94,12 +95,12 @@ async function $do(
|
|
|
94
95
|
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
95
96
|
|
|
96
97
|
const pathParams = {
|
|
97
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
98
99
|
explode: false,
|
|
99
100
|
charEncoding: "percent",
|
|
100
101
|
}),
|
|
101
102
|
};
|
|
102
|
-
const path = pathToFunc("/
|
|
103
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
103
104
|
|
|
104
105
|
const headers = new Headers(compactMap({
|
|
105
106
|
"Content-Type": "application/json",
|
|
@@ -113,7 +114,7 @@ async function $do(
|
|
|
113
114
|
const context = {
|
|
114
115
|
options: client._options,
|
|
115
116
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
|
-
operationID: "
|
|
117
|
+
operationID: "addCollectionMember",
|
|
117
118
|
oAuth2Scopes: null,
|
|
118
119
|
|
|
119
120
|
resolvedSecurity: requestSecurity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: 802a176f4643
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
@@ -29,15 +29,15 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
29
29
|
import { Result } from "../types/fp.js";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Create a new custom grouping
|
|
32
|
+
* Create a new custom grouping collection
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function customCollectionsCreateCollection(
|
|
35
35
|
client: FankareSDKCore,
|
|
36
|
-
request: operations.
|
|
36
|
+
request: operations.CreateCollectionRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.Collection,
|
|
41
41
|
| FankareSDKError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -57,12 +57,12 @@ export function customListsCreateList(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: FankareSDKCore,
|
|
60
|
-
request: operations.
|
|
60
|
+
request: operations.CreateCollectionRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
models.
|
|
65
|
+
models.Collection,
|
|
66
66
|
| FankareSDKError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,7 +77,8 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) =>
|
|
80
|
+
(value) =>
|
|
81
|
+
z.parse(operations.CreateCollectionRequest$outboundSchema, value),
|
|
81
82
|
"Input validation failed",
|
|
82
83
|
);
|
|
83
84
|
if (!parsed.ok) {
|
|
@@ -86,7 +87,7 @@ async function $do(
|
|
|
86
87
|
const payload = parsed.value;
|
|
87
88
|
const body = encodeJSON("body", payload, { explode: true });
|
|
88
89
|
|
|
89
|
-
const path = pathToFunc("/
|
|
90
|
+
const path = pathToFunc("/collections")();
|
|
90
91
|
|
|
91
92
|
const headers = new Headers(compactMap({
|
|
92
93
|
"Content-Type": "application/json",
|
|
@@ -100,7 +101,7 @@ async function $do(
|
|
|
100
101
|
const context = {
|
|
101
102
|
options: client._options,
|
|
102
103
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
104
|
+
operationID: "createCollection",
|
|
104
105
|
oAuth2Scopes: null,
|
|
105
106
|
|
|
106
107
|
resolvedSecurity: requestSecurity,
|
|
@@ -140,7 +141,7 @@ async function $do(
|
|
|
140
141
|
const response = doResult.value;
|
|
141
142
|
|
|
142
143
|
const [result] = await M.match<
|
|
143
|
-
models.
|
|
144
|
+
models.Collection,
|
|
144
145
|
| FankareSDKError
|
|
145
146
|
| ResponseValidationError
|
|
146
147
|
| ConnectionError
|
|
@@ -150,7 +151,7 @@ async function $do(
|
|
|
150
151
|
| UnexpectedClientError
|
|
151
152
|
| SDKValidationError
|
|
152
153
|
>(
|
|
153
|
-
M.json(201, models.
|
|
154
|
+
M.json(201, models.Collection$inboundSchema),
|
|
154
155
|
M.fail("4XX"),
|
|
155
156
|
M.fail("5XX"),
|
|
156
157
|
)(response, req);
|
package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: 7beb0dd706f2
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
@@ -29,11 +29,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
29
29
|
import { Result } from "../types/fp.js";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Get all members belonging to a custom
|
|
32
|
+
* Get all members belonging to a custom collection
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function customCollectionsGetCollectionMembers(
|
|
35
35
|
client: FankareSDKCore,
|
|
36
|
-
|
|
36
|
+
collectionId: number,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -50,14 +50,14 @@ export function customListsGetListMembers(
|
|
|
50
50
|
> {
|
|
51
51
|
return new APIPromise($do(
|
|
52
52
|
client,
|
|
53
|
-
|
|
53
|
+
collectionId,
|
|
54
54
|
options,
|
|
55
55
|
));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: FankareSDKCore,
|
|
60
|
-
|
|
60
|
+
collectionId: number,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
@@ -75,13 +75,14 @@ async function $do(
|
|
|
75
75
|
APICall,
|
|
76
76
|
]
|
|
77
77
|
> {
|
|
78
|
-
const input: operations.
|
|
79
|
-
|
|
78
|
+
const input: operations.GetCollectionMembersRequest = {
|
|
79
|
+
collectionId: collectionId,
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
const parsed = safeParse(
|
|
83
83
|
input,
|
|
84
|
-
(value) =>
|
|
84
|
+
(value) =>
|
|
85
|
+
z.parse(operations.GetCollectionMembersRequest$outboundSchema, value),
|
|
85
86
|
"Input validation failed",
|
|
86
87
|
);
|
|
87
88
|
if (!parsed.ok) {
|
|
@@ -91,12 +92,12 @@ async function $do(
|
|
|
91
92
|
const body = null;
|
|
92
93
|
|
|
93
94
|
const pathParams = {
|
|
94
|
-
|
|
95
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
95
96
|
explode: false,
|
|
96
97
|
charEncoding: "percent",
|
|
97
98
|
}),
|
|
98
99
|
};
|
|
99
|
-
const path = pathToFunc("/
|
|
100
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
100
101
|
|
|
101
102
|
const headers = new Headers(compactMap({
|
|
102
103
|
Accept: "application/json",
|
|
@@ -109,7 +110,7 @@ async function $do(
|
|
|
109
110
|
const context = {
|
|
110
111
|
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
-
operationID: "
|
|
113
|
+
operationID: "getCollectionMembers",
|
|
113
114
|
oAuth2Scopes: null,
|
|
114
115
|
|
|
115
116
|
resolvedSecurity: requestSecurity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: ac4ed76cf26d
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
@@ -26,14 +26,14 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Get all
|
|
29
|
+
* Get all collections created by the user
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function customCollectionsGetCollections(
|
|
32
32
|
client: FankareSDKCore,
|
|
33
33
|
options?: RequestOptions,
|
|
34
34
|
): APIPromise<
|
|
35
35
|
Result<
|
|
36
|
-
Array<models.
|
|
36
|
+
Array<models.Collection>,
|
|
37
37
|
| FankareSDKError
|
|
38
38
|
| ResponseValidationError
|
|
39
39
|
| ConnectionError
|
|
@@ -56,7 +56,7 @@ async function $do(
|
|
|
56
56
|
): Promise<
|
|
57
57
|
[
|
|
58
58
|
Result<
|
|
59
|
-
Array<models.
|
|
59
|
+
Array<models.Collection>,
|
|
60
60
|
| FankareSDKError
|
|
61
61
|
| ResponseValidationError
|
|
62
62
|
| ConnectionError
|
|
@@ -69,7 +69,7 @@ async function $do(
|
|
|
69
69
|
APICall,
|
|
70
70
|
]
|
|
71
71
|
> {
|
|
72
|
-
const path = pathToFunc("/
|
|
72
|
+
const path = pathToFunc("/collections")();
|
|
73
73
|
|
|
74
74
|
const headers = new Headers(compactMap({
|
|
75
75
|
Accept: "application/json",
|
|
@@ -82,7 +82,7 @@ async function $do(
|
|
|
82
82
|
const context = {
|
|
83
83
|
options: client._options,
|
|
84
84
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
-
operationID: "
|
|
85
|
+
operationID: "getCollections",
|
|
86
86
|
oAuth2Scopes: null,
|
|
87
87
|
|
|
88
88
|
resolvedSecurity: requestSecurity,
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
const response = doResult.value;
|
|
122
122
|
|
|
123
123
|
const [result] = await M.match<
|
|
124
|
-
Array<models.
|
|
124
|
+
Array<models.Collection>,
|
|
125
125
|
| FankareSDKError
|
|
126
126
|
| ResponseValidationError
|
|
127
127
|
| ConnectionError
|
|
@@ -131,7 +131,7 @@ async function $do(
|
|
|
131
131
|
| UnexpectedClientError
|
|
132
132
|
| SDKValidationError
|
|
133
133
|
>(
|
|
134
|
-
M.json(200, z.array(models.
|
|
134
|
+
M.json(200, z.array(models.Collection$inboundSchema)),
|
|
135
135
|
M.fail("4XX"),
|
|
136
136
|
M.fail("5XX"),
|
|
137
137
|
)(response, req);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: afd181fdd5a7
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
@@ -28,11 +28,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Remove a user from a custom
|
|
31
|
+
* Remove a user from a custom collection
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function customCollectionsRemoveCollectionMember(
|
|
34
34
|
client: FankareSDKCore,
|
|
35
|
-
|
|
35
|
+
collectionId: number,
|
|
36
36
|
userId: number,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
@@ -50,7 +50,7 @@ export function customListsRemoveListMember(
|
|
|
50
50
|
> {
|
|
51
51
|
return new APIPromise($do(
|
|
52
52
|
client,
|
|
53
|
-
|
|
53
|
+
collectionId,
|
|
54
54
|
userId,
|
|
55
55
|
options,
|
|
56
56
|
));
|
|
@@ -58,7 +58,7 @@ export function customListsRemoveListMember(
|
|
|
58
58
|
|
|
59
59
|
async function $do(
|
|
60
60
|
client: FankareSDKCore,
|
|
61
|
-
|
|
61
|
+
collectionId: number,
|
|
62
62
|
userId: number,
|
|
63
63
|
options?: RequestOptions,
|
|
64
64
|
): Promise<
|
|
@@ -77,15 +77,15 @@ async function $do(
|
|
|
77
77
|
APICall,
|
|
78
78
|
]
|
|
79
79
|
> {
|
|
80
|
-
const input: operations.
|
|
81
|
-
|
|
80
|
+
const input: operations.RemoveCollectionMemberRequest = {
|
|
81
|
+
collectionId: collectionId,
|
|
82
82
|
userId: userId,
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
const parsed = safeParse(
|
|
86
86
|
input,
|
|
87
87
|
(value) =>
|
|
88
|
-
z.parse(operations.
|
|
88
|
+
z.parse(operations.RemoveCollectionMemberRequest$outboundSchema, value),
|
|
89
89
|
"Input validation failed",
|
|
90
90
|
);
|
|
91
91
|
if (!parsed.ok) {
|
|
@@ -95,12 +95,12 @@ async function $do(
|
|
|
95
95
|
const body = null;
|
|
96
96
|
|
|
97
97
|
const pathParams = {
|
|
98
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
99
99
|
explode: false,
|
|
100
100
|
charEncoding: "percent",
|
|
101
101
|
}),
|
|
102
102
|
};
|
|
103
|
-
const path = pathToFunc("/
|
|
103
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
104
104
|
|
|
105
105
|
const query = encodeFormQuery({
|
|
106
106
|
"userId": payload.userId,
|
|
@@ -117,7 +117,7 @@ async function $do(
|
|
|
117
117
|
const context = {
|
|
118
118
|
options: client._options,
|
|
119
119
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
-
operationID: "
|
|
120
|
+
operationID: "removeCollectionMember",
|
|
121
121
|
oAuth2Scopes: null,
|
|
122
122
|
|
|
123
123
|
resolvedSecurity: requestSecurity,
|
|
@@ -27,9 +27,6 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Fetch active DM threads
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Gets recent conversation summary records containing index context of opposing communication profiles.
|
|
33
30
|
*/
|
|
34
31
|
export function directMessagingGetConversations(
|
|
35
32
|
client: FankareSDKCore,
|