@chatbotkit/sdk 1.21.8 → 1.21.9

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.
@@ -0,0 +1,284 @@
1
+ /**
2
+ * This file is auto-generated. Do not edit manually.
3
+ * Generated from report registry schemas.
4
+ */
5
+
6
+ export type ReportId = 'clr3m5n8k000008jq7h9e5b1a' | 'clr3m5n8k000108jq3c4d7f2b' | 'clr3m5n8k000208jq8e5f6g3c' | 'clr3m5n8k000308jq1h7i8j4d' | 'clr3m5n8k000408jq9i8j9k5e' | 'clr3m5n8k000508jq2j9k0l6f' | 'clr3m5n8k000608jq3k0l1m7g' | 'clr3m5n8k000708jq4l1m2n8h' | 'clr3m5n8k000808jq5m2n3o9i' | 'clr3m5n8k000908jq6n3o4p0j' | 'clr3m5n8k000a08jq7o4p5q1k' | 'clr3m5n8k000b08jq8p5q6r2l' | 'clr3m5n8k000c08jq9q6r7s3m'
7
+
8
+ export interface ReportMetadata {
9
+ id: string
10
+ name: string
11
+ description: string
12
+ createdAt: string
13
+ updatedAt: string
14
+ }
15
+
16
+ export interface ReportRegistry {
17
+ 'clr3m5n8k000008jq7h9e5b1a': {
18
+ name: string
19
+ description: string
20
+ input: TotalRatingsInput
21
+ output: TotalRatingsOutput
22
+ }
23
+ 'clr3m5n8k000108jq3c4d7f2b': {
24
+ name: string
25
+ description: string
26
+ input: ThumbsUpInput
27
+ output: ThumbsUpOutput
28
+ }
29
+ 'clr3m5n8k000208jq8e5f6g3c': {
30
+ name: string
31
+ description: string
32
+ input: ThumbsDownInput
33
+ output: ThumbsDownOutput
34
+ }
35
+ 'clr3m5n8k000308jq1h7i8j4d': {
36
+ name: string
37
+ description: string
38
+ input: TotalContactsInput
39
+ output: TotalContactsOutput
40
+ }
41
+ 'clr3m5n8k000408jq9i8j9k5e': {
42
+ name: string
43
+ description: string
44
+ input: ActiveContactsInput
45
+ output: ActiveContactsOutput
46
+ }
47
+ 'clr3m5n8k000508jq2j9k0l6f': {
48
+ name: string
49
+ description: string
50
+ input: TotalConversationsInput
51
+ output: TotalConversationsOutput
52
+ }
53
+ 'clr3m5n8k000608jq3k0l1m7g': {
54
+ name: string
55
+ description: string
56
+ input: TotalMessagesInput
57
+ output: TotalMessagesOutput
58
+ }
59
+ 'clr3m5n8k000708jq4l1m2n8h': {
60
+ name: string
61
+ description: string
62
+ input: UserMessagesInput
63
+ output: UserMessagesOutput
64
+ }
65
+ 'clr3m5n8k000808jq5m2n3o9i': {
66
+ name: string
67
+ description: string
68
+ input: BotMessagesInput
69
+ output: BotMessagesOutput
70
+ }
71
+ 'clr3m5n8k000908jq6n3o4p0j': {
72
+ name: string
73
+ description: string
74
+ input: ActivityMessagesInput
75
+ output: ActivityMessagesOutput
76
+ }
77
+ 'clr3m5n8k000a08jq7o4p5q1k': {
78
+ name: string
79
+ description: string
80
+ input: AverageUserMessagesPerConversationInput
81
+ output: AverageUserMessagesPerConversationOutput
82
+ }
83
+ 'clr3m5n8k000b08jq8p5q6r2l': {
84
+ name: string
85
+ description: string
86
+ input: AverageBotMessagesPerConversationInput
87
+ output: AverageBotMessagesPerConversationOutput
88
+ }
89
+ 'clr3m5n8k000c08jq9q6r7s3m': {
90
+ name: string
91
+ description: string
92
+ input: AverageActionsPerConversationInput
93
+ output: AverageActionsPerConversationOutput
94
+ }
95
+ }
96
+
97
+ // Input and Output Types for each report
98
+ export type TotalRatingsInput = {
99
+ userId: string
100
+ periodDays?: number
101
+ }
102
+
103
+ export type ThumbsUpInput = {
104
+ userId: string
105
+ periodDays?: number
106
+ }
107
+
108
+ export type ThumbsDownInput = {
109
+ userId: string
110
+ periodDays?: number
111
+ }
112
+
113
+ export type TotalContactsInput = {
114
+ userId: string
115
+ }
116
+
117
+ export type ActiveContactsInput = {
118
+ userId: string
119
+ periodDays?: number
120
+ }
121
+
122
+ export type TotalConversationsInput = {
123
+ userId: string
124
+ periodDays?: number
125
+ }
126
+
127
+ export type TotalMessagesInput = {
128
+ userId: string
129
+ periodDays?: number
130
+ }
131
+
132
+ export type UserMessagesInput = {
133
+ userId: string
134
+ periodDays?: number
135
+ }
136
+
137
+ export type BotMessagesInput = {
138
+ userId: string
139
+ periodDays?: number
140
+ }
141
+
142
+ export type ActivityMessagesInput = {
143
+ userId: string
144
+ periodDays?: number
145
+ }
146
+
147
+ export type AverageUserMessagesPerConversationInput = {
148
+ userId: string
149
+ periodDays?: number
150
+ }
151
+
152
+ export type AverageBotMessagesPerConversationInput = {
153
+ userId: string
154
+ periodDays?: number
155
+ }
156
+
157
+ export type AverageActionsPerConversationInput = {
158
+ userId: string
159
+ periodDays?: number
160
+ }
161
+
162
+ export type TotalRatingsOutput = {
163
+ value: number
164
+ change?: number
165
+ period: string
166
+ breakdown?: { date: string; total: number }[]
167
+ thumbsUp?: number
168
+ thumbsDown?: number
169
+ }
170
+
171
+ export type ThumbsUpOutput = {
172
+ value: number
173
+ change?: number
174
+ period: string
175
+ breakdown?: { date: string; total: number }[]
176
+ }
177
+
178
+ export type ThumbsDownOutput = {
179
+ value: number
180
+ change?: number
181
+ period: string
182
+ breakdown?: { date: string; total: number }[]
183
+ }
184
+
185
+ export type TotalContactsOutput = {
186
+ value: number
187
+ period: string
188
+ }
189
+
190
+ export type ActiveContactsOutput = {
191
+ value: number
192
+ change?: number
193
+ period: string
194
+ breakdown?: { date: string; total: number }[]
195
+ }
196
+
197
+ export type TotalConversationsOutput = {
198
+ value: number
199
+ change?: number
200
+ period: string
201
+ breakdown?: { date: string; total: number }[]
202
+ }
203
+
204
+ export type TotalMessagesOutput = {
205
+ value: number
206
+ change?: number
207
+ period: string
208
+ breakdown?: { date: string; total: number }[]
209
+ }
210
+
211
+ export type UserMessagesOutput = {
212
+ value: number
213
+ change?: number
214
+ period: string
215
+ breakdown?: { date: string; total: number }[]
216
+ }
217
+
218
+ export type BotMessagesOutput = {
219
+ value: number
220
+ change?: number
221
+ period: string
222
+ breakdown?: { date: string; total: number }[]
223
+ }
224
+
225
+ export type ActivityMessagesOutput = {
226
+ value: number
227
+ change?: number
228
+ period: string
229
+ breakdown?: { date: string; total: number }[]
230
+ }
231
+
232
+ export type AverageUserMessagesPerConversationOutput = {
233
+ value: number
234
+ period: string
235
+ }
236
+
237
+ export type AverageBotMessagesPerConversationOutput = {
238
+ value: number
239
+ period: string
240
+ }
241
+
242
+ export type AverageActionsPerConversationOutput = {
243
+ value: number
244
+ period: string
245
+ }
246
+
247
+ // Mapping report IDs to their input/output types
248
+ export type ReportInputTypes = {
249
+ 'clr3m5n8k000008jq7h9e5b1a': TotalRatingsInput
250
+ 'clr3m5n8k000108jq3c4d7f2b': ThumbsUpInput
251
+ 'clr3m5n8k000208jq8e5f6g3c': ThumbsDownInput
252
+ 'clr3m5n8k000308jq1h7i8j4d': TotalContactsInput
253
+ 'clr3m5n8k000408jq9i8j9k5e': ActiveContactsInput
254
+ 'clr3m5n8k000508jq2j9k0l6f': TotalConversationsInput
255
+ 'clr3m5n8k000608jq3k0l1m7g': TotalMessagesInput
256
+ 'clr3m5n8k000708jq4l1m2n8h': UserMessagesInput
257
+ 'clr3m5n8k000808jq5m2n3o9i': BotMessagesInput
258
+ 'clr3m5n8k000908jq6n3o4p0j': ActivityMessagesInput
259
+ 'clr3m5n8k000a08jq7o4p5q1k': AverageUserMessagesPerConversationInput
260
+ 'clr3m5n8k000b08jq8p5q6r2l': AverageBotMessagesPerConversationInput
261
+ 'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationInput
262
+ }
263
+
264
+ export type ReportOutputTypes = {
265
+ 'clr3m5n8k000008jq7h9e5b1a': TotalRatingsOutput
266
+ 'clr3m5n8k000108jq3c4d7f2b': ThumbsUpOutput
267
+ 'clr3m5n8k000208jq8e5f6g3c': ThumbsDownOutput
268
+ 'clr3m5n8k000308jq1h7i8j4d': TotalContactsOutput
269
+ 'clr3m5n8k000408jq9i8j9k5e': ActiveContactsOutput
270
+ 'clr3m5n8k000508jq2j9k0l6f': TotalConversationsOutput
271
+ 'clr3m5n8k000608jq3k0l1m7g': TotalMessagesOutput
272
+ 'clr3m5n8k000708jq4l1m2n8h': UserMessagesOutput
273
+ 'clr3m5n8k000808jq5m2n3o9i': BotMessagesOutput
274
+ 'clr3m5n8k000908jq6n3o4p0j': ActivityMessagesOutput
275
+ 'clr3m5n8k000a08jq7o4p5q1k': AverageUserMessagesPerConversationOutput
276
+ 'clr3m5n8k000b08jq8p5q6r2l': AverageBotMessagesPerConversationOutput
277
+ 'clr3m5n8k000c08jq9q6r7s3m': AverageActionsPerConversationOutput
278
+ }
279
+
280
+ // Helper type to get input type by report ID
281
+ export type GetReportInput<T extends ReportId> = ReportInputTypes[T]
282
+
283
+ // Helper type to get output type by report ID
284
+ export type GetReportOutput<T extends ReportId> = ReportOutputTypes[T]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbotkit/sdk",
3
- "version": "1.21.8",
3
+ "version": "1.21.9",
4
4
  "description": "The fastest way to build advanced AI chat bots",
