-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapi-keys.js
80 lines (79 loc) · 1.86 KB
/
api-keys.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import {
clearApiCache,
invokeFetch
} from "./chunks/YKZ2QYHN.js";
import "./chunks/DLKLPD7T.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/api-keys.ts
var getApiKeys = async (query, options) => invokeFetch("api-keys", {
method: "get",
pathTemplate: "/api/v1/api-keys",
query,
options
});
var createApiKey = async (body, options) => invokeFetch("api-keys", {
method: "post",
pathTemplate: "/api/v1/api-keys",
body,
contentType: "application/json",
options
});
var getApiKeysConfig = async (tenantId, options) => invokeFetch("api-keys", {
method: "get",
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
pathVariables: { tenantId },
options
});
var patchApiKeysConfig = async (tenantId, body, options) => invokeFetch("api-keys", {
method: "patch",
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
pathVariables: { tenantId },
body,
contentType: "application/json",
options
});
var deleteApiKey = async (id, options) => invokeFetch("api-keys", {
method: "delete",
pathTemplate: "/api/v1/api-keys/{id}",
pathVariables: { id },
options
});
var getApiKey = async (id, options) => invokeFetch("api-keys", {
method: "get",
pathTemplate: "/api/v1/api-keys/{id}",
pathVariables: { id },
options
});
var patchApiKey = async (id, body, options) => invokeFetch("api-keys", {
method: "patch",
pathTemplate: "/api/v1/api-keys/{id}",
pathVariables: { id },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("api-keys");
}
var apiKeysExport = {
getApiKeys,
createApiKey,
getApiKeysConfig,
patchApiKeysConfig,
deleteApiKey,
getApiKey,
patchApiKey,
clearCache
};
var api_keys_default = apiKeysExport;
export {
clearCache,
createApiKey,
api_keys_default as default,
deleteApiKey,
getApiKey,
getApiKeys,
getApiKeysConfig,
patchApiKey,
patchApiKeysConfig
};