@togatherlabs/event-sdk 1.0.54 → 1.0.57
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/gen/ts/feed/v1/index.js
CHANGED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=js+dts,import_extension=none"
|
|
2
|
+
// @generated from file feed/v1/recommendation_served.proto (package feed.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file feed/v1/recommendation_served.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_feed_v1_recommendation_served: GenFile;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @generated from message feed.v1.RecommendationServedEvent
|
|
15
|
+
*/
|
|
16
|
+
export declare type RecommendationServedEvent = Message<"feed.v1.RecommendationServedEvent"> & {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string request_id = 1;
|
|
19
|
+
*/
|
|
20
|
+
requestId: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: int64 served_at = 2;
|
|
24
|
+
*/
|
|
25
|
+
servedAt: bigint;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string user_id = 3;
|
|
29
|
+
*/
|
|
30
|
+
userId: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: optional string session_id = 4;
|
|
34
|
+
*/
|
|
35
|
+
sessionId?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Retrieval model version
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string retrieval_model = 5;
|
|
41
|
+
*/
|
|
42
|
+
retrievalModel: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Ranking model version
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string ranking_model = 6;
|
|
48
|
+
*/
|
|
49
|
+
rankingModel: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: feed.v1.RequestTrigger trigger = 7;
|
|
53
|
+
*/
|
|
54
|
+
trigger: RequestTrigger;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: repeated feed.v1.RecommendedItem recommendations = 8;
|
|
58
|
+
*/
|
|
59
|
+
recommendations: RecommendedItem[];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message feed.v1.RecommendationServedEvent.
|
|
64
|
+
* Use `create(RecommendationServedEventSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export declare const RecommendationServedEventSchema: GenMessage<RecommendationServedEvent>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from message feed.v1.RecommendedItem
|
|
70
|
+
*/
|
|
71
|
+
export declare type RecommendedItem = Message<"feed.v1.RecommendedItem"> & {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: string event_id = 1;
|
|
74
|
+
*/
|
|
75
|
+
eventId: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: float ranking_score = 2;
|
|
79
|
+
*/
|
|
80
|
+
rankingScore: number;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message feed.v1.RecommendedItem.
|
|
85
|
+
* Use `create(RecommendedItemSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const RecommendedItemSchema: GenMessage<RecommendedItem>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* What triggered the recommendation request
|
|
91
|
+
*
|
|
92
|
+
* @generated from enum feed.v1.RequestTrigger
|
|
93
|
+
*/
|
|
94
|
+
export enum RequestTrigger {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: REQUEST_TRIGGER_UNSPECIFIED = 0;
|
|
97
|
+
*/
|
|
98
|
+
UNSPECIFIED = 0,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* User opens Explore tab (initial load)
|
|
102
|
+
*
|
|
103
|
+
* @generated from enum value: REQUEST_TRIGGER_EXPLORE = 1;
|
|
104
|
+
*/
|
|
105
|
+
EXPLORE = 1,
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* User scrolls to load more items
|
|
109
|
+
*
|
|
110
|
+
* @generated from enum value: REQUEST_TRIGGER_SCROLL = 2;
|
|
111
|
+
*/
|
|
112
|
+
SCROLL = 2,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* User pulls to refresh
|
|
116
|
+
*
|
|
117
|
+
* @generated from enum value: REQUEST_TRIGGER_REFRESH = 3;
|
|
118
|
+
*/
|
|
119
|
+
REFRESH = 3,
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Location change invalidates cached recommendations.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: REQUEST_TRIGGER_LOCATION_CHANGE = 4;
|
|
125
|
+
*/
|
|
126
|
+
LOCATION_CHANGE = 4,
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Describes the enum feed.v1.RequestTrigger.
|
|
131
|
+
*/
|
|
132
|
+
export declare const RequestTriggerSchema: GenEnum<RequestTrigger>;
|
|
133
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=js+dts,import_extension=none"
|
|
2
|
+
// @generated from file feed/v1/recommendation_served.proto (package feed.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file feed/v1/recommendation_served.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_feed_v1_recommendation_served = /*@__PURE__*/
|
|
11
|
+
fileDesc("CiNmZWVkL3YxL3JlY29tbWVuZGF0aW9uX3NlcnZlZC5wcm90bxIHZmVlZC52MSKIAgoZUmVjb21tZW5kYXRpb25TZXJ2ZWRFdmVudBISCgpyZXF1ZXN0X2lkGAEgASgJEhEKCXNlcnZlZF9hdBgCIAEoAxIPCgd1c2VyX2lkGAMgASgJEhcKCnNlc3Npb25faWQYBCABKAlIAIgBARIXCg9yZXRyaWV2YWxfbW9kZWwYBSABKAkSFQoNcmFua2luZ19tb2RlbBgGIAEoCRIoCgd0cmlnZ2VyGAcgASgOMhcuZmVlZC52MS5SZXF1ZXN0VHJpZ2dlchIxCg9yZWNvbW1lbmRhdGlvbnMYCCADKAsyGC5mZWVkLnYxLlJlY29tbWVuZGVkSXRlbUINCgtfc2Vzc2lvbl9pZCI6Cg9SZWNvbW1lbmRlZEl0ZW0SEAoIZXZlbnRfaWQYASABKAkSFQoNcmFua2luZ19zY29yZRgCIAEoAiqsAQoOUmVxdWVzdFRyaWdnZXISHwobUkVRVUVTVF9UUklHR0VSX1VOU1BFQ0lGSUVEEAASGwoXUkVRVUVTVF9UUklHR0VSX0VYUExPUkUQARIaChZSRVFVRVNUX1RSSUdHRVJfU0NST0xMEAISGwoXUkVRVUVTVF9UUklHR0VSX1JFRlJFU0gQAxIjCh9SRVFVRVNUX1RSSUdHRVJfTE9DQVRJT05fQ0hBTkdFEARCZQoLY29tLmZlZWQudjFCGVJlY29tbWVuZGF0aW9uU2VydmVkUHJvdG9QAaICA0ZYWKoCB0ZlZWQuVjHKAgdGZWVkXFYx4gITRmVlZFxWMVxHUEJNZXRhZGF0YeoCCEZlZWQ6OlYxYgZwcm90bzM");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message feed.v1.RecommendationServedEvent.
|
|
15
|
+
* Use `create(RecommendationServedEventSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const RecommendationServedEventSchema = /*@__PURE__*/
|
|
18
|
+
messageDesc(file_feed_v1_recommendation_served, 0);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message feed.v1.RecommendedItem.
|
|
22
|
+
* Use `create(RecommendedItemSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const RecommendedItemSchema = /*@__PURE__*/
|
|
25
|
+
messageDesc(file_feed_v1_recommendation_served, 1);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the enum feed.v1.RequestTrigger.
|
|
29
|
+
*/
|
|
30
|
+
export const RequestTriggerSchema = /*@__PURE__*/
|
|
31
|
+
enumDesc(file_feed_v1_recommendation_served, 0);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* What triggered the recommendation request
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum feed.v1.RequestTrigger
|
|
37
|
+
*/
|
|
38
|
+
export const RequestTrigger = /*@__PURE__*/
|
|
39
|
+
tsEnum(RequestTriggerSchema);
|
|
40
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togatherlabs/event-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "Shared Protobuf event schemas and generated code for toGather microservices",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./admin/v1": {
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"scripts": {
|
|
75
75
|
"check": "./script/check-environment.sh",
|
|
76
76
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
77
|
-
"commit": "git-cz",
|
|
78
77
|
"buf:lint": "buf lint",
|
|
78
|
+
"commit": "git-cz",
|
|
79
79
|
"buf:generate": "pnpm check && buf generate && node ./script/gen-index.js && python3 ./script/add-init-files.py",
|
|
80
80
|
"package:patch": "pnpm version patch",
|
|
81
81
|
"package:publish": "pnpm publish --access public",
|