@qvac/core 0.1.6 → 0.1.7

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.
@@ -235,7 +235,13 @@ const methods = new Map([
235
235
  ['@assistant/file-preview', 113],
236
236
  [113, '@assistant/file-preview'],
237
237
  ['@assistant/file-retry', 114],
238
- [114, '@assistant/file-retry']
238
+ [114, '@assistant/file-retry'],
239
+ ['@assistant/move-chat', 115],
240
+ [115, '@assistant/move-chat'],
241
+ ['@assistant/move-chat-group', 116],
242
+ [116, '@assistant/move-chat-group'],
243
+ ['@assistant/sort-chat-groups-by-name', 117],
244
+ [117, '@assistant/sort-chat-groups-by-name']
239
245
  ])
240
246
 
241
247
  class HRPC {
@@ -357,7 +363,10 @@ class HRPC {
357
363
  ['@assistant/delete-chat-kv-cache', getEncoding('@assistant/chat-id')],
358
364
  ['@assistant/file-read', getEncoding('@assistant/file-read-request')],
359
365
  ['@assistant/file-preview', getEncoding('@assistant/file-request')],
360
- ['@assistant/file-retry', getEncoding('@assistant/file-retry-request')]
366
+ ['@assistant/file-retry', getEncoding('@assistant/file-retry-request')],
367
+ ['@assistant/move-chat', getEncoding('@assistant/move-chat-request')],
368
+ ['@assistant/move-chat-group', getEncoding('@assistant/move-chat-group-request')],
369
+ ['@assistant/sort-chat-groups-by-name', getEncoding('@assistant/empty')]
361
370
  ])
