@slates/proto 1.0.0-rc.2 → 1.0.0-rc.21
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 +1632 -2
- package/dist/index.d.cts +5397 -0
- package/dist/index.d.ts +5397 -4
- package/dist/index.module.js +1480 -2
- package/package.json +9 -8
- package/src/handler/provider.test.ts +121 -0
- package/src/handler/provider.ts +268 -27
- package/src/index.ts +1 -0
- package/src/messages/action.ts +51 -154
- package/src/messages/adapter.ts +72 -0
- package/src/messages/auth.ts +21 -13
- package/src/messages/config.ts +12 -3
- package/src/messages/controlFlow.ts +2 -1
- package/src/messages/hub.ts +92 -0
- package/src/messages/identify.ts +10 -3
- package/src/messages/index.ts +68 -14
- package/src/messages/legacyTrigger.ts +149 -0
- package/src/messages/tracing.ts +38 -0
- package/src/messages/triggerGroup.ts +383 -0
- package/src/messages/webhookErrors.ts +21 -0
- package/src/types/action.ts +25 -13
- package/src/types/adapter.ts +15 -0
- package/src/types/authMethod.ts +19 -1
- package/src/types/index.ts +2 -0
- package/src/types/triggerGroup.ts +49 -0
- package/src/version.ts +3 -0
- package/dist/handler/index.d.ts +0 -2
- package/dist/handler/index.d.ts.map +0 -1
- package/dist/handler/provider.d.ts +0 -46
- package/dist/handler/provider.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/messages/action.d.ts +0 -474
- package/dist/messages/action.d.ts.map +0 -1
- package/dist/messages/auth.d.ts +0 -496
- package/dist/messages/auth.d.ts.map +0 -1
- package/dist/messages/config.d.ts +0 -138
- package/dist/messages/config.d.ts.map +0 -1
- package/dist/messages/controlFlow.d.ts +0 -64
- package/dist/messages/controlFlow.d.ts.map +0 -1
- package/dist/messages/identify.d.ts +0 -48
- package/dist/messages/identify.d.ts.map +0 -1
- package/dist/messages/index.d.ts +0 -556
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/log.d.ts +0 -27
- package/dist/messages/log.d.ts.map +0 -1
- package/dist/types/action.d.ts +0 -98
- package/dist/types/action.d.ts.map +0 -1
- package/dist/types/authMethod.d.ts +0 -29
- package/dist/types/authMethod.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/participant.d.ts +0 -10
- package/dist/types/participant.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/messages/log.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/action.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|