@miradorlabs/web-grpc 3.0.0 → 3.2.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.
@@ -168,12 +168,18 @@ export interface AIReferenceName {
168
168
  updatedAt: Date | undefined;
169
169
  }
170
170
 
171
+ /** ListAllAIReferenceNamesRequest reads a whole global name table (AdminGatewayService, staff only). */
172
+ export interface ListAllAIReferenceNamesRequest {
173
+ }
174
+
175
+ /** UpdateAIReferenceNameRequest sets one global name's display name (AdminGatewayService, staff only). */
171
176
  export interface UpdateAIReferenceNameRequest {
172
- organizationId: string;
173
- projectId: string;
174
177
  /** Required, except that "" is a valid effort name. */
175
178
  name: string;
176
- /** Required, non-blank. */
179
+ /**
180
+ * Required, with a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"), like every
181
+ * display name the registry holds.
182
+ */
177
183
  displayName: string;
178
184
  }
179
185
 
@@ -1240,23 +1246,69 @@ export const AIReferenceName: MessageFns<AIReferenceName> = {
1240
1246
  },
1241
1247
  };
1242
1248
 
1249
+ function createBaseListAllAIReferenceNamesRequest(): ListAllAIReferenceNamesRequest {
1250
+ return {};
1251
+ }
1252
+
1253
+ export const ListAllAIReferenceNamesRequest: MessageFns<ListAllAIReferenceNamesRequest> = {
1254
+ encode(_: ListAllAIReferenceNamesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1255
+ return writer;
1256
+ },
1257
+
1258
+ decode(input: BinaryReader | Uint8Array, length?: number): ListAllAIReferenceNamesRequest {
1259
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1260
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1261
+ if (previousRecursionDepth >= 100) {
1262
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1263
+ }
1264
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1265
+ try {
1266
+ const end = length === undefined ? reader.len : reader.pos + length;
1267
+ const message = createBaseListAllAIReferenceNamesRequest();
1268
+ while (reader.pos < end) {
1269
+ const tag = reader.uint32();
1270
+ switch (tag >>> 3) {
1271
+ }
1272
+ if ((tag & 7) === 4 || tag === 0) {
1273
+ break;
1274
+ }
1275
+ reader.skip(tag & 7);
1276
+ }
1277
+ return message;
1278
+ } finally {
1279
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1280
+ }
1281
+ },
1282
+
1283
+ fromJSON(_: any): ListAllAIReferenceNamesRequest {
1284
+ return {};
1285
+ },
1286
+
1287
+ toJSON(_: ListAllAIReferenceNamesRequest): unknown {
1288
+ const obj: any = {};
1289
+ return obj;
1290
+ },
1291
+
1292
+ create<I extends Exact<DeepPartial<ListAllAIReferenceNamesRequest>, I>>(base?: I): ListAllAIReferenceNamesRequest {
1293
+ return ListAllAIReferenceNamesRequest.fromPartial(base ?? ({} as any));
1294
+ },
1295
+ fromPartial<I extends Exact<DeepPartial<ListAllAIReferenceNamesRequest>, I>>(_: I): ListAllAIReferenceNamesRequest {
1296
+ const message = createBaseListAllAIReferenceNamesRequest();
1297
+ return message;
1298
+ },
1299
+ };
1300
+
1243
1301
  function createBaseUpdateAIReferenceNameRequest(): UpdateAIReferenceNameRequest {
1244
- return { organizationId: "", projectId: "", name: "", displayName: "" };
1302
+ return { name: "", displayName: "" };
1245
1303
  }
1246
1304
 
