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

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
@@ -53,6 +53,8 @@ __export(index_exports, {
53
53
  slatesConfigResponsesByMethod: () => slatesConfigResponsesByMethod,
54
54
  slatesControlFlowNotificationsByMethod: () => slatesControlFlowNotificationsByMethod,
55
55
  slatesHubNotificationsByMethod: () => slatesHubNotificationsByMethod,
56
+ slatesHubRequestsByMethod: () => slatesHubRequestsByMethod,
57
+ slatesHubResponsesByMethod: () => slatesHubResponsesByMethod,
56
58
  slatesIdentifyRequestsByMethod: () => slatesIdentifyRequestsByMethod,
57
59
  slatesIdentifyResponsesByMethod: () => slatesIdentifyResponsesByMethod,
58
60
  slatesMessageActionGetRequest: () => slatesMessageActionGetRequest,
@@ -102,6 +104,8 @@ __export(index_exports, {
102
104
  slatesMessageHelloNotification: () => slatesMessageHelloNotification,
103
105
  slatesMessageHubCapabilitiesSetNotification: () => slatesMessageHubCapabilitiesSetNotification,
104
106
  slatesMessageHubLiveInvocationSetNotification: () => slatesMessageHubLiveInvocationSetNotification,
107
+ slatesMessageProviderCapabilitiesGetRequest: () => slatesMessageProviderCapabilitiesGetRequest,
108
+ slatesMessageProviderCapabilitiesGetResponse: () => slatesMessageProviderCapabilitiesGetResponse,
105
109
  slatesMessageProviderIdentifyRequest: () => slatesMessageProviderIdentifyRequest,
106
110
  slatesMessageProviderIdentifyResponse: () => slatesMessageProviderIdentifyResponse,
107
111
  slatesMessageSessionStartNotification: () => slatesMessageSessionStartNotification,
@@ -362,7 +366,9 @@ var slatesMessageActionInvokeResponse = import_zod6.default.object({
362
366
  type: import_zod6.default.literal("url"),
363
367
  url: import_zod6.default.string(),
364
368
  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()
369
+ query: import_zod6.default.record(import_zod6.default.string(), import_zod6.default.string()).optional(),
370
+ refreshReference: import_zod6.default.unknown().optional(),
371
+ refreshAt: import_zod6.default.string().optional()
366
372
  }),
367
373
  import_zod6.default.object({
368
374
  type: import_zod6.default.literal("content"),
@@ -878,6 +884,32 @@ var slatesHubNotificationsByMethod = {
878
884
  "slates/hub.capabilities.set": slatesMessageHubCapabilitiesSetNotification,
879
885
  "slates/hub.live_invocation.set": slatesMessageHubLiveInvocationSetNotification
880
886
  };
887
+ var slatesMessageProviderCapabilitiesGetRequest = import_zod11.default.object({
888
+ jsonrpc: import_zod11.default.literal("2.0"),
889
+ method: import_zod11.default.literal("slates/provider.capabilities.get"),
890
+ id: import_zod11.default.string(),
891
+ params: import_zod11.default.object({})
892
+ });
893
+ var slatesMessageProviderCapabilitiesGetResponse = import_zod11.default.object({
894
+ jsonrpc: import_zod11.default.literal("2.0"),
895
+ id: import_zod11.default.string(),
896
+ result: import_zod11.default.object({
897
+ capabilities: import_zod11.default.object({
898
+ hub: import_zod11.default.object({
899
+ // Understands slates/hub.capabilities.set
900
+ capabilitiesNotification: import_zod11.default.boolean().optional(),
901
+ // Understands slates/hub.live_invocation.set
902
+ liveInvocation: import_zod11.default.boolean().optional()
903
+ }).optional()
904
+ })
905
+ })
906
+ });
907
+ var slatesHubRequestsByMethod = {
908
+ "slates/provider.capabilities.get": slatesMessageProviderCapabilitiesGetRequest
909
+ };
910
+ var slatesHubResponsesByMethod = {
911
+ "slates/provider.capabilities.get": slatesMessageProviderCapabilitiesGetResponse
912
+ };
881
913
 
882
914
  // src/messages/identify.ts
883
915
  var import_zod12 = __toESM(require("zod"), 1);
@@ -920,6 +952,7 @@ var slatesResponsesByMethod = {
920
952
  ...slatesAdapterResponsesByMethod,
921
953
  ...slatesAuthResponsesByMethod,
922
954
  ...slatesConfigResponsesByMethod,
955
+ ...slatesHubResponsesByMethod,
923
956
  ...slatesIdentifyResponsesByMethod
924
957
  };
925
958
  var slatesRequestsByMethod = {
@@ -927,6 +960,7 @@ var slatesRequestsByMethod = {
927
960
  ...slatesAdapterRequestsByMethod,
928
961
  ...slatesAuthRequestsByMethod,
929
962
  ...slatesConfigRequestsByMethod,
963
+ ...slatesHubRequestsByMethod,
930
964
  ...slatesIdentifyRequestsByMethod
931
965
  };
932
966
  var slatesNotificationsByMethod = {
@@ -1217,6 +1251,8 @@ var mapUnknownErrorToSlateErrorResponse = (error, defaults = {}) => ({
1217
1251
  slatesConfigResponsesByMethod,
1218
1252
  slatesControlFlowNotificationsByMethod,
1219
1253
  slatesHubNotificationsByMethod,
1254
+ slatesHubRequestsByMethod,
1255
+ slatesHubResponsesByMethod,
1220
1256
  slatesIdentifyRequestsByMethod,
1221
1257
  slatesIdentifyResponsesByMethod,
1222
1258
  slatesMessageActionGetRequest,
@@ -1266,6 +1302,8 @@ var mapUnknownErrorToSlateErrorResponse = (error, defaults = {}) => ({
1266
1302
  slatesMessageHelloNotification,
1267
1303
  slatesMessageHubCapabilitiesSetNotification,
1268
1304
  slatesMessageHubLiveInvocationSetNotification,
1305
+ slatesMessageProviderCapabilitiesGetRequest,
1306
+ slatesMessageProviderCapabilitiesGetResponse,
1269
1307
  slatesMessageProviderIdentifyRequest,
1270
1308
  slatesMessageProviderIdentifyResponse,
1271
1309
  slatesMessageSessionStartNotification,
package/dist/index.d.cts CHANGED
@@ -266,6 +266,8 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
266
266
  url: z.ZodString;
267
267
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
268
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
+ refreshReference: z.ZodOptional<z.ZodUnknown>;
270
+ refreshAt: z.ZodOptional<z.ZodString>;
269
271
  }, z.core.$strip>, z.ZodObject<{
270
272
  type: z.ZodLiteral<"content">;
271
273
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
@@ -794,6 +796,8 @@ declare let slatesActionResponsesByMethod: {
794
796
  url: z.ZodString;
795
797
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
796
798
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
799
+ refreshReference: z.ZodOptional<z.ZodUnknown>;
800
+ refreshAt: z.ZodOptional<z.ZodString>;
797
801
  }, z.core.$strip>, z.ZodObject<{
798
802
  type: z.ZodLiteral<"content">;
799
803
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
@@ -2499,6 +2503,50 @@ declare let slatesHubNotificationsByMethod: {
2499
2503
  }, z.core.$strip>;
2500
2504
  }, z.core.$strip>;
2501
2505
  };
2506
+ declare let slatesMessageProviderCapabilitiesGetRequest: z.ZodObject<{
2507
+ jsonrpc: z.ZodLiteral<"2.0">;
2508
+ method: z.ZodLiteral<"slates/provider.capabilities.get">;
2509
+ id: z.ZodString;
2510
+ params: z.ZodObject<{}, z.core.$strip>;
2511
+ }, z.core.$strip>;
2512
+ type SlatesMessageProviderCapabilitiesGetRequest = z.infer<typeof slatesMessageProviderCapabilitiesGetRequest>;
2513
+ declare let slatesMessageProviderCapabilitiesGetResponse: z.ZodObject<{
2514
+ jsonrpc: z.ZodLiteral<"2.0">;
2515
+ id: z.ZodString;
2516
+ result: z.ZodObject<{
2517
+ capabilities: z.ZodObject<{
2518
+ hub: z.ZodOptional<z.ZodObject<{
2519
+ capabilitiesNotification: z.ZodOptional<z.ZodBoolean>;
2520
+ liveInvocation: z.ZodOptional<z.ZodBoolean>;
2521
+ }, z.core.$strip>>;
2522
+ }, z.core.$strip>;
2523
+ }, z.core.$strip>;
2524
+ }, z.core.$strip>;
2525
+ type SlatesMessageProviderCapabilitiesGetResponse = z.infer<typeof slatesMessageProviderCapabilitiesGetResponse>;
2526
+ type SlatesHubRequests = SlatesMessageProviderCapabilitiesGetRequest;
2527
+ type SlatesHubResponses = SlatesMessageProviderCapabilitiesGetResponse;
2528
+ declare let slatesHubRequestsByMethod: {
2529
+ 'slates/provider.capabilities.get': z.ZodObject<{
2530
+ jsonrpc: z.ZodLiteral<"2.0">;
2531
+ method: z.ZodLiteral<"slates/provider.capabilities.get">;
2532
+ id: z.ZodString;
2533
+ params: z.ZodObject<{}, z.core.$strip>;
2534
+ }, z.core.$strip>;
2535
+ };
2536
+ declare let slatesHubResponsesByMethod: {
2537
+ 'slates/provider.capabilities.get': z.ZodObject<{
2538
+ jsonrpc: z.ZodLiteral<"2.0">;
2539
+ id: z.ZodString;
2540
+ result: z.ZodObject<{
2541
+ capabilities: z.ZodObject<{
2542
+ hub: z.ZodOptional<z.ZodObject<{
2543
+ capabilitiesNotification: z.ZodOptional<z.ZodBoolean>;
2544
+ liveInvocation: z.ZodOptional<z.ZodBoolean>;
2545
+ }, z.core.$strip>>;
2546
+ }, z.core.$strip>;
2547
+ }, z.core.$strip>;
2548
+ }, z.core.$strip>;
2549
+ };
2502
2550
 
2503
2551
  declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
2504
2552
  jsonrpc: z.ZodLiteral<"2.0">;
@@ -2651,8 +2699,8 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
2651
2699
  })[P]; } : never, z.core.$strip>;
2652
2700
 
2653
2701
  type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications | SlatesHubNotifications;
2654
- type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
2655
- type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
2702
+ type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesHubRequests | SlatesIdentifyRequests;
2703
+ type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesHubResponses | SlatesIdentifyResponses;
2656
2704
  declare let slatesResponsesByMethod: {
2657
2705
  'slates/provider.identify': z$1.ZodObject<{
2658
2706
  jsonrpc: z$1.ZodLiteral<"2.0">;
@@ -2672,6 +2720,18 @@ declare let slatesResponsesByMethod: {
2672
2720
  }, z$1.core.$strip>>;
2673
2721
  }, z$1.core.$strip>;
2674
2722
  }, z$1.core.$strip>;
2723
+ 'slates/provider.capabilities.get': z$1.ZodObject<{
2724
+ jsonrpc: z$1.ZodLiteral<"2.0">;
2725
+ id: z$1.ZodString;
2726
+ result: z$1.ZodObject<{
2727
+ capabilities: z$1.ZodObject<{
2728
+ hub: z$1.ZodOptional<z$1.ZodObject<{
2729
+ capabilitiesNotification: z$1.ZodOptional<z$1.ZodBoolean>;
2730
+ liveInvocation: z$1.ZodOptional<z$1.ZodBoolean>;
2731
+ }, z$1.core.$strip>>;
2732
+ }, z$1.core.$strip>;
2733
+ }, z$1.core.$strip>;
2734
+ }, z$1.core.$strip>;
2675
2735
  'slates/config.schema.get': z$1.ZodObject<{
2676
2736
  jsonrpc: z$1.ZodLiteral<"2.0">;
2677
2737
  id: z$1.ZodString;
@@ -3331,6 +3391,8 @@ declare let slatesResponsesByMethod: {
3331
3391
  url: z$1.ZodString;
3332
3392
  headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3333
3393
  query: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3394
+ refreshReference: z$1.ZodOptional<z$1.ZodUnknown>;
3395
+ refreshAt: z$1.ZodOptional<z$1.ZodString>;
3334
3396
  }, z$1.core.$strip>, z$1.ZodObject<{
3335
3397
  type: z$1.ZodLiteral<"content">;
3336
3398
  encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
@@ -3565,6 +3627,12 @@ declare let slatesRequestsByMethod: {
3565
3627
  id: z$1.ZodString;
3566
3628
  params: z$1.ZodObject<{}, z$1.core.$strip>;
3567
3629
  }, z$1.core.$strip>;
3630
+ 'slates/provider.capabilities.get': z$1.ZodObject<{
3631
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3632
+ method: z$1.ZodLiteral<"slates/provider.capabilities.get">;
3633
+ id: z$1.ZodString;
3634
+ params: z$1.ZodObject<{}, z$1.core.$strip>;
3635
+ }, z$1.core.$strip>;
3568
3636
  'slates/config.schema.get': z$1.ZodObject<{
3569
3637
  jsonrpc: z$1.ZodLiteral<"2.0">;
3570
3638
  method: z$1.ZodLiteral<"slates/config.schema.get">;
@@ -4248,4 +4316,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
4248
4316
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
4249
4317
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
4250
4318
 
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 };
4319
+ 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 SlatesHubRequests, type SlatesHubResponses, 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 SlatesMessageProviderCapabilitiesGetRequest, type SlatesMessageProviderCapabilitiesGetResponse, 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, slatesHubRequestsByMethod, slatesHubResponsesByMethod, 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, slatesMessageProviderCapabilitiesGetRequest, slatesMessageProviderCapabilitiesGetResponse, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
package/dist/index.d.ts CHANGED
@@ -266,6 +266,8 @@ declare let slatesMessageActionInvokeResponse: z.ZodObject<{
266
266
  url: z.ZodString;
267
267
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
268
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
+ refreshReference: z.ZodOptional<z.ZodUnknown>;
270
+ refreshAt: z.ZodOptional<z.ZodString>;
269
271
  }, z.core.$strip>, z.ZodObject<{
270
272
  type: z.ZodLiteral<"content">;
271
273
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
@@ -794,6 +796,8 @@ declare let slatesActionResponsesByMethod: {
794
796
  url: z.ZodString;
795
797
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
796
798
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
799
+ refreshReference: z.ZodOptional<z.ZodUnknown>;
800
+ refreshAt: z.ZodOptional<z.ZodString>;
797
801
  }, z.core.$strip>, z.ZodObject<{
798
802
  type: z.ZodLiteral<"content">;
799
803
  encoding: z.ZodUnion<readonly [z.ZodLiteral<"base64">, z.ZodLiteral<"utf-8">]>;
@@ -2499,6 +2503,50 @@ declare let slatesHubNotificationsByMethod: {
2499
2503
  }, z.core.$strip>;
2500
2504
  }, z.core.$strip>;
2501
2505
  };
2506
+ declare let slatesMessageProviderCapabilitiesGetRequest: z.ZodObject<{
2507
+ jsonrpc: z.ZodLiteral<"2.0">;
2508
+ method: z.ZodLiteral<"slates/provider.capabilities.get">;
2509
+ id: z.ZodString;
2510
+ params: z.ZodObject<{}, z.core.$strip>;
2511
+ }, z.core.$strip>;
2512
+ type SlatesMessageProviderCapabilitiesGetRequest = z.infer<typeof slatesMessageProviderCapabilitiesGetRequest>;
2513
+ declare let slatesMessageProviderCapabilitiesGetResponse: z.ZodObject<{
2514
+ jsonrpc: z.ZodLiteral<"2.0">;
2515
+ id: z.ZodString;
2516
+ result: z.ZodObject<{
2517
+ capabilities: z.ZodObject<{
2518
+ hub: z.ZodOptional<z.ZodObject<{
2519
+ capabilitiesNotification: z.ZodOptional<z.ZodBoolean>;
2520
+ liveInvocation: z.ZodOptional<z.ZodBoolean>;
2521
+ }, z.core.$strip>>;
2522
+ }, z.core.$strip>;
2523
+ }, z.core.$strip>;
2524
+ }, z.core.$strip>;
2525
+ type SlatesMessageProviderCapabilitiesGetResponse = z.infer<typeof slatesMessageProviderCapabilitiesGetResponse>;
2526
+ type SlatesHubRequests = SlatesMessageProviderCapabilitiesGetRequest;
2527
+ type SlatesHubResponses = SlatesMessageProviderCapabilitiesGetResponse;
2528
+ declare let slatesHubRequestsByMethod: {
2529
+ 'slates/provider.capabilities.get': z.ZodObject<{
2530
+ jsonrpc: z.ZodLiteral<"2.0">;
2531
+ method: z.ZodLiteral<"slates/provider.capabilities.get">;
2532
+ id: z.ZodString;
2533
+ params: z.ZodObject<{}, z.core.$strip>;
2534
+ }, z.core.$strip>;
2535
+ };
2536
+ declare let slatesHubResponsesByMethod: {
2537
+ 'slates/provider.capabilities.get': z.ZodObject<{
2538
+ jsonrpc: z.ZodLiteral<"2.0">;
2539
+ id: z.ZodString;
2540
+ result: z.ZodObject<{
2541
+ capabilities: z.ZodObject<{
2542
+ hub: z.ZodOptional<z.ZodObject<{
2543
+ capabilitiesNotification: z.ZodOptional<z.ZodBoolean>;
2544
+ liveInvocation: z.ZodOptional<z.ZodBoolean>;
2545
+ }, z.core.$strip>>;
2546
+ }, z.core.$strip>;
2547
+ }, z.core.$strip>;
2548
+ }, z.core.$strip>;
2549
+ };
2502
2550
 
2503
2551
  declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
2504
2552
  jsonrpc: z.ZodLiteral<"2.0">;
@@ -2651,8 +2699,8 @@ declare let withRequestTraces: <Shape extends z.ZodRawShape>(shape: Shape) => z.
2651
2699
  })[P]; } : never, z.core.$strip>;
2652
2700
 
2653
2701
  type SlatesNotifications = SlatesAuthNotifications | SlatesConfigNotifications | SlatesControlFlowNotifications | SlatesHubNotifications;
2654
- type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesIdentifyRequests;
2655
- type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesIdentifyResponses;
2702
+ type SlatesRequests = SlatesActionRequests | SlatesAdapterRequests | SlatesAuthRequests | SlatesConfigRequests | SlatesHubRequests | SlatesIdentifyRequests;
2703
+ type SlatesResponses = SlatesActionResponses | SlatesAdapterResponses | SlatesAuthResponses | SlatesConfigResponses | SlatesHubResponses | SlatesIdentifyResponses;
2656
2704
  declare let slatesResponsesByMethod: {
2657
2705
  'slates/provider.identify': z$1.ZodObject<{
2658
2706
  jsonrpc: z$1.ZodLiteral<"2.0">;
@@ -2672,6 +2720,18 @@ declare let slatesResponsesByMethod: {
2672
2720
  }, z$1.core.$strip>>;
2673
2721
  }, z$1.core.$strip>;
2674
2722
  }, z$1.core.$strip>;
2723
+ 'slates/provider.capabilities.get': z$1.ZodObject<{
2724
+ jsonrpc: z$1.ZodLiteral<"2.0">;
2725
+ id: z$1.ZodString;
2726
+ result: z$1.ZodObject<{
2727
+ capabilities: z$1.ZodObject<{
2728
+ hub: z$1.ZodOptional<z$1.ZodObject<{
2729
+ capabilitiesNotification: z$1.ZodOptional<z$1.ZodBoolean>;
2730
+ liveInvocation: z$1.ZodOptional<z$1.ZodBoolean>;
2731
+ }, z$1.core.$strip>>;
2732
+ }, z$1.core.$strip>;
2733
+ }, z$1.core.$strip>;
2734
+ }, z$1.core.$strip>;
2675
2735
  'slates/config.schema.get': z$1.ZodObject<{
2676
2736
  jsonrpc: z$1.ZodLiteral<"2.0">;
2677
2737
  id: z$1.ZodString;
@@ -3331,6 +3391,8 @@ declare let slatesResponsesByMethod: {
3331
3391
  url: z$1.ZodString;
3332
3392
  headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3333
3393
  query: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3394
+ refreshReference: z$1.ZodOptional<z$1.ZodUnknown>;
3395
+ refreshAt: z$1.ZodOptional<z$1.ZodString>;
3334
3396
  }, z$1.core.$strip>, z$1.ZodObject<{
3335
3397
  type: z$1.ZodLiteral<"content">;
3336
3398
  encoding: z$1.ZodUnion<readonly [z$1.ZodLiteral<"base64">, z$1.ZodLiteral<"utf-8">]>;
@@ -3565,6 +3627,12 @@ declare let slatesRequestsByMethod: {
3565
3627
  id: z$1.ZodString;
3566
3628
  params: z$1.ZodObject<{}, z$1.core.$strip>;
3567
3629
  }, z$1.core.$strip>;
3630
+ 'slates/provider.capabilities.get': z$1.ZodObject<{
3631
+ jsonrpc: z$1.ZodLiteral<"2.0">;
3632
+ method: z$1.ZodLiteral<"slates/provider.capabilities.get">;
3633
+ id: z$1.ZodString;
3634
+ params: z$1.ZodObject<{}, z$1.core.$strip>;
3635
+ }, z$1.core.$strip>;
3568
3636
  'slates/config.schema.get': z$1.ZodObject<{
3569
3637
  jsonrpc: z$1.ZodLiteral<"2.0">;
3570
3638
  method: z$1.ZodLiteral<"slates/config.schema.get">;
@@ -4248,4 +4316,4 @@ type SlatesParticipant = z.infer<typeof slatesParticipant>;
4248
4316
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
4249
4317
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
4250
4318
 
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 };
4319
+ 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 SlatesHubRequests, type SlatesHubResponses, 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 SlatesMessageProviderCapabilitiesGetRequest, type SlatesMessageProviderCapabilitiesGetResponse, 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, slatesHubRequestsByMethod, slatesHubResponsesByMethod, 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, slatesMessageProviderCapabilitiesGetRequest, slatesMessageProviderCapabilitiesGetResponse, slatesMessageProviderIdentifyRequest, slatesMessageProviderIdentifyResponse, slatesMessageSessionStartNotification, slatesMessageSetAuthNotification, slatesMessageSetConfigNotification, slatesMessageSetParticipantsNotification, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesWebhookHttp, slatesWebhookHttpResponse, slatesWebhookRequestMatcher, withRequestTraces };
@@ -244,7 +244,9 @@ var slatesMessageActionInvokeResponse = z6.object({
244
244
  type: z6.literal("url"),
245
245
  url: z6.string(),
246
246
  headers: z6.record(z6.string(), z6.string()).optional(),
247
- query: z6.record(z6.string(), z6.string()).optional()
247
+ query: z6.record(z6.string(), z6.string()).optional(),
248
+ refreshReference: z6.unknown().optional(),
249
+ refreshAt: z6.string().optional()
248
250
  }),
249
251
  z6.object({
250
252
  type: z6.literal("content"),
@@ -760,6 +762,32 @@ var slatesHubNotificationsByMethod = {
760
762
  "slates/hub.capabilities.set": slatesMessageHubCapabilitiesSetNotification,
761
763
  "slates/hub.live_invocation.set": slatesMessageHubLiveInvocationSetNotification
762
764
  };
765
+ var slatesMessageProviderCapabilitiesGetRequest = z11.object({
766
+ jsonrpc: z11.literal("2.0"),
767
+ method: z11.literal("slates/provider.capabilities.get"),
768
+ id: z11.string(),
769
+ params: z11.object({})
770
+ });
771
+ var slatesMessageProviderCapabilitiesGetResponse = z11.object({
772
+ jsonrpc: z11.literal("2.0"),
773
+ id: z11.string(),
774
+ result: z11.object({
775
+ capabilities: z11.object({
776
+ hub: z11.object({
777
+ // Understands slates/hub.capabilities.set
778
+ capabilitiesNotification: z11.boolean().optional(),
779
+ // Understands slates/hub.live_invocation.set
780
+ liveInvocation: z11.boolean().optional()
781
+ }).optional()
782
+ })
783
+ })
784
+ });
785
+ var slatesHubRequestsByMethod = {
786
+ "slates/provider.capabilities.get": slatesMessageProviderCapabilitiesGetRequest
787
+ };
788
+ var slatesHubResponsesByMethod = {
789
+ "slates/provider.capabilities.get": slatesMessageProviderCapabilitiesGetResponse
790
+ };
763
791
 
764
792
  // src/messages/identify.ts
765
793
  import z12 from "zod";
@@ -802,6 +830,7 @@ var slatesResponsesByMethod = {
802
830
  ...slatesAdapterResponsesByMethod,
803
831
  ...slatesAuthResponsesByMethod,
804
832
  ...slatesConfigResponsesByMethod,
833
+ ...slatesHubResponsesByMethod,
805
834
  ...slatesIdentifyResponsesByMethod
806
835
  };
807
836
  var slatesRequestsByMethod = {
@@ -809,6 +838,7 @@ var slatesRequestsByMethod = {
809
838
  ...slatesAdapterRequestsByMethod,
810
839
  ...slatesAuthRequestsByMethod,
811
840
  ...slatesConfigRequestsByMethod,
841
+ ...slatesHubRequestsByMethod,
812
842
  ...slatesIdentifyRequestsByMethod
813
843
  };
814
844
  var slatesNotificationsByMethod = {
@@ -1098,6 +1128,8 @@ export {
1098
1128
  slatesConfigResponsesByMethod,
1099
1129
  slatesControlFlowNotificationsByMethod,
1100
1130
  slatesHubNotificationsByMethod,
1131
+ slatesHubRequestsByMethod,
1132
+ slatesHubResponsesByMethod,
1101
1133
  slatesIdentifyRequestsByMethod,
1102
1134
  slatesIdentifyResponsesByMethod,
1103
1135
  slatesMessageActionGetRequest,
@@ -1147,6 +1179,8 @@ export {
1147
1179
  slatesMessageHelloNotification,
1148
1180
  slatesMessageHubCapabilitiesSetNotification,
1149
1181
  slatesMessageHubLiveInvocationSetNotification,
1182
+ slatesMessageProviderCapabilitiesGetRequest,
1183
+ slatesMessageProviderCapabilitiesGetResponse,
1150
1184
  slatesMessageProviderIdentifyRequest,
1151
1185
  slatesMessageProviderIdentifyResponse,
1152
1186
  slatesMessageSessionStartNotification,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slates/proto",
3
- "version": "1.0.0-rc.16",
3
+ "version": "1.0.0-rc.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -43,4 +43,4 @@
43
43
  "typescript": "5.8.2",
44
44
  "vitest": "^3.1.2"
45
45
  }
46
- }
46
+ }
@@ -98,7 +98,9 @@ export let slatesMessageActionInvokeResponse = z.object({
98
98
  type: z.literal('url'),
99
99
  url: z.string(),
100
100
  headers: z.record(z.string(), z.string()).optional(),
101
- query: z.record(z.string(), z.string()).optional()
101
+ query: z.record(z.string(), z.string()).optional(),
102
+ refreshReference: z.unknown().optional(),
103
+ refreshAt: z.string().optional()
102
104
  }),
103
105
  z.object({
104
106
  type: z.literal('content'),
@@ -42,3 +42,46 @@ export let slatesHubNotificationsByMethod = {
42
42
  'slates/hub.capabilities.set': slatesMessageHubCapabilitiesSetNotification,
43
43
  'slates/hub.live_invocation.set': slatesMessageHubLiveInvocationSetNotification
44
44
  };
45
+
46
+ export let slatesMessageProviderCapabilitiesGetRequest = z.object({
47
+ jsonrpc: z.literal('2.0'),
48
+ method: z.literal('slates/provider.capabilities.get'),
49
+ id: z.string(),
50
+ params: z.object({})
51
+ });
52
+
53
+ export type SlatesMessageProviderCapabilitiesGetRequest = z.infer<
54
+ typeof slatesMessageProviderCapabilitiesGetRequest
55
+ >;
56
+
57
+ export let slatesMessageProviderCapabilitiesGetResponse = z.object({
58
+ jsonrpc: z.literal('2.0'),
59
+ id: z.string(),
60
+ result: z.object({
61
+ capabilities: z.object({
62
+ hub: z
63
+ .object({
64
+ // Understands slates/hub.capabilities.set
65
+ capabilitiesNotification: z.boolean().optional(),
66
+ // Understands slates/hub.live_invocation.set
67
+ liveInvocation: z.boolean().optional()
68
+ })
69
+ .optional()
70
+ })
71
+ })
72
+ });
73
+
74
+ export type SlatesMessageProviderCapabilitiesGetResponse = z.infer<
75
+ typeof slatesMessageProviderCapabilitiesGetResponse
76
+ >;
77
+
78
+ export type SlatesHubRequests = SlatesMessageProviderCapabilitiesGetRequest;
79
+ export type SlatesHubResponses = SlatesMessageProviderCapabilitiesGetResponse;
80
+
81
+ export let slatesHubRequestsByMethod = {
82
+ 'slates/provider.capabilities.get': slatesMessageProviderCapabilitiesGetRequest
83
+ };
84
+
85
+ export let slatesHubResponsesByMethod = {
86
+ 'slates/provider.capabilities.get': slatesMessageProviderCapabilitiesGetResponse
87
+ };
@@ -40,7 +40,14 @@ import {
40
40
  type SlatesControlFlowNotifications,
41
41
  slatesControlFlowNotificationsByMethod
42
42
  } from './controlFlow';
43
- import { type SlatesHubNotifications, slatesHubNotificationsByMethod } from './hub';
43
+ import {
44
+ type SlatesHubNotifications,
45
+ type SlatesHubRequests,
46
+ type SlatesHubResponses,
47
+ slatesHubNotificationsByMethod,
48
+ slatesHubRequestsByMethod,
49
+ slatesHubResponsesByMethod
50
+ } from './hub';
44
51
  import {
45
52
  type SlatesIdentifyRequests,
46
53
  type SlatesIdentifyResponses,
@@ -59,6 +66,7 @@ export type SlatesRequests =
59
66
  | SlatesAdapterRequests
60
67
  | SlatesAuthRequests
61
68
  | SlatesConfigRequests
69
+ | SlatesHubRequests
62
70
  | SlatesIdentifyRequests;
63
71
 
64
72
  export type SlatesResponses =
@@ -66,6 +74,7 @@ export type SlatesResponses =
66
74
  | SlatesAdapterResponses
67
75
  | SlatesAuthResponses
68
76
  | SlatesConfigResponses
77
+ | SlatesHubResponses
69
78
  | SlatesIdentifyResponses;
70
79
 
71
80
  export let slatesResponsesByMethod = {
@@ -73,6 +82,7 @@ export let slatesResponsesByMethod = {
73
82
  ...slatesAdapterResponsesByMethod,
74
83
  ...slatesAuthResponsesByMethod,
75
84
  ...slatesConfigResponsesByMethod,
85
+ ...slatesHubResponsesByMethod,
76
86
  ...slatesIdentifyResponsesByMethod
77
87
  };
78
88
 
@@ -81,6 +91,7 @@ export let slatesRequestsByMethod = {
81
91
  ...slatesAdapterRequestsByMethod,
82
92
  ...slatesAuthRequestsByMethod,
83
93
  ...slatesConfigRequestsByMethod,
94
+ ...slatesHubRequestsByMethod,
84
95
  ...slatesIdentifyRequestsByMethod
85
96
  };
86
97