@omnibase/core-js 0.9.11 → 0.9.13
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.
- package/.openapi-generator/FILES +10 -4
- package/README.md +10 -6
- package/dist/apis/V1AuthApi.d.ts +1 -1
- package/dist/apis/V1AuthApi.js +1 -1
- package/dist/apis/V1DatabaseApi.d.ts +1 -1
- package/dist/apis/V1DatabaseApi.js +1 -1
- package/dist/apis/V1PaymentsApi.d.ts +2 -15
- package/dist/apis/V1PaymentsApi.js +1 -34
- package/dist/apis/V1PermissionsApi.d.ts +1 -1
- package/dist/apis/V1PermissionsApi.js +1 -1
- package/dist/apis/V1StorageApi.d.ts +1 -1
- package/dist/apis/V1StorageApi.js +1 -1
- package/dist/apis/V1StripeApi.d.ts +1 -1
- package/dist/apis/V1StripeApi.js +1 -1
- package/dist/apis/V1TenantsApi.d.ts +28 -2
- package/dist/apis/V1TenantsApi.js +73 -1
- package/dist/esm/apis/V1AuthApi.d.ts +1 -1
- package/dist/esm/apis/V1AuthApi.js +1 -1
- package/dist/esm/apis/V1DatabaseApi.d.ts +1 -1
- package/dist/esm/apis/V1DatabaseApi.js +1 -1
- package/dist/esm/apis/V1PaymentsApi.d.ts +2 -15
- package/dist/esm/apis/V1PaymentsApi.js +2 -35
- package/dist/esm/apis/V1PermissionsApi.d.ts +1 -1
- package/dist/esm/apis/V1PermissionsApi.js +1 -1
- package/dist/esm/apis/V1StorageApi.d.ts +1 -1
- package/dist/esm/apis/V1StorageApi.js +1 -1
- package/dist/esm/apis/V1StripeApi.d.ts +1 -1
- package/dist/esm/apis/V1StripeApi.js +1 -1
- package/dist/esm/apis/V1TenantsApi.d.ts +28 -2
- package/dist/esm/apis/V1TenantsApi.js +74 -2
- package/dist/esm/models/AcceptInvite200Response.d.ts +1 -1
- package/dist/esm/models/AcceptInvite200Response.js +1 -1
- package/dist/esm/models/ApiV1StorageDownloadPost200Response.d.ts +1 -1
- package/dist/esm/models/ApiV1StorageDownloadPost200Response.js +1 -1
- package/dist/esm/models/ApiV1StorageObjectDelete200Response.d.ts +1 -1
- package/dist/esm/models/ApiV1StorageObjectDelete200Response.js +1 -1
- package/dist/esm/models/ApiV1StorageUploadPost200Response.d.ts +1 -1
- package/dist/esm/models/ApiV1StorageUploadPost200Response.js +1 -1
- package/dist/esm/models/ArchiveAllStripeConfig200Response.d.ts +1 -1
- package/dist/esm/models/ArchiveAllStripeConfig200Response.js +1 -1
- package/dist/esm/models/AssignRole200Response.d.ts +1 -1
- package/dist/esm/models/AssignRole200Response.js +1 -1
- package/dist/esm/models/CheckPermission200Response.d.ts +1 -1
- package/dist/esm/models/CheckPermission200Response.js +1 -1
- package/dist/esm/models/ClientAuthenticatorAssuranceLevel.d.ts +1 -1
- package/dist/esm/models/ClientAuthenticatorAssuranceLevel.js +1 -1
- package/dist/esm/models/ClientIdentity.d.ts +1 -1
- package/dist/esm/models/ClientIdentity.js +1 -1
- package/dist/esm/models/ClientIdentityCredentials.d.ts +1 -1
- package/dist/esm/models/ClientIdentityCredentials.js +1 -1
- package/dist/esm/models/ClientRecoveryIdentityAddress.d.ts +1 -1
- package/dist/esm/models/ClientRecoveryIdentityAddress.js +1 -1
- package/dist/esm/models/ClientRelationship.d.ts +1 -1
- package/dist/esm/models/ClientRelationship.js +1 -1
- package/dist/esm/models/ClientSession.d.ts +1 -1
- package/dist/esm/models/ClientSession.js +1 -1
- package/dist/esm/models/ClientSessionAuthenticationMethod.d.ts +1 -1
- package/dist/esm/models/ClientSessionAuthenticationMethod.js +1 -1
- package/dist/esm/models/ClientSessionDevice.d.ts +1 -1
- package/dist/esm/models/ClientSessionDevice.js +1 -1
- package/dist/esm/models/ClientSubjectSet.d.ts +1 -1
- package/dist/esm/models/ClientSubjectSet.js +1 -1
- package/dist/esm/models/ClientVerifiableIdentityAddress.d.ts +1 -1
- package/dist/esm/models/ClientVerifiableIdentityAddress.js +1 -1
- package/dist/esm/models/CreateCheckout200Response.d.ts +1 -1
- package/dist/esm/models/CreateCheckout200Response.js +1 -1
- package/dist/esm/models/CreateCustomerPortal200Response.d.ts +1 -1
- package/dist/esm/models/CreateCustomerPortal200Response.js +1 -1
- package/dist/esm/models/CreateInvite200Response.d.ts +1 -1
- package/dist/esm/models/CreateInvite200Response.js +1 -1
- package/dist/esm/models/CreateRelationship200Response.d.ts +1 -1
- package/dist/esm/models/CreateRelationship200Response.js +1 -1
- package/dist/esm/models/CreateRole200Response.d.ts +1 -1
- package/dist/esm/models/CreateRole200Response.js +1 -1
- package/dist/esm/models/CreateSubscription200Response.d.ts +4 -4
- package/dist/esm/models/CreateSubscription200Response.js +4 -4
- package/dist/esm/models/CreateTenant200Response.d.ts +1 -1
- package/dist/esm/models/CreateTenant200Response.js +1 -1
- package/dist/esm/models/DeleteRole200Response.d.ts +1 -1
- package/dist/esm/models/DeleteRole200Response.js +1 -1
- package/dist/esm/models/DeleteTenant200Response.d.ts +1 -1
- package/dist/esm/models/DeleteTenant200Response.js +1 -1
- package/dist/esm/models/DeployPermissionNamespaces200Response.d.ts +1 -1
- package/dist/esm/models/DeployPermissionNamespaces200Response.js +1 -1
- package/dist/esm/models/GetActiveTenant200Response.d.ts +1 -1
- package/dist/esm/models/GetActiveTenant200Response.js +1 -1
- package/dist/esm/models/GetIdentity200Response.d.ts +1 -1
- package/dist/esm/models/GetIdentity200Response.js +1 -1
- package/dist/esm/models/GetRoleDefinitions200Response.d.ts +1 -1
- package/dist/esm/models/GetRoleDefinitions200Response.js +1 -1
- package/dist/esm/models/GetSession200Response.d.ts +1 -1
- package/dist/esm/models/GetSession200Response.js +1 -1
- package/dist/esm/models/GetStripeConfig200Response.d.ts +1 -1
- package/dist/esm/models/GetStripeConfig200Response.js +1 -1
- package/dist/esm/models/GetStripeConfigHistory200Response.d.ts +1 -1
- package/dist/esm/models/GetStripeConfigHistory200Response.js +1 -1
- package/dist/esm/models/GetTenantBillingStatus200Response.d.ts +1 -1
- package/dist/esm/models/GetTenantBillingStatus200Response.js +1 -1
- package/dist/esm/models/GetTenantJWT200Response.d.ts +1 -1
- package/dist/esm/models/GetTenantJWT200Response.js +1 -1
- package/dist/esm/models/HandlersBadRequestResponse.d.ts +1 -1
- package/dist/esm/models/HandlersBadRequestResponse.js +1 -1
- package/dist/esm/models/HandlersForbiddenResponse.d.ts +1 -1
- package/dist/esm/models/HandlersForbiddenResponse.js +1 -1
- package/dist/esm/models/HandlersInternalServerErrorResponse.d.ts +1 -1
- package/dist/esm/models/HandlersInternalServerErrorResponse.js +1 -1
- package/dist/esm/models/HandlersNotFoundErrorResponse.d.ts +1 -1
- package/dist/esm/models/HandlersNotFoundErrorResponse.js +1 -1
- package/dist/esm/models/HandlersSuccessResponse.d.ts +1 -1
- package/dist/esm/models/HandlersSuccessResponse.js +1 -1
- package/dist/esm/models/HandlersUnauthorizedResponse.d.ts +1 -1
- package/dist/esm/models/HandlersUnauthorizedResponse.js +1 -1
- package/dist/esm/models/ListRoles200Response.d.ts +1 -1
- package/dist/esm/models/ListRoles200Response.js +1 -1
- package/dist/esm/models/ListTenantSubscriptions200Response.d.ts +1 -1
- package/dist/esm/models/ListTenantSubscriptions200Response.js +1 -1
- package/dist/esm/models/ListTenantUsers200Response.d.ts +1 -1
- package/dist/esm/models/ListTenantUsers200Response.js +1 -1
- package/dist/esm/models/ListTenants200Response.d.ts +1 -1
- package/dist/esm/models/ListTenants200Response.js +1 -1
- package/dist/esm/models/Logout200Response.d.ts +1 -1
- package/dist/esm/models/Logout200Response.js +1 -1
- package/dist/esm/models/ModelsActiveTenantResponse.d.ts +1 -1
- package/dist/esm/models/ModelsActiveTenantResponse.js +1 -1
- package/dist/esm/models/ModelsBillingStatusResponse.d.ts +1 -1
- package/dist/esm/models/ModelsBillingStatusResponse.js +1 -1
- package/dist/esm/models/ModelsDeleteObjectRequest.d.ts +1 -1
- package/dist/esm/models/ModelsDeleteObjectRequest.js +1 -1
- package/dist/esm/models/ModelsDownloadRequest.d.ts +1 -1
- package/dist/esm/models/ModelsDownloadRequest.js +1 -1
- package/dist/esm/models/ModelsDownloadResponse.d.ts +1 -1
- package/dist/esm/models/ModelsDownloadResponse.js +1 -1
- package/dist/esm/models/ModelsListTenantsResponse.d.ts +1 -1
- package/dist/esm/models/ModelsListTenantsResponse.js +1 -1
- package/dist/esm/models/ModelsLogoutResponse.d.ts +1 -1
- package/dist/esm/models/ModelsLogoutResponse.js +1 -1
- package/dist/esm/models/ModelsMessageResponse.d.ts +1 -1
- package/dist/esm/models/ModelsMessageResponse.js +1 -1
- package/dist/esm/models/ModelsMeter.d.ts +1 -1
- package/dist/esm/models/ModelsMeter.js +1 -1
- package/dist/esm/models/ModelsMeterCustomerMapping.d.ts +1 -1
- package/dist/esm/models/ModelsMeterCustomerMapping.js +1 -1
- package/dist/esm/models/ModelsMeterDefaultAggregation.d.ts +1 -1
- package/dist/esm/models/ModelsMeterDefaultAggregation.js +1 -1
- package/dist/esm/models/ModelsMeterValueSettings.d.ts +1 -1
- package/dist/esm/models/ModelsMeterValueSettings.js +1 -1
- package/dist/esm/models/ModelsMeterWithStripeID.d.ts +1 -1
- package/dist/esm/models/ModelsMeterWithStripeID.js +1 -1
- package/dist/esm/models/ModelsNamespaceDefinition.d.ts +1 -1
- package/dist/esm/models/ModelsNamespaceDefinition.js +1 -1
- package/dist/esm/models/ModelsPrice.d.ts +1 -1
- package/dist/esm/models/ModelsPrice.js +1 -1
- package/dist/esm/models/ModelsPriceDisplay.d.ts +1 -1
- package/dist/esm/models/ModelsPriceDisplay.js +1 -1
- package/dist/esm/models/ModelsPriceLimit.d.ts +1 -1
- package/dist/esm/models/ModelsPriceLimit.js +1 -1
- package/dist/esm/models/ModelsPriceUI.d.ts +1 -1
- package/dist/esm/models/ModelsPriceUI.js +1 -1
- package/dist/esm/models/ModelsPriceWithStripeID.d.ts +1 -1
- package/dist/esm/models/ModelsPriceWithStripeID.js +1 -1
- package/dist/esm/models/ModelsProduct.d.ts +1 -1
- package/dist/esm/models/ModelsProduct.js +1 -1
- package/dist/esm/models/ModelsProductUI.d.ts +1 -1
- package/dist/esm/models/ModelsProductUI.js +1 -1
- package/dist/esm/models/ModelsProductWithStripeIDs.d.ts +1 -1
- package/dist/esm/models/ModelsProductWithStripeIDs.js +1 -1
- package/dist/esm/models/ModelsRole.d.ts +1 -1
- package/dist/esm/models/ModelsRole.js +1 -1
- package/dist/esm/models/ModelsSessionResponse.d.ts +1 -1
- package/dist/esm/models/ModelsSessionResponse.js +1 -1
- package/dist/esm/models/ModelsStripeConfiguration.d.ts +1 -1
- package/dist/esm/models/ModelsStripeConfiguration.js +1 -1
- package/dist/esm/models/ModelsStripeConfigurationWithIDs.d.ts +1 -1
- package/dist/esm/models/ModelsStripeConfigurationWithIDs.js +1 -1
- package/dist/esm/models/ModelsSubscriptionResponse.d.ts +1 -1
- package/dist/esm/models/ModelsSubscriptionResponse.js +1 -1
- package/dist/esm/models/ModelsTenant.d.ts +1 -1
- package/dist/esm/models/ModelsTenant.js +1 -1
- package/dist/esm/models/ModelsTenantInvite.d.ts +1 -1
- package/dist/esm/models/ModelsTenantInvite.js +1 -1
- package/dist/esm/models/ModelsTenantSettings.d.ts +1 -1
- package/dist/esm/models/ModelsTenantSettings.js +1 -1
- package/dist/esm/models/ModelsTier.d.ts +1 -1
- package/dist/esm/models/ModelsTier.js +1 -1
- package/dist/esm/models/ModelsUploadRequest.d.ts +1 -1
- package/dist/esm/models/ModelsUploadRequest.js +1 -1
- package/dist/esm/models/ModelsUploadResponse.d.ts +1 -1
- package/dist/esm/models/ModelsUploadResponse.js +1 -1
- package/dist/esm/models/ModelsUserTenantListItem.d.ts +1 -1
- package/dist/esm/models/ModelsUserTenantListItem.js +1 -1
- package/dist/esm/models/ModelsWhoAmIResponse.d.ts +1 -1
- package/dist/esm/models/ModelsWhoAmIResponse.js +1 -1
- package/dist/esm/models/PullStripeConfig200Response.d.ts +1 -1
- package/dist/esm/models/PullStripeConfig200Response.js +1 -1
- package/dist/esm/models/RemoveSubscription200Response.d.ts +39 -0
- package/dist/esm/models/RemoveSubscription200Response.js +44 -0
- package/dist/esm/models/SwitchActiveTenant200Response.d.ts +1 -1
- package/dist/esm/models/SwitchActiveTenant200Response.js +1 -1
- package/dist/esm/models/TenantsAcceptInviteRequest.d.ts +1 -1
- package/dist/esm/models/TenantsAcceptInviteRequest.js +1 -1
- package/dist/esm/models/TenantsAcceptInviteResponse.d.ts +1 -1
- package/dist/esm/models/TenantsAcceptInviteResponse.js +1 -1
- package/dist/esm/models/TenantsAssignRoleRequest.d.ts +1 -1
- package/dist/esm/models/TenantsAssignRoleRequest.js +1 -1
- package/dist/esm/models/TenantsAssignRoleResponse.d.ts +1 -1
- package/dist/esm/models/TenantsAssignRoleResponse.js +1 -1
- package/dist/esm/models/TenantsCreateRoleRequest.d.ts +1 -1
- package/dist/esm/models/TenantsCreateRoleRequest.js +1 -1
- package/dist/esm/models/TenantsCreateSubscriptionRequest.d.ts +38 -0
- package/dist/esm/models/TenantsCreateSubscriptionRequest.js +45 -0
- package/dist/esm/models/TenantsCreateSubscriptionResponse.d.ts +38 -0
- package/dist/esm/models/TenantsCreateSubscriptionResponse.js +43 -0
- package/dist/esm/models/TenantsCreateTenantRequest.d.ts +1 -1
- package/dist/esm/models/TenantsCreateTenantRequest.js +1 -1
- package/dist/esm/models/TenantsCreateTenantResponse.d.ts +1 -1
- package/dist/esm/models/TenantsCreateTenantResponse.js +1 -1
- package/dist/esm/models/TenantsCreateTenantUserInviteRequest.d.ts +1 -1
- package/dist/esm/models/TenantsCreateTenantUserInviteRequest.js +1 -1
- package/dist/esm/models/TenantsCreateTenantUserInviteResponse.d.ts +1 -1
- package/dist/esm/models/TenantsCreateTenantUserInviteResponse.js +1 -1
- package/dist/esm/models/TenantsDeleteRoleResponse.d.ts +1 -1
- package/dist/esm/models/TenantsDeleteRoleResponse.js +1 -1
- package/dist/esm/models/TenantsDeleteTenantResponse.d.ts +1 -1
- package/dist/esm/models/TenantsDeleteTenantResponse.js +1 -1
- package/dist/esm/models/TenantsDeleteTenantUserRequest.d.ts +1 -1
- package/dist/esm/models/TenantsDeleteTenantUserRequest.js +1 -1
- package/dist/esm/models/TenantsJWTTokenResponse.d.ts +1 -1
- package/dist/esm/models/TenantsJWTTokenResponse.js +1 -1
- package/dist/esm/models/TenantsNamespaceDefinitionsResponse.d.ts +1 -1
- package/dist/esm/models/TenantsNamespaceDefinitionsResponse.js +1 -1
- package/dist/esm/models/TenantsRemoveSubscriptionRequest.d.ts +38 -0
- package/dist/esm/models/TenantsRemoveSubscriptionRequest.js +45 -0
- package/dist/esm/models/TenantsRemoveSubscriptionResponse.d.ts +44 -0
- package/dist/esm/models/TenantsRemoveSubscriptionResponse.js +45 -0
- package/dist/esm/models/TenantsRolesListResponse.d.ts +1 -1
- package/dist/esm/models/TenantsRolesListResponse.js +1 -1
- package/dist/esm/models/TenantsSwitchTenantRequest.d.ts +1 -1
- package/dist/esm/models/TenantsSwitchTenantRequest.js +1 -1
- package/dist/esm/models/TenantsSwitchTenantResponse.d.ts +1 -1
- package/dist/esm/models/TenantsSwitchTenantResponse.js +1 -1
- package/dist/esm/models/TenantsTenantUserResponse.d.ts +1 -1
- package/dist/esm/models/TenantsTenantUserResponse.js +1 -1
- package/dist/esm/models/TenantsUpdateRoleRequest.d.ts +1 -1
- package/dist/esm/models/TenantsUpdateRoleRequest.js +1 -1
- package/dist/esm/models/TenantsUpdateTenantUserRoleRequest.d.ts +1 -1
- package/dist/esm/models/TenantsUpdateTenantUserRoleRequest.js +1 -1
- package/dist/esm/models/TenantsUpdateTenantUserRoleResponse.d.ts +1 -1
- package/dist/esm/models/TenantsUpdateTenantUserRoleResponse.js +1 -1
- package/dist/esm/models/UpdateTenantUserRole200Response.d.ts +1 -1
- package/dist/esm/models/UpdateTenantUserRole200Response.js +1 -1
- package/dist/esm/models/V1ArchiveAllResponse.d.ts +1 -1
- package/dist/esm/models/V1ArchiveAllResponse.js +1 -1
- package/dist/esm/models/V1CheckPermissionRequest.d.ts +1 -1
- package/dist/esm/models/V1CheckPermissionRequest.js +1 -1
- package/dist/esm/models/V1CheckPermissionResponse.d.ts +1 -1
- package/dist/esm/models/V1CheckPermissionResponse.js +1 -1
- package/dist/esm/models/V1ConfigHistoryItem.d.ts +1 -1
- package/dist/esm/models/V1ConfigHistoryItem.js +1 -1
- package/dist/esm/models/V1ConfigHistoryPagination.d.ts +1 -1
- package/dist/esm/models/V1ConfigHistoryPagination.js +1 -1
- package/dist/esm/models/V1ConfigHistoryResponse.d.ts +1 -1
- package/dist/esm/models/V1ConfigHistoryResponse.js +1 -1
- package/dist/esm/models/V1CreateCheckoutRequest.d.ts +1 -1
- package/dist/esm/models/V1CreateCheckoutRequest.js +1 -1
- package/dist/esm/models/V1CreateCheckoutResponse.d.ts +1 -1
- package/dist/esm/models/V1CreateCheckoutResponse.js +1 -1
- package/dist/esm/models/V1CreatePortalRequest.d.ts +1 -1
- package/dist/esm/models/V1CreatePortalRequest.js +1 -1
- package/dist/esm/models/V1CreatePortalResponse.d.ts +1 -1
- package/dist/esm/models/V1CreatePortalResponse.js +1 -1
- package/dist/esm/models/V1CreateRelationshipRequest.d.ts +1 -1
- package/dist/esm/models/V1CreateRelationshipRequest.js +1 -1
- package/dist/esm/models/V1CreateRelationshipResponse.d.ts +1 -1
- package/dist/esm/models/V1CreateRelationshipResponse.js +1 -1
- package/dist/esm/models/V1CreateSubscriptionRequest.d.ts +9 -3
- package/dist/esm/models/V1CreateSubscriptionRequest.js +4 -4
- package/dist/esm/models/V1CreateSubscriptionResponse.d.ts +1 -1
- package/dist/esm/models/V1CreateSubscriptionResponse.js +1 -1
- package/dist/esm/models/V1MigrationErrorResponse.d.ts +1 -1
- package/dist/esm/models/V1MigrationErrorResponse.js +1 -1
- package/dist/esm/models/V1MigrationSuccessResponse.d.ts +1 -1
- package/dist/esm/models/V1MigrationSuccessResponse.js +1 -1
- package/dist/esm/models/V1NamespaceDeploymentResponse.d.ts +1 -1
- package/dist/esm/models/V1NamespaceDeploymentResponse.js +1 -1
- package/dist/esm/models/V1RecordUsageRequest.d.ts +1 -1
- package/dist/esm/models/V1RecordUsageRequest.js +1 -1
- package/dist/esm/models/V1StripeConfigResponse.d.ts +1 -1
- package/dist/esm/models/V1StripeConfigResponse.js +1 -1
- package/dist/esm/models/V1SubjectSetRequest.d.ts +1 -1
- package/dist/esm/models/V1SubjectSetRequest.js +1 -1
- package/dist/esm/models/WhoAmI200Response.d.ts +1 -1
- package/dist/esm/models/WhoAmI200Response.js +1 -1
- package/dist/esm/models/index.d.ts +5 -2
- package/dist/esm/models/index.js +5 -2
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AcceptInvite200Response.d.ts +1 -1
- package/dist/models/AcceptInvite200Response.js +1 -1
- package/dist/models/ApiV1StorageDownloadPost200Response.d.ts +1 -1
- package/dist/models/ApiV1StorageDownloadPost200Response.js +1 -1
- package/dist/models/ApiV1StorageObjectDelete200Response.d.ts +1 -1
- package/dist/models/ApiV1StorageObjectDelete200Response.js +1 -1
- package/dist/models/ApiV1StorageUploadPost200Response.d.ts +1 -1
- package/dist/models/ApiV1StorageUploadPost200Response.js +1 -1
- package/dist/models/ArchiveAllStripeConfig200Response.d.ts +1 -1
- package/dist/models/ArchiveAllStripeConfig200Response.js +1 -1
- package/dist/models/AssignRole200Response.d.ts +1 -1
- package/dist/models/AssignRole200Response.js +1 -1
- package/dist/models/CheckPermission200Response.d.ts +1 -1
- package/dist/models/CheckPermission200Response.js +1 -1
- package/dist/models/ClientAuthenticatorAssuranceLevel.d.ts +1 -1
- package/dist/models/ClientAuthenticatorAssuranceLevel.js +1 -1
- package/dist/models/ClientIdentity.d.ts +1 -1
- package/dist/models/ClientIdentity.js +1 -1
- package/dist/models/ClientIdentityCredentials.d.ts +1 -1
- package/dist/models/ClientIdentityCredentials.js +1 -1
- package/dist/models/ClientRecoveryIdentityAddress.d.ts +1 -1
- package/dist/models/ClientRecoveryIdentityAddress.js +1 -1
- package/dist/models/ClientRelationship.d.ts +1 -1
- package/dist/models/ClientRelationship.js +1 -1
- package/dist/models/ClientSession.d.ts +1 -1
- package/dist/models/ClientSession.js +1 -1
- package/dist/models/ClientSessionAuthenticationMethod.d.ts +1 -1
- package/dist/models/ClientSessionAuthenticationMethod.js +1 -1
- package/dist/models/ClientSessionDevice.d.ts +1 -1
- package/dist/models/ClientSessionDevice.js +1 -1
- package/dist/models/ClientSubjectSet.d.ts +1 -1
- package/dist/models/ClientSubjectSet.js +1 -1
- package/dist/models/ClientVerifiableIdentityAddress.d.ts +1 -1
- package/dist/models/ClientVerifiableIdentityAddress.js +1 -1
- package/dist/models/CreateCheckout200Response.d.ts +1 -1
- package/dist/models/CreateCheckout200Response.js +1 -1
- package/dist/models/CreateCustomerPortal200Response.d.ts +1 -1
- package/dist/models/CreateCustomerPortal200Response.js +1 -1
- package/dist/models/CreateInvite200Response.d.ts +1 -1
- package/dist/models/CreateInvite200Response.js +1 -1
- package/dist/models/CreateRelationship200Response.d.ts +1 -1
- package/dist/models/CreateRelationship200Response.js +1 -1
- package/dist/models/CreateRole200Response.d.ts +1 -1
- package/dist/models/CreateRole200Response.js +1 -1
- package/dist/models/CreateSubscription200Response.d.ts +4 -4
- package/dist/models/CreateSubscription200Response.js +4 -4
- package/dist/models/CreateTenant200Response.d.ts +1 -1
- package/dist/models/CreateTenant200Response.js +1 -1
- package/dist/models/DeleteRole200Response.d.ts +1 -1
- package/dist/models/DeleteRole200Response.js +1 -1
- package/dist/models/DeleteTenant200Response.d.ts +1 -1
- package/dist/models/DeleteTenant200Response.js +1 -1
- package/dist/models/DeployPermissionNamespaces200Response.d.ts +1 -1
- package/dist/models/DeployPermissionNamespaces200Response.js +1 -1
- package/dist/models/GetActiveTenant200Response.d.ts +1 -1
- package/dist/models/GetActiveTenant200Response.js +1 -1
- package/dist/models/GetIdentity200Response.d.ts +1 -1
- package/dist/models/GetIdentity200Response.js +1 -1
- package/dist/models/GetRoleDefinitions200Response.d.ts +1 -1
- package/dist/models/GetRoleDefinitions200Response.js +1 -1
- package/dist/models/GetSession200Response.d.ts +1 -1
- package/dist/models/GetSession200Response.js +1 -1
- package/dist/models/GetStripeConfig200Response.d.ts +1 -1
- package/dist/models/GetStripeConfig200Response.js +1 -1
- package/dist/models/GetStripeConfigHistory200Response.d.ts +1 -1
- package/dist/models/GetStripeConfigHistory200Response.js +1 -1
- package/dist/models/GetTenantBillingStatus200Response.d.ts +1 -1
- package/dist/models/GetTenantBillingStatus200Response.js +1 -1
- package/dist/models/GetTenantJWT200Response.d.ts +1 -1
- package/dist/models/GetTenantJWT200Response.js +1 -1
- package/dist/models/HandlersBadRequestResponse.d.ts +1 -1
- package/dist/models/HandlersBadRequestResponse.js +1 -1
- package/dist/models/HandlersForbiddenResponse.d.ts +1 -1
- package/dist/models/HandlersForbiddenResponse.js +1 -1
- package/dist/models/HandlersInternalServerErrorResponse.d.ts +1 -1
- package/dist/models/HandlersInternalServerErrorResponse.js +1 -1
- package/dist/models/HandlersNotFoundErrorResponse.d.ts +1 -1
- package/dist/models/HandlersNotFoundErrorResponse.js +1 -1
- package/dist/models/HandlersSuccessResponse.d.ts +1 -1
- package/dist/models/HandlersSuccessResponse.js +1 -1
- package/dist/models/HandlersUnauthorizedResponse.d.ts +1 -1
- package/dist/models/HandlersUnauthorizedResponse.js +1 -1
- package/dist/models/ListRoles200Response.d.ts +1 -1
- package/dist/models/ListRoles200Response.js +1 -1
- package/dist/models/ListTenantSubscriptions200Response.d.ts +1 -1
- package/dist/models/ListTenantSubscriptions200Response.js +1 -1
- package/dist/models/ListTenantUsers200Response.d.ts +1 -1
- package/dist/models/ListTenantUsers200Response.js +1 -1
- package/dist/models/ListTenants200Response.d.ts +1 -1
- package/dist/models/ListTenants200Response.js +1 -1
- package/dist/models/Logout200Response.d.ts +1 -1
- package/dist/models/Logout200Response.js +1 -1
- package/dist/models/ModelsActiveTenantResponse.d.ts +1 -1
- package/dist/models/ModelsActiveTenantResponse.js +1 -1
- package/dist/models/ModelsBillingStatusResponse.d.ts +1 -1
- package/dist/models/ModelsBillingStatusResponse.js +1 -1
- package/dist/models/ModelsDeleteObjectRequest.d.ts +1 -1
- package/dist/models/ModelsDeleteObjectRequest.js +1 -1
- package/dist/models/ModelsDownloadRequest.d.ts +1 -1
- package/dist/models/ModelsDownloadRequest.js +1 -1
- package/dist/models/ModelsDownloadResponse.d.ts +1 -1
- package/dist/models/ModelsDownloadResponse.js +1 -1
- package/dist/models/ModelsListTenantsResponse.d.ts +1 -1
- package/dist/models/ModelsListTenantsResponse.js +1 -1
- package/dist/models/ModelsLogoutResponse.d.ts +1 -1
- package/dist/models/ModelsLogoutResponse.js +1 -1
- package/dist/models/ModelsMessageResponse.d.ts +1 -1
- package/dist/models/ModelsMessageResponse.js +1 -1
- package/dist/models/ModelsMeter.d.ts +1 -1
- package/dist/models/ModelsMeter.js +1 -1
- package/dist/models/ModelsMeterCustomerMapping.d.ts +1 -1
- package/dist/models/ModelsMeterCustomerMapping.js +1 -1
- package/dist/models/ModelsMeterDefaultAggregation.d.ts +1 -1
- package/dist/models/ModelsMeterDefaultAggregation.js +1 -1
- package/dist/models/ModelsMeterValueSettings.d.ts +1 -1
- package/dist/models/ModelsMeterValueSettings.js +1 -1
- package/dist/models/ModelsMeterWithStripeID.d.ts +1 -1
- package/dist/models/ModelsMeterWithStripeID.js +1 -1
- package/dist/models/ModelsNamespaceDefinition.d.ts +1 -1
- package/dist/models/ModelsNamespaceDefinition.js +1 -1
- package/dist/models/ModelsPrice.d.ts +1 -1
- package/dist/models/ModelsPrice.js +1 -1
- package/dist/models/ModelsPriceDisplay.d.ts +1 -1
- package/dist/models/ModelsPriceDisplay.js +1 -1
- package/dist/models/ModelsPriceLimit.d.ts +1 -1
- package/dist/models/ModelsPriceLimit.js +1 -1
- package/dist/models/ModelsPriceUI.d.ts +1 -1
- package/dist/models/ModelsPriceUI.js +1 -1
- package/dist/models/ModelsPriceWithStripeID.d.ts +1 -1
- package/dist/models/ModelsPriceWithStripeID.js +1 -1
- package/dist/models/ModelsProduct.d.ts +1 -1
- package/dist/models/ModelsProduct.js +1 -1
- package/dist/models/ModelsProductUI.d.ts +1 -1
- package/dist/models/ModelsProductUI.js +1 -1
- package/dist/models/ModelsProductWithStripeIDs.d.ts +1 -1
- package/dist/models/ModelsProductWithStripeIDs.js +1 -1
- package/dist/models/ModelsRole.d.ts +1 -1
- package/dist/models/ModelsRole.js +1 -1
- package/dist/models/ModelsSessionResponse.d.ts +1 -1
- package/dist/models/ModelsSessionResponse.js +1 -1
- package/dist/models/ModelsStripeConfiguration.d.ts +1 -1
- package/dist/models/ModelsStripeConfiguration.js +1 -1
- package/dist/models/ModelsStripeConfigurationWithIDs.d.ts +1 -1
- package/dist/models/ModelsStripeConfigurationWithIDs.js +1 -1
- package/dist/models/ModelsSubscriptionResponse.d.ts +1 -1
- package/dist/models/ModelsSubscriptionResponse.js +1 -1
- package/dist/models/ModelsTenant.d.ts +1 -1
- package/dist/models/ModelsTenant.js +1 -1
- package/dist/models/ModelsTenantInvite.d.ts +1 -1
- package/dist/models/ModelsTenantInvite.js +1 -1
- package/dist/models/ModelsTenantSettings.d.ts +1 -1
- package/dist/models/ModelsTenantSettings.js +1 -1
- package/dist/models/ModelsTier.d.ts +1 -1
- package/dist/models/ModelsTier.js +1 -1
- package/dist/models/ModelsUploadRequest.d.ts +1 -1
- package/dist/models/ModelsUploadRequest.js +1 -1
- package/dist/models/ModelsUploadResponse.d.ts +1 -1
- package/dist/models/ModelsUploadResponse.js +1 -1
- package/dist/models/ModelsUserTenantListItem.d.ts +1 -1
- package/dist/models/ModelsUserTenantListItem.js +1 -1
- package/dist/models/ModelsWhoAmIResponse.d.ts +1 -1
- package/dist/models/ModelsWhoAmIResponse.js +1 -1
- package/dist/models/PullStripeConfig200Response.d.ts +1 -1
- package/dist/models/PullStripeConfig200Response.js +1 -1
- package/dist/models/RemoveSubscription200Response.d.ts +39 -0
- package/dist/models/RemoveSubscription200Response.js +51 -0
- package/dist/models/SwitchActiveTenant200Response.d.ts +1 -1
- package/dist/models/SwitchActiveTenant200Response.js +1 -1
- package/dist/models/TenantsAcceptInviteRequest.d.ts +1 -1
- package/dist/models/TenantsAcceptInviteRequest.js +1 -1
- package/dist/models/TenantsAcceptInviteResponse.d.ts +1 -1
- package/dist/models/TenantsAcceptInviteResponse.js +1 -1
- package/dist/models/TenantsAssignRoleRequest.d.ts +1 -1
- package/dist/models/TenantsAssignRoleRequest.js +1 -1
- package/dist/models/TenantsAssignRoleResponse.d.ts +1 -1
- package/dist/models/TenantsAssignRoleResponse.js +1 -1
- package/dist/models/TenantsCreateRoleRequest.d.ts +1 -1
- package/dist/models/TenantsCreateRoleRequest.js +1 -1
- package/dist/models/TenantsCreateSubscriptionRequest.d.ts +38 -0
- package/dist/models/TenantsCreateSubscriptionRequest.js +52 -0
- package/dist/models/TenantsCreateSubscriptionResponse.d.ts +38 -0
- package/dist/models/TenantsCreateSubscriptionResponse.js +50 -0
- package/dist/models/TenantsCreateTenantRequest.d.ts +1 -1
- package/dist/models/TenantsCreateTenantRequest.js +1 -1
- package/dist/models/TenantsCreateTenantResponse.d.ts +1 -1
- package/dist/models/TenantsCreateTenantResponse.js +1 -1
- package/dist/models/TenantsCreateTenantUserInviteRequest.d.ts +1 -1
- package/dist/models/TenantsCreateTenantUserInviteRequest.js +1 -1
- package/dist/models/TenantsCreateTenantUserInviteResponse.d.ts +1 -1
- package/dist/models/TenantsCreateTenantUserInviteResponse.js +1 -1
- package/dist/models/TenantsDeleteRoleResponse.d.ts +1 -1
- package/dist/models/TenantsDeleteRoleResponse.js +1 -1
- package/dist/models/TenantsDeleteTenantResponse.d.ts +1 -1
- package/dist/models/TenantsDeleteTenantResponse.js +1 -1
- package/dist/models/TenantsDeleteTenantUserRequest.d.ts +1 -1
- package/dist/models/TenantsDeleteTenantUserRequest.js +1 -1
- package/dist/models/TenantsJWTTokenResponse.d.ts +1 -1
- package/dist/models/TenantsJWTTokenResponse.js +1 -1
- package/dist/models/TenantsNamespaceDefinitionsResponse.d.ts +1 -1
- package/dist/models/TenantsNamespaceDefinitionsResponse.js +1 -1
- package/dist/models/TenantsRemoveSubscriptionRequest.d.ts +38 -0
- package/dist/models/TenantsRemoveSubscriptionRequest.js +52 -0
- package/dist/models/TenantsRemoveSubscriptionResponse.d.ts +44 -0
- package/dist/models/TenantsRemoveSubscriptionResponse.js +52 -0
- package/dist/models/TenantsRolesListResponse.d.ts +1 -1
- package/dist/models/TenantsRolesListResponse.js +1 -1
- package/dist/models/TenantsSwitchTenantRequest.d.ts +1 -1
- package/dist/models/TenantsSwitchTenantRequest.js +1 -1
- package/dist/models/TenantsSwitchTenantResponse.d.ts +1 -1
- package/dist/models/TenantsSwitchTenantResponse.js +1 -1
- package/dist/models/TenantsTenantUserResponse.d.ts +1 -1
- package/dist/models/TenantsTenantUserResponse.js +1 -1
- package/dist/models/TenantsUpdateRoleRequest.d.ts +1 -1
- package/dist/models/TenantsUpdateRoleRequest.js +1 -1
- package/dist/models/TenantsUpdateTenantUserRoleRequest.d.ts +1 -1
- package/dist/models/TenantsUpdateTenantUserRoleRequest.js +1 -1
- package/dist/models/TenantsUpdateTenantUserRoleResponse.d.ts +1 -1
- package/dist/models/TenantsUpdateTenantUserRoleResponse.js +1 -1
- package/dist/models/UpdateTenantUserRole200Response.d.ts +1 -1
- package/dist/models/UpdateTenantUserRole200Response.js +1 -1
- package/dist/models/V1ArchiveAllResponse.d.ts +1 -1
- package/dist/models/V1ArchiveAllResponse.js +1 -1
- package/dist/models/V1CheckPermissionRequest.d.ts +1 -1
- package/dist/models/V1CheckPermissionRequest.js +1 -1
- package/dist/models/V1CheckPermissionResponse.d.ts +1 -1
- package/dist/models/V1CheckPermissionResponse.js +1 -1
- package/dist/models/V1ConfigHistoryItem.d.ts +1 -1
- package/dist/models/V1ConfigHistoryItem.js +1 -1
- package/dist/models/V1ConfigHistoryPagination.d.ts +1 -1
- package/dist/models/V1ConfigHistoryPagination.js +1 -1
- package/dist/models/V1ConfigHistoryResponse.d.ts +1 -1
- package/dist/models/V1ConfigHistoryResponse.js +1 -1
- package/dist/models/V1CreateCheckoutRequest.d.ts +1 -1
- package/dist/models/V1CreateCheckoutRequest.js +1 -1
- package/dist/models/V1CreateCheckoutResponse.d.ts +1 -1
- package/dist/models/V1CreateCheckoutResponse.js +1 -1
- package/dist/models/V1CreatePortalRequest.d.ts +1 -1
- package/dist/models/V1CreatePortalRequest.js +1 -1
- package/dist/models/V1CreatePortalResponse.d.ts +1 -1
- package/dist/models/V1CreatePortalResponse.js +1 -1
- package/dist/models/V1CreateRelationshipRequest.d.ts +1 -1
- package/dist/models/V1CreateRelationshipRequest.js +1 -1
- package/dist/models/V1CreateRelationshipResponse.d.ts +1 -1
- package/dist/models/V1CreateRelationshipResponse.js +1 -1
- package/dist/models/V1CreateSubscriptionRequest.d.ts +9 -3
- package/dist/models/V1CreateSubscriptionRequest.js +4 -4
- package/dist/models/V1CreateSubscriptionResponse.d.ts +1 -1
- package/dist/models/V1CreateSubscriptionResponse.js +1 -1
- package/dist/models/V1MigrationErrorResponse.d.ts +1 -1
- package/dist/models/V1MigrationErrorResponse.js +1 -1
- package/dist/models/V1MigrationSuccessResponse.d.ts +1 -1
- package/dist/models/V1MigrationSuccessResponse.js +1 -1
- package/dist/models/V1NamespaceDeploymentResponse.d.ts +1 -1
- package/dist/models/V1NamespaceDeploymentResponse.js +1 -1
- package/dist/models/V1RecordUsageRequest.d.ts +1 -1
- package/dist/models/V1RecordUsageRequest.js +1 -1
- package/dist/models/V1StripeConfigResponse.d.ts +1 -1
- package/dist/models/V1StripeConfigResponse.js +1 -1
- package/dist/models/V1SubjectSetRequest.d.ts +1 -1
- package/dist/models/V1SubjectSetRequest.js +1 -1
- package/dist/models/WhoAmI200Response.d.ts +1 -1
- package/dist/models/WhoAmI200Response.js +1 -1
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +5 -2
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/CreateSubscription200Response.md +1 -1
- package/docs/RemoveSubscription200Response.md +36 -0
- package/docs/TenantsCreateSubscriptionRequest.md +36 -0
- package/docs/TenantsCreateSubscriptionResponse.md +36 -0
- package/docs/TenantsRemoveSubscriptionRequest.md +36 -0
- package/docs/TenantsRemoveSubscriptionResponse.md +38 -0
- package/docs/V1CreateSubscriptionRequest.md +2 -0
- package/docs/V1PaymentsApi.md +0 -70
- package/docs/V1TenantsApi.md +151 -0
- package/package.json +1 -1
- package/src/apis/V1AuthApi.ts +1 -1
- package/src/apis/V1DatabaseApi.ts +1 -1
- package/src/apis/V1PaymentsApi.ts +1 -52
- package/src/apis/V1PermissionsApi.ts +1 -1
- package/src/apis/V1StorageApi.ts +1 -1
- package/src/apis/V1StripeApi.ts +1 -1
- package/src/apis/V1TenantsApi.ts +111 -1
- package/src/models/AcceptInvite200Response.ts +1 -1
- package/src/models/ApiV1StorageDownloadPost200Response.ts +1 -1
- package/src/models/ApiV1StorageObjectDelete200Response.ts +1 -1
- package/src/models/ApiV1StorageUploadPost200Response.ts +1 -1
- package/src/models/ArchiveAllStripeConfig200Response.ts +1 -1
- package/src/models/AssignRole200Response.ts +1 -1
- package/src/models/CheckPermission200Response.ts +1 -1
- package/src/models/ClientAuthenticatorAssuranceLevel.ts +1 -1
- package/src/models/ClientIdentity.ts +1 -1
- package/src/models/ClientIdentityCredentials.ts +1 -1
- package/src/models/ClientRecoveryIdentityAddress.ts +1 -1
- package/src/models/ClientRelationship.ts +1 -1
- package/src/models/ClientSession.ts +1 -1
- package/src/models/ClientSessionAuthenticationMethod.ts +1 -1
- package/src/models/ClientSessionDevice.ts +1 -1
- package/src/models/ClientSubjectSet.ts +1 -1
- package/src/models/ClientVerifiableIdentityAddress.ts +1 -1
- package/src/models/CreateCheckout200Response.ts +1 -1
- package/src/models/CreateCustomerPortal200Response.ts +1 -1
- package/src/models/CreateInvite200Response.ts +1 -1
- package/src/models/CreateRelationship200Response.ts +1 -1
- package/src/models/CreateRole200Response.ts +1 -1
- package/src/models/CreateSubscription200Response.ts +11 -11
- package/src/models/CreateTenant200Response.ts +1 -1
- package/src/models/DeleteRole200Response.ts +1 -1
- package/src/models/DeleteTenant200Response.ts +1 -1
- package/src/models/DeployPermissionNamespaces200Response.ts +1 -1
- package/src/models/GetActiveTenant200Response.ts +1 -1
- package/src/models/GetIdentity200Response.ts +1 -1
- package/src/models/GetRoleDefinitions200Response.ts +1 -1
- package/src/models/GetSession200Response.ts +1 -1
- package/src/models/GetStripeConfig200Response.ts +1 -1
- package/src/models/GetStripeConfigHistory200Response.ts +1 -1
- package/src/models/GetTenantBillingStatus200Response.ts +1 -1
- package/src/models/GetTenantJWT200Response.ts +1 -1
- package/src/models/HandlersBadRequestResponse.ts +1 -1
- package/src/models/HandlersForbiddenResponse.ts +1 -1
- package/src/models/HandlersInternalServerErrorResponse.ts +1 -1
- package/src/models/HandlersNotFoundErrorResponse.ts +1 -1
- package/src/models/HandlersSuccessResponse.ts +1 -1
- package/src/models/HandlersUnauthorizedResponse.ts +1 -1
- package/src/models/ListRoles200Response.ts +1 -1
- package/src/models/ListTenantSubscriptions200Response.ts +1 -1
- package/src/models/ListTenantUsers200Response.ts +1 -1
- package/src/models/ListTenants200Response.ts +1 -1
- package/src/models/Logout200Response.ts +1 -1
- package/src/models/ModelsActiveTenantResponse.ts +1 -1
- package/src/models/ModelsBillingStatusResponse.ts +1 -1
- package/src/models/ModelsDeleteObjectRequest.ts +1 -1
- package/src/models/ModelsDownloadRequest.ts +1 -1
- package/src/models/ModelsDownloadResponse.ts +1 -1
- package/src/models/ModelsListTenantsResponse.ts +1 -1
- package/src/models/ModelsLogoutResponse.ts +1 -1
- package/src/models/ModelsMessageResponse.ts +1 -1
- package/src/models/ModelsMeter.ts +1 -1
- package/src/models/ModelsMeterCustomerMapping.ts +1 -1
- package/src/models/ModelsMeterDefaultAggregation.ts +1 -1
- package/src/models/ModelsMeterValueSettings.ts +1 -1
- package/src/models/ModelsMeterWithStripeID.ts +1 -1
- package/src/models/ModelsNamespaceDefinition.ts +1 -1
- package/src/models/ModelsPrice.ts +1 -1
- package/src/models/ModelsPriceDisplay.ts +1 -1
- package/src/models/ModelsPriceLimit.ts +1 -1
- package/src/models/ModelsPriceUI.ts +1 -1
- package/src/models/ModelsPriceWithStripeID.ts +1 -1
- package/src/models/ModelsProduct.ts +1 -1
- package/src/models/ModelsProductUI.ts +1 -1
- package/src/models/ModelsProductWithStripeIDs.ts +1 -1
- package/src/models/ModelsRole.ts +1 -1
- package/src/models/ModelsSessionResponse.ts +1 -1
- package/src/models/ModelsStripeConfiguration.ts +1 -1
- package/src/models/ModelsStripeConfigurationWithIDs.ts +1 -1
- package/src/models/ModelsSubscriptionResponse.ts +1 -1
- package/src/models/ModelsTenant.ts +1 -1
- package/src/models/ModelsTenantInvite.ts +1 -1
- package/src/models/ModelsTenantSettings.ts +1 -1
- package/src/models/ModelsTier.ts +1 -1
- package/src/models/ModelsUploadRequest.ts +1 -1
- package/src/models/ModelsUploadResponse.ts +1 -1
- package/src/models/ModelsUserTenantListItem.ts +1 -1
- package/src/models/ModelsWhoAmIResponse.ts +1 -1
- package/src/models/PullStripeConfig200Response.ts +1 -1
- package/src/models/RemoveSubscription200Response.ts +81 -0
- package/src/models/SwitchActiveTenant200Response.ts +1 -1
- package/src/models/TenantsAcceptInviteRequest.ts +1 -1
- package/src/models/TenantsAcceptInviteResponse.ts +1 -1
- package/src/models/TenantsAssignRoleRequest.ts +1 -1
- package/src/models/TenantsAssignRoleResponse.ts +1 -1
- package/src/models/TenantsCreateRoleRequest.ts +1 -1
- package/src/models/TenantsCreateSubscriptionRequest.ts +74 -0
- package/src/models/TenantsCreateSubscriptionResponse.ts +73 -0
- package/src/models/TenantsCreateTenantRequest.ts +1 -1
- package/src/models/TenantsCreateTenantResponse.ts +1 -1
- package/src/models/TenantsCreateTenantUserInviteRequest.ts +1 -1
- package/src/models/TenantsCreateTenantUserInviteResponse.ts +1 -1
- package/src/models/TenantsDeleteRoleResponse.ts +1 -1
- package/src/models/TenantsDeleteTenantResponse.ts +1 -1
- package/src/models/TenantsDeleteTenantUserRequest.ts +1 -1
- package/src/models/TenantsJWTTokenResponse.ts +1 -1
- package/src/models/TenantsNamespaceDefinitionsResponse.ts +1 -1
- package/src/models/TenantsRemoveSubscriptionRequest.ts +74 -0
- package/src/models/TenantsRemoveSubscriptionResponse.ts +81 -0
- package/src/models/TenantsRolesListResponse.ts +1 -1
- package/src/models/TenantsSwitchTenantRequest.ts +1 -1
- package/src/models/TenantsSwitchTenantResponse.ts +1 -1
- package/src/models/TenantsTenantUserResponse.ts +1 -1
- package/src/models/TenantsUpdateRoleRequest.ts +1 -1
- package/src/models/TenantsUpdateTenantUserRoleRequest.ts +1 -1
- package/src/models/TenantsUpdateTenantUserRoleResponse.ts +1 -1
- package/src/models/UpdateTenantUserRole200Response.ts +1 -1
- package/src/models/V1ArchiveAllResponse.ts +1 -1
- package/src/models/V1CheckPermissionRequest.ts +1 -1
- package/src/models/V1CheckPermissionResponse.ts +1 -1
- package/src/models/V1ConfigHistoryItem.ts +1 -1
- package/src/models/V1ConfigHistoryPagination.ts +1 -1
- package/src/models/V1ConfigHistoryResponse.ts +1 -1
- package/src/models/V1CreateCheckoutRequest.ts +1 -1
- package/src/models/V1CreateCheckoutResponse.ts +1 -1
- package/src/models/V1CreatePortalRequest.ts +1 -1
- package/src/models/V1CreatePortalResponse.ts +1 -1
- package/src/models/V1CreateRelationshipRequest.ts +1 -1
- package/src/models/V1CreateRelationshipResponse.ts +1 -1
- package/src/models/V1CreateSubscriptionRequest.ts +12 -5
- package/src/models/V1CreateSubscriptionResponse.ts +1 -1
- package/src/models/V1MigrationErrorResponse.ts +1 -1
- package/src/models/V1MigrationSuccessResponse.ts +1 -1
- package/src/models/V1NamespaceDeploymentResponse.ts +1 -1
- package/src/models/V1RecordUsageRequest.ts +1 -1
- package/src/models/V1StripeConfigResponse.ts +1 -1
- package/src/models/V1SubjectSetRequest.ts +1 -1
- package/src/models/WhoAmI200Response.ts +1 -1
- package/src/models/index.ts +5 -2
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -83,12 +83,15 @@ docs/ModelsUploadResponse.md
|
|
|
83
83
|
docs/ModelsUserTenantListItem.md
|
|
84
84
|
docs/ModelsWhoAmIResponse.md
|
|
85
85
|
docs/PullStripeConfig200Response.md
|
|
86
|
+
docs/RemoveSubscription200Response.md
|
|
86
87
|
docs/SwitchActiveTenant200Response.md
|
|
87
88
|
docs/TenantsAcceptInviteRequest.md
|
|
88
89
|
docs/TenantsAcceptInviteResponse.md
|
|
89
90
|
docs/TenantsAssignRoleRequest.md
|
|
90
91
|
docs/TenantsAssignRoleResponse.md
|
|
91
92
|
docs/TenantsCreateRoleRequest.md
|
|
93
|
+
docs/TenantsCreateSubscriptionRequest.md
|
|
94
|
+
docs/TenantsCreateSubscriptionResponse.md
|
|
92
95
|
docs/TenantsCreateTenantRequest.md
|
|
93
96
|
docs/TenantsCreateTenantResponse.md
|
|
94
97
|
docs/TenantsCreateTenantUserInviteRequest.md
|
|
@@ -98,6 +101,8 @@ docs/TenantsDeleteTenantResponse.md
|
|
|
98
101
|
docs/TenantsDeleteTenantUserRequest.md
|
|
99
102
|
docs/TenantsJWTTokenResponse.md
|
|
100
103
|
docs/TenantsNamespaceDefinitionsResponse.md
|
|
104
|
+
docs/TenantsRemoveSubscriptionRequest.md
|
|
105
|
+
docs/TenantsRemoveSubscriptionResponse.md
|
|
101
106
|
docs/TenantsRolesListResponse.md
|
|
102
107
|
docs/TenantsSwitchTenantRequest.md
|
|
103
108
|
docs/TenantsSwitchTenantResponse.md
|
|
@@ -119,8 +124,6 @@ docs/V1CreatePortalRequest.md
|
|
|
119
124
|
docs/V1CreatePortalResponse.md
|
|
120
125
|
docs/V1CreateRelationshipRequest.md
|
|
121
126
|
docs/V1CreateRelationshipResponse.md
|
|
122
|
-
docs/V1CreateSubscriptionRequest.md
|
|
123
|
-
docs/V1CreateSubscriptionResponse.md
|
|
124
127
|
docs/V1DatabaseApi.md
|
|
125
128
|
docs/V1MigrationErrorResponse.md
|
|
126
129
|
docs/V1MigrationSuccessResponse.md
|
|
@@ -226,12 +229,15 @@ src/models/ModelsUploadResponse.ts
|
|
|
226
229
|
src/models/ModelsUserTenantListItem.ts
|
|
227
230
|
src/models/ModelsWhoAmIResponse.ts
|
|
228
231
|
src/models/PullStripeConfig200Response.ts
|
|
232
|
+
src/models/RemoveSubscription200Response.ts
|
|
229
233
|
src/models/SwitchActiveTenant200Response.ts
|
|
230
234
|
src/models/TenantsAcceptInviteRequest.ts
|
|
231
235
|
src/models/TenantsAcceptInviteResponse.ts
|
|
232
236
|
src/models/TenantsAssignRoleRequest.ts
|
|
233
237
|
src/models/TenantsAssignRoleResponse.ts
|
|
234
238
|
src/models/TenantsCreateRoleRequest.ts
|
|
239
|
+
src/models/TenantsCreateSubscriptionRequest.ts
|
|
240
|
+
src/models/TenantsCreateSubscriptionResponse.ts
|
|
235
241
|
src/models/TenantsCreateTenantRequest.ts
|
|
236
242
|
src/models/TenantsCreateTenantResponse.ts
|
|
237
243
|
src/models/TenantsCreateTenantUserInviteRequest.ts
|
|
@@ -241,6 +247,8 @@ src/models/TenantsDeleteTenantResponse.ts
|
|
|
241
247
|
src/models/TenantsDeleteTenantUserRequest.ts
|
|
242
248
|
src/models/TenantsJWTTokenResponse.ts
|
|
243
249
|
src/models/TenantsNamespaceDefinitionsResponse.ts
|
|
250
|
+
src/models/TenantsRemoveSubscriptionRequest.ts
|
|
251
|
+
src/models/TenantsRemoveSubscriptionResponse.ts
|
|
244
252
|
src/models/TenantsRolesListResponse.ts
|
|
245
253
|
src/models/TenantsSwitchTenantRequest.ts
|
|
246
254
|
src/models/TenantsSwitchTenantResponse.ts
|
|
@@ -261,8 +269,6 @@ src/models/V1CreatePortalRequest.ts
|
|
|
261
269
|
src/models/V1CreatePortalResponse.ts
|
|
262
270
|
src/models/V1CreateRelationshipRequest.ts
|
|
263
271
|
src/models/V1CreateRelationshipResponse.ts
|
|
264
|
-
src/models/V1CreateSubscriptionRequest.ts
|
|
265
|
-
src/models/V1CreateSubscriptionResponse.ts
|
|
266
272
|
src/models/V1MigrationErrorResponse.ts
|
|
267
273
|
src/models/V1MigrationSuccessResponse.ts
|
|
268
274
|
src/models/V1NamespaceDeploymentResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @omnibase/core-js@0.9.
|
|
1
|
+
# @omnibase/core-js@0.9.13
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.omnibase.tech API.
|
|
4
4
|
|
|
@@ -58,7 +58,6 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
58
58
|
*V1DatabaseApi* | [**uploadDatabaseMigrations**](docs/V1DatabaseApi.md#uploaddatabasemigrations) | **POST** /api/v1/database/migrations | Upload database migrations
|
|
59
59
|
*V1PaymentsApi* | [**createCheckout**](docs/V1PaymentsApi.md#createcheckout) | **POST** /api/v1/payments/checkout | Create checkout session
|
|
60
60
|
*V1PaymentsApi* | [**createCustomerPortal**](docs/V1PaymentsApi.md#createcustomerportal) | **POST** /api/v1/payments/portal | Create customer portal session
|
|
61
|
-
*V1PaymentsApi* | [**createSubscription**](docs/V1PaymentsApi.md#createsubscription) | **POST** /api/v1/payments/subscription | Create subscription
|
|
62
61
|
*V1PaymentsApi* | [**recordUsage**](docs/V1PaymentsApi.md#recordusage) | **POST** /api/v1/payments/usage | Record metered usage
|
|
63
62
|
*V1PermissionsApi* | [**checkPermission**](docs/V1PermissionsApi.md#checkpermission) | **POST** /api/v1/permissions/check | Check permission
|
|
64
63
|
*V1PermissionsApi* | [**createRelationship**](docs/V1PermissionsApi.md#createrelationship) | **POST** /api/v1/permissions/relationships | Create relationship
|
|
@@ -78,6 +77,7 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
78
77
|
*V1TenantsApi* | [**assignRole**](docs/V1TenantsApi.md#assignrole) | **POST** /api/v1/tenants/roles/assign/{user_id} | Assign role to user
|
|
79
78
|
*V1TenantsApi* | [**createInvite**](docs/V1TenantsApi.md#createinvite) | **POST** /api/v1/tenants/invites | Create tenant invite
|
|
80
79
|
*V1TenantsApi* | [**createRole**](docs/V1TenantsApi.md#createrole) | **POST** /api/v1/tenants/roles | Create role
|
|
80
|
+
*V1TenantsApi* | [**createSubscription**](docs/V1TenantsApi.md#createsubscription) | **POST** /api/v1/payments/subscription | Create subscription
|
|
81
81
|
*V1TenantsApi* | [**createTenant**](docs/V1TenantsApi.md#createtenant) | **POST** /api/v1/tenants | Create tenant
|
|
82
82
|
*V1TenantsApi* | [**deleteRole**](docs/V1TenantsApi.md#deleterole) | **DELETE** /api/v1/tenants/roles/{role_id} | Delete role
|
|
83
83
|
*V1TenantsApi* | [**deleteTenant**](docs/V1TenantsApi.md#deletetenant) | **DELETE** /api/v1/tenants | Delete tenant
|
|
@@ -87,6 +87,7 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
87
87
|
*V1TenantsApi* | [**listRoles**](docs/V1TenantsApi.md#listroles) | **GET** /api/v1/tenants/roles | List roles
|
|
88
88
|
*V1TenantsApi* | [**listTenantSubscriptions**](docs/V1TenantsApi.md#listtenantsubscriptions) | **GET** /api/v1/tenants/subscriptions | Get tenant subscriptions
|
|
89
89
|
*V1TenantsApi* | [**listTenantUsers**](docs/V1TenantsApi.md#listtenantusers) | **GET** /api/v1/tenants/users | Get tenant users
|
|
90
|
+
*V1TenantsApi* | [**removeSubscription**](docs/V1TenantsApi.md#removesubscription) | **DELETE** /api/v1/payments/subscription | Remove subscription
|
|
90
91
|
*V1TenantsApi* | [**removeTenantUser**](docs/V1TenantsApi.md#removetenantuser) | **DELETE** /api/v1/tenants/users | Remove tenant user
|
|
91
92
|
*V1TenantsApi* | [**switchActiveTenant**](docs/V1TenantsApi.md#switchactivetenant) | **PUT** /api/v1/tenants/switch-active | Switch active tenant
|
|
92
93
|
*V1TenantsApi* | [**updateRole**](docs/V1TenantsApi.md#updaterole) | **PUT** /api/v1/tenants/roles/{role_id} | Update role
|
|
@@ -177,12 +178,15 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
177
178
|
- [ModelsUserTenantListItem](docs/ModelsUserTenantListItem.md)
|
|
178
179
|
- [ModelsWhoAmIResponse](docs/ModelsWhoAmIResponse.md)
|
|
179
180
|
- [PullStripeConfig200Response](docs/PullStripeConfig200Response.md)
|
|
181
|
+
- [RemoveSubscription200Response](docs/RemoveSubscription200Response.md)
|
|
180
182
|
- [SwitchActiveTenant200Response](docs/SwitchActiveTenant200Response.md)
|
|
181
183
|
- [TenantsAcceptInviteRequest](docs/TenantsAcceptInviteRequest.md)
|
|
182
184
|
- [TenantsAcceptInviteResponse](docs/TenantsAcceptInviteResponse.md)
|
|
183
185
|
- [TenantsAssignRoleRequest](docs/TenantsAssignRoleRequest.md)
|
|
184
186
|
- [TenantsAssignRoleResponse](docs/TenantsAssignRoleResponse.md)
|
|
185
187
|
- [TenantsCreateRoleRequest](docs/TenantsCreateRoleRequest.md)
|
|
188
|
+
- [TenantsCreateSubscriptionRequest](docs/TenantsCreateSubscriptionRequest.md)
|
|
189
|
+
- [TenantsCreateSubscriptionResponse](docs/TenantsCreateSubscriptionResponse.md)
|
|
186
190
|
- [TenantsCreateTenantRequest](docs/TenantsCreateTenantRequest.md)
|
|
187
191
|
- [TenantsCreateTenantResponse](docs/TenantsCreateTenantResponse.md)
|
|
188
192
|
- [TenantsCreateTenantUserInviteRequest](docs/TenantsCreateTenantUserInviteRequest.md)
|
|
@@ -192,6 +196,8 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
192
196
|
- [TenantsDeleteTenantUserRequest](docs/TenantsDeleteTenantUserRequest.md)
|
|
193
197
|
- [TenantsJWTTokenResponse](docs/TenantsJWTTokenResponse.md)
|
|
194
198
|
- [TenantsNamespaceDefinitionsResponse](docs/TenantsNamespaceDefinitionsResponse.md)
|
|
199
|
+
- [TenantsRemoveSubscriptionRequest](docs/TenantsRemoveSubscriptionRequest.md)
|
|
200
|
+
- [TenantsRemoveSubscriptionResponse](docs/TenantsRemoveSubscriptionResponse.md)
|
|
195
201
|
- [TenantsRolesListResponse](docs/TenantsRolesListResponse.md)
|
|
196
202
|
- [TenantsSwitchTenantRequest](docs/TenantsSwitchTenantRequest.md)
|
|
197
203
|
- [TenantsSwitchTenantResponse](docs/TenantsSwitchTenantResponse.md)
|
|
@@ -212,8 +218,6 @@ All URIs are relative to *http://api.omnibase.tech*
|
|
|
212
218
|
- [V1CreatePortalResponse](docs/V1CreatePortalResponse.md)
|
|
213
219
|
- [V1CreateRelationshipRequest](docs/V1CreateRelationshipRequest.md)
|
|
214
220
|
- [V1CreateRelationshipResponse](docs/V1CreateRelationshipResponse.md)
|
|
215
|
-
- [V1CreateSubscriptionRequest](docs/V1CreateSubscriptionRequest.md)
|
|
216
|
-
- [V1CreateSubscriptionResponse](docs/V1CreateSubscriptionResponse.md)
|
|
217
221
|
- [V1MigrationErrorResponse](docs/V1MigrationErrorResponse.md)
|
|
218
222
|
- [V1MigrationSuccessResponse](docs/V1MigrationSuccessResponse.md)
|
|
219
223
|
- [V1NamespaceDeploymentResponse](docs/V1NamespaceDeploymentResponse.md)
|
|
@@ -247,8 +251,8 @@ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.or
|
|
|
247
251
|
and is automatically generated by the
|
|
248
252
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
249
253
|
|
|
250
|
-
- API version: `0.9.
|
|
251
|
-
- Package version: `0.9.
|
|
254
|
+
- API version: `0.9.13`
|
|
255
|
+
- Package version: `0.9.13`
|
|
252
256
|
- Generator version: `7.17.0`
|
|
253
257
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
254
258
|
|
package/dist/apis/V1AuthApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/V1AuthApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateCheckout200Response, CreateCustomerPortal200Response,
|
|
13
|
+
import type { CreateCheckout200Response, CreateCustomerPortal200Response, HandlersSuccessResponse, V1CreateCheckoutRequest, V1CreatePortalRequest, V1RecordUsageRequest } from '../models/index';
|
|
14
14
|
export interface CreateCheckoutRequest {
|
|
15
15
|
request: V1CreateCheckoutRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateCustomerPortalRequest {
|
|
18
18
|
request: V1CreatePortalRequest;
|
|
19
19
|
}
|
|
20
|
-
export interface CreateSubscriptionRequest {
|
|
21
|
-
request: V1CreateSubscriptionRequest;
|
|
22
|
-
}
|
|
23
20
|
export interface RecordUsageRequest {
|
|
24
21
|
request: V1RecordUsageRequest;
|
|
25
22
|
}
|
|
@@ -47,16 +44,6 @@ export declare class V1PaymentsApi extends runtime.BaseAPI {
|
|
|
47
44
|
* Create customer portal session
|
|
48
45
|
*/
|
|
49
46
|
createCustomerPortal(requestParameters: CreateCustomerPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCustomerPortal200Response>;
|
|
50
|
-
/**
|
|
51
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
52
|
-
* Create subscription
|
|
53
|
-
*/
|
|
54
|
-
createSubscriptionRaw(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSubscription200Response>>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
57
|
-
* Create subscription
|
|
58
|
-
*/
|
|
59
|
-
createSubscription(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSubscription200Response>;
|
|
60
47
|
/**
|
|
61
48
|
* Records a usage event for metered billing. The customer must have an active subscription with metered pricing. ## Authentication Requires JWT token and an associated Stripe customer ID. ## Use Cases - API request metering - Compute time tracking - Storage usage recording - Any metered billing scenario
|
|
62
49
|
* Record metered usage
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -101,39 +101,6 @@ class V1PaymentsApi extends runtime.BaseAPI {
|
|
|
101
101
|
return yield response.value();
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
106
|
-
* Create subscription
|
|
107
|
-
*/
|
|
108
|
-
createSubscriptionRaw(requestParameters, initOverrides) {
|
|
109
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
if (requestParameters['request'] == null) {
|
|
111
|
-
throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createSubscription().');
|
|
112
|
-
}
|
|
113
|
-
const queryParameters = {};
|
|
114
|
-
const headerParameters = {};
|
|
115
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
116
|
-
let urlPath = `/api/v1/payments/subscription`;
|
|
117
|
-
const response = yield this.request({
|
|
118
|
-
path: urlPath,
|
|
119
|
-
method: 'POST',
|
|
120
|
-
headers: headerParameters,
|
|
121
|
-
query: queryParameters,
|
|
122
|
-
body: (0, index_1.V1CreateSubscriptionRequestToJSON)(requestParameters['request']),
|
|
123
|
-
}, initOverrides);
|
|
124
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateSubscription200ResponseFromJSON)(jsonValue));
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
129
|
-
* Create subscription
|
|
130
|
-
*/
|
|
131
|
-
createSubscription(requestParameters, initOverrides) {
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const response = yield this.createSubscriptionRaw(requestParameters, initOverrides);
|
|
134
|
-
return yield response.value();
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
104
|
/**
|
|
138
105
|
* Records a usage event for metered billing. The customer must have an active subscription with metered pricing. ## Authentication Requires JWT token and an associated Stripe customer ID. ## Use Cases - API request metering - Compute time tracking - Storage usage recording - Any metered billing scenario
|
|
139
106
|
* Record metered usage
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/V1StripeApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptInvite200Response, AssignRole200Response, CreateInvite200Response, CreateRole200Response, CreateTenant200Response, DeleteRole200Response, DeleteTenant200Response, GetRoleDefinitions200Response, GetTenantBillingStatus200Response, GetTenantJWT200Response, HandlersSuccessResponse, ListRoles200Response, ListTenantSubscriptions200Response, ListTenantUsers200Response, SwitchActiveTenant200Response, TenantsAcceptInviteRequest, TenantsAssignRoleRequest, TenantsCreateRoleRequest, TenantsCreateTenantRequest, TenantsCreateTenantUserInviteRequest, TenantsDeleteTenantUserRequest, TenantsSwitchTenantRequest, TenantsUpdateRoleRequest, TenantsUpdateTenantUserRoleRequest, UpdateTenantUserRole200Response } from '../models/index';
|
|
13
|
+
import type { AcceptInvite200Response, AssignRole200Response, CreateInvite200Response, CreateRole200Response, CreateSubscription200Response, CreateTenant200Response, DeleteRole200Response, DeleteTenant200Response, GetRoleDefinitions200Response, GetTenantBillingStatus200Response, GetTenantJWT200Response, HandlersSuccessResponse, ListRoles200Response, ListTenantSubscriptions200Response, ListTenantUsers200Response, RemoveSubscription200Response, SwitchActiveTenant200Response, TenantsAcceptInviteRequest, TenantsAssignRoleRequest, TenantsCreateRoleRequest, TenantsCreateSubscriptionRequest, TenantsCreateTenantRequest, TenantsCreateTenantUserInviteRequest, TenantsDeleteTenantUserRequest, TenantsRemoveSubscriptionRequest, TenantsSwitchTenantRequest, TenantsUpdateRoleRequest, TenantsUpdateTenantUserRoleRequest, UpdateTenantUserRole200Response } from '../models/index';
|
|
14
14
|
export interface AcceptInviteRequest {
|
|
15
15
|
request: TenantsAcceptInviteRequest;
|
|
16
16
|
}
|
|
@@ -24,12 +24,18 @@ export interface CreateInviteRequest {
|
|
|
24
24
|
export interface CreateRoleRequest {
|
|
25
25
|
request: TenantsCreateRoleRequest;
|
|
26
26
|
}
|
|
27
|
+
export interface CreateSubscriptionRequest {
|
|
28
|
+
request: TenantsCreateSubscriptionRequest;
|
|
29
|
+
}
|
|
27
30
|
export interface CreateTenantRequest {
|
|
28
31
|
request: TenantsCreateTenantRequest;
|
|
29
32
|
}
|
|
30
33
|
export interface DeleteRoleRequest {
|
|
31
34
|
roleId: string;
|
|
32
35
|
}
|
|
36
|
+
export interface RemoveSubscriptionRequest {
|
|
37
|
+
request: TenantsRemoveSubscriptionRequest;
|
|
38
|
+
}
|
|
33
39
|
export interface RemoveTenantUserRequest {
|
|
34
40
|
request: TenantsDeleteTenantUserRequest;
|
|
35
41
|
}
|
|
@@ -87,6 +93,16 @@ export declare class V1TenantsApi extends runtime.BaseAPI {
|
|
|
87
93
|
* Create role
|
|
88
94
|
*/
|
|
89
95
|
createRole(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateRole200Response>;
|
|
96
|
+
/**
|
|
97
|
+
* Creates a Stripe subscription for the authenticated tenant using the provided plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") that maps to a Stripe price - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Creates the subscription in Stripe with the specified price 4. Returns the subscription ID and status ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
98
|
+
* Create subscription
|
|
99
|
+
*/
|
|
100
|
+
createSubscriptionRaw(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSubscription200Response>>;
|
|
101
|
+
/**
|
|
102
|
+
* Creates a Stripe subscription for the authenticated tenant using the provided plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") that maps to a Stripe price - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Creates the subscription in Stripe with the specified price 4. Returns the subscription ID and status ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
103
|
+
* Create subscription
|
|
104
|
+
*/
|
|
105
|
+
createSubscription(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSubscription200Response>;
|
|
90
106
|
/**
|
|
91
107
|
* Creates a new tenant organization with Stripe customer, sets up owner role, and makes it the active tenant for the creator. ## Authentication Requires JWT token. ## Process 1. Creates Stripe customer (if billing_email provided) 2. Creates tenant in database 3. Sets up default tenant settings 4. Adds creator as owner 5. Assigns owner role with all permissions 6. Sets as active tenant and returns JWT token
|
|
92
108
|
* Create tenant
|
|
@@ -177,6 +193,16 @@ export declare class V1TenantsApi extends runtime.BaseAPI {
|
|
|
177
193
|
* Get tenant users
|
|
178
194
|
*/
|
|
179
195
|
listTenantUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTenantUsers200Response>;
|
|
196
|
+
/**
|
|
197
|
+
* Cancels a Stripe subscription immediately for the authenticated tenant based on the plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") to identify which subscription to cancel - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Finds the active subscription matching the price_id for the customer 4. Cancels the subscription immediately in Stripe 5. Returns the cancellation confirmation ## Notes - The subscription is canceled immediately, not at the end of the billing period - If no matching subscription is found, returns a 404 error - Only active, trialing, or past_due subscriptions can be canceled ## Use Cases - Remove specific service subscriptions from tenant - Downgrade by removing premium features - Stop billing for unused resources
|
|
198
|
+
* Remove subscription
|
|
199
|
+
*/
|
|
200
|
+
removeSubscriptionRaw(requestParameters: RemoveSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveSubscription200Response>>;
|
|
201
|
+
/**
|
|
202
|
+
* Cancels a Stripe subscription immediately for the authenticated tenant based on the plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") to identify which subscription to cancel - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Finds the active subscription matching the price_id for the customer 4. Cancels the subscription immediately in Stripe 5. Returns the cancellation confirmation ## Notes - The subscription is canceled immediately, not at the end of the billing period - If no matching subscription is found, returns a 404 error - Only active, trialing, or past_due subscriptions can be canceled ## Use Cases - Remove specific service subscriptions from tenant - Downgrade by removing premium features - Stop billing for unused resources
|
|
203
|
+
* Remove subscription
|
|
204
|
+
*/
|
|
205
|
+
removeSubscription(requestParameters: RemoveSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveSubscription200Response>;
|
|
180
206
|
/**
|
|
181
207
|
* Removes a user from the tenant and cleans up all associated permissions and Keto relationships. ## Authentication Requires JWT token with `remove_user` permission. ## Restrictions - Cannot remove the last owner (must have at least one owner) - Removing an owner requires `remove_owner_role` permission ## Process 1. Verifies permissions 2. Removes from role\'s user list 3. Deletes all Keto relationships 4. Removes from database 5. Cleans up user\'s tenant state
|
|
182
208
|
* Remove tenant user
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Omnibase REST API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.9.
|
|
8
|
+
* The version of the OpenAPI document: 0.9.13
|
|
9
9
|
* Contact: support@omnibase.dev
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -177,6 +177,42 @@ class V1TenantsApi extends runtime.BaseAPI {
|
|
|
177
177
|
return yield response.value();
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Creates a Stripe subscription for the authenticated tenant using the provided plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") that maps to a Stripe price - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Creates the subscription in Stripe with the specified price 4. Returns the subscription ID and status ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
182
|
+
* Create subscription
|
|
183
|
+
*/
|
|
184
|
+
createSubscriptionRaw(requestParameters, initOverrides) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
if (requestParameters['request'] == null) {
|
|
187
|
+
throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createSubscription().');
|
|
188
|
+
}
|
|
189
|
+
const queryParameters = {};
|
|
190
|
+
const headerParameters = {};
|
|
191
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // BearerAuth authentication
|
|
194
|
+
}
|
|
195
|
+
let urlPath = `/api/v1/payments/subscription`;
|
|
196
|
+
const response = yield this.request({
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'POST',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
body: (0, index_1.TenantsCreateSubscriptionRequestToJSON)(requestParameters['request']),
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateSubscription200ResponseFromJSON)(jsonValue));
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Creates a Stripe subscription for the authenticated tenant using the provided plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") that maps to a Stripe price - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Creates the subscription in Stripe with the specified price 4. Returns the subscription ID and status ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
208
|
+
* Create subscription
|
|
209
|
+
*/
|
|
210
|
+
createSubscription(requestParameters, initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const response = yield this.createSubscriptionRaw(requestParameters, initOverrides);
|
|
213
|
+
return yield response.value();
|
|
214
|
+
});
|
|
215
|
+
}
|
|
180
216
|
/**
|
|
181
217
|
* Creates a new tenant organization with Stripe customer, sets up owner role, and makes it the active tenant for the creator. ## Authentication Requires JWT token. ## Process 1. Creates Stripe customer (if billing_email provided) 2. Creates tenant in database 3. Sets up default tenant settings 4. Adds creator as owner 5. Assigns owner role with all permissions 6. Sets as active tenant and returns JWT token
|
|
182
218
|
* Create tenant
|
|
@@ -465,6 +501,42 @@ class V1TenantsApi extends runtime.BaseAPI {
|
|
|
465
501
|
return yield response.value();
|
|
466
502
|
});
|
|
467
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Cancels a Stripe subscription immediately for the authenticated tenant based on the plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") to identify which subscription to cancel - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Finds the active subscription matching the price_id for the customer 4. Cancels the subscription immediately in Stripe 5. Returns the cancellation confirmation ## Notes - The subscription is canceled immediately, not at the end of the billing period - If no matching subscription is found, returns a 404 error - Only active, trialing, or past_due subscriptions can be canceled ## Use Cases - Remove specific service subscriptions from tenant - Downgrade by removing premium features - Stop billing for unused resources
|
|
506
|
+
* Remove subscription
|
|
507
|
+
*/
|
|
508
|
+
removeSubscriptionRaw(requestParameters, initOverrides) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
if (requestParameters['request'] == null) {
|
|
511
|
+
throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling removeSubscription().');
|
|
512
|
+
}
|
|
513
|
+
const queryParameters = {};
|
|
514
|
+
const headerParameters = {};
|
|
515
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
516
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
517
|
+
headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // BearerAuth authentication
|
|
518
|
+
}
|
|
519
|
+
let urlPath = `/api/v1/payments/subscription`;
|
|
520
|
+
const response = yield this.request({
|
|
521
|
+
path: urlPath,
|
|
522
|
+
method: 'DELETE',
|
|
523
|
+
headers: headerParameters,
|
|
524
|
+
query: queryParameters,
|
|
525
|
+
body: (0, index_1.TenantsRemoveSubscriptionRequestToJSON)(requestParameters['request']),
|
|
526
|
+
}, initOverrides);
|
|
527
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RemoveSubscription200ResponseFromJSON)(jsonValue));
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Cancels a Stripe subscription immediately for the authenticated tenant based on the plan ID. ## Authentication Requires JWT token with tenant context. ## Request Parameters - **plan_id** (required): The configuration item ID (e.g., \"neon_compute_starter\") to identify which subscription to cancel - **stripe_customer_id** (optional): Override tenant\'s Stripe customer ID if needed ## Process Flow 1. Validates the plan_id and maps it to a Stripe price_id via the stripe_id_mappings table 2. Resolves the Stripe customer ID from the authenticated tenant (or uses provided stripe_customer_id) 3. Finds the active subscription matching the price_id for the customer 4. Cancels the subscription immediately in Stripe 5. Returns the cancellation confirmation ## Notes - The subscription is canceled immediately, not at the end of the billing period - If no matching subscription is found, returns a 404 error - Only active, trialing, or past_due subscriptions can be canceled ## Use Cases - Remove specific service subscriptions from tenant - Downgrade by removing premium features - Stop billing for unused resources
|
|
532
|
+
* Remove subscription
|
|
533
|
+
*/
|
|
534
|
+
removeSubscription(requestParameters, initOverrides) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
const response = yield this.removeSubscriptionRaw(requestParameters, initOverrides);
|
|
537
|
+
return yield response.value();
|
|
538
|
+
});
|
|
539
|
+
}
|
|
468
540
|
/**
|
|
469
541
|
* Removes a user from the tenant and cleans up all associated permissions and Keto relationships. ## Authentication Requires JWT token with `remove_user` permission. ## Restrictions - Cannot remove the last owner (must have at least one owner) - Removing an owner requires `remove_owner_role` permission ## Process 1. Verifies permissions 2. Removes from role\'s user list 3. Deletes all Keto relationships 4. Removes from database 5. Cleans up user\'s tenant state
|
|
470
542
|
* Remove tenant user
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* 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 via Ory Keto ## 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.13
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* 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 via Ory Keto ## 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.13
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Omnibase REST API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.9.
|
|
5
|
+
* The version of the OpenAPI document: 0.9.13
|
|
6
6
|
* Contact: support@omnibase.dev
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateCheckout200Response, CreateCustomerPortal200Response,
|
|
13
|
+
import type { CreateCheckout200Response, CreateCustomerPortal200Response, HandlersSuccessResponse, V1CreateCheckoutRequest, V1CreatePortalRequest, V1RecordUsageRequest } from '../models/index';
|
|
14
14
|
export interface CreateCheckoutRequest {
|
|
15
15
|
request: V1CreateCheckoutRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateCustomerPortalRequest {
|
|
18
18
|
request: V1CreatePortalRequest;
|
|
19
19
|
}
|
|
20
|
-
export interface CreateSubscriptionRequest {
|
|
21
|
-
request: V1CreateSubscriptionRequest;
|
|
22
|
-
}
|
|
23
20
|
export interface RecordUsageRequest {
|
|
24
21
|
request: V1RecordUsageRequest;
|
|
25
22
|
}
|
|
@@ -47,16 +44,6 @@ export declare class V1PaymentsApi extends runtime.BaseAPI {
|
|
|
47
44
|
* Create customer portal session
|
|
48
45
|
*/
|
|
49
46
|
createCustomerPortal(requestParameters: CreateCustomerPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCustomerPortal200Response>;
|
|
50
|
-
/**
|
|
51
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
52
|
-
* Create subscription
|
|
53
|
-
*/
|
|
54
|
-
createSubscriptionRaw(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSubscription200Response>>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates a Stripe subscription for a tenant. The tenant must have a valid stripe_customer_id in the database. ## Authentication Requires valid API authentication. ## Use Cases - Subscribe tenant to metered pricing plans - Upgrade/downgrade tenant plans - Enable usage-based billing for resources
|
|
57
|
-
* Create subscription
|
|
58
|
-
*/
|
|
59
|
-
createSubscription(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSubscription200Response>;
|
|
60
47
|
/**
|
|
61
48
|
* Records a usage event for metered billing. The customer must have an active subscription with metered pricing. ## Authentication Requires JWT token and an associated Stripe customer ID. ## Use Cases - API request metering - Compute time tracking - Storage usage recording - Any metered billing scenario
|
|
62
49
|
* Record metered usage
|