@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.
Files changed (187) hide show
  1. package/.openapi-generator/FILES +12 -8
  2. package/README.md +9 -7
  3. package/docs/CheckPermissionRequestWithSubjectId.md +41 -0
  4. package/docs/CheckPermissionRequestWithSubjectSet.md +41 -0
  5. package/docs/CreateRelationshipRequestWithSubjectId.md +41 -0
  6. package/docs/CreateRelationshipRequestWithSubjectSet.md +41 -0
  7. package/docs/DeleteRelationshipRequestWithSubjectId.md +41 -0
  8. package/docs/DeleteRelationshipRequestWithSubjectSet.md +41 -0
  9. package/docs/NamespaceDefinition.md +2 -0
  10. package/docs/V1TenantsApi.md +12 -4
  11. package/package.json +1 -1
  12. package/src/apis/V1AuthApi.ts +1 -1
  13. package/src/apis/V1ConfigurationApi.ts +1 -1
  14. package/src/apis/V1EventsApi.ts +1 -1
  15. package/src/apis/V1PaymentsApi.ts +1 -1
  16. package/src/apis/V1PermissionsApi.ts +1 -1
  17. package/src/apis/V1StorageApi.ts +1 -1
  18. package/src/apis/V1StripeApi.ts +1 -1
  19. package/src/apis/V1TenantsApi.ts +14 -6
  20. package/src/models/AcceptInvite200Response.ts +1 -1
  21. package/src/models/AcceptInviteRequest.ts +1 -1
  22. package/src/models/AcceptInviteResponse.ts +1 -1
  23. package/src/models/ActiveTenantResponse.ts +1 -1
  24. package/src/models/AddSubscription200Response.ts +1 -1
  25. package/src/models/AddSubscriptionRequest.ts +1 -1
  26. package/src/models/AddSubscriptionResponse.ts +1 -1
  27. package/src/models/ArchiveAllResponse.ts +1 -1
  28. package/src/models/ArchiveAllStripeConfig200Response.ts +1 -1
  29. package/src/models/BadRequest.ts +1 -1
  30. package/src/models/BadRequestResponse.ts +1 -1
  31. package/src/models/BillingInterval.ts +1 -1
  32. package/src/models/BillingStatusResponse.ts +1 -1
  33. package/src/models/CheckPermission200Response.ts +1 -1
  34. package/src/models/CheckPermissionRequest.ts +22 -22
  35. package/src/models/{CheckPermissionRequestOneOf.ts → CheckPermissionRequestWithSubjectId.ts} +16 -16
  36. package/src/models/{CheckPermissionRequestOneOf1.ts → CheckPermissionRequestWithSubjectSet.ts} +16 -16
  37. package/src/models/CheckPermissionResponse.ts +1 -1
  38. package/src/models/ConfigHistoryItem.ts +1 -1
  39. package/src/models/ConfigHistoryPagination.ts +1 -1
  40. package/src/models/ConfigHistoryResponse.ts +1 -1
  41. package/src/models/ConflictResponse.ts +1 -1
  42. package/src/models/ConvertStripeIDToConfigID200Response.ts +1 -1
  43. package/src/models/CreateCheckout200Response.ts +1 -1
  44. package/src/models/CreateCheckoutRequest.ts +1 -1
  45. package/src/models/CreateCheckoutResponse.ts +1 -1
  46. package/src/models/CreateCustomerPortal200Response.ts +1 -1
  47. package/src/models/CreateEmailTemplateRequest.ts +1 -1
  48. package/src/models/CreateInvite200Response.ts +1 -1
  49. package/src/models/CreateOrUpdateEmailTemplate200Response.ts +1 -1
  50. package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +1 -1
  51. package/src/models/CreatePortalRequest.ts +1 -1
  52. package/src/models/CreatePortalResponse.ts +1 -1
  53. package/src/models/CreateRelationship200Response.ts +1 -1
  54. package/src/models/CreateRelationshipRequest.ts +22 -22
  55. package/src/models/{CreateRelationshipRequestOneOf.ts → CreateRelationshipRequestWithSubjectId.ts} +16 -16
  56. package/src/models/{CreateRelationshipRequestOneOf1.ts → CreateRelationshipRequestWithSubjectSet.ts} +16 -16
  57. package/src/models/CreateRelationshipResponse.ts +1 -1
  58. package/src/models/CreateRole200Response.ts +1 -1
  59. package/src/models/CreateRoleRequest.ts +1 -1
  60. package/src/models/CreateTenant200Response.ts +1 -1
  61. package/src/models/CreateTenantRequest.ts +1 -1
  62. package/src/models/CreateTenantResponse.ts +1 -1
  63. package/src/models/CreateTenantUserInviteRequest.ts +1 -1
  64. package/src/models/CreateTenantUserInviteResponse.ts +1 -1
  65. package/src/models/CreateUser200Response.ts +1 -1
  66. package/src/models/CreateUserRequest.ts +1 -1
  67. package/src/models/CreateUserRequestName.ts +1 -1
  68. package/src/models/CurrencyCode.ts +1 -1
  69. package/src/models/DeleteEmailTemplate200Response.ts +1 -1
  70. package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +1 -1
  71. package/src/models/DeleteObject200Response.ts +1 -1
  72. package/src/models/DeleteObjectRequest.ts +1 -1
  73. package/src/models/DeleteRelationship200Response.ts +1 -1
  74. package/src/models/DeleteRelationshipRequest.ts +22 -22
  75. package/src/models/DeleteRelationshipRequestWithSubjectId.ts +93 -0
  76. package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +101 -0
  77. package/src/models/DeleteRelationshipResponse.ts +1 -1
  78. package/src/models/DeleteRole200Response.ts +1 -1
  79. package/src/models/DeleteRoleResponse.ts +1 -1
  80. package/src/models/DeleteTenant200Response.ts +1 -1
  81. package/src/models/DeleteTenantResponse.ts +1 -1
  82. package/src/models/DeleteTenantUserRequest.ts +1 -1
  83. package/src/models/DeployPermissionNamespaces200Response.ts +1 -1
  84. package/src/models/DownloadFile200Response.ts +1 -1
  85. package/src/models/DownloadRequest.ts +1 -1
  86. package/src/models/DownloadResponse.ts +1 -1
  87. package/src/models/EmailTemplate.ts +1 -1
  88. package/src/models/ErrorResponse.ts +1 -1
  89. package/src/models/ForbiddenResponse.ts +1 -1
  90. package/src/models/GetActiveTenant200Response.ts +1 -1
  91. package/src/models/GetEmailTemplates200Response.ts +1 -1
  92. package/src/models/GetEmailTemplates200ResponseAllOfData.ts +1 -1
  93. package/src/models/GetIdentity200Response.ts +1 -1
  94. package/src/models/GetRoleDefinitions200Response.ts +1 -1
  95. package/src/models/GetSession200Response.ts +1 -1
  96. package/src/models/GetStripeConfig200Response.ts +1 -1
  97. package/src/models/GetStripeConfigHistory200Response.ts +1 -1
  98. package/src/models/GetTenantBillingStatus200Response.ts +1 -1
  99. package/src/models/GetTenantJWT200Response.ts +1 -1
  100. package/src/models/InternalServerError.ts +1 -1
  101. package/src/models/InternalServerErrorResponse.ts +1 -1
  102. package/src/models/JWTTokenResponse.ts +1 -1
  103. package/src/models/KratosIdentity.ts +1 -1
  104. package/src/models/KratosIdentityCredentials.ts +1 -1
  105. package/src/models/KratosIdentityCredentialsPassword.ts +1 -1
  106. package/src/models/KratosIdentityRecoveryAddressesInner.ts +1 -1
  107. package/src/models/KratosIdentityTraits.ts +1 -1
  108. package/src/models/KratosIdentityTraitsName.ts +1 -1
  109. package/src/models/KratosIdentityVerifiableAddressesInner.ts +1 -1
  110. package/src/models/ListRoles200Response.ts +1 -1
  111. package/src/models/ListTenantSubscriptions200Response.ts +1 -1
  112. package/src/models/ListTenantUsers200Response.ts +1 -1
  113. package/src/models/ListTenants200Response.ts +1 -1
  114. package/src/models/ListTenantsResponse.ts +1 -1
  115. package/src/models/Logout200Response.ts +1 -1
  116. package/src/models/LogoutResponse.ts +1 -1
  117. package/src/models/MessageResponse.ts +1 -1
  118. package/src/models/Meter.ts +1 -1
  119. package/src/models/MeterCustomerMapping.ts +1 -1
  120. package/src/models/MeterDefaultAggregation.ts +1 -1
  121. package/src/models/MeterValueSettings.ts +1 -1
  122. package/src/models/MeterWithStripeID.ts +1 -1
  123. package/src/models/MigrationErrorResponse.ts +1 -1
  124. package/src/models/MigrationSuccessResponse.ts +1 -1
  125. package/src/models/NamespaceDefinition.ts +9 -1
  126. package/src/models/NamespaceDefinitionsResponse.ts +1 -1
  127. package/src/models/NamespaceDeploymentResponse.ts +1 -1
  128. package/src/models/NotFound.ts +1 -1
  129. package/src/models/NotFoundResponse.ts +1 -1
  130. package/src/models/PerUnitBillingScheme.ts +1 -1
  131. package/src/models/PerUnitPrice.ts +1 -1
  132. package/src/models/Price.ts +1 -1
  133. package/src/models/PriceDisplay.ts +1 -1
  134. package/src/models/PriceLimit.ts +1 -1
  135. package/src/models/PriceUI.ts +1 -1
  136. package/src/models/PriceWithStripeID.ts +1 -1
  137. package/src/models/Product.ts +1 -1
  138. package/src/models/ProductUI.ts +1 -1
  139. package/src/models/ProductWithStripeIDs.ts +1 -1
  140. package/src/models/PullStripeConfig200Response.ts +1 -1
  141. package/src/models/RecordUsageRequest.ts +1 -1
  142. package/src/models/Relationship.ts +1 -1
  143. package/src/models/RemoveSubscription200Response.ts +1 -1
  144. package/src/models/RemoveSubscriptionRequest.ts +1 -1
  145. package/src/models/RemoveSubscriptionResponse.ts +1 -1
  146. package/src/models/Role.ts +1 -1
  147. package/src/models/RolesListResponse.ts +1 -1
  148. package/src/models/SchemasConflictResponse.ts +1 -1
  149. package/src/models/SessionResponse.ts +1 -1
  150. package/src/models/StripeConfigResponse.ts +1 -1
  151. package/src/models/StripeConfigUpdateRequest.ts +1 -1
  152. package/src/models/StripeConfigValidateRequest.ts +1 -1
  153. package/src/models/StripeConfiguration.ts +1 -1
  154. package/src/models/StripeConfigurationWithIDs.ts +1 -1
  155. package/src/models/StripeIDConversionResponse.ts +1 -1
  156. package/src/models/SubjectSet.ts +1 -1
  157. package/src/models/SubjectSetRequest.ts +1 -1
  158. package/src/models/SubscriptionResponse.ts +1 -1
  159. package/src/models/SuccessResponse.ts +1 -1
  160. package/src/models/SuccessResponseData.ts +1 -1
  161. package/src/models/SwitchActiveTenant200Response.ts +1 -1
  162. package/src/models/SwitchTenantRequest.ts +1 -1
  163. package/src/models/SwitchTenantResponse.ts +1 -1
  164. package/src/models/Tenant.ts +1 -1
  165. package/src/models/TenantInvite.ts +1 -1
  166. package/src/models/TenantSettings.ts +1 -1
  167. package/src/models/TenantUserResponse.ts +1 -1
  168. package/src/models/Tier.ts +1 -1
  169. package/src/models/TierUpTo.ts +1 -1
  170. package/src/models/TieredBillingScheme.ts +1 -1
  171. package/src/models/TieredPrice.ts +1 -1
  172. package/src/models/TiersMode.ts +1 -1
  173. package/src/models/Unauthorized.ts +1 -1
  174. package/src/models/UnauthorizedResponse.ts +1 -1
  175. package/src/models/UpdateRoleRequest.ts +1 -1
  176. package/src/models/UpdateTenantUserRole200Response.ts +1 -1
  177. package/src/models/UpdateTenantUserRoleRequest.ts +1 -1
  178. package/src/models/UpdateTenantUserRoleResponse.ts +1 -1
  179. package/src/models/UploadFile200Response.ts +1 -1
  180. package/src/models/UploadRequest.ts +1 -1
  181. package/src/models/UploadResponse.ts +1 -1
  182. package/src/models/UsageType.ts +1 -1
  183. package/src/models/UserTenantListItem.ts +1 -1
  184. package/src/models/WhoAmI200Response.ts +1 -1
  185. package/src/models/WhoAmIResponse.ts +1 -1
  186. package/src/models/index.ts +6 -4
  187. package/src/runtime.ts +1 -1
