@meshery/schemas 1.2.14 → 1.2.16

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 (151) hide show
  1. package/dist/cloudApi.d.mts +1516 -1516
  2. package/dist/cloudApi.d.ts +1516 -1516
  3. package/dist/constructs/v1alpha1/capability/Capability.d.ts +114 -0
  4. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +2 -0
  5. package/dist/constructs/v1alpha1/core/Core.d.ts +832 -0
  6. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +2 -0
  7. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +53 -0
  8. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +2 -0
  9. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1937 -0
  10. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +2 -0
  11. package/dist/constructs/v1beta1/academy/Academy.d.ts +6417 -0
  12. package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +2 -0
  13. package/dist/constructs/v1beta1/badge/Badge.d.ts +546 -0
  14. package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +2 -0
  15. package/dist/constructs/v1beta1/capability/Capability.d.ts +114 -0
  16. package/dist/constructs/v1beta1/capability/CapabilitySchema.d.ts +2 -0
  17. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +53 -0
  18. package/dist/constructs/v1beta1/catalog/CatalogSchema.d.ts +2 -0
  19. package/dist/constructs/v1beta1/category/Category.d.ts +46 -0
  20. package/dist/constructs/v1beta1/category/CategorySchema.d.ts +2 -0
  21. package/dist/constructs/v1beta1/component/Component.d.ts +869 -0
  22. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +2 -0
  23. package/dist/constructs/v1beta1/connection/Connection.d.ts +1300 -0
  24. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +2 -0
  25. package/dist/constructs/v1beta1/core/Core.d.ts +832 -0
  26. package/dist/constructs/v1beta1/core/CoreSchema.d.ts +2 -0
  27. package/dist/constructs/v1beta1/credential/Credential.d.ts +530 -0
  28. package/dist/constructs/v1beta1/credential/CredentialSchema.d.ts +2 -0
  29. package/dist/constructs/v1beta1/environment/Environment.d.ts +759 -0
  30. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +2 -0
  31. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6338 -0
  32. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +2 -0
  33. package/dist/constructs/v1beta1/event/Event.d.ts +570 -0
  34. package/dist/constructs/v1beta1/event/EventSchema.d.ts +2 -0
  35. package/dist/constructs/v1beta1/feature/Feature.d.ts +308 -0
  36. package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +2 -0
  37. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +983 -0
  38. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +2 -0
  39. package/dist/constructs/v1beta1/key/Key.d.ts +514 -0
  40. package/dist/constructs/v1beta1/key/KeySchema.d.ts +2 -0
  41. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +642 -0
  42. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +2 -0
  43. package/dist/constructs/v1beta1/model/Model.d.ts +659 -0
  44. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +2 -0
  45. package/dist/constructs/v1beta1/organization/Organization.d.ts +1598 -0
  46. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +2 -0
  47. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +18407 -0
  48. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +2 -0
  49. package/dist/constructs/v1beta1/plan/Plan.d.ts +149 -0
  50. package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +2 -0
  51. package/dist/constructs/v1beta1/relationship/Relationship.d.ts +1921 -0
  52. package/dist/constructs/v1beta1/relationship/RelationshipSchema.d.ts +2 -0
  53. package/dist/constructs/v1beta1/role/Role.d.ts +745 -0
  54. package/dist/constructs/v1beta1/role/RoleSchema.d.ts +2 -0
  55. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +374 -0
  56. package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.ts +2 -0
  57. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +68 -0
  58. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +2 -0
  59. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +752 -0
  60. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +2 -0
  61. package/dist/constructs/v1beta1/support/Support.d.ts +91 -0
  62. package/dist/constructs/v1beta1/support/SupportSchema.d.ts +2 -0
  63. package/dist/constructs/v1beta1/team/Team.d.ts +846 -0
  64. package/dist/constructs/v1beta1/team/TeamSchema.d.ts +2 -0
  65. package/dist/constructs/v1beta1/token/Token.d.ts +539 -0
  66. package/dist/constructs/v1beta1/token/TokenSchema.d.ts +2 -0
  67. package/dist/constructs/v1beta1/user/User.d.ts +1677 -0
  68. package/dist/constructs/v1beta1/user/UserSchema.d.ts +2 -0
  69. package/dist/constructs/v1beta1/view/View.d.ts +759 -0
  70. package/dist/constructs/v1beta1/view/ViewSchema.d.ts +2 -0
  71. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4947 -0
  72. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +2 -0
  73. package/dist/constructs/v1beta2/academy/Academy.d.ts +7762 -0
  74. package/dist/constructs/v1beta2/academy/AcademySchema.d.ts +2 -0
  75. package/dist/constructs/v1beta2/badge/Badge.d.ts +563 -0
  76. package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +2 -0
  77. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +53 -0
  78. package/dist/constructs/v1beta2/catalog/CatalogSchema.d.ts +2 -0
  79. package/dist/constructs/v1beta2/component/Component.d.ts +887 -0
  80. package/dist/constructs/v1beta2/component/ComponentSchema.d.ts +2 -0
  81. package/dist/constructs/v1beta2/connection/Connection.d.ts +1330 -0
  82. package/dist/constructs/v1beta2/connection/ConnectionSchema.d.ts +2 -0
  83. package/dist/constructs/v1beta2/core/Core.d.ts +866 -0
  84. package/dist/constructs/v1beta2/core/CoreSchema.d.ts +2 -0
  85. package/dist/constructs/v1beta2/credential/Credential.d.ts +519 -0
  86. package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +2 -0
  87. package/dist/constructs/v1beta2/design/Design.d.ts +19039 -0
  88. package/dist/constructs/v1beta2/design/DesignSchema.d.ts +2 -0
  89. package/dist/constructs/v1beta2/event/Event.d.ts +626 -0
  90. package/dist/constructs/v1beta2/event/EventSchema.d.ts +2 -0
  91. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +1052 -0
  92. package/dist/constructs/v1beta2/invitation/InvitationSchema.d.ts +2 -0
  93. package/dist/constructs/v1beta2/key/Key.d.ts +524 -0
  94. package/dist/constructs/v1beta2/key/KeySchema.d.ts +2 -0
  95. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +652 -0
  96. package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +2 -0
  97. package/dist/constructs/v1beta2/model/Model.d.ts +697 -0
  98. package/dist/constructs/v1beta2/model/ModelSchema.d.ts +2 -0
  99. package/dist/constructs/v1beta2/organization/Organization.d.ts +1915 -0
  100. package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +2 -0
  101. package/dist/constructs/v1beta2/plan/Plan.d.ts +162 -0
  102. package/dist/constructs/v1beta2/plan/PlanSchema.d.ts +2 -0
  103. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2134 -0
  104. package/dist/constructs/v1beta2/relationship/RelationshipSchema.d.ts +2 -0
  105. package/dist/constructs/v1beta2/role/Role.d.ts +752 -0
  106. package/dist/constructs/v1beta2/role/RoleSchema.d.ts +2 -0
  107. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +431 -0
  108. package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +2 -0
  109. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +785 -0
  110. package/dist/constructs/v1beta2/subscription/SubscriptionSchema.d.ts +2 -0
  111. package/dist/constructs/v1beta2/team/Team.d.ts +960 -0
  112. package/dist/constructs/v1beta2/team/TeamSchema.d.ts +2 -0
  113. package/dist/constructs/v1beta2/token/Token.d.ts +544 -0
  114. package/dist/constructs/v1beta2/token/TokenSchema.d.ts +2 -0
  115. package/dist/constructs/v1beta2/user/User.d.ts +1677 -0
  116. package/dist/constructs/v1beta2/user/UserSchema.d.ts +2 -0
  117. package/dist/constructs/v1beta2/view/View.d.ts +767 -0
  118. package/dist/constructs/v1beta2/view/ViewSchema.d.ts +2 -0
  119. package/dist/constructs/v1beta3/academy/Academy.d.ts +7762 -0
  120. package/dist/constructs/v1beta3/academy/AcademySchema.d.ts +2 -0
  121. package/dist/constructs/v1beta3/component/Component.d.ts +892 -0
  122. package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +2 -0
  123. package/dist/constructs/v1beta3/connection/Connection.d.ts +1414 -0
  124. package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +2 -0
  125. package/dist/constructs/v1beta3/design/Design.d.ts +5704 -0
  126. package/dist/constructs/v1beta3/design/DesignSchema.d.ts +2 -0
  127. package/dist/constructs/v1beta3/environment/Environment.d.ts +785 -0
  128. package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +2 -0
  129. package/dist/constructs/v1beta3/event/Event.d.ts +720 -0
  130. package/dist/constructs/v1beta3/event/EventSchema.d.ts +2 -0
  131. package/dist/constructs/v1beta3/filter/Filter.d.ts +1452 -0
  132. package/dist/constructs/v1beta3/filter/FilterSchema.d.ts +2 -0
  133. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1060 -0
  134. package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +2 -0
  135. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +813 -0
  136. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.d.ts +2 -0
  137. package/dist/constructs/v1beta3/plan/Plan.d.ts +199 -0
  138. package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +2 -0
  139. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2134 -0
  140. package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +2 -0
  141. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +915 -0
  142. package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +2 -0
  143. package/dist/constructs/v1beta3/token/Token.d.ts +544 -0
  144. package/dist/constructs/v1beta3/token/TokenSchema.d.ts +2 -0
  145. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +5086 -0
  146. package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +2 -0
  147. package/dist/index.js +1 -1
  148. package/dist/index.mjs +1 -1
  149. package/dist/mesheryApi.d.mts +546 -546
  150. package/dist/mesheryApi.d.ts +546 -546
  151. package/package.json +2 -2
