@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.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +176 -0
  3. package/dist/_generated/client/client.gen.d.ts +2 -0
  4. package/dist/_generated/client/client.gen.js +216 -0
  5. package/dist/_generated/client/index.d.ts +10 -0
  6. package/dist/_generated/client/index.js +6 -0
  7. package/dist/_generated/client/types.gen.d.ts +120 -0
  8. package/dist/_generated/client/types.gen.js +2 -0
  9. package/dist/_generated/client/utils.gen.d.ts +37 -0
  10. package/dist/_generated/client/utils.gen.js +228 -0
  11. package/dist/_generated/client.gen.d.ts +12 -0
  12. package/dist/_generated/client.gen.js +3 -0
  13. package/dist/_generated/core/auth.gen.d.ts +25 -0
  14. package/dist/_generated/core/auth.gen.js +14 -0
  15. package/dist/_generated/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/_generated/core/bodySerializer.gen.js +57 -0
  17. package/dist/_generated/core/params.gen.d.ts +43 -0
  18. package/dist/_generated/core/params.gen.js +109 -0
  19. package/dist/_generated/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/_generated/core/pathSerializer.gen.js +106 -0
  21. package/dist/_generated/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/_generated/core/queryKeySerializer.gen.js +92 -0
  23. package/dist/_generated/core/serverSentEvents.gen.d.ts +71 -0
  24. package/dist/_generated/core/serverSentEvents.gen.js +132 -0
  25. package/dist/_generated/core/types.gen.d.ts +83 -0
  26. package/dist/_generated/core/types.gen.js +2 -0
  27. package/dist/_generated/core/utils.gen.d.ts +19 -0
  28. package/dist/_generated/core/utils.gen.js +87 -0
  29. package/dist/_generated/index.d.ts +2 -0
  30. package/dist/_generated/index.js +2 -0
  31. package/dist/_generated/sdk.gen.d.ts +471 -0
  32. package/dist/_generated/sdk.gen.js +1138 -0
  33. package/dist/_generated/types.gen.d.ts +11655 -0
  34. package/dist/_generated/types.gen.js +2 -0
  35. package/dist/client.d.ts +52 -0
  36. package/dist/client.js +189 -0
  37. package/dist/helpers.d.ts +15 -0
  38. package/dist/helpers.js +24 -0
  39. package/dist/index.d.ts +6 -0
  40. package/dist/index.js +6 -0
  41. package/dist/types/conditions.d.ts +25 -0
  42. package/dist/types/conditions.js +30 -0
  43. package/dist/types/matchers.d.ts +7 -0
  44. package/dist/types/matchers.js +8 -0
  45. package/dist/utils/ConditionSet.d.ts +47 -0
  46. package/dist/utils/ConditionSet.js +95 -0
  47. package/package.json +44 -0
  48. package/src/_generated/client/client.gen.ts +277 -0
  49. package/src/_generated/client/index.ts +27 -0
  50. package/src/_generated/client/types.gen.ts +218 -0
  51. package/src/_generated/client/utils.gen.ts +316 -0
  52. package/src/_generated/client.gen.ts +16 -0
  53. package/src/_generated/core/auth.gen.ts +48 -0
  54. package/src/_generated/core/bodySerializer.gen.ts +82 -0
  55. package/src/_generated/core/params.gen.ts +178 -0
  56. package/src/_generated/core/pathSerializer.gen.ts +171 -0
  57. package/src/_generated/core/queryKeySerializer.gen.ts +117 -0
  58. package/src/_generated/core/serverSentEvents.gen.ts +242 -0
  59. package/src/_generated/core/types.gen.ts +110 -0
  60. package/src/_generated/core/utils.gen.ts +140 -0
  61. package/src/_generated/index.ts +4 -0
  62. package/src/_generated/sdk.gen.ts +1267 -0
  63. package/src/_generated/types.gen.ts +12816 -0
  64. package/src/client.ts +273 -0
  65. package/src/helpers.ts +38 -0
  66. package/src/index.ts +7 -0
  67. package/src/types/conditions.ts +35 -0
  68. package/src/types/matchers.ts +8 -0
  69. package/src/utils/ConditionSet.ts +135 -0
