@omnibase/core-js 0.9.15 → 0.9.16
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 +254 -210
- package/README.md +174 -141
- package/docs/AcceptInvite200Response.md +2 -2
- package/docs/AcceptInviteRequest.md +35 -0
- package/docs/AcceptInviteResponse.md +39 -0
- package/docs/ActiveTenantResponse.md +35 -0
- package/docs/AddSubscription200Response.md +2 -2
- package/docs/AddSubscriptionRequest.md +37 -0
- package/docs/AddSubscriptionResponse.md +38 -0
- package/docs/ArchiveAllResponse.md +44 -0
- package/docs/ArchiveAllStripeConfig200Response.md +2 -2
- package/docs/BadRequest.md +37 -0
- package/docs/BadRequestResponse.md +37 -0
- package/docs/BillingInterval.md +33 -0
- package/docs/BillingStatusResponse.md +34 -0
- package/docs/CheckPermission200Response.md +2 -2
- package/docs/CheckPermissionRequest.md +43 -0
- package/docs/CheckPermissionRequestOneOf.md +40 -0
- package/docs/CheckPermissionRequestOneOf1.md +40 -0
- package/docs/CheckPermissionResponse.md +35 -0
- package/docs/ConfigHistoryItem.md +44 -0
- package/docs/ConfigHistoryPagination.md +44 -0
- package/docs/ConfigHistoryResponse.md +36 -0
- package/docs/ConflictResponse.md +37 -0
- package/docs/ConvertStripeIDToConfigID200Response.md +2 -2
- package/docs/CreateCheckout200Response.md +2 -2
- package/docs/CreateCheckoutRequest.md +44 -0
- package/docs/CreateCheckoutResponse.md +36 -0
- package/docs/CreateCustomerPortal200Response.md +2 -2
- package/docs/CreateEmailTemplateRequest.md +38 -0
- package/docs/CreateInvite200Response.md +2 -2
- package/docs/CreateOrUpdateEmailTemplate200Response.md +2 -2
- package/docs/CreateOrUpdateEmailTemplate200ResponseAllOfData.md +2 -2
- package/docs/CreatePortalRequest.md +34 -0
- package/docs/CreatePortalResponse.md +34 -0
- package/docs/CreateRelationship200Response.md +2 -2
- package/docs/CreateRelationshipRequest.md +43 -0
- package/docs/CreateRelationshipRequestOneOf.md +40 -0
- package/docs/CreateRelationshipRequestOneOf1.md +40 -0
- package/docs/CreateRelationshipResponse.md +37 -0
- package/docs/CreateRole200Response.md +2 -2
- package/docs/CreateRoleRequest.md +37 -0
- package/docs/CreateTenant200Response.md +2 -2
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateTenantResponse.md +39 -0
- package/docs/CreateTenantUserInviteRequest.md +39 -0
- package/docs/CreateTenantUserInviteResponse.md +37 -0
- package/docs/CreateUser200Response.md +36 -0
- package/docs/CreateUserRequest.md +38 -0
- package/docs/CreateUserRequestName.md +36 -0
- package/docs/CurrencyCode.md +33 -0
- package/docs/DeleteEmailTemplate200Response.md +2 -2
- package/docs/DeleteEmailTemplate200ResponseAllOfData.md +1 -1
- package/docs/DeleteObject200Response.md +36 -0
- package/docs/DeleteObjectRequest.md +34 -0
- package/docs/DeleteRelationship200Response.md +36 -0
- package/docs/DeleteRelationshipRequest.md +43 -0
- package/docs/DeleteRelationshipResponse.md +35 -0
- package/docs/DeleteRole200Response.md +2 -2
- package/docs/DeleteRoleResponse.md +35 -0
- package/docs/DeleteTenant200Response.md +2 -2
- package/docs/DeleteTenantResponse.md +35 -0
- package/docs/DeleteTenantUserRequest.md +35 -0
- package/docs/DeployPermissionNamespaces200Response.md +2 -2
- package/docs/DownloadFile200Response.md +36 -0
- package/docs/DownloadRequest.md +34 -0
- package/docs/DownloadResponse.md +34 -0
- package/docs/EmailTemplate.md +44 -0
- package/docs/ErrorResponse.md +37 -0
- package/docs/ForbiddenResponse.md +37 -0
- package/docs/GetActiveTenant200Response.md +2 -2
- package/docs/GetEmailTemplates200Response.md +2 -2
- package/docs/GetEmailTemplates200ResponseAllOfData.md +2 -2
- package/docs/GetIdentity200Response.md +2 -2
- package/docs/GetRoleDefinitions200Response.md +2 -2
- package/docs/GetSession200Response.md +2 -2
- package/docs/GetStripeConfig200Response.md +2 -2
- package/docs/GetStripeConfigHistory200Response.md +2 -2
- package/docs/GetTenantBillingStatus200Response.md +2 -2
- package/docs/GetTenantJWT200Response.md +2 -2
- package/docs/InternalServerError.md +37 -0
- package/docs/InternalServerErrorResponse.md +37 -0
- package/docs/JWTTokenResponse.md +35 -0
- package/docs/KratosIdentity.md +56 -0
- package/docs/KratosIdentityCredentials.md +35 -0
- package/docs/KratosIdentityCredentialsPassword.md +42 -0
- package/docs/KratosIdentityRecoveryAddressesInner.md +42 -0
- package/docs/KratosIdentityTraits.md +37 -0
- package/docs/KratosIdentityTraitsName.md +36 -0
- package/docs/KratosIdentityVerifiableAddressesInner.md +46 -0
- package/docs/ListRoles200Response.md +2 -2
- package/docs/ListTenantSubscriptions200Response.md +2 -2
- package/docs/ListTenantUsers200Response.md +2 -2
- package/docs/ListTenants200Response.md +2 -2
- package/docs/ListTenantsResponse.md +34 -0
- package/docs/Logout200Response.md +2 -2
- package/docs/LogoutResponse.md +36 -0
- package/docs/MessageResponse.md +34 -0
- package/docs/Meter.md +46 -0
- package/docs/MeterCustomerMapping.md +36 -0
- package/docs/MeterDefaultAggregation.md +34 -0
- package/docs/MeterValueSettings.md +34 -0
- package/docs/MeterWithStripeID.md +46 -0
- package/docs/MigrationErrorResponse.md +36 -0
- package/docs/MigrationSuccessResponse.md +36 -0
- package/docs/NamespaceDefinition.md +41 -0
- package/docs/NamespaceDefinitionsResponse.md +35 -0
- package/docs/NamespaceDeploymentResponse.md +42 -0
- package/docs/NotFound.md +37 -0
- package/docs/NotFoundResponse.md +37 -0
- package/docs/PerUnitBillingScheme.md +33 -0
- package/docs/PerUnitPrice.md +58 -0
- package/docs/Price.md +62 -0
- package/docs/PriceDisplay.md +38 -0
- package/docs/PriceLimit.md +38 -0
- package/docs/PriceUI.md +42 -0
- package/docs/PriceWithStripeID.md +62 -0
- package/docs/Product.md +46 -0
- package/docs/ProductUI.md +46 -0
- package/docs/ProductWithStripeIDs.md +46 -0
- package/docs/PullStripeConfig200Response.md +2 -2
- package/docs/RecordUsageRequest.md +36 -0
- package/docs/Relationship.md +43 -0
- package/docs/RemoveSubscription200Response.md +2 -2
- package/docs/RemoveSubscriptionRequest.md +37 -0
- package/docs/RemoveSubscriptionResponse.md +38 -0
- package/docs/Role.md +47 -0
- package/docs/RolesListResponse.md +35 -0
- package/docs/SchemasConflictResponse.md +37 -0
- package/docs/SessionResponse.md +38 -0
- package/docs/StripeConfigResponse.md +42 -0
- package/docs/StripeConfigUpdateRequest.md +38 -0
- package/docs/StripeConfigValidateRequest.md +38 -0
- package/docs/StripeConfiguration.md +38 -0
- package/docs/StripeConfigurationWithIDs.md +38 -0
- package/docs/StripeIDConversionResponse.md +42 -0
- package/docs/SubjectSet.md +39 -0
- package/docs/SubjectSetRequest.md +39 -0
- package/docs/SubscriptionResponse.md +53 -0
- package/docs/SuccessResponse.md +37 -0
- package/docs/SuccessResponseData.md +33 -0
- package/docs/SwitchActiveTenant200Response.md +2 -2
- package/docs/SwitchTenantRequest.md +35 -0
- package/docs/SwitchTenantResponse.md +37 -0
- package/docs/Tenant.md +47 -0
- package/docs/TenantInvite.md +53 -0
- package/docs/TenantSettings.md +39 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/Tier.md +38 -0
- package/docs/TierUpTo.md +32 -0
- package/docs/TieredBillingScheme.md +33 -0
- package/docs/TieredPrice.md +60 -0
- package/docs/TiersMode.md +33 -0
- package/docs/Unauthorized.md +37 -0
- package/docs/UnauthorizedResponse.md +37 -0
- package/docs/UpdateRoleRequest.md +35 -0
- package/docs/UpdateTenantUserRole200Response.md +2 -2
- package/docs/UpdateTenantUserRoleRequest.md +37 -0
- package/docs/UpdateTenantUserRoleResponse.md +35 -0
- package/docs/UploadFile200Response.md +36 -0
- package/docs/UploadRequest.md +36 -0
- package/docs/UploadResponse.md +36 -0
- package/docs/UsageType.md +33 -0
- package/docs/UserTenantListItem.md +37 -0
- package/docs/V1AuthApi.md +140 -36
- package/docs/V1ConfigurationApi.md +83 -149
- package/docs/V1EventsApi.md +71 -0
- package/docs/V1PaymentsApi.md +42 -53
- package/docs/V1PermissionsApi.md +112 -23
- package/docs/V1StorageApi.md +108 -60
- package/docs/V1StripeApi.md +8 -8
- package/docs/V1TenantsApi.md +316 -309
- package/docs/WhoAmI200Response.md +2 -2
- package/docs/WhoAmIResponse.md +36 -0
- package/package.json +1 -1
- package/src/apis/V1AuthApi.ts +102 -29
- package/src/apis/V1ConfigurationApi.ts +105 -137
- package/src/apis/V1EventsApi.ts +60 -0
- package/src/apis/V1PaymentsApi.ts +54 -63
- package/src/apis/V1PermissionsApi.ts +109 -39
- package/src/apis/V1StorageApi.ts +142 -82
- package/src/apis/V1StripeApi.ts +22 -22
- package/src/apis/V1TenantsApi.ts +367 -305
- package/src/apis/index.ts +1 -0
- package/src/models/AcceptInvite200Response.ts +18 -17
- package/src/models/AcceptInviteRequest.ts +66 -0
- package/src/models/AcceptInviteResponse.ts +84 -0
- package/src/models/ActiveTenantResponse.ts +73 -0
- package/src/models/AddSubscription200Response.ts +18 -17
- package/src/models/AddSubscriptionRequest.ts +74 -0
- package/src/models/AddSubscriptionResponse.ts +81 -0
- package/src/models/ArchiveAllResponse.ts +110 -0
- package/src/models/ArchiveAllStripeConfig200Response.ts +18 -17
- package/src/models/BadRequest.ts +75 -0
- package/src/models/BadRequestResponse.ts +75 -0
- package/src/models/BillingInterval.ts +55 -0
- package/src/models/BillingStatusResponse.ts +66 -0
- package/src/models/CheckPermission200Response.ts +18 -17
- package/src/models/CheckPermissionRequest.ts +76 -0
- package/src/models/CheckPermissionRequestOneOf.ts +93 -0
- package/src/models/CheckPermissionRequestOneOf1.ts +101 -0
- package/src/models/CheckPermissionResponse.ts +66 -0
- package/src/models/ConfigHistoryItem.ts +118 -0
- package/src/models/ConfigHistoryPagination.ts +111 -0
- package/src/models/ConfigHistoryResponse.ts +90 -0
- package/src/models/ConflictResponse.ts +75 -0
- package/src/models/ConvertStripeIDToConfigID200Response.ts +18 -17
- package/src/models/CreateCheckout200Response.ts +18 -17
- package/src/models/CreateCheckoutRequest.ts +108 -0
- package/src/models/CreateCheckoutResponse.ts +75 -0
- package/src/models/CreateCustomerPortal200Response.ts +18 -17
- package/src/models/CreateEmailTemplateRequest.ts +84 -0
- package/src/models/CreateInvite200Response.ts +18 -17
- package/src/models/CreateOrUpdateEmailTemplate200Response.ts +11 -10
- package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +12 -12
- package/src/models/CreatePortalRequest.ts +66 -0
- package/src/models/CreatePortalResponse.ts +66 -0
- package/src/models/CreateRelationship200Response.ts +18 -17
- package/src/models/CreateRelationshipRequest.ts +76 -0
- package/src/models/CreateRelationshipRequestOneOf.ts +93 -0
- package/src/models/CreateRelationshipRequestOneOf1.ts +101 -0
- package/src/models/CreateRelationshipResponse.ts +83 -0
- package/src/models/CreateRole200Response.ts +18 -17
- package/src/models/CreateRoleRequest.ts +75 -0
- package/src/models/CreateTenant200Response.ts +18 -17
- package/src/models/CreateTenantRequest.ts +74 -0
- package/src/models/CreateTenantResponse.ts +92 -0
- package/src/models/CreateTenantUserInviteRequest.ts +84 -0
- package/src/models/CreateTenantUserInviteResponse.ts +83 -0
- package/src/models/CreateUser200Response.ts +82 -0
- package/src/models/CreateUserRequest.ts +92 -0
- package/src/models/CreateUserRequestName.ts +75 -0
- package/src/models/CurrencyCode.ts +71 -0
- package/src/models/DeleteEmailTemplate200Response.ts +11 -10
- package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +2 -2
- package/src/models/DeleteObject200Response.ts +82 -0
- package/src/models/DeleteObjectRequest.ts +66 -0
- package/src/models/DeleteRelationship200Response.ts +82 -0
- package/src/models/DeleteRelationshipRequest.ts +76 -0
- package/src/models/DeleteRelationshipResponse.ts +66 -0
- package/src/models/DeleteRole200Response.ts +18 -17
- package/src/models/DeleteRoleResponse.ts +66 -0
- package/src/models/DeleteTenant200Response.ts +18 -17
- package/src/models/DeleteTenantResponse.ts +66 -0
- package/src/models/DeleteTenantUserRequest.ts +66 -0
- package/src/models/DeployPermissionNamespaces200Response.ts +18 -17
- package/src/models/DownloadFile200Response.ts +82 -0
- package/src/models/DownloadRequest.ts +66 -0
- package/src/models/DownloadResponse.ts +66 -0
- package/src/models/EmailTemplate.ts +111 -0
- package/src/models/ErrorResponse.ts +75 -0
- package/src/models/ForbiddenResponse.ts +75 -0
- package/src/models/GetActiveTenant200Response.ts +17 -16
- package/src/models/GetEmailTemplates200Response.ts +11 -10
- package/src/models/GetEmailTemplates200ResponseAllOfData.ts +14 -14
- package/src/models/GetIdentity200Response.ts +10 -9
- package/src/models/GetRoleDefinitions200Response.ts +18 -17
- package/src/models/GetSession200Response.ts +17 -16
- package/src/models/GetStripeConfig200Response.ts +18 -17
- package/src/models/GetStripeConfigHistory200Response.ts +18 -17
- package/src/models/GetTenantBillingStatus200Response.ts +18 -17
- package/src/models/GetTenantJWT200Response.ts +18 -17
- package/src/models/InternalServerError.ts +75 -0
- package/src/models/InternalServerErrorResponse.ts +75 -0
- package/src/models/JWTTokenResponse.ts +66 -0
- package/src/models/KratosIdentity.ts +201 -0
- package/src/models/KratosIdentityCredentials.ts +73 -0
- package/src/models/KratosIdentityCredentialsPassword.ts +97 -0
- package/src/models/KratosIdentityRecoveryAddressesInner.ts +97 -0
- package/src/models/KratosIdentityTraits.ts +81 -0
- package/src/models/KratosIdentityTraitsName.ts +73 -0
- package/src/models/KratosIdentityVerifiableAddressesInner.ts +113 -0
- package/src/models/ListRoles200Response.ts +18 -17
- package/src/models/ListTenantSubscriptions200Response.ts +18 -17
- package/src/models/ListTenantUsers200Response.ts +18 -17
- package/src/models/ListTenants200Response.ts +17 -16
- package/src/models/ListTenantsResponse.ts +74 -0
- package/src/models/Logout200Response.ts +17 -16
- package/src/models/LogoutResponse.ts +75 -0
- package/src/models/MessageResponse.ts +65 -0
- package/src/models/Meter.ts +139 -0
- package/src/models/MeterCustomerMapping.ts +85 -0
- package/src/models/MeterDefaultAggregation.ts +78 -0
- package/src/models/MeterValueSettings.ts +66 -0
- package/src/models/MeterWithStripeID.ts +139 -0
- package/src/models/MigrationErrorResponse.ts +75 -0
- package/src/models/MigrationSuccessResponse.ts +75 -0
- package/src/models/NamespaceDefinition.ts +93 -0
- package/src/models/NamespaceDefinitionsResponse.ts +74 -0
- package/src/models/NamespaceDeploymentResponse.ts +101 -0
- package/src/models/NotFound.ts +75 -0
- package/src/models/NotFoundResponse.ts +75 -0
- package/src/models/PerUnitBillingScheme.ts +52 -0
- package/src/models/PerUnitPrice.ts +200 -0
- package/src/models/Price.ts +76 -0
- package/src/models/PriceDisplay.ts +81 -0
- package/src/models/PriceLimit.ts +82 -0
- package/src/models/PriceUI.ts +112 -0
- package/src/models/PriceWithStripeID.ts +217 -0
- package/src/models/Product.ts +143 -0
- package/src/models/ProductUI.ts +113 -0
- package/src/models/ProductWithStripeIDs.ts +143 -0
- package/src/models/PullStripeConfig200Response.ts +18 -17
- package/src/models/RecordUsageRequest.ts +75 -0
- package/src/models/Relationship.ts +105 -0
- package/src/models/RemoveSubscription200Response.ts +18 -17
- package/src/models/RemoveSubscriptionRequest.ts +74 -0
- package/src/models/RemoveSubscriptionResponse.ts +81 -0
- package/src/models/Role.ts +119 -0
- package/src/models/RolesListResponse.ts +74 -0
- package/src/models/SchemasConflictResponse.ts +75 -0
- package/src/models/SessionResponse.ts +91 -0
- package/src/models/StripeConfigResponse.ts +110 -0
- package/src/models/StripeConfigUpdateRequest.ts +98 -0
- package/src/models/StripeConfigValidateRequest.ts +98 -0
- package/src/models/StripeConfiguration.ts +98 -0
- package/src/models/StripeConfigurationWithIDs.ts +98 -0
- package/src/models/StripeIDConversionResponse.ts +114 -0
- package/src/models/SubjectSet.ts +81 -0
- package/src/models/SubjectSetRequest.ts +83 -0
- package/src/models/SubscriptionResponse.ts +144 -0
- package/src/models/SuccessResponse.ts +82 -0
- package/src/models/SuccessResponseData.ts +61 -0
- package/src/models/SwitchActiveTenant200Response.ts +18 -17
- package/src/models/SwitchTenantRequest.ts +66 -0
- package/src/models/SwitchTenantResponse.ts +75 -0
- package/src/models/Tenant.ts +126 -0
- package/src/models/TenantInvite.ts +153 -0
- package/src/models/TenantSettings.ts +84 -0
- package/src/models/TenantUserResponse.ts +102 -0
- package/src/models/Tier.ts +89 -0
- package/src/models/TierUpTo.ts +55 -0
- package/src/models/TieredBillingScheme.ts +52 -0
- package/src/models/TieredPrice.ts +224 -0
- package/src/models/TiersMode.ts +53 -0
- package/src/models/Unauthorized.ts +75 -0
- package/src/models/UnauthorizedResponse.ts +75 -0
- package/src/models/UpdateRoleRequest.ts +66 -0
- package/src/models/UpdateTenantUserRole200Response.ts +18 -17
- package/src/models/UpdateTenantUserRoleRequest.ts +75 -0
- package/src/models/UpdateTenantUserRoleResponse.ts +66 -0
- package/src/models/UploadFile200Response.ts +82 -0
- package/src/models/UploadRequest.ts +74 -0
- package/src/models/UploadResponse.ts +75 -0
- package/src/models/UsageType.ts +53 -0
- package/src/models/UserTenantListItem.ts +83 -0
- package/src/models/WhoAmI200Response.ts +17 -16
- package/src/models/WhoAmIResponse.ts +75 -0
- package/src/models/index.ts +126 -105
- package/src/runtime.ts +3 -3
- package/dist/apis/V1AuthApi.d.ts +0 -78
- package/dist/apis/V1AuthApi.js +0 -219
- package/dist/apis/V1ConfigurationApi.d.ts +0 -167
- package/dist/apis/V1ConfigurationApi.js +0 -475
- package/dist/apis/V1PaymentsApi.d.ts +0 -57
- package/dist/apis/V1PaymentsApi.js +0 -141
- package/dist/apis/V1PermissionsApi.d.ts +0 -44
- package/dist/apis/V1PermissionsApi.js +0 -105
- package/dist/apis/V1StorageApi.d.ts +0 -57
- package/dist/apis/V1StorageApi.js +0 -141
- package/dist/apis/V1StripeApi.d.ts +0 -51
- package/dist/apis/V1StripeApi.js +0 -124
- package/dist/apis/V1TenantsApi.d.ts +0 -259
- package/dist/apis/V1TenantsApi.js +0 -725
- package/dist/apis/index.d.ts +0 -7
- package/dist/apis/index.js +0 -25
- package/dist/esm/apis/V1AuthApi.d.ts +0 -78
- package/dist/esm/apis/V1AuthApi.js +0 -215
- package/dist/esm/apis/V1ConfigurationApi.d.ts +0 -167
- package/dist/esm/apis/V1ConfigurationApi.js +0 -471
- package/dist/esm/apis/V1PaymentsApi.d.ts +0 -57
- package/dist/esm/apis/V1PaymentsApi.js +0 -137
- package/dist/esm/apis/V1PermissionsApi.d.ts +0 -44
- package/dist/esm/apis/V1PermissionsApi.js +0 -101
- package/dist/esm/apis/V1StorageApi.d.ts +0 -57
- package/dist/esm/apis/V1StorageApi.js +0 -137
- package/dist/esm/apis/V1StripeApi.d.ts +0 -51
- package/dist/esm/apis/V1StripeApi.js +0 -120
- package/dist/esm/apis/V1TenantsApi.d.ts +0 -259
- package/dist/esm/apis/V1TenantsApi.js +0 -721
- package/dist/esm/apis/index.d.ts +0 -7
- package/dist/esm/apis/index.js +0 -9
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +0 -5
- package/dist/esm/models/AcceptInvite200Response.d.ts +0 -39
- package/dist/esm/models/AcceptInvite200Response.js +0 -44
- package/dist/esm/models/AddSubscription200Response.d.ts +0 -39
- package/dist/esm/models/AddSubscription200Response.js +0 -44
- package/dist/esm/models/ApiV1StorageDownloadPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1StorageDownloadPost200Response.js +0 -44
- package/dist/esm/models/ApiV1StorageObjectDelete200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1StorageObjectDelete200Response.js +0 -44
- package/dist/esm/models/ApiV1StorageUploadPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1StorageUploadPost200Response.js +0 -44
- package/dist/esm/models/ArchiveAllStripeConfig200Response.d.ts +0 -39
- package/dist/esm/models/ArchiveAllStripeConfig200Response.js +0 -44
- package/dist/esm/models/AssignRole200Response.d.ts +0 -39
- package/dist/esm/models/AssignRole200Response.js +0 -44
- package/dist/esm/models/CheckPermission200Response.d.ts +0 -39
- package/dist/esm/models/CheckPermission200Response.js +0 -44
- package/dist/esm/models/ClientAuthenticatorAssuranceLevel.d.ts +0 -27
- package/dist/esm/models/ClientAuthenticatorAssuranceLevel.js +0 -45
- package/dist/esm/models/ClientIdentity.d.ts +0 -123
- package/dist/esm/models/ClientIdentity.js +0 -73
- package/dist/esm/models/ClientIdentityCredentials.d.ts +0 -72
- package/dist/esm/models/ClientIdentityCredentials.js +0 -53
- package/dist/esm/models/ClientRecoveryIdentityAddress.d.ts +0 -64
- package/dist/esm/models/ClientRecoveryIdentityAddress.js +0 -51
- package/dist/esm/models/ClientRelationship.d.ts +0 -57
- package/dist/esm/models/ClientRelationship.js +0 -50
- package/dist/esm/models/ClientSession.d.ts +0 -98
- package/dist/esm/models/ClientSession.js +0 -65
- package/dist/esm/models/ClientSessionAuthenticationMethod.d.ts +0 -65
- package/dist/esm/models/ClientSessionAuthenticationMethod.js +0 -52
- package/dist/esm/models/ClientSessionDevice.d.ts +0 -58
- package/dist/esm/models/ClientSessionDevice.js +0 -49
- package/dist/esm/models/ClientSubjectSet.d.ts +0 -44
- package/dist/esm/models/ClientSubjectSet.js +0 -45
- package/dist/esm/models/ClientVerifiableIdentityAddress.d.ts +0 -82
- package/dist/esm/models/ClientVerifiableIdentityAddress.js +0 -57
- package/dist/esm/models/ConvertStripeIDToConfigID200Response.d.ts +0 -39
- package/dist/esm/models/ConvertStripeIDToConfigID200Response.js +0 -44
- package/dist/esm/models/CreateCheckout200Response.d.ts +0 -39
- package/dist/esm/models/CreateCheckout200Response.js +0 -44
- package/dist/esm/models/CreateCustomerPortal200Response.d.ts +0 -39
- package/dist/esm/models/CreateCustomerPortal200Response.js +0 -44
- package/dist/esm/models/CreateInvite200Response.d.ts +0 -39
- package/dist/esm/models/CreateInvite200Response.js +0 -44
- package/dist/esm/models/CreateOrUpdateEmailTemplate200Response.d.ts +0 -39
- package/dist/esm/models/CreateOrUpdateEmailTemplate200Response.js +0 -44
- package/dist/esm/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.d.ts +0 -39
- package/dist/esm/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.js +0 -44
- package/dist/esm/models/CreateRelationship200Response.d.ts +0 -39
- package/dist/esm/models/CreateRelationship200Response.js +0 -44
- package/dist/esm/models/CreateRole200Response.d.ts +0 -39
- package/dist/esm/models/CreateRole200Response.js +0 -44
- package/dist/esm/models/CreateSubscription200Response.d.ts +0 -39
- package/dist/esm/models/CreateSubscription200Response.js +0 -44
- package/dist/esm/models/CreateTenant200Response.d.ts +0 -39
- package/dist/esm/models/CreateTenant200Response.js +0 -44
- package/dist/esm/models/DeleteEmailTemplate200Response.d.ts +0 -39
- package/dist/esm/models/DeleteEmailTemplate200Response.js +0 -44
- package/dist/esm/models/DeleteEmailTemplate200ResponseAllOfData.d.ts +0 -32
- package/dist/esm/models/DeleteEmailTemplate200ResponseAllOfData.js +0 -41
- package/dist/esm/models/DeleteRole200Response.d.ts +0 -39
- package/dist/esm/models/DeleteRole200Response.js +0 -44
- package/dist/esm/models/DeleteTenant200Response.d.ts +0 -39
- package/dist/esm/models/DeleteTenant200Response.js +0 -44
- package/dist/esm/models/DeployPermissionNamespaces200Response.d.ts +0 -39
- package/dist/esm/models/DeployPermissionNamespaces200Response.js +0 -44
- package/dist/esm/models/GetActiveTenant200Response.d.ts +0 -39
- package/dist/esm/models/GetActiveTenant200Response.js +0 -44
- package/dist/esm/models/GetEmailTemplateByType200Response.d.ts +0 -39
- package/dist/esm/models/GetEmailTemplateByType200Response.js +0 -44
- package/dist/esm/models/GetEmailTemplates200Response.d.ts +0 -39
- package/dist/esm/models/GetEmailTemplates200Response.js +0 -44
- package/dist/esm/models/GetEmailTemplates200ResponseAllOfData.d.ts +0 -39
- package/dist/esm/models/GetEmailTemplates200ResponseAllOfData.js +0 -44
- package/dist/esm/models/GetIdentity200Response.d.ts +0 -38
- package/dist/esm/models/GetIdentity200Response.js +0 -43
- package/dist/esm/models/GetRoleDefinitions200Response.d.ts +0 -39
- package/dist/esm/models/GetRoleDefinitions200Response.js +0 -44
- package/dist/esm/models/GetSession200Response.d.ts +0 -39
- package/dist/esm/models/GetSession200Response.js +0 -44
- package/dist/esm/models/GetStripeConfig200Response.d.ts +0 -39
- package/dist/esm/models/GetStripeConfig200Response.js +0 -44
- package/dist/esm/models/GetStripeConfigHistory200Response.d.ts +0 -39
- package/dist/esm/models/GetStripeConfigHistory200Response.js +0 -44
- package/dist/esm/models/GetTenantBillingStatus200Response.d.ts +0 -39
- package/dist/esm/models/GetTenantBillingStatus200Response.js +0 -44
- package/dist/esm/models/GetTenantJWT200Response.d.ts +0 -39
- package/dist/esm/models/GetTenantJWT200Response.js +0 -44
- package/dist/esm/models/HandlersBadRequestResponse.d.ts +0 -38
- package/dist/esm/models/HandlersBadRequestResponse.js +0 -43
- package/dist/esm/models/HandlersForbiddenResponse.d.ts +0 -38
- package/dist/esm/models/HandlersForbiddenResponse.js +0 -43
- package/dist/esm/models/HandlersInternalServerErrorResponse.d.ts +0 -38
- package/dist/esm/models/HandlersInternalServerErrorResponse.js +0 -43
- package/dist/esm/models/HandlersNotFoundErrorResponse.d.ts +0 -38
- package/dist/esm/models/HandlersNotFoundErrorResponse.js +0 -43
- package/dist/esm/models/HandlersSuccessResponse.d.ts +0 -38
- package/dist/esm/models/HandlersSuccessResponse.js +0 -43
- package/dist/esm/models/HandlersUnauthorizedResponse.d.ts +0 -38
- package/dist/esm/models/HandlersUnauthorizedResponse.js +0 -43
- package/dist/esm/models/ListRoles200Response.d.ts +0 -39
- package/dist/esm/models/ListRoles200Response.js +0 -44
- package/dist/esm/models/ListTenantSubscriptions200Response.d.ts +0 -39
- package/dist/esm/models/ListTenantSubscriptions200Response.js +0 -44
- package/dist/esm/models/ListTenantUsers200Response.d.ts +0 -39
- package/dist/esm/models/ListTenantUsers200Response.js +0 -44
- package/dist/esm/models/ListTenants200Response.d.ts +0 -39
- package/dist/esm/models/ListTenants200Response.js +0 -44
- package/dist/esm/models/Logout200Response.d.ts +0 -39
- package/dist/esm/models/Logout200Response.js +0 -44
- package/dist/esm/models/ModelsActiveTenantResponse.d.ts +0 -33
- package/dist/esm/models/ModelsActiveTenantResponse.js +0 -42
- package/dist/esm/models/ModelsBillingStatusResponse.d.ts +0 -32
- package/dist/esm/models/ModelsBillingStatusResponse.js +0 -43
- package/dist/esm/models/ModelsDeleteObjectRequest.d.ts +0 -32
- package/dist/esm/models/ModelsDeleteObjectRequest.js +0 -43
- package/dist/esm/models/ModelsDownloadRequest.d.ts +0 -32
- package/dist/esm/models/ModelsDownloadRequest.js +0 -43
- package/dist/esm/models/ModelsDownloadResponse.d.ts +0 -32
- package/dist/esm/models/ModelsDownloadResponse.js +0 -41
- package/dist/esm/models/ModelsEmailTemplate.d.ts +0 -62
- package/dist/esm/models/ModelsEmailTemplate.js +0 -63
- package/dist/esm/models/ModelsListTenantsResponse.d.ts +0 -33
- package/dist/esm/models/ModelsListTenantsResponse.js +0 -44
- package/dist/esm/models/ModelsLogoutResponse.d.ts +0 -38
- package/dist/esm/models/ModelsLogoutResponse.js +0 -47
- package/dist/esm/models/ModelsMessageResponse.d.ts +0 -32
- package/dist/esm/models/ModelsMessageResponse.js +0 -41
- package/dist/esm/models/ModelsMeter.d.ts +0 -65
- package/dist/esm/models/ModelsMeter.js +0 -62
- package/dist/esm/models/ModelsMeterCustomerMapping.d.ts +0 -45
- package/dist/esm/models/ModelsMeterCustomerMapping.js +0 -53
- package/dist/esm/models/ModelsMeterDefaultAggregation.d.ts +0 -41
- package/dist/esm/models/ModelsMeterDefaultAggregation.js +0 -51
- package/dist/esm/models/ModelsMeterValueSettings.d.ts +0 -32
- package/dist/esm/models/ModelsMeterValueSettings.js +0 -43
- package/dist/esm/models/ModelsMeterWithStripeID.d.ts +0 -71
- package/dist/esm/models/ModelsMeterWithStripeID.js +0 -64
- package/dist/esm/models/ModelsNamespaceDefinition.d.ts +0 -50
- package/dist/esm/models/ModelsNamespaceDefinition.js +0 -55
- package/dist/esm/models/ModelsPrice.d.ts +0 -112
- package/dist/esm/models/ModelsPrice.js +0 -73
- package/dist/esm/models/ModelsPriceDisplay.d.ts +0 -44
- package/dist/esm/models/ModelsPriceDisplay.js +0 -45
- package/dist/esm/models/ModelsPriceLimit.d.ts +0 -44
- package/dist/esm/models/ModelsPriceLimit.js +0 -45
- package/dist/esm/models/ModelsPriceUI.d.ts +0 -58
- package/dist/esm/models/ModelsPriceUI.js +0 -51
- package/dist/esm/models/ModelsPriceWithStripeID.d.ts +0 -118
- package/dist/esm/models/ModelsPriceWithStripeID.js +0 -75
- package/dist/esm/models/ModelsProduct.d.ts +0 -64
- package/dist/esm/models/ModelsProduct.js +0 -59
- package/dist/esm/models/ModelsProductUI.d.ts +0 -68
- package/dist/esm/models/ModelsProductUI.js +0 -53
- package/dist/esm/models/ModelsProductWithStripeIDs.d.ts +0 -70
- package/dist/esm/models/ModelsProductWithStripeIDs.js +0 -61
- package/dist/esm/models/ModelsRole.d.ts +0 -68
- package/dist/esm/models/ModelsRole.js +0 -65
- package/dist/esm/models/ModelsSessionResponse.d.ts +0 -47
- package/dist/esm/models/ModelsSessionResponse.js +0 -52
- package/dist/esm/models/ModelsStripeConfiguration.d.ts +0 -46
- package/dist/esm/models/ModelsStripeConfiguration.js +0 -51
- package/dist/esm/models/ModelsStripeConfigurationWithIDs.d.ts +0 -46
- package/dist/esm/models/ModelsStripeConfigurationWithIDs.js +0 -51
- package/dist/esm/models/ModelsSubscriptionResponse.d.ts +0 -86
- package/dist/esm/models/ModelsSubscriptionResponse.js +0 -73
- package/dist/esm/models/ModelsTenant.d.ts +0 -69
- package/dist/esm/models/ModelsTenant.js +0 -64
- package/dist/esm/models/ModelsTenantInvite.d.ts +0 -87
- package/dist/esm/models/ModelsTenantInvite.js +0 -76
- package/dist/esm/models/ModelsTenantSettings.d.ts +0 -44
- package/dist/esm/models/ModelsTenantSettings.js +0 -51
- package/dist/esm/models/ModelsTier.d.ts +0 -44
- package/dist/esm/models/ModelsTier.js +0 -45
- package/dist/esm/models/ModelsUploadRequest.d.ts +0 -40
- package/dist/esm/models/ModelsUploadRequest.js +0 -45
- package/dist/esm/models/ModelsUploadResponse.d.ts +0 -38
- package/dist/esm/models/ModelsUploadResponse.js +0 -43
- package/dist/esm/models/ModelsUserTenantListItem.d.ts +0 -39
- package/dist/esm/models/ModelsUserTenantListItem.js +0 -48
- package/dist/esm/models/ModelsWhoAmIResponse.d.ts +0 -38
- package/dist/esm/models/ModelsWhoAmIResponse.js +0 -47
- package/dist/esm/models/PullStripeConfig200Response.d.ts +0 -39
- package/dist/esm/models/PullStripeConfig200Response.js +0 -44
- package/dist/esm/models/RemoveSubscription200Response.d.ts +0 -39
- package/dist/esm/models/RemoveSubscription200Response.js +0 -44
- package/dist/esm/models/SwitchActiveTenant200Response.d.ts +0 -39
- package/dist/esm/models/SwitchActiveTenant200Response.js +0 -44
- package/dist/esm/models/TenantsAcceptInviteRequest.d.ts +0 -32
- package/dist/esm/models/TenantsAcceptInviteRequest.js +0 -43
- package/dist/esm/models/TenantsAcceptInviteResponse.d.ts +0 -44
- package/dist/esm/models/TenantsAcceptInviteResponse.js +0 -51
- package/dist/esm/models/TenantsAddSubscriptionRequest.d.ts +0 -38
- package/dist/esm/models/TenantsAddSubscriptionRequest.js +0 -45
- package/dist/esm/models/TenantsAddSubscriptionResponse.d.ts +0 -44
- package/dist/esm/models/TenantsAddSubscriptionResponse.js +0 -45
- package/dist/esm/models/TenantsAssignRoleRequest.d.ts +0 -38
- package/dist/esm/models/TenantsAssignRoleRequest.js +0 -43
- package/dist/esm/models/TenantsAssignRoleResponse.d.ts +0 -32
- package/dist/esm/models/TenantsAssignRoleResponse.js +0 -43
- package/dist/esm/models/TenantsCreateRoleRequest.d.ts +0 -38
- package/dist/esm/models/TenantsCreateRoleRequest.js +0 -47
- package/dist/esm/models/TenantsCreateSubscriptionRequest.d.ts +0 -38
- package/dist/esm/models/TenantsCreateSubscriptionRequest.js +0 -45
- package/dist/esm/models/TenantsCreateSubscriptionResponse.d.ts +0 -38
- package/dist/esm/models/TenantsCreateSubscriptionResponse.js +0 -43
- package/dist/esm/models/TenantsCreateTenantRequest.d.ts +0 -44
- package/dist/esm/models/TenantsCreateTenantRequest.js +0 -49
- package/dist/esm/models/TenantsCreateTenantResponse.d.ts +0 -45
- package/dist/esm/models/TenantsCreateTenantResponse.js +0 -52
- package/dist/esm/models/TenantsCreateTenantUserInviteRequest.d.ts +0 -44
- package/dist/esm/models/TenantsCreateTenantUserInviteRequest.js +0 -51
- package/dist/esm/models/TenantsCreateTenantUserInviteResponse.d.ts +0 -39
- package/dist/esm/models/TenantsCreateTenantUserInviteResponse.js +0 -48
- package/dist/esm/models/TenantsDeleteRoleResponse.d.ts +0 -32
- package/dist/esm/models/TenantsDeleteRoleResponse.js +0 -43
- package/dist/esm/models/TenantsDeleteTenantResponse.d.ts +0 -32
- package/dist/esm/models/TenantsDeleteTenantResponse.js +0 -43
- package/dist/esm/models/TenantsDeleteTenantUserRequest.d.ts +0 -32
- package/dist/esm/models/TenantsDeleteTenantUserRequest.js +0 -43
- package/dist/esm/models/TenantsJWTTokenResponse.d.ts +0 -32
- package/dist/esm/models/TenantsJWTTokenResponse.js +0 -43
- package/dist/esm/models/TenantsNamespaceDefinitionsResponse.d.ts +0 -33
- package/dist/esm/models/TenantsNamespaceDefinitionsResponse.js +0 -44
- package/dist/esm/models/TenantsRemoveSubscriptionRequest.d.ts +0 -38
- package/dist/esm/models/TenantsRemoveSubscriptionRequest.js +0 -45
- package/dist/esm/models/TenantsRemoveSubscriptionResponse.d.ts +0 -44
- package/dist/esm/models/TenantsRemoveSubscriptionResponse.js +0 -45
- package/dist/esm/models/TenantsRolesListResponse.d.ts +0 -33
- package/dist/esm/models/TenantsRolesListResponse.js +0 -44
- package/dist/esm/models/TenantsSwitchTenantRequest.d.ts +0 -32
- package/dist/esm/models/TenantsSwitchTenantRequest.js +0 -43
- package/dist/esm/models/TenantsSwitchTenantResponse.d.ts +0 -38
- package/dist/esm/models/TenantsSwitchTenantResponse.js +0 -47
- package/dist/esm/models/TenantsTenantUserResponse.d.ts +0 -56
- package/dist/esm/models/TenantsTenantUserResponse.js +0 -59
- package/dist/esm/models/TenantsUpdateRoleRequest.d.ts +0 -32
- package/dist/esm/models/TenantsUpdateRoleRequest.js +0 -43
- package/dist/esm/models/TenantsUpdateTenantUserRoleRequest.d.ts +0 -38
- package/dist/esm/models/TenantsUpdateTenantUserRoleRequest.js +0 -47
- package/dist/esm/models/TenantsUpdateTenantUserRoleResponse.d.ts +0 -32
- package/dist/esm/models/TenantsUpdateTenantUserRoleResponse.js +0 -43
- package/dist/esm/models/UpdateTenantUserRole200Response.d.ts +0 -39
- package/dist/esm/models/UpdateTenantUserRole200Response.js +0 -44
- package/dist/esm/models/V1ArchiveAllResponse.d.ts +0 -62
- package/dist/esm/models/V1ArchiveAllResponse.js +0 -61
- package/dist/esm/models/V1CheckPermissionRequest.d.ts +0 -57
- package/dist/esm/models/V1CheckPermissionRequest.js +0 -56
- package/dist/esm/models/V1CheckPermissionResponse.d.ts +0 -32
- package/dist/esm/models/V1CheckPermissionResponse.js +0 -43
- package/dist/esm/models/V1ConfigHistoryItem.d.ts +0 -63
- package/dist/esm/models/V1ConfigHistoryItem.js +0 -60
- package/dist/esm/models/V1ConfigHistoryPagination.d.ts +0 -62
- package/dist/esm/models/V1ConfigHistoryPagination.js +0 -63
- package/dist/esm/models/V1ConfigHistoryResponse.d.ts +0 -40
- package/dist/esm/models/V1ConfigHistoryResponse.js +0 -49
- package/dist/esm/models/V1CreateCheckoutRequest.d.ts +0 -62
- package/dist/esm/models/V1CreateCheckoutRequest.js +0 -57
- package/dist/esm/models/V1CreateCheckoutResponse.d.ts +0 -38
- package/dist/esm/models/V1CreateCheckoutResponse.js +0 -47
- package/dist/esm/models/V1CreateEmailTemplateRequest.d.ts +0 -44
- package/dist/esm/models/V1CreateEmailTemplateRequest.js +0 -51
- package/dist/esm/models/V1CreatePortalRequest.d.ts +0 -32
- package/dist/esm/models/V1CreatePortalRequest.js +0 -43
- package/dist/esm/models/V1CreatePortalResponse.d.ts +0 -32
- package/dist/esm/models/V1CreatePortalResponse.js +0 -43
- package/dist/esm/models/V1CreateRelationshipRequest.d.ts +0 -57
- package/dist/esm/models/V1CreateRelationshipRequest.js +0 -56
- package/dist/esm/models/V1CreateRelationshipResponse.d.ts +0 -39
- package/dist/esm/models/V1CreateRelationshipResponse.js +0 -48
- package/dist/esm/models/V1MigrationErrorResponse.d.ts +0 -38
- package/dist/esm/models/V1MigrationErrorResponse.js +0 -47
- package/dist/esm/models/V1MigrationSuccessResponse.d.ts +0 -38
- package/dist/esm/models/V1MigrationSuccessResponse.js +0 -47
- package/dist/esm/models/V1NamespaceDeploymentResponse.d.ts +0 -56
- package/dist/esm/models/V1NamespaceDeploymentResponse.js +0 -57
- package/dist/esm/models/V1RecordUsageRequest.d.ts +0 -38
- package/dist/esm/models/V1RecordUsageRequest.js +0 -47
- package/dist/esm/models/V1StripeConfigResponse.d.ts +0 -57
- package/dist/esm/models/V1StripeConfigResponse.js +0 -60
- package/dist/esm/models/V1StripeIDConversionResponse.d.ts +0 -56
- package/dist/esm/models/V1StripeIDConversionResponse.js +0 -59
- package/dist/esm/models/V1SubjectSetRequest.d.ts +0 -44
- package/dist/esm/models/V1SubjectSetRequest.js +0 -49
- package/dist/esm/models/WhoAmI200Response.d.ts +0 -39
- package/dist/esm/models/WhoAmI200Response.js +0 -44
- package/dist/esm/models/index.d.ts +0 -143
- package/dist/esm/models/index.js +0 -145
- package/dist/esm/runtime.d.ts +0 -184
- package/dist/esm/runtime.js +0 -334
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -21
- package/dist/models/AcceptInvite200Response.d.ts +0 -39
- package/dist/models/AcceptInvite200Response.js +0 -51
- package/dist/models/AddSubscription200Response.d.ts +0 -39
- package/dist/models/AddSubscription200Response.js +0 -51
- package/dist/models/ApiV1StorageDownloadPost200Response.d.ts +0 -39
- package/dist/models/ApiV1StorageDownloadPost200Response.js +0 -51
- package/dist/models/ApiV1StorageObjectDelete200Response.d.ts +0 -39
- package/dist/models/ApiV1StorageObjectDelete200Response.js +0 -51
- package/dist/models/ApiV1StorageUploadPost200Response.d.ts +0 -39
- package/dist/models/ApiV1StorageUploadPost200Response.js +0 -51
- package/dist/models/ArchiveAllStripeConfig200Response.d.ts +0 -39
- package/dist/models/ArchiveAllStripeConfig200Response.js +0 -51
- package/dist/models/AssignRole200Response.d.ts +0 -39
- package/dist/models/AssignRole200Response.js +0 -51
- package/dist/models/CheckPermission200Response.d.ts +0 -39
- package/dist/models/CheckPermission200Response.js +0 -51
- package/dist/models/ClientAuthenticatorAssuranceLevel.d.ts +0 -27
- package/dist/models/ClientAuthenticatorAssuranceLevel.js +0 -53
- package/dist/models/ClientIdentity.d.ts +0 -123
- package/dist/models/ClientIdentity.js +0 -80
- package/dist/models/ClientIdentityCredentials.d.ts +0 -72
- package/dist/models/ClientIdentityCredentials.js +0 -60
- package/dist/models/ClientRecoveryIdentityAddress.d.ts +0 -64
- package/dist/models/ClientRecoveryIdentityAddress.js +0 -58
- package/dist/models/ClientRelationship.d.ts +0 -57
- package/dist/models/ClientRelationship.js +0 -57
- package/dist/models/ClientSession.d.ts +0 -98
- package/dist/models/ClientSession.js +0 -72
- package/dist/models/ClientSessionAuthenticationMethod.d.ts +0 -65
- package/dist/models/ClientSessionAuthenticationMethod.js +0 -59
- package/dist/models/ClientSessionDevice.d.ts +0 -58
- package/dist/models/ClientSessionDevice.js +0 -56
- package/dist/models/ClientSubjectSet.d.ts +0 -44
- package/dist/models/ClientSubjectSet.js +0 -52
- package/dist/models/ClientVerifiableIdentityAddress.d.ts +0 -82
- package/dist/models/ClientVerifiableIdentityAddress.js +0 -64
- package/dist/models/ConvertStripeIDToConfigID200Response.d.ts +0 -39
- package/dist/models/ConvertStripeIDToConfigID200Response.js +0 -51
- package/dist/models/CreateCheckout200Response.d.ts +0 -39
- package/dist/models/CreateCheckout200Response.js +0 -51
- package/dist/models/CreateCustomerPortal200Response.d.ts +0 -39
- package/dist/models/CreateCustomerPortal200Response.js +0 -51
- package/dist/models/CreateInvite200Response.d.ts +0 -39
- package/dist/models/CreateInvite200Response.js +0 -51
- package/dist/models/CreateOrUpdateEmailTemplate200Response.d.ts +0 -39
- package/dist/models/CreateOrUpdateEmailTemplate200Response.js +0 -51
- package/dist/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.d.ts +0 -39
- package/dist/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.js +0 -51
- package/dist/models/CreateRelationship200Response.d.ts +0 -39
- package/dist/models/CreateRelationship200Response.js +0 -51
- package/dist/models/CreateRole200Response.d.ts +0 -39
- package/dist/models/CreateRole200Response.js +0 -51
- package/dist/models/CreateSubscription200Response.d.ts +0 -39
- package/dist/models/CreateSubscription200Response.js +0 -51
- package/dist/models/CreateTenant200Response.d.ts +0 -39
- package/dist/models/CreateTenant200Response.js +0 -51
- package/dist/models/DeleteEmailTemplate200Response.d.ts +0 -39
- package/dist/models/DeleteEmailTemplate200Response.js +0 -51
- package/dist/models/DeleteEmailTemplate200ResponseAllOfData.d.ts +0 -32
- package/dist/models/DeleteEmailTemplate200ResponseAllOfData.js +0 -48
- package/dist/models/DeleteRole200Response.d.ts +0 -39
- package/dist/models/DeleteRole200Response.js +0 -51
- package/dist/models/DeleteTenant200Response.d.ts +0 -39
- package/dist/models/DeleteTenant200Response.js +0 -51
- package/dist/models/DeployPermissionNamespaces200Response.d.ts +0 -39
- package/dist/models/DeployPermissionNamespaces200Response.js +0 -51
- package/dist/models/GetActiveTenant200Response.d.ts +0 -39
- package/dist/models/GetActiveTenant200Response.js +0 -51
- package/dist/models/GetEmailTemplateByType200Response.d.ts +0 -39
- package/dist/models/GetEmailTemplateByType200Response.js +0 -51
- package/dist/models/GetEmailTemplates200Response.d.ts +0 -39
- package/dist/models/GetEmailTemplates200Response.js +0 -51
- package/dist/models/GetEmailTemplates200ResponseAllOfData.d.ts +0 -39
- package/dist/models/GetEmailTemplates200ResponseAllOfData.js +0 -51
- package/dist/models/GetIdentity200Response.d.ts +0 -38
- package/dist/models/GetIdentity200Response.js +0 -50
- package/dist/models/GetRoleDefinitions200Response.d.ts +0 -39
- package/dist/models/GetRoleDefinitions200Response.js +0 -51
- package/dist/models/GetSession200Response.d.ts +0 -39
- package/dist/models/GetSession200Response.js +0 -51
- package/dist/models/GetStripeConfig200Response.d.ts +0 -39
- package/dist/models/GetStripeConfig200Response.js +0 -51
- package/dist/models/GetStripeConfigHistory200Response.d.ts +0 -39
- package/dist/models/GetStripeConfigHistory200Response.js +0 -51
- package/dist/models/GetTenantBillingStatus200Response.d.ts +0 -39
- package/dist/models/GetTenantBillingStatus200Response.js +0 -51
- package/dist/models/GetTenantJWT200Response.d.ts +0 -39
- package/dist/models/GetTenantJWT200Response.js +0 -51
- package/dist/models/HandlersBadRequestResponse.d.ts +0 -38
- package/dist/models/HandlersBadRequestResponse.js +0 -50
- package/dist/models/HandlersForbiddenResponse.d.ts +0 -38
- package/dist/models/HandlersForbiddenResponse.js +0 -50
- package/dist/models/HandlersInternalServerErrorResponse.d.ts +0 -38
- package/dist/models/HandlersInternalServerErrorResponse.js +0 -50
- package/dist/models/HandlersNotFoundErrorResponse.d.ts +0 -38
- package/dist/models/HandlersNotFoundErrorResponse.js +0 -50
- package/dist/models/HandlersSuccessResponse.d.ts +0 -38
- package/dist/models/HandlersSuccessResponse.js +0 -50
- package/dist/models/HandlersUnauthorizedResponse.d.ts +0 -38
- package/dist/models/HandlersUnauthorizedResponse.js +0 -50
- package/dist/models/ListRoles200Response.d.ts +0 -39
- package/dist/models/ListRoles200Response.js +0 -51
- package/dist/models/ListTenantSubscriptions200Response.d.ts +0 -39
- package/dist/models/ListTenantSubscriptions200Response.js +0 -51
- package/dist/models/ListTenantUsers200Response.d.ts +0 -39
- package/dist/models/ListTenantUsers200Response.js +0 -51
- package/dist/models/ListTenants200Response.d.ts +0 -39
- package/dist/models/ListTenants200Response.js +0 -51
- package/dist/models/Logout200Response.d.ts +0 -39
- package/dist/models/Logout200Response.js +0 -51
- package/dist/models/ModelsActiveTenantResponse.d.ts +0 -33
- package/dist/models/ModelsActiveTenantResponse.js +0 -49
- package/dist/models/ModelsBillingStatusResponse.d.ts +0 -32
- package/dist/models/ModelsBillingStatusResponse.js +0 -50
- package/dist/models/ModelsDeleteObjectRequest.d.ts +0 -32
- package/dist/models/ModelsDeleteObjectRequest.js +0 -50
- package/dist/models/ModelsDownloadRequest.d.ts +0 -32
- package/dist/models/ModelsDownloadRequest.js +0 -50
- package/dist/models/ModelsDownloadResponse.d.ts +0 -32
- package/dist/models/ModelsDownloadResponse.js +0 -48
- package/dist/models/ModelsEmailTemplate.d.ts +0 -62
- package/dist/models/ModelsEmailTemplate.js +0 -70
- package/dist/models/ModelsListTenantsResponse.d.ts +0 -33
- package/dist/models/ModelsListTenantsResponse.js +0 -51
- package/dist/models/ModelsLogoutResponse.d.ts +0 -38
- package/dist/models/ModelsLogoutResponse.js +0 -54
- package/dist/models/ModelsMessageResponse.d.ts +0 -32
- package/dist/models/ModelsMessageResponse.js +0 -48
- package/dist/models/ModelsMeter.d.ts +0 -65
- package/dist/models/ModelsMeter.js +0 -69
- package/dist/models/ModelsMeterCustomerMapping.d.ts +0 -45
- package/dist/models/ModelsMeterCustomerMapping.js +0 -61
- package/dist/models/ModelsMeterDefaultAggregation.d.ts +0 -41
- package/dist/models/ModelsMeterDefaultAggregation.js +0 -59
- package/dist/models/ModelsMeterValueSettings.d.ts +0 -32
- package/dist/models/ModelsMeterValueSettings.js +0 -50
- package/dist/models/ModelsMeterWithStripeID.d.ts +0 -71
- package/dist/models/ModelsMeterWithStripeID.js +0 -71
- package/dist/models/ModelsNamespaceDefinition.d.ts +0 -50
- package/dist/models/ModelsNamespaceDefinition.js +0 -62
- package/dist/models/ModelsPrice.d.ts +0 -112
- package/dist/models/ModelsPrice.js +0 -80
- package/dist/models/ModelsPriceDisplay.d.ts +0 -44
- package/dist/models/ModelsPriceDisplay.js +0 -52
- package/dist/models/ModelsPriceLimit.d.ts +0 -44
- package/dist/models/ModelsPriceLimit.js +0 -52
- package/dist/models/ModelsPriceUI.d.ts +0 -58
- package/dist/models/ModelsPriceUI.js +0 -58
- package/dist/models/ModelsPriceWithStripeID.d.ts +0 -118
- package/dist/models/ModelsPriceWithStripeID.js +0 -82
- package/dist/models/ModelsProduct.d.ts +0 -64
- package/dist/models/ModelsProduct.js +0 -66
- package/dist/models/ModelsProductUI.d.ts +0 -68
- package/dist/models/ModelsProductUI.js +0 -60
- package/dist/models/ModelsProductWithStripeIDs.d.ts +0 -70
- package/dist/models/ModelsProductWithStripeIDs.js +0 -68
- package/dist/models/ModelsRole.d.ts +0 -68
- package/dist/models/ModelsRole.js +0 -72
- package/dist/models/ModelsSessionResponse.d.ts +0 -47
- package/dist/models/ModelsSessionResponse.js +0 -59
- package/dist/models/ModelsStripeConfiguration.d.ts +0 -46
- package/dist/models/ModelsStripeConfiguration.js +0 -58
- package/dist/models/ModelsStripeConfigurationWithIDs.d.ts +0 -46
- package/dist/models/ModelsStripeConfigurationWithIDs.js +0 -58
- package/dist/models/ModelsSubscriptionResponse.d.ts +0 -86
- package/dist/models/ModelsSubscriptionResponse.js +0 -80
- package/dist/models/ModelsTenant.d.ts +0 -69
- package/dist/models/ModelsTenant.js +0 -71
- package/dist/models/ModelsTenantInvite.d.ts +0 -87
- package/dist/models/ModelsTenantInvite.js +0 -83
- package/dist/models/ModelsTenantSettings.d.ts +0 -44
- package/dist/models/ModelsTenantSettings.js +0 -58
- package/dist/models/ModelsTier.d.ts +0 -44
- package/dist/models/ModelsTier.js +0 -52
- package/dist/models/ModelsUploadRequest.d.ts +0 -40
- package/dist/models/ModelsUploadRequest.js +0 -52
- package/dist/models/ModelsUploadResponse.d.ts +0 -38
- package/dist/models/ModelsUploadResponse.js +0 -50
- package/dist/models/ModelsUserTenantListItem.d.ts +0 -39
- package/dist/models/ModelsUserTenantListItem.js +0 -55
- package/dist/models/ModelsWhoAmIResponse.d.ts +0 -38
- package/dist/models/ModelsWhoAmIResponse.js +0 -54
- package/dist/models/PullStripeConfig200Response.d.ts +0 -39
- package/dist/models/PullStripeConfig200Response.js +0 -51
- package/dist/models/RemoveSubscription200Response.d.ts +0 -39
- package/dist/models/RemoveSubscription200Response.js +0 -51
- package/dist/models/SwitchActiveTenant200Response.d.ts +0 -39
- package/dist/models/SwitchActiveTenant200Response.js +0 -51
- package/dist/models/TenantsAcceptInviteRequest.d.ts +0 -32
- package/dist/models/TenantsAcceptInviteRequest.js +0 -50
- package/dist/models/TenantsAcceptInviteResponse.d.ts +0 -44
- package/dist/models/TenantsAcceptInviteResponse.js +0 -58
- package/dist/models/TenantsAddSubscriptionRequest.d.ts +0 -38
- package/dist/models/TenantsAddSubscriptionRequest.js +0 -52
- package/dist/models/TenantsAddSubscriptionResponse.d.ts +0 -44
- package/dist/models/TenantsAddSubscriptionResponse.js +0 -52
- package/dist/models/TenantsAssignRoleRequest.d.ts +0 -38
- package/dist/models/TenantsAssignRoleRequest.js +0 -50
- package/dist/models/TenantsAssignRoleResponse.d.ts +0 -32
- package/dist/models/TenantsAssignRoleResponse.js +0 -50
- package/dist/models/TenantsCreateRoleRequest.d.ts +0 -38
- package/dist/models/TenantsCreateRoleRequest.js +0 -54
- package/dist/models/TenantsCreateSubscriptionRequest.d.ts +0 -38
- package/dist/models/TenantsCreateSubscriptionRequest.js +0 -52
- package/dist/models/TenantsCreateSubscriptionResponse.d.ts +0 -38
- package/dist/models/TenantsCreateSubscriptionResponse.js +0 -50
- package/dist/models/TenantsCreateTenantRequest.d.ts +0 -44
- package/dist/models/TenantsCreateTenantRequest.js +0 -56
- package/dist/models/TenantsCreateTenantResponse.d.ts +0 -45
- package/dist/models/TenantsCreateTenantResponse.js +0 -59
- package/dist/models/TenantsCreateTenantUserInviteRequest.d.ts +0 -44
- package/dist/models/TenantsCreateTenantUserInviteRequest.js +0 -58
- package/dist/models/TenantsCreateTenantUserInviteResponse.d.ts +0 -39
- package/dist/models/TenantsCreateTenantUserInviteResponse.js +0 -55
- package/dist/models/TenantsDeleteRoleResponse.d.ts +0 -32
- package/dist/models/TenantsDeleteRoleResponse.js +0 -50
- package/dist/models/TenantsDeleteTenantResponse.d.ts +0 -32
- package/dist/models/TenantsDeleteTenantResponse.js +0 -50
- package/dist/models/TenantsDeleteTenantUserRequest.d.ts +0 -32
- package/dist/models/TenantsDeleteTenantUserRequest.js +0 -50
- package/dist/models/TenantsJWTTokenResponse.d.ts +0 -32
- package/dist/models/TenantsJWTTokenResponse.js +0 -50
- package/dist/models/TenantsNamespaceDefinitionsResponse.d.ts +0 -33
- package/dist/models/TenantsNamespaceDefinitionsResponse.js +0 -51
- package/dist/models/TenantsRemoveSubscriptionRequest.d.ts +0 -38
- package/dist/models/TenantsRemoveSubscriptionRequest.js +0 -52
- package/dist/models/TenantsRemoveSubscriptionResponse.d.ts +0 -44
- package/dist/models/TenantsRemoveSubscriptionResponse.js +0 -52
- package/dist/models/TenantsRolesListResponse.d.ts +0 -33
- package/dist/models/TenantsRolesListResponse.js +0 -51
- package/dist/models/TenantsSwitchTenantRequest.d.ts +0 -32
- package/dist/models/TenantsSwitchTenantRequest.js +0 -50
- package/dist/models/TenantsSwitchTenantResponse.d.ts +0 -38
- package/dist/models/TenantsSwitchTenantResponse.js +0 -54
- package/dist/models/TenantsTenantUserResponse.d.ts +0 -56
- package/dist/models/TenantsTenantUserResponse.js +0 -66
- package/dist/models/TenantsUpdateRoleRequest.d.ts +0 -32
- package/dist/models/TenantsUpdateRoleRequest.js +0 -50
- package/dist/models/TenantsUpdateTenantUserRoleRequest.d.ts +0 -38
- package/dist/models/TenantsUpdateTenantUserRoleRequest.js +0 -54
- package/dist/models/TenantsUpdateTenantUserRoleResponse.d.ts +0 -32
- package/dist/models/TenantsUpdateTenantUserRoleResponse.js +0 -50
- package/dist/models/UpdateTenantUserRole200Response.d.ts +0 -39
- package/dist/models/UpdateTenantUserRole200Response.js +0 -51
- package/dist/models/V1ArchiveAllResponse.d.ts +0 -62
- package/dist/models/V1ArchiveAllResponse.js +0 -68
- package/dist/models/V1CheckPermissionRequest.d.ts +0 -57
- package/dist/models/V1CheckPermissionRequest.js +0 -63
- package/dist/models/V1CheckPermissionResponse.d.ts +0 -32
- package/dist/models/V1CheckPermissionResponse.js +0 -50
- package/dist/models/V1ConfigHistoryItem.d.ts +0 -63
- package/dist/models/V1ConfigHistoryItem.js +0 -67
- package/dist/models/V1ConfigHistoryPagination.d.ts +0 -62
- package/dist/models/V1ConfigHistoryPagination.js +0 -70
- package/dist/models/V1ConfigHistoryResponse.d.ts +0 -40
- package/dist/models/V1ConfigHistoryResponse.js +0 -56
- package/dist/models/V1CreateCheckoutRequest.d.ts +0 -62
- package/dist/models/V1CreateCheckoutRequest.js +0 -64
- package/dist/models/V1CreateCheckoutResponse.d.ts +0 -38
- package/dist/models/V1CreateCheckoutResponse.js +0 -54
- package/dist/models/V1CreateEmailTemplateRequest.d.ts +0 -44
- package/dist/models/V1CreateEmailTemplateRequest.js +0 -58
- package/dist/models/V1CreatePortalRequest.d.ts +0 -32
- package/dist/models/V1CreatePortalRequest.js +0 -50
- package/dist/models/V1CreatePortalResponse.d.ts +0 -32
- package/dist/models/V1CreatePortalResponse.js +0 -50
- package/dist/models/V1CreateRelationshipRequest.d.ts +0 -57
- package/dist/models/V1CreateRelationshipRequest.js +0 -63
- package/dist/models/V1CreateRelationshipResponse.d.ts +0 -39
- package/dist/models/V1CreateRelationshipResponse.js +0 -55
- package/dist/models/V1MigrationErrorResponse.d.ts +0 -38
- package/dist/models/V1MigrationErrorResponse.js +0 -54
- package/dist/models/V1MigrationSuccessResponse.d.ts +0 -38
- package/dist/models/V1MigrationSuccessResponse.js +0 -54
- package/dist/models/V1NamespaceDeploymentResponse.d.ts +0 -56
- package/dist/models/V1NamespaceDeploymentResponse.js +0 -64
- package/dist/models/V1RecordUsageRequest.d.ts +0 -38
- package/dist/models/V1RecordUsageRequest.js +0 -54
- package/dist/models/V1StripeConfigResponse.d.ts +0 -57
- package/dist/models/V1StripeConfigResponse.js +0 -67
- package/dist/models/V1StripeIDConversionResponse.d.ts +0 -56
- package/dist/models/V1StripeIDConversionResponse.js +0 -66
- package/dist/models/V1SubjectSetRequest.d.ts +0 -44
- package/dist/models/V1SubjectSetRequest.js +0 -56
- package/dist/models/WhoAmI200Response.d.ts +0 -39
- package/dist/models/WhoAmI200Response.js +0 -51
- package/dist/models/index.d.ts +0 -143
- package/dist/models/index.js +0 -161
- package/dist/runtime.d.ts +0 -184
- package/dist/runtime.js +0 -350
- package/docs/ApiV1StorageDownloadPost200Response.md +0 -36
- package/docs/ApiV1StorageObjectDelete200Response.md +0 -36
- package/docs/ApiV1StorageUploadPost200Response.md +0 -36
- package/docs/AssignRole200Response.md +0 -36
- package/docs/ClientAuthenticatorAssuranceLevel.md +0 -32
- package/docs/ClientIdentity.md +0 -62
- package/docs/ClientIdentityCredentials.md +0 -46
- package/docs/ClientRecoveryIdentityAddress.md +0 -44
- package/docs/ClientRelationship.md +0 -42
- package/docs/ClientSession.md +0 -54
- package/docs/ClientSessionAuthenticationMethod.md +0 -44
- package/docs/ClientSessionDevice.md +0 -42
- package/docs/ClientSubjectSet.md +0 -38
- package/docs/ClientVerifiableIdentityAddress.md +0 -50
- package/docs/CreateSubscription200Response.md +0 -36
- package/docs/GetEmailTemplateByType200Response.md +0 -36
- package/docs/HandlersBadRequestResponse.md +0 -36
- package/docs/HandlersForbiddenResponse.md +0 -36
- package/docs/HandlersInternalServerErrorResponse.md +0 -36
- package/docs/HandlersNotFoundErrorResponse.md +0 -36
- package/docs/HandlersSuccessResponse.md +0 -36
- package/docs/HandlersUnauthorizedResponse.md +0 -36
- package/docs/ModelsActiveTenantResponse.md +0 -34
- package/docs/ModelsBillingStatusResponse.md +0 -34
- package/docs/ModelsDeleteObjectRequest.md +0 -34
- package/docs/ModelsDownloadRequest.md +0 -34
- package/docs/ModelsDownloadResponse.md +0 -34
- package/docs/ModelsEmailTemplate.md +0 -44
- package/docs/ModelsListTenantsResponse.md +0 -34
- package/docs/ModelsLogoutResponse.md +0 -36
- package/docs/ModelsMessageResponse.md +0 -34
- package/docs/ModelsMeter.md +0 -44
- package/docs/ModelsMeterCustomerMapping.md +0 -36
- package/docs/ModelsMeterDefaultAggregation.md +0 -34
- package/docs/ModelsMeterValueSettings.md +0 -34
- package/docs/ModelsMeterWithStripeID.md +0 -46
- package/docs/ModelsNamespaceDefinition.md +0 -40
- package/docs/ModelsPrice.md +0 -60
- package/docs/ModelsPriceDisplay.md +0 -38
- package/docs/ModelsPriceLimit.md +0 -38
- package/docs/ModelsPriceUI.md +0 -42
- package/docs/ModelsPriceWithStripeID.md +0 -62
- package/docs/ModelsProduct.md +0 -44
- package/docs/ModelsProductUI.md +0 -46
- package/docs/ModelsProductWithStripeIDs.md +0 -46
- package/docs/ModelsRole.md +0 -46
- package/docs/ModelsSessionResponse.md +0 -38
- package/docs/ModelsStripeConfiguration.md +0 -38
- package/docs/ModelsStripeConfigurationWithIDs.md +0 -38
- package/docs/ModelsSubscriptionResponse.md +0 -52
- package/docs/ModelsTenant.md +0 -46
- package/docs/ModelsTenantInvite.md +0 -52
- package/docs/ModelsTenantSettings.md +0 -38
- package/docs/ModelsTier.md +0 -38
- package/docs/ModelsUploadRequest.md +0 -36
- package/docs/ModelsUploadResponse.md +0 -36
- package/docs/ModelsUserTenantListItem.md +0 -36
- package/docs/ModelsWhoAmIResponse.md +0 -36
- package/docs/TenantsAcceptInviteRequest.md +0 -34
- package/docs/TenantsAcceptInviteResponse.md +0 -38
- package/docs/TenantsAddSubscriptionRequest.md +0 -36
- package/docs/TenantsAddSubscriptionResponse.md +0 -38
- package/docs/TenantsAssignRoleRequest.md +0 -36
- package/docs/TenantsAssignRoleResponse.md +0 -34
- package/docs/TenantsCreateRoleRequest.md +0 -36
- package/docs/TenantsCreateSubscriptionRequest.md +0 -36
- package/docs/TenantsCreateSubscriptionResponse.md +0 -36
- package/docs/TenantsCreateTenantRequest.md +0 -38
- package/docs/TenantsCreateTenantResponse.md +0 -38
- package/docs/TenantsCreateTenantUserInviteRequest.md +0 -38
- package/docs/TenantsCreateTenantUserInviteResponse.md +0 -36
- package/docs/TenantsDeleteRoleResponse.md +0 -34
- package/docs/TenantsDeleteTenantResponse.md +0 -34
- package/docs/TenantsDeleteTenantUserRequest.md +0 -34
- package/docs/TenantsJWTTokenResponse.md +0 -34
- package/docs/TenantsNamespaceDefinitionsResponse.md +0 -34
- package/docs/TenantsRemoveSubscriptionRequest.md +0 -36
- package/docs/TenantsRemoveSubscriptionResponse.md +0 -38
- package/docs/TenantsRolesListResponse.md +0 -34
- package/docs/TenantsSwitchTenantRequest.md +0 -34
- package/docs/TenantsSwitchTenantResponse.md +0 -36
- package/docs/TenantsTenantUserResponse.md +0 -42
- package/docs/TenantsUpdateRoleRequest.md +0 -34
- package/docs/TenantsUpdateTenantUserRoleRequest.md +0 -36
- package/docs/TenantsUpdateTenantUserRoleResponse.md +0 -34
- package/docs/V1ArchiveAllResponse.md +0 -44
- package/docs/V1CheckPermissionRequest.md +0 -42
- package/docs/V1CheckPermissionResponse.md +0 -34
- package/docs/V1ConfigHistoryItem.md +0 -44
- package/docs/V1ConfigHistoryPagination.md +0 -44
- package/docs/V1ConfigHistoryResponse.md +0 -36
- package/docs/V1CreateCheckoutRequest.md +0 -44
- package/docs/V1CreateCheckoutResponse.md +0 -36
- package/docs/V1CreateEmailTemplateRequest.md +0 -38
- package/docs/V1CreatePortalRequest.md +0 -34
- package/docs/V1CreatePortalResponse.md +0 -34
- package/docs/V1CreateRelationshipRequest.md +0 -42
- package/docs/V1CreateRelationshipResponse.md +0 -36
- package/docs/V1MigrationErrorResponse.md +0 -36
- package/docs/V1MigrationSuccessResponse.md +0 -36
- package/docs/V1NamespaceDeploymentResponse.md +0 -42
- package/docs/V1RecordUsageRequest.md +0 -36
- package/docs/V1StripeConfigResponse.md +0 -42
- package/docs/V1StripeIDConversionResponse.md +0 -42
- package/docs/V1SubjectSetRequest.md +0 -38
- package/src/models/ApiV1StorageDownloadPost200Response.ts +0 -81
- package/src/models/ApiV1StorageObjectDelete200Response.ts +0 -81
- package/src/models/ApiV1StorageUploadPost200Response.ts +0 -81
- package/src/models/AssignRole200Response.ts +0 -81
- package/src/models/ClientAuthenticatorAssuranceLevel.ts +0 -55
- package/src/models/ClientIdentity.ts +0 -199
- package/src/models/ClientIdentityCredentials.ts +0 -113
- package/src/models/ClientRecoveryIdentityAddress.ts +0 -105
- package/src/models/ClientRelationship.ts +0 -105
- package/src/models/ClientSession.ts +0 -176
- package/src/models/ClientSessionAuthenticationMethod.ts +0 -115
- package/src/models/ClientSessionDevice.ts +0 -97
- package/src/models/ClientSubjectSet.ts +0 -81
- package/src/models/ClientVerifiableIdentityAddress.ts +0 -129
- package/src/models/CreateSubscription200Response.ts +0 -81
- package/src/models/GetEmailTemplateByType200Response.ts +0 -81
- package/src/models/HandlersBadRequestResponse.ts +0 -73
- package/src/models/HandlersForbiddenResponse.ts +0 -73
- package/src/models/HandlersInternalServerErrorResponse.ts +0 -73
- package/src/models/HandlersNotFoundErrorResponse.ts +0 -73
- package/src/models/HandlersSuccessResponse.ts +0 -73
- package/src/models/HandlersUnauthorizedResponse.ts +0 -73
- package/src/models/ModelsActiveTenantResponse.ts +0 -73
- package/src/models/ModelsBillingStatusResponse.ts +0 -66
- package/src/models/ModelsDeleteObjectRequest.ts +0 -66
- package/src/models/ModelsDownloadRequest.ts +0 -66
- package/src/models/ModelsDownloadResponse.ts +0 -65
- package/src/models/ModelsEmailTemplate.ts +0 -111
- package/src/models/ModelsListTenantsResponse.ts +0 -74
- package/src/models/ModelsLogoutResponse.ts +0 -75
- package/src/models/ModelsMessageResponse.ts +0 -65
- package/src/models/ModelsMeter.ts +0 -131
- package/src/models/ModelsMeterCustomerMapping.ts +0 -85
- package/src/models/ModelsMeterDefaultAggregation.ts +0 -78
- package/src/models/ModelsMeterValueSettings.ts +0 -66
- package/src/models/ModelsMeterWithStripeID.ts +0 -139
- package/src/models/ModelsNamespaceDefinition.ts +0 -93
- package/src/models/ModelsPrice.ts +0 -186
- package/src/models/ModelsPriceDisplay.ts +0 -81
- package/src/models/ModelsPriceLimit.ts +0 -81
- package/src/models/ModelsPriceUI.ts +0 -112
- package/src/models/ModelsPriceWithStripeID.ts +0 -194
- package/src/models/ModelsProduct.ts +0 -123
- package/src/models/ModelsProductUI.ts +0 -113
- package/src/models/ModelsProductWithStripeIDs.ts +0 -131
- package/src/models/ModelsRole.ts +0 -119
- package/src/models/ModelsSessionResponse.ts +0 -105
- package/src/models/ModelsStripeConfiguration.ts +0 -98
- package/src/models/ModelsStripeConfigurationWithIDs.ts +0 -98
- package/src/models/ModelsSubscriptionResponse.ts +0 -144
- package/src/models/ModelsTenant.ts +0 -126
- package/src/models/ModelsTenantInvite.ts +0 -153
- package/src/models/ModelsTenantSettings.ts +0 -84
- package/src/models/ModelsTier.ts +0 -81
- package/src/models/ModelsUploadRequest.ts +0 -74
- package/src/models/ModelsUploadResponse.ts +0 -73
- package/src/models/ModelsUserTenantListItem.ts +0 -83
- package/src/models/ModelsWhoAmIResponse.ts +0 -75
- package/src/models/TenantsAcceptInviteRequest.ts +0 -66
- package/src/models/TenantsAcceptInviteResponse.ts +0 -84
- package/src/models/TenantsAddSubscriptionRequest.ts +0 -74
- package/src/models/TenantsAddSubscriptionResponse.ts +0 -81
- package/src/models/TenantsAssignRoleRequest.ts +0 -73
- package/src/models/TenantsAssignRoleResponse.ts +0 -66
- package/src/models/TenantsCreateRoleRequest.ts +0 -75
- package/src/models/TenantsCreateSubscriptionRequest.ts +0 -74
- package/src/models/TenantsCreateSubscriptionResponse.ts +0 -73
- package/src/models/TenantsCreateTenantRequest.ts +0 -83
- package/src/models/TenantsCreateTenantResponse.ts +0 -92
- package/src/models/TenantsCreateTenantUserInviteRequest.ts +0 -84
- package/src/models/TenantsCreateTenantUserInviteResponse.ts +0 -83
- package/src/models/TenantsDeleteRoleResponse.ts +0 -66
- package/src/models/TenantsDeleteTenantResponse.ts +0 -66
- package/src/models/TenantsDeleteTenantUserRequest.ts +0 -66
- package/src/models/TenantsJWTTokenResponse.ts +0 -66
- package/src/models/TenantsNamespaceDefinitionsResponse.ts +0 -74
- package/src/models/TenantsRemoveSubscriptionRequest.ts +0 -74
- package/src/models/TenantsRemoveSubscriptionResponse.ts +0 -81
- package/src/models/TenantsRolesListResponse.ts +0 -74
- package/src/models/TenantsSwitchTenantRequest.ts +0 -66
- package/src/models/TenantsSwitchTenantResponse.ts +0 -75
- package/src/models/TenantsTenantUserResponse.ts +0 -102
- package/src/models/TenantsUpdateRoleRequest.ts +0 -66
- package/src/models/TenantsUpdateTenantUserRoleRequest.ts +0 -75
- package/src/models/TenantsUpdateTenantUserRoleResponse.ts +0 -66
- package/src/models/V1ArchiveAllResponse.ts +0 -110
- package/src/models/V1CheckPermissionRequest.ts +0 -108
- package/src/models/V1CheckPermissionResponse.ts +0 -66
- package/src/models/V1ConfigHistoryItem.ts +0 -117
- package/src/models/V1ConfigHistoryPagination.ts +0 -111
- package/src/models/V1ConfigHistoryResponse.ts +0 -90
- package/src/models/V1CreateCheckoutRequest.ts +0 -108
- package/src/models/V1CreateCheckoutResponse.ts +0 -75
- package/src/models/V1CreateEmailTemplateRequest.ts +0 -84
- package/src/models/V1CreatePortalRequest.ts +0 -66
- package/src/models/V1CreatePortalResponse.ts +0 -66
- package/src/models/V1CreateRelationshipRequest.ts +0 -108
- package/src/models/V1CreateRelationshipResponse.ts +0 -83
- package/src/models/V1MigrationErrorResponse.ts +0 -75
- package/src/models/V1MigrationSuccessResponse.ts +0 -75
- package/src/models/V1NamespaceDeploymentResponse.ts +0 -101
- package/src/models/V1RecordUsageRequest.ts +0 -75
- package/src/models/V1StripeConfigResponse.ts +0 -110
- package/src/models/V1StripeIDConversionResponse.ts +0 -102
- package/src/models/V1SubjectSetRequest.ts +0 -83
package/src/apis/V1TenantsApi.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Omnibase REST API
|
|
5
|
-
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
|
|
5
|
+
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.16
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,79 +16,76 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AcceptInvite200Response,
|
|
19
|
+
AcceptInviteRequest,
|
|
19
20
|
AddSubscription200Response,
|
|
20
|
-
|
|
21
|
+
AddSubscriptionRequest,
|
|
22
|
+
BadRequestResponse,
|
|
21
23
|
CreateInvite200Response,
|
|
22
24
|
CreateRole200Response,
|
|
23
|
-
|
|
25
|
+
CreateRoleRequest,
|
|
24
26
|
CreateTenant200Response,
|
|
27
|
+
CreateTenantRequest,
|
|
28
|
+
CreateTenantUserInviteRequest,
|
|
25
29
|
DeleteRole200Response,
|
|
26
30
|
DeleteTenant200Response,
|
|
31
|
+
DeleteTenantUserRequest,
|
|
32
|
+
ErrorResponse,
|
|
33
|
+
ForbiddenResponse,
|
|
27
34
|
GetRoleDefinitions200Response,
|
|
28
35
|
GetTenantBillingStatus200Response,
|
|
29
36
|
GetTenantJWT200Response,
|
|
30
|
-
HandlersBadRequestResponse,
|
|
31
|
-
HandlersForbiddenResponse,
|
|
32
|
-
HandlersInternalServerErrorResponse,
|
|
33
|
-
HandlersNotFoundErrorResponse,
|
|
34
|
-
HandlersSuccessResponse,
|
|
35
|
-
HandlersUnauthorizedResponse,
|
|
36
37
|
ListRoles200Response,
|
|
37
38
|
ListTenantSubscriptions200Response,
|
|
38
39
|
ListTenantUsers200Response,
|
|
39
40
|
RemoveSubscription200Response,
|
|
41
|
+
RemoveSubscriptionRequest,
|
|
42
|
+
SchemasConflictResponse,
|
|
43
|
+
SuccessResponse,
|
|
40
44
|
SwitchActiveTenant200Response,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
TenantsAssignRoleRequest,
|
|
44
|
-
TenantsCreateRoleRequest,
|
|
45
|
-
TenantsCreateSubscriptionRequest,
|
|
46
|
-
TenantsCreateTenantRequest,
|
|
47
|
-
TenantsCreateTenantUserInviteRequest,
|
|
48
|
-
TenantsDeleteTenantUserRequest,
|
|
49
|
-
TenantsRemoveSubscriptionRequest,
|
|
50
|
-
TenantsSwitchTenantRequest,
|
|
51
|
-
TenantsUpdateRoleRequest,
|
|
52
|
-
TenantsUpdateTenantUserRoleRequest,
|
|
45
|
+
SwitchTenantRequest,
|
|
46
|
+
UpdateRoleRequest,
|
|
53
47
|
UpdateTenantUserRole200Response,
|
|
48
|
+
UpdateTenantUserRoleRequest,
|
|
54
49
|
} from '../models/index';
|
|
55
50
|
import {
|
|
56
51
|
AcceptInvite200ResponseFromJSON,
|
|
57
52
|
AcceptInvite200ResponseToJSON,
|
|
53
|
+
AcceptInviteRequestFromJSON,
|
|
54
|
+
AcceptInviteRequestToJSON,
|
|
58
55
|
AddSubscription200ResponseFromJSON,
|
|
59
56
|
AddSubscription200ResponseToJSON,
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
AddSubscriptionRequestFromJSON,
|
|
58
|
+
AddSubscriptionRequestToJSON,
|
|
59
|
+
BadRequestResponseFromJSON,
|
|
60
|
+
BadRequestResponseToJSON,
|
|
62
61
|
CreateInvite200ResponseFromJSON,
|
|
63
62
|
CreateInvite200ResponseToJSON,
|
|
64
63
|
CreateRole200ResponseFromJSON,
|
|
65
64
|
CreateRole200ResponseToJSON,
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
CreateRoleRequestFromJSON,
|
|
66
|
+
CreateRoleRequestToJSON,
|
|
68
67
|
CreateTenant200ResponseFromJSON,
|
|
69
68
|
CreateTenant200ResponseToJSON,
|
|
69
|
+
CreateTenantRequestFromJSON,
|
|
70
|
+
CreateTenantRequestToJSON,
|
|
71
|
+
CreateTenantUserInviteRequestFromJSON,
|
|
72
|
+
CreateTenantUserInviteRequestToJSON,
|
|
70
73
|
DeleteRole200ResponseFromJSON,
|
|
71
74
|
DeleteRole200ResponseToJSON,
|
|
72
75
|
DeleteTenant200ResponseFromJSON,
|
|
73
76
|
DeleteTenant200ResponseToJSON,
|
|
77
|
+
DeleteTenantUserRequestFromJSON,
|
|
78
|
+
DeleteTenantUserRequestToJSON,
|
|
79
|
+
ErrorResponseFromJSON,
|
|
80
|
+
ErrorResponseToJSON,
|
|
81
|
+
ForbiddenResponseFromJSON,
|
|
82
|
+
ForbiddenResponseToJSON,
|
|
74
83
|
GetRoleDefinitions200ResponseFromJSON,
|
|
75
84
|
GetRoleDefinitions200ResponseToJSON,
|
|
76
85
|
GetTenantBillingStatus200ResponseFromJSON,
|
|
77
86
|
GetTenantBillingStatus200ResponseToJSON,
|
|
78
87
|
GetTenantJWT200ResponseFromJSON,
|
|
79
88
|
GetTenantJWT200ResponseToJSON,
|
|
80
|
-
HandlersBadRequestResponseFromJSON,
|
|
81
|
-
HandlersBadRequestResponseToJSON,
|
|
82
|
-
HandlersForbiddenResponseFromJSON,
|
|
83
|
-
HandlersForbiddenResponseToJSON,
|
|
84
|
-
HandlersInternalServerErrorResponseFromJSON,
|
|
85
|
-
HandlersInternalServerErrorResponseToJSON,
|
|
86
|
-
HandlersNotFoundErrorResponseFromJSON,
|
|
87
|
-
HandlersNotFoundErrorResponseToJSON,
|
|
88
|
-
HandlersSuccessResponseFromJSON,
|
|
89
|
-
HandlersSuccessResponseToJSON,
|
|
90
|
-
HandlersUnauthorizedResponseFromJSON,
|
|
91
|
-
HandlersUnauthorizedResponseToJSON,
|
|
92
89
|
ListRoles200ResponseFromJSON,
|
|
93
90
|
ListRoles200ResponseToJSON,
|
|
94
91
|
ListTenantSubscriptions200ResponseFromJSON,
|
|
@@ -97,88 +94,99 @@ import {
|
|
|
97
94
|
ListTenantUsers200ResponseToJSON,
|
|
98
95
|
RemoveSubscription200ResponseFromJSON,
|
|
99
96
|
RemoveSubscription200ResponseToJSON,
|
|
97
|
+
RemoveSubscriptionRequestFromJSON,
|
|
98
|
+
RemoveSubscriptionRequestToJSON,
|
|
99
|
+
SchemasConflictResponseFromJSON,
|
|
100
|
+
SchemasConflictResponseToJSON,
|
|
101
|
+
SuccessResponseFromJSON,
|
|
102
|
+
SuccessResponseToJSON,
|
|
100
103
|
SwitchActiveTenant200ResponseFromJSON,
|
|
101
104
|
SwitchActiveTenant200ResponseToJSON,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
TenantsAssignRoleRequestFromJSON,
|
|
107
|
-
TenantsAssignRoleRequestToJSON,
|
|
108
|
-
TenantsCreateRoleRequestFromJSON,
|
|
109
|
-
TenantsCreateRoleRequestToJSON,
|
|
110
|
-
TenantsCreateSubscriptionRequestFromJSON,
|
|
111
|
-
TenantsCreateSubscriptionRequestToJSON,
|
|
112
|
-
TenantsCreateTenantRequestFromJSON,
|
|
113
|
-
TenantsCreateTenantRequestToJSON,
|
|
114
|
-
TenantsCreateTenantUserInviteRequestFromJSON,
|
|
115
|
-
TenantsCreateTenantUserInviteRequestToJSON,
|
|
116
|
-
TenantsDeleteTenantUserRequestFromJSON,
|
|
117
|
-
TenantsDeleteTenantUserRequestToJSON,
|
|
118
|
-
TenantsRemoveSubscriptionRequestFromJSON,
|
|
119
|
-
TenantsRemoveSubscriptionRequestToJSON,
|
|
120
|
-
TenantsSwitchTenantRequestFromJSON,
|
|
121
|
-
TenantsSwitchTenantRequestToJSON,
|
|
122
|
-
TenantsUpdateRoleRequestFromJSON,
|
|
123
|
-
TenantsUpdateRoleRequestToJSON,
|
|
124
|
-
TenantsUpdateTenantUserRoleRequestFromJSON,
|
|
125
|
-
TenantsUpdateTenantUserRoleRequestToJSON,
|
|
105
|
+
SwitchTenantRequestFromJSON,
|
|
106
|
+
SwitchTenantRequestToJSON,
|
|
107
|
+
UpdateRoleRequestFromJSON,
|
|
108
|
+
UpdateRoleRequestToJSON,
|
|
126
109
|
UpdateTenantUserRole200ResponseFromJSON,
|
|
127
110
|
UpdateTenantUserRole200ResponseToJSON,
|
|
111
|
+
UpdateTenantUserRoleRequestFromJSON,
|
|
112
|
+
UpdateTenantUserRoleRequestToJSON,
|
|
128
113
|
} from '../models/index';
|
|
129
114
|
|
|
130
|
-
export interface
|
|
131
|
-
|
|
115
|
+
export interface AcceptInviteOperationRequest {
|
|
116
|
+
acceptInviteRequest: AcceptInviteRequest;
|
|
117
|
+
xUserId?: string;
|
|
132
118
|
}
|
|
133
119
|
|
|
134
|
-
export interface
|
|
135
|
-
|
|
120
|
+
export interface AddSubscriptionOperationRequest {
|
|
121
|
+
addSubscriptionRequest: AddSubscriptionRequest;
|
|
136
122
|
}
|
|
137
123
|
|
|
138
|
-
export interface
|
|
139
|
-
|
|
140
|
-
|
|
124
|
+
export interface CreateInviteRequest {
|
|
125
|
+
createTenantUserInviteRequest: CreateTenantUserInviteRequest;
|
|
126
|
+
xUserId?: string;
|
|
127
|
+
xTenantId?: string;
|
|
141
128
|
}
|
|
142
129
|
|
|
143
|
-
export interface
|
|
144
|
-
|
|
130
|
+
export interface CreateRoleOperationRequest {
|
|
131
|
+
createRoleRequest: CreateRoleRequest;
|
|
132
|
+
xUserId?: string;
|
|
133
|
+
xTenantId?: string;
|
|
145
134
|
}
|
|
146
135
|
|
|
147
|
-
export interface
|
|
148
|
-
|
|
136
|
+
export interface CreateTenantOperationRequest {
|
|
137
|
+
createTenantRequest: CreateTenantRequest;
|
|
138
|
+
xUserId?: string;
|
|
149
139
|
}
|
|
150
140
|
|
|
151
|
-
export interface
|
|
152
|
-
|
|
141
|
+
export interface DeleteRoleRequest {
|
|
142
|
+
roleId: string;
|
|
143
|
+
xUserId?: string;
|
|
144
|
+
xTenantId?: string;
|
|
153
145
|
}
|
|
154
146
|
|
|
155
|
-
export interface
|
|
156
|
-
|
|
147
|
+
export interface DeleteTenantRequest {
|
|
148
|
+
xUserId?: string;
|
|
149
|
+
xTenantId?: string;
|
|
157
150
|
}
|
|
158
151
|
|
|
159
|
-
export interface
|
|
160
|
-
|
|
152
|
+
export interface GetTenantJWTRequest {
|
|
153
|
+
xUserId?: string;
|
|
154
|
+
xTenantId?: string;
|
|
161
155
|
}
|
|
162
156
|
|
|
163
|
-
export interface
|
|
164
|
-
|
|
157
|
+
export interface ListRolesRequest {
|
|
158
|
+
xTenantId?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface ListTenantUsersRequest {
|
|
162
|
+
xUserId?: string;
|
|
163
|
+
xTenantId?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface RemoveSubscriptionOperationRequest {
|
|
167
|
+
removeSubscriptionRequest: RemoveSubscriptionRequest;
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
export interface RemoveTenantUserRequest {
|
|
168
|
-
|
|
171
|
+
deleteTenantUserRequest: DeleteTenantUserRequest;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
174
|
export interface SwitchActiveTenantRequest {
|
|
172
|
-
|
|
175
|
+
switchTenantRequest: SwitchTenantRequest;
|
|
176
|
+
xUserId?: string;
|
|
173
177
|
}
|
|
174
178
|
|
|
175
|
-
export interface
|
|
179
|
+
export interface UpdateRoleOperationRequest {
|
|
176
180
|
roleId: string;
|
|
177
|
-
|
|
181
|
+
updateRoleRequest: UpdateRoleRequest;
|
|
182
|
+
xUserId?: string;
|
|
183
|
+
xTenantId?: string;
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
export interface
|
|
181
|
-
|
|
186
|
+
export interface UpdateTenantUserRoleOperationRequest {
|
|
187
|
+
updateTenantUserRoleRequest: UpdateTenantUserRoleRequest;
|
|
188
|
+
xUserId?: string;
|
|
189
|
+
xTenantId?: string;
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
/**
|
|
@@ -187,14 +195,14 @@ export interface UpdateTenantUserRoleRequest {
|
|
|
187
195
|
export class V1TenantsApi extends runtime.BaseAPI {
|
|
188
196
|
|
|
189
197
|
/**
|
|
190
|
-
* Accepts a tenant invitation using the token from the invite email and adds the user to the organization. ## Authentication Requires JWT token
|
|
198
|
+
* Accepts a tenant invitation using the token from the invite email and adds the user to the organization. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session - User\'s email must match the invite email - **Service Key Auth**: Requires X-Service-Key + X-User-ID header ## Process 1. Validates invite token and expiry 2. Verifies user\'s email matches invite email 3. Marks invite as used 4. Adds user to tenant 5. Assigns role with permissions 6. Sets as active tenant and returns JWT token
|
|
191
199
|
* Accept tenant invite
|
|
192
200
|
*/
|
|
193
|
-
async acceptInviteRaw(requestParameters:
|
|
194
|
-
if (requestParameters['
|
|
201
|
+
async acceptInviteRaw(requestParameters: AcceptInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AcceptInvite200Response>> {
|
|
202
|
+
if (requestParameters['acceptInviteRequest'] == null) {
|
|
195
203
|
throw new runtime.RequiredError(
|
|
196
|
-
'
|
|
197
|
-
'Required parameter "
|
|
204
|
+
'acceptInviteRequest',
|
|
205
|
+
'Required parameter "acceptInviteRequest" was null or undefined when calling acceptInvite().'
|
|
198
206
|
);
|
|
199
207
|
}
|
|
200
208
|
|
|
@@ -204,8 +212,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
204
212
|
|
|
205
213
|
headerParameters['Content-Type'] = 'application/json';
|
|
206
214
|
|
|
215
|
+
if (requestParameters['xUserId'] != null) {
|
|
216
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
217
|
+
}
|
|
218
|
+
|
|
207
219
|
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
-
headerParameters["
|
|
220
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
209
225
|
}
|
|
210
226
|
|
|
211
227
|
|
|
@@ -216,30 +232,30 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
216
232
|
method: 'PUT',
|
|
217
233
|
headers: headerParameters,
|
|
218
234
|
query: queryParameters,
|
|
219
|
-
body:
|
|
235
|
+
body: AcceptInviteRequestToJSON(requestParameters['acceptInviteRequest']),
|
|
220
236
|
}, initOverrides);
|
|
221
237
|
|
|
222
238
|
return new runtime.JSONApiResponse(response, (jsonValue) => AcceptInvite200ResponseFromJSON(jsonValue));
|
|
223
239
|
}
|
|
224
240
|
|
|
225
241
|
/**
|
|
226
|
-
* Accepts a tenant invitation using the token from the invite email and adds the user to the organization. ## Authentication Requires JWT token
|
|
242
|
+
* Accepts a tenant invitation using the token from the invite email and adds the user to the organization. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session - User\'s email must match the invite email - **Service Key Auth**: Requires X-Service-Key + X-User-ID header ## Process 1. Validates invite token and expiry 2. Verifies user\'s email matches invite email 3. Marks invite as used 4. Adds user to tenant 5. Assigns role with permissions 6. Sets as active tenant and returns JWT token
|
|
227
243
|
* Accept tenant invite
|
|
228
244
|
*/
|
|
229
|
-
async acceptInvite(requestParameters:
|
|
245
|
+
async acceptInvite(requestParameters: AcceptInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInvite200Response> {
|
|
230
246
|
const response = await this.acceptInviteRaw(requestParameters, initOverrides);
|
|
231
247
|
return await response.value();
|
|
232
248
|
}
|
|
233
249
|
|
|
234
250
|
/**
|
|
235
|
-
* Adds 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. Checks if subscription already exists for this plan to prevent duplicates 4. Creates the subscription in Stripe with the specified price 5. Returns the subscription ID and status ## Notes - If a subscription for this plan already exists, returns a 400 error - The subscription is created immediately and begins billing ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
251
|
+
* Adds 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. Checks if subscription already exists for this plan to prevent duplicates 4. Creates the subscription in Stripe with the specified price 5. Returns the subscription ID and status ## Notes - If a subscription for this plan already exists, returns a 400 error - The subscription is created immediately and begins billing ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
236
252
|
* Add subscription
|
|
237
253
|
*/
|
|
238
|
-
async addSubscriptionRaw(requestParameters:
|
|
239
|
-
if (requestParameters['
|
|
254
|
+
async addSubscriptionRaw(requestParameters: AddSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AddSubscription200Response>> {
|
|
255
|
+
if (requestParameters['addSubscriptionRequest'] == null) {
|
|
240
256
|
throw new runtime.RequiredError(
|
|
241
|
-
'
|
|
242
|
-
'Required parameter "
|
|
257
|
+
'addSubscriptionRequest',
|
|
258
|
+
'Required parameter "addSubscriptionRequest" was null or undefined when calling addSubscription().'
|
|
243
259
|
);
|
|
244
260
|
}
|
|
245
261
|
|
|
@@ -250,48 +266,45 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
250
266
|
headerParameters['Content-Type'] = 'application/json';
|
|
251
267
|
|
|
252
268
|
if (this.configuration && this.configuration.apiKey) {
|
|
253
|
-
headerParameters["
|
|
269
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
273
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
254
274
|
}
|
|
255
275
|
|
|
256
276
|
|
|
257
|
-
let urlPath = `/api/v1/
|
|
277
|
+
let urlPath = `/api/v1/tenants/subscriptions`;
|
|
258
278
|
|
|
259
279
|
const response = await this.request({
|
|
260
280
|
path: urlPath,
|
|
261
281
|
method: 'POST',
|
|
262
282
|
headers: headerParameters,
|
|
263
283
|
query: queryParameters,
|
|
264
|
-
body:
|
|
284
|
+
body: AddSubscriptionRequestToJSON(requestParameters['addSubscriptionRequest']),
|
|
265
285
|
}, initOverrides);
|
|
266
286
|
|
|
267
287
|
return new runtime.JSONApiResponse(response, (jsonValue) => AddSubscription200ResponseFromJSON(jsonValue));
|
|
268
288
|
}
|
|
269
289
|
|
|
270
290
|
/**
|
|
271
|
-
* Adds 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. Checks if subscription already exists for this plan to prevent duplicates 4. Creates the subscription in Stripe with the specified price 5. Returns the subscription ID and status ## Notes - If a subscription for this plan already exists, returns a 400 error - The subscription is created immediately and begins billing ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
291
|
+
* Adds 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. Checks if subscription already exists for this plan to prevent duplicates 4. Creates the subscription in Stripe with the specified price 5. Returns the subscription ID and status ## Notes - If a subscription for this plan already exists, returns a 400 error - The subscription is created immediately and begins billing ## Use Cases - Subscribe tenant to metered pricing plans (compute, storage, workers) - Enable usage-based billing for resources - Add additional services to tenant\'s billing
|
|
272
292
|
* Add subscription
|
|
273
293
|
*/
|
|
274
|
-
async addSubscription(requestParameters:
|
|
294
|
+
async addSubscription(requestParameters: AddSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddSubscription200Response> {
|
|
275
295
|
const response = await this.addSubscriptionRaw(requestParameters, initOverrides);
|
|
276
296
|
return await response.value();
|
|
277
297
|
}
|
|
278
298
|
|
|
279
299
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
300
|
+
* Creates a tenant invitation with a 7-day expiry token and sends an email to the invited user. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `invite_user` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `invite_user` permission ## Process 1. Verifies user has invite permission 2. Creates invite with unique token (7-day expiry) 3. Sends invitation email asynchronously ## Use Cases - Add team members to organization - Invite collaborators with specific roles
|
|
301
|
+
* Create tenant invite
|
|
282
302
|
*/
|
|
283
|
-
async
|
|
284
|
-
if (requestParameters['
|
|
285
|
-
throw new runtime.RequiredError(
|
|
286
|
-
'userId',
|
|
287
|
-
'Required parameter "userId" was null or undefined when calling assignRole().'
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (requestParameters['request'] == null) {
|
|
303
|
+
async createInviteRaw(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateInvite200Response>> {
|
|
304
|
+
if (requestParameters['createTenantUserInviteRequest'] == null) {
|
|
292
305
|
throw new runtime.RequiredError(
|
|
293
|
-
'
|
|
294
|
-
'Required parameter "
|
|
306
|
+
'createTenantUserInviteRequest',
|
|
307
|
+
'Required parameter "createTenantUserInviteRequest" was null or undefined when calling createInvite().'
|
|
295
308
|
);
|
|
296
309
|
}
|
|
297
310
|
|
|
@@ -301,54 +314,20 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
301
314
|
|
|
302
315
|
headerParameters['Content-Type'] = 'application/json';
|
|
303
316
|
|
|
304
|
-
if (
|
|
305
|
-
headerParameters[
|
|
317
|
+
if (requestParameters['xUserId'] != null) {
|
|
318
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
306
319
|
}
|
|
307
320
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
311
|
-
|
|
312
|
-
const response = await this.request({
|
|
313
|
-
path: urlPath,
|
|
314
|
-
method: 'POST',
|
|
315
|
-
headers: headerParameters,
|
|
316
|
-
query: queryParameters,
|
|
317
|
-
body: TenantsAssignRoleRequestToJSON(requestParameters['request']),
|
|
318
|
-
}, initOverrides);
|
|
319
|
-
|
|
320
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AssignRole200ResponseFromJSON(jsonValue));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Assigns a role to a user and creates all associated Keto relationships for the role\'s permissions. ## Authentication Requires JWT token with tenant context and appropriate permissions. ## Request Format Provide either `role_id` or `role_name` (not both). ## Use Cases - Grant role to user - Assign permissions via role - User onboarding
|
|
325
|
-
* Assign role to user
|
|
326
|
-
*/
|
|
327
|
-
async assignRole(requestParameters: AssignRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssignRole200Response> {
|
|
328
|
-
const response = await this.assignRoleRaw(requestParameters, initOverrides);
|
|
329
|
-
return await response.value();
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Creates a tenant invitation with a 7-day expiry token and sends an email to the invited user. ## Authentication Requires JWT token with `invite_user` permission. ## Process 1. Verifies user has invite permission 2. Creates invite with unique token (7-day expiry) 3. Sends invitation email asynchronously ## Use Cases - Add team members to organization - Invite collaborators with specific roles
|
|
334
|
-
* Create tenant invite
|
|
335
|
-
*/
|
|
336
|
-
async createInviteRaw(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateInvite200Response>> {
|
|
337
|
-
if (requestParameters['request'] == null) {
|
|
338
|
-
throw new runtime.RequiredError(
|
|
339
|
-
'request',
|
|
340
|
-
'Required parameter "request" was null or undefined when calling createInvite().'
|
|
341
|
-
);
|
|
321
|
+
if (requestParameters['xTenantId'] != null) {
|
|
322
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
342
323
|
}
|
|
343
324
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
325
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
326
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
327
|
+
}
|
|
349
328
|
|
|
350
329
|
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
-
headerParameters["
|
|
330
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
352
331
|
}
|
|
353
332
|
|
|
354
333
|
|
|
@@ -359,14 +338,14 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
359
338
|
method: 'POST',
|
|
360
339
|
headers: headerParameters,
|
|
361
340
|
query: queryParameters,
|
|
362
|
-
body:
|
|
341
|
+
body: CreateTenantUserInviteRequestToJSON(requestParameters['createTenantUserInviteRequest']),
|
|
363
342
|
}, initOverrides);
|
|
364
343
|
|
|
365
344
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateInvite200ResponseFromJSON(jsonValue));
|
|
366
345
|
}
|
|
367
346
|
|
|
368
347
|
/**
|
|
369
|
-
* Creates a tenant invitation with a 7-day expiry token and sends an email to the invited user. ## Authentication Requires JWT token with `invite_user` permission
|
|
348
|
+
* Creates a tenant invitation with a 7-day expiry token and sends an email to the invited user. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `invite_user` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `invite_user` permission ## Process 1. Verifies user has invite permission 2. Creates invite with unique token (7-day expiry) 3. Sends invitation email asynchronously ## Use Cases - Add team members to organization - Invite collaborators with specific roles
|
|
370
349
|
* Create tenant invite
|
|
371
350
|
*/
|
|
372
351
|
async createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateInvite200Response> {
|
|
@@ -375,14 +354,14 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
375
354
|
}
|
|
376
355
|
|
|
377
356
|
/**
|
|
378
|
-
* Creates a new custom role for the tenant with specified permissions. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
357
|
+
* Creates a new custom role for the tenant with specified permissions. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Permission Format Permissions should be in the format: `namespace:resource#relation` - Tenant-wide: `tenant#relation` - Resource-specific: `project:uuid#relation` ## Use Cases - Create custom roles for specific workflows - Define project-specific permissions - Build granular access control
|
|
379
358
|
* Create role
|
|
380
359
|
*/
|
|
381
|
-
async createRoleRaw(requestParameters:
|
|
382
|
-
if (requestParameters['
|
|
360
|
+
async createRoleRaw(requestParameters: CreateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRole200Response>> {
|
|
361
|
+
if (requestParameters['createRoleRequest'] == null) {
|
|
383
362
|
throw new runtime.RequiredError(
|
|
384
|
-
'
|
|
385
|
-
'Required parameter "
|
|
363
|
+
'createRoleRequest',
|
|
364
|
+
'Required parameter "createRoleRequest" was null or undefined when calling createRole().'
|
|
386
365
|
);
|
|
387
366
|
}
|
|
388
367
|
|
|
@@ -392,8 +371,20 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
392
371
|
|
|
393
372
|
headerParameters['Content-Type'] = 'application/json';
|
|
394
373
|
|
|
374
|
+
if (requestParameters['xUserId'] != null) {
|
|
375
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
if (requestParameters['xTenantId'] != null) {
|
|
379
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
384
|
+
}
|
|
385
|
+
|
|
395
386
|
if (this.configuration && this.configuration.apiKey) {
|
|
396
|
-
headerParameters["
|
|
387
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
397
388
|
}
|
|
398
389
|
|
|
399
390
|
|
|
@@ -404,30 +395,30 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
404
395
|
method: 'POST',
|
|
405
396
|
headers: headerParameters,
|
|
406
397
|
query: queryParameters,
|
|
407
|
-
body:
|
|
398
|
+
body: CreateRoleRequestToJSON(requestParameters['createRoleRequest']),
|
|
408
399
|
}, initOverrides);
|
|
409
400
|
|
|
410
401
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateRole200ResponseFromJSON(jsonValue));
|
|
411
402
|
}
|
|
412
403
|
|
|
413
404
|
/**
|
|
414
|
-
* Creates a new custom role for the tenant with specified permissions. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
405
|
+
* Creates a new custom role for the tenant with specified permissions. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Permission Format Permissions should be in the format: `namespace:resource#relation` - Tenant-wide: `tenant#relation` - Resource-specific: `project:uuid#relation` ## Use Cases - Create custom roles for specific workflows - Define project-specific permissions - Build granular access control
|
|
415
406
|
* Create role
|
|
416
407
|
*/
|
|
417
|
-
async createRole(requestParameters:
|
|
408
|
+
async createRole(requestParameters: CreateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateRole200Response> {
|
|
418
409
|
const response = await this.createRoleRaw(requestParameters, initOverrides);
|
|
419
410
|
return await response.value();
|
|
420
411
|
}
|
|
421
412
|
|
|
422
413
|
/**
|
|
423
|
-
* Creates a
|
|
424
|
-
* Create
|
|
414
|
+
* Creates a new tenant organization with Stripe customer, sets up owner role, and makes it the active tenant for the creator. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session (user_id extracted from session) - **Service Key Auth**: Requires X-Service-Key + X-User-ID headers ## Service Key Usage When using service key authentication, provide the user_id via the X-User-ID header. The user_id must be a valid UUID matching an existing Kratos identity. ## 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
|
|
415
|
+
* Create tenant
|
|
425
416
|
*/
|
|
426
|
-
async
|
|
427
|
-
if (requestParameters['
|
|
417
|
+
async createTenantRaw(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTenant200Response>> {
|
|
418
|
+
if (requestParameters['createTenantRequest'] == null) {
|
|
428
419
|
throw new runtime.RequiredError(
|
|
429
|
-
'
|
|
430
|
-
'Required parameter "
|
|
420
|
+
'createTenantRequest',
|
|
421
|
+
'Required parameter "createTenantRequest" was null or undefined when calling createTenant().'
|
|
431
422
|
);
|
|
432
423
|
}
|
|
433
424
|
|
|
@@ -437,53 +428,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
437
428
|
|
|
438
429
|
headerParameters['Content-Type'] = 'application/json';
|
|
439
430
|
|
|
440
|
-
if (
|
|
441
|
-
headerParameters[
|
|
431
|
+
if (requestParameters['xUserId'] != null) {
|
|
432
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
442
433
|
}
|
|
443
434
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const response = await this.request({
|
|
448
|
-
path: urlPath,
|
|
449
|
-
method: 'POST',
|
|
450
|
-
headers: headerParameters,
|
|
451
|
-
query: queryParameters,
|
|
452
|
-
body: TenantsCreateSubscriptionRequestToJSON(requestParameters['request']),
|
|
453
|
-
}, initOverrides);
|
|
454
|
-
|
|
455
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CreateSubscription200ResponseFromJSON(jsonValue));
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* 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
|
|
460
|
-
* Create subscription
|
|
461
|
-
*/
|
|
462
|
-
async createSubscription(requestParameters: CreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSubscription200Response> {
|
|
463
|
-
const response = await this.createSubscriptionRaw(requestParameters, initOverrides);
|
|
464
|
-
return await response.value();
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* 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
|
|
469
|
-
* Create tenant
|
|
470
|
-
*/
|
|
471
|
-
async createTenantRaw(requestParameters: CreateTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTenant200Response>> {
|
|
472
|
-
if (requestParameters['request'] == null) {
|
|
473
|
-
throw new runtime.RequiredError(
|
|
474
|
-
'request',
|
|
475
|
-
'Required parameter "request" was null or undefined when calling createTenant().'
|
|
476
|
-
);
|
|
435
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
436
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
477
437
|
}
|
|
478
438
|
|
|
479
|
-
const queryParameters: any = {};
|
|
480
|
-
|
|
481
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
482
|
-
|
|
483
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
484
|
-
|
|
485
439
|
if (this.configuration && this.configuration.apiKey) {
|
|
486
|
-
headerParameters["
|
|
440
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
487
441
|
}
|
|
488
442
|
|
|
489
443
|
|
|
@@ -494,23 +448,23 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
494
448
|
method: 'POST',
|
|
495
449
|
headers: headerParameters,
|
|
496
450
|
query: queryParameters,
|
|
497
|
-
body:
|
|
451
|
+
body: CreateTenantRequestToJSON(requestParameters['createTenantRequest']),
|
|
498
452
|
}, initOverrides);
|
|
499
453
|
|
|
500
454
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateTenant200ResponseFromJSON(jsonValue));
|
|
501
455
|
}
|
|
502
456
|
|
|
503
457
|
/**
|
|
504
|
-
* 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
|
|
458
|
+
* Creates a new tenant organization with Stripe customer, sets up owner role, and makes it the active tenant for the creator. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session (user_id extracted from session) - **Service Key Auth**: Requires X-Service-Key + X-User-ID headers ## Service Key Usage When using service key authentication, provide the user_id via the X-User-ID header. The user_id must be a valid UUID matching an existing Kratos identity. ## 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
|
|
505
459
|
* Create tenant
|
|
506
460
|
*/
|
|
507
|
-
async createTenant(requestParameters:
|
|
461
|
+
async createTenant(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateTenant200Response> {
|
|
508
462
|
const response = await this.createTenantRaw(requestParameters, initOverrides);
|
|
509
463
|
return await response.value();
|
|
510
464
|
}
|
|
511
465
|
|
|
512
466
|
/**
|
|
513
|
-
* Deletes a role and removes all associated Keto relationships for users who had this role assigned. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
467
|
+
* Deletes a role and removes all associated Keto relationships for users who had this role assigned. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Use Cases - Remove obsolete roles - Clean up role definitions - Revoke all permissions from role users
|
|
514
468
|
* Delete role
|
|
515
469
|
*/
|
|
516
470
|
async deleteRoleRaw(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteRole200Response>> {
|
|
@@ -525,8 +479,20 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
525
479
|
|
|
526
480
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
527
481
|
|
|
482
|
+
if (requestParameters['xUserId'] != null) {
|
|
483
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (requestParameters['xTenantId'] != null) {
|
|
487
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
488
|
+
}
|
|
489
|
+
|
|
528
490
|
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
-
headerParameters["
|
|
491
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
495
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
530
496
|
}
|
|
531
497
|
|
|
532
498
|
|
|
@@ -544,7 +510,7 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
544
510
|
}
|
|
545
511
|
|
|
546
512
|
/**
|
|
547
|
-
* Deletes a role and removes all associated Keto relationships for users who had this role assigned. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
513
|
+
* Deletes a role and removes all associated Keto relationships for users who had this role assigned. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Use Cases - Remove obsolete roles - Clean up role definitions - Revoke all permissions from role users
|
|
548
514
|
* Delete role
|
|
549
515
|
*/
|
|
550
516
|
async deleteRole(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteRole200Response> {
|
|
@@ -553,16 +519,28 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
553
519
|
}
|
|
554
520
|
|
|
555
521
|
/**
|
|
556
|
-
* Deletes a tenant organization and performs cleanup of Stripe customer, Keto permissions, and user associations. ## Authentication Requires JWT token with `delete_tenant` permission
|
|
522
|
+
* Deletes a tenant organization and performs cleanup of Stripe customer, Keto permissions, and user associations. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `delete_tenant` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `delete_tenant` permission ## Process 1. Verifies user has delete permission 2. Archives Stripe customer 3. Deletes tenant (cascades to users, settings, invites) 4. Cleans up all affected users\' tenant state
|
|
557
523
|
* Delete tenant
|
|
558
524
|
*/
|
|
559
|
-
async deleteTenantRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteTenant200Response>> {
|
|
525
|
+
async deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteTenant200Response>> {
|
|
560
526
|
const queryParameters: any = {};
|
|
561
527
|
|
|
562
528
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
563
529
|
|
|
530
|
+
if (requestParameters['xUserId'] != null) {
|
|
531
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (requestParameters['xTenantId'] != null) {
|
|
535
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
539
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
540
|
+
}
|
|
541
|
+
|
|
564
542
|
if (this.configuration && this.configuration.apiKey) {
|
|
565
|
-
headerParameters["
|
|
543
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
566
544
|
}
|
|
567
545
|
|
|
568
546
|
|
|
@@ -579,16 +557,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
579
557
|
}
|
|
580
558
|
|
|
581
559
|
/**
|
|
582
|
-
* Deletes a tenant organization and performs cleanup of Stripe customer, Keto permissions, and user associations. ## Authentication Requires JWT token with `delete_tenant` permission
|
|
560
|
+
* Deletes a tenant organization and performs cleanup of Stripe customer, Keto permissions, and user associations. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `delete_tenant` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `delete_tenant` permission ## Process 1. Verifies user has delete permission 2. Archives Stripe customer 3. Deletes tenant (cascades to users, settings, invites) 4. Cleans up all affected users\' tenant state
|
|
583
561
|
* Delete tenant
|
|
584
562
|
*/
|
|
585
|
-
async deleteTenant(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteTenant200Response> {
|
|
586
|
-
const response = await this.deleteTenantRaw(initOverrides);
|
|
563
|
+
async deleteTenant(requestParameters: DeleteTenantRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteTenant200Response> {
|
|
564
|
+
const response = await this.deleteTenantRaw(requestParameters, initOverrides);
|
|
587
565
|
return await response.value();
|
|
588
566
|
}
|
|
589
567
|
|
|
590
568
|
/**
|
|
591
|
-
* Returns all available permission namespaces and their relations from the database. ## Authentication Requires JWT token with appropriate permissions. ## Use Cases - Discover available permission namespaces - List relations for each namespace - Build dynamic permission UIs
|
|
569
|
+
* Returns all available permission namespaces and their relations from the database. ## Authentication Requires JWT token with appropriate permissions. ## Use Cases - Discover available permission namespaces - List relations for each namespace - Build dynamic permission UIs
|
|
592
570
|
* Get namespace definitions
|
|
593
571
|
*/
|
|
594
572
|
async getRoleDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRoleDefinitions200Response>> {
|
|
@@ -597,7 +575,11 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
597
575
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
598
576
|
|
|
599
577
|
if (this.configuration && this.configuration.apiKey) {
|
|
600
|
-
headerParameters["
|
|
578
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
582
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
601
583
|
}
|
|
602
584
|
|
|
603
585
|
|
|
@@ -614,7 +596,7 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
614
596
|
}
|
|
615
597
|
|
|
616
598
|
/**
|
|
617
|
-
* Returns all available permission namespaces and their relations from the database. ## Authentication Requires JWT token with appropriate permissions. ## Use Cases - Discover available permission namespaces - List relations for each namespace - Build dynamic permission UIs
|
|
599
|
+
* Returns all available permission namespaces and their relations from the database. ## Authentication Requires JWT token with appropriate permissions. ## Use Cases - Discover available permission namespaces - List relations for each namespace - Build dynamic permission UIs
|
|
618
600
|
* Get namespace definitions
|
|
619
601
|
*/
|
|
620
602
|
async getRoleDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRoleDefinitions200Response> {
|
|
@@ -623,7 +605,7 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
623
605
|
}
|
|
624
606
|
|
|
625
607
|
/**
|
|
626
|
-
* Checks whether the tenant has billing information configured in Stripe and if it\'s active. ## Authentication Requires JWT token with tenant context. ## Use Cases - Check if billing setup is required - Conditional feature access - Payment method verification
|
|
608
|
+
* Checks whether the tenant has billing information configured in Stripe and if it\'s active. ## Authentication Requires JWT token with tenant context. ## Use Cases - Check if billing setup is required - Conditional feature access - Payment method verification
|
|
627
609
|
* Get billing status
|
|
628
610
|
*/
|
|
629
611
|
async getTenantBillingStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTenantBillingStatus200Response>> {
|
|
@@ -632,7 +614,11 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
632
614
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
633
615
|
|
|
634
616
|
if (this.configuration && this.configuration.apiKey) {
|
|
635
|
-
headerParameters["
|
|
617
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
621
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
636
622
|
}
|
|
637
623
|
|
|
638
624
|
|
|
@@ -649,7 +635,7 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
649
635
|
}
|
|
650
636
|
|
|
651
637
|
/**
|
|
652
|
-
* Checks whether the tenant has billing information configured in Stripe and if it\'s active. ## Authentication Requires JWT token with tenant context. ## Use Cases - Check if billing setup is required - Conditional feature access - Payment method verification
|
|
638
|
+
* Checks whether the tenant has billing information configured in Stripe and if it\'s active. ## Authentication Requires JWT token with tenant context. ## Use Cases - Check if billing setup is required - Conditional feature access - Payment method verification
|
|
653
639
|
* Get billing status
|
|
654
640
|
*/
|
|
655
641
|
async getTenantBillingStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTenantBillingStatus200Response> {
|
|
@@ -658,16 +644,28 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
658
644
|
}
|
|
659
645
|
|
|
660
646
|
/**
|
|
661
|
-
* Generates a JWT token for direct PostgREST database access with the user\'s active tenant context. ## Authentication Requires JWT token and active tenant
|
|
647
|
+
* Generates a JWT token for direct PostgREST database access with the user\'s active tenant context. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session and active tenant - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers ## Use Cases - Client-side database queries - Real-time subscriptions - Direct PostgREST API access
|
|
662
648
|
* Get PostgREST JWT token
|
|
663
649
|
*/
|
|
664
|
-
async getTenantJWTRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTenantJWT200Response>> {
|
|
650
|
+
async getTenantJWTRaw(requestParameters: GetTenantJWTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTenantJWT200Response>> {
|
|
665
651
|
const queryParameters: any = {};
|
|
666
652
|
|
|
667
653
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
668
654
|
|
|
655
|
+
if (requestParameters['xUserId'] != null) {
|
|
656
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
if (requestParameters['xTenantId'] != null) {
|
|
660
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
661
|
+
}
|
|
662
|
+
|
|
669
663
|
if (this.configuration && this.configuration.apiKey) {
|
|
670
|
-
headerParameters["
|
|
664
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
668
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
671
669
|
}
|
|
672
670
|
|
|
673
671
|
|
|
@@ -684,25 +682,33 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
684
682
|
}
|
|
685
683
|
|
|
686
684
|
/**
|
|
687
|
-
* Generates a JWT token for direct PostgREST database access with the user\'s active tenant context. ## Authentication Requires JWT token and active tenant
|
|
685
|
+
* Generates a JWT token for direct PostgREST database access with the user\'s active tenant context. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session and active tenant - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers ## Use Cases - Client-side database queries - Real-time subscriptions - Direct PostgREST API access
|
|
688
686
|
* Get PostgREST JWT token
|
|
689
687
|
*/
|
|
690
|
-
async getTenantJWT(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTenantJWT200Response> {
|
|
691
|
-
const response = await this.getTenantJWTRaw(initOverrides);
|
|
688
|
+
async getTenantJWT(requestParameters: GetTenantJWTRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTenantJWT200Response> {
|
|
689
|
+
const response = await this.getTenantJWTRaw(requestParameters, initOverrides);
|
|
692
690
|
return await response.value();
|
|
693
691
|
}
|
|
694
692
|
|
|
695
693
|
/**
|
|
696
|
-
* Returns all roles for the authenticated tenant, including both system roles and custom tenant-specific roles. ## Authentication Requires JWT token with tenant context
|
|
694
|
+
* Returns all roles for the authenticated tenant, including both system roles and custom tenant-specific roles. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID header ## Use Cases - Display available roles to assign - Role management UI - Permission auditing
|
|
697
695
|
* List roles
|
|
698
696
|
*/
|
|
699
|
-
async listRolesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRoles200Response>> {
|
|
697
|
+
async listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRoles200Response>> {
|
|
700
698
|
const queryParameters: any = {};
|
|
701
699
|
|
|
702
700
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
703
701
|
|
|
702
|
+
if (requestParameters['xTenantId'] != null) {
|
|
703
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
704
|
+
}
|
|
705
|
+
|
|
704
706
|
if (this.configuration && this.configuration.apiKey) {
|
|
705
|
-
headerParameters["
|
|
707
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
711
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
706
712
|
}
|
|
707
713
|
|
|
708
714
|
|
|
@@ -719,16 +725,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
719
725
|
}
|
|
720
726
|
|
|
721
727
|
/**
|
|
722
|
-
* Returns all roles for the authenticated tenant, including both system roles and custom tenant-specific roles. ## Authentication Requires JWT token with tenant context
|
|
728
|
+
* Returns all roles for the authenticated tenant, including both system roles and custom tenant-specific roles. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID header ## Use Cases - Display available roles to assign - Role management UI - Permission auditing
|
|
723
729
|
* List roles
|
|
724
730
|
*/
|
|
725
|
-
async listRoles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRoles200Response> {
|
|
726
|
-
const response = await this.listRolesRaw(initOverrides);
|
|
731
|
+
async listRoles(requestParameters: ListRolesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRoles200Response> {
|
|
732
|
+
const response = await this.listRolesRaw(requestParameters, initOverrides);
|
|
727
733
|
return await response.value();
|
|
728
734
|
}
|
|
729
735
|
|
|
730
736
|
/**
|
|
731
|
-
* Returns all active Stripe subscriptions associated with the tenant\'s Stripe customer. ## Authentication Requires JWT token with tenant context. ## Use Cases - Display current subscriptions - Billing overview - Subscription management UI
|
|
737
|
+
* Returns all active Stripe subscriptions associated with the tenant\'s Stripe customer. ## Authentication Requires JWT token with tenant context. ## Use Cases - Display current subscriptions - Billing overview - Subscription management UI
|
|
732
738
|
* Get tenant subscriptions
|
|
733
739
|
*/
|
|
734
740
|
async listTenantSubscriptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTenantSubscriptions200Response>> {
|
|
@@ -737,7 +743,11 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
737
743
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
738
744
|
|
|
739
745
|
if (this.configuration && this.configuration.apiKey) {
|
|
740
|
-
headerParameters["
|
|
746
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
750
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
741
751
|
}
|
|
742
752
|
|
|
743
753
|
|
|
@@ -754,7 +764,7 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
754
764
|
}
|
|
755
765
|
|
|
756
766
|
/**
|
|
757
|
-
* Returns all active Stripe subscriptions associated with the tenant\'s Stripe customer. ## Authentication Requires JWT token with tenant context. ## Use Cases - Display current subscriptions - Billing overview - Subscription management UI
|
|
767
|
+
* Returns all active Stripe subscriptions associated with the tenant\'s Stripe customer. ## Authentication Requires JWT token with tenant context. ## Use Cases - Display current subscriptions - Billing overview - Subscription management UI
|
|
758
768
|
* Get tenant subscriptions
|
|
759
769
|
*/
|
|
760
770
|
async listTenantSubscriptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTenantSubscriptions200Response> {
|
|
@@ -763,16 +773,28 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
763
773
|
}
|
|
764
774
|
|
|
765
775
|
/**
|
|
766
|
-
* Returns all users who are members of the tenant with their profile information and roles. ## Authentication Requires JWT token with `view_users` permission
|
|
776
|
+
* Returns all users who are members of the tenant with their profile information and roles. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `view_users` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `view_users` permission ## Use Cases - Display team members list - User management UI - Member directory
|
|
767
777
|
* Get tenant users
|
|
768
778
|
*/
|
|
769
|
-
async listTenantUsersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTenantUsers200Response>> {
|
|
779
|
+
async listTenantUsersRaw(requestParameters: ListTenantUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTenantUsers200Response>> {
|
|
770
780
|
const queryParameters: any = {};
|
|
771
781
|
|
|
772
782
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
773
783
|
|
|
784
|
+
if (requestParameters['xUserId'] != null) {
|
|
785
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
if (requestParameters['xTenantId'] != null) {
|
|
789
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
790
|
+
}
|
|
791
|
+
|
|
774
792
|
if (this.configuration && this.configuration.apiKey) {
|
|
775
|
-
headerParameters["
|
|
793
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
797
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
776
798
|
}
|
|
777
799
|
|
|
778
800
|
|
|
@@ -789,23 +811,23 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
789
811
|
}
|
|
790
812
|
|
|
791
813
|
/**
|
|
792
|
-
* Returns all users who are members of the tenant with their profile information and roles. ## Authentication Requires JWT token with `view_users` permission
|
|
814
|
+
* Returns all users who are members of the tenant with their profile information and roles. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `view_users` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `view_users` permission ## Use Cases - Display team members list - User management UI - Member directory
|
|
793
815
|
* Get tenant users
|
|
794
816
|
*/
|
|
795
|
-
async listTenantUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTenantUsers200Response> {
|
|
796
|
-
const response = await this.listTenantUsersRaw(initOverrides);
|
|
817
|
+
async listTenantUsers(requestParameters: ListTenantUsersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTenantUsers200Response> {
|
|
818
|
+
const response = await this.listTenantUsersRaw(requestParameters, initOverrides);
|
|
797
819
|
return await response.value();
|
|
798
820
|
}
|
|
799
821
|
|
|
800
822
|
/**
|
|
801
|
-
* 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
|
|
823
|
+
* 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
|
|
802
824
|
* Remove subscription
|
|
803
825
|
*/
|
|
804
|
-
async removeSubscriptionRaw(requestParameters:
|
|
805
|
-
if (requestParameters['
|
|
826
|
+
async removeSubscriptionRaw(requestParameters: RemoveSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RemoveSubscription200Response>> {
|
|
827
|
+
if (requestParameters['removeSubscriptionRequest'] == null) {
|
|
806
828
|
throw new runtime.RequiredError(
|
|
807
|
-
'
|
|
808
|
-
'Required parameter "
|
|
829
|
+
'removeSubscriptionRequest',
|
|
830
|
+
'Required parameter "removeSubscriptionRequest" was null or undefined when calling removeSubscription().'
|
|
809
831
|
);
|
|
810
832
|
}
|
|
811
833
|
|
|
@@ -816,41 +838,45 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
816
838
|
headerParameters['Content-Type'] = 'application/json';
|
|
817
839
|
|
|
818
840
|
if (this.configuration && this.configuration.apiKey) {
|
|
819
|
-
headerParameters["
|
|
841
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
845
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
820
846
|
}
|
|
821
847
|
|
|
822
848
|
|
|
823
|
-
let urlPath = `/api/v1/
|
|
849
|
+
let urlPath = `/api/v1/tenants/subscriptions`;
|
|
824
850
|
|
|
825
851
|
const response = await this.request({
|
|
826
852
|
path: urlPath,
|
|
827
853
|
method: 'DELETE',
|
|
828
854
|
headers: headerParameters,
|
|
829
855
|
query: queryParameters,
|
|
830
|
-
body:
|
|
856
|
+
body: RemoveSubscriptionRequestToJSON(requestParameters['removeSubscriptionRequest']),
|
|
831
857
|
}, initOverrides);
|
|
832
858
|
|
|
833
859
|
return new runtime.JSONApiResponse(response, (jsonValue) => RemoveSubscription200ResponseFromJSON(jsonValue));
|
|
834
860
|
}
|
|
835
861
|
|
|
836
862
|
/**
|
|
837
|
-
* 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
|
|
863
|
+
* 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
|
|
838
864
|
* Remove subscription
|
|
839
865
|
*/
|
|
840
|
-
async removeSubscription(requestParameters:
|
|
866
|
+
async removeSubscription(requestParameters: RemoveSubscriptionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RemoveSubscription200Response> {
|
|
841
867
|
const response = await this.removeSubscriptionRaw(requestParameters, initOverrides);
|
|
842
868
|
return await response.value();
|
|
843
869
|
}
|
|
844
870
|
|
|
845
871
|
/**
|
|
846
|
-
* 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
|
|
872
|
+
* 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
|
|
847
873
|
* Remove tenant user
|
|
848
874
|
*/
|
|
849
|
-
async removeTenantUserRaw(requestParameters: RemoveTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
850
|
-
if (requestParameters['
|
|
875
|
+
async removeTenantUserRaw(requestParameters: RemoveTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>> {
|
|
876
|
+
if (requestParameters['deleteTenantUserRequest'] == null) {
|
|
851
877
|
throw new runtime.RequiredError(
|
|
852
|
-
'
|
|
853
|
-
'Required parameter "
|
|
878
|
+
'deleteTenantUserRequest',
|
|
879
|
+
'Required parameter "deleteTenantUserRequest" was null or undefined when calling removeTenantUser().'
|
|
854
880
|
);
|
|
855
881
|
}
|
|
856
882
|
|
|
@@ -861,7 +887,11 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
861
887
|
headerParameters['Content-Type'] = 'application/json';
|
|
862
888
|
|
|
863
889
|
if (this.configuration && this.configuration.apiKey) {
|
|
864
|
-
headerParameters["
|
|
890
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
894
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
865
895
|
}
|
|
866
896
|
|
|
867
897
|
|
|
@@ -872,30 +902,30 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
872
902
|
method: 'DELETE',
|
|
873
903
|
headers: headerParameters,
|
|
874
904
|
query: queryParameters,
|
|
875
|
-
body:
|
|
905
|
+
body: DeleteTenantUserRequestToJSON(requestParameters['deleteTenantUserRequest']),
|
|
876
906
|
}, initOverrides);
|
|
877
907
|
|
|
878
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
908
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessResponseFromJSON(jsonValue));
|
|
879
909
|
}
|
|
880
910
|
|
|
881
911
|
/**
|
|
882
|
-
* 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
|
|
912
|
+
* 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
|
|
883
913
|
* Remove tenant user
|
|
884
914
|
*/
|
|
885
|
-
async removeTenantUser(requestParameters: RemoveTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
915
|
+
async removeTenantUser(requestParameters: RemoveTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse> {
|
|
886
916
|
const response = await this.removeTenantUserRaw(requestParameters, initOverrides);
|
|
887
917
|
return await response.value();
|
|
888
918
|
}
|
|
889
919
|
|
|
890
920
|
/**
|
|
891
|
-
* Updates the user\'s active tenant in Kratos identity and returns a new JWT token with updated tenant context. ## Authentication Requires JWT token
|
|
921
|
+
* Updates the user\'s active tenant in Kratos identity and returns a new JWT token with updated tenant context. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session - **Service Key Auth**: Requires X-Service-Key + X-User-ID header ## Use Cases - Switch between organizations - Change context for multi-tenant users
|
|
892
922
|
* Switch active tenant
|
|
893
923
|
*/
|
|
894
924
|
async switchActiveTenantRaw(requestParameters: SwitchActiveTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SwitchActiveTenant200Response>> {
|
|
895
|
-
if (requestParameters['
|
|
925
|
+
if (requestParameters['switchTenantRequest'] == null) {
|
|
896
926
|
throw new runtime.RequiredError(
|
|
897
|
-
'
|
|
898
|
-
'Required parameter "
|
|
927
|
+
'switchTenantRequest',
|
|
928
|
+
'Required parameter "switchTenantRequest" was null or undefined when calling switchActiveTenant().'
|
|
899
929
|
);
|
|
900
930
|
}
|
|
901
931
|
|
|
@@ -905,8 +935,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
905
935
|
|
|
906
936
|
headerParameters['Content-Type'] = 'application/json';
|
|
907
937
|
|
|
938
|
+
if (requestParameters['xUserId'] != null) {
|
|
939
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
943
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
944
|
+
}
|
|
945
|
+
|
|
908
946
|
if (this.configuration && this.configuration.apiKey) {
|
|
909
|
-
headerParameters["
|
|
947
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
910
948
|
}
|
|
911
949
|
|
|
912
950
|
|
|
@@ -917,14 +955,14 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
917
955
|
method: 'PUT',
|
|
918
956
|
headers: headerParameters,
|
|
919
957
|
query: queryParameters,
|
|
920
|
-
body:
|
|
958
|
+
body: SwitchTenantRequestToJSON(requestParameters['switchTenantRequest']),
|
|
921
959
|
}, initOverrides);
|
|
922
960
|
|
|
923
961
|
return new runtime.JSONApiResponse(response, (jsonValue) => SwitchActiveTenant200ResponseFromJSON(jsonValue));
|
|
924
962
|
}
|
|
925
963
|
|
|
926
964
|
/**
|
|
927
|
-
* Updates the user\'s active tenant in Kratos identity and returns a new JWT token with updated tenant context. ## Authentication Requires JWT token
|
|
965
|
+
* Updates the user\'s active tenant in Kratos identity and returns a new JWT token with updated tenant context. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session - **Service Key Auth**: Requires X-Service-Key + X-User-ID header ## Use Cases - Switch between organizations - Change context for multi-tenant users
|
|
928
966
|
* Switch active tenant
|
|
929
967
|
*/
|
|
930
968
|
async switchActiveTenant(requestParameters: SwitchActiveTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SwitchActiveTenant200Response> {
|
|
@@ -933,10 +971,10 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
933
971
|
}
|
|
934
972
|
|
|
935
973
|
/**
|
|
936
|
-
* Updates the permissions for an existing role. This will update Keto relationships for all users assigned to this role. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
974
|
+
* Updates the permissions for an existing role. This will update Keto relationships for all users assigned to this role. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Permission Format Permissions should be in the format: `namespace:resource#relation` ## Use Cases - Modify role permissions - Grant or revoke access - Update role capabilities
|
|
937
975
|
* Update role
|
|
938
976
|
*/
|
|
939
|
-
async updateRoleRaw(requestParameters:
|
|
977
|
+
async updateRoleRaw(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRole200Response>> {
|
|
940
978
|
if (requestParameters['roleId'] == null) {
|
|
941
979
|
throw new runtime.RequiredError(
|
|
942
980
|
'roleId',
|
|
@@ -944,10 +982,10 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
944
982
|
);
|
|
945
983
|
}
|
|
946
984
|
|
|
947
|
-
if (requestParameters['
|
|
985
|
+
if (requestParameters['updateRoleRequest'] == null) {
|
|
948
986
|
throw new runtime.RequiredError(
|
|
949
|
-
'
|
|
950
|
-
'Required parameter "
|
|
987
|
+
'updateRoleRequest',
|
|
988
|
+
'Required parameter "updateRoleRequest" was null or undefined when calling updateRole().'
|
|
951
989
|
);
|
|
952
990
|
}
|
|
953
991
|
|
|
@@ -957,8 +995,20 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
957
995
|
|
|
958
996
|
headerParameters['Content-Type'] = 'application/json';
|
|
959
997
|
|
|
998
|
+
if (requestParameters['xUserId'] != null) {
|
|
999
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
if (requestParameters['xTenantId'] != null) {
|
|
1003
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1007
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
1008
|
+
}
|
|
1009
|
+
|
|
960
1010
|
if (this.configuration && this.configuration.apiKey) {
|
|
961
|
-
headerParameters["
|
|
1011
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
962
1012
|
}
|
|
963
1013
|
|
|
964
1014
|
|
|
@@ -970,30 +1020,30 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
970
1020
|
method: 'PUT',
|
|
971
1021
|
headers: headerParameters,
|
|
972
1022
|
query: queryParameters,
|
|
973
|
-
body:
|
|
1023
|
+
body: UpdateRoleRequestToJSON(requestParameters['updateRoleRequest']),
|
|
974
1024
|
}, initOverrides);
|
|
975
1025
|
|
|
976
1026
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateRole200ResponseFromJSON(jsonValue));
|
|
977
1027
|
}
|
|
978
1028
|
|
|
979
1029
|
/**
|
|
980
|
-
* Updates the permissions for an existing role. This will update Keto relationships for all users assigned to this role. ## Authentication Requires JWT token with tenant context and appropriate permissions
|
|
1030
|
+
* Updates the permissions for an existing role. This will update Keto relationships for all users assigned to this role. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with tenant context and appropriate permissions - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with appropriate permissions ## Permission Format Permissions should be in the format: `namespace:resource#relation` ## Use Cases - Modify role permissions - Grant or revoke access - Update role capabilities
|
|
981
1031
|
* Update role
|
|
982
1032
|
*/
|
|
983
|
-
async updateRole(requestParameters:
|
|
1033
|
+
async updateRole(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateRole200Response> {
|
|
984
1034
|
const response = await this.updateRoleRaw(requestParameters, initOverrides);
|
|
985
1035
|
return await response.value();
|
|
986
1036
|
}
|
|
987
1037
|
|
|
988
1038
|
/**
|
|
989
|
-
* Updates a user\'s role in the tenant and updates all associated Keto permissions. ## Authentication Requires JWT token with `update_user_role` permission
|
|
1039
|
+
* Updates a user\'s role in the tenant and updates all associated Keto permissions. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `update_user_role` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `update_user_role` permission ## Restrictions - Promoting to owner requires `update_user_role_to_owner` permission - Demoting from owner requires `remove_owner_role` permission - Cannot demote the last owner (must have at least one owner) ## Process 1. Verifies permissions 2. Removes old role permissions 3. Updates database 4. Assigns new role permissions
|
|
990
1040
|
* Update user role
|
|
991
1041
|
*/
|
|
992
|
-
async updateTenantUserRoleRaw(requestParameters:
|
|
993
|
-
if (requestParameters['
|
|
1042
|
+
async updateTenantUserRoleRaw(requestParameters: UpdateTenantUserRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateTenantUserRole200Response>> {
|
|
1043
|
+
if (requestParameters['updateTenantUserRoleRequest'] == null) {
|
|
994
1044
|
throw new runtime.RequiredError(
|
|
995
|
-
'
|
|
996
|
-
'Required parameter "
|
|
1045
|
+
'updateTenantUserRoleRequest',
|
|
1046
|
+
'Required parameter "updateTenantUserRoleRequest" was null or undefined when calling updateTenantUserRole().'
|
|
997
1047
|
);
|
|
998
1048
|
}
|
|
999
1049
|
|
|
@@ -1003,29 +1053,41 @@ export class V1TenantsApi extends runtime.BaseAPI {
|
|
|
1003
1053
|
|
|
1004
1054
|
headerParameters['Content-Type'] = 'application/json';
|
|
1005
1055
|
|
|
1056
|
+
if (requestParameters['xUserId'] != null) {
|
|
1057
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
if (requestParameters['xTenantId'] != null) {
|
|
1061
|
+
headerParameters['X-Tenant-Id'] = String(requestParameters['xTenantId']);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1006
1064
|
if (this.configuration && this.configuration.apiKey) {
|
|
1007
|
-
headerParameters["
|
|
1065
|
+
headerParameters["X-Service-Key"] = await this.configuration.apiKey("X-Service-Key"); // ServiceKeyAuth authentication
|
|
1008
1066
|
}
|
|
1009
1067
|
|
|
1068
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1069
|
+
headerParameters["X-Session-Token"] = await this.configuration.apiKey("X-Session-Token"); // SessionTokenAuth authentication
|
|
1070
|
+
}
|
|
1010
1071
|
|
|
1011
|
-
|
|
1072
|
+
|
|
1073
|
+
let urlPath = `/api/v1/tenants/users`;
|
|
1012
1074
|
|
|
1013
1075
|
const response = await this.request({
|
|
1014
1076
|
path: urlPath,
|
|
1015
1077
|
method: 'PUT',
|
|
1016
1078
|
headers: headerParameters,
|
|
1017
1079
|
query: queryParameters,
|
|
1018
|
-
body:
|
|
1080
|
+
body: UpdateTenantUserRoleRequestToJSON(requestParameters['updateTenantUserRoleRequest']),
|
|
1019
1081
|
}, initOverrides);
|
|
1020
1082
|
|
|
1021
1083
|
return new runtime.JSONApiResponse(response, (jsonValue) => UpdateTenantUserRole200ResponseFromJSON(jsonValue));
|
|
1022
1084
|
}
|
|
1023
1085
|
|
|
1024
1086
|
/**
|
|
1025
|
-
* Updates a user\'s role in the tenant and updates all associated Keto permissions. ## Authentication Requires JWT token with `update_user_role` permission
|
|
1087
|
+
* Updates a user\'s role in the tenant and updates all associated Keto permissions. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session with `update_user_role` permission - **Service Key Auth**: Requires X-Service-Key + X-Tenant-ID + X-User-ID headers with `update_user_role` permission ## Restrictions - Promoting to owner requires `update_user_role_to_owner` permission - Demoting from owner requires `remove_owner_role` permission - Cannot demote the last owner (must have at least one owner) ## Process 1. Verifies permissions 2. Removes old role permissions 3. Updates database 4. Assigns new role permissions
|
|
1026
1088
|
* Update user role
|
|
1027
1089
|
*/
|
|
1028
|
-
async updateTenantUserRole(requestParameters:
|
|
1090
|
+
async updateTenantUserRole(requestParameters: UpdateTenantUserRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateTenantUserRole200Response> {
|
|
1029
1091
|
const response = await this.updateTenantUserRoleRaw(requestParameters, initOverrides);
|
|
1030
1092
|
return await response.value();
|
|
1031
1093
|
}
|