@clerk/backend 3.0.0-canary.v20251210190209 → 3.0.0-canary.v20251210190938

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/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createAuthenticateRequest,
3
3
  createBackendApiClient,
4
4
  verifyToken
5
- } from "./chunk-5XNHVJUL.mjs";
5
+ } from "./chunk-MWRPJ7XC.mjs";
6
6
  import "./chunk-YBVFDYDR.mjs";
7
7
  import {
8
8
  withLegacyReturn
package/dist/internal.js CHANGED
@@ -56,7 +56,7 @@ module.exports = __toCommonJS(internal_exports);
56
56
  // src/constants.ts
57
57
  var API_URL = "https://api.clerk.com";
58
58
  var API_VERSION = "v1";
59
- var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251210190209"}`;
59
+ var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251210190938"}`;
60
60
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
61
61
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
62
62
  var Attributes = {
@@ -1023,13 +1023,36 @@ var APIKeysAPI = class extends AbstractAPI {
1023
1023
  bodyParams: params
1024
1024
  });
1025
1025
  }
1026
- async revoke(params) {
1026
+ async get(apiKeyId) {
1027
+ this.requireId(apiKeyId);
1028
+ return this.request({
1029
+ method: "GET",
1030
+ path: joinPaths(basePath4, apiKeyId)
1031
+ });
1032
+ }
1033
+ async update(params) {
1027
1034
  const { apiKeyId, ...bodyParams } = params;
1028
1035
  this.requireId(apiKeyId);
1036
+ return this.request({
1037
+ method: "PATCH",
1038
+ path: joinPaths(basePath4, apiKeyId),
1039
+ bodyParams
1040
+ });
1041
+ }
1042
+ async delete(apiKeyId) {
1043
+ this.requireId(apiKeyId);
1044
+ return this.request({
1045
+ method: "DELETE",
1046
+ path: joinPaths(basePath4, apiKeyId)
1047
+ });
1048
+ }
1049
+ async revoke(params) {
1050
+ const { apiKeyId, revocationReason = null } = params;
1051
+ this.requireId(apiKeyId);
1029
1052
  return this.request({
1030
1053
  method: "POST",
1031
1054
  path: joinPaths(basePath4, apiKeyId, "revoke"),
1032
- bodyParams
1055
+ bodyParams: { revocationReason }
1033
1056
  });
1034
1057
  }
1035
1058
  async getSecret(apiKeyId) {