362
371
  this._responseEncodings = new Map([
363
372
  ['@assistant/config-get', getEncoding('@assistant/config-value')],
@@ -474,7 +483,10 @@ class HRPC {
474
483
  ['@assistant/delete-chat-kv-cache', getEncoding('@assistant/kv-cache-deletion-response')],
475
484
  ['@assistant/file-read', getEncoding('@assistant/file-read-frame')],
476
485
  ['@assistant/file-preview', getEncoding('@assistant/file-preview-response')],
477
- ['@assistant/file-retry', getEncoding('@assistant/ok-response')]
486
+ ['@assistant/file-retry', getEncoding('@assistant/ok-response')],
487
+ ['@assistant/move-chat', getEncoding('@assistant/chat')],
488
+ ['@assistant/move-chat-group', getEncoding('@assistant/chat-group')],
489
+ ['@assistant/sort-chat-groups-by-name', getEncoding('@assistant/chat-group-list')]
478
490
  ])
479
491
  this._rpc = new RPC(stream, async (req) => {
480
492
  const command = methods.get(req.command)
@@ -1032,6 +1044,18 @@ class HRPC {
1032
1044
  return this._call('@assistant/file-retry', args)
1033
1045
  }
1034
1046
 
1047
+ async moveChat(args) {
1048
+ return this._call('@assistant/move-chat', args)
1049
+ }
1050
+
1051
+ async moveChatGroup(args) {
1052
+ return this._call('@assistant/move-chat-group', args)
1053
+ }
1054
+
1055
+ async sortChatGroupsByName(args) {
1056
+ return this._call('@assistant/sort-chat-groups-by-name', args)
1057
+ }
1058
+
1035
1059
  onConfigGet(responseFn) {
1036
1060
  this._handlers['@assistant/config-get'] = responseFn
1037
1061
  }
@@ -1492,6 +1516,18 @@ class HRPC {
1492
1516
  this._handlers['@assistant/file-retry'] = responseFn
1493
1517
  }
1494
1518
 
1519
+ onMoveChat(responseFn) {
1520
+ this._handlers['@assistant/move-chat'] = responseFn
1521
+ }
1522
+
1523
+ onMoveChatGroup(responseFn) {
1524
+ this._handlers['@assistant/move-chat-group'] = responseFn
1525
+ }
1526
+
1527
+ onSortChatGroupsByName(responseFn) {
1528
+ this._handlers['@assistant/sort-chat-groups-by-name'] = responseFn
1529
+ }
1530
+
1495
1531
  _requestIsStream(command) {
1496
1532
  return [
1497
1533
  '@assistant/upload-attachment',
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 5
2
+ // Schema Version: 6
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 5
9
+ const VERSION = 6
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -7807,6 +7807,63 @@ const encoding220 = {
7807
7807
  }
7808
7808
  }
7809
7809
 
7810
+ // @assistant/move-chat-request
7811
+ const encoding221 = {
7812
+ preencode(state, m) {
7813
+ c.string.preencode(state, m.id)
7814
+ state.end++ // max flag is 2 so always one byte
7815
+
7816
+ if (version >= 6 && m.groupId) c.string.preencode(state, m.groupId)
7817
+ if (version >= 6 && m.afterId) c.string.preencode(state, m.afterId)
7818
+ },
7819
+ encode(state, m) {
7820
+ const flags = ((version >= 6 && m.groupId) ? 1 : 0) | ((version >= 6 && m.afterId) ? 2 : 0)
7821
+
7822
+ c.string.encode(state, m.id)
7823
+ c.uint.encode(state, flags)
7824
+
7825
+ if (version >= 6 && m.groupId) c.string.encode(state, m.groupId)
7826
+ if (version >= 6 && m.afterId) c.string.encode(state, m.afterId)
7827
+ },
7828
+ decode(state) {
7829
+ const r0 = c.string.decode(state)
7830
+ const flags = c.uint.decode(state)
7831
+
7832
+ return {
7833
+ id: r0,
7834
+ groupId: (version >= 6 && (flags & 1) !== 0) ? c.string.decode(state) : null,
7835
+ afterId: (version >= 6 && (flags & 2) !== 0) ? c.string.decode(state) : null
7836
+ }
7837
+ }
7838
+ }
7839
+
7840
+ // @assistant/move-chat-group-request
7841
+ const encoding222 = {
7842
+ preencode(state, m) {
7843
+ c.string.preencode(state, m.id)
7844
+ state.end++ // max flag is 1 so always one byte
7845
+
7846
+ if (version >= 6 && m.afterId) c.string.preencode(state, m.afterId)
7847
+ },
7848
+ encode(state, m) {
7849
+ const flags = (version >= 6 && m.afterId) ? 1 : 0
7850
+
7851
+ c.string.encode(state, m.id)
7852
+ c.uint.encode(state, flags)
7853
+
7854
+ if (version >= 6 && m.afterId) c.string.encode(state, m.afterId)
7855
+ },
7856
+ decode(state) {
7857
+ const r0 = c.string.decode(state)
7858
+ const flags = c.uint.decode(state)
7859
+
7860
+ return {
7861
+ id: r0,
7862
+ afterId: (version >= 6 && (flags & 1) !== 0) ? c.string.decode(state) : null
7863
+ }
7864
+ }
7865
+ }
7866
+
7810
7867
  // @assistant/chat-list.groups, deferred due to recusive use
7811
7868
  const encoding18_1 = c.array(c.frame(encoding186))
7812
7869
  // @assistant/device.toolCatalog, deferred due to recusive use
@@ -8345,6 +8402,10 @@ function getEncoding(name) {
8345
8402
  return encoding219
8346
8403
  case '@assistant/file-retry-request':
8347
8404
  return encoding220
8405
+ case '@assistant/move-chat-request':
8406
+ return encoding221
8407
+ case '@assistant/move-chat-group-request':
8408
+ return encoding222
8348
8409
  default:
8349
8410
  throw new Error('Encoder not found ' + name)
8350
8411
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 5
2
+ // Schema Version: 6
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 5
9
+ const VERSION = 6
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -7807,6 +7807,63 @@ const encoding220 = {
7807
7807
  }
7808
7808
  }
7809
7809
 
7810
+ // @assistant/move-chat-request
7811
+ const encoding221 = {
7812
+ preencode(state, m) {
7813
+ c.string.preencode(state, m.id)
7814
+ state.end++ // max flag is 2 so always one byte
7815
+
7816
+ if (version >= 6 && m.groupId) c.string.preencode(state, m.groupId)
7817
+ if (version >= 6 && m.afterId) c.string.preencode(state, m.afterId)
7818
+ },
7819
+ encode(state, m) {
7820
+ const flags = ((version >= 6 && m.groupId) ? 1 : 0) | ((version >= 6 && m.afterId) ? 2 : 0)
7821
+
7822
+ c.string.encode(state, m.id)
7823
+ c.uint.encode(state, flags)
7824
+
7825
+ if (version >= 6 && m.groupId) c.string.encode(state, m.groupId)
7826
+ if (version >= 6 && m.afterId) c.string.encode(state, m.afterId)
7827
+ },
7828
+ decode(state) {
7829
+ const r0 = c.string.decode(state)
7830
+ const flags = c.uint.decode(state)
7831
+
7832
+ return {
7833
+ id: r0,
7834
+ groupId: (version >= 6 && (flags & 1) !== 0) ? c.string.decode(state) : null,
7835
+ afterId: (version >= 6 && (flags & 2) !== 0) ? c.string.decode(state) : null
7836
+ }
7837
+ }
7838
+ }
7839
+
7840
+ // @assistant/move-chat-group-request
7841
+ const encoding222 = {
7842
+ preencode(state, m) {
7843
+ c.string.preencode(state, m.id)
7844
+ state.end++ // max flag is 1 so always one byte
7845
+
7846
+ if (version >= 6 && m.afterId) c.string.preencode(state, m.afterId)
7847
+ },
7848
+ encode(state, m) {
7849
+ const flags = (version >= 6 && m.afterId) ? 1 : 0
7850
+
7851
+ c.string.encode(state, m.id)
7852
+ c.uint.encode(state, flags)
7853
+
7854
+ if (version >= 6 && m.afterId) c.string.encode(state, m.afterId)
7855
+ },
7856
+ decode(state) {
7857
+ const r0 = c.string.decode(state)
7858
+ const flags = c.uint.decode(state)
7859
+
7860
+ return {
7861
+ id: r0,
7862
+ afterId: (version >= 6 && (flags & 1) !== 0) ? c.string.decode(state) : null
7863
+ }
7864
+ }
7865
+ }
7866
+
7810
7867
  // @assistant/chat-list.groups, deferred due to recusive use
7811
7868
  const encoding18_1 = c.array(c.frame(encoding186))
7812
7869
  // @assistant/device.toolCatalog, deferred due to recusive use
@@ -8345,6 +8402,10 @@ function getEncoding(name) {
8345
8402
  return encoding219
8346
8403
  case '@assistant/file-retry-request':
8347
8404
  return encoding220
8405
+ case '@assistant/move-chat-request':
8406
+ return encoding221
8407
+ case '@assistant/move-chat-group-request':
8408
+ return encoding222
8348
8409
  default:
8349
8410
  throw new Error('Encoder not found ' + name)
8350
8411
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 5,
2
+ "version": 6,
3
3
  "schema": [
4
4
  {
5
5
  "name": "empty",
@@ -6197,6 +6197,49 @@
6197
6197
  "version": 5
6198
6198
  }
6199
6199
  ]
6200
+ },
6201
+ {
6202
+ "name": "move-chat-request",
6203
+ "namespace": "assistant",
6204
+ "compact": false,
6205
+ "flagsPosition": 1,
6206
+ "fields": [
6207
+ {
6208
+ "name": "id",
6209
+ "required": true,
6210
+ "type": "string",
6211
+ "version": 6
6212
+ },
6213
+ {
6214
+ "name": "groupId",
6215
+ "type": "string",
6216
+ "version": 6
6217
+ },
6218
+ {
6219
+ "name": "afterId",
6220
+ "type": "string",
6221
+ "version": 6
6222
+ }
6223
+ ]
6224
+ },
6225
+ {
6226
+ "name": "move-chat-group-request",
6227
+ "namespace": "assistant",
6228
+ "compact": false,
6229
+ "flagsPosition": 1,
6230
+ "fields": [
6231
+ {
6232
+ "name": "id",
6233
+ "required": true,
6234
+ "type": "string",
6235
+ "version": 6
6236
+ },
6237
+ {
6238
+ "name": "afterId",
6239
+ "type": "string",
6240
+ "version": 6
6241
+ }
6242
+ ]
6200
6243
  }
6201
6244
  ]
6202
6245
  }
@@ -1,5 +1,5 @@
1
1
  // This file is autogenerated by hyperschema-ts
2
- // Schema version: 5
2
+ // Schema version: 6
3
3
  // Do not edit manually.
4
4
 
5
5
  export interface AssistantEmpty {
@@ -1320,6 +1320,17 @@ export interface AssistantFileRetryRequest {
1320
1320
  processorId: string
1321
1321
  }
1322
1322
 
1323
+ export interface AssistantMoveChatRequest {
1324
+ id: string
1325
+ groupId?: string | null
1326
+ afterId?: string | null
1327
+ }
1328
+
1329
+ export interface AssistantMoveChatGroupRequest {
1330
+ id: string
1331
+ afterId?: string | null
1332
+ }
1333
+
1323
1334
  export interface SchemaTypes {
1324
1335
  "@assistant/empty": AssistantEmpty
1325
1336
  "@assistant/ok-response": AssistantOkResponse
@@ -1542,4 +1553,6 @@ export interface SchemaTypes {
1542
1553
  "@assistant/file-request": AssistantFileRequest
1543
1554
  "@assistant/file-preview-response": AssistantFilePreviewResponse
1544
1555
  "@assistant/file-retry-request": AssistantFileRetryRequest
1556
+ "@assistant/move-chat-request": AssistantMoveChatRequest
1557
+ "@assistant/move-chat-group-request": AssistantMoveChatGroupRequest
1545
1558
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 5
2
+ // Schema Version: 6
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 5
9
+ const VERSION = 6
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -2077,11 +2077,13 @@ const encoding45 = {
2077
2077
  c.string.preencode(state, m.agentId)
2078
2078
  c.string.preencode(state, m.title)
2079
2079
  c.uint.preencode(state, m.createdAt)
2080
- state.end++ // max flag is 16 so always one byte
2080
+ state.end++ // max flag is 64 so always one byte
2081
2081
 
2082
2082
  if (m.deletedAt) c.uint.preencode(state, m.deletedAt)
2083
2083
  if (m.updatedAt) c.uint.preencode(state, m.updatedAt)
2084
2084
  if (version >= 5 && m.groupId) c.string.preencode(state, m.groupId)
2085
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
2086
+ if (version >= 6 && m.rankedAt) c.uint.preencode(state, m.rankedAt)
2085
2087
  },
2086
2088
  encode(state, m) {
2087
2089
  const flags =
@@ -2089,7 +2091,9 @@ const encoding45 = {
2089
2091
  (m.ragEnabled ? 2 : 0) |
2090
2092
  (m.webSearchEnabled ? 4 : 0) |
2091
2093
  (m.updatedAt ? 8 : 0) |
2092
- ((version >= 5 && m.groupId) ? 16 : 0)
2094
+ ((version >= 5 && m.groupId) ? 16 : 0) |
2095
+ ((version >= 6 && m.rank) ? 32 : 0) |
2096
+ ((version >= 6 && m.rankedAt) ? 64 : 0)
2093
2097
 
2094
2098
  c.string.encode(state, m.id)
2095
2099
  c.string.encode(state, m.agentId)
@@ -2100,6 +2104,8 @@ const encoding45 = {
2100
2104
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
2101
2105
  if (m.updatedAt) c.uint.encode(state, m.updatedAt)
2102
2106
  if (version >= 5 && m.groupId) c.string.encode(state, m.groupId)
2107
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
2108
+ if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2103
2109
  },
2104
2110
  decode(state) {
2105
2111
  const v = c.uint.decode(state)
@@ -2119,7 +2125,9 @@ const encoding45 = {
2119
2125
  ragEnabled: (flags & 2) !== 0,
2120
2126
  webSearchEnabled: (flags & 4) !== 0,
2121
2127
  updatedAt: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
2122
- groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null
2128
+ groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null,
2129
+ rank: (version >= 6 && (flags & 32) !== 0) ? c.float64.decode(state) : 0,
2130
+ rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0
2123
2131
  }
2124
2132
  }
2125
2133
  }
@@ -5226,12 +5234,13 @@ const encoding127 = {
5226
5234
  c.string.preencode(state, m.name)
5227
5235
  c.uint.preencode(state, m.createdAt)
5228
5236
  c.uint.preencode(state, m.updatedAt)
5229
- state.end++ // max flag is 1 so always one byte
5237
+ state.end++ // max flag is 2 so always one byte
5230
5238
 
5231
5239
  if (version >= 5 && m.deletedAt) c.uint.preencode(state, m.deletedAt)
5240
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
5232
5241
  },
5233
5242
  encode(state, m) {
5234
- const flags = (version >= 5 && m.deletedAt) ? 1 : 0
5243
+ const flags = ((version >= 5 && m.deletedAt) ? 1 : 0) | ((version >= 6 && m.rank) ? 2 : 0)
5235
5244
 
5236
5245
  c.string.encode(state, m.id)
5237
5246
  c.string.encode(state, m.name)
@@ -5240,6 +5249,7 @@ const encoding127 = {
5240
5249
  c.uint.encode(state, flags)
5241
5250
 
5242
5251
  if (version >= 5 && m.deletedAt) c.uint.encode(state, m.deletedAt)
5252
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
5243
5253
  },
5244
5254
  decode(state) {
5245
5255
  const v = c.uint.decode(state)
@@ -5255,7 +5265,8 @@ const encoding127 = {
5255
5265
  name: r1,
5256
5266
  createdAt: r2,
5257
5267
  updatedAt: r3,
5258
- deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
5268
+ deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0,
5269
+ rank: (version >= 6 && (flags & 2) !== 0) ? c.float64.decode(state) : 0
5259
5270
  }
5260
5271
  }
5261
5272
  }
@@ -5897,11 +5908,13 @@ const encoding139 = {
5897
5908
  c.string.preencode(state, m.agentId)
5898
5909
  c.string.preencode(state, m.title)
5899
5910
  c.uint.preencode(state, m.createdAt)
5900
- state.end++ // max flag is 16 so always one byte
5911
+ state.end++ // max flag is 64 so always one byte
5901
5912
 
5902
5913
  if (m.deletedAt) c.uint.preencode(state, m.deletedAt)
5903
5914
  if (m.updatedAt) c.uint.preencode(state, m.updatedAt)
5904
5915
  if (version >= 5 && m.groupId) c.string.preencode(state, m.groupId)
5916
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
5917
+ if (version >= 6 && m.rankedAt) c.uint.preencode(state, m.rankedAt)
5905
5918
  },
5906
5919
  encode(state, m) {
5907
5920
  const flags =
@@ -5909,7 +5922,9 @@ const encoding139 = {
5909
5922
  (m.ragEnabled ? 2 : 0) |
5910
5923
  (m.webSearchEnabled ? 4 : 0) |
5911
5924
  (m.updatedAt ? 8 : 0) |
5912
- ((version >= 5 && m.groupId) ? 16 : 0)
5925
+ ((version >= 5 && m.groupId) ? 16 : 0) |
5926
+ ((version >= 6 && m.rank) ? 32 : 0) |
5927
+ ((version >= 6 && m.rankedAt) ? 64 : 0)
5913
5928
 
5914
5929
  c.string.encode(state, m.agentId)
5915
5930
  c.string.encode(state, m.title)
@@ -5919,6 +5934,8 @@ const encoding139 = {
5919
5934
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
5920
5935
  if (m.updatedAt) c.uint.encode(state, m.updatedAt)
5921
5936
  if (version >= 5 && m.groupId) c.string.encode(state, m.groupId)
5937
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
5938
+ if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
5922
5939
  },
5923
5940
  decode(state) {
5924
5941
  const v = c.uint.decode(state)
@@ -5937,7 +5954,9 @@ const encoding139 = {
5937
5954
  ragEnabled: (flags & 2) !== 0,
5938
5955
  webSearchEnabled: (flags & 4) !== 0,
5939
5956
  updatedAt: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
5940
- groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null
5957
+ groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null,
5958
+ rank: (version >= 6 && (flags & 32) !== 0) ? c.float64.decode(state) : 0,
5959
+ rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0
5941
5960
  }
5942
5961
  }
5943
5962
  }
@@ -6959,12 +6978,13 @@ const encoding163 = {
6959
6978
  c.string.preencode(state, m.name)
6960
6979
  c.uint.preencode(state, m.createdAt)
6961
6980
  c.uint.preencode(state, m.updatedAt)
6962
- state.end++ // max flag is 1 so always one byte
6981
+ state.end++ // max flag is 2 so always one byte
6963
6982
 
6964
6983
  if (version >= 5 && m.deletedAt) c.uint.preencode(state, m.deletedAt)
6984
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
6965
6985
  },
6966
6986
  encode(state, m) {
6967
- const flags = (version >= 5 && m.deletedAt) ? 1 : 0
6987
+ const flags = ((version >= 5 && m.deletedAt) ? 1 : 0) | ((version >= 6 && m.rank) ? 2 : 0)
6968
6988
 
6969
6989
  c.string.encode(state, m.name)
6970
6990
  c.uint.encode(state, m.createdAt)
@@ -6972,6 +6992,7 @@ const encoding163 = {
6972
6992
  c.uint.encode(state, flags)
6973
6993
 
6974
6994
  if (version >= 5 && m.deletedAt) c.uint.encode(state, m.deletedAt)
6995
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
6975
6996
  },
6976
6997
  decode(state) {
6977
6998
  const v = c.uint.decode(state)
@@ -6986,7 +7007,8 @@ const encoding163 = {
6986
7007
  name: r1,
6987
7008
  createdAt: r2,
6988
7009
  updatedAt: r3,
6989
- deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
7010
+ deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0,
7011
+ rank: (version >= 6 && (flags & 2) !== 0) ? c.float64.decode(state) : 0
6990
7012
  }
6991
7013
  }
6992
7014
  }
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 5
2
+ // Schema Version: 6
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 5
9
+ const VERSION = 6
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -2077,11 +2077,13 @@ const encoding45 = {
2077
2077
  c.string.preencode(state, m.agentId)
2078
2078
  c.string.preencode(state, m.title)
2079
2079
  c.uint.preencode(state, m.createdAt)
2080
- state.end++ // max flag is 16 so always one byte
2080
+ state.end++ // max flag is 64 so always one byte
2081
2081
 
2082
2082
  if (m.deletedAt) c.uint.preencode(state, m.deletedAt)
2083
2083
  if (m.updatedAt) c.uint.preencode(state, m.updatedAt)
2084
2084
  if (version >= 5 && m.groupId) c.string.preencode(state, m.groupId)
2085
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
2086
+ if (version >= 6 && m.rankedAt) c.uint.preencode(state, m.rankedAt)
2085
2087
  },
2086
2088
  encode(state, m) {
2087
2089
  const flags =
@@ -2089,7 +2091,9 @@ const encoding45 = {
2089
2091
  (m.ragEnabled ? 2 : 0) |
2090
2092
  (m.webSearchEnabled ? 4 : 0) |
2091
2093
  (m.updatedAt ? 8 : 0) |
2092
- ((version >= 5 && m.groupId) ? 16 : 0)
2094
+ ((version >= 5 && m.groupId) ? 16 : 0) |
2095
+ ((version >= 6 && m.rank) ? 32 : 0) |
2096
+ ((version >= 6 && m.rankedAt) ? 64 : 0)
2093
2097
 
2094
2098
  c.string.encode(state, m.id)
2095
2099
  c.string.encode(state, m.agentId)
@@ -2100,6 +2104,8 @@ const encoding45 = {
2100
2104
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
2101
2105
  if (m.updatedAt) c.uint.encode(state, m.updatedAt)
2102
2106
  if (version >= 5 && m.groupId) c.string.encode(state, m.groupId)
2107
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
2108
+ if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2103
2109
  },
2104
2110
  decode(state) {
2105
2111
  const v = c.uint.decode(state)
@@ -2119,7 +2125,9 @@ const encoding45 = {
2119
2125
  ragEnabled: (flags & 2) !== 0,
2120
2126
  webSearchEnabled: (flags & 4) !== 0,
2121
2127
  updatedAt: (flags & 8) !== 0 ? c.uint.decode(state) : 0,
2122
- groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null
2128
+ groupId: (version >= 5 && (flags & 16) !== 0) ? c.string.decode(state) : null,
2129
+ rank: (version >= 6 && (flags & 32) !== 0) ? c.float64.decode(state) : 0,
2130
+ rankedAt: (version >= 6 && (flags & 64) !== 0) ? c.uint.decode(state) : 0
2123
2131
  }
2124
2132
  }
2125
2133
  }
@@ -5226,12 +5234,13 @@ const encoding127 = {
5226
5234
  c.string.preencode(state, m.name)
5227
5235
  c.uint.preencode(state, m.createdAt)
5228
5236
  c.uint.preencode(state, m.updatedAt)
5229
- state.end++ // max flag is 1 so always one byte
5237
+ state.end++ // max flag is 2 so always one byte
5230
5238
 
5231
5239
  if (version >= 5 && m.deletedAt) c.uint.preencode(state, m.deletedAt)
5240
+ if (version >= 6 && m.rank) c.float64.preencode(state, m.rank)
5232
5241
  },
5233
5242
  encode(state, m) {
5234
- const flags = (version >= 5 && m.deletedAt) ? 1 : 0
5243
+ const flags = ((version >= 5 && m.deletedAt) ? 1 : 0) | ((version >= 6 && m.rank) ? 2 : 0)
5235
5244
 
5236
5245
  c.string.encode(state, m.id)
5237
5246
  c.string.encode(state, m.name)
@@ -5240,6 +5249,7 @@ const encoding127 = {
5240
5249
  c.uint.encode(state, flags)
5241
5250
 
5242
5251
  if (version >= 5 && m.deletedAt) c.uint.encode(state, m.deletedAt)
5252
+ if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
5243
5253
  },
5244
5254
  decode(state) {
5245
5255
  const v = c.uint.decode(state)
@@ -5255,7 +5265,8 @@ const encoding127 = {
5255
5265
  name: r1,
5256
5266
  createdAt: r2,
5257
5267
  updatedAt: r3,
5258
- deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
5268
+ deletedAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0,
5269
+ rank: (version >= 6 && (flags & 2) !== 0) ? c.float64.decode(state) : 0
5259
5270
  }
5260
5271
  }
5261
5272
  }