@clerk/backend 3.5.0-snapshot.v20260602010447 → 3.5.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,11 +1,12 @@
1
1
  import type { AccountlessApplication } from '../resources/AccountlessApplication';
2
2
  import { AbstractAPI } from './AbstractApi';
3
+ type AccountlessApplicationParams = {
4
+ requestHeaders?: Headers;
5
+ source?: string;
6
+ };
3
7
  export declare class AccountlessApplicationAPI extends AbstractAPI {
4
- createAccountlessApplication(params?: {
5
- requestHeaders?: Headers;
6
- }): Promise<AccountlessApplication>;
7
- completeAccountlessApplicationOnboarding(params?: {
8
- requestHeaders?: Headers;
9
- }): Promise<AccountlessApplication>;
8
+ createAccountlessApplication(params?: AccountlessApplicationParams): Promise<AccountlessApplication>;
9
+ completeAccountlessApplicationOnboarding(params?: AccountlessApplicationParams): Promise<AccountlessApplication>;
10
10
  }
11
+ export {};
11
12
  //# sourceMappingURL=AccountlessApplicationsAPI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountlessApplicationsAPI.d.ts","sourceRoot":"","sources":["../../../src/api/endpoints/AccountlessApplicationsAPI.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,qBAAa,yBAA0B,SAAQ,WAAW;IAC3C,4BAA4B,CAAC,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE;IASlE,wCAAwC,CAAC,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE;CAQ5F"}
1
+ {"version":3,"file":"AccountlessApplicationsAPI.d.ts","sourceRoot":"","sources":["../../../src/api/endpoints/AccountlessApplicationsAPI.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,KAAK,4BAA4B,GAAG;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IAC3C,4BAA4B,CAAC,MAAM,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAYpG,wCAAwC,CACnD,MAAM,CAAC,EAAE,4BAA4B,GACpC,OAAO,CAAC,sBAAsB,CAAC;CAWnC"}
@@ -284,7 +284,7 @@ var require_dist = __commonJS({
284
284
  // src/constants.ts
285
285
  var API_URL = "https://api.clerk.com";
286
286
  var API_VERSION = "v1";
287
- var USER_AGENT = `${"@clerk/backend"}@${"3.5.0-snapshot.v20260602010447"}`;
287
+ var USER_AGENT = `${"@clerk/backend"}@${"3.5.0"}`;
288
288
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
289
289
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
290
290
  var Attributes = {
@@ -821,7 +821,10 @@ var AccountlessApplicationAPI = class extends AbstractAPI {
821
821
  return this.request({
822
822
  method: "POST",
823
823
  path: basePath3,
824
- headerParams
824
+ headerParams,
825
+ queryParams: {
826
+ source: params?.source
827
+ }
825
828
  });
826
829
  }
827
830
  async completeAccountlessApplicationOnboarding(params) {
@@ -829,7 +832,10 @@ var AccountlessApplicationAPI = class extends AbstractAPI {
829
832
  return this.request({
830
833
  method: "POST",
831
834
  path: joinPaths(basePath3, "complete"),
832
- headerParams
835
+ headerParams,
836
+ queryParams: {
837
+ source: params?.source
838
+ }
833
839
  });
834
840
  }
835
841
  };
@@ -6493,9 +6499,28 @@ function prunePrivateMetadata(resource) {
6493
6499
  if ("private_metadata" in resource) {
6494
6500
  delete resource["private_metadata"];
6495
6501
  }
6502
+ if ("_raw" in resource && resource["_raw"]) {
6503
+ resource["_raw"] = redactPrivateMetadataDeep(resource["_raw"]);
6504
+ }
6496
6505
  }
6497
6506
  return resource;
6498
6507
  }
6508
+ function redactPrivateMetadataDeep(value) {
6509
+ if (Array.isArray(value)) {
6510
+ return value.map(redactPrivateMetadataDeep);
6511
+ }
6512
+ if (value && typeof value === "object") {
6513
+ const clone = {};
6514
+ for (const key of Object.keys(value)) {
6515
+ if (key === "private_metadata" || key === "privateMetadata") {
6516
+ continue;
6517
+ }
6518
+ clone[key] = redactPrivateMetadataDeep(value[key]);
6519
+ }
6520
+ return clone;
6521
+ }
6522
+ return value;
6523
+ }
6499
6524
 
6500
6525
  // src/internal.ts
6501
6526
  import { reverificationError, reverificationErrorResponse } from "@clerk/shared/authorization-errors";
@@ -6528,4 +6553,4 @@ export {
6528
6553
  debugRequestState,
6529
6554
  createAuthenticateRequest
6530
6555
  };
6531
- //# sourceMappingURL=chunk-R2WUNB3P.mjs.map
6556
+ //# sourceMappingURL=chunk-H3NCOZAT.mjs.map