@nmshd/runtime 2.0.0-beta.14 → 2.0.0-beta.15
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/dist/buildInformation.js +5 -5
- package/dist/extensibility/facades/transport/FilesFacade.d.ts +4 -4
- package/dist/extensibility/facades/transport/FilesFacade.js +5 -5
- package/dist/extensibility/facades/transport/FilesFacade.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +3 -3
- package/dist/useCases/common/Schemas.js +164 -14
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/consumption/requests/RequestMapper.js.map +1 -1
- package/dist/useCases/transport/files/{LoadPeerFile.d.ts → GetOrLoadFile.d.ts} +7 -7
- package/dist/useCases/transport/files/{LoadPeerFile.js → GetOrLoadFile.js} +18 -18
- package/dist/useCases/transport/files/GetOrLoadFile.js.map +1 -0
- package/dist/useCases/transport/files/index.d.ts +1 -1
- package/dist/useCases/transport/files/index.js +1 -1
- package/dist/useCases/transport/files/index.js.map +1 -1
- package/lib-web/nmshd.runtime.js +198 -48
- package/lib-web/nmshd.runtime.js.map +1 -1
- package/lib-web/nmshd.runtime.min.js +3 -3
- package/lib-web/nmshd.runtime.min.js.map +1 -1
- package/package.json +6 -6
- package/dist/useCases/transport/files/LoadPeerFile.js.map +0 -1
package/dist/buildInformation.js
CHANGED
|
@@ -7,11 +7,11 @@ const content_1 = require("@nmshd/content");
|
|
|
7
7
|
const crypto_1 = require("@nmshd/crypto");
|
|
8
8
|
const transport_1 = require("@nmshd/transport");
|
|
9
9
|
exports.buildInformation = {
|
|
10
|
-
version: "2.0.0-beta.
|
|
11
|
-
build: "
|
|
12
|
-
date: "2022-08-
|
|
13
|
-
commit: "
|
|
14
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.4","@js-soft/ts-utils":"^2.2.
|
|
10
|
+
version: "2.0.0-beta.15",
|
|
11
|
+
build: "101",
|
|
12
|
+
date: "2022-08-03T10:47:00+00:00",
|
|
13
|
+
commit: "33cc1cdc029fe692db43197f346a29fd6557a8d2",
|
|
14
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.4","@js-soft/ts-utils":"^2.2.2","@nmshd/consumption":"2.0.0-beta.6","@nmshd/content":"2.0.0-beta.3","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-beta.4","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.1","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
15
15
|
libraries: {
|
|
16
16
|
serval: ts_serval_1.buildInformation,
|
|
17
17
|
consumption: consumption_1.buildInformation,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Result } from "@js-soft/ts-utils";
|
|
2
2
|
import { FileDTO, TokenDTO } from "../../../types";
|
|
3
|
-
import { CreateQrCodeForFileRequest, CreateQrCodeForFileResponse, CreateQrCodeForFileUseCase, CreateTokenForFileRequest, CreateTokenForFileUseCase, CreateTokenQrCodeForFileRequest, CreateTokenQrCodeForFileResponse, CreateTokenQrCodeForFileUseCase, DownloadFileRequest, DownloadFileResponse, DownloadFileUseCase, GetFileRequest, GetFilesRequest, GetFilesUseCase, GetFileUseCase,
|
|
3
|
+
import { CreateQrCodeForFileRequest, CreateQrCodeForFileResponse, CreateQrCodeForFileUseCase, CreateTokenForFileRequest, CreateTokenForFileUseCase, CreateTokenQrCodeForFileRequest, CreateTokenQrCodeForFileResponse, CreateTokenQrCodeForFileUseCase, DownloadFileRequest, DownloadFileResponse, DownloadFileUseCase, GetFileRequest, GetFilesRequest, GetFilesUseCase, GetFileUseCase, GetOrLoadFileRequest, GetOrLoadFileUseCase, UploadOwnFileRequest, UploadOwnFileUseCase } from "../../../useCases";
|
|
4
4
|
export declare class FilesFacade {
|
|
5
5
|
private readonly uploadOwnFileUseCase;
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly getOrLoadFileUseCase;
|
|
7
7
|
private readonly getFilesUseCase;
|
|
8
8
|
private readonly downloadFileUseCase;
|
|
9
9
|
private readonly getFileUseCase;
|
|
10
10
|
private readonly createQrCodeForFileUseCase;
|
|
11
11
|
private readonly createTokenForFileUseCase;
|
|
12
12
|
private readonly createTokenQrCodeForFileUseCase;
|
|
13
|
-
constructor(uploadOwnFileUseCase: UploadOwnFileUseCase,
|
|
13
|
+
constructor(uploadOwnFileUseCase: UploadOwnFileUseCase, getOrLoadFileUseCase: GetOrLoadFileUseCase, getFilesUseCase: GetFilesUseCase, downloadFileUseCase: DownloadFileUseCase, getFileUseCase: GetFileUseCase, createQrCodeForFileUseCase: CreateQrCodeForFileUseCase, createTokenForFileUseCase: CreateTokenForFileUseCase, createTokenQrCodeForFileUseCase: CreateTokenQrCodeForFileUseCase);
|
|
14
14
|
getFiles(request: GetFilesRequest): Promise<Result<FileDTO[]>>;
|
|
15
|
-
|
|
15
|
+
getOrLoadFile(request: GetOrLoadFileRequest): Promise<Result<FileDTO>>;
|
|
16
16
|
downloadFile(request: DownloadFileRequest): Promise<Result<DownloadFileResponse>>;
|
|
17
17
|
getFile(request: GetFileRequest): Promise<Result<FileDTO>>;
|
|
18
18
|
uploadOwnFile(request: UploadOwnFileRequest): Promise<Result<FileDTO>>;
|
|
@@ -16,9 +16,9 @@ exports.FilesFacade = void 0;
|
|
|
16
16
|
const typescript_ioc_1 = require("typescript-ioc");
|
|
17
17
|
const useCases_1 = require("../../../useCases");
|
|
18
18
|
let FilesFacade = class FilesFacade {
|
|
19
|
-
constructor(uploadOwnFileUseCase,
|
|
19
|
+
constructor(uploadOwnFileUseCase, getOrLoadFileUseCase, getFilesUseCase, downloadFileUseCase, getFileUseCase, createQrCodeForFileUseCase, createTokenForFileUseCase, createTokenQrCodeForFileUseCase) {
|
|
20
20
|
this.uploadOwnFileUseCase = uploadOwnFileUseCase;
|
|
21
|
-
this.
|
|
21
|
+
this.getOrLoadFileUseCase = getOrLoadFileUseCase;
|
|
22
22
|
this.getFilesUseCase = getFilesUseCase;
|
|
23
23
|
this.downloadFileUseCase = downloadFileUseCase;
|
|
24
24
|
this.getFileUseCase = getFileUseCase;
|
|
@@ -29,8 +29,8 @@ let FilesFacade = class FilesFacade {
|
|
|
29
29
|
async getFiles(request) {
|
|
30
30
|
return await this.getFilesUseCase.execute(request);
|
|
31
31
|
}
|
|
32
|
-
async
|
|
33
|
-
return await this.
|
|
32
|
+
async getOrLoadFile(request) {
|
|
33
|
+
return await this.getOrLoadFileUseCase.execute(request);
|
|
34
34
|
}
|
|
35
35
|
async downloadFile(request) {
|
|
36
36
|
return await this.downloadFileUseCase.execute(request);
|
|
@@ -61,7 +61,7 @@ FilesFacade = __decorate([
|
|
|
61
61
|
__param(6, typescript_ioc_1.Inject),
|
|
62
62
|
__param(7, typescript_ioc_1.Inject),
|
|
63
63
|
__metadata("design:paramtypes", [useCases_1.UploadOwnFileUseCase,
|
|
64
|
-
useCases_1.
|
|
64
|
+
useCases_1.GetOrLoadFileUseCase,
|
|
65
65
|
useCases_1.GetFilesUseCase,
|
|
66
66
|
useCases_1.DownloadFileUseCase,
|
|
67
67
|
useCases_1.GetFileUseCase,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilesFacade.js","sourceRoot":"","sources":["../../../../src/extensibility/facades/transport/FilesFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mDAAwC;AAExC,gDAoB2B;AAE3B,IAAa,WAAW,GAAxB,MAAa,WAAW;IACpB,YAC6B,oBAA0C,EAC1C,
|
|
1
|
+
{"version":3,"file":"FilesFacade.js","sourceRoot":"","sources":["../../../../src/extensibility/facades/transport/FilesFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mDAAwC;AAExC,gDAoB2B;AAE3B,IAAa,WAAW,GAAxB,MAAa,WAAW;IACpB,YAC6B,oBAA0C,EAC1C,oBAA0C,EAC1C,eAAgC,EAChC,mBAAwC,EACxC,cAA8B,EAC9B,0BAAsD,EACtD,yBAAoD,EACpD,+BAAgE;QAPhE,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,oBAAe,GAAf,eAAe,CAAiB;QAChC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,+BAA0B,GAA1B,0BAA0B,CAA4B;QACtD,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,oCAA+B,GAA/B,+BAA+B,CAAiC;IAC1F,CAAC;IAEG,KAAK,CAAC,QAAQ,CAAC,OAAwB;QAC1C,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAA6B;QACpD,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,OAA4B;QAClD,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,OAAuB;QACxC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAA6B;QACpD,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAmC;QAChE,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,OAAkC;QAC9D,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,OAAwC;QAC1E,OAAO,MAAM,IAAI,CAAC,+BAA+B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AA3CY,WAAW;IAEf,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAPwC,+BAAoB;QACpB,+BAAoB;QACzB,0BAAe;QACX,8BAAmB;QACxB,yBAAc;QACF,qCAA0B;QAC3B,oCAAyB;QACnB,0CAA+B;GATpF,WAAW,CA2CvB;AA3CY,kCAAW"}
|
|
@@ -56,9 +56,9 @@ export declare const CreateTokenForFileRequest: any;
|
|
|
56
56
|
export declare const CreateTokenQrCodeForFileRequest: any;
|
|
57
57
|
export declare const GetFileRequest: any;
|
|
58
58
|
export declare const GetFilesRequest: any;
|
|
59
|
-
export declare const
|
|
60
|
-
export declare const
|
|
61
|
-
export declare const
|
|
59
|
+
export declare const GetOrLoadFileViaSecretRequest: any;
|
|
60
|
+
export declare const GetOrLoadFileViaReferenceRequest: any;
|
|
61
|
+
export declare const GetOrLoadFileRequest: any;
|
|
62
62
|
export declare const UploadOwnFileRequest: any;
|
|
63
63
|
export declare const UploadOwnFileValidatableRequest: any;
|
|
64
64
|
export declare const CheckIdentityRequest: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.DownloadFileRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
|
|
4
|
-
exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQrCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipChangeRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.
|
|
4
|
+
exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQrCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipChangeRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQrCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQrCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = void 0;
|
|
5
5
|
exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
|
|
6
6
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7
7
|
"$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
|
|
@@ -1834,6 +1834,14 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
1834
1834
|
],
|
|
1835
1835
|
"description": "The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSONDerivations RequestItems } ."
|
|
1836
1836
|
},
|
|
1837
|
+
"title": {
|
|
1838
|
+
"type": "string",
|
|
1839
|
+
"description": "The human-readable title of this Request."
|
|
1840
|
+
},
|
|
1841
|
+
"description": {
|
|
1842
|
+
"type": "string",
|
|
1843
|
+
"description": "The human-readable description of this Request."
|
|
1844
|
+
},
|
|
1837
1845
|
"metadata": {
|
|
1838
1846
|
"anyOf": [
|
|
1839
1847
|
{
|
|
@@ -1938,6 +1946,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
1938
1946
|
},
|
|
1939
1947
|
{
|
|
1940
1948
|
"$ref": "#/definitions/ShareAttributeRequestItemJSON"
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"$ref": "#/definitions/ConsentRequestItemJSON"
|
|
1941
1952
|
}
|
|
1942
1953
|
]
|
|
1943
1954
|
},
|
|
@@ -2469,6 +2480,51 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
2469
2480
|
],
|
|
2470
2481
|
"additionalProperties": false
|
|
2471
2482
|
},
|
|
2483
|
+
"ConsentRequestItemJSON": {
|
|
2484
|
+
"type": "object",
|
|
2485
|
+
"properties": {
|
|
2486
|
+
"@type": {
|
|
2487
|
+
"type": "string"
|
|
2488
|
+
},
|
|
2489
|
+
"@context": {
|
|
2490
|
+
"type": "string"
|
|
2491
|
+
},
|
|
2492
|
+
"@version": {
|
|
2493
|
+
"type": "string"
|
|
2494
|
+
},
|
|
2495
|
+
"title": {
|
|
2496
|
+
"type": "string",
|
|
2497
|
+
"description": "The human-readable title of this item."
|
|
2498
|
+
},
|
|
2499
|
+
"description": {
|
|
2500
|
+
"type": "string",
|
|
2501
|
+
"description": "The human-readable description of this item."
|
|
2502
|
+
},
|
|
2503
|
+
"metadata": {
|
|
2504
|
+
"type": "object",
|
|
2505
|
+
"description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
|
|
2506
|
+
},
|
|
2507
|
+
"mustBeAccepted": {
|
|
2508
|
+
"type": "boolean",
|
|
2509
|
+
"description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."
|
|
2510
|
+
},
|
|
2511
|
+
"consent": {
|
|
2512
|
+
"type": "string"
|
|
2513
|
+
},
|
|
2514
|
+
"link": {
|
|
2515
|
+
"type": "string"
|
|
2516
|
+
},
|
|
2517
|
+
"requireActiveConsent": {
|
|
2518
|
+
"type": "boolean"
|
|
2519
|
+
}
|
|
2520
|
+
},
|
|
2521
|
+
"required": [
|
|
2522
|
+
"@type",
|
|
2523
|
+
"consent",
|
|
2524
|
+
"mustBeAccepted"
|
|
2525
|
+
],
|
|
2526
|
+
"additionalProperties": false
|
|
2527
|
+
},
|
|
2472
2528
|
"IRequestItemGroup": {
|
|
2473
2529
|
"type": "object",
|
|
2474
2530
|
"properties": {
|
|
@@ -2519,6 +2575,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
2519
2575
|
},
|
|
2520
2576
|
{
|
|
2521
2577
|
"$ref": "#/definitions/IShareAttributeRequestItem"
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
"$ref": "#/definitions/IConsentRequestItem"
|
|
2522
2581
|
}
|
|
2523
2582
|
]
|
|
2524
2583
|
},
|
|
@@ -2942,6 +3001,41 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
2942
3001
|
],
|
|
2943
3002
|
"additionalProperties": false
|
|
2944
3003
|
},
|
|
3004
|
+
"IConsentRequestItem": {
|
|
3005
|
+
"type": "object",
|
|
3006
|
+
"properties": {
|
|
3007
|
+
"title": {
|
|
3008
|
+
"type": "string",
|
|
3009
|
+
"description": "The human-readable title of this item."
|
|
3010
|
+
},
|
|
3011
|
+
"description": {
|
|
3012
|
+
"type": "string",
|
|
3013
|
+
"description": "The human-readable description of this item."
|
|
3014
|
+
},
|
|
3015
|
+
"metadata": {
|
|
3016
|
+
"type": "object",
|
|
3017
|
+
"description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
|
|
3018
|
+
},
|
|
3019
|
+
"mustBeAccepted": {
|
|
3020
|
+
"type": "boolean",
|
|
3021
|
+
"description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroup RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItem RequestItem } can only be accepted if the parent group is accepted as well."
|
|
3022
|
+
},
|
|
3023
|
+
"consent": {
|
|
3024
|
+
"type": "string"
|
|
3025
|
+
},
|
|
3026
|
+
"link": {
|
|
3027
|
+
"type": "string"
|
|
3028
|
+
},
|
|
3029
|
+
"requireActiveConsent": {
|
|
3030
|
+
"type": "boolean"
|
|
3031
|
+
}
|
|
3032
|
+
},
|
|
3033
|
+
"required": [
|
|
3034
|
+
"consent",
|
|
3035
|
+
"mustBeAccepted"
|
|
3036
|
+
],
|
|
3037
|
+
"additionalProperties": false
|
|
3038
|
+
},
|
|
2945
3039
|
"AddressString": {
|
|
2946
3040
|
"type": "string",
|
|
2947
3041
|
"pattern": "id1[A-Za-z0-9]{32,33}"
|
|
@@ -4065,6 +4159,14 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
4065
4159
|
},
|
|
4066
4160
|
"description": "The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSONDerivations RequestItems } ."
|
|
4067
4161
|
},
|
|
4162
|
+
"title": {
|
|
4163
|
+
"type": "string",
|
|
4164
|
+
"description": "The human-readable title of this Request."
|
|
4165
|
+
},
|
|
4166
|
+
"description": {
|
|
4167
|
+
"type": "string",
|
|
4168
|
+
"description": "The human-readable description of this Request."
|
|
4169
|
+
},
|
|
4068
4170
|
"metadata": {
|
|
4069
4171
|
"type": "object",
|
|
4070
4172
|
"description": "This property can be used to add some arbitrary metadata to this request. The content of this property will be copied into the response on the side of the recipient."
|
|
@@ -4136,6 +4238,9 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
4136
4238
|
},
|
|
4137
4239
|
{
|
|
4138
4240
|
"$ref": "#/definitions/ShareAttributeRequestItemJSON"
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"$ref": "#/definitions/ConsentRequestItemJSON"
|
|
4139
4244
|
}
|
|
4140
4245
|
]
|
|
4141
4246
|
},
|
|
@@ -4667,6 +4772,51 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
4667
4772
|
],
|
|
4668
4773
|
"additionalProperties": false
|
|
4669
4774
|
},
|
|
4775
|
+
"ConsentRequestItemJSON": {
|
|
4776
|
+
"type": "object",
|
|
4777
|
+
"properties": {
|
|
4778
|
+
"@type": {
|
|
4779
|
+
"type": "string"
|
|
4780
|
+
},
|
|
4781
|
+
"@context": {
|
|
4782
|
+
"type": "string"
|
|
4783
|
+
},
|
|
4784
|
+
"@version": {
|
|
4785
|
+
"type": "string"
|
|
4786
|
+
},
|
|
4787
|
+
"title": {
|
|
4788
|
+
"type": "string",
|
|
4789
|
+
"description": "The human-readable title of this item."
|
|
4790
|
+
},
|
|
4791
|
+
"description": {
|
|
4792
|
+
"type": "string",
|
|
4793
|
+
"description": "The human-readable description of this item."
|
|
4794
|
+
},
|
|
4795
|
+
"metadata": {
|
|
4796
|
+
"type": "object",
|
|
4797
|
+
"description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
|
|
4798
|
+
},
|
|
4799
|
+
"mustBeAccepted": {
|
|
4800
|
+
"type": "boolean",
|
|
4801
|
+
"description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a\n {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."
|
|
4802
|
+
},
|
|
4803
|
+
"consent": {
|
|
4804
|
+
"type": "string"
|
|
4805
|
+
},
|
|
4806
|
+
"link": {
|
|
4807
|
+
"type": "string"
|
|
4808
|
+
},
|
|
4809
|
+
"requireActiveConsent": {
|
|
4810
|
+
"type": "boolean"
|
|
4811
|
+
}
|
|
4812
|
+
},
|
|
4813
|
+
"required": [
|
|
4814
|
+
"@type",
|
|
4815
|
+
"consent",
|
|
4816
|
+
"mustBeAccepted"
|
|
4817
|
+
],
|
|
4818
|
+
"additionalProperties": false
|
|
4819
|
+
},
|
|
4670
4820
|
"MessageIdString": {
|
|
4671
4821
|
"type": "string",
|
|
4672
4822
|
"pattern": "MSG[A-Za-z0-9]{17}"
|
|
@@ -5606,11 +5756,11 @@ exports.GetFilesRequest = {
|
|
|
5606
5756
|
}
|
|
5607
5757
|
}
|
|
5608
5758
|
};
|
|
5609
|
-
exports.
|
|
5759
|
+
exports.GetOrLoadFileViaSecretRequest = {
|
|
5610
5760
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5611
|
-
"$ref": "#/definitions/
|
|
5761
|
+
"$ref": "#/definitions/GetOrLoadFileViaSecretRequest",
|
|
5612
5762
|
"definitions": {
|
|
5613
|
-
"
|
|
5763
|
+
"GetOrLoadFileViaSecretRequest": {
|
|
5614
5764
|
"type": "object",
|
|
5615
5765
|
"properties": {
|
|
5616
5766
|
"id": {
|
|
@@ -5633,11 +5783,11 @@ exports.LoadPeerFileViaSecretRequest = {
|
|
|
5633
5783
|
}
|
|
5634
5784
|
}
|
|
5635
5785
|
};
|
|
5636
|
-
exports.
|
|
5786
|
+
exports.GetOrLoadFileViaReferenceRequest = {
|
|
5637
5787
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5638
|
-
"$ref": "#/definitions/
|
|
5788
|
+
"$ref": "#/definitions/GetOrLoadFileViaReferenceRequest",
|
|
5639
5789
|
"definitions": {
|
|
5640
|
-
"
|
|
5790
|
+
"GetOrLoadFileViaReferenceRequest": {
|
|
5641
5791
|
"type": "object",
|
|
5642
5792
|
"properties": {
|
|
5643
5793
|
"reference": {
|
|
@@ -5667,21 +5817,21 @@ exports.LoadPeerFileViaReferenceRequest = {
|
|
|
5667
5817
|
}
|
|
5668
5818
|
}
|
|
5669
5819
|
};
|
|
5670
|
-
exports.
|
|
5820
|
+
exports.GetOrLoadFileRequest = {
|
|
5671
5821
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5672
|
-
"$ref": "#/definitions/
|
|
5822
|
+
"$ref": "#/definitions/GetOrLoadFileRequest",
|
|
5673
5823
|
"definitions": {
|
|
5674
|
-
"
|
|
5824
|
+
"GetOrLoadFileRequest": {
|
|
5675
5825
|
"anyOf": [
|
|
5676
5826
|
{
|
|
5677
|
-
"$ref": "#/definitions/
|
|
5827
|
+
"$ref": "#/definitions/GetOrLoadFileViaSecretRequest"
|
|
5678
5828
|
},
|
|
5679
5829
|
{
|
|
5680
|
-
"$ref": "#/definitions/
|
|
5830
|
+
"$ref": "#/definitions/GetOrLoadFileViaReferenceRequest"
|
|
5681
5831
|
}
|
|
5682
5832
|
]
|
|
5683
5833
|
},
|
|
5684
|
-
"
|
|
5834
|
+
"GetOrLoadFileViaSecretRequest": {
|
|
5685
5835
|
"type": "object",
|
|
5686
5836
|
"properties": {
|
|
5687
5837
|
"id": {
|
|
@@ -5702,7 +5852,7 @@ exports.LoadPeerFileRequest = {
|
|
|
5702
5852
|
"type": "string",
|
|
5703
5853
|
"pattern": "FIL[A-Za-z0-9]{17}"
|
|
5704
5854
|
},
|
|
5705
|
-
"
|
|
5855
|
+
"GetOrLoadFileViaReferenceRequest": {
|
|
5706
5856
|
"type": "object",
|
|
5707
5857
|
"properties": {
|
|
5708
5858
|
"reference": {
|