@@ -0,0 +1,1267 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import { client } from './client.gen.js';
4
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
5
+ import type { AgentCreateSkillData, AgentCreateSkillErrors, AgentCreateSkillResponses, AgentDeleteSkillData, AgentDeleteSkillErrors, AgentDeleteSkillResponses, AgentGetSkillData, AgentGetSkillErrors, AgentGetSkillResponses, AgentListSkillsData, AgentListSkillsErrors, AgentListSkillsResponses, AgentUpdateSkillData, AgentUpdateSkillErrors, AgentUpdateSkillResponses, ApplyPolicyData, ApplyPolicyErrors, ApplyPolicyResponses, ArchiveDashboardData, ArchiveDashboardErrors, ArchiveDashboardResponses, ClustersListData, ClustersListErrors, ClustersListResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateConnectedAppData, CreateConnectedAppErrors, CreateConnectedAppResponses, CreateDashboardData, CreateDashboardErrors, CreateDashboardResponses, CreateDataIntegrationConfigData, CreateDataIntegrationConfigErrors, CreateDataIntegrationConfigResponses, CreateIngestionKeyData, CreateIngestionKeyErrors, CreateIngestionKeyResponses, CreateLogsPipelineConfigData, CreateLogsPipelineConfigErrors, CreateLogsPipelineConfigResponses, CreateMetricsAggregatorConfigData, CreateMetricsAggregatorConfigErrors, CreateMetricsAggregatorConfigResponses, CreateMetricsPipelineConfigData, CreateMetricsPipelineConfigErrors, CreateMetricsPipelineConfigResponses, CreateMonitorData, CreateMonitorErrors, CreateMonitorResponses, CreateNotificationRouteData, CreateNotificationRouteErrors, CreateNotificationRouteResponses, CreatePolicyData, CreatePolicyErrors, CreatePolicyResponses, CreateRecurringSilenceData, CreateRecurringSilenceErrors, CreateRecurringSilenceResponses, CreateSecretData, CreateSecretErrors, CreateSecretResponses, CreateServiceAccountData, CreateServiceAccountErrors, CreateServiceAccountResponses, CreateSilenceData, CreateSilenceErrors, CreateSilenceResponses, CreateStorageManagementPolicyByTypeData, CreateStorageManagementPolicyByTypeErrors, CreateStorageManagementPolicyByTypeResponses, CreateSyntheticTestData, CreateSyntheticTestErrors, CreateSyntheticTestResponses, CreateTracesPipelineConfigData, CreateTracesPipelineConfigErrors, CreateTracesPipelineConfigResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponses, DeleteConnectedAppData, DeleteConnectedAppErrors, DeleteConnectedAppResponses, DeleteDashboardData, DeleteDashboardErrors, DeleteDashboardResponses, DeleteDataIntegrationConfigData, DeleteDataIntegrationConfigErrors, DeleteDataIntegrationConfigResponses, DeleteIngestionKeyData, DeleteIngestionKeyErrors, DeleteIngestionKeyResponses, DeleteLogsPipelineConfigData, DeleteLogsPipelineConfigErrors, DeleteLogsPipelineConfigResponses, DeleteMetricsAggregatorConfigData, DeleteMetricsAggregatorConfigErrors, DeleteMetricsAggregatorConfigResponses, DeleteMetricsPipelineConfigData, DeleteMetricsPipelineConfigErrors, DeleteMetricsPipelineConfigResponses, DeleteMonitorData, DeleteMonitorErrors, DeleteMonitorResponses, DeleteNotificationRouteData, DeleteNotificationRouteErrors, DeleteNotificationRouteResponses, DeletePolicyData, DeletePolicyErrors, DeletePolicyResponses, DeleteRecurringSilenceData, DeleteRecurringSilenceErrors, DeleteRecurringSilenceResponses, DeleteSecretData, DeleteSecretErrors, DeleteSecretResponses, DeleteServiceAccountData, DeleteServiceAccountErrors, DeleteServiceAccountResponses, DeleteSilenceData, DeleteSilenceErrors, DeleteSilenceResponses, DeleteSyntheticTestData, DeleteSyntheticTestErrors, DeleteSyntheticTestResponses, DeleteTracesPipelineConfigData, DeleteTracesPipelineConfigErrors, DeleteTracesPipelineConfigResponses, DescribeDataIntegrationData, DescribeDataIntegrationErrors, DescribeDataIntegrationResponses, EventsSearchData, EventsSearchErrors, EventsSearchResponses, GetAllRecurringSilencesData, GetAllRecurringSilencesErrors, GetAllRecurringSilencesResponses, GetAllSilencesData, GetAllSilencesErrors, GetAllSilencesResponses, GetConnectedAppData, GetConnectedAppErrors, GetConnectedAppResponses, GetDashboardData, GetDashboardErrors, GetDashboardResponses, GetDashboardsData, GetDashboardsErrors, GetDashboardsResponses, GetDataIntegrationConfigData, GetDataIntegrationConfigErrors, GetDataIntegrationConfigResponses, GetDataIntegrationConfigsByTypeData, GetDataIntegrationConfigsByTypeErrors, GetDataIntegrationConfigsByTypeResponses, GetDataIntegrationConfigsData, GetDataIntegrationConfigsErrors, GetDataIntegrationConfigsResponses, GetDiscoveryData, GetDiscoveryErrors, GetDiscoveryResponses, GetEventsOverTimeData, GetEventsOverTimeErrors, GetEventsOverTimeResponses, GetKeysData, GetKeysErrors, GetKeysResponses, GetLogsPipelineConfigData, GetLogsPipelineConfigErrors, GetLogsPipelineConfigResponses, GetMetricKeysData, GetMetricKeysErrors, GetMetricKeysResponses, GetMetricNamesData, GetMetricNamesErrors, GetMetricNamesResponses, GetMetricsAggregatorConfigData, GetMetricsAggregatorConfigErrors, GetMetricsAggregatorConfigResponses, GetMetricsPipelineConfigData, GetMetricsPipelineConfigErrors, GetMetricsPipelineConfigResponses, GetMetricValuesData, GetMetricValuesErrors, GetMetricValuesResponses, GetMonitorData, GetMonitorErrors, GetMonitorResponses, GetNotificationRouteData, GetNotificationRouteErrors, GetNotificationRouteResponses, GetPolicyAuditTrailData, GetPolicyAuditTrailErrors, GetPolicyAuditTrailResponses, GetPolicyData, GetPolicyErrors, GetPolicyResponses, GetRecurringSilenceData, GetRecurringSilenceErrors, GetRecurringSilenceResponses, GetSecretHashData, GetSecretHashErrors, GetSecretHashResponses, GetServiceAccountData, GetServiceAccountErrors, GetServiceAccountResponses, GetSilenceData, GetSilenceErrors, GetSilenceResponses, GetStorageManagementPoliciesData, GetStorageManagementPoliciesErrors, GetStorageManagementPoliciesResponses, GetStorageManagementPolicyByTypeData, GetStorageManagementPolicyByTypeErrors, GetStorageManagementPolicyByTypeResponses, GetSyntheticTestData, GetSyntheticTestErrors, GetSyntheticTestResponses, GetTenantAiSettingsData, GetTenantAiSettingsErrors, GetTenantAiSettingsResponses, GetTracesPipelineConfigData, GetTracesPipelineConfigErrors, GetTracesPipelineConfigResponses, GetValuesData, GetValuesErrors, GetValuesResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponses, ListConnectedAppsData, ListConnectedAppsErrors, ListConnectedAppsResponses, ListIngestionKeysData, ListIngestionKeysErrors, ListIngestionKeysResponses, ListMonitorsData, ListMonitorsErrors, ListMonitorsResponses, ListNotificationRoutesData, ListNotificationRoutesErrors, ListNotificationRoutesResponses, ListPoliciesData, ListPoliciesErrors, ListPoliciesResponses, ListServiceAccountsData, ListServiceAccountsErrors, ListServiceAccountsResponses, ListSyntheticTestsData, ListSyntheticTestsErrors, ListSyntheticTestsResponses, MetricsQueryData, MetricsQueryErrors, MetricsQueryResponses, RestoreDashboardData, RestoreDashboardErrors, RestoreDashboardResponses, SearchLogsData, SearchLogsErrors, SearchLogsResponses, SearchTracesData, SearchTracesErrors, SearchTracesResponses, UpdateConnectedAppData, UpdateConnectedAppErrors, UpdateConnectedAppResponses, UpdateDashboardData, UpdateDashboardErrors, UpdateDashboardResponses, UpdateDataIntegrationConfigData, UpdateDataIntegrationConfigErrors, UpdateDataIntegrationConfigResponses, UpdateLogsPipelineConfigData, UpdateLogsPipelineConfigErrors, UpdateLogsPipelineConfigResponses, UpdateMetricsAggregatorConfigData, UpdateMetricsAggregatorConfigErrors, UpdateMetricsAggregatorConfigResponses, UpdateMetricsPipelineConfigData, UpdateMetricsPipelineConfigErrors, UpdateMetricsPipelineConfigResponses, UpdateMonitorData, UpdateMonitorErrors, UpdateMonitorResponses, UpdateNotificationRouteData, UpdateNotificationRouteErrors, UpdateNotificationRouteResponses, UpdatePolicyData, UpdatePolicyErrors, UpdatePolicyResponses, UpdateRecurringSilenceData, UpdateRecurringSilenceErrors, UpdateRecurringSilenceResponses, UpdateSecretData, UpdateSecretErrors, UpdateSecretResponses, UpdateServiceAccountData, UpdateServiceAccountErrors, UpdateServiceAccountResponses, UpdateSilenceData, UpdateSilenceErrors, UpdateSilenceResponses, UpdateStorageManagementPolicyByTypeData, UpdateStorageManagementPolicyByTypeErrors, UpdateStorageManagementPolicyByTypeResponses, UpdateSyntheticTestData, UpdateSyntheticTestErrors, UpdateSyntheticTestResponses, UpdateTenantAiSettingsData, UpdateTenantAiSettingsErrors, UpdateTenantAiSettingsResponses, UpdateTracesPipelineConfigData, UpdateTracesPipelineConfigErrors, UpdateTracesPipelineConfigResponses, UploadSourceMapData, UploadSourceMapErrors, UploadSourceMapResponses, V2CreateSilenceData, V2CreateSilenceErrors, V2CreateSilenceResponses, V2DeleteSilenceData, V2DeleteSilenceErrors, V2DeleteSilenceResponses, V2GetAllSilencesData, V2GetAllSilencesErrors, V2GetAllSilencesResponses, V2GetSilenceData, V2GetSilenceErrors, V2GetSilenceResponses, V2UpdateSilenceData, V2UpdateSilenceErrors, V2UpdateSilenceResponses, WorkloadsListData, WorkloadsListErrors, WorkloadsListResponses } from './types.gen.js';
6
+
7
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
8
+ /**
9
+ * You can provide a client instance returned by `createClient()` instead of
10
+ * individual options. This might be also useful if you want to implement a
11
+ * custom client.
12
+ */
13
+ client?: Client;
14
+ /**
15
+ * You can pass arbitrary values through the `meta` object. This can be
16
+ * used to access values that aren't defined as part of the SDK function.
17
+ */
18
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
19
+ };
20
+
21
+ /**
22
+ * List Skills
23
+ *
24
+ * Returns personal and organizational Skills available to the calling user.
25
+ */
26
+ export const agentListSkills = <ThrowOnError extends boolean = false>(options?: Options<AgentListSkillsData, ThrowOnError>): RequestResult<AgentListSkillsResponses, AgentListSkillsErrors, ThrowOnError> => (options?.client ?? client).get<AgentListSkillsResponses, AgentListSkillsErrors, ThrowOnError>({
27
+ security: [{ name: 'Authorization', type: 'apiKey' }],
28
+ url: '/api/agent/skills',
29
+ ...options
30
+ });
31
+
32
+ /**
33
+ * Create Skill
34
+ *
35
+ * Creates a personal Skill, or an organizational Skill when is_organizational is true. Organizational Skills are admin only.
36
+ */
37
+ export const agentCreateSkill = <ThrowOnError extends boolean = false>(options: Options<AgentCreateSkillData, ThrowOnError>): RequestResult<AgentCreateSkillResponses, AgentCreateSkillErrors, ThrowOnError> => (options.client ?? client).post<AgentCreateSkillResponses, AgentCreateSkillErrors, ThrowOnError>({
38
+ security: [{ name: 'Authorization', type: 'apiKey' }],
39
+ url: '/api/agent/skills',
40
+ ...options,
41
+ headers: {
42
+ 'Content-Type': 'application/json',
43
+ ...options.headers
44
+ }
45
+ });
46
+
47
+ /**
48
+ * Delete Skill
49
+ *
50
+ * Deletes a personal or organizational Skill. Organizational Skills are admin only.
51
+ */
52
+ export const agentDeleteSkill = <ThrowOnError extends boolean = false>(options: Options<AgentDeleteSkillData, ThrowOnError>): RequestResult<AgentDeleteSkillResponses, AgentDeleteSkillErrors, ThrowOnError> => (options.client ?? client).delete<AgentDeleteSkillResponses, AgentDeleteSkillErrors, ThrowOnError>({
53
+ security: [{ name: 'Authorization', type: 'apiKey' }],
54
+ url: '/api/agent/skills/{skill_id}',
55
+ ...options
56
+ });
57
+
58
+ /**
59
+ * Get Skill
60
+ *
61
+ * Returns a personal or organizational Skill by ID.
62
+ */
63
+ export const agentGetSkill = <ThrowOnError extends boolean = false>(options: Options<AgentGetSkillData, ThrowOnError>): RequestResult<AgentGetSkillResponses, AgentGetSkillErrors, ThrowOnError> => (options.client ?? client).get<AgentGetSkillResponses, AgentGetSkillErrors, ThrowOnError>({
64
+ security: [{ name: 'Authorization', type: 'apiKey' }],
65
+ url: '/api/agent/skills/{skill_id}',
66
+ ...options
67
+ });
68
+
69
+ /**
70
+ * Update Skill
71
+ *
72
+ * Updates a personal or organizational Skill. Organizational Skills and org-scope changes are admin only.
73
+ */
74
+ export const agentUpdateSkill = <ThrowOnError extends boolean = false>(options: Options<AgentUpdateSkillData, ThrowOnError>): RequestResult<AgentUpdateSkillResponses, AgentUpdateSkillErrors, ThrowOnError> => (options.client ?? client).put<AgentUpdateSkillResponses, AgentUpdateSkillErrors, ThrowOnError>({
75
+ security: [{ name: 'Authorization', type: 'apiKey' }],
76
+ url: '/api/agent/skills/{skill_id}',
77
+ ...options,
78
+ headers: {
79
+ 'Content-Type': 'application/json',
80
+ ...options.headers
81
+ }
82
+ });
83
+
84
+ export const deleteMetricsAggregatorConfig = <ThrowOnError extends boolean = false>(options?: Options<DeleteMetricsAggregatorConfigData, ThrowOnError>): RequestResult<DeleteMetricsAggregatorConfigResponses, DeleteMetricsAggregatorConfigErrors, ThrowOnError> => (options?.client ?? client).delete<DeleteMetricsAggregatorConfigResponses, DeleteMetricsAggregatorConfigErrors, ThrowOnError>({
85
+ security: [{ name: 'Authorization', type: 'apiKey' }],
86
+ url: '/api/aggregations/v1/metrics/config',
87
+ ...options
88
+ });
89
+
90
+ export const getMetricsAggregatorConfig = <ThrowOnError extends boolean = false>(options?: Options<GetMetricsAggregatorConfigData, ThrowOnError>): RequestResult<GetMetricsAggregatorConfigResponses, GetMetricsAggregatorConfigErrors, ThrowOnError> => (options?.client ?? client).get<GetMetricsAggregatorConfigResponses, GetMetricsAggregatorConfigErrors, ThrowOnError>({
91
+ security: [{ name: 'Authorization', type: 'apiKey' }],
92
+ url: '/api/aggregations/v1/metrics/config',
93
+ ...options
94
+ });
95
+
96
+ export const createMetricsAggregatorConfig = <ThrowOnError extends boolean = false>(options: Options<CreateMetricsAggregatorConfigData, ThrowOnError>): RequestResult<CreateMetricsAggregatorConfigResponses, CreateMetricsAggregatorConfigErrors, ThrowOnError> => (options.client ?? client).post<CreateMetricsAggregatorConfigResponses, CreateMetricsAggregatorConfigErrors, ThrowOnError>({
97
+ security: [{ name: 'Authorization', type: 'apiKey' }],
98
+ url: '/api/aggregations/v1/metrics/config',
99
+ ...options,
100
+ headers: {
101
+ 'Content-Type': 'application/json',
102
+ ...options.headers
103
+ }
104
+ });
105
+
106
+ export const updateMetricsAggregatorConfig = <ThrowOnError extends boolean = false>(options: Options<UpdateMetricsAggregatorConfigData, ThrowOnError>): RequestResult<UpdateMetricsAggregatorConfigResponses, UpdateMetricsAggregatorConfigErrors, ThrowOnError> => (options.client ?? client).put<UpdateMetricsAggregatorConfigResponses, UpdateMetricsAggregatorConfigErrors, ThrowOnError>({
107
+ security: [{ name: 'Authorization', type: 'apiKey' }],
108
+ url: '/api/aggregations/v1/metrics/config',
109
+ ...options,
110
+ headers: {
111
+ 'Content-Type': 'application/json',
112
+ ...options.headers
113
+ }
114
+ });
115
+
116
+ /**
117
+ * Create Connected App
118
+ *
119
+ * Creates a new connected app for notifications.
120
+ */
121
+ export const createConnectedApp = <ThrowOnError extends boolean = false>(options: Options<CreateConnectedAppData, ThrowOnError>): RequestResult<CreateConnectedAppResponses, CreateConnectedAppErrors, ThrowOnError> => (options.client ?? client).post<CreateConnectedAppResponses, CreateConnectedAppErrors, ThrowOnError>({
122
+ security: [{ name: 'Authorization', type: 'apiKey' }],
123
+ url: '/api/connected-apps/v1',
124
+ ...options,
125
+ headers: {
126
+ 'Content-Type': 'application/json',
127
+ ...options.headers
128
+ }
129
+ });
130
+
131
+ /**
132
+ * Delete Connected App
133
+ *
134
+ * Deletes a connected app.
135
+ */
136
+ export const deleteConnectedApp = <ThrowOnError extends boolean = false>(options: Options<DeleteConnectedAppData, ThrowOnError>): RequestResult<DeleteConnectedAppResponses, DeleteConnectedAppErrors, ThrowOnError> => (options.client ?? client).delete<DeleteConnectedAppResponses, DeleteConnectedAppErrors, ThrowOnError>({
137
+ security: [{ name: 'Authorization', type: 'apiKey' }],
138
+ url: '/api/connected-apps/v1/{id}',
139
+ ...options
140
+ });
141
+
142
+ /**
143
+ * Get Connected App
144
+ *
145
+ * Retrieves a single connected app by ID.
146
+ */
147
+ export const getConnectedApp = <ThrowOnError extends boolean = false>(options: Options<GetConnectedAppData, ThrowOnError>): RequestResult<GetConnectedAppResponses, GetConnectedAppErrors, ThrowOnError> => (options.client ?? client).get<GetConnectedAppResponses, GetConnectedAppErrors, ThrowOnError>({
148
+ security: [{ name: 'Authorization', type: 'apiKey' }],
149
+ url: '/api/connected-apps/v1/{id}',
150
+ ...options
151
+ });
152
+
153
+ /**
154
+ * Update Connected App
155
+ *
156
+ * Replaces an existing connected app.
157
+ */
158
+ export const updateConnectedApp = <ThrowOnError extends boolean = false>(options: Options<UpdateConnectedAppData, ThrowOnError>): RequestResult<UpdateConnectedAppResponses, UpdateConnectedAppErrors, ThrowOnError> => (options.client ?? client).put<UpdateConnectedAppResponses, UpdateConnectedAppErrors, ThrowOnError>({
159
+ security: [{ name: 'Authorization', type: 'apiKey' }],
160
+ url: '/api/connected-apps/v1/{id}',
161
+ ...options,
162
+ headers: {
163
+ 'Content-Type': 'application/json',
164
+ ...options.headers
165
+ }
166
+ });
167
+
168
+ /**
169
+ * List Connected Apps
170
+ *
171
+ * Returns a list of connected apps filtered by the gcQL query.
172
+ * Supports freetext search on name, type:<type>, and notification_route:<route-name>.
173
+ */
174
+ export const listConnectedApps = <ThrowOnError extends boolean = false>(options?: Options<ListConnectedAppsData, ThrowOnError>): RequestResult<ListConnectedAppsResponses, ListConnectedAppsErrors, ThrowOnError> => (options?.client ?? client).post<ListConnectedAppsResponses, ListConnectedAppsErrors, ThrowOnError>({
175
+ security: [{ name: 'Authorization', type: 'apiKey' }],
176
+ url: '/api/connected-apps/v1/list',
177
+ ...options,
178
+ headers: {
179
+ 'Content-Type': 'application/json',
180
+ ...options?.headers
181
+ }
182
+ });
183
+
184
+ /**
185
+ * Get Dashboards
186
+ */
187
+ export const getDashboards = <ThrowOnError extends boolean = false>(options?: Options<GetDashboardsData, ThrowOnError>): RequestResult<GetDashboardsResponses, GetDashboardsErrors, ThrowOnError> => (options?.client ?? client).get<GetDashboardsResponses, GetDashboardsErrors, ThrowOnError>({
188
+ security: [{ name: 'Authorization', type: 'apiKey' }],
189
+ url: '/api/dashboards',
190
+ ...options
191
+ });
192
+
193
+ /**
194
+ * Create Dashboard
195
+ */
196
+ export const createDashboard = <ThrowOnError extends boolean = false>(options: Options<CreateDashboardData, ThrowOnError>): RequestResult<CreateDashboardResponses, CreateDashboardErrors, ThrowOnError> => (options.client ?? client).post<CreateDashboardResponses, CreateDashboardErrors, ThrowOnError>({
197
+ security: [{ name: 'Authorization', type: 'apiKey' }],
198
+ url: '/api/dashboards',
199
+ ...options,
200
+ headers: {
201
+ 'Content-Type': 'application/json',
202
+ ...options.headers
203
+ }
204
+ });
205
+
206
+ /**
207
+ * Delete Dashboard
208
+ */
209
+ export const deleteDashboard = <ThrowOnError extends boolean = false>(options: Options<DeleteDashboardData, ThrowOnError>): RequestResult<DeleteDashboardResponses, DeleteDashboardErrors, ThrowOnError> => (options.client ?? client).delete<DeleteDashboardResponses, DeleteDashboardErrors, ThrowOnError>({
210
+ security: [{ name: 'Authorization', type: 'apiKey' }],
211
+ url: '/api/dashboards/{id}',
212
+ ...options
213
+ });
214
+
215
+ /**
216
+ * Get Dashboard by ID
217
+ */
218
+ export const getDashboard = <ThrowOnError extends boolean = false>(options: Options<GetDashboardData, ThrowOnError>): RequestResult<GetDashboardResponses, GetDashboardErrors, ThrowOnError> => (options.client ?? client).get<GetDashboardResponses, GetDashboardErrors, ThrowOnError>({
219
+ security: [{ name: 'Authorization', type: 'apiKey' }],
220
+ url: '/api/dashboards/{id}',
221
+ ...options
222
+ });
223
+
224
+ /**
225
+ * Update Dashboard
226
+ */
227
+ export const updateDashboard = <ThrowOnError extends boolean = false>(options: Options<UpdateDashboardData, ThrowOnError>): RequestResult<UpdateDashboardResponses, UpdateDashboardErrors, ThrowOnError> => (options.client ?? client).put<UpdateDashboardResponses, UpdateDashboardErrors, ThrowOnError>({
228
+ security: [{ name: 'Authorization', type: 'apiKey' }],
229
+ url: '/api/dashboards/{id}',
230
+ ...options,
231
+ headers: {
232
+ 'Content-Type': 'application/json',
233
+ ...options.headers
234
+ }
235
+ });
236
+
237
+ /**
238
+ * Archive Dashboard
239
+ */
240
+ export const archiveDashboard = <ThrowOnError extends boolean = false>(options: Options<ArchiveDashboardData, ThrowOnError>): RequestResult<ArchiveDashboardResponses, ArchiveDashboardErrors, ThrowOnError> => (options.client ?? client).post<ArchiveDashboardResponses, ArchiveDashboardErrors, ThrowOnError>({
241
+ security: [{ name: 'Authorization', type: 'apiKey' }],
242
+ url: '/api/dashboards/{id}/archive',
243
+ ...options
244
+ });
245
+
246
+ /**
247
+ * Restore Dashboard
248
+ */
249
+ export const restoreDashboard = <ThrowOnError extends boolean = false>(options: Options<RestoreDashboardData, ThrowOnError>): RequestResult<RestoreDashboardResponses, RestoreDashboardErrors, ThrowOnError> => (options.client ?? client).post<RestoreDashboardResponses, RestoreDashboardErrors, ThrowOnError>({
250
+ security: [{ name: 'Authorization', type: 'apiKey' }],
251
+ url: '/api/dashboards/{id}/restore',
252
+ ...options
253
+ });
254
+
255
+ export const getDataIntegrationConfigs = <ThrowOnError extends boolean = false>(options?: Options<GetDataIntegrationConfigsData, ThrowOnError>): RequestResult<GetDataIntegrationConfigsResponses, GetDataIntegrationConfigsErrors, ThrowOnError> => (options?.client ?? client).get<GetDataIntegrationConfigsResponses, GetDataIntegrationConfigsErrors, ThrowOnError>({
256
+ security: [{ name: 'Authorization', type: 'apiKey' }],
257
+ url: '/api/integrations/v1/data/config',
258
+ ...options
259
+ });
260
+
261
+ export const getDataIntegrationConfigsByType = <ThrowOnError extends boolean = false>(options: Options<GetDataIntegrationConfigsByTypeData, ThrowOnError>): RequestResult<GetDataIntegrationConfigsByTypeResponses, GetDataIntegrationConfigsByTypeErrors, ThrowOnError> => (options.client ?? client).get<GetDataIntegrationConfigsByTypeResponses, GetDataIntegrationConfigsByTypeErrors, ThrowOnError>({
262
+ security: [{ name: 'Authorization', type: 'apiKey' }],
263
+ url: '/api/integrations/v1/data/config/{type}',
264
+ ...options
265
+ });
266
+
267
+ export const createDataIntegrationConfig = <ThrowOnError extends boolean = false>(options: Options<CreateDataIntegrationConfigData, ThrowOnError>): RequestResult<CreateDataIntegrationConfigResponses, CreateDataIntegrationConfigErrors, ThrowOnError> => (options.client ?? client).post<CreateDataIntegrationConfigResponses, CreateDataIntegrationConfigErrors, ThrowOnError>({
268
+ security: [{ name: 'Authorization', type: 'apiKey' }],
269
+ url: '/api/integrations/v1/data/config/{type}',
270
+ ...options,
271
+ headers: {
272
+ 'Content-Type': 'application/json',
273
+ ...options.headers
274
+ }
275
+ });
276
+
277
+ export const deleteDataIntegrationConfig = <ThrowOnError extends boolean = false>(options: Options<DeleteDataIntegrationConfigData, ThrowOnError>): RequestResult<DeleteDataIntegrationConfigResponses, DeleteDataIntegrationConfigErrors, ThrowOnError> => (options.client ?? client).delete<DeleteDataIntegrationConfigResponses, DeleteDataIntegrationConfigErrors, ThrowOnError>({
278
+ security: [{ name: 'Authorization', type: 'apiKey' }],
279
+ url: '/api/integrations/v1/data/config/{type}/{id}',
280
+ ...options
281
+ });
282
+
283
+ export const getDataIntegrationConfig = <ThrowOnError extends boolean = false>(options: Options<GetDataIntegrationConfigData, ThrowOnError>): RequestResult<GetDataIntegrationConfigResponses, GetDataIntegrationConfigErrors, ThrowOnError> => (options.client ?? client).get<GetDataIntegrationConfigResponses, GetDataIntegrationConfigErrors, ThrowOnError>({
284
+ security: [{ name: 'Authorization', type: 'apiKey' }],
285
+ url: '/api/integrations/v1/data/config/{type}/{id}',
286
+ ...options
287
+ });
288
+
289
+ export const updateDataIntegrationConfig = <ThrowOnError extends boolean = false>(options: Options<UpdateDataIntegrationConfigData, ThrowOnError>): RequestResult<UpdateDataIntegrationConfigResponses, UpdateDataIntegrationConfigErrors, ThrowOnError> => (options.client ?? client).put<UpdateDataIntegrationConfigResponses, UpdateDataIntegrationConfigErrors, ThrowOnError>({
290
+ security: [{ name: 'Authorization', type: 'apiKey' }],
291
+ url: '/api/integrations/v1/data/config/{type}/{id}',
292
+ ...options,
293
+ headers: {
294
+ 'Content-Type': 'application/json',
295
+ ...options.headers
296
+ }
297
+ });
298
+
299
+ export const describeDataIntegration = <ThrowOnError extends boolean = false>(options: Options<DescribeDataIntegrationData, ThrowOnError>): RequestResult<DescribeDataIntegrationResponses, DescribeDataIntegrationErrors, ThrowOnError> => (options.client ?? client).get<DescribeDataIntegrationResponses, DescribeDataIntegrationErrors, ThrowOnError>({
300
+ security: [{ name: 'Authorization', type: 'apiKey' }],
301
+ url: '/api/integrations/v1/data/describe/{type}',
302
+ ...options
303
+ });
304
+
305
+ /**
306
+ * Get Kubernetes events over a specified time range.
307
+ *
308
+ * Retrieves and filters Kubernetes events, allowing for sorting and pagination.
309
+ */
310
+ export const getEventsOverTime = <ThrowOnError extends boolean = false>(options: Options<GetEventsOverTimeData, ThrowOnError>): RequestResult<GetEventsOverTimeResponses, GetEventsOverTimeErrors, ThrowOnError> => (options.client ?? client).post<GetEventsOverTimeResponses, GetEventsOverTimeErrors, ThrowOnError>({
311
+ security: [{ name: 'Authorization', type: 'apiKey' }],
312
+ url: '/api/k8s/v2/events-over-time',
313
+ ...options,
314
+ headers: {
315
+ 'Content-Type': 'application/json',
316
+ ...options.headers
317
+ }
318
+ });
319
+
320
+ /**
321
+ * Events search
322
+ */
323
+ export const eventsSearch = <ThrowOnError extends boolean = false>(options: Options<EventsSearchData, ThrowOnError>): RequestResult<EventsSearchResponses, EventsSearchErrors, ThrowOnError> => (options.client ?? client).post<EventsSearchResponses, EventsSearchErrors, ThrowOnError>({
324
+ security: [{ name: 'Authorization', type: 'apiKey' }],
325
+ url: '/api/k8s/v2/events/search',
326
+ ...options,
327
+ headers: {
328
+ 'Content-Type': 'application/json',
329
+ ...options.headers
330
+ }
331
+ });
332
+
333
+ /**
334
+ * Get clusters list.
335
+ *
336
+ * Retrieves a list of Kubernetes clusters based on provided source filters.
337
+ */
338
+ export const clustersList = <ThrowOnError extends boolean = false>(options: Options<ClustersListData, ThrowOnError>): RequestResult<ClustersListResponses, ClustersListErrors, ThrowOnError> => (options.client ?? client).post<ClustersListResponses, ClustersListErrors, ThrowOnError>({
339
+ security: [{ name: 'Authorization', type: 'apiKey' }],
340
+ url: '/api/k8s/v3/clusters/list',
341
+ ...options,
342
+ headers: {
343
+ 'Content-Type': 'application/json',
344
+ ...options.headers
345
+ }
346
+ });
347
+
348
+ /**
349
+ * Get workloads list.
350
+ *
351
+ * Retrieves a list of Kubernetes workloads based on provided source filters, conditions, sorting, and pagination.
352
+ */
353
+ export const workloadsList = <ThrowOnError extends boolean = false>(options: Options<WorkloadsListData, ThrowOnError>): RequestResult<WorkloadsListResponses, WorkloadsListErrors, ThrowOnError> => (options.client ?? client).post<WorkloadsListResponses, WorkloadsListErrors, ThrowOnError>({
354
+ security: [{ name: 'Authorization', type: 'apiKey' }],
355
+ url: '/api/k8s/v3/workloads/list',
356
+ ...options,
357
+ headers: {
358
+ 'Content-Type': 'application/json',
359
+ ...options.headers
360
+ }
361
+ });
362
+
363
+ /**
364
+ * Logs search
365
+ */
366
+ export const searchLogs = <ThrowOnError extends boolean = false>(options: Options<SearchLogsData, ThrowOnError>): RequestResult<SearchLogsResponses, SearchLogsErrors, ThrowOnError> => (options.client ?? client).post<SearchLogsResponses, SearchLogsErrors, ThrowOnError>({
367
+ security: [{ name: 'Authorization', type: 'apiKey' }],
368
+ url: '/api/logs/v2/search',
369
+ ...options,
370
+ headers: {
371
+ 'Content-Type': 'application/json',
372
+ ...options.headers
373
+ }
374
+ });
375
+
376
+ /**
377
+ * GetKeys retrieves metric keys based on the provided request parameters.
378
+ */
379
+ export const getMetricKeys = <ThrowOnError extends boolean = false>(options: Options<GetMetricKeysData, ThrowOnError>): RequestResult<GetMetricKeysResponses, GetMetricKeysErrors, ThrowOnError> => (options.client ?? client).post<GetMetricKeysResponses, GetMetricKeysErrors, ThrowOnError>({
380
+ security: [{ name: 'Authorization', type: 'apiKey' }],
381
+ url: '/api/metrics/keys',
382
+ ...options,
383
+ headers: {
384
+ 'Content-Type': 'application/json',
385
+ ...options.headers
386
+ }
387
+ });
388
+
389
+ /**
390
+ * GetNames retrieves metric names based on the provided request parameters.
391
+ */
392
+ export const getMetricNames = <ThrowOnError extends boolean = false>(options: Options<GetMetricNamesData, ThrowOnError>): RequestResult<GetMetricNamesResponses, GetMetricNamesErrors, ThrowOnError> => (options.client ?? client).post<GetMetricNamesResponses, GetMetricNamesErrors, ThrowOnError>({
393
+ security: [{ name: 'Authorization', type: 'apiKey' }],
394
+ url: '/api/metrics/names',
395
+ ...options,
396
+ headers: {
397
+ 'Content-Type': 'application/json',
398
+ ...options.headers
399
+ }
400
+ });
401
+
402
+ /**
403
+ * Execute Prometheus query.
404
+ *
405
+ * Executes a Prometheus query (instant or range) against the metrics server.
406
+ * Accepts either a direct 'promql' string or components ('pipeline', 'filters', 'conditions', 'subPipelines') to build the query.
407
+ */
408
+ export const metricsQuery = <ThrowOnError extends boolean = false>(options: Options<MetricsQueryData, ThrowOnError>): RequestResult<MetricsQueryResponses, MetricsQueryErrors, ThrowOnError> => (options.client ?? client).post<MetricsQueryResponses, MetricsQueryErrors, ThrowOnError>({
409
+ security: [{ name: 'Authorization', type: 'apiKey' }],
410
+ url: '/api/metrics/query',
411
+ ...options,
412
+ headers: {
413
+ 'Content-Type': 'application/json',
414
+ ...options.headers
415
+ }
416
+ });
417
+
418
+ /**
419
+ * GetMetricValues retrieves metric values based on the provided request parameters.
420
+ */
421
+ export const getMetricValues = <ThrowOnError extends boolean = false>(options: Options<GetMetricValuesData, ThrowOnError>): RequestResult<GetMetricValuesResponses, GetMetricValuesErrors, ThrowOnError> => (options.client ?? client).post<GetMetricValuesResponses, GetMetricValuesErrors, ThrowOnError>({
422
+ security: [{ name: 'Authorization', type: 'apiKey' }],
423
+ url: '/api/metrics/values',
424
+ ...options,
425
+ headers: {
426
+ 'Content-Type': 'application/json',
427
+ ...options.headers
428
+ }
429
+ });
430
+
431
+ /**
432
+ * Create Monitor
433
+ */
434
+ export const createMonitor = <ThrowOnError extends boolean = false>(options: Options<CreateMonitorData, ThrowOnError>): RequestResult<CreateMonitorResponses, CreateMonitorErrors, ThrowOnError> => (options.client ?? client).post<CreateMonitorResponses, CreateMonitorErrors, ThrowOnError>({
435
+ security: [{ name: 'Authorization', type: 'apiKey' }],
436
+ url: '/api/monitors',
437
+ ...options,
438
+ headers: {
439
+ 'Content-Type': 'application/x-yaml',
440
+ ...options.headers
441
+ }
442
+ });
443
+
444
+ /**
445
+ * Delete Monitor
446
+ */
447
+ export const deleteMonitor = <ThrowOnError extends boolean = false>(options: Options<DeleteMonitorData, ThrowOnError>): RequestResult<DeleteMonitorResponses, DeleteMonitorErrors, ThrowOnError> => (options.client ?? client).delete<DeleteMonitorResponses, DeleteMonitorErrors, ThrowOnError>({
448
+ security: [{ name: 'Authorization', type: 'apiKey' }],
449
+ url: '/api/monitors/{id}',
450
+ ...options
451
+ });
452
+
453
+ /**
454
+ * Get Monitor Definition (YAML)
455
+ */
456
+ export const getMonitor = <ThrowOnError extends boolean = false>(options: Options<GetMonitorData, ThrowOnError>): RequestResult<GetMonitorResponses, GetMonitorErrors, ThrowOnError> => (options.client ?? client).get<GetMonitorResponses, GetMonitorErrors, ThrowOnError>({
457
+ security: [{ name: 'Authorization', type: 'apiKey' }],
458
+ url: '/api/monitors/{id}',
459
+ ...options
460
+ });
461
+
462
+ /**
463
+ * Update Monitor
464
+ */
465
+ export const updateMonitor = <ThrowOnError extends boolean = false>(options: Options<UpdateMonitorData, ThrowOnError>): RequestResult<UpdateMonitorResponses, UpdateMonitorErrors, ThrowOnError> => (options.client ?? client).put<UpdateMonitorResponses, UpdateMonitorErrors, ThrowOnError>({
466
+ security: [{ name: 'Authorization', type: 'apiKey' }],
467
+ url: '/api/monitors/{id}',
468
+ ...options,
469
+ headers: {
470
+ 'Content-Type': 'application/x-yaml',
471
+ ...options.headers
472
+ }
473
+ });
474
+
475
+ /**
476
+ * List Monitors
477
+ */
478
+ export const listMonitors = <ThrowOnError extends boolean = false>(options: Options<ListMonitorsData, ThrowOnError>): RequestResult<ListMonitorsResponses, ListMonitorsErrors, ThrowOnError> => (options.client ?? client).post<ListMonitorsResponses, ListMonitorsErrors, ThrowOnError>({
479
+ security: [{ name: 'Authorization', type: 'apiKey' }],
480
+ url: '/api/monitors/list',
481
+ ...options,
482
+ headers: {
483
+ 'Content-Type': 'application/json',
484
+ ...options.headers
485
+ }
486
+ });
487
+
488
+ /**
489
+ * List Recurring Silences
490
+ *
491
+ * Retrieves all recurring silences.
492
+ */
493
+ export const getAllRecurringSilences = <ThrowOnError extends boolean = false>(options?: Options<GetAllRecurringSilencesData, ThrowOnError>): RequestResult<GetAllRecurringSilencesResponses, GetAllRecurringSilencesErrors, ThrowOnError> => (options?.client ?? client).get<GetAllRecurringSilencesResponses, GetAllRecurringSilencesErrors, ThrowOnError>({
494
+ security: [{ name: 'Authorization', type: 'apiKey' }],
495
+ url: '/api/monitors/recurring-silences',
496
+ ...options
497
+ });
498
+
499
+ /**
500
+ * Create Recurring Silence
501
+ *
502
+ * Creates a new recurring silence definition.
503
+ */
504
+ export const createRecurringSilence = <ThrowOnError extends boolean = false>(options: Options<CreateRecurringSilenceData, ThrowOnError>): RequestResult<CreateRecurringSilenceResponses, CreateRecurringSilenceErrors, ThrowOnError> => (options.client ?? client).post<CreateRecurringSilenceResponses, CreateRecurringSilenceErrors, ThrowOnError>({
505
+ security: [{ name: 'Authorization', type: 'apiKey' }],
506
+ url: '/api/monitors/recurring-silences',
507
+ ...options,
508
+ headers: {
509
+ 'Content-Type': 'application/json',
510
+ ...options.headers
511
+ }
512
+ });
513
+
514
+ /**
515
+ * Delete Recurring Silence
516
+ *
517
+ * Deletes a recurring silence by its UUID.
518
+ */
519
+ export const deleteRecurringSilence = <ThrowOnError extends boolean = false>(options: Options<DeleteRecurringSilenceData, ThrowOnError>): RequestResult<DeleteRecurringSilenceResponses, DeleteRecurringSilenceErrors, ThrowOnError> => (options.client ?? client).delete<DeleteRecurringSilenceResponses, DeleteRecurringSilenceErrors, ThrowOnError>({
520
+ security: [{ name: 'Authorization', type: 'apiKey' }],
521
+ url: '/api/monitors/recurring-silences/{id}',
522
+ ...options
523
+ });
524
+
525
+ /**
526
+ * Get Recurring Silence
527
+ *
528
+ * Retrieves a specific recurring silence by its UUID.
529
+ */
530
+ export const getRecurringSilence = <ThrowOnError extends boolean = false>(options: Options<GetRecurringSilenceData, ThrowOnError>): RequestResult<GetRecurringSilenceResponses, GetRecurringSilenceErrors, ThrowOnError> => (options.client ?? client).get<GetRecurringSilenceResponses, GetRecurringSilenceErrors, ThrowOnError>({
531
+ security: [{ name: 'Authorization', type: 'apiKey' }],
532
+ url: '/api/monitors/recurring-silences/{id}',
533
+ ...options
534
+ });
535
+
536
+ /**
537
+ * Update Recurring Silence
538
+ *
539
+ * Updates an existing recurring silence by its UUID.
540
+ */
541
+ export const updateRecurringSilence = <ThrowOnError extends boolean = false>(options: Options<UpdateRecurringSilenceData, ThrowOnError>): RequestResult<UpdateRecurringSilenceResponses, UpdateRecurringSilenceErrors, ThrowOnError> => (options.client ?? client).put<UpdateRecurringSilenceResponses, UpdateRecurringSilenceErrors, ThrowOnError>({
542
+ security: [{ name: 'Authorization', type: 'apiKey' }],
543
+ url: '/api/monitors/recurring-silences/{id}',
544
+ ...options,
545
+ headers: {
546
+ 'Content-Type': 'application/json',
547
+ ...options.headers
548
+ }
549
+ });
550
+
551
+ /**
552
+ * Get All Silences
553
+ *
554
+ * Retrieves all silences with optional filtering.
555
+ */
556
+ export const getAllSilences = <ThrowOnError extends boolean = false>(options?: Options<GetAllSilencesData, ThrowOnError>): RequestResult<GetAllSilencesResponses, GetAllSilencesErrors, ThrowOnError> => (options?.client ?? client).get<GetAllSilencesResponses, GetAllSilencesErrors, ThrowOnError>({
557
+ security: [{ name: 'Authorization', type: 'apiKey' }],
558
+ url: '/api/monitors/silences',
559
+ ...options
560
+ });
561
+
562
+ /**
563
+ * Create Silence
564
+ *
565
+ * Creates a new silence for monitoring alerts.
566
+ */
567
+ export const createSilence = <ThrowOnError extends boolean = false>(options: Options<CreateSilenceData, ThrowOnError>): RequestResult<CreateSilenceResponses, CreateSilenceErrors, ThrowOnError> => (options.client ?? client).post<CreateSilenceResponses, CreateSilenceErrors, ThrowOnError>({
568
+ security: [{ name: 'Authorization', type: 'apiKey' }],
569
+ url: '/api/monitors/silences',
570
+ ...options,
571
+ headers: {
572
+ 'Content-Type': 'application/json',
573
+ ...options.headers
574
+ }
575
+ });
576
+
577
+ /**
578
+ * Delete Silence
579
+ *
580
+ * Deletes a silence by its UUID.
581
+ */
582
+ export const deleteSilence = <ThrowOnError extends boolean = false>(options: Options<DeleteSilenceData, ThrowOnError>): RequestResult<DeleteSilenceResponses, DeleteSilenceErrors, ThrowOnError> => (options.client ?? client).delete<DeleteSilenceResponses, DeleteSilenceErrors, ThrowOnError>({
583
+ security: [{ name: 'Authorization', type: 'apiKey' }],
584
+ url: '/api/monitors/silences/{id}',
585
+ ...options
586
+ });
587
+
588
+ /**
589
+ * Get Silence by ID
590
+ *
591
+ * Retrieves a specific silence by its UUID.
592
+ */
593
+ export const getSilence = <ThrowOnError extends boolean = false>(options: Options<GetSilenceData, ThrowOnError>): RequestResult<GetSilenceResponses, GetSilenceErrors, ThrowOnError> => (options.client ?? client).get<GetSilenceResponses, GetSilenceErrors, ThrowOnError>({
594
+ security: [{ name: 'Authorization', type: 'apiKey' }],
595
+ url: '/api/monitors/silences/{id}',
596
+ ...options
597
+ });
598
+
599
+ /**
600
+ * Update Silence
601
+ *
602
+ * Updates an existing silence by its UUID.
603
+ */
604
+ export const updateSilence = <ThrowOnError extends boolean = false>(options: Options<UpdateSilenceData, ThrowOnError>): RequestResult<UpdateSilenceResponses, UpdateSilenceErrors, ThrowOnError> => (options.client ?? client).put<UpdateSilenceResponses, UpdateSilenceErrors, ThrowOnError>({
605
+ security: [{ name: 'Authorization', type: 'apiKey' }],
606
+ url: '/api/monitors/silences/{id}',
607
+ ...options,
608
+ headers: {
609
+ 'Content-Type': 'application/json',
610
+ ...options.headers
611
+ }
612
+ });
613
+
614
+ /**
615
+ * List All Silences (V2 Unified)
616
+ *
617
+ * Returns both one-time and recurring silences in a single list.
618
+ */
619
+ export const v2GetAllSilences = <ThrowOnError extends boolean = false>(options?: Options<V2GetAllSilencesData, ThrowOnError>): RequestResult<V2GetAllSilencesResponses, V2GetAllSilencesErrors, ThrowOnError> => (options?.client ?? client).get<V2GetAllSilencesResponses, V2GetAllSilencesErrors, ThrowOnError>({
620
+ security: [{ name: 'Authorization', type: 'apiKey' }],
621
+ url: '/api/monitors/v2/silences',
622
+ ...options
623
+ });
624
+
625
+ /**
626
+ * Create Silence (V2 Unified)
627
+ *
628
+ * Creates a new silence (one-time or recurring) based on the type field.
629
+ */
630
+ export const v2CreateSilence = <ThrowOnError extends boolean = false>(options: Options<V2CreateSilenceData, ThrowOnError>): RequestResult<V2CreateSilenceResponses, V2CreateSilenceErrors, ThrowOnError> => (options.client ?? client).post<V2CreateSilenceResponses, V2CreateSilenceErrors, ThrowOnError>({
631
+ security: [{ name: 'Authorization', type: 'apiKey' }],
632
+ url: '/api/monitors/v2/silences',
633
+ ...options,
634
+ headers: {
635
+ 'Content-Type': 'application/json',
636
+ ...options.headers
637
+ }
638
+ });
639
+
640
+ /**
641
+ * Delete Silence (V2 Unified)
642
+ *
643
+ * Deletes a silence (one-time or recurring) by UUID.
644
+ */
645
+ export const v2DeleteSilence = <ThrowOnError extends boolean = false>(options: Options<V2DeleteSilenceData, ThrowOnError>): RequestResult<V2DeleteSilenceResponses, V2DeleteSilenceErrors, ThrowOnError> => (options.client ?? client).delete<V2DeleteSilenceResponses, V2DeleteSilenceErrors, ThrowOnError>({
646
+ security: [{ name: 'Authorization', type: 'apiKey' }],
647
+ url: '/api/monitors/v2/silences/{id}',
648
+ ...options
649
+ });
650
+
651
+ /**
652
+ * Get Silence by ID (V2 Unified)
653
+ *
654
+ * Retrieves a silence (one-time or recurring) by UUID.
655
+ */
656
+ export const v2GetSilence = <ThrowOnError extends boolean = false>(options: Options<V2GetSilenceData, ThrowOnError>): RequestResult<V2GetSilenceResponses, V2GetSilenceErrors, ThrowOnError> => (options.client ?? client).get<V2GetSilenceResponses, V2GetSilenceErrors, ThrowOnError>({
657
+ security: [{ name: 'Authorization', type: 'apiKey' }],
658
+ url: '/api/monitors/v2/silences/{id}',
659
+ ...options
660
+ });
661
+
662
+ /**
663
+ * Update Silence (V2 Unified)
664
+ *
665
+ * Updates a silence (one-time or recurring) by UUID. Auto-detects the type.
666
+ */
667
+ export const v2UpdateSilence = <ThrowOnError extends boolean = false>(options: Options<V2UpdateSilenceData, ThrowOnError>): RequestResult<V2UpdateSilenceResponses, V2UpdateSilenceErrors, ThrowOnError> => (options.client ?? client).put<V2UpdateSilenceResponses, V2UpdateSilenceErrors, ThrowOnError>({
668
+ security: [{ name: 'Authorization', type: 'apiKey' }],
669
+ url: '/api/monitors/v2/silences/{id}',
670
+ ...options,
671
+ headers: {
672
+ 'Content-Type': 'application/json',
673
+ ...options.headers
674
+ }
675
+ });
676
+
677
+ /**
678
+ * Create Notification Route
679
+ *
680
+ * Creates a new notification route.
681
+ */
682
+ export const createNotificationRoute = <ThrowOnError extends boolean = false>(options: Options<CreateNotificationRouteData, ThrowOnError>): RequestResult<CreateNotificationRouteResponses, CreateNotificationRouteErrors, ThrowOnError> => (options.client ?? client).post<CreateNotificationRouteResponses, CreateNotificationRouteErrors, ThrowOnError>({
683
+ security: [{ name: 'Authorization', type: 'apiKey' }],
684
+ url: '/api/notification-routes/v1',
685
+ ...options,
686
+ headers: {
687
+ 'Content-Type': 'application/json',
688
+ ...options.headers
689
+ }
690
+ });
691
+
692
+ /**
693
+ * Delete Notification Route
694
+ *
695
+ * Soft deletes a notification route.
696
+ */
697
+ export const deleteNotificationRoute = <ThrowOnError extends boolean = false>(options: Options<DeleteNotificationRouteData, ThrowOnError>): RequestResult<DeleteNotificationRouteResponses, DeleteNotificationRouteErrors, ThrowOnError> => (options.client ?? client).delete<DeleteNotificationRouteResponses, DeleteNotificationRouteErrors, ThrowOnError>({
698
+ security: [{ name: 'Authorization', type: 'apiKey' }],
699
+ url: '/api/notification-routes/v1/{id}',
700
+ ...options
701
+ });
702
+
703
+ /**
704
+ * Get Notification Route
705
+ *
706
+ * Retrieves a single notification route by ID.
707
+ */
708
+ export const getNotificationRoute = <ThrowOnError extends boolean = false>(options: Options<GetNotificationRouteData, ThrowOnError>): RequestResult<GetNotificationRouteResponses, GetNotificationRouteErrors, ThrowOnError> => (options.client ?? client).get<GetNotificationRouteResponses, GetNotificationRouteErrors, ThrowOnError>({
709
+ security: [{ name: 'Authorization', type: 'apiKey' }],
710
+ url: '/api/notification-routes/v1/{id}',
711
+ ...options
712
+ });
713
+
714
+ /**
715
+ * Update Notification Route
716
+ *
717
+ * Replaces an existing notification route.
718
+ */
719
+ export const updateNotificationRoute = <ThrowOnError extends boolean = false>(options: Options<UpdateNotificationRouteData, ThrowOnError>): RequestResult<UpdateNotificationRouteResponses, UpdateNotificationRouteErrors, ThrowOnError> => (options.client ?? client).put<UpdateNotificationRouteResponses, UpdateNotificationRouteErrors, ThrowOnError>({
720
+ security: [{ name: 'Authorization', type: 'apiKey' }],
721
+ url: '/api/notification-routes/v1/{id}',
722
+ ...options,
723
+ headers: {
724
+ 'Content-Type': 'application/json',
725
+ ...options.headers
726
+ }
727
+ });
728
+
729
+ /**
730
+ * List Notification Routes
731
+ *
732
+ * Returns a list of notification routes with optional filtering.
733
+ */
734
+ export const listNotificationRoutes = <ThrowOnError extends boolean = false>(options?: Options<ListNotificationRoutesData, ThrowOnError>): RequestResult<ListNotificationRoutesResponses, ListNotificationRoutesErrors, ThrowOnError> => (options?.client ?? client).post<ListNotificationRoutesResponses, ListNotificationRoutesErrors, ThrowOnError>({
735
+ security: [{ name: 'Authorization', type: 'apiKey' }],
736
+ url: '/api/notification-routes/v1/list',
737
+ ...options,
738
+ headers: {
739
+ 'Content-Type': 'application/json',
740
+ ...options?.headers
741
+ }
742
+ });
743
+
744
+ export const deleteLogsPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<DeleteLogsPipelineConfigData, ThrowOnError>): RequestResult<DeleteLogsPipelineConfigResponses, DeleteLogsPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).delete<DeleteLogsPipelineConfigResponses, DeleteLogsPipelineConfigErrors, ThrowOnError>({
745
+ security: [{ name: 'Authorization', type: 'apiKey' }],
746
+ url: '/api/pipelines/logs/config',
747
+ ...options
748
+ });
749
+
750
+ export const getLogsPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<GetLogsPipelineConfigData, ThrowOnError>): RequestResult<GetLogsPipelineConfigResponses, GetLogsPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).get<GetLogsPipelineConfigResponses, GetLogsPipelineConfigErrors, ThrowOnError>({
751
+ security: [{ name: 'Authorization', type: 'apiKey' }],
752
+ url: '/api/pipelines/logs/config',
753
+ ...options
754
+ });
755
+
756
+ export const createLogsPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<CreateLogsPipelineConfigData, ThrowOnError>): RequestResult<CreateLogsPipelineConfigResponses, CreateLogsPipelineConfigErrors, ThrowOnError> => (options.client ?? client).post<CreateLogsPipelineConfigResponses, CreateLogsPipelineConfigErrors, ThrowOnError>({
757
+ security: [{ name: 'Authorization', type: 'apiKey' }],
758
+ url: '/api/pipelines/logs/config',
759
+ ...options,
760
+ headers: {
761
+ 'Content-Type': 'application/json',
762
+ ...options.headers
763
+ }
764
+ });
765
+
766
+ export const updateLogsPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<UpdateLogsPipelineConfigData, ThrowOnError>): RequestResult<UpdateLogsPipelineConfigResponses, UpdateLogsPipelineConfigErrors, ThrowOnError> => (options.client ?? client).put<UpdateLogsPipelineConfigResponses, UpdateLogsPipelineConfigErrors, ThrowOnError>({
767
+ security: [{ name: 'Authorization', type: 'apiKey' }],
768
+ url: '/api/pipelines/logs/config',
769
+ ...options,
770
+ headers: {
771
+ 'Content-Type': 'application/json',
772
+ ...options.headers
773
+ }
774
+ });
775
+
776
+ export const deleteTracesPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<DeleteTracesPipelineConfigData, ThrowOnError>): RequestResult<DeleteTracesPipelineConfigResponses, DeleteTracesPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).delete<DeleteTracesPipelineConfigResponses, DeleteTracesPipelineConfigErrors, ThrowOnError>({
777
+ security: [{ name: 'Authorization', type: 'apiKey' }],
778
+ url: '/api/pipelines/traces/config',
779
+ ...options
780
+ });
781
+
782
+ export const getTracesPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<GetTracesPipelineConfigData, ThrowOnError>): RequestResult<GetTracesPipelineConfigResponses, GetTracesPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).get<GetTracesPipelineConfigResponses, GetTracesPipelineConfigErrors, ThrowOnError>({
783
+ security: [{ name: 'Authorization', type: 'apiKey' }],
784
+ url: '/api/pipelines/traces/config',
785
+ ...options
786
+ });
787
+
788
+ export const createTracesPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<CreateTracesPipelineConfigData, ThrowOnError>): RequestResult<CreateTracesPipelineConfigResponses, CreateTracesPipelineConfigErrors, ThrowOnError> => (options.client ?? client).post<CreateTracesPipelineConfigResponses, CreateTracesPipelineConfigErrors, ThrowOnError>({
789
+ security: [{ name: 'Authorization', type: 'apiKey' }],
790
+ url: '/api/pipelines/traces/config',
791
+ ...options,
792
+ headers: {
793
+ 'Content-Type': 'application/json',
794
+ ...options.headers
795
+ }
796
+ });
797
+
798
+ export const updateTracesPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<UpdateTracesPipelineConfigData, ThrowOnError>): RequestResult<UpdateTracesPipelineConfigResponses, UpdateTracesPipelineConfigErrors, ThrowOnError> => (options.client ?? client).put<UpdateTracesPipelineConfigResponses, UpdateTracesPipelineConfigErrors, ThrowOnError>({
799
+ security: [{ name: 'Authorization', type: 'apiKey' }],
800
+ url: '/api/pipelines/traces/config',
801
+ ...options,
802
+ headers: {
803
+ 'Content-Type': 'application/json',
804
+ ...options.headers
805
+ }
806
+ });
807
+
808
+ export const deleteMetricsPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<DeleteMetricsPipelineConfigData, ThrowOnError>): RequestResult<DeleteMetricsPipelineConfigResponses, DeleteMetricsPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).delete<DeleteMetricsPipelineConfigResponses, DeleteMetricsPipelineConfigErrors, ThrowOnError>({
809
+ security: [{ name: 'Authorization', type: 'apiKey' }],
810
+ url: '/api/pipelines/v1/metrics/config',
811
+ ...options
812
+ });
813
+
814
+ export const getMetricsPipelineConfig = <ThrowOnError extends boolean = false>(options?: Options<GetMetricsPipelineConfigData, ThrowOnError>): RequestResult<GetMetricsPipelineConfigResponses, GetMetricsPipelineConfigErrors, ThrowOnError> => (options?.client ?? client).get<GetMetricsPipelineConfigResponses, GetMetricsPipelineConfigErrors, ThrowOnError>({
815
+ security: [{ name: 'Authorization', type: 'apiKey' }],
816
+ url: '/api/pipelines/v1/metrics/config',
817
+ ...options
818
+ });
819
+
820
+ export const createMetricsPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<CreateMetricsPipelineConfigData, ThrowOnError>): RequestResult<CreateMetricsPipelineConfigResponses, CreateMetricsPipelineConfigErrors, ThrowOnError> => (options.client ?? client).post<CreateMetricsPipelineConfigResponses, CreateMetricsPipelineConfigErrors, ThrowOnError>({
821
+ security: [{ name: 'Authorization', type: 'apiKey' }],
822
+ url: '/api/pipelines/v1/metrics/config',
823
+ ...options,
824
+ headers: {
825
+ 'Content-Type': 'application/json',
826
+ ...options.headers
827
+ }
828
+ });
829
+
830
+ export const updateMetricsPipelineConfig = <ThrowOnError extends boolean = false>(options: Options<UpdateMetricsPipelineConfigData, ThrowOnError>): RequestResult<UpdateMetricsPipelineConfigResponses, UpdateMetricsPipelineConfigErrors, ThrowOnError> => (options.client ?? client).put<UpdateMetricsPipelineConfigResponses, UpdateMetricsPipelineConfigErrors, ThrowOnError>({
831
+ security: [{ name: 'Authorization', type: 'apiKey' }],
832
+ url: '/api/pipelines/v1/metrics/config',
833
+ ...options,
834
+ headers: {
835
+ 'Content-Type': 'application/json',
836
+ ...options.headers
837
+ }
838
+ });
839
+
840
+ /**
841
+ * Delete API Key
842
+ */
843
+ export const deleteApiKey = <ThrowOnError extends boolean = false>(options: Options<DeleteApiKeyData, ThrowOnError>): RequestResult<DeleteApiKeyResponses, DeleteApiKeyErrors, ThrowOnError> => (options.client ?? client).delete<DeleteApiKeyResponses, DeleteApiKeyErrors, ThrowOnError>({
844
+ security: [{ name: 'Authorization', type: 'apiKey' }],
845
+ url: '/api/rbac/apikey/{id}',
846
+ ...options
847
+ });
848
+
849
+ /**
850
+ * Create API Key
851
+ */
852
+ export const createApiKey = <ThrowOnError extends boolean = false>(options: Options<CreateApiKeyData, ThrowOnError>): RequestResult<CreateApiKeyResponses, CreateApiKeyErrors, ThrowOnError> => (options.client ?? client).post<CreateApiKeyResponses, CreateApiKeyErrors, ThrowOnError>({
853
+ security: [{ name: 'Authorization', type: 'apiKey' }],
854
+ url: '/api/rbac/apikey/create',
855
+ ...options,
856
+ headers: {
857
+ 'Content-Type': 'application/json',
858
+ ...options.headers
859
+ }
860
+ });
861
+
862
+ /**
863
+ * List API Keys
864
+ */
865
+ export const listApiKeys = <ThrowOnError extends boolean = false>(options?: Options<ListApiKeysData, ThrowOnError>): RequestResult<ListApiKeysResponses, ListApiKeysErrors, ThrowOnError> => (options?.client ?? client).get<ListApiKeysResponses, ListApiKeysErrors, ThrowOnError>({
866
+ security: [{ name: 'Authorization', type: 'apiKey' }],
867
+ url: '/api/rbac/apikeys/list',
868
+ ...options
869
+ });
870
+
871
+ /**
872
+ * Create Ingestion Key
873
+ */
874
+ export const createIngestionKey = <ThrowOnError extends boolean = false>(options: Options<CreateIngestionKeyData, ThrowOnError>): RequestResult<CreateIngestionKeyResponses, CreateIngestionKeyErrors, ThrowOnError> => (options.client ?? client).post<CreateIngestionKeyResponses, CreateIngestionKeyErrors, ThrowOnError>({
875
+ security: [{ name: 'Authorization', type: 'apiKey' }],
876
+ url: '/api/rbac/ingestion-keys/create',
877
+ ...options,
878
+ headers: {
879
+ 'Content-Type': 'application/json',
880
+ ...options.headers
881
+ }
882
+ });
883
+
884
+ /**
885
+ * Delete Ingestion Key
886
+ */
887
+ export const deleteIngestionKey = <ThrowOnError extends boolean = false>(options: Options<DeleteIngestionKeyData, ThrowOnError>): RequestResult<DeleteIngestionKeyResponses, DeleteIngestionKeyErrors, ThrowOnError> => (options.client ?? client).delete<DeleteIngestionKeyResponses, DeleteIngestionKeyErrors, ThrowOnError>({
888
+ security: [{ name: 'Authorization', type: 'apiKey' }],
889
+ url: '/api/rbac/ingestion-keys/delete',
890
+ ...options,
891
+ headers: {
892
+ 'Content-Type': 'application/json',
893
+ ...options.headers
894
+ }
895
+ });
896
+
897
+ /**
898
+ * List Ingestion Keys
899
+ */
900
+ export const listIngestionKeys = <ThrowOnError extends boolean = false>(options: Options<ListIngestionKeysData, ThrowOnError>): RequestResult<ListIngestionKeysResponses, ListIngestionKeysErrors, ThrowOnError> => (options.client ?? client).post<ListIngestionKeysResponses, ListIngestionKeysErrors, ThrowOnError>({
901
+ security: [{ name: 'Authorization', type: 'apiKey' }],
902
+ url: '/api/rbac/ingestion-keys/list',
903
+ ...options,
904
+ headers: {
905
+ 'Content-Type': 'application/json',
906
+ ...options.headers
907
+ }
908
+ });
909
+
910
+ /**
911
+ * List Policies
912
+ */
913
+ export const listPolicies = <ThrowOnError extends boolean = false>(options?: Options<ListPoliciesData, ThrowOnError>): RequestResult<ListPoliciesResponses, ListPoliciesErrors, ThrowOnError> => (options?.client ?? client).get<ListPoliciesResponses, ListPoliciesErrors, ThrowOnError>({
914
+ security: [{ name: 'Authorization', type: 'apiKey' }],
915
+ url: '/api/rbac/policies/list',
916
+ ...options
917
+ });
918
+
919
+ /**
920
+ * Delete Policy
921
+ */
922
+ export const deletePolicy = <ThrowOnError extends boolean = false>(options: Options<DeletePolicyData, ThrowOnError>): RequestResult<DeletePolicyResponses, DeletePolicyErrors, ThrowOnError> => (options.client ?? client).delete<DeletePolicyResponses, DeletePolicyErrors, ThrowOnError>({
923
+ security: [{ name: 'Authorization', type: 'apiKey' }],
924
+ url: '/api/rbac/policy/{id}',
925
+ ...options
926
+ });
927
+
928
+ /**
929
+ * Get Policy by ID
930
+ */
931
+ export const getPolicy = <ThrowOnError extends boolean = false>(options: Options<GetPolicyData, ThrowOnError>): RequestResult<GetPolicyResponses, GetPolicyErrors, ThrowOnError> => (options.client ?? client).get<GetPolicyResponses, GetPolicyErrors, ThrowOnError>({
932
+ security: [{ name: 'Authorization', type: 'apiKey' }],
933
+ url: '/api/rbac/policy/{id}',
934
+ ...options
935
+ });
936
+
937
+ /**
938
+ * Update Policy
939
+ */
940
+ export const updatePolicy = <ThrowOnError extends boolean = false>(options: Options<UpdatePolicyData, ThrowOnError>): RequestResult<UpdatePolicyResponses, UpdatePolicyErrors, ThrowOnError> => (options.client ?? client).put<UpdatePolicyResponses, UpdatePolicyErrors, ThrowOnError>({
941
+ security: [{ name: 'Authorization', type: 'apiKey' }],
942
+ url: '/api/rbac/policy/{id}',
943
+ ...options,
944
+ headers: {
945
+ 'Content-Type': 'application/json',
946
+ ...options.headers
947
+ }
948
+ });
949
+
950
+ /**
951
+ * Get Policy Audit Trail
952
+ */
953
+ export const getPolicyAuditTrail = <ThrowOnError extends boolean = false>(options: Options<GetPolicyAuditTrailData, ThrowOnError>): RequestResult<GetPolicyAuditTrailResponses, GetPolicyAuditTrailErrors, ThrowOnError> => (options.client ?? client).get<GetPolicyAuditTrailResponses, GetPolicyAuditTrailErrors, ThrowOnError>({
954
+ security: [{ name: 'Authorization', type: 'apiKey' }],
955
+ url: '/api/rbac/policy/{id}/auditTrail',
956
+ ...options
957
+ });
958
+
959
+ /**
960
+ * Apply Policies to Users
961
+ */
962
+ export const applyPolicy = <ThrowOnError extends boolean = false>(options: Options<ApplyPolicyData, ThrowOnError>): RequestResult<ApplyPolicyResponses, ApplyPolicyErrors, ThrowOnError> => (options.client ?? client).post<ApplyPolicyResponses, ApplyPolicyErrors, ThrowOnError>({
963
+ security: [{ name: 'Authorization', type: 'apiKey' }],
964
+ url: '/api/rbac/policy/apply',
965
+ ...options,
966
+ headers: {
967
+ 'Content-Type': 'application/json',
968
+ ...options.headers
969
+ }
970
+ });
971
+
972
+ /**
973
+ * Create Policy
974
+ */
975
+ export const createPolicy = <ThrowOnError extends boolean = false>(options: Options<CreatePolicyData, ThrowOnError>): RequestResult<CreatePolicyResponses, CreatePolicyErrors, ThrowOnError> => (options.client ?? client).post<CreatePolicyResponses, CreatePolicyErrors, ThrowOnError>({
976
+ security: [{ name: 'Authorization', type: 'apiKey' }],
977
+ url: '/api/rbac/policy/create',
978
+ ...options,
979
+ headers: {
980
+ 'Content-Type': 'application/json',
981
+ ...options.headers
982
+ }
983
+ });
984
+
985
+ /**
986
+ * Delete Service Account
987
+ */
988
+ export const deleteServiceAccount = <ThrowOnError extends boolean = false>(options: Options<DeleteServiceAccountData, ThrowOnError>): RequestResult<DeleteServiceAccountResponses, DeleteServiceAccountErrors, ThrowOnError> => (options.client ?? client).delete<DeleteServiceAccountResponses, DeleteServiceAccountErrors, ThrowOnError>({
989
+ security: [{ name: 'Authorization', type: 'apiKey' }],
990
+ url: '/api/rbac/service-account/{id}',
991
+ ...options
992
+ });
993
+
994
+ /**
995
+ * Get service account by ID
996
+ */
997
+ export const getServiceAccount = <ThrowOnError extends boolean = false>(options: Options<GetServiceAccountData, ThrowOnError>): RequestResult<GetServiceAccountResponses, GetServiceAccountErrors, ThrowOnError> => (options.client ?? client).get<GetServiceAccountResponses, GetServiceAccountErrors, ThrowOnError>({
998
+ security: [{ name: 'Authorization', type: 'apiKey' }],
999
+ url: '/api/rbac/service-account/{id}',
1000
+ ...options
1001
+ });
1002
+
1003
+ /**
1004
+ * Create Service Account
1005
+ */
1006
+ export const createServiceAccount = <ThrowOnError extends boolean = false>(options: Options<CreateServiceAccountData, ThrowOnError>): RequestResult<CreateServiceAccountResponses, CreateServiceAccountErrors, ThrowOnError> => (options.client ?? client).post<CreateServiceAccountResponses, CreateServiceAccountErrors, ThrowOnError>({
1007
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1008
+ url: '/api/rbac/service-account/create',
1009
+ ...options,
1010
+ headers: {
1011
+ 'Content-Type': 'application/json',
1012
+ ...options.headers
1013
+ }
1014
+ });
1015
+
1016
+ /**
1017
+ * Update Service Account
1018
+ */
1019
+ export const updateServiceAccount = <ThrowOnError extends boolean = false>(options: Options<UpdateServiceAccountData, ThrowOnError>): RequestResult<UpdateServiceAccountResponses, UpdateServiceAccountErrors, ThrowOnError> => (options.client ?? client).put<UpdateServiceAccountResponses, UpdateServiceAccountErrors, ThrowOnError>({
1020
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1021
+ url: '/api/rbac/service-account/update',
1022
+ ...options,
1023
+ headers: {
1024
+ 'Content-Type': 'application/json',
1025
+ ...options.headers
1026
+ }
1027
+ });
1028
+
1029
+ /**
1030
+ * List Service Accounts
1031
+ */
1032
+ export const listServiceAccounts = <ThrowOnError extends boolean = false>(options?: Options<ListServiceAccountsData, ThrowOnError>): RequestResult<ListServiceAccountsResponses, ListServiceAccountsErrors, ThrowOnError> => (options?.client ?? client).get<ListServiceAccountsResponses, ListServiceAccountsErrors, ThrowOnError>({
1033
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1034
+ url: '/api/rbac/service-accounts/list',
1035
+ ...options
1036
+ });
1037
+
1038
+ /**
1039
+ * Get tenant AI settings
1040
+ */
1041
+ export const getTenantAiSettings = <ThrowOnError extends boolean = false>(options: Options<GetTenantAiSettingsData, ThrowOnError>): RequestResult<GetTenantAiSettingsResponses, GetTenantAiSettingsErrors, ThrowOnError> => (options.client ?? client).get<GetTenantAiSettingsResponses, GetTenantAiSettingsErrors, ThrowOnError>({
1042
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1043
+ url: '/api/rbac/v2/tenant/ai-settings',
1044
+ ...options
1045
+ });
1046
+
1047
+ /**
1048
+ * Update tenant AI settings
1049
+ */
1050
+ export const updateTenantAiSettings = <ThrowOnError extends boolean = false>(options: Options<UpdateTenantAiSettingsData, ThrowOnError>): RequestResult<UpdateTenantAiSettingsResponses, UpdateTenantAiSettingsErrors, ThrowOnError> => (options.client ?? client).put<UpdateTenantAiSettingsResponses, UpdateTenantAiSettingsErrors, ThrowOnError>({
1051
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1052
+ url: '/api/rbac/v2/tenant/ai-settings',
1053
+ ...options,
1054
+ headers: {
1055
+ 'Content-Type': 'application/json',
1056
+ ...options.headers
1057
+ }
1058
+ });
1059
+
1060
+ /**
1061
+ * Upload a sourcemap
1062
+ *
1063
+ * Accepts multipart/form-data with app_id, release_id, and file fields.
1064
+ */
1065
+ export const uploadSourceMap = <ThrowOnError extends boolean = false>(options?: Options<UploadSourceMapData, ThrowOnError>): RequestResult<UploadSourceMapResponses, UploadSourceMapErrors, ThrowOnError> => (options?.client ?? client).post<UploadSourceMapResponses, UploadSourceMapErrors, ThrowOnError>({
1066
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1067
+ url: '/api/rum/sourcemaps',
1068
+ ...options
1069
+ });
1070
+
1071
+ /**
1072
+ * GetDiscovery retrieves search discovery results based on the provided request parameters.
1073
+ */
1074
+ export const getDiscovery = <ThrowOnError extends boolean = false>(options: Options<GetDiscoveryData, ThrowOnError>): RequestResult<GetDiscoveryResponses, GetDiscoveryErrors, ThrowOnError> => (options.client ?? client).post<GetDiscoveryResponses, GetDiscoveryErrors, ThrowOnError>({
1075
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1076
+ url: '/api/search/discovery',
1077
+ ...options,
1078
+ headers: {
1079
+ 'Content-Type': 'application/json',
1080
+ ...options.headers
1081
+ }
1082
+ });
1083
+
1084
+ /**
1085
+ * GetKeys retrieves search keys based on the provided request parameters.
1086
+ */
1087
+ export const getKeys = <ThrowOnError extends boolean = false>(options: Options<GetKeysData, ThrowOnError>): RequestResult<GetKeysResponses, GetKeysErrors, ThrowOnError> => (options.client ?? client).post<GetKeysResponses, GetKeysErrors, ThrowOnError>({
1088
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1089
+ url: '/api/search/keys',
1090
+ ...options,
1091
+ headers: {
1092
+ 'Content-Type': 'application/json',
1093
+ ...options.headers
1094
+ }
1095
+ });
1096
+
1097
+ /**
1098
+ * GetValues retrieves search values based on the provided request parameters.
1099
+ */
1100
+ export const getValues = <ThrowOnError extends boolean = false>(options?: Options<GetValuesData, ThrowOnError>): RequestResult<GetValuesResponses, GetValuesErrors, ThrowOnError> => (options?.client ?? client).post<GetValuesResponses, GetValuesErrors, ThrowOnError>({
1101
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1102
+ url: '/api/search/values',
1103
+ ...options,
1104
+ headers: {
1105
+ 'Content-Type': 'application/json',
1106
+ ...options?.headers
1107
+ }
1108
+ });
1109
+
1110
+ /**
1111
+ * Create Secret
1112
+ */
1113
+ export const createSecret = <ThrowOnError extends boolean = false>(options: Options<CreateSecretData, ThrowOnError>): RequestResult<CreateSecretResponses, CreateSecretErrors, ThrowOnError> => (options.client ?? client).post<CreateSecretResponses, CreateSecretErrors, ThrowOnError>({
1114
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1115
+ url: '/api/secret',
1116
+ ...options,
1117
+ headers: {
1118
+ 'Content-Type': 'application/json',
1119
+ ...options.headers
1120
+ }
1121
+ });
1122
+
1123
+ /**
1124
+ * Delete Secret
1125
+ *
1126
+ * # Deletes a secret by its ID
1127
+ */
1128
+ export const deleteSecret = <ThrowOnError extends boolean = false>(options: Options<DeleteSecretData, ThrowOnError>): RequestResult<DeleteSecretResponses, DeleteSecretErrors, ThrowOnError> => (options.client ?? client).delete<DeleteSecretResponses, DeleteSecretErrors, ThrowOnError>({
1129
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1130
+ url: '/api/secret/{id}',
1131
+ ...options
1132
+ });
1133
+
1134
+ /**
1135
+ * Update Secret
1136
+ */
1137
+ export const updateSecret = <ThrowOnError extends boolean = false>(options: Options<UpdateSecretData, ThrowOnError>): RequestResult<UpdateSecretResponses, UpdateSecretErrors, ThrowOnError> => (options.client ?? client).put<UpdateSecretResponses, UpdateSecretErrors, ThrowOnError>({
1138
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1139
+ url: '/api/secret/{id}',
1140
+ ...options,
1141
+ headers: {
1142
+ 'Content-Type': 'application/json',
1143
+ ...options.headers
1144
+ }
1145
+ });
1146
+
1147
+ /**
1148
+ * Get Secret Hash
1149
+ *
1150
+ * Retrieves the FNV-1a hash of a secret's content without exposing the actual secret value.
1151
+ * This is useful for Terraform/Crossplane to detect changes without retrieving the secret.
1152
+ */
1153
+ export const getSecretHash = <ThrowOnError extends boolean = false>(options: Options<GetSecretHashData, ThrowOnError>): RequestResult<GetSecretHashResponses, GetSecretHashErrors, ThrowOnError> => (options.client ?? client).get<GetSecretHashResponses, GetSecretHashErrors, ThrowOnError>({
1154
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1155
+ url: '/api/secret/{id}/hash',
1156
+ ...options
1157
+ });
1158
+
1159
+ export const getStorageManagementPolicies = <ThrowOnError extends boolean = false>(options?: Options<GetStorageManagementPoliciesData, ThrowOnError>): RequestResult<GetStorageManagementPoliciesResponses, GetStorageManagementPoliciesErrors, ThrowOnError> => (options?.client ?? client).get<GetStorageManagementPoliciesResponses, GetStorageManagementPoliciesErrors, ThrowOnError>({
1160
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1161
+ url: '/api/storage-management',
1162
+ ...options
1163
+ });
1164
+
1165
+ export const getStorageManagementPolicyByType = <ThrowOnError extends boolean = false>(options: Options<GetStorageManagementPolicyByTypeData, ThrowOnError>): RequestResult<GetStorageManagementPolicyByTypeResponses, GetStorageManagementPolicyByTypeErrors, ThrowOnError> => (options.client ?? client).get<GetStorageManagementPolicyByTypeResponses, GetStorageManagementPolicyByTypeErrors, ThrowOnError>({
1166
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1167
+ url: '/api/storage-management/{data_type}',
1168
+ ...options
1169
+ });
1170
+
1171
+ export const createStorageManagementPolicyByType = <ThrowOnError extends boolean = false>(options: Options<CreateStorageManagementPolicyByTypeData, ThrowOnError>): RequestResult<CreateStorageManagementPolicyByTypeResponses, CreateStorageManagementPolicyByTypeErrors, ThrowOnError> => (options.client ?? client).post<CreateStorageManagementPolicyByTypeResponses, CreateStorageManagementPolicyByTypeErrors, ThrowOnError>({
1172
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1173
+ url: '/api/storage-management/{data_type}',
1174
+ ...options,
1175
+ headers: {
1176
+ 'Content-Type': 'application/json',
1177
+ ...options.headers
1178
+ }
1179
+ });
1180
+
1181
+ export const updateStorageManagementPolicyByType = <ThrowOnError extends boolean = false>(options: Options<UpdateStorageManagementPolicyByTypeData, ThrowOnError>): RequestResult<UpdateStorageManagementPolicyByTypeResponses, UpdateStorageManagementPolicyByTypeErrors, ThrowOnError> => (options.client ?? client).put<UpdateStorageManagementPolicyByTypeResponses, UpdateStorageManagementPolicyByTypeErrors, ThrowOnError>({
1182
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1183
+ url: '/api/storage-management/{data_type}',
1184
+ ...options,
1185
+ headers: {
1186
+ 'Content-Type': 'application/json',
1187
+ ...options.headers
1188
+ }
1189
+ });
1190
+
1191
+ /**
1192
+ * List Synthetic Tests
1193
+ *
1194
+ * Lists all synthetic test configurations with their status and monitor information.
1195
+ */
1196
+ export const listSyntheticTests = <ThrowOnError extends boolean = false>(options?: Options<ListSyntheticTestsData, ThrowOnError>): RequestResult<ListSyntheticTestsResponses, ListSyntheticTestsErrors, ThrowOnError> => (options?.client ?? client).get<ListSyntheticTestsResponses, ListSyntheticTestsErrors, ThrowOnError>({
1197
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1198
+ url: '/api/synthetics/v1/rules',
1199
+ ...options
1200
+ });
1201
+
1202
+ /**
1203
+ * Create Synthetic Test
1204
+ *
1205
+ * Creates a new synthetic test with the provided configuration.
1206
+ */
1207
+ export const createSyntheticTest = <ThrowOnError extends boolean = false>(options: Options<CreateSyntheticTestData, ThrowOnError>): RequestResult<CreateSyntheticTestResponses, CreateSyntheticTestErrors, ThrowOnError> => (options.client ?? client).post<CreateSyntheticTestResponses, CreateSyntheticTestErrors, ThrowOnError>({
1208
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1209
+ url: '/api/synthetics/v1/rules',
1210
+ ...options,
1211
+ headers: {
1212
+ 'Content-Type': 'application/json',
1213
+ ...options.headers
1214
+ }
1215
+ });
1216
+
1217
+ /**
1218
+ * Delete Synthetic Test
1219
+ *
1220
+ * Deletes a synthetic test configuration and its associated monitor.
1221
+ */
1222
+ export const deleteSyntheticTest = <ThrowOnError extends boolean = false>(options: Options<DeleteSyntheticTestData, ThrowOnError>): RequestResult<DeleteSyntheticTestResponses, DeleteSyntheticTestErrors, ThrowOnError> => (options.client ?? client).delete<DeleteSyntheticTestResponses, DeleteSyntheticTestErrors, ThrowOnError>({
1223
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1224
+ url: '/api/synthetics/v1/rules/{id}',
1225
+ ...options
1226
+ });
1227
+
1228
+ /**
1229
+ * Get Synthetic Test
1230
+ *
1231
+ * Gets a single synthetic test configuration by ID.
1232
+ */
1233
+ export const getSyntheticTest = <ThrowOnError extends boolean = false>(options: Options<GetSyntheticTestData, ThrowOnError>): RequestResult<GetSyntheticTestResponses, GetSyntheticTestErrors, ThrowOnError> => (options.client ?? client).get<GetSyntheticTestResponses, GetSyntheticTestErrors, ThrowOnError>({
1234
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1235
+ url: '/api/synthetics/v1/rules/{id}',
1236
+ ...options
1237
+ });
1238
+
1239
+ /**
1240
+ * Update Synthetic Test
1241
+ *
1242
+ * Updates a synthetic test configuration and its associated monitor.
1243
+ * To create a monitor on a synthetic that currently has none, set createMonitor=true explicitly.
1244
+ * Sending a monitor config block without createMonitor=true when no monitor exists returns 400.
1245
+ */
1246
+ export const updateSyntheticTest = <ThrowOnError extends boolean = false>(options: Options<UpdateSyntheticTestData, ThrowOnError>): RequestResult<UpdateSyntheticTestResponses, UpdateSyntheticTestErrors, ThrowOnError> => (options.client ?? client).put<UpdateSyntheticTestResponses, UpdateSyntheticTestErrors, ThrowOnError>({
1247
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1248
+ url: '/api/synthetics/v1/rules/{id}',
1249
+ ...options,
1250
+ headers: {
1251
+ 'Content-Type': 'application/json',
1252
+ ...options.headers
1253
+ }
1254
+ });
1255
+
1256
+ /**
1257
+ * Traces search
1258
+ */
1259
+ export const searchTraces = <ThrowOnError extends boolean = false>(options: Options<SearchTracesData, ThrowOnError>): RequestResult<SearchTracesResponses, SearchTracesErrors, ThrowOnError> => (options.client ?? client).post<SearchTracesResponses, SearchTracesErrors, ThrowOnError>({
1260
+ security: [{ name: 'Authorization', type: 'apiKey' }],
1261
+ url: '/api/traces/v2/search',
1262
+ ...options,
1263
+ headers: {
1264
+ 'Content-Type': 'application/json',
1265
+ ...options.headers
1266
+ }
1267
+ });