@slates/proto 1.0.0-rc.25 → 1.0.0-rc.26

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
@@ -81,6 +81,10 @@ __export(index_exports, {
81
81
  slatesMessageAdapterGetResponse: () => slatesMessageAdapterGetResponse,
82
82
  slatesMessageAdaptersListRequest: () => slatesMessageAdaptersListRequest,
83
83
  slatesMessageAdaptersListResponse: () => slatesMessageAdaptersListResponse,
84
+ slatesMessageAuthAdminAuthorizationUrlGetRequest: () => slatesMessageAuthAdminAuthorizationUrlGetRequest,
85
+ slatesMessageAuthAdminAuthorizationUrlGetResponse: () => slatesMessageAuthAdminAuthorizationUrlGetResponse,
86
+ slatesMessageAuthAdminCallbackHandleRequest: () => slatesMessageAuthAdminCallbackHandleRequest,
87
+ slatesMessageAuthAdminCallbackHandleResponse: () => slatesMessageAuthAdminCallbackHandleResponse,
84
88
  slatesMessageAuthAuthorizationCallbackHandleRequest: () => slatesMessageAuthAuthorizationCallbackHandleRequest,
85
89
  slatesMessageAuthAuthorizationCallbackHandleResponse: () => slatesMessageAuthAuthorizationCallbackHandleResponse,
86
90
  slatesMessageAuthAuthorizationUrlGetRequest: () => slatesMessageAuthAuthorizationUrlGetRequest,
@@ -254,7 +258,8 @@ var slatesAuthenticationMethod = import_zod3.default.object({
254
258
  getDefaultInput: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional(),
255
259
  handleChangedInput: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional(),
256
260
  handleTokenRefresh: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional(),
257
- getProfile: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional()
261
+ getProfile: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional(),
262
+ adminSetup: import_zod3.default.object({ enabled: import_zod3.default.boolean() }).optional()
258
263
  }),
259
264
  docs: import_zod3.default.array(
260
265
  import_zod3.default.object({
@@ -637,6 +642,45 @@ var slatesMessageAuthAuthorizationCallbackHandleResponse = import_zod10.default.
637
642
  routingMatchers: import_zod10.default.array(slatesTriggerRoutingMatcher).optional()
638
643
  })
639
644
  });
645
+ var slatesMessageAuthAdminAuthorizationUrlGetRequest = import_zod10.default.object({
646
+ jsonrpc: import_zod10.default.literal("2.0"),
647
+ method: import_zod10.default.literal("slates/auth.admin_authorization_url.get"),
648
+ id: import_zod10.default.string(),
649
+ params: slatesMessageAuthAuthorizationUrlGetRequest.shape.params
650
+ });
651
+ var slatesMessageAuthAdminAuthorizationUrlGetResponse = import_zod10.default.object({
652
+ jsonrpc: import_zod10.default.literal("2.0"),
653
+ id: import_zod10.default.string(),
654
+ result: withRequestTraces({
655
+ authorizationUrl: import_zod10.default.string(),
656
+ input: import_zod10.default.record(import_zod10.default.string(), import_zod10.default.any()).optional(),
657
+ callbackState: import_zod10.default.record(import_zod10.default.string(), import_zod10.default.any()).optional()
658
+ })
659
+ });
660
+ var slatesMessageAuthAdminCallbackHandleRequest = import_zod10.default.object({
661
+ jsonrpc: import_zod10.default.literal("2.0"),
662
+ method: import_zod10.default.literal("slates/auth.admin_callback.handle"),
663
+ id: import_zod10.default.string(),
664
+ params: import_zod10.default.object({
665
+ authenticationMethodId: import_zod10.default.string(),
666
+ code: import_zod10.default.string().optional(),
667
+ state: import_zod10.default.string(),
668
+ redirectUri: import_zod10.default.string(),
669
+ input: import_zod10.default.record(import_zod10.default.string(), import_zod10.default.any()),
670
+ clientId: import_zod10.default.string(),
671
+ clientSecret: import_zod10.default.string(),
672
+ scopes: import_zod10.default.array(import_zod10.default.string()),
673
+ callbackParams: import_zod10.default.record(import_zod10.default.string(), import_zod10.default.string()).optional(),
674
+ callbackState: import_zod10.default.record(import_zod10.default.string(), import_zod10.default.any()).optional()
675
+ })
676
+ });
677
+ var slatesMessageAuthAdminCallbackHandleResponse = import_zod10.default.object({
678
+ jsonrpc: import_zod10.default.literal("2.0"),
679
+ id: import_zod10.default.string(),
680
+ result: withRequestTraces({
681
+ instructions: import_zod10.default.string().optional()
682
+ })
683
+ });
640
684
  var slatesMessageAuthTokenRefreshHandleRequest = import_zod10.default.object({
641
685
  jsonrpc: import_zod10.default.literal("2.0"),
642
686
  method: import_zod10.default.literal("slates/auth.token_refresh.handle"),
@@ -701,6 +745,8 @@ var slatesAuthResponsesByMethod = {
701
745
  "slates/auth.input.get_default": slatesMessageAuthDefaultInputGetResponse,
702
746
  "slates/auth.authorization_url.get": slatesMessageAuthAuthorizationUrlGetResponse,
703
747
  "slates/auth.authorization_callback.handle": slatesMessageAuthAuthorizationCallbackHandleResponse,
748
+ "slates/auth.admin_authorization_url.get": slatesMessageAuthAdminAuthorizationUrlGetResponse,
749
+ "slates/auth.admin_callback.handle": slatesMessageAuthAdminCallbackHandleResponse,
704
750
  "slates/auth.token_refresh.handle": slatesMessageAuthTokenRefreshHandleResponse,
705
751
  "slates/auth.profile.get": slatesMessageAuthProfileGetResponse,
706
752
  "slates/auth.output.get": slatesMessageAuthOutputGetResponse
@@ -712,6 +758,8 @@ var slatesAuthRequestsByMethod = {
712
758
  "slates/auth.input.get_default": slatesMessageAuthDefaultInputGetRequest,
713
759
  "slates/auth.authorization_url.get": slatesMessageAuthAuthorizationUrlGetRequest,
714
760
  "slates/auth.authorization_callback.handle": slatesMessageAuthAuthorizationCallbackHandleRequest,
761
+ "slates/auth.admin_authorization_url.get": slatesMessageAuthAdminAuthorizationUrlGetRequest,
762
+ "slates/auth.admin_callback.handle": slatesMessageAuthAdminCallbackHandleRequest,
715
763
  "slates/auth.token_refresh.handle": slatesMessageAuthTokenRefreshHandleRequest,
716
764
  "slates/auth.profile.get": slatesMessageAuthProfileGetRequest,
717
765
  "slates/auth.output.get": slatesMessageAuthOutputGetRequest
@@ -1662,6 +1710,10 @@ var mapUnknownErrorToSlateErrorResponse = (error, defaults = {}) => ({
1662
1710
  slatesMessageAdapterGetResponse,
1663
1711
  slatesMessageAdaptersListRequest,
1664
1712
  slatesMessageAdaptersListResponse,
1713
+ slatesMessageAuthAdminAuthorizationUrlGetRequest,
1714
+ slatesMessageAuthAdminAuthorizationUrlGetResponse,
1715
+ slatesMessageAuthAdminCallbackHandleRequest,
1716
+ slatesMessageAuthAdminCallbackHandleResponse,
1665
1717
  slatesMessageAuthAuthorizationCallbackHandleRequest,
1666
1718
  slatesMessageAuthAuthorizationCallbackHandleResponse,
1667
1719
  slatesMessageAuthAuthorizationUrlGetRequest,
package/dist/index.d.cts CHANGED
@@ -701,6 +701,9 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
701
701
  getProfile: z.ZodOptional<z.ZodObject<{
702
702
  enabled: z.ZodBoolean;
703
703
  }, z.core.$strip>>;
704
+ adminSetup: z.ZodOptional<z.ZodObject<{
705
+ enabled: z.ZodBoolean;
706
+ }, z.core.$strip>>;
704
707
  }, z.core.$strip>;
705
708
  docs: z.ZodArray<z.ZodObject<{
706
709
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -753,6 +756,9 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
753
756
  getProfile: z.ZodOptional<z.ZodObject<{
754
757
  enabled: z.ZodBoolean;
755
758
  }, z.core.$strip>>;
759
+ adminSetup: z.ZodOptional<z.ZodObject<{
760
+ enabled: z.ZodBoolean;
761
+ }, z.core.$strip>>;
756
762
  }, z.core.$strip>;
757
763
  docs: z.ZodArray<z.ZodObject<{
758
764
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -977,6 +983,119 @@ declare let slatesMessageAuthAuthorizationCallbackHandleResponse: z.ZodObject<{
977
983
  }, z.core.$strip>;
978
984
  }, z.core.$strip>;
979
985
  type SlatesMessageAuthAuthorizationCallbackHandleResponse = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleResponse>;
986
+ /**
987
+ * Get Admin Authorization Url
988
+ */
989
+ declare let slatesMessageAuthAdminAuthorizationUrlGetRequest: z.ZodObject<{
990
+ jsonrpc: z.ZodLiteral<"2.0">;
991
+ method: z.ZodLiteral<"slates/auth.admin_authorization_url.get">;
992
+ id: z.ZodString;
993
+ params: z.ZodObject<{
994
+ authenticationMethodId: z.ZodString;
995
+ redirectUri: z.ZodString;
996
+ state: z.ZodString;
997
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
998
+ clientId: z.ZodString;
999
+ clientSecret: z.ZodString;
1000
+ scopes: z.ZodArray<z.ZodString>;
1001
+ }, z.core.$strip>;
1002
+ }, z.core.$strip>;
1003
+ type SlatesMessageAuthAdminAuthorizationUrlGetRequest = z.infer<typeof slatesMessageAuthAdminAuthorizationUrlGetRequest>;
1004
+ declare let slatesMessageAuthAdminAuthorizationUrlGetResponse: z.ZodObject<{
1005
+ jsonrpc: z.ZodLiteral<"2.0">;
1006
+ id: z.ZodString;
1007
+ result: z.ZodObject<{
1008
+ authorizationUrl: z.ZodString;
1009
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1010
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1011
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
+ startedAt: z.ZodString;
1013
+ durationMs: z.ZodNumber;
1014
+ request: z.ZodObject<{
1015
+ method: z.ZodString;
1016
+ url: z.ZodString;
1017
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1018
+ body: z.ZodOptional<z.ZodObject<{
1019
+ contentType: z.ZodOptional<z.ZodString>;
1020
+ text: z.ZodString;
1021
+ truncated: z.ZodOptional<z.ZodBoolean>;
1022
+ }, z.core.$strip>>;
1023
+ }, z.core.$strip>;
1024
+ response: z.ZodOptional<z.ZodObject<{
1025
+ status: z.ZodNumber;
1026
+ statusText: z.ZodOptional<z.ZodString>;
1027
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1028
+ body: z.ZodOptional<z.ZodObject<{
1029
+ contentType: z.ZodOptional<z.ZodString>;
1030
+ text: z.ZodString;
1031
+ truncated: z.ZodOptional<z.ZodBoolean>;
1032
+ }, z.core.$strip>>;
1033
+ }, z.core.$strip>>;
1034
+ error: z.ZodOptional<z.ZodObject<{
1035
+ code: z.ZodOptional<z.ZodString>;
1036
+ message: z.ZodString;
1037
+ }, z.core.$strip>>;
1038
+ }, z.core.$strip>>>;
1039
+ }, z.core.$strip>;
1040
+ }, z.core.$strip>;
1041
+ type SlatesMessageAuthAdminAuthorizationUrlGetResponse = z.infer<typeof slatesMessageAuthAdminAuthorizationUrlGetResponse>;
1042
+ /**
1043
+ * Handle Admin Callback
1044
+ */
1045
+ declare let slatesMessageAuthAdminCallbackHandleRequest: z.ZodObject<{
1046
+ jsonrpc: z.ZodLiteral<"2.0">;
1047
+ method: z.ZodLiteral<"slates/auth.admin_callback.handle">;
1048
+ id: z.ZodString;
1049
+ params: z.ZodObject<{
1050
+ authenticationMethodId: z.ZodString;
1051
+ code: z.ZodOptional<z.ZodString>;
1052
+ state: z.ZodString;
1053
+ redirectUri: z.ZodString;
1054
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1055
+ clientId: z.ZodString;
1056
+ clientSecret: z.ZodString;
1057
+ scopes: z.ZodArray<z.ZodString>;
1058
+ callbackParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1059
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1060
+ }, z.core.$strip>;
1061
+ }, z.core.$strip>;
1062
+ type SlatesMessageAuthAdminCallbackHandleRequest = z.infer<typeof slatesMessageAuthAdminCallbackHandleRequest>;
1063
+ declare let slatesMessageAuthAdminCallbackHandleResponse: z.ZodObject<{
1064
+ jsonrpc: z.ZodLiteral<"2.0">;
1065
+ id: z.ZodString;
1066
+ result: z.ZodObject<{
1067
+ instructions: z.ZodOptional<z.ZodString>;
1068
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1069
+ startedAt: z.ZodString;
1070
+ durationMs: z.ZodNumber;
1071
+ request: z.ZodObject<{
1072
+ method: z.ZodString;
1073
+ url: z.ZodString;
1074
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1075
+ body: z.ZodOptional<z.ZodObject<{
1076
+ contentType: z.ZodOptional<z.ZodString>;
1077
+ text: z.ZodString;
1078
+ truncated: z.ZodOptional<z.ZodBoolean>;
1079
+ }, z.core.$strip>>;
1080
+ }, z.core.$strip>;
1081
+ response: z.ZodOptional<z.ZodObject<{
1082
+ status: z.ZodNumber;
1083
+ statusText: z.ZodOptional<z.ZodString>;
1084
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1085
+ body: z.ZodOptional<z.ZodObject<{
1086
+ contentType: z.ZodOptional<z.ZodString>;
1087
+ text: z.ZodString;
1088
+ truncated: z.ZodOptional<z.ZodBoolean>;
1089
+ }, z.core.$strip>>;
1090
+ }, z.core.$strip>>;
1091
+ error: z.ZodOptional<z.ZodObject<{
1092
+ code: z.ZodOptional<z.ZodString>;
1093
+ message: z.ZodString;
1094
+ }, z.core.$strip>>;
1095
+ }, z.core.$strip>>>;
1096
+ }, z.core.$strip>;
1097
+ }, z.core.$strip>;
1098
+ type SlatesMessageAuthAdminCallbackHandleResponse = z.infer<typeof slatesMessageAuthAdminCallbackHandleResponse>;
980
1099
  /**
981
1100
  * Handle Token Refresh
982
1101
  */
@@ -1133,8 +1252,8 @@ declare let slatesMessageAuthOutputGetResponse: z.ZodObject<{
1133
1252
  }, z.core.$strip>;
1134
1253
  }, z.core.$strip>;
1135
1254
  type SlatesMessageAuthOutputGetResponse = z.infer<typeof slatesMessageAuthOutputGetResponse>;
1136
- type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
1137
- type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
1255
+ type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthAdminAuthorizationUrlGetRequest | SlatesMessageAuthAdminCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
1256
+ type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthAdminAuthorizationUrlGetResponse | SlatesMessageAuthAdminCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
1138
1257
  type SlatesAuthNotifications = SlatesMessageSetAuthNotification;
1139
1258
  declare let slatesAuthResponsesByMethod: {
1140
1259
  'slates/auth.methods.list': z.ZodObject<{
@@ -1167,6 +1286,9 @@ declare let slatesAuthResponsesByMethod: {
1167
1286
  getProfile: z.ZodOptional<z.ZodObject<{
1168
1287
  enabled: z.ZodBoolean;
1169
1288
  }, z.core.$strip>>;
1289
+ adminSetup: z.ZodOptional<z.ZodObject<{
1290
+ enabled: z.ZodBoolean;
1291
+ }, z.core.$strip>>;
1170
1292
  }, z.core.$strip>;
1171
1293
  docs: z.ZodArray<z.ZodObject<{
1172
1294
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -1206,6 +1328,9 @@ declare let slatesAuthResponsesByMethod: {
1206
1328
  getProfile: z.ZodOptional<z.ZodObject<{
1207
1329
  enabled: z.ZodBoolean;
1208
1330
  }, z.core.$strip>>;
1331
+ adminSetup: z.ZodOptional<z.ZodObject<{
1332
+ enabled: z.ZodBoolean;
1333
+ }, z.core.$strip>>;
1209
1334
  }, z.core.$strip>;
1210
1335
  docs: z.ZodArray<z.ZodObject<{
1211
1336
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -1360,6 +1485,78 @@ declare let slatesAuthResponsesByMethod: {
1360
1485
  }, z.core.$strip>>>;
1361
1486
  }, z.core.$strip>;
1362
1487
  }, z.core.$strip>;
1488
+ 'slates/auth.admin_authorization_url.get': z.ZodObject<{
1489
+ jsonrpc: z.ZodLiteral<"2.0">;
1490
+ id: z.ZodString;
1491
+ result: z.ZodObject<{
1492
+ authorizationUrl: z.ZodString;
1493
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1494
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1495
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1496
+ startedAt: z.ZodString;
1497
+ durationMs: z.ZodNumber;
1498
+ request: z.ZodObject<{
1499
+ method: z.ZodString;
1500
+ url: z.ZodString;
1501
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1502
+ body: z.ZodOptional<z.ZodObject<{
1503
+ contentType: z.ZodOptional<z.ZodString>;
1504
+ text: z.ZodString;
1505
+ truncated: z.ZodOptional<z.ZodBoolean>;
1506
+ }, z.core.$strip>>;
1507
+ }, z.core.$strip>;
1508
+ response: z.ZodOptional<z.ZodObject<{
1509
+ status: z.ZodNumber;
1510
+ statusText: z.ZodOptional<z.ZodString>;
1511
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1512
+ body: z.ZodOptional<z.ZodObject<{
1513
+ contentType: z.ZodOptional<z.ZodString>;
1514
+ text: z.ZodString;
1515
+ truncated: z.ZodOptional<z.ZodBoolean>;
1516
+ }, z.core.$strip>>;
1517
+ }, z.core.$strip>>;
1518
+ error: z.ZodOptional<z.ZodObject<{
1519
+ code: z.ZodOptional<z.ZodString>;
1520
+ message: z.ZodString;
1521
+ }, z.core.$strip>>;
1522
+ }, z.core.$strip>>>;
1523
+ }, z.core.$strip>;
1524
+ }, z.core.$strip>;
1525
+ 'slates/auth.admin_callback.handle': z.ZodObject<{
1526
+ jsonrpc: z.ZodLiteral<"2.0">;
1527
+ id: z.ZodString;
1528
+ result: z.ZodObject<{
1529
+ instructions: z.ZodOptional<z.ZodString>;
1530
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1531
+ startedAt: z.ZodString;
1532
+ durationMs: z.ZodNumber;
1533
+ request: z.ZodObject<{
1534
+ method: z.ZodString;
1535
+ url: z.ZodString;
1536
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1537
+ body: z.ZodOptional<z.ZodObject<{
1538
+ contentType: z.ZodOptional<z.ZodString>;
1539
+ text: z.ZodString;
1540
+ truncated: z.ZodOptional<z.ZodBoolean>;
1541
+ }, z.core.$strip>>;
1542
+ }, z.core.$strip>;
1543
+ response: z.ZodOptional<z.ZodObject<{
1544
+ status: z.ZodNumber;
1545
+ statusText: z.ZodOptional<z.ZodString>;
1546
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1547
+ body: z.ZodOptional<z.ZodObject<{
1548
+ contentType: z.ZodOptional<z.ZodString>;
1549
+ text: z.ZodString;
1550
+ truncated: z.ZodOptional<z.ZodBoolean>;
1551
+ }, z.core.$strip>>;
1552
+ }, z.core.$strip>>;
1553
+ error: z.ZodOptional<z.ZodObject<{
1554
+ code: z.ZodOptional<z.ZodString>;
1555
+ message: z.ZodString;
1556
+ }, z.core.$strip>>;
1557
+ }, z.core.$strip>>>;
1558
+ }, z.core.$strip>;
1559
+ }, z.core.$strip>;
1363
1560
  'slates/auth.token_refresh.handle': z.ZodObject<{
1364
1561
  jsonrpc: z.ZodLiteral<"2.0">;
1365
1562
  id: z.ZodString;
@@ -1533,6 +1730,37 @@ declare let slatesAuthRequestsByMethod: {
1533
1730
  callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1534
1731
  }, z.core.$strip>;
1535
1732
  }, z.core.$strip>;
1733
+ 'slates/auth.admin_authorization_url.get': z.ZodObject<{
1734
+ jsonrpc: z.ZodLiteral<"2.0">;
1735
+ method: z.ZodLiteral<"slates/auth.admin_authorization_url.get">;
1736
+ id: z.ZodString;
1737
+ params: z.ZodObject<{
1738
+ authenticationMethodId: z.ZodString;
1739
+ redirectUri: z.ZodString;
1740
+ state: z.ZodString;
1741
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1742
+ clientId: z.ZodString;
1743
+ clientSecret: z.ZodString;
1744
+ scopes: z.ZodArray<z.ZodString>;
1745
+ }, z.core.$strip>;
1746
+ }, z.core.$strip>;
1747
+ 'slates/auth.admin_callback.handle': z.ZodObject<{
1748
+ jsonrpc: z.ZodLiteral<"2.0">;
1749
+ method: z.ZodLiteral<"slates/auth.admin_callback.handle">;
1750
+ id: z.ZodString;
1751
+ params: z.ZodObject<{
1752
+ authenticationMethodId: z.ZodString;
1753
+ code: z.ZodOptional<z.ZodString>;
1754
+ state: z.ZodString;
1755
+ redirectUri: z.ZodString;
1756
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1757
+ clientId: z.ZodString;
1758
+ clientSecret: z.ZodString;
1759
+ scopes: z.ZodArray<z.ZodString>;
1760
+ callbackParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1761
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1762
+ }, z.core.$strip>;
1763
+ }, z.core.$strip>;
1536
1764
  'slates/auth.token_refresh.handle': z.ZodObject<{
1537
1765
  jsonrpc: z.ZodLiteral<"2.0">;
1538
1766
  method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
@@ -4533,6 +4761,9 @@ declare let slatesResponsesByMethod: {
4533
4761
  getProfile: z$1.ZodOptional<z$1.ZodObject<{
4534
4762
  enabled: z$1.ZodBoolean;
4535
4763
  }, z$1.core.$strip>>;
4764
+ adminSetup: z$1.ZodOptional<z$1.ZodObject<{
4765
+ enabled: z$1.ZodBoolean;
4766
+ }, z$1.core.$strip>>;
4536
4767
  }, z$1.core.$strip>;
4537
4768
  docs: z$1.ZodArray<z$1.ZodObject<{
4538
4769
  type: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodLiteral<"docs.auth.oauth">, z$1.ZodLiteral<"docs.auth.oauth_scopes">, z$1.ZodLiteral<"docs.auth.token">, z$1.ZodLiteral<"docs.auth.service_account">, z$1.ZodLiteral<"docs.auth.custom">]>>;
@@ -4572,6 +4803,9 @@ declare let slatesResponsesByMethod: {
4572
4803
  getProfile: z$1.ZodOptional<z$1.ZodObject<{
4573
4804
  enabled: z$1.ZodBoolean;
4574
4805
  }, z$1.core.$strip>>;
4806
+ adminSetup: z$1.ZodOptional<z$1.ZodObject<{
4807
+ enabled: z$1.ZodBoolean;
4808
+ }, z$1.core.$strip>>;
4575
4809
  }, z$1.core.$strip>;
4576
4810
  docs: z$1.ZodArray<z$1.ZodObject<{
4577
4811
  type: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodLiteral<"docs.auth.oauth">, z$1.ZodLiteral<"docs.auth.oauth_scopes">, z$1.ZodLiteral<"docs.auth.token">, z$1.ZodLiteral<"docs.auth.service_account">, z$1.ZodLiteral<"docs.auth.custom">]>>;
@@ -4726,6 +4960,78 @@ declare let slatesResponsesByMethod: {
4726
4960
  }, z$1.core.$strip>>>;
4727
4961
  }, z$1.core.$strip>;
4728
4962
  }, z$1.core.$strip>;
4963
+ 'slates/auth.admin_authorization_url.get': z$1.ZodObject<{
4964
+ jsonrpc: z$1.ZodLiteral<"2.0">;
4965
+ id: z$1.ZodString;
4966
+ result: z$1.ZodObject<{
4967
+ authorizationUrl: z$1.ZodString;
4968
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
4969
+ callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
4970
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4971
+ startedAt: z$1.ZodString;
4972
+ durationMs: z$1.ZodNumber;
4973
+ request: z$1.ZodObject<{
4974
+ method: z$1.ZodString;
4975
+ url: z$1.ZodString;
4976
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4977
+ body: z$1.ZodOptional<z$1.ZodObject<{
4978
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4979
+ text: z$1.ZodString;
4980
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4981
+ }, z$1.core.$strip>>;
4982
+ }, z$1.core.$strip>;
4983
+ response: z$1.ZodOptional<z$1.ZodObject<{
4984
+ status: z$1.ZodNumber;
4985
+ statusText: z$1.ZodOptional<z$1.ZodString>;
4986
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4987
+ body: z$1.ZodOptional<z$1.ZodObject<{
4988
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4989
+ text: z$1.ZodString;
4990
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4991
+ }, z$1.core.$strip>>;
4992
+ }, z$1.core.$strip>>;
4993
+ error: z$1.ZodOptional<z$1.ZodObject<{
4994
+ code: z$1.ZodOptional<z$1.ZodString>;
4995
+ message: z$1.ZodString;
4996
+ }, z$1.core.$strip>>;
4997
+ }, z$1.core.$strip>>>;
4998
+ }, z$1.core.$strip>;
4999
+ }, z$1.core.$strip>;
5000
+ 'slates/auth.admin_callback.handle': z$1.ZodObject<{
5001
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5002
+ id: z$1.ZodString;
5003
+ result: z$1.ZodObject<{
5004
+ instructions: z$1.ZodOptional<z$1.ZodString>;
5005
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
5006
+ startedAt: z$1.ZodString;
5007
+ durationMs: z$1.ZodNumber;
5008
+ request: z$1.ZodObject<{
5009
+ method: z$1.ZodString;
5010
+ url: z$1.ZodString;
5011
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5012
+ body: z$1.ZodOptional<z$1.ZodObject<{
5013
+ contentType: z$1.ZodOptional<z$1.ZodString>;
5014
+ text: z$1.ZodString;
5015
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
5016
+ }, z$1.core.$strip>>;
5017
+ }, z$1.core.$strip>;
5018
+ response: z$1.ZodOptional<z$1.ZodObject<{
5019
+ status: z$1.ZodNumber;
5020
+ statusText: z$1.ZodOptional<z$1.ZodString>;
5021
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5022
+ body: z$1.ZodOptional<z$1.ZodObject<{
5023
+ contentType: z$1.ZodOptional<z$1.ZodString>;
5024
+ text: z$1.ZodString;
5025
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
5026
+ }, z$1.core.$strip>>;
5027
+ }, z$1.core.$strip>>;
5028
+ error: z$1.ZodOptional<z$1.ZodObject<{
5029
+ code: z$1.ZodOptional<z$1.ZodString>;
5030
+ message: z$1.ZodString;
5031
+ }, z$1.core.$strip>>;
5032
+ }, z$1.core.$strip>>>;
5033
+ }, z$1.core.$strip>;
5034
+ }, z$1.core.$strip>;
4729
5035
  'slates/auth.token_refresh.handle': z$1.ZodObject<{
4730
5036
  jsonrpc: z$1.ZodLiteral<"2.0">;
4731
5037
  id: z$1.ZodString;
@@ -5352,6 +5658,37 @@ declare let slatesRequestsByMethod: {
5352
5658
  callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
5353
5659
  }, z$1.core.$strip>;
5354
5660
  }, z$1.core.$strip>;