@@ -16,8 +16,8 @@ docs/BillingInterval.md
16
16
  docs/BillingStatusResponse.md
17
17
  docs/CheckPermission200Response.md
18
18
  docs/CheckPermissionRequest.md
19
- docs/CheckPermissionRequestOneOf.md
20
- docs/CheckPermissionRequestOneOf1.md
19
+ docs/CheckPermissionRequestWithSubjectId.md
20
+ docs/CheckPermissionRequestWithSubjectSet.md
21
21
  docs/CheckPermissionResponse.md
22
22
  docs/ConfigHistoryItem.md
23
23
  docs/ConfigHistoryPagination.md
@@ -36,8 +36,8 @@ docs/CreatePortalRequest.md
36
36
  docs/CreatePortalResponse.md
37
37
  docs/CreateRelationship200Response.md
38
38
  docs/CreateRelationshipRequest.md
39
- docs/CreateRelationshipRequestOneOf.md
40
- docs/CreateRelationshipRequestOneOf1.md
39
+ docs/CreateRelationshipRequestWithSubjectId.md
40
+ docs/CreateRelationshipRequestWithSubjectSet.md
41
41
  docs/CreateRelationshipResponse.md
42
42
  docs/CreateRole200Response.md
43
43
  docs/CreateRoleRequest.md
