@settlemint/dalp-sdk 3.0.7-release.28580809394 → 3.0.7-release.28592696802

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 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAmBvF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,GAAG,UAAU,CAqF9F"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAyB,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAmB9G;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,GAAG,UAAU,CAsG9F"}
package/dist/index.js CHANGED
@@ -92482,7 +92482,7 @@ function normalizeDalpBaseUrl(url) {
92482
92482
  // package.json
92483
92483
  var package_default = {
92484
92484
  name: "@settlemint/dalp-sdk",
92485
- version: "3.0.7-release.28580809394",
92485
+ version: "3.0.7-release.28592696802",
92486
92486
  private: false,
92487
92487
  description: "Fully typed SDK for the DALP tokenization platform API",
92488
92488
  homepage: "https://settlemint.com",
@@ -92620,6 +92620,10 @@ function createDalpClient(config3) {
92620
92620
  if (idempotencyKey) {
92621
92621
  secured["Idempotency-Key"] = idempotencyKey;
92622
92622
  }
92623
+ const perCallIdempotencyKey = options.context?.idempotencyKey;
92624
+ if (perCallIdempotencyKey) {
92625
+ secured["Idempotency-Key"] = perCallIdempotencyKey;
92626
+ }
92623
92627
  if (organizationId) {
92624
92628
  secured["x-organization-id"] = organizationId;
92625
92629
  }
@@ -92634,9 +92638,18 @@ function createDalpClient(config3) {
92634
92638
  },
92635
92639
  plugins,
92636
92640
  customJsonSerializers: [
92637
- { condition: bigDecimalSerializer.condition, serialize: bigDecimalSerializer.serialize },
92638
- { condition: bigIntSerializer.condition, serialize: bigIntSerializer.serialize },
92639
- { condition: timestampSerializer.condition, serialize: timestampSerializer.serialize }
92641
+ {
92642
+ condition: bigDecimalSerializer.condition,
92643
+ serialize: bigDecimalSerializer.serialize
92644
+ },
92645
+ {
92646
+ condition: bigIntSerializer.condition,
92647
+ serialize: bigIntSerializer.serialize
92648
+ },
92649
+ {
92650
+ condition: timestampSerializer.condition,
92651
+ serialize: timestampSerializer.serialize
92652
+ }
92640
92653
  ],
92641
92654
  customErrorResponseBodyDecoder: decodeDapiErrorResponseBody,
92642
92655
  fetch: wrappedFetch
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,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC,oBAAoB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AAEnF,UAAU,oBAAoB;IAC5B,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAEpG;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAEhC;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,+EAA+E;IAC/E,MAAM,EAAE,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G;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAClE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "3.0.7-release.28580809394",
3
+ "version": "3.0.7-release.28592696802",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",