5661
+ 'slates/auth.admin_authorization_url.get': z$1.ZodObject<{
5662
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5663
+ method: z$1.ZodLiteral<"slates/auth.admin_authorization_url.get">;
5664
+ id: z$1.ZodString;
5665
+ params: z$1.ZodObject<{
5666
+ authenticationMethodId: z$1.ZodString;
5667
+ redirectUri: z$1.ZodString;
5668
+ state: z$1.ZodString;
5669
+ input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
5670
+ clientId: z$1.ZodString;
5671
+ clientSecret: z$1.ZodString;
5672
+ scopes: z$1.ZodArray<z$1.ZodString>;
5673
+ }, z$1.core.$strip>;
5674
+ }, z$1.core.$strip>;
5675
+ 'slates/auth.admin_callback.handle': z$1.ZodObject<{
5676
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5677
+ method: z$1.ZodLiteral<"slates/auth.admin_callback.handle">;
5678
+ id: z$1.ZodString;
5679
+ params: z$1.ZodObject<{
5680
+ authenticationMethodId: z$1.ZodString;
5681
+ code: z$1.ZodOptional<z$1.ZodString>;
5682
+ state: z$1.ZodString;
5683
+ redirectUri: z$1.ZodString;
5684
+ input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
5685
+ clientId: z$1.ZodString;
5686
+ clientSecret: z$1.ZodString;
5687
+ scopes: z$1.ZodArray<z$1.ZodString>;
5688
+ callbackParams: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5689
+ callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
5690
+ }, z$1.core.$strip>;
5691
+ }, z$1.core.$strip>;
5355
5692
  'slates/auth.token_refresh.handle': z$1.ZodObject<{
5356
5693
  jsonrpc: z$1.ZodLiteral<"2.0">;
5357
5694
  method: z$1.ZodLiteral<"slates/auth.token_refresh.handle">;
@@ -5765,6 +6102,9 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
5765
6102
  getProfile: z.ZodOptional<z.ZodObject<{
5766
6103
  enabled: z.ZodBoolean;
5767
6104
  }, z.core.$strip>>;
6105
+ adminSetup: z.ZodOptional<z.ZodObject<{
6106
+ enabled: z.ZodBoolean;
6107
+ }, z.core.$strip>>;
5768
6108
  }, z.core.$strip>;
