@clerk/backend 3.0.0-canary.v20251210190209 → 3.0.0-canary.v20251210204632
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/api/endpoints/APIKeysApi.d.ts +21 -0
- package/dist/api/endpoints/APIKeysApi.d.ts.map +1 -1
- package/dist/{chunk-5XNHVJUL.mjs → chunk-THMSKXVH.mjs} +27 -4
- package/dist/chunk-THMSKXVH.mjs.map +1 -0
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal.js +26 -3
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-5XNHVJUL.mjs.map +0 -1
package/dist/index.mjs
CHANGED
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.
|
|
59
|
+
var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251210204632"}`;
|
|
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
|
|
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) {
|