@settlemint/dalp-sdk 3.0.7 → 3.0.8-release.29045553558

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
@@ -23,7 +23,31 @@ import type { rpcContract } from "./contract.js";
23
23
  * `externalToken`, `identityRecovery`, `monitoring`, `search`,
24
24
  * `settings`, `system`, `token`, `transaction`, `user`.
25
25
  */
26
- export type DalpClient = JsonifiedClient<ContractRouterClient<typeof rpcContract>>;
26
+ export type DalpClient = JsonifiedClient<ContractRouterClient<typeof rpcContract, DalpClientCallContext>>;
27
+ /**
28
+ * Per-call client context threaded into individual SDK operations as the second
29
+ * argument, e.g. `client.token.create(input, { context: { idempotencyKey } })`.
30
+ * Every field is optional and scoped to the single call, unlike the client-level
31
+ * {@link BaseDalpClientConfig.idempotencyKey} which applies to every request.
32
+ */
33
+ export interface DalpClientCallContext {
34
+ /**
35
+ * Idempotency key sent as the `Idempotency-Key` header for this call only,
36
+ * overriding any client-level key. Use a fresh value per genuine retry of a
37
+ * failed mutation: dapi burns the key of a failed transaction, so re-sending
38
+ * under the same key is rejected ("previously failed. Use a new idempotency
39
+ * key to retry"). A stable value within one logical attempt keeps network-level
40
+ * fetch retries deduplicated.
41
+ */
42
+ idempotencyKey?: string;
43
+ /**
44
+ * oRPC error codes the caller treats as expected for this call and does not
45
+ * want surfaced by its own error logging (e.g. an existence probe that accepts
46
+ * `NOT_FOUND`). A client-side hint scoped to the single call; it is not sent to
47
+ * the server.
48
+ */
49
+ skipLoggingFor?: readonly string[];
50
+ }
27
51
  interface BaseDalpClientConfig {
28
52
  /** Base URL of the DALP API (e.g., `"https://dalp.example.com"`). */
29
53
  url: string;
@@ -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,CAAC;AAC3D,O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
3
- "version": "3.0.7",
3
+ "version": "3.0.8-release.29045553558",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",