@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.
Files changed (66) hide show
  1. package/README.md +0 -14
  2. package/dist/cjs/client.cjs +3 -5
  3. package/dist/cjs/client.d.ts +2 -7
  4. package/dist/cjs/index.cjs +21 -18
  5. package/dist/cjs/index.d.ts +3 -1
  6. package/dist/cjs/integration/index.cjs +24 -28
  7. package/dist/cjs/integration/index.d.ts +0 -4
  8. package/dist/cjs/platform/ability/index.cjs +0 -3
  9. package/dist/cjs/platform/ability/index.d.ts +0 -1
  10. package/dist/cjs/platform/ability/v1.cjs +0 -10
  11. package/dist/cjs/platform/ability/v1.d.ts +0 -5
  12. package/dist/cjs/platform/report/index.cjs +0 -9
  13. package/dist/cjs/platform/report/index.d.ts +0 -3
  14. package/dist/cjs/platform/report/v1.cjs +0 -30
  15. package/dist/cjs/platform/report/v1.d.ts +0 -12
  16. package/dist/cjs/platform/secret/index.cjs +0 -3
  17. package/dist/cjs/platform/secret/index.d.ts +0 -1
  18. package/dist/cjs/platform/secret/v1.cjs +0 -10
  19. package/dist/cjs/platform/secret/v1.d.ts +0 -5
  20. package/dist/cjs/report/index.cjs +18 -0
  21. package/dist/cjs/report/index.d.ts +6 -0
  22. package/dist/cjs/report/v1.cjs +22 -0
  23. package/dist/cjs/report/v1.d.ts +9 -0
  24. package/dist/cjs/types/api/v1.d.ts +679 -2274
  25. package/dist/cjs/types/report.d.ts +1 -139
  26. package/dist/esm/client.d.ts +2 -7
  27. package/dist/esm/client.js +3 -5
  28. package/dist/esm/index.d.ts +3 -1
  29. package/dist/esm/index.js +3 -0
  30. package/dist/esm/integration/index.d.ts +0 -4
  31. package/dist/esm/integration/index.js +0 -4
  32. package/dist/esm/platform/ability/index.d.ts +0 -1
  33. package/dist/esm/platform/ability/index.js +1 -4
  34. package/dist/esm/platform/ability/v1.d.ts +0 -5
  35. package/dist/esm/platform/ability/v1.js +0 -9
  36. package/dist/esm/platform/report/index.d.ts +0 -3
  37. package/dist/esm/platform/report/index.js +1 -10
  38. package/dist/esm/platform/report/v1.d.ts +0 -12
  39. package/dist/esm/platform/report/v1.js +0 -27
  40. package/dist/esm/platform/secret/index.d.ts +0 -1
  41. package/dist/esm/platform/secret/index.js +1 -4
  42. package/dist/esm/platform/secret/v1.d.ts +0 -5
  43. package/dist/esm/platform/secret/v1.js +0 -9
  44. package/dist/esm/report/index.d.ts +6 -0
  45. package/dist/esm/report/index.js +14 -0
  46. package/dist/esm/report/v1.d.ts +9 -0
  47. package/dist/esm/report/v1.js +18 -0
  48. package/dist/esm/types/api/v1.d.ts +679 -2274
  49. package/dist/esm/types/report.d.ts +1 -139
  50. package/package.json +51 -101
  51. package/dist/cjs/integration/googlechat/index.cjs +0 -30
  52. package/dist/cjs/integration/googlechat/index.d.ts +0 -11
  53. package/dist/cjs/integration/googlechat/v1.cjs +0 -50
  54. package/dist/cjs/integration/googlechat/v1.d.ts +0 -33
  55. package/dist/cjs/integration/teams/index.cjs +0 -30
  56. package/dist/cjs/integration/teams/index.d.ts +0 -11
  57. package/dist/cjs/integration/teams/v1.cjs +0 -50
  58. package/dist/cjs/integration/teams/v1.d.ts +0 -33
  59. package/dist/esm/integration/googlechat/index.d.ts +0 -11
  60. package/dist/esm/integration/googlechat/index.js +0 -26
  61. package/dist/esm/integration/googlechat/v1.d.ts +0 -33
  62. package/dist/esm/integration/googlechat/v1.js +0 -42
  63. package/dist/esm/integration/teams/index.d.ts +0 -11
  64. package/dist/esm/integration/teams/index.js +0 -26
  65. package/dist/esm/integration/teams/v1.d.ts +0 -33
  66. 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 = 'cm7k3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000108jq3c4d7f2b' | 'clr3m5n8k000208jq8e5f6g3c' | 'clr3m5n8k000308jq1h7i8j4d' | 'clr3m5n8k000408jq9i8j9k5e' | 'clr3m5n8k000508jq2j9k0l6f' | 'clr3m5n8k000608jq3k0l1m7g' | 'clr3m5n8k000708jq4l1m2n8h' | 'clr3m5n8k000808jq5m2n3o9i' | 'clr3m5n8k000908jq6n3o4p0j' | 'clr3m5n8k000a08jq7o4p5q1k' | 'clr3m5n8k000b08jq8p5q6r2l' | 'clr3m5n8k000c08jq9q6r7s3m' | 'clr3m5n8k000d08jqar7s8t4n' | 'clr3m5n8k000e08jqbs0t1u5o' | 'clr3m5n8k000f08jqcs1u2v6p' | 'clr3m5n8k000g08jqdt1u2v7q' | 'clr3m5n8k000h08jqeu2v3w8r' | 'clr3m5n8k000i08jqfv3w4x9s' | 'clr3m5n8k000j08jqgw4x5y0t' | 'gpv2an25fuhe2k6v6ckv85v8'
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbotkit/sdk",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "The fastest way to build advanced AI chat bots",
5
5
  "license": "ISC",
