@propxchain/core-client 0.2.1-canary.12 → 0.2.1-canary.13
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 +2 -3
- package/dist/auth.d.ts +7 -7
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +5 -5
- package/dist/auth.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mock.js +1 -1
- package/dist/mock.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/auth.ts +8 -9
- package/src/canisters/document_storage/document_storage.did.d.ts +3 -3
- package/src/canisters/document_verification/document_verification.did.d.ts +3 -3
- package/src/canisters/email_service/email_service.did.d.ts +3 -3
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +3 -3
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +3 -3
- package/src/canisters/property_registry/property_registry.did.d.ts +3 -3
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +3 -3
- package/src/canisters/user_management/user_management.did.d.ts +3 -3
- package/src/client.ts +1 -1
- package/src/index.ts +2 -2
- package/src/mock.ts +1 -1
- package/src/types.ts +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ npm install @propxchain/core-client
|
|
|
10
10
|
pnpm add @propxchain/core-client
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Peer requirements: Node 20+ (or any modern browser). The `@
|
|
13
|
+
Peer requirements: Node 20+ (or any modern browser). The `@icp-sdk/core` and `@icp-sdk/auth` packages are direct dependencies.
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
@@ -45,8 +45,7 @@ const client = new PropXchainClient({
|
|
|
45
45
|
### With an identity
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
|
-
import { PropXchainClient } from "@propxchain/core-client";
|
|
49
|
-
import { Ed25519KeyIdentity } from "@dfinity/identity";
|
|
48
|
+
import { PropXchainClient, Ed25519KeyIdentity } from "@propxchain/core-client";
|
|
50
49
|
|
|
51
50
|
const identity = Ed25519KeyIdentity.generate();
|
|
52
51
|
const client = new PropXchainClient({ identity });
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Auth primitives re-exported from `@
|
|
2
|
+
* Auth primitives re-exported from `@icp-sdk/*` so consumers do not need
|
|
3
3
|
* to depend on those packages directly. The consumer authenticates with
|
|
4
4
|
* either Internet Identity (via `AuthClient`) or an Ed25519 key pair
|
|
5
5
|
* (derived from a Supabase session), then hands the resulting `Identity`
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* Re-export surface is intentionally narrow. Anything not listed here is
|
|
9
9
|
* considered internal to core-client.
|
|
10
10
|
*/
|
|
11
|
-
export { Principal } from "@
|
|
12
|
-
export { Ed25519KeyIdentity } from "@
|
|
13
|
-
export { AuthClient } from "@
|
|
14
|
-
export type { AuthClientCreateOptions,
|
|
15
|
-
export { Actor, HttpAgent } from "@
|
|
16
|
-
export type { Identity, ActorSubclass, ActorConfig, ActorMethod, } from "@
|
|
11
|
+
export { Principal } from "@icp-sdk/core/principal";
|
|
12
|
+
export { Ed25519KeyIdentity } from "@icp-sdk/core/identity";
|
|
13
|
+
export { AuthClient, IdbStorage } from "@icp-sdk/auth/client";
|
|
14
|
+
export type { AuthClientCreateOptions, AuthClientSignInOptions, } from "@icp-sdk/auth/client";
|
|
15
|
+
export { Actor, HttpAgent } from "@icp-sdk/core/agent";
|
|
16
|
+
export type { Identity, ActorSubclass, ActorConfig, ActorMethod, } from "@icp-sdk/core/agent";
|
|
17
17
|
//# sourceMappingURL=auth.d.ts.map
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9D,YAAY,EACV,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EACV,QAAQ,EACR,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,qBAAqB,CAAC"}
|
package/dist/auth.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Auth primitives re-exported from `@
|
|
2
|
+
* Auth primitives re-exported from `@icp-sdk/*` so consumers do not need
|
|
3
3
|
* to depend on those packages directly. The consumer authenticates with
|
|
4
4
|
* either Internet Identity (via `AuthClient`) or an Ed25519 key pair
|
|
5
5
|
* (derived from a Supabase session), then hands the resulting `Identity`
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* Re-export surface is intentionally narrow. Anything not listed here is
|
|
9
9
|
* considered internal to core-client.
|
|
10
10
|
*/
|
|
11
|
-
export { Principal } from "@
|
|
12
|
-
export { Ed25519KeyIdentity } from "@
|
|
13
|
-
export { AuthClient } from "@
|
|
14
|
-
export { Actor, HttpAgent } from "@
|
|
11
|
+
export { Principal } from "@icp-sdk/core/principal";
|
|
12
|
+
export { Ed25519KeyIdentity } from "@icp-sdk/core/identity";
|
|
13
|
+
export { AuthClient, IdbStorage } from "@icp-sdk/auth/client";
|
|
14
|
+
export { Actor, HttpAgent } from "@icp-sdk/core/agent";
|
|
15
15
|
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAK9D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Actor, HttpAgent } from "@
|
|
1
|
+
import { Actor, HttpAgent } from "@icp-sdk/core/agent";
|
|
2
2
|
import { idlFactory as transactionManagerIdl } from "./canisters/transaction_manager/index.js";
|
|
3
3
|
import { idlFactory as documentStorageIdl } from "./canisters/document_storage/index.js";
|
|
4
4
|
import { idlFactory as userManagementIdl } from "./canisters/user_management/index.js";
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,UAAU,IAAI,kBAAkB,E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E,KAAK,EAAE,UAAU,EAAE,WAAW,CAAC,uBAAuB,EAAE,CAC3D,CAAC;QACJ,IAAI,CAAC,UAAU,GAAG,oBAAoB,EAAE,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC/C,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { CoreClientError, wrapAgentError, type CoreClientErrorCode, } from "./er
|
|
|
4
4
|
export { withRetry, type RetryOptions } from "./retry.js";
|
|
5
5
|
export { createAuditTrailStub, createAgentHarnessStub, type AuditTrailStub, type AgentHarnessStub, type AuditEvent, type AuditFilter, } from "./stubs.js";
|
|
6
6
|
export { MAINNET_CANISTER_IDS, type CanisterIds, type IPropXchainClient, type PropXchainClientOptions, type TransactionManagerService, type DocumentStorageService, type UserManagementService, type LedgerManagerService, type PropertyRegistryService, type DocumentVerificationService, type EmailServiceService, type LandRegistryIntegrationService, } from "./types.js";
|
|
7
|
-
export { Principal, Ed25519KeyIdentity, AuthClient, Actor, HttpAgent, type Identity, type ActorSubclass, type ActorConfig, type ActorMethod, type AuthClientCreateOptions, type
|
|
7
|
+
export { Principal, Ed25519KeyIdentity, AuthClient, IdbStorage, Actor, HttpAgent, type Identity, type ActorSubclass, type ActorConfig, type ActorMethod, type AuthClientCreateOptions, type AuthClientSignInOptions, } from "./auth.js";
|
|
8
8
|
export { idlFactory as transactionManagerIdl } from "./canisters/transaction_manager/index.js";
|
|
9
9
|
export { idlFactory as documentStorageIdl } from "./canisters/document_storage/index.js";
|
|
10
10
|
export { idlFactory as userManagementIdl } from "./canisters/user_management/index.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,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pB,OAAO,EACL,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,GACpC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,KAAK,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,UAAU,IAAI,0BAA0B,EAAE,MAAM,gDAAgD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { CoreClientError, wrapAgentError, } from "./errors.js";
|
|
|
4
4
|
export { withRetry } from "./retry.js";
|
|
5
5
|
export { createAuditTrailStub, createAgentHarnessStub, } from "./stubs.js";
|
|
6
6
|
export { MAINNET_CANISTER_IDS, } from "./types.js";
|
|
7
|
-
export { Principal, Ed25519KeyIdentity, AuthClient, Actor, HttpAgent, } from "./auth.js";
|
|
7
|
+
export { Principal, Ed25519KeyIdentity, AuthClient, IdbStorage, Actor, HttpAgent, } from "./auth.js";
|
|
8
8
|
export { idlFactory as transactionManagerIdl } from "./canisters/transaction_manager/index.js";
|
|
9
9
|
export { idlFactory as documentStorageIdl } from "./canisters/document_storage/index.js";
|
|
10
10
|
export { idlFactory as userManagementIdl } from "./canisters/user_management/index.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,cAAc,GAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAqB,MAAM,YAAY,CAAC;AAC1D,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GAKvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,oBAAoB,GAYrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,KAAK,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,cAAc,GAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAqB,MAAM,YAAY,CAAC;AAC1D,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GAKvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,oBAAoB,GAYrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,KAAK,EACL,SAAS,GAOV,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,UAAU,IAAI,0BAA0B,EAAE,MAAM,gDAAgD,CAAC"}
|
package/dist/mock.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Principal } from "@
|
|
1
|
+
import { Principal } from "@icp-sdk/core/principal";
|
|
2
2
|
import { createAuditTrailStub, createAgentHarnessStub, } from "./stubs.js";
|
|
3
3
|
export const MOCK_ENV_FLAG = "NEXT_PUBLIC_USE_MOCK";
|
|
4
4
|
const MOCK_PRINCIPAL = Principal.fromText("2vxsx-fae");
|
package/dist/mock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../src/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../src/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAYpD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GAGvB,MAAM,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7C,IAAI,CAAC,uBAAuB,GAAG,iCAAiC,EAAE,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,oBAAoB,EAAE,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC/C,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAA0C,OAAO,EAAE;IAC/E,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;AACjE,CAAC;AAED,SAAS,OAAO;IACd,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC;IACtE,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpAgent, Identity } from "@
|
|
1
|
+
import type { HttpAgent, Identity } from "@icp-sdk/core/agent";
|
|
2
2
|
import type { TransactionManagerService } from "./canisters/transaction_manager/index.js";
|
|
3
3
|
import type { DocumentStorageService } from "./canisters/document_storage/index.js";
|
|
4
4
|
import type { UserManagementService } from "./canisters/user_management/index.js";
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAA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gB,EAAE,uBAAuB,CAAC;IACnD,QAAQ,CAAC,oBAAoB,EAAE,2BAA2B,CAAC;IAC3D,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,uBAAuB,EAAE,8BAA8B,CAAC;IACjE,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;CACzC;AAED,YAAY,EACV,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,2BAA2B,EAC3B,mBAAmB,EACnB,8BAA8B,GAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propxchain/core-client",
|
|
3
|
-
"version": "0.2.1-canary.
|
|
3
|
+
"version": "0.2.1-canary.13",
|
|
4
4
|
"description": "Typed TypeScript client for the PropXchain core canisters on the Internet Computer. Includes a deterministic mock mode for local development and tests.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -35,11 +35,8 @@
|
|
|
35
35
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@dfinity/candid": "^3.4.1",
|
|
41
|
-
"@dfinity/identity": "^3.4.1",
|
|
42
|
-
"@dfinity/principal": "^3.4.1"
|
|
38
|
+
"@icp-sdk/auth": "^7.0.0",
|
|
39
|
+
"@icp-sdk/core": "^5.4.0"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
42
|
"@types/node": "^22.10.2",
|
package/src/auth.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Auth primitives re-exported from `@
|
|
2
|
+
* Auth primitives re-exported from `@icp-sdk/*` so consumers do not need
|
|
3
3
|
* to depend on those packages directly. The consumer authenticates with
|
|
4
4
|
* either Internet Identity (via `AuthClient`) or an Ed25519 key pair
|
|
5
5
|
* (derived from a Supabase session), then hands the resulting `Identity`
|
|
@@ -9,18 +9,17 @@
|
|
|
9
9
|
* considered internal to core-client.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
export { Principal } from "@
|
|
13
|
-
export { Ed25519KeyIdentity } from "@
|
|
14
|
-
export { AuthClient } from "@
|
|
12
|
+
export { Principal } from "@icp-sdk/core/principal";
|
|
13
|
+
export { Ed25519KeyIdentity } from "@icp-sdk/core/identity";
|
|
14
|
+
export { AuthClient, IdbStorage } from "@icp-sdk/auth/client";
|
|
15
15
|
export type {
|
|
16
16
|
AuthClientCreateOptions,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "@
|
|
20
|
-
export { Actor, HttpAgent } from "@dfinity/agent";
|
|
17
|
+
AuthClientSignInOptions,
|
|
18
|
+
} from "@icp-sdk/auth/client";
|
|
19
|
+
export { Actor, HttpAgent } from "@icp-sdk/core/agent";
|
|
21
20
|
export type {
|
|
22
21
|
Identity,
|
|
23
22
|
ActorSubclass,
|
|
24
23
|
ActorConfig,
|
|
25
24
|
ActorMethod,
|
|
26
|
-
} from "@
|
|
25
|
+
} from "@icp-sdk/core/agent";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export interface AuditLog {
|
|
6
6
|
'id' : bigint,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export interface AuditLog {
|
|
6
6
|
'id' : bigint,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export type ContactType = { 'support' : null } |
|
|
6
6
|
{ 'partners' : null } |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export type AuthenticationType = { 'api_key' : null } |
|
|
6
6
|
{ 'oauth2' : null };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export type AccountType = { 'company' : null } |
|
|
6
6
|
{ 'individual' : null };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export interface ChainPropertyView {
|
|
6
6
|
'status' : PropertyStatus,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export type AMLStatus = { 'verified' : null } |
|
|
6
6
|
{ 'pending' : null } |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
2
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
3
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
4
4
|
|
|
5
5
|
export type ActorType = { 'user' : null } |
|
|
6
6
|
{ 'agent' : null } |
|
package/src/client.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Actor, HttpAgent } from "@
|
|
1
|
+
import { Actor, HttpAgent } from "@icp-sdk/core/agent";
|
|
2
2
|
import { idlFactory as transactionManagerIdl } from "./canisters/transaction_manager/index.js";
|
|
3
3
|
import { idlFactory as documentStorageIdl } from "./canisters/document_storage/index.js";
|
|
4
4
|
import { idlFactory as userManagementIdl } from "./canisters/user_management/index.js";
|
package/src/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ export {
|
|
|
36
36
|
Principal,
|
|
37
37
|
Ed25519KeyIdentity,
|
|
38
38
|
AuthClient,
|
|
39
|
+
IdbStorage,
|
|
39
40
|
Actor,
|
|
40
41
|
HttpAgent,
|
|
41
42
|
type Identity,
|
|
@@ -43,8 +44,7 @@ export {
|
|
|
43
44
|
type ActorConfig,
|
|
44
45
|
type ActorMethod,
|
|
45
46
|
type AuthClientCreateOptions,
|
|
46
|
-
type
|
|
47
|
-
type IdbStorage,
|
|
47
|
+
type AuthClientSignInOptions,
|
|
48
48
|
} from "./auth.js";
|
|
49
49
|
|
|
50
50
|
export { idlFactory as transactionManagerIdl } from "./canisters/transaction_manager/index.js";
|
package/src/mock.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpAgent, Identity } from "@
|
|
1
|
+
import type { HttpAgent, Identity } from "@icp-sdk/core/agent";
|
|
2
2
|
import type { TransactionManagerService } from "./canisters/transaction_manager/index.js";
|
|
3
3
|
import type { DocumentStorageService } from "./canisters/document_storage/index.js";
|
|
4
4
|
import type { UserManagementService } from "./canisters/user_management/index.js";
|