-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoauth-clients.js
112 lines (111 loc) · 3.15 KB
/
oauth-clients.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import {
clearApiCache,
invokeFetch
} from "./chunks/YKZ2QYHN.js";
import "./chunks/DLKLPD7T.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/oauth-clients.ts
var getOAuthClients = async (query, options) => invokeFetch("oauth-clients", {
method: "get",
pathTemplate: "/api/v1/oauth-clients",
query,
options
});
var createOAuthClient = async (body, options) => invokeFetch("oauth-clients", {
method: "post",
pathTemplate: "/api/v1/oauth-clients",
body,
contentType: "application/json",
options
});
var deleteOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
method: "delete",
pathTemplate: "/api/v1/oauth-clients/{id}",
pathVariables: { id },
options
});
var getOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
method: "get",
pathTemplate: "/api/v1/oauth-clients/{id}",
pathVariables: { id },
options
});
var patchOAuthClient = async (id, body, options) => invokeFetch("oauth-clients", {
method: "patch",
pathTemplate: "/api/v1/oauth-clients/{id}",
pathVariables: { id },
body,
contentType: "application/json",
options
});
var publishOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
method: "post",
pathTemplate: "/api/v1/oauth-clients/{id}/actions/publish",
pathVariables: { id },
options
});
var createOAuthClientSecret = async (id, options) => invokeFetch("oauth-clients", {
method: "post",
pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets",
pathVariables: { id },
options
});
var deleteOAuthClientSecret = async (id, hint, options) => invokeFetch("oauth-clients", {
method: "delete",
pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets/{hint}",
pathVariables: { id, hint },
options
});
var deleteOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
method: "delete",
pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
pathVariables: { id },
options
});
var getOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
method: "get",
pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
pathVariables: { id },
options
});
var patchOAuthClientConnectionConfig = async (id, body, options) => invokeFetch("oauth-clients", {
method: "patch",
pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
pathVariables: { id },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("oauth-clients");
}
var oauthClientsExport = {
getOAuthClients,
createOAuthClient,
deleteOAuthClient,
getOAuthClient,
patchOAuthClient,
publishOAuthClient,
createOAuthClientSecret,
deleteOAuthClientSecret,
deleteOAuthClientConnectionConfig,
getOAuthClientConnectionConfig,
patchOAuthClientConnectionConfig,
clearCache
};
var oauth_clients_default = oauthClientsExport;
export {
clearCache,
createOAuthClient,
createOAuthClientSecret,
oauth_clients_default as default,
deleteOAuthClient,
deleteOAuthClientConnectionConfig,
deleteOAuthClientSecret,
getOAuthClient,
getOAuthClientConnectionConfig,
getOAuthClients,
patchOAuthClient,
patchOAuthClientConnectionConfig,
publishOAuthClient
};