@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.
@@ -1,22 +1,17 @@
1
1
  /**
2
- * Re-exports the DALP v2 contract for the runtime link.
2
+ * Re-exports the DALP v2 contract.
3
3
  *
4
- * `bun build` inlines the contract definition, including every Zod schema from
5
- * workspace packages, so a consumer never installs a workspace-only package to
6
- * run the client. The declaration is a separate problem: `@dalp/api-contract`
7
- * is private and unresolvable for a consumer, and re-exporting its inferred
8
- * type leaves the published declaration pointing at a module that is not there.
9
- * Under `skipLibCheck` that resolves to `any` and silently unchecks every call.
4
+ * At build time, `bun build` bundles the contract definition (including all
5
+ * Zod schemas from workspace packages) into the SDK's `dist/` output.
6
+ * Consumers never need to install workspace-only packages.
10
7
  *
11
- * The explicit `AnyContractRouter` annotation keeps the emitted declaration
12
- * self-contained: `@orpc/contract` is a real dependency of this package. The
13
- * call-site types come from `./generated/api-types.ts` instead, which carries
14
- * the shapes rather than a reference to them.
8
+ * The SDK uses this contract with OpenAPILink to call the REST endpoint
9
+ * (/api/v2), where route definitions (method + path) drive proper HTTP
10
+ * method selection (GET for reads, POST for writes).
15
11
  *
16
- * Related: packages/dalp/api-contract/src/contract.ts, kit/sdk/scripts/codegen.ts
12
+ * Related: packages/dalp/api-contract/src/contract.ts
17
13
  *
18
14
  * @module
19
15
  */
20
- import type { AnyContractRouter } from "@orpc/contract";
21
- export declare const rpcContract: AnyContractRouter;
16
+ export { rpcContract } from "@dalp/api-contract/contract";
22
17
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,eAAO,MAAM,WAAW,EAAE,iBAAmC,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC"}