@chatbotkit/sdk 1.27.0 → 1.28.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 +0 -14
- package/dist/cjs/client.cjs +3 -5
- package/dist/cjs/client.d.ts +2 -7
- package/dist/cjs/index.cjs +21 -18
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/integration/index.cjs +24 -28
- package/dist/cjs/integration/index.d.ts +0 -4
- package/dist/cjs/platform/ability/index.cjs +0 -3
- package/dist/cjs/platform/ability/index.d.ts +0 -1
- package/dist/cjs/platform/ability/v1.cjs +0 -10
- package/dist/cjs/platform/ability/v1.d.ts +0 -5
- package/dist/cjs/platform/report/index.cjs +0 -9
- package/dist/cjs/platform/report/index.d.ts +0 -3
- package/dist/cjs/platform/report/v1.cjs +0 -30
- package/dist/cjs/platform/report/v1.d.ts +0 -12
- package/dist/cjs/platform/secret/index.cjs +0 -3
- package/dist/cjs/platform/secret/index.d.ts +0 -1
- package/dist/cjs/platform/secret/v1.cjs +0 -10
- package/dist/cjs/platform/secret/v1.d.ts +0 -5
- package/dist/cjs/report/index.cjs +18 -0
- package/dist/cjs/report/index.d.ts +6 -0
- package/dist/cjs/report/v1.cjs +22 -0
- package/dist/cjs/report/v1.d.ts +9 -0
- package/dist/cjs/types/api/v1.d.ts +679 -2274
- package/dist/cjs/types/report.d.ts +1 -139
- package/dist/esm/client.d.ts +2 -7
- package/dist/esm/client.js +3 -5
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/integration/index.d.ts +0 -4
- package/dist/esm/integration/index.js +0 -4
- package/dist/esm/platform/ability/index.d.ts +0 -1
- package/dist/esm/platform/ability/index.js +1 -4
- package/dist/esm/platform/ability/v1.d.ts +0 -5
- package/dist/esm/platform/ability/v1.js +0 -9
- package/dist/esm/platform/report/index.d.ts +0 -3
- package/dist/esm/platform/report/index.js +1 -10
- package/dist/esm/platform/report/v1.d.ts +0 -12
- package/dist/esm/platform/report/v1.js +0 -27
- package/dist/esm/platform/secret/index.d.ts +0 -1
- package/dist/esm/platform/secret/index.js +1 -4
- package/dist/esm/platform/secret/v1.d.ts +0 -5
- package/dist/esm/platform/secret/v1.js +0 -9
- package/dist/esm/report/index.d.ts +6 -0
- package/dist/esm/report/index.js +14 -0
- package/dist/esm/report/v1.d.ts +9 -0
- package/dist/esm/report/v1.js +18 -0
- package/dist/esm/types/api/v1.d.ts +679 -2274
- package/dist/esm/types/report.d.ts +1 -139
- package/package.json +51 -101
- package/dist/cjs/integration/googlechat/index.cjs +0 -30
- package/dist/cjs/integration/googlechat/index.d.ts +0 -11
- package/dist/cjs/integration/googlechat/v1.cjs +0 -50
- package/dist/cjs/integration/googlechat/v1.d.ts +0 -33
- package/dist/cjs/integration/teams/index.cjs +0 -30
- package/dist/cjs/integration/teams/index.d.ts +0 -11
- package/dist/cjs/integration/teams/v1.cjs +0 -50
- package/dist/cjs/integration/teams/v1.d.ts +0 -33
- package/dist/esm/integration/googlechat/index.d.ts +0 -11
- package/dist/esm/integration/googlechat/index.js +0 -26
- package/dist/esm/integration/googlechat/v1.d.ts +0 -33
- package/dist/esm/integration/googlechat/v1.js +0 -42
- package/dist/esm/integration/teams/index.d.ts +0 -11
- package/dist/esm/integration/teams/index.js +0 -26
- package/dist/esm/integration/teams/v1.d.ts +0 -33
- package/dist/esm/integration/teams/v1.js +0 -42
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChatBotKitClient } from '../../client.js';
|
|
2
|
-
import { createGooglechatIntegration, deleteGooglechatIntegration, fetchGooglechatIntegration, listGooglechatIntegrations, setupGooglechatIntegration, updateGooglechatIntegration, } from './v1.js';
|
|
3
|
-
export class GooglechatIntegrationClient extends ChatBotKitClient {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
}
|
|
7
|
-
list(request) {
|
|
8
|
-
return listGooglechatIntegrations(this, request);
|
|
9
|
-
}
|
|
10
|
-
fetch(googlechatId) {
|
|
11
|
-
return fetchGooglechatIntegration(this, googlechatId);
|
|
12
|
-
}
|
|
13
|
-
create(request) {
|
|
14
|
-
return createGooglechatIntegration(this, request);
|
|
15
|
-
}
|
|
16
|
-
update(googlechatId, request) {
|
|
17
|
-
return updateGooglechatIntegration(this, googlechatId, request);
|
|
18
|
-
}
|
|
19
|
-
delete(googlechatId) {
|
|
20
|
-
return deleteGooglechatIntegration(this, googlechatId);
|
|
21
|
-
}
|
|
22
|
-
setup(googlechatId) {
|
|
23
|
-
return setupGooglechatIntegration(this, googlechatId);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export default GooglechatIntegrationClient;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export function listGooglechatIntegrations(client: ChatBotKitClient, request?: GooglechatIntegrationListRequest): ResponsePromise<GooglechatIntegrationListResponse, GooglechatIntegrationListStreamType>;
|
|
2
|
-
export function fetchGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): ResponsePromise<GooglechatIntegrationFetchResponse, never>;
|
|
3
|
-
export function createGooglechatIntegration(client: ChatBotKitClient, request: GooglechatIntegrationCreateRequest): Promise<GooglechatIntegrationCreateResponse>;
|
|
4
|
-
export function updateGooglechatIntegration(client: ChatBotKitClient, googlechatId: string, request: GooglechatIntegrationUpdateRequest): Promise<GooglechatIntegrationUpdateResponse>;
|
|
5
|
-
export function deleteGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): Promise<GooglechatIntegrationDeleteResponse>;
|
|
6
|
-
export function setupGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): Promise<GooglechatIntegrationSetupResponse>;
|
|
7
|
-
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
8
|
-
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
9
|
-
export type GooglechatIntegrationListRequest = {
|
|
10
|
-
cursor?: string;
|
|
11
|
-
order?: "desc" | "asc";
|
|
12
|
-
take?: number;
|
|
13
|
-
meta?: Record<string, string>;
|
|
14
|
-
};
|
|
15
|
-
export type GooglechatIntegrationListResponse = import("../../types/api/v1.js").operations["listGooglechatIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
-
export type GooglechatIntegrationListStreamType = import("../../types/api/v1.js").operations["listGooglechatIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
17
|
-
export type GooglechatIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
18
|
-
export type GooglechatIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createGooglechatIntegration"]["requestBody"]["content"]["application/json"];
|
|
19
|
-
export type GooglechatIntegrationCreateRequest = GooglechatIntegrationCreateRequestBody;
|
|
20
|
-
export type GooglechatIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
-
export type GooglechatIntegrationCreateResponse = GooglechatIntegrationCreateResponseBody;
|
|
22
|
-
export type GooglechatIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateGooglechatIntegration"]["requestBody"]["content"]["application/json"];
|
|
23
|
-
export type GooglechatIntegrationUpdateRequest = GooglechatIntegrationUpdateRequestBody;
|
|
24
|
-
export type GooglechatIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
25
|
-
export type GooglechatIntegrationUpdateResponse = GooglechatIntegrationUpdateResponseBody;
|
|
26
|
-
export type GooglechatIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteGooglechatIntegration"]["requestBody"]["content"]["application/json"];
|
|
27
|
-
export type GooglechatIntegrationDeleteRequest = GooglechatIntegrationDeleteRequestBody;
|
|
28
|
-
export type GooglechatIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
29
|
-
export type GooglechatIntegrationDeleteResponse = GooglechatIntegrationDeleteResponseBody;
|
|
30
|
-
export type GooglechatIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupGooglechatIntegration"]["requestBody"]["content"]["application/json"];
|
|
31
|
-
export type GooglechatIntegrationSetupRequest = GooglechatIntegrationSetupRequestBody;
|
|
32
|
-
export type GooglechatIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
33
|
-
export type GooglechatIntegrationSetupResponse = GooglechatIntegrationSetupResponseBody;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export function listGooglechatIntegrations(client, request) {
|
|
2
|
-
let url = `/api/v1/integration/googlechat/list`;
|
|
3
|
-
const response = client.clientFetch(url, { query: request });
|
|
4
|
-
return response;
|
|
5
|
-
}
|
|
6
|
-
export function fetchGooglechatIntegration(client, googlechatId) {
|
|
7
|
-
const url = `/api/v1/integration/googlechat/${googlechatId}/fetch`;
|
|
8
|
-
const response = client.clientFetch(url);
|
|
9
|
-
return response;
|
|
10
|
-
}
|
|
11
|
-
export async function createGooglechatIntegration(client, request) {
|
|
12
|
-
const url = `/api/v1/integration/googlechat/create`;
|
|
13
|
-
const response = await client.clientFetch(url, {
|
|
14
|
-
record: {
|
|
15
|
-
...request,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
return response;
|
|
19
|
-
}
|
|
20
|
-
export async function updateGooglechatIntegration(client, googlechatId, request) {
|
|
21
|
-
const url = `/api/v1/integration/googlechat/${googlechatId}/update`;
|
|
22
|
-
const response = await client.clientFetch(url, {
|
|
23
|
-
record: {
|
|
24
|
-
...request,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
return response;
|
|
28
|
-
}
|
|
29
|
-
export async function deleteGooglechatIntegration(client, googlechatId) {
|
|
30
|
-
const url = `/api/v1/integration/googlechat/${googlechatId}/delete`;
|
|
31
|
-
const response = await client.clientFetch(url, {
|
|
32
|
-
record: {},
|
|
33
|
-
});
|
|
34
|
-
return response;
|
|
35
|
-
}
|
|
36
|
-
export async function setupGooglechatIntegration(client, googlechatId) {
|
|
37
|
-
const url = `/api/v1/integration/googlechat/${googlechatId}/setup`;
|
|
38
|
-
const response = await client.clientFetch(url, {
|
|
39
|
-
record: {},
|
|
40
|
-
});
|
|
41
|
-
return response;
|
|
42
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class TeamsIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import("./v1.js").TeamsIntegrationListRequest): ResponsePromise<import("./v1.js").TeamsIntegrationListResponse, import("./v1.js").TeamsIntegrationListStreamType>;
|
|
3
|
-
fetch(teamsId: string): ResponsePromise<import("./v1.js").TeamsIntegrationFetchResponse, never>;
|
|
4
|
-
create(request: import("./v1.js").TeamsIntegrationCreateRequest): Promise<import("./v1.js").TeamsIntegrationCreateResponse>;
|
|
5
|
-
update(teamsId: string, request: import("./v1.js").TeamsIntegrationUpdateRequest): Promise<import("./v1.js").TeamsIntegrationUpdateResponse>;
|
|
6
|
-
delete(teamsId: string): Promise<import("./v1.js").TeamsIntegrationDeleteResponse>;
|
|
7
|
-
setup(teamsId: string): Promise<import("./v1.js").TeamsIntegrationSetupResponse>;
|
|
8
|
-
}
|
|
9
|
-
export default TeamsIntegrationClient;
|
|
10
|
-
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
11
|
-
import { ChatBotKitClient } from '../../client.js';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChatBotKitClient } from '../../client.js';
|
|
2
|
-
import { createTeamsIntegration, deleteTeamsIntegration, fetchTeamsIntegration, listTeamsIntegrations, setupTeamsIntegration, updateTeamsIntegration, } from './v1.js';
|
|
3
|
-
export class TeamsIntegrationClient extends ChatBotKitClient {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
}
|
|
7
|
-
list(request) {
|
|
8
|
-
return listTeamsIntegrations(this, request);
|
|
9
|
-
}
|
|
10
|
-
fetch(teamsId) {
|
|
11
|
-
return fetchTeamsIntegration(this, teamsId);
|
|
12
|
-
}
|
|
13
|
-
create(request) {
|
|
14
|
-
return createTeamsIntegration(this, request);
|
|
15
|
-
}
|
|
16
|
-
update(teamsId, request) {
|
|
17
|
-
return updateTeamsIntegration(this, teamsId, request);
|
|
18
|
-
}
|
|
19
|
-
delete(teamsId) {
|
|
20
|
-
return deleteTeamsIntegration(this, teamsId);
|
|
21
|
-
}
|
|
22
|
-
setup(teamsId) {
|
|
23
|
-
return setupTeamsIntegration(this, teamsId);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export default TeamsIntegrationClient;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export function listTeamsIntegrations(client: ChatBotKitClient, request?: TeamsIntegrationListRequest): ResponsePromise<TeamsIntegrationListResponse, TeamsIntegrationListStreamType>;
|
|
2
|
-
export function fetchTeamsIntegration(client: ChatBotKitClient, teamsId: string): ResponsePromise<TeamsIntegrationFetchResponse, never>;
|
|
3
|
-
export function createTeamsIntegration(client: ChatBotKitClient, request: TeamsIntegrationCreateRequest): Promise<TeamsIntegrationCreateResponse>;
|
|
4
|
-
export function updateTeamsIntegration(client: ChatBotKitClient, teamsId: string, request: TeamsIntegrationUpdateRequest): Promise<TeamsIntegrationUpdateResponse>;
|
|
5
|
-
export function deleteTeamsIntegration(client: ChatBotKitClient, teamsId: string): Promise<TeamsIntegrationDeleteResponse>;
|
|
6
|
-
export function setupTeamsIntegration(client: ChatBotKitClient, teamsId: string): Promise<TeamsIntegrationSetupResponse>;
|
|
7
|
-
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
8
|
-
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
9
|
-
export type TeamsIntegrationListRequest = {
|
|
10
|
-
cursor?: string;
|
|
11
|
-
order?: "desc" | "asc";
|
|
12
|
-
take?: number;
|
|
13
|
-
meta?: Record<string, string>;
|
|
14
|
-
};
|
|
15
|
-
export type TeamsIntegrationListResponse = import("../../types/api/v1.js").operations["listTeamsIntegrations"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
-
export type TeamsIntegrationListStreamType = import("../../types/api/v1.js").operations["listTeamsIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
|
|
17
|
-
export type TeamsIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
18
|
-
export type TeamsIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createTeamsIntegration"]["requestBody"]["content"]["application/json"];
|
|
19
|
-
export type TeamsIntegrationCreateRequest = TeamsIntegrationCreateRequestBody;
|
|
20
|
-
export type TeamsIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
21
|
-
export type TeamsIntegrationCreateResponse = TeamsIntegrationCreateResponseBody;
|
|
22
|
-
export type TeamsIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateTeamsIntegration"]["requestBody"]["content"]["application/json"];
|
|
23
|
-
export type TeamsIntegrationUpdateRequest = TeamsIntegrationUpdateRequestBody;
|
|
24
|
-
export type TeamsIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
25
|
-
export type TeamsIntegrationUpdateResponse = TeamsIntegrationUpdateResponseBody;
|
|
26
|
-
export type TeamsIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteTeamsIntegration"]["requestBody"]["content"]["application/json"];
|
|
27
|
-
export type TeamsIntegrationDeleteRequest = TeamsIntegrationDeleteRequestBody;
|
|
28
|
-
export type TeamsIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
29
|
-
export type TeamsIntegrationDeleteResponse = TeamsIntegrationDeleteResponseBody;
|
|
30
|
-
export type TeamsIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupTeamsIntegration"]["requestBody"]["content"]["application/json"];
|
|
31
|
-
export type TeamsIntegrationSetupRequest = TeamsIntegrationSetupRequestBody;
|
|
32
|
-
export type TeamsIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
|
|
33
|
-
export type TeamsIntegrationSetupResponse = TeamsIntegrationSetupResponseBody;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export function listTeamsIntegrations(client, request) {
|
|
2
|
-
let url = `/api/v1/integration/teams/list`;
|
|
3
|
-
const response = client.clientFetch(url, { query: request });
|
|
4
|
-
return response;
|
|
5
|
-
}
|
|
6
|
-
export function fetchTeamsIntegration(client, teamsId) {
|
|
7
|
-
const url = `/api/v1/integration/teams/${teamsId}/fetch`;
|
|
8
|
-
const response = client.clientFetch(url);
|
|
9
|
-
return response;
|
|
10
|
-
}
|
|
11
|
-
export async function createTeamsIntegration(client, request) {
|
|
12
|
-
const url = `/api/v1/integration/teams/create`;
|
|
13
|
-
const response = await client.clientFetch(url, {
|
|
14
|
-
record: {
|
|
15
|
-
...request,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
return response;
|
|
19
|
-
}
|
|
20
|
-
export async function updateTeamsIntegration(client, teamsId, request) {
|
|
21
|
-
const url = `/api/v1/integration/teams/${teamsId}/update`;
|
|
22
|
-
const response = await client.clientFetch(url, {
|
|
23
|
-
record: {
|
|
24
|
-
...request,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
return response;
|
|
28
|
-
}
|
|
29
|
-
export async function deleteTeamsIntegration(client, teamsId) {
|
|
30
|
-
const url = `/api/v1/integration/teams/${teamsId}/delete`;
|
|
31
|
-
const response = await client.clientFetch(url, {
|
|
32
|
-
record: {},
|
|
33
|
-
});
|
|
34
|
-
return response;
|
|
35
|
-
}
|
|
36
|
-
export async function setupTeamsIntegration(client, teamsId) {
|
|
37
|
-
const url = `/api/v1/integration/teams/${teamsId}/setup`;
|
|
38
|
-
const response = await client.clientFetch(url, {
|
|
39
|
-
record: {},
|
|
40
|
-
});
|
|
41
|
-
return response;
|
|
42
|
-
}
|