@meshery/schemas 1.0.9 → 1.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 (236) hide show
  1. package/README.md +4 -3
  2. package/dist/cloudApi.d.mts +16689 -16426
  3. package/dist/cloudApi.d.ts +16689 -16426
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  7. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  8. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  9. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/credential/CredentialSchema.js +4 -4
  11. package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +4 -4
  12. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  13. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  15. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  16. package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
  17. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
  19. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
  20. package/dist/constructs/v1beta1/model/ModelSchema.js +1 -1
  21. package/dist/constructs/v1beta1/model/ModelSchema.mjs +1 -1
  22. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  23. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  24. package/dist/constructs/v1beta1/pattern/PatternSchema.js +1 -1
  25. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +1 -1
  26. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  27. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  28. package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
  29. package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
  30. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  31. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  32. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  33. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  34. package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
  35. package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
  36. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
  37. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
  38. package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
  39. package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
  40. package/dist/constructs/v1beta2/badge/Badge.js +1 -0
  41. package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
  42. package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
  43. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
  44. package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
  45. package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
  46. package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
  47. package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
  48. package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
  49. package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
  50. package/dist/constructs/v1beta2/credential/Credential.js +1 -0
  51. package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
  52. package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
  53. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
  54. package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
  55. package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
  56. package/dist/constructs/v1beta2/design/DesignSchema.js +10 -2
  57. package/dist/constructs/v1beta2/design/DesignSchema.mjs +10 -2
  58. package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
  59. package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
  60. package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
  61. package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
  62. package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
  63. package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
  64. package/dist/constructs/v1beta2/key/Key.js +1 -0
  65. package/dist/constructs/v1beta2/key/Key.mjs +0 -0
  66. package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
  67. package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
  68. package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
  69. package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
  70. package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
  71. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
  72. package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
  73. package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
  74. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
  75. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
  76. package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
  77. package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
  78. package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
  79. package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
  80. package/dist/constructs/v1beta2/model/Model.js +1 -0
  81. package/dist/constructs/v1beta2/model/Model.mjs +0 -0
  82. package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
  83. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
  84. package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
  85. package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
  86. package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
  87. package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
  88. package/dist/constructs/v1beta2/organization/Organization.js +1 -0
  89. package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
  90. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
  91. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
  92. package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
  93. package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
  94. package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
  95. package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
  96. package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
  97. package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
  98. package/dist/constructs/v1beta2/role/Role.js +1 -0
  99. package/dist/constructs/v1beta2/role/Role.mjs +0 -0
  100. package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
  101. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
  102. package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
  103. package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
  104. package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
  105. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
  106. package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
  107. package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
  108. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
  109. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
  110. package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
  111. package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
  112. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
  113. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
  114. package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
  115. package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
  116. package/dist/constructs/v1beta2/team/Team.js +1 -0
  117. package/dist/constructs/v1beta2/team/Team.mjs +0 -0
  118. package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
  119. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
  120. package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
  121. package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
  122. package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
  123. package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
  124. package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
  125. package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
  126. package/dist/constructs/v1beta2/user/User.js +1 -0
  127. package/dist/constructs/v1beta2/user/User.mjs +0 -0
  128. package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
  129. package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
  130. package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
  131. package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
  132. package/dist/constructs/v1beta2/view/View.d.mts +810 -0
  133. package/dist/constructs/v1beta2/view/View.d.ts +810 -0
  134. package/dist/constructs/v1beta2/view/View.js +1 -0
  135. package/dist/constructs/v1beta2/view/View.mjs +0 -0
  136. package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
  137. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
  138. package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
  139. package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
  140. package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
  141. package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
  142. package/dist/constructs/v1beta3/component/Component.js +1 -0
  143. package/dist/constructs/v1beta3/component/Component.mjs +0 -0
  144. package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
  145. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
  146. package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
  147. package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
  148. package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
  149. package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
  150. package/dist/constructs/v1beta3/connection/Connection.js +1 -0
  151. package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
  152. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
  153. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
  154. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
  155. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
  156. package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
  157. package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
  158. package/dist/constructs/v1beta3/design/Design.js +1 -0
  159. package/dist/constructs/v1beta3/design/Design.mjs +0 -0
  160. package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
  161. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
  162. package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
  163. package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
  164. package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
  165. package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
  166. package/dist/constructs/v1beta3/environment/Environment.js +1 -0
  167. package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
  168. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
  169. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
  170. package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
  171. package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
  172. package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
  173. package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
  174. package/dist/constructs/v1beta3/event/Event.js +1 -0
  175. package/dist/constructs/v1beta3/event/Event.mjs +0 -0
  176. package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
  177. package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
  178. package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
  179. package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
  180. package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
  181. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
  182. package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
  183. package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
  184. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
  185. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
  186. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
  187. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
  188. package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
  189. package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
  190. package/dist/constructs/v1beta3/plan/Plan.js +1 -0
  191. package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
  192. package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
  193. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
  194. package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
  195. package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
  196. package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
  197. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
  198. package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
  199. package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
  200. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
  201. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
  202. package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
  203. package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
  204. package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
  205. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
  206. package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
  207. package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
  208. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
  209. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
  210. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
  211. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
  212. package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
  213. package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
  214. package/dist/constructs/v1beta3/token/Token.js +1 -0
  215. package/dist/constructs/v1beta3/token/Token.mjs +0 -0
  216. package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
  217. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
  218. package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
  219. package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
  220. package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4808 -0
  221. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -0
  222. package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
  223. package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
  224. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
  225. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
  226. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
  227. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
  228. package/dist/index.d.mts +10 -8
  229. package/dist/index.d.ts +10 -8
  230. package/dist/index.js +16 -8
  231. package/dist/index.mjs +16 -8
  232. package/dist/mesheryApi.d.mts +5552 -5394
  233. package/dist/mesheryApi.d.ts +5552 -5394
  234. package/dist/mesheryApi.js +1 -1
  235. package/dist/mesheryApi.mjs +1 -1
  236. package/package.json +1 -1
