@permaweb/libs 0.0.80 → 0.0.82

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.
@@ -11,6 +11,7 @@ export type DependencyType = {
11
11
  export type ProcessReadType = {
12
12
  processId: string;
13
13
  path?: string;
14
+ appendPath?: string;
14
15
  hydrate?: boolean;
15
16
  fallbackAction?: string;
16
17
  tags?: TagType[];
@@ -142,6 +143,11 @@ export type CommentCreateArgType = {
142
143
  tags?: TagType[];
143
144
  metadata?: object;
144
145
  };
146
+ export type CommentRulesType = {
147
+ profileAgeRequired?: number;
148
+ mutedWords?: string[];
149
+ requireProfileThumbnail?: boolean;
150
+ };
145
151
  export type CollectionManifestType = {
146
152
  type: string;
147
153
  items: string[];
@@ -81,6 +81,13 @@ declare function init(deps: Helpers.DependencyType): {
81
81
  commentsId: string;
82
82
  commentId: string;
83
83
  }) => Promise<string>;
84
+ getRules: (args: {
85
+ commentsId: string;
86
+ }) => Promise<Helpers.CommentRulesType>;
87
+ updateRules: (args: {
88
+ commentsId: string;
89
+ rules: Helpers.CommentRulesType;
90
+ }) => Promise<string>;
84
91
  createCollection: (args: {
85
92
  title: string;
86
93
  description: string;
@@ -1,4 +1,4 @@
1
- import { CommentCreateArgType, DependencyType } from '../helpers/types.ts';
1
+ import { CommentCreateArgType, CommentRulesType, DependencyType } from '../helpers/types.ts';
2
2
  export declare function createCommentWith(deps: DependencyType): (args: CommentCreateArgType) => Promise<string>;
3
3
  export declare function getCommentsWith(deps: DependencyType): (args: {
4
4
  commentsId: string;
@@ -29,3 +29,10 @@ export declare function unpinCommentWith(deps: DependencyType): (args: {
29
29
  commentsId: string;
30
30
  commentId: string;
31
31
  }) => Promise<string>;
32
+ export declare function getRulesWith(deps: DependencyType): (args: {
33
+ commentsId: string;
34
+ }) => Promise<CommentRulesType>;
35
+ export declare function updateRulesWith(deps: DependencyType): (args: {
36
+ commentsId: string;
37
+ rules: CommentRulesType;
38
+ }) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",