@slates/proto 1.0.0-rc.7 → 1.0.0-rc.8
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 +17 -1
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.module.js +17 -1
- package/package.json +2 -2
- package/src/messages/action.ts +19 -1
package/dist/index.cjs
CHANGED
|
@@ -271,7 +271,23 @@ var slatesMessageActionInvokeResponse = import_zod5.default.object({
|
|
|
271
271
|
id: import_zod5.default.string(),
|
|
272
272
|
result: withRequestTraces({
|
|
273
273
|
output: import_zod5.default.record(import_zod5.default.string(), import_zod5.default.any()),
|
|
274
|
-
message: import_zod5.default.string().optional()
|
|
274
|
+
message: import_zod5.default.string().optional(),
|
|
275
|
+
attachments: import_zod5.default.array(
|
|
276
|
+
import_zod5.default.object({
|
|
277
|
+
mimeType: import_zod5.default.string().optional(),
|
|
278
|
+
content: import_zod5.default.union([
|
|
279
|
+
import_zod5.default.object({
|
|
280
|
+
type: import_zod5.default.literal("url"),
|
|
281
|
+
url: import_zod5.default.string()
|
|
282
|
+
}),
|
|
283
|
+
import_zod5.default.object({
|
|
284
|
+
type: import_zod5.default.literal("content"),
|
|
285
|
+
encoding: import_zod5.default.union([import_zod5.default.literal("base64"), import_zod5.default.literal("utf-8")]),
|
|
286
|
+
content: import_zod5.default.string()
|
|
287
|
+
})
|
|
288
|
+
])
|
|
289
|
+
})
|
|
290
|
+
).optional()
|
|
275
291
|
})
|
|
276
292
|
});
|
|
277
293
|
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;
|
|
@@ -2731,6 +2753,17 @@ declare let slatesResponsesByMethod: {
|
|
|
2731
2753
|
result: z$1.ZodObject<{
|
|
2732
2754
|
output: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2733
2755
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
2756
|
+
attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2757
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
2758
|
+
content: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
2759
|
+
type: z$1.ZodLiteral<"url">;
|
|
2760
|
+
url: z$1.ZodString;
|
|
2761
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2762
|
+
type: z$1.ZodLiteral<"content">;
|
|
2763
|
+
encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
|
|
2764
|
+
content: z$1.ZodString;
|
|
2765
|
+
}, z$1.core.$strip>]>;
|
|
2766
|
+
}, z$1.core.$strip>>>;
|
|
2734
2767
|
requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2735
2768
|
startedAt: z$1.ZodString;
|
|
2736
2769
|
durationMs: z$1.ZodNumber;
|
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;
|
|
@@ -2731,6 +2753,17 @@ declare let slatesResponsesByMethod: {
|
|
|
2731
2753
|
result: z$1.ZodObject<{
|
|
2732
2754
|
output: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
2733
2755
|
message: z$1.ZodOptional<z$1.ZodString>;
|
|
2756
|
+
attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2757
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
2758
|
+
content: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
2759
|
+
type: z$1.ZodLiteral<"url">;
|
|
2760
|
+
url: z$1.ZodString;
|
|
2761
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2762
|
+
type: z$1.ZodLiteral<"content">;
|
|
2763
|
+
encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
|
|
2764
|
+
content: z$1.ZodString;
|
|
2765
|
+
}, z$1.core.$strip>]>;
|
|
2766
|
+
}, z$1.core.$strip>>>;
|
|
2734
2767
|
requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2735
2768
|
startedAt: z$1.ZodString;
|
|
2736
2769
|
durationMs: z$1.ZodNumber;
|
package/dist/index.module.js
CHANGED
|
@@ -166,7 +166,23 @@ var slatesMessageActionInvokeResponse = z5.object({
|
|
|
166
166
|
id: z5.string(),
|
|
167
167
|
result: withRequestTraces({
|
|
168
168
|
output: z5.record(z5.string(), z5.any()),
|
|
169
|
-
message: z5.string().optional()
|
|
169
|
+
message: z5.string().optional(),
|
|
170
|
+
attachments: z5.array(
|
|
171
|
+
z5.object({
|
|
172
|
+
mimeType: z5.string().optional(),
|
|
173
|
+
content: z5.union([
|
|
174
|
+
z5.object({
|
|
175
|
+
type: z5.literal("url"),
|
|
176
|
+
url: z5.string()
|
|
177
|
+
}),
|
|
178
|
+
z5.object({
|
|
179
|
+
type: z5.literal("content"),
|
|
180
|
+
encoding: z5.union([z5.literal("base64"), z5.literal("utf-8")]),
|
|
181
|
+
content: z5.string()
|
|
182
|
+
})
|
|
183
|
+
])
|
|
184
|
+
})
|
|
185
|
+
).optional()
|
|
170
186
|
})
|
|
171
187
|
});
|
|
172
188
|
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
|
|