@nmshd/runtime 1.0.4 → 1.0.8

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.
Files changed (42) hide show
  1. package/dist/Runtime.d.ts +5 -2
  2. package/dist/Runtime.js +21 -3
  3. package/dist/Runtime.js.map +1 -1
  4. package/dist/RuntimeConfig.d.ts +1 -5
  5. package/dist/buildInformation.js +5 -5
  6. package/dist/extensibility/index.d.ts +1 -1
  7. package/dist/extensibility/index.js +1 -1
  8. package/dist/extensibility/index.js.map +1 -1
  9. package/dist/extensibility/modules/{RuntimeModuleCollection.d.ts → RuntimeModuleRegistry.d.ts} +1 -1
  10. package/dist/extensibility/modules/{RuntimeModuleCollection.js → RuntimeModuleRegistry.js} +4 -4
  11. package/dist/extensibility/modules/RuntimeModuleRegistry.js.map +1 -0
  12. package/dist/useCases/common/SchemaRepository.d.ts +20 -0
  13. package/dist/useCases/common/SchemaRepository.js +78 -0
  14. package/dist/useCases/common/SchemaRepository.js.map +1 -0
  15. package/dist/useCases/common/SchemaValidator.d.ts +9 -0
  16. package/dist/useCases/common/SchemaValidator.js +24 -0
  17. package/dist/useCases/common/SchemaValidator.js.map +1 -0
  18. package/dist/useCases/common/Schemas.d.ts +1580 -0
  19. package/dist/useCases/common/Schemas.js +1792 -0
  20. package/dist/useCases/common/Schemas.js.map +1 -0
  21. package/dist/useCases/common/UseCase.d.ts +5 -2
  22. package/dist/useCases/common/UseCase.js.map +1 -1
  23. package/dist/useCases/transport/files/CreateTokenForFile.d.ts +12 -4
  24. package/dist/useCases/transport/files/CreateTokenForFile.js +11 -7
  25. package/dist/useCases/transport/files/CreateTokenForFile.js.map +1 -1
  26. package/dist/useCases/transport/files/CreateTokenQrCodeForFile.d.ts +13 -5
  27. package/dist/useCases/transport/files/CreateTokenQrCodeForFile.js +11 -9
  28. package/dist/useCases/transport/files/CreateTokenQrCodeForFile.js.map +1 -1
  29. package/dist/useCases/transport/files/DownloadFile.d.ts +9 -4
  30. package/dist/useCases/transport/files/DownloadFile.js +11 -6
  31. package/dist/useCases/transport/files/DownloadFile.js.map +1 -1
  32. package/dist/useCases/transport/files/GetFile.d.ts +9 -4
  33. package/dist/useCases/transport/files/GetFile.js +11 -6
  34. package/dist/useCases/transport/files/GetFile.js.map +1 -1
  35. package/dist/useCases/transport/files/LoadPeerFile.d.ts +3 -0
  36. package/dist/useCases/transport/files/LoadPeerFile.js.map +1 -1
  37. package/lib-web/nmshd.runtime.js +10222 -3022
  38. package/lib-web/nmshd.runtime.js.map +1 -1
  39. package/lib-web/nmshd.runtime.min.js +7 -1
  40. package/lib-web/nmshd.runtime.min.js.map +1 -1
  41. package/package.json +25 -21
  42. package/dist/extensibility/modules/RuntimeModuleCollection.js.map +0 -1
