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