@welshman/util 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,8 +15,8 @@ export declare const makeListBannedPubkeys: () => ManagementRequest;
15
15
  export declare const makeAllowPubkey: (pubkey: string, reason?: string) => ManagementRequest;
16
16
  export declare const makeUnallowPubkey: (pubkey: string, reason?: string) => ManagementRequest;
17
17
  export declare const makeListAllowedPubkeys: () => ManagementRequest;
18
- export declare const makeCreateRole: (id: string, label: string, description: string, color: string, order: number) => ManagementRequest;
19
- export declare const makeEditRole: (id: string, label: string, description: string, color: string, order: number) => ManagementRequest;
18
+ export declare const makeCreateRole: (id: string, label: string, description: string, color: number, order: number) => ManagementRequest;
19
+ export declare const makeEditRole: (id: string, label: string, description: string, color: number, order: number) => ManagementRequest;
20
20
  export declare const makeDeleteRole: (id: string) => ManagementRequest;
21
21
  export declare const makeAssignRole: (pubkey: string, roleId: string) => ManagementRequest;
22
22
  export declare const makeUnassignRole: (pubkey: string, roleId: string) => ManagementRequest;
@@ -59,8 +59,8 @@ export declare class ManagementApi {
59
59
  allowPubkey: (pubkey: string, reason?: string) => Promise<ManagementResponse>;
60
60
  unallowPubkey: (pubkey: string, reason?: string) => Promise<ManagementResponse>;
61
61
  listAllowedPubkeys: () => Promise<ManagementResponse>;
62
- createRole: (id: string, label: string, description: string, color: string, order: number) => Promise<ManagementResponse>;
63
- editRole: (id: string, label: string, description: string, color: string, order: number) => Promise<ManagementResponse>;
62
+ createRole: (id: string, label: string, description: string, color: number, order: number) => Promise<ManagementResponse>;
63
+ editRole: (id: string, label: string, description: string, color: number, order: number) => Promise<ManagementResponse>;
64
64
  deleteRole: (id: string) => Promise<ManagementResponse>;
65
65
  assignRole: (pubkey: string, roleId: string) => Promise<ManagementResponse>;
66
66
  unassignRole: (pubkey: string, roleId: string) => Promise<ManagementResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welshman/util",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "author": "hodlbod",
5
5
  "license": "MIT",
6
6
  "description": "A collection of nostr-related utilities.",
@@ -21,14 +21,14 @@
21
21
  "peerDependencies": {
22
22
  "@noble/curves": "^1.9.7",
23
23
  "nostr-tools": "^2.19.4",
24
- "@welshman/lib": "0.9.1"
24
+ "@welshman/lib": "0.9.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@noble/curves": "^1.9.7",
28
28
  "nostr-tools": "^2.19.4",
29
29
  "rimraf": "~6.0.0",
30
30
  "typescript": "~5.8.0",
31
- "@welshman/lib": "0.9.1"
31
+ "@welshman/lib": "0.9.2"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "pnpm run clean && pnpm run compile --force",