@permaweb/libs 0.0.35 → 0.0.37

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.
@@ -6,14 +6,16 @@ export declare const AO: {
6
6
  asset: string;
7
7
  collection: string;
8
8
  collectionActivity: string;
9
- profile: string;
10
- zone: string;
9
+ zone: {
10
+ id: string;
11
+ version: string;
12
+ };
11
13
  };
12
14
  collectionRegistry: string;
13
15
  profileRegistry: string;
14
16
  };
15
17
  export declare const HB: {
16
- node: string;
18
+ defaultRouter: string;
17
19
  };
18
20
  export declare const CONTENT_TYPES: {
19
21
  [key: string]: {
@@ -45,7 +47,6 @@ export declare const TAGS: {
45
47
  assetType: string;
46
48
  banner: string;
47
49
  bootloader: string;
48
- bootloaderInit: string;
49
50
  collectionId: string;
50
51
  collectionName: string;
51
52
  commericalUse: string;
@@ -63,6 +64,7 @@ export declare const TAGS: {
63
64
  initialOwner: string;
64
65
  license: string;
65
66
  name: string;
67
+ onBoot: string;
66
68
  paymentAddress: string;
67
69
  paymentMode: string;
68
70
  profileCreator: string;
@@ -81,6 +81,7 @@ export type AssetCreateArgsType = {
81
81
  metadata?: object;
82
82
  tags?: TagType[];
83
83
  src?: string;
84
+ users?: string[];
84
85
  };
85
86
  export type AssetHeaderType = {
86
87
  id: string;
@@ -1,6 +1,8 @@
1
1
  import * as Common from './common/index.ts';
2
2
  import * as Helpers from './helpers/index.ts';
3
3
  import * as Services from './services/index.ts';
4
+ export * as Types from './helpers/types.ts';
5
+ export declare const CurrentZoneVersion: string;
4
6
  declare function init(deps: Helpers.DependencyType): {
5
7
  createZone: (args: {
6
8
  data?: any;
@@ -13,11 +15,23 @@ declare function init(deps: Helpers.DependencyType): {
13
15
  }, zoneId: string) => Promise<string | null>;
14
16
  getZone: (zoneId: string) => Promise<any | null>;
15
17
  setZoneRoles: (args: {
16
- roles: string[];
17
18
  granteeId: string;
19
+ roles: string[];
20
+ type: "wallet" | "process";
21
+ sendInvite: boolean;
22
+ }[], zoneId: string) => Promise<string | null>;
23
+ joinZone: (args: {
24
+ zoneToJoinId: string;
25
+ path?: string;
18
26
  }, zoneId: string) => Promise<string | null>;
27
+ updateZoneVersion: (args: {
28
+ zoneId: string;
29
+ }) => Promise<string | null>;
19
30
  createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
20
31
  updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
32
+ updateProfileVersion: (args: {
33
+ profileId: string;
34
+ }) => Promise<string | null>;
21
35
  getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
22
36
  getProfileByWalletAddress: (walletAddress: string) => Promise<(Helpers.ProfileType & any) | null>;
23
37
  createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
@@ -61,7 +75,6 @@ declare function init(deps: Helpers.DependencyType): {
61
75
  createProcess: (args: Helpers.ProcessCreateType, statusCB?: (status: any) => void) => Promise<string>;
62
76
  readProcess: (args: Helpers.MessageSendType) => Promise<any>;
63
77
  sendMessage: (args: Helpers.MessageSendType) => Promise<string>;
64
- waitForProcess: typeof Common.waitForProcess;
65
78
  mapFromProcessCase: typeof Helpers.mapFromProcessCase;
66
79
  mapToProcessCase: typeof Helpers.mapToProcessCase;
67
80
  };
@@ -69,4 +82,3 @@ declare const _default: {
69
82
  init: typeof init;
70
83
  };
71
84
  export default _default;
72
- export * from './helpers/types.ts';
@@ -1,9 +1,8 @@
1
1
  import { DependencyType, ProfileArgsType, ProfileType } from '../helpers/types.ts';
2
- export declare function createProfileWith_LEGACY(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
3
- export declare function updateProfileWith_LEGACY(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
4
- export declare function getProfileByIdWith_LEGACY(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
5
- export declare function getProfileByWalletAddressWith_LEGACY(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
6
2
  export declare function createProfileWith(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
7
3
  export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
4
+ export declare function updateProfileVersionWith(deps: DependencyType): (args: {
5
+ profileId: string;
6
+ }) => Promise<string | null>;
8
7
  export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
9
8
  export declare function getProfileByWalletAddressWith(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
@@ -8,8 +8,17 @@ export declare function addToZoneWith(deps: DependencyType): (args: {
8
8
  path: string;
9
9
  data: object;
10
10
  }, zoneId: string) => Promise<string | null>;
11
- export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
12
11
  export declare function setZoneRolesWith(deps: DependencyType): (args: {
13
- roles: string[];
14
12
  granteeId: string;
13
+ roles: string[];
14
+ type: "wallet" | "process";
15
+ sendInvite: boolean;
16
+ }[], zoneId: string) => Promise<string | null>;
17
+ export declare function joinZoneWith(deps: DependencyType): (args: {
18
+ zoneToJoinId: string;
19
+ path?: string;
15
20
  }, zoneId: string) => Promise<string | null>;
21
+ export declare function updateZoneVersionWith(deps: DependencyType): (args: {
22
+ zoneId: string;
23
+ }) => Promise<string | null>;
24
+ export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -41,33 +41,23 @@
41
41
  "format": "eslint --fix . && npx prettier --write .",
42
42
  "build": "node build.js"
43
43
  },
44
- "dependencies": {
45
- "@ardrive/turbo-sdk": "^1.23.1",
46
- "@permaweb/arx": "^1.0.0",
47
- "arweave": "^1.15.5",
48
- "buffer": "^6.0.3",
49
- "crypto-browserify": "^3.12.1",
50
- "esbuild-plugin-alias": "^0.2.1",
51
- "esbuild-plugin-polyfill-node": "^0.3.0",
52
- "os-browserify": "^0.3.0",
53
- "process": "^0.11.10",
54
- "stream-browserify": "^3.0.0",
55
- "tsc-alias": "^1.8.10",
56
- "web-streams-polyfill": "^4.1.0"
57
- },
58
44
  "devDependencies": {
59
- "@types/async-retry": "^1.4.9",
60
45
  "@types/node": "^22.10.4",
61
46
  "@typescript-eslint/eslint-plugin": "^5.57.1",
62
47
  "@typescript-eslint/parser": "^5.57.1",
48
+ "crypto-browserify": "^3.12.1",
63
49
  "esbuild": "^0.24.2",
50
+ "esbuild-plugin-alias": "^0.2.1",
64
51
  "esbuild-plugin-d.ts": "^1.3.1",
52
+ "esbuild-plugin-polyfill-node": "^0.3.0",
65
53
  "eslint": "^8.35.0",
66
54
  "eslint-plugin-import": "^2.27.5",
67
55
  "eslint-plugin-simple-import-sort": "^10.0.0",
68
- "ts-loader": "^9.5.1",
56
+ "os-browserify": "^0.3.0",
57
+ "process": "^0.11.10",
58
+ "stream-browserify": "^3.0.0",
59
+ "tsc-alias": "^1.8.10",
69
60
  "typescript": "^5.7.2",
70
- "webpack": "^5.97.1",
71
- "webpack-cli": "^6.0.1"
61
+ "web-streams-polyfill": "^4.1.0"
72
62
  }
73
63
  }