5769
6109
  docs: z.ZodArray<z.ZodObject<{
5770
6110
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -5852,4 +6192,4 @@ type SlatesWebhookTarget = z.infer<typeof slatesWebhookTarget>;
5852
6192
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
5853
6193
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
5854
6194
 
5855
- export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, 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 SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, 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 SlatesMessageToolCategoriesListRequest, type SlatesMessageToolCategoriesListResponse, type SlatesMessageTriggerGroupGatewayConnectRequest, type SlatesMessageTriggerGroupGatewayConnectResponse, type SlatesMessageTriggerGroupGatewayReceiveRequest, type SlatesMessageTriggerGroupGatewayReceiveResponse, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesToolCategory, type SlatesToolCategoryRequests, type SlatesToolCategoryResponses, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, 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, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, 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, slatesMessageToolCategoriesListRequest, slatesMessageToolCategoriesListResponse, slatesMessageTriggerGroupGatewayConnectRequest, slatesMessageTriggerGroupGatewayConnectResponse, slatesMessageTriggerGroupGatewayReceiveRequest, slatesMessageTriggerGroupGatewayReceiveResponse, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesToolCategory, slatesToolCategoryRequestsByMethod, slatesToolCategoryResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
6195
+ export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, 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 SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, 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 SlatesMessageAuthAdminAuthorizationUrlGetRequest, type SlatesMessageAuthAdminAuthorizationUrlGetResponse, type SlatesMessageAuthAdminCallbackHandleRequest, type SlatesMessageAuthAdminCallbackHandleResponse, 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 SlatesMessageToolCategoriesListRequest, type SlatesMessageToolCategoriesListResponse, type SlatesMessageTriggerGroupGatewayConnectRequest, type SlatesMessageTriggerGroupGatewayConnectResponse, type SlatesMessageTriggerGroupGatewayReceiveRequest, type SlatesMessageTriggerGroupGatewayReceiveResponse, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesToolCategory, type SlatesToolCategoryRequests, type SlatesToolCategoryResponses, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, 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, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAdminAuthorizationUrlGetRequest, slatesMessageAuthAdminAuthorizationUrlGetResponse, slatesMessageAuthAdminCallbackHandleRequest, slatesMessageAuthAdminCallbackHandleResponse, 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, slatesMessageToolCategoriesListRequest, slatesMessageToolCategoriesListResponse, slatesMessageTriggerGroupGatewayConnectRequest, slatesMessageTriggerGroupGatewayConnectResponse, slatesMessageTriggerGroupGatewayReceiveRequest, slatesMessageTriggerGroupGatewayReceiveResponse, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesToolCategory, slatesToolCategoryRequestsByMethod, slatesToolCategoryResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
package/dist/index.d.ts CHANGED
@@ -701,6 +701,9 @@ declare let slatesMessageAuthMethodsListResponse: z.ZodObject<{
701
701
  getProfile: z.ZodOptional<z.ZodObject<{
702
702
  enabled: z.ZodBoolean;
703
703
  }, z.core.$strip>>;
704
+ adminSetup: z.ZodOptional<z.ZodObject<{
705
+ enabled: z.ZodBoolean;
706
+ }, z.core.$strip>>;
704
707
  }, z.core.$strip>;
705
708
  docs: z.ZodArray<z.ZodObject<{
706
709
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -753,6 +756,9 @@ declare let slatesMessageAuthMethodGetResponse: z.ZodObject<{
753
756
  getProfile: z.ZodOptional<z.ZodObject<{
754
757
  enabled: z.ZodBoolean;
755
758
  }, z.core.$strip>>;
759
+ adminSetup: z.ZodOptional<z.ZodObject<{
760
+ enabled: z.ZodBoolean;
761
+ }, z.core.$strip>>;
756
762
  }, z.core.$strip>;
757
763
  docs: z.ZodArray<z.ZodObject<{
758
764
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -977,6 +983,119 @@ declare let slatesMessageAuthAuthorizationCallbackHandleResponse: z.ZodObject<{
977
983
  }, z.core.$strip>;
978
984
  }, z.core.$strip>;
979
985
  type SlatesMessageAuthAuthorizationCallbackHandleResponse = z.infer<typeof slatesMessageAuthAuthorizationCallbackHandleResponse>;
986
+ /**
987
+ * Get Admin Authorization Url
988
+ */
989
+ declare let slatesMessageAuthAdminAuthorizationUrlGetRequest: z.ZodObject<{
990
+ jsonrpc: z.ZodLiteral<"2.0">;
991
+ method: z.ZodLiteral<"slates/auth.admin_authorization_url.get">;
992
+ id: z.ZodString;
993
+ params: z.ZodObject<{
994
+ authenticationMethodId: z.ZodString;
995
+ redirectUri: z.ZodString;
996
+ state: z.ZodString;
997
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
998
+ clientId: z.ZodString;
999
+ clientSecret: z.ZodString;
1000
+ scopes: z.ZodArray<z.ZodString>;
1001
+ }, z.core.$strip>;
1002
+ }, z.core.$strip>;
1003
+ type SlatesMessageAuthAdminAuthorizationUrlGetRequest = z.infer<typeof slatesMessageAuthAdminAuthorizationUrlGetRequest>;
1004
+ declare let slatesMessageAuthAdminAuthorizationUrlGetResponse: z.ZodObject<{
1005
+ jsonrpc: z.ZodLiteral<"2.0">;
1006
+ id: z.ZodString;
1007
+ result: z.ZodObject<{
1008
+ authorizationUrl: z.ZodString;
1009
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1010
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1011
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
+ startedAt: z.ZodString;
1013
+ durationMs: z.ZodNumber;
1014
+ request: z.ZodObject<{
1015
+ method: z.ZodString;
1016
+ url: z.ZodString;
1017
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1018
+ body: z.ZodOptional<z.ZodObject<{
1019
+ contentType: z.ZodOptional<z.ZodString>;
1020
+ text: z.ZodString;
1021
+ truncated: z.ZodOptional<z.ZodBoolean>;
1022
+ }, z.core.$strip>>;
1023
+ }, z.core.$strip>;
1024
+ response: z.ZodOptional<z.ZodObject<{
1025
+ status: z.ZodNumber;
1026
+ statusText: z.ZodOptional<z.ZodString>;
1027
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1028
+ body: z.ZodOptional<z.ZodObject<{
1029
+ contentType: z.ZodOptional<z.ZodString>;
1030
+ text: z.ZodString;
1031
+ truncated: z.ZodOptional<z.ZodBoolean>;
1032
+ }, z.core.$strip>>;
1033
+ }, z.core.$strip>>;
1034
+ error: z.ZodOptional<z.ZodObject<{
1035
+ code: z.ZodOptional<z.ZodString>;
1036
+ message: z.ZodString;
1037
+ }, z.core.$strip>>;
1038
+ }, z.core.$strip>>>;
1039
+ }, z.core.$strip>;
1040
+ }, z.core.$strip>;
1041
+ type SlatesMessageAuthAdminAuthorizationUrlGetResponse = z.infer<typeof slatesMessageAuthAdminAuthorizationUrlGetResponse>;
1042
+ /**
1043
+ * Handle Admin Callback
1044
+ */
1045
+ declare let slatesMessageAuthAdminCallbackHandleRequest: z.ZodObject<{
1046
+ jsonrpc: z.ZodLiteral<"2.0">;
1047
+ method: z.ZodLiteral<"slates/auth.admin_callback.handle">;
1048
+ id: z.ZodString;
1049
+ params: z.ZodObject<{
1050
+ authenticationMethodId: z.ZodString;
1051
+ code: z.ZodOptional<z.ZodString>;
1052
+ state: z.ZodString;
1053
+ redirectUri: z.ZodString;
1054
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1055
+ clientId: z.ZodString;
1056
+ clientSecret: z.ZodString;
1057
+ scopes: z.ZodArray<z.ZodString>;
1058
+ callbackParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1059
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1060
+ }, z.core.$strip>;
1061
+ }, z.core.$strip>;
1062
+ type SlatesMessageAuthAdminCallbackHandleRequest = z.infer<typeof slatesMessageAuthAdminCallbackHandleRequest>;
1063
+ declare let slatesMessageAuthAdminCallbackHandleResponse: z.ZodObject<{
1064
+ jsonrpc: z.ZodLiteral<"2.0">;
1065
+ id: z.ZodString;
1066
+ result: z.ZodObject<{
1067
+ instructions: z.ZodOptional<z.ZodString>;
1068
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1069
+ startedAt: z.ZodString;
1070
+ durationMs: z.ZodNumber;
1071
+ request: z.ZodObject<{
1072
+ method: z.ZodString;
1073
+ url: z.ZodString;
1074
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1075
+ body: z.ZodOptional<z.ZodObject<{
1076
+ contentType: z.ZodOptional<z.ZodString>;
1077
+ text: z.ZodString;
1078
+ truncated: z.ZodOptional<z.ZodBoolean>;
1079
+ }, z.core.$strip>>;
1080
+ }, z.core.$strip>;
1081
+ response: z.ZodOptional<z.ZodObject<{
1082
+ status: z.ZodNumber;
1083
+ statusText: z.ZodOptional<z.ZodString>;
1084
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1085
+ body: z.ZodOptional<z.ZodObject<{
1086
+ contentType: z.ZodOptional<z.ZodString>;
1087
+ text: z.ZodString;
1088
+ truncated: z.ZodOptional<z.ZodBoolean>;
1089
+ }, z.core.$strip>>;
1090
+ }, z.core.$strip>>;
1091
+ error: z.ZodOptional<z.ZodObject<{
1092
+ code: z.ZodOptional<z.ZodString>;
1093
+ message: z.ZodString;
1094
+ }, z.core.$strip>>;
1095
+ }, z.core.$strip>>>;
1096
+ }, z.core.$strip>;
1097
+ }, z.core.$strip>;
1098
+ type SlatesMessageAuthAdminCallbackHandleResponse = z.infer<typeof slatesMessageAuthAdminCallbackHandleResponse>;
980
1099
  /**
981
1100
  * Handle Token Refresh
982
1101
  */
