@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,752 @@
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}/upgradePreview": {
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 Supported payment processors
32
+ * @enum {string}
33
+ */
34
+ PaymentProcessor: "stripe" | "paypal" | "braintree";
35
+ CreateSubscriptionRequest: {
36
+ /** @description Organization ID */
37
+ orgId?: string;
38
+ /** @description Price ID from the payment processor */
39
+ planId?: string;
40
+ /** @description Coupon ID to apply */
41
+ couponId?: string;
42
+ /** @description Number of users in the organization */
43
+ userCount?: number;
44
+ /**
45
+ * Format: email
46
+ * @description Email of the customer
47
+ */
48
+ email?: string;
49
+ /**
50
+ * @description Supported payment processors
51
+ * @enum {string}
52
+ */
53
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
54
+ };
55
+ UpgradeSubscriptionRequest: {
56
+ /**
57
+ * Format: uuid
58
+ * @description Old Plan id that is being changed
59
+ */
60
+ oldPlanId?: string;
61
+ /**
62
+ * Format: uuid
63
+ * @description New Plan id that is being changed to
64
+ */
65
+ newPlanId?: string;
66
+ };
67
+ CreateSubscriptionResponse: {
68
+ subscriptionId?: string;
69
+ clientSecret?: string;
70
+ };
71
+ UpdateUsersRequest: {
72
+ /**
73
+ * @description Supported payment processors
74
+ * @enum {string}
75
+ */
76
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
77
+ };
78
+ CancelSubscriptionRequest: {
79
+ /** @description Subscription ID from the payment processor */
80
+ subscriptionId?: string;
81
+ /**
82
+ * @description Supported payment processors
83
+ * @enum {string}
84
+ */
85
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
86
+ };
87
+ /** @description Payload for webhook events from payment processors */
88
+ WebhookEvent: { [key: string]: unknown };
89
+ SubscriptionPage: {
90
+ page: number;
91
+ page_size: number;
92
+ total_count: number;
93
+ subscriptions: {
94
+ /**
95
+ * Format: uuid
96
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
97
+ */
98
+ id: string;
99
+ /**
100
+ * Format: uuid
101
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
102
+ */
103
+ org_id: string;
104
+ /**
105
+ * Format: uuid
106
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
107
+ */
108
+ plan_id: string;
109
+ plan?: {
110
+ /**
111
+ * Format: uuid
112
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
113
+ */
114
+ id: string;
115
+ /**
116
+ * @description Name of the plan
117
+ * @enum {string}
118
+ */
119
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
120
+ /** @enum {string} */
121
+ cadence: "monthly" | "yearly";
122
+ /** @enum {string} */
123
+ unit: "user" | "free";
124
+ /** @description Minimum number of units required for the plan */
125
+ minimum_units: number;
126
+ /** @description Price per unit of the plan */
127
+ price_per_unit: number;
128
+ /** @enum {string} */
129
+ currency: "usd";
130
+ };
131
+ quantity: number;
132
+ /** Format: date-time */
133
+ start_date?: string;
134
+ /** Format: date-time */
135
+ end_date?: string;
136
+ /**
137
+ * @description Possible statuses of a Stripe subscription.
138
+ * @enum {string}
139
+ */
140
+ status:
141
+ | "incomplete"
142
+ | "incomplete_expired"
143
+ | "trialing"
144
+ | "active"
145
+ | "past_due"
146
+ | "canceled"
147
+ | "unpaid";
148
+ /** Format: date-time */
149
+ created_at?: string;
150
+ /** Format: date-time */
151
+ updated_at?: string;
152
+ /** Format: date-time */
153
+ deleted_at?: string;
154
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
155
+ billing_id: string;
156
+ }[];
157
+ };
158
+ Subscription: {
159
+ /**
160
+ * Format: uuid
161
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
162
+ */
163
+ id: string;
164
+ /**
165
+ * Format: uuid
166
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
167
+ */
168
+ org_id: string;
169
+ /**
170
+ * Format: uuid
171
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
172
+ */
173
+ plan_id: string;
174
+ plan?: {
175
+ /**
176
+ * Format: uuid
177
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
178
+ */
179
+ id: string;
180
+ /**
181
+ * @description Name of the plan
182
+ * @enum {string}
183
+ */
184
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
185
+ /** @enum {string} */
186
+ cadence: "monthly" | "yearly";
187
+ /** @enum {string} */
188
+ unit: "user" | "free";
189
+ /** @description Minimum number of units required for the plan */
190
+ minimum_units: number;
191
+ /** @description Price per unit of the plan */
192
+ price_per_unit: number;
193
+ /** @enum {string} */
194
+ currency: "usd";
195
+ };
196
+ quantity: number;
197
+ /** Format: date-time */
198
+ start_date?: string;
199
+ /** Format: date-time */
200
+ end_date?: string;
201
+ /**
202
+ * @description Possible statuses of a Stripe subscription.
203
+ * @enum {string}
204
+ */
205
+ status:
206
+ | "incomplete"
207
+ | "incomplete_expired"
208
+ | "trialing"
209
+ | "active"
210
+ | "past_due"
211
+ | "canceled"
212
+ | "unpaid";
213
+ /** Format: date-time */
214
+ created_at?: string;
215
+ /** Format: date-time */
216
+ updated_at?: string;
217
+ /** Format: date-time */
218
+ deleted_at?: string;
219
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
220
+ billing_id: string;
221
+ };
222
+ /**
223
+ * @description Possible statuses of a Stripe subscription.
224
+ * @enum {string}
225
+ */
226
+ SubscriptionStatus:
227
+ | "incomplete"
228
+ | "incomplete_expired"
229
+ | "trialing"
230
+ | "active"
231
+ | "past_due"
232
+ | "canceled"
233
+ | "unpaid";
234
+ };
235
+ responses: {
236
+ /** Invalid request body or request param */
237
+ 400: {
238
+ content: {
239
+ "text/plain": string;
240
+ };
241
+ };
242
+ /** Expired JWT token used or insufficient privilege */
243
+ 401: {
244
+ content: {
245
+ "text/plain": string;
246
+ };
247
+ };
248
+ /** Result not found */
249
+ 404: {
250
+ content: {
251
+ "text/plain": string;
252
+ };
253
+ };
254
+ /** Internal server error */
255
+ 500: {
256
+ content: {
257
+ "text/plain": string;
258
+ };
259
+ };
260
+ };
261
+ parameters: {
262
+ /** @description Subscription ID */
263
+ subscriptionId: string;
264
+ /** @description Get responses by page */
265
+ page: string;
266
+ /** @description Get responses by pagesize */
267
+ pagesize: string;
268
+ /** @description Get responses by pagesize (pass all to get all responses) */
269
+ pagesizeWithAll: string;
270
+ /** @description Get ordered responses */
271
+ order: string;
272
+ };
273
+ }
274
+
275
+ export interface operations {
276
+ /** Returns all subscriptions for the organization */
277
+ getSubscriptions: {
278
+ parameters: {
279
+ query: {
280
+ /** Get responses by page */
281
+ page?: string;
282
+ /** Get responses by pagesize */
283
+ pagesize?: string;
284
+ /** Get ordered responses */
285
+ order?: string;
286
+ /** Filter subscriptions by status */
287
+ status?: string[];
288
+ };
289
+ };
290
+ responses: {
291
+ /** Get subscription response */
292
+ 200: {
293
+ content: {
294
+ "application/json": {
295
+ page: number;
296
+ page_size: number;
297
+ total_count: number;
298
+ subscriptions: {
299
+ /**
300
+ * Format: uuid
301
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
302
+ */
303
+ id: string;
304
+ /**
305
+ * Format: uuid
306
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
307
+ */
308
+ org_id: string;
309
+ /**
310
+ * Format: uuid
311
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
312
+ */
313
+ plan_id: string;
314
+ plan?: {
315
+ /**
316
+ * Format: uuid
317
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
318
+ */
319
+ id: string;
320
+ /**
321
+ * @description Name of the plan
322
+ * @enum {string}
323
+ */
324
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
325
+ /** @enum {string} */
326
+ cadence: "monthly" | "yearly";
327
+ /** @enum {string} */
328
+ unit: "user" | "free";
329
+ /** @description Minimum number of units required for the plan */
330
+ minimum_units: number;
331
+ /** @description Price per unit of the plan */
332
+ price_per_unit: number;
333
+ /** @enum {string} */
334
+ currency: "usd";
335
+ };
336
+ quantity: number;
337
+ /** Format: date-time */
338
+ start_date?: string;
339
+ /** Format: date-time */
340
+ end_date?: string;
341
+ /**
342
+ * @description Possible statuses of a Stripe subscription.
343
+ * @enum {string}
344
+ */
345
+ status:
346
+ | "incomplete"
347
+ | "incomplete_expired"
348
+ | "trialing"
349
+ | "active"
350
+ | "past_due"
351
+ | "canceled"
352
+ | "unpaid";
353
+ /** Format: date-time */
354
+ created_at?: string;
355
+ /** Format: date-time */
356
+ updated_at?: string;
357
+ /** Format: date-time */
358
+ deleted_at?: string;
359
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
360
+ billing_id: string;
361
+ }[];
362
+ };
363
+ };
364
+ };
365
+ /** Invalid request body or request param */
366
+ 400: {
367
+ content: {
368
+ "text/plain": string;
369
+ };
370
+ };
371
+ /** Expired JWT token used or insufficient privilege */
372
+ 401: {
373
+ content: {
374
+ "text/plain": string;
375
+ };
376
+ };
377
+ /** Internal server error */
378
+ 500: {
379
+ content: {
380
+ "text/plain": string;
381
+ };
382
+ };
383
+ };
384
+ };
385
+ cancelSubscription: {
386
+ parameters: {
387
+ path: {
388
+ /** Subscription ID */
389
+ subscriptionId: string;
390
+ };
391
+ };
392
+ responses: {
393
+ 200: {
394
+ content: {
395
+ "application/json": {
396
+ page: number;
397
+ page_size: number;
398
+ total_count: number;
399
+ subscriptions: {
400
+ /**
401
+ * Format: uuid
402
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
403
+ */
404
+ id: string;
405
+ /**
406
+ * Format: uuid
407
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
408
+ */
409
+ org_id: string;
410
+ /**
411
+ * Format: uuid
412
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
413
+ */
414
+ plan_id: string;
415
+ plan?: {
416
+ /**
417
+ * Format: uuid
418
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
419
+ */
420
+ id: string;
421
+ /**
422
+ * @description Name of the plan
423
+ * @enum {string}
424
+ */
425
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
426
+ /** @enum {string} */
427
+ cadence: "monthly" | "yearly";
428
+ /** @enum {string} */
429
+ unit: "user" | "free";
430
+ /** @description Minimum number of units required for the plan */
431
+ minimum_units: number;
432
+ /** @description Price per unit of the plan */
433
+ price_per_unit: number;
434
+ /** @enum {string} */
435
+ currency: "usd";
436
+ };
437
+ quantity: number;
438
+ /** Format: date-time */
439
+ start_date?: string;
440
+ /** Format: date-time */
441
+ end_date?: string;
442
+ /**
443
+ * @description Possible statuses of a Stripe subscription.
444
+ * @enum {string}
445
+ */
446
+ status:
447
+ | "incomplete"
448
+ | "incomplete_expired"
449
+ | "trialing"
450
+ | "active"
451
+ | "past_due"
452
+ | "canceled"
453
+ | "unpaid";
454
+ /** Format: date-time */
455
+ created_at?: string;
456
+ /** Format: date-time */
457
+ updated_at?: string;
458
+ /** Format: date-time */
459
+ deleted_at?: string;
460
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
461
+ billing_id: string;
462
+ }[];
463
+ };
464
+ };
465
+ };
466
+ /** Invalid request body or request param */
467
+ 400: {
468
+ content: {
469
+ "text/plain": string;
470
+ };
471
+ };
472
+ /** Expired JWT token used or insufficient privilege */
473
+ 401: {
474
+ content: {
475
+ "text/plain": string;
476
+ };
477
+ };
478
+ /** Result not found */
479
+ 404: {
480
+ content: {
481
+ "text/plain": string;
482
+ };
483
+ };
484
+ /** Internal server error */
485
+ 500: {
486
+ content: {
487
+ "text/plain": string;
488
+ };
489
+ };
490
+ };
491
+ };
492
+ createSubscription: {
493
+ responses: {
494
+ /** A new subscription has been created */
495
+ 200: {
496
+ content: {
497
+ "application/json": {
498
+ subscriptionId?: string;
499
+ clientSecret?: string;
500
+ };
501
+ };
502
+ };
503
+ /** Invalid request body or request param */
504
+ 400: {
505
+ content: {
506
+ "text/plain": string;
507
+ };
508
+ };
509
+ /** Expired JWT token used or insufficient privilege */
510
+ 401: {
511
+ content: {
512
+ "text/plain": string;
513
+ };
514
+ };
515
+ /** Internal server error */
516
+ 500: {
517
+ content: {
518
+ "text/plain": string;
519
+ };
520
+ };
521
+ };
522
+ requestBody: {
523
+ content: {
524
+ "application/json": {
525
+ /** @description Organization ID */
526
+ orgId?: string;
527
+ /** @description Price ID from the payment processor */
528
+ planId?: string;
529
+ /** @description Coupon ID to apply */
530
+ couponId?: string;
531
+ /** @description Number of users in the organization */
532
+ userCount?: number;
533
+ /**
534
+ * Format: email
535
+ * @description Email of the customer
536
+ */
537
+ email?: string;
538
+ /**
539
+ * @description Supported payment processors
540
+ * @enum {string}
541
+ */
542
+ paymentProcessor?: "stripe" | "paypal" | "braintree";
543
+ };
544
+ };
545
+ };
546
+ };
547
+ upgradeSubscription: {
548
+ parameters: {
549
+ path: {
550
+ /** Subscription ID */
551
+ subscriptionId: string;
552
+ };
553
+ };
554
+ responses: {
555
+ 200: {
556
+ content: {
557
+ "application/json": {
558
+ /**
559
+ * Format: uuid
560
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
561
+ */
562
+ id: string;
563
+ /**
564
+ * Format: uuid
565
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
566
+ */
567
+ org_id: string;
568
+ /**
569
+ * Format: uuid
570
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
571
+ */
572
+ plan_id: string;
573
+ plan?: {
574
+ /**
575
+ * Format: uuid
576
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
577
+ */
578
+ id: string;
579
+ /**
580
+ * @description Name of the plan
581
+ * @enum {string}
582
+ */
583
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
584
+ /** @enum {string} */
585
+ cadence: "monthly" | "yearly";
586
+ /** @enum {string} */
587
+ unit: "user" | "free";
588
+ /** @description Minimum number of units required for the plan */
589
+ minimum_units: number;
590
+ /** @description Price per unit of the plan */
591
+ price_per_unit: number;
592
+ /** @enum {string} */
593
+ currency: "usd";
594
+ };
595
+ quantity: number;
596
+ /** Format: date-time */
597
+ start_date?: string;
598
+ /** Format: date-time */
599
+ end_date?: string;
600
+ /**
601
+ * @description Possible statuses of a Stripe subscription.
602
+ * @enum {string}
603
+ */
604
+ status:
605
+ | "incomplete"
606
+ | "incomplete_expired"
607
+ | "trialing"
608
+ | "active"
609
+ | "past_due"
610
+ | "canceled"
611
+ | "unpaid";
612
+ /** Format: date-time */
613
+ created_at?: string;
614
+ /** Format: date-time */
615
+ updated_at?: string;
616
+ /** Format: date-time */
617
+ deleted_at?: string;
618
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
619
+ billing_id: string;
620
+ };
621
+ };
622
+ };
623
+ /** Invalid request body or request param */
624
+ 400: {
625
+ content: {
626
+ "text/plain": string;
627
+ };
628
+ };
629
+ /** Expired JWT token used or insufficient privilege */
630
+ 401: {
631
+ content: {
632
+ "text/plain": string;
633
+ };
634
+ };
635
+ /** Result not found */
636
+ 404: {
637
+ content: {
638
+ "text/plain": string;
639
+ };
640
+ };
641
+ /** Internal server error */
642
+ 500: {
643
+ content: {
644
+ "text/plain": string;
645
+ };
646
+ };
647
+ };
648
+ requestBody: {
649
+ content: {
650
+ "application/json": {
651
+ /**
652
+ * Format: uuid
653
+ * @description Old Plan id that is being changed
654
+ */
655
+ oldPlanId?: string;
656
+ /**
657
+ * Format: uuid
658
+ * @description New Plan id that is being changed to
659
+ */
660
+ newPlanId?: string;
661
+ };
662
+ };
663
+ };
664
+ };
665
+ previewSubscriptionUpgrade: {
666
+ parameters: {
667
+ path: {
668
+ /** Subscription ID */
669
+ subscriptionId: string;
670
+ };
671
+ };
672
+ responses: {
673
+ /** Preview of the upgraded subscription invoice */
674
+ 200: {
675
+ content: {
676
+ "application/json": { [key: string]: unknown };
677
+ };
678
+ };
679
+ /** Invalid request body or request param */
680
+ 400: {
681
+ content: {
682
+ "text/plain": string;
683
+ };
684
+ };
685
+ /** Expired JWT token used or insufficient privilege */
686
+ 401: {
687
+ content: {
688
+ "text/plain": string;
689
+ };
690
+ };
691
+ /** Result not found */
692
+ 404: {
693
+ content: {
694
+ "text/plain": string;
695
+ };
696
+ };
697
+ /** Internal server error */
698
+ 500: {
699
+ content: {
700
+ "text/plain": string;
701
+ };
702
+ };
703
+ };
704
+ requestBody: {
705
+ content: {
706
+ "application/json": {
707
+ /**
708
+ * Format: uuid
709
+ * @description Old Plan id that is being changed
710
+ */
711
+ oldPlanId?: string;
712
+ /**
713
+ * Format: uuid
714
+ * @description New Plan id that is being changed to
715
+ */
716
+ newPlanId?: string;
717
+ };
718
+ };
719
+ };
720
+ };
721
+ handleSubscriptionWebhook: {
722
+ responses: {
723
+ /** Webhook processed */
724
+ 200: unknown;
725
+ /** Invalid request body or request param */
726
+ 400: {
727
+ content: {
728
+ "text/plain": string;
729
+ };
730
+ };
731
+ /** Expired JWT token used or insufficient privilege */
732
+ 401: {
733
+ content: {
734
+ "text/plain": string;
735
+ };
736
+ };
737
+ /** Internal server error */
738
+ 500: {
739
+ content: {
740
+ "text/plain": string;
741
+ };
742
+ };
743
+ };
744
+ requestBody: {
745
+ content: {
746
+ "application/json": { [key: string]: unknown };
747
+ };
748
+ };
749
+ };
750
+ }
751
+
752
+ export interface external {}