@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generated from report registry schemas.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export type ReportId = '
|
|
6
|
+
export type ReportId = 'clr3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000108jq3c4d7f2b' | 'clr3m5n8k000208jq8e5f6g3c' | 'clr3m5n8k000308jq1h7i8j4d' | 'clr3m5n8k000408jq9i8j9k5e' | 'clr3m5n8k000508jq2j9k0l6f' | 'clr3m5n8k000608jq3k0l1m7g' | 'clr3m5n8k000708jq4l1m2n8h' | 'clr3m5n8k000808jq5m2n3o9i' | 'clr3m5n8k000908jq6n3o4p0j' | 'clr3m5n8k000a08jq7o4p5q1k' | 'clr3m5n8k000b08jq8p5q6r2l' | 'clr3m5n8k000c08jq9q6r7s3m' | 'clr3m5n8k000d08jqar7s8t4n' | 'clr3m5n8k000e08jqbs0t1u5o'
|
|
7
7
|
|
|
8
8
|
export interface ReportMetadata {
|
|
9
9
|
id: string
|
|
@@ -14,12 +14,6 @@ export interface ReportMetadata {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface ReportRegistry {
|
|
17
|
-
'cm7k3m5n8k000008jq7h9e5b1a': {
|
|
18
|
-
name: string
|
|
19
|
-
description: string
|
|
20
|
-
input: DatasetRecordsInput
|
|
21
|
-
output: DatasetRecordsOutput
|
|
22
|
-
}
|
|
23
17
|
'clr3m5n8k000008jq7h9e5b1a': {
|
|
24
18
|
name: string
|
|
25
19
|
description: string
|
|
@@ -110,49 +104,9 @@ export interface ReportRegistry {
|
|
|
110
104
|
input: BotStatsInput
|
|
111
105
|
output: BotStatsOutput
|
|
112
106
|
}
|
|
113
|
-
'clr3m5n8k000f08jqcs1u2v6p': {
|
|
114
|
-
name: string
|
|
115
|
-
description: string
|
|
116
|
-
input: AlertsInput
|
|
117
|
-
output: AlertsOutput
|
|
118
|
-
}
|
|
119
|
-
'clr3m5n8k000g08jqdt1u2v7q': {
|
|
120
|
-
name: string
|
|
121
|
-
description: string
|
|
122
|
-
input: BotPerformanceInput
|
|
123
|
-
output: BotPerformanceOutput
|
|
124
|
-
}
|
|
125
|
-
'clr3m5n8k000h08jqeu2v3w8r': {
|
|
126
|
-
name: string
|
|
127
|
-
description: string
|
|
128
|
-
input: BotConversationQualityInput
|
|
129
|
-
output: BotConversationQualityOutput
|
|
130
|
-
}
|
|
131
|
-
'clr3m5n8k000i08jqfv3w4x9s': {
|
|
132
|
-
name: string
|
|
133
|
-
description: string
|
|
134
|
-
input: BotAlertsInput
|
|
135
|
-
output: BotAlertsOutput
|
|
136
|
-
}
|
|
137
|
-
'clr3m5n8k000j08jqgw4x5y0t': {
|
|
138
|
-
name: string
|
|
139
|
-
description: string
|
|
140
|
-
input: BotNegativeFeedbackInput
|
|
141
|
-
output: BotNegativeFeedbackOutput
|
|
142
|
-
}
|
|
143
|
-
'gpv2an25fuhe2k6v6ckv85v8': {
|
|
144
|
-
name: string
|
|
145
|
-
description: string
|
|
146
|
-
input: ComprehensiveAnalyticsInput
|
|
147
|
-
output: ComprehensiveAnalyticsOutput
|
|
148
|
-
}
|
|
149
107
|
}
|
|
150
108
|
|
|
151
109
|
// Input and Output Types for each report
|
|
152
|
-
export type DatasetRecordsInput = {
|
|
153
|
-
datasetIds: string[]
|
|
154
|
-
}
|
|
155
|
-
|
|
156
110
|
export type TotalRatingsInput = {
|
|
157
111
|
periodDays?: number
|
|
158
112
|
}
|
|
@@ -214,40 +168,6 @@ export type BotStatsInput = {
|
|
|
214
168
|
periodDays?: number
|
|
215
169
|
}
|
|
216
170
|
|
|
217
|
-
export type AlertsInput = {
|
|
218
|
-
periodDays?: number
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export type BotPerformanceInput = {
|
|
222
|
-
botId: string
|
|
223
|
-
periodDays?: number
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export type BotConversationQualityInput = {
|
|
227
|
-
botId: string
|
|
228
|
-
periodDays?: number
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type BotAlertsInput = {
|
|
232
|
-
botId: string
|
|
233
|
-
periodDays?: number
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export type BotNegativeFeedbackInput = {
|
|
237
|
-
botId: string
|
|
238
|
-
periodDays?: number
|
|
239
|
-
limit?: number
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export type ComprehensiveAnalyticsInput = {
|
|
243
|
-
periodDays?: number
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export type DatasetRecordsOutput = {
|
|
247
|
-
totalRecords: number
|
|
248
|
-
breakdown: { datasetId: string; records: number }[]
|
|
249
|
-
}
|
|
250
|
-
|
|
251
171
|
export type TotalRatingsOutput = {
|
|
252
172
|
value: number
|
|
253
173
|
change?: number
|
|
@@ -340,7 +260,6 @@ export type ComprehensiveOverviewOutput = {
|
|
|
340
260
|
export type BotStatsOutput = {
|
|
341
261
|
totalConversations: number
|
|
342
262
|
totalMessages: number
|
|
343
|
-
totalTokens: number
|
|
344
263
|
totalRatings: number
|
|
345
264
|
thumbsUp: number
|
|
346
265
|
thumbsDown: number
|
|
@@ -348,52 +267,8 @@ export type BotStatsOutput = {
|
|
|
348
267
|
period: string
|
|
349
268
|
}
|
|
350
269
|
|
|
351
|
-
export type AlertsOutput = {
|
|
352
|
-
alerts: { type: string; severity: string; title: string; message: string; metric?: { current: number; baseline?: number; percentage?: number } }[]
|
|
353
|
-
summary: { totalAlerts: number; criticalCount: number; warningCount: number; infoCount: number }
|
|
354
|
-
period: string
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
export type BotPerformanceOutput = {
|
|
358
|
-
conversations: { current: number; previous: number; change: number; breakdown: { date: string; total: number }[] }
|
|
359
|
-
messages: { current: number; previous: number; change: number; breakdown: { date: string; total: number }[] }
|
|
360
|
-
tokens: { current: number; previous: number; change: number; breakdown: { date: string; total: number }[] }
|
|
361
|
-
ratings: { thumbsUp: number; thumbsDown: number; total: number; change: number; sentimentSignal: string; breakdown: { date: string; total: number; thumbsUp: number; thumbsDown: number }[] }
|
|
362
|
-
period: string
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export type BotConversationQualityOutput = {
|
|
366
|
-
avgMessagesPerConversation: { user: number; bot: number; activity: number }
|
|
367
|
-
conversationDepth: { singleTurn: number; short: number; medium: number; long: number }
|
|
368
|
-
totalConversations: number
|
|
369
|
-
abandonmentRate: number
|
|
370
|
-
avgTokensPerConversation: number
|
|
371
|
-
avgTokensPerMessage: number
|
|
372
|
-
topActions: { type: string; name: string; count: number }[]
|
|
373
|
-
period: string
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export type BotAlertsOutput = {
|
|
377
|
-
alerts: { type: string; severity: string; title: string; message: string; metric?: { current: number; baseline?: number; percentage?: number } }[]
|
|
378
|
-
summary: { totalAlerts: number; criticalCount: number; warningCount: number; infoCount: number }
|
|
379
|
-
period: string
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export type BotNegativeFeedbackOutput = {
|
|
383
|
-
items: { id: string; value: number; reason: unknown; conversationId: unknown; messageId: unknown; contactId: unknown; contactName: unknown; createdAt: string }[]
|
|
384
|
-
total: number
|
|
385
|
-
thumbsDown: number
|
|
386
|
-
thumbsUp: number
|
|
387
|
-
period: string
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export type ComprehensiveAnalyticsOutput = {
|
|
391
|
-
data: { title: string; description: string; value: number; change?: number; period: string; details?: { metric?: { title: string; description: string; value: number; change?: number; period: string }; chart?: { type: string; data: { date: string; total: number; thumbsUp?: number; thumbsDown?: number }[] }; list?: { id: string; icon?: string; name: string; description: string; createdAt?: string; tags?: unknown[] }[] } }[]
|
|
392
|
-
}
|
|
393
|
-
|
|
394
270
|
// Mapping report IDs to their input/output types
|
|
395
271
|
export type ReportInputTypes = {
|
|
396
|
-
'cm7k3m5n8k000008jq7h9e5b1a': DatasetRecordsInput
|
|
397
272
|
'clr3m5n8k000008jq7h9e5b1a': TotalRatingsInput
|
|
398
273
|
'clr3m5n8k000108jq3c4d7f2b': ThumbsUpInput
|
|
399
274
|
'clr3m5n8k000208jq8e5f6g3c': ThumbsDownInput
|
|
@@ -409,16 +284,9 @@ export type ReportInputTypes = {
|
|
|
409
284
|
'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationInput
|
|
410
285
|
'clr3m5n8k000d08jqar7s8t4n': ComprehensiveOverviewInput
|
|
411
286
|
'clr3m5n8k000e08jqbs0t1u5o': BotStatsInput
|
|
412
|
-
'clr3m5n8k000f08jqcs1u2v6p': AlertsInput
|
|
413
|
-
'clr3m5n8k000g08jqdt1u2v7q': BotPerformanceInput
|
|
414
|
-
'clr3m5n8k000h08jqeu2v3w8r': BotConversationQualityInput
|
|
415
|
-
'clr3m5n8k000i08jqfv3w4x9s': BotAlertsInput
|
|
416
|
-
'clr3m5n8k000j08jqgw4x5y0t': BotNegativeFeedbackInput
|
|
417
|
-
'gpv2an25fuhe2k6v6ckv85v8': ComprehensiveAnalyticsInput
|
|
418
287
|
}
|
|
419
288
|
|
|
420
289
|
export type ReportOutputTypes = {
|
|
421
|
-
'cm7k3m5n8k000008jq7h9e5b1a': DatasetRecordsOutput
|
|
422
290
|
'clr3m5n8k000008jq7h9e5b1a': TotalRatingsOutput
|
|
423
291
|
'clr3m5n8k000108jq3c4d7f2b': ThumbsUpOutput
|
|
424
292
|
'clr3m5n8k000208jq8e5f6g3c': ThumbsDownOutput
|
|
@@ -434,12 +302,6 @@ export type ReportOutputTypes = {
|
|
|
434
302
|
'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationOutput
|
|
435
303
|
'clr3m5n8k000d08jqar7s8t4n': ComprehensiveOverviewOutput
|
|
436
304
|
'clr3m5n8k000e08jqbs0t1u5o': BotStatsOutput
|
|
437
|
-
'clr3m5n8k000f08jqcs1u2v6p': AlertsOutput
|
|
438
|
-
'clr3m5n8k000g08jqdt1u2v7q': BotPerformanceOutput
|
|
439
|
-
'clr3m5n8k000h08jqeu2v3w8r': BotConversationQualityOutput
|
|
440
|
-
'clr3m5n8k000i08jqfv3w4x9s': BotAlertsOutput
|
|
441
|
-
'clr3m5n8k000j08jqgw4x5y0t': BotNegativeFeedbackOutput
|
|
442
|
-
'gpv2an25fuhe2k6v6ckv85v8': ComprehensiveAnalyticsOutput
|
|
443
305
|
}
|
|
444
306
|
|
|
445
307
|
// Helper type to get input type by report ID
|
package/dist/esm/client.d.ts
CHANGED
|
@@ -33,18 +33,13 @@ export class ResponsePromise<T, U> {
|
|
|
33
33
|
retryDelay?: number;
|
|
34
34
|
retryTimeout?: boolean;
|
|
35
35
|
fetchFn?: FetchFunction;
|
|
36
|
-
abortSignal?: AbortSignal;
|
|
37
36
|
}): Promise<Response>;
|
|
38
37
|
getFetchPromise(): Promise<Response>;
|
|
39
|
-
getStreamPromise(
|
|
40
|
-
abortSignal?: AbortSignal;
|
|
41
|
-
}): Promise<Response>;
|
|
38
|
+
getStreamPromise(): Promise<Response>;
|
|
42
39
|
then<TResult1, TResult2>(onSuccess?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onFail?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
43
40
|
catch<TResult>(fn?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
44
41
|
finally(fn?: (() => void) | undefined | null): Promise<T>;
|
|
45
|
-
stream(
|
|
46
|
-
abortSignal?: AbortSignal;
|
|
47
|
-
}): AsyncGenerator<U>;
|
|
42
|
+
stream(): AsyncGenerator<U>;
|
|
48
43
|
cache(key?: string): Promise<T>;
|
|
49
44
|
get [Symbol.toStringTag](): string;
|
|
50
45
|
}
|
package/dist/esm/client.js
CHANGED
|
@@ -48,7 +48,6 @@ export class ResponsePromise {
|
|
|
48
48
|
retryDelay: params?.retryDelay ?? retryDelay,
|
|
49
49
|
retryTimeout: params?.retryTimeout ?? retryTimeout,
|
|
50
50
|
},
|
|
51
|
-
...(params?.abortSignal ? { signal: params.abortSignal } : {}),
|
|
52
51
|
mode: 'cors',
|
|
53
52
|
cache: 'no-cache',
|
|
54
53
|
});
|
|
@@ -76,11 +75,10 @@ export class ResponsePromise {
|
|
|
76
75
|
}
|
|
77
76
|
return this.fetchPromise;
|
|
78
77
|
}
|
|
79
|
-
getStreamPromise(
|
|
78
|
+
getStreamPromise() {
|
|
80
79
|
if (!this.streamPromise) {
|
|
81
80
|
this.streamPromise = this.getRequest({
|
|
82
81
|
headers: { Accept: 'application/jsonl' },
|
|
83
|
-
abortSignal: params?.abortSignal,
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
84
|
return this.streamPromise;
|
|
@@ -119,8 +117,8 @@ export class ResponsePromise {
|
|
|
119
117
|
throw reason;
|
|
120
118
|
});
|
|
121
119
|
}
|
|
122
|
-
async *stream(
|
|
123
|
-
const response = await this.getStreamPromise(
|
|
120
|
+
async *stream() {
|
|
121
|
+
const response = await this.getStreamPromise();
|
|
124
122
|
if (!response.body) {
|
|
125
123
|
return;
|
|
126
124
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export class ChatBotKit extends ChatBotKitClient {
|
|
|
19
19
|
memory: MemoryClient;
|
|
20
20
|
policy: PolicyClient;
|
|
21
21
|
portal: PortalClient;
|
|
22
|
+
report: ReportClient;
|
|
22
23
|
usage: UsageClient;
|
|
23
24
|
graphql: GraphqlClient;
|
|
24
25
|
}
|
|
@@ -40,10 +41,11 @@ import { TeamClient } from './team/index.js';
|
|
|
40
41
|
import { MemoryClient } from './memory/index.js';
|
|
41
42
|
import { PolicyClient } from './policy/index.js';
|
|
42
43
|
import { PortalClient } from './portal/index.js';
|
|
44
|
+
import { ReportClient } from './report/index.js';
|
|
43
45
|
import { GraphqlClient } from './graphql/index.js';
|
|
44
46
|
import { SpaceClient } from './space/index.js';
|
|
45
47
|
import { UsageClient } from './usage/index.js';
|
|
46
48
|
import { ChatBotKitClient } from './client.js';
|
|
47
49
|
import { PlatformClient } from './platform/index.js';
|
|
48
50
|
import { TaskClient } from './task/index.js';
|
|
49
|
-
export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, GraphqlClient, SpaceClient, UsageClient };
|
|
51
|
+
export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, ReportClient, GraphqlClient, SpaceClient, UsageClient };
|
package/dist/esm/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { PartnerClient } from './partner/index.js';
|
|
|
15
15
|
import { PlatformClient } from './platform/index.js';
|
|
16
16
|
import { PolicyClient } from './policy/index.js';
|
|
17
17
|
import { PortalClient } from './portal/index.js';
|
|
18
|
+
import { ReportClient } from './report/index.js';
|
|
18
19
|
import { SecretClient } from './secret/index.js';
|
|
19
20
|
import { SkillsetClient } from './skillset/index.js';
|
|
20
21
|
import { SpaceClient } from './space/index.js';
|
|
@@ -38,6 +39,7 @@ export { TeamClient };
|
|
|
38
39
|
export { MemoryClient };
|
|
39
40
|
export { PolicyClient };
|
|
40
41
|
export { PortalClient };
|
|
42
|
+
export { ReportClient };
|
|
41
43
|
export { GraphqlClient };
|
|
42
44
|
export { SpaceClient };
|
|
43
45
|
export { UsageClient };
|
|
@@ -64,6 +66,7 @@ export class ChatBotKit extends ChatBotKitClient {
|
|
|
64
66
|
this.memory = new MemoryClient(options);
|
|
65
67
|
this.policy = new PolicyClient(options);
|
|
66
68
|
this.portal = new PortalClient(options);
|
|
69
|
+
this.report = new ReportClient(options);
|
|
67
70
|
this.usage = new UsageClient(options);
|
|
68
71
|
this.graphql = new GraphqlClient(options);
|
|
69
72
|
}
|
|
@@ -14,8 +14,6 @@ export class IntegrationClient extends ChatBotKitClient {
|
|
|
14
14
|
extract: ExtractIntegrationClient;
|
|
15
15
|
mcpserver: McpServerIntegrationClient;
|
|
16
16
|
twilio: TwilioIntegrationClient;
|
|
17
|
-
teams: TeamsIntegrationClient;
|
|
18
|
-
googlechat: GooglechatIntegrationClient;
|
|
19
17
|
}
|
|
20
18
|
export default IntegrationClient;
|
|
21
19
|
import { ChatBotKitClient } from '../client.js';
|
|
@@ -34,5 +32,3 @@ import { SupportIntegrationClient } from './support/index.js';
|
|
|
34
32
|
import { ExtractIntegrationClient } from './extract/index.js';
|
|
35
33
|
import { McpServerIntegrationClient } from './mcpserver/index.js';
|
|
36
34
|
import { TwilioIntegrationClient } from './twilio/index.js';
|
|
37
|
-
import { TeamsIntegrationClient } from './teams/index.js';
|
|
38
|
-
import { GooglechatIntegrationClient } from './googlechat/index.js';
|
|
@@ -2,7 +2,6 @@ import { ChatBotKitClient } from '../client.js';
|
|
|
2
2
|
import { DiscordIntegrationClient } from './discord/index.js';
|
|
3
3
|
import { EmailIntegrationClient } from './email/index.js';
|
|
4
4
|
import { ExtractIntegrationClient } from './extract/index.js';
|
|
5
|
-
import { GooglechatIntegrationClient } from './googlechat/index.js';
|
|
6
5
|
import { InstagramIntegrationClient } from './instagram/index.js';
|
|
7
6
|
import { McpServerIntegrationClient } from './mcpserver/index.js';
|
|
8
7
|
import { MessengerIntegrationClient } from './messenger/index.js';
|
|
@@ -10,7 +9,6 @@ import { NotionIntegrationClient } from './notion/index.js';
|
|
|
10
9
|
import { SitemapIntegrationClient } from './sitemap/index.js';
|
|
11
10
|
import { SlackIntegrationClient } from './slack/index.js';
|
|
12
11
|
import { SupportIntegrationClient } from './support/index.js';
|
|
13
|
-
import { TeamsIntegrationClient } from './teams/index.js';
|
|
14
12
|
import { TelegramIntegrationClient } from './telegram/index.js';
|
|
15
13
|
import { TriggerIntegrationClient } from './trigger/index.js';
|
|
16
14
|
import { TwilioIntegrationClient } from './twilio/index.js';
|
|
@@ -34,8 +32,6 @@ export class IntegrationClient extends ChatBotKitClient {
|
|
|
34
32
|
this.extract = new ExtractIntegrationClient(options);
|
|
35
33
|
this.mcpserver = new McpServerIntegrationClient(options);
|
|
36
34
|
this.twilio = new TwilioIntegrationClient(options);
|
|
37
|
-
this.teams = new TeamsIntegrationClient(options);
|
|
38
|
-
this.googlechat = new GooglechatIntegrationClient(options);
|
|
39
35
|
}
|
|
40
36
|
}
|
|
41
37
|
export default IntegrationClient;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export class PlatformAbilityClient extends ChatBotKitClient {
|
|
2
2
|
list(request?: import("./v1.js").PlatformAbilityListRequest): ResponsePromise<import("./v1.js").PlatformAbilityListResponse, import("./v1.js").PlatformAbilityListStreamType>;
|
|
3
|
-
search(request: import("./v1.js").PlatformAbilitySearchRequest): Promise<import("./v1.js").PlatformAbilitySearchResponse>;
|
|
4
3
|
}
|
|
5
4
|
export default PlatformAbilityClient;
|
|
6
5
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatBotKitClient } from '../../client.js';
|
|
2
|
-
import { listPlatformAbilities
|
|
2
|
+
import { listPlatformAbilities } from './v1.js';
|
|
3
3
|
export class PlatformAbilityClient extends ChatBotKitClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
super(options);
|
|
@@ -7,8 +7,5 @@ export class PlatformAbilityClient extends ChatBotKitClient {
|
|
|
7
7
|
list(request) {
|
|
8
8
|
return listPlatformAbilities(this, request);
|
|
9
9
|
}
|
|
10
|
-
search(request) {
|
|
11
|
-
return searchPlatformAbilities(this, request);
|
|
12
|
-
}
|
|
13
10
|
}
|
|
14
11
|
export default PlatformAbilityClient;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export function listPlatformAbilities(client: ChatBotKitClient, request?: PlatformAbilityListRequest): ResponsePromise<PlatformAbilityListResponse, PlatformAbilityListStreamType>;
|
|
2
|
-
export function searchPlatformAbilities(client: ChatBotKitClient, request: PlatformAbilitySearchRequest): Promise<PlatformAbilitySearchResponse>;
|
|
3
2
|
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
4
3
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
5
4
|
export type PlatformAbilityListRequest = {
|
|
@@ -11,7 +10,3 @@ export type PlatformAbilityListRequest = {
|
|
|
11
10
|
export type PlatformAbilityListResponse = import("../../types/api/v1.js").operations["listPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
|
|
12
11
|
export type PlatformAbilityListItem = PlatformAbilityListResponse["items"][number];
|
|
13
12
|
export type PlatformAbilityListStreamType = import("../../types/api/v1.js").operations["listPlatformAbilities"]["responses"]["200"]["content"]["application/jsonl"];
|
|
14
|
-
export type PlatformAbilitySearchRequestBody = import("../../types/api/v1.js").operations["searchPlatformAbilities"]["requestBody"]["content"]["application/json"];
|
|
15
|
-
export type PlatformAbilitySearchRequest = PlatformAbilitySearchRequestBody;
|
|
16
|
-
export type PlatformAbilitySearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
|
|
17
|
-
export type PlatformAbilitySearchResponse = PlatformAbilitySearchResponseBody;
|
|
@@ -3,12 +3,3 @@ export function listPlatformAbilities(client, request) {
|
|
|
3
3
|
const response = client.clientFetch(url, { query: request });
|
|
4
4
|
return response;
|
|
5
5
|
}
|
|
6
|
-
export async function searchPlatformAbilities(client, request) {
|
|
7
|
-
const url = `/api/v1/platform/ability/search`;
|
|
8
|
-
const response = await client.clientFetch(url, {
|
|
9
|
-
record: {
|
|
10
|
-
...request,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return response;
|
|
14
|
-
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export class PlatformReportClient extends ChatBotKitClient {
|
|
2
2
|
list(request?: import("./v1.js").PlatformReportListRequest): ResponsePromise<import("./v1.js").PlatformReportListResponse, import("./v1.js").PlatformReportListStreamType>;
|
|
3
|
-
generate(reportId: string, request: import("./v1.js").PlatformReportGenerateRequest): Promise<import("./v1.js").PlatformReportGenerateResponse>;
|
|
4
|
-
generateTyped<T extends import("./v1.js").ReportId>(reportId: T, request: import("./v1.js").ReportInputTypes[T]): Promise<import("./v1.js").ReportOutputTypes[T]>;
|
|
5
|
-
generateBatch(request: import("./v1.js").PlatformReportsGenerateRequest): Promise<import("./v1.js").PlatformReportsGenerateResponse>;
|
|
6
3
|
}
|
|
7
4
|
export default PlatformReportClient;
|
|
8
5
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatBotKitClient } from '../../client.js';
|
|
2
|
-
import {
|
|
2
|
+
import { listPlatformReports } from './v1.js';
|
|
3
3
|
export class PlatformReportClient extends ChatBotKitClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
super(options);
|
|
@@ -7,14 +7,5 @@ export class PlatformReportClient extends ChatBotKitClient {
|
|
|
7
7
|
list(request) {
|
|
8
8
|
return listPlatformReports(this, request);
|
|
9
9
|
}
|
|
10
|
-
generate(reportId, request) {
|
|
11
|
-
return generatePlatformReport(this, reportId, request);
|
|
12
|
-
}
|
|
13
|
-
generateTyped(reportId, request) {
|
|
14
|
-
return generateTypedPlatformReport(this, reportId, request);
|
|
15
|
-
}
|
|
16
|
-
generateBatch(request) {
|
|
17
|
-
return generatePlatformReports(this, request);
|
|
18
|
-
}
|
|
19
10
|
}
|
|
20
11
|
export default PlatformReportClient;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export function listPlatformReports(client: ChatBotKitClient, request?: PlatformReportListRequest): ResponsePromise<PlatformReportListResponse, PlatformReportListStreamType>;
|
|
2
|
-
export function generatePlatformReport(client: ChatBotKitClient, reportId: string, request: PlatformReportGenerateRequest): Promise<PlatformReportGenerateResponse>;
|
|
3
|
-
export function generateTypedPlatformReport<T extends ReportId>(client: ChatBotKitClient, reportId: T, request: ReportInputTypes[T]): Promise<ReportOutputTypes[T]>;
|
|
4
|
-
export function generatePlatformReports(client: ChatBotKitClient, request: PlatformReportsGenerateRequest): Promise<PlatformReportsGenerateResponse>;
|
|
5
2
|
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
6
3
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
7
4
|
export type PlatformReportListRequest = {
|
|
@@ -13,12 +10,3 @@ export type PlatformReportListRequest = {
|
|
|
13
10
|
export type PlatformReportListResponse = import("../../types/api/v1.js").operations["listPlatformReports"]["responses"]["200"]["content"]["application/json"];
|
|
14
11
|
export type PlatformReportListItem = PlatformReportListResponse["items"][number];
|
|
15
12
|
export type PlatformReportListStreamType = import("../../types/api/v1.js").operations["listPlatformReports"]["responses"]["200"]["content"]["application/jsonl"];
|
|
16
|
-
export type PlatformReportGenerateRequestBody = import("../../types/api/v1.js").operations["generatePlatformReport"]["requestBody"]["content"]["application/json"];
|
|
17
|
-
export type PlatformReportGenerateRequest = PlatformReportGenerateRequestBody;
|
|
18
|
-
export type PlatformReportGenerateResponse = import("../../types/api/v1.js").operations["generatePlatformReport"]["responses"]["200"]["content"]["application/json"];
|
|
19
|
-
export type ReportId = import("../../types/report.js").ReportId;
|
|
20
|
-
export type ReportInputTypes = import("../../types/report.js").ReportInputTypes;
|
|
21
|
-
export type ReportOutputTypes = import("../../types/report.js").ReportOutputTypes;
|
|
22
|
-
export type PlatformReportsGenerateRequestBody = import("../../types/api/v1.js").operations["generatePlatformReports"]["requestBody"]["content"]["application/json"];
|
|
23
|
-
export type PlatformReportsGenerateRequest = PlatformReportsGenerateRequestBody;
|
|
24
|
-
export type PlatformReportsGenerateResponse = import("../../types/api/v1.js").operations["generatePlatformReports"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -3,30 +3,3 @@ export function listPlatformReports(client, request) {
|
|
|
3
3
|
const response = client.clientFetch(url, { query: request });
|
|
4
4
|
return response;
|
|
5
5
|
}
|
|
6
|
-
export async function generatePlatformReport(client, reportId, request) {
|
|
7
|
-
const url = `/api/v1/platform/report/${reportId}/generate`;
|
|
8
|
-
const response = await client.clientFetch(url, {
|
|
9
|
-
record: {
|
|
10
|
-
...request,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return response;
|
|
14
|
-
}
|
|
15
|
-
export async function generateTypedPlatformReport(client, reportId, request) {
|
|
16
|
-
const url = `/api/v1/platform/report/${reportId}/generate`;
|
|
17
|
-
const response = await client.clientFetch(url, {
|
|
18
|
-
record: {
|
|
19
|
-
...request,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
return response;
|
|
23
|
-
}
|
|
24
|
-
export async function generatePlatformReports(client, request) {
|
|
25
|
-
const url = `/api/v1/platform/report/generate`;
|
|
26
|
-
const response = await client.clientFetch(url, {
|
|
27
|
-
record: {
|
|
28
|
-
...request,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
return response;
|
|
32
|
-
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export class PlatformSecretClient extends ChatBotKitClient {
|
|
2
2
|
list(request?: import("./v1.js").PlatformSecretListRequest): ResponsePromise<import("./v1.js").PlatformSecretListResponse, import("./v1.js").PlatformSecretListStreamType>;
|
|
3
|
-
search(request: import("./v1.js").PlatformSecretSearchRequest): Promise<import("./v1.js").PlatformSecretSearchResponse>;
|
|
4
3
|
}
|
|
5
4
|
export default PlatformSecretClient;
|
|
6
5
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatBotKitClient } from '../../client.js';
|
|
2
|
-
import { listPlatformSecrets
|
|
2
|
+
import { listPlatformSecrets } from './v1.js';
|
|
3
3
|
export class PlatformSecretClient extends ChatBotKitClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
super(options);
|
|
@@ -7,8 +7,5 @@ export class PlatformSecretClient extends ChatBotKitClient {
|
|
|
7
7
|
list(request) {
|
|
8
8
|
return listPlatformSecrets(this, request);
|
|
9
9
|
}
|
|
10
|
-
search(request) {
|
|
11
|
-
return searchPlatformSecrets(this, request);
|
|
12
|
-
}
|
|
13
10
|
}
|
|
14
11
|
export default PlatformSecretClient;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export function listPlatformSecrets(client: ChatBotKitClient, request?: PlatformSecretListRequest): ResponsePromise<PlatformSecretListResponse, PlatformSecretListStreamType>;
|
|
2
|
-
export function searchPlatformSecrets(client: ChatBotKitClient, request: PlatformSecretSearchRequest): Promise<PlatformSecretSearchResponse>;
|
|
3
2
|
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
4
3
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
5
4
|
export type PlatformSecretListRequest = {
|
|
@@ -10,7 +9,3 @@ export type PlatformSecretListRequest = {
|
|
|
10
9
|
export type PlatformSecretListResponse = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/json"];
|
|
11
10
|
export type PlatformSecretListItem = PlatformSecretListResponse["items"][number];
|
|
12
11
|
export type PlatformSecretListStreamType = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/jsonl"];
|
|
13
|
-
export type PlatformSecretSearchRequestBody = import("../../types/api/v1.js").operations["searchPlatformSecrets"]["requestBody"]["content"]["application/json"];
|
|
14
|
-
export type PlatformSecretSearchRequest = PlatformSecretSearchRequestBody;
|
|
15
|
-
export type PlatformSecretSearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformSecrets"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
-
export type PlatformSecretSearchResponse = PlatformSecretSearchResponseBody;
|
|
@@ -3,12 +3,3 @@ export function listPlatformSecrets(client, request) {
|
|
|
3
3
|
const response = client.clientFetch(url, { query: request });
|
|
4
4
|
return response;
|
|
5
5
|
}
|
|
6
|
-
export async function searchPlatformSecrets(client, request) {
|
|
7
|
-
const url = `/api/v1/platform/secret/search`;
|
|
8
|
-
const response = await client.clientFetch(url, {
|
|
9
|
-
record: {
|
|
10
|
-
...request,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
return response;
|
|
14
|
-
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class ReportClient extends ChatBotKitClient {
|
|
2
|
+
generate(reportId: string, request: import("./v1.js").ReportGenerateRequest): Promise<import("./v1.js").ReportGenerateResponse>;
|
|
3
|
+
generateTyped<T extends import("./v1.js").ReportId>(reportId: T, request: import("./v1.js").ReportInputTypes[T]): Promise<import("./v1.js").ReportOutputTypes[T]>;
|
|
4
|
+
}
|
|
5
|
+
export default ReportClient;
|
|
6
|
+
import { ChatBotKitClient } from '../client.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChatBotKitClient } from '../client.js';
|
|
2
|
+
import { generateReport, generateTypedReport } from './v1.js';
|
|
3
|
+
export class ReportClient extends ChatBotKitClient {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
}
|
|
7
|
+
generate(reportId, request) {
|
|
8
|
+
return generateReport(this, reportId, request);
|
|
9
|
+
}
|
|
10
|
+
generateTyped(reportId, request) {
|
|
11
|
+
return generateTypedReport(this, reportId, request);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export default ReportClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function generateReport(client: ChatBotKitClient, reportId: string, request: ReportGenerateRequest): Promise<ReportGenerateResponse>;
|
|
2
|
+
export function generateTypedReport<T extends ReportId>(client: ChatBotKitClient, reportId: T, request: ReportInputTypes[T]): Promise<ReportOutputTypes[T]>;
|
|
3
|
+
export type ChatBotKitClient = import("../client.js").ChatBotKitClient;
|
|
4
|
+
export type ReportGenerateRequestBody = import("../types/api/v1.js").operations["generateReport"]["requestBody"]["content"]["application/json"];
|
|
5
|
+
export type ReportGenerateRequest = ReportGenerateRequestBody;
|
|
6
|
+
export type ReportGenerateResponse = import("../types/api/v1.js").operations["generateReport"]["responses"]["200"]["content"]["application/json"];
|
|
7
|
+
export type ReportId = import("../types/report.js").ReportId;
|
|
8
|
+
export type ReportInputTypes = import("../types/report.js").ReportInputTypes;
|
|
9
|
+
export type ReportOutputTypes = import("../types/report.js").ReportOutputTypes;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export async function generateReport(client, reportId, request) {
|
|
2
|
+
const url = `/api/v1/report/${reportId}/generate`;
|
|
3
|
+
const response = await client.clientFetch(url, {
|
|
4
|
+
record: {
|
|
5
|
+
...request,
|
|
6
|
+
},
|
|
7
|
+
});
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
export async function generateTypedReport(client, reportId, request) {
|
|
11
|
+
const url = `/api/v1/report/${reportId}/generate`;
|
|
12
|
+
const response = await client.clientFetch(url, {
|
|
13
|
+
record: {
|
|
14
|
+
...request,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
return response;
|
|
18
|
+
}
|