@@ -1133,8 +1252,8 @@ declare let slatesMessageAuthOutputGetResponse: z.ZodObject<{
1133
1252
  }, z.core.$strip>;
1134
1253
  }, z.core.$strip>;
1135
1254
  type SlatesMessageAuthOutputGetResponse = z.infer<typeof slatesMessageAuthOutputGetResponse>;
1136
- type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
1137
- type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
1255
+ type SlatesAuthRequests = SlatesMessageAuthMethodsListRequest | SlatesMessageAuthMethodGetRequest | SlatesMessageAuthInputChangedRequest | SlatesMessageAuthDefaultInputGetRequest | SlatesMessageAuthAuthorizationUrlGetRequest | SlatesMessageAuthAuthorizationCallbackHandleRequest | SlatesMessageAuthAdminAuthorizationUrlGetRequest | SlatesMessageAuthAdminCallbackHandleRequest | SlatesMessageAuthTokenRefreshHandleRequest | SlatesMessageAuthProfileGetRequest | SlatesMessageAuthOutputGetRequest;
1256
+ type SlatesAuthResponses = SlatesMessageAuthMethodsListResponse | SlatesMessageAuthMethodGetResponse | SlatesMessageAuthInputChangedResponse | SlatesMessageAuthDefaultInputGetResponse | SlatesMessageAuthAuthorizationUrlGetResponse | SlatesMessageAuthAuthorizationCallbackHandleResponse | SlatesMessageAuthAdminAuthorizationUrlGetResponse | SlatesMessageAuthAdminCallbackHandleResponse | SlatesMessageAuthTokenRefreshHandleResponse | SlatesMessageAuthProfileGetResponse | SlatesMessageAuthOutputGetResponse;
1138
1257
  type SlatesAuthNotifications = SlatesMessageSetAuthNotification;