@@ -56,6 +56,8 @@ docs/DeleteObject200Response.md
56
56
  docs/DeleteObjectRequest.md
57
57
  docs/DeleteRelationship200Response.md
58
58
  docs/DeleteRelationshipRequest.md
59
+ docs/DeleteRelationshipRequestWithSubjectId.md
60
+ docs/DeleteRelationshipRequestWithSubjectSet.md
59
61
  docs/DeleteRelationshipResponse.md
60
62
  docs/DeleteRole200Response.md
61
63
  docs/DeleteRoleResponse.md
@@ -199,8 +201,8 @@ src/models/BillingInterval.ts
199
201
  src/models/BillingStatusResponse.ts
200
202
  src/models/CheckPermission200Response.ts
201
203
  src/models/CheckPermissionRequest.ts
202
- src/models/CheckPermissionRequestOneOf.ts
203
- src/models/CheckPermissionRequestOneOf1.ts
204
+ src/models/CheckPermissionRequestWithSubjectId.ts
205
+ src/models/CheckPermissionRequestWithSubjectSet.ts
204
206
  src/models/CheckPermissionResponse.ts
205
207
  src/models/ConfigHistoryItem.ts
206
208
  src/models/ConfigHistoryPagination.ts
@@ -219,8 +221,8 @@ src/models/CreatePortalRequest.ts
219
221
  src/models/CreatePortalResponse.ts