@@ -0,0 +1,380 @@
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/{scheduleId}": {
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
+ userId: string;
35
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
36
+ cronExpression: string;
37
+ /**
38
+ * Format: date-time
39
+ * @description Timestamp when the schedule was created.
40
+ */
41
+ createdAt?: string;
42
+ /**
43
+ * Format: date-time
44
+ * @description Timestamp when the schedule was last updated.
45
+ */
46
+ updatedAt?: string;
47
+ };
48
+ /** @description Payload for upserting a schedule. Includes only client-settable fields. */
49
+ SchedulePayload: {
50
+ /**
51
+ * Format: uuid
52
+ * @description Existing schedule ID for updates; omit on create.
53
+ */
54
+ id?: string;
55
+ /** @description Human-readable name for the schedule. */
56
+ name: string;
57
+ /**
58
+ * Format: uuid
59
+ * @description Owner user ID; inferred from the authenticated user when omitted.
60
+ */
61
+ userId?: string;
62
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
63
+ cronExpression: string;
64
+ };
65
+ /** @description A paginated list of schedules. */
66
+ SchedulePage: {
67
+ /** @description Current page number (zero-based). */
68
+ page: number;
69
+ /** @description Number of schedules per page. */
70
+ pageSize: number;
71
+ /** @description Total number of schedules across all pages. */
72
+ totalCount: number;
73
+ /** @description The schedules of the schedulepage. */
74
+ schedules: {
75
+ /**
76
+ * Format: uuid
77
+ * @description Unique identifier for the schedule.
78
+ */
79
+ id?: string;
80
+ /** @description Human-readable name for the schedule. */
81
+ name: string;
82
+ /**
83
+ * Format: uuid
84
+ * @description UUID of the user who owns this schedule.
85
+ */
86
+ userId: string;
87
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
88
+ cronExpression: string;
89
+ /**
90
+ * Format: date-time
91
+ * @description Timestamp when the schedule was created.
92
+ */
93
+ createdAt?: string;
94
+ /**
95
+ * Format: date-time
96
+ * @description Timestamp when the schedule was last updated.
97
+ */
98
+ updatedAt?: string;
99
+ }[];
100
+ };
101
+ };
102
+ responses: {
103
+ /** Invalid request body or request param */
104
+ 400: {
105
+ content: {
106
+ "text/plain": string;
107
+ };
108
+ };
109
+ /** Expired JWT token used or insufficient privilege */
110
+ 401: {
111
+ content: {
112
+ "text/plain": string;
113
+ };
114
+ };
115
+ /** Result not found */
116
+ 404: {
117
+ content: {
118
+ "text/plain": string;
119
+ };
120
+ };
121
+ /** Internal server error */
122
+ 500: {
123
+ content: {
124
+ "text/plain": string;
125
+ };
126
+ };
127
+ };
128
+ parameters: {
129
+ /** @description Schedule ID */
130
+ scheduleId: string;
131
+ /** @description Get responses by page */
132
+ page: string;
133
+ /** @description Get responses by page size */
134
+ pageSize: string;
135
+ /** @description Get responses that match search param value */
136
+ search: string;
137
+ /** @description Get ordered responses */
138
+ order: string;
139
+ };
140
+ }
141
+ interface operations {
142
+ /** Returns all schedules for the authenticated user. */
143
+ getSchedules: {
144
+ parameters: {
145
+ query: {
146
+ /** Get responses by page */
147
+ page?: string;
148
+ /** Get responses by page size */
149
+ pageSize?: string;
150
+ /** Get responses that match search param value */
151
+ search?: string;
152
+ /** Get ordered responses */
153
+ order?: string;
154
+ };
155
+ };
156
+ responses: {
157
+ /** Schedules response */
158
+ 200: {
159
+ content: {
160
+ "application/json": {
161
+ /** @description Current page number (zero-based). */
162
+ page: number;
163
+ /** @description Number of schedules per page. */
164
+ pageSize: number;
165
+ /** @description Total number of schedules across all pages. */
166
+ totalCount: number;
167
+ /** @description The schedules of the schedulepage. */
168
+ schedules: {
169
+ /**
170
+ * Format: uuid
171
+ * @description Unique identifier for the schedule.
172
+ */
173
+ id?: string;
174
+ /** @description Human-readable name for the schedule. */
175
+ name: string;
176
+ /**
177
+ * Format: uuid
178
+ * @description UUID of the user who owns this schedule.
179
+ */
180
+ userId: string;
181
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
182
+ cronExpression: string;
183
+ /**
184
+ * Format: date-time
185
+ * @description Timestamp when the schedule was created.
186
+ */
187
+ createdAt?: string;
188
+ /**
189
+ * Format: date-time
190
+ * @description Timestamp when the schedule was last updated.
191
+ */
192
+ updatedAt?: string;
193
+ }[];
194
+ };
195
+ };
196
+ };
197
+ /** Expired JWT token used or insufficient privilege */
198
+ 401: {
199
+ content: {
200
+ "text/plain": string;
201
+ };
202
+ };
203
+ /** Internal server error */
204
+ 500: {
205
+ content: {
206
+ "text/plain": string;
207
+ };
208
+ };
209
+ };
210
+ };
211
+ /** Creates or updates a schedule for the authenticated user. */
212
+ upsertSchedule: {
213
+ responses: {
214
+ /** Schedule upserted */
215
+ 200: {
216
+ content: {
217
+ "application/json": {
218
+ /**
219
+ * Format: uuid
220
+ * @description Unique identifier for the schedule.
221
+ */
222
+ id?: string;
223
+ /** @description Human-readable name for the schedule. */
224
+ name: string;
225
+ /**
226
+ * Format: uuid
227
+ * @description UUID of the user who owns this schedule.
228
+ */
229
+ userId: string;
230
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
231
+ cronExpression: string;
232
+ /**
233
+ * Format: date-time
234
+ * @description Timestamp when the schedule was created.
235
+ */
236
+ createdAt?: string;
237
+ /**
238
+ * Format: date-time
239
+ * @description Timestamp when the schedule was last updated.
240
+ */
241
+ updatedAt?: string;
242
+ };
243
+ };
244
+ };
245
+ /** Invalid request body or request param */
246
+ 400: {
247
+ content: {
248
+ "text/plain": string;
249
+ };
250
+ };
251
+ /** Expired JWT token used or insufficient privilege */
252
+ 401: {
253
+ content: {
254
+ "text/plain": string;
255
+ };
256
+ };
257
+ /** Internal server error */
258
+ 500: {
259
+ content: {
260
+ "text/plain": string;
261
+ };
262
+ };
263
+ };
264
+ requestBody: {
265
+ content: {
266
+ "application/json": {
267
+ /**
268
+ * Format: uuid
269
+ * @description Existing schedule ID for updates; omit on create.
270
+ */
271
+ id?: string;
272
+ /** @description Human-readable name for the schedule. */
273
+ name: string;
274
+ /**
275
+ * Format: uuid
276
+ * @description Owner user ID; inferred from the authenticated user when omitted.
277
+ */
278
+ userId?: string;
279
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
280
+ cronExpression: string;
281
+ };
282
+ };
283
+ };
284
+ };
285
+ /** Returns a specific schedule by its ID. */
286
+ getSchedule: {
287
+ parameters: {
288
+ path: {
289
+ /** Schedule ID */
290
+ scheduleId: string;
291
+ };
292
+ };
293
+ responses: {
294
+ /** Schedule response */
295
+ 200: {
296
+ content: {
297
+ "application/json": {
298
+ /**
299
+ * Format: uuid
300
+ * @description Unique identifier for the schedule.
301
+ */
302
+ id?: string;
303
+ /** @description Human-readable name for the schedule. */
304
+ name: string;
305
+ /**
306
+ * Format: uuid
307
+ * @description UUID of the user who owns this schedule.
308
+ */
309
+ userId: string;
310
+ /** @description Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight). */
311
+ cronExpression: string;
312
+ /**
313
+ * Format: date-time
314
+ * @description Timestamp when the schedule was created.
315
+ */
316
+ createdAt?: string;
317
+ /**
318
+ * Format: date-time
319
+ * @description Timestamp when the schedule was last updated.
320
+ */
321
+ updatedAt?: string;
322
+ };
323
+ };
324
+ };
325
+ /** Expired JWT token used or insufficient privilege */
326
+ 401: {
327
+ content: {
328
+ "text/plain": string;
329
+ };
330
+ };
331
+ /** Result not found */
332
+ 404: {
333
+ content: {
334
+ "text/plain": string;
335
+ };
336
+ };
337
+ /** Internal server error */
338
+ 500: {
339
+ content: {
340
+ "text/plain": string;
341
+ };
342
+ };
343
+ };
344
+ };
345
+ /** Deletes a schedule by its ID. */
346
+ deleteSchedule: {
347
+ parameters: {
348
+ path: {
349
+ /** Schedule ID */
350
+ scheduleId: string;
351
+ };
352
+ };
353
+ responses: {
354
+ /** Schedule deleted */
355
+ 204: never;
356
+ /** Expired JWT token used or insufficient privilege */
357
+ 401: {
358
+ content: {
359
+ "text/plain": string;
360
+ };
361
+ };
362
+ /** Result not found */
363
+ 404: {
364
+ content: {
365
+ "text/plain": string;
366
+ };
367
+ };
368
+ /** Internal server error */
369
+ 500: {
370
+ content: {
371
+ "text/plain": string;
372
+ };
373
+ };
374
+ };
375
+ };
376
+ }
377
+ interface external {
378
+ }
379
+
380
+ export type { components, external, operations, paths };
@@ -0,0 +1 @@
1
+ 'use strict';
File without changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was automatically generated from OpenAPI schema.
3
+ * Do not manually modify this file.
4
+ */
5
+ declare const ScheduleSchema: Record<string, unknown>;
6
+
7
+ export { ScheduleSchema as default };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was automatically generated from OpenAPI schema.
3
+ * Do not manually modify this file.
4
+ */
5
+ declare const ScheduleSchema: Record<string, unknown>;
6
+
7
+ export { ScheduleSchema as default };
@@ -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:"v1beta2"},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 page size",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 response",content:{"application/json":{schema:{type:"object",description:"A paginated list of schedules.",required:["page","pageSize","totalCount","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1,minimum:0},pageSize:{type:"integer",description:"Number of schedules per page.","x-order":2,minimum:1},totalCount:{type:"integer",description:"Total number of schedules across all pages.","x-order":3,minimum:0},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","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{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",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4,description:"The schedules of the schedulepage."}}}}}},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:"Payload for upserting a schedule. Includes only client-settable fields.",required:["name","cronExpression"],properties:{id:{description:"Existing schedule ID for updates; omit on create.","x-go-name":"ID","x-oapi-codegen-extra-tags":{json:"id,omitempty"},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.",minLength:1,maxLength:255},userId:{description:"Owner user ID; inferred from the authenticated user when omitted.","x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
4
+ `,"x-oapi-codegen-extra-tags":{json:"cronExpression"},maxLength:500}}}}}},responses:{200:{description:"Schedule upserted",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
5
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
6
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","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/{scheduleId}":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedule by ID",operationId:"getSchedule",description:"Returns a specific schedule by its ID.",parameters:[{name:"scheduleId",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 response",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
7
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
8
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","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:"scheduleId",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"},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:{scheduleId:{name:"scheduleId",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 page size",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.
9
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
10
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},SchedulePayload:{type:"object",description:"Payload for upserting a schedule. Includes only client-settable fields.",required:["name","cronExpression"],properties:{id:{description:"Existing schedule ID for updates; omit on create.","x-go-name":"ID","x-oapi-codegen-extra-tags":{json:"id,omitempty"},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.",minLength:1,maxLength:255},userId:{description:"Owner user ID; inferred from the authenticated user when omitted.","x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
11
+ `,"x-oapi-codegen-extra-tags":{json:"cronExpression"},maxLength:500}}},SchedulePage:{type:"object",description:"A paginated list of schedules.",required:["page","pageSize","totalCount","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1,minimum:0},pageSize:{type:"integer",description:"Number of schedules per page.","x-order":2,minimum:1},totalCount:{type:"integer",description:"Total number of schedules across all pages.","x-order":3,minimum:0},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","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{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",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4,description:"The schedules of the schedulepage."}}}}}},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:"v1beta2"},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 page size",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 response",content:{"application/json":{schema:{type:"object",description:"A paginated list of schedules.",required:["page","pageSize","totalCount","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1,minimum:0},pageSize:{type:"integer",description:"Number of schedules per page.","x-order":2,minimum:1},totalCount:{type:"integer",description:"Total number of schedules across all pages.","x-order":3,minimum:0},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","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{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",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4,description:"The schedules of the schedulepage."}}}}}},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:"Payload for upserting a schedule. Includes only client-settable fields.",required:["name","cronExpression"],properties:{id:{description:"Existing schedule ID for updates; omit on create.","x-go-name":"ID","x-oapi-codegen-extra-tags":{json:"id,omitempty"},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.",minLength:1,maxLength:255},userId:{description:"Owner user ID; inferred from the authenticated user when omitted.","x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
4
+ `,"x-oapi-codegen-extra-tags":{json:"cronExpression"},maxLength:500}}}}}},responses:{200:{description:"Schedule upserted",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
5
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
6
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","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/{scheduleId}":{get:{"x-internal":["cloud"],tags:["scheduler"],summary:"Get schedule by ID",operationId:"getSchedule",description:"Returns a specific schedule by its ID.",parameters:[{name:"scheduleId",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 response",content:{"application/json":{schema:{type:"object",description:`A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
7
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
8
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","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:"scheduleId",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"},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:{scheduleId:{name:"scheduleId",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 page size",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.
9
+ `,required:["name","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
10
+ `,"x-order":4,"x-oapi-codegen-extra-tags":{db:"cron_expression",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},SchedulePayload:{type:"object",description:"Payload for upserting a schedule. Includes only client-settable fields.",required:["name","cronExpression"],properties:{id:{description:"Existing schedule ID for updates; omit on create.","x-go-name":"ID","x-oapi-codegen-extra-tags":{json:"id,omitempty"},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.",minLength:1,maxLength:255},userId:{description:"Owner user ID; inferred from the authenticated user when omitted.","x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{type:"string",description:`Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
11
+ `,"x-oapi-codegen-extra-tags":{json:"cronExpression"},maxLength:500}}},SchedulePage:{type:"object",description:"A paginated list of schedules.",required:["page","pageSize","totalCount","schedules"],properties:{page:{type:"integer",description:"Current page number (zero-based).","x-order":1,minimum:0},pageSize:{type:"integer",description:"Number of schedules per page.","x-order":2,minimum:1},totalCount:{type:"integer",description:"Total number of schedules across all pages.","x-order":3,minimum:0},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","userId","cronExpression"],properties:{id:{description:"Unique identifier for the schedule.","x-order":1,"x-go-name":"ID","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"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this schedule.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},cronExpression:{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",json:"cronExpression"},maxLength:500},createdAt:{description:"Timestamp when the schedule was created.","x-order":5,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the schedule was last updated.","x-order":6,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},"x-order":4,description:"The schedules of the schedulepage."}}}}}},t=e;export{t as default};