@clerk/backend 3.0.0-canary.v20251210171743 → 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.js CHANGED
@@ -144,13 +144,36 @@ var APIKeysAPI = class extends AbstractAPI {
144
144
  bodyParams: params
145
145
  });
146
146
  }
147
- async revoke(params) {
147
+ async get(apiKeyId) {
148
+ this.requireId(apiKeyId);
149
+ return this.request({
150
+ method: "GET",
151
+ path: joinPaths(basePath4, apiKeyId)
152
+ });
153
+ }
154
+ async update(params) {
148
155
  const { apiKeyId, ...bodyParams } = params;
149
156
  this.requireId(apiKeyId);
157
+ return this.request({
158
+ method: "PATCH",
159
+ path: joinPaths(basePath4, apiKeyId),
160
+ bodyParams
161
+ });
162
+ }
163
+ async delete(apiKeyId) {
164
+ this.requireId(apiKeyId);
165
+ return this.request({
166
+ method: "DELETE",
167
+ path: joinPaths(basePath4, apiKeyId)
168
+ });
169
+ }
170
+ async revoke(params) {
171
+ const { apiKeyId, revocationReason = null } = params;
172
+ this.requireId(apiKeyId);
150
173
  return this.request({
151
174
  method: "POST",
152
175
  path: joinPaths(basePath4, apiKeyId, "revoke"),
153
- bodyParams
176
+ bodyParams: { revocationReason }
154
177
  });
155
178
  }
156
179
  async getSecret(apiKeyId) {
@@ -1668,7 +1691,7 @@ var snakecase_keys_default = snakecaseKeys;
1668
1691
  // src/constants.ts
1669
1692
  var API_URL = "https://api.clerk.com";
1670
1693
  var API_VERSION = "v1";
1671
- var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251210171743"}`;
1694
+ var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251210190938"}`;
1672
1695
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
1673
1696
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
1674
1697
  var Attributes = {