@meshery/schemas 0.8.107 → 0.8.108

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 (204) hide show
  1. package/README.md +294 -23
  2. package/dist/Core-Wy_3jcVT.d.mts +736 -0
  3. package/dist/Core-Wy_3jcVT.d.ts +736 -0
  4. package/dist/cloudApi.d.mts +6873 -3592
  5. package/dist/cloudApi.d.ts +6873 -3592
  6. package/dist/cloudApi.js +1 -1
  7. package/dist/cloudApi.mjs +1 -1
  8. package/dist/constructs/v1alpha1/capability/Capability.d.mts +115 -0
  9. package/dist/constructs/v1alpha1/capability/Capability.d.ts +115 -0
  10. package/dist/constructs/v1alpha1/capability/Capability.js +1 -0
  11. package/dist/constructs/v1alpha1/capability/Capability.mjs +0 -0
  12. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.mts +155 -0
  13. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +155 -0
  14. package/dist/constructs/v1alpha1/capability/CapabilitySchema.js +2 -0
  15. package/dist/constructs/v1alpha1/capability/CapabilitySchema.mjs +2 -0
  16. package/dist/constructs/v1alpha1/core/Core.d.mts +1 -0
  17. package/dist/constructs/v1alpha1/core/Core.d.ts +1 -0
  18. package/dist/constructs/v1alpha1/core/Core.js +1 -0
  19. package/dist/constructs/v1alpha1/core/Core.mjs +0 -0
  20. package/dist/constructs/v1alpha1/core/CoreSchema.d.mts +1649 -0
  21. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +1649 -0
  22. package/dist/constructs/v1alpha1/core/CoreSchema.js +2 -0
  23. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +2 -0
  24. package/dist/constructs/v1alpha2/catalog/Catalog.d.mts +46 -0
  25. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +46 -0
  26. package/dist/constructs/v1alpha2/catalog/Catalog.js +1 -0
  27. package/dist/constructs/v1alpha2/catalog/Catalog.mjs +0 -0
  28. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.mts +80 -0
  29. package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +80 -0
  30. package/dist/constructs/v1alpha2/catalog/CatalogSchema.js +2 -0
  31. package/dist/constructs/v1alpha2/catalog/CatalogSchema.mjs +2 -0
  32. package/dist/constructs/v1beta1/academy/Academy.d.mts +5762 -0
  33. package/dist/constructs/v1beta1/academy/Academy.d.ts +5762 -0
  34. package/dist/constructs/v1beta1/academy/Academy.js +1 -0
  35. package/dist/constructs/v1beta1/academy/Academy.mjs +0 -0
  36. package/dist/constructs/v1beta1/academy/AcademySchema.d.mts +11838 -0
  37. package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +11838 -0
  38. package/dist/constructs/v1beta1/academy/AcademySchema.js +2 -0
  39. package/dist/constructs/v1beta1/academy/AcademySchema.mjs +2 -0
  40. package/dist/constructs/v1beta1/badge/Badge.d.mts +253 -0
  41. package/dist/constructs/v1beta1/badge/Badge.d.ts +253 -0
  42. package/dist/constructs/v1beta1/badge/Badge.js +1 -0
  43. package/dist/constructs/v1beta1/badge/Badge.mjs +0 -0
  44. package/dist/constructs/v1beta1/badge/BadgeSchema.d.mts +519 -0
  45. package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +519 -0
  46. package/dist/constructs/v1beta1/badge/BadgeSchema.js +2 -0
  47. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +2 -0
  48. package/dist/constructs/v1beta1/category/Category.d.mts +33 -0
  49. package/dist/constructs/v1beta1/category/Category.d.ts +33 -0
  50. package/dist/constructs/v1beta1/category/Category.js +1 -0
  51. package/dist/constructs/v1beta1/category/Category.mjs +0 -0
  52. package/dist/constructs/v1beta1/category/CategorySchema.d.mts +60 -0
  53. package/dist/constructs/v1beta1/category/CategorySchema.d.ts +60 -0
  54. package/dist/constructs/v1beta1/category/CategorySchema.js +2 -0
  55. package/dist/constructs/v1beta1/category/CategorySchema.mjs +2 -0
  56. package/dist/constructs/v1beta1/component/Component.d.mts +737 -0
  57. package/dist/constructs/v1beta1/component/Component.d.ts +737 -0
  58. package/dist/constructs/v1beta1/component/Component.js +1 -0
  59. package/dist/constructs/v1beta1/component/Component.mjs +0 -0
  60. package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +1751 -0
  61. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +1751 -0
  62. package/dist/constructs/v1beta1/component/ComponentSchema.js +10 -0
  63. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +10 -0
  64. package/dist/constructs/v1beta1/connection/Connection.d.mts +186 -0
  65. package/dist/constructs/v1beta1/connection/Connection.d.ts +186 -0
  66. package/dist/constructs/v1beta1/connection/Connection.js +1 -0
  67. package/dist/constructs/v1beta1/connection/Connection.mjs +0 -0
  68. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +612 -0
  69. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +612 -0
  70. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +2 -0
  71. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +2 -0
  72. package/dist/constructs/v1beta1/environment/Environment.d.mts +307 -0
  73. package/dist/constructs/v1beta1/environment/Environment.d.ts +307 -0
  74. package/dist/constructs/v1beta1/environment/Environment.js +1 -0
  75. package/dist/constructs/v1beta1/environment/Environment.mjs +0 -0
  76. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +904 -0
  77. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +904 -0
  78. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +2 -0
  79. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +2 -0
  80. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +5729 -0
  81. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +5729 -0
  82. package/dist/constructs/v1beta1/evaluation/Evaluation.js +1 -0
  83. package/dist/constructs/v1beta1/evaluation/Evaluation.mjs +0 -0
  84. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +15473 -0
  85. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +15473 -0
  86. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +210 -0
  87. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +210 -0
  88. package/dist/constructs/v1beta1/event/Event.d.mts +177 -0
  89. package/dist/constructs/v1beta1/event/Event.d.ts +177 -0
  90. package/dist/constructs/v1beta1/event/Event.js +1 -0
  91. package/dist/constructs/v1beta1/event/Event.mjs +0 -0
  92. package/dist/constructs/v1beta1/event/EventSchema.d.mts +360 -0
  93. package/dist/constructs/v1beta1/event/EventSchema.d.ts +360 -0
  94. package/dist/constructs/v1beta1/event/EventSchema.js +1 -0
  95. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -0
  96. package/dist/constructs/v1beta1/feature/Feature.d.mts +287 -0
  97. package/dist/constructs/v1beta1/feature/Feature.d.ts +287 -0
  98. package/dist/constructs/v1beta1/feature/Feature.js +1 -0
  99. package/dist/constructs/v1beta1/feature/Feature.mjs +0 -0
  100. package/dist/constructs/v1beta1/feature/FeatureSchema.d.mts +773 -0
  101. package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +773 -0
  102. package/dist/constructs/v1beta1/feature/FeatureSchema.js +1 -0
  103. package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +1 -0
  104. package/dist/constructs/v1beta1/invitation/Invitation.d.mts +644 -0
  105. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +644 -0
  106. package/dist/constructs/v1beta1/invitation/Invitation.js +1 -0
  107. package/dist/constructs/v1beta1/invitation/Invitation.mjs +0 -0
  108. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.mts +1652 -0
  109. package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +1652 -0
  110. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -0
  111. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -0
  112. package/dist/constructs/v1beta1/key/Key.d.mts +409 -0
  113. package/dist/constructs/v1beta1/key/Key.d.ts +409 -0
  114. package/dist/constructs/v1beta1/key/Key.js +1 -0
  115. package/dist/constructs/v1beta1/key/Key.mjs +0 -0
  116. package/dist/constructs/v1beta1/key/KeySchema.d.mts +1029 -0
  117. package/dist/constructs/v1beta1/key/KeySchema.d.ts +1029 -0
  118. package/dist/constructs/v1beta1/key/KeySchema.js +1 -0
  119. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -0
  120. package/dist/constructs/v1beta1/keychain/Keychain.d.mts +641 -0
  121. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +641 -0
  122. package/dist/constructs/v1beta1/keychain/Keychain.js +1 -0
  123. package/dist/constructs/v1beta1/keychain/Keychain.mjs +0 -0
  124. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.mts +1541 -0
  125. package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +1541 -0
  126. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -0
  127. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -0
  128. package/dist/constructs/v1beta1/model/Model.d.mts +474 -0
  129. package/dist/constructs/v1beta1/model/Model.d.ts +474 -0
  130. package/dist/constructs/v1beta1/model/Model.js +1 -0
  131. package/dist/constructs/v1beta1/model/Model.mjs +0 -0
  132. package/dist/constructs/v1beta1/model/ModelSchema.d.mts +1281 -0
  133. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +1281 -0
  134. package/dist/constructs/v1beta1/model/ModelSchema.js +6 -0
  135. package/dist/constructs/v1beta1/model/ModelSchema.mjs +6 -0
  136. package/dist/constructs/v1beta1/organization/Organization.d.mts +268 -0
  137. package/dist/constructs/v1beta1/organization/Organization.d.ts +268 -0
  138. package/dist/constructs/v1beta1/organization/Organization.js +1 -0
  139. package/dist/constructs/v1beta1/organization/Organization.mjs +0 -0
  140. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.mts +765 -0
  141. package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +765 -0
  142. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -0
  143. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -0
  144. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +5776 -0
  145. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +5776 -0
  146. package/dist/constructs/v1beta1/pattern/Pattern.js +1 -0
  147. package/dist/constructs/v1beta1/pattern/Pattern.mjs +0 -0
  148. package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +15669 -0
  149. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +15669 -0
  150. package/dist/constructs/v1beta1/pattern/PatternSchema.js +210 -0
  151. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +210 -0
  152. package/dist/constructs/v1beta1/plan/Plan.d.mts +120 -0
  153. package/dist/constructs/v1beta1/plan/Plan.d.ts +120 -0
  154. package/dist/constructs/v1beta1/plan/Plan.js +1 -0
  155. package/dist/constructs/v1beta1/plan/Plan.mjs +0 -0
  156. package/dist/constructs/v1beta1/plan/PlanSchema.d.mts +322 -0
  157. package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +322 -0
  158. package/dist/constructs/v1beta1/plan/PlanSchema.js +1 -0
  159. package/dist/constructs/v1beta1/plan/PlanSchema.mjs +1 -0
  160. package/dist/constructs/v1beta1/subcategory/Subcategory.d.mts +23 -0
  161. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +23 -0
  162. package/dist/constructs/v1beta1/subcategory/Subcategory.js +1 -0
  163. package/dist/constructs/v1beta1/subcategory/Subcategory.mjs +0 -0
  164. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.mts +33 -0
  165. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +33 -0
  166. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.js +2 -0
  167. package/dist/constructs/v1beta1/subcategory/SubcategorySchema.mjs +2 -0
  168. package/dist/constructs/v1beta1/subscription/Subscription.d.mts +624 -0
  169. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +624 -0
  170. package/dist/constructs/v1beta1/subscription/Subscription.js +1 -0
  171. package/dist/constructs/v1beta1/subscription/Subscription.mjs +0 -0
  172. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.mts +1642 -0
  173. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +1642 -0
  174. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.js +2 -0
  175. package/dist/constructs/v1beta1/subscription/SubscriptionSchema.mjs +2 -0
  176. package/dist/constructs/v1beta1/user/User.d.mts +473 -0
  177. package/dist/constructs/v1beta1/user/User.d.ts +473 -0
  178. package/dist/constructs/v1beta1/user/User.js +1 -0
  179. package/dist/constructs/v1beta1/user/User.mjs +0 -0
  180. package/dist/constructs/v1beta1/user/UserSchema.d.mts +1112 -0
  181. package/dist/constructs/v1beta1/user/UserSchema.d.ts +1112 -0
  182. package/dist/constructs/v1beta1/user/UserSchema.js +1 -0
  183. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -0
  184. package/dist/constructs/v1beta1/workspace/Workspace.d.mts +303 -0
  185. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +303 -0
  186. package/dist/constructs/v1beta1/workspace/Workspace.js +1 -0
  187. package/dist/constructs/v1beta1/workspace/Workspace.mjs +0 -0
  188. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.mts +964 -0
  189. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +964 -0
  190. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -0
  191. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -0
  192. package/dist/index.d.mts +40 -34677
  193. package/dist/index.d.ts +40 -34677
  194. package/dist/index.js +29 -93
  195. package/dist/index.mjs +29 -93
  196. package/dist/mesheryApi.d.mts +1751 -653
  197. package/dist/mesheryApi.d.ts +1751 -653
  198. package/dist/mesheryApi.js +1 -1
  199. package/dist/mesheryApi.mjs +1 -1
  200. package/dist/permissions.d.mts +422 -0
  201. package/dist/permissions.d.ts +422 -0
  202. package/dist/permissions.js +1 -0
  203. package/dist/permissions.mjs +1 -0
  204. package/package.json +52 -48
