@knowledge-stack/ksapi 2.6.0 → 2.7.0
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 +0 -6
- package/README.md +2 -5
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/EventResponse.d.ts +0 -6
- package/dist/esm/models/EventResponse.js +0 -2
- package/dist/esm/models/index.d.ts +0 -2
- package/dist/esm/models/index.js +0 -2
- package/dist/models/EventResponse.d.ts +0 -6
- package/dist/models/EventResponse.js +0 -2
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/docs/EventResponse.md +0 -2
- package/docs/TenantsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/TenantsApi.ts +4 -4
- package/src/apis/index.ts +0 -1
- package/src/models/EventResponse.ts +0 -8
- package/src/models/index.ts +0 -2
- package/dist/apis/TenantInvitationsApi.d.ts +0 -67
- package/dist/apis/TenantInvitationsApi.js +0 -112
- package/dist/esm/apis/TenantInvitationsApi.d.ts +0 -67
- package/dist/esm/apis/TenantInvitationsApi.js +0 -75
- package/dist/esm/models/AcceptTenantInvitationRequest.d.ts +0 -53
- package/dist/esm/models/AcceptTenantInvitationRequest.js +0 -48
- package/dist/esm/models/AcceptTenantInvitationResponse.d.ts +0 -59
- package/dist/esm/models/AcceptTenantInvitationResponse.js +0 -52
- package/dist/models/AcceptTenantInvitationRequest.d.ts +0 -53
- package/dist/models/AcceptTenantInvitationRequest.js +0 -56
- package/dist/models/AcceptTenantInvitationResponse.d.ts +0 -59
- package/dist/models/AcceptTenantInvitationResponse.js +0 -60
- package/docs/AcceptTenantInvitationRequest.md +0 -36
- package/docs/AcceptTenantInvitationResponse.md +0 -38
- package/docs/TenantInvitationsApi.md +0 -85
- package/src/apis/TenantInvitationsApi.ts +0 -136
- package/src/models/AcceptTenantInvitationRequest.ts +0 -93
- package/src/models/AcceptTenantInvitationResponse.ts +0 -101
package/.openapi-generator/FILES
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
docs/AcceptDisclaimerRequest.md
|
|
6
6
|
docs/AcceptInviteResponse.md
|
|
7
|
-
docs/AcceptTenantInvitationRequest.md
|
|
8
|
-
docs/AcceptTenantInvitationResponse.md
|
|
9
7
|
docs/AccessCheckResponse.md
|
|
10
8
|
docs/ActivateSkillVersionRequest.md
|
|
11
9
|
docs/AddMemberRequest.md
|
|
@@ -344,7 +342,6 @@ docs/TemporalWorkflowStatusResponse.md
|
|
|
344
342
|
docs/TenantBrandingResponse.md
|
|
345
343
|
docs/TenantGroupOrder.md
|
|
346
344
|
docs/TenantGroupsApi.md
|
|
347
|
-
docs/TenantInvitationsApi.md
|
|
348
345
|
docs/TenantQuotaStateResponse.md
|
|
349
346
|
docs/TenantResponse.md
|
|
350
347
|
docs/TenantSettingsResponse.md
|
|
@@ -472,7 +469,6 @@ src/apis/SubscriptionsApi.ts
|
|
|
472
469
|
src/apis/SystemJobsApi.ts
|
|
473
470
|
src/apis/TagsApi.ts
|
|
474
471
|
src/apis/TenantGroupsApi.ts
|
|
475
|
-
src/apis/TenantInvitationsApi.ts
|
|
476
472
|
src/apis/TenantsApi.ts
|
|
477
473
|
src/apis/ThreadMessagesApi.ts
|
|
478
474
|
src/apis/ThreadsApi.ts
|
|
@@ -486,8 +482,6 @@ src/apis/index.ts
|
|
|
486
482
|
src/index.ts
|
|
487
483
|
src/models/AcceptDisclaimerRequest.ts
|
|
488
484
|
src/models/AcceptInviteResponse.ts
|
|
489
|
-
src/models/AcceptTenantInvitationRequest.ts
|
|
490
|
-
src/models/AcceptTenantInvitationResponse.ts
|
|
491
485
|
src/models/AccessCheckResponse.ts
|
|
492
486
|
src/models/ActivateSkillVersionRequest.ts
|
|
493
487
|
src/models/AddMemberRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@2.
|
|
1
|
+
# @knowledge-stack/ksapi@2.7.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -236,7 +236,6 @@ All URIs are relative to *http://localhost:8000*
|
|
|
236
236
|
*TenantGroupsApi* | [**removeGroupMember**](docs/TenantGroupsApi.md#removegroupmember) | **DELETE** /v1/tenant-groups/{group_id}/members/{user_id} | Remove Group Member Handler
|
|
237
237
|
*TenantGroupsApi* | [**updateGroupPermission**](docs/TenantGroupsApi.md#updategrouppermissionoperation) | **PATCH** /v1/tenant-groups/{group_id}/permissions/{permission_id} | Update Group Permission Handler
|
|
238
238
|
*TenantGroupsApi* | [**updateTenantGroup**](docs/TenantGroupsApi.md#updatetenantgroup) | **PATCH** /v1/tenant-groups/{group_id} | Update Tenant Group Handler
|
|
239
|
-
*TenantInvitationsApi* | [**acceptTenantInvitation**](docs/TenantInvitationsApi.md#accepttenantinvitationoperation) | **POST** /v1/tenant-invitations/{invitation_id}/accept | Accept Tenant Invitation Handler
|
|
240
239
|
*TenantsApi* | [**activateTenantUser**](docs/TenantsApi.md#activatetenantuser) | **POST** /v1/tenants/{tenant_id}/users/{user_id}/activate | Activate Tenant User Handler
|
|
241
240
|
*TenantsApi* | [**deactivateTenantUser**](docs/TenantsApi.md#deactivatetenantuser) | **POST** /v1/tenants/{tenant_id}/users/{user_id}/deactivate | Deactivate Tenant User Handler
|
|
242
241
|
*TenantsApi* | [**deleteTenant**](docs/TenantsApi.md#deletetenant) | **DELETE** /v1/tenants/{tenant_id} | Delete Tenant
|
|
@@ -307,8 +306,6 @@ All URIs are relative to *http://localhost:8000*
|
|
|
307
306
|
|
|
308
307
|
- [AcceptDisclaimerRequest](docs/AcceptDisclaimerRequest.md)
|
|
309
308
|
- [AcceptInviteResponse](docs/AcceptInviteResponse.md)
|
|
310
|
-
- [AcceptTenantInvitationRequest](docs/AcceptTenantInvitationRequest.md)
|
|
311
|
-
- [AcceptTenantInvitationResponse](docs/AcceptTenantInvitationResponse.md)
|
|
312
309
|
- [AccessCheckResponse](docs/AccessCheckResponse.md)
|
|
313
310
|
- [ActivateSkillVersionRequest](docs/ActivateSkillVersionRequest.md)
|
|
314
311
|
- [AddMemberRequest](docs/AddMemberRequest.md)
|
|
@@ -725,7 +722,7 @@ and is automatically generated by the
|
|
|
725
722
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
726
723
|
|
|
727
724
|
- API version: `0.1.0`
|
|
728
|
-
- Package version: `2.
|
|
725
|
+
- Package version: `2.7.0`
|
|
729
726
|
- Generator version: `7.21.0`
|
|
730
727
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
731
728
|
|
|
@@ -125,7 +125,7 @@ export interface TenantsApiInterface {
|
|
|
125
125
|
*/
|
|
126
126
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
127
127
|
/**
|
|
128
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
128
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
129
129
|
* @summary Delete Tenant
|
|
130
130
|
* @param {string} tenantId
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
@@ -134,7 +134,7 @@ export interface TenantsApiInterface {
|
|
|
134
134
|
*/
|
|
135
135
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
136
136
|
/**
|
|
137
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
137
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
138
138
|
* Delete Tenant
|
|
139
139
|
*/
|
|
140
140
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -395,12 +395,12 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
|
|
|
395
395
|
*/
|
|
396
396
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
397
397
|
/**
|
|
398
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
398
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
399
399
|
* Delete Tenant
|
|
400
400
|
*/
|
|
401
401
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
402
402
|
/**
|
|
403
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
403
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
404
404
|
* Delete Tenant
|
|
405
405
|
*/
|
|
406
406
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
package/dist/apis/TenantsApi.js
CHANGED
|
@@ -194,7 +194,7 @@ class TenantsApi extends runtime.BaseAPI {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
197
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
198
198
|
* Delete Tenant
|
|
199
199
|
*/
|
|
200
200
|
deleteTenantRaw(requestParameters, initOverrides) {
|
|
@@ -205,7 +205,7 @@ class TenantsApi extends runtime.BaseAPI {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
208
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
209
209
|
* Delete Tenant
|
|
210
210
|
*/
|
|
211
211
|
deleteTenant(requestParameters, initOverrides) {
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export * from './SubscriptionsApi';
|
|
|
30
30
|
export * from './SystemJobsApi';
|
|
31
31
|
export * from './TagsApi';
|
|
32
32
|
export * from './TenantGroupsApi';
|
|
33
|
-
export * from './TenantInvitationsApi';
|
|
34
33
|
export * from './TenantsApi';
|
|
35
34
|
export * from './ThreadMessagesApi';
|
|
36
35
|
export * from './ThreadsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -48,7 +48,6 @@ __exportStar(require("./SubscriptionsApi"), exports);
|
|
|
48
48
|
__exportStar(require("./SystemJobsApi"), exports);
|
|
49
49
|
__exportStar(require("./TagsApi"), exports);
|
|
50
50
|
__exportStar(require("./TenantGroupsApi"), exports);
|
|
51
|
-
__exportStar(require("./TenantInvitationsApi"), exports);
|
|
52
51
|
__exportStar(require("./TenantsApi"), exports);
|
|
53
52
|
__exportStar(require("./ThreadMessagesApi"), exports);
|
|
54
53
|
__exportStar(require("./ThreadsApi"), exports);
|
|
@@ -125,7 +125,7 @@ export interface TenantsApiInterface {
|
|
|
125
125
|
*/
|
|
126
126
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
127
127
|
/**
|
|
128
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
128
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
129
129
|
* @summary Delete Tenant
|
|
130
130
|
* @param {string} tenantId
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
@@ -134,7 +134,7 @@ export interface TenantsApiInterface {
|
|
|
134
134
|
*/
|
|
135
135
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
136
136
|
/**
|
|
137
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
137
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
138
138
|
* Delete Tenant
|
|
139
139
|
*/
|
|
140
140
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -395,12 +395,12 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
|
|
|
395
395
|
*/
|
|
396
396
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
397
397
|
/**
|
|
398
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
398
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
399
399
|
* Delete Tenant
|
|
400
400
|
*/
|
|
401
401
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
402
402
|
/**
|
|
403
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
403
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
404
404
|
* Delete Tenant
|
|
405
405
|
*/
|
|
406
406
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -158,7 +158,7 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
161
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
162
162
|
* Delete Tenant
|
|
163
163
|
*/
|
|
164
164
|
deleteTenantRaw(requestParameters, initOverrides) {
|
|
@@ -169,7 +169,7 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
172
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
173
173
|
* Delete Tenant
|
|
174
174
|
*/
|
|
175
175
|
deleteTenant(requestParameters, initOverrides) {
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export * from './SubscriptionsApi';
|
|
|
30
30
|
export * from './SystemJobsApi';
|
|
31
31
|
export * from './TagsApi';
|
|
32
32
|
export * from './TenantGroupsApi';
|
|
33
|
-
export * from './TenantInvitationsApi';
|
|
34
33
|
export * from './TenantsApi';
|
|
35
34
|
export * from './ThreadMessagesApi';
|
|
36
35
|
export * from './ThreadsApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -32,7 +32,6 @@ export * from './SubscriptionsApi';
|
|
|
32
32
|
export * from './SystemJobsApi';
|
|
33
33
|
export * from './TagsApi';
|
|
34
34
|
export * from './TenantGroupsApi';
|
|
35
|
-
export * from './TenantInvitationsApi';
|
|
36
35
|
export * from './TenantsApi';
|
|
37
36
|
export * from './ThreadMessagesApi';
|
|
38
37
|
export * from './ThreadsApi';
|
|
@@ -46,7 +46,6 @@ export function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'kind': json['kind'],
|
|
47
47
|
'ts': (new Date(json['ts'])),
|
|
48
48
|
'actorUserId': json['actor_user_id'],
|
|
49
|
-
'actorOnBehalfOf': json['actor_on_behalf_of'] == null ? undefined : json['actor_on_behalf_of'],
|
|
50
49
|
'payload': json['payload'],
|
|
51
50
|
'actor': json['actor'] == null ? undefined : UserInfoFromJSON(json['actor']),
|
|
52
51
|
'subjectName': json['subject_name'] == null ? undefined : json['subject_name'],
|
|
@@ -69,7 +68,6 @@ export function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
68
|
'kind': value['kind'],
|
|
70
69
|
'ts': value['ts'].toISOString(),
|
|
71
70
|
'actor_user_id': value['actorUserId'],
|
|
72
|
-
'actor_on_behalf_of': value['actorOnBehalfOf'],
|
|
73
71
|
'payload': value['payload'],
|
|
74
72
|
'actor': UserInfoToJSON(value['actor']),
|
|
75
73
|
'subject_name': value['subjectName'],
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from './AcceptDisclaimerRequest';
|
|
2
2
|
export * from './AcceptInviteResponse';
|
|
3
|
-
export * from './AcceptTenantInvitationRequest';
|
|
4
|
-
export * from './AcceptTenantInvitationResponse';
|
|
5
3
|
export * from './AccessCheckResponse';
|
|
6
4
|
export * from './ActivateSkillVersionRequest';
|
|
7
5
|
export * from './AddMemberRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AcceptDisclaimerRequest';
|
|
4
4
|
export * from './AcceptInviteResponse';
|
|
5
|
-
export * from './AcceptTenantInvitationRequest';
|
|
6
|
-
export * from './AcceptTenantInvitationResponse';
|
|
7
5
|
export * from './AccessCheckResponse';
|
|
8
6
|
export * from './ActivateSkillVersionRequest';
|
|
9
7
|
export * from './AddMemberRequest';
|
|
@@ -54,7 +54,6 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'kind': json['kind'],
|
|
55
55
|
'ts': (new Date(json['ts'])),
|
|
56
56
|
'actorUserId': json['actor_user_id'],
|
|
57
|
-
'actorOnBehalfOf': json['actor_on_behalf_of'] == null ? undefined : json['actor_on_behalf_of'],
|
|
58
57
|
'payload': json['payload'],
|
|
59
58
|
'actor': json['actor'] == null ? undefined : (0, UserInfo_1.UserInfoFromJSON)(json['actor']),
|
|
60
59
|
'subjectName': json['subject_name'] == null ? undefined : json['subject_name'],
|
|
@@ -77,7 +76,6 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
76
|
'kind': value['kind'],
|
|
78
77
|
'ts': value['ts'].toISOString(),
|
|
79
78
|
'actor_user_id': value['actorUserId'],
|
|
80
|
-
'actor_on_behalf_of': value['actorOnBehalfOf'],
|
|
81
79
|
'payload': value['payload'],
|
|
82
80
|
'actor': (0, UserInfo_1.UserInfoToJSON)(value['actor']),
|
|
83
81
|
'subject_name': value['subjectName'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from './AcceptDisclaimerRequest';
|
|
2
2
|
export * from './AcceptInviteResponse';
|
|
3
|
-
export * from './AcceptTenantInvitationRequest';
|
|
4
|
-
export * from './AcceptTenantInvitationResponse';
|
|
5
3
|
export * from './AccessCheckResponse';
|
|
6
4
|
export * from './ActivateSkillVersionRequest';
|
|
7
5
|
export * from './AddMemberRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -18,8 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AcceptDisclaimerRequest"), exports);
|
|
20
20
|
__exportStar(require("./AcceptInviteResponse"), exports);
|
|
21
|
-
__exportStar(require("./AcceptTenantInvitationRequest"), exports);
|
|
22
|
-
__exportStar(require("./AcceptTenantInvitationResponse"), exports);
|
|
23
21
|
__exportStar(require("./AccessCheckResponse"), exports);
|
|
24
22
|
__exportStar(require("./ActivateSkillVersionRequest"), exports);
|
|
25
23
|
__exportStar(require("./AddMemberRequest"), exports);
|
package/docs/EventResponse.md
CHANGED
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`kind` | string
|
|
13
13
|
`ts` | Date
|
|
14
14
|
`actorUserId` | string
|
|
15
|
-
`actorOnBehalfOf` | string
|
|
16
15
|
`payload` | { [key: string]: any; }
|
|
17
16
|
`actor` | [UserInfo](UserInfo.md)
|
|
18
17
|
`subjectName` | string
|
|
@@ -33,7 +32,6 @@ const example = {
|
|
|
33
32
|
"kind": null,
|
|
34
33
|
"ts": null,
|
|
35
34
|
"actorUserId": null,
|
|
36
|
-
"actorOnBehalfOf": null,
|
|
37
35
|
"payload": null,
|
|
38
36
|
"actor": null,
|
|
39
37
|
"subjectName": null,
|
package/docs/TenantsApi.md
CHANGED
|
@@ -181,7 +181,7 @@ example().catch(console.error);
|
|
|
181
181
|
|
|
182
182
|
Delete Tenant
|
|
183
183
|
|
|
184
|
-
Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
184
|
+
Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
185
185
|
|
|
186
186
|
### Example
|
|
187
187
|
|
package/package.json
CHANGED
package/src/apis/TenantsApi.ts
CHANGED
|
@@ -191,7 +191,7 @@ export interface TenantsApiInterface {
|
|
|
191
191
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
194
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
195
195
|
* @summary Delete Tenant
|
|
196
196
|
* @param {string} tenantId
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
@@ -201,7 +201,7 @@ export interface TenantsApiInterface {
|
|
|
201
201
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
204
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
205
205
|
* Delete Tenant
|
|
206
206
|
*/
|
|
207
207
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -621,7 +621,7 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
|
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
624
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
625
625
|
* Delete Tenant
|
|
626
626
|
*/
|
|
627
627
|
async deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -632,7 +632,7 @@ export class TenantsApi extends runtime.BaseAPI implements TenantsApiInterface {
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
|
-
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys
|
|
635
|
+
* Delete a tenant. Requires OWNER role in the tenant. Refused (409) while a provider-billed subscription is live — deleting the tenant would not stop Stripe/Ping++ from charging for it; the OWNER must downgrade to free (or let the prepay period expire) first. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
636
636
|
* Delete Tenant
|
|
637
637
|
*/
|
|
638
638
|
async deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
package/src/apis/index.ts
CHANGED
|
@@ -32,7 +32,6 @@ export * from './SubscriptionsApi';
|
|
|
32
32
|
export * from './SystemJobsApi';
|
|
33
33
|
export * from './TagsApi';
|
|
34
34
|
export * from './TenantGroupsApi';
|
|
35
|
-
export * from './TenantInvitationsApi';
|
|
36
35
|
export * from './TenantsApi';
|
|
37
36
|
export * from './ThreadMessagesApi';
|
|
38
37
|
export * from './ThreadsApi';
|
|
@@ -69,12 +69,6 @@ export interface EventResponse {
|
|
|
69
69
|
* @memberof EventResponse
|
|
70
70
|
*/
|
|
71
71
|
actorUserId: string | null;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof EventResponse
|
|
76
|
-
*/
|
|
77
|
-
actorOnBehalfOf?: string | null;
|
|
78
72
|
/**
|
|
79
73
|
*
|
|
80
74
|
* @type {{ [key: string]: any; }}
|
|
@@ -164,7 +158,6 @@ export function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
164
158
|
'kind': json['kind'],
|
|
165
159
|
'ts': (new Date(json['ts'])),
|
|
166
160
|
'actorUserId': json['actor_user_id'],
|
|
167
|
-
'actorOnBehalfOf': json['actor_on_behalf_of'] == null ? undefined : json['actor_on_behalf_of'],
|
|
168
161
|
'payload': json['payload'],
|
|
169
162
|
'actor': json['actor'] == null ? undefined : UserInfoFromJSON(json['actor']),
|
|
170
163
|
'subjectName': json['subject_name'] == null ? undefined : json['subject_name'],
|
|
@@ -191,7 +184,6 @@ export function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDis
|
|
|
191
184
|
'kind': value['kind'],
|
|
192
185
|
'ts': value['ts'].toISOString(),
|
|
193
186
|
'actor_user_id': value['actorUserId'],
|
|
194
|
-
'actor_on_behalf_of': value['actorOnBehalfOf'],
|
|
195
187
|
'payload': value['payload'],
|
|
196
188
|
'actor': UserInfoToJSON(value['actor']),
|
|
197
189
|
'subject_name': value['subjectName'],
|
package/src/models/index.ts
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AcceptDisclaimerRequest';
|
|
4
4
|
export * from './AcceptInviteResponse';
|
|
5
|
-
export * from './AcceptTenantInvitationRequest';
|
|
6
|
-
export * from './AcceptTenantInvitationResponse';
|
|
7
5
|
export * from './AccessCheckResponse';
|
|
8
6
|
export * from './ActivateSkillVersionRequest';
|
|
9
7
|
export * from './AddMemberRequest';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Stack API
|
|
3
|
-
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptTenantInvitationRequest, AcceptTenantInvitationResponse } from '../models/index';
|
|
14
|
-
export interface AcceptTenantInvitationOperationRequest {
|
|
15
|
-
invitationId: string;
|
|
16
|
-
acceptTenantInvitationRequest: AcceptTenantInvitationRequest;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* TenantInvitationsApi - interface
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface TenantInvitationsApiInterface
|
|
23
|
-
*/
|
|
24
|
-
export interface TenantInvitationsApiInterface {
|
|
25
|
-
/**
|
|
26
|
-
* Creates request options for acceptTenantInvitation without sending the request
|
|
27
|
-
* @param {string} invitationId
|
|
28
|
-
* @param {AcceptTenantInvitationRequest} acceptTenantInvitationRequest
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
* @memberof TenantInvitationsApiInterface
|
|
31
|
-
*/
|
|
32
|
-
acceptTenantInvitationRequestOpts(requestParameters: AcceptTenantInvitationOperationRequest): Promise<runtime.RequestOpts>;
|
|
33
|
-
/**
|
|
34
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
35
|
-
* @summary Accept Tenant Invitation Handler
|
|
36
|
-
* @param {string} invitationId
|
|
37
|
-
* @param {AcceptTenantInvitationRequest} acceptTenantInvitationRequest
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
* @memberof TenantInvitationsApiInterface
|
|
41
|
-
*/
|
|
42
|
-
acceptTenantInvitationRaw(requestParameters: AcceptTenantInvitationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AcceptTenantInvitationResponse>>;
|
|
43
|
-
/**
|
|
44
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
45
|
-
* Accept Tenant Invitation Handler
|
|
46
|
-
*/
|
|
47
|
-
acceptTenantInvitation(requestParameters: AcceptTenantInvitationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptTenantInvitationResponse>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export declare class TenantInvitationsApi extends runtime.BaseAPI implements TenantInvitationsApiInterface {
|
|
53
|
-
/**
|
|
54
|
-
* Creates request options for acceptTenantInvitation without sending the request
|
|
55
|
-
*/
|
|
56
|
-
acceptTenantInvitationRequestOpts(requestParameters: AcceptTenantInvitationOperationRequest): Promise<runtime.RequestOpts>;
|
|
57
|
-
/**
|
|
58
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
59
|
-
* Accept Tenant Invitation Handler
|
|
60
|
-
*/
|
|
61
|
-
acceptTenantInvitationRaw(requestParameters: AcceptTenantInvitationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AcceptTenantInvitationResponse>>;
|
|
62
|
-
/**
|
|
63
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
64
|
-
* Accept Tenant Invitation Handler
|
|
65
|
-
*/
|
|
66
|
-
acceptTenantInvitation(requestParameters: AcceptTenantInvitationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptTenantInvitationResponse>;
|
|
67
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Knowledge Stack API
|
|
6
|
-
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
-
}) : function(o, v) {
|
|
29
|
-
o["default"] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
-
var ownKeys = function(o) {
|
|
33
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
-
var ar = [];
|
|
35
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
-
return ar;
|
|
37
|
-
};
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
48
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
51
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
52
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
53
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
54
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.TenantInvitationsApi = void 0;
|
|
59
|
-
const runtime = __importStar(require("../runtime"));
|
|
60
|
-
const index_1 = require("../models/index");
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
class TenantInvitationsApi extends runtime.BaseAPI {
|
|
65
|
-
/**
|
|
66
|
-
* Creates request options for acceptTenantInvitation without sending the request
|
|
67
|
-
*/
|
|
68
|
-
acceptTenantInvitationRequestOpts(requestParameters) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
if (requestParameters['invitationId'] == null) {
|
|
71
|
-
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling acceptTenantInvitation().');
|
|
72
|
-
}
|
|
73
|
-
if (requestParameters['acceptTenantInvitationRequest'] == null) {
|
|
74
|
-
throw new runtime.RequiredError('acceptTenantInvitationRequest', 'Required parameter "acceptTenantInvitationRequest" was null or undefined when calling acceptTenantInvitation().');
|
|
75
|
-
}
|
|
76
|
-
const queryParameters = {};
|
|
77
|
-
const headerParameters = {};
|
|
78
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
79
|
-
let urlPath = `/v1/tenant-invitations/{invitation_id}/accept`;
|
|
80
|
-
urlPath = urlPath.replace(`{${"invitation_id"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
81
|
-
return {
|
|
82
|
-
path: urlPath,
|
|
83
|
-
method: 'POST',
|
|
84
|
-
headers: headerParameters,
|
|
85
|
-
query: queryParameters,
|
|
86
|
-
body: (0, index_1.AcceptTenantInvitationRequestToJSON)(requestParameters['acceptTenantInvitationRequest']),
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
92
|
-
* Accept Tenant Invitation Handler
|
|
93
|
-
*/
|
|
94
|
-
acceptTenantInvitationRaw(requestParameters, initOverrides) {
|
|
95
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
const requestOptions = yield this.acceptTenantInvitationRequestOpts(requestParameters);
|
|
97
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AcceptTenantInvitationResponseFromJSON)(jsonValue));
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Accept an invitation, creating the customer tenant and its OWNER. New owner: supply ``password`` — the account is created and signed in. Existing owner: accept while signed in as ``owner_email`` (no password).
|
|
103
|
-
* Accept Tenant Invitation Handler
|
|
104
|
-
*/
|
|
105
|
-
acceptTenantInvitation(requestParameters, initOverrides) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const response = yield this.acceptTenantInvitationRaw(requestParameters, initOverrides);
|
|
108
|
-
return yield response.value();
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exports.TenantInvitationsApi = TenantInvitationsApi;
|