220
222
  src/models/CreateRelationship200Response.ts
221
223
  src/models/CreateRelationshipRequest.ts
222
- src/models/CreateRelationshipRequestOneOf.ts
223
- src/models/CreateRelationshipRequestOneOf1.ts
224
+ src/models/CreateRelationshipRequestWithSubjectId.ts
225
+ src/models/CreateRelationshipRequestWithSubjectSet.ts
224
226
  src/models/CreateRelationshipResponse.ts
225
227
  src/models/CreateRole200Response.ts
226
228
  src/models/CreateRoleRequest.ts
@@ -239,6 +241,8 @@ src/models/DeleteObject200Response.ts
239
241
  src/models/DeleteObjectRequest.ts
240
242
  src/models/DeleteRelationship200Response.ts
241
243
  src/models/DeleteRelationshipRequest.ts
244
+ src/models/DeleteRelationshipRequestWithSubjectId.ts
245
+ src/models/DeleteRelationshipRequestWithSubjectSet.ts
242
246
  src/models/DeleteRelationshipResponse.ts
243
247
  src/models/DeleteRole200Response.ts
244
248
  src/models/DeleteRoleResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @omnibase/core-js@0.9.16
1
+ # @omnibase/core-js@0.9.18
2
2
 
3
3
  A TypeScript SDK client for the api.omnibase.tech API.