@@ -0,0 +1,624 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ interface paths {
6
+ "/api/entitlement/subscriptions": {
7
+ /** Returns all subscriptions for the organization */
8
+ get: operations["getSubscriptions"];
9
+ };
10
+ "/api/entitlement/subscriptions/{subscriptionId}/cancel": {
11
+ post: {
12
+ parameters: {
13
+ path: {
14
+ /** Subscription ID */
15
+ subscriptionId: string;
16
+ };
17
+ };
18
+ responses: {
19
+ 200: {
20
+ content: {
21
+ "application/json": {
22
+ page: number;
23
+ page_size: number;
24
+ total_count: number;
25
+ subscriptions: {
26
+ /**
27
+ * Format: uuid
28
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
29
+ */
30
+ ID: string;
31
+ /**
32
+ * Format: uuid
33
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
34
+ */
35
+ org_id: string;
36
+ /**
37
+ * Format: uuid
38
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
39
+ */
40
+ plan_id: string;
41
+ plan?: {
42
+ /**
43
+ * Format: uuid
44
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
45
+ */
46
+ id: string;
47
+ /**
48
+ * @description Name of the plan
49
+ * @enum {string}
50
+ */
51
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
52
+ /** @enum {string} */
53
+ cadence: "monthly" | "yearly";
54
+ /** @enum {string} */
55
+ unit: "user" | "free";
56
+ /** @description Minimum number of units required for the plan */
57
+ minimum_units: number;
58
+ /** @description Price per unit of the plan */
59
+ price_per_unit: number;
60
+ /** @enum {string} */
61
+ currency: "usd";
62
+ } & {
63
+ price_id: unknown;
64
+ };
65
+ quantity: number;
66
+ /** Format: date-time */
67
+ start_date?: string;
68
+ /** Format: date-time */
69
+ end_date?: string;
70
+ /**
71
+ * @description Possible statuses of a Stripe subscription.
72
+ * @enum {string}
73
+ */
74
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
75
+ /** Format: date-time */
76
+ created_at?: string;
77
+ /** Format: date-time */
78
+ updated_at?: string;
79
+ /** Format: date-time */
80
+ deleted_at?: string;
81
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
82
+ billing_id: string;
83
+ }[];
84
+ };
85
+ };
86
+ };
87
+ /** Invalid request */
88
+ 400: unknown;
89
+ /** Internal server error */
90
+ 500: unknown;
91
+ };
92
+ };
93
+ };
94
+ "/api/entitlement/subscriptions/create": {
95
+ post: {
96
+ responses: {
97
+ /** A new subscription has been created */
98
+ 200: {
99
+ content: {
100
+ "application/json": {
101
+ subscription_id?: string;
102
+ clientSecret?: string;
103
+ };
104
+ };
105
+ };
106
+ /** Invalid request */
107
+ 400: unknown;
108
+ /** Internal server error */
109
+ 500: unknown;
110
+ };
111
+ requestBody: {
112
+ content: {
113
+ "application/json": {
114
+ /** @description Organization ID */
115
+ org_id?: string;
116
+ /** @description Price ID from the payment processor */
117
+ plan_id?: string;
118
+ /** @description Coupon ID to apply */
119
+ coupon_id?: string;
120
+ /** @description Number of users in the organization */
121
+ user_count?: number;
122
+ /**
123
+ * Format: email
124
+ * @description Email of the customer
125
+ */
126
+ email?: string;
127
+ /**
128
+ * @description Supported payment processors
129
+ * @enum {string}
130
+ */
131
+ payment_processor?: "stripe" | "paypal" | "braintree";
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ "/api/entitlement/subscriptions/{subscriptionId}/upgrade": {
138
+ post: {
139
+ parameters: {
140
+ path: {
141
+ /** Subscription ID */
142
+ subscriptionId: string;
143
+ };
144
+ };
145
+ responses: {
146
+ 200: {
147
+ content: {
148
+ "application/json": {
149
+ /**
150
+ * Format: uuid
151
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
152
+ */
153
+ ID: string;
154
+ /**
155
+ * Format: uuid
156
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
157
+ */
158
+ org_id: string;
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
+ plan_id: string;
164
+ plan?: {
165
+ /**
166
+ * Format: uuid
167
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
168
+ */
169
+ id: string;
170
+ /**
171
+ * @description Name of the plan
172
+ * @enum {string}
173
+ */
174
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
175
+ /** @enum {string} */
176
+ cadence: "monthly" | "yearly";
177
+ /** @enum {string} */
178
+ unit: "user" | "free";
179
+ /** @description Minimum number of units required for the plan */
180
+ minimum_units: number;
181
+ /** @description Price per unit of the plan */
182
+ price_per_unit: number;
183
+ /** @enum {string} */
184
+ currency: "usd";
185
+ } & {
186
+ price_id: unknown;
187
+ };
188
+ quantity: number;
189
+ /** Format: date-time */
190
+ start_date?: string;
191
+ /** Format: date-time */
192
+ end_date?: string;
193
+ /**
194
+ * @description Possible statuses of a Stripe subscription.
195
+ * @enum {string}
196
+ */
197
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
198
+ /** Format: date-time */
199
+ created_at?: string;
200
+ /** Format: date-time */
201
+ updated_at?: string;
202
+ /** Format: date-time */
203
+ deleted_at?: string;
204
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
205
+ billing_id: string;
206
+ };
207
+ };
208
+ };
209
+ /** Invalid request */
210
+ 400: unknown;
211
+ /** Internal server error */
212
+ 500: unknown;
213
+ };
214
+ requestBody: {
215
+ content: {
216
+ "application/json": {
217
+ /**
218
+ * Format: uuid
219
+ * @description Old Plan id that is being changed
220
+ */
221
+ old_plan_id?: string;
222
+ /**
223
+ * Format: uuid
224
+ * @description New Plan id that is being changed to
225
+ */
226
+ new_plan_id?: string;
227
+ };
228
+ };
229
+ };
230
+ };
231
+ };
232
+ "/api/entitlement/subscriptions/{subscriptionId}/upgradePreview": {
233
+ post: {
234
+ parameters: {
235
+ path: {
236
+ /** Subscription ID */
237
+ subscriptionId: string;
238
+ };
239
+ };
240
+ responses: {
241
+ /** Preview of the upgraded subscription invoice */
242
+ 200: {
243
+ content: {
244
+ "application/json": {
245
+ [key: string]: unknown;
246
+ };
247
+ };
248
+ };
249
+ /** Invalid request */
250
+ 400: unknown;
251
+ /** Internal server error */
252
+ 500: unknown;
253
+ };
254
+ requestBody: {
255
+ content: {
256
+ "application/json": {
257
+ /**
258
+ * Format: uuid
259
+ * @description Old Plan id that is being changed
260
+ */
261
+ old_plan_id?: string;
262
+ /**
263
+ * Format: uuid
264
+ * @description New Plan id that is being changed to
265
+ */
266
+ new_plan_id?: string;
267
+ };
268
+ };
269
+ };
270
+ };
271
+ };
272
+ "/api/entitlement/subscriptions/webhooks": {
273
+ post: {
274
+ responses: {
275
+ /** Webhook processed successfully */
276
+ 200: unknown;
277
+ /** Invalid webhook event */
278
+ 400: unknown;
279
+ };
280
+ requestBody: {
281
+ content: {
282
+ "application/json": {
283
+ [key: string]: unknown;
284
+ };
285
+ };
286
+ };
287
+ };
288
+ };
289
+ }
290
+ interface components {
291
+ schemas: {
292
+ /**
293
+ * @description Supported payment processors
294
+ * @enum {string}
295
+ */
296
+ PaymentProcessor: "stripe" | "paypal" | "braintree";
297
+ CreateSubscriptionRequest: {
298
+ /** @description Organization ID */
299
+ org_id?: string;
300
+ /** @description Price ID from the payment processor */
301
+ plan_id?: string;
302
+ /** @description Coupon ID to apply */
303
+ coupon_id?: string;
304
+ /** @description Number of users in the organization */
305
+ user_count?: number;
306
+ /**
307
+ * Format: email
308
+ * @description Email of the customer
309
+ */
310
+ email?: string;
311
+ /**
312
+ * @description Supported payment processors
313
+ * @enum {string}
314
+ */
315
+ payment_processor?: "stripe" | "paypal" | "braintree";
316
+ };
317
+ UpgradeSubscriptionRequest: {
318
+ /**
319
+ * Format: uuid
320
+ * @description Old Plan id that is being changed
321
+ */
322
+ old_plan_id?: string;
323
+ /**
324
+ * Format: uuid
325
+ * @description New Plan id that is being changed to
326
+ */
327
+ new_plan_id?: string;
328
+ };
329
+ CreateSubscriptionResponse: {
330
+ subscription_id?: string;
331
+ clientSecret?: string;
332
+ };
333
+ UpdateUsersRequest: {
334
+ /**
335
+ * @description Supported payment processors
336
+ * @enum {string}
337
+ */
338
+ payment_processor?: "stripe" | "paypal" | "braintree";
339
+ };
340
+ CancelSubscriptionRequest: {
341
+ /** @description Subscription ID from the payment processor */
342
+ subscription_id?: string;
343
+ /**
344
+ * @description Supported payment processors
345
+ * @enum {string}
346
+ */
347
+ payment_processor?: "stripe" | "paypal" | "braintree";
348
+ };
349
+ /** @description Payload for webhook events from payment processors */
350
+ WebhookEvent: {
351
+ [key: string]: unknown;
352
+ };
353
+ SubscriptionPage: {
354
+ page: number;
355
+ page_size: number;
356
+ total_count: number;
357
+ subscriptions: {
358
+ /**
359
+ * Format: uuid
360
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
361
+ */
362
+ ID: string;
363
+ /**
364
+ * Format: uuid
365
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
366
+ */
367
+ org_id: string;
368
+ /**
369
+ * Format: uuid
370
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
371
+ */
372
+ plan_id: string;
373
+ plan?: {
374
+ /**
375
+ * Format: uuid
376
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
377
+ */
378
+ id: string;
379
+ /**
380
+ * @description Name of the plan
381
+ * @enum {string}
382
+ */
383
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
384
+ /** @enum {string} */
385
+ cadence: "monthly" | "yearly";
386
+ /** @enum {string} */
387
+ unit: "user" | "free";
388
+ /** @description Minimum number of units required for the plan */
389
+ minimum_units: number;
390
+ /** @description Price per unit of the plan */
391
+ price_per_unit: number;
392
+ /** @enum {string} */
393
+ currency: "usd";
394
+ } & {
395
+ price_id: unknown;
396
+ };
397
+ quantity: number;
398
+ /** Format: date-time */
399
+ start_date?: string;
400
+ /** Format: date-time */
401
+ end_date?: string;
402
+ /**
403
+ * @description Possible statuses of a Stripe subscription.
404
+ * @enum {string}
405
+ */
406
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
407
+ /** Format: date-time */
408
+ created_at?: string;
409
+ /** Format: date-time */
410
+ updated_at?: string;
411
+ /** Format: date-time */
412
+ deleted_at?: string;
413
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
414
+ billing_id: string;
415
+ }[];
416
+ };
417
+ Subscription: {
418
+ /**
419
+ * Format: uuid
420
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
421
+ */
422
+ ID: string;
423
+ /**
424
+ * Format: uuid
425
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
426
+ */
427
+ org_id: string;
428
+ /**
429
+ * Format: uuid
430
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
431
+ */
432
+ plan_id: string;
433
+ plan?: {
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
+ id: string;
439
+ /**
440
+ * @description Name of the plan
441
+ * @enum {string}
442
+ */
443
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
444
+ /** @enum {string} */
445
+ cadence: "monthly" | "yearly";
446
+ /** @enum {string} */
447
+ unit: "user" | "free";
448
+ /** @description Minimum number of units required for the plan */
449
+ minimum_units: number;
450
+ /** @description Price per unit of the plan */
451
+ price_per_unit: number;
452
+ /** @enum {string} */
453
+ currency: "usd";
454
+ } & {
455
+ price_id: unknown;
456
+ };
457
+ quantity: number;
458
+ /** Format: date-time */
459
+ start_date?: string;
460
+ /** Format: date-time */
461
+ end_date?: string;
462
+ /**
463
+ * @description Possible statuses of a Stripe subscription.
464
+ * @enum {string}
465
+ */
466
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
467
+ /** Format: date-time */
468
+ created_at?: string;
469
+ /** Format: date-time */
470
+ updated_at?: string;
471
+ /** Format: date-time */
472
+ deleted_at?: string;
473
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
474
+ billing_id: string;
475
+ };
476
+ /**
477
+ * @description Possible statuses of a Stripe subscription.
478
+ * @enum {string}
479
+ */
480
+ SubscriptionStatus: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
481
+ };
482
+ responses: {
483
+ /** Invalid request body or request param */
484
+ 400: {
485
+ content: {
486
+ "text/plain": string;
487
+ };
488
+ };
489
+ /** Expired JWT token used or insufficient privilege */
490
+ 401: {
491
+ content: {
492
+ "text/plain": string;
493
+ };
494
+ };
495
+ /** Internal server error */
496
+ 500: {
497
+ content: {
498
+ "text/plain": string;
499
+ };
500
+ };
501
+ };
502
+ parameters: {
503
+ /** @description Subscription ID */
504
+ subscriptionId: string;
505
+ /** @description Get responses by page */
506
+ page: string;
507
+ /** @description Get responses by pagesize */
508
+ pagesize: string;
509
+ /** @description Get responses by pagesize (pass all to get all responses) */
510
+ pagesizeWithAll: string;
511
+ /** @description Get ordered responses */
512
+ order: string;
513
+ };
514
+ }
515
+ interface operations {
516
+ /** Returns all subscriptions for the organization */
517
+ getSubscriptions: {
518
+ parameters: {
519
+ query: {
520
+ /** Get responses by page */
521
+ page?: string;
522
+ /** Get responses by pagesize */
523
+ pagesize?: string;
524
+ /** Get ordered responses */
525
+ order?: string;
526
+ /** Filter subscriptions by status */
527
+ status?: string[];
528
+ };
529
+ };
530
+ responses: {
531
+ /** Get subscription response */
532
+ 200: {
533
+ content: {
534
+ "application/json": {
535
+ page: number;
536
+ page_size: number;
537
+ total_count: number;
538
+ subscriptions: {
539
+ /**
540
+ * Format: uuid
541
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
542
+ */
543
+ ID: string;
544
+ /**
545
+ * Format: uuid
546
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
547
+ */
548
+ org_id: string;
549
+ /**
550
+ * Format: uuid
551
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
552
+ */
553
+ plan_id: string;
554
+ plan?: {
555
+ /**
556
+ * Format: uuid
557
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
558
+ */
559
+ id: string;
560
+ /**
561
+ * @description Name of the plan
562
+ * @enum {string}
563
+ */
564
+ name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
565
+ /** @enum {string} */
566
+ cadence: "monthly" | "yearly";
567
+ /** @enum {string} */
568
+ unit: "user" | "free";
569
+ /** @description Minimum number of units required for the plan */
570
+ minimum_units: number;
571
+ /** @description Price per unit of the plan */
572
+ price_per_unit: number;
573
+ /** @enum {string} */
574
+ currency: "usd";
575
+ } & {
576
+ price_id: unknown;
577
+ };
578
+ quantity: number;
579
+ /** Format: date-time */
580
+ start_date?: string;
581
+ /** Format: date-time */
582
+ end_date?: string;
583
+ /**
584
+ * @description Possible statuses of a Stripe subscription.
585
+ * @enum {string}
586
+ */
587
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid";
588
+ /** Format: date-time */
589
+ created_at?: string;
590
+ /** Format: date-time */
591
+ updated_at?: string;
592
+ /** Format: date-time */
593
+ deleted_at?: string;
594
+ /** @description Billing ID of the subscription. This is the ID of the subscription in the billing system. eg Stripe */
595
+ billing_id: string;
596
+ }[];
597
+ };
598
+ };
599
+ };
600
+ /** Invalid request body or request param */
601
+ 400: {
602
+ content: {
603
+ "text/plain": string;
604
+ };
605
+ };
606
+ /** Expired JWT token used or insufficient privilege */
607
+ 401: {
608
+ content: {
609
+ "text/plain": string;
610
+ };
611
+ };
612
+ /** Internal server error */
613
+ 500: {
614
+ content: {
615
+ "text/plain": string;
616
+ };
617
+ };
618
+ };
619
+ };
620
+ }
621
+ interface external {
622
+ }
623
+
624
+ export type { components, external, operations, paths };