@@ -0,0 +1,915 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export interface paths {
7
+ "/api/entitlement/subscriptions": {
8
+ /** Returns all subscriptions for the organization */
9
+ get: operations["getSubscriptions"];
10
+ };
11
+ "/api/entitlement/subscriptions/{subscriptionId}/cancel": {
12
+ post: operations["cancelSubscription"];
13
+ };
14
+ "/api/entitlement/subscriptions/create": {
15
+ post: operations["createSubscription"];
16
+ };
17
+ "/api/entitlement/subscriptions/{subscriptionId}/upgrade": {
18
+ post: operations["upgradeSubscription"];
19
+ };
20
+ "/api/entitlement/subscriptions/{subscriptionId}/upgrade-preview": {
21
+ post: operations["previewSubscriptionUpgrade"];
22
+ };
23
+ "/api/entitlement/subscriptions/webhooks": {
24
+ post: operations["handleSubscriptionWebhook"];
25
+ };
26
+ }
27
+
28
+ export interface components {
29
+ schemas: {
30
+ /**
31
+ * @description Payment processor used to charge the subscription.
32
+ * @enum {string}
33
+ */
34
+ PaymentProcessor: "stripe" | "paypal" | "braintree";
35
+ /** @description Payload for creating a new subscription through a payment processor. */
36
+ CreateSubscriptionRequest: {
37
+ /**
38
+ * Format: uuid
39
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
40
+ */
41
+ orgId?: string;
42
+ /** @description Price ID from the payment processor. */
43
+ planId?: string;
44
+ /** @description Coupon ID to apply. */
45
+ couponId?: string;
46
+ /** @description Number of users in the organization. */
47
+ userCount?: number;
48
+ /**
49
+ * Format: email
50
+ * @description Email of the customer.
51
+ */
52
+ email?: string;
53
+ /**
54
+ * @description Payment processor used to complete the subscription checkout.
55
+ * @enum {string}
56
+ */
57
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
58
+ };
59
+ /** @description Payload for upgrading or downgrading a subscription by changing one of its plans. */
60
+ UpgradeSubscriptionRequest: {
61
+ /**
62
+ * Format: uuid
63
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
64
+ */
65
+ oldPlanId?: string;
66
+ /**
67
+ * Format: uuid
68
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
69
+ */
70
+ newPlanId?: string;
71
+ };
72
+ /** @description Response body returned after a subscription is created. */
73
+ CreateSubscriptionResponse: {
74
+ /** @description ID of the associated subscription in the payment processor. */
75
+ subscriptionId?: string;
76
+ /** @description Client secret returned by the payment processor for the subscription checkout flow. */
77
+ clientSecret?: string;
78
+ };
79
+ /** @description Payload for synchronizing the current user count with the payment processor. */
80
+ UpdateUsersRequest: {
81
+ /**
82
+ * @description Payment processor currently billing the subscription.
83
+ * @enum {string}
84
+ */
85
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
86
+ };
87
+ /** @description Payload for cancelling a subscription in an external processor. */
88
+ CancelSubscriptionRequest: {
89
+ /** @description Subscription ID from the payment processor. */
90
+ subscriptionId?: string;
91
+ /**
92
+ * @description Payment processor currently billing the subscription.
93
+ * @enum {string}
94
+ */
95
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
96
+ };
97
+ /** @description Payload for webhook events from payment processors. */
98
+ WebhookEvent: { [key: string]: unknown };
99
+ /** @description Paginated list of subscriptions. */
100
+ SubscriptionPage: {
101
+ /** @description Current page number of the result set. */
102
+ page: number;
103
+ /** @description Number of items per page. */
104
+ pageSize: number;
105
+ /** @description Total number of items available. */
106
+ totalCount: number;
107
+ /** @description Subscriptions returned on the current page. */
108
+ subscriptions: {
109
+ /**
110
+ * Format: uuid
111
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
112
+ */
113
+ id: string;
114
+ /**
115
+ * Format: uuid
116
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
117
+ */
118
+ orgId: string;
119
+ /**
120
+ * Format: uuid
121
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
122
+ */
123
+ planId: string;
124
+ /** @description Eager-loaded plan associated with this subscription. */
125
+ plan?: {
126
+ /**
127
+ * Format: uuid
128
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
129
+ */
130
+ id: string;
131
+ /**
132
+ * @description Display name of the plan.
133
+ * @enum {string}
134
+ */
135
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
136
+ /**
137
+ * @description Billing cadence for the plan (monthly, annually, or none).
138
+ * @enum {string}
139
+ */
140
+ cadence: "none" | "monthly" | "annually";
141
+ /**
142
+ * @description Unit of consumption this plan charges against (e.g. user).
143
+ * @enum {string}
144
+ */
145
+ unit: "user" | "free";
146
+ /** @description Minimum number of units required for the plan. */
147
+ minimumUnits: number;
148
+ /** @description Price per unit of the plan. */
149
+ pricePerUnit: number;
150
+ /**
151
+ * @description Currency in which the plan is priced.
152
+ * @enum {string}
153
+ */
154
+ currency: "usd";
155
+ };
156
+ /** @description Number of units subscribed (eg number of users). */
157
+ quantity: number;
158
+ /**
159
+ * Format: date-time
160
+ * @description Timestamp when the subscription period started.
161
+ */
162
+ startDate?: string;
163
+ /**
164
+ * Format: date-time
165
+ * @description Timestamp when the current subscription period ends.
166
+ */
167
+ endDate?: string;
168
+ /**
169
+ * @description Current status of the subscription (e.g. active, past_due, canceled).
170
+ * @enum {string}
171
+ */
172
+ status:
173
+ | "incomplete"
174
+ | "incomplete_expired"
175
+ | "trialing"
176
+ | "active"
177
+ | "past_due"
178
+ | "canceled"
179
+ | "unpaid";
180
+ /**
181
+ * Format: date-time
182
+ * @description Timestamp when the subscription was created.
183
+ */
184
+ createdAt?: string;
185
+ /**
186
+ * Format: date-time
187
+ * @description Timestamp when the subscription was last updated.
188
+ */
189
+ updatedAt?: string;
190
+ /**
191
+ * Format: date-time
192
+ * @description Timestamp when the subscription was soft-deleted, if applicable.
193
+ */
194
+ deletedAt?: string;
195
+ /** @description Billing ID of the subscription. The ID of the subscription in the external billing system (for example, Stripe). */
196
+ billingId: string;
197
+ }[];
198
+ };
199
+ /** @description Subscription entity schema. */
200
+ Subscription: {
201
+ /**
202
+ * Format: uuid
203
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
204
+ */
205
+ id: string;
206
+ /**
207
+ * Format: uuid
208
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
209
+ */
210
+ orgId: string;
211
+ /**
212
+ * Format: uuid
213
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
214
+ */
215
+ planId: string;
216
+ /** @description Eager-loaded plan associated with this subscription. */
217
+ plan?: {
218
+ /**
219
+ * Format: uuid
220
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
221
+ */
222
+ id: string;
223
+ /**
224
+ * @description Display name of the plan.
225
+ * @enum {string}
226
+ */
227
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
228
+ /**
229
+ * @description Billing cadence for the plan (monthly, annually, or none).
230
+ * @enum {string}
231
+ */
232
+ cadence: "none" | "monthly" | "annually";
233
+ /**
234
+ * @description Unit of consumption this plan charges against (e.g. user).
235
+ * @enum {string}
236
+ */
237
+ unit: "user" | "free";
238
+ /** @description Minimum number of units required for the plan. */
239
+ minimumUnits: number;
240
+ /** @description Price per unit of the plan. */
241
+ pricePerUnit: number;
242
+ /**
243
+ * @description Currency in which the plan is priced.
244
+ * @enum {string}
245
+ */
246
+ currency: "usd";
247
+ };
248
+ /** @description Number of units subscribed (eg number of users). */
249
+ quantity: number;
250
+ /**
251
+ * Format: date-time
252
+ * @description Timestamp when the subscription period started.
253
+ */
254
+ startDate?: string;
255
+ /**
256
+ * Format: date-time
257
+ * @description Timestamp when the current subscription period ends.
258
+ */
259
+ endDate?: string;
260
+ /**
261
+ * @description Current status of the subscription (e.g. active, past_due, canceled).
262
+ * @enum {string}
263
+ */
264
+ status:
265
+ | "incomplete"
266
+ | "incomplete_expired"
267
+ | "trialing"
268
+ | "active"
269
+ | "past_due"
270
+ | "canceled"
271
+ | "unpaid";
272
+ /**
273
+ * Format: date-time
274
+ * @description Timestamp when the subscription was created.
275
+ */
276
+ createdAt?: string;
277
+ /**
278
+ * Format: date-time
279
+ * @description Timestamp when the subscription was last updated.
280
+ */
281
+ updatedAt?: string;
282
+ /**
283
+ * Format: date-time
284
+ * @description Timestamp when the subscription was soft-deleted, if applicable.
285
+ */
286
+ deletedAt?: string;
287
+ /** @description Billing ID of the subscription. The ID of the subscription in the external billing system (for example, Stripe). */
288
+ billingId: string;
289
+ };
290
+ /**
291
+ * @description Possible statuses of a Stripe subscription.
292
+ * @enum {string}
293
+ */
294
+ SubscriptionStatus:
295
+ | "incomplete"
296
+ | "incomplete_expired"
297
+ | "trialing"
298
+ | "active"
299
+ | "past_due"
300
+ | "canceled"
301
+ | "unpaid";
302
+ };
303
+ responses: {
304
+ /** Invalid request body or request param */
305
+ 400: {
306
+ content: {
307
+ "text/plain": string;
308
+ };
309
+ };
310
+ /** Expired JWT token used or insufficient privilege */
311
+ 401: {
312
+ content: {
313
+ "text/plain": string;
314
+ };
315
+ };
316
+ /** Result not found */
317
+ 404: {
318
+ content: {
319
+ "text/plain": string;
320
+ };
321
+ };
322
+ /** Internal server error */
323
+ 500: {
324
+ content: {
325
+ "text/plain": string;
326
+ };
327
+ };
328
+ };
329
+ parameters: {
330
+ /** @description Subscription ID */
331
+ subscriptionId: string;
332
+ /** @description Get responses by page */
333
+ page: string;
334
+ /** @description Get responses by pagesize */
335
+ pagesize: string;
336
+ /** @description Get responses by pagesize (pass all to get all responses) */
337
+ pagesizeWithAll: string;
338
+ /** @description Get ordered responses */
339
+ order: string;
340
+ };
341
+ }
342
+
343
+ export interface operations {
344
+ /** Returns all subscriptions for the organization */
345
+ getSubscriptions: {
346
+ parameters: {
347
+ query: {
348
+ /** Get responses by page */
349
+ page?: string;
350
+ /** Get responses by pagesize */
351
+ pagesize?: string;
352
+ /** Get ordered responses */
353
+ order?: string;
354
+ /** Filter subscriptions by status */
355
+ status?: string[];
356
+ /** Filter subscriptions by plan UUID. Repeat for multiple values. */
357
+ planId?: string[];
358
+ };
359
+ };
360
+ responses: {
361
+ /** Subscriptions response */
362
+ 200: {
363
+ content: {
364
+ "application/json": {
365
+ /** @description Current page number of the result set. */
366
+ page: number;
367
+ /** @description Number of items per page. */
368
+ pageSize: number;
369
+ /** @description Total number of items available. */
370
+ totalCount: number;
371
+ /** @description Subscriptions returned on the current page. */
372
+ subscriptions: {
373
+ /**
374
+ * Format: uuid
375
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
376
+ */
377
+ id: string;
378
+ /**
379
+ * Format: uuid
380
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
381
+ */
382
+ orgId: string;
383
+ /**
384
+ * Format: uuid
385
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
386
+ */
387
+ planId: string;
388
+ /** @description Eager-loaded plan associated with this subscription. */
389
+ plan?: {
390
+ /**
391
+ * Format: uuid
392
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
393
+ */
394
+ id: string;
395
+ /**
396
+ * @description Display name of the plan.
397
+ * @enum {string}
398
+ */
399
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
400
+ /**
401
+ * @description Billing cadence for the plan (monthly, annually, or none).
402
+ * @enum {string}
403
+ */
404
+ cadence: "none" | "monthly" | "annually";
405
+ /**
406
+ * @description Unit of consumption this plan charges against (e.g. user).
407
+ * @enum {string}
408
+ */
409
+ unit: "user" | "free";
410
+ /** @description Minimum number of units required for the plan. */
411
+ minimumUnits: number;
412
+ /** @description Price per unit of the plan. */
413
+ pricePerUnit: number;
414
+ /**
415
+ * @description Currency in which the plan is priced.
416
+ * @enum {string}
417
+ */
418
+ currency: "usd";
419
+ };
420
+ /** @description Number of units subscribed (eg number of users). */
421
+ quantity: number;
422
+ /**
423
+ * Format: date-time
424
+ * @description Timestamp when the subscription period started.
425
+ */
426
+ startDate?: string;
427
+ /**
428
+ * Format: date-time
429
+ * @description Timestamp when the current subscription period ends.
430
+ */
431
+ endDate?: string;
432
+ /**
433
+ * @description Current status of the subscription (e.g. active, past_due, canceled).
434
+ * @enum {string}
435
+ */
436
+ status:
437
+ | "incomplete"
438
+ | "incomplete_expired"
439
+ | "trialing"
440
+ | "active"
441
+ | "past_due"
442
+ | "canceled"
443
+ | "unpaid";
444
+ /**
445
+ * Format: date-time
446
+ * @description Timestamp when the subscription was created.
447
+ */
448
+ createdAt?: string;
449
+ /**
450
+ * Format: date-time
451
+ * @description Timestamp when the subscription was last updated.
452
+ */
453
+ updatedAt?: string;
454
+ /**
455
+ * Format: date-time
456
+ * @description Timestamp when the subscription was soft-deleted, if applicable.
457
+ */
458
+ deletedAt?: string;
459
+ /** @description Billing ID of the subscription. The ID of the subscription in the external billing system (for example, Stripe). */
460
+ billingId: string;
461
+ }[];
462
+ };
463
+ };
464
+ };
465
+ /** Invalid request body or request param */
466
+ 400: {
467
+ content: {
468
+ "text/plain": string;
469
+ };
470
+ };
471
+ /** Expired JWT token used or insufficient privilege */
472
+ 401: {
473
+ content: {
474
+ "text/plain": string;
475
+ };
476
+ };
477
+ /** Internal server error */
478
+ 500: {
479
+ content: {
480
+ "text/plain": string;
481
+ };
482
+ };
483
+ };
484
+ };
485
+ cancelSubscription: {
486
+ parameters: {
487
+ path: {
488
+ /** Subscription ID */
489
+ subscriptionId: string;
490
+ };
491
+ };
492
+ responses: {
493
+ /** Subscription cancellation scheduled */
494
+ 200: {
495
+ content: {
496
+ "application/json": {
497
+ /** @description Current page number of the result set. */
498
+ page: number;
499
+ /** @description Number of items per page. */
500
+ pageSize: number;
501
+ /** @description Total number of items available. */
502
+ totalCount: number;
503
+ /** @description Subscriptions returned on the current page. */
504
+ subscriptions: {
505
+ /**
506
+ * Format: uuid
507
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
508
+ */
509
+ id: string;
510
+ /**
511
+ * Format: uuid
512
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
513
+ */
514
+ orgId: string;
515
+ /**
516
+ * Format: uuid
517
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
518
+ */
519
+ planId: string;
520
+ /** @description Eager-loaded plan associated with this subscription. */
521
+ plan?: {
522
+ /**
523
+ * Format: uuid
524
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
525
+ */
526
+ id: string;
527
+ /**
528
+ * @description Display name of the plan.
529
+ * @enum {string}
530
+ */
531
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
532
+ /**
533
+ * @description Billing cadence for the plan (monthly, annually, or none).
534
+ * @enum {string}
535
+ */
536
+ cadence: "none" | "monthly" | "annually";
537
+ /**
538
+ * @description Unit of consumption this plan charges against (e.g. user).
539
+ * @enum {string}
540
+ */
541
+ unit: "user" | "free";
542
+ /** @description Minimum number of units required for the plan. */
543
+ minimumUnits: number;
544
+ /** @description Price per unit of the plan. */
545
+ pricePerUnit: number;
546
+ /**
547
+ * @description Currency in which the plan is priced.
548
+ * @enum {string}
549
+ */
550
+ currency: "usd";
551
+ };
552
+ /** @description Number of units subscribed (eg number of users). */
553
+ quantity: number;
554
+ /**
555
+ * Format: date-time
556
+ * @description Timestamp when the subscription period started.
557
+ */
558
+ startDate?: string;
559
+ /**
560
+ * Format: date-time
561
+ * @description Timestamp when the current subscription period ends.
562
+ */
563
+ endDate?: string;
564
+ /**
565
+ * @description Current status of the subscription (e.g. active, past_due, canceled).
566
+ * @enum {string}
567
+ */
568
+ status:
569
+ | "incomplete"
570
+ | "incomplete_expired"
571
+ | "trialing"
572
+ | "active"
573
+ | "past_due"
574
+ | "canceled"
575
+ | "unpaid";
576
+ /**
577
+ * Format: date-time
578
+ * @description Timestamp when the subscription was created.
579
+ */
580
+ createdAt?: string;
581
+ /**
582
+ * Format: date-time
583
+ * @description Timestamp when the subscription was last updated.
584
+ */
585
+ updatedAt?: string;
586
+ /**
587
+ * Format: date-time
588
+ * @description Timestamp when the subscription was soft-deleted, if applicable.
589
+ */
590
+ deletedAt?: string;
591
+ /** @description Billing ID of the subscription. The ID of the subscription in the external billing system (for example, Stripe). */
592
+ billingId: string;
593
+ }[];
594
+ };
595
+ };
596
+ };
597
+ /** Invalid request body or request param */
598
+ 400: {
599
+ content: {
600
+ "text/plain": string;
601
+ };
602
+ };
603
+ /** Expired JWT token used or insufficient privilege */
604
+ 401: {
605
+ content: {
606
+ "text/plain": string;
607
+ };
608
+ };
609
+ /** Result not found */
610
+ 404: {
611
+ content: {
612
+ "text/plain": string;
613
+ };
614
+ };
615
+ /** Internal server error */
616
+ 500: {
617
+ content: {
618
+ "text/plain": string;
619
+ };
620
+ };
621
+ };
622
+ };
623
+ createSubscription: {
624
+ responses: {
625
+ /** A new subscription has been created */
626
+ 201: {
627
+ content: {
628
+ "application/json": {
629
+ /** @description ID of the associated subscription in the payment processor. */
630
+ subscriptionId?: string;
631
+ /** @description Client secret returned by the payment processor for the subscription checkout flow. */
632
+ clientSecret?: string;
633
+ };
634
+ };
635
+ };
636
+ /** Invalid request body or request param */
637
+ 400: {
638
+ content: {
639
+ "text/plain": string;
640
+ };
641
+ };
642
+ /** Expired JWT token used or insufficient privilege */
643
+ 401: {
644
+ content: {
645
+ "text/plain": string;
646
+ };
647
+ };
648
+ /** Internal server error */
649
+ 500: {
650
+ content: {
651
+ "text/plain": string;
652
+ };
653
+ };
654
+ };
655
+ requestBody: {
656
+ content: {
657
+ "application/json": {
658
+ /**
659
+ * Format: uuid
660
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
661
+ */
662
+ orgId?: string;
663
+ /** @description Price ID from the payment processor. */
664
+ planId?: string;
665
+ /** @description Coupon ID to apply. */
666
+ couponId?: string;
667
+ /** @description Number of users in the organization. */
668
+ userCount?: number;
669
+ /**
670
+ * Format: email
671
+ * @description Email of the customer.
672
+ */
673
+ email?: string;
674
+ /**
675
+ * @description Payment processor used to complete the subscription checkout.
676
+ * @enum {string}
677
+ */
678
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
679
+ };
680
+ };
681
+ };
682
+ };
683
+ upgradeSubscription: {
684
+ parameters: {
685
+ path: {
686
+ /** Subscription ID */
687
+ subscriptionId: string;
688
+ };
689
+ };
690
+ responses: {
691
+ /** Subscription upgraded */
692
+ 200: {
693
+ content: {
694
+ "application/json": {
695
+ /**
696
+ * Format: uuid
697
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
698
+ */
699
+ id: string;
700
+ /**
701
+ * Format: uuid
702
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
703
+ */
704
+ orgId: string;
705
+ /**
706
+ * Format: uuid
707
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
708
+ */
709
+ planId: string;
710
+ /** @description Eager-loaded plan associated with this subscription. */
711
+ plan?: {
712
+ /**
713
+ * Format: uuid
714
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
715
+ */
716
+ id: string;
717
+ /**
718
+ * @description Display name of the plan.
719
+ * @enum {string}
720
+ */
721
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
722
+ /**
723
+ * @description Billing cadence for the plan (monthly, annually, or none).
724
+ * @enum {string}
725
+ */
726
+ cadence: "none" | "monthly" | "annually";
727
+ /**
728
+ * @description Unit of consumption this plan charges against (e.g. user).
729
+ * @enum {string}
730
+ */
731
+ unit: "user" | "free";
732
+ /** @description Minimum number of units required for the plan. */
733
+ minimumUnits: number;
734
+ /** @description Price per unit of the plan. */
735
+ pricePerUnit: number;
736
+ /**
737
+ * @description Currency in which the plan is priced.
738
+ * @enum {string}
739
+ */
740
+ currency: "usd";
741
+ };
742
+ /** @description Number of units subscribed (eg number of users). */
743
+ quantity: number;
744
+ /**
745
+ * Format: date-time
746
+ * @description Timestamp when the subscription period started.
747
+ */
748
+ startDate?: string;
749
+ /**
750
+ * Format: date-time
751
+ * @description Timestamp when the current subscription period ends.
752
+ */
753
+ endDate?: string;
754
+ /**
755
+ * @description Current status of the subscription (e.g. active, past_due, canceled).
756
+ * @enum {string}
757
+ */
758
+ status:
759
+ | "incomplete"
760
+ | "incomplete_expired"
761
+ | "trialing"
762
+ | "active"
763
+ | "past_due"
764
+ | "canceled"
765
+ | "unpaid";
766
+ /**
767
+ * Format: date-time
768
+ * @description Timestamp when the subscription was created.
769
+ */
770
+ createdAt?: string;
771
+ /**
772
+ * Format: date-time
773
+ * @description Timestamp when the subscription was last updated.
774
+ */
775
+ updatedAt?: string;
776
+ /**
777
+ * Format: date-time
778
+ * @description Timestamp when the subscription was soft-deleted, if applicable.
779
+ */
780
+ deletedAt?: string;
781
+ /** @description Billing ID of the subscription. The ID of the subscription in the external billing system (for example, Stripe). */
782
+ billingId: string;
783
+ };
784
+ };
785
+ };
786
+ /** Invalid request body or request param */
787
+ 400: {
788
+ content: {
789
+ "text/plain": string;
790
+ };
791
+ };
792
+ /** Expired JWT token used or insufficient privilege */
793
+ 401: {
794
+ content: {
795
+ "text/plain": string;
796
+ };
797
+ };
798
+ /** Result not found */
799
+ 404: {
800
+ content: {
801
+ "text/plain": string;
802
+ };
803
+ };
804
+ /** Internal server error */
805
+ 500: {
806
+ content: {
807
+ "text/plain": string;
808
+ };
809
+ };
810
+ };
811
+ requestBody: {
812
+ content: {
813
+ "application/json": {
814
+ /**
815
+ * Format: uuid
816
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
817
+ */
818
+ oldPlanId?: string;
819
+ /**
820
+ * Format: uuid
821
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
822
+ */
823
+ newPlanId?: string;
824
+ };
825
+ };
826
+ };
827
+ };
828
+ previewSubscriptionUpgrade: {
829
+ parameters: {
830
+ path: {
831
+ /** Subscription ID */
832
+ subscriptionId: string;
833
+ };
834
+ };
835
+ responses: {
836
+ /** Preview of the upgraded subscription invoice */
837
+ 200: {
838
+ content: {
839
+ "application/json": { [key: string]: unknown };
840
+ };
841
+ };
842
+ /** Invalid request body or request param */
843
+ 400: {
844
+ content: {
845
+ "text/plain": string;
846
+ };
847
+ };
848
+ /** Expired JWT token used or insufficient privilege */
849
+ 401: {
850
+ content: {
851
+ "text/plain": string;
852
+ };
853
+ };
854
+ /** Result not found */
855
+ 404: {
856
+ content: {
857
+ "text/plain": string;
858
+ };
859
+ };
860
+ /** Internal server error */
861
+ 500: {
862
+ content: {
863
+ "text/plain": string;
864
+ };
865
+ };
866
+ };
867
+ requestBody: {
868
+ content: {
869
+ "application/json": {
870
+ /**
871
+ * Format: uuid
872
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
873
+ */
874
+ oldPlanId?: string;
875
+ /**
876
+ * Format: uuid
877
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
878
+ */
879
+ newPlanId?: string;
880
+ };
881
+ };
882
+ };
883
+ };
884
+ handleSubscriptionWebhook: {
885
+ responses: {
886
+ /** Webhook processed */
887
+ 200: unknown;
888
+ /** Invalid request body or request param */
889
+ 400: {
890
+ content: {
891
+ "text/plain": string;
892
+ };
893
+ };
894
+ /** Expired JWT token used or insufficient privilege */
895
+ 401: {
896
+ content: {
897
+ "text/plain": string;
898
+ };
899
+ };
900
+ /** Internal server error */
901
+ 500: {
902
+ content: {
903
+ "text/plain": string;
904
+ };
905
+ };
906
+ };
907
+ requestBody: {
908
+ content: {
909
+ "application/json": { [key: string]: unknown };
910
+ };
911
+ };
912
+ };
913
+ }
914
+
915
+ export interface external {}