@omnibase/core-js 0.9.17 → 0.10.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 (228) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/README.md +34 -3
  3. package/docs/AddInvoiceLineItem200Response.md +36 -0
  4. package/docs/AddInvoiceLineItemRequest.md +38 -0
  5. package/docs/ConfigureWebhooks200Response.md +36 -0
  6. package/docs/CreateInvoice200Response.md +36 -0
  7. package/docs/CreateInvoiceRequest.md +40 -0
  8. package/docs/FinalizeInvoiceRequest.md +34 -0
  9. package/docs/GetMeterByID200Response.md +36 -0
  10. package/docs/GetPriceByID200Response.md +36 -0
  11. package/docs/GetProductByID200Response.md +36 -0
  12. package/docs/GetWebhookSecret200Response.md +36 -0
  13. package/docs/InvoiceLineItemResponse.md +38 -0
  14. package/docs/InvoiceResponse.md +46 -0
  15. package/docs/MeterResponse.md +34 -0
  16. package/docs/NamespaceDefinition.md +2 -0
  17. package/docs/PriceResponse.md +36 -0
  18. package/docs/ProductResponse.md +34 -0
  19. package/docs/UpdateInvoiceRequest.md +36 -0
  20. package/docs/V1PaymentsApi.md +391 -0
  21. package/docs/V1StripeApi.md +213 -0
  22. package/docs/V1TenantsApi.md +12 -4
  23. package/docs/V1WebhooksApi.md +150 -0
  24. package/docs/WebhookEndpointConfig.md +40 -0
  25. package/docs/WebhookResult.md +46 -0
  26. package/docs/WebhookSecretResponse.md +48 -0
  27. package/docs/WebhooksConfigRequest.md +34 -0
  28. package/docs/WebhooksConfigResponse.md +34 -0
  29. package/package.json +1 -1
  30. package/src/apis/V1AuthApi.ts +2 -2
  31. package/src/apis/V1ConfigurationApi.ts +2 -2
  32. package/src/apis/V1EventsApi.ts +2 -2
  33. package/src/apis/V1PaymentsApi.ts +350 -2
  34. package/src/apis/V1PermissionsApi.ts +2 -2
  35. package/src/apis/V1StorageApi.ts +2 -2
  36. package/src/apis/V1StripeApi.ts +140 -2
  37. package/src/apis/V1TenantsApi.ts +15 -7
  38. package/src/apis/V1WebhooksApi.ts +132 -0
  39. package/src/apis/index.ts +1 -0
  40. package/src/models/AcceptInvite200Response.ts +2 -2
  41. package/src/models/AcceptInviteRequest.ts +2 -2
  42. package/src/models/AcceptInviteResponse.ts +2 -2
  43. package/src/models/ActiveTenantResponse.ts +2 -2
  44. package/src/models/AddInvoiceLineItem200Response.ts +82 -0
  45. package/src/models/AddInvoiceLineItemRequest.ts +94 -0
  46. package/src/models/AddSubscription200Response.ts +2 -2
  47. package/src/models/AddSubscriptionRequest.ts +2 -2
  48. package/src/models/AddSubscriptionResponse.ts +2 -2
  49. package/src/models/ArchiveAllResponse.ts +2 -2
  50. package/src/models/ArchiveAllStripeConfig200Response.ts +2 -2
  51. package/src/models/BadRequest.ts +2 -2
  52. package/src/models/BadRequestResponse.ts +2 -2
  53. package/src/models/BillingInterval.ts +2 -2
  54. package/src/models/BillingStatusResponse.ts +2 -2
  55. package/src/models/CheckPermission200Response.ts +2 -2
  56. package/src/models/CheckPermissionRequest.ts +2 -2
  57. package/src/models/CheckPermissionRequestWithSubjectId.ts +2 -2
  58. package/src/models/CheckPermissionRequestWithSubjectSet.ts +2 -2
  59. package/src/models/CheckPermissionResponse.ts +2 -2
  60. package/src/models/ConfigHistoryItem.ts +2 -2
  61. package/src/models/ConfigHistoryPagination.ts +2 -2
  62. package/src/models/ConfigHistoryResponse.ts +2 -2
  63. package/src/models/ConfigureWebhooks200Response.ts +82 -0
  64. package/src/models/ConflictResponse.ts +2 -2
  65. package/src/models/ConvertStripeIDToConfigID200Response.ts +2 -2
  66. package/src/models/CreateCheckout200Response.ts +2 -2
  67. package/src/models/CreateCheckoutRequest.ts +2 -2
  68. package/src/models/CreateCheckoutResponse.ts +2 -2
  69. package/src/models/CreateCustomerPortal200Response.ts +2 -2
  70. package/src/models/CreateEmailTemplateRequest.ts +2 -2
  71. package/src/models/CreateInvite200Response.ts +2 -2
  72. package/src/models/CreateInvoice200Response.ts +82 -0
  73. package/src/models/CreateInvoiceRequest.ts +100 -0
  74. package/src/models/CreateOrUpdateEmailTemplate200Response.ts +2 -2
  75. package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +2 -2
  76. package/src/models/CreatePortalRequest.ts +2 -2
  77. package/src/models/CreatePortalResponse.ts +2 -2
  78. package/src/models/CreateRelationship200Response.ts +2 -2
  79. package/src/models/CreateRelationshipRequest.ts +2 -2
  80. package/src/models/CreateRelationshipRequestWithSubjectId.ts +2 -2
  81. package/src/models/CreateRelationshipRequestWithSubjectSet.ts +2 -2
  82. package/src/models/CreateRelationshipResponse.ts +2 -2
  83. package/src/models/CreateRole200Response.ts +2 -2
  84. package/src/models/CreateRoleRequest.ts +2 -2
  85. package/src/models/CreateTenant200Response.ts +2 -2
  86. package/src/models/CreateTenantRequest.ts +2 -2
  87. package/src/models/CreateTenantResponse.ts +2 -2
  88. package/src/models/CreateTenantUserInviteRequest.ts +2 -2
  89. package/src/models/CreateTenantUserInviteResponse.ts +2 -2
  90. package/src/models/CreateUser200Response.ts +2 -2
  91. package/src/models/CreateUserRequest.ts +2 -2
  92. package/src/models/CreateUserRequestName.ts +2 -2
  93. package/src/models/CurrencyCode.ts +2 -2
  94. package/src/models/DeleteEmailTemplate200Response.ts +2 -2
  95. package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +2 -2
  96. package/src/models/DeleteObject200Response.ts +2 -2
  97. package/src/models/DeleteObjectRequest.ts +2 -2
  98. package/src/models/DeleteRelationship200Response.ts +2 -2
  99. package/src/models/DeleteRelationshipRequest.ts +2 -2
  100. package/src/models/DeleteRelationshipRequestWithSubjectId.ts +2 -2
  101. package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +2 -2
  102. package/src/models/DeleteRelationshipResponse.ts +2 -2
  103. package/src/models/DeleteRole200Response.ts +2 -2
  104. package/src/models/DeleteRoleResponse.ts +2 -2
  105. package/src/models/DeleteTenant200Response.ts +2 -2
  106. package/src/models/DeleteTenantResponse.ts +2 -2
  107. package/src/models/DeleteTenantUserRequest.ts +2 -2
  108. package/src/models/DeployPermissionNamespaces200Response.ts +2 -2
  109. package/src/models/DownloadFile200Response.ts +2 -2
  110. package/src/models/DownloadRequest.ts +2 -2
  111. package/src/models/DownloadResponse.ts +2 -2
  112. package/src/models/EmailTemplate.ts +2 -2
  113. package/src/models/ErrorResponse.ts +2 -2
  114. package/src/models/FinalizeInvoiceRequest.ts +65 -0
  115. package/src/models/ForbiddenResponse.ts +2 -2
  116. package/src/models/GetActiveTenant200Response.ts +2 -2
  117. package/src/models/GetEmailTemplates200Response.ts +2 -2
  118. package/src/models/GetEmailTemplates200ResponseAllOfData.ts +2 -2
  119. package/src/models/GetIdentity200Response.ts +2 -2
  120. package/src/models/GetMeterByID200Response.ts +82 -0
  121. package/src/models/GetPriceByID200Response.ts +82 -0
  122. package/src/models/GetProductByID200Response.ts +82 -0
  123. package/src/models/GetRoleDefinitions200Response.ts +2 -2
  124. package/src/models/GetSession200Response.ts +2 -2
  125. package/src/models/GetStripeConfig200Response.ts +2 -2
  126. package/src/models/GetStripeConfigHistory200Response.ts +2 -2
  127. package/src/models/GetTenantBillingStatus200Response.ts +2 -2
  128. package/src/models/GetTenantJWT200Response.ts +2 -2
  129. package/src/models/GetWebhookSecret200Response.ts +82 -0
  130. package/src/models/InternalServerError.ts +2 -2
  131. package/src/models/InternalServerErrorResponse.ts +2 -2
  132. package/src/models/InvoiceLineItemResponse.ts +82 -0
  133. package/src/models/InvoiceResponse.ts +115 -0
  134. package/src/models/JWTTokenResponse.ts +2 -2
  135. package/src/models/KratosIdentity.ts +2 -2
  136. package/src/models/KratosIdentityCredentials.ts +2 -2
  137. package/src/models/KratosIdentityCredentialsPassword.ts +2 -2
  138. package/src/models/KratosIdentityRecoveryAddressesInner.ts +2 -2
  139. package/src/models/KratosIdentityTraits.ts +2 -2
  140. package/src/models/KratosIdentityTraitsName.ts +2 -2
  141. package/src/models/KratosIdentityVerifiableAddressesInner.ts +2 -2
  142. package/src/models/ListRoles200Response.ts +2 -2
  143. package/src/models/ListTenantSubscriptions200Response.ts +2 -2
  144. package/src/models/ListTenantUsers200Response.ts +2 -2
  145. package/src/models/ListTenants200Response.ts +2 -2
  146. package/src/models/ListTenantsResponse.ts +2 -2
  147. package/src/models/Logout200Response.ts +2 -2
  148. package/src/models/LogoutResponse.ts +2 -2
  149. package/src/models/MessageResponse.ts +2 -2
  150. package/src/models/Meter.ts +2 -2
  151. package/src/models/MeterCustomerMapping.ts +2 -2
  152. package/src/models/MeterDefaultAggregation.ts +2 -2
  153. package/src/models/MeterResponse.ts +74 -0
  154. package/src/models/MeterValueSettings.ts +2 -2
  155. package/src/models/MeterWithStripeID.ts +2 -2
  156. package/src/models/MigrationErrorResponse.ts +2 -2
  157. package/src/models/MigrationSuccessResponse.ts +2 -2
  158. package/src/models/NamespaceDefinition.ts +10 -2
  159. package/src/models/NamespaceDefinitionsResponse.ts +2 -2
  160. package/src/models/NamespaceDeploymentResponse.ts +2 -2
  161. package/src/models/NotFound.ts +2 -2
  162. package/src/models/NotFoundResponse.ts +2 -2
  163. package/src/models/PerUnitBillingScheme.ts +2 -2
  164. package/src/models/PerUnitPrice.ts +2 -2
  165. package/src/models/Price.ts +2 -2
  166. package/src/models/PriceDisplay.ts +2 -2
  167. package/src/models/PriceLimit.ts +2 -2
  168. package/src/models/PriceResponse.ts +90 -0
  169. package/src/models/PriceUI.ts +2 -2
  170. package/src/models/PriceWithStripeID.ts +2 -2
  171. package/src/models/Product.ts +2 -2
  172. package/src/models/ProductResponse.ts +74 -0
  173. package/src/models/ProductUI.ts +2 -2
  174. package/src/models/ProductWithStripeIDs.ts +2 -2
  175. package/src/models/PullStripeConfig200Response.ts +2 -2
  176. package/src/models/RecordUsageRequest.ts +2 -2
  177. package/src/models/Relationship.ts +2 -2
  178. package/src/models/RemoveSubscription200Response.ts +2 -2
  179. package/src/models/RemoveSubscriptionRequest.ts +2 -2
  180. package/src/models/RemoveSubscriptionResponse.ts +2 -2
  181. package/src/models/Role.ts +2 -2
  182. package/src/models/RolesListResponse.ts +2 -2
  183. package/src/models/SchemasConflictResponse.ts +2 -2
  184. package/src/models/SessionResponse.ts +2 -2
  185. package/src/models/StripeConfigResponse.ts +2 -2
  186. package/src/models/StripeConfigUpdateRequest.ts +2 -2
  187. package/src/models/StripeConfigValidateRequest.ts +2 -2
  188. package/src/models/StripeConfiguration.ts +2 -2
  189. package/src/models/StripeConfigurationWithIDs.ts +2 -2
  190. package/src/models/StripeIDConversionResponse.ts +2 -2
  191. package/src/models/SubjectSet.ts +2 -2
  192. package/src/models/SubjectSetRequest.ts +2 -2
  193. package/src/models/SubscriptionResponse.ts +2 -2
  194. package/src/models/SuccessResponse.ts +2 -2
  195. package/src/models/SuccessResponseData.ts +2 -2
  196. package/src/models/SwitchActiveTenant200Response.ts +2 -2
  197. package/src/models/SwitchTenantRequest.ts +2 -2
  198. package/src/models/SwitchTenantResponse.ts +2 -2
  199. package/src/models/Tenant.ts +2 -2
  200. package/src/models/TenantInvite.ts +2 -2
  201. package/src/models/TenantSettings.ts +2 -2
  202. package/src/models/TenantUserResponse.ts +2 -2
  203. package/src/models/Tier.ts +2 -2
  204. package/src/models/TierUpTo.ts +2 -2
  205. package/src/models/TieredBillingScheme.ts +2 -2
  206. package/src/models/TieredPrice.ts +2 -2
  207. package/src/models/TiersMode.ts +2 -2
  208. package/src/models/Unauthorized.ts +2 -2
  209. package/src/models/UnauthorizedResponse.ts +2 -2
  210. package/src/models/UpdateInvoiceRequest.ts +73 -0
  211. package/src/models/UpdateRoleRequest.ts +2 -2
  212. package/src/models/UpdateTenantUserRole200Response.ts +2 -2
  213. package/src/models/UpdateTenantUserRoleRequest.ts +2 -2
  214. package/src/models/UpdateTenantUserRoleResponse.ts +2 -2
  215. package/src/models/UploadFile200Response.ts +2 -2
  216. package/src/models/UploadRequest.ts +2 -2
  217. package/src/models/UploadResponse.ts +2 -2
  218. package/src/models/UsageType.ts +2 -2
  219. package/src/models/UserTenantListItem.ts +2 -2
  220. package/src/models/WebhookEndpointConfig.ts +91 -0
  221. package/src/models/WebhookResult.ts +131 -0
  222. package/src/models/WebhookSecretResponse.ts +127 -0
  223. package/src/models/WebhooksConfigRequest.ts +74 -0
  224. package/src/models/WebhooksConfigResponse.ts +74 -0
  225. package/src/models/WhoAmI200Response.ts +2 -2
  226. package/src/models/WhoAmIResponse.ts +2 -2
  227. package/src/models/index.ts +21 -0
  228. package/src/runtime.ts +2 -2
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,73 @@
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.0
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
+ *
18
+ * @export
19
+ * @interface UpdateInvoiceRequest
20
+ */
21
+ export interface UpdateInvoiceRequest {
22
+ /**
23
+ * Optional description to set on the invoice
24
+ * @type {string}
25
+ * @memberof UpdateInvoiceRequest
26
+ */
27
+ description?: string;
28
+ /**
29
+ * Optional metadata key-value pairs to add
30
+ * @type {{ [key: string]: string; }}
31
+ * @memberof UpdateInvoiceRequest
32
+ */
33
+ metadata?: { [key: string]: string; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UpdateInvoiceRequest interface.
38
+ */
39
+ export function instanceOfUpdateInvoiceRequest(value: object): value is UpdateInvoiceRequest {
40
+ return true;
41
+ }
42
+
43
+ export function UpdateInvoiceRequestFromJSON(json: any): UpdateInvoiceRequest {
44
+ return UpdateInvoiceRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function UpdateInvoiceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInvoiceRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'description': json['description'] == null ? undefined : json['description'],
54
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
55
+ };
56
+ }
57
+
58
+ export function UpdateInvoiceRequestToJSON(json: any): UpdateInvoiceRequest {
59
+ return UpdateInvoiceRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function UpdateInvoiceRequestToJSONTyped(value?: UpdateInvoiceRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'description': value['description'],
70
+ 'metadata': value['metadata'],
71
+ };
72
+ }
73
+
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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 via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
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.9.17
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: support@omnibase.dev
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,91 @@
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.0
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
+ *
18
+ * @export
19
+ * @interface WebhookEndpointConfig
20
+ */
21
+ export interface WebhookEndpointConfig {
22
+ /**
23
+ * Optional unique identifier for the webhook endpoint
24
+ * @type {string}
25
+ * @memberof WebhookEndpointConfig
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Webhook endpoint URL (supports ${VAR} env var interpolation via CLI)
30
+ * @type {string}
31
+ * @memberof WebhookEndpointConfig
32
+ */
33
+ url: string;
34
+ /**
35
+ * List of Stripe event types to subscribe to
36
+ * @type {Array<string>}
37
+ * @memberof WebhookEndpointConfig
38
+ */
39
+ events: Array<string>;
40
+ /**
41
+ * If true, listen to events from connected accounts (Stripe Connect)
42
+ * @type {boolean}
43
+ * @memberof WebhookEndpointConfig
44
+ */
45
+ connect?: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the WebhookEndpointConfig interface.
50
+ */
51
+ export function instanceOfWebhookEndpointConfig(value: object): value is WebhookEndpointConfig {
52
+ if (!('url' in value) || value['url'] === undefined) return false;
53
+ if (!('events' in value) || value['events'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function WebhookEndpointConfigFromJSON(json: any): WebhookEndpointConfig {
58
+ return WebhookEndpointConfigFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function WebhookEndpointConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointConfig {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'id': json['id'] == null ? undefined : json['id'],
68
+ 'url': json['url'],
69
+ 'events': json['events'],
70
+ 'connect': json['connect'] == null ? undefined : json['connect'],
71
+ };
72
+ }
73
+
74
+ export function WebhookEndpointConfigToJSON(json: any): WebhookEndpointConfig {
75
+ return WebhookEndpointConfigToJSONTyped(json, false);
76
+ }
77
+
78
+ export function WebhookEndpointConfigToJSONTyped(value?: WebhookEndpointConfig | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'id': value['id'],
86
+ 'url': value['url'],
87
+ 'events': value['events'],
88
+ 'connect': value['connect'],
89
+ };
90
+ }
91
+
@@ -0,0 +1,131 @@
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.0
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
+ *
18
+ * @export
19
+ * @interface WebhookResult
20
+ */
21
+ export interface WebhookResult {
22
+ /**
23
+ * Internal webhook ID
24
+ * @type {string}
25
+ * @memberof WebhookResult
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Stripe webhook endpoint ID (we_xxx) or managed pseudo ID (wh_managed_xxx)
30
+ * @type {string}
31
+ * @memberof WebhookResult
32
+ */
33
+ stripeId: string;
34
+ /**
35
+ * Webhook endpoint URL
36
+ * @type {string}
37
+ * @memberof WebhookResult
38
+ */
39
+ url: string;
40
+ /**
41
+ * List of subscribed event types
42
+ * @type {Array<string>}
43
+ * @memberof WebhookResult
44
+ */
45
+ events: Array<string>;
46
+ /**
47
+ * Whether webhook listens to connected account events
48
+ * @type {boolean}
49
+ * @memberof WebhookResult
50
+ */
51
+ connect: boolean;
52
+ /**
53
+ * Webhook signing secret for signature verification
54
+ * @type {string}
55
+ * @memberof WebhookResult
56
+ */
57
+ secret: string;
58
+ /**
59
+ * Action performed on the webhook
60
+ * @type {string}
61
+ * @memberof WebhookResult
62
+ */
63
+ action: WebhookResultActionEnum;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const WebhookResultActionEnum = {
71
+ Created: 'created',
72
+ Updated: 'updated',
73
+ Unchanged: 'unchanged'
74
+ } as const;
75
+ export type WebhookResultActionEnum = typeof WebhookResultActionEnum[keyof typeof WebhookResultActionEnum];
76
+
77
+
78
+ /**
79
+ * Check if a given object implements the WebhookResult interface.
80
+ */
81
+ export function instanceOfWebhookResult(value: object): value is WebhookResult {
82
+ if (!('stripeId' in value) || value['stripeId'] === undefined) return false;
83
+ if (!('url' in value) || value['url'] === undefined) return false;
84
+ if (!('events' in value) || value['events'] === undefined) return false;
85
+ if (!('connect' in value) || value['connect'] === undefined) return false;
86
+ if (!('secret' in value) || value['secret'] === undefined) return false;
87
+ if (!('action' in value) || value['action'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function WebhookResultFromJSON(json: any): WebhookResult {
92
+ return WebhookResultFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function WebhookResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookResult {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'] == null ? undefined : json['id'],
102
+ 'stripeId': json['stripe_id'],
103
+ 'url': json['url'],
104
+ 'events': json['events'],
105
+ 'connect': json['connect'],
106
+ 'secret': json['secret'],
107
+ 'action': json['action'],
108
+ };
109
+ }
110
+
111
+ export function WebhookResultToJSON(json: any): WebhookResult {
112
+ return WebhookResultToJSONTyped(json, false);
113
+ }
114
+
115
+ export function WebhookResultToJSONTyped(value?: WebhookResult | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'id': value['id'],
123
+ 'stripe_id': value['stripeId'],
124
+ 'url': value['url'],
125
+ 'events': value['events'],
126
+ 'connect': value['connect'],
127
+ 'secret': value['secret'],
128
+ 'action': value['action'],
129
+ };
130
+ }
131
+