@omnibase/core-js 0.10.2 → 0.12.1
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 +16 -2
- package/README.md +14 -4
- package/docs/AddInvoiceLineItemWithConfigPriceRequest.md +42 -0
- package/docs/AddInvoiceLineItemWithPriceIDRequest.md +3 -2
- package/docs/AddInvoiceLineItemWithStripePriceRequest.md +42 -0
- package/docs/GetTenantByID200Response.md +36 -0
- package/docs/GetTenantByIDResponse.md +35 -0
- package/docs/GetTenantByStripeCustomerID200Response.md +36 -0
- package/docs/GetTenantByStripeCustomerIDResponse.md +35 -0
- package/docs/GetTenantSubscription200Response.md +36 -0
- package/docs/PullStripeConfig200Response.md +1 -1
- package/docs/StripeConfigurationWithIDs.md +2 -0
- package/docs/TooManyRequestsResponse.md +37 -0
- package/docs/V1AuthApi.md +15 -5
- package/docs/V1ConfigurationApi.md +9 -3
- package/docs/V1PaymentsApi.md +19 -0
- package/docs/V1TenantsApi.md +240 -0
- package/docs/V1WebhooksApi.md +2 -1
- package/package.json +2 -2
- package/src/apis/V1AuthApi.ts +18 -6
- package/src/apis/V1ConfigurationApi.ts +13 -1
- package/src/apis/V1EventsApi.ts +1 -1
- package/src/apis/V1PaymentsApi.ts +7 -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 +163 -1
- package/src/apis/V1WebhooksApi.ts +4 -1
- 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/AddInvoiceLineItem200Response.ts +1 -1
- package/src/models/AddInvoiceLineItemRequest.ts +2 -2
- package/src/models/AddInvoiceLineItemWithConfigPriceRequest.ts +111 -0
- package/src/models/AddInvoiceLineItemWithPriceIDRequest.ts +38 -80
- package/src/models/AddInvoiceLineItemWithStripePriceRequest.ts +111 -0
- 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 +1 -1
- package/src/models/CheckPermissionRequestWithSubjectId.ts +1 -1
- package/src/models/CheckPermissionRequestWithSubjectSet.ts +1 -1
- 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/ConfigureWebhooks200Response.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/CreateInvoice200Response.ts +1 -1
- package/src/models/CreateInvoiceRequest.ts +2 -2
- 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 +1 -1
- package/src/models/CreateRelationshipRequestWithSubjectId.ts +1 -1
- package/src/models/CreateRelationshipRequestWithSubjectSet.ts +1 -1
- 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 +2 -2
- 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 +1 -1
- package/src/models/DeleteRelationshipRequestWithSubjectId.ts +1 -1
- package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +1 -1
- 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/FinalizeInvoiceRequest.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/GetMeterByID200Response.ts +1 -1
- package/src/models/GetPriceByID200Response.ts +1 -1
- package/src/models/GetProductByID200Response.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/GetTenantByID200Response.ts +82 -0
- package/src/models/GetTenantByIDResponse.ts +74 -0
- package/src/models/GetTenantByStripeCustomerID200Response.ts +82 -0
- package/src/models/GetTenantByStripeCustomerIDResponse.ts +74 -0
- package/src/models/GetTenantJWT200Response.ts +1 -1
- package/src/models/GetTenantSubscription200Response.ts +82 -0
- package/src/models/GetWebhookSecret200Response.ts +1 -1
- package/src/models/InternalServerError.ts +1 -1
- package/src/models/InternalServerErrorResponse.ts +1 -1
- package/src/models/InvoiceLineItemResponse.ts +1 -1
- package/src/models/InvoiceResponse.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/MeterResponse.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 +1 -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/PriceResponse.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/ProductResponse.ts +1 -1
- package/src/models/ProductUI.ts +1 -1
- package/src/models/ProductWithStripeIDs.ts +1 -1
- package/src/models/PullStripeConfig200Response.ts +11 -11
- 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/StripeConfigurationWithIDs.ts +16 -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 +2 -2
- 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/TooManyRequestsResponse.ts +75 -0
- package/src/models/Unauthorized.ts +1 -1
- package/src/models/UnauthorizedResponse.ts +1 -1
- package/src/models/UpdateInvoiceRequest.ts +2 -2
- 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/WebhookEndpointConfig.ts +65 -2
- package/src/models/WebhookResult.ts +1 -1
- package/src/models/WebhookSecretResponse.ts +1 -1
- package/src/models/WebhooksConfigRequest.ts +2 -2
- package/src/models/WebhooksConfigResponse.ts +1 -1
- package/src/models/WhoAmI200Response.ts +1 -1
- package/src/models/WhoAmIResponse.ts +1 -1
- package/src/models/index.ts +8 -1
- package/src/runtime.ts +1 -1
- package/src/models/StripeConfiguration.ts +0 -98
package/.openapi-generator/FILES
CHANGED
|
@@ -7,7 +7,9 @@ docs/AcceptInviteResponse.md
|
|
|
7
7
|
docs/ActiveTenantResponse.md
|
|
8
8
|
docs/AddInvoiceLineItem200Response.md
|
|
9
9
|
docs/AddInvoiceLineItemRequest.md
|
|
10
|
+
docs/AddInvoiceLineItemWithConfigPriceRequest.md
|
|
10
11
|
docs/AddInvoiceLineItemWithPriceIDRequest.md
|
|
12
|
+
docs/AddInvoiceLineItemWithStripePriceRequest.md
|
|
11
13
|
docs/AddSubscription200Response.md
|
|
12
14
|
docs/AddSubscriptionRequest.md
|
|
13
15
|
docs/AddSubscriptionResponse.md
|
|
@@ -90,7 +92,12 @@ docs/GetSession200Response.md
|
|
|
90
92
|
docs/GetStripeConfig200Response.md
|
|
91
93
|
docs/GetStripeConfigHistory200Response.md
|
|
92
94
|
docs/GetTenantBillingStatus200Response.md
|
|
95
|
+
docs/GetTenantByID200Response.md
|
|
96
|
+
docs/GetTenantByIDResponse.md
|
|
97
|
+
docs/GetTenantByStripeCustomerID200Response.md
|
|
98
|
+
docs/GetTenantByStripeCustomerIDResponse.md
|
|
93
99
|
docs/GetTenantJWT200Response.md
|
|
100
|
+
docs/GetTenantSubscription200Response.md
|
|
94
101
|
docs/GetWebhookSecret200Response.md
|
|
95
102
|
docs/InternalServerError.md
|
|
96
103
|
docs/InternalServerErrorResponse.md
|
|
@@ -150,7 +157,6 @@ docs/SessionResponse.md
|
|
|
150
157
|
docs/StripeConfigResponse.md
|
|
151
158
|
docs/StripeConfigUpdateRequest.md
|
|
152
159
|
docs/StripeConfigValidateRequest.md
|
|
153
|
-
docs/StripeConfiguration.md
|
|
154
160
|
docs/StripeConfigurationWithIDs.md
|
|
155
161
|
docs/StripeIDConversionResponse.md
|
|
156
162
|
docs/SubjectSet.md
|
|
@@ -170,6 +176,7 @@ docs/TierUpTo.md
|
|
|
170
176
|
docs/TieredBillingScheme.md
|
|
171
177
|
docs/TieredPrice.md
|
|
172
178
|
docs/TiersMode.md
|
|
179
|
+
docs/TooManyRequestsResponse.md
|
|
173
180
|
docs/Unauthorized.md
|
|
174
181
|
docs/UnauthorizedResponse.md
|
|
175
182
|
docs/UpdateInvoiceRequest.md
|
|
@@ -216,7 +223,9 @@ src/models/AcceptInviteResponse.ts
|
|
|
216
223
|
src/models/ActiveTenantResponse.ts
|
|
217
224
|
src/models/AddInvoiceLineItem200Response.ts
|
|
218
225
|
src/models/AddInvoiceLineItemRequest.ts
|
|
226
|
+
src/models/AddInvoiceLineItemWithConfigPriceRequest.ts
|
|
219
227
|
src/models/AddInvoiceLineItemWithPriceIDRequest.ts
|
|
228
|
+
src/models/AddInvoiceLineItemWithStripePriceRequest.ts
|
|
220
229
|
src/models/AddSubscription200Response.ts
|
|
221
230
|
src/models/AddSubscriptionRequest.ts
|
|
222
231
|
src/models/AddSubscriptionResponse.ts
|
|
@@ -299,7 +308,12 @@ src/models/GetSession200Response.ts
|
|
|
299
308
|
src/models/GetStripeConfig200Response.ts
|
|
300
309
|
src/models/GetStripeConfigHistory200Response.ts
|
|
301
310
|
src/models/GetTenantBillingStatus200Response.ts
|
|
311
|
+
src/models/GetTenantByID200Response.ts
|
|
312
|
+
src/models/GetTenantByIDResponse.ts
|
|
313
|
+
src/models/GetTenantByStripeCustomerID200Response.ts
|
|
314
|
+
src/models/GetTenantByStripeCustomerIDResponse.ts
|
|
302
315
|
src/models/GetTenantJWT200Response.ts
|
|
316
|
+
src/models/GetTenantSubscription200Response.ts
|
|
303
317
|
src/models/GetWebhookSecret200Response.ts
|
|
304
318
|
src/models/InternalServerError.ts
|
|
305
319
|
src/models/InternalServerErrorResponse.ts
|
|
@@ -359,7 +373,6 @@ src/models/SessionResponse.ts
|
|
|
359
373
|
src/models/StripeConfigResponse.ts
|
|
360
374
|
src/models/StripeConfigUpdateRequest.ts
|
|
361
375
|
src/models/StripeConfigValidateRequest.ts
|
|
362
|
-
src/models/StripeConfiguration.ts
|
|
363
376
|
src/models/StripeConfigurationWithIDs.ts
|
|
364
377
|
src/models/StripeIDConversionResponse.ts
|
|
365
378
|
src/models/SubjectSet.ts
|
|
@@ -379,6 +392,7 @@ src/models/TierUpTo.ts
|
|
|
379
392
|
src/models/TieredBillingScheme.ts
|
|
380
393
|
src/models/TieredPrice.ts
|
|
381
394
|
src/models/TiersMode.ts
|
|
395
|
+
src/models/TooManyRequestsResponse.ts
|
|
382
396
|
src/models/Unauthorized.ts
|
|
383
397
|
src/models/UnauthorizedResponse.ts
|
|
384
398
|
src/models/UpdateInvoiceRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @omnibase/core-js@0.
|
|
1
|
+
# @omnibase/core-js@0.12.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.omnibase.tech API.
|
|
4
4
|
|
|
@@ -103,7 +103,10 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
103
103
|
*V1TenantsApi* | [**deleteTenant**](docs/V1TenantsApi.md#deletetenant) | **DELETE** /api/v1/tenants | Delete tenant
|
|
104
104
|
*V1TenantsApi* | [**getRoleDefinitions**](docs/V1TenantsApi.md#getroledefinitions) | **GET** /api/v1/tenants/roles/definitions | Get namespace definitions
|
|
105
105
|
*V1TenantsApi* | [**getTenantBillingStatus**](docs/V1TenantsApi.md#gettenantbillingstatus) | **GET** /api/v1/tenants/billing-status | Get billing status
|
|
106
|
+
*V1TenantsApi* | [**getTenantByID**](docs/V1TenantsApi.md#gettenantbyid) | **GET** /api/v1/tenants/by-id/{tenant_id} | Get tenant by ID
|
|
107
|
+
*V1TenantsApi* | [**getTenantByStripeCustomerID**](docs/V1TenantsApi.md#gettenantbystripecustomerid) | **GET** /api/v1/tenants/by-stripe-customer/{stripe_customer_id} | Get tenant by Stripe customer ID
|
|
106
108
|
*V1TenantsApi* | [**getTenantJWT**](docs/V1TenantsApi.md#gettenantjwt) | **GET** /api/v1/tenants/jwt | Get PostgREST JWT token
|
|
109
|
+
*V1TenantsApi* | [**getTenantSubscription**](docs/V1TenantsApi.md#gettenantsubscription) | **GET** /api/v1/tenants/subscriptions/{config_price_id} | Get tenant subscription by plan
|
|
107
110
|
*V1TenantsApi* | [**listRoles**](docs/V1TenantsApi.md#listroles) | **GET** /api/v1/tenants/roles | List roles
|
|
108
111
|
*V1TenantsApi* | [**listTenantSubscriptions**](docs/V1TenantsApi.md#listtenantsubscriptions) | **GET** /api/v1/tenants/subscriptions | Get tenant subscriptions
|
|
109
112
|
*V1TenantsApi* | [**listTenantUsers**](docs/V1TenantsApi.md#listtenantusers) | **GET** /api/v1/tenants/users | Get tenant users
|
|
@@ -124,7 +127,9 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
124
127
|
- [ActiveTenantResponse](docs/ActiveTenantResponse.md)
|
|
125
128
|
- [AddInvoiceLineItem200Response](docs/AddInvoiceLineItem200Response.md)
|
|
126
129
|
- [AddInvoiceLineItemRequest](docs/AddInvoiceLineItemRequest.md)
|
|
130
|
+
- [AddInvoiceLineItemWithConfigPriceRequest](docs/AddInvoiceLineItemWithConfigPriceRequest.md)
|
|
127
131
|
- [AddInvoiceLineItemWithPriceIDRequest](docs/AddInvoiceLineItemWithPriceIDRequest.md)
|
|
132
|
+
- [AddInvoiceLineItemWithStripePriceRequest](docs/AddInvoiceLineItemWithStripePriceRequest.md)
|
|
128
133
|
- [AddSubscription200Response](docs/AddSubscription200Response.md)
|
|
129
134
|
- [AddSubscriptionRequest](docs/AddSubscriptionRequest.md)
|
|
130
135
|
- [AddSubscriptionResponse](docs/AddSubscriptionResponse.md)
|
|
@@ -207,7 +212,12 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
207
212
|
- [GetStripeConfig200Response](docs/GetStripeConfig200Response.md)
|
|
208
213
|
- [GetStripeConfigHistory200Response](docs/GetStripeConfigHistory200Response.md)
|
|
209
214
|
- [GetTenantBillingStatus200Response](docs/GetTenantBillingStatus200Response.md)
|
|
215
|
+
- [GetTenantByID200Response](docs/GetTenantByID200Response.md)
|
|
216
|
+
- [GetTenantByIDResponse](docs/GetTenantByIDResponse.md)
|
|
217
|
+
- [GetTenantByStripeCustomerID200Response](docs/GetTenantByStripeCustomerID200Response.md)
|
|
218
|
+
- [GetTenantByStripeCustomerIDResponse](docs/GetTenantByStripeCustomerIDResponse.md)
|
|
210
219
|
- [GetTenantJWT200Response](docs/GetTenantJWT200Response.md)
|
|
220
|
+
- [GetTenantSubscription200Response](docs/GetTenantSubscription200Response.md)
|
|
211
221
|
- [GetWebhookSecret200Response](docs/GetWebhookSecret200Response.md)
|
|
212
222
|
- [InternalServerError](docs/InternalServerError.md)
|
|
213
223
|
- [InternalServerErrorResponse](docs/InternalServerErrorResponse.md)
|
|
@@ -267,7 +277,6 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
267
277
|
- [StripeConfigResponse](docs/StripeConfigResponse.md)
|
|
268
278
|
- [StripeConfigUpdateRequest](docs/StripeConfigUpdateRequest.md)
|
|
269
279
|
- [StripeConfigValidateRequest](docs/StripeConfigValidateRequest.md)
|
|
270
|
-
- [StripeConfiguration](docs/StripeConfiguration.md)
|
|
271
280
|
- [StripeConfigurationWithIDs](docs/StripeConfigurationWithIDs.md)
|
|
272
281
|
- [StripeIDConversionResponse](docs/StripeIDConversionResponse.md)
|
|
273
282
|
- [SubjectSet](docs/SubjectSet.md)
|
|
@@ -287,6 +296,7 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
287
296
|
- [TieredBillingScheme](docs/TieredBillingScheme.md)
|
|
288
297
|
- [TieredPrice](docs/TieredPrice.md)
|
|
289
298
|
- [TiersMode](docs/TiersMode.md)
|
|
299
|
+
- [TooManyRequestsResponse](docs/TooManyRequestsResponse.md)
|
|
290
300
|
- [Unauthorized](docs/Unauthorized.md)
|
|
291
301
|
- [UnauthorizedResponse](docs/UnauthorizedResponse.md)
|
|
292
302
|
- [UpdateInvoiceRequest](docs/UpdateInvoiceRequest.md)
|
|
@@ -339,8 +349,8 @@ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.or
|
|
|
339
349
|
and is automatically generated by the
|
|
340
350
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
341
351
|
|
|
342
|
-
- API version: `0.
|
|
343
|
-
- Package version: `0.
|
|
352
|
+
- API version: `0.12.1`
|
|
353
|
+
- Package version: `0.12.1`
|
|
344
354
|
- Generator version: `7.17.0`
|
|
345
355
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
346
356
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# AddInvoiceLineItemWithConfigPriceRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`priceId` | string
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`description` | string
|
|
12
|
+
`currency` | [CurrencyCode](CurrencyCode.md)
|
|
13
|
+
`metadata` | { [key: string]: string; }
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { AddInvoiceLineItemWithConfigPriceRequest } from '@omnibase/core-js'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"priceId": hetzner_cx23_nbg1_hourly,
|
|
23
|
+
"quantity": 720,
|
|
24
|
+
"description": VPS Compute - 720 hours,
|
|
25
|
+
"currency": null,
|
|
26
|
+
"metadata": null,
|
|
27
|
+
} satisfies AddInvoiceLineItemWithConfigPriceRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as AddInvoiceLineItemWithConfigPriceRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# AddInvoiceLineItemWithPriceIDRequest
|
|
3
3
|
|
|
4
|
+
Add a line item using either a config price_id or raw stripe_price_id
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
10
|
`priceId` | string
|
|
10
|
-
`stripePriceId` | string
|
|
11
11
|
`quantity` | number
|
|
12
12
|
`description` | string
|
|
13
13
|
`currency` | [CurrencyCode](CurrencyCode.md)
|
|
14
14
|
`metadata` | { [key: string]: string; }
|
|
15
|
+
`stripePriceId` | string
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -21,11 +22,11 @@ import type { AddInvoiceLineItemWithPriceIDRequest } from '@omnibase/core-js'
|
|
|
21
22
|
// TODO: Update the object below with actual values
|
|
22
23
|
const example = {
|
|
23
24
|
"priceId": hetzner_cx23_nbg1_hourly,
|
|
24
|
-
"stripePriceId": price_1ABC123,
|
|
25
25
|
"quantity": 720,
|
|
26
26
|
"description": VPS Compute - 720 hours,
|
|
27
27
|
"currency": null,
|
|
28
28
|
"metadata": null,
|
|
29
|
+
"stripePriceId": price_1ABC123,
|
|
29
30
|
} satisfies AddInvoiceLineItemWithPriceIDRequest
|
|
30
31
|
|
|
31
32
|
console.log(example)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# AddInvoiceLineItemWithStripePriceRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`stripePriceId` | string
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`description` | string
|
|
12
|
+
`currency` | [CurrencyCode](CurrencyCode.md)
|
|
13
|
+
`metadata` | { [key: string]: string; }
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { AddInvoiceLineItemWithStripePriceRequest } from '@omnibase/core-js'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"stripePriceId": price_1ABC123,
|
|
23
|
+
"quantity": 720,
|
|
24
|
+
"description": VPS Compute - 720 hours,
|
|
25
|
+
"currency": null,
|
|
26
|
+
"metadata": null,
|
|
27
|
+
} satisfies AddInvoiceLineItemWithStripePriceRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as AddInvoiceLineItemWithStripePriceRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetTenantByID200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`status` | number
|
|
10
|
+
`data` | [GetTenantByIDResponse](GetTenantByIDResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetTenantByID200Response } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"status": 200,
|
|
20
|
+
"data": null,
|
|
21
|
+
} satisfies GetTenantByID200Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetTenantByID200Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# GetTenantByIDResponse
|
|
3
|
+
|
|
4
|
+
Response containing a tenant by ID
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`tenant` | [Tenant](Tenant.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetTenantByIDResponse } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"tenant": null,
|
|
20
|
+
} satisfies GetTenantByIDResponse
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetTenantByIDResponse
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetTenantByStripeCustomerID200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`status` | number
|
|
10
|
+
`data` | [GetTenantByStripeCustomerIDResponse](GetTenantByStripeCustomerIDResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetTenantByStripeCustomerID200Response } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"status": 200,
|
|
20
|
+
"data": null,
|
|
21
|
+
} satisfies GetTenantByStripeCustomerID200Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetTenantByStripeCustomerID200Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# GetTenantByStripeCustomerIDResponse
|
|
3
|
+
|
|
4
|
+
Response containing a tenant by Stripe customer ID
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`tenant` | [Tenant](Tenant.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetTenantByStripeCustomerIDResponse } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"tenant": null,
|
|
20
|
+
} satisfies GetTenantByStripeCustomerIDResponse
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetTenantByStripeCustomerIDResponse
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetTenantSubscription200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`status` | number
|
|
10
|
+
`data` | [SubscriptionResponse](SubscriptionResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetTenantSubscription200Response } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"status": 200,
|
|
20
|
+
"data": null,
|
|
21
|
+
} satisfies GetTenantSubscription200Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetTenantSubscription200Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`version` | string
|
|
10
|
+
`webhooks` | [Array<WebhookEndpointConfig>](WebhookEndpointConfig.md)
|
|
10
11
|
`meters` | [Array<MeterWithStripeID>](MeterWithStripeID.md)
|
|
11
12
|
`products` | [Array<ProductWithStripeIDs>](ProductWithStripeIDs.md)
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ import type { StripeConfigurationWithIDs } from '@omnibase/core-js'
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
20
21
|
"version": 1.0.0,
|
|
22
|
+
"webhooks": null,
|
|
21
23
|
"meters": null,
|
|
22
24
|
"products": null,
|
|
23
25
|
} satisfies StripeConfigurationWithIDs
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# TooManyRequestsResponse
|
|
3
|
+
|
|
4
|
+
Too Many Requests error response (429)
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`status` | number
|
|
11
|
+
`error` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { TooManyRequestsResponse } from '@omnibase/core-js'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"status": 429,
|
|
21
|
+
"error": Too Many Requests,
|
|
22
|
+
} satisfies TooManyRequestsResponse
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as TooManyRequestsResponse
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
package/docs/V1AuthApi.md
CHANGED
|
@@ -91,11 +91,11 @@ example().catch(console.error);
|
|
|
91
91
|
|
|
92
92
|
## getActiveTenant
|
|
93
93
|
|
|
94
|
-
> GetActiveTenant200Response getActiveTenant()
|
|
94
|
+
> GetActiveTenant200Response getActiveTenant(xUserId)
|
|
95
95
|
|
|
96
96
|
Get active tenant
|
|
97
97
|
|
|
98
|
-
Returns the full tenant object for the user\'s currently active tenant. ## Tenant Context Users can be members of multiple tenants but only one is active at a time. The active tenant determines which resources and data the user can access. ## Use Case Determine which tenant context to use for API calls and data filtering.
|
|
98
|
+
Returns the full tenant object for the user\'s currently active tenant. ## Tenant Context Users can be members of multiple tenants but only one is active at a time. The active tenant determines which resources and data the user can access. ## Authentication - **Session Auth**: Requires JWT token / Cookie Session - **Service Key Auth**: Requires X-Service-Key + X-User-ID header ## Use Case Determine which tenant context to use for API calls and data filtering.
|
|
99
99
|
|
|
100
100
|
### Example
|
|
101
101
|
|
|
@@ -109,6 +109,8 @@ import type { GetActiveTenantRequest } from '@omnibase/core-js';
|
|
|
109
109
|
async function example() {
|
|
110
110
|
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
111
111
|
const config = new Configuration({
|
|
112
|
+
// To configure API key authorization: ServiceKeyAuth
|
|
113
|
+
apiKey: "YOUR API KEY",
|
|
112
114
|
// To configure API key authorization: CookieAuth
|
|
113
115
|
apiKey: "YOUR API KEY",
|
|
114
116
|
// To configure API key authorization: SessionTokenAuth
|
|
@@ -116,8 +118,13 @@ async function example() {
|
|
|
116
118
|
});
|
|
117
119
|
const api = new V1AuthApi(config);
|
|
118
120
|
|
|
121
|
+
const body = {
|
|
122
|
+
// string | User ID (UUID) - Required when using X-Service-Key header (optional)
|
|
123
|
+
xUserId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
124
|
+
} satisfies GetActiveTenantRequest;
|
|
125
|
+
|
|
119
126
|
try {
|
|
120
|
-
const data = await api.getActiveTenant();
|
|
127
|
+
const data = await api.getActiveTenant(body);
|
|
121
128
|
console.log(data);
|
|
122
129
|
} catch (error) {
|
|
123
130
|
console.error(error);
|
|
@@ -130,7 +137,10 @@ example().catch(console.error);
|
|
|
130
137
|
|
|
131
138
|
### Parameters
|
|
132
139
|
|
|
133
|
-
|
|
140
|
+
|
|
141
|
+
| Name | Type | Description | Notes |
|
|
142
|
+
|------------- | ------------- | ------------- | -------------|
|
|
143
|
+
| **xUserId** | `string` | User ID (UUID) - Required when using X-Service-Key header | [Optional] [Defaults to `undefined`] |
|
|
134
144
|
|
|
135
145
|
### Return type
|
|
136
146
|
|
|
@@ -138,7 +148,7 @@ This endpoint does not need any parameter.
|
|
|
138
148
|
|
|
139
149
|
### Authorization
|
|
140
150
|
|
|
141
|
-
[CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
151
|
+
[ServiceKeyAuth](../README.md#ServiceKeyAuth), [CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
142
152
|
|
|
143
153
|
### HTTP request headers
|
|
144
154
|
|
|
@@ -103,6 +103,8 @@ import type { CreateOrUpdateEmailTemplateRequest } from '@omnibase/core-js';
|
|
|
103
103
|
async function example() {
|
|
104
104
|
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
105
105
|
const config = new Configuration({
|
|
106
|
+
// To configure API key authorization: ServiceKeyAuth
|
|
107
|
+
apiKey: "YOUR API KEY",
|
|
106
108
|
// To configure API key authorization: CookieAuth
|
|
107
109
|
apiKey: "YOUR API KEY",
|
|
108
110
|
// To configure API key authorization: SessionTokenAuth
|
|
@@ -140,7 +142,7 @@ example().catch(console.error);
|
|
|
140
142
|
|
|
141
143
|
### Authorization
|
|
142
144
|
|
|
143
|
-
[CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
145
|
+
[ServiceKeyAuth](../README.md#ServiceKeyAuth), [CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
144
146
|
|
|
145
147
|
### HTTP request headers
|
|
146
148
|
|
|
@@ -179,6 +181,8 @@ import type { DeleteEmailTemplateRequest } from '@omnibase/core-js';
|
|
|
179
181
|
async function example() {
|
|
180
182
|
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
181
183
|
const config = new Configuration({
|
|
184
|
+
// To configure API key authorization: ServiceKeyAuth
|
|
185
|
+
apiKey: "YOUR API KEY",
|
|
182
186
|
// To configure API key authorization: CookieAuth
|
|
183
187
|
apiKey: "YOUR API KEY",
|
|
184
188
|
// To configure API key authorization: SessionTokenAuth
|
|
@@ -216,7 +220,7 @@ example().catch(console.error);
|
|
|
216
220
|
|
|
217
221
|
### Authorization
|
|
218
222
|
|
|
219
|
-
[CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
223
|
+
[ServiceKeyAuth](../README.md#ServiceKeyAuth), [CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
220
224
|
|
|
221
225
|
### HTTP request headers
|
|
222
226
|
|
|
@@ -330,6 +334,8 @@ import type { GetEmailTemplatesRequest } from '@omnibase/core-js';
|
|
|
330
334
|
async function example() {
|
|
331
335
|
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
332
336
|
const config = new Configuration({
|
|
337
|
+
// To configure API key authorization: ServiceKeyAuth
|
|
338
|
+
apiKey: "YOUR API KEY",
|
|
333
339
|
// To configure API key authorization: CookieAuth
|
|
334
340
|
apiKey: "YOUR API KEY",
|
|
335
341
|
// To configure API key authorization: SessionTokenAuth
|
|
@@ -359,7 +365,7 @@ This endpoint does not need any parameter.
|
|
|
359
365
|
|
|
360
366
|
### Authorization
|
|
361
367
|
|
|
362
|
-
[CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
368
|
+
[ServiceKeyAuth](../README.md#ServiceKeyAuth), [CookieAuth](../README.md#CookieAuth), [SessionTokenAuth](../README.md#SessionTokenAuth)
|
|
363
369
|
|
|
364
370
|
### HTTP request headers
|
|
365
371
|
|