@01.software/sdk 0.45.0 → 0.46.0

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,4 +1,4 @@
1
- import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bH as ApiDeleteOptions, bI as PublicReadQueryOptions } from './types-BlOvjoTX.js';
1
+ import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bN as ApiDeleteOptions, bO as PublicReadQueryOptions } from './types-C60vHIkY.js';
2
2
  import './payload-types-CJZuXcgF.js';
3
3
  import { GenerateMetadataOptions, Metadata } from './metadata.js';
4
4
  import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-CaPq2AE4.js';
@@ -1,4 +1,4 @@
1
- import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bH as ApiDeleteOptions, bI as PublicReadQueryOptions } from './types-C4WuJfw7.cjs';
1
+ import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bN as ApiDeleteOptions, bO as PublicReadQueryOptions } from './types-xlqBeW2N.cjs';
2
2
  import './payload-types-CJZuXcgF.cjs';
3
3
  import { GenerateMetadataOptions, Metadata } from './metadata.cjs';
4
4
  import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-BAG0MH0u.cjs';
package/dist/index.cjs CHANGED
@@ -565,6 +565,11 @@ function redactSensitiveHeaders(headers) {
565
565
  redacted["x-preview-token"]
566
566
  );
567
567
  }
568
+ if (redacted["x-custom-payment-signature"]) {
569
+ redacted["x-custom-payment-signature"] = redactSensitiveHeader(
570
+ redacted["x-custom-payment-signature"]
571
+ );
572
+ }
568
573
  return redacted;
569
574
  }
570
575
  function getErrorSuggestion(status) {
@@ -1565,6 +1570,14 @@ var COMMERCE_ENDPOINTS = {
1565
1570
  create: endpoint("POST", "/api/payment-sessions/create"),
1566
1571
  retrieve: endpoint("POST", "/api/payment-sessions/retrieve"),
1567
1572
  cancel: endpoint("POST", "/api/payment-sessions/cancel"),
1573
+ custom: {
1574
+ create: sharedEndpoint(
1575
+ COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.create
1576
+ ),
1577
+ confirm: sharedEndpoint(
1578
+ COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.confirm
1579
+ )
1580
+ },
1568
1581
  server: {
1569
1582
  create: endpoint("POST", "/api/payment-sessions/server/create"),
1570
1583
  retrieve: endpoint("POST", "/api/payment-sessions/server/retrieve"),