4
4
 
@@ -122,8 +122,8 @@ All URIs are relative to *https://api.omnibase.tech*
122
122
  - [BillingStatusResponse](docs/BillingStatusResponse.md)
123
123
  - [CheckPermission200Response](docs/CheckPermission200Response.md)
124
124
  - [CheckPermissionRequest](docs/CheckPermissionRequest.md)
125
- - [CheckPermissionRequestOneOf](docs/CheckPermissionRequestOneOf.md)
126
- - [CheckPermissionRequestOneOf1](docs/CheckPermissionRequestOneOf1.md)
125
+ - [CheckPermissionRequestWithSubjectId](docs/CheckPermissionRequestWithSubjectId.md)
126
+ - [CheckPermissionRequestWithSubjectSet](docs/CheckPermissionRequestWithSubjectSet.md)
127
127
  - [CheckPermissionResponse](docs/CheckPermissionResponse.md)
128
128
  - [ConfigHistoryItem](docs/ConfigHistoryItem.md)
129
129
  - [ConfigHistoryPagination](docs/ConfigHistoryPagination.md)
@@ -142,8 +142,8 @@ All URIs are relative to *https://api.omnibase.tech*
142
142
  - [CreatePortalResponse](docs/CreatePortalResponse.md)
143
143
  - [CreateRelationship200Response](docs/CreateRelationship200Response.md)
144
144
  - [CreateRelationshipRequest](docs/CreateRelationshipRequest.md)
145
- - [CreateRelationshipRequestOneOf](docs/CreateRelationshipRequestOneOf.md)
146
- - [CreateRelationshipRequestOneOf1](docs/CreateRelationshipRequestOneOf1.md)
145
+ - [CreateRelationshipRequestWithSubjectId](docs/CreateRelationshipRequestWithSubjectId.md)
146
+ - [CreateRelationshipRequestWithSubjectSet](docs/CreateRelationshipRequestWithSubjectSet.md)
147
147
  - [CreateRelationshipResponse](docs/CreateRelationshipResponse.md)
148
148
  - [CreateRole200Response](docs/CreateRole200Response.md)
149
149
  - [CreateRoleRequest](docs/CreateRoleRequest.md)
@@ -162,6 +162,8 @@ All URIs are relative to *https://api.omnibase.tech*
162
162
  - [DeleteObjectRequest](docs/DeleteObjectRequest.md)
163
163
  - [DeleteRelationship200Response](docs/DeleteRelationship200Response.md)
164
164
  - [DeleteRelationshipRequest](docs/DeleteRelationshipRequest.md)
