@omnibase/core-js 0.9.16 → 0.9.18
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 +12 -8
- package/README.md +9 -7
- package/docs/CheckPermissionRequestWithSubjectId.md +41 -0
- package/docs/CheckPermissionRequestWithSubjectSet.md +41 -0
- package/docs/CreateRelationshipRequestWithSubjectId.md +41 -0
- package/docs/CreateRelationshipRequestWithSubjectSet.md +41 -0
- package/docs/DeleteRelationshipRequestWithSubjectId.md +41 -0
- package/docs/DeleteRelationshipRequestWithSubjectSet.md +41 -0
- package/docs/NamespaceDefinition.md +2 -0
- package/docs/V1TenantsApi.md +12 -4
- package/package.json +1 -1
- package/src/apis/V1AuthApi.ts +1 -1
- package/src/apis/V1ConfigurationApi.ts +1 -1
- package/src/apis/V1EventsApi.ts +1 -1
- package/src/apis/V1PaymentsApi.ts +1 -1
- package/src/apis/V1PermissionsApi.ts +1 -1
- package/src/apis/V1StorageApi.ts +1 -1
- package/src/apis/V1StripeApi.ts +1 -1
- package/src/apis/V1TenantsApi.ts +14 -6
- package/src/models/AcceptInvite200Response.ts +1 -1
- package/src/models/AcceptInviteRequest.ts +1 -1
- package/src/models/AcceptInviteResponse.ts +1 -1
- package/src/models/ActiveTenantResponse.ts +1 -1
- package/src/models/AddSubscription200Response.ts +1 -1
- package/src/models/AddSubscriptionRequest.ts +1 -1
- package/src/models/AddSubscriptionResponse.ts +1 -1
- package/src/models/ArchiveAllResponse.ts +1 -1
- package/src/models/ArchiveAllStripeConfig200Response.ts +1 -1
- package/src/models/BadRequest.ts +1 -1
- package/src/models/BadRequestResponse.ts +1 -1
- package/src/models/BillingInterval.ts +1 -1
- package/src/models/BillingStatusResponse.ts +1 -1
- package/src/models/CheckPermission200Response.ts +1 -1
- package/src/models/CheckPermissionRequest.ts +22 -22
- package/src/models/{CheckPermissionRequestOneOf.ts → CheckPermissionRequestWithSubjectId.ts} +16 -16
- package/src/models/{CheckPermissionRequestOneOf1.ts → CheckPermissionRequestWithSubjectSet.ts} +16 -16
- package/src/models/CheckPermissionResponse.ts +1 -1
- package/src/models/ConfigHistoryItem.ts +1 -1
- package/src/models/ConfigHistoryPagination.ts +1 -1
- package/src/models/ConfigHistoryResponse.ts +1 -1
- package/src/models/ConflictResponse.ts +1 -1
- package/src/models/ConvertStripeIDToConfigID200Response.ts +1 -1
- package/src/models/CreateCheckout200Response.ts +1 -1
- package/src/models/CreateCheckoutRequest.ts +1 -1
- package/src/models/CreateCheckoutResponse.ts +1 -1
- package/src/models/CreateCustomerPortal200Response.ts +1 -1
- package/src/models/CreateEmailTemplateRequest.ts +1 -1
- package/src/models/CreateInvite200Response.ts +1 -1
- package/src/models/CreateOrUpdateEmailTemplate200Response.ts +1 -1
- package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +1 -1
- package/src/models/CreatePortalRequest.ts +1 -1
- package/src/models/CreatePortalResponse.ts +1 -1
- package/src/models/CreateRelationship200Response.ts +1 -1
- package/src/models/CreateRelationshipRequest.ts +22 -22
- package/src/models/{CreateRelationshipRequestOneOf.ts → CreateRelationshipRequestWithSubjectId.ts} +16 -16
- package/src/models/{CreateRelationshipRequestOneOf1.ts → CreateRelationshipRequestWithSubjectSet.ts} +16 -16
- package/src/models/CreateRelationshipResponse.ts +1 -1
- package/src/models/CreateRole200Response.ts +1 -1
- package/src/models/CreateRoleRequest.ts +1 -1
- package/src/models/CreateTenant200Response.ts +1 -1
- package/src/models/CreateTenantRequest.ts +1 -1
- package/src/models/CreateTenantResponse.ts +1 -1
- package/src/models/CreateTenantUserInviteRequest.ts +1 -1
- package/src/models/CreateTenantUserInviteResponse.ts +1 -1
- package/src/models/CreateUser200Response.ts +1 -1
- package/src/models/CreateUserRequest.ts +1 -1
- package/src/models/CreateUserRequestName.ts +1 -1
- package/src/models/CurrencyCode.ts +1 -1
- package/src/models/DeleteEmailTemplate200Response.ts +1 -1
- package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +1 -1
- package/src/models/DeleteObject200Response.ts +1 -1
- package/src/models/DeleteObjectRequest.ts +1 -1
- package/src/models/DeleteRelationship200Response.ts +1 -1
- package/src/models/DeleteRelationshipRequest.ts +22 -22
- package/src/models/DeleteRelationshipRequestWithSubjectId.ts +93 -0
- package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +101 -0
- package/src/models/DeleteRelationshipResponse.ts +1 -1
- package/src/models/DeleteRole200Response.ts +1 -1
- package/src/models/DeleteRoleResponse.ts +1 -1
- package/src/models/DeleteTenant200Response.ts +1 -1
- package/src/models/DeleteTenantResponse.ts +1 -1
- package/src/models/DeleteTenantUserRequest.ts +1 -1
- package/src/models/DeployPermissionNamespaces200Response.ts +1 -1
- package/src/models/DownloadFile200Response.ts +1 -1
- package/src/models/DownloadRequest.ts +1 -1
- package/src/models/DownloadResponse.ts +1 -1
- package/src/models/EmailTemplate.ts +1 -1
- package/src/models/ErrorResponse.ts +1 -1
- package/src/models/ForbiddenResponse.ts +1 -1
- package/src/models/GetActiveTenant200Response.ts +1 -1
- package/src/models/GetEmailTemplates200Response.ts +1 -1
- package/src/models/GetEmailTemplates200ResponseAllOfData.ts +1 -1
- package/src/models/GetIdentity200Response.ts +1 -1
- package/src/models/GetRoleDefinitions200Response.ts +1 -1
- package/src/models/GetSession200Response.ts +1 -1
- package/src/models/GetStripeConfig200Response.ts +1 -1
- package/src/models/GetStripeConfigHistory200Response.ts +1 -1
- package/src/models/GetTenantBillingStatus200Response.ts +1 -1
- package/src/models/GetTenantJWT200Response.ts +1 -1
- package/src/models/InternalServerError.ts +1 -1
- package/src/models/InternalServerErrorResponse.ts +1 -1
- package/src/models/JWTTokenResponse.ts +1 -1
- package/src/models/KratosIdentity.ts +1 -1
- package/src/models/KratosIdentityCredentials.ts +1 -1
- package/src/models/KratosIdentityCredentialsPassword.ts +1 -1
- package/src/models/KratosIdentityRecoveryAddressesInner.ts +1 -1
- package/src/models/KratosIdentityTraits.ts +1 -1
- package/src/models/KratosIdentityTraitsName.ts +1 -1
- package/src/models/KratosIdentityVerifiableAddressesInner.ts +1 -1
- package/src/models/ListRoles200Response.ts +1 -1
- package/src/models/ListTenantSubscriptions200Response.ts +1 -1
- package/src/models/ListTenantUsers200Response.ts +1 -1
- package/src/models/ListTenants200Response.ts +1 -1
- package/src/models/ListTenantsResponse.ts +1 -1
- package/src/models/Logout200Response.ts +1 -1
- package/src/models/LogoutResponse.ts +1 -1
- package/src/models/MessageResponse.ts +1 -1
- package/src/models/Meter.ts +1 -1
- package/src/models/MeterCustomerMapping.ts +1 -1
- package/src/models/MeterDefaultAggregation.ts +1 -1
- package/src/models/MeterValueSettings.ts +1 -1
- package/src/models/MeterWithStripeID.ts +1 -1
- package/src/models/MigrationErrorResponse.ts +1 -1
- package/src/models/MigrationSuccessResponse.ts +1 -1
- package/src/models/NamespaceDefinition.ts +9 -1
- package/src/models/NamespaceDefinitionsResponse.ts +1 -1
- package/src/models/NamespaceDeploymentResponse.ts +1 -1
- package/src/models/NotFound.ts +1 -1
- package/src/models/NotFoundResponse.ts +1 -1
- package/src/models/PerUnitBillingScheme.ts +1 -1
- package/src/models/PerUnitPrice.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/PriceDisplay.ts +1 -1
- package/src/models/PriceLimit.ts +1 -1
- package/src/models/PriceUI.ts +1 -1
- package/src/models/PriceWithStripeID.ts +1 -1
- package/src/models/Product.ts +1 -1
- package/src/models/ProductUI.ts +1 -1
- package/src/models/ProductWithStripeIDs.ts +1 -1
- package/src/models/PullStripeConfig200Response.ts +1 -1
- package/src/models/RecordUsageRequest.ts +1 -1
- package/src/models/Relationship.ts +1 -1
- package/src/models/RemoveSubscription200Response.ts +1 -1
- package/src/models/RemoveSubscriptionRequest.ts +1 -1
- package/src/models/RemoveSubscriptionResponse.ts +1 -1
- package/src/models/Role.ts +1 -1
- package/src/models/RolesListResponse.ts +1 -1
- package/src/models/SchemasConflictResponse.ts +1 -1
- package/src/models/SessionResponse.ts +1 -1
- package/src/models/StripeConfigResponse.ts +1 -1
- package/src/models/StripeConfigUpdateRequest.ts +1 -1
- package/src/models/StripeConfigValidateRequest.ts +1 -1
- package/src/models/StripeConfiguration.ts +1 -1
- package/src/models/StripeConfigurationWithIDs.ts +1 -1
- package/src/models/StripeIDConversionResponse.ts +1 -1
- package/src/models/SubjectSet.ts +1 -1
- package/src/models/SubjectSetRequest.ts +1 -1
- package/src/models/SubscriptionResponse.ts +1 -1
- package/src/models/SuccessResponse.ts +1 -1
- package/src/models/SuccessResponseData.ts +1 -1
- package/src/models/SwitchActiveTenant200Response.ts +1 -1
- package/src/models/SwitchTenantRequest.ts +1 -1
- package/src/models/SwitchTenantResponse.ts +1 -1
- package/src/models/Tenant.ts +1 -1
- package/src/models/TenantInvite.ts +1 -1
- package/src/models/TenantSettings.ts +1 -1
- package/src/models/TenantUserResponse.ts +1 -1
- package/src/models/Tier.ts +1 -1
- package/src/models/TierUpTo.ts +1 -1
- package/src/models/TieredBillingScheme.ts +1 -1
- package/src/models/TieredPrice.ts +1 -1
- package/src/models/TiersMode.ts +1 -1
- package/src/models/Unauthorized.ts +1 -1
- package/src/models/UnauthorizedResponse.ts +1 -1
- package/src/models/UpdateRoleRequest.ts +1 -1
- package/src/models/UpdateTenantUserRole200Response.ts +1 -1
- package/src/models/UpdateTenantUserRoleRequest.ts +1 -1
- package/src/models/UpdateTenantUserRoleResponse.ts +1 -1
- package/src/models/UploadFile200Response.ts +1 -1
- package/src/models/UploadRequest.ts +1 -1
- package/src/models/UploadResponse.ts +1 -1
- package/src/models/UsageType.ts +1 -1
- package/src/models/UserTenantListItem.ts +1 -1
- package/src/models/WhoAmI200Response.ts +1 -1
- package/src/models/WhoAmIResponse.ts +1 -1
- package/src/models/index.ts +6 -4
- package/src/runtime.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.9.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/BadRequest.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { CheckPermissionRequestWithSubjectId } from './CheckPermissionRequestWithSubjectId';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
22
|
-
import type {
|
|
17
|
+
instanceOfCheckPermissionRequestWithSubjectId,
|
|
18
|
+
CheckPermissionRequestWithSubjectIdFromJSON,
|
|
19
|
+
CheckPermissionRequestWithSubjectIdFromJSONTyped,
|
|
20
|
+
CheckPermissionRequestWithSubjectIdToJSON,
|
|
21
|
+
} from './CheckPermissionRequestWithSubjectId';
|
|
22
|
+
import type { CheckPermissionRequestWithSubjectSet } from './CheckPermissionRequestWithSubjectSet';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from './
|
|
24
|
+
instanceOfCheckPermissionRequestWithSubjectSet,
|
|
25
|
+
CheckPermissionRequestWithSubjectSetFromJSON,
|
|
26
|
+
CheckPermissionRequestWithSubjectSetFromJSONTyped,
|
|
27
|
+
CheckPermissionRequestWithSubjectSetToJSON,
|
|
28
|
+
} from './CheckPermissionRequestWithSubjectSet';
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @type CheckPermissionRequest
|
|
32
32
|
* Check permission request. Must provide exactly one of subject_id or subject_set.
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export type CheckPermissionRequest =
|
|
35
|
+
export type CheckPermissionRequest = CheckPermissionRequestWithSubjectId | CheckPermissionRequestWithSubjectSet;
|
|
36
36
|
|
|
37
37
|
export function CheckPermissionRequestFromJSON(json: any): CheckPermissionRequest {
|
|
38
38
|
return CheckPermissionRequestFromJSONTyped(json, false);
|
|
@@ -45,11 +45,11 @@ export function CheckPermissionRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
45
45
|
if (typeof json !== 'object') {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
48
|
+
if (instanceOfCheckPermissionRequestWithSubjectId(json)) {
|
|
49
|
+
return CheckPermissionRequestWithSubjectIdFromJSONTyped(json, true);
|
|
50
50
|
}
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
51
|
+
if (instanceOfCheckPermissionRequestWithSubjectSet(json)) {
|
|
52
|
+
return CheckPermissionRequestWithSubjectSetFromJSONTyped(json, true);
|
|
53
53
|
}
|
|
54
54
|
return {} as any;
|
|
55
55
|
}
|
|
@@ -65,11 +65,11 @@ export function CheckPermissionRequestToJSONTyped(value?: CheckPermissionRequest
|
|
|
65
65
|
if (typeof value !== 'object') {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
68
|
+
if (instanceOfCheckPermissionRequestWithSubjectId(value)) {
|
|
69
|
+
return CheckPermissionRequestWithSubjectIdToJSON(value as CheckPermissionRequestWithSubjectId);
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
71
|
+
if (instanceOfCheckPermissionRequestWithSubjectSet(value)) {
|
|
72
|
+
return CheckPermissionRequestWithSubjectSetToJSON(value as CheckPermissionRequestWithSubjectSet);
|
|
73
73
|
}
|
|
74
74
|
return {};
|
|
75
75
|
}
|
package/src/models/{CheckPermissionRequestOneOf.ts → CheckPermissionRequestWithSubjectId.ts}
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.9.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,41 +14,41 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Check permission request using a direct subject identifier
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface CheckPermissionRequestWithSubjectId
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface CheckPermissionRequestWithSubjectId {
|
|
22
22
|
/**
|
|
23
23
|
* The namespace of the permission check
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof CheckPermissionRequestWithSubjectId
|
|
26
26
|
*/
|
|
27
27
|
namespace: string;
|
|
28
28
|
/**
|
|
29
29
|
* The object to check permissions on
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof CheckPermissionRequestWithSubjectId
|
|
32
32
|
*/
|
|
33
33
|
object: string;
|
|
34
34
|
/**
|
|
35
35
|
* The relation/permission to check
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof CheckPermissionRequestWithSubjectId
|
|
38
38
|
*/
|
|
39
39
|
relation: string;
|
|
40
40
|
/**
|
|
41
41
|
* Direct subject identifier
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof CheckPermissionRequestWithSubjectId
|
|
44
44
|
*/
|
|
45
45
|
subjectId: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
49
|
+
* Check if a given object implements the CheckPermissionRequestWithSubjectId interface.
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
51
|
+
export function instanceOfCheckPermissionRequestWithSubjectId(value: object): value is CheckPermissionRequestWithSubjectId {
|
|
52
52
|
if (!('namespace' in value) || value['namespace'] === undefined) return false;
|
|
53
53
|
if (!('object' in value) || value['object'] === undefined) return false;
|
|
54
54
|
if (!('relation' in value) || value['relation'] === undefined) return false;
|
|
@@ -56,11 +56,11 @@ export function instanceOfCheckPermissionRequestOneOf(value: object): value is C
|
|
|
56
56
|
return true;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export function
|
|
60
|
-
return
|
|
59
|
+
export function CheckPermissionRequestWithSubjectIdFromJSON(json: any): CheckPermissionRequestWithSubjectId {
|
|
60
|
+
return CheckPermissionRequestWithSubjectIdFromJSONTyped(json, false);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export function
|
|
63
|
+
export function CheckPermissionRequestWithSubjectIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckPermissionRequestWithSubjectId {
|
|
64
64
|
if (json == null) {
|
|
65
65
|
return json;
|
|
66
66
|
}
|
|
@@ -73,11 +73,11 @@ export function CheckPermissionRequestOneOfFromJSONTyped(json: any, ignoreDiscri
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export function
|
|
77
|
-
return
|
|
76
|
+
export function CheckPermissionRequestWithSubjectIdToJSON(json: any): CheckPermissionRequestWithSubjectId {
|
|
77
|
+
return CheckPermissionRequestWithSubjectIdToJSONTyped(json, false);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export function
|
|
80
|
+
export function CheckPermissionRequestWithSubjectIdToJSONTyped(value?: CheckPermissionRequestWithSubjectId | null, ignoreDiscriminator: boolean = false): any {
|
|
81
81
|
if (value == null) {
|
|
82
82
|
return value;
|
|
83
83
|
}
|
package/src/models/{CheckPermissionRequestOneOf1.ts → CheckPermissionRequestWithSubjectSet.ts}
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.9.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,41 +22,41 @@ import {
|
|
|
22
22
|
} from './SubjectSetRequest';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Check permission request using a subject set
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface CheckPermissionRequestWithSubjectSet
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface CheckPermissionRequestWithSubjectSet {
|
|
30
30
|
/**
|
|
31
31
|
* The namespace of the permission check
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof CheckPermissionRequestWithSubjectSet
|
|
34
34
|
*/
|
|
35
35
|
namespace: string;
|
|
36
36
|
/**
|
|
37
37
|
* The object to check permissions on
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof CheckPermissionRequestWithSubjectSet
|
|
40
40
|
*/
|
|
41
41
|
object: string;
|
|
42
42
|
/**
|
|
43
43
|
* The relation/permission to check
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof CheckPermissionRequestWithSubjectSet
|
|
46
46
|
*/
|
|
47
47
|
relation: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {SubjectSetRequest}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof CheckPermissionRequestWithSubjectSet
|
|
52
52
|
*/
|
|
53
53
|
subjectSet: SubjectSetRequest;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Check if a given object implements the
|
|
57
|
+
* Check if a given object implements the CheckPermissionRequestWithSubjectSet interface.
|
|
58
58
|
*/
|
|
59
|
-
export function
|
|
59
|
+
export function instanceOfCheckPermissionRequestWithSubjectSet(value: object): value is CheckPermissionRequestWithSubjectSet {
|
|
60
60
|
if (!('namespace' in value) || value['namespace'] === undefined) return false;
|
|
61
61
|
if (!('object' in value) || value['object'] === undefined) return false;
|
|
62
62
|
if (!('relation' in value) || value['relation'] === undefined) return false;
|
|
@@ -64,11 +64,11 @@ export function instanceOfCheckPermissionRequestOneOf1(value: object): value is
|
|
|
64
64
|
return true;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export function
|
|
68
|
-
return
|
|
67
|
+
export function CheckPermissionRequestWithSubjectSetFromJSON(json: any): CheckPermissionRequestWithSubjectSet {
|
|
68
|
+
return CheckPermissionRequestWithSubjectSetFromJSONTyped(json, false);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export function
|
|
71
|
+
export function CheckPermissionRequestWithSubjectSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckPermissionRequestWithSubjectSet {
|
|
72
72
|
if (json == null) {
|
|
73
73
|
return json;
|
|
74
74
|
}
|
|
@@ -81,11 +81,11 @@ export function CheckPermissionRequestOneOf1FromJSONTyped(json: any, ignoreDiscr
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
85
|
-
return
|
|
84
|
+
export function CheckPermissionRequestWithSubjectSetToJSON(json: any): CheckPermissionRequestWithSubjectSet {
|
|
85
|
+
return CheckPermissionRequestWithSubjectSetToJSONTyped(json, false);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function
|
|
88
|
+
export function CheckPermissionRequestWithSubjectSetToJSONTyped(value?: CheckPermissionRequestWithSubjectSet | null, ignoreDiscriminator: boolean = false): any {
|
|
89
89
|
if (value == null) {
|
|
90
90
|
return value;
|
|
91
91
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control via Ory Keto ## Authentication Most endpoints require authentication via session cookies or JWT tokens. Use the appropriate security scheme based on the endpoint requirements.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.9.
|
|
7
|
+
* The version of the OpenAPI document: 0.9.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Omnibase REST API
|
|
5
5
|
* Self-hostable Backend-as-a-Service providing database management, authentication, payments, storage, and email services. ## Features - **Database**: PostgreSQL with RLS and migrations - **Authentication**: Ory Kratos integration with session management - **Payments**: Stripe integration with version-controlled billing configs - **Storage**: S3-compatible object storage with RLS - **Email**: Transactional email service - **Permissions**: Fine-grained access control 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.18
|
|
8
8
|
* Contact: support@omnibase.dev
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { CreateRelationshipRequestWithSubjectId } from './CreateRelationshipRequestWithSubjectId';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
22
|
-
import type {
|
|
17
|
+
instanceOfCreateRelationshipRequestWithSubjectId,
|
|
18
|
+
CreateRelationshipRequestWithSubjectIdFromJSON,
|
|
19
|
+
CreateRelationshipRequestWithSubjectIdFromJSONTyped,
|
|
20
|
+
CreateRelationshipRequestWithSubjectIdToJSON,
|
|
21
|
+
} from './CreateRelationshipRequestWithSubjectId';
|
|
22
|
+
import type { CreateRelationshipRequestWithSubjectSet } from './CreateRelationshipRequestWithSubjectSet';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from './
|
|
24
|
+
instanceOfCreateRelationshipRequestWithSubjectSet,
|
|
25
|
+
CreateRelationshipRequestWithSubjectSetFromJSON,
|
|
26
|
+
CreateRelationshipRequestWithSubjectSetFromJSONTyped,
|
|
27
|
+
CreateRelationshipRequestWithSubjectSetToJSON,
|
|
28
|
+
} from './CreateRelationshipRequestWithSubjectSet';
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @type CreateRelationshipRequest
|
|
32
32
|
* Create relationship request. Must provide exactly one of subject_id or subject_set.
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export type CreateRelationshipRequest =
|
|
35
|
+
export type CreateRelationshipRequest = CreateRelationshipRequestWithSubjectId | CreateRelationshipRequestWithSubjectSet;
|
|
36
36
|
|
|
37
37
|
export function CreateRelationshipRequestFromJSON(json: any): CreateRelationshipRequest {
|
|
38
38
|
return CreateRelationshipRequestFromJSONTyped(json, false);
|
|
@@ -45,11 +45,11 @@ export function CreateRelationshipRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
45
45
|
if (typeof json !== 'object') {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
48
|
+
if (instanceOfCreateRelationshipRequestWithSubjectId(json)) {
|
|
49
|
+
return CreateRelationshipRequestWithSubjectIdFromJSONTyped(json, true);
|
|
50
50
|
}
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
51
|
+
if (instanceOfCreateRelationshipRequestWithSubjectSet(json)) {
|
|
52
|
+
return CreateRelationshipRequestWithSubjectSetFromJSONTyped(json, true);
|
|
53
53
|
}
|
|
54
54
|
return {} as any;
|
|
55
55
|
}
|
|
@@ -65,11 +65,11 @@ export function CreateRelationshipRequestToJSONTyped(value?: CreateRelationshipR
|
|
|
65
65
|
if (typeof value !== 'object') {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
68
|
+
if (instanceOfCreateRelationshipRequestWithSubjectId(value)) {
|
|
69
|
+
return CreateRelationshipRequestWithSubjectIdToJSON(value as CreateRelationshipRequestWithSubjectId);
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
71
|
+
if (instanceOfCreateRelationshipRequestWithSubjectSet(value)) {
|
|
72
|
+
return CreateRelationshipRequestWithSubjectSetToJSON(value as CreateRelationshipRequestWithSubjectSet);
|
|
73
73
|
}
|
|
74
74
|
return {};
|
|
75
75
|
}
|