5
5
  "license": "ISC",
6
6
  "engines": {
@@ -2948,6 +2948,46 @@
2948
2948
  "default": "./dist/cjs/team/v1.cjs"
2949
2949
  }
2950
2950
  },
2951
+ "./types/api/v1": {
2952
+ "import": {
2953
+ "types": "./dist/esm/types/api/v1.d.ts",
2954
+ "default": "./dist/esm/types/api/v1.js"
2955
+ },
2956
+ "require": {
2957
+ "types": "./dist/cjs/types/api/v1.d.ts",
2958
+ "default": "./dist/cjs/types/api/v1.cjs"
2959
+ }
2960
+ },
2961
+ "./types/api/v1.js": {
2962
+ "import": {
2963
+ "types": "./dist/esm/types/api/v1.d.ts",
2964
+ "default": "./dist/esm/types/api/v1.js"
2965
+ },
2966
+ "require": {
2967
+ "types": "./dist/cjs/types/api/v1.d.ts",
2968
+ "default": "./dist/cjs/types/api/v1.cjs"
2969
+ }
2970
+ },
2971
+ "./types/report": {
2972
+ "import": {
2973
+ "types": "./dist/esm/types/report.d.ts",
2974
+ "default": "./dist/esm/types/report.js"
2975
+ },
2976
+ "require": {
2977
+ "types": "./dist/cjs/types/report.d.ts",
2978
+ "default": "./dist/cjs/types/report.cjs"
2979
+ }
2980
+ },
2981
+ "./types/report.js": {
2982
+ "import": {
2983
+ "types": "./dist/esm/types/report.d.ts",
2984
+ "default": "./dist/esm/types/report.js"
2985
+ },
2986
+ "require": {
2987
+ "types": "./dist/cjs/types/report.d.ts",
2988
+ "default": "./dist/cjs/types/report.cjs"
2989
+ }
2990
+ },
2951
2991
  "./usage": {
2952
2992
  "import": {
2953
2993
  "types": "./dist/esm/usage/index.d.ts",
@@ -3078,6 +3118,7 @@
3078
3118
  "build:exports": "node ../../scripts/create-standard-exports.js",
3079
3119
  "build:types": "tsc -p tsconfig.types.json",
3080
3120
  "build:types_copy": "node scripts/copy-types.js",
3121
+ "build:types_dist": "node scripts/copy-types-dist.js",
3081
3122
  "check": "tsc -p tsconfig.check.json",
3082
3123
  "check:api-coverage": "node scripts/check-api-coverage.js",
3083
3124
  "clean": "run-p clean:*",