@miradorlabs/web-grpc 4.29.0 → 4.31.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.
|
@@ -72,6 +72,75 @@ export function aILabelRatingToJSON(object: AILabelRating): string {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* AISessionScoreRubric is a rubric template a team's sessions are scored on. A wire copy of the stored
|
|
77
|
+
* ai.common.v1.AISessionScoreRubric (the npm stubs carry only gateway protos), held to it by a parity test.
|
|
78
|
+
*/
|
|
79
|
+
export enum AISessionScoreRubric {
|
|
80
|
+
AI_SESSION_SCORE_RUBRIC_UNSPECIFIED = 0,
|
|
81
|
+
/** AI_SESSION_SCORE_RUBRIC_CUSTOM - A team's own uploaded template. Reserved: not built yet, so it is never served or accepted. */
|
|
82
|
+
AI_SESSION_SCORE_RUBRIC_CUSTOM = 1,
|
|
83
|
+
/** AI_SESSION_SCORE_RUBRIC_STANDARD - Balanced best practice: prompts, checking and steering. Every team's default. */
|
|
84
|
+
AI_SESSION_SCORE_RUBRIC_STANDARD = 2,
|
|
85
|
+
AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY = 3,
|
|
86
|
+
AI_SESSION_SCORE_RUBRIC_SKILLED_USE = 4,
|
|
87
|
+
AI_SESSION_SCORE_RUBRIC_QUALITY = 5,
|
|
88
|
+
AI_SESSION_SCORE_RUBRIC_OWNERSHIP = 6,
|
|
89
|
+
UNRECOGNIZED = -1,
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function aISessionScoreRubricFromJSON(object: any): AISessionScoreRubric {
|
|
93
|
+
switch (object) {
|
|
94
|
+
case 0:
|
|
95
|
+
case "AI_SESSION_SCORE_RUBRIC_UNSPECIFIED":
|
|
96
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_UNSPECIFIED;
|
|
97
|
+
case 1:
|
|
98
|
+
case "AI_SESSION_SCORE_RUBRIC_CUSTOM":
|
|
99
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_CUSTOM;
|
|
100
|
+
case 2:
|
|
101
|
+
case "AI_SESSION_SCORE_RUBRIC_STANDARD":
|
|
102
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_STANDARD;
|
|
103
|
+
case 3:
|
|
104
|
+
case "AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY":
|
|
105
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY;
|
|
106
|
+
case 4:
|
|
107
|
+
case "AI_SESSION_SCORE_RUBRIC_SKILLED_USE":
|
|
108
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_SKILLED_USE;
|
|
109
|
+
case 5:
|
|
110
|
+
case "AI_SESSION_SCORE_RUBRIC_QUALITY":
|
|
111
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_QUALITY;
|
|
112
|
+
case 6:
|
|
113
|
+
case "AI_SESSION_SCORE_RUBRIC_OWNERSHIP":
|
|
114
|
+
return AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_OWNERSHIP;
|
|
115
|
+
case -1:
|
|
116
|
+
case "UNRECOGNIZED":
|
|
117
|
+
default:
|
|
118
|
+
return AISessionScoreRubric.UNRECOGNIZED;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function aISessionScoreRubricToJSON(object: AISessionScoreRubric): string {
|
|
123
|
+
switch (object) {
|
|
124
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_UNSPECIFIED:
|
|
125
|
+
return "AI_SESSION_SCORE_RUBRIC_UNSPECIFIED";
|
|
126
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_CUSTOM:
|
|
127
|
+
return "AI_SESSION_SCORE_RUBRIC_CUSTOM";
|
|
128
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_STANDARD:
|
|
129
|
+
return "AI_SESSION_SCORE_RUBRIC_STANDARD";
|
|
130
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY:
|
|
131
|
+
return "AI_SESSION_SCORE_RUBRIC_TOKEN_EFFICIENCY";
|
|
132
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_SKILLED_USE:
|
|
133
|
+
return "AI_SESSION_SCORE_RUBRIC_SKILLED_USE";
|
|
134
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_QUALITY:
|
|
135
|
+
return "AI_SESSION_SCORE_RUBRIC_QUALITY";
|
|
136
|
+
case AISessionScoreRubric.AI_SESSION_SCORE_RUBRIC_OWNERSHIP:
|
|
137
|
+
return "AI_SESSION_SCORE_RUBRIC_OWNERSHIP";
|
|
138
|
+
case AISessionScoreRubric.UNRECOGNIZED:
|
|
139
|
+
default:
|
|
140
|
+
return "UNRECOGNIZED";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
75
144
|
/** SessionInsightSort orders a page of insights. */
|
|
76
145
|
export enum SessionInsightSort {
|
|
77
146
|
SESSION_INSIGHT_SORT_UNSPECIFIED = 0,
|
|
@@ -1794,6 +1863,11 @@ export interface AISessionSummary {
|
|
|
1794
1863
|
sessionScore?:
|
|
1795
1864
|
| number
|
|
1796
1865
|
| undefined;
|
|
1866
|
+
/**
|
|
1867
|
+
* The rubric template the session_score was graded on (AISessionScore.rubric); UNSPECIFIED when session_score is
|
|
1868
|
+
* absent, or when the score predates the scorer recording its template.
|
|
1869
|
+
*/
|
|
1870
|
+
sessionScoreRubric: AISessionScoreRubric;
|
|
1797
1871
|
/**
|
|
1798
1872
|
* The session's prompt labels rolled up (MIR-469), on StreamSessionSummary only, never on ListSessions or
|
|
1799
1873
|
* StreamSessions. Absent when no prompt is labelled or the labels could not be read: not available, never zero.
|
|
@@ -2086,6 +2160,86 @@ export interface AILabelValue {
|
|
|
2086
2160
|
rating: AILabelRating;
|
|
2087
2161
|
}
|
|
2088
2162
|
|
|
2163
|
+
export interface GetSessionScoreRubricCatalogRequest {
|
|
2164
|
+
organizationId: string;
|
|
2165
|
+
projectId: string;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
export interface GetSessionScoreRubricCatalogResponse {
|
|
2169
|
+
status:
|
|
2170
|
+
| ResponseStatus
|
|
2171
|
+
| undefined;
|
|
2172
|
+
/** Every active template, in AISessionScoreRubric order. */
|
|
2173
|
+
rubrics: AISessionScoreRubricTemplate[];
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
/** AISessionScoreRubricTemplate is one rubric template a team can pick. */
|
|
2177
|
+
export interface AISessionScoreRubricTemplate {
|
|
2178
|
+
rubric: AISessionScoreRubric;
|
|
2179
|
+
/** "Token efficiency". */
|
|
2180
|
+
name: string;
|
|
2181
|
+
/** One or two plain-language sentences on what the template weighs. */
|
|
2182
|
+
description: string;
|
|
2183
|
+
/** The template's version label and content hash, as a score made on it records it. */
|
|
2184
|
+
version: string;
|
|
2185
|
+
/** The graded criteria in order; their weights add up to 100. */
|
|
2186
|
+
criteria: AISessionScoreRubricCriterion[];
|
|
2187
|
+
/**
|
|
2188
|
+
* The goal the template sets the team's sessions, in one line for people (at most 100 characters): the headline a
|
|
2189
|
+
* client shows when a team picks it, above the description.
|
|
2190
|
+
*/
|
|
2191
|
+
aim: string;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
/** AISessionScoreRubricCriterion is one graded part of a template. */
|
|
2195
|
+
export interface AISessionScoreRubricCriterion {
|
|
2196
|
+
/**
|
|
2197
|
+
* The key a score made on the template records the criterion under (AISessionRubricResult.criterion_key). Unique
|
|
2198
|
+
* across every template, so a client finds a graded criterion's name and tooltip by this key alone.
|
|
2199
|
+
*/
|
|
2200
|
+
key: string;
|
|
2201
|
+
name: string;
|
|
2202
|
+
/** Points out of 100. */
|
|
2203
|
+
weight: number;
|
|
2204
|
+
/**
|
|
2205
|
+
* One plain-language sentence for people on what the criterion measures (at most 160 characters). The scorer's own
|
|
2206
|
+
* grading text never leaves the job.
|
|
2207
|
+
*/
|
|
2208
|
+
tooltip: string;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
export interface GetProjectSessionScoreRubricRequest {
|
|
2212
|
+
organizationId: string;
|
|
2213
|
+
projectId: string;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
export interface GetProjectSessionScoreRubricResponse {
|
|
2217
|
+
status: ResponseStatus | undefined;
|
|
2218
|
+
projectRubric: ProjectSessionScoreRubric | undefined;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
export interface UpdateProjectSessionScoreRubricRequest {
|
|
2222
|
+
organizationId: string;
|
|
2223
|
+
projectId: string;
|
|
2224
|
+
/** UNSPECIFIED, CUSTOM (not built yet), an unknown or a retired value is INVALID_ARGUMENT. */
|
|
2225
|
+
rubric: AISessionScoreRubric;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
export interface UpdateProjectSessionScoreRubricResponse {
|
|
2229
|
+
status: ResponseStatus | undefined;
|
|
2230
|
+
projectRubric: ProjectSessionScoreRubric | undefined;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
/** ProjectSessionScoreRubric is the template a team's sessions are scored on. */
|
|
2234
|
+
export interface ProjectSessionScoreRubric {
|
|
2235
|
+
/** The template an org admin picked; STANDARD when none did. */
|
|
2236
|
+
rubric: AISessionScoreRubric;
|
|
2237
|
+
/** Account's user id of the admin who picked it; empty when none did. */
|
|
2238
|
+
updateUserId: string;
|
|
2239
|
+
/** When it was picked; unset when none was. */
|
|
2240
|
+
updateTime: Date | undefined;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2089
2243
|
export interface SessionTokenTimelineRequest {
|
|
2090
2244
|
organizationId: string;
|
|
2091
2245
|
projectId: string;
|
|
@@ -3306,7 +3460,14 @@ export interface AISessionScore {
|
|
|
3306
3460
|
/** The session_version (AISessionSummary.session_version) the grading read. */
|
|
3307
3461
|
inputSessionVersion: number;
|
|
3308
3462
|
/** When the scoring run selected the session. */
|
|
3309
|
-
scoredAt:
|
|
3463
|
+
scoredAt:
|
|
3464
|
+
| Date
|
|
3465
|
+
| undefined;
|
|
3466
|
+
/**
|
|
3467
|
+
* The rubric template that graded it; UNSPECIFIED for a score graded before the scorer recorded its template (then
|
|
3468
|
+
* only rubric_version names it).
|
|
3469
|
+
*/
|
|
3470
|
+
rubric: AISessionScoreRubric;
|
|
3310
3471
|
}
|
|
3311
3472
|
|
|
3312
3473
|
/**
|
|
@@ -5156,6 +5317,7 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
5156
5317
|
workType: "",
|
|
5157
5318
|
workSize: "",
|
|
5158
5319
|
sessionScore: undefined,
|
|
5320
|
+
sessionScoreRubric: 0,
|
|
5159
5321
|
promptLabelSummary: undefined,
|
|
5160
5322
|
};
|
|
5161
5323
|
}
|
|
@@ -5276,6 +5438,9 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5276
5438
|
if (message.sessionScore !== undefined) {
|
|
5277
5439
|
writer.uint32(304).int32(message.sessionScore);
|
|
5278
5440
|
}
|
|
5441
|
+
if (message.sessionScoreRubric !== 0) {
|
|
5442
|
+
writer.uint32(320).int32(message.sessionScoreRubric);
|
|
5443
|
+
}
|
|
5279
5444
|
if (message.promptLabelSummary !== undefined) {
|
|
5280
5445
|
AIPromptLabelSummary.encode(message.promptLabelSummary, writer.uint32(314).fork()).join();
|
|
5281
5446
|
}
|
|
@@ -5599,6 +5764,14 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5599
5764
|
message.sessionScore = reader.int32();
|
|
5600
5765
|
continue;
|
|
5601
5766
|
}
|
|
5767
|
+
case 40: {
|
|
5768
|
+
if (tag !== 320) {
|
|
5769
|
+
break;
|
|
5770
|
+
}
|
|
5771
|
+
|
|
5772
|
+
message.sessionScoreRubric = reader.int32() as any;
|
|
5773
|
+
continue;
|
|
5774
|
+
}
|
|
5602
5775
|
case 39: {
|
|
5603
5776
|
if (tag !== 314) {
|
|
5604
5777
|
break;
|
|
@@ -5771,6 +5944,11 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5771
5944
|
: isSet(object.session_score)
|
|
5772
5945
|
? globalThis.Number(object.session_score)
|
|
5773
5946
|
: undefined,
|
|
5947
|
+
sessionScoreRubric: isSet(object.sessionScoreRubric)
|
|
5948
|
+
? aISessionScoreRubricFromJSON(object.sessionScoreRubric)
|
|
5949
|
+
: isSet(object.session_score_rubric)
|
|
5950
|
+
? aISessionScoreRubricFromJSON(object.session_score_rubric)
|
|
5951
|
+
: 0,
|
|
5774
5952
|
promptLabelSummary: isSet(object.promptLabelSummary)
|
|
5775
5953
|
? AIPromptLabelSummary.fromJSON(object.promptLabelSummary)
|
|
5776
5954
|
: isSet(object.prompt_label_summary)
|
|
@@ -5895,6 +6073,9 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5895
6073
|
if (message.sessionScore !== undefined) {
|
|
5896
6074
|
obj.sessionScore = Math.round(message.sessionScore);
|
|
5897
6075
|
}
|
|
6076
|
+
if (message.sessionScoreRubric !== 0) {
|
|
6077
|
+
obj.sessionScoreRubric = aISessionScoreRubricToJSON(message.sessionScoreRubric);
|
|
6078
|
+
}
|
|
5898
6079
|
if (message.promptLabelSummary !== undefined) {
|
|
5899
6080
|
obj.promptLabelSummary = AIPromptLabelSummary.toJSON(message.promptLabelSummary);
|
|
5900
6081
|
}
|
|
@@ -5946,6 +6127,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5946
6127
|
message.workType = object.workType ?? "";
|
|
5947
6128
|
message.workSize = object.workSize ?? "";
|
|
5948
6129
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
6130
|
+
message.sessionScoreRubric = object.sessionScoreRubric ?? 0;
|
|
5949
6131
|
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
5950
6132
|
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
5951
6133
|
: undefined;
|
|
@@ -9044,6 +9226,979 @@ export const AILabelValue: MessageFns<AILabelValue> = {
|
|
|
9044
9226
|
},
|
|
9045
9227
|
};
|
|
9046
9228
|
|
|
9229
|
+
function createBaseGetSessionScoreRubricCatalogRequest(): GetSessionScoreRubricCatalogRequest {
|
|
9230
|
+
return { organizationId: "", projectId: "" };
|
|
9231
|
+
}
|
|
9232
|
+
|
|
9233
|
+
export const GetSessionScoreRubricCatalogRequest: MessageFns<GetSessionScoreRubricCatalogRequest> = {
|
|
9234
|
+
encode(message: GetSessionScoreRubricCatalogRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9235
|
+
if (message.organizationId !== "") {
|
|
9236
|
+
writer.uint32(10).string(message.organizationId);
|
|
9237
|
+
}
|
|
9238
|
+
if (message.projectId !== "") {
|
|
9239
|
+
writer.uint32(18).string(message.projectId);
|
|
9240
|
+
}
|
|
9241
|
+
return writer;
|
|
9242
|
+
},
|
|
9243
|
+
|
|
9244
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetSessionScoreRubricCatalogRequest {
|
|
9245
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9246
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9247
|
+
if (previousRecursionDepth >= 100) {
|
|
9248
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9249
|
+
}
|
|
9250
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9251
|
+
try {
|
|
9252
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9253
|
+
const message = createBaseGetSessionScoreRubricCatalogRequest();
|
|
9254
|
+
while (reader.pos < end) {
|
|
9255
|
+
const tag = reader.uint32();
|
|
9256
|
+
switch (tag >>> 3) {
|
|
9257
|
+
case 1: {
|
|
9258
|
+
if (tag !== 10) {
|
|
9259
|
+
break;
|
|
9260
|
+
}
|
|
9261
|
+
|
|
9262
|
+
message.organizationId = reader.string();
|
|
9263
|
+
continue;
|
|
9264
|
+
}
|
|
9265
|
+
case 2: {
|
|
9266
|
+
if (tag !== 18) {
|
|
9267
|
+
break;
|
|
9268
|
+
}
|
|
9269
|
+
|
|
9270
|
+
message.projectId = reader.string();
|
|
9271
|
+
continue;
|
|
9272
|
+
}
|
|
9273
|
+
}
|
|
9274
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9275
|
+
break;
|
|
9276
|
+
}
|
|
9277
|
+
reader.skip(tag & 7);
|
|
9278
|
+
}
|
|
9279
|
+
return message;
|
|
9280
|
+
} finally {
|
|
9281
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9282
|
+
}
|
|
9283
|
+
},
|
|
9284
|
+
|
|
9285
|
+
fromJSON(object: any): GetSessionScoreRubricCatalogRequest {
|
|
9286
|
+
return {
|
|
9287
|
+
organizationId: isSet(object.organizationId)
|
|
9288
|
+
? globalThis.String(object.organizationId)
|
|
9289
|
+
: isSet(object.organization_id)
|
|
9290
|
+
? globalThis.String(object.organization_id)
|
|
9291
|
+
: "",
|
|
9292
|
+
projectId: isSet(object.projectId)
|
|
9293
|
+
? globalThis.String(object.projectId)
|
|
9294
|
+
: isSet(object.project_id)
|
|
9295
|
+
? globalThis.String(object.project_id)
|
|
9296
|
+
: "",
|
|
9297
|
+
};
|
|
9298
|
+
},
|
|
9299
|
+
|
|
9300
|
+
toJSON(message: GetSessionScoreRubricCatalogRequest): unknown {
|
|
9301
|
+
const obj: any = {};
|
|
9302
|
+
if (message.organizationId !== "") {
|
|
9303
|
+
obj.organizationId = message.organizationId;
|
|
9304
|
+
}
|
|
9305
|
+
if (message.projectId !== "") {
|
|
9306
|
+
obj.projectId = message.projectId;
|
|
9307
|
+
}
|
|
9308
|
+
return obj;
|
|
9309
|
+
},
|
|
9310
|
+
|
|
9311
|
+
create<I extends Exact<DeepPartial<GetSessionScoreRubricCatalogRequest>, I>>(
|
|
9312
|
+
base?: I,
|
|
9313
|
+
): GetSessionScoreRubricCatalogRequest {
|
|
9314
|
+
return GetSessionScoreRubricCatalogRequest.fromPartial(base ?? ({} as any));
|
|
9315
|
+
},
|
|
9316
|
+
fromPartial<I extends Exact<DeepPartial<GetSessionScoreRubricCatalogRequest>, I>>(
|
|
9317
|
+
object: I,
|
|
9318
|
+
): GetSessionScoreRubricCatalogRequest {
|
|
9319
|
+
const message = createBaseGetSessionScoreRubricCatalogRequest();
|
|
9320
|
+
message.organizationId = object.organizationId ?? "";
|
|
9321
|
+
message.projectId = object.projectId ?? "";
|
|
9322
|
+
return message;
|
|
9323
|
+
},
|
|
9324
|
+
};
|
|
9325
|
+
|
|
9326
|
+
function createBaseGetSessionScoreRubricCatalogResponse(): GetSessionScoreRubricCatalogResponse {
|
|
9327
|
+
return { status: undefined, rubrics: [] };
|
|
9328
|
+
}
|
|
9329
|
+
|
|
9330
|
+
export const GetSessionScoreRubricCatalogResponse: MessageFns<GetSessionScoreRubricCatalogResponse> = {
|
|
9331
|
+
encode(message: GetSessionScoreRubricCatalogResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9332
|
+
if (message.status !== undefined) {
|
|
9333
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
9334
|
+
}
|
|
9335
|
+
for (const v of message.rubrics) {
|
|
9336
|
+
AISessionScoreRubricTemplate.encode(v!, writer.uint32(18).fork()).join();
|
|
9337
|
+
}
|
|
9338
|
+
return writer;
|
|
9339
|
+
},
|
|
9340
|
+
|
|
9341
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetSessionScoreRubricCatalogResponse {
|
|
9342
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9343
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9344
|
+
if (previousRecursionDepth >= 100) {
|
|
9345
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9346
|
+
}
|
|
9347
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9348
|
+
try {
|
|
9349
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9350
|
+
const message = createBaseGetSessionScoreRubricCatalogResponse();
|
|
9351
|
+
while (reader.pos < end) {
|
|
9352
|
+
const tag = reader.uint32();
|
|
9353
|
+
switch (tag >>> 3) {
|
|
9354
|
+
case 1: {
|
|
9355
|
+
if (tag !== 10) {
|
|
9356
|
+
break;
|
|
9357
|
+
}
|
|
9358
|
+
|
|
9359
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
9360
|
+
continue;
|
|
9361
|
+
}
|
|
9362
|
+
case 2: {
|
|
9363
|
+
if (tag !== 18) {
|
|
9364
|
+
break;
|
|
9365
|
+
}
|
|
9366
|
+
|
|
9367
|
+
message.rubrics.push(AISessionScoreRubricTemplate.decode(reader, reader.uint32()));
|
|
9368
|
+
continue;
|
|
9369
|
+
}
|
|
9370
|
+
}
|
|
9371
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9372
|
+
break;
|
|
9373
|
+
}
|
|
9374
|
+
reader.skip(tag & 7);
|
|
9375
|
+
}
|
|
9376
|
+
return message;
|
|
9377
|
+
} finally {
|
|
9378
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9379
|
+
}
|
|
9380
|
+
},
|
|
9381
|
+
|
|
9382
|
+
fromJSON(object: any): GetSessionScoreRubricCatalogResponse {
|
|
9383
|
+
return {
|
|
9384
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
9385
|
+
rubrics: globalThis.Array.isArray(object?.rubrics)
|
|
9386
|
+
? object.rubrics.map((e: any) => AISessionScoreRubricTemplate.fromJSON(e))
|
|
9387
|
+
: [],
|
|
9388
|
+
};
|
|
9389
|
+
},
|
|
9390
|
+
|
|
9391
|
+
toJSON(message: GetSessionScoreRubricCatalogResponse): unknown {
|
|
9392
|
+
const obj: any = {};
|
|
9393
|
+
if (message.status !== undefined) {
|
|
9394
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
9395
|
+
}
|
|
9396
|
+
if (message.rubrics?.length) {
|
|
9397
|
+
obj.rubrics = message.rubrics.map((e) => AISessionScoreRubricTemplate.toJSON(e));
|
|
9398
|
+
}
|
|
9399
|
+
return obj;
|
|
9400
|
+
},
|
|
9401
|
+
|
|
9402
|
+
create<I extends Exact<DeepPartial<GetSessionScoreRubricCatalogResponse>, I>>(
|
|
9403
|
+
base?: I,
|
|
9404
|
+
): GetSessionScoreRubricCatalogResponse {
|
|
9405
|
+
return GetSessionScoreRubricCatalogResponse.fromPartial(base ?? ({} as any));
|
|
9406
|
+
},
|
|
9407
|
+
fromPartial<I extends Exact<DeepPartial<GetSessionScoreRubricCatalogResponse>, I>>(
|
|
9408
|
+
object: I,
|
|
9409
|
+
): GetSessionScoreRubricCatalogResponse {
|
|
9410
|
+
const message = createBaseGetSessionScoreRubricCatalogResponse();
|
|
9411
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
9412
|
+
? ResponseStatus.fromPartial(object.status)
|
|
9413
|
+
: undefined;
|
|
9414
|
+
message.rubrics = object.rubrics?.map((e) => AISessionScoreRubricTemplate.fromPartial(e)) || [];
|
|
9415
|
+
return message;
|
|
9416
|
+
},
|
|
9417
|
+
};
|
|
9418
|
+
|
|
9419
|
+
function createBaseAISessionScoreRubricTemplate(): AISessionScoreRubricTemplate {
|
|
9420
|
+
return { rubric: 0, name: "", description: "", version: "", criteria: [], aim: "" };
|
|
9421
|
+
}
|
|
9422
|
+
|
|
9423
|
+
export const AISessionScoreRubricTemplate: MessageFns<AISessionScoreRubricTemplate> = {
|
|
9424
|
+
encode(message: AISessionScoreRubricTemplate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9425
|
+
if (message.rubric !== 0) {
|
|
9426
|
+
writer.uint32(8).int32(message.rubric);
|
|
9427
|
+
}
|
|
9428
|
+
if (message.name !== "") {
|
|
9429
|
+
writer.uint32(18).string(message.name);
|
|
9430
|
+
}
|
|
9431
|
+
if (message.description !== "") {
|
|
9432
|
+
writer.uint32(26).string(message.description);
|
|
9433
|
+
}
|
|
9434
|
+
if (message.version !== "") {
|
|
9435
|
+
writer.uint32(34).string(message.version);
|
|
9436
|
+
}
|
|
9437
|
+
for (const v of message.criteria) {
|
|
9438
|
+
AISessionScoreRubricCriterion.encode(v!, writer.uint32(42).fork()).join();
|
|
9439
|
+
}
|
|
9440
|
+
if (message.aim !== "") {
|
|
9441
|
+
writer.uint32(50).string(message.aim);
|
|
9442
|
+
}
|
|
9443
|
+
return writer;
|
|
9444
|
+
},
|
|
9445
|
+
|
|
9446
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionScoreRubricTemplate {
|
|
9447
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9448
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9449
|
+
if (previousRecursionDepth >= 100) {
|
|
9450
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9451
|
+
}
|
|
9452
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9453
|
+
try {
|
|
9454
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9455
|
+
const message = createBaseAISessionScoreRubricTemplate();
|
|
9456
|
+
while (reader.pos < end) {
|
|
9457
|
+
const tag = reader.uint32();
|
|
9458
|
+
switch (tag >>> 3) {
|
|
9459
|
+
case 1: {
|
|
9460
|
+
if (tag !== 8) {
|
|
9461
|
+
break;
|
|
9462
|
+
}
|
|
9463
|
+
|
|
9464
|
+
message.rubric = reader.int32() as any;
|
|
9465
|
+
continue;
|
|
9466
|
+
}
|
|
9467
|
+
case 2: {
|
|
9468
|
+
if (tag !== 18) {
|
|
9469
|
+
break;
|
|
9470
|
+
}
|
|
9471
|
+
|
|
9472
|
+
message.name = reader.string();
|
|
9473
|
+
continue;
|
|
9474
|
+
}
|
|
9475
|
+
case 3: {
|
|
9476
|
+
if (tag !== 26) {
|
|
9477
|
+
break;
|
|
9478
|
+
}
|
|
9479
|
+
|
|
9480
|
+
message.description = reader.string();
|
|
9481
|
+
continue;
|
|
9482
|
+
}
|
|
9483
|
+
case 4: {
|
|
9484
|
+
if (tag !== 34) {
|
|
9485
|
+
break;
|
|
9486
|
+
}
|
|
9487
|
+
|
|
9488
|
+
message.version = reader.string();
|
|
9489
|
+
continue;
|
|
9490
|
+
}
|
|
9491
|
+
case 5: {
|
|
9492
|
+
if (tag !== 42) {
|
|
9493
|
+
break;
|
|
9494
|
+
}
|
|
9495
|
+
|
|
9496
|
+
message.criteria.push(AISessionScoreRubricCriterion.decode(reader, reader.uint32()));
|
|
9497
|
+
continue;
|
|
9498
|
+
}
|
|
9499
|
+
case 6: {
|
|
9500
|
+
if (tag !== 50) {
|
|
9501
|
+
break;
|
|
9502
|
+
}
|
|
9503
|
+
|
|
9504
|
+
message.aim = reader.string();
|
|
9505
|
+
continue;
|
|
9506
|
+
}
|
|
9507
|
+
}
|
|
9508
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9509
|
+
break;
|
|
9510
|
+
}
|
|
9511
|
+
reader.skip(tag & 7);
|
|
9512
|
+
}
|
|
9513
|
+
return message;
|
|
9514
|
+
} finally {
|
|
9515
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9516
|
+
}
|
|
9517
|
+
},
|
|
9518
|
+
|
|
9519
|
+
fromJSON(object: any): AISessionScoreRubricTemplate {
|
|
9520
|
+
return {
|
|
9521
|
+
rubric: isSet(object.rubric) ? aISessionScoreRubricFromJSON(object.rubric) : 0,
|
|
9522
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
9523
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
9524
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
9525
|
+
criteria: globalThis.Array.isArray(object?.criteria)
|
|
9526
|
+
? object.criteria.map((e: any) => AISessionScoreRubricCriterion.fromJSON(e))
|
|
9527
|
+
: [],
|
|
9528
|
+
aim: isSet(object.aim) ? globalThis.String(object.aim) : "",
|
|
9529
|
+
};
|
|
9530
|
+
},
|
|
9531
|
+
|
|
9532
|
+
toJSON(message: AISessionScoreRubricTemplate): unknown {
|
|
9533
|
+
const obj: any = {};
|
|
9534
|
+
if (message.rubric !== 0) {
|
|
9535
|
+
obj.rubric = aISessionScoreRubricToJSON(message.rubric);
|
|
9536
|
+
}
|
|
9537
|
+
if (message.name !== "") {
|
|
9538
|
+
obj.name = message.name;
|
|
9539
|
+
}
|
|
9540
|
+
if (message.description !== "") {
|
|
9541
|
+
obj.description = message.description;
|
|
9542
|
+
}
|
|
9543
|
+
if (message.version !== "") {
|
|
9544
|
+
obj.version = message.version;
|
|
9545
|
+
}
|
|
9546
|
+
if (message.criteria?.length) {
|
|
9547
|
+
obj.criteria = message.criteria.map((e) => AISessionScoreRubricCriterion.toJSON(e));
|
|
9548
|
+
}
|
|
9549
|
+
if (message.aim !== "") {
|
|
9550
|
+
obj.aim = message.aim;
|
|
9551
|
+
}
|
|
9552
|
+
return obj;
|
|
9553
|
+
},
|
|
9554
|
+
|
|
9555
|
+
create<I extends Exact<DeepPartial<AISessionScoreRubricTemplate>, I>>(base?: I): AISessionScoreRubricTemplate {
|
|
9556
|
+
return AISessionScoreRubricTemplate.fromPartial(base ?? ({} as any));
|
|
9557
|
+
},
|
|
9558
|
+
fromPartial<I extends Exact<DeepPartial<AISessionScoreRubricTemplate>, I>>(object: I): AISessionScoreRubricTemplate {
|
|
9559
|
+
const message = createBaseAISessionScoreRubricTemplate();
|
|
9560
|
+
message.rubric = object.rubric ?? 0;
|
|
9561
|
+
message.name = object.name ?? "";
|
|
9562
|
+
message.description = object.description ?? "";
|
|
9563
|
+
message.version = object.version ?? "";
|
|
9564
|
+
message.criteria = object.criteria?.map((e) => AISessionScoreRubricCriterion.fromPartial(e)) || [];
|
|
9565
|
+
message.aim = object.aim ?? "";
|
|
9566
|
+
return message;
|
|
9567
|
+
},
|
|
9568
|
+
};
|
|
9569
|
+
|
|
9570
|
+
function createBaseAISessionScoreRubricCriterion(): AISessionScoreRubricCriterion {
|
|
9571
|
+
return { key: "", name: "", weight: 0, tooltip: "" };
|
|
9572
|
+
}
|
|
9573
|
+
|
|
9574
|
+
export const AISessionScoreRubricCriterion: MessageFns<AISessionScoreRubricCriterion> = {
|
|
9575
|
+
encode(message: AISessionScoreRubricCriterion, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9576
|
+
if (message.key !== "") {
|
|
9577
|
+
writer.uint32(10).string(message.key);
|
|
9578
|
+
}
|
|
9579
|
+
if (message.name !== "") {
|
|
9580
|
+
writer.uint32(18).string(message.name);
|
|
9581
|
+
}
|
|
9582
|
+
if (message.weight !== 0) {
|
|
9583
|
+
writer.uint32(24).uint32(message.weight);
|
|
9584
|
+
}
|
|
9585
|
+
if (message.tooltip !== "") {
|
|
9586
|
+
writer.uint32(34).string(message.tooltip);
|
|
9587
|
+
}
|
|
9588
|
+
return writer;
|
|
9589
|
+
},
|
|
9590
|
+
|
|
9591
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionScoreRubricCriterion {
|
|
9592
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9593
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9594
|
+
if (previousRecursionDepth >= 100) {
|
|
9595
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9596
|
+
}
|
|
9597
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9598
|
+
try {
|
|
9599
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9600
|
+
const message = createBaseAISessionScoreRubricCriterion();
|
|
9601
|
+
while (reader.pos < end) {
|
|
9602
|
+
const tag = reader.uint32();
|
|
9603
|
+
switch (tag >>> 3) {
|
|
9604
|
+
case 1: {
|
|
9605
|
+
if (tag !== 10) {
|
|
9606
|
+
break;
|
|
9607
|
+
}
|
|
9608
|
+
|
|
9609
|
+
message.key = reader.string();
|
|
9610
|
+
continue;
|
|
9611
|
+
}
|
|
9612
|
+
case 2: {
|
|
9613
|
+
if (tag !== 18) {
|
|
9614
|
+
break;
|
|
9615
|
+
}
|
|
9616
|
+
|
|
9617
|
+
message.name = reader.string();
|
|
9618
|
+
continue;
|
|
9619
|
+
}
|
|
9620
|
+
case 3: {
|
|
9621
|
+
if (tag !== 24) {
|
|
9622
|
+
break;
|
|
9623
|
+
}
|
|
9624
|
+
|
|
9625
|
+
message.weight = reader.uint32();
|
|
9626
|
+
continue;
|
|
9627
|
+
}
|
|
9628
|
+
case 4: {
|
|
9629
|
+
if (tag !== 34) {
|
|
9630
|
+
break;
|
|
9631
|
+
}
|
|
9632
|
+
|
|
9633
|
+
message.tooltip = reader.string();
|
|
9634
|
+
continue;
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9637
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9638
|
+
break;
|
|
9639
|
+
}
|
|
9640
|
+
reader.skip(tag & 7);
|
|
9641
|
+
}
|
|
9642
|
+
return message;
|
|
9643
|
+
} finally {
|
|
9644
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9645
|
+
}
|
|
9646
|
+
},
|
|
9647
|
+
|
|
9648
|
+
fromJSON(object: any): AISessionScoreRubricCriterion {
|
|
9649
|
+
return {
|
|
9650
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
9651
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
9652
|
+
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
|
9653
|
+
tooltip: isSet(object.tooltip) ? globalThis.String(object.tooltip) : "",
|
|
9654
|
+
};
|
|
9655
|
+
},
|
|
9656
|
+
|
|
9657
|
+
toJSON(message: AISessionScoreRubricCriterion): unknown {
|
|
9658
|
+
const obj: any = {};
|
|
9659
|
+
if (message.key !== "") {
|
|
9660
|
+
obj.key = message.key;
|
|
9661
|
+
}
|
|
9662
|
+
if (message.name !== "") {
|
|
9663
|
+
obj.name = message.name;
|
|
9664
|
+
}
|
|
9665
|
+
if (message.weight !== 0) {
|
|
9666
|
+
obj.weight = Math.round(message.weight);
|
|
9667
|
+
}
|
|
9668
|
+
if (message.tooltip !== "") {
|
|
9669
|
+
obj.tooltip = message.tooltip;
|
|
9670
|
+
}
|
|
9671
|
+
return obj;
|
|
9672
|
+
},
|
|
9673
|
+
|
|
9674
|
+
create<I extends Exact<DeepPartial<AISessionScoreRubricCriterion>, I>>(base?: I): AISessionScoreRubricCriterion {
|
|
9675
|
+
return AISessionScoreRubricCriterion.fromPartial(base ?? ({} as any));
|
|
9676
|
+
},
|
|
9677
|
+
fromPartial<I extends Exact<DeepPartial<AISessionScoreRubricCriterion>, I>>(
|
|
9678
|
+
object: I,
|
|
9679
|
+
): AISessionScoreRubricCriterion {
|
|
9680
|
+
const message = createBaseAISessionScoreRubricCriterion();
|
|
9681
|
+
message.key = object.key ?? "";
|
|
9682
|
+
message.name = object.name ?? "";
|
|
9683
|
+
message.weight = object.weight ?? 0;
|
|
9684
|
+
message.tooltip = object.tooltip ?? "";
|
|
9685
|
+
return message;
|
|
9686
|
+
},
|
|
9687
|
+
};
|
|
9688
|
+
|
|
9689
|
+
function createBaseGetProjectSessionScoreRubricRequest(): GetProjectSessionScoreRubricRequest {
|
|
9690
|
+
return { organizationId: "", projectId: "" };
|
|
9691
|
+
}
|
|
9692
|
+
|
|
9693
|
+
export const GetProjectSessionScoreRubricRequest: MessageFns<GetProjectSessionScoreRubricRequest> = {
|
|
9694
|
+
encode(message: GetProjectSessionScoreRubricRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9695
|
+
if (message.organizationId !== "") {
|
|
9696
|
+
writer.uint32(10).string(message.organizationId);
|
|
9697
|
+
}
|
|
9698
|
+
if (message.projectId !== "") {
|
|
9699
|
+
writer.uint32(18).string(message.projectId);
|
|
9700
|
+
}
|
|
9701
|
+
return writer;
|
|
9702
|
+
},
|
|
9703
|
+
|
|
9704
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetProjectSessionScoreRubricRequest {
|
|
9705
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9706
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9707
|
+
if (previousRecursionDepth >= 100) {
|
|
9708
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9709
|
+
}
|
|
9710
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9711
|
+
try {
|
|
9712
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9713
|
+
const message = createBaseGetProjectSessionScoreRubricRequest();
|
|
9714
|
+
while (reader.pos < end) {
|
|
9715
|
+
const tag = reader.uint32();
|
|
9716
|
+
switch (tag >>> 3) {
|
|
9717
|
+
case 1: {
|
|
9718
|
+
if (tag !== 10) {
|
|
9719
|
+
break;
|
|
9720
|
+
}
|
|
9721
|
+
|
|
9722
|
+
message.organizationId = reader.string();
|
|
9723
|
+
continue;
|
|
9724
|
+
}
|
|
9725
|
+
case 2: {
|
|
9726
|
+
if (tag !== 18) {
|
|
9727
|
+
break;
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9730
|
+
message.projectId = reader.string();
|
|
9731
|
+
continue;
|
|
9732
|
+
}
|
|
9733
|
+
}
|
|
9734
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9735
|
+
break;
|
|
9736
|
+
}
|
|
9737
|
+
reader.skip(tag & 7);
|
|
9738
|
+
}
|
|
9739
|
+
return message;
|
|
9740
|
+
} finally {
|
|
9741
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9742
|
+
}
|
|
9743
|
+
},
|
|
9744
|
+
|
|
9745
|
+
fromJSON(object: any): GetProjectSessionScoreRubricRequest {
|
|
9746
|
+
return {
|
|
9747
|
+
organizationId: isSet(object.organizationId)
|
|
9748
|
+
? globalThis.String(object.organizationId)
|
|
9749
|
+
: isSet(object.organization_id)
|
|
9750
|
+
? globalThis.String(object.organization_id)
|
|
9751
|
+
: "",
|
|
9752
|
+
projectId: isSet(object.projectId)
|
|
9753
|
+
? globalThis.String(object.projectId)
|
|
9754
|
+
: isSet(object.project_id)
|
|
9755
|
+
? globalThis.String(object.project_id)
|
|
9756
|
+
: "",
|
|
9757
|
+
};
|
|
9758
|
+
},
|
|
9759
|
+
|
|
9760
|
+
toJSON(message: GetProjectSessionScoreRubricRequest): unknown {
|
|
9761
|
+
const obj: any = {};
|
|
9762
|
+
if (message.organizationId !== "") {
|
|
9763
|
+
obj.organizationId = message.organizationId;
|
|
9764
|
+
}
|
|
9765
|
+
if (message.projectId !== "") {
|
|
9766
|
+
obj.projectId = message.projectId;
|
|
9767
|
+
}
|
|
9768
|
+
return obj;
|
|
9769
|
+
},
|
|
9770
|
+
|
|
9771
|
+
create<I extends Exact<DeepPartial<GetProjectSessionScoreRubricRequest>, I>>(
|
|
9772
|
+
base?: I,
|
|
9773
|
+
): GetProjectSessionScoreRubricRequest {
|
|
9774
|
+
return GetProjectSessionScoreRubricRequest.fromPartial(base ?? ({} as any));
|
|
9775
|
+
},
|
|
9776
|
+
fromPartial<I extends Exact<DeepPartial<GetProjectSessionScoreRubricRequest>, I>>(
|
|
9777
|
+
object: I,
|
|
9778
|
+
): GetProjectSessionScoreRubricRequest {
|
|
9779
|
+
const message = createBaseGetProjectSessionScoreRubricRequest();
|
|
9780
|
+
message.organizationId = object.organizationId ?? "";
|
|
9781
|
+
message.projectId = object.projectId ?? "";
|
|
9782
|
+
return message;
|
|
9783
|
+
},
|
|
9784
|
+
};
|
|
9785
|
+
|
|
9786
|
+
function createBaseGetProjectSessionScoreRubricResponse(): GetProjectSessionScoreRubricResponse {
|
|
9787
|
+
return { status: undefined, projectRubric: undefined };
|
|
9788
|
+
}
|
|
9789
|
+
|
|
9790
|
+
export const GetProjectSessionScoreRubricResponse: MessageFns<GetProjectSessionScoreRubricResponse> = {
|
|
9791
|
+
encode(message: GetProjectSessionScoreRubricResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9792
|
+
if (message.status !== undefined) {
|
|
9793
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
9794
|
+
}
|
|
9795
|
+
if (message.projectRubric !== undefined) {
|
|
9796
|
+
ProjectSessionScoreRubric.encode(message.projectRubric, writer.uint32(18).fork()).join();
|
|
9797
|
+
}
|
|
9798
|
+
return writer;
|
|
9799
|
+
},
|
|
9800
|
+
|
|
9801
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetProjectSessionScoreRubricResponse {
|
|
9802
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9803
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9804
|
+
if (previousRecursionDepth >= 100) {
|
|
9805
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9806
|
+
}
|
|
9807
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9808
|
+
try {
|
|
9809
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9810
|
+
const message = createBaseGetProjectSessionScoreRubricResponse();
|
|
9811
|
+
while (reader.pos < end) {
|
|
9812
|
+
const tag = reader.uint32();
|
|
9813
|
+
switch (tag >>> 3) {
|
|
9814
|
+
case 1: {
|
|
9815
|
+
if (tag !== 10) {
|
|
9816
|
+
break;
|
|
9817
|
+
}
|
|
9818
|
+
|
|
9819
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
9820
|
+
continue;
|
|
9821
|
+
}
|
|
9822
|
+
case 2: {
|
|
9823
|
+
if (tag !== 18) {
|
|
9824
|
+
break;
|
|
9825
|
+
}
|
|
9826
|
+
|
|
9827
|
+
message.projectRubric = ProjectSessionScoreRubric.decode(reader, reader.uint32());
|
|
9828
|
+
continue;
|
|
9829
|
+
}
|
|
9830
|
+
}
|
|
9831
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9832
|
+
break;
|
|
9833
|
+
}
|
|
9834
|
+
reader.skip(tag & 7);
|
|
9835
|
+
}
|
|
9836
|
+
return message;
|
|
9837
|
+
} finally {
|
|
9838
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9839
|
+
}
|
|
9840
|
+
},
|
|
9841
|
+
|
|
9842
|
+
fromJSON(object: any): GetProjectSessionScoreRubricResponse {
|
|
9843
|
+
return {
|
|
9844
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
9845
|
+
projectRubric: isSet(object.projectRubric)
|
|
9846
|
+
? ProjectSessionScoreRubric.fromJSON(object.projectRubric)
|
|
9847
|
+
: isSet(object.project_rubric)
|
|
9848
|
+
? ProjectSessionScoreRubric.fromJSON(object.project_rubric)
|
|
9849
|
+
: undefined,
|
|
9850
|
+
};
|
|
9851
|
+
},
|
|
9852
|
+
|
|
9853
|
+
toJSON(message: GetProjectSessionScoreRubricResponse): unknown {
|
|
9854
|
+
const obj: any = {};
|
|
9855
|
+
if (message.status !== undefined) {
|
|
9856
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
9857
|
+
}
|
|
9858
|
+
if (message.projectRubric !== undefined) {
|
|
9859
|
+
obj.projectRubric = ProjectSessionScoreRubric.toJSON(message.projectRubric);
|
|
9860
|
+
}
|
|
9861
|
+
return obj;
|
|
9862
|
+
},
|
|
9863
|
+
|
|
9864
|
+
create<I extends Exact<DeepPartial<GetProjectSessionScoreRubricResponse>, I>>(
|
|
9865
|
+
base?: I,
|
|
9866
|
+
): GetProjectSessionScoreRubricResponse {
|
|
9867
|
+
return GetProjectSessionScoreRubricResponse.fromPartial(base ?? ({} as any));
|
|
9868
|
+
},
|
|
9869
|
+
fromPartial<I extends Exact<DeepPartial<GetProjectSessionScoreRubricResponse>, I>>(
|
|
9870
|
+
object: I,
|
|
9871
|
+
): GetProjectSessionScoreRubricResponse {
|
|
9872
|
+
const message = createBaseGetProjectSessionScoreRubricResponse();
|
|
9873
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
9874
|
+
? ResponseStatus.fromPartial(object.status)
|
|
9875
|
+
: undefined;
|
|
9876
|
+
message.projectRubric = (object.projectRubric !== undefined && object.projectRubric !== null)
|
|
9877
|
+
? ProjectSessionScoreRubric.fromPartial(object.projectRubric)
|
|
9878
|
+
: undefined;
|
|
9879
|
+
return message;
|
|
9880
|
+
},
|
|
9881
|
+
};
|
|
9882
|
+
|
|
9883
|
+
function createBaseUpdateProjectSessionScoreRubricRequest(): UpdateProjectSessionScoreRubricRequest {
|
|
9884
|
+
return { organizationId: "", projectId: "", rubric: 0 };
|
|
9885
|
+
}
|
|
9886
|
+
|
|
9887
|
+
export const UpdateProjectSessionScoreRubricRequest: MessageFns<UpdateProjectSessionScoreRubricRequest> = {
|
|
9888
|
+
encode(message: UpdateProjectSessionScoreRubricRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9889
|
+
if (message.organizationId !== "") {
|
|
9890
|
+
writer.uint32(10).string(message.organizationId);
|
|
9891
|
+
}
|
|
9892
|
+
if (message.projectId !== "") {
|
|
9893
|
+
writer.uint32(18).string(message.projectId);
|
|
9894
|
+
}
|
|
9895
|
+
if (message.rubric !== 0) {
|
|
9896
|
+
writer.uint32(24).int32(message.rubric);
|
|
9897
|
+
}
|
|
9898
|
+
return writer;
|
|
9899
|
+
},
|
|
9900
|
+
|
|
9901
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateProjectSessionScoreRubricRequest {
|
|
9902
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9903
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9904
|
+
if (previousRecursionDepth >= 100) {
|
|
9905
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9906
|
+
}
|
|
9907
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9908
|
+
try {
|
|
9909
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9910
|
+
const message = createBaseUpdateProjectSessionScoreRubricRequest();
|
|
9911
|
+
while (reader.pos < end) {
|
|
9912
|
+
const tag = reader.uint32();
|
|
9913
|
+
switch (tag >>> 3) {
|
|
9914
|
+
case 1: {
|
|
9915
|
+
if (tag !== 10) {
|
|
9916
|
+
break;
|
|
9917
|
+
}
|
|
9918
|
+
|
|
9919
|
+
message.organizationId = reader.string();
|
|
9920
|
+
continue;
|
|
9921
|
+
}
|
|
9922
|
+
case 2: {
|
|
9923
|
+
if (tag !== 18) {
|
|
9924
|
+
break;
|
|
9925
|
+
}
|
|
9926
|
+
|
|
9927
|
+
message.projectId = reader.string();
|
|
9928
|
+
continue;
|
|
9929
|
+
}
|
|
9930
|
+
case 3: {
|
|
9931
|
+
if (tag !== 24) {
|
|
9932
|
+
break;
|
|
9933
|
+
}
|
|
9934
|
+
|
|
9935
|
+
message.rubric = reader.int32() as any;
|
|
9936
|
+
continue;
|
|
9937
|
+
}
|
|
9938
|
+
}
|
|
9939
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9940
|
+
break;
|
|
9941
|
+
}
|
|
9942
|
+
reader.skip(tag & 7);
|
|
9943
|
+
}
|
|
9944
|
+
return message;
|
|
9945
|
+
} finally {
|
|
9946
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9947
|
+
}
|
|
9948
|
+
},
|
|
9949
|
+
|
|
9950
|
+
fromJSON(object: any): UpdateProjectSessionScoreRubricRequest {
|
|
9951
|
+
return {
|
|
9952
|
+
organizationId: isSet(object.organizationId)
|
|
9953
|
+
? globalThis.String(object.organizationId)
|
|
9954
|
+
: isSet(object.organization_id)
|
|
9955
|
+
? globalThis.String(object.organization_id)
|
|
9956
|
+
: "",
|
|
9957
|
+
projectId: isSet(object.projectId)
|
|
9958
|
+
? globalThis.String(object.projectId)
|
|
9959
|
+
: isSet(object.project_id)
|
|
9960
|
+
? globalThis.String(object.project_id)
|
|
9961
|
+
: "",
|
|
9962
|
+
rubric: isSet(object.rubric) ? aISessionScoreRubricFromJSON(object.rubric) : 0,
|
|
9963
|
+
};
|
|
9964
|
+
},
|
|
9965
|
+
|
|
9966
|
+
toJSON(message: UpdateProjectSessionScoreRubricRequest): unknown {
|
|
9967
|
+
const obj: any = {};
|
|
9968
|
+
if (message.organizationId !== "") {
|
|
9969
|
+
obj.organizationId = message.organizationId;
|
|
9970
|
+
}
|
|
9971
|
+
if (message.projectId !== "") {
|
|
9972
|
+
obj.projectId = message.projectId;
|
|
9973
|
+
}
|
|
9974
|
+
if (message.rubric !== 0) {
|
|
9975
|
+
obj.rubric = aISessionScoreRubricToJSON(message.rubric);
|
|
9976
|
+
}
|
|
9977
|
+
return obj;
|
|
9978
|
+
},
|
|
9979
|
+
|
|
9980
|
+
create<I extends Exact<DeepPartial<UpdateProjectSessionScoreRubricRequest>, I>>(
|
|
9981
|
+
base?: I,
|
|
9982
|
+
): UpdateProjectSessionScoreRubricRequest {
|
|
9983
|
+
return UpdateProjectSessionScoreRubricRequest.fromPartial(base ?? ({} as any));
|
|
9984
|
+
},
|
|
9985
|
+
fromPartial<I extends Exact<DeepPartial<UpdateProjectSessionScoreRubricRequest>, I>>(
|
|
9986
|
+
object: I,
|
|
9987
|
+
): UpdateProjectSessionScoreRubricRequest {
|
|
9988
|
+
const message = createBaseUpdateProjectSessionScoreRubricRequest();
|
|
9989
|
+
message.organizationId = object.organizationId ?? "";
|
|
9990
|
+
message.projectId = object.projectId ?? "";
|
|
9991
|
+
message.rubric = object.rubric ?? 0;
|
|
9992
|
+
return message;
|
|
9993
|
+
},
|
|
9994
|
+
};
|
|
9995
|
+
|
|
9996
|
+
function createBaseUpdateProjectSessionScoreRubricResponse(): UpdateProjectSessionScoreRubricResponse {
|
|
9997
|
+
return { status: undefined, projectRubric: undefined };
|
|
9998
|
+
}
|
|
9999
|
+
|
|
10000
|
+
export const UpdateProjectSessionScoreRubricResponse: MessageFns<UpdateProjectSessionScoreRubricResponse> = {
|
|
10001
|
+
encode(message: UpdateProjectSessionScoreRubricResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
10002
|
+
if (message.status !== undefined) {
|
|
10003
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
10004
|
+
}
|
|
10005
|
+
if (message.projectRubric !== undefined) {
|
|
10006
|
+
ProjectSessionScoreRubric.encode(message.projectRubric, writer.uint32(18).fork()).join();
|
|
10007
|
+
}
|
|
10008
|
+
return writer;
|
|
10009
|
+
},
|
|
10010
|
+
|
|
10011
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpdateProjectSessionScoreRubricResponse {
|
|
10012
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10013
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
10014
|
+
if (previousRecursionDepth >= 100) {
|
|
10015
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
10016
|
+
}
|
|
10017
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
10018
|
+
try {
|
|
10019
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10020
|
+
const message = createBaseUpdateProjectSessionScoreRubricResponse();
|
|
10021
|
+
while (reader.pos < end) {
|
|
10022
|
+
const tag = reader.uint32();
|
|
10023
|
+
switch (tag >>> 3) {
|
|
10024
|
+
case 1: {
|
|
10025
|
+
if (tag !== 10) {
|
|
10026
|
+
break;
|
|
10027
|
+
}
|
|
10028
|
+
|
|
10029
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
10030
|
+
continue;
|
|
10031
|
+
}
|
|
10032
|
+
case 2: {
|
|
10033
|
+
if (tag !== 18) {
|
|
10034
|
+
break;
|
|
10035
|
+
}
|
|
10036
|
+
|
|
10037
|
+
message.projectRubric = ProjectSessionScoreRubric.decode(reader, reader.uint32());
|
|
10038
|
+
continue;
|
|
10039
|
+
}
|
|
10040
|
+
}
|
|
10041
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10042
|
+
break;
|
|
10043
|
+
}
|
|
10044
|
+
reader.skip(tag & 7);
|
|
10045
|
+
}
|
|
10046
|
+
return message;
|
|
10047
|
+
} finally {
|
|
10048
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
10049
|
+
}
|
|
10050
|
+
},
|
|
10051
|
+
|
|
10052
|
+
fromJSON(object: any): UpdateProjectSessionScoreRubricResponse {
|
|
10053
|
+
return {
|
|
10054
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
10055
|
+
projectRubric: isSet(object.projectRubric)
|
|
10056
|
+
? ProjectSessionScoreRubric.fromJSON(object.projectRubric)
|
|
10057
|
+
: isSet(object.project_rubric)
|
|
10058
|
+
? ProjectSessionScoreRubric.fromJSON(object.project_rubric)
|
|
10059
|
+
: undefined,
|
|
10060
|
+
};
|
|
10061
|
+
},
|
|
10062
|
+
|
|
10063
|
+
toJSON(message: UpdateProjectSessionScoreRubricResponse): unknown {
|
|
10064
|
+
const obj: any = {};
|
|
10065
|
+
if (message.status !== undefined) {
|
|
10066
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
10067
|
+
}
|
|
10068
|
+
if (message.projectRubric !== undefined) {
|
|
10069
|
+
obj.projectRubric = ProjectSessionScoreRubric.toJSON(message.projectRubric);
|
|
10070
|
+
}
|
|
10071
|
+
return obj;
|
|
10072
|
+
},
|
|
10073
|
+
|
|
10074
|
+
create<I extends Exact<DeepPartial<UpdateProjectSessionScoreRubricResponse>, I>>(
|
|
10075
|
+
base?: I,
|
|
10076
|
+
): UpdateProjectSessionScoreRubricResponse {
|
|
10077
|
+
return UpdateProjectSessionScoreRubricResponse.fromPartial(base ?? ({} as any));
|
|
10078
|
+
},
|
|
10079
|
+
fromPartial<I extends Exact<DeepPartial<UpdateProjectSessionScoreRubricResponse>, I>>(
|
|
10080
|
+
object: I,
|
|
10081
|
+
): UpdateProjectSessionScoreRubricResponse {
|
|
10082
|
+
const message = createBaseUpdateProjectSessionScoreRubricResponse();
|
|
10083
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
10084
|
+
? ResponseStatus.fromPartial(object.status)
|
|
10085
|
+
: undefined;
|
|
10086
|
+
message.projectRubric = (object.projectRubric !== undefined && object.projectRubric !== null)
|
|
10087
|
+
? ProjectSessionScoreRubric.fromPartial(object.projectRubric)
|
|
10088
|
+
: undefined;
|
|
10089
|
+
return message;
|
|
10090
|
+
},
|
|
10091
|
+
};
|
|
10092
|
+
|
|
10093
|
+
function createBaseProjectSessionScoreRubric(): ProjectSessionScoreRubric {
|
|
10094
|
+
return { rubric: 0, updateUserId: "", updateTime: undefined };
|
|
10095
|
+
}
|
|
10096
|
+
|
|
10097
|
+
export const ProjectSessionScoreRubric: MessageFns<ProjectSessionScoreRubric> = {
|
|
10098
|
+
encode(message: ProjectSessionScoreRubric, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
10099
|
+
if (message.rubric !== 0) {
|
|
10100
|
+
writer.uint32(8).int32(message.rubric);
|
|
10101
|
+
}
|
|
10102
|
+
if (message.updateUserId !== "") {
|
|
10103
|
+
writer.uint32(18).string(message.updateUserId);
|
|
10104
|
+
}
|
|
10105
|
+
if (message.updateTime !== undefined) {
|
|
10106
|
+
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(26).fork()).join();
|
|
10107
|
+
}
|
|
10108
|
+
return writer;
|
|
10109
|
+
},
|
|
10110
|
+
|
|
10111
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProjectSessionScoreRubric {
|
|
10112
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10113
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
10114
|
+
if (previousRecursionDepth >= 100) {
|
|
10115
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
10116
|
+
}
|
|
10117
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
10118
|
+
try {
|
|
10119
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10120
|
+
const message = createBaseProjectSessionScoreRubric();
|
|
10121
|
+
while (reader.pos < end) {
|
|
10122
|
+
const tag = reader.uint32();
|
|
10123
|
+
switch (tag >>> 3) {
|
|
10124
|
+
case 1: {
|
|
10125
|
+
if (tag !== 8) {
|
|
10126
|
+
break;
|
|
10127
|
+
}
|
|
10128
|
+
|
|
10129
|
+
message.rubric = reader.int32() as any;
|
|
10130
|
+
continue;
|
|
10131
|
+
}
|
|
10132
|
+
case 2: {
|
|
10133
|
+
if (tag !== 18) {
|
|
10134
|
+
break;
|
|
10135
|
+
}
|
|
10136
|
+
|
|
10137
|
+
message.updateUserId = reader.string();
|
|
10138
|
+
continue;
|
|
10139
|
+
}
|
|
10140
|
+
case 3: {
|
|
10141
|
+
if (tag !== 26) {
|
|
10142
|
+
break;
|
|
10143
|
+
}
|
|
10144
|
+
|
|
10145
|
+
message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10146
|
+
continue;
|
|
10147
|
+
}
|
|
10148
|
+
}
|
|
10149
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10150
|
+
break;
|
|
10151
|
+
}
|
|
10152
|
+
reader.skip(tag & 7);
|
|
10153
|
+
}
|
|
10154
|
+
return message;
|
|
10155
|
+
} finally {
|
|
10156
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
10157
|
+
}
|
|
10158
|
+
},
|
|
10159
|
+
|
|
10160
|
+
fromJSON(object: any): ProjectSessionScoreRubric {
|
|
10161
|
+
return {
|
|
10162
|
+
rubric: isSet(object.rubric) ? aISessionScoreRubricFromJSON(object.rubric) : 0,
|
|
10163
|
+
updateUserId: isSet(object.updateUserId)
|
|
10164
|
+
? globalThis.String(object.updateUserId)
|
|
10165
|
+
: isSet(object.update_user_id)
|
|
10166
|
+
? globalThis.String(object.update_user_id)
|
|
10167
|
+
: "",
|
|
10168
|
+
updateTime: isSet(object.updateTime)
|
|
10169
|
+
? fromJsonTimestamp(object.updateTime)
|
|
10170
|
+
: isSet(object.update_time)
|
|
10171
|
+
? fromJsonTimestamp(object.update_time)
|
|
10172
|
+
: undefined,
|
|
10173
|
+
};
|
|
10174
|
+
},
|
|
10175
|
+
|
|
10176
|
+
toJSON(message: ProjectSessionScoreRubric): unknown {
|
|
10177
|
+
const obj: any = {};
|
|
10178
|
+
if (message.rubric !== 0) {
|
|
10179
|
+
obj.rubric = aISessionScoreRubricToJSON(message.rubric);
|
|
10180
|
+
}
|
|
10181
|
+
if (message.updateUserId !== "") {
|
|
10182
|
+
obj.updateUserId = message.updateUserId;
|
|
10183
|
+
}
|
|
10184
|
+
if (message.updateTime !== undefined) {
|
|
10185
|
+
obj.updateTime = message.updateTime.toISOString();
|
|
10186
|
+
}
|
|
10187
|
+
return obj;
|
|
10188
|
+
},
|
|
10189
|
+
|
|
10190
|
+
create<I extends Exact<DeepPartial<ProjectSessionScoreRubric>, I>>(base?: I): ProjectSessionScoreRubric {
|
|
10191
|
+
return ProjectSessionScoreRubric.fromPartial(base ?? ({} as any));
|
|
10192
|
+
},
|
|
10193
|
+
fromPartial<I extends Exact<DeepPartial<ProjectSessionScoreRubric>, I>>(object: I): ProjectSessionScoreRubric {
|
|
10194
|
+
const message = createBaseProjectSessionScoreRubric();
|
|
10195
|
+
message.rubric = object.rubric ?? 0;
|
|
10196
|
+
message.updateUserId = object.updateUserId ?? "";
|
|
10197
|
+
message.updateTime = object.updateTime ?? undefined;
|
|
10198
|
+
return message;
|
|
10199
|
+
},
|
|
10200
|
+
};
|
|
10201
|
+
|
|
9047
10202
|
function createBaseSessionTokenTimelineRequest(): SessionTokenTimelineRequest {
|
|
9048
10203
|
return { organizationId: "", projectId: "", sessionId: "", sourceSystem: "" };
|
|
9049
10204
|
}
|
|
@@ -24090,6 +25245,7 @@ function createBaseAISessionScore(): AISessionScore {
|
|
|
24090
25245
|
scoreVersion: "",
|
|
24091
25246
|
inputSessionVersion: 0,
|
|
24092
25247
|
scoredAt: undefined,
|
|
25248
|
+
rubric: 0,
|
|
24093
25249
|
};
|
|
24094
25250
|
}
|
|
24095
25251
|
|
|
@@ -24119,6 +25275,9 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24119
25275
|
if (message.scoredAt !== undefined) {
|
|
24120
25276
|
Timestamp.encode(toTimestamp(message.scoredAt), writer.uint32(66).fork()).join();
|
|
24121
25277
|
}
|
|
25278
|
+
if (message.rubric !== 0) {
|
|
25279
|
+
writer.uint32(72).int32(message.rubric);
|
|
25280
|
+
}
|
|
24122
25281
|
return writer;
|
|
24123
25282
|
},
|
|
24124
25283
|
|
|
@@ -24199,6 +25358,14 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24199
25358
|
message.scoredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
24200
25359
|
continue;
|
|
24201
25360
|
}
|
|
25361
|
+
case 9: {
|
|
25362
|
+
if (tag !== 72) {
|
|
25363
|
+
break;
|
|
25364
|
+
}
|
|
25365
|
+
|
|
25366
|
+
message.rubric = reader.int32() as any;
|
|
25367
|
+
continue;
|
|
25368
|
+
}
|
|
24202
25369
|
}
|
|
24203
25370
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24204
25371
|
break;
|
|
@@ -24239,6 +25406,7 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24239
25406
|
: isSet(object.scored_at)
|
|
24240
25407
|
? fromJsonTimestamp(object.scored_at)
|
|
24241
25408
|
: undefined,
|
|
25409
|
+
rubric: isSet(object.rubric) ? aISessionScoreRubricFromJSON(object.rubric) : 0,
|
|
24242
25410
|
};
|
|
24243
25411
|
},
|
|
24244
25412
|
|
|
@@ -24268,6 +25436,9 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24268
25436
|
if (message.scoredAt !== undefined) {
|
|
24269
25437
|
obj.scoredAt = message.scoredAt.toISOString();
|
|
24270
25438
|
}
|
|
25439
|
+
if (message.rubric !== 0) {
|
|
25440
|
+
obj.rubric = aISessionScoreRubricToJSON(message.rubric);
|
|
25441
|
+
}
|
|
24271
25442
|
return obj;
|
|
24272
25443
|
},
|
|
24273
25444
|
|
|
@@ -24286,6 +25457,7 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24286
25457
|
message.scoreVersion = object.scoreVersion ?? "";
|
|
24287
25458
|
message.inputSessionVersion = object.inputSessionVersion ?? 0;
|
|
24288
25459
|
message.scoredAt = object.scoredAt ?? undefined;
|
|
25460
|
+
message.rubric = object.rubric ?? 0;
|
|
24289
25461
|
return message;
|
|
24290
25462
|
},
|
|
24291
25463
|
};
|
|
@@ -34403,6 +35575,27 @@ export interface AIGatewayService {
|
|
|
34403
35575
|
* the key. Mirrors ai.api.v1.
|
|
34404
35576
|
*/
|
|
34405
35577
|
GetLabelCatalog(request: GetLabelCatalogRequest, metadata?: Metadata): Promise<GetLabelCatalogResponse>;
|
|
35578
|
+
/**
|
|
35579
|
+
* The rubric templates a team can score its sessions on (STANDARD, the default, first): each one's name,
|
|
35580
|
+
* description, version and criteria. Mirrors ai.api.v1.
|
|
35581
|
+
*/
|
|
35582
|
+
GetSessionScoreRubricCatalog(
|
|
35583
|
+
request: GetSessionScoreRubricCatalogRequest,
|
|
35584
|
+
metadata?: Metadata,
|
|
35585
|
+
): Promise<GetSessionScoreRubricCatalogResponse>;
|
|
35586
|
+
/** The template the team's sessions are scored on: the one an org admin picked, or STANDARD. Mirrors ai.api.v1. */
|
|
35587
|
+
GetProjectSessionScoreRubric(
|
|
35588
|
+
request: GetProjectSessionScoreRubricRequest,
|
|
35589
|
+
metadata?: Metadata,
|
|
35590
|
+
): Promise<GetProjectSessionScoreRubricResponse>;
|
|
35591
|
+
/**
|
|
35592
|
+
* Set the template the team's sessions are scored on. Org admins only. Sessions are graded on it from the scorer's
|
|
35593
|
+
* next run; one already scored only when it next changes. Mirrors ai.api.v1.
|
|
35594
|
+
*/
|
|
35595
|
+
UpdateProjectSessionScoreRubric(
|
|
35596
|
+
request: UpdateProjectSessionScoreRubricRequest,
|
|
35597
|
+
metadata?: Metadata,
|
|
35598
|
+
): Promise<UpdateProjectSessionScoreRubricResponse>;
|
|
34406
35599
|
/**
|
|
34407
35600
|
* Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
|
|
34408
35601
|
* per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
|
|
@@ -34496,6 +35689,9 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34496
35689
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
34497
35690
|
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
34498
35691
|
this.GetLabelCatalog = this.GetLabelCatalog.bind(this);
|
|
35692
|
+
this.GetSessionScoreRubricCatalog = this.GetSessionScoreRubricCatalog.bind(this);
|
|
35693
|
+
this.GetProjectSessionScoreRubric = this.GetProjectSessionScoreRubric.bind(this);
|
|
35694
|
+
this.UpdateProjectSessionScoreRubric = this.UpdateProjectSessionScoreRubric.bind(this);
|
|
34499
35695
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
34500
35696
|
this.ListRelayHeartbeats = this.ListRelayHeartbeats.bind(this);
|
|
34501
35697
|
this.ListIssueCosts = this.ListIssueCosts.bind(this);
|
|
@@ -34728,6 +35924,33 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34728
35924
|
return promise.then((data) => GetLabelCatalogResponse.decode(new BinaryReader(data)));
|
|
34729
35925
|
}
|
|
34730
35926
|
|
|
35927
|
+
GetSessionScoreRubricCatalog(
|
|
35928
|
+
request: GetSessionScoreRubricCatalogRequest,
|
|
35929
|
+
metadata?: Metadata,
|
|
35930
|
+
): Promise<GetSessionScoreRubricCatalogResponse> {
|
|
35931
|
+
const data = GetSessionScoreRubricCatalogRequest.encode(request).finish();
|
|
35932
|
+
const promise = this.rpc.request(this.service, "GetSessionScoreRubricCatalog", data, metadata);
|
|
35933
|
+
return promise.then((data) => GetSessionScoreRubricCatalogResponse.decode(new BinaryReader(data)));
|
|
35934
|
+
}
|
|
35935
|
+
|
|
35936
|
+
GetProjectSessionScoreRubric(
|
|
35937
|
+
request: GetProjectSessionScoreRubricRequest,
|
|
35938
|
+
metadata?: Metadata,
|
|
35939
|
+
): Promise<GetProjectSessionScoreRubricResponse> {
|
|
35940
|
+
const data = GetProjectSessionScoreRubricRequest.encode(request).finish();
|
|
35941
|
+
const promise = this.rpc.request(this.service, "GetProjectSessionScoreRubric", data, metadata);
|
|
35942
|
+
return promise.then((data) => GetProjectSessionScoreRubricResponse.decode(new BinaryReader(data)));
|
|
35943
|
+
}
|
|
35944
|
+
|
|
35945
|
+
UpdateProjectSessionScoreRubric(
|
|
35946
|
+
request: UpdateProjectSessionScoreRubricRequest,
|
|
35947
|
+
metadata?: Metadata,
|
|
35948
|
+
): Promise<UpdateProjectSessionScoreRubricResponse> {
|
|
35949
|
+
const data = UpdateProjectSessionScoreRubricRequest.encode(request).finish();
|
|
35950
|
+
const promise = this.rpc.request(this.service, "UpdateProjectSessionScoreRubric", data, metadata);
|
|
35951
|
+
return promise.then((data) => UpdateProjectSessionScoreRubricResponse.decode(new BinaryReader(data)));
|
|
35952
|
+
}
|
|
35953
|
+
|
|
34731
35954
|
StreamEntitlements(request: StreamEntitlementsRequest, metadata?: Metadata): Observable<EntitlementsSnapshot> {
|
|
34732
35955
|
const data = StreamEntitlementsRequest.encode(request).finish();
|
|
34733
35956
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamEntitlements", data, metadata);
|