@streamlayer/sl-eslib 5.119.0 → 5.120.1
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
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { BypassNotifications, EventModeration, Question, QuestionStatus, QuestionTimeline, QuestionType, ServerNotificationOptions } from "../interactive.common_pb.js";
|
|
9
|
+
import type { Trigger } from "../../triggers/triggers_pb.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @generated from enum streamlayer.interactive.studio.UpdateType
|
|
@@ -140,6 +141,21 @@ export declare enum UpdateType {
|
|
|
140
141
|
* @generated from enum value: UPDATE_TYPE_QUESTION_REACTIVATED = 25;
|
|
141
142
|
*/
|
|
142
143
|
QUESTION_REACTIVATED = 25,
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: UPDATE_TYPE_TRIGGER_CREATE = 26;
|
|
147
|
+
*/
|
|
148
|
+
TRIGGER_CREATE = 26,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from enum value: UPDATE_TYPE_TRIGGER_UPDATE = 27;
|
|
152
|
+
*/
|
|
153
|
+
TRIGGER_UPDATE = 27,
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @generated from enum value: UPDATE_TYPE_TRIGGER_DELETE = 28;
|
|
157
|
+
*/
|
|
158
|
+
TRIGGER_DELETE = 28,
|
|
143
159
|
}
|
|
144
160
|
|
|
145
161
|
/**
|
|
@@ -278,6 +294,11 @@ export declare class ModerationSubscriptionAttributes extends Message<Moderation
|
|
|
278
294
|
*/
|
|
279
295
|
questions: Question[];
|
|
280
296
|
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: repeated streamlayer.triggers.Trigger triggers = 4;
|
|
299
|
+
*/
|
|
300
|
+
triggers: Trigger[];
|
|
301
|
+
|
|
281
302
|
constructor(data?: PartialMessage<ModerationSubscriptionAttributes>);
|
|
282
303
|
|
|
283
304
|
static readonly runtime: typeof proto3;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { BypassNotifications, EventModeration, Question, QuestionStatus, QuestionTimeline, QuestionType, ServerNotificationOptions } from "../interactive.common_pb.js";
|
|
8
|
+
import { Trigger } from "../../triggers/triggers_pb.js";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @generated from enum streamlayer.interactive.studio.UpdateType
|
|
@@ -38,6 +39,9 @@ export const UpdateType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
38
39
|
{no: 23, name: "UPDATE_TYPE_QUESTION_AI_FAILED", localName: "QUESTION_AI_FAILED"},
|
|
39
40
|
{no: 24, name: "UPDATE_TYPE_QUESTION_AI_REGENERATED", localName: "QUESTION_AI_REGENERATED"},
|
|
40
41
|
{no: 25, name: "UPDATE_TYPE_QUESTION_REACTIVATED", localName: "QUESTION_REACTIVATED"},
|
|
42
|
+
{no: 26, name: "UPDATE_TYPE_TRIGGER_CREATE", localName: "TRIGGER_CREATE"},
|
|
43
|
+
{no: 27, name: "UPDATE_TYPE_TRIGGER_UPDATE", localName: "TRIGGER_UPDATE"},
|
|
44
|
+
{no: 28, name: "UPDATE_TYPE_TRIGGER_DELETE", localName: "TRIGGER_DELETE"},
|
|
41
45
|
],
|
|
42
46
|
);
|
|
43
47
|
|
|
@@ -107,6 +111,7 @@ export const ModerationSubscriptionAttributes = /*@__PURE__*/ proto3.makeMessage
|
|
|
107
111
|
{ no: 1, name: "moderation", kind: "message", T: EventModeration },
|
|
108
112
|
{ no: 2, name: "question", kind: "message", T: Question },
|
|
109
113
|
{ no: 3, name: "questions", kind: "message", T: Question, repeated: true },
|
|
114
|
+
{ no: 4, name: "triggers", kind: "message", T: Trigger, repeated: true },
|
|
110
115
|
],
|
|
111
116
|
);
|
|
112
117
|
|
|
@@ -1025,6 +1025,11 @@ export declare class CreateTriggerRequest extends Message<CreateTriggerRequest>
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
limits: { [key: string]: number };
|
|
1027
1027
|
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from field: string organization_id = 4;
|
|
1030
|
+
*/
|
|
1031
|
+
organizationId: string;
|
|
1032
|
+
|
|
1028
1033
|
constructor(data?: PartialMessage<CreateTriggerRequest>);
|
|
1029
1034
|
|
|
1030
1035
|
static readonly runtime: typeof proto3;
|
|
@@ -1102,6 +1107,11 @@ export declare class UpdateTriggerRequest extends Message<UpdateTriggerRequest>
|
|
|
1102
1107
|
*/
|
|
1103
1108
|
updates: UpdateTriggerRequest_Update[];
|
|
1104
1109
|
|
|
1110
|
+
/**
|
|
1111
|
+
* @generated from field: string organization_id = 2;
|
|
1112
|
+
*/
|
|
1113
|
+
organizationId: string;
|
|
1114
|
+
|
|
1105
1115
|
constructor(data?: PartialMessage<UpdateTriggerRequest>);
|
|
1106
1116
|
|
|
1107
1117
|
static readonly runtime: typeof proto3;
|
|
@@ -1179,6 +1189,11 @@ export declare class EnableTriggerRequest extends Message<EnableTriggerRequest>
|
|
|
1179
1189
|
*/
|
|
1180
1190
|
id: string;
|
|
1181
1191
|
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from field: string organization_id = 2;
|
|
1194
|
+
*/
|
|
1195
|
+
organizationId: string;
|
|
1196
|
+
|
|
1182
1197
|
constructor(data?: PartialMessage<EnableTriggerRequest>);
|
|
1183
1198
|
|
|
1184
1199
|
static readonly runtime: typeof proto3;
|
|
@@ -1222,6 +1237,11 @@ export declare class DisableTriggerRequest extends Message<DisableTriggerRequest
|
|
|
1222
1237
|
*/
|
|
1223
1238
|
id: string;
|
|
1224
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
* @generated from field: string organization_id = 2;
|
|
1242
|
+
*/
|
|
1243
|
+
organizationId: string;
|
|
1244
|
+
|
|
1225
1245
|
constructor(data?: PartialMessage<DisableTriggerRequest>);
|
|
1226
1246
|
|
|
1227
1247
|
static readonly runtime: typeof proto3;
|
|
@@ -1265,6 +1285,11 @@ export declare class DeleteTriggerRequest extends Message<DeleteTriggerRequest>
|
|
|
1265
1285
|
*/
|
|
1266
1286
|
id: string;
|
|
1267
1287
|
|
|
1288
|
+
/**
|
|
1289
|
+
* @generated from field: string organization_id = 2;
|
|
1290
|
+
*/
|
|
1291
|
+
organizationId: string;
|
|
1292
|
+
|
|
1268
1293
|
constructor(data?: PartialMessage<DeleteTriggerRequest>);
|
|
1269
1294
|
|
|
1270
1295
|
static readonly runtime: typeof proto3;
|
|
@@ -1949,6 +1974,11 @@ export declare class UpdateEntityRequest extends Message<UpdateEntityRequest> {
|
|
|
1949
1974
|
*/
|
|
1950
1975
|
data: Entity[];
|
|
1951
1976
|
|
|
1977
|
+
/**
|
|
1978
|
+
* @generated from field: string organization_id = 2;
|
|
1979
|
+
*/
|
|
1980
|
+
organizationId: string;
|
|
1981
|
+
|
|
1952
1982
|
constructor(data?: PartialMessage<UpdateEntityRequest>);
|
|
1953
1983
|
|
|
1954
1984
|
static readonly runtime: typeof proto3;
|
|
@@ -2045,6 +2075,11 @@ export declare class EnableEntityRequest extends Message<EnableEntityRequest> {
|
|
|
2045
2075
|
*/
|
|
2046
2076
|
entities: EnableEntityRequest_Data[];
|
|
2047
2077
|
|
|
2078
|
+
/**
|
|
2079
|
+
* @generated from field: string organization_id = 2;
|
|
2080
|
+
*/
|
|
2081
|
+
organizationId: string;
|
|
2082
|
+
|
|
2048
2083
|
constructor(data?: PartialMessage<EnableEntityRequest>);
|
|
2049
2084
|
|
|
2050
2085
|
static readonly runtime: typeof proto3;
|
|
@@ -2117,6 +2152,11 @@ export declare class DisableEntityRequest extends Message<DisableEntityRequest>
|
|
|
2117
2152
|
*/
|
|
2118
2153
|
entities: DisableEntityRequest_Data[];
|
|
2119
2154
|
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from field: string organization_id = 2;
|
|
2157
|
+
*/
|
|
2158
|
+
organizationId: string;
|
|
2159
|
+
|
|
2120
2160
|
constructor(data?: PartialMessage<DisableEntityRequest>);
|
|
2121
2161
|
|
|
2122
2162
|
static readonly runtime: typeof proto3;
|
|
@@ -2252,6 +2292,11 @@ export declare class SetEntityLimitsRequest extends Message<SetEntityLimitsReque
|
|
|
2252
2292
|
*/
|
|
2253
2293
|
enabled: boolean;
|
|
2254
2294
|
|
|
2295
|
+
/**
|
|
2296
|
+
* @generated from field: string organization_id = 5;
|
|
2297
|
+
*/
|
|
2298
|
+
organizationId: string;
|
|
2299
|
+
|
|
2255
2300
|
constructor(data?: PartialMessage<SetEntityLimitsRequest>);
|
|
2256
2301
|
|
|
2257
2302
|
static readonly runtime: typeof proto3;
|
|
@@ -314,6 +314,7 @@ export const CreateTriggerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
314
314
|
{ no: 1, name: "trigger", kind: "message", T: EssentialTriggerData },
|
|
315
315
|
{ no: 2, name: "conditions", kind: "message", T: EssentialConditionData, repeated: true },
|
|
316
316
|
{ no: 3, name: "limits", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 5 /* ScalarType.INT32 */} },
|
|
317
|
+
{ no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
317
318
|
],
|
|
318
319
|
);
|
|
319
320
|
|
|
@@ -346,6 +347,7 @@ export const UpdateTriggerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
346
347
|
"streamlayer.triggers.UpdateTriggerRequest",
|
|
347
348
|
() => [
|
|
348
349
|
{ no: 1, name: "updates", kind: "message", T: UpdateTriggerRequest_Update, repeated: true },
|
|
350
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
349
351
|
],
|
|
350
352
|
);
|
|
351
353
|
|
|
@@ -377,6 +379,7 @@ export const EnableTriggerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
377
379
|
"streamlayer.triggers.EnableTriggerRequest",
|
|
378
380
|
() => [
|
|
379
381
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
382
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
380
383
|
],
|
|
381
384
|
);
|
|
382
385
|
|
|
@@ -395,6 +398,7 @@ export const DisableTriggerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
395
398
|
"streamlayer.triggers.DisableTriggerRequest",
|
|
396
399
|
() => [
|
|
397
400
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
401
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
398
402
|
],
|
|
399
403
|
);
|
|
400
404
|
|
|
@@ -413,6 +417,7 @@ export const DeleteTriggerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
413
417
|
"streamlayer.triggers.DeleteTriggerRequest",
|
|
414
418
|
() => [
|
|
415
419
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
420
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
416
421
|
],
|
|
417
422
|
);
|
|
418
423
|
|
|
@@ -672,6 +677,7 @@ export const UpdateEntityRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
672
677
|
"streamlayer.triggers.UpdateEntityRequest",
|
|
673
678
|
() => [
|
|
674
679
|
{ no: 1, name: "data", kind: "message", T: Entity, repeated: true },
|
|
680
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
675
681
|
],
|
|
676
682
|
);
|
|
677
683
|
|
|
@@ -711,6 +717,7 @@ export const EnableEntityRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
711
717
|
"streamlayer.triggers.EnableEntityRequest",
|
|
712
718
|
() => [
|
|
713
719
|
{ no: 1, name: "entities", kind: "message", T: EnableEntityRequest_Data, repeated: true },
|
|
720
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
714
721
|
],
|
|
715
722
|
);
|
|
716
723
|
|
|
@@ -741,6 +748,7 @@ export const DisableEntityRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
741
748
|
"streamlayer.triggers.DisableEntityRequest",
|
|
742
749
|
() => [
|
|
743
750
|
{ no: 1, name: "entities", kind: "message", T: DisableEntityRequest_Data, repeated: true },
|
|
751
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
744
752
|
],
|
|
745
753
|
);
|
|
746
754
|
|
|
@@ -794,6 +802,7 @@ export const SetEntityLimitsRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
794
802
|
{ no: 2, name: "entity_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
795
803
|
{ no: 3, name: "limits", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 5 /* ScalarType.INT32 */} },
|
|
796
804
|
{ no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
805
|
+
{ no: 5, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
797
806
|
],
|
|
798
807
|
);
|
|
799
808
|
|