165
+ - [DeleteRelationshipRequestWithSubjectId](docs/DeleteRelationshipRequestWithSubjectId.md)
166
+ - [DeleteRelationshipRequestWithSubjectSet](docs/DeleteRelationshipRequestWithSubjectSet.md)
165
167
  - [DeleteRelationshipResponse](docs/DeleteRelationshipResponse.md)
166
168
  - [DeleteRole200Response](docs/DeleteRole200Response.md)
167
169
  - [DeleteRoleResponse](docs/DeleteRoleResponse.md)
@@ -304,8 +306,8 @@ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.or
304
306
  and is automatically generated by the
305
307
  [OpenAPI Generator](https://openapi-generator.tech) project:
306
308
 
307
- - API version: `0.9.16`
308
- - Package version: `0.9.16`
309
+ - API version: `0.9.18`
310
+ - Package version: `0.9.18`
309
311
  - Generator version: `7.17.0`
310
312
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
311
313
 
@@ -0,0 +1,41 @@
1
+
2
+ # CheckPermissionRequestWithSubjectId
3
+
4
+ Check permission request using a direct subject identifier
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CheckPermissionRequestWithSubjectId } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectId": null,
26
+ } satisfies CheckPermissionRequestWithSubjectId
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as CheckPermissionRequestWithSubjectId
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # CheckPermissionRequestWithSubjectSet
3
+
4
+ Check permission request using a subject set
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectSet` | [SubjectSetRequest](SubjectSetRequest.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CheckPermissionRequestWithSubjectSet } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectSet": null,
26
+ } satisfies CheckPermissionRequestWithSubjectSet
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as CheckPermissionRequestWithSubjectSet
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # CreateRelationshipRequestWithSubjectId
3
+
4
+ Create relationship request using a direct subject identifier
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CreateRelationshipRequestWithSubjectId } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectId": null,
26
+ } satisfies CreateRelationshipRequestWithSubjectId
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as CreateRelationshipRequestWithSubjectId
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # CreateRelationshipRequestWithSubjectSet
3
+
4
+ Create relationship request using a subject set
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectSet` | [SubjectSetRequest](SubjectSetRequest.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { CreateRelationshipRequestWithSubjectSet } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectSet": null,
26
+ } satisfies CreateRelationshipRequestWithSubjectSet
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as CreateRelationshipRequestWithSubjectSet
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # DeleteRelationshipRequestWithSubjectId
3
+
4
+ Delete relationship request using a direct subject identifier
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { DeleteRelationshipRequestWithSubjectId } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectId": null,
26
+ } satisfies DeleteRelationshipRequestWithSubjectId
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as DeleteRelationshipRequestWithSubjectId
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # DeleteRelationshipRequestWithSubjectSet
3
+
4
+ Delete relationship request using a subject set
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `namespace` | string
11
+ `object` | string
12
+ `relation` | string
13
+ `subjectSet` | [SubjectSetRequest](SubjectSetRequest.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { DeleteRelationshipRequestWithSubjectSet } from '@omnibase/core-js'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "namespace": null,
23
+ "object": null,
24
+ "relation": null,
25
+ "subjectSet": null,
26
+ } satisfies DeleteRelationshipRequestWithSubjectSet
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as DeleteRelationshipRequestWithSubjectSet
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `id` | string
11
11
  `namespace` | string
12
12
  `relations` | Array<string>
13
+ `subjectRelations` | { [key: string]: Array<string>; }
13
14
  `updatedAt` | Date
14
15
 
15
16
  ## Example
@@ -22,6 +23,7 @@ const example = {
22
23
  "id": bfab650b-f834-4904-a4e8-41343fea86bc,
23
24
  "namespace": Tenant,
24
25
  "relations": [can_delete_tenant, can_invite_user, can_update_user_role],
26
+ "subjectRelations": {User=[can_delete_tenant, can_invite_user, can_rotate_keys], ApiKey=[can_rotate_keys, can_view_db_secret_key]},
25
27
  "updatedAt": 2025-11-10T00:33:08.720326Z,
26
28
  } satisfies NamespaceDefinition
