@slates/proto 1.0.0-rc.6 → 1.0.0-rc.7

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.
Files changed (48) hide show
  1. package/dist/index.cjs +1076 -2
  2. package/dist/index.d.cts +3429 -0
  3. package/dist/index.d.ts +3429 -4
  4. package/dist/index.module.js +970 -2
  5. package/package.json +8 -7
  6. package/src/handler/provider.test.ts +118 -0
  7. package/src/handler/provider.ts +262 -27
  8. package/src/index.ts +1 -0
  9. package/src/messages/action.ts +7 -6
  10. package/src/messages/auth.ts +10 -8
  11. package/src/messages/config.ts +3 -2
  12. package/src/messages/controlFlow.ts +2 -1
  13. package/src/messages/identify.ts +2 -1
  14. package/src/messages/index.ts +13 -12
  15. package/src/messages/tracing.ts +38 -0
  16. package/src/types/action.ts +11 -1
  17. package/src/version.ts +3 -0
  18. package/dist/handler/index.d.ts +0 -2
  19. package/dist/handler/index.d.ts.map +0 -1
  20. package/dist/handler/provider.d.ts +0 -29
  21. package/dist/handler/provider.d.ts.map +0 -1
  22. package/dist/index.cjs.map +0 -1
  23. package/dist/index.d.ts.map +0 -1
  24. package/dist/index.module.js.map +0 -1
  25. package/dist/index.umd.js +0 -2
  26. package/dist/index.umd.js.map +0 -1
  27. package/dist/messages/action.d.ts +0 -474
  28. package/dist/messages/action.d.ts.map +0 -1
  29. package/dist/messages/auth.d.ts +0 -500
  30. package/dist/messages/auth.d.ts.map +0 -1
  31. package/dist/messages/config.d.ts +0 -140
  32. package/dist/messages/config.d.ts.map +0 -1
  33. package/dist/messages/controlFlow.d.ts +0 -64
  34. package/dist/messages/controlFlow.d.ts.map +0 -1
  35. package/dist/messages/identify.d.ts +0 -50
  36. package/dist/messages/identify.d.ts.map +0 -1
  37. package/dist/messages/index.d.ts +0 -560
  38. package/dist/messages/index.d.ts.map +0 -1
  39. package/dist/messages/log.d.ts +0 -27
  40. package/dist/messages/log.d.ts.map +0 -1
  41. package/dist/types/action.d.ts +0 -98
  42. package/dist/types/action.d.ts.map +0 -1
  43. package/dist/types/authMethod.d.ts +0 -29
  44. package/dist/types/authMethod.d.ts.map +0 -1
  45. package/dist/types/index.d.ts +0 -4
  46. package/dist/types/index.d.ts.map +0 -1
  47. package/dist/types/participant.d.ts +0 -10
  48. package/dist/types/participant.d.ts.map +0 -1
