@meshery/schemas 0.8.128 → 0.8.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Core-vaTzd8cz.d.mts → Core-BiYtFM4v.d.mts} +1 -1
- package/dist/{Core-vaTzd8cz.d.ts → Core-BiYtFM4v.d.ts} +1 -1
- package/dist/cloudApi.d.mts +13676 -3825
- package/dist/cloudApi.d.ts +13676 -3825
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.mts +1 -159
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +1 -159
- package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
- package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
- package/dist/constructs/v1alpha1/core/CoreSchema.d.mts +1 -1652
- package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +1 -1652
- package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
- package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.mts +1 -84
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +1 -84
- package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +32 -128
- package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +32 -128
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +1 -6983
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +1 -6983
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +15 -15
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +15 -15
- package/dist/constructs/v1beta1/academy/Academy.d.mts +749 -319
- package/dist/constructs/v1beta1/academy/Academy.d.ts +749 -319
- package/dist/constructs/v1beta1/academy/AcademySchema.d.mts +1 -11842
- package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +1 -11842
- package/dist/constructs/v1beta1/academy/AcademySchema.js +1 -1
- package/dist/constructs/v1beta1/academy/AcademySchema.mjs +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.d.mts +1 -522
- package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +1 -522
- package/dist/constructs/v1beta1/category/CategorySchema.d.mts +1 -64
- package/dist/constructs/v1beta1/category/CategorySchema.d.ts +1 -64
- package/dist/constructs/v1beta1/component/Component.d.mts +6 -12
- package/dist/constructs/v1beta1/component/Component.d.ts +6 -12
- package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +1 -1781
- package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +1 -1781
- package/dist/constructs/v1beta1/component/ComponentSchema.js +3 -3
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +3 -3
- package/dist/constructs/v1beta1/connection/Connection.d.mts +12 -12
- package/dist/constructs/v1beta1/connection/Connection.d.ts +12 -12
- package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +1 -2978
- package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +1 -2978
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/credential/Credential.d.mts +517 -0
- package/dist/constructs/v1beta1/credential/Credential.d.ts +517 -0
- package/dist/constructs/v1beta1/credential/Credential.js +1 -0
- package/dist/constructs/v1beta1/credential/Credential.mjs +0 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.js +9 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +9 -0
- package/dist/constructs/v1beta1/environment/Environment.d.mts +4 -4
- package/dist/constructs/v1beta1/environment/Environment.d.ts +4 -4
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +1 -958
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +1 -958
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +68 -212
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +68 -212
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +1 -16516
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +1 -16516
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +25 -25
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +25 -25
- package/dist/constructs/v1beta1/event/EventSchema.d.mts +1 -364
- package/dist/constructs/v1beta1/event/EventSchema.d.ts +1 -364
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.mts +1 -776
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +1 -776
- package/dist/constructs/v1beta1/feature/FeatureSchema.js +1 -1
- package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +1 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.mts +1 -1655
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +1 -1655
- package/dist/constructs/v1beta1/key/KeySchema.d.mts +1 -1229
- package/dist/constructs/v1beta1/key/KeySchema.d.ts +1 -1229
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.mts +1 -1553
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +1 -1553
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +7 -13
- package/dist/constructs/v1beta1/model/Model.d.ts +7 -13
- package/dist/constructs/v1beta1/model/ModelSchema.d.mts +1 -1311
- package/dist/constructs/v1beta1/model/ModelSchema.d.ts +1 -1311
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/OrganizationSchema.d.mts +1 -1498
- package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +1 -1498
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +7481 -212
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +7481 -212
- package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +1 -16713
- package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +1 -16713
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +265 -25
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +265 -25
- package/dist/constructs/v1beta1/plan/PlanSchema.d.mts +1 -326
- package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +1 -326
- package/dist/constructs/v1beta1/role/Role.d.mts +614 -0
- package/dist/constructs/v1beta1/role/Role.d.ts +614 -0
- package/dist/constructs/v1beta1/role/Role.js +1 -0
- package/dist/constructs/v1beta1/role/Role.mjs +0 -0
- package/dist/constructs/v1beta1/role/RoleSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/role/RoleSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/role/RoleSchema.js +2 -0
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +2 -0
- package/dist/constructs/v1beta1/schedule/Schedule.d.mts +371 -0
- package/dist/constructs/v1beta1/schedule/Schedule.d.ts +371 -0
- package/dist/constructs/v1beta1/schedule/Schedule.js +1 -0
- package/dist/constructs/v1beta1/schedule/Schedule.mjs +0 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +13 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +13 -0
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.mts +1 -37
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +1 -37
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.mts +1 -1645
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +1 -1645
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.js +1 -1
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/Team.d.mts +46 -16
- package/dist/constructs/v1beta1/team/Team.d.ts +46 -16
- package/dist/constructs/v1beta1/team/TeamSchema.d.mts +1 -2022
- package/dist/constructs/v1beta1/team/TeamSchema.d.ts +1 -2022
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.d.mts +1 -1116
- package/dist/constructs/v1beta1/user/UserSchema.d.ts +1 -1116
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.mts +1 -964
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +1 -964
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +1 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +283 -43
- package/dist/index.mjs +283 -43
- package/dist/mesheryApi.d.mts +268 -244
- package/dist/mesheryApi.d.ts +268 -244
- package/package.json +1 -1
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/user/schedules": {
|
|
7
|
+
/** Returns all schedules for the authenticated user. */
|
|
8
|
+
get: operations["getSchedules"];
|
|
9
|
+
/** Creates or updates a schedule for the authenticated user. */
|
|
10
|
+
post: operations["upsertSchedule"];
|
|
11
|
+
};
|
|
12
|
+
"/user/schedules/{id}": {
|
|
13
|
+
/** Returns a specific schedule by its ID. */
|
|
14
|
+
get: operations["getSchedule"];
|
|
15
|
+
/** Deletes a schedule by its ID. */
|
|
16
|
+
delete: operations["deleteSchedule"];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
interface components {
|
|
20
|
+
schemas: {
|
|
21
|
+
/** @description A schedule defines a recurring cron-based trigger for performance tests or other automated tasks. */
|
|
22
|
+
Schedule: {
|
|
23
|
+
/**
|
|
24
|
+
* Format: uuid
|
|
25
|
+
* @description Unique identifier for the schedule.
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/** @description Human-readable name for the schedule. */
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Format: uuid
|
|
32
|
+
* @description UUID of the user who owns this schedule.
|
|
33
|
+
*/
|
|
34
|
+
user_id: string;
|
|
35
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
36
|
+
cron_expression: string;
|
|
37
|
+
/**
|
|
38
|
+
* Format: date-time
|
|
39
|
+
* @description Timestamp when the resource was created.
|
|
40
|
+
*/
|
|
41
|
+
created_at?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Format: date-time
|
|
44
|
+
* @description Timestamp when the resource was updated.
|
|
45
|
+
*/
|
|
46
|
+
updated_at?: string;
|
|
47
|
+
};
|
|
48
|
+
/** @description A paginated list of schedules. */
|
|
49
|
+
SchedulePage: {
|
|
50
|
+
/** @description Current page number (zero-based). */
|
|
51
|
+
page: number;
|
|
52
|
+
/** @description Number of schedules per page. */
|
|
53
|
+
page_size: number;
|
|
54
|
+
/** @description Total number of schedules across all pages. */
|
|
55
|
+
total_count: number;
|
|
56
|
+
schedules: {
|
|
57
|
+
/**
|
|
58
|
+
* Format: uuid
|
|
59
|
+
* @description Unique identifier for the schedule.
|
|
60
|
+
*/
|
|
61
|
+
id?: string;
|
|
62
|
+
/** @description Human-readable name for the schedule. */
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* Format: uuid
|
|
66
|
+
* @description UUID of the user who owns this schedule.
|
|
67
|
+
*/
|
|
68
|
+
user_id: string;
|
|
69
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
70
|
+
cron_expression: string;
|
|
71
|
+
/**
|
|
72
|
+
* Format: date-time
|
|
73
|
+
* @description Timestamp when the resource was created.
|
|
74
|
+
*/
|
|
75
|
+
created_at?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Format: date-time
|
|
78
|
+
* @description Timestamp when the resource was updated.
|
|
79
|
+
*/
|
|
80
|
+
updated_at?: string;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
responses: {
|
|
85
|
+
/** Invalid request body or request param */
|
|
86
|
+
400: {
|
|
87
|
+
content: {
|
|
88
|
+
"text/plain": string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
/** Expired JWT token used or insufficient privilege */
|
|
92
|
+
401: {
|
|
93
|
+
content: {
|
|
94
|
+
"text/plain": string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
/** Result not found */
|
|
98
|
+
404: {
|
|
99
|
+
content: {
|
|
100
|
+
"text/plain": string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/** Internal server error */
|
|
104
|
+
500: {
|
|
105
|
+
content: {
|
|
106
|
+
"text/plain": string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
parameters: {
|
|
111
|
+
/** @description Schedule ID */
|
|
112
|
+
id: string;
|
|
113
|
+
/** @description Get responses by page */
|
|
114
|
+
page: string;
|
|
115
|
+
/** @description Get responses by pagesize */
|
|
116
|
+
pagesize: string;
|
|
117
|
+
/** @description Get responses that match search param value */
|
|
118
|
+
search: string;
|
|
119
|
+
/** @description Get ordered responses */
|
|
120
|
+
order: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
interface operations {
|
|
124
|
+
/** Returns all schedules for the authenticated user. */
|
|
125
|
+
getSchedules: {
|
|
126
|
+
parameters: {
|
|
127
|
+
query: {
|
|
128
|
+
/** Get responses by page */
|
|
129
|
+
page?: string;
|
|
130
|
+
/** Get responses by pagesize */
|
|
131
|
+
pagesize?: string;
|
|
132
|
+
/** Get responses that match search param value */
|
|
133
|
+
search?: string;
|
|
134
|
+
/** Get ordered responses */
|
|
135
|
+
order?: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
responses: {
|
|
139
|
+
/** Schedules fetched successfully */
|
|
140
|
+
200: {
|
|
141
|
+
content: {
|
|
142
|
+
"application/json": {
|
|
143
|
+
/** @description Current page number (zero-based). */
|
|
144
|
+
page: number;
|
|
145
|
+
/** @description Number of schedules per page. */
|
|
146
|
+
page_size: number;
|
|
147
|
+
/** @description Total number of schedules across all pages. */
|
|
148
|
+
total_count: number;
|
|
149
|
+
schedules: {
|
|
150
|
+
/**
|
|
151
|
+
* Format: uuid
|
|
152
|
+
* @description Unique identifier for the schedule.
|
|
153
|
+
*/
|
|
154
|
+
id?: string;
|
|
155
|
+
/** @description Human-readable name for the schedule. */
|
|
156
|
+
name: string;
|
|
157
|
+
/**
|
|
158
|
+
* Format: uuid
|
|
159
|
+
* @description UUID of the user who owns this schedule.
|
|
160
|
+
*/
|
|
161
|
+
user_id: string;
|
|
162
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
163
|
+
cron_expression: string;
|
|
164
|
+
/**
|
|
165
|
+
* Format: date-time
|
|
166
|
+
* @description Timestamp when the resource was created.
|
|
167
|
+
*/
|
|
168
|
+
created_at?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Format: date-time
|
|
171
|
+
* @description Timestamp when the resource was updated.
|
|
172
|
+
*/
|
|
173
|
+
updated_at?: string;
|
|
174
|
+
}[];
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
/** Expired JWT token used or insufficient privilege */
|
|
179
|
+
401: {
|
|
180
|
+
content: {
|
|
181
|
+
"text/plain": string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/** Internal server error */
|
|
185
|
+
500: {
|
|
186
|
+
content: {
|
|
187
|
+
"text/plain": string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
/** Creates or updates a schedule for the authenticated user. */
|
|
193
|
+
upsertSchedule: {
|
|
194
|
+
responses: {
|
|
195
|
+
/** Schedule upserted successfully */
|
|
196
|
+
200: {
|
|
197
|
+
content: {
|
|
198
|
+
"application/json": {
|
|
199
|
+
/**
|
|
200
|
+
* Format: uuid
|
|
201
|
+
* @description Unique identifier for the schedule.
|
|
202
|
+
*/
|
|
203
|
+
id?: string;
|
|
204
|
+
/** @description Human-readable name for the schedule. */
|
|
205
|
+
name: string;
|
|
206
|
+
/**
|
|
207
|
+
* Format: uuid
|
|
208
|
+
* @description UUID of the user who owns this schedule.
|
|
209
|
+
*/
|
|
210
|
+
user_id: string;
|
|
211
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
212
|
+
cron_expression: string;
|
|
213
|
+
/**
|
|
214
|
+
* Format: date-time
|
|
215
|
+
* @description Timestamp when the resource was created.
|
|
216
|
+
*/
|
|
217
|
+
created_at?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Format: date-time
|
|
220
|
+
* @description Timestamp when the resource was updated.
|
|
221
|
+
*/
|
|
222
|
+
updated_at?: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
/** Invalid request body or request param */
|
|
227
|
+
400: {
|
|
228
|
+
content: {
|
|
229
|
+
"text/plain": string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
/** Expired JWT token used or insufficient privilege */
|
|
233
|
+
401: {
|
|
234
|
+
content: {
|
|
235
|
+
"text/plain": string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
/** Internal server error */
|
|
239
|
+
500: {
|
|
240
|
+
content: {
|
|
241
|
+
"text/plain": string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
requestBody: {
|
|
246
|
+
content: {
|
|
247
|
+
"application/json": {
|
|
248
|
+
/**
|
|
249
|
+
* Format: uuid
|
|
250
|
+
* @description Unique identifier for the schedule.
|
|
251
|
+
*/
|
|
252
|
+
id?: string;
|
|
253
|
+
/** @description Human-readable name for the schedule. */
|
|
254
|
+
name: string;
|
|
255
|
+
/**
|
|
256
|
+
* Format: uuid
|
|
257
|
+
* @description UUID of the user who owns this schedule.
|
|
258
|
+
*/
|
|
259
|
+
user_id: string;
|
|
260
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
261
|
+
cron_expression: string;
|
|
262
|
+
/**
|
|
263
|
+
* Format: date-time
|
|
264
|
+
* @description Timestamp when the resource was created.
|
|
265
|
+
*/
|
|
266
|
+
created_at?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Format: date-time
|
|
269
|
+
* @description Timestamp when the resource was updated.
|
|
270
|
+
*/
|
|
271
|
+
updated_at?: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
/** Returns a specific schedule by its ID. */
|
|
277
|
+
getSchedule: {
|
|
278
|
+
parameters: {
|
|
279
|
+
path: {
|
|
280
|
+
/** Schedule ID */
|
|
281
|
+
id: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
responses: {
|
|
285
|
+
/** Schedule fetched successfully */
|
|
286
|
+
200: {
|
|
287
|
+
content: {
|
|
288
|
+
"application/json": {
|
|
289
|
+
/**
|
|
290
|
+
* Format: uuid
|
|
291
|
+
* @description Unique identifier for the schedule.
|
|
292
|
+
*/
|
|
293
|
+
id?: string;
|
|
294
|
+
/** @description Human-readable name for the schedule. */
|
|
295
|
+
name: string;
|
|
296
|
+
/**
|
|
297
|
+
* Format: uuid
|
|
298
|
+
* @description UUID of the user who owns this schedule.
|
|
299
|
+
*/
|
|
300
|
+
user_id: string;
|
|
301
|
+
/** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
|
|
302
|
+
cron_expression: string;
|
|
303
|
+
/**
|
|
304
|
+
* Format: date-time
|
|
305
|
+
* @description Timestamp when the resource was created.
|
|
306
|
+
*/
|
|
307
|
+
created_at?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Format: date-time
|
|
310
|
+
* @description Timestamp when the resource was updated.
|
|
311
|
+
*/
|
|
312
|
+
updated_at?: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
/** Expired JWT token used or insufficient privilege */
|
|
317
|
+
401: {
|
|
318
|
+
content: {
|
|
319
|
+
"text/plain": string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
/** Result not found */
|
|
323
|
+
404: {
|
|
324
|
+
content: {
|
|
325
|
+
"text/plain": string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
/** Internal server error */
|
|
329
|
+
500: {
|
|
330
|
+
content: {
|
|
331
|
+
"text/plain": string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
/** Deletes a schedule by its ID. */
|
|
337
|
+
deleteSchedule: {
|
|
338
|
+
parameters: {
|
|
339
|
+
path: {
|
|
340
|
+
/** Schedule ID */
|
|
341
|
+
id: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
responses: {
|
|
345
|
+
/** Schedule deleted successfully */
|
|
346
|
+
204: never;
|
|
347
|
+
/** Expired JWT token used or insufficient privilege */
|
|
348
|
+
401: {
|
|
349
|
+
content: {
|
|
350
|
+
"text/plain": string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
/** Result not found */
|
|
354
|
+
404: {
|
|
355
|
+
content: {
|
|
356
|
+
"text/plain": string;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/** Internal server error */
|
|
360
|
+
500: {
|
|
361
|
+
content: {
|
|
362
|
+
"text/plain": string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
interface external {
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"schedule",description:"Documentation for Meshery Cloud REST APIs for Schedules",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"},version:"v1beta1"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"scheduler",description:"Operations related to scheduled tasks"}],paths:{"/user/schedules":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedules",operationId:"getSchedules",description:"Returns all schedules for the authenticated user.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Schedules fetched successfully",content:{"application/json":{schema:{type:"object",description:"A paginated list of schedules.",required:["page","page_size","total_count","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of schedules per page.","x-order":2},total_count:{type:"integer",description:"Total number of schedules across all pages.","x-order":3},schedules:{type:"array",items:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
2
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
3
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["scheduler"],summary:"Create or update schedule",operationId:"upsertSchedule",description:"Creates or updates a schedule for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
4
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
5
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Schedule upserted successfully",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
6
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
7
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/user/schedules/{id}":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedule by ID",operationId:"getSchedule",description:"Returns a specific schedule by its ID.",parameters:[{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Schedule fetched successfully",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
8
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
9
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["scheduler"],summary:"Delete schedule",operationId:"deleteSchedule",description:"Deletes a schedule by its ID.",parameters:[{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{204:{description:"Schedule deleted successfully"},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{id:{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},schemas:{Schedule:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
10
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
11
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},SchedulePage:{type:"object",description:"A paginated list of schedules.",required:["page","page_size","total_count","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of schedules per page.","x-order":2},total_count:{type:"integer",description:"Total number of schedules across all pages.","x-order":3},schedules:{type:"array",items:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
12
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
13
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},t=e;module.exports=t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var e={openapi:"3.0.0",info:{title:"schedule",description:"Documentation for Meshery Cloud REST APIs for Schedules",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"},version:"v1beta1"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"scheduler",description:"Operations related to scheduled tasks"}],paths:{"/user/schedules":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedules",operationId:"getSchedules",description:"Returns all schedules for the authenticated user.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Schedules fetched successfully",content:{"application/json":{schema:{type:"object",description:"A paginated list of schedules.",required:["page","page_size","total_count","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of schedules per page.","x-order":2},total_count:{type:"integer",description:"Total number of schedules across all pages.","x-order":3},schedules:{type:"array",items:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
2
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
3
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["scheduler"],summary:"Create or update schedule",operationId:"upsertSchedule",description:"Creates or updates a schedule for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
4
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
5
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Schedule upserted successfully",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
6
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
7
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/user/schedules/{id}":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedule by ID",operationId:"getSchedule",description:"Returns a specific schedule by its ID.",parameters:[{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Schedule fetched successfully",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
8
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
9
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["scheduler"],summary:"Delete schedule",operationId:"deleteSchedule",description:"Deletes a schedule by its ID.",parameters:[{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{204:{description:"Schedule deleted successfully"},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{id:{name:"id",in:"path",description:"Schedule ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},schemas:{Schedule:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
10
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
11
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},SchedulePage:{type:"object",description:"A paginated list of schedules.",required:["page","page_size","total_count","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1},page_size:{type:"integer",description:"Number of schedules per page.","x-order":2},total_count:{type:"integer",description:"Total number of schedules across all pages.","x-order":3},schedules:{type:"array",items:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
|
|
12
|
+
`,required:["name","user_id","cron_expression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the schedule.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cron_expression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
|
|
13
|
+
`,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression"}},created_at:{"x-order":5,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":6,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},t=e;export{t as default};
|
|
@@ -2,42 +2,6 @@
|
|
|
2
2
|
* This file was automatically generated from OpenAPI schema.
|
|
3
3
|
* Do not manually modify this file.
|
|
4
4
|
*/
|
|
5
|
-
declare const SubcategorySchema:
|
|
6
|
-
readonly openapi: "3.0.0";
|
|
7
|
-
readonly info: {
|
|
8
|
-
readonly title: "SubCategory API";
|
|
9
|
-
readonly description: "OpenAPI schema for model subcategory definitions in Meshery.";
|
|
10
|
-
readonly version: "v1beta1";
|
|
11
|
-
readonly contact: {
|
|
12
|
-
readonly name: "Meshery Maintainers";
|
|
13
|
-
readonly email: "maintainers@meshery.io";
|
|
14
|
-
readonly url: "https://meshery.io";
|
|
15
|
-
};
|
|
16
|
-
readonly license: {
|
|
17
|
-
readonly name: "Apache 2.0";
|
|
18
|
-
readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
readonly paths: {};
|
|
22
|
-
readonly components: {
|
|
23
|
-
readonly schemas: {
|
|
24
|
-
readonly SubCategoryDefinition: {
|
|
25
|
-
readonly $id: "https://schemas.meshery.io/category.yaml";
|
|
26
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
readonly title: "SubCategory";
|
|
29
|
-
readonly description: "Sub category of the model determines the secondary grouping.";
|
|
30
|
-
readonly default: "Uncategorized";
|
|
31
|
-
readonly enum: readonly ["API Gateway", "API Integration", "Application Definition & Image Build", "Automation & Configuration", "Certified Kubernetes - Distribution", "Chaos Engineering", "Cloud Native Storage", "Cloud Provider", "CNI", "Compute", "Container Registry", "Container Runtime", "Container Security", "Container", "Content Delivery Network", "Continuous Integration & Delivery", "Coordination & Service Discovery", "Database", "Flowchart", "Framework", "Installable Platform", "Key Management", "Key Management Service", "Kubernetes", "Logging", "Machine Learning", "Management Governance", "Metrics", "Monitoring", "Networking Content Delivery", "Operating System", "Query", "Remote Procedure Call", "Scheduling & Orchestration", "Secrets Management", "Security Identity & Compliance", "Service Mesh", "Service Proxy", "Source Version Control", "Storage", "Specifications", "Streaming & Messaging", "Tools", "Tracing", "Uncategorized", "Video Conferencing"];
|
|
32
|
-
readonly minLength: 1;
|
|
33
|
-
readonly maxLength: 100;
|
|
34
|
-
readonly "x-oapi-codegen-extra-tags": {
|
|
35
|
-
readonly yaml: "subCategory";
|
|
36
|
-
readonly json: "subCategory";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
5
|
+
declare const SubcategorySchema: Record<string, unknown>;
|
|
42
6
|
|
|
43
7
|
export { SubcategorySchema as default };
|
|
@@ -2,42 +2,6 @@
|
|
|
2
2
|
* This file was automatically generated from OpenAPI schema.
|
|
3
3
|
* Do not manually modify this file.
|
|
4
4
|
*/
|
|
5
|
-
declare const SubcategorySchema:
|
|
6
|
-
readonly openapi: "3.0.0";
|
|
7
|
-
readonly info: {
|
|
8
|
-
readonly title: "SubCategory API";
|
|
9
|
-
readonly description: "OpenAPI schema for model subcategory definitions in Meshery.";
|
|
10
|
-
readonly version: "v1beta1";
|
|
11
|
-
readonly contact: {
|
|
12
|
-
readonly name: "Meshery Maintainers";
|
|
13
|
-
readonly email: "maintainers@meshery.io";
|
|
14
|
-
readonly url: "https://meshery.io";
|
|
15
|
-
};
|
|
16
|
-
readonly license: {
|
|
17
|
-
readonly name: "Apache 2.0";
|
|
18
|
-
readonly url: "https://www.apache.org/licenses/LICENSE-2.0.html";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
readonly paths: {};
|
|
22
|
-
readonly components: {
|
|
23
|
-
readonly schemas: {
|
|
24
|
-
readonly SubCategoryDefinition: {
|
|
25
|
-
readonly $id: "https://schemas.meshery.io/category.yaml";
|
|
26
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
readonly title: "SubCategory";
|
|
29
|
-
readonly description: "Sub category of the model determines the secondary grouping.";
|
|
30
|
-
readonly default: "Uncategorized";
|
|
31
|
-
readonly enum: readonly ["API Gateway", "API Integration", "Application Definition & Image Build", "Automation & Configuration", "Certified Kubernetes - Distribution", "Chaos Engineering", "Cloud Native Storage", "Cloud Provider", "CNI", "Compute", "Container Registry", "Container Runtime", "Container Security", "Container", "Content Delivery Network", "Continuous Integration & Delivery", "Coordination & Service Discovery", "Database", "Flowchart", "Framework", "Installable Platform", "Key Management", "Key Management Service", "Kubernetes", "Logging", "Machine Learning", "Management Governance", "Metrics", "Monitoring", "Networking Content Delivery", "Operating System", "Query", "Remote Procedure Call", "Scheduling & Orchestration", "Secrets Management", "Security Identity & Compliance", "Service Mesh", "Service Proxy", "Source Version Control", "Storage", "Specifications", "Streaming & Messaging", "Tools", "Tracing", "Uncategorized", "Video Conferencing"];
|
|
32
|
-
readonly minLength: 1;
|
|
33
|
-
readonly maxLength: 100;
|
|
34
|
-
readonly "x-oapi-codegen-extra-tags": {
|
|
35
|
-
readonly yaml: "subCategory";
|
|
36
|
-
readonly json: "subCategory";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
5
|
+
declare const SubcategorySchema: Record<string, unknown>;
|
|
42
6
|
|
|
43
7
|
export { SubcategorySchema as default };
|