6
6
  "engines": {
@@ -1228,56 +1228,6 @@
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
- },
1281
1231
  "./integration": {
1282
1232
  "import": {
1283
1233
  "types": "./dist/esm/integration/index.d.ts",
@@ -1658,56 +1608,6 @@
1658
1608
  "default": "./dist/cjs/integration/support/v1.cjs"
1659
1609
  }
1660
1610
  },
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
- },
1711
1611
  "./integration/telegram": {
1712
1612
  "import": {
1713
1613
  "types": "./dist/esm/integration/telegram/index.d.ts",
@@ -2848,6 +2748,56 @@
2848
2748
  "default": "./dist/cjs/portal/v1.cjs"
2849
2749
  }
2850
2750
  },
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
+ },
2851
2801
  "./secret": {
2852
2802
  "import": {
2853
2803
  "types": "./dist/esm/secret/index.d.ts",
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GooglechatIntegrationClient = void 0;
4
- const client_js_1 = require("../../client.cjs");
5
- const v1_js_1 = require("./v1.cjs");
6
- class GooglechatIntegrationClient extends client_js_1.ChatBotKitClient {
7
- constructor(options) {
8
- super(options);
9
- }
10
- list(request) {
11
- return (0, v1_js_1.listGooglechatIntegrations)(this, request);
12
- }
13
- fetch(googlechatId) {
14
- return (0, v1_js_1.fetchGooglechatIntegration)(this, googlechatId);
15
- }
16
- create(request) {
17
- return (0, v1_js_1.createGooglechatIntegration)(this, request);
18
- }
19
- update(googlechatId, request) {
20
- return (0, v1_js_1.updateGooglechatIntegration)(this, googlechatId, request);
21
- }
22
- delete(googlechatId) {
23
- return (0, v1_js_1.deleteGooglechatIntegration)(this, googlechatId);
24
- }
25
- setup(googlechatId) {
26
- return (0, v1_js_1.setupGooglechatIntegration)(this, googlechatId);
27
- }
28
- }
29
- exports.GooglechatIntegrationClient = GooglechatIntegrationClient;
30
- exports.default = GooglechatIntegrationClient;
@@ -1,11 +0,0 @@
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.cjs';
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listGooglechatIntegrations = listGooglechatIntegrations;
4
- exports.fetchGooglechatIntegration = fetchGooglechatIntegration;
5
- exports.createGooglechatIntegration = createGooglechatIntegration;
6
- exports.updateGooglechatIntegration = updateGooglechatIntegration;
7
- exports.deleteGooglechatIntegration = deleteGooglechatIntegration;
8
- exports.setupGooglechatIntegration = setupGooglechatIntegration;
9
- function listGooglechatIntegrations(client, request) {
10
- let url = `/api/v1/integration/googlechat/list`;
11
- const response = client.clientFetch(url, { query: request });
12
- return response;
13
- }
14
- function fetchGooglechatIntegration(client, googlechatId) {
15
- const url = `/api/v1/integration/googlechat/${googlechatId}/fetch`;
16
- const response = client.clientFetch(url);
17
- return response;
18
- }
19
- async function createGooglechatIntegration(client, request) {
20
- const url = `/api/v1/integration/googlechat/create`;
21
- const response = await client.clientFetch(url, {
22
- record: {
23
- ...request,
24
- },
25
- });
26
- return response;
27
- }
28
- async function updateGooglechatIntegration(client, googlechatId, request) {
29
- const url = `/api/v1/integration/googlechat/${googlechatId}/update`;
30
- const response = await client.clientFetch(url, {
31
- record: {
32
- ...request,
33
- },
34
- });
35
- return response;
36
- }
37
- async function deleteGooglechatIntegration(client, googlechatId) {
38
- const url = `/api/v1/integration/googlechat/${googlechatId}/delete`;
39
- const response = await client.clientFetch(url, {
40
- record: {},
41
- });
42
- return response;
43
- }
44
- async function setupGooglechatIntegration(client, googlechatId) {
45
- const url = `/api/v1/integration/googlechat/${googlechatId}/setup`;
46
- const response = await client.clientFetch(url, {
47
- record: {},
48
- });
49
- return response;
50
- }
@@ -1,33 +0,0 @@
1
- export function listGooglechatIntegrations(client: ChatBotKitClient, request?: GooglechatIntegrationListRequest): ResponsePromise<GooglechatIntegrationListResponse, GooglechatIntegrationListStreamType>;
2
- export function fetchGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): ResponsePromise<GooglechatIntegrationFetchResponse, never>;
3
- export function createGooglechatIntegration(client: ChatBotKitClient, request: GooglechatIntegrationCreateRequest): Promise<GooglechatIntegrationCreateResponse>;
4
- export function updateGooglechatIntegration(client: ChatBotKitClient, googlechatId: string, request: GooglechatIntegrationUpdateRequest): Promise<GooglechatIntegrationUpdateResponse>;
5
- export function deleteGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): Promise<GooglechatIntegrationDeleteResponse>;
6
- export function setupGooglechatIntegration(client: ChatBotKitClient, googlechatId: string): Promise<GooglechatIntegrationSetupResponse>;
7
- export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
8
- export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
9
- export type GooglechatIntegrationListRequest = {
10
- cursor?: string;
11
- order?: "desc" | "asc";
12
- take?: number;
13
- meta?: Record<string, string>;
14
- };
15
- export type GooglechatIntegrationListResponse = import("../../types/api/v1.js").operations["listGooglechatIntegrations"]["responses"]["200"]["content"]["application/json"];
16
- export type GooglechatIntegrationListStreamType = import("../../types/api/v1.js").operations["listGooglechatIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
17
- export type GooglechatIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
18
- export type GooglechatIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createGooglechatIntegration"]["requestBody"]["content"]["application/json"];
19
- export type GooglechatIntegrationCreateRequest = GooglechatIntegrationCreateRequestBody;
20
- export type GooglechatIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
21
- export type GooglechatIntegrationCreateResponse = GooglechatIntegrationCreateResponseBody;
22
- export type GooglechatIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateGooglechatIntegration"]["requestBody"]["content"]["application/json"];
23
- export type GooglechatIntegrationUpdateRequest = GooglechatIntegrationUpdateRequestBody;
24
- export type GooglechatIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
25
- export type GooglechatIntegrationUpdateResponse = GooglechatIntegrationUpdateResponseBody;
26
- export type GooglechatIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteGooglechatIntegration"]["requestBody"]["content"]["application/json"];
27
- export type GooglechatIntegrationDeleteRequest = GooglechatIntegrationDeleteRequestBody;
28
- export type GooglechatIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
29
- export type GooglechatIntegrationDeleteResponse = GooglechatIntegrationDeleteResponseBody;
30
- export type GooglechatIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupGooglechatIntegration"]["requestBody"]["content"]["application/json"];
31
- export type GooglechatIntegrationSetupRequest = GooglechatIntegrationSetupRequestBody;
32
- export type GooglechatIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupGooglechatIntegration"]["responses"]["200"]["content"]["application/json"];
33
- export type GooglechatIntegrationSetupResponse = GooglechatIntegrationSetupResponseBody;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TeamsIntegrationClient = void 0;
4
- const client_js_1 = require("../../client.cjs");
5
- const v1_js_1 = require("./v1.cjs");
6
- class TeamsIntegrationClient extends client_js_1.ChatBotKitClient {
7
- constructor(options) {
8
- super(options);
9
- }
10
- list(request) {
11
- return (0, v1_js_1.listTeamsIntegrations)(this, request);
12
- }
13
- fetch(teamsId) {
14
- return (0, v1_js_1.fetchTeamsIntegration)(this, teamsId);
15
- }
16
- create(request) {
17
- return (0, v1_js_1.createTeamsIntegration)(this, request);
18
- }
19
- update(teamsId, request) {
20
- return (0, v1_js_1.updateTeamsIntegration)(this, teamsId, request);
21
- }
22
- delete(teamsId) {
23
- return (0, v1_js_1.deleteTeamsIntegration)(this, teamsId);
24
- }
25
- setup(teamsId) {
26
- return (0, v1_js_1.setupTeamsIntegration)(this, teamsId);
27
- }
28
- }
29
- exports.TeamsIntegrationClient = TeamsIntegrationClient;
30
- exports.default = TeamsIntegrationClient;
@@ -1,11 +0,0 @@
1
- export class TeamsIntegrationClient extends ChatBotKitClient {
2
- list(request?: import("./v1.js").TeamsIntegrationListRequest): ResponsePromise<import("./v1.js").TeamsIntegrationListResponse, import("./v1.js").TeamsIntegrationListStreamType>;
3
- fetch(teamsId: string): ResponsePromise<import("./v1.js").TeamsIntegrationFetchResponse, never>;
4
- create(request: import("./v1.js").TeamsIntegrationCreateRequest): Promise<import("./v1.js").TeamsIntegrationCreateResponse>;
5
- update(teamsId: string, request: import("./v1.js").TeamsIntegrationUpdateRequest): Promise<import("./v1.js").TeamsIntegrationUpdateResponse>;
6
- delete(teamsId: string): Promise<import("./v1.js").TeamsIntegrationDeleteResponse>;
7
- setup(teamsId: string): Promise<import("./v1.js").TeamsIntegrationSetupResponse>;
8
- }
9
- export default TeamsIntegrationClient;
10
- export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
11
- import { ChatBotKitClient } from '../../client.cjs';
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listTeamsIntegrations = listTeamsIntegrations;
4
- exports.fetchTeamsIntegration = fetchTeamsIntegration;
5
- exports.createTeamsIntegration = createTeamsIntegration;
6
- exports.updateTeamsIntegration = updateTeamsIntegration;
7
- exports.deleteTeamsIntegration = deleteTeamsIntegration;
8
- exports.setupTeamsIntegration = setupTeamsIntegration;
9
- function listTeamsIntegrations(client, request) {
10
- let url = `/api/v1/integration/teams/list`;
11
- const response = client.clientFetch(url, { query: request });
12
- return response;
13
- }
14
- function fetchTeamsIntegration(client, teamsId) {
15
- const url = `/api/v1/integration/teams/${teamsId}/fetch`;
16
- const response = client.clientFetch(url);
17
- return response;
18
- }
19
- async function createTeamsIntegration(client, request) {
20
- const url = `/api/v1/integration/teams/create`;
21
- const response = await client.clientFetch(url, {
22
- record: {
23
- ...request,
24
- },
25
- });
26
- return response;
27
- }
28
- async function updateTeamsIntegration(client, teamsId, request) {
29
- const url = `/api/v1/integration/teams/${teamsId}/update`;
30
- const response = await client.clientFetch(url, {
31
- record: {
32
- ...request,
33
- },
34
- });
35
- return response;
36
- }
37
- async function deleteTeamsIntegration(client, teamsId) {
38
- const url = `/api/v1/integration/teams/${teamsId}/delete`;
39
- const response = await client.clientFetch(url, {
40
- record: {},
41
- });
42
- return response;
43
- }
44
- async function setupTeamsIntegration(client, teamsId) {
45
- const url = `/api/v1/integration/teams/${teamsId}/setup`;
46
- const response = await client.clientFetch(url, {
47
- record: {},
48
- });
49
- return response;
50
- }
@@ -1,33 +0,0 @@
1
- export function listTeamsIntegrations(client: ChatBotKitClient, request?: TeamsIntegrationListRequest): ResponsePromise<TeamsIntegrationListResponse, TeamsIntegrationListStreamType>;
2
- export function fetchTeamsIntegration(client: ChatBotKitClient, teamsId: string): ResponsePromise<TeamsIntegrationFetchResponse, never>;
3
- export function createTeamsIntegration(client: ChatBotKitClient, request: TeamsIntegrationCreateRequest): Promise<TeamsIntegrationCreateResponse>;
4
- export function updateTeamsIntegration(client: ChatBotKitClient, teamsId: string, request: TeamsIntegrationUpdateRequest): Promise<TeamsIntegrationUpdateResponse>;
5
- export function deleteTeamsIntegration(client: ChatBotKitClient, teamsId: string): Promise<TeamsIntegrationDeleteResponse>;
6
- export function setupTeamsIntegration(client: ChatBotKitClient, teamsId: string): Promise<TeamsIntegrationSetupResponse>;
7
- export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
8
- export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
9
- export type TeamsIntegrationListRequest = {
10
- cursor?: string;
11
- order?: "desc" | "asc";
12
- take?: number;
13
- meta?: Record<string, string>;
14
- };
15
- export type TeamsIntegrationListResponse = import("../../types/api/v1.js").operations["listTeamsIntegrations"]["responses"]["200"]["content"]["application/json"];
16
- export type TeamsIntegrationListStreamType = import("../../types/api/v1.js").operations["listTeamsIntegrations"]["responses"]["200"]["content"]["application/jsonl"];
17
- export type TeamsIntegrationFetchResponse = import("../../types/api/v1.js").operations["fetchTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
18
- export type TeamsIntegrationCreateRequestBody = import("../../types/api/v1.js").operations["createTeamsIntegration"]["requestBody"]["content"]["application/json"];
19
- export type TeamsIntegrationCreateRequest = TeamsIntegrationCreateRequestBody;
20
- export type TeamsIntegrationCreateResponseBody = import("../../types/api/v1.js").operations["createTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
21
- export type TeamsIntegrationCreateResponse = TeamsIntegrationCreateResponseBody;
22
- export type TeamsIntegrationUpdateRequestBody = import("../../types/api/v1.js").operations["updateTeamsIntegration"]["requestBody"]["content"]["application/json"];
23
- export type TeamsIntegrationUpdateRequest = TeamsIntegrationUpdateRequestBody;
24
- export type TeamsIntegrationUpdateResponseBody = import("../../types/api/v1.js").operations["updateTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
25
- export type TeamsIntegrationUpdateResponse = TeamsIntegrationUpdateResponseBody;
26
- export type TeamsIntegrationDeleteRequestBody = import("../../types/api/v1.js").operations["deleteTeamsIntegration"]["requestBody"]["content"]["application/json"];
27
- export type TeamsIntegrationDeleteRequest = TeamsIntegrationDeleteRequestBody;
28
- export type TeamsIntegrationDeleteResponseBody = import("../../types/api/v1.js").operations["deleteTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
29
- export type TeamsIntegrationDeleteResponse = TeamsIntegrationDeleteResponseBody;
30
- export type TeamsIntegrationSetupRequestBody = import("../../types/api/v1.js").operations["setupTeamsIntegration"]["requestBody"]["content"]["application/json"];
31
- export type TeamsIntegrationSetupRequest = TeamsIntegrationSetupRequestBody;
32
- export type TeamsIntegrationSetupResponseBody = import("../../types/api/v1.js").operations["setupTeamsIntegration"]["responses"]["200"]["content"]["application/json"];
33
- export type TeamsIntegrationSetupResponse = TeamsIntegrationSetupResponseBody;
@@ -1,11 +0,0 @@
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';