@chatbotkit/sdk 1.26.5 → 1.27.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 +14 -0
- package/dist/cjs/client.cjs +5 -3
- package/dist/cjs/client.d.ts +7 -2
- package/dist/cjs/index.cjs +18 -21
- package/dist/cjs/index.d.ts +1 -3
- package/dist/cjs/integration/googlechat/index.cjs +30 -0
- package/dist/cjs/integration/googlechat/index.d.ts +11 -0
- package/dist/cjs/integration/googlechat/v1.cjs +50 -0
- package/dist/cjs/integration/googlechat/v1.d.ts +33 -0
- package/dist/cjs/integration/index.cjs +28 -24
- package/dist/cjs/integration/index.d.ts +4 -0
- package/dist/cjs/integration/teams/index.cjs +30 -0
- package/dist/cjs/integration/teams/index.d.ts +11 -0
- package/dist/cjs/integration/teams/v1.cjs +50 -0
- package/dist/cjs/integration/teams/v1.d.ts +33 -0
- package/dist/cjs/platform/ability/index.cjs +3 -0
- package/dist/cjs/platform/ability/index.d.ts +1 -0
- package/dist/cjs/platform/ability/v1.cjs +10 -0
- package/dist/cjs/platform/ability/v1.d.ts +5 -0
- package/dist/cjs/platform/report/index.cjs +9 -0
- package/dist/cjs/platform/report/index.d.ts +3 -0
- package/dist/cjs/platform/report/v1.cjs +30 -0
- package/dist/cjs/platform/report/v1.d.ts +12 -0
- package/dist/cjs/platform/secret/index.cjs +3 -0
- package/dist/cjs/platform/secret/index.d.ts +1 -0
- package/dist/cjs/platform/secret/v1.cjs +10 -0
- package/dist/cjs/platform/secret/v1.d.ts +5 -0
- package/dist/cjs/types/api/v1.d.ts +2354 -669
- package/dist/cjs/types/report.d.ts +139 -1
- package/dist/esm/client.d.ts +7 -2
- package/dist/esm/client.js +5 -3
- package/dist/esm/index.d.ts +1 -3
- package/dist/esm/index.js +0 -3
- package/dist/esm/integration/googlechat/index.d.ts +11 -0
- package/dist/esm/integration/googlechat/index.js +26 -0
- package/dist/esm/integration/googlechat/v1.d.ts +33 -0
- package/dist/esm/integration/googlechat/v1.js +42 -0
- package/dist/esm/integration/index.d.ts +4 -0
- package/dist/esm/integration/index.js +4 -0
- package/dist/esm/integration/teams/index.d.ts +11 -0
- package/dist/esm/integration/teams/index.js +26 -0
- package/dist/esm/integration/teams/v1.d.ts +33 -0
- package/dist/esm/integration/teams/v1.js +42 -0
- package/dist/esm/platform/ability/index.d.ts +1 -0
- package/dist/esm/platform/ability/index.js +4 -1
- package/dist/esm/platform/ability/v1.d.ts +5 -0
- package/dist/esm/platform/ability/v1.js +9 -0
- package/dist/esm/platform/report/index.d.ts +3 -0
- package/dist/esm/platform/report/index.js +10 -1
- package/dist/esm/platform/report/v1.d.ts +12 -0
- package/dist/esm/platform/report/v1.js +27 -0
- package/dist/esm/platform/secret/index.d.ts +1 -0
- package/dist/esm/platform/secret/index.js +4 -1
- package/dist/esm/platform/secret/v1.d.ts +5 -0
- package/dist/esm/platform/secret/v1.js +9 -0
- package/dist/esm/types/api/v1.d.ts +2354 -669
- package/dist/esm/types/report.d.ts +139 -1
- package/package.json +101 -51
- package/dist/cjs/report/index.cjs +0 -18
- package/dist/cjs/report/index.d.ts +0 -6
- package/dist/cjs/report/v1.cjs +0 -22
- package/dist/cjs/report/v1.d.ts +0 -9
- package/dist/esm/report/index.d.ts +0 -6
- package/dist/esm/report/index.js +0 -14
- package/dist/esm/report/v1.d.ts +0 -9
- package/dist/esm/report/v1.js +0 -18
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generated from report registry schemas.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export type ReportId = 'clr3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000108jq3c4d7f2b' | 'clr3m5n8k000208jq8e5f6g3c' | 'clr3m5n8k000308jq1h7i8j4d' | 'clr3m5n8k000408jq9i8j9k5e' | 'clr3m5n8k000508jq2j9k0l6f' | 'clr3m5n8k000608jq3k0l1m7g' | 'clr3m5n8k000708jq4l1m2n8h' | 'clr3m5n8k000808jq5m2n3o9i' | 'clr3m5n8k000908jq6n3o4p0j' | 'clr3m5n8k000a08jq7o4p5q1k' | 'clr3m5n8k000b08jq8p5q6r2l' | 'clr3m5n8k000c08jq9q6r7s3m' | 'clr3m5n8k000d08jqar7s8t4n' | 'clr3m5n8k000e08jqbs0t1u5o'
|
|
6
|
+
export type ReportId = 'cm7k3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000108jq3c4d7f2b' | 'clr3m5n8k000208jq8e5f6g3c' | 'clr3m5n8k000308jq1h7i8j4d' | 'clr3m5n8k000408jq9i8j9k5e' | 'clr3m5n8k000508jq2j9k0l6f' | 'clr3m5n8k000608jq3k0l1m7g' | 'clr3m5n8k000708jq4l1m2n8h' | 'clr3m5n8k000808jq5m2n3o9i' | 'clr3m5n8k000908jq6n3o4p0j' | 'clr3m5n8k000a08jq7o4p5q1k' | 'clr3m5n8k000b08jq8p5q6r2l' | 'clr3m5n8k000c08jq9q6r7s3m' | 'clr3m5n8k000d08jqar7s8t4n' | 'clr3m5n8k000e08jqbs0t1u5o' | 'clr3m5n8k000f08jqcs1u2v6p' | 'clr3m5n8k000g08jqdt1u2v7q' | 'clr3m5n8k000h08jqeu2v3w8r' | 'clr3m5n8k000i08jqfv3w4x9s' | 'clr3m5n8k000j08jqgw4x5y0t' | 'gpv2an25fuhe2k6v6ckv85v8'
|
|
7
7
|
|
|
8
8
|
export interface ReportMetadata {
|
|
9
9
|
id: string
|
|
@@ -14,6 +14,12 @@ 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
|
+
}
|
|
17
23
|
'clr3m5n8k000008jq7h9e5b1a': {
|
|
18
24
|
name: string
|
|
19
25
|
description: string
|
|
@@ -104,9 +110,49 @@ export interface ReportRegistry {
|
|
|
104
110
|
input: BotStatsInput
|
|
105
111
|
output: BotStatsOutput
|
|
106
112
|
}
|
|
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
|
+
}
|
|
107
149
|
}
|
|
108
150
|
|
|
109
151
|
// Input and Output Types for each report
|
|
152
|
+
export type DatasetRecordsInput = {
|
|
153
|
+
datasetIds: string[]
|
|
154
|
+
}
|
|
155
|
+
|
|
110
156
|
export type TotalRatingsInput = {
|
|
111
157
|
periodDays?: number
|
|
112
158
|
}
|
|
@@ -168,6 +214,40 @@ export type BotStatsInput = {
|
|
|
168
214
|
periodDays?: number
|
|
169
215
|
}
|
|
170
216
|
|
|
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
|
+
|
|
171
251
|
export type TotalRatingsOutput = {
|
|
172
252
|
value: number
|
|
173
253
|
change?: number
|
|
@@ -260,6 +340,7 @@ export type ComprehensiveOverviewOutput = {
|
|
|
260
340
|
export type BotStatsOutput = {
|
|
261
341
|
totalConversations: number
|
|
262
342
|
totalMessages: number
|
|
343
|
+
totalTokens: number
|
|
263
344
|
totalRatings: number
|
|
264
345
|
thumbsUp: number
|
|
265
346
|
thumbsDown: number
|
|
@@ -267,8 +348,52 @@ export type BotStatsOutput = {
|
|
|
267
348
|
period: string
|
|
268
349
|
}
|
|
269
350
|
|
|
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
|
+
|
|
270
394
|
// Mapping report IDs to their input/output types
|
|
271
395
|
export type ReportInputTypes = {
|
|
396
|
+
'cm7k3m5n8k000008jq7h9e5b1a': DatasetRecordsInput
|
|
272
397
|
'clr3m5n8k000008jq7h9e5b1a': TotalRatingsInput
|
|
273
398
|
'clr3m5n8k000108jq3c4d7f2b': ThumbsUpInput
|
|
274
399
|
'clr3m5n8k000208jq8e5f6g3c': ThumbsDownInput
|
|
@@ -284,9 +409,16 @@ export type ReportInputTypes = {
|
|
|
284
409
|
'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationInput
|
|
285
410
|
'clr3m5n8k000d08jqar7s8t4n': ComprehensiveOverviewInput
|
|
286
411
|
'clr3m5n8k000e08jqbs0t1u5o': BotStatsInput
|
|
412
|
+
'clr3m5n8k000f08jqcs1u2v6p': AlertsInput
|
|
413
|
+
'clr3m5n8k000g08jqdt1u2v7q': BotPerformanceInput
|
|
414
|
+
'clr3m5n8k000h08jqeu2v3w8r': BotConversationQualityInput
|
|
415
|
+
'clr3m5n8k000i08jqfv3w4x9s': BotAlertsInput
|
|
416
|
+
'clr3m5n8k000j08jqgw4x5y0t': BotNegativeFeedbackInput
|
|
417
|
+
'gpv2an25fuhe2k6v6ckv85v8': ComprehensiveAnalyticsInput
|
|
287
418
|
}
|
|
288
419
|
|
|
289
420
|
export type ReportOutputTypes = {
|
|
421
|
+
'cm7k3m5n8k000008jq7h9e5b1a': DatasetRecordsOutput
|
|
290
422
|
'clr3m5n8k000008jq7h9e5b1a': TotalRatingsOutput
|
|
291
423
|
'clr3m5n8k000108jq3c4d7f2b': ThumbsUpOutput
|
|
292
424
|
'clr3m5n8k000208jq8e5f6g3c': ThumbsDownOutput
|
|
@@ -302,6 +434,12 @@ export type ReportOutputTypes = {
|
|
|
302
434
|
'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationOutput
|
|
303
435
|
'clr3m5n8k000d08jqar7s8t4n': ComprehensiveOverviewOutput
|
|
304
436
|
'clr3m5n8k000e08jqbs0t1u5o': BotStatsOutput
|
|
437
|
+
'clr3m5n8k000f08jqcs1u2v6p': AlertsOutput
|
|
438
|
+
'clr3m5n8k000g08jqdt1u2v7q': BotPerformanceOutput
|
|
439
|
+
'clr3m5n8k000h08jqeu2v3w8r': BotConversationQualityOutput
|
|
440
|
+
'clr3m5n8k000i08jqfv3w4x9s': BotAlertsOutput
|
|
441
|
+
'clr3m5n8k000j08jqgw4x5y0t': BotNegativeFeedbackOutput
|
|
442
|
+
'gpv2an25fuhe2k6v6ckv85v8': ComprehensiveAnalyticsOutput
|
|
305
443
|
}
|
|
306
444
|
|
|
307
445
|
// Helper type to get input type by report ID
|
package/dist/esm/client.d.ts
CHANGED
|
@@ -33,13 +33,18 @@ export class ResponsePromise<T, U> {
|
|
|
33
33
|
retryDelay?: number;
|
|
34
34
|
retryTimeout?: boolean;
|
|
35
35
|
fetchFn?: FetchFunction;
|
|
36
|
+
abortSignal?: AbortSignal;
|
|
36
37
|
}): Promise<Response>;
|
|
37
38
|
getFetchPromise(): Promise<Response>;
|
|
38
|
-
getStreamPromise(
|
|
39
|
+
getStreamPromise(params?: {
|
|
40
|
+
abortSignal?: AbortSignal;
|
|
41
|
+
}): Promise<Response>;
|
|
39
42
|
then<TResult1, TResult2>(onSuccess?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onFail?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
40
43
|
catch<TResult>(fn?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
41
44
|
finally(fn?: (() => void) | undefined | null): Promise<T>;
|
|
42
|
-
stream(
|
|
45
|
+
stream(params?: {
|
|
46
|
+
abortSignal?: AbortSignal;
|
|
47
|
+
}): AsyncGenerator<U>;
|
|
43
48
|
cache(key?: string): Promise<T>;
|
|
44
49
|
get [Symbol.toStringTag](): string;
|
|
45
50
|
}
|
package/dist/esm/client.js
CHANGED
|
@@ -48,6 +48,7 @@ export class ResponsePromise {
|
|
|
48
48
|
retryDelay: params?.retryDelay ?? retryDelay,
|
|
49
49
|
retryTimeout: params?.retryTimeout ?? retryTimeout,
|
|
50
50
|
},
|
|
51
|
+
...(params?.abortSignal ? { signal: params.abortSignal } : {}),
|
|
51
52
|
mode: 'cors',
|
|
52
53
|
cache: 'no-cache',
|
|
53
54
|
});
|
|
@@ -75,10 +76,11 @@ export class ResponsePromise {
|
|
|
75
76
|
}
|
|
76
77
|
return this.fetchPromise;
|
|
77
78
|
}
|
|
78
|
-
getStreamPromise() {
|
|
79
|
+
getStreamPromise(params) {
|
|
79
80
|
if (!this.streamPromise) {
|
|
80
81
|
this.streamPromise = this.getRequest({
|
|
81
82
|
headers: { Accept: 'application/jsonl' },
|
|
83
|
+
abortSignal: params?.abortSignal,
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
return this.streamPromise;
|
|
@@ -117,8 +119,8 @@ export class ResponsePromise {
|
|
|
117
119
|
throw reason;
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
|
-
async *stream() {
|
|
121
|
-
const response = await this.getStreamPromise();
|
|
122
|
+
async *stream(params) {
|
|
123
|
+
const response = await this.getStreamPromise(params);
|
|
122
124
|
if (!response.body) {
|
|
123
125
|
return;
|
|
124
126
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export class ChatBotKit extends ChatBotKitClient {
|
|
|
19
19
|
memory: MemoryClient;
|
|
20
20
|
policy: PolicyClient;
|
|
21
21
|
portal: PortalClient;
|
|
22
|
-
report: ReportClient;
|
|
23
22
|
usage: UsageClient;
|
|
24
23
|
graphql: GraphqlClient;
|
|
25
24
|
}
|
|
@@ -41,11 +40,10 @@ import { TeamClient } from './team/index.js';
|
|
|
41
40
|
import { MemoryClient } from './memory/index.js';
|
|
42
41
|
import { PolicyClient } from './policy/index.js';
|
|
43
42
|
import { PortalClient } from './portal/index.js';
|
|
44
|
-
import { ReportClient } from './report/index.js';
|
|
45
43
|
import { GraphqlClient } from './graphql/index.js';
|
|
46
44
|
import { SpaceClient } from './space/index.js';
|
|
47
45
|
import { UsageClient } from './usage/index.js';
|
|
48
46
|
import { ChatBotKitClient } from './client.js';
|
|
49
47
|
import { PlatformClient } from './platform/index.js';
|
|
50
48
|
import { TaskClient } from './task/index.js';
|
|
51
|
-
export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient,
|
|
49
|
+
export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, GraphqlClient, SpaceClient, UsageClient };
|
package/dist/esm/index.js
CHANGED
|
@@ -15,7 +15,6 @@ 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';
|
|
19
18
|
import { SecretClient } from './secret/index.js';
|
|
20
19
|
import { SkillsetClient } from './skillset/index.js';
|
|
21
20
|
import { SpaceClient } from './space/index.js';
|
|
@@ -39,7 +38,6 @@ export { TeamClient };
|
|
|
39
38
|
export { MemoryClient };
|
|
40
39
|
export { PolicyClient };
|
|
41
40
|
export { PortalClient };
|
|
42
|
-
export { ReportClient };
|
|
43
41
|
export { GraphqlClient };
|
|
44
42
|
export { SpaceClient };
|
|
45
43
|
export { UsageClient };
|
|
@@ -66,7 +64,6 @@ export class ChatBotKit extends ChatBotKitClient {
|
|
|
66
64
|
this.memory = new MemoryClient(options);
|
|
67
65
|
this.policy = new PolicyClient(options);
|
|
68
66
|
this.portal = new PortalClient(options);
|
|
69
|
-
this.report = new ReportClient(options);
|
|
70
67
|
this.usage = new UsageClient(options);
|
|
71
68
|
this.graphql = new GraphqlClient(options);
|
|
72
69
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class GooglechatIntegrationClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").GooglechatIntegrationListRequest): ResponsePromise<import("./v1.js").GooglechatIntegrationListResponse, import("./v1.js").GooglechatIntegrationListStreamType>;
|
|
3
|
+
fetch(googlechatId: string): ResponsePromise<import("./v1.js").GooglechatIntegrationFetchResponse, never>;
|
|
4
|
+
create(request: import("./v1.js").GooglechatIntegrationCreateRequest): Promise<import("./v1.js").GooglechatIntegrationCreateResponse>;
|
|
5
|
+
update(googlechatId: string, request: import("./v1.js").GooglechatIntegrationUpdateRequest): Promise<import("./v1.js").GooglechatIntegrationUpdateResponse>;
|
|
6
|
+
delete(googlechatId: string): Promise<import("./v1.js").GooglechatIntegrationDeleteResponse>;
|
|
7
|
+
setup(googlechatId: string): Promise<import("./v1.js").GooglechatIntegrationSetupResponse>;
|
|
8
|
+
}
|
|
9
|
+
export default GooglechatIntegrationClient;
|
|
10
|
+
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
11
|
+
import { ChatBotKitClient } from '../../client.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -14,6 +14,8 @@ export class IntegrationClient extends ChatBotKitClient {
|
|
|
14
14
|
extract: ExtractIntegrationClient;
|
|
15
15
|
mcpserver: McpServerIntegrationClient;
|
|
16
16
|
twilio: TwilioIntegrationClient;
|
|
17
|
+
teams: TeamsIntegrationClient;
|
|
18
|
+
googlechat: GooglechatIntegrationClient;
|
|
17
19
|
}
|
|
18
20
|
export default IntegrationClient;
|
|
19
21
|
import { ChatBotKitClient } from '../client.js';
|
|
@@ -32,3 +34,5 @@ import { SupportIntegrationClient } from './support/index.js';
|
|
|
32
34
|
import { ExtractIntegrationClient } from './extract/index.js';
|
|
33
35
|
import { McpServerIntegrationClient } from './mcpserver/index.js';
|
|
34
36
|
import { TwilioIntegrationClient } from './twilio/index.js';
|
|
37
|
+
import { TeamsIntegrationClient } from './teams/index.js';
|
|
38
|
+
import { GooglechatIntegrationClient } from './googlechat/index.js';
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
import { InstagramIntegrationClient } from './instagram/index.js';
|
|
6
7
|
import { McpServerIntegrationClient } from './mcpserver/index.js';
|
|
7
8
|
import { MessengerIntegrationClient } from './messenger/index.js';
|
|
@@ -9,6 +10,7 @@ import { NotionIntegrationClient } from './notion/index.js';
|
|
|
9
10
|
import { SitemapIntegrationClient } from './sitemap/index.js';
|
|
10
11
|
import { SlackIntegrationClient } from './slack/index.js';
|
|
11
12
|
import { SupportIntegrationClient } from './support/index.js';
|
|
13
|
+
import { TeamsIntegrationClient } from './teams/index.js';
|
|
12
14
|
import { TelegramIntegrationClient } from './telegram/index.js';
|
|
13
15
|
import { TriggerIntegrationClient } from './trigger/index.js';
|
|
14
16
|
import { TwilioIntegrationClient } from './twilio/index.js';
|
|
@@ -32,6 +34,8 @@ export class IntegrationClient extends ChatBotKitClient {
|
|
|
32
34
|
this.extract = new ExtractIntegrationClient(options);
|
|
33
35
|
this.mcpserver = new McpServerIntegrationClient(options);
|
|
34
36
|
this.twilio = new TwilioIntegrationClient(options);
|
|
37
|
+
this.teams = new TeamsIntegrationClient(options);
|
|
38
|
+
this.googlechat = new GooglechatIntegrationClient(options);
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
export default IntegrationClient;
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
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>;
|
|
3
4
|
}
|
|
4
5
|
export default PlatformAbilityClient;
|
|
5
6
|
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 } from './v1.js';
|
|
2
|
+
import { listPlatformAbilities, searchPlatformAbilities } from './v1.js';
|
|
3
3
|
export class PlatformAbilityClient extends ChatBotKitClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
super(options);
|
|
@@ -7,5 +7,8 @@ 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
|
+
}
|
|
10
13
|
}
|
|
11
14
|
export default PlatformAbilityClient;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export function listPlatformAbilities(client: ChatBotKitClient, request?: PlatformAbilityListRequest): ResponsePromise<PlatformAbilityListResponse, PlatformAbilityListStreamType>;
|
|
2
|
+
export function searchPlatformAbilities(client: ChatBotKitClient, request: PlatformAbilitySearchRequest): Promise<PlatformAbilitySearchResponse>;
|
|
2
3
|
export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
|
|
3
4
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|
|
4
5
|
export type PlatformAbilityListRequest = {
|
|
@@ -10,3 +11,7 @@ export type PlatformAbilityListRequest = {
|
|
|
10
11
|
export type PlatformAbilityListResponse = import("../../types/api/v1.js").operations["listPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
|
|
11
12
|
export type PlatformAbilityListItem = PlatformAbilityListResponse["items"][number];
|
|
12
13
|
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,3 +3,12 @@ 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,5 +1,8 @@
|
|
|
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>;
|
|
3
6
|
}
|
|
4
7
|
export default PlatformReportClient;
|
|
5
8
|
export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
|