1139
1258
  declare let slatesAuthResponsesByMethod: {
1140
1259
  'slates/auth.methods.list': z.ZodObject<{
@@ -1167,6 +1286,9 @@ declare let slatesAuthResponsesByMethod: {
1167
1286
  getProfile: z.ZodOptional<z.ZodObject<{
1168
1287
  enabled: z.ZodBoolean;
1169
1288
  }, z.core.$strip>>;
1289
+ adminSetup: z.ZodOptional<z.ZodObject<{
1290
+ enabled: z.ZodBoolean;
1291
+ }, z.core.$strip>>;
1170
1292
  }, z.core.$strip>;
1171
1293
  docs: z.ZodArray<z.ZodObject<{
1172
1294
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -1206,6 +1328,9 @@ declare let slatesAuthResponsesByMethod: {
1206
1328
  getProfile: z.ZodOptional<z.ZodObject<{
1207
1329
  enabled: z.ZodBoolean;
1208
1330
  }, z.core.$strip>>;
1331
+ adminSetup: z.ZodOptional<z.ZodObject<{
1332
+ enabled: z.ZodBoolean;
1333
+ }, z.core.$strip>>;
1209
1334
  }, z.core.$strip>;
1210
1335
  docs: z.ZodArray<z.ZodObject<{
1211
1336
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -1360,6 +1485,78 @@ declare let slatesAuthResponsesByMethod: {
1360
1485
  }, z.core.$strip>>>;
1361
1486
  }, z.core.$strip>;
1362
1487
  }, z.core.$strip>;
1488
+ 'slates/auth.admin_authorization_url.get': z.ZodObject<{
1489
+ jsonrpc: z.ZodLiteral<"2.0">;
1490
+ id: z.ZodString;
1491
+ result: z.ZodObject<{
1492
+ authorizationUrl: z.ZodString;
1493
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1494
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1495
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1496
+ startedAt: z.ZodString;
1497
+ durationMs: z.ZodNumber;
1498
+ request: z.ZodObject<{
1499
+ method: z.ZodString;
1500
+ url: z.ZodString;
1501
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1502
+ body: z.ZodOptional<z.ZodObject<{
1503
+ contentType: z.ZodOptional<z.ZodString>;
1504
+ text: z.ZodString;
1505
+ truncated: z.ZodOptional<z.ZodBoolean>;
1506
+ }, z.core.$strip>>;
1507
+ }, z.core.$strip>;
1508
+ response: z.ZodOptional<z.ZodObject<{
1509
+ status: z.ZodNumber;
1510
+ statusText: z.ZodOptional<z.ZodString>;
1511
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1512
+ body: z.ZodOptional<z.ZodObject<{
1513
+ contentType: z.ZodOptional<z.ZodString>;
1514
+ text: z.ZodString;
1515
+ truncated: z.ZodOptional<z.ZodBoolean>;
1516
+ }, z.core.$strip>>;
1517
+ }, z.core.$strip>>;
1518
+ error: z.ZodOptional<z.ZodObject<{
1519
+ code: z.ZodOptional<z.ZodString>;
1520
+ message: z.ZodString;
1521
+ }, z.core.$strip>>;
1522
+ }, z.core.$strip>>>;
1523
+ }, z.core.$strip>;
1524
+ }, z.core.$strip>;
1525
+ 'slates/auth.admin_callback.handle': z.ZodObject<{
1526
+ jsonrpc: z.ZodLiteral<"2.0">;
1527
+ id: z.ZodString;
1528
+ result: z.ZodObject<{
1529
+ instructions: z.ZodOptional<z.ZodString>;
1530
+ requestTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
1531
+ startedAt: z.ZodString;
1532
+ durationMs: z.ZodNumber;
1533
+ request: z.ZodObject<{
1534
+ method: z.ZodString;
1535
+ url: z.ZodString;
1536
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1537
+ body: z.ZodOptional<z.ZodObject<{
1538
+ contentType: z.ZodOptional<z.ZodString>;
1539
+ text: z.ZodString;
1540
+ truncated: z.ZodOptional<z.ZodBoolean>;
1541
+ }, z.core.$strip>>;
1542
+ }, z.core.$strip>;
1543
+ response: z.ZodOptional<z.ZodObject<{
1544
+ status: z.ZodNumber;
1545
+ statusText: z.ZodOptional<z.ZodString>;
1546
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1547
+ body: z.ZodOptional<z.ZodObject<{
1548
+ contentType: z.ZodOptional<z.ZodString>;
1549
+ text: z.ZodString;
1550
+ truncated: z.ZodOptional<z.ZodBoolean>;
1551
+ }, z.core.$strip>>;
1552
+ }, z.core.$strip>>;
1553
+ error: z.ZodOptional<z.ZodObject<{
1554
+ code: z.ZodOptional<z.ZodString>;
1555
+ message: z.ZodString;
1556
+ }, z.core.$strip>>;
1557
+ }, z.core.$strip>>>;
1558
+ }, z.core.$strip>;
1559
+ }, z.core.$strip>;
1363
1560
  'slates/auth.token_refresh.handle': z.ZodObject<{
1364
1561
  jsonrpc: z.ZodLiteral<"2.0">;
1365
1562
  id: z.ZodString;
@@ -1533,6 +1730,37 @@ declare let slatesAuthRequestsByMethod: {
1533
1730
  callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1534
1731
  }, z.core.$strip>;
1535
1732
  }, z.core.$strip>;
