@chatbotkit/sdk 1.28.0 → 1.29.1
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 +8 -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/ability.d.ts +2302 -0
- package/dist/cjs/types/api/v1.d.ts +2391 -699
- 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 +8 -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/ability.d.ts +2302 -0
- package/dist/esm/types/api/v1.d.ts +2391 -699
- package/dist/esm/types/report.d.ts +139 -1
- package/package.json +122 -52
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.1",
|
|
4
4
|
"description": "The fastest way to build advanced AI chat bots",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -1228,6 +1228,56 @@
|
|
|
1228
1228
|
"default": "./dist/cjs/integration/extract/v1.cjs"
|
|
1229
1229
|
}
|
|
1230
1230
|
},
|
|
1231
|
+
"./integration/googlechat": {
|
|
1232
|
+
"import": {
|
|
1233
|
+
"types": "./dist/esm/integration/googlechat/index.d.ts",
|
|
1234
|
+
"default": "./dist/esm/integration/googlechat/index.js"
|
|
1235
|
+
},
|
|
1236
|
+
"require": {
|
|
1237
|
+
"types": "./dist/cjs/integration/googlechat/index.d.ts",
|
|
1238
|
+
"default": "./dist/cjs/integration/googlechat/index.cjs"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"./integration/googlechat/index": {
|
|
1242
|
+
"import": {
|
|
1243
|
+
"types": "./dist/esm/integration/googlechat/index.d.ts",
|
|
1244
|
+
"default": "./dist/esm/integration/googlechat/index.js"
|
|
1245
|
+
},
|
|
1246
|
+
"require": {
|
|
1247
|
+
"types": "./dist/cjs/integration/googlechat/index.d.ts",
|
|
1248
|
+
"default": "./dist/cjs/integration/googlechat/index.cjs"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
"./integration/googlechat/index.js": {
|
|
1252
|
+
"import": {
|
|
1253
|
+
"types": "./dist/esm/integration/googlechat/index.d.ts",
|
|
1254
|
+
"default": "./dist/esm/integration/googlechat/index.js"
|
|
1255
|
+
},
|
|
1256
|
+
"require": {
|
|
1257
|
+
"types": "./dist/cjs/integration/googlechat/index.d.ts",
|
|
1258
|
+
"default": "./dist/cjs/integration/googlechat/index.cjs"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"./integration/googlechat/v1": {
|
|
1262
|
+
"import": {
|
|
1263
|
+
"types": "./dist/esm/integration/googlechat/v1.d.ts",
|
|
1264
|
+
"default": "./dist/esm/integration/googlechat/v1.js"
|
|
1265
|
+
},
|
|
1266
|
+
"require": {
|
|
1267
|
+
"types": "./dist/cjs/integration/googlechat/v1.d.ts",
|
|
1268
|
+
"default": "./dist/cjs/integration/googlechat/v1.cjs"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"./integration/googlechat/v1.js": {
|
|
1272
|
+
"import": {
|
|
1273
|
+
"types": "./dist/esm/integration/googlechat/v1.d.ts",
|
|
1274
|
+
"default": "./dist/esm/integration/googlechat/v1.js"
|
|
1275
|
+
},
|
|
1276
|
+
"require": {
|
|
1277
|
+
"types": "./dist/cjs/integration/googlechat/v1.d.ts",
|
|
1278
|
+
"default": "./dist/cjs/integration/googlechat/v1.cjs"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1231
1281
|
"./integration": {
|
|
1232
1282
|
"import": {
|
|
1233
1283
|
"types": "./dist/esm/integration/index.d.ts",
|
|
@@ -1608,6 +1658,56 @@
|
|
|
1608
1658
|
"default": "./dist/cjs/integration/support/v1.cjs"
|
|
1609
1659
|
}
|
|
1610
1660
|
},
|
|
1661
|
+
"./integration/teams": {
|
|
1662
|
+
"import": {
|
|
1663
|
+
"types": "./dist/esm/integration/teams/index.d.ts",
|
|
1664
|
+
"default": "./dist/esm/integration/teams/index.js"
|
|
1665
|
+
},
|
|
1666
|
+
"require": {
|
|
1667
|
+
"types": "./dist/cjs/integration/teams/index.d.ts",
|
|
1668
|
+
"default": "./dist/cjs/integration/teams/index.cjs"
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
"./integration/teams/index": {
|
|
1672
|
+
"import": {
|
|
1673
|
+
"types": "./dist/esm/integration/teams/index.d.ts",
|
|
1674
|
+
"default": "./dist/esm/integration/teams/index.js"
|
|
1675
|
+
},
|
|
1676
|
+
"require": {
|
|
1677
|
+
"types": "./dist/cjs/integration/teams/index.d.ts",
|
|
1678
|
+
"default": "./dist/cjs/integration/teams/index.cjs"
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
"./integration/teams/index.js": {
|
|
1682
|
+
"import": {
|
|
1683
|
+
"types": "./dist/esm/integration/teams/index.d.ts",
|
|
1684
|
+
"default": "./dist/esm/integration/teams/index.js"
|
|
1685
|
+
},
|
|
1686
|
+
"require": {
|
|
1687
|
+
"types": "./dist/cjs/integration/teams/index.d.ts",
|
|
1688
|
+
"default": "./dist/cjs/integration/teams/index.cjs"
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
"./integration/teams/v1": {
|
|
1692
|
+
"import": {
|
|
1693
|
+
"types": "./dist/esm/integration/teams/v1.d.ts",
|
|
1694
|
+
"default": "./dist/esm/integration/teams/v1.js"
|
|
1695
|
+
},
|
|
1696
|
+
"require": {
|
|
1697
|
+
"types": "./dist/cjs/integration/teams/v1.d.ts",
|
|
1698
|
+
"default": "./dist/cjs/integration/teams/v1.cjs"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"./integration/teams/v1.js": {
|
|
1702
|
+
"import": {
|
|
1703
|
+
"types": "./dist/esm/integration/teams/v1.d.ts",
|
|
1704
|
+
"default": "./dist/esm/integration/teams/v1.js"
|
|
1705
|
+
},
|
|
1706
|
+
"require": {
|
|
1707
|
+
"types": "./dist/cjs/integration/teams/v1.d.ts",
|
|
1708
|
+
"default": "./dist/cjs/integration/teams/v1.cjs"
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1611
1711
|
"./integration/telegram": {
|
|
1612
1712
|
"import": {
|
|
1613
1713
|
"types": "./dist/esm/integration/telegram/index.d.ts",
|
|
@@ -2748,56 +2848,6 @@
|
|
|
2748
2848
|
"default": "./dist/cjs/portal/v1.cjs"
|
|
2749
2849
|
}
|
|
2750
2850
|
},
|
|
2751
|
-
"./report": {
|
|
2752
|
-
"import": {
|
|
2753
|
-
"types": "./dist/esm/report/index.d.ts",
|
|
2754
|
-
"default": "./dist/esm/report/index.js"
|
|
2755
|
-
},
|
|
2756
|
-
"require": {
|
|
2757
|
-
"types": "./dist/cjs/report/index.d.ts",
|
|
2758
|
-
"default": "./dist/cjs/report/index.cjs"
|
|
2759
|
-
}
|
|
2760
|
-
},
|
|
2761
|
-
"./report/index": {
|
|
2762
|
-
"import": {
|
|
2763
|
-
"types": "./dist/esm/report/index.d.ts",
|
|
2764
|
-
"default": "./dist/esm/report/index.js"
|
|
2765
|
-
},
|
|
2766
|
-
"require": {
|
|
2767
|
-
"types": "./dist/cjs/report/index.d.ts",
|
|
2768
|
-
"default": "./dist/cjs/report/index.cjs"
|
|
2769
|
-
}
|
|
2770
|
-
},
|
|
2771
|
-
"./report/index.js": {
|
|
2772
|
-
"import": {
|
|
2773
|
-
"types": "./dist/esm/report/index.d.ts",
|
|
2774
|
-
"default": "./dist/esm/report/index.js"
|
|
2775
|
-
},
|
|
2776
|
-
"require": {
|
|
2777
|
-
"types": "./dist/cjs/report/index.d.ts",
|
|
2778
|
-
"default": "./dist/cjs/report/index.cjs"
|
|
2779
|
-
}
|
|
2780
|
-
},
|
|
2781
|
-
"./report/v1": {
|
|
2782
|
-
"import": {
|
|
2783
|
-
"types": "./dist/esm/report/v1.d.ts",
|
|
2784
|
-
"default": "./dist/esm/report/v1.js"
|
|
2785
|
-
},
|
|
2786
|
-
"require": {
|
|
2787
|
-
"types": "./dist/cjs/report/v1.d.ts",
|
|
2788
|
-
"default": "./dist/cjs/report/v1.cjs"
|
|
2789
|
-
}
|
|
2790
|
-
},
|
|
2791
|
-
"./report/v1.js": {
|
|
2792
|
-
"import": {
|
|
2793
|
-
"types": "./dist/esm/report/v1.d.ts",
|
|
2794
|
-
"default": "./dist/esm/report/v1.js"
|
|
2795
|
-
},
|
|
2796
|
-
"require": {
|
|
2797
|
-
"types": "./dist/cjs/report/v1.d.ts",
|
|
2798
|
-
"default": "./dist/cjs/report/v1.cjs"
|
|
2799
|
-
}
|
|
2800
|
-
},
|
|
2801
2851
|
"./secret": {
|
|
2802
2852
|
"import": {
|
|
2803
2853
|
"types": "./dist/esm/secret/index.d.ts",
|
|
@@ -3098,6 +3148,26 @@
|
|
|
3098
3148
|
"default": "./dist/cjs/team/v1.cjs"
|
|
3099
3149
|
}
|
|
3100
3150
|
},
|
|
3151
|
+
"./types/ability": {
|
|
3152
|
+
"import": {
|
|
3153
|
+
"types": "./dist/esm/types/ability.d.ts",
|
|
3154
|
+
"default": "./dist/esm/types/ability.js"
|
|
3155
|
+
},
|
|
3156
|
+
"require": {
|
|
3157
|
+
"types": "./dist/cjs/types/ability.d.ts",
|
|
3158
|
+
"default": "./dist/cjs/types/ability.cjs"
|
|
3159
|
+
}
|
|
3160
|
+
},
|
|
3161
|
+
"./types/ability.js": {
|
|
3162
|
+
"import": {
|
|
3163
|
+
"types": "./dist/esm/types/ability.d.ts",
|
|
3164
|
+
"default": "./dist/esm/types/ability.js"
|
|
3165
|
+
},
|
|
3166
|
+
"require": {
|
|
3167
|
+
"types": "./dist/cjs/types/ability.d.ts",
|
|
3168
|
+
"default": "./dist/cjs/types/ability.cjs"
|
|
3169
|
+
}
|
|
3170
|
+
},
|
|
3101
3171
|
"./types/api/v1": {
|
|
3102
3172
|
"import": {
|
|
3103
3173
|
"types": "./dist/esm/types/api/v1.d.ts",
|
|
@@ -3243,7 +3313,7 @@
|
|
|
3243
3313
|
"types": "./dist/cjs/index.d.ts",
|
|
3244
3314
|
"dependencies": {
|
|
3245
3315
|
"tslib": "^2.6.2",
|
|
3246
|
-
"@chatbotkit/fetch": "1.
|
|
3316
|
+
"@chatbotkit/fetch": "1.29.0"
|
|
3247
3317
|
},
|
|
3248
3318
|
"devDependencies": {
|
|
3249
3319
|
"npm-run-all": "^4.1.5",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportClient = void 0;
|
|
4
|
-
const client_js_1 = require("../client.cjs");
|
|
5
|
-
const v1_js_1 = require("./v1.cjs");
|
|
6
|
-
class ReportClient extends client_js_1.ChatBotKitClient {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
}
|
|
10
|
-
generate(reportId, request) {
|
|
11
|
-
return (0, v1_js_1.generateReport)(this, reportId, request);
|
|
12
|
-
}
|
|
13
|
-
generateTyped(reportId, request) {
|
|
14
|
-
return (0, v1_js_1.generateTypedReport)(this, reportId, request);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ReportClient = ReportClient;
|
|
18
|
-
exports.default = ReportClient;
|
|
@@ -1,6 +0,0 @@
|
|
|
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.cjs';
|
package/dist/cjs/report/v1.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateReport = generateReport;
|
|
4
|
-
exports.generateTypedReport = generateTypedReport;
|
|
5
|
-
async function generateReport(client, reportId, request) {
|
|
6
|
-
const url = `/api/v1/report/${reportId}/generate`;
|
|
7
|
-
const response = await client.clientFetch(url, {
|
|
8
|
-
record: {
|
|
9
|
-
...request,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
return response;
|
|
13
|
-
}
|
|
14
|
-
async function generateTypedReport(client, reportId, request) {
|
|
15
|
-
const url = `/api/v1/report/${reportId}/generate`;
|
|
16
|
-
const response = await client.clientFetch(url, {
|
|
17
|
-
record: {
|
|
18
|
-
...request,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
return response;
|
|
22
|
-
}
|
package/dist/cjs/report/v1.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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';
|
package/dist/esm/report/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
package/dist/esm/report/v1.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
package/dist/esm/report/v1.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|