@@ -0,0 +1,1792 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadOwnFileRequest = exports.LoadPeerFileRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.DownloadFileRequest = exports.CreateTokenQrCodeForFileRequest = exports.CreateTokenForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.UpdateSharedItemRequest = exports.GetSharedItemsSharedWithAddressRequest = exports.GetSharedItemsSharedByAddressRequest = exports.GetSharedItemsByReferenceRequest = exports.GetSharedItemsByAddressRequest = exports.GetSharedItemsRequest = exports.GetSharedItemRequest = exports.DeleteSharedItemRequest = exports.CreateSharedItemRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.UpdateRelationshipInfoRequest = exports.GetRelationshipInfoByRelationshipRequest = exports.GetRelationshipInfoRequest = exports.DeleteRelationshipInfoByRelationshipRequest = exports.DeleteRelationshipInfoRequest = exports.CreateRelationshipInfoRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.GetHistoryByNameRequest = exports.GetAttributesByNameRequest = exports.GetAttributesRequest = exports.GetAttributeByNameRequest = exports.GetAttributeRequest = exports.DeleteAttributeByNameRequest = exports.DeleteAttributeRequest = exports.CreateAttributeRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
4
+ exports.LoadPeerTokenRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.CreateRelationshipChangeRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.DownloadAttachmentRequest = exports.CheckIdentityRequest = void 0;
5
+ exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
6
+ "$schema": "http://json-schema.org/draft-07/schema#",
7
+ "$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
8
+ "definitions": {
9
+ "LoadPeerTokenAnonymousByIdAndKeyRequest": {
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "secretKey": {
16
+ "type": "string"
17
+ }
18
+ },
19
+ "required": [
20
+ "id",
21
+ "secretKey"
22
+ ],
23
+ "additionalProperties": false
24
+ }
25
+ }
26
+ };
27
+ exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = {
28
+ "$schema": "http://json-schema.org/draft-07/schema#",
29
+ "$ref": "#/definitions/LoadPeerTokenAnonymousByTruncatedReferenceRequest",
30
+ "definitions": {
31
+ "LoadPeerTokenAnonymousByTruncatedReferenceRequest": {
32
+ "type": "object",
33
+ "properties": {
34
+ "reference": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": [
39
+ "reference"
40
+ ],
41
+ "additionalProperties": false
42
+ }
43
+ }
44
+ };
45
+ exports.CreateAttributeRequest = {
46
+ "$schema": "http://json-schema.org/draft-07/schema#",
47
+ "$ref": "#/definitions/CreateAttributeRequest",
48
+ "definitions": {
49
+ "CreateAttributeRequest": {
50
+ "type": "object",
51
+ "properties": {
52
+ "attribute": {
53
+ "$ref": "#/definitions/IAttribute"
54
+ }
55
+ },
56
+ "required": [
57
+ "attribute"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "IAttribute": {
62
+ "type": "object",
63
+ "properties": {
64
+ "name": {
65
+ "type": "string"
66
+ },
67
+ "value": {},
68
+ "validFrom": {
69
+ "$ref": "#/definitions/ICoreDate"
70
+ },
71
+ "validTo": {
72
+ "$ref": "#/definitions/ICoreDate"
73
+ }
74
+ },
75
+ "required": [
76
+ "name",
77
+ "value"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "ICoreDate": {
82
+ "type": "object",
83
+ "properties": {
84
+ "date": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "required": [
89
+ "date"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ }
94
+ };
95
+ exports.DeleteAttributeRequest = {
96
+ "$schema": "http://json-schema.org/draft-07/schema#",
97
+ "$ref": "#/definitions/DeleteAttributeRequest",
98
+ "definitions": {
99
+ "DeleteAttributeRequest": {
100
+ "type": "object",
101
+ "properties": {
102
+ "id": {
103
+ "type": "string"
104
+ }
105
+ },
106
+ "required": [
107
+ "id"
108
+ ],
109
+ "additionalProperties": false
110
+ }
111
+ }
112
+ };
113
+ exports.DeleteAttributeByNameRequest = {
114
+ "$schema": "http://json-schema.org/draft-07/schema#",
115
+ "$ref": "#/definitions/DeleteAttributeByNameRequest",
116
+ "definitions": {
117
+ "DeleteAttributeByNameRequest": {
118
+ "type": "object",
119
+ "properties": {
120
+ "name": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "name"
126
+ ],
127
+ "additionalProperties": false
128
+ }
129
+ }
130
+ };
131
+ exports.GetAttributeRequest = {
132
+ "$schema": "http://json-schema.org/draft-07/schema#",
133
+ "$ref": "#/definitions/GetAttributeRequest",
134
+ "definitions": {
135
+ "GetAttributeRequest": {
136
+ "type": "object",
137
+ "properties": {
138
+ "id": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ "required": [
143
+ "id"
144
+ ],
145
+ "additionalProperties": false
146
+ }
147
+ }
148
+ };
149
+ exports.GetAttributeByNameRequest = {
150
+ "$schema": "http://json-schema.org/draft-07/schema#",
151
+ "$ref": "#/definitions/GetAttributeByNameRequest",
152
+ "definitions": {
153
+ "GetAttributeByNameRequest": {
154
+ "type": "object",
155
+ "properties": {
156
+ "name": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ "required": [
161
+ "name"
162
+ ],
163
+ "additionalProperties": false
164
+ }
165
+ }
166
+ };
167
+ exports.GetAttributesRequest = {
168
+ "$schema": "http://json-schema.org/draft-07/schema#",
169
+ "$ref": "#/definitions/GetAttributesRequest",
170
+ "definitions": {
171
+ "GetAttributesRequest": {
172
+ "type": "object",
173
+ "additionalProperties": false
174
+ }
175
+ }
176
+ };
177
+ exports.GetAttributesByNameRequest = {
178
+ "$schema": "http://json-schema.org/draft-07/schema#",
179
+ "$ref": "#/definitions/GetAttributesByNameRequest",
180
+ "definitions": {
181
+ "GetAttributesByNameRequest": {
182
+ "type": "object",
183
+ "additionalProperties": false
184
+ }
185
+ }
186
+ };
187
+ exports.GetHistoryByNameRequest = {
188
+ "$schema": "http://json-schema.org/draft-07/schema#",
189
+ "$ref": "#/definitions/GetHistoryByNameRequest",
190
+ "definitions": {
191
+ "GetHistoryByNameRequest": {
192
+ "type": "object",
193
+ "properties": {
194
+ "name": {
195
+ "type": "string"
196
+ }
197
+ },
198
+ "required": [
199
+ "name"
200
+ ],
201
+ "additionalProperties": false
202
+ }
203
+ }
204
+ };
205
+ exports.SucceedAttributeRequest = {
206
+ "$schema": "http://json-schema.org/draft-07/schema#",
207
+ "$ref": "#/definitions/SucceedAttributeRequest",
208
+ "definitions": {
209
+ "SucceedAttributeRequest": {
210
+ "type": "object",
211
+ "properties": {
212
+ "attribute": {
213
+ "$ref": "#/definitions/IAttribute"
214
+ },
215
+ "validFrom": {
216
+ "type": "string"
217
+ }
218
+ },
219
+ "required": [
220
+ "attribute"
221
+ ],
222
+ "additionalProperties": false
223
+ },
224
+ "IAttribute": {
225
+ "type": "object",
226
+ "properties": {
227
+ "name": {
228
+ "type": "string"
229
+ },
230
+ "value": {},
231
+ "validFrom": {
232
+ "$ref": "#/definitions/ICoreDate"
233
+ },
234
+ "validTo": {
235
+ "$ref": "#/definitions/ICoreDate"
236
+ }
237
+ },
238
+ "required": [
239
+ "name",
240
+ "value"
241
+ ],
242
+ "additionalProperties": false
243
+ },
244
+ "ICoreDate": {
245
+ "type": "object",
246
+ "properties": {
247
+ "date": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ "required": [
252
+ "date"
253
+ ],
254
+ "additionalProperties": false
255
+ }
256
+ }
257
+ };
258
+ exports.UpdateAttributeRequest = {
259
+ "$schema": "http://json-schema.org/draft-07/schema#",
260
+ "$ref": "#/definitions/UpdateAttributeRequest",
261
+ "definitions": {
262
+ "UpdateAttributeRequest": {
263
+ "type": "object",
264
+ "properties": {
265
+ "id": {
266
+ "type": "string"
267
+ },
268
+ "attribute": {
269
+ "$ref": "#/definitions/IAttribute"
270
+ }
271
+ },
272
+ "required": [
273
+ "id",
274
+ "attribute"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ "IAttribute": {
279
+ "type": "object",
280
+ "properties": {
281
+ "name": {
282
+ "type": "string"
283
+ },
284
+ "value": {},
285
+ "validFrom": {
286
+ "$ref": "#/definitions/ICoreDate"
287
+ },
288
+ "validTo": {
289
+ "$ref": "#/definitions/ICoreDate"
290
+ }
291
+ },
292
+ "required": [
293
+ "name",
294
+ "value"
295
+ ],
296
+ "additionalProperties": false
297
+ },
298
+ "ICoreDate": {
299
+ "type": "object",
300
+ "properties": {
301
+ "date": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "required": [
306
+ "date"
307
+ ],
308
+ "additionalProperties": false
309
+ }
310
+ }
311
+ };
312
+ exports.CreateDraftRequest = {
313
+ "$schema": "http://json-schema.org/draft-07/schema#",
314
+ "$ref": "#/definitions/CreateDraftRequest",
315
+ "definitions": {
316
+ "CreateDraftRequest": {
317
+ "type": "object",
318
+ "properties": {
319
+ "content": {},
320
+ "type": {
321
+ "type": "string"
322
+ }
323
+ },
324
+ "required": [
325
+ "content"
326
+ ],
327
+ "additionalProperties": false
328
+ }
329
+ }
330
+ };
331
+ exports.DeleteDraftRequest = {
332
+ "$schema": "http://json-schema.org/draft-07/schema#",
333
+ "$ref": "#/definitions/DeleteDraftRequest",
334
+ "definitions": {
335
+ "DeleteDraftRequest": {
336
+ "type": "object",
337
+ "properties": {
338
+ "id": {
339
+ "type": "string"
340
+ }
341
+ },
342
+ "required": [
343
+ "id"
344
+ ],
345
+ "additionalProperties": false
346
+ }
347
+ }
348
+ };
349
+ exports.GetDraftRequest = {
350
+ "$schema": "http://json-schema.org/draft-07/schema#",
351
+ "$ref": "#/definitions/GetDraftRequest",
352
+ "definitions": {
353
+ "GetDraftRequest": {
354
+ "type": "object",
355
+ "properties": {
356
+ "id": {
357
+ "type": "string"
358
+ }
359
+ },
360
+ "required": [
361
+ "id"
362
+ ],
363
+ "additionalProperties": false
364
+ }
365
+ }
366
+ };
367
+ exports.GetDraftsRequest = {
368
+ "$schema": "http://json-schema.org/draft-07/schema#",
369
+ "$ref": "#/definitions/GetDraftsRequest",
370
+ "definitions": {
371
+ "GetDraftsRequest": {
372
+ "type": "object",
373
+ "properties": {
374
+ "query": {}
375
+ },
376
+ "additionalProperties": false
377
+ }
378
+ }
379
+ };
380
+ exports.UpdateDraftRequest = {
381
+ "$schema": "http://json-schema.org/draft-07/schema#",
382
+ "$ref": "#/definitions/UpdateDraftRequest",
383
+ "definitions": {
384
+ "UpdateDraftRequest": {
385
+ "type": "object",
386
+ "properties": {
387
+ "id": {
388
+ "type": "string"
389
+ },
390
+ "content": {}
391
+ },
392
+ "required": [
393
+ "id",
394
+ "content"
395
+ ],
396
+ "additionalProperties": false
397
+ }
398
+ }
399
+ };
400
+ exports.CreateRelationshipInfoRequest = {
401
+ "$schema": "http://json-schema.org/draft-07/schema#",
402
+ "$ref": "#/definitions/CreateRelationshipInfoRequest",
403
+ "definitions": {
404
+ "CreateRelationshipInfoRequest": {
405
+ "type": "object",
406
+ "properties": {
407
+ "relationshipId": {
408
+ "type": "string"
409
+ },
410
+ "attributes": {
411
+ "type": "array",
412
+ "items": {
413
+ "$ref": "#/definitions/RelationshipAttributeDTO"
414
+ }
415
+ },
416
+ "isPinned": {
417
+ "type": "boolean"
418
+ },
419
+ "title": {
420
+ "type": "string"
421
+ },
422
+ "description": {
423
+ "type": "string"
424
+ },
425
+ "userTitle": {
426
+ "type": "string"
427
+ },
428
+ "userDescription": {
429
+ "type": "string"
430
+ },
431
+ "theme": {
432
+ "$ref": "#/definitions/RelationshipThemeDTO"
433
+ }
434
+ },
435
+ "required": [
436
+ "relationshipId",
437
+ "attributes",
438
+ "isPinned",
439
+ "title"
440
+ ],
441
+ "additionalProperties": false
442
+ },
443
+ "RelationshipAttributeDTO": {
444
+ "type": "object",
445
+ "properties": {
446
+ "name": {
447
+ "type": "string"
448
+ },
449
+ "content": {
450
+ "$ref": "#/definitions/AttributeJSON"
451
+ },
452
+ "sharedItem": {
453
+ "type": "string"
454
+ }
455
+ },
456
+ "required": [
457
+ "name",
458
+ "content",
459
+ "sharedItem"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ "AttributeJSON": {
464
+ "type": "object",
465
+ "properties": {
466
+ "@type": {
467
+ "type": "string"
468
+ },
469
+ "@schema": {
470
+ "type": "string"
471
+ },
472
+ "name": {
473
+ "type": "string"
474
+ },
475
+ "value": {},
476
+ "validFrom": {
477
+ "type": "string"
478
+ },
479
+ "validTo": {
480
+ "type": "string"
481
+ }
482
+ },
483
+ "required": [
484
+ "@type",
485
+ "name",
486
+ "value"
487
+ ],
488
+ "additionalProperties": false
489
+ },
490
+ "RelationshipThemeDTO": {
491
+ "type": "object",
492
+ "properties": {
493
+ "image": {
494
+ "type": "string"
495
+ },
496
+ "imageBar": {
497
+ "type": "string"
498
+ },
499
+ "backgroundColor": {
500
+ "type": "string"
501
+ },
502
+ "foregroundColor": {
503
+ "type": "string"
504
+ }
505
+ },
506
+ "required": [
507
+ "image",
508
+ "imageBar",
509
+ "backgroundColor",
510
+ "foregroundColor"
511
+ ],
512
+ "additionalProperties": false
513
+ }
514
+ }
515
+ };
516
+ exports.DeleteRelationshipInfoRequest = {
517
+ "$schema": "http://json-schema.org/draft-07/schema#",
518
+ "$ref": "#/definitions/DeleteRelationshipInfoRequest",
519
+ "definitions": {
520
+ "DeleteRelationshipInfoRequest": {
521
+ "type": "object",
522
+ "properties": {
523
+ "id": {
524
+ "type": "string"
525
+ }
526
+ },
527
+ "required": [
528
+ "id"
529
+ ],
530
+ "additionalProperties": false
531
+ }
532
+ }
533
+ };
534
+ exports.DeleteRelationshipInfoByRelationshipRequest = {
535
+ "$schema": "http://json-schema.org/draft-07/schema#",
536
+ "$ref": "#/definitions/DeleteRelationshipInfoByRelationshipRequest",
537
+ "definitions": {
538
+ "DeleteRelationshipInfoByRelationshipRequest": {
539
+ "type": "object",
540
+ "properties": {
541
+ "relationshipId": {
542
+ "type": "string"
543
+ }
544
+ },
545
+ "required": [
546
+ "relationshipId"
547
+ ],
548
+ "additionalProperties": false
549
+ }
550
+ }
551
+ };
552
+ exports.GetRelationshipInfoRequest = {
553
+ "$schema": "http://json-schema.org/draft-07/schema#",
554
+ "$ref": "#/definitions/GetRelationshipInfoRequest",
555
+ "definitions": {
556
+ "GetRelationshipInfoRequest": {
557
+ "type": "object",
558
+ "properties": {
559
+ "id": {
560
+ "type": "string"
561
+ }
562
+ },
563
+ "required": [
564
+ "id"
565
+ ],
566
+ "additionalProperties": false
567
+ }
568
+ }
569
+ };
570
+ exports.GetRelationshipInfoByRelationshipRequest = {
571
+ "$schema": "http://json-schema.org/draft-07/schema#",
572
+ "$ref": "#/definitions/GetRelationshipInfoByRelationshipRequest",
573
+ "definitions": {
574
+ "GetRelationshipInfoByRelationshipRequest": {
575
+ "type": "object",
576
+ "properties": {
577
+ "relationshipId": {
578
+ "type": "string"
579
+ }
580
+ },
581
+ "required": [
582
+ "relationshipId"
583
+ ],
584
+ "additionalProperties": false
585
+ }
586
+ }
587
+ };
588
+ exports.UpdateRelationshipInfoRequest = {
589
+ "$schema": "http://json-schema.org/draft-07/schema#",
590
+ "$ref": "#/definitions/UpdateRelationshipInfoRequest",
591
+ "definitions": {
592
+ "UpdateRelationshipInfoRequest": {
593
+ "type": "object",
594
+ "properties": {
595
+ "id": {
596
+ "type": "string"
597
+ },
598
+ "attributes": {
599
+ "type": "array",
600
+ "items": {
601
+ "$ref": "#/definitions/RelationshipAttributeDTO"
602
+ }
603
+ },
604
+ "isPinned": {
605
+ "type": "boolean"
606
+ },
607
+ "title": {
608
+ "type": "string"
609
+ },
610
+ "description": {
611
+ "type": "string"
612
+ },
613
+ "userTitle": {
614
+ "type": "string"
615
+ },
616
+ "userDescription": {
617
+ "type": "string"
618
+ },
619
+ "theme": {
620
+ "$ref": "#/definitions/RelationshipThemeDTO"
621
+ }
622
+ },
623
+ "required": [
624
+ "id"
625
+ ],
626
+ "additionalProperties": false,
627
+ "description": "Overwrite a RelationshipInfo's attributes with the request's corresponding fields. Undefined fields in the request will leave the corresponding RelationshipInfo's attributes untouched."
628
+ },
629
+ "RelationshipAttributeDTO": {
630
+ "type": "object",
631
+ "properties": {
632
+ "name": {
633
+ "type": "string"
634
+ },
635
+ "content": {
636
+ "$ref": "#/definitions/AttributeJSON"
637
+ },
638
+ "sharedItem": {
639
+ "type": "string"
640
+ }
641
+ },
642
+ "required": [
643
+ "name",
644
+ "content",
645
+ "sharedItem"
646
+ ],
647
+ "additionalProperties": false
648
+ },
649
+ "AttributeJSON": {
650
+ "type": "object",
651
+ "properties": {
652
+ "@type": {
653
+ "type": "string"
654
+ },
655
+ "@schema": {
656
+ "type": "string"
657
+ },
658
+ "name": {
659
+ "type": "string"
660
+ },
661
+ "value": {},
662
+ "validFrom": {
663
+ "type": "string"
664
+ },
665
+ "validTo": {
666
+ "type": "string"
667
+ }
668
+ },
669
+ "required": [
670
+ "@type",
671
+ "name",
672
+ "value"
673
+ ],
674
+ "additionalProperties": false
675
+ },
676
+ "RelationshipThemeDTO": {
677
+ "type": "object",
678
+ "properties": {
679
+ "image": {
680
+ "type": "string"
681
+ },
682
+ "imageBar": {
683
+ "type": "string"
684
+ },
685
+ "backgroundColor": {
686
+ "type": "string"
687
+ },
688
+ "foregroundColor": {
689
+ "type": "string"
690
+ }
691
+ },
692
+ "required": [
693
+ "image",
694
+ "imageBar",
695
+ "backgroundColor",
696
+ "foregroundColor"
697
+ ],
698
+ "additionalProperties": false
699
+ }
700
+ }
701
+ };
702
+ exports.CreateSettingRequest = {
703
+ "$schema": "http://json-schema.org/draft-07/schema#",
704
+ "$ref": "#/definitions/CreateSettingRequest",
705
+ "definitions": {
706
+ "CreateSettingRequest": {
707
+ "type": "object",
708
+ "properties": {
709
+ "key": {
710
+ "type": "string"
711
+ },
712
+ "value": {},
713
+ "reference": {
714
+ "type": "string"
715
+ },
716
+ "scope": {
717
+ "type": "string"
718
+ },
719
+ "succeedsAt": {
720
+ "type": "string"
721
+ },
722
+ "succeedsItem": {
723
+ "type": "string"
724
+ }
725
+ },
726
+ "required": [
727
+ "key",
728
+ "value"
729
+ ],
730
+ "additionalProperties": false
731
+ }
732
+ }
733
+ };
734
+ exports.DeleteSettingRequest = {
735
+ "$schema": "http://json-schema.org/draft-07/schema#",
736
+ "$ref": "#/definitions/DeleteSettingRequest",
737
+ "definitions": {
738
+ "DeleteSettingRequest": {
739
+ "type": "object",
740
+ "properties": {
741
+ "id": {
742
+ "type": "string"
743
+ }
744
+ },
745
+ "required": [
746
+ "id"
747
+ ],
748
+ "additionalProperties": false
749
+ }
750
+ }
751
+ };
752
+ exports.GetSettingRequest = {
753
+ "$schema": "http://json-schema.org/draft-07/schema#",
754
+ "$ref": "#/definitions/GetSettingRequest",
755
+ "definitions": {
756
+ "GetSettingRequest": {
757
+ "type": "object",
758
+ "properties": {
759
+ "id": {
760
+ "type": "string"
761
+ }
762
+ },
763
+ "required": [
764
+ "id"
765
+ ],
766
+ "additionalProperties": false
767
+ }
768
+ }
769
+ };
770
+ exports.GetSettingsRequest = {
771
+ "$schema": "http://json-schema.org/draft-07/schema#",
772
+ "$ref": "#/definitions/GetSettingsRequest",
773
+ "definitions": {
774
+ "GetSettingsRequest": {
775
+ "type": "object",
776
+ "properties": {
777
+ "query": {}
778
+ },
779
+ "additionalProperties": false
780
+ }
781
+ }
782
+ };
783
+ exports.UpdateSettingRequest = {
784
+ "$schema": "http://json-schema.org/draft-07/schema#",
785
+ "$ref": "#/definitions/UpdateSettingRequest",
786
+ "definitions": {
787
+ "UpdateSettingRequest": {
788
+ "type": "object",
789
+ "properties": {
790
+ "id": {
791
+ "type": "string"
792
+ },
793
+ "value": {}
794
+ },
795
+ "required": [
796
+ "id",
797
+ "value"
798
+ ],
799
+ "additionalProperties": false
800
+ }
801
+ }
802
+ };
803
+ exports.CreateSharedItemRequest = {
804
+ "$schema": "http://json-schema.org/draft-07/schema#",
805
+ "$ref": "#/definitions/CreateSharedItemRequest",
806
+ "definitions": {
807
+ "CreateSharedItemRequest": {
808
+ "type": "object",
809
+ "properties": {
810
+ "tags": {
811
+ "type": "array",
812
+ "items": {
813
+ "type": "string"
814
+ }
815
+ },
816
+ "sharedBy": {
817
+ "type": "string"
818
+ },
819
+ "sharedWith": {
820
+ "type": "string"
821
+ },
822
+ "sharedAt": {
823
+ "type": "string"
824
+ },
825
+ "reference": {
826
+ "type": "string"
827
+ },
828
+ "content": {},
829
+ "succeedsItem": {
830
+ "type": "string"
831
+ },
832
+ "succeedsAt": {
833
+ "type": "string"
834
+ },
835
+ "expiresAt": {
836
+ "type": "string"
837
+ }
838
+ },
839
+ "required": [
840
+ "sharedBy",
841
+ "sharedWith",
842
+ "sharedAt",
843
+ "content"
844
+ ],
845
+ "additionalProperties": false
846
+ }
847
+ }
848
+ };
849
+ exports.DeleteSharedItemRequest = {
850
+ "$schema": "http://json-schema.org/draft-07/schema#",
851
+ "$ref": "#/definitions/DeleteSharedItemRequest",
852
+ "definitions": {
853
+ "DeleteSharedItemRequest": {
854
+ "type": "object",
855
+ "properties": {
856
+ "id": {
857
+ "type": "string"
858
+ }
859
+ },
860
+ "required": [
861
+ "id"
862
+ ],
863
+ "additionalProperties": false
864
+ }
865
+ }
866
+ };
867
+ exports.GetSharedItemRequest = {
868
+ "$schema": "http://json-schema.org/draft-07/schema#",
869
+ "$ref": "#/definitions/GetSharedItemRequest",
870
+ "definitions": {
871
+ "GetSharedItemRequest": {
872
+ "type": "object",
873
+ "properties": {
874
+ "id": {
875
+ "type": "string"
876
+ }
877
+ },
878
+ "required": [
879
+ "id"
880
+ ],
881
+ "additionalProperties": false
882
+ }
883
+ }
884
+ };
885
+ exports.GetSharedItemsRequest = {
886
+ "$schema": "http://json-schema.org/draft-07/schema#",
887
+ "$ref": "#/definitions/GetSharedItemsRequest",
888
+ "definitions": {
889
+ "GetSharedItemsRequest": {
890
+ "type": "object",
891
+ "properties": {
892
+ "query": {}
893
+ },
894
+ "additionalProperties": false
895
+ }
896
+ }
897
+ };
898
+ exports.GetSharedItemsByAddressRequest = {
899
+ "$schema": "http://json-schema.org/draft-07/schema#",
900
+ "$ref": "#/definitions/GetSharedItemsByAddressRequest",
901
+ "definitions": {
902
+ "GetSharedItemsByAddressRequest": {
903
+ "type": "object",
904
+ "properties": {
905
+ "address": {
906
+ "type": "string"
907
+ }
908
+ },
909
+ "required": [
910
+ "address"
911
+ ],
912
+ "additionalProperties": false
913
+ }
914
+ }
915
+ };
916
+ exports.GetSharedItemsByReferenceRequest = {
917
+ "$schema": "http://json-schema.org/draft-07/schema#",
918
+ "$ref": "#/definitions/GetSharedItemsByReferenceRequest",
919
+ "definitions": {
920
+ "GetSharedItemsByReferenceRequest": {
921
+ "type": "object",
922
+ "properties": {
923
+ "reference": {
924
+ "type": "string"
925
+ }
926
+ },
927
+ "required": [
928
+ "reference"
929
+ ],
930
+ "additionalProperties": false
931
+ }
932
+ }
933
+ };
934
+ exports.GetSharedItemsSharedByAddressRequest = {
935
+ "$schema": "http://json-schema.org/draft-07/schema#",
936
+ "$ref": "#/definitions/GetSharedItemsSharedByAddressRequest",
937
+ "definitions": {
938
+ "GetSharedItemsSharedByAddressRequest": {
939
+ "type": "object",
940
+ "properties": {
941
+ "address": {
942
+ "type": "string"
943
+ }
944
+ },
945
+ "required": [
946
+ "address"
947
+ ],
948
+ "additionalProperties": false
949
+ }
950
+ }
951
+ };
952
+ exports.GetSharedItemsSharedWithAddressRequest = {
953
+ "$schema": "http://json-schema.org/draft-07/schema#",
954
+ "$ref": "#/definitions/GetSharedItemsSharedWithAddressRequest",
955
+ "definitions": {
956
+ "GetSharedItemsSharedWithAddressRequest": {
957
+ "type": "object",
958
+ "properties": {
959
+ "address": {
960
+ "type": "string"
961
+ }
962
+ },
963
+ "required": [
964
+ "address"
965
+ ],
966
+ "additionalProperties": false
967
+ }
968
+ }
969
+ };
970
+ exports.UpdateSharedItemRequest = {
971
+ "$schema": "http://json-schema.org/draft-07/schema#",
972
+ "$ref": "#/definitions/UpdateSharedItemRequest",
973
+ "definitions": {
974
+ "UpdateSharedItemRequest": {
975
+ "type": "object",
976
+ "properties": {
977
+ "id": {
978
+ "type": "string"
979
+ },
980
+ "content": {}
981
+ },
982
+ "required": [
983
+ "id",
984
+ "content"
985
+ ],
986
+ "additionalProperties": false
987
+ }
988
+ }
989
+ };
990
+ exports.CreateDeviceRequest = {
991
+ "$schema": "http://json-schema.org/draft-07/schema#",
992
+ "$ref": "#/definitions/CreateDeviceRequest",
993
+ "definitions": {
994
+ "CreateDeviceRequest": {
995
+ "type": "object",
996
+ "properties": {
997
+ "name": {
998
+ "type": "string"
999
+ },
1000
+ "description": {
1001
+ "type": "string"
1002
+ },
1003
+ "isAdmin": {
1004
+ "type": "boolean"
1005
+ }
1006
+ },
1007
+ "additionalProperties": false
1008
+ }
1009
+ }
1010
+ };
1011
+ exports.CreateDeviceOnboardingTokenRequest = {
1012
+ "$schema": "http://json-schema.org/draft-07/schema#",
1013
+ "$ref": "#/definitions/CreateDeviceOnboardingTokenRequest",
1014
+ "definitions": {
1015
+ "CreateDeviceOnboardingTokenRequest": {
1016
+ "type": "object",
1017
+ "properties": {
1018
+ "id": {
1019
+ "type": "string"
1020
+ },
1021
+ "expiresAt": {
1022
+ "type": "string"
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "id"
1027
+ ],
1028
+ "additionalProperties": false
1029
+ }
1030
+ }
1031
+ };
1032
+ exports.DeleteDeviceRequest = {
1033
+ "$schema": "http://json-schema.org/draft-07/schema#",
1034
+ "$ref": "#/definitions/DeleteDeviceRequest",
1035
+ "definitions": {
1036
+ "DeleteDeviceRequest": {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "id": {
1040
+ "type": "string"
1041
+ }
1042
+ },
1043
+ "required": [
1044
+ "id"
1045
+ ],
1046
+ "additionalProperties": false
1047
+ }
1048
+ }
1049
+ };
1050
+ exports.GetDeviceRequest = {
1051
+ "$schema": "http://json-schema.org/draft-07/schema#",
1052
+ "$ref": "#/definitions/GetDeviceRequest",
1053
+ "definitions": {
1054
+ "GetDeviceRequest": {
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "id": {
1058
+ "type": "string"
1059
+ }
1060
+ },
1061
+ "required": [
1062
+ "id"
1063
+ ],
1064
+ "additionalProperties": false
1065
+ }
1066
+ }
1067
+ };
1068
+ exports.GetDeviceOnboardingInfoRequest = {
1069
+ "$schema": "http://json-schema.org/draft-07/schema#",
1070
+ "$ref": "#/definitions/GetDeviceOnboardingInfoRequest",
1071
+ "definitions": {
1072
+ "GetDeviceOnboardingInfoRequest": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "id": {
1076
+ "type": "string"
1077
+ }
1078
+ },
1079
+ "required": [
1080
+ "id"
1081
+ ],
1082
+ "additionalProperties": false
1083
+ }
1084
+ }
1085
+ };
1086
+ exports.UpdateDeviceRequest = {
1087
+ "$schema": "http://json-schema.org/draft-07/schema#",
1088
+ "$ref": "#/definitions/UpdateDeviceRequest",
1089
+ "definitions": {
1090
+ "UpdateDeviceRequest": {
1091
+ "type": "object",
1092
+ "properties": {
1093
+ "id": {
1094
+ "type": "string"
1095
+ },
1096
+ "name": {
1097
+ "type": "string"
1098
+ },
1099
+ "description": {
1100
+ "type": "string"
1101
+ }
1102
+ },
1103
+ "required": [
1104
+ "id"
1105
+ ],
1106
+ "additionalProperties": false
1107
+ }
1108
+ }
1109
+ };
1110
+ exports.CreateTokenForFileRequest = {
1111
+ "$schema": "http://json-schema.org/draft-07/schema#",
1112
+ "$ref": "#/definitions/CreateTokenForFileRequest",
1113
+ "definitions": {
1114
+ "CreateTokenForFileRequest": {
1115
+ "type": "object",
1116
+ "properties": {
1117
+ "fileId": {
1118
+ "type": "string",
1119
+ "format": "fileId"
1120
+ },
1121
+ "expiresAt": {
1122
+ "type": "string",
1123
+ "format": "date-time"
1124
+ },
1125
+ "ephemeral": {
1126
+ "type": "boolean"
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "fileId"
1131
+ ],
1132
+ "additionalProperties": false
1133
+ }
1134
+ }
1135
+ };
1136
+ exports.CreateTokenQrCodeForFileRequest = {
1137
+ "$schema": "http://json-schema.org/draft-07/schema#",
1138
+ "$ref": "#/definitions/CreateTokenQrCodeForFileRequest",
1139
+ "definitions": {
1140
+ "CreateTokenQrCodeForFileRequest": {
1141
+ "type": "object",
1142
+ "properties": {
1143
+ "fileId": {
1144
+ "type": "string",
1145
+ "format": "fileId"
1146
+ },
1147
+ "expiresAt": {
1148
+ "type": "string",
1149
+ "format": "date-time"
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "fileId"
1154
+ ],
1155
+ "additionalProperties": false
1156
+ }
1157
+ }
1158
+ };
1159
+ exports.DownloadFileRequest = {
1160
+ "$schema": "http://json-schema.org/draft-07/schema#",
1161
+ "$ref": "#/definitions/DownloadFileRequest",
1162
+ "definitions": {
1163
+ "DownloadFileRequest": {
1164
+ "type": "object",
1165
+ "properties": {
1166
+ "id": {
1167
+ "type": "string",
1168
+ "format": "fileId"
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "id"
1173
+ ],
1174
+ "additionalProperties": false
1175
+ }
1176
+ }
1177
+ };
1178
+ exports.GetFileRequest = {
1179
+ "$schema": "http://json-schema.org/draft-07/schema#",
1180
+ "$ref": "#/definitions/GetFileRequest",
1181
+ "definitions": {
1182
+ "GetFileRequest": {
1183
+ "type": "object",
1184
+ "properties": {
1185
+ "id": {
1186
+ "type": "string",
1187
+ "format": "fileId"
1188
+ }
1189
+ },
1190
+ "required": [
1191
+ "id"
1192
+ ],
1193
+ "additionalProperties": false
1194
+ }
1195
+ }
1196
+ };
1197
+ exports.GetFilesRequest = {
1198
+ "$schema": "http://json-schema.org/draft-07/schema#",
1199
+ "$ref": "#/definitions/GetFilesRequest",
1200
+ "definitions": {
1201
+ "GetFilesRequest": {
1202
+ "type": "object",
1203
+ "properties": {
1204
+ "query": {},
1205
+ "ownerRestriction": {
1206
+ "$ref": "#/definitions/OwnerRestriction"
1207
+ }
1208
+ },
1209
+ "additionalProperties": false
1210
+ },
1211
+ "OwnerRestriction": {
1212
+ "type": "string",
1213
+ "enum": [
1214
+ "o",
1215
+ "p"
1216
+ ]
1217
+ }
1218
+ }
1219
+ };
1220
+ exports.LoadPeerFileRequest = {
1221
+ "$schema": "http://json-schema.org/draft-07/schema#",
1222
+ "$ref": "#/definitions/LoadPeerFileRequest",
1223
+ "definitions": {
1224
+ "LoadPeerFileRequest": {
1225
+ "type": "object",
1226
+ "properties": {
1227
+ "id": {
1228
+ "type": "string",
1229
+ "format": "fileId"
1230
+ },
1231
+ "secretKey": {
1232
+ "type": "string"
1233
+ },
1234
+ "reference": {
1235
+ "type": "string"
1236
+ }
1237
+ },
1238
+ "additionalProperties": false
1239
+ }
1240
+ }
1241
+ };
1242
+ exports.UploadOwnFileRequest = {
1243
+ "$schema": "http://json-schema.org/draft-07/schema#",
1244
+ "$ref": "#/definitions/UploadOwnFileRequest",
1245
+ "definitions": {
1246
+ "UploadOwnFileRequest": {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "content": {
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "BYTES_PER_ELEMENT": {
1253
+ "type": "number"
1254
+ },
1255
+ "buffer": {
1256
+ "type": "object",
1257
+ "properties": {
1258
+ "byteLength": {
1259
+ "type": "number"
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "byteLength"
1264
+ ],
1265
+ "additionalProperties": false
1266
+ },
1267
+ "byteLength": {
1268
+ "type": "number"
1269
+ },
1270
+ "byteOffset": {
1271
+ "type": "number"
1272
+ },
1273
+ "length": {
1274
+ "type": "number"
1275
+ }
1276
+ },
1277
+ "required": [
1278
+ "BYTES_PER_ELEMENT",
1279
+ "buffer",
1280
+ "byteLength",
1281
+ "byteOffset",
1282
+ "length"
1283
+ ],
1284
+ "additionalProperties": {
1285
+ "type": "number"
1286
+ }
1287
+ },
1288
+ "filename": {
1289
+ "type": "string"
1290
+ },
1291
+ "mimetype": {
1292
+ "type": "string"
1293
+ },
1294
+ "expiresAt": {
1295
+ "type": "string"
1296
+ },
1297
+ "title": {
1298
+ "type": "string"
1299
+ },
1300
+ "description": {
1301
+ "type": "string"
1302
+ }
1303
+ },
1304
+ "required": [
1305
+ "content",
1306
+ "filename",
1307
+ "mimetype",
1308
+ "expiresAt",
1309
+ "title"
1310
+ ],
1311
+ "additionalProperties": false
1312
+ }
1313
+ }
1314
+ };
1315
+ exports.CheckIdentityRequest = {
1316
+ "$schema": "http://json-schema.org/draft-07/schema#",
1317
+ "$ref": "#/definitions/CheckIdentityRequest",
1318
+ "definitions": {
1319
+ "CheckIdentityRequest": {
1320
+ "type": "object",
1321
+ "properties": {
1322
+ "address": {
1323
+ "type": "string"
1324
+ }
1325
+ },
1326
+ "required": [
1327
+ "address"
1328
+ ],
1329
+ "additionalProperties": false
1330
+ }
1331
+ }
1332
+ };
1333
+ exports.DownloadAttachmentRequest = {
1334
+ "$schema": "http://json-schema.org/draft-07/schema#",
1335
+ "$ref": "#/definitions/DownloadAttachmentRequest",
1336
+ "definitions": {
1337
+ "DownloadAttachmentRequest": {
1338
+ "type": "object",
1339
+ "properties": {
1340
+ "id": {
1341
+ "type": "string"
1342
+ },
1343
+ "attachmentId": {
1344
+ "type": "string"
1345
+ }
1346
+ },
1347
+ "required": [
1348
+ "id",
1349
+ "attachmentId"
1350
+ ],
1351
+ "additionalProperties": false
1352
+ }
1353
+ }
1354
+ };
1355
+ exports.GetAttachmentMetadataRequest = {
1356
+ "$schema": "http://json-schema.org/draft-07/schema#",
1357
+ "$ref": "#/definitions/GetAttachmentMetadataRequest",
1358
+ "definitions": {
1359
+ "GetAttachmentMetadataRequest": {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "id": {
1363
+ "type": "string"
1364
+ },
1365
+ "attachmentId": {
1366
+ "type": "string"
1367
+ }
1368
+ },
1369
+ "required": [
1370
+ "id",
1371
+ "attachmentId"
1372
+ ],
1373
+ "additionalProperties": false
1374
+ }
1375
+ }
1376
+ };
1377
+ exports.GetMessageRequest = {
1378
+ "$schema": "http://json-schema.org/draft-07/schema#",
1379
+ "$ref": "#/definitions/GetMessageRequest",
1380
+ "definitions": {
1381
+ "GetMessageRequest": {
1382
+ "type": "object",
1383
+ "properties": {
1384
+ "id": {
1385
+ "type": "string"
1386
+ }
1387
+ },
1388
+ "required": [
1389
+ "id"
1390
+ ],
1391
+ "additionalProperties": false
1392
+ }
1393
+ }
1394
+ };
1395
+ exports.GetMessagesRequest = {
1396
+ "$schema": "http://json-schema.org/draft-07/schema#",
1397
+ "$ref": "#/definitions/GetMessagesRequest",
1398
+ "definitions": {
1399
+ "GetMessagesRequest": {
1400
+ "type": "object",
1401
+ "properties": {
1402
+ "query": {}
1403
+ },
1404
+ "additionalProperties": false
1405
+ }
1406
+ }
1407
+ };
1408
+ exports.SendMessageRequest = {
1409
+ "$schema": "http://json-schema.org/draft-07/schema#",
1410
+ "$ref": "#/definitions/SendMessageRequest",
1411
+ "definitions": {
1412
+ "SendMessageRequest": {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "recipients": {
1416
+ "type": "array",
1417
+ "items": {
1418
+ "type": "string"
1419
+ }
1420
+ },
1421
+ "content": {},
1422
+ "attachments": {
1423
+ "type": "array",
1424
+ "items": {
1425
+ "type": "string"
1426
+ }
1427
+ }
1428
+ },
1429
+ "required": [
1430
+ "recipients",
1431
+ "content"
1432
+ ],
1433
+ "additionalProperties": false
1434
+ }
1435
+ }
1436
+ };
1437
+ exports.AcceptRelationshipChangeRequest = {
1438
+ "$schema": "http://json-schema.org/draft-07/schema#",
1439
+ "$ref": "#/definitions/AcceptRelationshipChangeRequest",
1440
+ "definitions": {
1441
+ "AcceptRelationshipChangeRequest": {
1442
+ "type": "object",
1443
+ "properties": {
1444
+ "relationshipId": {
1445
+ "type": "string"
1446
+ },
1447
+ "changeId": {
1448
+ "type": "string"
1449
+ },
1450
+ "content": {}
1451
+ },
1452
+ "required": [
1453
+ "relationshipId",
1454
+ "changeId",
1455
+ "content"
1456
+ ],
1457
+ "additionalProperties": false
1458
+ }
1459
+ }
1460
+ };
1461
+ exports.CreateRelationshipRequest = {
1462
+ "$schema": "http://json-schema.org/draft-07/schema#",
1463
+ "$ref": "#/definitions/CreateRelationshipRequest",
1464
+ "definitions": {
1465
+ "CreateRelationshipRequest": {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "templateId": {
1469
+ "type": "string"
1470
+ },
1471
+ "content": {}
1472
+ },
1473
+ "required": [
1474
+ "templateId",
1475
+ "content"
1476
+ ],
1477
+ "additionalProperties": false
1478
+ }
1479
+ }
1480
+ };
1481
+ exports.CreateRelationshipChangeRequest = {
1482
+ "$schema": "http://json-schema.org/draft-07/schema#",
1483
+ "$ref": "#/definitions/CreateRelationshipChangeRequest",
1484
+ "definitions": {
1485
+ "CreateRelationshipChangeRequest": {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "id": {
1489
+ "type": "string"
1490
+ },
1491
+ "content": {}
1492
+ },
1493
+ "required": [
1494
+ "id"
1495
+ ],
1496
+ "additionalProperties": false
1497
+ }
1498
+ }
1499
+ };
1500
+ exports.GetRelationshipRequest = {
1501
+ "$schema": "http://json-schema.org/draft-07/schema#",
1502
+ "$ref": "#/definitions/GetRelationshipRequest",
1503
+ "definitions": {
1504
+ "GetRelationshipRequest": {
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "id": {
1508
+ "type": "string"
1509
+ }
1510
+ },
1511
+ "required": [
1512
+ "id"
1513
+ ],
1514
+ "additionalProperties": false
1515
+ }
1516
+ }
1517
+ };
1518
+ exports.GetRelationshipByAddressRequest = {
1519
+ "$schema": "http://json-schema.org/draft-07/schema#",
1520
+ "$ref": "#/definitions/GetRelationshipByAddressRequest",
1521
+ "definitions": {
1522
+ "GetRelationshipByAddressRequest": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "address": {
1526
+ "type": "string"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "address"
1531
+ ],
1532
+ "additionalProperties": false
1533
+ }
1534
+ }
1535
+ };
1536
+ exports.GetRelationshipsRequest = {
1537
+ "$schema": "http://json-schema.org/draft-07/schema#",
1538
+ "$ref": "#/definitions/GetRelationshipsRequest",
1539
+ "definitions": {
1540
+ "GetRelationshipsRequest": {
1541
+ "type": "object",
1542
+ "properties": {
1543
+ "query": {}
1544
+ },
1545
+ "additionalProperties": false
1546
+ }
1547
+ }
1548
+ };
1549
+ exports.RejectRelationshipChangeRequest = {
1550
+ "$schema": "http://json-schema.org/draft-07/schema#",
1551
+ "$ref": "#/definitions/RejectRelationshipChangeRequest",
1552
+ "definitions": {
1553
+ "RejectRelationshipChangeRequest": {
1554
+ "type": "object",
1555
+ "properties": {
1556
+ "relationshipId": {
1557
+ "type": "string"
1558
+ },
1559
+ "changeId": {
1560
+ "type": "string"
1561
+ },
1562
+ "content": {}
1563
+ },
1564
+ "required": [
1565
+ "relationshipId",
1566
+ "changeId",
1567
+ "content"
1568
+ ],
1569
+ "additionalProperties": false
1570
+ }
1571
+ }
1572
+ };
1573
+ exports.RevokeRelationshipChangeRequest = {
1574
+ "$schema": "http://json-schema.org/draft-07/schema#",
1575
+ "$ref": "#/definitions/RevokeRelationshipChangeRequest",
1576
+ "definitions": {
1577
+ "RevokeRelationshipChangeRequest": {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "relationshipId": {
1581
+ "type": "string"
1582
+ },
1583
+ "changeId": {
1584
+ "type": "string"
1585
+ },
1586
+ "content": {}
1587
+ },
1588
+ "required": [
1589
+ "relationshipId",
1590
+ "changeId",
1591
+ "content"
1592
+ ],
1593
+ "additionalProperties": false
1594
+ }
1595
+ }
1596
+ };
1597
+ exports.CreateOwnRelationshipTemplateRequest = {
1598
+ "$schema": "http://json-schema.org/draft-07/schema#",
1599
+ "$ref": "#/definitions/CreateOwnRelationshipTemplateRequest",
1600
+ "definitions": {
1601
+ "CreateOwnRelationshipTemplateRequest": {
1602
+ "type": "object",
1603
+ "properties": {
1604
+ "expiresAt": {
1605
+ "type": "string"
1606
+ },
1607
+ "content": {},
1608
+ "maxNumberOfRelationships": {
1609
+ "type": "number"
1610
+ }
1611
+ },
1612
+ "required": [
1613
+ "expiresAt",
1614
+ "content"
1615
+ ],
1616
+ "additionalProperties": false
1617
+ }
1618
+ }
1619
+ };
1620
+ exports.GetRelationshipTemplateRequest = {
1621
+ "$schema": "http://json-schema.org/draft-07/schema#",
1622
+ "$ref": "#/definitions/GetRelationshipTemplateRequest",
1623
+ "definitions": {
1624
+ "GetRelationshipTemplateRequest": {
1625
+ "type": "object",
1626
+ "properties": {
1627
+ "id": {
1628
+ "type": "string"
1629
+ }
1630
+ },
1631
+ "required": [
1632
+ "id"
1633
+ ],
1634
+ "additionalProperties": false
1635
+ }
1636
+ }
1637
+ };
1638
+ exports.GetRelationshipTemplatesRequest = {
1639
+ "$schema": "http://json-schema.org/draft-07/schema#",
1640
+ "$ref": "#/definitions/GetRelationshipTemplatesRequest",
1641
+ "definitions": {
1642
+ "GetRelationshipTemplatesRequest": {
1643
+ "type": "object",
1644
+ "properties": {
1645
+ "query": {},
1646
+ "ownerRestriction": {
1647
+ "$ref": "#/definitions/OwnerRestriction"
1648
+ }
1649
+ },
1650
+ "additionalProperties": false
1651
+ },
1652
+ "OwnerRestriction": {
1653
+ "type": "string",
1654
+ "enum": [
1655
+ "o",
1656
+ "p"
1657
+ ]
1658
+ }
1659
+ }
1660
+ };
1661
+ exports.LoadPeerRelationshipTemplateRequest = {
1662
+ "$schema": "http://json-schema.org/draft-07/schema#",
1663
+ "$ref": "#/definitions/LoadPeerRelationshipTemplateRequest",
1664
+ "definitions": {
1665
+ "LoadPeerRelationshipTemplateRequest": {
1666
+ "type": "object",
1667
+ "properties": {
1668
+ "id": {
1669
+ "type": "string"
1670
+ },
1671
+ "secretKey": {
1672
+ "type": "string"
1673
+ },
1674
+ "reference": {
1675
+ "type": "string"
1676
+ }
1677
+ },
1678
+ "additionalProperties": false
1679
+ }
1680
+ }
1681
+ };
1682
+ exports.CreateOwnTokenRequest = {
1683
+ "$schema": "http://json-schema.org/draft-07/schema#",
1684
+ "$ref": "#/definitions/CreateOwnTokenRequest",
1685
+ "definitions": {
1686
+ "CreateOwnTokenRequest": {
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "content": {},
1690
+ "expiresAt": {
1691
+ "type": "string"
1692
+ },
1693
+ "ephemeral": {
1694
+ "type": "boolean"
1695
+ }
1696
+ },
1697
+ "required": [
1698
+ "content",
1699
+ "expiresAt",
1700
+ "ephemeral"
1701
+ ],
1702
+ "additionalProperties": false
1703
+ }
1704
+ }
1705
+ };
1706
+ exports.GetQRCodeForTokenRequest = {
1707
+ "$schema": "http://json-schema.org/draft-07/schema#",
1708
+ "$ref": "#/definitions/GetQRCodeForTokenRequest",
1709
+ "definitions": {
1710
+ "GetQRCodeForTokenRequest": {
1711
+ "type": "object",
1712
+ "properties": {
1713
+ "id": {
1714
+ "type": "string"
1715
+ }
1716
+ },
1717
+ "required": [
1718
+ "id"
1719
+ ],
1720
+ "additionalProperties": false
1721
+ }
1722
+ }
1723
+ };
1724
+ exports.GetTokenRequest = {
1725
+ "$schema": "http://json-schema.org/draft-07/schema#",
1726
+ "$ref": "#/definitions/GetTokenRequest",
1727
+ "definitions": {
1728
+ "GetTokenRequest": {
1729
+ "type": "object",
1730
+ "properties": {
1731
+ "id": {
1732
+ "type": "string"
1733
+ }
1734
+ },
1735
+ "required": [
1736
+ "id"
1737
+ ],
1738
+ "additionalProperties": false
1739
+ }
1740
+ }
1741
+ };
1742
+ exports.GetTokensRequest = {
1743
+ "$schema": "http://json-schema.org/draft-07/schema#",
1744
+ "$ref": "#/definitions/GetTokensRequest",
1745
+ "definitions": {
1746
+ "GetTokensRequest": {
1747
+ "type": "object",
1748
+ "properties": {
1749
+ "query": {},
1750
+ "ownerRestriction": {
1751
+ "$ref": "#/definitions/OwnerRestriction"
1752
+ }
1753
+ },
1754
+ "additionalProperties": false
1755
+ },
1756
+ "OwnerRestriction": {
1757
+ "type": "string",
1758
+ "enum": [
1759
+ "o",
1760
+ "p"
1761
+ ]
1762
+ }
1763
+ }
1764
+ };
1765
+ exports.LoadPeerTokenRequest = {
1766
+ "$schema": "http://json-schema.org/draft-07/schema#",
1767
+ "$ref": "#/definitions/LoadPeerTokenRequest",
1768
+ "definitions": {
1769
+ "LoadPeerTokenRequest": {
1770
+ "type": "object",
1771
+ "properties": {
1772
+ "id": {
1773
+ "type": "string"
1774
+ },
1775
+ "secretKey": {
1776
+ "type": "string"
1777
+ },
1778
+ "reference": {
1779
+ "type": "string"
1780
+ },
1781
+ "ephemeral": {
1782
+ "type": "boolean"
1783
+ }
1784
+ },
1785
+ "required": [
1786
+ "ephemeral"
1787
+ ],
1788
+ "additionalProperties": false
1789
+ }
1790
+ }
1791
+ };
1792
+ //# sourceMappingURL=Schemas.js.map