@miradorlabs/web-grpc 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,23 +25,24 @@ import {
25
25
  export const protobufPackage = "gateway.web.v1";
26
26
 
27
27
  /**
28
- * SessionSort ranks the conversation catalog (RECENCY = max last activity; the rest
29
- * are summed conversation totals).
28
+ * SessionSort ranks the conversation catalog, descending. Unspecified is RECENCY. RECENCY is the last activity;
29
+ * the rest are summed conversation totals. source_system, then session_id, breaks ties.
30
30
  */
31
31
  export enum SessionSort {
32
- SESSION_SORT_RECENCY = 0,
32
+ SESSION_SORT_UNSPECIFIED = 0,
33
33
  SESSION_SORT_COST = 1,
34
34
  SESSION_SORT_TOKENS = 2,
35
35
  SESSION_SORT_TURNS = 3,
36
36
  SESSION_SORT_TOOLS = 4,
37
+ SESSION_SORT_RECENCY = 5,
37
38
  UNRECOGNIZED = -1,
38
39
  }
39
40
 
40
41
  export function sessionSortFromJSON(object: any): SessionSort {
41
42
  switch (object) {
42
43
  case 0:
43
- case "SESSION_SORT_RECENCY":
44
- return SessionSort.SESSION_SORT_RECENCY;
44
+ case "SESSION_SORT_UNSPECIFIED":
45
+ return SessionSort.SESSION_SORT_UNSPECIFIED;
45
46
  case 1:
46
47
  case "SESSION_SORT_COST":
47
48
  return SessionSort.SESSION_SORT_COST;
@@ -54,6 +55,9 @@ export function sessionSortFromJSON(object: any): SessionSort {
54
55
  case 4:
55
56
  case "SESSION_SORT_TOOLS":
56
57
  return SessionSort.SESSION_SORT_TOOLS;
58
+ case 5:
59
+ case "SESSION_SORT_RECENCY":
60
+ return SessionSort.SESSION_SORT_RECENCY;
57
61
  case -1:
58
62
  case "UNRECOGNIZED":
59
63
  default:
@@ -63,8 +67,8 @@ export function sessionSortFromJSON(object: any): SessionSort {
63
67
 
64
68
  export function sessionSortToJSON(object: SessionSort): string {
65
69
  switch (object) {
66
- case SessionSort.SESSION_SORT_RECENCY:
67
- return "SESSION_SORT_RECENCY";
70
+ case SessionSort.SESSION_SORT_UNSPECIFIED:
71
+ return "SESSION_SORT_UNSPECIFIED";
68
72
  case SessionSort.SESSION_SORT_COST:
69
73
  return "SESSION_SORT_COST";
70
74
  case SessionSort.SESSION_SORT_TOKENS:
@@ -73,6 +77,8 @@ export function sessionSortToJSON(object: SessionSort): string {
73
77
  return "SESSION_SORT_TURNS";
74
78
  case SessionSort.SESSION_SORT_TOOLS:
75
79
  return "SESSION_SORT_TOOLS";
80
+ case SessionSort.SESSION_SORT_RECENCY:
81
+ return "SESSION_SORT_RECENCY";
76
82
  case SessionSort.UNRECOGNIZED:
77
83
  default:
78
84
  return "UNRECOGNIZED";
@@ -778,19 +784,57 @@ export function aIEntitlementRoleToJSON(object: AIEntitlementRole): string {
778
784
  export interface ListSessionsRequest {
779
785
  organizationId: string;
780
786
  projectId: string;
781
- /**
782
- * Structured filter, built directly by the frontend (AIP-160 is a REST
783
- * api-gateway concern and never reaches this proto).
784
- */
787
+ /** Built directly by the frontend (AIP-160 is a REST api-gateway concern and never reaches this proto). */
785
788
  filter:
786
- | AISessionFilter
789
+ | SessionFilter
787
790
  | undefined;
791
+ /** Ranking; unspecified is SESSION_SORT_RECENCY. */
792
+ sort: SessionSort;
788
793
  /** 1-indexed page; server default when 0. */
789
794
  page: number;
790
795
  /** 1..1000; server default when 0. */
791
796
  perPage: number;
792
- /** Ranking; SESSION_SORT_RECENCY when unset. */
793
- sort: SessionSort;
797
+ }
798
+
799
+ /**
800
+ * SessionFilter narrows ListSessions. Fields AND; a repeated field matches any of its values; an unset or
801
+ * empty field does not filter. search, search_principals and search_stored_names are one search: a session
802
+ * matches it when any of them does. It takes ids and stored names, never display names: the caller resolves
803
+ * those (principal labels, ReferenceGatewayService display names). clients, principals, search_principals and
804
+ * search_stored_names hold at most 500 entries each.
805
+ */
806
+ export interface SessionFilter {
807
+ /** Exact source systems. */
808
+ sourceSystems: string[];
809
+ /** A user id or api key id on any of the conversation's events. */
810
+ userIds: string[];
811
+ apiKeyIds: string[];
812
+ /**
813
+ * Stored model, provider and effort names on any of the conversation's calls; "" in efforts matches a call
814
+ * that reported no effort.
815
+ */
816
+ models: string[];
817
+ providers: string[];
818
+ /** Conversations active at or after this instant (the period selector). */
819
+ activeAfter: Date | undefined;
820
+ efforts: string[];
821
+ /** The conversation's client apps. */
822
+ clients: string[];
823
+ /**
824
+ * The conversation's actor (its user id, else its api key id, as the summary shows it). A user matches its
825
+ * user id, an api key only a conversation with no user id, an empty id one with neither; each on its source
826
+ * system when one is given.
827
+ */
828
+ principals: DailyActivityPrincipal[];
829
+ /**
830
+ * Case-insensitive substring of the session id, provider session id, title, source system, actor user id
831
+ * and api key id, or any stored model, provider, effort, client, client version or repository.
832
+ */
833
+ search: string;
834
+ /** Principals whose label the caller matched to the search text, matched by principals' rule. */
835
+ searchPrincipals: DailyActivityPrincipal[];
836
+ /** Stored model, provider or effort names whose display name the caller matched to the search text. */
837
+ searchStoredNames: string[];
794
838
  }
795
839
 
796
840
  /**
@@ -817,14 +861,16 @@ export interface ListSessionsResponse {
817
861
  pagination: SessionPagination | undefined;
818
862
  }
819
863
 
820
- /**
821
- * SessionPagination describes the returned page; total / total_pages are best-effort
822
- * (a second count query), weakly consistent with the page.
823
- */
864
+ /** SessionPagination describes the returned page. */
824
865
  export interface SessionPagination {
825
866
  page: number;
826
867
  perPage: number;
827
- total: number;
868
+ /**
869
+ * The conversations matching the filter. A short non-empty (or first) page is the tail and counts itself; a
870
+ * full page, or an empty one past the first, runs a second count query, weakly consistent with the page
871
+ * under concurrent writes. total_pages follows from it.
872
+ */
873
+ totalCount: number;
828
874
  totalPages: number;
829
875
  }
830
876
 
@@ -885,7 +931,7 @@ export interface AISessionSummary {
885
931
  export interface StreamSessionsRequest {
886
932
  organizationId: string;
887
933
  projectId: string;
888
- /** Same structured filter as ListSessions. */
934
+ /** ListSessions' conversation fields; clients, principals and search are ListSessions-only. */
889
935
  filter:
890
936
  | AISessionFilter
891
937
  | undefined;
@@ -1429,7 +1475,9 @@ export interface DailyActivityRequest_Filter {
1429
1475
 
1430
1476
  /** DailyActivityPrincipal is one user id or api key, as one source system reported it (empty = any source). */
1431
1477
  export interface DailyActivityPrincipal {
1478
+ /** USER or API_KEY; anything else is rejected. */
1432
1479
  kind: AIPrincipalKind;
1480
+ /** Empty selects work that recorded neither a user id nor an api key. */
1433
1481
  id: string;
1434
1482
  sourceSystem: string;
1435
1483
  }
@@ -1987,7 +2035,7 @@ export interface EntitlementWindow {
1987
2035
  }
1988
2036
 
1989
2037
  function createBaseListSessionsRequest(): ListSessionsRequest {
1990
- return { organizationId: "", projectId: "", filter: undefined, page: 0, perPage: 0, sort: 0 };
2038
+ return { organizationId: "", projectId: "", filter: undefined, sort: 0, page: 0, perPage: 0 };
1991
2039
  }
1992
2040
 
1993
2041
  export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
@@ -1999,7 +2047,10 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
1999
2047
  writer.uint32(18).string(message.projectId);
2000
2048
  }
2001
2049
  if (message.filter !== undefined) {
2002
- AISessionFilter.encode(message.filter, writer.uint32(26).fork()).join();
2050
+ SessionFilter.encode(message.filter, writer.uint32(26).fork()).join();
2051
+ }
2052
+ if (message.sort !== 0) {
2053
+ writer.uint32(48).int32(message.sort);
2003
2054
  }
2004
2055
  if (message.page !== 0) {
2005
2056
  writer.uint32(32).int32(message.page);
@@ -2007,9 +2058,6 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2007
2058
  if (message.perPage !== 0) {
2008
2059
  writer.uint32(40).int32(message.perPage);
2009
2060
  }
2010
- if (message.sort !== 0) {
2011
- writer.uint32(48).int32(message.sort);
2012
- }
2013
2061
  return writer;
2014
2062
  },
2015
2063
 
@@ -2047,7 +2095,15 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2047
2095
  break;
2048
2096
  }
2049
2097
 
2050
- message.filter = AISessionFilter.decode(reader, reader.uint32());
2098
+ message.filter = SessionFilter.decode(reader, reader.uint32());
2099
+ continue;
2100
+ }
2101
+ case 6: {
2102
+ if (tag !== 48) {
2103
+ break;
2104
+ }
2105
+
2106
+ message.sort = reader.int32() as any;
2051
2107
  continue;
2052
2108
  }
2053
2109
  case 4: {
@@ -2066,14 +2122,6 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2066
2122
  message.perPage = reader.int32();
2067
2123
  continue;
2068
2124
  }
2069
- case 6: {
2070
- if (tag !== 48) {
2071
- break;
2072
- }
2073
-
2074
- message.sort = reader.int32() as any;
2075
- continue;
2076
- }
2077
2125
  }
2078
2126
  if ((tag & 7) === 4 || tag === 0) {
2079
2127
  break;
@@ -2098,14 +2146,14 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2098
2146
  : isSet(object.project_id)
2099
2147
  ? globalThis.String(object.project_id)
2100
2148
  : "",
2101
- filter: isSet(object.filter) ? AISessionFilter.fromJSON(object.filter) : undefined,
2149
+ filter: isSet(object.filter) ? SessionFilter.fromJSON(object.filter) : undefined,
2150
+ sort: isSet(object.sort) ? sessionSortFromJSON(object.sort) : 0,
2102
2151
  page: isSet(object.page) ? globalThis.Number(object.page) : 0,
2103
2152
  perPage: isSet(object.perPage)
2104
2153
  ? globalThis.Number(object.perPage)
2105
2154
  : isSet(object.per_page)
2106
2155
  ? globalThis.Number(object.per_page)
2107
2156
  : 0,
2108
- sort: isSet(object.sort) ? sessionSortFromJSON(object.sort) : 0,
2109
2157
  };
2110
2158
  },
2111
2159
 
@@ -2118,7 +2166,10 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2118
2166
  obj.projectId = message.projectId;
2119
2167
  }
2120
2168
  if (message.filter !== undefined) {
2121
- obj.filter = AISessionFilter.toJSON(message.filter);
2169
+ obj.filter = SessionFilter.toJSON(message.filter);
2170
+ }
2171
+ if (message.sort !== 0) {
2172
+ obj.sort = sessionSortToJSON(message.sort);
2122
2173
  }
2123
2174
  if (message.page !== 0) {
2124
2175
  obj.page = Math.round(message.page);
@@ -2126,9 +2177,6 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2126
2177
  if (message.perPage !== 0) {
2127
2178
  obj.perPage = Math.round(message.perPage);
2128
2179
  }
2129
- if (message.sort !== 0) {
2130
- obj.sort = sessionSortToJSON(message.sort);
2131
- }
2132
2180
  return obj;
2133
2181
  },
2134
2182
 
@@ -2140,11 +2188,299 @@ export const ListSessionsRequest: MessageFns<ListSessionsRequest> = {
2140
2188
  message.organizationId = object.organizationId ?? "";
2141
2189
  message.projectId = object.projectId ?? "";
2142
2190
  message.filter = (object.filter !== undefined && object.filter !== null)
2143
- ? AISessionFilter.fromPartial(object.filter)
2191
+ ? SessionFilter.fromPartial(object.filter)
2144
2192
  : undefined;
2193
+ message.sort = object.sort ?? 0;
2145
2194
  message.page = object.page ?? 0;
2146
2195
  message.perPage = object.perPage ?? 0;
2147
- message.sort = object.sort ?? 0;
2196
+ return message;
2197
+ },
2198
+ };
2199
+
2200
+ function createBaseSessionFilter(): SessionFilter {
2201
+ return {
2202
+ sourceSystems: [],
2203
+ userIds: [],
2204
+ apiKeyIds: [],
2205
+ models: [],
2206
+ providers: [],
2207
+ activeAfter: undefined,
2208
+ efforts: [],
2209
+ clients: [],
2210
+ principals: [],
2211
+ search: "",
2212
+ searchPrincipals: [],
2213
+ searchStoredNames: [],
2214
+ };
2215
+ }
2216
+
2217
+ export const SessionFilter: MessageFns<SessionFilter> = {
2218
+ encode(message: SessionFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2219
+ for (const v of message.sourceSystems) {
2220
+ writer.uint32(10).string(v!);
2221
+ }
2222
+ for (const v of message.userIds) {
2223
+ writer.uint32(18).string(v!);
2224
+ }
2225
+ for (const v of message.apiKeyIds) {
2226
+ writer.uint32(26).string(v!);
2227
+ }
2228
+ for (const v of message.models) {
2229
+ writer.uint32(34).string(v!);
2230
+ }
2231
+ for (const v of message.providers) {
2232
+ writer.uint32(42).string(v!);
2233
+ }
2234
+ if (message.activeAfter !== undefined) {
2235
+ Timestamp.encode(toTimestamp(message.activeAfter), writer.uint32(50).fork()).join();
2236
+ }
2237
+ for (const v of message.efforts) {
2238
+ writer.uint32(58).string(v!);
2239
+ }
2240
+ for (const v of message.clients) {
2241
+ writer.uint32(66).string(v!);
2242
+ }
2243
+ for (const v of message.principals) {
2244
+ DailyActivityPrincipal.encode(v!, writer.uint32(74).fork()).join();
2245
+ }
2246
+ if (message.search !== "") {
2247
+ writer.uint32(82).string(message.search);
2248
+ }
2249
+ for (const v of message.searchPrincipals) {
2250
+ DailyActivityPrincipal.encode(v!, writer.uint32(90).fork()).join();
2251
+ }
2252
+ for (const v of message.searchStoredNames) {
2253
+ writer.uint32(98).string(v!);
2254
+ }
2255
+ return writer;
2256
+ },
2257
+
2258
+ decode(input: BinaryReader | Uint8Array, length?: number): SessionFilter {
2259
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2260
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2261
+ if (previousRecursionDepth >= 100) {
2262
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2263
+ }
2264
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2265
+ try {
2266
+ const end = length === undefined ? reader.len : reader.pos + length;
2267
+ const message = createBaseSessionFilter();
2268
+ while (reader.pos < end) {
2269
+ const tag = reader.uint32();
2270
+ switch (tag >>> 3) {
2271
+ case 1: {
2272
+ if (tag !== 10) {
2273
+ break;
2274
+ }
2275
+
2276
+ message.sourceSystems.push(reader.string());
2277
+ continue;
2278
+ }
2279
+ case 2: {
2280
+ if (tag !== 18) {
2281
+ break;
2282
+ }
2283
+
2284
+ message.userIds.push(reader.string());
2285
+ continue;
2286
+ }
2287
+ case 3: {
2288
+ if (tag !== 26) {
2289
+ break;
2290
+ }
2291
+
2292
+ message.apiKeyIds.push(reader.string());
2293
+ continue;
2294
+ }
2295
+ case 4: {
2296
+ if (tag !== 34) {
2297
+ break;
2298
+ }
2299
+
2300
+ message.models.push(reader.string());
2301
+ continue;
2302
+ }
2303
+ case 5: {
2304
+ if (tag !== 42) {
2305
+ break;
2306
+ }
2307
+
2308
+ message.providers.push(reader.string());
2309
+ continue;
2310
+ }
2311
+ case 6: {
2312
+ if (tag !== 50) {
2313
+ break;
2314
+ }
2315
+
2316
+ message.activeAfter = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2317
+ continue;
2318
+ }
2319
+ case 7: {
2320
+ if (tag !== 58) {
2321
+ break;
2322
+ }
2323
+
2324
+ message.efforts.push(reader.string());
2325
+ continue;
2326
+ }
2327
+ case 8: {
2328
+ if (tag !== 66) {
2329
+ break;
2330
+ }
2331
+
2332
+ message.clients.push(reader.string());
2333
+ continue;
2334
+ }
2335
+ case 9: {
2336
+ if (tag !== 74) {
2337
+ break;
2338
+ }
2339
+
2340
+ message.principals.push(DailyActivityPrincipal.decode(reader, reader.uint32()));
2341
+ continue;
2342
+ }
2343
+ case 10: {
2344
+ if (tag !== 82) {
2345
+ break;
2346
+ }
2347
+
2348
+ message.search = reader.string();
2349
+ continue;
2350
+ }
2351
+ case 11: {
2352
+ if (tag !== 90) {
2353
+ break;
2354
+ }
2355
+
2356
+ message.searchPrincipals.push(DailyActivityPrincipal.decode(reader, reader.uint32()));
2357
+ continue;
2358
+ }
2359
+ case 12: {
2360
+ if (tag !== 98) {
2361
+ break;
2362
+ }
2363
+
2364
+ message.searchStoredNames.push(reader.string());
2365
+ continue;
2366
+ }
2367
+ }
2368
+ if ((tag & 7) === 4 || tag === 0) {
2369
+ break;
2370
+ }
2371
+ reader.skip(tag & 7);
2372
+ }
2373
+ return message;
2374
+ } finally {
2375
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2376
+ }
2377
+ },
2378
+
2379
+ fromJSON(object: any): SessionFilter {
2380
+ return {
2381
+ sourceSystems: globalThis.Array.isArray(object?.sourceSystems)
2382
+ ? object.sourceSystems.map((e: any) => globalThis.String(e))
2383
+ : globalThis.Array.isArray(object?.source_systems)
2384
+ ? object.source_systems.map((e: any) => globalThis.String(e))
2385
+ : [],
2386
+ userIds: globalThis.Array.isArray(object?.userIds)
2387
+ ? object.userIds.map((e: any) => globalThis.String(e))
2388
+ : globalThis.Array.isArray(object?.user_ids)
2389
+ ? object.user_ids.map((e: any) => globalThis.String(e))
2390
+ : [],
2391
+ apiKeyIds: globalThis.Array.isArray(object?.apiKeyIds)
2392
+ ? object.apiKeyIds.map((e: any) => globalThis.String(e))
2393
+ : globalThis.Array.isArray(object?.api_key_ids)
2394
+ ? object.api_key_ids.map((e: any) => globalThis.String(e))
2395
+ : [],
2396
+ models: globalThis.Array.isArray(object?.models) ? object.models.map((e: any) => globalThis.String(e)) : [],
2397
+ providers: globalThis.Array.isArray(object?.providers)
2398
+ ? object.providers.map((e: any) => globalThis.String(e))
2399
+ : [],
2400
+ activeAfter: isSet(object.activeAfter)
2401
+ ? fromJsonTimestamp(object.activeAfter)
2402
+ : isSet(object.active_after)
2403
+ ? fromJsonTimestamp(object.active_after)
2404
+ : undefined,
2405
+ efforts: globalThis.Array.isArray(object?.efforts)
2406
+ ? object.efforts.map((e: any) => globalThis.String(e))
2407
+ : [],
2408
+ clients: globalThis.Array.isArray(object?.clients) ? object.clients.map((e: any) => globalThis.String(e)) : [],
2409
+ principals: globalThis.Array.isArray(object?.principals)
2410
+ ? object.principals.map((e: any) => DailyActivityPrincipal.fromJSON(e))
2411
+ : [],
2412
+ search: isSet(object.search) ? globalThis.String(object.search) : "",
2413
+ searchPrincipals: globalThis.Array.isArray(object?.searchPrincipals)
2414
+ ? object.searchPrincipals.map((e: any) => DailyActivityPrincipal.fromJSON(e))
2415
+ : globalThis.Array.isArray(object?.search_principals)
2416
+ ? object.search_principals.map((e: any) => DailyActivityPrincipal.fromJSON(e))
2417
+ : [],
2418
+ searchStoredNames: globalThis.Array.isArray(object?.searchStoredNames)
2419
+ ? object.searchStoredNames.map((e: any) => globalThis.String(e))
2420
+ : globalThis.Array.isArray(object?.search_stored_names)
2421
+ ? object.search_stored_names.map((e: any) => globalThis.String(e))
2422
+ : [],
2423
+ };
2424
+ },
2425
+
2426
+ toJSON(message: SessionFilter): unknown {
2427
+ const obj: any = {};
2428
+ if (message.sourceSystems?.length) {
2429
+ obj.sourceSystems = message.sourceSystems;
2430
+ }
2431
+ if (message.userIds?.length) {
2432
+ obj.userIds = message.userIds;
2433
+ }
2434
+ if (message.apiKeyIds?.length) {
2435
+ obj.apiKeyIds = message.apiKeyIds;
2436
+ }
2437
+ if (message.models?.length) {
2438
+ obj.models = message.models;
2439
+ }
2440
+ if (message.providers?.length) {
2441
+ obj.providers = message.providers;
2442
+ }
2443
+ if (message.activeAfter !== undefined) {
2444
+ obj.activeAfter = message.activeAfter.toISOString();
2445
+ }
2446
+ if (message.efforts?.length) {
2447
+ obj.efforts = message.efforts;
2448
+ }
2449
+ if (message.clients?.length) {
2450
+ obj.clients = message.clients;
2451
+ }
2452
+ if (message.principals?.length) {
2453
+ obj.principals = message.principals.map((e) => DailyActivityPrincipal.toJSON(e));
2454
+ }
2455
+ if (message.search !== "") {
2456
+ obj.search = message.search;
2457
+ }
2458
+ if (message.searchPrincipals?.length) {
2459
+ obj.searchPrincipals = message.searchPrincipals.map((e) => DailyActivityPrincipal.toJSON(e));
2460
+ }
2461
+ if (message.searchStoredNames?.length) {
2462
+ obj.searchStoredNames = message.searchStoredNames;
2463
+ }
2464
+ return obj;
2465
+ },
2466
+
2467
+ create<I extends Exact<DeepPartial<SessionFilter>, I>>(base?: I): SessionFilter {
2468
+ return SessionFilter.fromPartial(base ?? ({} as any));
2469
+ },
2470
+ fromPartial<I extends Exact<DeepPartial<SessionFilter>, I>>(object: I): SessionFilter {
2471
+ const message = createBaseSessionFilter();
2472
+ message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
2473
+ message.userIds = object.userIds?.map((e) => e) || [];
2474
+ message.apiKeyIds = object.apiKeyIds?.map((e) => e) || [];
2475
+ message.models = object.models?.map((e) => e) || [];
2476
+ message.providers = object.providers?.map((e) => e) || [];
2477
+ message.activeAfter = object.activeAfter ?? undefined;
2478
+ message.efforts = object.efforts?.map((e) => e) || [];
2479
+ message.clients = object.clients?.map((e) => e) || [];
2480
+ message.principals = object.principals?.map((e) => DailyActivityPrincipal.fromPartial(e)) || [];
2481
+ message.search = object.search ?? "";
2482
+ message.searchPrincipals = object.searchPrincipals?.map((e) => DailyActivityPrincipal.fromPartial(e)) || [];
2483
+ message.searchStoredNames = object.searchStoredNames?.map((e) => e) || [];
2148
2484
  return message;
2149
2485
  },
2150
2486
  };
@@ -2440,7 +2776,7 @@ export const ListSessionsResponse: MessageFns<ListSessionsResponse> = {
2440
2776
  };
2441
2777
 
2442
2778
  function createBaseSessionPagination(): SessionPagination {
2443
- return { page: 0, perPage: 0, total: 0, totalPages: 0 };
2779
+ return { page: 0, perPage: 0, totalCount: 0, totalPages: 0 };
2444
2780
  }
2445
2781
 
2446
2782
  export const SessionPagination: MessageFns<SessionPagination> = {
@@ -2451,8 +2787,8 @@ export const SessionPagination: MessageFns<SessionPagination> = {
2451
2787
  if (message.perPage !== 0) {
2452
2788
  writer.uint32(16).int32(message.perPage);
2453
2789
  }
2454
- if (message.total !== 0) {
2455
- writer.uint32(24).int64(message.total);
2790
+ if (message.totalCount !== 0) {
2791
+ writer.uint32(24).int64(message.totalCount);
2456
2792
  }
2457
2793
  if (message.totalPages !== 0) {
2458
2794
  writer.uint32(32).int32(message.totalPages);
@@ -2494,7 +2830,7 @@ export const SessionPagination: MessageFns<SessionPagination> = {
2494
2830
  break;
2495
2831
  }
2496
2832
 
2497
- message.total = longToNumber(reader.int64());
2833
+ message.totalCount = longToNumber(reader.int64());
2498
2834
  continue;
2499
2835
  }
2500
2836
  case 4: {
@@ -2525,7 +2861,11 @@ export const SessionPagination: MessageFns<SessionPagination> = {
2525
2861
  : isSet(object.per_page)
2526
2862
  ? globalThis.Number(object.per_page)
2527
2863
  : 0,
2528
- total: isSet(object.total) ? globalThis.Number(object.total) : 0,
2864
+ totalCount: isSet(object.totalCount)
2865
+ ? globalThis.Number(object.totalCount)
2866
+ : isSet(object.total_count)
2867
+ ? globalThis.Number(object.total_count)
2868
+ : 0,
2529
2869
  totalPages: isSet(object.totalPages)
2530
2870
  ? globalThis.Number(object.totalPages)
2531
2871
  : isSet(object.total_pages)
@@ -2542,8 +2882,8 @@ export const SessionPagination: MessageFns<SessionPagination> = {
2542
2882
  if (message.perPage !== 0) {
2543
2883
  obj.perPage = Math.round(message.perPage);
2544
2884
  }
2545
- if (message.total !== 0) {
2546
- obj.total = Math.round(message.total);
2885
+ if (message.totalCount !== 0) {
2886
+ obj.totalCount = Math.round(message.totalCount);
2547
2887
  }
2548
2888
  if (message.totalPages !== 0) {
2549
2889
  obj.totalPages = Math.round(message.totalPages);
@@ -2558,7 +2898,7 @@ export const SessionPagination: MessageFns<SessionPagination> = {
2558
2898
  const message = createBaseSessionPagination();
2559
2899
  message.page = object.page ?? 0;
2560
2900
  message.perPage = object.perPage ?? 0;
2561
- message.total = object.total ?? 0;
2901
+ message.totalCount = object.totalCount ?? 0;
2562
2902
  message.totalPages = object.totalPages ?? 0;
2563
2903
  return message;
2564
2904
  },
@@ -3,6 +3,7 @@
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var proto_gateway_web_v1_ai_gateway_pb = require('../../../../proto/gateway/web/v1/ai_gateway_pb.js');
6
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
6
7
  var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
7
8
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
8
9
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');