@slates/proto 1.0.0-rc.14 → 1.0.0-rc.16

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 CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  slatesConfigRequestsByMethod: () => slatesConfigRequestsByMethod,
53
53
  slatesConfigResponsesByMethod: () => slatesConfigResponsesByMethod,
54
54
  slatesControlFlowNotificationsByMethod: () => slatesControlFlowNotificationsByMethod,
55
+ slatesHubNotificationsByMethod: () => slatesHubNotificationsByMethod,
55
56
  slatesIdentifyRequestsByMethod: () => slatesIdentifyRequestsByMethod,
56
57
  slatesIdentifyResponsesByMethod: () => slatesIdentifyResponsesByMethod,
57
58
  slatesMessageActionGetRequest: () => slatesMessageActionGetRequest,
@@ -99,6 +100,8 @@ __export(index_exports, {
99
100
  slatesMessageConfigSchemaGetRequest: () => slatesMessageConfigSchemaGetRequest,
100
101
  slatesMessageConfigSchemaGetResponse: () => slatesMessageConfigSchemaGetResponse,
101
102
  slatesMessageHelloNotification: () => slatesMessageHelloNotification,
103
+ slatesMessageHubCapabilitiesSetNotification: () => slatesMessageHubCapabilitiesSetNotification,
104
+ slatesMessageHubLiveInvocationSetNotification: () => slatesMessageHubLiveInvocationSetNotification,
102
105
  slatesMessageProviderIdentifyRequest: () => slatesMessageProviderIdentifyRequest,
103
106
  slatesMessageProviderIdentifyResponse: () => slatesMessageProviderIdentifyResponse,
104
107
  slatesMessageSessionStartNotification: () => slatesMessageSessionStartNotification,
@@ -228,8 +231,7 @@ var slatesAuthenticationMethod = import_zod3.default.object({
228
231
  import_zod3.default.object({
229
232
  id: import_zod3.default.string(),
230
233
  title: import_zod3.default.string(),
231
- description: import_zod3.default.string().optional(),
232
- defaultChecked: import_zod3.default.boolean().optional()
234
+ description: import_zod3.default.string().optional()
233
235
  })
234
236
  ).optional(),
235
237
  inputSchema: import_zod3.default.record(import_zod3.default.string(), import_zod3.default.any()),
@@ -354,15 +356,22 @@ var slatesMessageActionInvokeResponse = import_zod6.default.object({
354
356
  attachments: import_zod6.default.array(
355
357
  import_zod6.default.object({
356
358
  mimeType: import_zod6.default.string().optional(),
359
+ attachmentHash: import_zod6.default.string().optional(),
357
360
  content: import_zod6.default.union([
358
361
  import_zod6.default.object({
359
362
  type: import_zod6.default.literal("url"),
360
- url: import_zod6.default.string()
363
+ url: import_zod6.default.string(),
364
+ headers: import_zod6.default.record(import_zod6.default.string(), import_zod6.default.string()).optional(),
365
+ query: import_zod6.default.record(import_zod6.default.string(), import_zod6.default.string()).optional()
361
366
  }),
362
367
  import_zod6.default.object({
363
368
  type: import_zod6.default.literal("content"),
364
369
  encoding: import_zod6.default.union([import_zod6.default.literal("base64"), import_zod6.default.literal("utf-8")]),
365
370
  content: import_zod6.default.string()
371
+ }),
372
+ import_zod6.default.object({
373
+ type: import_zod6.default.literal("upload_reference"),
374
+ referenceId: import_zod6.default.string()
366
375
  })
367
376
  ])
368
377
  })
@@ -841,30 +850,59 @@ var slatesControlFlowNotificationsByMethod = {
841
850
  "slates/session.start": slatesMessageSessionStartNotification
842
851
  };
843
852
 
844
- // src/messages/identify.ts
853
+ // src/messages/hub.ts
845
854
  var import_zod11 = __toESM(require("zod"), 1);
846
- var slatesMessageProviderIdentifyRequest = import_zod11.default.object({
855
+ var slatesMessageHubCapabilitiesSetNotification = import_zod11.default.object({
847
856
  jsonrpc: import_zod11.default.literal("2.0"),
848
- method: import_zod11.default.literal("slates/provider.identify"),
849
- id: import_zod11.default.string(),
850
- params: import_zod11.default.object({})
857
+ method: import_zod11.default.literal("slates/hub.capabilities.set"),
858
+ params: import_zod11.default.object({
859
+ capabilities: import_zod11.default.object({
860
+ attachments: import_zod11.default.object({
861
+ directUpload: import_zod11.default.object({
862
+ enabled: import_zod11.default.boolean(),
863
+ maxAttachmentSizeBytes: import_zod11.default.number().optional()
864
+ })
865
+ }).optional()
866
+ })
867
+ })
851
868
  });
852
- var slatesMessageProviderIdentifyResponse = import_zod11.default.object({
869
+ var slatesMessageHubLiveInvocationSetNotification = import_zod11.default.object({
853
870
  jsonrpc: import_zod11.default.literal("2.0"),
854
- id: import_zod11.default.string(),
855
- result: import_zod11.default.object({
856
- protocol: import_zod11.default.literal(SLATES_PROTOCOL_VERSION),
857
- provider: import_zod11.default.object({
858
- type: import_zod11.default.literal("provider"),
859
- id: import_zod11.default.string(),
860
- name: import_zod11.default.string(),
861
- description: import_zod11.default.string().optional(),
862
- metadata: import_zod11.default.record(import_zod11.default.string(), import_zod11.default.any()).optional()
871
+ method: import_zod11.default.literal("slates/hub.live_invocation.set"),
872
+ params: import_zod11.default.object({
873
+ token: import_zod11.default.string(),
874
+ baseUrl: import_zod11.default.string()
875
+ })
876
+ });
877
+ var slatesHubNotificationsByMethod = {
878
+ "slates/hub.capabilities.set": slatesMessageHubCapabilitiesSetNotification,
879
+ "slates/hub.live_invocation.set": slatesMessageHubLiveInvocationSetNotification
880
+ };
881
+
882
+ // src/messages/identify.ts
883
+ var import_zod12 = __toESM(require("zod"), 1);
884
+ var slatesMessageProviderIdentifyRequest = import_zod12.default.object({
885
+ jsonrpc: import_zod12.default.literal("2.0"),
886
+ method: import_zod12.default.literal("slates/provider.identify"),
887
+ id: import_zod12.default.string(),
888
+ params: import_zod12.default.object({})
889
+ });
890
+ var slatesMessageProviderIdentifyResponse = import_zod12.default.object({
891
+ jsonrpc: import_zod12.default.literal("2.0"),
892
+ id: import_zod12.default.string(),
893
+ result: import_zod12.default.object({
894
+ protocol: import_zod12.default.literal(SLATES_PROTOCOL_VERSION),
895
+ provider: import_zod12.default.object({
896
+ type: import_zod12.default.literal("provider"),
897
+ id: import_zod12.default.string(),
898
+ name: import_zod12.default.string(),
899
+ description: import_zod12.default.string().optional(),
900
+ metadata: import_zod12.default.record(import_zod12.default.string(), import_zod12.default.any()).optional()
863
901
  }),
864
- docs: import_zod11.default.array(
865
- import_zod11.default.object({
866
- name: import_zod11.default.string(),
867
- url: import_zod11.default.string()
902
+ docs: import_zod12.default.array(
903
+ import_zod12.default.object({
904
+ name: import_zod12.default.string(),
905
+ url: import_zod12.default.string()
868
906
  })
869
907
  )
870
908
  })
@@ -894,7 +932,8 @@ var slatesRequestsByMethod = {
894
932
  var slatesNotificationsByMethod = {
895
933
  ...slatesAuthNotificationsByMethod,
896
934
  ...slatesConfigNotificationsByMethod,
897
- ...slatesControlFlowNotificationsByMethod
935
+ ...slatesControlFlowNotificationsByMethod,
936
+ ...slatesHubNotificationsByMethod
898
937
  };
899
938
 
900
939
  // src/handler/provider.ts
@@ -1177,6 +1216,7 @@ var mapUnknownErrorToSlateErrorResponse = (error, defaults = {}) => ({
1177
1216
  slatesConfigRequestsByMethod,
1178
1217
  slatesConfigResponsesByMethod,
1179
1218
  slatesControlFlowNotificationsByMethod,
1219
+ slatesHubNotificationsByMethod,
1180
1220
  slatesIdentifyRequestsByMethod,
1181
1221
  slatesIdentifyResponsesByMethod,
1182
1222
  slatesMessageActionGetRequest,
@@ -1224,6 +1264,8 @@ var mapUnknownErrorToSlateErrorResponse = (error, defaults = {}) => ({
1224
1264
  slatesMessageConfigSchemaGetRequest,
1225
1265
  slatesMessageConfigSchemaGetResponse,
1226
1266
  slatesMessageHelloNotification,
1267
+ slatesMessageHubCapabilitiesSetNotification,
1268
+ slatesMessageHubLiveInvocationSetNotification,
1227
1269
  slatesMessageProviderIdentifyRequest,
1228
1270
  slatesMessageProviderIdentifyResponse,
1229
1271
  slatesMessageSessionStartNotification,
package/dist/index.d.cts CHANGED
@@ -260,13 +260,19 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
260
260
  message: z.ZodOptional<z.ZodString>;
261
261
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
262
  mimeType: z.ZodOptional<z.ZodString>;
263
+ attachmentHash: z.ZodOptional<z.ZodString>;
263
264
  content: z.ZodUnion<readonly [z.ZodObject<{
264
265
  type: z.ZodLiteral<"url">;
265
266
  url: z.ZodString;
267
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
266
269
  }, z.core.$strip>, z.ZodObject<{
267
270
  type: z.ZodLiteral<"content">;
268
271
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
269
272
  content: z.ZodString;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ type: z.ZodLiteral<"upload_reference">;
275
+ referenceId: z.ZodString;
270
276
  }, z.core.$strip>]>;
271
277
  }, z.core.$strip>>>;
272
278
  requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -782,13 +788,19 @@ declare let slatesActionResponsesByMethod: {
782
788
  message: z.ZodOptional<z.ZodString>;
783
789
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
784
790
  mimeType: z.ZodOptional<z.ZodString>;
791
+ attachmentHash: z.ZodOptional<z.ZodString>;
785
792
  content: z.ZodUnion<readonly [z.ZodObject<{
786
793
  type: z.ZodLiteral<"url">;
787
794
  url: z.ZodString;
795
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
796
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
788
797
  }, z.core.$strip>, z.ZodObject<{
789
798
  type: z.ZodLiteral<"content">;
790
799
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
791
800
  content: z.ZodString;
801
+ }, z.core.$strip>, z.ZodObject<{
802
+ type: z.ZodLiteral<"upload_reference">;
803
+ referenceId: z.ZodString;
792
804
  }, z.core.$strip>]>;
793
805
  }, z.core.$strip>>>;
794
806
  requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1231,7 +1243,6 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
1231
1243
  id: z.ZodString;
1232
1244
  title: z.ZodString;
1233
1245
  description: z.ZodOptional<z.ZodString>;
1234
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1235
1246
  }, z.core.$strip>>>;
1236
1247
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1237
1248
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1282,7 +1293,6 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
1282
1293
  id: z.ZodString;
1283
1294
  title: z.ZodString;
1284
1295
  description: z.ZodOptional<z.ZodString>;
1285
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1286
1296
  }, z.core.$strip>>>;
1287
1297
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1288
1298
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1693,7 +1703,6 @@ declare let slatesAuthResponsesByMethod: {
1693
1703
  id: z.ZodString;
1694
1704
  title: z.ZodString;
1695
1705
  description: z.ZodOptional<z.ZodString>;
1696
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1697
1706
  }, z.core.$strip>>>;
1698
1707
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1699
1708
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1731,7 +1740,6 @@ declare let slatesAuthResponsesByMethod: {
1731
1740
  id: z.ZodString;
1732
1741
  title: z.ZodString;
1733
1742
  description: z.ZodOptional<z.ZodString>;
1734
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1735
1743
  }, z.core.$strip>>>;
1736
1744
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1737
1745
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -2442,6 +2450,56 @@ declare let slatesControlFlowNotificationsByMethod: {
2442
2450
  }, z.core.$strip>;
2443
2451
  };
2444
2452
 
2453
+ declare let slatesMessageHubCapabilitiesSetNotification: z.ZodObject<{
2454
+ jsonrpc: z.ZodLiteral<"2.0">;
2455
+ method: z.ZodLiteral<"slates/hub.capabilities.set">;
2456
+ params: z.ZodObject<{
2457
+ capabilities: z.ZodObject<{
2458
+ attachments: z.ZodOptional<z.ZodObject<{
2459
+ directUpload: z.ZodObject<{
2460
+ enabled: z.ZodBoolean;
2461
+ maxAttachmentSizeBytes: z.ZodOptional<z.ZodNumber>;
2462
+ }, z.core.$strip>;
2463
+ }, z.core.$strip>>;
2464
+ }, z.core.$strip>;
2465
+ }, z.core.$strip>;
2466
+ }, z.core.$strip>;
2467
+ type SlatesMessageHubCapabilitiesSetNotification = z.infer<typeof slatesMessageHubCapabilitiesSetNotification>;
2468
+ declare let slatesMessageHubLiveInvocationSetNotification: z.ZodObject<{
2469
+ jsonrpc: z.ZodLiteral<"2.0">;
2470
+ method: z.ZodLiteral<"slates/hub.live_invocation.set">;
2471
+ params: z.ZodObject<{
2472
+ token: z.ZodString;
2473
+ baseUrl: z.ZodString;
2474
+ }, z.core.$strip>;
2475
+ }, z.core.$strip>;
2476
+ type SlatesMessageHubLiveInvocationSetNotification = z.infer<typeof slatesMessageHubLiveInvocationSetNotification>;
2477
+ type SlatesHubNotifications = SlatesMessageHubCapabilitiesSetNotification | SlatesMessageHubLiveInvocationSetNotification;
2478
+ declare let slatesHubNotificationsByMethod: {
2479
+ 'slates/hub.capabilities.set': z.ZodObject<{
2480
+ jsonrpc: z.ZodLiteral<"2.0">;
2481
+ method: z.ZodLiteral<"slates/hub.capabilities.set">;
2482
+ params: z.ZodObject<{
2483
+ capabilities: z.ZodObject<{
2484
+ attachments: z.ZodOptional<z.ZodObject<{
2485
+ directUpload: z.ZodObject<{
2486
+ enabled: z.ZodBoolean;
2487
+ maxAttachmentSizeBytes: z.ZodOptional<z.ZodNumber>;
2488
+ }, z.core.$strip>;
2489
+ }, z.core.$strip>>;
2490
+ }, z.core.$strip>;
2491
+ }, z.core.$strip>;
2492
+ }, z.core.$strip>;
2493
+ 'slates/hub.live_invocation.set': z.ZodObject<{
2494
+ jsonrpc: z.ZodLiteral<"2.0">;
2495
+ method: z.ZodLiteral<"slates/hub.live_invocation.set">;
2496
+ params: z.ZodObject<{
2497
+ token: z.ZodString;
2498
+ baseUrl: z.ZodString;
2499
+ }, z.core.$strip>;
2500
+ }, z.core.$strip>;
2501
+ };
2502
+
2445
2503
  declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
2446
2504
  jsonrpc: z.ZodLiteral<"2.0">;
2447
2505
  method: z.ZodLiteral<"slates/provider.identify">;
@@ -2592,7 +2650,7 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
2592
2650
  }, z.core.$strip>>>;
2593
2651
  })[P]; } : never, z.core.$strip>;
2594
2652
 
2595
- type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
2653
+ type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications | SlatesHubNotifications;
2596
2654
  type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
2597
2655
  type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
2598
2656
  declare let slatesResponsesByMethod: {
@@ -2714,7 +2772,6 @@ declare let slatesResponsesByMethod: {
2714
2772
  id: z$1.ZodString;
2715
2773
  title: z$1.ZodString;
2716
2774
  description: z$1.ZodOptional<z$1.ZodString>;
2717
- defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
2718
2775
  }, z$1.core.$strip>>>;
2719
2776
  inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
2720
2777
  outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
@@ -2752,7 +2809,6 @@ declare let slatesResponsesByMethod: {
2752
2809
  id: z$1.ZodString;
2753
2810
  title: z$1.ZodString;
2754
2811
  description: z$1.ZodOptional<z$1.ZodString>;
2755
- defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
2756
2812
  }, z$1.core.$strip>>>;
2757
2813
  inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
2758
2814
  outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
@@ -3269,13 +3325,19 @@ declare let slatesResponsesByMethod: {
3269
3325
  message: z$1.ZodOptional<z$1.ZodString>;
3270
3326
  attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
3271
3327
  mimeType: z$1.ZodOptional<z$1.ZodString>;
3328
+ attachmentHash: z$1.ZodOptional<z$1.ZodString>;
3272
3329
  content: z$1.ZodUnion<readonly [z$1.ZodObject<{
3273
3330
  type: z$1.ZodLiteral<"url">;
3274
3331
  url: z$1.ZodString;
3332
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3333
+ query: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3275
3334
  }, z$1.core.$strip>, z$1.ZodObject<{
3276
3335
  type: z$1.ZodLiteral<"content">;
3277
3336
  encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
3278
3337
  content: z$1.ZodString;
3338
+ }, z$1.core.$strip>, z$1.ZodObject<{
3339
+ type: z$1.ZodLiteral<"upload_reference">;
3340
+ referenceId: z$1.ZodString;
3279
3341
  }, z$1.core.$strip>]>;
3280
3342
  }, z$1.core.$strip>>>;
3281
3343
  requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
@@ -3718,6 +3780,28 @@ declare let slatesRequestsByMethod: {
3718
3780
  }, z$1.core.$strip>;
3719
3781
  };
3720
3782
  declare let slatesNotificationsByMethod: {
3783
+ 'slates/hub.capabilities.set': z$1.ZodObject<{
3784
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3785
+ method: z$1.ZodLiteral<"slates/hub.capabilities.set">;
3786
+ params: z$1.ZodObject<{
3787
+ capabilities: z$1.ZodObject<{
3788
+ attachments: z$1.ZodOptional<z$1.ZodObject<{
3789
+ directUpload: z$1.ZodObject<{
3790
+ enabled: z$1.ZodBoolean;
3791
+ maxAttachmentSizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
3792
+ }, z$1.core.$strip>;
3793
+ }, z$1.core.$strip>>;
3794
+ }, z$1.core.$strip>;
3795
+ }, z$1.core.$strip>;
3796
+ }, z$1.core.$strip>;
3797
+ 'slates/hub.live_invocation.set': z$1.ZodObject<{
3798
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3799
+ method: z$1.ZodLiteral<"slates/hub.live_invocation.set">;
3800
+ params: z$1.ZodObject<{
3801
+ token: z$1.ZodString;
3802
+ baseUrl: z$1.ZodString;
3803
+ }, z$1.core.$strip>;
3804
+ }, z$1.core.$strip>;
3721
3805
  'slates/hello': z$1.ZodObject<{
3722
3806
  jsonrpc: z$1.ZodLiteral<"2.0">;
3723
3807
  method: z$1.ZodLiteral<"slates/hello">;
@@ -4127,7 +4211,6 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
4127
4211
  id: z.ZodString;
4128
4212
  title: z.ZodString;
4129
4213
  description: z.ZodOptional<z.ZodString>;
4130
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
4131
4214
  }, z.core.$strip>>>;
4132
4215
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
4133
4216
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -4165,4 +4248,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
4165
4248
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
4166
4249
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
4167
4250
 
4168
- export { SLATES_PROTOCOL_VERSION, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
4251
+ export { SLATES_PROTOCOL_VERSION, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesHubNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageHubCapabilitiesSetNotification, type SlatesMessageHubLiveInvocationSetNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesHubNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageHubCapabilitiesSetNotification, slatesMessageHubLiveInvocationSetNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
package/dist/index.d.ts CHANGED
@@ -260,13 +260,19 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
260
260
  message: z.ZodOptional<z.ZodString>;
261
261
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
262
  mimeType: z.ZodOptional<z.ZodString>;
263
+ attachmentHash: z.ZodOptional<z.ZodString>;
263
264
  content: z.ZodUnion<readonly [z.ZodObject<{
264
265
  type: z.ZodLiteral<"url">;
265
266
  url: z.ZodString;
267
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
266
269
  }, z.core.$strip>, z.ZodObject<{
267
270
  type: z.ZodLiteral<"content">;
268
271
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
269
272
  content: z.ZodString;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ type: z.ZodLiteral<"upload_reference">;
275
+ referenceId: z.ZodString;
270
276
  }, z.core.$strip>]>;
271
277
  }, z.core.$strip>>>;
272
278
  requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -782,13 +788,19 @@ declare let slatesActionResponsesByMethod: {
782
788
  message: z.ZodOptional<z.ZodString>;
783
789
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
784
790
  mimeType: z.ZodOptional<z.ZodString>;
791
+ attachmentHash: z.ZodOptional<z.ZodString>;
785
792
  content: z.ZodUnion<readonly [z.ZodObject<{
786
793
  type: z.ZodLiteral<"url">;
787
794
  url: z.ZodString;
795
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
796
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
788
797
  }, z.core.$strip>, z.ZodObject<{
789
798
  type: z.ZodLiteral<"content">;
790
799
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
791
800
  content: z.ZodString;
801
+ }, z.core.$strip>, z.ZodObject<{
802
+ type: z.ZodLiteral<"upload_reference">;
803
+ referenceId: z.ZodString;
792
804
  }, z.core.$strip>]>;
793
805
  }, z.core.$strip>>>;
794
806
  requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1231,7 +1243,6 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
1231
1243
  id: z.ZodString;
1232
1244
  title: z.ZodString;
1233
1245
  description: z.ZodOptional<z.ZodString>;
1234
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1235
1246
  }, z.core.$strip>>>;
1236
1247
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1237
1248
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1282,7 +1293,6 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
1282
1293
  id: z.ZodString;
1283
1294
  title: z.ZodString;
1284
1295
  description: z.ZodOptional<z.ZodString>;
1285
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1286
1296
  }, z.core.$strip>>>;
1287
1297
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1288
1298
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1693,7 +1703,6 @@ declare let slatesAuthResponsesByMethod: {
1693
1703
  id: z.ZodString;
1694
1704
  title: z.ZodString;
1695
1705
  description: z.ZodOptional<z.ZodString>;
1696
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1697
1706
  }, z.core.$strip>>>;
1698
1707
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1699
1708
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -1731,7 +1740,6 @@ declare let slatesAuthResponsesByMethod: {
1731
1740
  id: z.ZodString;
1732
1741
  title: z.ZodString;
1733
1742
  description: z.ZodOptional<z.ZodString>;
1734
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
1735
1743
  }, z.core.$strip>>>;
1736
1744
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1737
1745
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -2442,6 +2450,56 @@ declare let slatesControlFlowNotificationsByMethod: {
2442
2450
  }, z.core.$strip>;
2443
2451
  };
2444
2452
 
2453
+ declare let slatesMessageHubCapabilitiesSetNotification: z.ZodObject<{
2454
+ jsonrpc: z.ZodLiteral<"2.0">;
2455
+ method: z.ZodLiteral<"slates/hub.capabilities.set">;
2456
+ params: z.ZodObject<{
2457
+ capabilities: z.ZodObject<{
2458
+ attachments: z.ZodOptional<z.ZodObject<{
2459
+ directUpload: z.ZodObject<{
2460
+ enabled: z.ZodBoolean;
2461
+ maxAttachmentSizeBytes: z.ZodOptional<z.ZodNumber>;
2462
+ }, z.core.$strip>;
2463
+ }, z.core.$strip>>;
2464
+ }, z.core.$strip>;
2465
+ }, z.core.$strip>;
2466
+ }, z.core.$strip>;
2467
+ type SlatesMessageHubCapabilitiesSetNotification = z.infer<typeof slatesMessageHubCapabilitiesSetNotification>;
2468
+ declare let slatesMessageHubLiveInvocationSetNotification: z.ZodObject<{
2469
+ jsonrpc: z.ZodLiteral<"2.0">;
2470
+ method: z.ZodLiteral<"slates/hub.live_invocation.set">;
2471
+ params: z.ZodObject<{
2472
+ token: z.ZodString;
2473
+ baseUrl: z.ZodString;
2474
+ }, z.core.$strip>;
2475
+ }, z.core.$strip>;
2476
+ type SlatesMessageHubLiveInvocationSetNotification = z.infer<typeof slatesMessageHubLiveInvocationSetNotification>;
2477
+ type SlatesHubNotifications = SlatesMessageHubCapabilitiesSetNotification | SlatesMessageHubLiveInvocationSetNotification;
2478
+ declare let slatesHubNotificationsByMethod: {
2479
+ 'slates/hub.capabilities.set': z.ZodObject<{
2480
+ jsonrpc: z.ZodLiteral<"2.0">;
2481
+ method: z.ZodLiteral<"slates/hub.capabilities.set">;
2482
+ params: z.ZodObject<{
2483
+ capabilities: z.ZodObject<{
2484
+ attachments: z.ZodOptional<z.ZodObject<{
2485
+ directUpload: z.ZodObject<{
2486
+ enabled: z.ZodBoolean;
2487
+ maxAttachmentSizeBytes: z.ZodOptional<z.ZodNumber>;
2488
+ }, z.core.$strip>;
2489
+ }, z.core.$strip>>;
2490
+ }, z.core.$strip>;
2491
+ }, z.core.$strip>;
2492
+ }, z.core.$strip>;
2493
+ 'slates/hub.live_invocation.set': z.ZodObject<{
2494
+ jsonrpc: z.ZodLiteral<"2.0">;
2495
+ method: z.ZodLiteral<"slates/hub.live_invocation.set">;
2496
+ params: z.ZodObject<{
2497
+ token: z.ZodString;
2498
+ baseUrl: z.ZodString;
2499
+ }, z.core.$strip>;
2500
+ }, z.core.$strip>;
2501
+ };
2502
+
2445
2503
  declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
2446
2504
  jsonrpc: z.ZodLiteral<"2.0">;
2447
2505
  method: z.ZodLiteral<"slates/provider.identify">;
@@ -2592,7 +2650,7 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
2592
2650
  }, z.core.$strip>>>;
2593
2651
  })[P]; } : never, z.core.$strip>;
2594
2652
 
2595
- type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications;
2653
+ type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications | SlatesHubNotifications;
2596
2654
  type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
2597
2655
  type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
2598
2656
  declare let slatesResponsesByMethod: {
@@ -2714,7 +2772,6 @@ declare let slatesResponsesByMethod: {
2714
2772
  id: z$1.ZodString;
2715
2773
  title: z$1.ZodString;
2716
2774
  description: z$1.ZodOptional<z$1.ZodString>;
2717
- defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
2718
2775
  }, z$1.core.$strip>>>;
2719
2776
  inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
2720
2777
  outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
@@ -2752,7 +2809,6 @@ declare let slatesResponsesByMethod: {
2752
2809
  id: z$1.ZodString;
2753
2810
  title: z$1.ZodString;
2754
2811
  description: z$1.ZodOptional<z$1.ZodString>;
2755
- defaultChecked: z$1.ZodOptional<z$1.ZodBoolean>;
2756
2812
  }, z$1.core.$strip>>>;
2757
2813
  inputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
2758
2814
  outputSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
@@ -3269,13 +3325,19 @@ declare let slatesResponsesByMethod: {
3269
3325
  message: z$1.ZodOptional<z$1.ZodString>;
3270
3326
  attachments: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
3271
3327
  mimeType: z$1.ZodOptional<z$1.ZodString>;
3328
+ attachmentHash: z$1.ZodOptional<z$1.ZodString>;
3272
3329
  content: z$1.ZodUnion<readonly [z$1.ZodObject<{
3273
3330
  type: z$1.ZodLiteral<"url">;
3274
3331
  url: z$1.ZodString;
3332
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3333
+ query: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3275
3334
  }, z$1.core.$strip>, z$1.ZodObject<{
3276
3335
  type: z$1.ZodLiteral<"content">;
3277
3336
  encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
3278
3337
  content: z$1.ZodString;
3338
+ }, z$1.core.$strip>, z$1.ZodObject<{
3339
+ type: z$1.ZodLiteral<"upload_reference">;
3340
+ referenceId: z$1.ZodString;
3279
3341
  }, z$1.core.$strip>]>;
3280
3342
  }, z$1.core.$strip>>>;
3281
3343
  requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
@@ -3718,6 +3780,28 @@ declare let slatesRequestsByMethod: {
3718
3780
  }, z$1.core.$strip>;
3719
3781
  };
3720
3782
  declare let slatesNotificationsByMethod: {
3783
+ 'slates/hub.capabilities.set': z$1.ZodObject<{
3784
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3785
+ method: z$1.ZodLiteral<"slates/hub.capabilities.set">;
3786
+ params: z$1.ZodObject<{
3787
+ capabilities: z$1.ZodObject<{
3788
+ attachments: z$1.ZodOptional<z$1.ZodObject<{
3789
+ directUpload: z$1.ZodObject<{
3790
+ enabled: z$1.ZodBoolean;
3791
+ maxAttachmentSizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
3792
+ }, z$1.core.$strip>;
3793
+ }, z$1.core.$strip>>;
3794
+ }, z$1.core.$strip>;
3795
+ }, z$1.core.$strip>;
3796
+ }, z$1.core.$strip>;
3797
+ 'slates/hub.live_invocation.set': z$1.ZodObject<{
3798
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3799
+ method: z$1.ZodLiteral<"slates/hub.live_invocation.set">;
3800
+ params: z$1.ZodObject<{
3801
+ token: z$1.ZodString;
3802
+ baseUrl: z$1.ZodString;
3803
+ }, z$1.core.$strip>;
3804
+ }, z$1.core.$strip>;
3721
3805
  'slates/hello': z$1.ZodObject<{
3722
3806
  jsonrpc: z$1.ZodLiteral<"2.0">;
3723
3807
  method: z$1.ZodLiteral<"slates/hello">;
@@ -4127,7 +4211,6 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
4127
4211
  id: z.ZodString;
4128
4212
  title: z.ZodString;
4129
4213
  description: z.ZodOptional<z.ZodString>;
4130
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
4131
4214
  }, z.core.$strip>>>;
4132
4215
  inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
4133
4216
  outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -4165,4 +4248,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
4165
4248
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
4166
4249
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
4167
4250
 
4168
- export { SLATES_PROTOCOL_VERSION, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
4251
+ export { SLATES_PROTOCOL_VERSION, type SlateAdapter, type SlateAuthenticationMethod, type SlatesAction, type SlatesActionRequests, type SlatesActionResponses, type SlatesActionScopes, type SlatesActionTool, type SlatesActionTrigger, type SlatesAdapterRequests, type SlatesAdapterResponses, type SlatesAuthNotifications, type SlatesAuthRequests, type SlatesAuthResponses, type SlatesConfigNotifications, type SlatesConfigRequests, type SlatesConfigResponses, type SlatesControlFlowNotifications, type SlatesHubNotifications, type SlatesIdentifyRequests, type SlatesIdentifyResponses, type SlatesMessageActionGetRequest, type SlatesMessageActionGetResponse, type SlatesMessageActionInvokeRequest, type SlatesMessageActionInvokeResponse, type SlatesMessageActionTriggerEventMapRequest, type SlatesMessageActionTriggerEventMapResponse, type SlatesMessageActionTriggerEventsPollRequest, type SlatesMessageActionTriggerEventsPollResponse, type SlatesMessageActionTriggerWebhookHandleRequest, type SlatesMessageActionTriggerWebhookHandleResponse, type SlatesMessageActionTriggerWebhookRegisterRequest, type SlatesMessageActionTriggerWebhookRegisterResponse, type SlatesMessageActionTriggerWebhookUnregisterRequest, type SlatesMessageActionTriggerWebhookUnregisterResponse, type SlatesMessageActionsListRequest, type SlatesMessageActionsListResponse, type SlatesMessageAdapterGetRequest, type SlatesMessageAdapterGetResponse, type SlatesMessageAdaptersListRequest, type SlatesMessageAdaptersListResponse, type SlatesMessageAuthAuthorizationCallbackHandleRequest, type SlatesMessageAuthAuthorizationCallbackHandleResponse, type SlatesMessageAuthAuthorizationUrlGetRequest, type SlatesMessageAuthAuthorizationUrlGetResponse, type SlatesMessageAuthDefaultInputGetRequest, type SlatesMessageAuthDefaultInputGetResponse, type SlatesMessageAuthInputChangedRequest, type SlatesMessageAuthInputChangedResponse, type SlatesMessageAuthMethodGetRequest, type SlatesMessageAuthMethodGetResponse, type SlatesMessageAuthMethodsListRequest, type SlatesMessageAuthMethodsListResponse, type SlatesMessageAuthOutputGetRequest, type SlatesMessageAuthOutputGetResponse, type SlatesMessageAuthProfileGetRequest, type SlatesMessageAuthProfileGetResponse, type SlatesMessageAuthTokenRefreshHandleRequest, type SlatesMessageAuthTokenRefreshHandleResponse, type SlatesMessageConfigChangedRequest, type SlatesMessageConfigChangedResponse, type SlatesMessageConfigDefaultGetRequest, type SlatesMessageConfigDefaultGetResponse, type SlatesMessageConfigSchemaGetRequest, type SlatesMessageConfigSchemaGetResponse, type SlatesMessageHelloNotification, type SlatesMessageHubCapabilitiesSetNotification, type SlatesMessageHubLiveInvocationSetNotification, type SlatesMessageProviderIdentifyRequest, type SlatesMessageProviderIdentifyResponse, type SlatesMessageSessionStartNotification, type SlatesMessageSetAuthNotification, type SlatesMessageSetConfigNotification, type SlatesMessageSetParticipantsNotification, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesWebhookHttp, type SlatesWebhookHttpResponse, type SlatesWebhookRequestMatcher, createSlatesProviderProtoHandler, slatesAction, slatesActionBase, slatesActionRequestsByMethod, slatesActionResponsesByMethod, slatesActionScopeClause, slatesActionScopes, slatesActionTool, slatesActionTrigger, slatesAdapter, slatesAdapterRequestsByMethod, slatesAdapterResponsesByMethod, slatesAuthNotificationsByMethod, slatesAuthRequestsByMethod, slatesAuthResponsesByMethod, slatesAuthenticationMethod, slatesConfigNotificationsByMethod, slatesConfigRequestsByMethod, slatesConfigResponsesByMethod, slatesControlFlowNotificationsByMethod, slatesHubNotificationsByMethod, slatesIdentifyRequestsByMethod, slatesIdentifyResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAuthorizationCallbackHandleRequest, slatesMessageAuthAuthorizationCallbackHandleResponse, slatesMessageAuthAuthorizationUrlGetRequest, slatesMessageAuthAuthorizationUrlGetResponse, slatesMessageAuthDefaultInputGetRequest, slatesMessageAuthDefaultInputGetResponse, slatesMessageAuthInputChangedRequest, slatesMessageAuthInputChangedResponse, slatesMessageAuthMethodGetRequest, slatesMessageAuthMethodGetResponse, slatesMessageAuthMethodsListRequest, slatesMessageAuthMethodsListResponse, slatesMessageAuthOutputGetRequest, slatesMessageAuthOutputGetResponse, slatesMessageAuthProfileGetRequest, slatesMessageAuthProfileGetResponse, slatesMessageAuthTokenRefreshHandleRequest, slatesMessageAuthTokenRefreshHandleResponse, slatesMessageConfigChangedRequest, slatesMessageConfigChangedResponse, slatesMessageConfigDefaultGetRequest, slatesMessageConfigDefaultGetResponse, slatesMessageConfigSchemaGetRequest, slatesMessageConfigSchemaGetResponse, slatesMessageHelloNotification, slatesMessageHubCapabilitiesSetNotification, slatesMessageHubLiveInvocationSetNotification, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
@@ -113,8 +113,7 @@ var slatesAuthenticationMethod = z3.object({
113
113
  z3.object({
114
114
  id: z3.string(),
115
115
  title: z3.string(),
116
- description: z3.string().optional(),
117
- defaultChecked: z3.boolean().optional()
116
+ description: z3.string().optional()
118
117
  })
119
118
  ).optional(),
120
119
  inputSchema: z3.record(z3.string(), z3.any()),
@@ -239,15 +238,22 @@ var slatesMessageActionInvokeResponse = z6.object({
239
238
  attachments: z6.array(
240
239
  z6.object({
241
240
  mimeType: z6.string().optional(),
241
+ attachmentHash: z6.string().optional(),
242
242
  content: z6.union([
243
243
  z6.object({
244
244
  type: z6.literal("url"),
245
- url: z6.string()
245
+ url: z6.string(),
246
+ headers: z6.record(z6.string(), z6.string()).optional(),
247
+ query: z6.record(z6.string(), z6.string()).optional()
246
248
  }),
247
249
  z6.object({
248
250
  type: z6.literal("content"),
249
251
  encoding: z6.union([z6.literal("base64"), z6.literal("utf-8")]),
250
252
  content: z6.string()
253
+ }),
254
+ z6.object({
255
+ type: z6.literal("upload_reference"),
256
+ referenceId: z6.string()
251
257
  })
252
258
  ])
253
259
  })
@@ -726,30 +732,59 @@ var slatesControlFlowNotificationsByMethod = {
726
732
  "slates/session.start": slatesMessageSessionStartNotification
727
733
  };
728
734
 
729
- // src/messages/identify.ts
735
+ // src/messages/hub.ts
730
736
  import z11 from "zod";
731
- var slatesMessageProviderIdentifyRequest = z11.object({
737
+ var slatesMessageHubCapabilitiesSetNotification = z11.object({
732
738
  jsonrpc: z11.literal("2.0"),
733
- method: z11.literal("slates/provider.identify"),
734
- id: z11.string(),
735
- params: z11.object({})
739
+ method: z11.literal("slates/hub.capabilities.set"),
740
+ params: z11.object({
741
+ capabilities: z11.object({
742
+ attachments: z11.object({
743
+ directUpload: z11.object({
744
+ enabled: z11.boolean(),
745
+ maxAttachmentSizeBytes: z11.number().optional()
746
+ })
747
+ }).optional()
748
+ })
749
+ })
736
750
  });
737
- var slatesMessageProviderIdentifyResponse = z11.object({
751
+ var slatesMessageHubLiveInvocationSetNotification = z11.object({
738
752
  jsonrpc: z11.literal("2.0"),
739
- id: z11.string(),
740
- result: z11.object({
741
- protocol: z11.literal(SLATES_PROTOCOL_VERSION),
742
- provider: z11.object({
743
- type: z11.literal("provider"),
744
- id: z11.string(),
745
- name: z11.string(),
746
- description: z11.string().optional(),
747
- metadata: z11.record(z11.string(), z11.any()).optional()
753
+ method: z11.literal("slates/hub.live_invocation.set"),
754
+ params: z11.object({
755
+ token: z11.string(),
756
+ baseUrl: z11.string()
757
+ })
758
+ });
759
+ var slatesHubNotificationsByMethod = {
760
+ "slates/hub.capabilities.set": slatesMessageHubCapabilitiesSetNotification,
761
+ "slates/hub.live_invocation.set": slatesMessageHubLiveInvocationSetNotification
762
+ };
763
+
764
+ // src/messages/identify.ts
765
+ import z12 from "zod";
766
+ var slatesMessageProviderIdentifyRequest = z12.object({
767
+ jsonrpc: z12.literal("2.0"),
768
+ method: z12.literal("slates/provider.identify"),
769
+ id: z12.string(),
770
+ params: z12.object({})
771
+ });
772
+ var slatesMessageProviderIdentifyResponse = z12.object({
773
+ jsonrpc: z12.literal("2.0"),
774
+ id: z12.string(),
775
+ result: z12.object({
776
+ protocol: z12.literal(SLATES_PROTOCOL_VERSION),
777
+ provider: z12.object({
778
+ type: z12.literal("provider"),
779
+ id: z12.string(),
780
+ name: z12.string(),
781
+ description: z12.string().optional(),
782
+ metadata: z12.record(z12.string(), z12.any()).optional()
748
783
  }),
749
- docs: z11.array(
750
- z11.object({
751
- name: z11.string(),
752
- url: z11.string()
784
+ docs: z12.array(
785
+ z12.object({
786
+ name: z12.string(),
787
+ url: z12.string()
753
788
  })
754
789
  )
755
790
  })
@@ -779,7 +814,8 @@ var slatesRequestsByMethod = {
779
814
  var slatesNotificationsByMethod = {
780
815
  ...slatesAuthNotificationsByMethod,
781
816
  ...slatesConfigNotificationsByMethod,
782
- ...slatesControlFlowNotificationsByMethod
817
+ ...slatesControlFlowNotificationsByMethod,
818
+ ...slatesHubNotificationsByMethod
783
819
  };
784
820
 
785
821
  // src/handler/provider.ts
@@ -1061,6 +1097,7 @@ export {
1061
1097
  slatesConfigRequestsByMethod,
1062
1098
  slatesConfigResponsesByMethod,
1063
1099
  slatesControlFlowNotificationsByMethod,
1100
+ slatesHubNotificationsByMethod,
1064
1101
  slatesIdentifyRequestsByMethod,
1065
1102
  slatesIdentifyResponsesByMethod,
1066
1103
  slatesMessageActionGetRequest,
@@ -1108,6 +1145,8 @@ export {
1108
1145
  slatesMessageConfigSchemaGetRequest,
1109
1146
  slatesMessageConfigSchemaGetResponse,
1110
1147
  slatesMessageHelloNotification,
1148
+ slatesMessageHubCapabilitiesSetNotification,
1149
+ slatesMessageHubLiveInvocationSetNotification,
1111
1150
  slatesMessageProviderIdentifyRequest,
1112
1151
  slatesMessageProviderIdentifyResponse,
1113
1152
  slatesMessageSessionStartNotification,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slates/proto",
3
- "version": "1.0.0-rc.14",
3
+ "version": "1.0.0-rc.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -92,15 +92,22 @@ export let slatesMessageActionInvokeResponse = z.object({
92
92
  .array(
93
93
  z.object({
94
94
  mimeType: z.string().optional(),
95
+ attachmentHash: z.string().optional(),
95
96
  content: z.union([
96
97
  z.object({
97
98
  type: z.literal('url'),
98
- url: z.string()
99
+ url: z.string(),
100
+ headers: z.record(z.string(), z.string()).optional(),
101
+ query: z.record(z.string(), z.string()).optional()
99
102
  }),
100
103
  z.object({
101
104
  type: z.literal('content'),
102
105
  encoding: z.union([z.literal('base64'), z.literal('utf-8')]),
103
106
  content: z.string()
107
+ }),
108
+ z.object({
109
+ type: z.literal('upload_reference'),
110
+ referenceId: z.string()
104
111
  })
105
112
  ])
106
113
  })
@@ -0,0 +1,44 @@
1
+ import z from 'zod';
2
+
3
+ export let slatesMessageHubCapabilitiesSetNotification = z.object({
4
+ jsonrpc: z.literal('2.0'),
5
+ method: z.literal('slates/hub.capabilities.set'),
6
+ params: z.object({
7
+ capabilities: z.object({
8
+ attachments: z
9
+ .object({
10
+ directUpload: z.object({
11
+ enabled: z.boolean(),
12
+ maxAttachmentSizeBytes: z.number().optional()
13
+ })
14
+ })
15
+ .optional()
16
+ })
17
+ })
18
+ });
19
+
20
+ export type SlatesMessageHubCapabilitiesSetNotification = z.infer<
21
+ typeof slatesMessageHubCapabilitiesSetNotification
22
+ >;
23
+
24
+ export let slatesMessageHubLiveInvocationSetNotification = z.object({
25
+ jsonrpc: z.literal('2.0'),
26
+ method: z.literal('slates/hub.live_invocation.set'),
27
+ params: z.object({
28
+ token: z.string(),
29
+ baseUrl: z.string()
30
+ })
31
+ });
32
+
33
+ export type SlatesMessageHubLiveInvocationSetNotification = z.infer<
34
+ typeof slatesMessageHubLiveInvocationSetNotification
35
+ >;
36
+
37
+ export type SlatesHubNotifications =
38
+ | SlatesMessageHubCapabilitiesSetNotification
39
+ | SlatesMessageHubLiveInvocationSetNotification;
40
+
41
+ export let slatesHubNotificationsByMethod = {
42
+ 'slates/hub.capabilities.set': slatesMessageHubCapabilitiesSetNotification,
43
+ 'slates/hub.live_invocation.set': slatesMessageHubLiveInvocationSetNotification
44
+ };
@@ -3,6 +3,7 @@ export * from './adapter';
3
3
  export * from './auth';
4
4
  export * from './config';
5
5
  export * from './controlFlow';
6
+ export * from './hub';
6
7
  export * from './identify';
7
8
  export * from './tracing';
8
9
 
@@ -39,6 +40,7 @@ import {
39
40
  type SlatesControlFlowNotifications,
40
41
  slatesControlFlowNotificationsByMethod
41
42
  } from './controlFlow';
43
+ import { type SlatesHubNotifications, slatesHubNotificationsByMethod } from './hub';
42
44
  import {
43
45
  type SlatesIdentifyRequests,
44
46
  type SlatesIdentifyResponses,
@@ -49,7 +51,8 @@ import {
49
51
  export type SlatesNotifications =
50
52
  | SlatesAuthNotifications
51
53
  | SlatesConfigNotifications
52
- | SlatesControlFlowNotifications;
54
+ | SlatesControlFlowNotifications
55
+ | SlatesHubNotifications;
53
56
 
54
57
  export type SlatesRequests =
55
58
  | SlatesActionRequests
@@ -84,7 +87,8 @@ export let slatesRequestsByMethod = {
84
87
  export let slatesNotificationsByMethod = {
85
88
  ...slatesAuthNotificationsByMethod,
86
89
  ...slatesConfigNotificationsByMethod,
87
- ...slatesControlFlowNotificationsByMethod
90
+ ...slatesControlFlowNotificationsByMethod,
91
+ ...slatesHubNotificationsByMethod
88
92
  };
89
93
 
90
94
  export type SlatesResponsesByMethod = {
@@ -16,8 +16,7 @@ export let slatesAuthenticationMethod = z.object({
16
16
  z.object({
17
17
  id: z.string(),
18
18
  title: z.string(),
19
- description: z.string().optional(),
20
- defaultChecked: z.boolean().optional()
19
+ description: z.string().optional()
21
20
  })
22
21
  )
23
22
  .optional(),