@settlemint/dalp-sdk 3.1.19 → 3.1.20-release.34489123303

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,22 +8,27 @@
8
8
  *
9
9
  * @module
10
10
  */
11
- import type { ContractRouterClient } from "@orpc/contract";
12
- import type { JsonifiedClient } from "@orpc/openapi-client";
13
- import type { rpcContract } from "./contract.js";
11
+ import type { DalpApi } from "./api-types.generated.js";
14
12
  /**
15
13
  * Fully typed DALP API client.
16
14
  *
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).
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.
20
25
  *
21
26
  * Provides auto-completed access to all v2 API namespaces:
22
27
  * `account`, `actions`, `addons`, `admin`, `contacts`, `exchangeRates`,
23
28
  * `externalToken`, `identityRecovery`, `monitoring`, `search`,
24
29
  * `settings`, `system`, `token`, `transaction`, `user`.
25
30
  */
26
- export type DalpClient = JsonifiedClient<ContractRouterClient<typeof rpcContract, DalpClientCallContext>>;
31
+ export type DalpClient = DalpApi;
27
32
  /**
28
33
  * Per-call client context threaded into individual SDK operations as the second
29
34
  * 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,oBAAoB,EAAE,MAAM,gBAAgB,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ceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAYA,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":"AAcA,mDAAmD;AACnD,eAAO,MAAM,WAAW,EAAE,MAA4B,CAAC;AAEvD,6DAA6D;AAC7D,eAAO,MAAM,cAAc,QAA6B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Generated from package.json. Do not edit.
3
+ *
4
+ * @module
5
+ */
6
+ /** Semver version of the published SDK package. */
7
+ export declare const SDK_PACKAGE_VERSION = "3.1.20-release.34489123303";
8
+ //# sourceMappingURL=version.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../src/version.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mDAAmD;AACnD,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "3.1.19",
3
+ "version": "3.1.20-release.34489123303",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",
@@ -41,13 +41,15 @@
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/fix-dts-extensions.js",
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",
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"
50
+ "typecheck": "tsgo",
51
+ "codegen": "bun scripts/codegen.ts",
52
+ "check:dts-portability": "bun scripts/check-dts-portability.ts"
51
53
  },
52
54
  "dependencies": {
53
55
  "@better-auth/api-key": "1.6.19",
@@ -68,6 +70,7 @@
68
70
  "@arethetypeswrong/cli": "0.18.3",
69
71
  "@dalp/api-contract": "workspace:*",
70
72
  "@dalp/errors": "workspace:*",
73
+ "@orpc/zod": "1.14.6",
71
74
  "@tools/typescript-config": "workspace:*",
72
75
  "@types/bun": "1.3.14",
73
76
  "publint": "0.3.21",