@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
@@ -0,0 +1,127 @@
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 WebhookSecretResponse
20
+ */
21
+ export interface WebhookSecretResponse {
22
+ /**
23
+ * Internal webhook ID
24
+ * @type {string}
25
+ * @memberof WebhookSecretResponse
26
+ */
27
+ id: string;
28
+ /**
29
+ * Stripe webhook endpoint ID
30
+ * @type {string}
31
+ * @memberof WebhookSecretResponse
32
+ */
33
+ stripeId: string;
34
+ /**
35
+ * Webhook endpoint URL
36
+ * @type {string}
37
+ * @memberof WebhookSecretResponse
38
+ */
39
+ url: string;
40
+ /**
41
+ * Webhook signing secret
42
+ * @type {string}
43
+ * @memberof WebhookSecretResponse
44
+ */
45
+ secret: string;
46
+ /**
47
+ * List of subscribed event types
48
+ * @type {Array<string>}
49
+ * @memberof WebhookSecretResponse
50
+ */
51
+ events: Array<string>;
52
+ /**
53
+ * Whether webhook listens to connected account events
54
+ * @type {boolean}
55
+ * @memberof WebhookSecretResponse
56
+ */
57
+ connect: boolean;
58
+ /**
59
+ * Creation timestamp
60
+ * @type {Date}
61
+ * @memberof WebhookSecretResponse
62
+ */
63
+ createdAt?: Date;
64
+ /**
65
+ * Last update timestamp
66
+ * @type {Date}
67
+ * @memberof WebhookSecretResponse
68
+ */
69
+ updatedAt?: Date;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the WebhookSecretResponse interface.
74
+ */
75
+ export function instanceOfWebhookSecretResponse(value: object): value is WebhookSecretResponse {
76
+ if (!('id' in value) || value['id'] === undefined) return false;
77
+ if (!('stripeId' in value) || value['stripeId'] === undefined) return false;
78
+ if (!('url' in value) || value['url'] === undefined) return false;
79
+ if (!('secret' in value) || value['secret'] === undefined) return false;
80
+ if (!('events' in value) || value['events'] === undefined) return false;
81
+ if (!('connect' in value) || value['connect'] === undefined) return false;
82
+ return true;
83
+ }
84
+
85
+ export function WebhookSecretResponseFromJSON(json: any): WebhookSecretResponse {
86
+ return WebhookSecretResponseFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function WebhookSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSecretResponse {
90
+ if (json == null) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'id': json['id'],
96
+ 'stripeId': json['stripe_id'],
97
+ 'url': json['url'],
98
+ 'secret': json['secret'],
99
+ 'events': json['events'],
100
+ 'connect': json['connect'],
101
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
102
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
103
+ };
104
+ }
105
+
106
+ export function WebhookSecretResponseToJSON(json: any): WebhookSecretResponse {
107
+ return WebhookSecretResponseToJSONTyped(json, false);
108
+ }
109
+
110
+ export function WebhookSecretResponseToJSONTyped(value?: WebhookSecretResponse | null, ignoreDiscriminator: boolean = false): any {
111
+ if (value == null) {
112
+ return value;
113
+ }
114
+
115
+ return {
116
+
117
+ 'id': value['id'],
118
+ 'stripe_id': value['stripeId'],
119
+ 'url': value['url'],
120
+ 'secret': value['secret'],
121
+ 'events': value['events'],
122
+ 'connect': value['connect'],
123
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
124
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
125
+ };
126
+ }
127
+
@@ -0,0 +1,74 @@
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
+ import type { WebhookEndpointConfig } from './WebhookEndpointConfig';
17
+ import {
18
+ WebhookEndpointConfigFromJSON,
19
+ WebhookEndpointConfigFromJSONTyped,
20
+ WebhookEndpointConfigToJSON,
21
+ WebhookEndpointConfigToJSONTyped,
22
+ } from './WebhookEndpointConfig';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WebhooksConfigRequest
28
+ */
29
+ export interface WebhooksConfigRequest {
30
+ /**
31
+ * List of webhook endpoint configurations
32
+ * @type {Array<WebhookEndpointConfig>}
33
+ * @memberof WebhooksConfigRequest
34
+ */
35
+ webhooks: Array<WebhookEndpointConfig>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the WebhooksConfigRequest interface.
40
+ */
41
+ export function instanceOfWebhooksConfigRequest(value: object): value is WebhooksConfigRequest {
42
+ if (!('webhooks' in value) || value['webhooks'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function WebhooksConfigRequestFromJSON(json: any): WebhooksConfigRequest {
47
+ return WebhooksConfigRequestFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function WebhooksConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhooksConfigRequest {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'webhooks': ((json['webhooks'] as Array<any>).map(WebhookEndpointConfigFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function WebhooksConfigRequestToJSON(json: any): WebhooksConfigRequest {
61
+ return WebhooksConfigRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function WebhooksConfigRequestToJSONTyped(value?: WebhooksConfigRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'webhooks': ((value['webhooks'] as Array<any>).map(WebhookEndpointConfigToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,74 @@
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
+ import type { WebhookResult } from './WebhookResult';
17
+ import {
18
+ WebhookResultFromJSON,
19
+ WebhookResultFromJSONTyped,
20
+ WebhookResultToJSON,
21
+ WebhookResultToJSONTyped,
22
+ } from './WebhookResult';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WebhooksConfigResponse
28
+ */
29
+ export interface WebhooksConfigResponse {
30
+ /**
31
+ * List of configured webhook endpoints with results
32
+ * @type {Array<WebhookResult>}
33
+ * @memberof WebhooksConfigResponse
34
+ */
35
+ webhooks: Array<WebhookResult>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the WebhooksConfigResponse interface.
40
+ */
41
+ export function instanceOfWebhooksConfigResponse(value: object): value is WebhooksConfigResponse {
42
+ if (!('webhooks' in value) || value['webhooks'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function WebhooksConfigResponseFromJSON(json: any): WebhooksConfigResponse {
47
+ return WebhooksConfigResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function WebhooksConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhooksConfigResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'webhooks': ((json['webhooks'] as Array<any>).map(WebhookResultFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function WebhooksConfigResponseToJSON(json: any): WebhooksConfigResponse {
61
+ return WebhooksConfigResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function WebhooksConfigResponseToJSONTyped(value?: WebhooksConfigResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'webhooks': ((value['webhooks'] as Array<any>).map(WebhookResultToJSON)),
72
+ };
73
+ }
74
+
@@ -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).
@@ -4,6 +4,8 @@ export * from './AcceptInvite200Response';
4
4
  export * from './AcceptInviteRequest';
5
5
  export * from './AcceptInviteResponse';
6
6
  export * from './ActiveTenantResponse';
7
+ export * from './AddInvoiceLineItem200Response';
8
+ export * from './AddInvoiceLineItemRequest';
7
9
  export * from './AddSubscription200Response';
8
10
  export * from './AddSubscriptionRequest';
9
11
  export * from './AddSubscriptionResponse';
@@ -21,6 +23,7 @@ export * from './CheckPermissionResponse';
21
23
  export * from './ConfigHistoryItem';
22
24
  export * from './ConfigHistoryPagination';
23
25
  export * from './ConfigHistoryResponse';
26
+ export * from './ConfigureWebhooks200Response';
24
27
  export * from './ConflictResponse';
25
28
  export * from './ConvertStripeIDToConfigID200Response';
26
29
  export * from './CreateCheckout200Response';
@@ -29,6 +32,8 @@ export * from './CreateCheckoutResponse';
29
32
  export * from './CreateCustomerPortal200Response';
30
33
  export * from './CreateEmailTemplateRequest';
31
34
  export * from './CreateInvite200Response';
35
+ export * from './CreateInvoice200Response';
36
+ export * from './CreateInvoiceRequest';
32
37
  export * from './CreateOrUpdateEmailTemplate200Response';
33
38
  export * from './CreateOrUpdateEmailTemplate200ResponseAllOfData';
34
39
  export * from './CreatePortalRequest';
@@ -69,19 +74,26 @@ export * from './DownloadRequest';
69
74
  export * from './DownloadResponse';
70
75
  export * from './EmailTemplate';
71
76
  export * from './ErrorResponse';
77
+ export * from './FinalizeInvoiceRequest';
72
78
  export * from './ForbiddenResponse';
73
79
  export * from './GetActiveTenant200Response';
74
80
  export * from './GetEmailTemplates200Response';
75
81
  export * from './GetEmailTemplates200ResponseAllOfData';
76
82
  export * from './GetIdentity200Response';
83
+ export * from './GetMeterByID200Response';
84
+ export * from './GetPriceByID200Response';
85
+ export * from './GetProductByID200Response';
77
86
  export * from './GetRoleDefinitions200Response';
78
87
  export * from './GetSession200Response';
79
88
  export * from './GetStripeConfig200Response';
80
89
  export * from './GetStripeConfigHistory200Response';
81
90
  export * from './GetTenantBillingStatus200Response';
82
91
  export * from './GetTenantJWT200Response';
92
+ export * from './GetWebhookSecret200Response';
83
93
  export * from './InternalServerError';
84
94
  export * from './InternalServerErrorResponse';
95
+ export * from './InvoiceLineItemResponse';
96
+ export * from './InvoiceResponse';
85
97
  export * from './JWTTokenResponse';
86
98
  export * from './KratosIdentity';
87
99
  export * from './KratosIdentityCredentials';
@@ -101,6 +113,7 @@ export * from './MessageResponse';
101
113
  export * from './Meter';
102
114
  export * from './MeterCustomerMapping';
103
115
  export * from './MeterDefaultAggregation';
116
+ export * from './MeterResponse';
104
117
  export * from './MeterValueSettings';
105
118
  export * from './MeterWithStripeID';
106
119
  export * from './MigrationErrorResponse';
@@ -115,9 +128,11 @@ export * from './PerUnitPrice';
115
128
  export * from './Price';
116
129
  export * from './PriceDisplay';
117
130
  export * from './PriceLimit';
131
+ export * from './PriceResponse';
118
132
  export * from './PriceUI';
119
133
  export * from './PriceWithStripeID';
120
134
  export * from './Product';
135
+ export * from './ProductResponse';
121
136
  export * from './ProductUI';
122
137
  export * from './ProductWithStripeIDs';
123
138
  export * from './PullStripeConfig200Response';
@@ -155,6 +170,7 @@ export * from './TieredPrice';
155
170
  export * from './TiersMode';
156
171
  export * from './Unauthorized';
157
172
  export * from './UnauthorizedResponse';
173
+ export * from './UpdateInvoiceRequest';
158
174
  export * from './UpdateRoleRequest';
159
175
  export * from './UpdateTenantUserRole200Response';
160
176
  export * from './UpdateTenantUserRoleRequest';
@@ -164,5 +180,10 @@ export * from './UploadRequest';
164
180
  export * from './UploadResponse';
165
181
  export * from './UsageType';
166
182
  export * from './UserTenantListItem';
183
+ export * from './WebhookEndpointConfig';
184
+ export * from './WebhookResult';
185
+ export * from './WebhookSecretResponse';
186
+ export * from './WebhooksConfigRequest';
187
+ export * from './WebhooksConfigResponse';
167
188
  export * from './WhoAmI200Response';
168
189
  export * from './WhoAmIResponse';
package/src/runtime.ts CHANGED
@@ -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).