1733
+ 'slates/auth.admin_authorization_url.get': z.ZodObject<{
1734
+ jsonrpc: z.ZodLiteral<"2.0">;
1735
+ method: z.ZodLiteral<"slates/auth.admin_authorization_url.get">;
1736
+ id: z.ZodString;
1737
+ params: z.ZodObject<{
1738
+ authenticationMethodId: z.ZodString;
1739
+ redirectUri: z.ZodString;
1740
+ state: z.ZodString;
1741
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1742
+ clientId: z.ZodString;
1743
+ clientSecret: z.ZodString;
1744
+ scopes: z.ZodArray<z.ZodString>;
1745
+ }, z.core.$strip>;
1746
+ }, z.core.$strip>;
1747
+ 'slates/auth.admin_callback.handle': z.ZodObject<{
1748
+ jsonrpc: z.ZodLiteral<"2.0">;
1749
+ method: z.ZodLiteral<"slates/auth.admin_callback.handle">;
1750
+ id: z.ZodString;
1751
+ params: z.ZodObject<{
1752
+ authenticationMethodId: z.ZodString;
1753
+ code: z.ZodOptional<z.ZodString>;
1754
+ state: z.ZodString;
1755
+ redirectUri: z.ZodString;
1756
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
1757
+ clientId: z.ZodString;
1758
+ clientSecret: z.ZodString;
1759
+ scopes: z.ZodArray<z.ZodString>;
1760
+ callbackParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1761
+ callbackState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1762
+ }, z.core.$strip>;
1763
+ }, z.core.$strip>;
1536
1764
  'slates/auth.token_refresh.handle': z.ZodObject<{
1537
1765
  jsonrpc: z.ZodLiteral<"2.0">;
1538
1766
  method: z.ZodLiteral<"slates/auth.token_refresh.handle">;
@@ -4533,6 +4761,9 @@ declare let slatesResponsesByMethod: {
4533
4761
  getProfile: z$1.ZodOptional<z$1.ZodObject<{
4534
4762
  enabled: z$1.ZodBoolean;
4535
4763
  }, z$1.core.$strip>>;
4764
+ adminSetup: z$1.ZodOptional<z$1.ZodObject<{
4765
+ enabled: z$1.ZodBoolean;
4766
+ }, z$1.core.$strip>>;
4536
4767
  }, z$1.core.$strip>;
4537
4768
  docs: z$1.ZodArray<z$1.ZodObject<{
4538
4769
  type: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodLiteral<"docs.auth.oauth">, z$1.ZodLiteral<"docs.auth.oauth_scopes">, z$1.ZodLiteral<"docs.auth.token">, z$1.ZodLiteral<"docs.auth.service_account">, z$1.ZodLiteral<"docs.auth.custom">]>>;
@@ -4572,6 +4803,9 @@ declare let slatesResponsesByMethod: {
4572
4803
  getProfile: z$1.ZodOptional<z$1.ZodObject<{
4573
4804
  enabled: z$1.ZodBoolean;
4574
4805
  }, z$1.core.$strip>>;
4806
+ adminSetup: z$1.ZodOptional<z$1.ZodObject<{
4807
+ enabled: z$1.ZodBoolean;
4808
+ }, z$1.core.$strip>>;
4575
4809
  }, z$1.core.$strip>;
4576
4810
  docs: z$1.ZodArray<z$1.ZodObject<{
4577
4811
  type: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodLiteral<"docs.auth.oauth">, z$1.ZodLiteral<"docs.auth.oauth_scopes">, z$1.ZodLiteral<"docs.auth.token">, z$1.ZodLiteral<"docs.auth.service_account">, z$1.ZodLiteral<"docs.auth.custom">]>>;
@@ -4726,6 +4960,78 @@ declare let slatesResponsesByMethod: {
4726
4960
  }, z$1.core.$strip>>>;
4727
4961
  }, z$1.core.$strip>;
4728
4962
  }, z$1.core.$strip>;
4963
+ 'slates/auth.admin_authorization_url.get': z$1.ZodObject<{
4964
+ jsonrpc: z$1.ZodLiteral<"2.0">;
4965
+ id: z$1.ZodString;
4966
+ result: z$1.ZodObject<{
4967
+ authorizationUrl: z$1.ZodString;
4968
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
4969
+ callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
4970
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4971
+ startedAt: z$1.ZodString;
4972
+ durationMs: z$1.ZodNumber;
4973
+ request: z$1.ZodObject<{
4974
+ method: z$1.ZodString;
4975
+ url: z$1.ZodString;
4976
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4977
+ body: z$1.ZodOptional<z$1.ZodObject<{
4978
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4979
+ text: z$1.ZodString;
4980
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4981
+ }, z$1.core.$strip>>;
4982
+ }, z$1.core.$strip>;
4983
+ response: z$1.ZodOptional<z$1.ZodObject<{
4984
+ status: z$1.ZodNumber;
4985
+ statusText: z$1.ZodOptional<z$1.ZodString>;
4986
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
4987
+ body: z$1.ZodOptional<z$1.ZodObject<{
4988
+ contentType: z$1.ZodOptional<z$1.ZodString>;
4989
+ text: z$1.ZodString;
4990
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
4991
+ }, z$1.core.$strip>>;
4992
+ }, z$1.core.$strip>>;
4993
+ error: z$1.ZodOptional<z$1.ZodObject<{
4994
+ code: z$1.ZodOptional<z$1.ZodString>;
4995
+ message: z$1.ZodString;
4996
+ }, z$1.core.$strip>>;
4997
+ }, z$1.core.$strip>>>;
4998
+ }, z$1.core.$strip>;
4999
+ }, z$1.core.$strip>;
5000
+ 'slates/auth.admin_callback.handle': z$1.ZodObject<{
5001
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5002
+ id: z$1.ZodString;
5003
+ result: z$1.ZodObject<{
5004
+ instructions: z$1.ZodOptional<z$1.ZodString>;
5005
+ requestTraces: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
5006
+ startedAt: z$1.ZodString;
5007
+ durationMs: z$1.ZodNumber;
5008
+ request: z$1.ZodObject<{
5009
+ method: z$1.ZodString;
5010
+ url: z$1.ZodString;
5011
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5012
+ body: z$1.ZodOptional<z$1.ZodObject<{
5013
+ contentType: z$1.ZodOptional<z$1.ZodString>;
5014
+ text: z$1.ZodString;
5015
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
5016
+ }, z$1.core.$strip>>;
5017
+ }, z$1.core.$strip>;
5018
+ response: z$1.ZodOptional<z$1.ZodObject<{
5019
+ status: z$1.ZodNumber;
5020
+ statusText: z$1.ZodOptional<z$1.ZodString>;
5021
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5022
+ body: z$1.ZodOptional<z$1.ZodObject<{
5023
+ contentType: z$1.ZodOptional<z$1.ZodString>;
5024
+ text: z$1.ZodString;
5025
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
5026
+ }, z$1.core.$strip>>;
5027
+ }, z$1.core.$strip>>;
5028
+ error: z$1.ZodOptional<z$1.ZodObject<{
5029
+ code: z$1.ZodOptional<z$1.ZodString>;
5030
+ message: z$1.ZodString;
5031
+ }, z$1.core.$strip>>;
5032
+ }, z$1.core.$strip>>>;
5033
+ }, z$1.core.$strip>;
5034
+ }, z$1.core.$strip>;
4729
5035
  'slates/auth.token_refresh.handle': z$1.ZodObject<{
4730
5036
  jsonrpc: z$1.ZodLiteral<"2.0">;
4731
5037
  id: z$1.ZodString;
@@ -5352,6 +5658,37 @@ declare let slatesRequestsByMethod: {
5352
5658
  callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
5353
5659
  }, z$1.core.$strip>;
5354
5660
  }, z$1.core.$strip>;
