@slates/proto 1.0.0-rc.7 → 1.0.0-rc.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.
- package/dist/index.cjs +19 -2
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.module.js +19 -2
- package/package.json +1 -1
- package/src/messages/action.ts +19 -1
- package/src/types/authMethod.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -173,7 +173,8 @@ var slatesAuthenticationMethod = import_zod2.default.object({
|
|
|
173
173
|
import_zod2.default.object({
|
|
174
174
|
id: import_zod2.default.string(),
|
|
175
175
|
title: import_zod2.default.string(),
|
|
176
|
-
description: import_zod2.default.string().optional()
|
|
176
|
+
description: import_zod2.default.string().optional(),
|
|
177
|
+
defaultChecked: import_zod2.default.boolean().optional()
|
|
177
178
|
})
|
|
178
179
|
).optional(),
|
|
179
180
|
inputSchema: import_zod2.default.record(import_zod2.default.string(), import_zod2.default.any()),
|
|
@@ -271,7 +272,23 @@ var slatesMessageActionInvokeResponse = import_zod5.default.object({
|
|
|
271
272
|
id: import_zod5.default.string(),
|
|
272
273
|
result: withRequestTraces({
|
|
273
274
|
output: import_zod5.default.record(import_zod5.default.string(), import_zod5.default.any()),
|
|
274
|
-
message: import_zod5.default.string().optional()
|
|
275
|
+
message: import_zod5.default.string().optional(),
|
|
276
|
+
attachments: import_zod5.default.array(
|
|
277
|
+
import_zod5.default.object({
|
|
278
|
+
mimeType: import_zod5.default.string().optional(),
|
|
279
|
+
content: import_zod5.default.union([
|
|
280
|
+
import_zod5.default.object({
|
|
281
|
+
type: import_zod5.default.literal("url"),
|
|
282
|
+
url: import_zod5.default.string()
|
|
283
|
+
}),
|
|
284
|
+
import_zod5.default.object({
|
|
285
|
+
type: import_zod5.default.literal("content"),
|
|
286
|
+
encoding: import_zod5.default.union([import_zod5.default.literal("base64"), import_zod5.default.literal("utf-8")]),
|
|
287
|
+
content: import_zod5.default.string()
|
|
288
|
+
})
|
|
289
|
+
])
|
|
290
|
+
})
|
|
291
|
+
).optional()
|
|
275
292
|
})
|
|
276
293
|
});
|
|
277
294
|
var slatesMessageActionTriggerEventMapRequest = import_zod5.default.object({
|
package/dist/index.d.cts
CHANGED
|
@@ -153,6 +153,17 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
|
|
|
153
153
|
result: z.ZodObject<{
|
|
154
154
|
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
155
155
|
message: z.ZodOptional<z.ZodString>;
|
|
156
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
158
|
+
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
159
|
+
type: z.ZodLiteral<"url">;
|
|
160
|
+
url: z.ZodString;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"content">;
|
|
163
|
+
encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
|
|
164
|
+
content: z.ZodString;
|
|
165
|
+
}, z.core.$strip>]>;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
156
167
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
168
|
startedAt: z.ZodString;
|
|
158
169
|
durationMs: z.ZodNumber;
|
|
@@ -561,6 +572,17 @@ declare let slatesActionResponsesByMethod: {
|
|
|
561
572
|
result: z.ZodObject<{
|
|
562
573
|
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
563
574
|
message: z.ZodOptional<z.ZodString>;
|
|
575
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
577
|
+
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"url">;
|
|
579
|
+
url: z.ZodString;
|
|
580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
+
type: z.ZodLiteral<"content">;
|
|
582
|
+
encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
|
|
583
|
+
content: z.ZodString;
|
|
584
|
+
}, z.core.$strip>]>;
|
|
585
|
+
}, z.core.$strip>>>;
|
|
564
586
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
565
587
|
startedAt: z.ZodString;
|
|
566
588
|
durationMs: z.ZodNumber;
|
|
@@ -885,6 +907,7 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
|
|
|
885
907
|
id: z.ZodString;
|
|
886
908
|
title: z.ZodString;
|
|
887
909
|
description: z.ZodOptional<z.ZodString>;
|
|
910
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
888
911
|
}, z.core.$strip>>>;
|
|
889
912
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
890
913
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -930,6 +953,7 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
|
|
|
930
953
|
id: z.ZodString;
|
|
931
954
|
title: z.ZodString;
|
|
932
955
|
description: z.ZodOptional<z.ZodString>;
|
|
956
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
933
957
|
}, z.core.$strip>>>;
|
|
934
958
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
935
959
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1333,6 +1357,7 @@ declare let slatesAuthResponsesByMethod: {
|
|
|
1333
1357
|
id: z.ZodString;
|
|
1334
1358
|
title: z.ZodString;
|
|
1335
1359
|
description: z.ZodOptional<z.ZodString>;
|
|
1360
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
1336
1361
|
}, z.core.$strip>>>;
|
|
1337
1362
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1338
1363
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1365,6 +1390,7 @@ declare let slatesAuthResponsesByMethod: {
|
|
|
1365
1390
|
id: z.ZodString;
|
|
1366
1391
|
title: z.ZodString;
|
|
1367
1392
|
description: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
1368
1394
|
}, z.core.$strip>>>;
|
|
1369
1395
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1370
1396
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -2313,6 +2339,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2313
2339
|
id: z$1.ZodString;
|
|
2314
2340
|
title: z$1.ZodString;
|
|
2315
2341
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2342
|
+
defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2316
2343
|
}, z$1.core.$strip>>>;
|
|
2317
2344
|
inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2318
2345
|
outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
@@ -2345,6 +2372,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2345
2372
|
id: z$1.ZodString;
|
|
2346
2373
|
title: z$1.ZodString;
|
|
2347
2374
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2375
|
+
defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2348
2376
|
}, z$1.core.$strip>>>;
|
|
2349
2377
|
inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2350
2378
|
outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
@@ -2731,6 +2759,17 @@ declare let slatesResponsesByMethod: {
|
|
|
2731
2759
|
result: z$1.ZodObject<{
|
|
2732
2760
|
output: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2733
2761
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
2762
|
+
attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2763
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
2764
|
+
content: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
2765
|
+
type: z$1.ZodLiteral<"url">;
|
|
2766
|
+
url: z$1.ZodString;
|
|
2767
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2768
|
+
type: z$1.ZodLiteral<"content">;
|
|
2769
|
+
encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
|
|
2770
|
+
content: z$1.ZodString;
|
|
2771
|
+
}, z$1.core.$strip>]>;
|
|
2772
|
+
}, z$1.core.$strip>>>;
|
|
2734
2773
|
requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2735
2774
|
startedAt: z$1.ZodString;
|
|
2736
2775
|
durationMs: z$1.ZodNumber;
|
|
@@ -3394,6 +3433,7 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
|
|
|
3394
3433
|
id: z.ZodString;
|
|
3395
3434
|
title: z.ZodString;
|
|
3396
3435
|
description: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
3397
3437
|
}, z.core.$strip>>>;
|
|
3398
3438
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3399
3439
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
package/dist/index.d.ts
CHANGED
|
@@ -153,6 +153,17 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
|
|
|
153
153
|
result: z.ZodObject<{
|
|
154
154
|
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
155
155
|
message: z.ZodOptional<z.ZodString>;
|
|
156
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
158
|
+
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
159
|
+
type: z.ZodLiteral<"url">;
|
|
160
|
+
url: z.ZodString;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"content">;
|
|
163
|
+
encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
|
|
164
|
+
content: z.ZodString;
|
|
165
|
+
}, z.core.$strip>]>;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
156
167
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
168
|
startedAt: z.ZodString;
|
|
158
169
|
durationMs: z.ZodNumber;
|
|
@@ -561,6 +572,17 @@ declare let slatesActionResponsesByMethod: {
|
|
|
561
572
|
result: z.ZodObject<{
|
|
562
573
|
output: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
563
574
|
message: z.ZodOptional<z.ZodString>;
|
|
575
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
577
|
+
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
578
|
+
type: z.ZodLiteral<"url">;
|
|
579
|
+
url: z.ZodString;
|
|
580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
+
type: z.ZodLiteral<"content">;
|
|
582
|
+
encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
|
|
583
|
+
content: z.ZodString;
|
|
584
|
+
}, z.core.$strip>]>;
|
|
585
|
+
}, z.core.$strip>>>;
|
|
564
586
|
requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
565
587
|
startedAt: z.ZodString;
|
|
566
588
|
durationMs: z.ZodNumber;
|
|
@@ -885,6 +907,7 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
|
|
|
885
907
|
id: z.ZodString;
|
|
886
908
|
title: z.ZodString;
|
|
887
909
|
description: z.ZodOptional<z.ZodString>;
|
|
910
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
888
911
|
}, z.core.$strip>>>;
|
|
889
912
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
890
913
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -930,6 +953,7 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
|
|
|
930
953
|
id: z.ZodString;
|
|
931
954
|
title: z.ZodString;
|
|
932
955
|
description: z.ZodOptional<z.ZodString>;
|
|
956
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
933
957
|
}, z.core.$strip>>>;
|
|
934
958
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
935
959
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1333,6 +1357,7 @@ declare let slatesAuthResponsesByMethod: {
|
|
|
1333
1357
|
id: z.ZodString;
|
|
1334
1358
|
title: z.ZodString;
|
|
1335
1359
|
description: z.ZodOptional<z.ZodString>;
|
|
1360
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
1336
1361
|
}, z.core.$strip>>>;
|
|
1337
1362
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1338
1363
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -1365,6 +1390,7 @@ declare let slatesAuthResponsesByMethod: {
|
|
|
1365
1390
|
id: z.ZodString;
|
|
1366
1391
|
title: z.ZodString;
|
|
1367
1392
|
description: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
1368
1394
|
}, z.core.$strip>>>;
|
|
1369
1395
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1370
1396
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -2313,6 +2339,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2313
2339
|
id: z$1.ZodString;
|
|
2314
2340
|
title: z$1.ZodString;
|
|
2315
2341
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2342
|
+
defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2316
2343
|
}, z$1.core.$strip>>>;
|
|
2317
2344
|
inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2318
2345
|
outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
@@ -2345,6 +2372,7 @@ declare let slatesResponsesByMethod: {
|
|
|
2345
2372
|
id: z$1.ZodString;
|
|
2346
2373
|
title: z$1.ZodString;
|
|
2347
2374
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2375
|
+
defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2348
2376
|
}, z$1.core.$strip>>>;
|
|
2349
2377
|
inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2350
2378
|
outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
@@ -2731,6 +2759,17 @@ declare let slatesResponsesByMethod: {
|
|
|
2731
2759
|
result: z$1.ZodObject<{
|
|
2732
2760
|
output: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2733
2761
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
2762
|
+
attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2763
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
2764
|
+
content: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
2765
|
+
type: z$1.ZodLiteral<"url">;
|
|
2766
|
+
url: z$1.ZodString;
|
|
2767
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2768
|
+
type: z$1.ZodLiteral<"content">;
|
|
2769
|
+
encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
|
|
2770
|
+
content: z$1.ZodString;
|
|
2771
|
+
}, z$1.core.$strip>]>;
|
|
2772
|
+
}, z$1.core.$strip>>>;
|
|
2734
2773
|
requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2735
2774
|
startedAt: z$1.ZodString;
|
|
2736
2775
|
durationMs: z$1.ZodNumber;
|
|
@@ -3394,6 +3433,7 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
|
|
|
3394
3433
|
id: z.ZodString;
|
|
3395
3434
|
title: z.ZodString;
|
|
3396
3435
|
description: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
3397
3437
|
}, z.core.$strip>>>;
|
|
3398
3438
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3399
3439
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
package/dist/index.module.js
CHANGED
|
@@ -68,7 +68,8 @@ var slatesAuthenticationMethod = z2.object({
|
|
|
68
68
|
z2.object({
|
|
69
69
|
id: z2.string(),
|
|
70
70
|
title: z2.string(),
|
|
71
|
-
description: z2.string().optional()
|
|
71
|
+
description: z2.string().optional(),
|
|
72
|
+
defaultChecked: z2.boolean().optional()
|
|
72
73
|
})
|
|
73
74
|
).optional(),
|
|
74
75
|
inputSchema: z2.record(z2.string(), z2.any()),
|
|
@@ -166,7 +167,23 @@ var slatesMessageActionInvokeResponse = z5.object({
|
|
|
166
167
|
id: z5.string(),
|
|
167
168
|
result: withRequestTraces({
|
|
168
169
|
output: z5.record(z5.string(), z5.any()),
|
|
169
|
-
message: z5.string().optional()
|
|
170
|
+
message: z5.string().optional(),
|
|
171
|
+
attachments: z5.array(
|
|
172
|
+
z5.object({
|
|
173
|
+
mimeType: z5.string().optional(),
|
|
174
|
+
content: z5.union([
|
|
175
|
+
z5.object({
|
|
176
|
+
type: z5.literal("url"),
|
|
177
|
+
url: z5.string()
|
|
178
|
+
}),
|
|
179
|
+
z5.object({
|
|
180
|
+
type: z5.literal("content"),
|
|
181
|
+
encoding: z5.union([z5.literal("base64"), z5.literal("utf-8")]),
|
|
182
|
+
content: z5.string()
|
|
183
|
+
})
|
|
184
|
+
])
|
|
185
|
+
})
|
|
186
|
+
).optional()
|
|
170
187
|
})
|
|
171
188
|
});
|
|
172
189
|
var slatesMessageActionTriggerEventMapRequest = z5.object({
|
package/package.json
CHANGED
package/src/messages/action.ts
CHANGED
|
@@ -72,7 +72,25 @@ export let slatesMessageActionInvokeResponse = z.object({
|
|
|
72
72
|
id: z.string(),
|
|
73
73
|
result: withRequestTraces({
|
|
74
74
|
output: z.record(z.string(), z.any()),
|
|
75
|
-
message: z.string().optional()
|
|
75
|
+
message: z.string().optional(),
|
|
76
|
+
attachments: z
|
|
77
|
+
.array(
|
|
78
|
+
z.object({
|
|
79
|
+
mimeType: z.string().optional(),
|
|
80
|
+
content: z.union([
|
|
81
|
+
z.object({
|
|
82
|
+
type: z.literal('url'),
|
|
83
|
+
url: z.string()
|
|
84
|
+
}),
|
|
85
|
+
z.object({
|
|
86
|
+
type: z.literal('content'),
|
|
87
|
+
encoding: z.union([z.literal('base64'), z.literal('utf-8')]),
|
|
88
|
+
content: z.string()
|
|
89
|
+
})
|
|
90
|
+
])
|
|
91
|
+
})
|
|
92
|
+
)
|
|
93
|
+
.optional()
|
|
76
94
|
})
|
|
77
95
|
});
|
|
78
96
|
|
package/src/types/authMethod.ts
CHANGED