@faiber/faiber-social 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @faiber/faiber-social
2
+
3
+ Social categories, feeds, posts, threaded comments, likes, reactions, reports, moderation, and migration from legacy Modules social data.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @faiber/faiber-social
9
+ ```
10
+
11
+ ## Configure
12
+
13
+ ```ts
14
+ import { FaiberClient, MemoryTokenProvider } from "@faiber/sdk-core";
15
+ import { SocialApi } from "@faiber/faiber-social";
16
+
17
+ const tokens = new MemoryTokenProvider();
18
+ const client = new FaiberClient("social", {
19
+ domains: { social: process.env.FAIBER_SOCIAL_URL! },
20
+ tokenProvider: tokens,
21
+ axios: { timeout: 15_000, withCredentials: true },
22
+ });
23
+ const api = new SocialApi(client);
24
+
25
+ const categories = await api.categories();
26
+ const feed = await api.feed({ category_id: categories.data.data[0]?.id, page: 1, limit: 20 });
27
+ ```
28
+
29
+ ## Complete capability
30
+
31
+ This package exposes 32 registered operations from the social interactions service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
32
+
33
+ | Area | Operations | HTTP methods |
34
+ |---|---:|---|
35
+ | `api` | 32 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
36
+
37
+ Social owns community categories, posts, and interactions on those posts and comments. Modules continues to own generic comments and reactions for products, services, and other Modules resources.
38
+
39
+ ## Authentication and authorization
40
+
41
+ Use a `TokenProvider` to forward the signed-in user's Bearer token, or enable `withCredentials` for secure HttpOnly cookie sessions. Permission requirements copied from service route guards are included in each operation's JSDoc. The SDK does not embed API keys, credentials, localhost URLs, sandbox hosts, or production hosts.
42
+
43
+ ## Inputs, queries, responses, and transport
44
+
45
+ All methods return the complete Axios response, including status, headers, and request IDs. Request bodies and query objects are named exported interfaces. Nested pagination uses keys such as `page[number]` and `page[size]` where required by the service. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
46
+
47
+ Generic REST resources are capability-guarded. Calling a legacy method that the service does not register throws `UnsupportedOperationError` before sending a request instead of producing a backend `405`.
48
+
49
+ ## Errors and cancellation
50
+
51
+ ```ts
52
+ try {
53
+ await api.client.get("/health", undefined, { signal: AbortSignal.timeout(5_000) });
54
+ } catch (error) {
55
+ // Axios errors retain response.status and the service error body.
56
+ }
57
+ ```
58
+
59
+ Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services with one configuration.
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69,70],[67,69],[67]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"5b81964e79efc458d4927699a2c08c0953c55bff6441f34ea10a61046fef7dcc","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"bc646edc825b97db03fcbd09c5c6f39c8ea89b9ccfb91abdf4ac4f34872ad287","signature":"c729f07a0bfc40f52a33ce0ffe49b4b1a8baf41de06b4f62cdb7b1afde49d74a","impliedFormat":99},{"version":"07e762c4e42c607e6ba996beb001f16971ea411cd9351cdd7a32d2ce946dfd98","signature":"5345439e91a81fd1463274b05df33c2df8e88b5d1358970632cb32097725e59f","impliedFormat":99},{"version":"1e05501be3de345eac801ab352aee77f1dc8602fad3868b2c18e483b50f698ec","signature":"da79416d0e61dc326052133e126352d535e3678d6e4f792ae62011c8389a235a","impliedFormat":99},{"version":"e77d79b4dc97b4ff4d8e1eb95765c52d03a2aeade4ff69189fd2e9a374982d3f","signature":"d891a08f8a40fcb26088f825a53f4dca42449a00a2078d61651d671b93428a7e","impliedFormat":99}],"root":[[68,71]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[71,6],[70,7],[69,8],[68,8]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,33 @@
1
+ import { ServiceApi, type ApiEnvelope, type Identifier, type RequestOptions } from "@faiber/sdk-core";
2
+ import type { CreateCategoryInput, CreateCommentInput, CreatePostInput, CreateReportInput, FeedQuery, LegacyImportInput, LegacyImportReport, ModerateTargetInput, ModerationQueueResponse, ReactionSummaryResponse, SetReactionInput, SocialCategoryListResponse, SocialCategoryResponse, SocialCommentListResponse, SocialCommentResponse, SocialPostListResponse, SocialPostResponse, SocialReactionResponse, UpdateCategoryInput, UpdateCommentInput, UpdatePostInput } from "./types.js";
3
+ import { SocialOperations } from "./operations.js";
4
+ export declare class SocialApi extends ServiceApi {
5
+ readonly operations: SocialOperations;
6
+ categories(options?: RequestOptions): Promise<import("axios").AxiosResponse<SocialCategoryListResponse, any, {}>>;
7
+ createCategory(data: CreateCategoryInput, options?: RequestOptions<CreateCategoryInput>): Promise<import("axios").AxiosResponse<SocialCategoryResponse, CreateCategoryInput, {}>>;
8
+ updateCategory(categoryId: Identifier, data: UpdateCategoryInput, options?: RequestOptions<UpdateCategoryInput>): Promise<import("axios").AxiosResponse<SocialCategoryResponse, UpdateCategoryInput, {}>>;
9
+ deleteCategory(categoryId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<void, any, {}>>;
10
+ feed(params?: FeedQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<SocialPostListResponse, any, {}>>;
11
+ post(postId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<SocialPostResponse, any, {}>>;
12
+ createPost(data: CreatePostInput, options?: RequestOptions<CreatePostInput>): Promise<import("axios").AxiosResponse<SocialPostResponse, CreatePostInput, {}>>;
13
+ updatePost(postId: Identifier, data: UpdatePostInput, options?: RequestOptions<UpdatePostInput>): Promise<import("axios").AxiosResponse<SocialPostResponse, UpdatePostInput, {}>>;
14
+ deletePost(postId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<void, any, {}>>;
15
+ comments(postId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<SocialCommentListResponse, any, {}>>;
16
+ createComment(postId: Identifier, data: CreateCommentInput, options?: RequestOptions<CreateCommentInput>): Promise<import("axios").AxiosResponse<SocialCommentResponse, CreateCommentInput, {}>>;
17
+ updateComment(commentId: Identifier, data: UpdateCommentInput, options?: RequestOptions<UpdateCommentInput>): Promise<import("axios").AxiosResponse<SocialCommentResponse, UpdateCommentInput, {}>>;
18
+ deleteComment(commentId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<void, any, {}>>;
19
+ reactions(target: "posts" | "comments", targetId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<ReactionSummaryResponse, any, {}>>;
20
+ setReaction(target: "posts" | "comments", targetId: Identifier, data: SetReactionInput, options?: RequestOptions<SetReactionInput>): Promise<import("axios").AxiosResponse<SocialReactionResponse, SetReactionInput, {}>>;
21
+ removeReaction(target: "posts" | "comments", targetId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<void, any, {}>>;
22
+ like(target: "posts" | "comments", targetId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<SocialReactionResponse, Record<string, never>, {}>>;
23
+ unlike(target: "posts" | "comments", targetId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<void, any, {}>>;
24
+ report(data: CreateReportInput, options?: RequestOptions<CreateReportInput>): Promise<import("axios").AxiosResponse<ApiEnvelope<unknown>, CreateReportInput, {}>>;
25
+ moderationQueue(options?: RequestOptions): Promise<import("axios").AxiosResponse<ModerationQueueResponse, any, {}>>;
26
+ moderate(data: ModerateTargetInput, options?: RequestOptions<ModerateTargetInput>): Promise<import("axios").AxiosResponse<ApiEnvelope<unknown>, ModerateTargetInput, {}>>;
27
+ importModules(data?: LegacyImportInput, options?: RequestOptions<LegacyImportInput>): Promise<import("axios").AxiosResponse<ApiEnvelope<LegacyImportReport>, LegacyImportInput, {}>>;
28
+ }
29
+ export * from "@faiber/sdk-core";
30
+ export * from "./types.js";
31
+ export * from "./operations.js";
32
+ export * from "./operations.types.js";
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtG,OAAO,KAAK,EACV,mBAAmB,EAAE,kBAAkB,EAAE,eAAe,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EACzG,kBAAkB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,uBAAuB,EACzF,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,sBAAsB,EAC9I,kBAAkB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,eAAe,EACrG,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,qBAAa,SAAU,SAAQ,UAAU;IACrC,QAAQ,CAAC,UAAU,mBAAqC;IAC1D,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc;IACnC,cAAc,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC;IACvF,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,mBAAmB,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cAAc;IAC3F,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IACjF,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IACnF,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;IAC3E,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc;IACxC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC;IACjF,aAAa,CAAC,IAAI,GAAE,iBAAqC,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;CACvG;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ import { ServiceApi } from "@faiber/sdk-core";
2
+ const id = (value) => encodeURIComponent(value);
3
+ import { SocialOperations } from "./operations.js";
4
+ export class SocialApi extends ServiceApi {
5
+ operations = new SocialOperations(this.client);
6
+ categories(options) { return this.client.get("/api/v1/categories", undefined, options); }
7
+ createCategory(data, options) { return this.client.post("/api/v1/categories", data, options); }
8
+ updateCategory(categoryId, data, options) { return this.client.patch(`/api/v1/categories/${id(categoryId)}`, data, options); }
9
+ deleteCategory(categoryId, options) { return this.client.delete(`/api/v1/categories/${id(categoryId)}`, options); }
10
+ feed(params, options) { return this.client.get("/api/v1/posts", params, options); }
11
+ post(postId, options) { return this.client.get(`/api/v1/posts/${id(postId)}`, undefined, options); }
12
+ createPost(data, options) { return this.client.post("/api/v1/posts", data, options); }
13
+ updatePost(postId, data, options) { return this.client.patch(`/api/v1/posts/${id(postId)}`, data, options); }
14
+ deletePost(postId, options) { return this.client.delete(`/api/v1/posts/${id(postId)}`, options); }
15
+ comments(postId, options) { return this.client.get(`/api/v1/posts/${id(postId)}/comments`, undefined, options); }
16
+ createComment(postId, data, options) { return this.client.post(`/api/v1/posts/${id(postId)}/comments`, data, options); }
17
+ updateComment(commentId, data, options) { return this.client.patch(`/api/v1/comments/${id(commentId)}`, data, options); }
18
+ deleteComment(commentId, options) { return this.client.delete(`/api/v1/comments/${id(commentId)}`, options); }
19
+ reactions(target, targetId, options) { return this.client.get(`/api/v1/${target}/${id(targetId)}/reaction`, undefined, options); }
20
+ setReaction(target, targetId, data, options) { return this.client.put(`/api/v1/${target}/${id(targetId)}/reaction`, data, options); }
21
+ removeReaction(target, targetId, options) { return this.client.delete(`/api/v1/${target}/${id(targetId)}/reaction`, options); }
22
+ like(target, targetId, options) { return this.client.put(`/api/v1/${target}/${id(targetId)}/like`, {}, options); }
23
+ unlike(target, targetId, options) { return this.client.delete(`/api/v1/${target}/${id(targetId)}/like`, options); }
24
+ report(data, options) { return this.client.post("/api/v1/reports", data, options); }
25
+ moderationQueue(options) { return this.client.get("/api/v1/moderation/queue", undefined, options); }
26
+ moderate(data, options) { return this.client.post("/api/v1/moderation/actions", data, options); }
27
+ importModules(data = { dry_run: true }, options) { return this.client.post("/api/v1/admin/import/modules", data, options); }
28
+ }
29
+ export * from "@faiber/sdk-core";
30
+ export * from "./types.js";
31
+ export * from "./operations.js";
32
+ export * from "./operations.types.js";
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0D,MAAM,kBAAkB,CAAC;AAQtG,MAAM,EAAE,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,MAAM,OAAO,SAAU,SAAQ,UA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,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqD,8BAA8B,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACxO;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
2
+ import type * as T from "./operations.types.js";
3
+ export declare class SocialOperations extends ServiceApi {
4
+ /** POST /api/v1/admin/import/modules; permission: social:admin. */
5
+ apiImportModulesPost(data: T.ApiImportModulesPostInput, options?: RequestOptions<T.ApiImportModulesPostInput>): Promise<import("axios").AxiosResponse<T.ApiImportModulesPostResponse, T.ApiImportModulesPostInput, {}>>;
6
+ /** GET /api/v1/categories; permission: social:read. */
7
+ apiListCategoriesGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiListCategoriesGetResponse, unknown, {}>>;
8
+ /** POST /api/v1/categories; permission: social:category:manage. */
9
+ apiCreateCategoryPost(data: T.ApiCreateCategoryPostInput, options?: RequestOptions<T.ApiCreateCategoryPostInput>): Promise<import("axios").AxiosResponse<T.ApiCreateCategoryPostResponse, T.ApiCreateCategoryPostInput, {}>>;
10
+ /** DELETE /api/v1/categories/{id}; permission: social:category:manage. */
11
+ apiDeleteCategoryDelete(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiDeleteCategoryDeleteResponse, unknown, {}>>;
12
+ /** PATCH /api/v1/categories/{id}; permission: social:category:manage. */
13
+ apiUpdateCategoryPatch(id: Identifier, data: T.ApiUpdateCategoryPatchInput, options?: RequestOptions<T.ApiUpdateCategoryPatchInput>): Promise<import("axios").AxiosResponse<T.ApiUpdateCategoryPatchResponse, T.ApiUpdateCategoryPatchInput, {}>>;
14
+ /** DELETE /api/v1/comments/{id}; permission: social:comment:delete_own. */
15
+ apiDeleteCommentDelete(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiDeleteCommentDeleteResponse, unknown, {}>>;
16
+ /** PATCH /api/v1/comments/{id}; permission: social:comment:update_own. */
17
+ apiUpdateCommentPatch(id: Identifier, data: T.ApiUpdateCommentPatchInput, options?: RequestOptions<T.ApiUpdateCommentPatchInput>): Promise<import("axios").AxiosResponse<T.ApiUpdateCommentPatchResponse, T.ApiUpdateCommentPatchInput, {}>>;
18
+ /** DELETE /api/v1/comments/{id}/like; permission: social:reaction:write. */
19
+ apiRemoveCommentReactionDeleteApiV1CommentsIdLike(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiRemoveCommentReactionDeleteApiV1CommentsIdLikeResponse, unknown, {}>>;
20
+ /** PUT /api/v1/comments/{id}/like; permission: social:reaction:write. */
21
+ apiLikeCommentPut(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiLikeCommentPutResponse, unknown, {}>>;
22
+ /** DELETE /api/v1/comments/{id}/reaction; permission: social:reaction:write. */
23
+ apiRemoveCommentReactionDeleteApiV1CommentsIdReaction(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiRemoveCommentReactionDeleteApiV1CommentsIdReactionResponse, unknown, {}>>;
24
+ /** GET /api/v1/comments/{id}/reaction; permission: social:read. */
25
+ apiCommentReactionsGet(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiCommentReactionsGetResponse, unknown, {}>>;
26
+ /** PUT /api/v1/comments/{id}/reaction; permission: social:reaction:write. */
27
+ apiSetCommentReactionPut(id: Identifier, data: T.ApiSetCommentReactionPutInput, options?: RequestOptions<T.ApiSetCommentReactionPutInput>): Promise<import("axios").AxiosResponse<T.ApiSetCommentReactionPutResponse, T.ApiSetCommentReactionPutInput, {}>>;
28
+ /** GET /api/v1/comments/post/{id}; permission: social:read. */
29
+ apiListPostCommentsGetApiV1CommentsPostId(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiListPostCommentsGetApiV1CommentsPostIdResponse, unknown, {}>>;
30
+ /** POST /api/v1/comments/post/{id}; permission: social:comment:create. */
31
+ apiCreatePostCommentPostApiV1CommentsPostId(id: Identifier, data: T.ApiCreatePostCommentPostApiV1CommentsPostIdInput, options?: RequestOptions<T.ApiCreatePostCommentPostApiV1CommentsPostIdInput>): Promise<import("axios").AxiosResponse<T.ApiCreatePostCommentPostApiV1CommentsPostIdResponse, T.ApiCreatePostCommentPostApiV1CommentsPostIdInput, {}>>;
32
+ /** POST /api/v1/moderation/actions; permission: social:moderate. */
33
+ apiModeratePost(data: T.ApiModeratePostInput, options?: RequestOptions<T.ApiModeratePostInput>): Promise<import("axios").AxiosResponse<T.ApiModeratePostResponse, T.ApiModeratePostInput, {}>>;
34
+ /** GET /api/v1/moderation/queue; permission: social:moderate. */
35
+ apiModerationQueueGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiModerationQueueGetResponse, unknown, {}>>;
36
+ /** GET /api/v1/posts; permission: social:read. */
37
+ apiListPostsGet(params?: T.ApiListPostsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiListPostsGetResponse, unknown, {}>>;
38
+ /** POST /api/v1/posts; permission: social:post:create. */
39
+ apiCreatePostPost(data: T.ApiCreatePostPostInput, options?: RequestOptions<T.ApiCreatePostPostInput>): Promise<import("axios").AxiosResponse<T.ApiCreatePostPostResponse, T.ApiCreatePostPostInput, {}>>;
40
+ /** DELETE /api/v1/posts/{id}; permission: social:post:delete_own. */
41
+ apiDeletePostDelete(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiDeletePostDeleteResponse, unknown, {}>>;
42
+ /** GET /api/v1/posts/{id}; permission: social:read. */
43
+ apiGetPostGet(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiGetPostGetResponse, unknown, {}>>;
44
+ /** PATCH /api/v1/posts/{id}; permission: social:post:update_own. */
45
+ apiUpdatePostPatch(id: Identifier, data: T.ApiUpdatePostPatchInput, options?: RequestOptions<T.ApiUpdatePostPatchInput>): Promise<import("axios").AxiosResponse<T.ApiUpdatePostPatchResponse, T.ApiUpdatePostPatchInput, {}>>;
46
+ /** GET /api/v1/posts/{id}/comments; permission: social:read. */
47
+ apiListPostCommentsGetApiV1PostsIdComments(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiListPostCommentsGetApiV1PostsIdCommentsResponse, unknown, {}>>;
48
+ /** POST /api/v1/posts/{id}/comments; permission: social:comment:create. */
49
+ apiCreatePostCommentPostApiV1PostsIdComments(id: Identifier, data: T.ApiCreatePostCommentPostApiV1PostsIdCommentsInput, options?: RequestOptions<T.ApiCreatePostCommentPostApiV1PostsIdCommentsInput>): Promise<import("axios").AxiosResponse<T.ApiCreatePostCommentPostApiV1PostsIdCommentsResponse, T.ApiCreatePostCommentPostApiV1PostsIdCommentsInput, {}>>;
50
+ /** DELETE /api/v1/posts/{id}/like; permission: social:reaction:write. */
51
+ apiRemovePostReactionDeleteApiV1PostsIdLike(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiRemovePostReactionDeleteApiV1PostsIdLikeResponse, unknown, {}>>;
52
+ /** PUT /api/v1/posts/{id}/like; permission: social:reaction:write. */
53
+ apiLikePostPut(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiLikePostPutResponse, unknown, {}>>;
54
+ /** DELETE /api/v1/posts/{id}/reaction; permission: social:reaction:write. */
55
+ apiRemovePostReactionDeleteApiV1PostsIdReaction(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiRemovePostReactionDeleteApiV1PostsIdReactionResponse, unknown, {}>>;
56
+ /** GET /api/v1/posts/{id}/reaction; permission: social:read. */
57
+ apiPostReactionsGetApiV1PostsIdReaction(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiPostReactionsGetApiV1PostsIdReactionResponse, unknown, {}>>;
58
+ /** PUT /api/v1/posts/{id}/reaction; permission: social:reaction:write. */
59
+ apiSetPostReactionPut(id: Identifier, data: T.ApiSetPostReactionPutInput, options?: RequestOptions<T.ApiSetPostReactionPutInput>): Promise<import("axios").AxiosResponse<T.ApiSetPostReactionPutResponse, T.ApiSetPostReactionPutInput, {}>>;
60
+ /** DELETE /api/v1/reactions/post/{id}; permission: social:reaction:write. */
61
+ apiRemovePostReactionDeleteApiV1ReactionsPostId(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiRemovePostReactionDeleteApiV1ReactionsPostIdResponse, unknown, {}>>;
62
+ /** GET /api/v1/reactions/post/{id}; permission: social:read. */
63
+ apiPostReactionsGetApiV1ReactionsPostId(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.ApiPostReactionsGetApiV1ReactionsPostIdResponse, unknown, {}>>;
64
+ /** POST /api/v1/reactions/post/{id}; permission: social:reaction:write. */
65
+ apiSetPostReactionPost(id: Identifier, data: T.ApiSetPostReactionPostInput, options?: RequestOptions<T.ApiSetPostReactionPostInput>): Promise<import("axios").AxiosResponse<T.ApiSetPostReactionPostResponse, T.ApiSetPostReactionPostInput, {}>>;
66
+ /** POST /api/v1/reports; permission: social:report:create. */
67
+ apiCreateReportPost(data: T.ApiCreateReportPostInput, options?: RequestOptions<T.ApiCreateReportPostInput>): Promise<import("axios").AxiosResponse<T.ApiCreateReportPostResponse, T.ApiCreateReportPostInput, {}>>;
68
+ }
69
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,mEAAmE;IACnE,oBAAoB,CAAC,IAAI,EAAE,CAAC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iD,CAAC;IAGrM,yEAAyE;IACzE,2CAA2C,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGpF,sEAAsE;IACtE,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGvD,6EAA6E;IAC7E,+CAA+C,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGxF,gEAAgE;IAChE,uCAAuC,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGhF,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,0BAA0B,CAAC;IAGhI,6EAA6E;IAC7E,+CAA+C,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGxF,gEAAgE;IAChE,uCAAuC,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGhF,2EAA2E;IAC3E,sBAAsB,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,2BAA2B,CAAC;IAGnI,8DAA8D;IAC9D,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,wBAAwB,CAAC;CAG3G"}
@@ -0,0 +1,132 @@
1
+ import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
2
+ export class SocialOperations extends ServiceApi {
3
+ /** POST /api/v1/admin/import/modules; permission: social:admin. */
4
+ apiImportModulesPost(data, options) {
5
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/admin/import/modules`, data: data });
6
+ }
7
+ /** GET /api/v1/categories; permission: social:read. */
8
+ apiListCategoriesGet(options) {
9
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/categories` });
10
+ }
11
+ /** POST /api/v1/categories; permission: social:category:manage. */
12
+ apiCreateCategoryPost(data, options) {
13
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/categories`, data: data });
14
+ }
15
+ /** DELETE /api/v1/categories/{id}; permission: social:category:manage. */
16
+ apiDeleteCategoryDelete(id, options) {
17
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/categories/${encodeURIComponent(id)}` });
18
+ }
19
+ /** PATCH /api/v1/categories/{id}; permission: social:category:manage. */
20
+ apiUpdateCategoryPatch(id, data, options) {
21
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/categories/${encodeURIComponent(id)}`, data: data });
22
+ }
23
+ /** DELETE /api/v1/comments/{id}; permission: social:comment:delete_own. */
24
+ apiDeleteCommentDelete(id, options) {
25
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/comments/${encodeURIComponent(id)}` });
26
+ }
27
+ /** PATCH /api/v1/comments/{id}; permission: social:comment:update_own. */
28
+ apiUpdateCommentPatch(id, data, options) {
29
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/comments/${encodeURIComponent(id)}`, data: data });
30
+ }
31
+ /** DELETE /api/v1/comments/{id}/like; permission: social:reaction:write. */
32
+ apiRemoveCommentReactionDeleteApiV1CommentsIdLike(id, options) {
33
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/comments/${encodeURIComponent(id)}/like` });
34
+ }
35
+ /** PUT /api/v1/comments/{id}/like; permission: social:reaction:write. */
36
+ apiLikeCommentPut(id, options) {
37
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/comments/${encodeURIComponent(id)}/like` });
38
+ }
39
+ /** DELETE /api/v1/comments/{id}/reaction; permission: social:reaction:write. */
40
+ apiRemoveCommentReactionDeleteApiV1CommentsIdReaction(id, options) {
41
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/comments/${encodeURIComponent(id)}/reaction` });
42
+ }
43
+ /** GET /api/v1/comments/{id}/reaction; permission: social:read. */
44
+ apiCommentReactionsGet(id, options) {
45
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/comments/${encodeURIComponent(id)}/reaction` });
46
+ }
47
+ /** PUT /api/v1/comments/{id}/reaction; permission: social:reaction:write. */
48
+ apiSetCommentReactionPut(id, data, options) {
49
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/comments/${encodeURIComponent(id)}/reaction`, data: data });
50
+ }
51
+ /** GET /api/v1/comments/post/{id}; permission: social:read. */
52
+ apiListPostCommentsGetApiV1CommentsPostId(id, options) {
53
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/comments/post/${encodeURIComponent(id)}` });
54
+ }
55
+ /** POST /api/v1/comments/post/{id}; permission: social:comment:create. */
56
+ apiCreatePostCommentPostApiV1CommentsPostId(id, data, options) {
57
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/comments/post/${encodeURIComponent(id)}`, data: data });
58
+ }
59
+ /** POST /api/v1/moderation/actions; permission: social:moderate. */
60
+ apiModeratePost(data, options) {
61
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/moderation/actions`, data: data });
62
+ }
63
+ /** GET /api/v1/moderation/queue; permission: social:moderate. */
64
+ apiModerationQueueGet(options) {
65
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/moderation/queue` });
66
+ }
67
+ /** GET /api/v1/posts; permission: social:read. */
68
+ apiListPostsGet(params, options) {
69
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/posts`, params });
70
+ }
71
+ /** POST /api/v1/posts; permission: social:post:create. */
72
+ apiCreatePostPost(data, options) {
73
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/posts`, data: data });
74
+ }
75
+ /** DELETE /api/v1/posts/{id}; permission: social:post:delete_own. */
76
+ apiDeletePostDelete(id, options) {
77
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/posts/${encodeURIComponent(id)}` });
78
+ }
79
+ /** GET /api/v1/posts/{id}; permission: social:read. */
80
+ apiGetPostGet(id, options) {
81
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/posts/${encodeURIComponent(id)}` });
82
+ }
83
+ /** PATCH /api/v1/posts/{id}; permission: social:post:update_own. */
84
+ apiUpdatePostPatch(id, data, options) {
85
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/posts/${encodeURIComponent(id)}`, data: data });
86
+ }
87
+ /** GET /api/v1/posts/{id}/comments; permission: social:read. */
88
+ apiListPostCommentsGetApiV1PostsIdComments(id, options) {
89
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/posts/${encodeURIComponent(id)}/comments` });
90
+ }
91
+ /** POST /api/v1/posts/{id}/comments; permission: social:comment:create. */
92
+ apiCreatePostCommentPostApiV1PostsIdComments(id, data, options) {
93
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/posts/${encodeURIComponent(id)}/comments`, data: data });
94
+ }
95
+ /** DELETE /api/v1/posts/{id}/like; permission: social:reaction:write. */
96
+ apiRemovePostReactionDeleteApiV1PostsIdLike(id, options) {
97
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/posts/${encodeURIComponent(id)}/like` });
98
+ }
99
+ /** PUT /api/v1/posts/{id}/like; permission: social:reaction:write. */
100
+ apiLikePostPut(id, options) {
101
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/posts/${encodeURIComponent(id)}/like` });
102
+ }
103
+ /** DELETE /api/v1/posts/{id}/reaction; permission: social:reaction:write. */
104
+ apiRemovePostReactionDeleteApiV1PostsIdReaction(id, options) {
105
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/posts/${encodeURIComponent(id)}/reaction` });
106
+ }
107
+ /** GET /api/v1/posts/{id}/reaction; permission: social:read. */
108
+ apiPostReactionsGetApiV1PostsIdReaction(id, options) {
109
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/posts/${encodeURIComponent(id)}/reaction` });
110
+ }
111
+ /** PUT /api/v1/posts/{id}/reaction; permission: social:reaction:write. */
112
+ apiSetPostReactionPut(id, data, options) {
113
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/posts/${encodeURIComponent(id)}/reaction`, data: data });
114
+ }
115
+ /** DELETE /api/v1/reactions/post/{id}; permission: social:reaction:write. */
116
+ apiRemovePostReactionDeleteApiV1ReactionsPostId(id, options) {
117
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/reactions/post/${encodeURIComponent(id)}` });
118
+ }
119
+ /** GET /api/v1/reactions/post/{id}; permission: social:read. */
120
+ apiPostReactionsGetApiV1ReactionsPostId(id, options) {
121
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/reactions/post/${encodeURIComponent(id)}` });
122
+ }
123
+ /** POST /api/v1/reactions/post/{id}; permission: social:reaction:write. */
124
+ apiSetPostReactionPost(id, data, options) {
125
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/reactions/post/${encodeURIComponent(id)}`, data: data });
126
+ }
127
+ /** POST /api/v1/reports; permission: social:report:create. */
128
+ apiCreateReportPost(data, options) {
129
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/reports`, data: data });
130
+ }
131
+ }
132
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AAGhG,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAC9C,mEAAmE;IACnE,oBAAoB,CAAC,IAAiC,EAAE,OAAqD;QAC3G,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8D,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,8BAA8B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3K,CAAC;IACD,uDAAuD;IACvD,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiC,EAAE,GAAG,OAAO,EAAE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ryParams } from "@faiber/sdk-core";
2
+ /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
+ /** Backend request type: legacy::LegacyImportRequest. */
4
+ export interface ApiImportModulesPostInput extends JsonObject {
5
+ "dry_run": boolean;
6
+ }
7
+ /** Backend response type: response without a declared JSON model. */
8
+ export interface ApiImportModulesPostResponse extends ApiEnvelope<JsonValue> {
9
+ }
10
+ /** Backend response type: response without a declared JSON model. */
11
+ export interface ApiListCategoriesGetResponse extends ApiEnvelope<JsonValue> {
12
+ }
13
+ /** Backend request type: CreateCategory. */
14
+ export interface ApiCreateCategoryPostInput extends JsonObject {
15
+ "slug": string;
16
+ "name": JsonValue;
17
+ "description": JsonValue;
18
+ "icon"?: string;
19
+ "color"?: string;
20
+ "sort_order": number;
21
+ "status": string;
22
+ "requires_moderation": boolean;
23
+ "metadata": JsonValue;
24
+ }
25
+ /** Backend response type: response without a declared JSON model. */
26
+ export interface ApiCreateCategoryPostResponse extends ApiEnvelope<JsonValue> {
27
+ }
28
+ /** Backend response type: response without a declared JSON model. */
29
+ export interface ApiDeleteCategoryDeleteResponse extends ApiEnvelope<JsonValue> {
30
+ }
31
+ /** Backend request type: UpdateCategory. */
32
+ export interface ApiUpdateCategoryPatchInput extends JsonObject {
33
+ "slug"?: string;
34
+ "name"?: JsonValue;
35
+ "description"?: JsonValue;
36
+ "icon"?: string;
37
+ "color"?: string;
38
+ "sort_order"?: number;
39
+ "status"?: string;
40
+ "requires_moderation"?: boolean;
41
+ "metadata"?: JsonValue;
42
+ }
43
+ /** Backend response type: response without a declared JSON model. */
44
+ export interface ApiUpdateCategoryPatchResponse extends ApiEnvelope<JsonValue> {
45
+ }
46
+ /** Backend response type: response without a declared JSON model. */
47
+ export interface ApiDeleteCommentDeleteResponse extends ApiEnvelope<JsonValue> {
48
+ }
49
+ /** Backend request type: UpdateComment. */
50
+ export interface ApiUpdateCommentPatchInput extends JsonObject {
51
+ "body": string;
52
+ }
53
+ /** Backend response type: response without a declared JSON model. */
54
+ export interface ApiUpdateCommentPatchResponse extends ApiEnvelope<JsonValue> {
55
+ }
56
+ /** Backend response type: response without a declared JSON model. */
57
+ export interface ApiRemoveCommentReactionDeleteApiV1CommentsIdLikeResponse extends ApiEnvelope<JsonValue> {
58
+ }
59
+ /** Backend response type: response without a declared JSON model. */
60
+ export interface ApiLikeCommentPutResponse extends ApiEnvelope<JsonValue> {
61
+ }
62
+ /** Backend response type: response without a declared JSON model. */
63
+ export interface ApiRemoveCommentReactionDeleteApiV1CommentsIdReactionResponse extends ApiEnvelope<JsonValue> {
64
+ }
65
+ /** Backend response type: response without a declared JSON model. */
66
+ export interface ApiCommentReactionsGetResponse extends ApiEnvelope<JsonValue> {
67
+ }
68
+ /** Backend request type: SetReaction. */
69
+ export interface ApiSetCommentReactionPutInput extends JsonObject {
70
+ "reaction_type": string;
71
+ }
72
+ /** Backend response type: response without a declared JSON model. */
73
+ export interface ApiSetCommentReactionPutResponse extends ApiEnvelope<JsonValue> {
74
+ }
75
+ /** Backend response type: response without a declared JSON model. */
76
+ export interface ApiListPostCommentsGetApiV1CommentsPostIdResponse extends ApiEnvelope<JsonValue> {
77
+ }
78
+ /** Backend request type: CreateComment. */
79
+ export interface ApiCreatePostCommentPostApiV1CommentsPostIdInput extends JsonObject {
80
+ "parent_id"?: string;
81
+ "body": string;
82
+ "requires_moderation": boolean;
83
+ }
84
+ /** Backend response type: response without a declared JSON model. */
85
+ export interface ApiCreatePostCommentPostApiV1CommentsPostIdResponse extends ApiEnvelope<JsonValue> {
86
+ }
87
+ /** Backend request type: ModerateTarget. */
88
+ export interface ApiModeratePostInput extends JsonObject {
89
+ "target_type": string;
90
+ "target_id": string;
91
+ "action": string;
92
+ "reason"?: string;
93
+ }
94
+ /** Backend response type: response without a declared JSON model. */
95
+ export interface ApiModeratePostResponse extends ApiEnvelope<JsonValue> {
96
+ }
97
+ /** Backend response type: response without a declared JSON model. */
98
+ export interface ApiModerationQueueGetResponse extends ApiEnvelope<JsonValue> {
99
+ }
100
+ /** Backend query type: FeedQuery. */
101
+ export interface ApiListPostsGetQuery extends QueryParams {
102
+ "q"?: string;
103
+ "author_id"?: string;
104
+ "kind"?: string;
105
+ "category_id"?: string;
106
+ "page": number;
107
+ "limit": number;
108
+ }
109
+ /** Backend response type: response without a declared JSON model. */
110
+ export interface ApiListPostsGetResponse extends ApiEnvelope<JsonValue> {
111
+ }
112
+ /** Backend request type: CreatePost. */
113
+ export interface ApiCreatePostPostInput extends JsonObject {
114
+ "category_id"?: string;
115
+ "kind": string;
116
+ "visibility": string;
117
+ "title"?: string;
118
+ "body": string;
119
+ "media": JsonValue;
120
+ "metadata": JsonValue;
121
+ "requires_moderation": boolean;
122
+ }
123
+ /** Backend response type: response without a declared JSON model. */
124
+ export interface ApiCreatePostPostResponse extends ApiEnvelope<JsonValue> {
125
+ }
126
+ /** Backend response type: response without a declared JSON model. */
127
+ export interface ApiDeletePostDeleteResponse extends ApiEnvelope<JsonValue> {
128
+ }
129
+ /** Backend response type: response without a declared JSON model. */
130
+ export interface ApiGetPostGetResponse extends ApiEnvelope<JsonValue> {
131
+ }
132
+ /** Backend request type: UpdatePost. */
133
+ export interface ApiUpdatePostPatchInput extends JsonObject {
134
+ "category_id"?: string;
135
+ "kind"?: string;
136
+ "visibility"?: string;
137
+ "title"?: string;
138
+ "body"?: string;
139
+ "media"?: JsonValue;
140
+ "metadata"?: JsonValue;
141
+ }
142
+ /** Backend response type: response without a declared JSON model. */
143
+ export interface ApiUpdatePostPatchResponse extends ApiEnvelope<JsonValue> {
144
+ }
145
+ /** Backend response type: response without a declared JSON model. */
146
+ export interface ApiListPostCommentsGetApiV1PostsIdCommentsResponse extends ApiEnvelope<JsonValue> {
147
+ }
148
+ /** Backend request type: CreateComment. */
149
+ export interface ApiCreatePostCommentPostApiV1PostsIdCommentsInput extends JsonObject {
150
+ "parent_id"?: string;
151
+ "body": string;
152
+ "requires_moderation": boolean;
153
+ }
154
+ /** Backend response type: response without a declared JSON model. */
155
+ export interface ApiCreatePostCommentPostApiV1PostsIdCommentsResponse extends ApiEnvelope<JsonValue> {
156
+ }
157
+ /** Backend response type: response without a declared JSON model. */
158
+ export interface ApiRemovePostReactionDeleteApiV1PostsIdLikeResponse extends ApiEnvelope<JsonValue> {
159
+ }
160
+ /** Backend response type: response without a declared JSON model. */
161
+ export interface ApiLikePostPutResponse extends ApiEnvelope<JsonValue> {
162
+ }
163
+ /** Backend response type: response without a declared JSON model. */
164
+ export interface ApiRemovePostReactionDeleteApiV1PostsIdReactionResponse extends ApiEnvelope<JsonValue> {
165
+ }
166
+ /** Backend response type: response without a declared JSON model. */
167
+ export interface ApiPostReactionsGetApiV1PostsIdReactionResponse extends ApiEnvelope<JsonValue> {
168
+ }
169
+ /** Backend request type: SetReaction. */
170
+ export interface ApiSetPostReactionPutInput extends JsonObject {
171
+ "reaction_type": string;
172
+ }
173
+ /** Backend response type: response without a declared JSON model. */
174
+ export interface ApiSetPostReactionPutResponse extends ApiEnvelope<JsonValue> {
175
+ }
176
+ /** Backend response type: response without a declared JSON model. */
177
+ export interface ApiRemovePostReactionDeleteApiV1ReactionsPostIdResponse extends ApiEnvelope<JsonValue> {
178
+ }
179
+ /** Backend response type: response without a declared JSON model. */
180
+ export interface ApiPostReactionsGetApiV1ReactionsPostIdResponse extends ApiEnvelope<JsonValue> {
181
+ }
182
+ /** Backend request type: SetReaction. */
183
+ export interface ApiSetPostReactionPostInput extends JsonObject {
184
+ "reaction_type": string;
185
+ }
186
+ /** Backend response type: response without a declared JSON model. */
187
+ export interface ApiSetPostReactionPostResponse extends ApiEnvelope<JsonValue> {
188
+ }
189
+ /** Backend request type: CreateReport. */
190
+ export interface ApiCreateReportPostInput extends JsonObject {
191
+ "target_type": string;
192
+ "target_id": string;
193
+ "reason": string;
194
+ "details"?: string;
195
+ }
196
+ /** Backend response type: response without a declared JSON model. */
197
+ export interface ApiCreateReportPostResponse extends ApiEnvelope<JsonValue> {
198
+ }
199
+ //# sourceMappingURL=operations.types.d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SAAS,CAAC;CACtG;AAED,qEAAqE;AACrE,MAAM,WAAW,+CAAgD,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC9F;AAED,yCAAyC;AACzC,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,eAAe,EAAE,MAAM,CAAC;CACzB;AACD,qEAAqE;AACrE,MAAM,WAAW,8BAA+B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC7E;AAED,0CAA0C;AAC1C,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,qEAAqE;AACrE,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC1E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operations.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.types.js","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,162 @@
1
+ import type { ApiEnvelope, JsonValue, QueryParams } from "@faiber/sdk-core";
2
+ export type SocialPostKind = "post" | "question" | "story" | "announcement";
3
+ export type SocialVisibility = "public" | "organization" | "private";
4
+ export type ModerationStatus = "pending" | "published" | "rejected" | "hidden";
5
+ export type ReactionType = "like" | "love" | "care" | "haha" | "wow" | "sad" | "angry";
6
+ export type SocialTargetType = "post" | "comment";
7
+ export type SocialCategoryStatus = "active" | "hidden" | "archived";
8
+ export interface SocialCategory {
9
+ id: string;
10
+ organization_id: string;
11
+ slug: string;
12
+ name: JsonValue;
13
+ description: JsonValue;
14
+ icon?: string | null;
15
+ color?: string | null;
16
+ sort_order: number;
17
+ status: SocialCategoryStatus;
18
+ requires_moderation: boolean;
19
+ metadata: JsonValue;
20
+ created_at: string;
21
+ updated_at: string;
22
+ }
23
+ export interface SocialPost {
24
+ id: string;
25
+ organization_id: string;
26
+ author_user_id: string;
27
+ category_id?: string | null;
28
+ kind: SocialPostKind;
29
+ visibility: SocialVisibility;
30
+ title?: string | null;
31
+ body: string;
32
+ media: JsonValue;
33
+ metadata: JsonValue;
34
+ moderation_status: ModerationStatus;
35
+ moderation_message?: string | null;
36
+ comments_count: number;
37
+ reactions_count: number;
38
+ created_at: string;
39
+ updated_at: string;
40
+ }
41
+ export interface SocialComment {
42
+ id: string;
43
+ organization_id: string;
44
+ post_id: string;
45
+ parent_id?: string | null;
46
+ user_id: string;
47
+ body: string;
48
+ moderation_status: ModerationStatus;
49
+ moderation_message?: string | null;
50
+ reactions_count: number;
51
+ replies_count: number;
52
+ created_at: string;
53
+ updated_at: string;
54
+ }
55
+ export interface SocialReaction {
56
+ id: string;
57
+ organization_id: string;
58
+ target_type: SocialTargetType;
59
+ target_id: string;
60
+ user_id: string;
61
+ reaction_type: ReactionType;
62
+ created_at: string;
63
+ updated_at: string;
64
+ }
65
+ export interface SocialReport {
66
+ id: string;
67
+ reporter_user_id: string;
68
+ target_type: SocialTargetType;
69
+ target_id: string;
70
+ reason: string;
71
+ details?: string | null;
72
+ status: "open" | "reviewing" | "resolved" | "dismissed";
73
+ created_at: string;
74
+ }
75
+ export interface FeedQuery extends QueryParams {
76
+ q?: string;
77
+ author_id?: string;
78
+ category_id?: string;
79
+ kind?: SocialPostKind;
80
+ page?: number;
81
+ limit?: number;
82
+ }
83
+ export interface CreatePostInput {
84
+ category_id?: string;
85
+ kind?: SocialPostKind;
86
+ visibility?: SocialVisibility;
87
+ title?: string;
88
+ body: string;
89
+ media?: JsonValue;
90
+ metadata?: JsonValue;
91
+ requires_moderation?: boolean;
92
+ }
93
+ export interface UpdatePostInput extends Partial<Omit<CreatePostInput, "requires_moderation">> {
94
+ }
95
+ export interface CreateCategoryInput {
96
+ slug: string;
97
+ name: JsonValue;
98
+ description?: JsonValue;
99
+ icon?: string;
100
+ color?: string;
101
+ sort_order?: number;
102
+ status?: SocialCategoryStatus;
103
+ requires_moderation?: boolean;
104
+ metadata?: JsonValue;
105
+ }
106
+ export interface UpdateCategoryInput extends Partial<CreateCategoryInput> {
107
+ }
108
+ export interface CreateCommentInput {
109
+ parent_id?: string;
110
+ body: string;
111
+ requires_moderation?: boolean;
112
+ }
113
+ export interface UpdateCommentInput {
114
+ body: string;
115
+ }
116
+ export interface SetReactionInput {
117
+ reaction_type: ReactionType;
118
+ }
119
+ export interface CreateReportInput {
120
+ target_type: SocialTargetType;
121
+ target_id: string;
122
+ reason: string;
123
+ details?: string;
124
+ }
125
+ export interface ModerateTargetInput {
126
+ target_type: SocialTargetType | "report";
127
+ target_id: string;
128
+ action: "approve" | "reject" | "hide" | "resolve" | "dismiss";
129
+ reason?: string;
130
+ }
131
+ export interface ReactionSummary {
132
+ total: number;
133
+ by_type: Partial<Record<ReactionType, number>>;
134
+ viewer_reaction?: ReactionType | null;
135
+ }
136
+ export interface ModerationQueue {
137
+ posts: SocialPost[];
138
+ comments: SocialComment[];
139
+ reports: SocialReport[];
140
+ }
141
+ export interface LegacyImportInput {
142
+ dry_run?: boolean;
143
+ }
144
+ export interface LegacyImportReport {
145
+ dry_run: boolean;
146
+ categories: number;
147
+ posts: number;
148
+ comments: number;
149
+ post_reactions: number;
150
+ comment_reactions: number;
151
+ reaction_mappings: JsonValue;
152
+ }
153
+ export type SocialPostResponse = ApiEnvelope<SocialPost>;
154
+ export type SocialCategoryResponse = ApiEnvelope<SocialCategory>;
155
+ export type SocialCategoryListResponse = ApiEnvelope<SocialCategory[]>;
156
+ export type SocialPostListResponse = ApiEnvelope<SocialPost[]>;
157
+ export type SocialCommentResponse = ApiEnvelope<SocialComment>;
158
+ export type SocialCommentListResponse = ApiEnvelope<SocialComment[]>;
159
+ export type SocialReactionResponse = ApiEnvelope<SocialReaction>;
160
+ export type ReactionSummaryResponse = ApiEnvelope<ReactionSummary>;
161
+ export type ModerationQueueResponse = ApiEnvelope<ModerationQueue>;
162
+ //# sourceMappingURL=types.d.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AAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,SAAS,CAAC;CAAE;AAC/L,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC;AACvE,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;AAC/D,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC;AACrE,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AACjE,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@faiber/faiber-social",
3
+ "version": "0.3.0",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md"
17
+ ],
18
+ "dependencies": {
19
+ "@faiber/sdk-core": "0.3.0"
20
+ }
21
+ }