@kl1/contracts 1.1.27 → 1.1.28

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,229 @@
1
+ import z from 'zod';
2
+ export declare const BotSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ name: string;
6
+ }, {
7
+ name: string;
8
+ }>;
9
+ export declare const BotCredentials: z.ZodObject<{
10
+ botId: z.ZodString;
11
+ integrationId: z.ZodString;
12
+ accessToken: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ accessToken: string;
15
+ botId: string;
16
+ integrationId: string;
17
+ }, {
18
+ accessToken: string;
19
+ botId: string;
20
+ integrationId: string;
21
+ }>;
22
+ export declare const CreateBotSchema: z.ZodObject<{
23
+ botId: z.ZodString;
24
+ integrationId: z.ZodString;
25
+ accessToken: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ accessToken: string;
28
+ botId: string;
29
+ integrationId: string;
30
+ }, {
31
+ accessToken: string;
32
+ botId: string;
33
+ integrationId: string;
34
+ }>;
35
+ export declare const SendBotpressMessageSchema: z.ZodObject<{
36
+ message: z.ZodOptional<z.ZodString>;
37
+ type: z.ZodString;
38
+ room: z.ZodObject<{
39
+ botpressConversationMetadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40
+ id: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id: string;
43
+ }, {
44
+ id: string;
45
+ }>>>;
46
+ id: z.ZodString;
47
+ channel: z.ZodObject<{
48
+ id: z.ZodString;
49
+ botpressBotId: z.ZodString;
50
+ type: z.ZodString;
51
+ metadata: z.ZodObject<{
52
+ accessToken: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ accessToken: string;
55
+ }, {
56
+ accessToken: string;
57
+ }>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: string;
60
+ id: string;
61
+ metadata: {
62
+ accessToken: string;
63
+ };
64
+ botpressBotId: string;
65
+ }, {
66
+ type: string;
67
+ id: string;
68
+ metadata: {
69
+ accessToken: string;
70
+ };
71
+ botpressBotId: string;
72
+ }>;
73
+ platformContact: z.ZodObject<{
74
+ id: z.ZodString;
75
+ socialPlatformId: z.ZodString;
76
+ contact: z.ZodObject<{
77
+ name: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ name: string;
80
+ }, {
81
+ name: string;
82
+ }>;
83
+ botpressUserMetadata: z.ZodNullable<z.ZodArray<z.ZodObject<{
84
+ botpressBotId: z.ZodString;
85
+ id: z.ZodString;
86
+ name: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ id: string;
89
+ name: string;
90
+ botpressBotId: string;
91
+ }, {
92
+ id: string;
93
+ name: string;
94
+ botpressBotId: string;
95
+ }>, "many">>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ id: string;
98
+ contact: {
99
+ name: string;
100
+ };
101
+ socialPlatformId: string;
102
+ botpressUserMetadata: {
103
+ id: string;
104
+ name: string;
105
+ botpressBotId: string;
106
+ }[] | null;
107
+ }, {
108
+ id: string;
109
+ contact: {
110
+ name: string;
111
+ };
112
+ socialPlatformId: string;
113
+ botpressUserMetadata: {
114
+ id: string;
115
+ name: string;
116
+ botpressBotId: string;
117
+ }[] | null;
118
+ }>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ id: string;
121
+ channel: {
122
+ type: string;
123
+ id: string;
124
+ metadata: {
125
+ accessToken: string;
126
+ };
127
+ botpressBotId: string;
128
+ };
129
+ platformContact: {
130
+ id: string;
131
+ contact: {
132
+ name: string;
133
+ };
134
+ socialPlatformId: string;
135
+ botpressUserMetadata: {
136
+ id: string;
137
+ name: string;
138
+ botpressBotId: string;
139
+ }[] | null;
140
+ };
141
+ botpressConversationMetadata?: {
142
+ id: string;
143
+ } | null | undefined;
144
+ }, {
145
+ id: string;
146
+ channel: {
147
+ type: string;
148
+ id: string;
149
+ metadata: {
150
+ accessToken: string;
151
+ };
152
+ botpressBotId: string;
153
+ };
154
+ platformContact: {
155
+ id: string;
156
+ contact: {
157
+ name: string;
158
+ };
159
+ socialPlatformId: string;
160
+ botpressUserMetadata: {
161
+ id: string;
162
+ name: string;
163
+ botpressBotId: string;
164
+ }[] | null;
165
+ };
166
+ botpressConversationMetadata?: {
167
+ id: string;
168
+ } | null | undefined;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: string;
172
+ room: {
173
+ id: string;
174
+ channel: {
175
+ type: string;
176
+ id: string;
177
+ metadata: {
178
+ accessToken: string;
179
+ };
180
+ botpressBotId: string;
181
+ };
182
+ platformContact: {
183
+ id: string;
184
+ contact: {
185
+ name: string;
186
+ };
187
+ socialPlatformId: string;
188
+ botpressUserMetadata: {
189
+ id: string;
190
+ name: string;
191
+ botpressBotId: string;
192
+ }[] | null;
193
+ };
194
+ botpressConversationMetadata?: {
195
+ id: string;
196
+ } | null | undefined;
197
+ };
198
+ message?: string | undefined;
199
+ }, {
200
+ type: string;
201
+ room: {
202
+ id: string;
203
+ channel: {
204
+ type: string;
205
+ id: string;
206
+ metadata: {
207
+ accessToken: string;
208
+ };
209
+ botpressBotId: string;
210
+ };
211
+ platformContact: {
212
+ id: string;
213
+ contact: {
214
+ name: string;
215
+ };
216
+ socialPlatformId: string;
217
+ botpressUserMetadata: {
218
+ id: string;
219
+ name: string;
220
+ botpressBotId: string;
221
+ }[] | null;
222
+ };
223
+ botpressConversationMetadata?: {
224
+ id: string;
225
+ } | null | undefined;
226
+ };
227
+ message?: string | undefined;
228
+ }>;
229
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/botpress/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAa,MAAM,KAAK,CAAC;AAKhC,eAAO,MAAM,SAAS;;;;;;EAEpB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCpC,CAAC"}