@treeseed/sdk 0.13.0-rc.23 → 0.13.0-rc.24

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.
@@ -48,11 +48,12 @@ class ProviderProtocolClient {
48
48
  fetchImpl: this.fetchImpl,
49
49
  userAgent: this.userAgent
50
50
  });
51
+ const idempotencyKey = options.idempotencyKey ?? (operation.descriptor.idempotency.required ? globalThis.crypto.randomUUID() : void 0);
51
52
  const response = await client.invoke(operation, {
52
53
  path: input.path ?? {},
53
54
  query: input.query ?? {},
54
55
  body: input.body
55
- }, { authorization, headers: options.headers, idempotencyKey: options.idempotencyKey, signal: controller.signal });
56
+ }, { authorization, headers: options.headers, idempotencyKey, signal: controller.signal });
56
57
  return response.data;
57
58
  } catch (error) {
58
59
  if (error instanceof CapacityProviderApiError) throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.23",
3
+ "version": "0.13.0-rc.24",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {