@objectid/oid-provider 1.0.7 → 1.0.8
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/dist/core.d.ts +10 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +11 -0
- package/dist/core.js.map +1 -0
- package/dist-cjs/core.js +39 -0
- package/dist-cjs/core.js.map +1 -0
- package/package.json +85 -60
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { ObjectIdProviderConfig, TxExecResult, ObjectEdge } from "./types/types";
|
|
2
|
+
export type { ObjectIdApi, TxMethodName, TxMethods, MethodParams, MethodReturn } from "./api";
|
|
3
|
+
export { createObjectIdApi } from "./api";
|
|
4
|
+
export { createOid, type Oid, type OidSession, type ConnectParams, type Network } from "./oid";
|
|
5
|
+
export type { ConfigPackageIds, LoadedConfig } from "./onchain/config";
|
|
6
|
+
export { loadPublicConfig, loadConfigJsonByObjectId, loadEffectiveConfig, findUserConfigObjectId, configType, dlvcProxyUrl, } from "./onchain/config";
|
|
7
|
+
export { DEFAULT_CONFIG_PACKAGE_IDS, DEFAULT_SHARED_CONFIG_OBJECT_ID, type CanonicalNetwork } from "./onchain/defaults";
|
|
8
|
+
export * from "./methods";
|
|
9
|
+
export { asJsonString } from "./env";
|
|
10
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGtF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAG/F,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGxH,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Server-safe entrypoint: everything except React exports.
|
|
2
|
+
export { createObjectIdApi } from "./api";
|
|
3
|
+
// OID high-level wrapper
|
|
4
|
+
export { createOid } from "./oid";
|
|
5
|
+
export { loadPublicConfig, loadConfigJsonByObjectId, loadEffectiveConfig, findUserConfigObjectId, configType, dlvcProxyUrl, } from "./onchain/config";
|
|
6
|
+
export { DEFAULT_CONFIG_PACKAGE_IDS, DEFAULT_SHARED_CONFIG_OBJECT_ID } from "./onchain/defaults";
|
|
7
|
+
// Tx methods + their exported Params types (for IntelliSense)
|
|
8
|
+
export * from "./methods";
|
|
9
|
+
// Utilities
|
|
10
|
+
export { asJsonString } from "./env";
|
|
11
|
+
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAM3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,yBAAyB;AACzB,OAAO,EAAE,SAAS,EAA+D,MAAM,OAAO,CAAC;AAI/F,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,+BAA+B,EAAyB,MAAM,oBAAoB,CAAC;AAExH,8DAA8D;AAC9D,cAAc,WAAW,CAAC;AAE1B,YAAY;AACZ,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
|
package/dist-cjs/core.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Server-safe entrypoint: everything except React exports.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.asJsonString = exports.DEFAULT_SHARED_CONFIG_OBJECT_ID = exports.DEFAULT_CONFIG_PACKAGE_IDS = exports.dlvcProxyUrl = exports.configType = exports.findUserConfigObjectId = exports.loadEffectiveConfig = exports.loadConfigJsonByObjectId = exports.loadPublicConfig = exports.createOid = exports.createObjectIdApi = void 0;
|
|
19
|
+
var api_1 = require("./api");
|
|
20
|
+
Object.defineProperty(exports, "createObjectIdApi", { enumerable: true, get: function () { return api_1.createObjectIdApi; } });
|
|
21
|
+
// OID high-level wrapper
|
|
22
|
+
var oid_1 = require("./oid");
|
|
23
|
+
Object.defineProperty(exports, "createOid", { enumerable: true, get: function () { return oid_1.createOid; } });
|
|
24
|
+
var config_1 = require("./onchain/config");
|
|
25
|
+
Object.defineProperty(exports, "loadPublicConfig", { enumerable: true, get: function () { return config_1.loadPublicConfig; } });
|
|
26
|
+
Object.defineProperty(exports, "loadConfigJsonByObjectId", { enumerable: true, get: function () { return config_1.loadConfigJsonByObjectId; } });
|
|
27
|
+
Object.defineProperty(exports, "loadEffectiveConfig", { enumerable: true, get: function () { return config_1.loadEffectiveConfig; } });
|
|
28
|
+
Object.defineProperty(exports, "findUserConfigObjectId", { enumerable: true, get: function () { return config_1.findUserConfigObjectId; } });
|
|
29
|
+
Object.defineProperty(exports, "configType", { enumerable: true, get: function () { return config_1.configType; } });
|
|
30
|
+
Object.defineProperty(exports, "dlvcProxyUrl", { enumerable: true, get: function () { return config_1.dlvcProxyUrl; } });
|
|
31
|
+
var defaults_1 = require("./onchain/defaults");
|
|
32
|
+
Object.defineProperty(exports, "DEFAULT_CONFIG_PACKAGE_IDS", { enumerable: true, get: function () { return defaults_1.DEFAULT_CONFIG_PACKAGE_IDS; } });
|
|
33
|
+
Object.defineProperty(exports, "DEFAULT_SHARED_CONFIG_OBJECT_ID", { enumerable: true, get: function () { return defaults_1.DEFAULT_SHARED_CONFIG_OBJECT_ID; } });
|
|
34
|
+
// Tx methods + their exported Params types (for IntelliSense)
|
|
35
|
+
__exportStar(require("./methods"), exports);
|
|
36
|
+
// Utilities
|
|
37
|
+
var env_1 = require("./env");
|
|
38
|
+
Object.defineProperty(exports, "asJsonString", { enumerable: true, get: function () { return env_1.asJsonString; } });
|
|
39
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";AAAA,2DAA2D;;;;;;;;;;;;;;;;;AAM3D,6BAA0C;AAAjC,wGAAA,iBAAiB,OAAA;AAE1B,yBAAyB;AACzB,6BAA+F;AAAtF,gGAAA,SAAS,OAAA;AAIlB,2CAO0B;AANxB,0GAAA,gBAAgB,OAAA;AAChB,kHAAA,wBAAwB,OAAA;AACxB,6GAAA,mBAAmB,OAAA;AACnB,gHAAA,sBAAsB,OAAA;AACtB,oGAAA,UAAU,OAAA;AACV,sGAAA,YAAY,OAAA;AAEd,+CAAwH;AAA/G,sHAAA,0BAA0B,OAAA;AAAE,2HAAA,+BAA+B,OAAA;AAEpE,8DAA8D;AAC9D,4CAA0B;AAE1B,YAAY;AACZ,6BAAqC;AAA5B,mGAAA,YAAY,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,60 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@objectid/oid-provider",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Client-side ObjectID Provider SDK: executes Move calls directly (no backend).",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "./dist-cjs/index.js",
|
|
8
|
-
"module": "./dist/index.js",
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"require": "./dist-cjs/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./react": {
|
|
17
|
-
"types": "./dist/react/index.d.ts",
|
|
18
|
-
"import": "./dist/react/index.js",
|
|
19
|
-
"require": "./dist-cjs/react/index.js"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@objectid/oid-provider",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"description": "Client-side ObjectID Provider SDK: executes Move calls directly (no backend).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist-cjs/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist-cjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react/index.d.ts",
|
|
18
|
+
"import": "./dist/react/index.js",
|
|
19
|
+
"require": "./dist-cjs/react/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./core": {
|
|
22
|
+
"types": "./dist/core.d.ts",
|
|
23
|
+
"import": "./dist/core.js",
|
|
24
|
+
"require": "./dist-cjs/core.js"
|
|
25
|
+
},
|
|
26
|
+
"./api": {
|
|
27
|
+
"types": "./dist/api.d.ts",
|
|
28
|
+
"import": "./dist/api.js",
|
|
29
|
+
"require": "./dist-cjs/api.js"
|
|
30
|
+
},
|
|
31
|
+
"./methods": {
|
|
32
|
+
"types": "./dist/methods.d.ts",
|
|
33
|
+
"import": "./dist/methods.js",
|
|
34
|
+
"require": "./dist-cjs/methods.js"
|
|
35
|
+
},
|
|
36
|
+
"./env": {
|
|
37
|
+
"types": "./dist/env.d.ts",
|
|
38
|
+
"import": "./dist/env.js",
|
|
39
|
+
"require": "./dist-cjs/env.js"
|
|
40
|
+
},
|
|
41
|
+
"./oid": {
|
|
42
|
+
"types": "./dist/oid/index.d.ts",
|
|
43
|
+
"import": "./dist/oid/index.js",
|
|
44
|
+
"require": "./dist-cjs/oid/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist",
|
|
49
|
+
"dist-cjs",
|
|
50
|
+
"README.md"
|
|
51
|
+
],
|
|
52
|
+
"sideEffects": false,
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "node scripts/build.mjs",
|
|
55
|
+
"prepublishOnly": "npm run build"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/",
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@iota/identity-wasm": "^1.8.0-beta.2",
|
|
63
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependenciesMeta": {
|
|
66
|
+
"react": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@iota/iota-sdk": "^1.0.0",
|
|
72
|
+
"axios": "^1.13.2",
|
|
73
|
+
"open-location-code-typescript": "^1.5.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@iota/identity-wasm": "^1.8.0-beta.2",
|
|
77
|
+
"@types/react": "^18.3.5",
|
|
78
|
+
"react": "^18.3.1",
|
|
79
|
+
"typescript": "^5.5.4"
|
|
80
|
+
},
|
|
81
|
+
"repository": {
|
|
82
|
+
"type": "git",
|
|
83
|
+
"url": "git+https://github.com/ObjectID-io/oid-provider.git"
|
|
84
|
+
}
|
|
85
|
+
}
|