@omnibase/core-js 0.10.2 → 0.12.2

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 (226) hide show
  1. package/.openapi-generator/FILES +16 -2
  2. package/README.md +14 -4
  3. package/docs/AddInvoiceLineItemWithConfigPriceRequest.md +42 -0
  4. package/docs/AddInvoiceLineItemWithPriceIDRequest.md +3 -2
  5. package/docs/AddInvoiceLineItemWithStripePriceRequest.md +42 -0
  6. package/docs/GetTenantByID200Response.md +36 -0
  7. package/docs/GetTenantByIDResponse.md +35 -0
  8. package/docs/GetTenantByStripeCustomerID200Response.md +36 -0
  9. package/docs/GetTenantByStripeCustomerIDResponse.md +35 -0
  10. package/docs/GetTenantSubscription200Response.md +36 -0
  11. package/docs/PullStripeConfig200Response.md +1 -1
  12. package/docs/StripeConfigurationWithIDs.md +2 -0
  13. package/docs/TooManyRequestsResponse.md +37 -0
  14. package/docs/V1AuthApi.md +15 -5
  15. package/docs/V1ConfigurationApi.md +9 -3
  16. package/docs/V1PaymentsApi.md +19 -0
  17. package/docs/V1TenantsApi.md +240 -0
  18. package/docs/V1WebhooksApi.md +2 -1
  19. package/package.json +2 -2
  20. package/src/apis/V1AuthApi.ts +18 -6
  21. package/src/apis/V1ConfigurationApi.ts +13 -1
  22. package/src/apis/V1EventsApi.ts +1 -1
  23. package/src/apis/V1PaymentsApi.ts +7 -1
  24. package/src/apis/V1PermissionsApi.ts +1 -1
  25. package/src/apis/V1StorageApi.ts +1 -1
  26. package/src/apis/V1StripeApi.ts +1 -1
  27. package/src/apis/V1TenantsApi.ts +163 -1
  28. package/src/apis/V1WebhooksApi.ts +4 -1
  29. package/src/models/AcceptInvite200Response.ts +1 -1
  30. package/src/models/AcceptInviteRequest.ts +1 -1
  31. package/src/models/AcceptInviteResponse.ts +1 -1
  32. package/src/models/ActiveTenantResponse.ts +1 -1
  33. package/src/models/AddInvoiceLineItem200Response.ts +1 -1
  34. package/src/models/AddInvoiceLineItemRequest.ts +2 -2
  35. package/src/models/AddInvoiceLineItemWithConfigPriceRequest.ts +111 -0
  36. package/src/models/AddInvoiceLineItemWithPriceIDRequest.ts +38 -80
  37. package/src/models/AddInvoiceLineItemWithStripePriceRequest.ts +111 -0
  38. package/src/models/AddSubscription200Response.ts +1 -1
  39. package/src/models/AddSubscriptionRequest.ts +1 -1
  40. package/src/models/AddSubscriptionResponse.ts +1 -1
  41. package/src/models/ArchiveAllResponse.ts +1 -1
  42. package/src/models/ArchiveAllStripeConfig200Response.ts +1 -1
  43. package/src/models/BadRequest.ts +1 -1
  44. package/src/models/BadRequestResponse.ts +1 -1
  45. package/src/models/BillingInterval.ts +1 -1
  46. package/src/models/BillingStatusResponse.ts +1 -1
  47. package/src/models/CheckPermission200Response.ts +1 -1
  48. package/src/models/CheckPermissionRequest.ts +1 -1
  49. package/src/models/CheckPermissionRequestWithSubjectId.ts +1 -1
  50. package/src/models/CheckPermissionRequestWithSubjectSet.ts +1 -1
  51. package/src/models/CheckPermissionResponse.ts +1 -1
  52. package/src/models/ConfigHistoryItem.ts +1 -1
  53. package/src/models/ConfigHistoryPagination.ts +1 -1
  54. package/src/models/ConfigHistoryResponse.ts +1 -1
  55. package/src/models/ConfigureWebhooks200Response.ts +1 -1
  56. package/src/models/ConflictResponse.ts +1 -1
  57. package/src/models/ConvertStripeIDToConfigID200Response.ts +1 -1
  58. package/src/models/CreateCheckout200Response.ts +1 -1
  59. package/src/models/CreateCheckoutRequest.ts +1 -1
  60. package/src/models/CreateCheckoutResponse.ts +1 -1
  61. package/src/models/CreateCustomerPortal200Response.ts +1 -1
  62. package/src/models/CreateEmailTemplateRequest.ts +1 -1
  63. package/src/models/CreateInvite200Response.ts +1 -1
  64. package/src/models/CreateInvoice200Response.ts +1 -1
  65. package/src/models/CreateInvoiceRequest.ts +2 -2
  66. package/src/models/CreateOrUpdateEmailTemplate200Response.ts +1 -1
  67. package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +1 -1
  68. package/src/models/CreatePortalRequest.ts +1 -1
  69. package/src/models/CreatePortalResponse.ts +1 -1
  70. package/src/models/CreateRelationship200Response.ts +1 -1
  71. package/src/models/CreateRelationshipRequest.ts +1 -1
  72. package/src/models/CreateRelationshipRequestWithSubjectId.ts +1 -1
  73. package/src/models/CreateRelationshipRequestWithSubjectSet.ts +1 -1
  74. package/src/models/CreateRelationshipResponse.ts +1 -1
  75. package/src/models/CreateRole200Response.ts +1 -1
  76. package/src/models/CreateRoleRequest.ts +1 -1
  77. package/src/models/CreateTenant200Response.ts +1 -1
  78. package/src/models/CreateTenantRequest.ts +1 -1
  79. package/src/models/CreateTenantResponse.ts +1 -1
  80. package/src/models/CreateTenantUserInviteRequest.ts +1 -1
  81. package/src/models/CreateTenantUserInviteResponse.ts +1 -1
  82. package/src/models/CreateUser200Response.ts +1 -1
  83. package/src/models/CreateUserRequest.ts +2 -2
  84. package/src/models/CreateUserRequestName.ts +1 -1
  85. package/src/models/CurrencyCode.ts +1 -1
  86. package/src/models/DeleteEmailTemplate200Response.ts +1 -1
  87. package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +1 -1
  88. package/src/models/DeleteObject200Response.ts +1 -1
  89. package/src/models/DeleteObjectRequest.ts +1 -1
  90. package/src/models/DeleteRelationship200Response.ts +1 -1
  91. package/src/models/DeleteRelationshipRequest.ts +1 -1
  92. package/src/models/DeleteRelationshipRequestWithSubjectId.ts +1 -1
  93. package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +1 -1
  94. package/src/models/DeleteRelationshipResponse.ts +1 -1
  95. package/src/models/DeleteRole200Response.ts +1 -1
  96. package/src/models/DeleteRoleResponse.ts +1 -1
  97. package/src/models/DeleteTenant200Response.ts +1 -1
  98. package/src/models/DeleteTenantResponse.ts +1 -1
  99. package/src/models/DeleteTenantUserRequest.ts +1 -1
  100. package/src/models/DeployPermissionNamespaces200Response.ts +1 -1
  101. package/src/models/DownloadFile200Response.ts +1 -1
  102. package/src/models/DownloadRequest.ts +1 -1
  103. package/src/models/DownloadResponse.ts +1 -1
  104. package/src/models/EmailTemplate.ts +1 -1
  105. package/src/models/ErrorResponse.ts +1 -1
  106. package/src/models/FinalizeInvoiceRequest.ts +1 -1
  107. package/src/models/ForbiddenResponse.ts +1 -1
  108. package/src/models/GetActiveTenant200Response.ts +1 -1
  109. package/src/models/GetEmailTemplates200Response.ts +1 -1
  110. package/src/models/GetEmailTemplates200ResponseAllOfData.ts +1 -1
  111. package/src/models/GetIdentity200Response.ts +1 -1
  112. package/src/models/GetMeterByID200Response.ts +1 -1
  113. package/src/models/GetPriceByID200Response.ts +1 -1
  114. package/src/models/GetProductByID200Response.ts +1 -1
  115. package/src/models/GetRoleDefinitions200Response.ts +1 -1
  116. package/src/models/GetSession200Response.ts +1 -1
  117. package/src/models/GetStripeConfig200Response.ts +1 -1
  118. package/src/models/GetStripeConfigHistory200Response.ts +1 -1
  119. package/src/models/GetTenantBillingStatus200Response.ts +1 -1
  120. package/src/models/GetTenantByID200Response.ts +82 -0
  121. package/src/models/GetTenantByIDResponse.ts +74 -0
  122. package/src/models/GetTenantByStripeCustomerID200Response.ts +82 -0
  123. package/src/models/GetTenantByStripeCustomerIDResponse.ts +74 -0
  124. package/src/models/GetTenantJWT200Response.ts +1 -1
  125. package/src/models/GetTenantSubscription200Response.ts +82 -0
  126. package/src/models/GetWebhookSecret200Response.ts +1 -1
  127. package/src/models/InternalServerError.ts +1 -1
  128. package/src/models/InternalServerErrorResponse.ts +1 -1
  129. package/src/models/InvoiceLineItemResponse.ts +1 -1
  130. package/src/models/InvoiceResponse.ts +1 -1
  131. package/src/models/JWTTokenResponse.ts +1 -1
  132. package/src/models/KratosIdentity.ts +1 -1
  133. package/src/models/KratosIdentityCredentials.ts +1 -1
  134. package/src/models/KratosIdentityCredentialsPassword.ts +1 -1
  135. package/src/models/KratosIdentityRecoveryAddressesInner.ts +1 -1
  136. package/src/models/KratosIdentityTraits.ts +1 -1
  137. package/src/models/KratosIdentityTraitsName.ts +1 -1
  138. package/src/models/KratosIdentityVerifiableAddressesInner.ts +1 -1
  139. package/src/models/ListRoles200Response.ts +1 -1
  140. package/src/models/ListTenantSubscriptions200Response.ts +1 -1
  141. package/src/models/ListTenantUsers200Response.ts +1 -1
  142. package/src/models/ListTenants200Response.ts +1 -1
  143. package/src/models/ListTenantsResponse.ts +1 -1
  144. package/src/models/Logout200Response.ts +1 -1
  145. package/src/models/LogoutResponse.ts +1 -1
  146. package/src/models/MessageResponse.ts +1 -1
  147. package/src/models/Meter.ts +1 -1
  148. package/src/models/MeterCustomerMapping.ts +1 -1
  149. package/src/models/MeterDefaultAggregation.ts +1 -1
  150. package/src/models/MeterResponse.ts +1 -1
  151. package/src/models/MeterValueSettings.ts +1 -1
  152. package/src/models/MeterWithStripeID.ts +1 -1
  153. package/src/models/MigrationErrorResponse.ts +1 -1
  154. package/src/models/MigrationSuccessResponse.ts +1 -1
  155. package/src/models/NamespaceDefinition.ts +1 -1
  156. package/src/models/NamespaceDefinitionsResponse.ts +1 -1
  157. package/src/models/NamespaceDeploymentResponse.ts +1 -1
  158. package/src/models/NotFound.ts +1 -1
  159. package/src/models/NotFoundResponse.ts +1 -1
  160. package/src/models/PerUnitBillingScheme.ts +1 -1
  161. package/src/models/PerUnitPrice.ts +1 -1
  162. package/src/models/Price.ts +1 -1
  163. package/src/models/PriceDisplay.ts +1 -1
  164. package/src/models/PriceLimit.ts +1 -1
  165. package/src/models/PriceResponse.ts +1 -1
  166. package/src/models/PriceUI.ts +1 -1
  167. package/src/models/PriceWithStripeID.ts +1 -1
  168. package/src/models/Product.ts +1 -1
  169. package/src/models/ProductResponse.ts +1 -1
  170. package/src/models/ProductUI.ts +1 -1
  171. package/src/models/ProductWithStripeIDs.ts +1 -1
  172. package/src/models/PullStripeConfig200Response.ts +11 -11
  173. package/src/models/RecordUsageRequest.ts +1 -1
  174. package/src/models/Relationship.ts +1 -1
  175. package/src/models/RemoveSubscription200Response.ts +1 -1
  176. package/src/models/RemoveSubscriptionRequest.ts +1 -1
  177. package/src/models/RemoveSubscriptionResponse.ts +1 -1
  178. package/src/models/Role.ts +1 -1
  179. package/src/models/RolesListResponse.ts +1 -1
  180. package/src/models/SchemasConflictResponse.ts +1 -1
  181. package/src/models/SessionResponse.ts +1 -1
  182. package/src/models/StripeConfigResponse.ts +1 -1
  183. package/src/models/StripeConfigUpdateRequest.ts +1 -1
  184. package/src/models/StripeConfigValidateRequest.ts +1 -1
  185. package/src/models/StripeConfigurationWithIDs.ts +16 -1
  186. package/src/models/StripeIDConversionResponse.ts +1 -1
  187. package/src/models/SubjectSet.ts +1 -1
  188. package/src/models/SubjectSetRequest.ts +1 -1
  189. package/src/models/SubscriptionResponse.ts +1 -1
  190. package/src/models/SuccessResponse.ts +2 -2
  191. package/src/models/SuccessResponseData.ts +1 -1
  192. package/src/models/SwitchActiveTenant200Response.ts +1 -1
  193. package/src/models/SwitchTenantRequest.ts +1 -1
  194. package/src/models/SwitchTenantResponse.ts +1 -1
  195. package/src/models/Tenant.ts +1 -1
  196. package/src/models/TenantInvite.ts +1 -1
  197. package/src/models/TenantSettings.ts +1 -1
  198. package/src/models/TenantUserResponse.ts +1 -1
  199. package/src/models/Tier.ts +1 -1
  200. package/src/models/TierUpTo.ts +1 -1
  201. package/src/models/TieredBillingScheme.ts +1 -1
  202. package/src/models/TieredPrice.ts +1 -1
  203. package/src/models/TiersMode.ts +1 -1
  204. package/src/models/TooManyRequestsResponse.ts +75 -0
  205. package/src/models/Unauthorized.ts +1 -1
  206. package/src/models/UnauthorizedResponse.ts +1 -1
  207. package/src/models/UpdateInvoiceRequest.ts +2 -2
  208. package/src/models/UpdateRoleRequest.ts +1 -1
  209. package/src/models/UpdateTenantUserRole200Response.ts +1 -1
  210. package/src/models/UpdateTenantUserRoleRequest.ts +1 -1
  211. package/src/models/UpdateTenantUserRoleResponse.ts +1 -1
  212. package/src/models/UploadFile200Response.ts +1 -1
  213. package/src/models/UploadRequest.ts +1 -1
  214. package/src/models/UploadResponse.ts +1 -1
  215. package/src/models/UsageType.ts +1 -1
  216. package/src/models/UserTenantListItem.ts +1 -1
  217. package/src/models/WebhookEndpointConfig.ts +65 -2
  218. package/src/models/WebhookResult.ts +1 -1
  219. package/src/models/WebhookSecretResponse.ts +1 -1
  220. package/src/models/WebhooksConfigRequest.ts +2 -2
  221. package/src/models/WebhooksConfigResponse.ts +1 -1
  222. package/src/models/WhoAmI200Response.ts +1 -1
  223. package/src/models/WhoAmIResponse.ts +1 -1
  224. package/src/models/index.ts +8 -1
  225. package/src/runtime.ts +1 -1
  226. package/src/models/StripeConfiguration.ts +0 -98
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Omnibase REST API
5
+ * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
+ *
7
+ * The version of the OpenAPI document: 0.12.2
8
+ * Contact: support@omnibase.dev
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Too Many Requests error response (429)
18
+ * @export
19
+ * @interface TooManyRequestsResponse
20
+ */
21
+ export interface TooManyRequestsResponse {
22
+ /**
23
+ * HTTP status code
24
+ * @type {number}
25
+ * @memberof TooManyRequestsResponse
26
+ */
27
+ status: number;
28
+ /**
29
+ * Error message
30
+ * @type {string}
31
+ * @memberof TooManyRequestsResponse
32
+ */
33
+ error: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TooManyRequestsResponse interface.
38
+ */
39
+ export function instanceOfTooManyRequestsResponse(value: object): value is TooManyRequestsResponse {
40
+ if (!('status' in value) || value['status'] === undefined) return false;
41
+ if (!('error' in value) || value['error'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function TooManyRequestsResponseFromJSON(json: any): TooManyRequestsResponse {
46
+ return TooManyRequestsResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TooManyRequestsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TooManyRequestsResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'status': json['status'],
56
+ 'error': json['error'],
57
+ };
58
+ }
59
+
60
+ export function TooManyRequestsResponseToJSON(json: any): TooManyRequestsResponse {
61
+ return TooManyRequestsResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function TooManyRequestsResponseToJSONTyped(value?: TooManyRequestsResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'status': value['status'],
72
+ 'error': value['error'],
73
+ };
74
+ }
75
+
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ export interface UpdateInvoiceRequest {
26
26
  */
27
27
  description?: string;
28
28
  /**
29
- * Optional metadata key-value pairs to add
29
+ * Optional metadata key-value pairs (keys must be alphanumeric/underscore, max 40 chars; values max 500 chars)
30
30
  * @type {{ [key: string]: string; }}
31
31
  * @memberof UpdateInvoiceRequest
32
32
  */
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export interface WebhookEndpointConfig {
36
36
  * @type {Array<string>}
37
37
  * @memberof WebhookEndpointConfig
38
38
  */
39
- events: Array<string>;
39
+ events: Array<WebhookEndpointConfigEventsEnum>;
40
40
  /**
41
41
  * If true, listen to events from connected accounts (Stripe Connect)
42
42
  * @type {boolean}
@@ -45,6 +45,69 @@ export interface WebhookEndpointConfig {
45
45
  connect?: boolean;
46
46
  }
47
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const WebhookEndpointConfigEventsEnum = {
53
+ AccountUpdated: 'account.updated',
54
+ AccountApplicationDeauthorized: 'account.application.deauthorized',
55
+ AccountExternalAccountCreated: 'account.external_account.created',
56
+ AccountExternalAccountUpdated: 'account.external_account.updated',
57
+ AccountExternalAccountDeleted: 'account.external_account.deleted',
58
+ PaymentIntentCreated: 'payment_intent.created',
59
+ PaymentIntentSucceeded: 'payment_intent.succeeded',
60
+ PaymentIntentPaymentFailed: 'payment_intent.payment_failed',
61
+ PaymentIntentCanceled: 'payment_intent.canceled',
62
+ PaymentIntentRequiresAction: 'payment_intent.requires_action',
63
+ ChargeSucceeded: 'charge.succeeded',
64
+ ChargeFailed: 'charge.failed',
65
+ ChargeRefunded: 'charge.refunded',
66
+ ChargeCaptured: 'charge.captured',
67
+ ChargeDisputeCreated: 'charge.dispute.created',
68
+ ChargeDisputeUpdated: 'charge.dispute.updated',
69
+ ChargeDisputeClosed: 'charge.dispute.closed',
70
+ CustomerCreated: 'customer.created',
71
+ CustomerUpdated: 'customer.updated',
72
+ CustomerDeleted: 'customer.deleted',
73
+ CustomerSubscriptionCreated: 'customer.subscription.created',
74
+ CustomerSubscriptionUpdated: 'customer.subscription.updated',
75
+ CustomerSubscriptionDeleted: 'customer.subscription.deleted',
76
+ CustomerSubscriptionTrialWillEnd: 'customer.subscription.trial_will_end',
77
+ CustomerSubscriptionPaused: 'customer.subscription.paused',
78
+ CustomerSubscriptionResumed: 'customer.subscription.resumed',
79
+ InvoiceCreated: 'invoice.created',
80
+ InvoiceFinalized: 'invoice.finalized',
81
+ InvoicePaid: 'invoice.paid',
82
+ InvoicePaymentFailed: 'invoice.payment_failed',
83
+ InvoicePaymentActionRequired: 'invoice.payment_action_required',
84
+ InvoiceUpcoming: 'invoice.upcoming',
85
+ InvoiceMarkedUncollectible: 'invoice.marked_uncollectible',
86
+ InvoiceVoided: 'invoice.voided',
87
+ PayoutCreated: 'payout.created',
88
+ PayoutPaid: 'payout.paid',
89
+ PayoutFailed: 'payout.failed',
90
+ PayoutCanceled: 'payout.canceled',
91
+ ProductCreated: 'product.created',
92
+ ProductUpdated: 'product.updated',
93
+ ProductDeleted: 'product.deleted',
94
+ PriceCreated: 'price.created',
95
+ PriceUpdated: 'price.updated',
96
+ PriceDeleted: 'price.deleted',
97
+ CheckoutSessionCompleted: 'checkout.session.completed',
98
+ CheckoutSessionExpired: 'checkout.session.expired',
99
+ CheckoutSessionAsyncPaymentSucceeded: 'checkout.session.async_payment_succeeded',
100
+ CheckoutSessionAsyncPaymentFailed: 'checkout.session.async_payment_failed',
101
+ RefundCreated: 'refund.created',
102
+ RefundUpdated: 'refund.updated',
103
+ PaymentMethodAttached: 'payment_method.attached',
104
+ PaymentMethodDetached: 'payment_method.detached',
105
+ TransferCreated: 'transfer.created',
106
+ TransferReversed: 'transfer.reversed'
107
+ } as const;
108
+ export type WebhookEndpointConfigEventsEnum = typeof WebhookEndpointConfigEventsEnum[keyof typeof WebhookEndpointConfigEventsEnum];
109
+
110
+
48
111
  /**
49
112
  * Check if a given object implements the WebhookEndpointConfig interface.
50
113
  */
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ import {
28
28
  */
29
29
  export interface WebhooksConfigRequest {
30
30
  /**
31
- * List of webhook endpoint configurations
31
+ * List of webhook endpoint configurations. Each webhook must have a unique URL - duplicate URLs are not allowed.
32
32
  * @type {Array<WebhookEndpointConfig>}
33
33
  * @memberof WebhooksConfigRequest
34
34
  */
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6,7 +6,9 @@ export * from './AcceptInviteResponse';
6
6
  export * from './ActiveTenantResponse';
7
7
  export * from './AddInvoiceLineItem200Response';
8
8
  export * from './AddInvoiceLineItemRequest';
9
+ export * from './AddInvoiceLineItemWithConfigPriceRequest';
9
10
  export * from './AddInvoiceLineItemWithPriceIDRequest';
11
+ export * from './AddInvoiceLineItemWithStripePriceRequest';
10
12
  export * from './AddSubscription200Response';
11
13
  export * from './AddSubscriptionRequest';
12
14
  export * from './AddSubscriptionResponse';
@@ -89,7 +91,12 @@ export * from './GetSession200Response';
89
91
  export * from './GetStripeConfig200Response';
90
92
  export * from './GetStripeConfigHistory200Response';
91
93
  export * from './GetTenantBillingStatus200Response';
94
+ export * from './GetTenantByID200Response';
95
+ export * from './GetTenantByIDResponse';
96
+ export * from './GetTenantByStripeCustomerID200Response';
97
+ export * from './GetTenantByStripeCustomerIDResponse';
92
98
  export * from './GetTenantJWT200Response';
99
+ export * from './GetTenantSubscription200Response';
93
100
  export * from './GetWebhookSecret200Response';
94
101
  export * from './InternalServerError';
95
102
  export * from './InternalServerErrorResponse';
@@ -149,7 +156,6 @@ export * from './SessionResponse';
149
156
  export * from './StripeConfigResponse';
150
157
  export * from './StripeConfigUpdateRequest';
151
158
  export * from './StripeConfigValidateRequest';
152
- export * from './StripeConfiguration';
153
159
  export * from './StripeConfigurationWithIDs';
154
160
  export * from './StripeIDConversionResponse';
155
161
  export * from './SubjectSet';
@@ -169,6 +175,7 @@ export * from './TierUpTo';
169
175
  export * from './TieredBillingScheme';
170
176
  export * from './TieredPrice';
171
177
  export * from './TiersMode';
178
+ export * from './TooManyRequestsResponse';
172
179
  export * from './Unauthorized';
173
180
  export * from './UnauthorizedResponse';
174
181
  export * from './UpdateInvoiceRequest';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Omnibase REST API
5
5
  * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
6
  *
7
- * The version of the OpenAPI document: 0.10.2
7
+ * The version of the OpenAPI document: 0.12.2
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,98 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Omnibase REST API
5
- * Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
6
- *
7
- * The version of the OpenAPI document: 0.10.2
8
- * Contact: support@omnibase.dev
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { Meter } from './Meter';
17
- import {
18
- MeterFromJSON,
19
- MeterFromJSONTyped,
20
- MeterToJSON,
21
- MeterToJSONTyped,
22
- } from './Meter';
23
- import type { Product } from './Product';
24
- import {
25
- ProductFromJSON,
26
- ProductFromJSONTyped,
27
- ProductToJSON,
28
- ProductToJSONTyped,
29
- } from './Product';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface StripeConfiguration
35
- */
36
- export interface StripeConfiguration {
37
- /**
38
- * Configuration version in semantic versioning format
39
- * @type {string}
40
- * @memberof StripeConfiguration
41
- */
42
- version: string;
43
- /**
44
- * List of billing meters for metered pricing (required when any price uses usage_type metered)
45
- * @type {Array<Meter>}
46
- * @memberof StripeConfiguration
47
- */
48
- meters?: Array<Meter>;
49
- /**
50
- * List of products with their prices
51
- * @type {Array<Product>}
52
- * @memberof StripeConfiguration
53
- */
54
- products: Array<Product>;
55
- }
56
-
57
- /**
58
- * Check if a given object implements the StripeConfiguration interface.
59
- */
60
- export function instanceOfStripeConfiguration(value: object): value is StripeConfiguration {
61
- if (!('version' in value) || value['version'] === undefined) return false;
62
- if (!('products' in value) || value['products'] === undefined) return false;
63
- return true;
64
- }
65
-
66
- export function StripeConfigurationFromJSON(json: any): StripeConfiguration {
67
- return StripeConfigurationFromJSONTyped(json, false);
68
- }
69
-
70
- export function StripeConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StripeConfiguration {
71
- if (json == null) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'version': json['version'],
77
- 'meters': json['meters'] == null ? undefined : ((json['meters'] as Array<any>).map(MeterFromJSON)),
78
- 'products': ((json['products'] as Array<any>).map(ProductFromJSON)),
79
- };
80
- }
81
-
82
- export function StripeConfigurationToJSON(json: any): StripeConfiguration {
83
- return StripeConfigurationToJSONTyped(json, false);
84
- }
85
-
86
- export function StripeConfigurationToJSONTyped(value?: StripeConfiguration | null, ignoreDiscriminator: boolean = false): any {
87
- if (value == null) {
88
- return value;
89
- }
90
-
91
- return {
92
-
93
- 'version': value['version'],
94
- 'meters': value['meters'] == null ? undefined : ((value['meters'] as Array<any>).map(MeterToJSON)),
95
- 'products': ((value['products'] as Array<any>).map(ProductToJSON)),
96
- };
97
- }
98
-