5661
+ 'slates/auth.admin_authorization_url.get': z$1.ZodObject<{
5662
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5663
+ method: z$1.ZodLiteral<"slates/auth.admin_authorization_url.get">;
5664
+ id: z$1.ZodString;
5665
+ params: z$1.ZodObject<{
5666
+ authenticationMethodId: z$1.ZodString;
5667
+ redirectUri: z$1.ZodString;
5668
+ state: z$1.ZodString;
5669
+ input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
5670
+ clientId: z$1.ZodString;
5671
+ clientSecret: z$1.ZodString;
5672
+ scopes: z$1.ZodArray<z$1.ZodString>;
5673
+ }, z$1.core.$strip>;
5674
+ }, z$1.core.$strip>;
5675
+ 'slates/auth.admin_callback.handle': z$1.ZodObject<{
5676
+ jsonrpc: z$1.ZodLiteral<"2.0">;
5677
+ method: z$1.ZodLiteral<"slates/auth.admin_callback.handle">;
5678
+ id: z$1.ZodString;
5679
+ params: z$1.ZodObject<{
5680
+ authenticationMethodId: z$1.ZodString;
5681
+ code: z$1.ZodOptional<z$1.ZodString>;
5682
+ state: z$1.ZodString;
5683
+ redirectUri: z$1.ZodString;
5684
+ input: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
5685
+ clientId: z$1.ZodString;
5686
+ clientSecret: z$1.ZodString;
5687
+ scopes: z$1.ZodArray<z$1.ZodString>;
5688
+ callbackParams: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5689
+ callbackState: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
5690
+ }, z$1.core.$strip>;
5691
+ }, z$1.core.$strip>;
5355
5692
  'slates/auth.token_refresh.handle': z$1.ZodObject<{
5356
5693
  jsonrpc: z$1.ZodLiteral<"2.0">;
5357
5694
  method: z$1.ZodLiteral<"slates/auth.token_refresh.handle">;
@@ -5765,6 +6102,9 @@ declare let slatesAuthenticationMethod: z.ZodObject<{
5765
6102
  getProfile: z.ZodOptional<z.ZodObject<{
5766
6103
  enabled: z.ZodBoolean;
5767
6104
  }, z.core.$strip>>;
6105
+ adminSetup: z.ZodOptional<z.ZodObject<{
6106
+ enabled: z.ZodBoolean;
6107
+ }, z.core.$strip>>;
5768
6108
  }, z.core.$strip>;
5769
6109
  docs: z.ZodArray<z.ZodObject<{
5770
6110
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"docs.auth.oauth">, z.ZodLiteral<"docs.auth.oauth_scopes">, z.ZodLiteral<"docs.auth.token">, z.ZodLiteral<"docs.auth.service_account">, z.ZodLiteral<"docs.auth.custom">]>>;
@@ -5852,4 +6192,4 @@ type SlatesWebhookTarget = z.infer<typeof slatesWebhookTarget>;
5852
6192
  declare const SLATES_PROTOCOL_VERSION: "slates@2026-01-01";
5853
6193
  type SlatesProtocolVersion = typeof SLATES_PROTOCOL_VERSION;
5854
6194
 
5855
- export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, 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 SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, 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 SlatesMessageToolCategoriesListRequest, type SlatesMessageToolCategoriesListResponse, type SlatesMessageTriggerGroupGatewayConnectRequest, type SlatesMessageTriggerGroupGatewayConnectResponse, type SlatesMessageTriggerGroupGatewayReceiveRequest, type SlatesMessageTriggerGroupGatewayReceiveResponse, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesToolCategory, type SlatesToolCategoryRequests, type SlatesToolCategoryResponses, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, 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, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, 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, slatesMessageToolCategoriesListRequest, slatesMessageToolCategoriesListResponse, slatesMessageTriggerGroupGatewayConnectRequest, slatesMessageTriggerGroupGatewayConnectResponse, slatesMessageTriggerGroupGatewayReceiveRequest, slatesMessageTriggerGroupGatewayReceiveResponse, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesToolCategory, slatesToolCategoryRequestsByMethod, slatesToolCategoryResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
6195
+ export { SLATES_PROTOCOL_VERSION, SLATES_WEBHOOK_ERROR_CODES, SLATES_WEBHOOK_ERROR_DEFAULTS, 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 SlatesLegacyTriggerRequests, type SlatesLegacyTriggerResponses, 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 SlatesMessageAuthAdminAuthorizationUrlGetRequest, type SlatesMessageAuthAdminAuthorizationUrlGetResponse, type SlatesMessageAuthAdminCallbackHandleRequest, type SlatesMessageAuthAdminCallbackHandleResponse, 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 SlatesMessageToolCategoriesListRequest, type SlatesMessageToolCategoriesListResponse, type SlatesMessageTriggerGroupGatewayConnectRequest, type SlatesMessageTriggerGroupGatewayConnectResponse, type SlatesMessageTriggerGroupGatewayReceiveRequest, type SlatesMessageTriggerGroupGatewayReceiveResponse, type SlatesMessageTriggerGroupGetRequest, type SlatesMessageTriggerGroupGetResponse, type SlatesMessageTriggerGroupPollingPollRequest, type SlatesMessageTriggerGroupPollingPollResponse, type SlatesMessageTriggerGroupRoutingMatchersGetRequest, type SlatesMessageTriggerGroupRoutingMatchersGetResponse, type SlatesMessageTriggerGroupWebhookManualFinishRequest, type SlatesMessageTriggerGroupWebhookManualFinishResponse, type SlatesMessageTriggerGroupWebhookManualSetupRequest, type SlatesMessageTriggerGroupWebhookManualSetupResponse, type SlatesMessageTriggerGroupWebhookProcessRequest, type SlatesMessageTriggerGroupWebhookProcessResponse, type SlatesMessageTriggerGroupWebhookRegisterRequest, type SlatesMessageTriggerGroupWebhookRegisterResponse, type SlatesMessageTriggerGroupWebhookTargetsListRequest, type SlatesMessageTriggerGroupWebhookTargetsListResponse, type SlatesMessageTriggerGroupWebhookUnregisterRequest, type SlatesMessageTriggerGroupWebhookUnregisterResponse, type SlatesMessageTriggerGroupsListRequest, type SlatesMessageTriggerGroupsListResponse, type SlatesNotifications, type SlatesParticipant, type SlatesProtocolVersion, SlatesProviderProtoHandlerManager, type SlatesRequests, type SlatesResponses, type SlatesResponsesByMethod, type SlatesToolCategory, type SlatesToolCategoryRequests, type SlatesToolCategoryResponses, type SlatesTriggerGroup, type SlatesTriggerGroupInvocation, type SlatesTriggerGroupRequests, type SlatesTriggerGroupResponses, type SlatesTriggerGroupWebhookSkipped, type SlatesTriggerRoutingMatcher, type SlatesWebhookErrorCode, type SlatesWebhookHttpResponse, type SlatesWebhookTarget, type SlatesWebhookTargetOwnership, 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, slatesLegacyTriggerRequestsByMethod, slatesLegacyTriggerResponsesByMethod, slatesMessageActionGetRequest, slatesMessageActionGetResponse, slatesMessageActionInvokeRequest, slatesMessageActionInvokeResponse, slatesMessageActionTriggerEventMapRequest, slatesMessageActionTriggerEventMapResponse, slatesMessageActionTriggerEventsPollRequest, slatesMessageActionTriggerEventsPollResponse, slatesMessageActionTriggerWebhookHandleRequest, slatesMessageActionTriggerWebhookHandleResponse, slatesMessageActionTriggerWebhookRegisterRequest, slatesMessageActionTriggerWebhookRegisterResponse, slatesMessageActionTriggerWebhookUnregisterRequest, slatesMessageActionTriggerWebhookUnregisterResponse, slatesMessageActionsListRequest, slatesMessageActionsListResponse, slatesMessageAdapterGetRequest, slatesMessageAdapterGetResponse, slatesMessageAdaptersListRequest, slatesMessageAdaptersListResponse, slatesMessageAuthAdminAuthorizationUrlGetRequest, slatesMessageAuthAdminAuthorizationUrlGetResponse, slatesMessageAuthAdminCallbackHandleRequest, slatesMessageAuthAdminCallbackHandleResponse, 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, slatesMessageToolCategoriesListRequest, slatesMessageToolCategoriesListResponse, slatesMessageTriggerGroupGatewayConnectRequest, slatesMessageTriggerGroupGatewayConnectResponse, slatesMessageTriggerGroupGatewayReceiveRequest, slatesMessageTriggerGroupGatewayReceiveResponse, slatesMessageTriggerGroupGetRequest, slatesMessageTriggerGroupGetResponse, slatesMessageTriggerGroupPollingPollRequest, slatesMessageTriggerGroupPollingPollResponse, slatesMessageTriggerGroupRoutingMatchersGetRequest, slatesMessageTriggerGroupRoutingMatchersGetResponse, slatesMessageTriggerGroupWebhookManualFinishRequest, slatesMessageTriggerGroupWebhookManualFinishResponse, slatesMessageTriggerGroupWebhookManualSetupRequest, slatesMessageTriggerGroupWebhookManualSetupResponse, slatesMessageTriggerGroupWebhookProcessRequest, slatesMessageTriggerGroupWebhookProcessResponse, slatesMessageTriggerGroupWebhookRegisterRequest, slatesMessageTriggerGroupWebhookRegisterResponse, slatesMessageTriggerGroupWebhookTargetsListRequest, slatesMessageTriggerGroupWebhookTargetsListResponse, slatesMessageTriggerGroupWebhookUnregisterRequest, slatesMessageTriggerGroupWebhookUnregisterResponse, slatesMessageTriggerGroupsListRequest, slatesMessageTriggerGroupsListResponse, slatesNotificationsByMethod, slatesParticipant, slatesRequestTrace, slatesRequestTraceTextBody, slatesRequestsByMethod, slatesResponsesByMethod, slatesToolCategory, slatesToolCategoryRequestsByMethod, slatesToolCategoryResponsesByMethod, slatesTriggerGroup, slatesTriggerGroupInvocation, slatesTriggerGroupRequestsByMethod, slatesTriggerGroupResponsesByMethod, slatesTriggerGroupWebhookSkipped, slatesTriggerRoutingMatcher, slatesWebhookHttpResponse, slatesWebhookTarget, slatesWebhookTargetOwnership, withRequestTraces };
@@ -93,7 +93,8 @@ var slatesAuthenticationMethod = z3.object({
93
93
  getDefaultInput: z3.object({ enabled: z3.boolean() }).optional(),
94
94
  handleChangedInput: z3.object({ enabled: z3.boolean() }).optional(),
95
95
  handleTokenRefresh: z3.object({ enabled: z3.boolean() }).optional(),
96
- getProfile: z3.object({ enabled: z3.boolean() }).optional()
96
+ getProfile: z3.object({ enabled: z3.boolean() }).optional(),
97
+ adminSetup: z3.object({ enabled: z3.boolean() }).optional()
97
98
  }),
98
99
  docs: z3.array(
99
100
  z3.object({
@@ -476,6 +477,45 @@ var slatesMessageAuthAuthorizationCallbackHandleResponse = z10.object({
476
477
  routingMatchers: z10.array(slatesTriggerRoutingMatcher).optional()
477
478
  })
478
479
  });
480
+ var slatesMessageAuthAdminAuthorizationUrlGetRequest = z10.object({
481
+ jsonrpc: z10.literal("2.0"),
482
+ method: z10.literal("slates/auth.admin_authorization_url.get"),
483
+ id: z10.string(),
484
+ params: slatesMessageAuthAuthorizationUrlGetRequest.shape.params
485
+ });
486
+ var slatesMessageAuthAdminAuthorizationUrlGetResponse = z10.object({
487
+ jsonrpc: z10.literal("2.0"),
488
+ id: z10.string(),
489
+ result: withRequestTraces({
490
+ authorizationUrl: z10.string(),
491
+ input: z10.record(z10.string(), z10.any()).optional(),
492
+ callbackState: z10.record(z10.string(), z10.any()).optional()
493
+ })
494
+ });
495
+ var slatesMessageAuthAdminCallbackHandleRequest = z10.object({
496
+ jsonrpc: z10.literal("2.0"),
497
+ method: z10.literal("slates/auth.admin_callback.handle"),
498
+ id: z10.string(),
499
+ params: z10.object({
500
+ authenticationMethodId: z10.string(),
501
+ code: z10.string().optional(),
502
+ state: z10.string(),
503
+ redirectUri: z10.string(),
504
+ input: z10.record(z10.string(), z10.any()),
505
+ clientId: z10.string(),
506
+ clientSecret: z10.string(),
507
+ scopes: z10.array(z10.string()),
508
+ callbackParams: z10.record(z10.string(), z10.string()).optional(),
509
+ callbackState: z10.record(z10.string(), z10.any()).optional()
510
+ })
511
+ });
512
+ var slatesMessageAuthAdminCallbackHandleResponse = z10.object({
513
+ jsonrpc: z10.literal("2.0"),
514
+ id: z10.string(),
515
+ result: withRequestTraces({
516
+ instructions: z10.string().optional()
517
+ })
518
+ });
479
519
  var slatesMessageAuthTokenRefreshHandleRequest = z10.object({
480
520
  jsonrpc: z10.literal("2.0"),
481
521
  method: z10.literal("slates/auth.token_refresh.handle"),
@@ -540,6 +580,8 @@ var slatesAuthResponsesByMethod = {
540
580
  "slates/auth.input.get_default": slatesMessageAuthDefaultInputGetResponse,
541
581
  "slates/auth.authorization_url.get": slatesMessageAuthAuthorizationUrlGetResponse,
542
582
  "slates/auth.authorization_callback.handle": slatesMessageAuthAuthorizationCallbackHandleResponse,
583
+ "slates/auth.admin_authorization_url.get": slatesMessageAuthAdminAuthorizationUrlGetResponse,
584
+ "slates/auth.admin_callback.handle": slatesMessageAuthAdminCallbackHandleResponse,
543
585
  "slates/auth.token_refresh.handle": slatesMessageAuthTokenRefreshHandleResponse,
544
586
  "slates/auth.profile.get": slatesMessageAuthProfileGetResponse,
545
587
  "slates/auth.output.get": slatesMessageAuthOutputGetResponse
@@ -551,6 +593,8 @@ var slatesAuthRequestsByMethod = {
551
593
  "slates/auth.input.get_default": slatesMessageAuthDefaultInputGetRequest,
552
594
  "slates/auth.authorization_url.get": slatesMessageAuthAuthorizationUrlGetRequest,
553
595
  "slates/auth.authorization_callback.handle": slatesMessageAuthAuthorizationCallbackHandleRequest,
596
+ "slates/auth.admin_authorization_url.get": slatesMessageAuthAdminAuthorizationUrlGetRequest,
597
+ "slates/auth.admin_callback.handle": slatesMessageAuthAdminCallbackHandleRequest,
554
598
  "slates/auth.token_refresh.handle": slatesMessageAuthTokenRefreshHandleRequest,
555
599
  "slates/auth.profile.get": slatesMessageAuthProfileGetRequest,
556
600
  "slates/auth.output.get": slatesMessageAuthOutputGetRequest
@@ -1500,6 +1544,10 @@ export {
1500
1544
  slatesMessageAdapterGetResponse,
1501
1545
  slatesMessageAdaptersListRequest,
1502
1546
  slatesMessageAdaptersListResponse,
1547
+ slatesMessageAuthAdminAuthorizationUrlGetRequest,
1548
+ slatesMessageAuthAdminAuthorizationUrlGetResponse,
1549
+ slatesMessageAuthAdminCallbackHandleRequest,
1550
+ slatesMessageAuthAdminCallbackHandleResponse,
1503
1551
  slatesMessageAuthAuthorizationCallbackHandleRequest,
1504
1552
  slatesMessageAuthAuthorizationCallbackHandleResponse,
1505
1553
  slatesMessageAuthAuthorizationUrlGetRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slates/proto",
3
- "version": "1.0.0-rc.25",
3
+ "version": "1.0.0-rc.26",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -208,6 +208,72 @@ export type SlatesMessageAuthAuthorizationCallbackHandleResponse = z.infer<
208
208
  typeof slatesMessageAuthAuthorizationCallbackHandleResponse
209
209
  >;
210
210
 
211
+ /**
212
+ * Get Admin Authorization Url
213
+ */
214
+ export let slatesMessageAuthAdminAuthorizationUrlGetRequest = z.object({
215
+ jsonrpc: z.literal('2.0'),
216
+ method: z.literal('slates/auth.admin_authorization_url.get'),
217
+ id: z.string(),
218
+ params: slatesMessageAuthAuthorizationUrlGetRequest.shape.params
219
+ });
220
+
221
+ export type SlatesMessageAuthAdminAuthorizationUrlGetRequest = z.infer<
222
+ typeof slatesMessageAuthAdminAuthorizationUrlGetRequest
223
+ >;
224
+
225
+ export let slatesMessageAuthAdminAuthorizationUrlGetResponse = z.object({
226
+ jsonrpc: z.literal('2.0'),
227
+ id: z.string(),
228
+ result: withRequestTraces({
229
+ authorizationUrl: z.string(),
230
+ input: z.record(z.string(), z.any()).optional(),
231
+ callbackState: z.record(z.string(), z.any()).optional()
232
+ })
233
+ });
234
+
235
+ export type SlatesMessageAuthAdminAuthorizationUrlGetResponse = z.infer<
236
+ typeof slatesMessageAuthAdminAuthorizationUrlGetResponse
237
+ >;
238
+
239
+ /**
240
+ * Handle Admin Callback
241
+ */
242
+ export let slatesMessageAuthAdminCallbackHandleRequest = z.object({
243
+ jsonrpc: z.literal('2.0'),
244
+ method: z.literal('slates/auth.admin_callback.handle'),
245
+ id: z.string(),
246
+ params: z.object({
247
+ authenticationMethodId: z.string(),
248
+
249
+ code: z.string().optional(),
250
+ state: z.string(),
251
+ redirectUri: z.string(),
252
+ input: z.record(z.string(), z.any()),
253
+ clientId: z.string(),
254
+ clientSecret: z.string(),
255
+ scopes: z.array(z.string()),
256
+ callbackParams: z.record(z.string(), z.string()).optional(),
257
+ callbackState: z.record(z.string(), z.any()).optional()
258
+ })
259
+ });
260
+
261
+ export type SlatesMessageAuthAdminCallbackHandleRequest = z.infer<
262
+ typeof slatesMessageAuthAdminCallbackHandleRequest
263
+ >;
264
+
265
+ export let slatesMessageAuthAdminCallbackHandleResponse = z.object({
266
+ jsonrpc: z.literal('2.0'),
267
+ id: z.string(),
268
+ result: withRequestTraces({
269
+ instructions: z.string().optional()
270
+ })
271
+ });
272
+
273
+ export type SlatesMessageAuthAdminCallbackHandleResponse = z.infer<
274
+ typeof slatesMessageAuthAdminCallbackHandleResponse
275
+ >;
276
+
211
277
  /**
212
278
  * Handle Token Refresh
213
279
  */
@@ -314,6 +380,8 @@ export type SlatesAuthRequests =
314
380
  | SlatesMessageAuthDefaultInputGetRequest
315
381
  | SlatesMessageAuthAuthorizationUrlGetRequest
316
382
  | SlatesMessageAuthAuthorizationCallbackHandleRequest
383
+ | SlatesMessageAuthAdminAuthorizationUrlGetRequest
384
+ | SlatesMessageAuthAdminCallbackHandleRequest
317
385
  | SlatesMessageAuthTokenRefreshHandleRequest
318
386
  | SlatesMessageAuthProfileGetRequest
319
387
  | SlatesMessageAuthOutputGetRequest;
@@ -325,6 +393,8 @@ export type SlatesAuthResponses =
325
393
  | SlatesMessageAuthDefaultInputGetResponse
326
394
  | SlatesMessageAuthAuthorizationUrlGetResponse
327
395
  | SlatesMessageAuthAuthorizationCallbackHandleResponse
396
+ | SlatesMessageAuthAdminAuthorizationUrlGetResponse
397
+ | SlatesMessageAuthAdminCallbackHandleResponse
328
398
  | SlatesMessageAuthTokenRefreshHandleResponse
329
399
  | SlatesMessageAuthProfileGetResponse
330
400
  | SlatesMessageAuthOutputGetResponse;
@@ -339,6 +409,8 @@ export let slatesAuthResponsesByMethod = {
339
409
  'slates/auth.authorization_url.get': slatesMessageAuthAuthorizationUrlGetResponse,
340
410
  'slates/auth.authorization_callback.handle':
341
411
  slatesMessageAuthAuthorizationCallbackHandleResponse,
412
+ 'slates/auth.admin_authorization_url.get': slatesMessageAuthAdminAuthorizationUrlGetResponse,
413
+ 'slates/auth.admin_callback.handle': slatesMessageAuthAdminCallbackHandleResponse,
342
414
  'slates/auth.token_refresh.handle': slatesMessageAuthTokenRefreshHandleResponse,
343
415
  'slates/auth.profile.get': slatesMessageAuthProfileGetResponse,
344
416
  'slates/auth.output.get': slatesMessageAuthOutputGetResponse
@@ -352,6 +424,8 @@ export let slatesAuthRequestsByMethod = {
352
424
  'slates/auth.authorization_url.get': slatesMessageAuthAuthorizationUrlGetRequest,
353
425
  'slates/auth.authorization_callback.handle':
354
426
  slatesMessageAuthAuthorizationCallbackHandleRequest,
427
+ 'slates/auth.admin_authorization_url.get': slatesMessageAuthAdminAuthorizationUrlGetRequest,
428
+ 'slates/auth.admin_callback.handle': slatesMessageAuthAdminCallbackHandleRequest,
355
429
  'slates/auth.token_refresh.handle': slatesMessageAuthTokenRefreshHandleRequest,
356
430
  'slates/auth.profile.get': slatesMessageAuthProfileGetRequest,
357
431
  'slates/auth.output.get': slatesMessageAuthOutputGetRequest
@@ -32,7 +32,8 @@ export let slatesAuthenticationMethod = z.object({
32
32
  getDefaultInput: z.object({ enabled: z.boolean() }).optional(),
33
33
  handleChangedInput: z.object({ enabled: z.boolean() }).optional(),
34
34
  handleTokenRefresh: z.object({ enabled: z.boolean() }).optional(),
35
- getProfile: z.object({ enabled: z.boolean() }).optional()
35
+ getProfile: z.object({ enabled: z.boolean() }).optional(),
36
+ adminSetup: z.object({ enabled: z.boolean() }).optional()
36
37
  }),
37
38
 
38
39
  docs: z.array(