1247
1305
  export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameRequest> = {
1248
1306
  encode(message: UpdateAIReferenceNameRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1249
- if (message.organizationId !== "") {
1250
- writer.uint32(10).string(message.organizationId);
1251
- }
1252
- if (message.projectId !== "") {
1253
- writer.uint32(18).string(message.projectId);
1254
- }
1255
1307
  if (message.name !== "") {
1256
- writer.uint32(26).string(message.name);
1308
+ writer.uint32(10).string(message.name);
1257
1309
  }
1258
1310
  if (message.displayName !== "") {
1259
- writer.uint32(34).string(message.displayName);
1311
+ writer.uint32(18).string(message.displayName);
1260
1312
  }
1261
1313
  return writer;
1262
1314
  },
@@ -1279,7 +1331,7 @@ export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameReque
1279
1331
  break;
1280
1332
  }
1281
1333
 
1282
- message.organizationId = reader.string();
1334
+ message.name = reader.string();
1283
1335
  continue;
1284
1336
  }
1285
1337
  case 2: {
@@ -1287,22 +1339,6 @@ export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameReque
1287
1339
  break;
1288
1340
  }
1289
1341
 
1290
- message.projectId = reader.string();
1291
- continue;
1292
- }
1293
- case 3: {
1294
- if (tag !== 26) {
1295
- break;
1296
- }
1297
-
1298
- message.name = reader.string();
1299
- continue;
1300
- }
1301
- case 4: {
1302
- if (tag !== 34) {
1303
- break;
1304
- }
1305
-
1306
1342
  message.displayName = reader.string();
1307
1343
  continue;
1308
1344
  }
@@ -1320,16 +1356,6 @@ export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameReque
1320
1356
 