@@ -1,64 +0,0 @@
1
- import z from 'zod';
2
- export declare let slatesMessageHelloNotification: z.ZodObject<{
3
- jsonrpc: z.ZodLiteral<"2.0">;
4
- method: z.ZodLiteral<"slates/hello">;
5
- params: z.ZodObject<{
6
- protocol: z.ZodLiteral<"slates@2026-01-01">;
7
- }, z.core.$strip>;
8
- }, z.core.$strip>;
9
- export type SlatesMessageHelloNotification = z.infer<typeof slatesMessageHelloNotification>;
10
- export declare let slatesMessageSetParticipantsNotification: z.ZodObject<{
11
- jsonrpc: z.ZodLiteral<"2.0">;
12
- method: z.ZodLiteral<"slates/participant.set">;
13
- params: z.ZodObject<{
14
- participants: z.ZodArray<z.ZodObject<{
15
- type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- description: z.ZodOptional<z.ZodString>;
19
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20
- }, z.core.$strip>>;
21
- }, z.core.$strip>;
22
- }, z.core.$strip>;
23
- export type SlatesMessageSetParticipantsNotification = z.infer<typeof slatesMessageSetParticipantsNotification>;
24
- export declare let slatesMessageSessionStartNotification: z.ZodObject<{
25
- jsonrpc: z.ZodLiteral<"2.0">;
26
- method: z.ZodLiteral<"slates/session.start">;
27
- params: z.ZodObject<{
28
- sessionId: z.ZodString;
29
- state: z.ZodRecord<z.ZodString, z.ZodAny>;
30
- }, z.core.$strip>;
31
- }, z.core.$strip>;
32
- export type SlatesMessageSessionStartNotification = z.infer<typeof slatesMessageSessionStartNotification>;
33
- export type SlatesControlFlowNotifications = SlatesMessageHelloNotification | SlatesMessageSetParticipantsNotification | SlatesMessageSessionStartNotification;
34
- export declare let slatesControlFlowNotificationsByMethod: {
35
- 'slates/hello': z.ZodObject<{
36
- jsonrpc: z.ZodLiteral<"2.0">;
37
- method: z.ZodLiteral<"slates/hello">;
38
- params: z.ZodObject<{
39
- protocol: z.ZodLiteral<"slates@2026-01-01">;
40
- }, z.core.$strip>;
41
- }, z.core.$strip>;
42
- 'slates/participant.set': z.ZodObject<{
43
- jsonrpc: z.ZodLiteral<"2.0">;
44
- method: z.ZodLiteral<"slates/participant.set">;
45
- params: z.ZodObject<{
46
- participants: z.ZodArray<z.ZodObject<{
47
- type: z.ZodUnion<readonly [z.ZodLiteral<"consumer">, z.ZodLiteral<"hub">]>;
48
- id: z.ZodString;
49
- name: z.ZodString;
50
- description: z.ZodOptional<z.ZodString>;
51
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
52
- }, z.core.$strip>>;
53
- }, z.core.$strip>;
54
- }, z.core.$strip>;
55
- 'slates/session.start': z.ZodObject<{
56
- jsonrpc: z.ZodLiteral<"2.0">;
57
- method: z.ZodLiteral<"slates/session.start">;
58
- params: z.ZodObject<{
59
- sessionId: z.ZodString;
60
- state: z.ZodRecord<z.ZodString, z.ZodAny>;
61
- }, z.core.$strip>;
62
- }, z.core.$strip>;
63
- };
64
- //# sourceMappingURL=controlFlow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controlFlow.d.ts","sourceRoot":"","sources":["../../src/messages/controlFlow.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,IAAI,8BAA8B;;;;;;iBAMvC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F,eAAO,IAAI,wCAAwC;;;;;;;;;;;;iBAMjD,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,IAAI,qCAAqC;;;;;;;iBAO9C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GACtC,8BAA8B,GAC9B,wCAAwC,GACxC,qCAAqC,CAAC;AAE1C,eAAO,IAAI,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhD,CAAC"}
@@ -1,50 +0,0 @@
1
- import z from 'zod';
2
- export declare let slatesMessageProviderIdentifyRequest: z.ZodObject<{
3
- jsonrpc: z.ZodLiteral<"2.0">;
4
- method: z.ZodLiteral<"slates/provider.identify">;
5
- id: z.ZodString;
6
- params: z.ZodObject<{}, z.core.$strip>;
7
- }, z.core.$strip>;
8
- export type SlatesMessageProviderIdentifyRequest = z.infer<typeof slatesMessageProviderIdentifyRequest>;
9
- export declare let slatesMessageProviderIdentifyResponse: z.ZodObject<{
10
- jsonrpc: z.ZodLiteral<"2.0">;
11
- id: z.ZodString;
12
- result: z.ZodObject<{
13
- protocol: z.ZodLiteral<"slates@2026-01-01">;
14
- provider: z.ZodObject<{
15
- type: z.ZodLiteral<"provider">;
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- description: z.ZodOptional<z.ZodString>;
19
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20
- }, z.core.$strip>;
21
- }, z.core.$strip>;
22
- }, z.core.$strip>;
23
- export type SlatesMessageProviderIdentifyResponse = z.infer<typeof slatesMessageProviderIdentifyResponse>;
24
- export type SlatesIdentifyRequests = SlatesMessageProviderIdentifyRequest;
25
- export type SlatesIdentifyResponses = SlatesMessageProviderIdentifyResponse;
26
- export declare let slatesIdentifyResponsesByMethod: {
27
- 'slates/provider.identify': z.ZodObject<{
28
- jsonrpc: z.ZodLiteral<"2.0">;
29
- id: z.ZodString;
30
- result: z.ZodObject<{
31
- protocol: z.ZodLiteral<"slates@2026-01-01">;
32
- provider: z.ZodObject<{
33
- type: z.ZodLiteral<"provider">;
34
- id: z.ZodString;
35
- name: z.ZodString;
36
- description: z.ZodOptional<z.ZodString>;
37
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
38
- }, z.core.$strip>;
39
- }, z.core.$strip>;
40
- }, z.core.$strip>;
41
- };
42
- export declare let slatesIdentifyRequestsByMethod: {
43
- 'slates/provider.identify': z.ZodObject<{
44
- jsonrpc: z.ZodLiteral<"2.0">;
45
- method: z.ZodLiteral<"slates/provider.identify">;
46
- id: z.ZodString;
47
- params: z.ZodObject<{}, z.core.$strip>;
48
- }, z.core.$strip>;
49
- };
50
- //# sourceMappingURL=identify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../src/messages/identify.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,IAAI,oCAAoC;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,IAAI,qCAAqC;;;;;;;;;;;;;iBAa9C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,oCAAoC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,qCAAqC,CAAC;AAE5E,eAAO,IAAI,+BAA+B;;;;;;;;;;;;;;;CAEzC,CAAC;AAEF,eAAO,IAAI,8BAA8B;;;;;;;CAExC,CAAC"}