27
29
 
@@ -610,11 +610,11 @@ example().catch(console.error);
610
610
 
611
611
  ## getRoleDefinitions
612
612
 
613
- > GetRoleDefinitions200Response getRoleDefinitions()
613
+ > GetRoleDefinitions200Response getRoleDefinitions(subject)
614
614
 
615
615
  Get namespace definitions
616
616
 
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
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 - Filter by subject type for API key creation
618
618
 
619
619
  ### Example
620
620
 
@@ -637,8 +637,13 @@ async function example() {
637
637
  });
638
638
  const api = new V1TenantsApi(config);
639
639
 
640
+ const body = {
641
+ // string | Filter to only return relations that accept this subject type (e.g., \"ApiKey\", \"User\") (optional)
642
+ subject: ApiKey,
643
+ } satisfies GetRoleDefinitionsRequest;
644
+
640
645
  try {
641
- const data = await api.getRoleDefinitions();
646
+ const data = await api.getRoleDefinitions(body);
642
647
  console.log(data);
643
648
  } catch (error) {
644
649
  console.error(error);
@@ -651,7 +656,10 @@ example().catch(console.error);
651
656
 
652
657
  ### Parameters
653
658
 
654
- This endpoint does not need any parameter.
659
+
660
+ | Name | Type | Description | Notes |
661
+ |------------- | ------------- | ------------- | -------------|
662
+ | **subject** | `string` | Filter to only return relations that accept this subject type (e.g., \"ApiKey\", \"User\") | [Optional] [Defaults to `undefined`] |
655
663
 
656
664
  ### Return type
657
665
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnibase/core-js",
3
- "version": "0.9.16",
3
+ "version": "0.9.18",
4
4
  "description": "OpenAPI client for @omnibase/core-js",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.16
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.16
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.16
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.16
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.16
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.16
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.16
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.16
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).
@@ -149,6 +149,10 @@ export interface DeleteTenantRequest {
149
149
  xTenantId?: string;
150
150
  }
151
151
 
152
+ export interface GetRoleDefinitionsRequest {
153
+ subject?: string;
154
+ }
155
+
152
156
  export interface GetTenantJWTRequest {
153
157
  xUserId?: string;
154
158
  xTenantId?: string;
@@ -566,12 +570,16 @@ export class V1TenantsApi extends runtime.BaseAPI {
566
570
  }
567
571
 
568
572
  /**
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
573
+ * 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 - Filter by subject type for API key creation
570
574
  * Get namespace definitions
571
575
  */
572
- async getRoleDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRoleDefinitions200Response>> {
576
+ async getRoleDefinitionsRaw(requestParameters: GetRoleDefinitionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRoleDefinitions200Response>> {
573
577
  const queryParameters: any = {};
574
578
 
579
+ if (requestParameters['subject'] != null) {
580
+ queryParameters['subject'] = requestParameters['subject'];
581
+ }
582
+
575
583
  const headerParameters: runtime.HTTPHeaders = {};
576
584
 
577
585
  if (this.configuration && this.configuration.apiKey) {
@@ -596,11 +604,11 @@ export class V1TenantsApi extends runtime.BaseAPI {
596
604
  }
597
605
 
598
606
  /**
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
607
+ * 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 - Filter by subject type for API key creation
600
608
  * Get namespace definitions
601
609
  */
602
- async getRoleDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRoleDefinitions200Response> {
603
- const response = await this.getRoleDefinitionsRaw(initOverrides);
610
+ async getRoleDefinitions(requestParameters: GetRoleDefinitionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRoleDefinitions200Response> {
611
+ const response = await this.getRoleDefinitionsRaw(requestParameters, initOverrides);
604
612
  return await response.value();
605
613
  }
606
614
 
@@ -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.16
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.16
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.16
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.16
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.16
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.16
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.16
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.16
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).