@groundcover/api-client 0.1.0
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/LICENSE +201 -0
- package/README.md +176 -0
- package/dist/_generated/client/client.gen.d.ts +2 -0
- package/dist/_generated/client/client.gen.js +216 -0
- package/dist/_generated/client/index.d.ts +10 -0
- package/dist/_generated/client/index.js +6 -0
- package/dist/_generated/client/types.gen.d.ts +120 -0
- package/dist/_generated/client/types.gen.js +2 -0
- package/dist/_generated/client/utils.gen.d.ts +37 -0
- package/dist/_generated/client/utils.gen.js +228 -0
- package/dist/_generated/client.gen.d.ts +12 -0
- package/dist/_generated/client.gen.js +3 -0
- package/dist/_generated/core/auth.gen.d.ts +25 -0
- package/dist/_generated/core/auth.gen.js +14 -0
- package/dist/_generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/_generated/core/bodySerializer.gen.js +57 -0
- package/dist/_generated/core/params.gen.d.ts +43 -0
- package/dist/_generated/core/params.gen.js +109 -0
- package/dist/_generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/_generated/core/pathSerializer.gen.js +106 -0
- package/dist/_generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/_generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/_generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/_generated/core/serverSentEvents.gen.js +132 -0
- package/dist/_generated/core/types.gen.d.ts +83 -0
- package/dist/_generated/core/types.gen.js +2 -0
- package/dist/_generated/core/utils.gen.d.ts +19 -0
- package/dist/_generated/core/utils.gen.js +87 -0
- package/dist/_generated/index.d.ts +2 -0
- package/dist/_generated/index.js +2 -0
- package/dist/_generated/sdk.gen.d.ts +471 -0
- package/dist/_generated/sdk.gen.js +1138 -0
- package/dist/_generated/types.gen.d.ts +11655 -0
- package/dist/_generated/types.gen.js +2 -0
- package/dist/client.d.ts +52 -0
- package/dist/client.js +189 -0
- package/dist/helpers.d.ts +15 -0
- package/dist/helpers.js +24 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/types/conditions.d.ts +25 -0
- package/dist/types/conditions.js +30 -0
- package/dist/types/matchers.d.ts +7 -0
- package/dist/types/matchers.js +8 -0
- package/dist/utils/ConditionSet.d.ts +47 -0
- package/dist/utils/ConditionSet.js +95 -0
- package/package.json +44 -0
- package/src/_generated/client/client.gen.ts +277 -0
- package/src/_generated/client/index.ts +27 -0
- package/src/_generated/client/types.gen.ts +218 -0
- package/src/_generated/client/utils.gen.ts +316 -0
- package/src/_generated/client.gen.ts +16 -0
- package/src/_generated/core/auth.gen.ts +48 -0
- package/src/_generated/core/bodySerializer.gen.ts +82 -0
- package/src/_generated/core/params.gen.ts +178 -0
- package/src/_generated/core/pathSerializer.gen.ts +171 -0
- package/src/_generated/core/queryKeySerializer.gen.ts +117 -0
- package/src/_generated/core/serverSentEvents.gen.ts +242 -0
- package/src/_generated/core/types.gen.ts +110 -0
- package/src/_generated/core/utils.gen.ts +140 -0
- package/src/_generated/index.ts +4 -0
- package/src/_generated/sdk.gen.ts +1267 -0
- package/src/_generated/types.gen.ts +12816 -0
- package/src/client.ts +273 -0
- package/src/helpers.ts +38 -0
- package/src/index.ts +7 -0
- package/src/types/conditions.ts +35 -0
- package/src/types/matchers.ts +8 -0
- package/src/utils/ConditionSet.ts +135 -0
|
@@ -0,0 +1,1138 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* List Skills
|
|
5
|
+
*
|
|
6
|
+
* Returns personal and organizational Skills available to the calling user.
|
|
7
|
+
*/
|
|
8
|
+
export const agentListSkills = (options) => (options?.client ?? client).get({
|
|
9
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
10
|
+
url: '/api/agent/skills',
|
|
11
|
+
...options
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Create Skill
|
|
15
|
+
*
|
|
16
|
+
* Creates a personal Skill, or an organizational Skill when is_organizational is true. Organizational Skills are admin only.
|
|
17
|
+
*/
|
|
18
|
+
export const agentCreateSkill = (options) => (options.client ?? client).post({
|
|
19
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
20
|
+
url: '/api/agent/skills',
|
|
21
|
+
...options,
|
|
22
|
+
headers: {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
...options.headers
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Delete Skill
|
|
29
|
+
*
|
|
30
|
+
* Deletes a personal or organizational Skill. Organizational Skills are admin only.
|
|
31
|
+
*/
|
|
32
|
+
export const agentDeleteSkill = (options) => (options.client ?? client).delete({
|
|
33
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
34
|
+
url: '/api/agent/skills/{skill_id}',
|
|
35
|
+
...options
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Get Skill
|
|
39
|
+
*
|
|
40
|
+
* Returns a personal or organizational Skill by ID.
|
|
41
|
+
*/
|
|
42
|
+
export const agentGetSkill = (options) => (options.client ?? client).get({
|
|
43
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
44
|
+
url: '/api/agent/skills/{skill_id}',
|
|
45
|
+
...options
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* Update Skill
|
|
49
|
+
*
|
|
50
|
+
* Updates a personal or organizational Skill. Organizational Skills and org-scope changes are admin only.
|
|
51
|
+
*/
|
|
52
|
+
export const agentUpdateSkill = (options) => (options.client ?? client).put({
|
|
53
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
54
|
+
url: '/api/agent/skills/{skill_id}',
|
|
55
|
+
...options,
|
|
56
|
+
headers: {
|
|
57
|
+
'Content-Type': 'application/json',
|
|
58
|
+
...options.headers
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export const deleteMetricsAggregatorConfig = (options) => (options?.client ?? client).delete({
|
|
62
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
63
|
+
url: '/api/aggregations/v1/metrics/config',
|
|
64
|
+
...options
|
|
65
|
+
});
|
|
66
|
+
export const getMetricsAggregatorConfig = (options) => (options?.client ?? client).get({
|
|
67
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
68
|
+
url: '/api/aggregations/v1/metrics/config',
|
|
69
|
+
...options
|
|
70
|
+
});
|
|
71
|
+
export const createMetricsAggregatorConfig = (options) => (options.client ?? client).post({
|
|
72
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
73
|
+
url: '/api/aggregations/v1/metrics/config',
|
|
74
|
+
...options,
|
|
75
|
+
headers: {
|
|
76
|
+
'Content-Type': 'application/json',
|
|
77
|
+
...options.headers
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export const updateMetricsAggregatorConfig = (options) => (options.client ?? client).put({
|
|
81
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
82
|
+
url: '/api/aggregations/v1/metrics/config',
|
|
83
|
+
...options,
|
|
84
|
+
headers: {
|
|
85
|
+
'Content-Type': 'application/json',
|
|
86
|
+
...options.headers
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Create Connected App
|
|
91
|
+
*
|
|
92
|
+
* Creates a new connected app for notifications.
|
|
93
|
+
*/
|
|
94
|
+
export const createConnectedApp = (options) => (options.client ?? client).post({
|
|
95
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
96
|
+
url: '/api/connected-apps/v1',
|
|
97
|
+
...options,
|
|
98
|
+
headers: {
|
|
99
|
+
'Content-Type': 'application/json',
|
|
100
|
+
...options.headers
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* Delete Connected App
|
|
105
|
+
*
|
|
106
|
+
* Deletes a connected app.
|
|
107
|
+
*/
|
|
108
|
+
export const deleteConnectedApp = (options) => (options.client ?? client).delete({
|
|
109
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
110
|
+
url: '/api/connected-apps/v1/{id}',
|
|
111
|
+
...options
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Get Connected App
|
|
115
|
+
*
|
|
116
|
+
* Retrieves a single connected app by ID.
|
|
117
|
+
*/
|
|
118
|
+
export const getConnectedApp = (options) => (options.client ?? client).get({
|
|
119
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
120
|
+
url: '/api/connected-apps/v1/{id}',
|
|
121
|
+
...options
|
|
122
|
+
});
|
|
123
|
+
/**
|
|
124
|
+
* Update Connected App
|
|
125
|
+
*
|
|
126
|
+
* Replaces an existing connected app.
|
|
127
|
+
*/
|
|
128
|
+
export const updateConnectedApp = (options) => (options.client ?? client).put({
|
|
129
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
130
|
+
url: '/api/connected-apps/v1/{id}',
|
|
131
|
+
...options,
|
|
132
|
+
headers: {
|
|
133
|
+
'Content-Type': 'application/json',
|
|
134
|
+
...options.headers
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
/**
|
|
138
|
+
* List Connected Apps
|
|
139
|
+
*
|
|
140
|
+
* Returns a list of connected apps filtered by the gcQL query.
|
|
141
|
+
* Supports freetext search on name, type:<type>, and notification_route:<route-name>.
|
|
142
|
+
*/
|
|
143
|
+
export const listConnectedApps = (options) => (options?.client ?? client).post({
|
|
144
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
145
|
+
url: '/api/connected-apps/v1/list',
|
|
146
|
+
...options,
|
|
147
|
+
headers: {
|
|
148
|
+
'Content-Type': 'application/json',
|
|
149
|
+
...options?.headers
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* Get Dashboards
|
|
154
|
+
*/
|
|
155
|
+
export const getDashboards = (options) => (options?.client ?? client).get({
|
|
156
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
157
|
+
url: '/api/dashboards',
|
|
158
|
+
...options
|
|
159
|
+
});
|
|
160
|
+
/**
|
|
161
|
+
* Create Dashboard
|
|
162
|
+
*/
|
|
163
|
+
export const createDashboard = (options) => (options.client ?? client).post({
|
|
164
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
165
|
+
url: '/api/dashboards',
|
|
166
|
+
...options,
|
|
167
|
+
headers: {
|
|
168
|
+
'Content-Type': 'application/json',
|
|
169
|
+
...options.headers
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* Delete Dashboard
|
|
174
|
+
*/
|
|
175
|
+
export const deleteDashboard = (options) => (options.client ?? client).delete({
|
|
176
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
177
|
+
url: '/api/dashboards/{id}',
|
|
178
|
+
...options
|
|
179
|
+
});
|
|
180
|
+
/**
|
|
181
|
+
* Get Dashboard by ID
|
|
182
|
+
*/
|
|
183
|
+
export const getDashboard = (options) => (options.client ?? client).get({
|
|
184
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
185
|
+
url: '/api/dashboards/{id}',
|
|
186
|
+
...options
|
|
187
|
+
});
|
|
188
|
+
/**
|
|
189
|
+
* Update Dashboard
|
|
190
|
+
*/
|
|
191
|
+
export const updateDashboard = (options) => (options.client ?? client).put({
|
|
192
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
193
|
+
url: '/api/dashboards/{id}',
|
|
194
|
+
...options,
|
|
195
|
+
headers: {
|
|
196
|
+
'Content-Type': 'application/json',
|
|
197
|
+
...options.headers
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
/**
|
|
201
|
+
* Archive Dashboard
|
|
202
|
+
*/
|
|
203
|
+
export const archiveDashboard = (options) => (options.client ?? client).post({
|
|
204
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
205
|
+
url: '/api/dashboards/{id}/archive',
|
|
206
|
+
...options
|
|
207
|
+
});
|
|
208
|
+
/**
|
|
209
|
+
* Restore Dashboard
|
|
210
|
+
*/
|
|
211
|
+
export const restoreDashboard = (options) => (options.client ?? client).post({
|
|
212
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
213
|
+
url: '/api/dashboards/{id}/restore',
|
|
214
|
+
...options
|
|
215
|
+
});
|
|
216
|
+
export const getDataIntegrationConfigs = (options) => (options?.client ?? client).get({
|
|
217
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
218
|
+
url: '/api/integrations/v1/data/config',
|
|
219
|
+
...options
|
|
220
|
+
});
|
|
221
|
+
export const getDataIntegrationConfigsByType = (options) => (options.client ?? client).get({
|
|
222
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
223
|
+
url: '/api/integrations/v1/data/config/{type}',
|
|
224
|
+
...options
|
|
225
|
+
});
|
|
226
|
+
export const createDataIntegrationConfig = (options) => (options.client ?? client).post({
|
|
227
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
228
|
+
url: '/api/integrations/v1/data/config/{type}',
|
|
229
|
+
...options,
|
|
230
|
+
headers: {
|
|
231
|
+
'Content-Type': 'application/json',
|
|
232
|
+
...options.headers
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
export const deleteDataIntegrationConfig = (options) => (options.client ?? client).delete({
|
|
236
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
237
|
+
url: '/api/integrations/v1/data/config/{type}/{id}',
|
|
238
|
+
...options
|
|
239
|
+
});
|
|
240
|
+
export const getDataIntegrationConfig = (options) => (options.client ?? client).get({
|
|
241
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
242
|
+
url: '/api/integrations/v1/data/config/{type}/{id}',
|
|
243
|
+
...options
|
|
244
|
+
});
|
|
245
|
+
export const updateDataIntegrationConfig = (options) => (options.client ?? client).put({
|
|
246
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
247
|
+
url: '/api/integrations/v1/data/config/{type}/{id}',
|
|
248
|
+
...options,
|
|
249
|
+
headers: {
|
|
250
|
+
'Content-Type': 'application/json',
|
|
251
|
+
...options.headers
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
export const describeDataIntegration = (options) => (options.client ?? client).get({
|
|
255
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
256
|
+
url: '/api/integrations/v1/data/describe/{type}',
|
|
257
|
+
...options
|
|
258
|
+
});
|
|
259
|
+
/**
|
|
260
|
+
* Get Kubernetes events over a specified time range.
|
|
261
|
+
*
|
|
262
|
+
* Retrieves and filters Kubernetes events, allowing for sorting and pagination.
|
|
263
|
+
*/
|
|
264
|
+
export const getEventsOverTime = (options) => (options.client ?? client).post({
|
|
265
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
266
|
+
url: '/api/k8s/v2/events-over-time',
|
|
267
|
+
...options,
|
|
268
|
+
headers: {
|
|
269
|
+
'Content-Type': 'application/json',
|
|
270
|
+
...options.headers
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
/**
|
|
274
|
+
* Events search
|
|
275
|
+
*/
|
|
276
|
+
export const eventsSearch = (options) => (options.client ?? client).post({
|
|
277
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
278
|
+
url: '/api/k8s/v2/events/search',
|
|
279
|
+
...options,
|
|
280
|
+
headers: {
|
|
281
|
+
'Content-Type': 'application/json',
|
|
282
|
+
...options.headers
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
/**
|
|
286
|
+
* Get clusters list.
|
|
287
|
+
*
|
|
288
|
+
* Retrieves a list of Kubernetes clusters based on provided source filters.
|
|
289
|
+
*/
|
|
290
|
+
export const clustersList = (options) => (options.client ?? client).post({
|
|
291
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
292
|
+
url: '/api/k8s/v3/clusters/list',
|
|
293
|
+
...options,
|
|
294
|
+
headers: {
|
|
295
|
+
'Content-Type': 'application/json',
|
|
296
|
+
...options.headers
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
/**
|
|
300
|
+
* Get workloads list.
|
|
301
|
+
*
|
|
302
|
+
* Retrieves a list of Kubernetes workloads based on provided source filters, conditions, sorting, and pagination.
|
|
303
|
+
*/
|
|
304
|
+
export const workloadsList = (options) => (options.client ?? client).post({
|
|
305
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
306
|
+
url: '/api/k8s/v3/workloads/list',
|
|
307
|
+
...options,
|
|
308
|
+
headers: {
|
|
309
|
+
'Content-Type': 'application/json',
|
|
310
|
+
...options.headers
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
/**
|
|
314
|
+
* Logs search
|
|
315
|
+
*/
|
|
316
|
+
export const searchLogs = (options) => (options.client ?? client).post({
|
|
317
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
318
|
+
url: '/api/logs/v2/search',
|
|
319
|
+
...options,
|
|
320
|
+
headers: {
|
|
321
|
+
'Content-Type': 'application/json',
|
|
322
|
+
...options.headers
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
/**
|
|
326
|
+
* GetKeys retrieves metric keys based on the provided request parameters.
|
|
327
|
+
*/
|
|
328
|
+
export const getMetricKeys = (options) => (options.client ?? client).post({
|
|
329
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
330
|
+
url: '/api/metrics/keys',
|
|
331
|
+
...options,
|
|
332
|
+
headers: {
|
|
333
|
+
'Content-Type': 'application/json',
|
|
334
|
+
...options.headers
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
/**
|
|
338
|
+
* GetNames retrieves metric names based on the provided request parameters.
|
|
339
|
+
*/
|
|
340
|
+
export const getMetricNames = (options) => (options.client ?? client).post({
|
|
341
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
342
|
+
url: '/api/metrics/names',
|
|
343
|
+
...options,
|
|
344
|
+
headers: {
|
|
345
|
+
'Content-Type': 'application/json',
|
|
346
|
+
...options.headers
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
/**
|
|
350
|
+
* Execute Prometheus query.
|
|
351
|
+
*
|
|
352
|
+
* Executes a Prometheus query (instant or range) against the metrics server.
|
|
353
|
+
* Accepts either a direct 'promql' string or components ('pipeline', 'filters', 'conditions', 'subPipelines') to build the query.
|
|
354
|
+
*/
|
|
355
|
+
export const metricsQuery = (options) => (options.client ?? client).post({
|
|
356
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
357
|
+
url: '/api/metrics/query',
|
|
358
|
+
...options,
|
|
359
|
+
headers: {
|
|
360
|
+
'Content-Type': 'application/json',
|
|
361
|
+
...options.headers
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
/**
|
|
365
|
+
* GetMetricValues retrieves metric values based on the provided request parameters.
|
|
366
|
+
*/
|
|
367
|
+
export const getMetricValues = (options) => (options.client ?? client).post({
|
|
368
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
369
|
+
url: '/api/metrics/values',
|
|
370
|
+
...options,
|
|
371
|
+
headers: {
|
|
372
|
+
'Content-Type': 'application/json',
|
|
373
|
+
...options.headers
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
/**
|
|
377
|
+
* Create Monitor
|
|
378
|
+
*/
|
|
379
|
+
export const createMonitor = (options) => (options.client ?? client).post({
|
|
380
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
381
|
+
url: '/api/monitors',
|
|
382
|
+
...options,
|
|
383
|
+
headers: {
|
|
384
|
+
'Content-Type': 'application/x-yaml',
|
|
385
|
+
...options.headers
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
/**
|
|
389
|
+
* Delete Monitor
|
|
390
|
+
*/
|
|
391
|
+
export const deleteMonitor = (options) => (options.client ?? client).delete({
|
|
392
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
393
|
+
url: '/api/monitors/{id}',
|
|
394
|
+
...options
|
|
395
|
+
});
|
|
396
|
+
/**
|
|
397
|
+
* Get Monitor Definition (YAML)
|
|
398
|
+
*/
|
|
399
|
+
export const getMonitor = (options) => (options.client ?? client).get({
|
|
400
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
401
|
+
url: '/api/monitors/{id}',
|
|
402
|
+
...options
|
|
403
|
+
});
|
|
404
|
+
/**
|
|
405
|
+
* Update Monitor
|
|
406
|
+
*/
|
|
407
|
+
export const updateMonitor = (options) => (options.client ?? client).put({
|
|
408
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
409
|
+
url: '/api/monitors/{id}',
|
|
410
|
+
...options,
|
|
411
|
+
headers: {
|
|
412
|
+
'Content-Type': 'application/x-yaml',
|
|
413
|
+
...options.headers
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
/**
|
|
417
|
+
* List Monitors
|
|
418
|
+
*/
|
|
419
|
+
export const listMonitors = (options) => (options.client ?? client).post({
|
|
420
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
421
|
+
url: '/api/monitors/list',
|
|
422
|
+
...options,
|
|
423
|
+
headers: {
|
|
424
|
+
'Content-Type': 'application/json',
|
|
425
|
+
...options.headers
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
/**
|
|
429
|
+
* List Recurring Silences
|
|
430
|
+
*
|
|
431
|
+
* Retrieves all recurring silences.
|
|
432
|
+
*/
|
|
433
|
+
export const getAllRecurringSilences = (options) => (options?.client ?? client).get({
|
|
434
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
435
|
+
url: '/api/monitors/recurring-silences',
|
|
436
|
+
...options
|
|
437
|
+
});
|
|
438
|
+
/**
|
|
439
|
+
* Create Recurring Silence
|
|
440
|
+
*
|
|
441
|
+
* Creates a new recurring silence definition.
|
|
442
|
+
*/
|
|
443
|
+
export const createRecurringSilence = (options) => (options.client ?? client).post({
|
|
444
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
445
|
+
url: '/api/monitors/recurring-silences',
|
|
446
|
+
...options,
|
|
447
|
+
headers: {
|
|
448
|
+
'Content-Type': 'application/json',
|
|
449
|
+
...options.headers
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
/**
|
|
453
|
+
* Delete Recurring Silence
|
|
454
|
+
*
|
|
455
|
+
* Deletes a recurring silence by its UUID.
|
|
456
|
+
*/
|
|
457
|
+
export const deleteRecurringSilence = (options) => (options.client ?? client).delete({
|
|
458
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
459
|
+
url: '/api/monitors/recurring-silences/{id}',
|
|
460
|
+
...options
|
|
461
|
+
});
|
|
462
|
+
/**
|
|
463
|
+
* Get Recurring Silence
|
|
464
|
+
*
|
|
465
|
+
* Retrieves a specific recurring silence by its UUID.
|
|
466
|
+
*/
|
|
467
|
+
export const getRecurringSilence = (options) => (options.client ?? client).get({
|
|
468
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
469
|
+
url: '/api/monitors/recurring-silences/{id}',
|
|
470
|
+
...options
|
|
471
|
+
});
|
|
472
|
+
/**
|
|
473
|
+
* Update Recurring Silence
|
|
474
|
+
*
|
|
475
|
+
* Updates an existing recurring silence by its UUID.
|
|
476
|
+
*/
|
|
477
|
+
export const updateRecurringSilence = (options) => (options.client ?? client).put({
|
|
478
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
479
|
+
url: '/api/monitors/recurring-silences/{id}',
|
|
480
|
+
...options,
|
|
481
|
+
headers: {
|
|
482
|
+
'Content-Type': 'application/json',
|
|
483
|
+
...options.headers
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
/**
|
|
487
|
+
* Get All Silences
|
|
488
|
+
*
|
|
489
|
+
* Retrieves all silences with optional filtering.
|
|
490
|
+
*/
|
|
491
|
+
export const getAllSilences = (options) => (options?.client ?? client).get({
|
|
492
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
493
|
+
url: '/api/monitors/silences',
|
|
494
|
+
...options
|
|
495
|
+
});
|
|
496
|
+
/**
|
|
497
|
+
* Create Silence
|
|
498
|
+
*
|
|
499
|
+
* Creates a new silence for monitoring alerts.
|
|
500
|
+
*/
|
|
501
|
+
export const createSilence = (options) => (options.client ?? client).post({
|
|
502
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
503
|
+
url: '/api/monitors/silences',
|
|
504
|
+
...options,
|
|
505
|
+
headers: {
|
|
506
|
+
'Content-Type': 'application/json',
|
|
507
|
+
...options.headers
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
/**
|
|
511
|
+
* Delete Silence
|
|
512
|
+
*
|
|
513
|
+
* Deletes a silence by its UUID.
|
|
514
|
+
*/
|
|
515
|
+
export const deleteSilence = (options) => (options.client ?? client).delete({
|
|
516
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
517
|
+
url: '/api/monitors/silences/{id}',
|
|
518
|
+
...options
|
|
519
|
+
});
|
|
520
|
+
/**
|
|
521
|
+
* Get Silence by ID
|
|
522
|
+
*
|
|
523
|
+
* Retrieves a specific silence by its UUID.
|
|
524
|
+
*/
|
|
525
|
+
export const getSilence = (options) => (options.client ?? client).get({
|
|
526
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
527
|
+
url: '/api/monitors/silences/{id}',
|
|
528
|
+
...options
|
|
529
|
+
});
|
|
530
|
+
/**
|
|
531
|
+
* Update Silence
|
|
532
|
+
*
|
|
533
|
+
* Updates an existing silence by its UUID.
|
|
534
|
+
*/
|
|
535
|
+
export const updateSilence = (options) => (options.client ?? client).put({
|
|
536
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
537
|
+
url: '/api/monitors/silences/{id}',
|
|
538
|
+
...options,
|
|
539
|
+
headers: {
|
|
540
|
+
'Content-Type': 'application/json',
|
|
541
|
+
...options.headers
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
/**
|
|
545
|
+
* List All Silences (V2 Unified)
|
|
546
|
+
*
|
|
547
|
+
* Returns both one-time and recurring silences in a single list.
|
|
548
|
+
*/
|
|
549
|
+
export const v2GetAllSilences = (options) => (options?.client ?? client).get({
|
|
550
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
551
|
+
url: '/api/monitors/v2/silences',
|
|
552
|
+
...options
|
|
553
|
+
});
|
|
554
|
+
/**
|
|
555
|
+
* Create Silence (V2 Unified)
|
|
556
|
+
*
|
|
557
|
+
* Creates a new silence (one-time or recurring) based on the type field.
|
|
558
|
+
*/
|
|
559
|
+
export const v2CreateSilence = (options) => (options.client ?? client).post({
|
|
560
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
561
|
+
url: '/api/monitors/v2/silences',
|
|
562
|
+
...options,
|
|
563
|
+
headers: {
|
|
564
|
+
'Content-Type': 'application/json',
|
|
565
|
+
...options.headers
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
/**
|
|
569
|
+
* Delete Silence (V2 Unified)
|
|
570
|
+
*
|
|
571
|
+
* Deletes a silence (one-time or recurring) by UUID.
|
|
572
|
+
*/
|
|
573
|
+
export const v2DeleteSilence = (options) => (options.client ?? client).delete({
|
|
574
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
575
|
+
url: '/api/monitors/v2/silences/{id}',
|
|
576
|
+
...options
|
|
577
|
+
});
|
|
578
|
+
/**
|
|
579
|
+
* Get Silence by ID (V2 Unified)
|
|
580
|
+
*
|
|
581
|
+
* Retrieves a silence (one-time or recurring) by UUID.
|
|
582
|
+
*/
|
|
583
|
+
export const v2GetSilence = (options) => (options.client ?? client).get({
|
|
584
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
585
|
+
url: '/api/monitors/v2/silences/{id}',
|
|
586
|
+
...options
|
|
587
|
+
});
|
|
588
|
+
/**
|
|
589
|
+
* Update Silence (V2 Unified)
|
|
590
|
+
*
|
|
591
|
+
* Updates a silence (one-time or recurring) by UUID. Auto-detects the type.
|
|
592
|
+
*/
|
|
593
|
+
export const v2UpdateSilence = (options) => (options.client ?? client).put({
|
|
594
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
595
|
+
url: '/api/monitors/v2/silences/{id}',
|
|
596
|
+
...options,
|
|
597
|
+
headers: {
|
|
598
|
+
'Content-Type': 'application/json',
|
|
599
|
+
...options.headers
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
/**
|
|
603
|
+
* Create Notification Route
|
|
604
|
+
*
|
|
605
|
+
* Creates a new notification route.
|
|
606
|
+
*/
|
|
607
|
+
export const createNotificationRoute = (options) => (options.client ?? client).post({
|
|
608
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
609
|
+
url: '/api/notification-routes/v1',
|
|
610
|
+
...options,
|
|
611
|
+
headers: {
|
|
612
|
+
'Content-Type': 'application/json',
|
|
613
|
+
...options.headers
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
/**
|
|
617
|
+
* Delete Notification Route
|
|
618
|
+
*
|
|
619
|
+
* Soft deletes a notification route.
|
|
620
|
+
*/
|
|
621
|
+
export const deleteNotificationRoute = (options) => (options.client ?? client).delete({
|
|
622
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
623
|
+
url: '/api/notification-routes/v1/{id}',
|
|
624
|
+
...options
|
|
625
|
+
});
|
|
626
|
+
/**
|
|
627
|
+
* Get Notification Route
|
|
628
|
+
*
|
|
629
|
+
* Retrieves a single notification route by ID.
|
|
630
|
+
*/
|
|
631
|
+
export const getNotificationRoute = (options) => (options.client ?? client).get({
|
|
632
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
633
|
+
url: '/api/notification-routes/v1/{id}',
|
|
634
|
+
...options
|
|
635
|
+
});
|
|
636
|
+
/**
|
|
637
|
+
* Update Notification Route
|
|
638
|
+
*
|
|
639
|
+
* Replaces an existing notification route.
|
|
640
|
+
*/
|
|
641
|
+
export const updateNotificationRoute = (options) => (options.client ?? client).put({
|
|
642
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
643
|
+
url: '/api/notification-routes/v1/{id}',
|
|
644
|
+
...options,
|
|
645
|
+
headers: {
|
|
646
|
+
'Content-Type': 'application/json',
|
|
647
|
+
...options.headers
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
/**
|
|
651
|
+
* List Notification Routes
|
|
652
|
+
*
|
|
653
|
+
* Returns a list of notification routes with optional filtering.
|
|
654
|
+
*/
|
|
655
|
+
export const listNotificationRoutes = (options) => (options?.client ?? client).post({
|
|
656
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
657
|
+
url: '/api/notification-routes/v1/list',
|
|
658
|
+
...options,
|
|
659
|
+
headers: {
|
|
660
|
+
'Content-Type': 'application/json',
|
|
661
|
+
...options?.headers
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
export const deleteLogsPipelineConfig = (options) => (options?.client ?? client).delete({
|
|
665
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
666
|
+
url: '/api/pipelines/logs/config',
|
|
667
|
+
...options
|
|
668
|
+
});
|
|
669
|
+
export const getLogsPipelineConfig = (options) => (options?.client ?? client).get({
|
|
670
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
671
|
+
url: '/api/pipelines/logs/config',
|
|
672
|
+
...options
|
|
673
|
+
});
|
|
674
|
+
export const createLogsPipelineConfig = (options) => (options.client ?? client).post({
|
|
675
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
676
|
+
url: '/api/pipelines/logs/config',
|
|
677
|
+
...options,
|
|
678
|
+
headers: {
|
|
679
|
+
'Content-Type': 'application/json',
|
|
680
|
+
...options.headers
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
export const updateLogsPipelineConfig = (options) => (options.client ?? client).put({
|
|
684
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
685
|
+
url: '/api/pipelines/logs/config',
|
|
686
|
+
...options,
|
|
687
|
+
headers: {
|
|
688
|
+
'Content-Type': 'application/json',
|
|
689
|
+
...options.headers
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
export const deleteTracesPipelineConfig = (options) => (options?.client ?? client).delete({
|
|
693
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
694
|
+
url: '/api/pipelines/traces/config',
|
|
695
|
+
...options
|
|
696
|
+
});
|
|
697
|
+
export const getTracesPipelineConfig = (options) => (options?.client ?? client).get({
|
|
698
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
699
|
+
url: '/api/pipelines/traces/config',
|
|
700
|
+
...options
|
|
701
|
+
});
|
|
702
|
+
export const createTracesPipelineConfig = (options) => (options.client ?? client).post({
|
|
703
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
704
|
+
url: '/api/pipelines/traces/config',
|
|
705
|
+
...options,
|
|
706
|
+
headers: {
|
|
707
|
+
'Content-Type': 'application/json',
|
|
708
|
+
...options.headers
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
export const updateTracesPipelineConfig = (options) => (options.client ?? client).put({
|
|
712
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
713
|
+
url: '/api/pipelines/traces/config',
|
|
714
|
+
...options,
|
|
715
|
+
headers: {
|
|
716
|
+
'Content-Type': 'application/json',
|
|
717
|
+
...options.headers
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
export const deleteMetricsPipelineConfig = (options) => (options?.client ?? client).delete({
|
|
721
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
722
|
+
url: '/api/pipelines/v1/metrics/config',
|
|
723
|
+
...options
|
|
724
|
+
});
|
|
725
|
+
export const getMetricsPipelineConfig = (options) => (options?.client ?? client).get({
|
|
726
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
727
|
+
url: '/api/pipelines/v1/metrics/config',
|
|
728
|
+
...options
|
|
729
|
+
});
|
|
730
|
+
export const createMetricsPipelineConfig = (options) => (options.client ?? client).post({
|
|
731
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
732
|
+
url: '/api/pipelines/v1/metrics/config',
|
|
733
|
+
...options,
|
|
734
|
+
headers: {
|
|
735
|
+
'Content-Type': 'application/json',
|
|
736
|
+
...options.headers
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
export const updateMetricsPipelineConfig = (options) => (options.client ?? client).put({
|
|
740
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
741
|
+
url: '/api/pipelines/v1/metrics/config',
|
|
742
|
+
...options,
|
|
743
|
+
headers: {
|
|
744
|
+
'Content-Type': 'application/json',
|
|
745
|
+
...options.headers
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
/**
|
|
749
|
+
* Delete API Key
|
|
750
|
+
*/
|
|
751
|
+
export const deleteApiKey = (options) => (options.client ?? client).delete({
|
|
752
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
753
|
+
url: '/api/rbac/apikey/{id}',
|
|
754
|
+
...options
|
|
755
|
+
});
|
|
756
|
+
/**
|
|
757
|
+
* Create API Key
|
|
758
|
+
*/
|
|
759
|
+
export const createApiKey = (options) => (options.client ?? client).post({
|
|
760
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
761
|
+
url: '/api/rbac/apikey/create',
|
|
762
|
+
...options,
|
|
763
|
+
headers: {
|
|
764
|
+
'Content-Type': 'application/json',
|
|
765
|
+
...options.headers
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
/**
|
|
769
|
+
* List API Keys
|
|
770
|
+
*/
|
|
771
|
+
export const listApiKeys = (options) => (options?.client ?? client).get({
|
|
772
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
773
|
+
url: '/api/rbac/apikeys/list',
|
|
774
|
+
...options
|
|
775
|
+
});
|
|
776
|
+
/**
|
|
777
|
+
* Create Ingestion Key
|
|
778
|
+
*/
|
|
779
|
+
export const createIngestionKey = (options) => (options.client ?? client).post({
|
|
780
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
781
|
+
url: '/api/rbac/ingestion-keys/create',
|
|
782
|
+
...options,
|
|
783
|
+
headers: {
|
|
784
|
+
'Content-Type': 'application/json',
|
|
785
|
+
...options.headers
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
/**
|
|
789
|
+
* Delete Ingestion Key
|
|
790
|
+
*/
|
|
791
|
+
export const deleteIngestionKey = (options) => (options.client ?? client).delete({
|
|
792
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
793
|
+
url: '/api/rbac/ingestion-keys/delete',
|
|
794
|
+
...options,
|
|
795
|
+
headers: {
|
|
796
|
+
'Content-Type': 'application/json',
|
|
797
|
+
...options.headers
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
/**
|
|
801
|
+
* List Ingestion Keys
|
|
802
|
+
*/
|
|
803
|
+
export const listIngestionKeys = (options) => (options.client ?? client).post({
|
|
804
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
805
|
+
url: '/api/rbac/ingestion-keys/list',
|
|
806
|
+
...options,
|
|
807
|
+
headers: {
|
|
808
|
+
'Content-Type': 'application/json',
|
|
809
|
+
...options.headers
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
/**
|
|
813
|
+
* List Policies
|
|
814
|
+
*/
|
|
815
|
+
export const listPolicies = (options) => (options?.client ?? client).get({
|
|
816
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
817
|
+
url: '/api/rbac/policies/list',
|
|
818
|
+
...options
|
|
819
|
+
});
|
|
820
|
+
/**
|
|
821
|
+
* Delete Policy
|
|
822
|
+
*/
|
|
823
|
+
export const deletePolicy = (options) => (options.client ?? client).delete({
|
|
824
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
825
|
+
url: '/api/rbac/policy/{id}',
|
|
826
|
+
...options
|
|
827
|
+
});
|
|
828
|
+
/**
|
|
829
|
+
* Get Policy by ID
|
|
830
|
+
*/
|
|
831
|
+
export const getPolicy = (options) => (options.client ?? client).get({
|
|
832
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
833
|
+
url: '/api/rbac/policy/{id}',
|
|
834
|
+
...options
|
|
835
|
+
});
|
|
836
|
+
/**
|
|
837
|
+
* Update Policy
|
|
838
|
+
*/
|
|
839
|
+
export const updatePolicy = (options) => (options.client ?? client).put({
|
|
840
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
841
|
+
url: '/api/rbac/policy/{id}',
|
|
842
|
+
...options,
|
|
843
|
+
headers: {
|
|
844
|
+
'Content-Type': 'application/json',
|
|
845
|
+
...options.headers
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
/**
|
|
849
|
+
* Get Policy Audit Trail
|
|
850
|
+
*/
|
|
851
|
+
export const getPolicyAuditTrail = (options) => (options.client ?? client).get({
|
|
852
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
853
|
+
url: '/api/rbac/policy/{id}/auditTrail',
|
|
854
|
+
...options
|
|
855
|
+
});
|
|
856
|
+
/**
|
|
857
|
+
* Apply Policies to Users
|
|
858
|
+
*/
|
|
859
|
+
export const applyPolicy = (options) => (options.client ?? client).post({
|
|
860
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
861
|
+
url: '/api/rbac/policy/apply',
|
|
862
|
+
...options,
|
|
863
|
+
headers: {
|
|
864
|
+
'Content-Type': 'application/json',
|
|
865
|
+
...options.headers
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
/**
|
|
869
|
+
* Create Policy
|
|
870
|
+
*/
|
|
871
|
+
export const createPolicy = (options) => (options.client ?? client).post({
|
|
872
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
873
|
+
url: '/api/rbac/policy/create',
|
|
874
|
+
...options,
|
|
875
|
+
headers: {
|
|
876
|
+
'Content-Type': 'application/json',
|
|
877
|
+
...options.headers
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
/**
|
|
881
|
+
* Delete Service Account
|
|
882
|
+
*/
|
|
883
|
+
export const deleteServiceAccount = (options) => (options.client ?? client).delete({
|
|
884
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
885
|
+
url: '/api/rbac/service-account/{id}',
|
|
886
|
+
...options
|
|
887
|
+
});
|
|
888
|
+
/**
|
|
889
|
+
* Get service account by ID
|
|
890
|
+
*/
|
|
891
|
+
export const getServiceAccount = (options) => (options.client ?? client).get({
|
|
892
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
893
|
+
url: '/api/rbac/service-account/{id}',
|
|
894
|
+
...options
|
|
895
|
+
});
|
|
896
|
+
/**
|
|
897
|
+
* Create Service Account
|
|
898
|
+
*/
|
|
899
|
+
export const createServiceAccount = (options) => (options.client ?? client).post({
|
|
900
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
901
|
+
url: '/api/rbac/service-account/create',
|
|
902
|
+
...options,
|
|
903
|
+
headers: {
|
|
904
|
+
'Content-Type': 'application/json',
|
|
905
|
+
...options.headers
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
/**
|
|
909
|
+
* Update Service Account
|
|
910
|
+
*/
|
|
911
|
+
export const updateServiceAccount = (options) => (options.client ?? client).put({
|
|
912
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
913
|
+
url: '/api/rbac/service-account/update',
|
|
914
|
+
...options,
|
|
915
|
+
headers: {
|
|
916
|
+
'Content-Type': 'application/json',
|
|
917
|
+
...options.headers
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
/**
|
|
921
|
+
* List Service Accounts
|
|
922
|
+
*/
|
|
923
|
+
export const listServiceAccounts = (options) => (options?.client ?? client).get({
|
|
924
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
925
|
+
url: '/api/rbac/service-accounts/list',
|
|
926
|
+
...options
|
|
927
|
+
});
|
|
928
|
+
/**
|
|
929
|
+
* Get tenant AI settings
|
|
930
|
+
*/
|
|
931
|
+
export const getTenantAiSettings = (options) => (options.client ?? client).get({
|
|
932
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
933
|
+
url: '/api/rbac/v2/tenant/ai-settings',
|
|
934
|
+
...options
|
|
935
|
+
});
|
|
936
|
+
/**
|
|
937
|
+
* Update tenant AI settings
|
|
938
|
+
*/
|
|
939
|
+
export const updateTenantAiSettings = (options) => (options.client ?? client).put({
|
|
940
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
941
|
+
url: '/api/rbac/v2/tenant/ai-settings',
|
|
942
|
+
...options,
|
|
943
|
+
headers: {
|
|
944
|
+
'Content-Type': 'application/json',
|
|
945
|
+
...options.headers
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
/**
|
|
949
|
+
* Upload a sourcemap
|
|
950
|
+
*
|
|
951
|
+
* Accepts multipart/form-data with app_id, release_id, and file fields.
|
|
952
|
+
*/
|
|
953
|
+
export const uploadSourceMap = (options) => (options?.client ?? client).post({
|
|
954
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
955
|
+
url: '/api/rum/sourcemaps',
|
|
956
|
+
...options
|
|
957
|
+
});
|
|
958
|
+
/**
|
|
959
|
+
* GetDiscovery retrieves search discovery results based on the provided request parameters.
|
|
960
|
+
*/
|
|
961
|
+
export const getDiscovery = (options) => (options.client ?? client).post({
|
|
962
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
963
|
+
url: '/api/search/discovery',
|
|
964
|
+
...options,
|
|
965
|
+
headers: {
|
|
966
|
+
'Content-Type': 'application/json',
|
|
967
|
+
...options.headers
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
/**
|
|
971
|
+
* GetKeys retrieves search keys based on the provided request parameters.
|
|
972
|
+
*/
|
|
973
|
+
export const getKeys = (options) => (options.client ?? client).post({
|
|
974
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
975
|
+
url: '/api/search/keys',
|
|
976
|
+
...options,
|
|
977
|
+
headers: {
|
|
978
|
+
'Content-Type': 'application/json',
|
|
979
|
+
...options.headers
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
/**
|
|
983
|
+
* GetValues retrieves search values based on the provided request parameters.
|
|
984
|
+
*/
|
|
985
|
+
export const getValues = (options) => (options?.client ?? client).post({
|
|
986
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
987
|
+
url: '/api/search/values',
|
|
988
|
+
...options,
|
|
989
|
+
headers: {
|
|
990
|
+
'Content-Type': 'application/json',
|
|
991
|
+
...options?.headers
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
/**
|
|
995
|
+
* Create Secret
|
|
996
|
+
*/
|
|
997
|
+
export const createSecret = (options) => (options.client ?? client).post({
|
|
998
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
999
|
+
url: '/api/secret',
|
|
1000
|
+
...options,
|
|
1001
|
+
headers: {
|
|
1002
|
+
'Content-Type': 'application/json',
|
|
1003
|
+
...options.headers
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
/**
|
|
1007
|
+
* Delete Secret
|
|
1008
|
+
*
|
|
1009
|
+
* # Deletes a secret by its ID
|
|
1010
|
+
*/
|
|
1011
|
+
export const deleteSecret = (options) => (options.client ?? client).delete({
|
|
1012
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1013
|
+
url: '/api/secret/{id}',
|
|
1014
|
+
...options
|
|
1015
|
+
});
|
|
1016
|
+
/**
|
|
1017
|
+
* Update Secret
|
|
1018
|
+
*/
|
|
1019
|
+
export const updateSecret = (options) => (options.client ?? client).put({
|
|
1020
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1021
|
+
url: '/api/secret/{id}',
|
|
1022
|
+
...options,
|
|
1023
|
+
headers: {
|
|
1024
|
+
'Content-Type': 'application/json',
|
|
1025
|
+
...options.headers
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
/**
|
|
1029
|
+
* Get Secret Hash
|
|
1030
|
+
*
|
|
1031
|
+
* Retrieves the FNV-1a hash of a secret's content without exposing the actual secret value.
|
|
1032
|
+
* This is useful for Terraform/Crossplane to detect changes without retrieving the secret.
|
|
1033
|
+
*/
|
|
1034
|
+
export const getSecretHash = (options) => (options.client ?? client).get({
|
|
1035
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1036
|
+
url: '/api/secret/{id}/hash',
|
|
1037
|
+
...options
|
|
1038
|
+
});
|
|
1039
|
+
export const getStorageManagementPolicies = (options) => (options?.client ?? client).get({
|
|
1040
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1041
|
+
url: '/api/storage-management',
|
|
1042
|
+
...options
|
|
1043
|
+
});
|
|
1044
|
+
export const getStorageManagementPolicyByType = (options) => (options.client ?? client).get({
|
|
1045
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1046
|
+
url: '/api/storage-management/{data_type}',
|
|
1047
|
+
...options
|
|
1048
|
+
});
|
|
1049
|
+
export const createStorageManagementPolicyByType = (options) => (options.client ?? client).post({
|
|
1050
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1051
|
+
url: '/api/storage-management/{data_type}',
|
|
1052
|
+
...options,
|
|
1053
|
+
headers: {
|
|
1054
|
+
'Content-Type': 'application/json',
|
|
1055
|
+
...options.headers
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
export const updateStorageManagementPolicyByType = (options) => (options.client ?? client).put({
|
|
1059
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1060
|
+
url: '/api/storage-management/{data_type}',
|
|
1061
|
+
...options,
|
|
1062
|
+
headers: {
|
|
1063
|
+
'Content-Type': 'application/json',
|
|
1064
|
+
...options.headers
|
|
1065
|
+
}
|
|
1066
|
+
});
|
|
1067
|
+
/**
|
|
1068
|
+
* List Synthetic Tests
|
|
1069
|
+
*
|
|
1070
|
+
* Lists all synthetic test configurations with their status and monitor information.
|
|
1071
|
+
*/
|
|
1072
|
+
export const listSyntheticTests = (options) => (options?.client ?? client).get({
|
|
1073
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1074
|
+
url: '/api/synthetics/v1/rules',
|
|
1075
|
+
...options
|
|
1076
|
+
});
|
|
1077
|
+
/**
|
|
1078
|
+
* Create Synthetic Test
|
|
1079
|
+
*
|
|
1080
|
+
* Creates a new synthetic test with the provided configuration.
|
|
1081
|
+
*/
|
|
1082
|
+
export const createSyntheticTest = (options) => (options.client ?? client).post({
|
|
1083
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1084
|
+
url: '/api/synthetics/v1/rules',
|
|
1085
|
+
...options,
|
|
1086
|
+
headers: {
|
|
1087
|
+
'Content-Type': 'application/json',
|
|
1088
|
+
...options.headers
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
/**
|
|
1092
|
+
* Delete Synthetic Test
|
|
1093
|
+
*
|
|
1094
|
+
* Deletes a synthetic test configuration and its associated monitor.
|
|
1095
|
+
*/
|
|
1096
|
+
export const deleteSyntheticTest = (options) => (options.client ?? client).delete({
|
|
1097
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1098
|
+
url: '/api/synthetics/v1/rules/{id}',
|
|
1099
|
+
...options
|
|
1100
|
+
});
|
|
1101
|
+
/**
|
|
1102
|
+
* Get Synthetic Test
|
|
1103
|
+
*
|
|
1104
|
+
* Gets a single synthetic test configuration by ID.
|
|
1105
|
+
*/
|
|
1106
|
+
export const getSyntheticTest = (options) => (options.client ?? client).get({
|
|
1107
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1108
|
+
url: '/api/synthetics/v1/rules/{id}',
|
|
1109
|
+
...options
|
|
1110
|
+
});
|
|
1111
|
+
/**
|
|
1112
|
+
* Update Synthetic Test
|
|
1113
|
+
*
|
|
1114
|
+
* Updates a synthetic test configuration and its associated monitor.
|
|
1115
|
+
* To create a monitor on a synthetic that currently has none, set createMonitor=true explicitly.
|
|
1116
|
+
* Sending a monitor config block without createMonitor=true when no monitor exists returns 400.
|
|
1117
|
+
*/
|
|
1118
|
+
export const updateSyntheticTest = (options) => (options.client ?? client).put({
|
|
1119
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1120
|
+
url: '/api/synthetics/v1/rules/{id}',
|
|
1121
|
+
...options,
|
|
1122
|
+
headers: {
|
|
1123
|
+
'Content-Type': 'application/json',
|
|
1124
|
+
...options.headers
|
|
1125
|
+
}
|
|
1126
|
+
});
|
|
1127
|
+
/**
|
|
1128
|
+
* Traces search
|
|
1129
|
+
*/
|
|
1130
|
+
export const searchTraces = (options) => (options.client ?? client).post({
|
|
1131
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
1132
|
+
url: '/api/traces/v2/search',
|
|
1133
|
+
...options,
|
|
1134
|
+
headers: {
|
|
1135
|
+
'Content-Type': 'application/json',
|
|
1136
|
+
...options.headers
|
|
1137
|
+
}
|
|
1138
|
+
});
|