1321
1357
  fromJSON(object: any): UpdateAIReferenceNameRequest {
1322
1358
  return {
1323
- organizationId: isSet(object.organizationId)
1324
- ? globalThis.String(object.organizationId)
1325
- : isSet(object.organization_id)
1326
- ? globalThis.String(object.organization_id)
1327
- : "",
1328
- projectId: isSet(object.projectId)
1329
- ? globalThis.String(object.projectId)
1330
- : isSet(object.project_id)
1331
- ? globalThis.String(object.project_id)
1332
- : "",
1333
1359
  name: isSet(object.name) ? globalThis.String(object.name) : "",
1334
1360
  displayName: isSet(object.displayName)
1335
1361
  ? globalThis.String(object.displayName)
@@ -1341,12 +1367,6 @@ export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameReque
1341
1367
 
1342
1368
  toJSON(message: UpdateAIReferenceNameRequest): unknown {
1343
1369
  const obj: any = {};
1344
- if (message.organizationId !== "") {
1345
- obj.organizationId = message.organizationId;
1346
- }
1347
- if (message.projectId !== "") {
1348
- obj.projectId = message.projectId;
1349
- }
1350
1370
  if (message.name !== "") {
1351
1371
  obj.name = message.name;
1352
1372
  }
@@ -1361,8 +1381,6 @@ export const UpdateAIReferenceNameRequest: MessageFns<UpdateAIReferenceNameReque
1361
1381
  },
1362
1382
  fromPartial<I extends Exact<DeepPartial<UpdateAIReferenceNameRequest>, I>>(object: I): UpdateAIReferenceNameRequest {
1363
1383
  const message = createBaseUpdateAIReferenceNameRequest();
1364
- message.organizationId = object.organizationId ?? "";
1365
- message.projectId = object.projectId ?? "";
1366
1384
  message.name = object.name ?? "";
1367
1385
  message.displayName = object.displayName ?? "";
1368
1386
  return message;
@@ -1461,28 +1479,22 @@ export const UpdateAIReferenceNameResponse: MessageFns<UpdateAIReferenceNameResp
1461
1479
  };
1462
1480
 
1463
1481
  /**
1464
- * ReferenceGatewayService is the frontend-facing surface for the AI reference data: the org's lookup
1465
- * tables (principals, and the provider / model / effort / billing-party display names). It proxies
1466
- * telemetry.api.v1.AIReferenceService. Writes are org-admin only.
1482
+ * ReferenceGatewayService is the frontend-facing surface for the AI reference data an org reads: its
1483
+ * principals (writes org-admin only) and the provider / model / effort / billing-party display names. The
1484
+ * name tables are global: each List returns the names the org's own telemetry reported, mapped through
1485
+ * them; Mirador staff edit them through AdminGatewayService. It proxies telemetry.api.v1.AIReferenceService.
1467
1486
  */
1468
1487
  export interface ReferenceGatewayService {
1469
1488
  ListPrincipals(request: ListPrincipalsRequest, metadata?: Metadata): Promise<ListPrincipalsResponse>;
1470
1489
  UpdatePrincipal(request: UpdatePrincipalRequest, metadata?: Metadata): Promise<UpdatePrincipalResponse>;
1471
1490
  /** Every stored name of the table has an entry, recorded or not. */
1472
1491
  ListAIProviders(request: ListAIReferenceNamesRequest, metadata?: Metadata): Promise<ListAIReferenceNamesResponse>;
1473
- UpdateAIProvider(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse>;
1474
1492
  ListAIModels(request: ListAIReferenceNamesRequest, metadata?: Metadata): Promise<ListAIReferenceNamesResponse>;
1475
- UpdateAIModel(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse>;
1476
1493
  ListAIEfforts(request: ListAIReferenceNamesRequest, metadata?: Metadata): Promise<ListAIReferenceNamesResponse>;
1477
- UpdateAIEffort(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse>;
1478
1494
  ListAIBillingParties(
1479
1495
  request: ListAIReferenceNamesRequest,
1480
1496
  metadata?: Metadata,
1481
1497
  ): Promise<ListAIReferenceNamesResponse>;
1482
- UpdateAIBillingParty(
1483
- request: UpdateAIReferenceNameRequest,
1484
- metadata?: Metadata,
1485
- ): Promise<UpdateAIReferenceNameResponse>;
1486
1498
  }
1487
1499
 
1488
1500
  export const ReferenceGatewayServiceServiceName = "gateway.web.v1.ReferenceGatewayService";
@@ -1495,13 +1507,9 @@ export class ReferenceGatewayServiceClientImpl implements ReferenceGatewayServic
1495
1507
  this.ListPrincipals = this.ListPrincipals.bind(this);
1496
1508
  this.UpdatePrincipal = this.UpdatePrincipal.bind(this);
1497
1509
  this.ListAIProviders = this.ListAIProviders.bind(this);
1498
- this.UpdateAIProvider = this.UpdateAIProvider.bind(this);
1499
1510
  this.ListAIModels = this.ListAIModels.bind(this);
1500
- this.UpdateAIModel = this.UpdateAIModel.bind(this);
1501
1511
  this.ListAIEfforts = this.ListAIEfforts.bind(this);
1502
- this.UpdateAIEffort = this.UpdateAIEffort.bind(this);
1503
1512
  this.ListAIBillingParties = this.ListAIBillingParties.bind(this);
1504
- this.UpdateAIBillingParty = this.UpdateAIBillingParty.bind(this);
1505
1513
  }
1506
1514
  ListPrincipals(request: ListPrincipalsRequest, metadata?: Metadata): Promise<ListPrincipalsResponse> {
1507
1515
  const data = ListPrincipalsRequest.encode(request).finish();
@@ -1521,36 +1529,18 @@ export class ReferenceGatewayServiceClientImpl implements ReferenceGatewayServic
1521
1529
  return promise.then((data) => ListAIReferenceNamesResponse.decode(new BinaryReader(data)));
1522
1530
  }
1523
1531
 
1524
- UpdateAIProvider(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse> {
1525
- const data = UpdateAIReferenceNameRequest.encode(request).finish();
1526
- const promise = this.rpc.request(this.service, "UpdateAIProvider", data, metadata);
1527
- return promise.then((data) => UpdateAIReferenceNameResponse.decode(new BinaryReader(data)));
1528
- }
1529
-
1530
1532
  ListAIModels(request: ListAIReferenceNamesRequest, metadata?: Metadata): Promise<ListAIReferenceNamesResponse> {
1531
1533
  const data = ListAIReferenceNamesRequest.encode(request).finish();
1532
1534
  const promise = this.rpc.request(this.service, "ListAIModels", data, metadata);
1533
1535
  return promise.then((data) => ListAIReferenceNamesResponse.decode(new BinaryReader(data)));
1534
1536
  }
1535
1537
 
1536
- UpdateAIModel(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse> {
1537
- const data = UpdateAIReferenceNameRequest.encode(request).finish();
1538
- const promise = this.rpc.request(this.service, "UpdateAIModel", data, metadata);
1539
- return promise.then((data) => UpdateAIReferenceNameResponse.decode(new BinaryReader(data)));
1540
- }
1541
-
1542
1538
  ListAIEfforts(request: ListAIReferenceNamesRequest, metadata?: Metadata): Promise<ListAIReferenceNamesResponse> {
1543
1539
  const data = ListAIReferenceNamesRequest.encode(request).finish();
1544
1540
  const promise = this.rpc.request(this.service, "ListAIEfforts", data, metadata);
1545
1541
  return promise.then((data) => ListAIReferenceNamesResponse.decode(new BinaryReader(data)));
1546
1542
  }
1547
1543
 
1548
- UpdateAIEffort(request: UpdateAIReferenceNameRequest, metadata?: Metadata): Promise<UpdateAIReferenceNameResponse> {
1549
- const data = UpdateAIReferenceNameRequest.encode(request).finish();
1550
- const promise = this.rpc.request(this.service, "UpdateAIEffort", data, metadata);
1551
- return promise.then((data) => UpdateAIReferenceNameResponse.decode(new BinaryReader(data)));
1552
- }
1553
-
1554
1544
  ListAIBillingParties(
1555
1545
  request: ListAIReferenceNamesRequest,
1556
1546
  metadata?: Metadata,
@@ -1559,15 +1549,6 @@ export class ReferenceGatewayServiceClientImpl implements ReferenceGatewayServic
1559
1549
  const promise = this.rpc.request(this.service, "ListAIBillingParties", data, metadata);
1560
1550
  return promise.then((data) => ListAIReferenceNamesResponse.decode(new BinaryReader(data)));
1561
1551
  }
1562
-
1563
- UpdateAIBillingParty(
1564
- request: UpdateAIReferenceNameRequest,
1565
- metadata?: Metadata,
1566
- ): Promise<UpdateAIReferenceNameResponse> {
1567
- const data = UpdateAIReferenceNameRequest.encode(request).finish();
1568
- const promise = this.rpc.request(this.service, "UpdateAIBillingParty", data, metadata);
1569
- return promise.then((data) => UpdateAIReferenceNameResponse.decode(new BinaryReader(data)));
1570
- }
1571
1552
  }
1572
1553
 
1573
1554
  interface Rpc {
@@ -50,28 +50,6 @@ function deserialize_gateway_web_v1_ListPrincipalsResponse(buffer_arg) {
50
50
  return proto_gateway_web_v1_reference_gateway_pb.ListPrincipalsResponse.deserializeBinary(new Uint8Array(buffer_arg));
51
51
  }
52
52
 
53
- function serialize_gateway_web_v1_UpdateAIReferenceNameRequest(arg) {
54
- if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest)) {
55
- throw new Error('Expected argument of type gateway.web.v1.UpdateAIReferenceNameRequest');
56
- }
57
- return Buffer.from(arg.serializeBinary());
58
- }
59
-
60
- function deserialize_gateway_web_v1_UpdateAIReferenceNameRequest(buffer_arg) {
61
- return proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest.deserializeBinary(new Uint8Array(buffer_arg));
62
- }
63
-
64
- function serialize_gateway_web_v1_UpdateAIReferenceNameResponse(arg) {
65
- if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse)) {
66
- throw new Error('Expected argument of type gateway.web.v1.UpdateAIReferenceNameResponse');
67
- }
68
- return Buffer.from(arg.serializeBinary());
69
- }
70
-
71
- function deserialize_gateway_web_v1_UpdateAIReferenceNameResponse(buffer_arg) {
72
- return proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse.deserializeBinary(new Uint8Array(buffer_arg));
73
- }
74
-
75
53
  function serialize_gateway_web_v1_UpdatePrincipalRequest(arg) {
76
54
  if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.UpdatePrincipalRequest)) {
77
55
  throw new Error('Expected argument of type gateway.web.v1.UpdatePrincipalRequest');
@@ -95,9 +73,10 @@ function deserialize_gateway_web_v1_UpdatePrincipalResponse(buffer_arg) {
95
73
  }
96
74
 
97
75
 
98
- // ReferenceGatewayService is the frontend-facing surface for the AI reference data: the org's lookup
99
- // tables (principals, and the provider / model / effort / billing-party display names). It proxies
100
- // telemetry.api.v1.AIReferenceService. Writes are org-admin only.
76
+ // ReferenceGatewayService is the frontend-facing surface for the AI reference data an org reads: its
77
+ // principals (writes org-admin only) and the provider / model / effort / billing-party display names. The
78
+ // name tables are global: each List returns the names the org's own telemetry reported, mapped through
79
+ // them; Mirador staff edit them through AdminGatewayService. It proxies telemetry.api.v1.AIReferenceService.
101
80
  var ReferenceGatewayServiceService = exports.ReferenceGatewayServiceService = {
102
81
  listPrincipals: {
103
82
  path: '/gateway.web.v1.ReferenceGatewayService/ListPrincipals',
@@ -133,17 +112,6 @@ listAIProviders: {
133
112
  responseSerialize: serialize_gateway_web_v1_ListAIReferenceNamesResponse,
134
113
  responseDeserialize: deserialize_gateway_web_v1_ListAIReferenceNamesResponse,
135
114
  },
136
- updateAIProvider: {
137
- path: '/gateway.web.v1.ReferenceGatewayService/UpdateAIProvider',
138
- requestStream: false,
139
- responseStream: false,
140
- requestType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest,
141
- responseType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse,
142
- requestSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameRequest,
143
- requestDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameRequest,
144
- responseSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameResponse,
145
- responseDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameResponse,
146
- },
147
115
  listAIModels: {
148
116
  path: '/gateway.web.v1.ReferenceGatewayService/ListAIModels',
149
117
  requestStream: false,
@@ -155,17 +123,6 @@ listAIProviders: {
155
123
  responseSerialize: serialize_gateway_web_v1_ListAIReferenceNamesResponse,
156
124
  responseDeserialize: deserialize_gateway_web_v1_ListAIReferenceNamesResponse,
157
125
  },
158
- updateAIModel: {
159
- path: '/gateway.web.v1.ReferenceGatewayService/UpdateAIModel',
160
- requestStream: false,
161
- responseStream: false,
162
- requestType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest,
163
- responseType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse,
164
- requestSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameRequest,
165
- requestDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameRequest,
166
- responseSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameResponse,
167
- responseDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameResponse,
168
- },
169
126
  listAIEfforts: {
170
127
  path: '/gateway.web.v1.ReferenceGatewayService/ListAIEfforts',
171
128
  requestStream: false,
@@ -177,17 +134,6 @@ listAIProviders: {
177
134
  responseSerialize: serialize_gateway_web_v1_ListAIReferenceNamesResponse,
178
135
  responseDeserialize: deserialize_gateway_web_v1_ListAIReferenceNamesResponse,
179
136
  },
180
- updateAIEffort: {
181
- path: '/gateway.web.v1.ReferenceGatewayService/UpdateAIEffort',
182
- requestStream: false,
183
- responseStream: false,
184
- requestType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest,
185
- responseType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse,
186
- requestSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameRequest,
187
- requestDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameRequest,
188
- responseSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameResponse,
189
- responseDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameResponse,
190
- },
191
137
  listAIBillingParties: {
192
138
  path: '/gateway.web.v1.ReferenceGatewayService/ListAIBillingParties',
193
139
  requestStream: false,
@@ -199,17 +145,6 @@ listAIProviders: {
199
145
  responseSerialize: serialize_gateway_web_v1_ListAIReferenceNamesResponse,
200
146
  responseDeserialize: deserialize_gateway_web_v1_ListAIReferenceNamesResponse,
201
147
  },
202
- updateAIBillingParty: {
203
- path: '/gateway.web.v1.ReferenceGatewayService/UpdateAIBillingParty',
204
- requestStream: false,
205
- responseStream: false,
206
- requestType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameRequest,
207
- responseType: proto_gateway_web_v1_reference_gateway_pb.UpdateAIReferenceNameResponse,
208
- requestSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameRequest,
209
- requestDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameRequest,
210
- responseSerialize: serialize_gateway_web_v1_UpdateAIReferenceNameResponse,
211
- responseDeserialize: deserialize_gateway_web_v1_UpdateAIReferenceNameResponse,
212
- },
213
148
  };
214
149
 
215
150
  exports.ReferenceGatewayServiceClient = grpc.makeGenericClientConstructor(ReferenceGatewayServiceService, 'ReferenceGatewayService');
@@ -25,6 +25,7 @@ goog.exportSymbol('proto.gateway.web.v1.AIReferenceName', null, global);
25
25
  goog.exportSymbol('proto.gateway.web.v1.AIReferenceNameOrigin', null, global);
26
26
  goog.exportSymbol('proto.gateway.web.v1.ListAIReferenceNamesRequest', null, global);
27
27
  goog.exportSymbol('proto.gateway.web.v1.ListAIReferenceNamesResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.ListAllAIReferenceNamesRequest', null, global);
28
29
  goog.exportSymbol('proto.gateway.web.v1.ListPrincipalsRequest', null, global);
29
30
  goog.exportSymbol('proto.gateway.web.v1.ListPrincipalsResponse', null, global);
30
31
  goog.exportSymbol('proto.gateway.web.v1.UpdateAIReferenceNameRequest', null, global);
@@ -199,6 +200,27 @@ if (goog.DEBUG && !COMPILED) {
199
200
  */
200
201
  proto.gateway.web.v1.AIReferenceName.displayName = 'proto.gateway.web.v1.AIReferenceName';
201
202
  }
203
+ /**
204
+ * Generated by JsPbCodeGenerator.
205
+ * @param {Array=} opt_data Optional initial data array, typically from a
206
+ * server response, or constructed directly in Javascript. The array is used
207
+ * in place and becomes part of the constructed object. It is not cloned.
208
+ * If no data is provided, the constructed object will be empty, but still
209
+ * valid.
210
+ * @extends {jspb.Message}
211
+ * @constructor
212
+ */
213
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest = function(opt_data) {
214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
+ };
216
+ goog.inherits(proto.gateway.web.v1.ListAllAIReferenceNamesRequest, jspb.Message);
217
+ if (goog.DEBUG && !COMPILED) {
218
+ /**
219
+ * @public
220
+ * @override
221
+ */
222
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.displayName = 'proto.gateway.web.v1.ListAllAIReferenceNamesRequest';
223
+ }
202
224
  /**
203
225
  * Generated by JsPbCodeGenerator.
204
226
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2327,6 +2349,107 @@ proto.gateway.web.v1.AIReferenceName.prototype.hasUpdatedAt = function() {
2327
2349
 
2328
2350
 
2329
2351
 
2352
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2353
+ /**
2354
+ * Creates an object representation of this proto.
2355
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2356
+ * Optional fields that are not set will be set to undefined.
2357
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2358
+ * For the list of reserved names please see:
2359
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2360
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2361
+ * JSPB instance for transitional soy proto support:
2362
+ * http://goto/soy-param-migration
2363
+ * @return {!Object}
2364
+ */
2365
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.prototype.toObject = function(opt_includeInstance) {
2366
+ return proto.gateway.web.v1.ListAllAIReferenceNamesRequest.toObject(opt_includeInstance, this);
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * Static version of the {@see toObject} method.
2372
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2373
+ * the JSPB instance for transitional soy proto support:
2374
+ * http://goto/soy-param-migration
2375
+ * @param {!proto.gateway.web.v1.ListAllAIReferenceNamesRequest} msg The msg instance to transform.
2376
+ * @return {!Object}
2377
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2378
+ */
2379
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.toObject = function(includeInstance, msg) {
2380
+ var f, obj = {
2381
+
2382
+ };
2383
+
2384
+ if (includeInstance) {
2385
+ obj.$jspbMessageInstance = msg;
2386
+ }
2387
+ return obj;
2388
+ };
2389
+ }
2390
+
2391
+
2392
+ /**
2393
+ * Deserializes binary data (in protobuf wire format).
2394
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
2395
+ * @return {!proto.gateway.web.v1.ListAllAIReferenceNamesRequest}
2396
+ */
2397
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.deserializeBinary = function(bytes) {
2398
+ var reader = new jspb.BinaryReader(bytes);
2399
+ var msg = new proto.gateway.web.v1.ListAllAIReferenceNamesRequest;
2400
+ return proto.gateway.web.v1.ListAllAIReferenceNamesRequest.deserializeBinaryFromReader(msg, reader);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Deserializes binary data (in protobuf wire format) from the
2406
+ * given reader into the given message object.
2407
+ * @param {!proto.gateway.web.v1.ListAllAIReferenceNamesRequest} msg The message object to deserialize into.
2408
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2409
+ * @return {!proto.gateway.web.v1.ListAllAIReferenceNamesRequest}
2410
+ */
2411
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.deserializeBinaryFromReader = function(msg, reader) {
2412
+ while (reader.nextField()) {
2413
+ if (reader.isEndGroup()) {
2414
+ break;
2415
+ }
2416
+ var field = reader.getFieldNumber();
2417
+ switch (field) {
2418
+ default:
2419
+ reader.skipField();
2420
+ break;
2421
+ }
2422
+ }
2423
+ return msg;
2424
+ };
2425
+
2426
+
2427
+ /**
2428
+ * Serializes the message to binary data (in protobuf wire format).
2429
+ * @return {!Uint8Array}
2430
+ */
2431
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.prototype.serializeBinary = function() {
2432
+ var writer = new jspb.BinaryWriter();
2433
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.serializeBinaryToWriter(this, writer);
2434
+ return writer.getResultBuffer();
2435
+ };
2436
+
2437
+
2438
+ /**
2439
+ * Serializes the given message to binary data (in protobuf wire
2440
+ * format), writing to the given BinaryWriter.
2441
+ * @param {!proto.gateway.web.v1.ListAllAIReferenceNamesRequest} message
2442
+ * @param {!jspb.BinaryWriter} writer
2443
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2444
+ */
2445
+ proto.gateway.web.v1.ListAllAIReferenceNamesRequest.serializeBinaryToWriter = function(message, writer) {
2446
+ var f = undefined;
2447
+ };
2448
+
2449
+
2450
+
2451
+
2452
+
2330
2453
  if (jspb.Message.GENERATE_TO_OBJECT) {
2331
2454
  /**
2332
2455
  * Creates an object representation of this proto.
@@ -2356,10 +2479,8 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.toObject = function(
2356
2479
  */
2357
2480
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.toObject = function(includeInstance, msg) {
2358
2481
  var f, obj = {
2359
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2360
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2361
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
2362
- displayName: jspb.Message.getFieldWithDefault(msg, 4, "")
2482
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2483
+ displayName: jspb.Message.getFieldWithDefault(msg, 2, "")
2363
2484
  };
2364
2485
 
2365
2486
  if (includeInstance) {
@@ -2397,18 +2518,10 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.deserializeBinaryFromReader =
2397
2518
  var field = reader.getFieldNumber();
2398
2519
  switch (field) {
2399
2520
  case 1:
2400
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
2401
- msg.setOrganizationId(value);
2402
- break;
2403
- case 2:
2404
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
2405
- msg.setProjectId(value);
2406
- break;
2407
- case 3:
2408
2521
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2409
2522
  msg.setName(value);
2410
2523
  break;
2411
- case 4:
2524
+ case 2:
2412
2525
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2413
2526
  msg.setDisplayName(value);
2414
2527
  break;
@@ -2441,31 +2554,17 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.serializeBinary = fu
2441
2554
  */
2442
2555
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.serializeBinaryToWriter = function(message, writer) {
2443
2556
  var f = undefined;
2444
- f = message.getOrganizationId();
2445
- if (f.length > 0) {
2446
- writer.writeString(
2447
- 1,
2448
- f
2449
- );
2450
- }
2451
- f = message.getProjectId();
2452
- if (f.length > 0) {
2453
- writer.writeString(
2454
- 2,
2455
- f
2456
- );
2457
- }
2458
2557
  f = message.getName();
2459
2558
  if (f.length > 0) {
2460
2559
  writer.writeString(
2461
- 3,
2560
+ 1,
2462
2561
  f
2463
2562
  );
2464
2563
  }
2465
2564
  f = message.getDisplayName();
2466
2565
  if (f.length > 0) {
2467
2566
  writer.writeString(
2468
- 4,
2567
+ 2,
2469
2568
  f
2470
2569
  );
2471
2570
  }
@@ -2473,47 +2572,11 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.serializeBinaryToWriter = func
2473
2572
 
2474
2573
 
2475
2574
  /**
2476
- * optional string organization_id = 1;
2477
- * @return {string}
2478
- */
2479
- proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getOrganizationId = function() {
2480
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2481
- };
2482
-
2483
-
2484
- /**
2485
- * @param {string} value
2486
- * @return {!proto.gateway.web.v1.UpdateAIReferenceNameRequest} returns this
2487
- */
2488
- proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.setOrganizationId = function(value) {
2489
- return jspb.Message.setProto3StringField(this, 1, value);
2490
- };
2491
-
2492
-
2493
- /**
2494
- * optional string project_id = 2;
2495
- * @return {string}
2496
- */
2497
- proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getProjectId = function() {
2498
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2499
- };
2500
-
2501
-
2502
- /**
2503
- * @param {string} value
2504
- * @return {!proto.gateway.web.v1.UpdateAIReferenceNameRequest} returns this
2505
- */
2506
- proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.setProjectId = function(value) {
2507
- return jspb.Message.setProto3StringField(this, 2, value);
2508
- };
2509
-
2510
-
2511
- /**
2512
- * optional string name = 3;
2575
+ * optional string name = 1;
2513
2576
  * @return {string}
2514
2577
  */
2515
2578
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getName = function() {
2516
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2517
2580
  };
2518
2581
 
2519
2582
 
@@ -2522,16 +2585,16 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getName = function()
2522
2585
  * @return {!proto.gateway.web.v1.UpdateAIReferenceNameRequest} returns this
2523
2586
  */
2524
2587
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.setName = function(value) {
2525
- return jspb.Message.setProto3StringField(this, 3, value);
2588
+ return jspb.Message.setProto3StringField(this, 1, value);
2526
2589
  };
2527
2590
 
2528
2591
 
2529
2592
  /**
2530
- * optional string display_name = 4;
2593
+ * optional string display_name = 2;
2531
2594
  * @return {string}
2532
2595
  */
2533
2596
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getDisplayName = function() {
2534
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2535
2598
  };
2536
2599
 
2537
2600
 
@@ -2540,7 +2603,7 @@ proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.getDisplayName = fun
2540
2603
  * @return {!proto.gateway.web.v1.UpdateAIReferenceNameRequest} returns this
2541
2604
  */
2542
2605
  proto.gateway.web.v1.UpdateAIReferenceNameRequest.prototype.setDisplayName = function(value) {
2543
- return jspb.Message.setProto3StringField(this, 4, value);
2606
+ return jspb.Message.setProto3StringField(this, 2, value);
2544
2607
  };
2545
2608
 
2546
2609