@meshery/schemas 1.0.9 → 1.1.0

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