@slates/proto 1.0.0-rc.1 → 1.0.0-rc.2
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/handler/index.d.ts +2 -0
- package/dist/handler/index.d.ts.map +1 -0
- package/dist/handler/provider.d.ts +46 -0
- package/dist/handler/provider.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/messages/action.d.ts +474 -0
- package/dist/messages/action.d.ts.map +1 -0
- package/dist/messages/auth.d.ts +496 -0
- package/dist/messages/auth.d.ts.map +1 -0
- package/dist/messages/config.d.ts +138 -0
- package/dist/messages/config.d.ts.map +1 -0
- package/dist/messages/controlFlow.d.ts +64 -0
- package/dist/messages/controlFlow.d.ts.map +1 -0
- package/dist/messages/identify.d.ts +48 -0
- package/dist/messages/identify.d.ts.map +1 -0
- package/dist/messages/index.d.ts +556 -0
- package/dist/messages/index.d.ts.map +1 -0
- package/dist/messages/log.d.ts +27 -0
- package/dist/messages/log.d.ts.map +1 -0
- package/dist/types/action.d.ts +98 -0
- package/dist/types/action.d.ts.map +1 -0
- package/dist/types/authMethod.d.ts +29 -0
- package/dist/types/authMethod.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/participant.d.ts +10 -0
- package/dist/types/participant.d.ts.map +1 -0
- package/package.json +7 -1
- package/src/messages/index.ts +2 -6
- package/src/messages/log.ts +0 -29
- package/tsconfig.json +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,oBAAoB,EAEpB,qBAAqB,EAEtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,uBAAuB,EAEvB,kBAAkB,EAElB,mBAAmB,EAEpB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,yBAAyB,EAEzB,oBAAoB,EAEpB,qBAAqB,EAEtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,8BAA8B,EAE/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sBAAsB,EAEtB,uBAAuB,EAExB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,yBAAyB,GACzB,8BAA8B,CAAC;AAEnC,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B,eAAO,IAAI,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAC;AAEF,eAAO,IAAI,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAC;AAEF,eAAO,IAAI,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;KACnC,GAAG,IAAI,MAAM,OAAO,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACpD,CAAC,OAAO,uBAAuB,CAAC,CAAC,GAAG,CAAC,CACtC;CACF,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Send Log
|
|
4
|
+
*/
|
|
5
|
+
export declare let slatesMessageLogSendNotification: z.ZodObject<{
|
|
6
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
7
|
+
method: z.ZodLiteral<"slates/log.send">;
|
|
8
|
+
params: z.ZodObject<{
|
|
9
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">, z.ZodLiteral<"progress">]>;
|
|
10
|
+
timestamp: z.ZodString;
|
|
11
|
+
message: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type SlatesMessageLogSendNotification = z.infer<typeof slatesMessageLogSendNotification>;
|
|
15
|
+
export type SlatesLogNotifications = SlatesMessageLogSendNotification;
|
|
16
|
+
export declare let slatesLogNotificationsByMethod: {
|
|
17
|
+
'slates/log.send': z.ZodObject<{
|
|
18
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
19
|
+
method: z.ZodLiteral<"slates/log.send">;
|
|
20
|
+
params: z.ZodObject<{
|
|
21
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">, z.ZodLiteral<"progress">]>;
|
|
22
|
+
timestamp: z.ZodString;
|
|
23
|
+
message: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/messages/log.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB;;GAEG;AACH,eAAO,IAAI,gCAAgC;;;;;;;;iBAazC,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAC;AAEtE,eAAO,IAAI,8BAA8B;;;;;;;;;;CAExC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare let slatesActionBase: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
14
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare let slatesActionTool: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
28
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
29
|
+
type: z.ZodLiteral<"action.tool">;
|
|
30
|
+
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare let slatesActionTrigger: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
43
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
44
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
45
|
+
type: z.ZodLiteral<"action.trigger">;
|
|
46
|
+
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
47
|
+
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"polling">;
|
|
49
|
+
intervalSeconds: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<"webhook">;
|
|
52
|
+
autoRegistration: z.ZodBoolean;
|
|
53
|
+
autoUnregistration: z.ZodBoolean;
|
|
54
|
+
}, z.core.$strip>]>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare let slatesAction: z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
67
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
68
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
69
|
+
type: z.ZodLiteral<"action.tool">;
|
|
70
|
+
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
82
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
83
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
84
|
+
type: z.ZodLiteral<"action.trigger">;
|
|
85
|
+
capabilities: z.ZodObject<{}, z.core.$strip>;
|
|
86
|
+
invocation: z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"polling">;
|
|
88
|
+
intervalSeconds: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<"webhook">;
|
|
91
|
+
autoRegistration: z.ZodBoolean;
|
|
92
|
+
autoUnregistration: z.ZodBoolean;
|
|
93
|
+
}, z.core.$strip>]>;
|
|
94
|
+
}, z.core.$strip>]>;
|
|
95
|
+
export type SlatesAction = z.infer<typeof slatesAction>;
|
|
96
|
+
export type SlatesActionTool = z.infer<typeof slatesActionTool>;
|
|
97
|
+
export type SlatesActionTrigger = z.infer<typeof slatesActionTrigger>;
|
|
98
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,IAAI,gBAAgB;;;;;;;;;;;;;iBAiBzB,CAAC;AAEH,eAAO,IAAI,gBAAgB;;;;;;;;;;;;;;;iBAGzB,CAAC;AAEH,eAAO,IAAI,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;iBAe5B,CAAC;AAEH,eAAO,IAAI,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAmD,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare let slatesAuthenticationMethod: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"auth.oauth">, z.ZodLiteral<"auth.token">, z.ZodLiteral<"auth.service_account">, z.ZodLiteral<"auth.custom">]>;
|
|
6
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
11
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
12
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
13
|
+
capabilities: z.ZodObject<{
|
|
14
|
+
getDefaultInput: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
enabled: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
handleChangedInput: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
enabled: z.ZodBoolean;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
handleTokenRefresh: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
enabled: z.ZodBoolean;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
getProfile: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
enabled: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type SlateAuthenticationMethod = z.infer<typeof slatesAuthenticationMethod>;
|
|
29
|
+
//# sourceMappingURL=authMethod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authMethod.d.ts","sourceRoot":"","sources":["../../src/types/authMethod.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,IAAI,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BnC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare let slatesParticipant: z.ZodObject<{
|
|
3
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type SlatesParticipant = z.infer<typeof slatesParticipant>;
|
|
10
|
+
//# sourceMappingURL=participant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participant.d.ts","sourceRoot":"","sources":["../../src/types/participant.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,IAAI,iBAAiB;;;;;;iBAM1B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slates/proto",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/**",
|
|
9
|
+
"dist/**",
|
|
10
|
+
"README.md",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
7
13
|
"author": "Tobias Herber",
|
|
8
14
|
"license": "Apache 2",
|
|
9
15
|
"type": "module",
|
package/src/messages/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './auth';
|
|
|
3
3
|
export * from './config';
|
|
4
4
|
export * from './controlFlow';
|
|
5
5
|
export * from './identify';
|
|
6
|
-
export * from './log';
|
|
7
6
|
|
|
8
7
|
import { z } from 'zod';
|
|
9
8
|
import {
|
|
@@ -38,13 +37,11 @@ import {
|
|
|
38
37
|
SlatesIdentifyResponses,
|
|
39
38
|
slatesIdentifyResponsesByMethod
|
|
40
39
|
} from './identify';
|
|
41
|
-
import { SlatesLogNotifications, slatesLogNotificationsByMethod } from './log';
|
|
42
40
|
|
|
43
41
|
export type SlatesNotifications =
|
|
44
42
|
| SlatesAuthNotifications
|
|
45
43
|
| SlatesConfigNotifications
|
|
46
|
-
| SlatesControlFlowNotifications
|
|
47
|
-
| SlatesLogNotifications;
|
|
44
|
+
| SlatesControlFlowNotifications;
|
|
48
45
|
|
|
49
46
|
export type SlatesRequests =
|
|
50
47
|
| SlatesActionRequests
|
|
@@ -75,8 +72,7 @@ export let slatesRequestsByMethod = {
|
|
|
75
72
|
export let slatesNotificationsByMethod = {
|
|
76
73
|
...slatesAuthNotificationsByMethod,
|
|
77
74
|
...slatesConfigNotificationsByMethod,
|
|
78
|
-
...slatesControlFlowNotificationsByMethod
|
|
79
|
-
...slatesLogNotificationsByMethod
|
|
75
|
+
...slatesControlFlowNotificationsByMethod
|
|
80
76
|
};
|
|
81
77
|
|
|
82
78
|
export type SlatesResponsesByMethod = {
|
package/src/messages/log.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Send Log
|
|
5
|
-
*/
|
|
6
|
-
export let slatesMessageLogSendNotification = z.object({
|
|
7
|
-
jsonrpc: z.literal('2.0'),
|
|
8
|
-
method: z.literal('slates/log.send'),
|
|
9
|
-
params: z.object({
|
|
10
|
-
type: z.union([
|
|
11
|
-
z.literal('info'),
|
|
12
|
-
z.literal('warning'),
|
|
13
|
-
z.literal('error'),
|
|
14
|
-
z.literal('progress')
|
|
15
|
-
]),
|
|
16
|
-
timestamp: z.string(),
|
|
17
|
-
message: z.string()
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type SlatesMessageLogSendNotification = z.infer<
|
|
22
|
-
typeof slatesMessageLogSendNotification
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
export type SlatesLogNotifications = SlatesMessageLogSendNotification;
|
|
26
|
-
|
|
27
|
-
export let slatesLogNotificationsByMethod = {
|
|
28
|
-
'slates/log.send': slatesMessageLogSendNotification
|
|
29
|
-
};
|