@settlemint/dalp-sdk 3.1.19-release.34482856023 → 3.1.19

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/types.d.ts CHANGED
@@ -8,27 +8,22 @@
8
8
  *
9
9
  * @module
10
10
  */
11
- import type { DalpApi } from "./api-types.generated.js";
11
+ import type { ContractRouterClient } from "@orpc/contract";
12
+ import type { JsonifiedClient } from "@orpc/openapi-client";
13
+ import type { rpcContract } from "./contract.js";
12
14
  /**
13
15
  * Fully typed DALP API client.
14
16
  *
15
- * The shapes come from `./api-types.generated.ts` rather than from the contract
16
- * router's inferred type. A declaration that names the contract cannot be
17
- * published: `@dalp/api-contract` is private, and the inferred type does not
18
- * survive declaration emit at all (`TS7056` on the larger route files). See
19
- * `./contract.ts`.
20
- *
21
- * Response values carry the wire representation, so a `bigint` field reads as a
22
- * decimal string and a timestamp as an ISO string. The client serializes on the
23
- * way out but does not decode on the way back, so a request may pass either the
24
- * native value or its string form.
17
+ * Uses `JsonifiedClient` because the SDK communicates via the OpenAPI/REST
18
+ * endpoint where values are serialized as standard JSON (e.g., Date → string,
19
+ * BigInt string).
25
20
  *
26
21
  * Provides auto-completed access to all v2 API namespaces:
27
22
  * `account`, `actions`, `addons`, `admin`, `contacts`, `exchangeRates`,
28
23
  * `externalToken`, `identityRecovery`, `monitoring`, `search`,
29
24
  * `settings`, `system`, `token`, `transaction`, `user`.
30
25
  */
31
- export type DalpClient = DalpApi;
26
+ export type DalpClient = JsonifiedClient<ContractRouterClient<typeof rpcContract, DalpClientCallContext>>;
32
27
  /**
33
28
  * Per-call client context threaded into individual SDK operations as the second
34
29
  * argument, e.g. `client.token.create(input, { context: { idempotencyKey } })`.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AA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"","sources":["../src/version.ts"],"names":[],"mappings":"AAcA,mDAAmD;AACnD,eAAO,MAAM,WAAW,EAAE,MAA4B,CAAC;AAEvD,6DAA6D;AAC7D,eAAO,MAAM,cAAc,QAA6B,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAYA,mDAAmD;AACnD,eAAO,MAAM,WAAW,EAAE,MAA4B,CAAC;AAEvD,6DAA6D;AAC7D,eAAO,MAAM,cAAc,QAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "3.1.19-release.34482856023",
3
+ "version": "3.1.19",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",
@@ -41,15 +41,13 @@
41
41
  "access": "public"
42
42
  },
43
43
  "scripts": {
44
- "build": "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/normalize-dist.ts && bun scripts/fix-dts-extensions.js && bun scripts/check-dts-portability.ts",
44
+ "build": "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/fix-dts-extensions.js",
45
45
  "publint": "publint run --strict --pack npm",
46
46
  "attw": "attw --pack . --profile esm-only",
47
47
  "publish": "cp ../../LICENSE . && npm publish --ignore-scripts --tag ${TAG:-latest} --access public",
48
48
  "prepack": "cp ../../LICENSE .",
49
49
  "test": "bun test --parallel=2 tests",
50
- "typecheck": "tsgo",
51
- "codegen": "bun scripts/codegen.ts",
52
- "check:dts-portability": "bun scripts/check-dts-portability.ts"
50
+ "typecheck": "tsgo"
53
51
  },
54
52
  "dependencies": {
55
53
  "@better-auth/api-key": "1.6.19",
@@ -70,7 +68,6 @@
70
68
  "@arethetypeswrong/cli": "0.18.3",
71
69
  "@dalp/api-contract": "workspace:*",
72
70
  "@dalp/errors": "workspace:*",
73
- "@orpc/zod": "1.14.6",
74
71
  "@tools/typescript-config": "workspace:*",
75
72
  "@types/bun": "1.3.14",
76
73
  "publint": "0.3.21",