@knowledge-stack/ksapi 1.14.1 → 1.15.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/README.md +2 -2
- package/dist/apis/InvitesApi.d.ts +29 -0
- package/dist/apis/InvitesApi.js +31 -0
- package/dist/esm/apis/InvitesApi.d.ts +29 -0
- package/dist/esm/apis/InvitesApi.js +31 -0
- package/package.json +1 -1
- package/src/apis/InvitesApi.ts +60 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @knowledge-stack/ksapi@1.
|
|
1
|
+
## @knowledge-stack/ksapi@1.15.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @knowledge-stack/ksapi@1.
|
|
39
|
+
npm install @knowledge-stack/ksapi@1.15.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -19,6 +19,10 @@ export interface CreateInviteRequest {
|
|
|
19
19
|
inviteUserRequest: InviteUserRequest;
|
|
20
20
|
ksUat?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface DeleteInviteRequest {
|
|
23
|
+
inviteId: string;
|
|
24
|
+
ksUat?: string;
|
|
25
|
+
}
|
|
22
26
|
export interface ListInvitesRequest {
|
|
23
27
|
email?: string;
|
|
24
28
|
status?: InviteStatus;
|
|
@@ -63,6 +67,21 @@ export interface InvitesApiInterface {
|
|
|
63
67
|
* Create Invite
|
|
64
68
|
*/
|
|
65
69
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
72
|
+
* @summary Delete Invite
|
|
73
|
+
* @param {string} inviteId
|
|
74
|
+
* @param {string} [ksUat]
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof InvitesApiInterface
|
|
78
|
+
*/
|
|
79
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
80
|
+
/**
|
|
81
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
82
|
+
* Delete Invite
|
|
83
|
+
*/
|
|
84
|
+
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
85
|
/**
|
|
67
86
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
68
87
|
* @summary List Invites Handler
|
|
@@ -106,6 +125,16 @@ export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInt
|
|
|
106
125
|
* Create Invite
|
|
107
126
|
*/
|
|
108
127
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
130
|
+
* Delete Invite
|
|
131
|
+
*/
|
|
132
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
135
|
+
* Delete Invite
|
|
136
|
+
*/
|
|
137
|
+
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
109
138
|
/**
|
|
110
139
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
111
140
|
* List Invites Handler
|
package/dist/apis/InvitesApi.js
CHANGED
|
@@ -99,6 +99,37 @@ class InvitesApi extends runtime.BaseAPI {
|
|
|
99
99
|
return yield response.value();
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
104
|
+
* Delete Invite
|
|
105
|
+
*/
|
|
106
|
+
deleteInviteRaw(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
if (requestParameters['inviteId'] == null) {
|
|
109
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling deleteInvite().');
|
|
110
|
+
}
|
|
111
|
+
const queryParameters = {};
|
|
112
|
+
const headerParameters = {};
|
|
113
|
+
let urlPath = `/v1/invites/{invite_id}`;
|
|
114
|
+
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
115
|
+
const response = yield this.request({
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'DELETE',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
return new runtime.VoidApiResponse(response);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
126
|
+
* Delete Invite
|
|
127
|
+
*/
|
|
128
|
+
deleteInvite(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
yield this.deleteInviteRaw(requestParameters, initOverrides);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
102
133
|
/**
|
|
103
134
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
104
135
|
* List Invites Handler
|
|
@@ -19,6 +19,10 @@ export interface CreateInviteRequest {
|
|
|
19
19
|
inviteUserRequest: InviteUserRequest;
|
|
20
20
|
ksUat?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface DeleteInviteRequest {
|
|
23
|
+
inviteId: string;
|
|
24
|
+
ksUat?: string;
|
|
25
|
+
}
|
|
22
26
|
export interface ListInvitesRequest {
|
|
23
27
|
email?: string;
|
|
24
28
|
status?: InviteStatus;
|
|
@@ -63,6 +67,21 @@ export interface InvitesApiInterface {
|
|
|
63
67
|
* Create Invite
|
|
64
68
|
*/
|
|
65
69
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
72
|
+
* @summary Delete Invite
|
|
73
|
+
* @param {string} inviteId
|
|
74
|
+
* @param {string} [ksUat]
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof InvitesApiInterface
|
|
78
|
+
*/
|
|
79
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
80
|
+
/**
|
|
81
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
82
|
+
* Delete Invite
|
|
83
|
+
*/
|
|
84
|
+
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
66
85
|
/**
|
|
67
86
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
68
87
|
* @summary List Invites Handler
|
|
@@ -106,6 +125,16 @@ export declare class InvitesApi extends runtime.BaseAPI implements InvitesApiInt
|
|
|
106
125
|
* Create Invite
|
|
107
126
|
*/
|
|
108
127
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
130
|
+
* Delete Invite
|
|
131
|
+
*/
|
|
132
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
135
|
+
* Delete Invite
|
|
136
|
+
*/
|
|
137
|
+
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
109
138
|
/**
|
|
110
139
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
111
140
|
* List Invites Handler
|
|
@@ -96,6 +96,37 @@ export class InvitesApi extends runtime.BaseAPI {
|
|
|
96
96
|
return yield response.value();
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
101
|
+
* Delete Invite
|
|
102
|
+
*/
|
|
103
|
+
deleteInviteRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
if (requestParameters['inviteId'] == null) {
|
|
106
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling deleteInvite().');
|
|
107
|
+
}
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
let urlPath = `/v1/invites/{invite_id}`;
|
|
111
|
+
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
112
|
+
const response = yield this.request({
|
|
113
|
+
path: urlPath,
|
|
114
|
+
method: 'DELETE',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.VoidApiResponse(response);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
123
|
+
* Delete Invite
|
|
124
|
+
*/
|
|
125
|
+
deleteInvite(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
yield this.deleteInviteRaw(requestParameters, initOverrides);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
99
130
|
/**
|
|
100
131
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
101
132
|
* List Invites Handler
|
package/package.json
CHANGED
package/src/apis/InvitesApi.ts
CHANGED
|
@@ -44,6 +44,11 @@ export interface CreateInviteRequest {
|
|
|
44
44
|
ksUat?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export interface DeleteInviteRequest {
|
|
48
|
+
inviteId: string;
|
|
49
|
+
ksUat?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
47
52
|
export interface ListInvitesRequest {
|
|
48
53
|
email?: string;
|
|
49
54
|
status?: InviteStatus;
|
|
@@ -93,6 +98,23 @@ export interface InvitesApiInterface {
|
|
|
93
98
|
*/
|
|
94
99
|
createInvite(requestParameters: CreateInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteResponse>;
|
|
95
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
103
|
+
* @summary Delete Invite
|
|
104
|
+
* @param {string} inviteId
|
|
105
|
+
* @param {string} [ksUat]
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof InvitesApiInterface
|
|
109
|
+
*/
|
|
110
|
+
deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
114
|
+
* Delete Invite
|
|
115
|
+
*/
|
|
116
|
+
deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
117
|
+
|
|
96
118
|
/**
|
|
97
119
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
98
120
|
* @summary List Invites Handler
|
|
@@ -204,6 +226,44 @@ export class InvitesApi extends runtime.BaseAPI implements InvitesApiInterface {
|
|
|
204
226
|
return await response.value();
|
|
205
227
|
}
|
|
206
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
231
|
+
* Delete Invite
|
|
232
|
+
*/
|
|
233
|
+
async deleteInviteRaw(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
234
|
+
if (requestParameters['inviteId'] == null) {
|
|
235
|
+
throw new runtime.RequiredError(
|
|
236
|
+
'inviteId',
|
|
237
|
+
'Required parameter "inviteId" was null or undefined when calling deleteInvite().'
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const queryParameters: any = {};
|
|
242
|
+
|
|
243
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
let urlPath = `/v1/invites/{invite_id}`;
|
|
247
|
+
urlPath = urlPath.replace(`{${"invite_id"}}`, encodeURIComponent(String(requestParameters['inviteId'])));
|
|
248
|
+
|
|
249
|
+
const response = await this.request({
|
|
250
|
+
path: urlPath,
|
|
251
|
+
method: 'DELETE',
|
|
252
|
+
headers: headerParameters,
|
|
253
|
+
query: queryParameters,
|
|
254
|
+
}, initOverrides);
|
|
255
|
+
|
|
256
|
+
return new runtime.VoidApiResponse(response);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Hard-delete an invite (admin/owner only). Permanently removes the invite. The invite must belong to the caller\'s current tenant.
|
|
261
|
+
* Delete Invite
|
|
262
|
+
*/
|
|
263
|
+
async deleteInvite(requestParameters: DeleteInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
264
|
+
await this.deleteInviteRaw(requestParameters, initOverrides);
|
|
265
|
+
}
|
|
266
|
+
|
|
207
267
|
/**
|
|
208
268
|
* List invites with pagination, filtering, and sorting. Supports filtering by tenant_id (requires admin access), email, and status. Results can be sorted by created_at, updated_at, expires_at, or accepted_at.
|
|
209
269
|
* List Invites Handler
|