@coasys/ad4m 0.10.0 → 0.10.1-multi-user-1
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/lib/index.cjs +3730 -906
- package/lib/index.js +3722 -902
- package/lib/src/Ad4mClient.js +2 -1
- package/lib/src/Literal.js +4 -1
- package/lib/src/agent/Agent.d.ts +12 -0
- package/lib/src/agent/Agent.js +48 -0
- package/lib/src/agent/AgentClient.d.ts +3 -1
- package/lib/src/agent/AgentClient.js +23 -0
- package/lib/src/ai/AIClient.d.ts +8 -2
- package/lib/src/ai/AIClient.js +25 -14
- package/lib/src/ai/AIResolver.d.ts +25 -6
- package/lib/src/ai/AIResolver.js +102 -18
- package/lib/src/index.d.ts +4 -3
- package/lib/src/index.js +4 -3
- package/lib/src/language/Language.d.ts +12 -1
- package/lib/src/model/Ad4mModel.d.ts +622 -0
- package/lib/src/model/Ad4mModel.js +1118 -0
- package/lib/src/{subject → model}/Subject.d.ts +2 -2
- package/lib/src/{subject → model}/Subject.js +18 -18
- package/lib/src/model/decorators.d.ts +502 -0
- package/lib/src/model/decorators.js +683 -0
- package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodClient.js +13 -10
- package/lib/src/neighbourhood/NeighbourhoodProxy.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodProxy.js +4 -4
- package/lib/src/neighbourhood/NeighbourhoodProxy.test.d.ts +1 -0
- package/lib/src/neighbourhood/NeighbourhoodProxy.test.js +73 -0
- package/lib/src/neighbourhood/NeighbourhoodResolver.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodResolver.js +6 -4
- package/lib/src/perspectives/PerspectiveClient.d.ts +23 -11
- package/lib/src/perspectives/PerspectiveClient.js +147 -51
- package/lib/src/perspectives/PerspectiveProxy.d.ts +494 -54
- package/lib/src/perspectives/PerspectiveProxy.js +684 -67
- package/lib/src/perspectives/PerspectiveResolver.d.ts +24 -9
- package/lib/src/perspectives/PerspectiveResolver.js +151 -46
- package/lib/src/runtime/RuntimeClient.d.ts +11 -2
- package/lib/src/runtime/RuntimeClient.js +94 -0
- package/lib/src/runtime/RuntimeResolver.d.ts +36 -1
- package/lib/src/runtime/RuntimeResolver.js +193 -0
- package/lib/src/schema.gql +65 -16
- package/lib/src/typeDefs.js +65 -16
- package/package.json +4 -3
- package/src/Ad4mClient.test.ts +51 -19
- package/src/Ad4mClient.ts +3 -1
- package/src/Literal.ts +4 -1
- package/src/agent/Agent.ts +36 -0
- package/src/agent/AgentClient.ts +30 -0
- package/src/ai/AIClient.ts +35 -14
- package/src/ai/AIResolver.ts +78 -16
- package/src/index.ts +4 -3
- package/src/language/Language.ts +16 -4
- package/src/model/Ad4mModel.ts +1279 -0
- package/src/{subject → model}/Subject.ts +16 -16
- package/src/{subject/SDNADecorators.ts → model/decorators.ts} +384 -50
- package/src/neighbourhood/NeighbourhoodClient.ts +13 -10
- package/src/neighbourhood/NeighbourhoodProxy.test.ts +100 -0
- package/src/neighbourhood/NeighbourhoodProxy.ts +4 -4
- package/src/neighbourhood/NeighbourhoodResolver.ts +2 -2
- package/src/perspectives/PerspectiveClient.ts +156 -51
- package/src/perspectives/PerspectiveProxy.ts +766 -82
- package/src/perspectives/PerspectiveResolver.ts +134 -23
- package/src/runtime/RuntimeClient.ts +104 -2
- package/src/runtime/RuntimeResolver.ts +126 -1
- package/lib/src/subject/SDNADecorators.d.ts +0 -188
- package/lib/src/subject/SDNADecorators.js +0 -360
- package/lib/src/subject/SubjectEntity.d.ts +0 -102
- package/lib/src/subject/SubjectEntity.js +0 -267
- package/src/subject/SubjectEntity.ts +0 -315
- package/yarn-error.log +0 -90
- /package/lib/src/{subject → model}/util.d.ts +0 -0
- /package/lib/src/{subject → model}/util.js +0 -0
- /package/src/{subject → model}/util.ts +0 -0
|
@@ -194,6 +194,104 @@ TriggeredNotification = __decorate([
|
|
|
194
194
|
ObjectType()
|
|
195
195
|
], TriggeredNotification);
|
|
196
196
|
export { TriggeredNotification };
|
|
197
|
+
let ImportStats = class ImportStats {
|
|
198
|
+
};
|
|
199
|
+
__decorate([
|
|
200
|
+
Field(),
|
|
201
|
+
__metadata("design:type", Number)
|
|
202
|
+
], ImportStats.prototype, "total", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
Field(),
|
|
205
|
+
__metadata("design:type", Number)
|
|
206
|
+
], ImportStats.prototype, "imported", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
Field(),
|
|
209
|
+
__metadata("design:type", Number)
|
|
210
|
+
], ImportStats.prototype, "failed", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
Field(),
|
|
213
|
+
__metadata("design:type", Number)
|
|
214
|
+
], ImportStats.prototype, "omitted", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
Field(type => [String]),
|
|
217
|
+
__metadata("design:type", Array)
|
|
218
|
+
], ImportStats.prototype, "errors", void 0);
|
|
219
|
+
ImportStats = __decorate([
|
|
220
|
+
ObjectType()
|
|
221
|
+
], ImportStats);
|
|
222
|
+
export { ImportStats };
|
|
223
|
+
let ImportResult = class ImportResult {
|
|
224
|
+
};
|
|
225
|
+
__decorate([
|
|
226
|
+
Field(),
|
|
227
|
+
__metadata("design:type", ImportStats)
|
|
228
|
+
], ImportResult.prototype, "perspectives", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Field(),
|
|
231
|
+
__metadata("design:type", ImportStats)
|
|
232
|
+
], ImportResult.prototype, "links", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
Field(),
|
|
235
|
+
__metadata("design:type", ImportStats)
|
|
236
|
+
], ImportResult.prototype, "expressions", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Field(),
|
|
239
|
+
__metadata("design:type", ImportStats)
|
|
240
|
+
], ImportResult.prototype, "perspectiveDiffs", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
Field(),
|
|
243
|
+
__metadata("design:type", ImportStats)
|
|
244
|
+
], ImportResult.prototype, "notifications", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
Field(),
|
|
247
|
+
__metadata("design:type", ImportStats)
|
|
248
|
+
], ImportResult.prototype, "models", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
Field(),
|
|
251
|
+
__metadata("design:type", ImportStats)
|
|
252
|
+
], ImportResult.prototype, "defaultModels", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
Field(),
|
|
255
|
+
__metadata("design:type", ImportStats)
|
|
256
|
+
], ImportResult.prototype, "tasks", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
Field(),
|
|
259
|
+
__metadata("design:type", ImportStats)
|
|
260
|
+
], ImportResult.prototype, "friends", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
Field(),
|
|
263
|
+
__metadata("design:type", ImportStats)
|
|
264
|
+
], ImportResult.prototype, "trustedAgents", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
Field(),
|
|
267
|
+
__metadata("design:type", ImportStats)
|
|
268
|
+
], ImportResult.prototype, "knownLinkLanguages", void 0);
|
|
269
|
+
ImportResult = __decorate([
|
|
270
|
+
ObjectType()
|
|
271
|
+
], ImportResult);
|
|
272
|
+
export { ImportResult };
|
|
273
|
+
let UserStatistics = class UserStatistics {
|
|
274
|
+
};
|
|
275
|
+
__decorate([
|
|
276
|
+
Field(),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], UserStatistics.prototype, "email", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
Field(),
|
|
281
|
+
__metadata("design:type", String)
|
|
282
|
+
], UserStatistics.prototype, "did", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
Field({ nullable: true }),
|
|
285
|
+
__metadata("design:type", String)
|
|
286
|
+
], UserStatistics.prototype, "lastSeen", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
Field(type => Int),
|
|
289
|
+
__metadata("design:type", Number)
|
|
290
|
+
], UserStatistics.prototype, "perspectiveCount", void 0);
|
|
291
|
+
UserStatistics = __decorate([
|
|
292
|
+
ObjectType()
|
|
293
|
+
], UserStatistics);
|
|
294
|
+
export { UserStatistics };
|
|
197
295
|
/**
|
|
198
296
|
* Resolver classes are used here to define the GraphQL schema
|
|
199
297
|
* (through the type-graphql annotations)
|
|
@@ -244,6 +342,15 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
244
342
|
runtimeHcAgentInfos() {
|
|
245
343
|
return JSON.stringify([{ "agent": { "type": "Buffer", "data": [9, 191, 231, 58, 255, 107, 202, 55, 206, 57, 9, 103, 17, 34, 206, 195, 207, 114, 5, 73, 77, 198, 56, 136, 17, 227, 242, 231, 194, 135, 128, 48, 170, 189, 119, 186] }, "signature": { "type": "Buffer", "data": [195, 143, 170, 36, 234, 123, 255, 85, 188, 138, 124, 2, 91, 18, 53, 231, 44, 41, 240, 8, 80, 131, 100, 150, 165, 125, 146, 90, 17, 200, 190, 129, 114, 211, 11, 146, 150, 128, 198, 199, 79, 118, 157, 101, 194, 68, 58, 245, 98, 182, 79, 139, 140, 41, 143, 129, 8, 136, 87, 77, 180, 231, 218, 11] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 9, 191, 231, 58, 255, 107, 202, 55, 206, 57, 9, 103, 17, 34, 206, 195, 207, 114, 5, 73, 77, 198, 56, 136, 17, 227, 242, 231, 194, 135, 128, 48, 170, 189, 119, 186, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 101, 83, 52, 86, 112, 54, 109, 118, 80, 48, 122, 116, 85, 101, 104, 114, 117, 113, 89, 52, 102, 66, 53, 101, 69, 98, 121, 48, 69, 66, 100, 89, 84, 50, 95, 67, 48, 69, 112, 77, 111, 76, 111, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 104, 189, 50, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [98, 187, 145, 48, 115, 209, 94, 143, 31, 153, 102, 69, 138, 29, 133, 213, 34, 52, 39, 164, 157, 139, 178, 111, 23, 33, 118, 250, 28, 155, 78, 246, 128, 49, 179, 38] }, "signature": { "type": "Buffer", "data": [233, 192, 38, 3, 59, 248, 124, 231, 57, 255, 40, 154, 50, 60, 119, 252, 68, 198, 154, 109, 175, 155, 106, 217, 211, 155, 109, 223, 249, 91, 221, 210, 17, 132, 72, 230, 11, 230, 247, 119, 72, 244, 145, 91, 75, 7, 67, 5, 130, 151, 44, 231, 52, 220, 28, 154, 212, 82, 58, 90, 203, 211, 236, 4] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 98, 187, 145, 48, 115, 209, 94, 143, 31, 153, 102, 69, 138, 29, 133, 213, 34, 52, 39, 164, 157, 139, 178, 111, 23, 33, 118, 250, 28, 155, 78, 246, 128, 49, 179, 38, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 55, 101, 77, 106, 48, 73, 83, 72, 56, 56, 81, 56, 45, 89, 51, 74, 89, 70, 53, 76, 72, 57, 83, 54, 68, 119, 71, 73, 49, 88, 45, 115, 87, 53, 68, 104, 66, 87, 121, 71, 119, 78, 115, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 103, 45, 197, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [181, 101, 115, 45, 214, 127, 198, 153, 159, 184, 30, 87, 67, 224, 208, 184, 203, 176, 130, 158, 236, 127, 153, 125, 243, 183, 188, 167, 154, 25, 118, 254, 101, 145, 210, 109] }, "signature": { "type": "Buffer", "data": [88, 189, 229, 122, 44, 171, 194, 156, 90, 79, 148, 49, 207, 224, 34, 199, 219, 88, 24, 243, 103, 127, 123, 41, 87, 171, 127, 92, 6, 216, 198, 171, 26, 226, 237, 217, 122, 78, 98, 146, 55, 255, 68, 240, 202, 83, 58, 140, 147, 185, 3, 66, 15, 216, 210, 22, 99, 197, 73, 234, 120, 17, 74, 1] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 181, 101, 115, 45, 214, 127, 198, 153, 159, 184, 30, 87, 67, 224, 208, 184, 203, 176, 130, 158, 236, 127, 153, 125, 243, 183, 188, 167, 154, 25, 118, 254, 101, 145, 210, 109, 164, 117, 114, 108, 115, 145, 217, 99, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 114, 70, 71, 83, 100, 113, 104, 101, 68, 107, 70, 70, 56, 69, 102, 109, 45, 69, 116, 55, 119, 81, 101, 120, 83, 88, 55, 65, 112, 69, 51, 89, 86, 99, 45, 120, 102, 52, 104, 106, 77, 115, 77, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 57, 50, 46, 49, 54, 56, 46, 49, 55, 56, 46, 54, 48, 47, 112, 47, 55, 55, 52, 52, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 113, 23, 220, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }, { "agent": { "type": "Buffer", "data": [3, 171, 237, 107, 186, 245, 165, 47, 237, 235, 211, 49, 245, 62, 113, 53, 255, 252, 223, 226, 75, 118, 148, 187, 23, 53, 70, 174, 160, 184, 64, 63, 94, 210, 227, 56] }, "signature": { "type": "Buffer", "data": [129, 12, 55, 104, 239, 121, 138, 2, 86, 106, 136, 51, 219, 79, 170, 8, 195, 69, 81, 188, 225, 192, 247, 196, 54, 39, 164, 110, 75, 39, 240, 56, 245, 189, 154, 77, 72, 11, 97, 250, 202, 149, 242, 97, 128, 28, 47, 164, 236, 104, 136, 82, 212, 246, 44, 143, 132, 119, 255, 135, 112, 11, 20, 13] }, "agent_info": { "type": "Buffer", "data": [134, 165, 115, 112, 97, 99, 101, 196, 36, 203, 165, 212, 173, 24, 215, 165, 196, 25, 145, 248, 113, 246, 139, 205, 182, 241, 138, 57, 0, 26, 8, 217, 179, 23, 126, 59, 136, 128, 213, 110, 225, 173, 72, 197, 95, 165, 97, 103, 101, 110, 116, 196, 36, 3, 171, 237, 107, 186, 245, 165, 47, 237, 235, 211, 49, 245, 62, 113, 53, 255, 252, 223, 226, 75, 118, 148, 187, 23, 53, 70, 174, 160, 184, 64, 63, 94, 210, 227, 56, 164, 117, 114, 108, 115, 145, 217, 97, 107, 105, 116, 115, 117, 110, 101, 45, 112, 114, 111, 120, 121, 58, 47, 47, 104, 121, 112, 115, 86, 121, 103, 117, 80, 84, 115, 53, 118, 73, 80, 65, 102, 97, 112, 90, 88, 113, 117, 84, 115, 79, 80, 100, 67, 81, 79, 79, 117, 103, 57, 51, 82, 103, 106, 95, 114, 85, 73, 47, 107, 105, 116, 115, 117, 110, 101, 45, 113, 117, 105, 99, 47, 104, 47, 49, 54, 53, 46, 50, 50, 46, 51, 50, 46, 49, 49, 47, 112, 47, 53, 55, 55, 57, 47, 45, 45, 172, 115, 105, 103, 110, 101, 100, 95, 97, 116, 95, 109, 115, 207, 0, 0, 1, 123, 233, 113, 188, 123, 176, 101, 120, 112, 105, 114, 101, 115, 95, 97, 102, 116, 101, 114, 95, 109, 115, 206, 0, 18, 79, 128, 169, 109, 101, 116, 97, 95, 105, 110, 102, 111, 196, 34, 129, 187, 100, 104, 116, 95, 115, 116, 111, 114, 97, 103, 101, 95, 97, 114, 99, 95, 104, 97, 108, 102, 95, 108, 101, 110, 103, 116, 104, 206, 128, 0, 0, 1] } }]);
|
|
246
344
|
}
|
|
345
|
+
runtimeGetNetworkMetrics() {
|
|
346
|
+
return JSON.stringify({
|
|
347
|
+
"metrics": {},
|
|
348
|
+
"stats": {}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
runtimeRestartHolochain() {
|
|
352
|
+
return true;
|
|
353
|
+
}
|
|
247
354
|
runtimeHcAddAgentInfos(agentInfos) {
|
|
248
355
|
return true;
|
|
249
356
|
}
|
|
@@ -322,6 +429,32 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
322
429
|
}
|
|
323
430
|
};
|
|
324
431
|
}
|
|
432
|
+
runtimeExportDb(filePath) {
|
|
433
|
+
return true;
|
|
434
|
+
}
|
|
435
|
+
runtimeImportDb(filePath) {
|
|
436
|
+
return true;
|
|
437
|
+
}
|
|
438
|
+
runtimeExportPerspective(perspectiveUuid, filePath) {
|
|
439
|
+
return true;
|
|
440
|
+
}
|
|
441
|
+
runtimeImportPerspective(filePath) {
|
|
442
|
+
return true;
|
|
443
|
+
}
|
|
444
|
+
runtimeMultiUserEnabled() {
|
|
445
|
+
return false;
|
|
446
|
+
}
|
|
447
|
+
runtimeSetMultiUserEnabled(enabled) {
|
|
448
|
+
return enabled;
|
|
449
|
+
}
|
|
450
|
+
runtimeListUsers() {
|
|
451
|
+
return [{
|
|
452
|
+
email: "test@example.com",
|
|
453
|
+
did: "did:key:test123",
|
|
454
|
+
lastSeen: new Date().toISOString(),
|
|
455
|
+
perspectiveCount: 5
|
|
456
|
+
}];
|
|
457
|
+
}
|
|
325
458
|
};
|
|
326
459
|
__decorate([
|
|
327
460
|
Mutation(returns => Boolean),
|
|
@@ -408,6 +541,18 @@ __decorate([
|
|
|
408
541
|
__metadata("design:paramtypes", []),
|
|
409
542
|
__metadata("design:returntype", String)
|
|
410
543
|
], RuntimeResolver.prototype, "runtimeHcAgentInfos", null);
|
|
544
|
+
__decorate([
|
|
545
|
+
Query(),
|
|
546
|
+
__metadata("design:type", Function),
|
|
547
|
+
__metadata("design:paramtypes", []),
|
|
548
|
+
__metadata("design:returntype", String)
|
|
549
|
+
], RuntimeResolver.prototype, "runtimeGetNetworkMetrics", null);
|
|
550
|
+
__decorate([
|
|
551
|
+
Mutation(returns => Boolean),
|
|
552
|
+
__metadata("design:type", Function),
|
|
553
|
+
__metadata("design:paramtypes", []),
|
|
554
|
+
__metadata("design:returntype", Boolean)
|
|
555
|
+
], RuntimeResolver.prototype, "runtimeRestartHolochain", null);
|
|
411
556
|
__decorate([
|
|
412
557
|
Mutation(returns => Boolean),
|
|
413
558
|
__param(0, Arg("agentInfos", type => String)),
|
|
@@ -514,6 +659,54 @@ __decorate([
|
|
|
514
659
|
__metadata("design:paramtypes", []),
|
|
515
660
|
__metadata("design:returntype", TriggeredNotification)
|
|
516
661
|
], RuntimeResolver.prototype, "runtimeNotificationTriggered", null);
|
|
662
|
+
__decorate([
|
|
663
|
+
Mutation(),
|
|
664
|
+
__param(0, Arg("filePath", type => String)),
|
|
665
|
+
__metadata("design:type", Function),
|
|
666
|
+
__metadata("design:paramtypes", [String]),
|
|
667
|
+
__metadata("design:returntype", Boolean)
|
|
668
|
+
], RuntimeResolver.prototype, "runtimeExportDb", null);
|
|
669
|
+
__decorate([
|
|
670
|
+
Mutation(),
|
|
671
|
+
__param(0, Arg("filePath", type => String)),
|
|
672
|
+
__metadata("design:type", Function),
|
|
673
|
+
__metadata("design:paramtypes", [String]),
|
|
674
|
+
__metadata("design:returntype", Boolean)
|
|
675
|
+
], RuntimeResolver.prototype, "runtimeImportDb", null);
|
|
676
|
+
__decorate([
|
|
677
|
+
Mutation(),
|
|
678
|
+
__param(0, Arg("perspectiveUuid", type => String)),
|
|
679
|
+
__param(1, Arg("filePath", type => String)),
|
|
680
|
+
__metadata("design:type", Function),
|
|
681
|
+
__metadata("design:paramtypes", [String, String]),
|
|
682
|
+
__metadata("design:returntype", Boolean)
|
|
683
|
+
], RuntimeResolver.prototype, "runtimeExportPerspective", null);
|
|
684
|
+
__decorate([
|
|
685
|
+
Mutation(),
|
|
686
|
+
__param(0, Arg("filePath", type => String)),
|
|
687
|
+
__metadata("design:type", Function),
|
|
688
|
+
__metadata("design:paramtypes", [String]),
|
|
689
|
+
__metadata("design:returntype", Boolean)
|
|
690
|
+
], RuntimeResolver.prototype, "runtimeImportPerspective", null);
|
|
691
|
+
__decorate([
|
|
692
|
+
Query(returns => Boolean),
|
|
693
|
+
__metadata("design:type", Function),
|
|
694
|
+
__metadata("design:paramtypes", []),
|
|
695
|
+
__metadata("design:returntype", Boolean)
|
|
696
|
+
], RuntimeResolver.prototype, "runtimeMultiUserEnabled", null);
|
|
697
|
+
__decorate([
|
|
698
|
+
Mutation(returns => Boolean),
|
|
699
|
+
__param(0, Arg("enabled")),
|
|
700
|
+
__metadata("design:type", Function),
|
|
701
|
+
__metadata("design:paramtypes", [Boolean]),
|
|
702
|
+
__metadata("design:returntype", Boolean)
|
|
703
|
+
], RuntimeResolver.prototype, "runtimeSetMultiUserEnabled", null);
|
|
704
|
+
__decorate([
|
|
705
|
+
Query(returns => [UserStatistics]),
|
|
706
|
+
__metadata("design:type", Function),
|
|
707
|
+
__metadata("design:paramtypes", []),
|
|
708
|
+
__metadata("design:returntype", Array)
|
|
709
|
+
], RuntimeResolver.prototype, "runtimeListUsers", null);
|
|
517
710
|
RuntimeResolver = __decorate([
|
|
518
711
|
Resolver()
|
|
519
712
|
], RuntimeResolver);
|
package/lib/src/schema.gql
CHANGED
|
@@ -251,14 +251,16 @@ input LinkQuery {
|
|
|
251
251
|
|
|
252
252
|
type LocalModel {
|
|
253
253
|
fileName: String!
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
huggingfaceRepo: String
|
|
255
|
+
revision: String
|
|
256
|
+
tokenizerSource: TokenizerSource
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
input LocalModelInput {
|
|
259
260
|
fileName: String!
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
huggingfaceRepo: String
|
|
262
|
+
revision: String
|
|
263
|
+
tokenizerSource: TokenizerSourceInput
|
|
262
264
|
}
|
|
263
265
|
|
|
264
266
|
type Model {
|
|
@@ -311,8 +313,8 @@ type Mutation {
|
|
|
311
313
|
aiAddTask(task: AITaskInput!): AITask!
|
|
312
314
|
aiCloseTranscriptionStream(streamId: String!): String!
|
|
313
315
|
aiEmbed(modelId: String!, text: String!): String!
|
|
314
|
-
aiFeedTranscriptionStream(audio: [Float!]!,
|
|
315
|
-
aiOpenTranscriptionStream(modelId: String
|
|
316
|
+
aiFeedTranscriptionStream(audio: [Float!]!, streamIds: [String!]!): String!
|
|
317
|
+
aiOpenTranscriptionStream(modelId: String!, params: VoiceActivityParamsInput): String!
|
|
316
318
|
aiPrompt(prompt: String!, taskId: String!): String!
|
|
317
319
|
aiRemoveModel(modelId: String!): Boolean!
|
|
318
320
|
aiRemoveTask(taskId: String!): AITask!
|
|
@@ -328,38 +330,49 @@ type Mutation {
|
|
|
328
330
|
languageWriteSettings(languageAddress: String!, settings: String!): Boolean!
|
|
329
331
|
neighbourhoodJoinFromUrl(url: String!): PerspectiveHandle!
|
|
330
332
|
neighbourhoodPublishFromPerspective(linkLanguage: String!, meta: PerspectiveInput!, perspectiveUUID: String!): String!
|
|
331
|
-
neighbourhoodSendBroadcast(payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
|
|
332
|
-
neighbourhoodSendBroadcastU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
|
|
333
|
+
neighbourhoodSendBroadcast(loopback: Boolean, payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
|
|
334
|
+
neighbourhoodSendBroadcastU(loopback: Boolean, payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
|
|
333
335
|
neighbourhoodSendSignal(payload: PerspectiveInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
|
|
334
336
|
neighbourhoodSendSignalU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
|
|
335
337
|
neighbourhoodSetOnlineStatus(perspectiveUUID: String!, status: PerspectiveInput!): Boolean!
|
|
336
338
|
neighbourhoodSetOnlineStatusU(perspectiveUUID: String!, status: PerspectiveUnsignedInput!): Boolean!
|
|
337
339
|
perspectiveAdd(name: String!): PerspectiveHandle!
|
|
338
|
-
perspectiveAddLink(link: LinkInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
339
|
-
perspectiveAddLinkExpression(link: LinkExpressionInput!, status: String, uuid: String!): LinkExpression!
|
|
340
|
-
perspectiveAddLinks(links: [LinkInput!]!, status: String, uuid: String!): [LinkExpression!]!
|
|
340
|
+
perspectiveAddLink(batchId: String, link: LinkInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
341
|
+
perspectiveAddLinkExpression(batchId: String, link: LinkExpressionInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
342
|
+
perspectiveAddLinks(batchId: String, links: [LinkInput!]!, status: String = "shared", uuid: String!): [LinkExpression!]!
|
|
341
343
|
perspectiveAddSdna(name: String!, sdnaCode: String!, sdnaType: String!, uuid: String!): Boolean!
|
|
342
|
-
|
|
343
|
-
|
|
344
|
+
perspectiveCommitBatch(batchId: String!, uuid: String!): LinkExpressionMutations!
|
|
345
|
+
perspectiveCreateBatch(uuid: String!): String!
|
|
346
|
+
perspectiveCreateSubject(batchId: String, expressionAddress: String!, initialValues: String, subjectClass: String!, uuid: String!): Boolean!
|
|
347
|
+
perspectiveDisposeQuerySubscription(subscriptionId: String!, uuid: String!): Boolean!
|
|
348
|
+
perspectiveExecuteCommands(batchId: String, commands: String!, expression: String!, parameters: String, uuid: String!): Boolean!
|
|
344
349
|
perspectiveGetSubjectData(expressionAddress: String!, subjectClass: String!, uuid: String!): String!
|
|
350
|
+
perspectiveKeepAliveQuery(subscriptionId: String!, uuid: String!): Boolean!
|
|
345
351
|
perspectiveLinkMutations(mutations: LinkMutations!, status: String, uuid: String!): LinkExpressionMutations!
|
|
346
352
|
perspectivePublishSnapshot(uuid: String!): String
|
|
347
353
|
perspectiveRemove(uuid: String!): Boolean!
|
|
348
|
-
perspectiveRemoveLink(link: LinkExpressionInput!, uuid: String!): Boolean!
|
|
349
|
-
perspectiveRemoveLinks(links: [LinkExpressionInput!]!, uuid: String!): [LinkExpression!]!
|
|
354
|
+
perspectiveRemoveLink(batchId: String, link: LinkExpressionInput!, uuid: String!): Boolean!
|
|
355
|
+
perspectiveRemoveLinks(batchId: String, links: [LinkExpressionInput!]!, uuid: String!): [LinkExpression!]!
|
|
356
|
+
perspectiveSubscribeQuery(query: String!, uuid: String!): QuerySubscription!
|
|
350
357
|
perspectiveUpdate(name: String!, uuid: String!): PerspectiveHandle
|
|
351
|
-
perspectiveUpdateLink(newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
|
|
358
|
+
perspectiveUpdateLink(batchId: String, newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
|
|
352
359
|
runtimeAddFriends(dids: [String!]!): [String!]!
|
|
353
360
|
runtimeAddKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
361
|
+
runtimeExportDb(filePath: String!): Boolean!
|
|
362
|
+
runtimeExportPerspective(filePath: String!, perspectiveUuid: String!): Boolean!
|
|
354
363
|
runtimeFriendSendMessage(did: String!, message: PerspectiveInput!): Boolean!
|
|
355
364
|
runtimeGrantNotification(id: String!): Boolean!
|
|
356
365
|
runtimeHcAddAgentInfos(agentInfos: String!): Boolean!
|
|
366
|
+
runtimeImportDb(filePath: String!): Boolean!
|
|
367
|
+
runtimeImportPerspective(filePath: String!): Boolean!
|
|
357
368
|
runtimeOpenLink(url: String!): Boolean!
|
|
358
369
|
runtimeQuit: Boolean!
|
|
359
370
|
runtimeRemoveFriends(dids: [String!]!): [String!]!
|
|
360
371
|
runtimeRemoveKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
361
372
|
runtimeRemoveNotification(id: String!): Boolean!
|
|
362
373
|
runtimeRequestInstallNotification(notification: NotificationInput!): String!
|
|
374
|
+
runtimeRestartHolochain: Boolean!
|
|
375
|
+
runtimeSetMultiUserEnabled(enabled: Boolean!): Boolean!
|
|
363
376
|
runtimeSetStatus(status: PerspectiveInput!): Boolean!
|
|
364
377
|
runtimeUpdateNotification(id: String!, notification: NotificationInput!): Boolean!
|
|
365
378
|
}
|
|
@@ -462,15 +475,23 @@ type Query {
|
|
|
462
475
|
perspectives: [PerspectiveHandle!]!
|
|
463
476
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
464
477
|
runtimeFriends: [String!]!
|
|
478
|
+
runtimeGetNetworkMetrics: String!
|
|
465
479
|
runtimeHcAgentInfos: String!
|
|
466
480
|
runtimeInfo: RuntimeInfo!
|
|
467
481
|
runtimeKnownLinkLanguageTemplates: [String!]!
|
|
482
|
+
runtimeListUsers: [UserStatistics!]!
|
|
468
483
|
runtimeMessageInbox(filter: String): [PerspectiveExpression!]!
|
|
469
484
|
runtimeMessageOutbox(filter: String): [SentMessage!]!
|
|
485
|
+
runtimeMultiUserEnabled: Boolean!
|
|
470
486
|
runtimeNotifications: [Notification!]!
|
|
471
487
|
runtimeVerifyStringSignedByDid(data: String!, did: String!, didSigningKeyId: String!, signedData: String!): Boolean!
|
|
472
488
|
}
|
|
473
489
|
|
|
490
|
+
type QuerySubscription {
|
|
491
|
+
result: String!
|
|
492
|
+
subscriptionId: String!
|
|
493
|
+
}
|
|
494
|
+
|
|
474
495
|
type Resource {
|
|
475
496
|
domain: String!
|
|
476
497
|
pointers: [String!]!
|
|
@@ -503,6 +524,7 @@ type Subscription {
|
|
|
503
524
|
perspectiveLinkAdded(uuid: String!): LinkExpression
|
|
504
525
|
perspectiveLinkRemoved(uuid: String!): LinkExpression
|
|
505
526
|
perspectiveLinkUpdated(uuid: String!): LinkExpressionUpdated
|
|
527
|
+
perspectiveQuerySubscription(subscriptionId: String!): String!
|
|
506
528
|
perspectiveRemoved: String
|
|
507
529
|
perspectiveSyncStateChange(uuid: String!): String!
|
|
508
530
|
perspectiveUpdated: PerspectiveHandle
|
|
@@ -510,8 +532,35 @@ type Subscription {
|
|
|
510
532
|
runtimeNotificationTriggered: TriggeredNotification
|
|
511
533
|
}
|
|
512
534
|
|
|
535
|
+
type TokenizerSource {
|
|
536
|
+
fileName: String!
|
|
537
|
+
repo: String!
|
|
538
|
+
revision: String!
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
input TokenizerSourceInput {
|
|
542
|
+
fileName: String!
|
|
543
|
+
repo: String!
|
|
544
|
+
revision: String!
|
|
545
|
+
}
|
|
546
|
+
|
|
513
547
|
type TriggeredNotification {
|
|
514
548
|
notification: Notification!
|
|
515
549
|
perspectiveId: String!
|
|
516
550
|
triggerMatch: String!
|
|
517
551
|
}
|
|
552
|
+
|
|
553
|
+
type UserStatistics {
|
|
554
|
+
did: String!
|
|
555
|
+
email: String!
|
|
556
|
+
lastSeen: String
|
|
557
|
+
perspectiveCount: Int!
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
input VoiceActivityParamsInput {
|
|
561
|
+
endThreshold: Float
|
|
562
|
+
endWindow: Float
|
|
563
|
+
startThreshold: Float
|
|
564
|
+
startWindow: Float
|
|
565
|
+
timeBeforeSpeech: Float
|
|
566
|
+
}
|
package/lib/src/typeDefs.js
CHANGED
|
@@ -247,14 +247,16 @@ input LinkQuery {
|
|
|
247
247
|
|
|
248
248
|
type LocalModel {
|
|
249
249
|
fileName: String!
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
huggingfaceRepo: String
|
|
251
|
+
revision: String
|
|
252
|
+
tokenizerSource: TokenizerSource
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
input LocalModelInput {
|
|
255
256
|
fileName: String!
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
huggingfaceRepo: String
|
|
258
|
+
revision: String
|
|
259
|
+
tokenizerSource: TokenizerSourceInput
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
type Model {
|
|
@@ -307,8 +309,8 @@ type Mutation {
|
|
|
307
309
|
aiAddTask(task: AITaskInput!): AITask!
|
|
308
310
|
aiCloseTranscriptionStream(streamId: String!): String!
|
|
309
311
|
aiEmbed(modelId: String!, text: String!): String!
|
|
310
|
-
aiFeedTranscriptionStream(audio: [Float!]!,
|
|
311
|
-
aiOpenTranscriptionStream(modelId: String
|
|
312
|
+
aiFeedTranscriptionStream(audio: [Float!]!, streamIds: [String!]!): String!
|
|
313
|
+
aiOpenTranscriptionStream(modelId: String!, params: VoiceActivityParamsInput): String!
|
|
312
314
|
aiPrompt(prompt: String!, taskId: String!): String!
|
|
313
315
|
aiRemoveModel(modelId: String!): Boolean!
|
|
314
316
|
aiRemoveTask(taskId: String!): AITask!
|
|
@@ -324,38 +326,49 @@ type Mutation {
|
|
|
324
326
|
languageWriteSettings(languageAddress: String!, settings: String!): Boolean!
|
|
325
327
|
neighbourhoodJoinFromUrl(url: String!): PerspectiveHandle!
|
|
326
328
|
neighbourhoodPublishFromPerspective(linkLanguage: String!, meta: PerspectiveInput!, perspectiveUUID: String!): String!
|
|
327
|
-
neighbourhoodSendBroadcast(payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
|
|
328
|
-
neighbourhoodSendBroadcastU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
|
|
329
|
+
neighbourhoodSendBroadcast(loopback: Boolean, payload: PerspectiveInput!, perspectiveUUID: String!): Boolean!
|
|
330
|
+
neighbourhoodSendBroadcastU(loopback: Boolean, payload: PerspectiveUnsignedInput!, perspectiveUUID: String!): Boolean!
|
|
329
331
|
neighbourhoodSendSignal(payload: PerspectiveInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
|
|
330
332
|
neighbourhoodSendSignalU(payload: PerspectiveUnsignedInput!, perspectiveUUID: String!, remoteAgentDid: String!): Boolean!
|
|
331
333
|
neighbourhoodSetOnlineStatus(perspectiveUUID: String!, status: PerspectiveInput!): Boolean!
|
|
332
334
|
neighbourhoodSetOnlineStatusU(perspectiveUUID: String!, status: PerspectiveUnsignedInput!): Boolean!
|
|
333
335
|
perspectiveAdd(name: String!): PerspectiveHandle!
|
|
334
|
-
perspectiveAddLink(link: LinkInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
335
|
-
perspectiveAddLinkExpression(link: LinkExpressionInput!, status: String, uuid: String!): LinkExpression!
|
|
336
|
-
perspectiveAddLinks(links: [LinkInput!]!, status: String, uuid: String!): [LinkExpression!]!
|
|
336
|
+
perspectiveAddLink(batchId: String, link: LinkInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
337
|
+
perspectiveAddLinkExpression(batchId: String, link: LinkExpressionInput!, status: String = "shared", uuid: String!): LinkExpression!
|
|
338
|
+
perspectiveAddLinks(batchId: String, links: [LinkInput!]!, status: String = "shared", uuid: String!): [LinkExpression!]!
|
|
337
339
|
perspectiveAddSdna(name: String!, sdnaCode: String!, sdnaType: String!, uuid: String!): Boolean!
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
perspectiveCommitBatch(batchId: String!, uuid: String!): LinkExpressionMutations!
|
|
341
|
+
perspectiveCreateBatch(uuid: String!): String!
|
|
342
|
+
perspectiveCreateSubject(batchId: String, expressionAddress: String!, initialValues: String, subjectClass: String!, uuid: String!): Boolean!
|
|
343
|
+
perspectiveDisposeQuerySubscription(subscriptionId: String!, uuid: String!): Boolean!
|
|
344
|
+
perspectiveExecuteCommands(batchId: String, commands: String!, expression: String!, parameters: String, uuid: String!): Boolean!
|
|
340
345
|
perspectiveGetSubjectData(expressionAddress: String!, subjectClass: String!, uuid: String!): String!
|
|
346
|
+
perspectiveKeepAliveQuery(subscriptionId: String!, uuid: String!): Boolean!
|
|
341
347
|
perspectiveLinkMutations(mutations: LinkMutations!, status: String, uuid: String!): LinkExpressionMutations!
|
|
342
348
|
perspectivePublishSnapshot(uuid: String!): String
|
|
343
349
|
perspectiveRemove(uuid: String!): Boolean!
|
|
344
|
-
perspectiveRemoveLink(link: LinkExpressionInput!, uuid: String!): Boolean!
|
|
345
|
-
perspectiveRemoveLinks(links: [LinkExpressionInput!]!, uuid: String!): [LinkExpression!]!
|
|
350
|
+
perspectiveRemoveLink(batchId: String, link: LinkExpressionInput!, uuid: String!): Boolean!
|
|
351
|
+
perspectiveRemoveLinks(batchId: String, links: [LinkExpressionInput!]!, uuid: String!): [LinkExpression!]!
|
|
352
|
+
perspectiveSubscribeQuery(query: String!, uuid: String!): QuerySubscription!
|
|
346
353
|
perspectiveUpdate(name: String!, uuid: String!): PerspectiveHandle
|
|
347
|
-
perspectiveUpdateLink(newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
|
|
354
|
+
perspectiveUpdateLink(batchId: String, newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
|
|
348
355
|
runtimeAddFriends(dids: [String!]!): [String!]!
|
|
349
356
|
runtimeAddKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
357
|
+
runtimeExportDb(filePath: String!): Boolean!
|
|
358
|
+
runtimeExportPerspective(filePath: String!, perspectiveUuid: String!): Boolean!
|
|
350
359
|
runtimeFriendSendMessage(did: String!, message: PerspectiveInput!): Boolean!
|
|
351
360
|
runtimeGrantNotification(id: String!): Boolean!
|
|
352
361
|
runtimeHcAddAgentInfos(agentInfos: String!): Boolean!
|
|
362
|
+
runtimeImportDb(filePath: String!): Boolean!
|
|
363
|
+
runtimeImportPerspective(filePath: String!): Boolean!
|
|
353
364
|
runtimeOpenLink(url: String!): Boolean!
|
|
354
365
|
runtimeQuit: Boolean!
|
|
355
366
|
runtimeRemoveFriends(dids: [String!]!): [String!]!
|
|
356
367
|
runtimeRemoveKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
357
368
|
runtimeRemoveNotification(id: String!): Boolean!
|
|
358
369
|
runtimeRequestInstallNotification(notification: NotificationInput!): String!
|
|
370
|
+
runtimeRestartHolochain: Boolean!
|
|
371
|
+
runtimeSetMultiUserEnabled(enabled: Boolean!): Boolean!
|
|
359
372
|
runtimeSetStatus(status: PerspectiveInput!): Boolean!
|
|
360
373
|
runtimeUpdateNotification(id: String!, notification: NotificationInput!): Boolean!
|
|
361
374
|
}
|
|
@@ -458,15 +471,23 @@ type Query {
|
|
|
458
471
|
perspectives: [PerspectiveHandle!]!
|
|
459
472
|
runtimeFriendStatus(did: String!): PerspectiveExpression
|
|
460
473
|
runtimeFriends: [String!]!
|
|
474
|
+
runtimeGetNetworkMetrics: String!
|
|
461
475
|
runtimeHcAgentInfos: String!
|
|
462
476
|
runtimeInfo: RuntimeInfo!
|
|
463
477
|
runtimeKnownLinkLanguageTemplates: [String!]!
|
|
478
|
+
runtimeListUsers: [UserStatistics!]!
|
|
464
479
|
runtimeMessageInbox(filter: String): [PerspectiveExpression!]!
|
|
465
480
|
runtimeMessageOutbox(filter: String): [SentMessage!]!
|
|
481
|
+
runtimeMultiUserEnabled: Boolean!
|
|
466
482
|
runtimeNotifications: [Notification!]!
|
|
467
483
|
runtimeVerifyStringSignedByDid(data: String!, did: String!, didSigningKeyId: String!, signedData: String!): Boolean!
|
|
468
484
|
}
|
|
469
485
|
|
|
486
|
+
type QuerySubscription {
|
|
487
|
+
result: String!
|
|
488
|
+
subscriptionId: String!
|
|
489
|
+
}
|
|
490
|
+
|
|
470
491
|
type Resource {
|
|
471
492
|
domain: String!
|
|
472
493
|
pointers: [String!]!
|
|
@@ -499,6 +520,7 @@ type Subscription {
|
|
|
499
520
|
perspectiveLinkAdded(uuid: String!): LinkExpression
|
|
500
521
|
perspectiveLinkRemoved(uuid: String!): LinkExpression
|
|
501
522
|
perspectiveLinkUpdated(uuid: String!): LinkExpressionUpdated
|
|
523
|
+
perspectiveQuerySubscription(subscriptionId: String!): String!
|
|
502
524
|
perspectiveRemoved: String
|
|
503
525
|
perspectiveSyncStateChange(uuid: String!): String!
|
|
504
526
|
perspectiveUpdated: PerspectiveHandle
|
|
@@ -506,9 +528,36 @@ type Subscription {
|
|
|
506
528
|
runtimeNotificationTriggered: TriggeredNotification
|
|
507
529
|
}
|
|
508
530
|
|
|
531
|
+
type TokenizerSource {
|
|
532
|
+
fileName: String!
|
|
533
|
+
repo: String!
|
|
534
|
+
revision: String!
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
input TokenizerSourceInput {
|
|
538
|
+
fileName: String!
|
|
539
|
+
repo: String!
|
|
540
|
+
revision: String!
|
|
541
|
+
}
|
|
542
|
+
|
|
509
543
|
type TriggeredNotification {
|
|
510
544
|
notification: Notification!
|
|
511
545
|
perspectiveId: String!
|
|
512
546
|
triggerMatch: String!
|
|
513
547
|
}
|
|
548
|
+
|
|
549
|
+
type UserStatistics {
|
|
550
|
+
did: String!
|
|
551
|
+
email: String!
|
|
552
|
+
lastSeen: String
|
|
553
|
+
perspectiveCount: Int!
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
input VoiceActivityParamsInput {
|
|
557
|
+
endThreshold: Float
|
|
558
|
+
endWindow: Float
|
|
559
|
+
startThreshold: Float
|
|
560
|
+
startWindow: Float
|
|
561
|
+
timeBeforeSpeech: Float
|
|
562
|
+
}
|
|
514
563
|
`
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/src/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
|
+
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "patch-package && tsc && pnpm run buildSchema && pnpm run bundle",
|
|
10
11
|
"buildSchema": "node --es-module-specifier-resolution=node lib/src/buildSchema.js",
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
"express": "4.18.2",
|
|
39
40
|
"graphql": "15.7.2",
|
|
40
41
|
"reflect-metadata": "^0.1.13",
|
|
41
|
-
"type-graphql": "1.1.1",
|
|
42
42
|
"pako": "*",
|
|
43
43
|
"base64-js": "*"
|
|
44
44
|
},
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"graphql-ws": "5.12.0",
|
|
53
53
|
"honkit": "^4.0.0",
|
|
54
54
|
"jest": "^26.6.0",
|
|
55
|
+
"type-graphql": "1.1.1",
|
|
55
56
|
"patch-package": "^8.0.0",
|
|
56
57
|
"rollup": "^2.56.3",
|
|
57
58
|
"ts-jest": "^26.5.6",
|
|
@@ -63,10 +64,10 @@
|
|
|
63
64
|
"react-dom": "*"
|
|
64
65
|
},
|
|
65
66
|
"patchedDependencies": {},
|
|
66
|
-
"version": "0.10.0",
|
|
67
67
|
"pnpm": {
|
|
68
68
|
"patchedDependencies": {
|
|
69
69
|
"graphql@15.7.2": "patches/graphql@15.7.2.patch"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"version": "0.10.1-multi-user-1"
|
|
72
73
|
}
|