@streamlayer/sl-eslib 5.269.0 → 5.270.0
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/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v2.0.1 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file streamlayer/triggers/assistant.proto (package streamlayer.triggers, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { TriggersAssistant } from "./assistant_pb";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* translates a natural-language prompt into a valid trigger payload
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc streamlayer.triggers.TriggersAssistant.Chat
|
|
11
|
+
*/
|
|
12
|
+
export const chat: typeof TriggersAssistant["method"]["chat"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v2.0.1 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file streamlayer/triggers/assistant.proto (package streamlayer.triggers, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { TriggersAssistant } from "./assistant_pb";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* translates a natural-language prompt into a valid trigger payload
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc streamlayer.triggers.TriggersAssistant.Chat
|
|
11
|
+
*/
|
|
12
|
+
export const chat = TriggersAssistant.method.chat;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file streamlayer/triggers/assistant.proto (package streamlayer.triggers, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { TriggerWithConditions } from "./triggers_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file streamlayer/triggers/assistant.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_streamlayer_triggers_assistant: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @generated from message streamlayer.triggers.ChatMeta
|
|
16
|
+
*/
|
|
17
|
+
export declare type ChatMeta = Message<"streamlayer.triggers.ChatMeta"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string organization_id = 1;
|
|
20
|
+
*/
|
|
21
|
+
organizationId: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: optional string sport = 2;
|
|
25
|
+
*/
|
|
26
|
+
sport?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: optional string datasource = 3;
|
|
30
|
+
*/
|
|
31
|
+
datasource?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message streamlayer.triggers.ChatMeta.
|
|
36
|
+
* Use `create(ChatMetaSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ChatMetaSchema: GenMessage<ChatMeta>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message streamlayer.triggers.ChatRequest
|
|
42
|
+
*/
|
|
43
|
+
export declare type ChatRequest = Message<"streamlayer.triggers.ChatRequest"> & {
|
|
44
|
+
/**
|
|
45
|
+
* omitted on the first message; service creates a session
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: optional string session_id = 1;
|
|
48
|
+
*/
|
|
49
|
+
sessionId?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: string prompt = 2;
|
|
53
|
+
*/
|
|
54
|
+
prompt: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* game/event the trigger is scoped to
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string event_id = 3;
|
|
60
|
+
*/
|
|
61
|
+
eventId: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* question the trigger is attached to (trigger.entity / entity_id)
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string question_id = 4;
|
|
67
|
+
*/
|
|
68
|
+
questionId: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* present = edit mode
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: optional string trigger_id = 5;
|
|
74
|
+
*/
|
|
75
|
+
triggerId?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: streamlayer.triggers.ChatMeta meta = 6;
|
|
79
|
+
*/
|
|
80
|
+
meta?: ChatMeta;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message streamlayer.triggers.ChatRequest.
|
|
85
|
+
* Use `create(ChatRequestSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const ChatRequestSchema: GenMessage<ChatRequest>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @generated from message streamlayer.triggers.ChatResponse
|
|
91
|
+
*/
|
|
92
|
+
export declare type ChatResponse = Message<"streamlayer.triggers.ChatResponse"> & {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: string session_id = 1;
|
|
95
|
+
*/
|
|
96
|
+
sessionId: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: streamlayer.triggers.ChatStatus status = 2;
|
|
100
|
+
*/
|
|
101
|
+
status: ChatStatus;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* human-readable rule, one clarifying question, or a plain limitation notice
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: string message = 3;
|
|
107
|
+
*/
|
|
108
|
+
message: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* present only when status = CHAT_STATUS_READY
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: optional streamlayer.triggers.TriggerWithConditions payload = 4;
|
|
114
|
+
*/
|
|
115
|
+
payload?: TriggerWithConditions;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Describes the message streamlayer.triggers.ChatResponse.
|
|
120
|
+
* Use `create(ChatResponseSchema)` to create a new message.
|
|
121
|
+
*/
|
|
122
|
+
export declare const ChatResponseSchema: GenMessage<ChatResponse>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum streamlayer.triggers.ChatStatus
|
|
126
|
+
*/
|
|
127
|
+
export enum ChatStatus {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: CHAT_STATUS_UNSET = 0;
|
|
130
|
+
*/
|
|
131
|
+
UNSET = 0,
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* payload is present and validated against studio.trigger.create/update
|
|
135
|
+
*
|
|
136
|
+
* @generated from enum value: CHAT_STATUS_READY = 1;
|
|
137
|
+
*/
|
|
138
|
+
READY = 1,
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* message holds one short clarifying question, no payload
|
|
142
|
+
*
|
|
143
|
+
* @generated from enum value: CHAT_STATUS_NEEDS_CLARIFICATION = 2;
|
|
144
|
+
*/
|
|
145
|
+
NEEDS_CLARIFICATION = 2,
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* request cannot be represented, message explains why, no payload
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum value: CHAT_STATUS_UNSUPPORTED = 3;
|
|
151
|
+
*/
|
|
152
|
+
UNSUPPORTED = 3,
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Describes the enum streamlayer.triggers.ChatStatus.
|
|
157
|
+
*/
|
|
158
|
+
export declare const ChatStatusSchema: GenEnum<ChatStatus>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from service streamlayer.triggers.TriggersAssistant
|
|
162
|
+
*/
|
|
163
|
+
export declare const TriggersAssistant: GenService<{
|
|
164
|
+
/**
|
|
165
|
+
* translates a natural-language prompt into a valid trigger payload
|
|
166
|
+
*
|
|
167
|
+
* @generated from rpc streamlayer.triggers.TriggersAssistant.Chat
|
|
168
|
+
*/
|
|
169
|
+
chat: {
|
|
170
|
+
methodKind: "unary";
|
|
171
|
+
input: typeof ChatRequestSchema;
|
|
172
|
+
output: typeof ChatResponseSchema;
|
|
173
|
+
},
|
|
174
|
+
}>;
|
|
175
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file streamlayer/triggers/assistant.proto (package streamlayer.triggers, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { file_streamlayer_common_streamlayer_common } from "../common/streamlayer_common_pb.js";
|
|
7
|
+
import { file_streamlayer_triggers_triggers } from "./triggers_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file streamlayer/triggers/assistant.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_streamlayer_triggers_assistant = /*@__PURE__*/
|
|
13
|
+
fileDesc("CiRzdHJlYW1sYXllci90cmlnZ2Vycy9hc3Npc3RhbnQucHJvdG8SFHN0cmVhbWxheWVyLnRyaWdnZXJzImkKCENoYXRNZXRhEhcKD29yZ2FuaXphdGlvbl9pZBgBIAEoCRISCgVzcG9ydBgCIAEoCUgAiAEBEhcKCmRhdGFzb3VyY2UYAyABKAlIAYgBAUIICgZfc3BvcnRCDQoLX2RhdGFzb3VyY2UiwgEKC0NoYXRSZXF1ZXN0EhcKCnNlc3Npb25faWQYASABKAlIAIgBARIOCgZwcm9tcHQYAiABKAkSEAoIZXZlbnRfaWQYAyABKAkSEwoLcXVlc3Rpb25faWQYBCABKAkSFwoKdHJpZ2dlcl9pZBgFIAEoCUgBiAEBEiwKBG1ldGEYBiABKAsyHi5zdHJlYW1sYXllci50cmlnZ2Vycy5DaGF0TWV0YUINCgtfc2Vzc2lvbl9pZEINCgtfdHJpZ2dlcl9pZCK0AQoMQ2hhdFJlc3BvbnNlEhIKCnNlc3Npb25faWQYASABKAkSMAoGc3RhdHVzGAIgASgOMiAuc3RyZWFtbGF5ZXIudHJpZ2dlcnMuQ2hhdFN0YXR1cxIPCgdtZXNzYWdlGAMgASgJEkEKB3BheWxvYWQYBCABKAsyKy5zdHJlYW1sYXllci50cmlnZ2Vycy5UcmlnZ2VyV2l0aENvbmRpdGlvbnNIAIgBAUIKCghfcGF5bG9hZCp8CgpDaGF0U3RhdHVzEhUKEUNIQVRfU1RBVFVTX1VOU0VUEAASFQoRQ0hBVF9TVEFUVVNfUkVBRFkQARIjCh9DSEFUX1NUQVRVU19ORUVEU19DTEFSSUZJQ0FUSU9OEAISGwoXQ0hBVF9TVEFUVVNfVU5TVVBQT1JURUQQAzKMAQoRVHJpZ2dlcnNBc3Npc3RhbnQSXwoEQ2hhdBIhLnN0cmVhbWxheWVyLnRyaWdnZXJzLkNoYXRSZXF1ZXN0GiIuc3RyZWFtbGF5ZXIudHJpZ2dlcnMuQ2hhdFJlc3BvbnNlIhCKph0EY2hhdKCmHQKoph0BGhaKtRgSdHJpZ2dlcnMuYXNzaXN0YW50QoYBChhjb20uc3RyZWFtbGF5ZXIudHJpZ2dlcnNCIVN0cmVhbUxheWVyVHJpZ2dlcnNBc3Npc3RhbnRQcm90b1ABWjxnaXRodWIuY29tL3N0cmVhbWxheWVyL3NsLXByb3RvZmlsZXMvdjQvdHJpZ2dlcnM7c2xfdHJpZ2dlcnOiAgZTTF9BUEliBnByb3RvMw", [file_streamlayer_common_streamlayer_common, file_streamlayer_triggers_triggers]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message streamlayer.triggers.ChatMeta.
|
|
17
|
+
* Use `create(ChatMetaSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const ChatMetaSchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_streamlayer_triggers_assistant, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message streamlayer.triggers.ChatRequest.
|
|
24
|
+
* Use `create(ChatRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const ChatRequestSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_streamlayer_triggers_assistant, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message streamlayer.triggers.ChatResponse.
|
|
31
|
+
* Use `create(ChatResponseSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ChatResponseSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_streamlayer_triggers_assistant, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the enum streamlayer.triggers.ChatStatus.
|
|
38
|
+
*/
|
|
39
|
+
export const ChatStatusSchema = /*@__PURE__*/
|
|
40
|
+
enumDesc(file_streamlayer_triggers_assistant, 0);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum streamlayer.triggers.ChatStatus
|
|
44
|
+
*/
|
|
45
|
+
export const ChatStatus = /*@__PURE__*/
|
|
46
|
+
tsEnum(ChatStatusSchema);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from service streamlayer.triggers.TriggersAssistant
|
|
50
|
+
*/
|
|
51
|
+
export const TriggersAssistant = /*@__PURE__*/
|
|
52
|
+
serviceDesc(file_streamlayer_triggers_assistant, 0);
|
|
53
|
+
|