@veridid/calendar 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +39 -2
- package/build/CalendarEvents.d.mts +59 -0
- package/build/CalendarEvents.d.mts.map +1 -0
- package/build/CalendarEvents.mjs +13 -0
- package/build/CalendarEvents.mjs.map +1 -0
- package/build/CalendarModule.d.mts +17 -0
- package/build/CalendarModule.d.mts.map +1 -0
- package/build/CalendarModule.mjs +98 -0
- package/build/CalendarModule.mjs.map +1 -0
- package/build/CalendarModuleConfig.d.mts +15 -0
- package/build/CalendarModuleConfig.d.mts.map +1 -0
- package/build/CalendarModuleConfig.mjs +12 -0
- package/build/CalendarModuleConfig.mjs.map +1 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs +10 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateParam.mjs +9 -0
- package/build/api/CalendarApi.d.mts +132 -0
- package/build/api/CalendarApi.d.mts.map +1 -0
- package/build/api/CalendarApi.mjs +289 -0
- package/build/api/CalendarApi.mjs.map +1 -0
- package/build/index.d.mts +44 -0
- package/build/index.mjs +44 -0
- package/build/model/types.d.mts +133 -0
- package/build/model/types.d.mts.map +1 -0
- package/build/protocol/CalendarMessageTypes.d.mts +23 -0
- package/build/protocol/CalendarMessageTypes.d.mts.map +1 -0
- package/build/protocol/CalendarMessageTypes.mjs +24 -0
- package/build/protocol/CalendarMessageTypes.mjs.map +1 -0
- package/build/protocol/handlers/AcceptHandler.d.mts +14 -0
- package/build/protocol/handlers/AcceptHandler.d.mts.map +1 -0
- package/build/protocol/handlers/AcceptHandler.mjs +57 -0
- package/build/protocol/handlers/AcceptHandler.mjs.map +1 -0
- package/build/protocol/handlers/AvailabilityHandler.d.mts +14 -0
- package/build/protocol/handlers/AvailabilityHandler.d.mts.map +1 -0
- package/build/protocol/handlers/AvailabilityHandler.mjs +24 -0
- package/build/protocol/handlers/AvailabilityHandler.mjs.map +1 -0
- package/build/protocol/handlers/CancelHandler.d.mts +14 -0
- package/build/protocol/handlers/CancelHandler.d.mts.map +1 -0
- package/build/protocol/handlers/CancelHandler.mjs +60 -0
- package/build/protocol/handlers/CancelHandler.mjs.map +1 -0
- package/build/protocol/handlers/DeclineHandler.d.mts +14 -0
- package/build/protocol/handlers/DeclineHandler.d.mts.map +1 -0
- package/build/protocol/handlers/DeclineHandler.mjs +57 -0
- package/build/protocol/handlers/DeclineHandler.mjs.map +1 -0
- package/build/protocol/handlers/DelegateAcceptHandler.d.mts +14 -0
- package/build/protocol/handlers/DelegateAcceptHandler.d.mts.map +1 -0
- package/build/protocol/handlers/DelegateAcceptHandler.mjs +37 -0
- package/build/protocol/handlers/DelegateAcceptHandler.mjs.map +1 -0
- package/build/protocol/handlers/DelegateDeclineHandler.d.mts +14 -0
- package/build/protocol/handlers/DelegateDeclineHandler.d.mts.map +1 -0
- package/build/protocol/handlers/DelegateDeclineHandler.mjs +45 -0
- package/build/protocol/handlers/DelegateDeclineHandler.mjs.map +1 -0
- package/build/protocol/handlers/DelegateHandler.d.mts +14 -0
- package/build/protocol/handlers/DelegateHandler.d.mts.map +1 -0
- package/build/protocol/handlers/DelegateHandler.mjs +90 -0
- package/build/protocol/handlers/DelegateHandler.mjs.map +1 -0
- package/build/protocol/handlers/InviteHandler.d.mts +14 -0
- package/build/protocol/handlers/InviteHandler.d.mts.map +1 -0
- package/build/protocol/handlers/InviteHandler.mjs +69 -0
- package/build/protocol/handlers/InviteHandler.mjs.map +1 -0
- package/build/protocol/handlers/PollResultHandler.d.mts +14 -0
- package/build/protocol/handlers/PollResultHandler.d.mts.map +1 -0
- package/build/protocol/handlers/PollResultHandler.mjs +34 -0
- package/build/protocol/handlers/PollResultHandler.mjs.map +1 -0
- package/build/protocol/handlers/PollVoteHandler.d.mts +14 -0
- package/build/protocol/handlers/PollVoteHandler.d.mts.map +1 -0
- package/build/protocol/handlers/PollVoteHandler.mjs +54 -0
- package/build/protocol/handlers/PollVoteHandler.mjs.map +1 -0
- package/build/protocol/handlers/ProblemReportHandler.d.mts +14 -0
- package/build/protocol/handlers/ProblemReportHandler.d.mts.map +1 -0
- package/build/protocol/handlers/ProblemReportHandler.mjs +29 -0
- package/build/protocol/handlers/ProblemReportHandler.mjs.map +1 -0
- package/build/protocol/handlers/ProposeHandler.d.mts +14 -0
- package/build/protocol/handlers/ProposeHandler.d.mts.map +1 -0
- package/build/protocol/handlers/ProposeHandler.mjs +64 -0
- package/build/protocol/handlers/ProposeHandler.mjs.map +1 -0
- package/build/protocol/handlers/QueryAvailabilityHandler.d.mts +15 -0
- package/build/protocol/handlers/QueryAvailabilityHandler.d.mts.map +1 -0
- package/build/protocol/handlers/QueryAvailabilityHandler.mjs +75 -0
- package/build/protocol/handlers/QueryAvailabilityHandler.mjs.map +1 -0
- package/build/protocol/handlers/RecurrenceExceptionHandler.d.mts +14 -0
- package/build/protocol/handlers/RecurrenceExceptionHandler.d.mts.map +1 -0
- package/build/protocol/handlers/RecurrenceExceptionHandler.mjs +57 -0
- package/build/protocol/handlers/RecurrenceExceptionHandler.mjs.map +1 -0
- package/build/protocol/handlers/ReminderHandler.d.mts +14 -0
- package/build/protocol/handlers/ReminderHandler.d.mts.map +1 -0
- package/build/protocol/handlers/ReminderHandler.mjs +35 -0
- package/build/protocol/handlers/ReminderHandler.mjs.map +1 -0
- package/build/protocol/handlers/TentativeHandler.d.mts +14 -0
- package/build/protocol/handlers/TentativeHandler.d.mts.map +1 -0
- package/build/protocol/handlers/TentativeHandler.mjs +57 -0
- package/build/protocol/handlers/TentativeHandler.mjs.map +1 -0
- package/build/protocol/handlers/UpdateHandler.d.mts +14 -0
- package/build/protocol/handlers/UpdateHandler.d.mts.map +1 -0
- package/build/protocol/handlers/UpdateHandler.mjs +57 -0
- package/build/protocol/handlers/UpdateHandler.mjs.map +1 -0
- package/build/protocol/messages/AcceptMessage.d.mts +22 -0
- package/build/protocol/messages/AcceptMessage.d.mts.map +1 -0
- package/build/protocol/messages/AcceptMessage.mjs +23 -0
- package/build/protocol/messages/AcceptMessage.mjs.map +1 -0
- package/build/protocol/messages/AvailabilityMessage.d.mts +23 -0
- package/build/protocol/messages/AvailabilityMessage.d.mts.map +1 -0
- package/build/protocol/messages/AvailabilityMessage.mjs +23 -0
- package/build/protocol/messages/AvailabilityMessage.mjs.map +1 -0
- package/build/protocol/messages/CancelMessage.d.mts +24 -0
- package/build/protocol/messages/CancelMessage.d.mts.map +1 -0
- package/build/protocol/messages/CancelMessage.mjs +23 -0
- package/build/protocol/messages/CancelMessage.mjs.map +1 -0
- package/build/protocol/messages/DeclineMessage.d.mts +23 -0
- package/build/protocol/messages/DeclineMessage.d.mts.map +1 -0
- package/build/protocol/messages/DeclineMessage.mjs +23 -0
- package/build/protocol/messages/DeclineMessage.mjs.map +1 -0
- package/build/protocol/messages/DelegateAcceptMessage.d.mts +22 -0
- package/build/protocol/messages/DelegateAcceptMessage.d.mts.map +1 -0
- package/build/protocol/messages/DelegateAcceptMessage.mjs +23 -0
- package/build/protocol/messages/DelegateAcceptMessage.mjs.map +1 -0
- package/build/protocol/messages/DelegateDeclineMessage.d.mts +22 -0
- package/build/protocol/messages/DelegateDeclineMessage.d.mts.map +1 -0
- package/build/protocol/messages/DelegateDeclineMessage.mjs +23 -0
- package/build/protocol/messages/DelegateDeclineMessage.mjs.map +1 -0
- package/build/protocol/messages/DelegateMessage.d.mts +25 -0
- package/build/protocol/messages/DelegateMessage.d.mts.map +1 -0
- package/build/protocol/messages/DelegateMessage.mjs +23 -0
- package/build/protocol/messages/DelegateMessage.mjs.map +1 -0
- package/build/protocol/messages/InviteMessage.d.mts +38 -0
- package/build/protocol/messages/InviteMessage.d.mts.map +1 -0
- package/build/protocol/messages/InviteMessage.mjs +23 -0
- package/build/protocol/messages/InviteMessage.mjs.map +1 -0
- package/build/protocol/messages/PollResultMessage.d.mts +24 -0
- package/build/protocol/messages/PollResultMessage.d.mts.map +1 -0
- package/build/protocol/messages/PollResultMessage.mjs +23 -0
- package/build/protocol/messages/PollResultMessage.mjs.map +1 -0
- package/build/protocol/messages/PollVoteMessage.d.mts +21 -0
- package/build/protocol/messages/PollVoteMessage.d.mts.map +1 -0
- package/build/protocol/messages/PollVoteMessage.mjs +23 -0
- package/build/protocol/messages/PollVoteMessage.mjs.map +1 -0
- package/build/protocol/messages/ProblemReportMessage.d.mts +21 -0
- package/build/protocol/messages/ProblemReportMessage.d.mts.map +1 -0
- package/build/protocol/messages/ProblemReportMessage.mjs +23 -0
- package/build/protocol/messages/ProblemReportMessage.mjs.map +1 -0
- package/build/protocol/messages/ProposeMessage.d.mts +31 -0
- package/build/protocol/messages/ProposeMessage.d.mts.map +1 -0
- package/build/protocol/messages/ProposeMessage.mjs +23 -0
- package/build/protocol/messages/ProposeMessage.mjs.map +1 -0
- package/build/protocol/messages/QueryAvailabilityMessage.d.mts +25 -0
- package/build/protocol/messages/QueryAvailabilityMessage.d.mts.map +1 -0
- package/build/protocol/messages/QueryAvailabilityMessage.mjs +23 -0
- package/build/protocol/messages/QueryAvailabilityMessage.mjs.map +1 -0
- package/build/protocol/messages/RecurrenceExceptionMessage.d.mts +24 -0
- package/build/protocol/messages/RecurrenceExceptionMessage.d.mts.map +1 -0
- package/build/protocol/messages/RecurrenceExceptionMessage.mjs +23 -0
- package/build/protocol/messages/RecurrenceExceptionMessage.mjs.map +1 -0
- package/build/protocol/messages/ReminderMessage.d.mts +26 -0
- package/build/protocol/messages/ReminderMessage.d.mts.map +1 -0
- package/build/protocol/messages/ReminderMessage.mjs +23 -0
- package/build/protocol/messages/ReminderMessage.mjs.map +1 -0
- package/build/protocol/messages/TentativeMessage.d.mts +22 -0
- package/build/protocol/messages/TentativeMessage.d.mts.map +1 -0
- package/build/protocol/messages/TentativeMessage.mjs +23 -0
- package/build/protocol/messages/TentativeMessage.mjs.map +1 -0
- package/build/protocol/messages/UpdateMessage.d.mts +23 -0
- package/build/protocol/messages/UpdateMessage.d.mts.map +1 -0
- package/build/protocol/messages/UpdateMessage.mjs +23 -0
- package/build/protocol/messages/UpdateMessage.mjs.map +1 -0
- package/build/repository/CalendarEventRecord.d.mts +49 -0
- package/build/repository/CalendarEventRecord.d.mts.map +1 -0
- package/build/repository/CalendarEventRecord.mjs +42 -0
- package/build/repository/CalendarEventRecord.mjs.map +1 -0
- package/build/repository/CalendarEventRepository.d.mts +18 -0
- package/build/repository/CalendarEventRepository.d.mts.map +1 -0
- package/build/repository/CalendarEventRepository.mjs +63 -0
- package/build/repository/CalendarEventRepository.mjs.map +1 -0
- package/build/services/CalendarService.d.mts +222 -0
- package/build/services/CalendarService.d.mts.map +1 -0
- package/build/services/CalendarService.mjs +587 -0
- package/build/services/CalendarService.mjs.map +1 -0
- package/package.json +43 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/DeclineMessage.ts
|
|
6
|
+
var DeclineMessage = class DeclineMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = DeclineMessage.type.messageTypeUri;
|
|
10
|
+
this.type = DeclineMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
DeclineMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/decline");
|
|
19
|
+
__decorate([IsValidMessageType(DeclineMessage.type), __decorateMetadata("design:type", Object)], DeclineMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DeclineMessage };
|
|
23
|
+
//# sourceMappingURL=DeclineMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclineMessage.mjs","names":[],"sources":["../../../src/protocol/messages/DeclineMessage.ts"],"sourcesContent":["import type { CounterPropose } from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class DeclineMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/decline')\n\n @IsValidMessageType(DeclineMessage.type)\n public type = DeclineMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n sequence: number\n reason?: string\n counter_propose?: CounterPropose\n }\n\n public constructor(options?: { id?: string; body: DeclineMessage['body']; thid?: string }) {\n super()\n this.type = DeclineMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,iBAAb,MAAa,uBAAuB,eAAe;CAajD,AAAO,YAAY,SAAwE;AACzF,SAAO;OAVF,OAAO,eAAe,KAAK;AAWhC,OAAK,OAAO,eAAe,KAAK;AAChC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;eAlBzC,OAAO,iBAAiB,2CAA2C;YAEzF,mBAAmB,eAAe,KAAK"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocol/messages/DelegateAcceptMessage.d.ts
|
|
5
|
+
declare class DelegateAcceptMessage extends DidCommMessage {
|
|
6
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
7
|
+
type: string;
|
|
8
|
+
body: {
|
|
9
|
+
event_id: string;
|
|
10
|
+
delegator: string;
|
|
11
|
+
delegate: string;
|
|
12
|
+
status: 'approved';
|
|
13
|
+
};
|
|
14
|
+
constructor(options?: {
|
|
15
|
+
id?: string;
|
|
16
|
+
body: DelegateAcceptMessage['body'];
|
|
17
|
+
thid?: string;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DelegateAcceptMessage };
|
|
22
|
+
//# sourceMappingURL=DelegateAcceptMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateAcceptMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/DelegateAcceptMessage.ts"],"mappings":";;;;cAEa,qBAAA,SAA8B,cAAA;EAAA,gBAClB,IAAA,EADU,kBAAA,CACN,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,SAAA;IACA,QAAA;IACA,MAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,qBAAA;IAA+B,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/DelegateAcceptMessage.ts
|
|
6
|
+
var DelegateAcceptMessage = class DelegateAcceptMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = DelegateAcceptMessage.type.messageTypeUri;
|
|
10
|
+
this.type = DelegateAcceptMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
DelegateAcceptMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/delegate-accept");
|
|
19
|
+
__decorate([IsValidMessageType(DelegateAcceptMessage.type), __decorateMetadata("design:type", Object)], DelegateAcceptMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DelegateAcceptMessage };
|
|
23
|
+
//# sourceMappingURL=DelegateAcceptMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateAcceptMessage.mjs","names":[],"sources":["../../../src/protocol/messages/DelegateAcceptMessage.ts"],"sourcesContent":["import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class DelegateAcceptMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/delegate-accept')\n\n @IsValidMessageType(DelegateAcceptMessage.type)\n public type = DelegateAcceptMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n delegator: string\n delegate: string\n status: 'approved'\n }\n\n public constructor(options?: { id?: string; body: DelegateAcceptMessage['body']; thid?: string }) {\n super()\n this.type = DelegateAcceptMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,wBAAb,MAAa,8BAA8B,eAAe;CAaxD,AAAO,YAAY,SAA+E;AAChG,SAAO;OAVF,OAAO,sBAAsB,KAAK;AAWvC,OAAK,OAAO,sBAAsB,KAAK;AACvC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;sBAlBzC,OAAO,iBAAiB,mDAAmD;YAEjG,mBAAmB,sBAAsB,KAAK"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocol/messages/DelegateDeclineMessage.d.ts
|
|
5
|
+
declare class DelegateDeclineMessage extends DidCommMessage {
|
|
6
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
7
|
+
type: string;
|
|
8
|
+
body: {
|
|
9
|
+
event_id: string;
|
|
10
|
+
delegator: string;
|
|
11
|
+
delegate: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
};
|
|
14
|
+
constructor(options?: {
|
|
15
|
+
id?: string;
|
|
16
|
+
body: DelegateDeclineMessage['body'];
|
|
17
|
+
thid?: string;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DelegateDeclineMessage };
|
|
22
|
+
//# sourceMappingURL=DelegateDeclineMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateDeclineMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/DelegateDeclineMessage.ts"],"mappings":";;;;cAEa,sBAAA,SAA+B,cAAA;EAAA,gBACnB,IAAA,EADW,kBAAA,CACP,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,SAAA;IACA,QAAA;IACA,MAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,sBAAA;IAAgC,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/DelegateDeclineMessage.ts
|
|
6
|
+
var DelegateDeclineMessage = class DelegateDeclineMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = DelegateDeclineMessage.type.messageTypeUri;
|
|
10
|
+
this.type = DelegateDeclineMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
DelegateDeclineMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/delegate-decline");
|
|
19
|
+
__decorate([IsValidMessageType(DelegateDeclineMessage.type), __decorateMetadata("design:type", Object)], DelegateDeclineMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DelegateDeclineMessage };
|
|
23
|
+
//# sourceMappingURL=DelegateDeclineMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateDeclineMessage.mjs","names":[],"sources":["../../../src/protocol/messages/DelegateDeclineMessage.ts"],"sourcesContent":["import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class DelegateDeclineMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/delegate-decline')\n\n @IsValidMessageType(DelegateDeclineMessage.type)\n public type = DelegateDeclineMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n delegator: string\n delegate: string\n reason?: string\n }\n\n public constructor(options?: { id?: string; body: DelegateDeclineMessage['body']; thid?: string }) {\n super()\n this.type = DelegateDeclineMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,yBAAb,MAAa,+BAA+B,eAAe;CAazD,AAAO,YAAY,SAAgF;AACjG,SAAO;OAVF,OAAO,uBAAuB,KAAK;AAWxC,OAAK,OAAO,uBAAuB,KAAK;AACxC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;uBAlBzC,OAAO,iBAAiB,oDAAoD;YAElG,mBAAmB,uBAAuB,KAAK"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DelegationScope, DelegationToken } from "../../model/types.mjs";
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/DelegateMessage.d.ts
|
|
6
|
+
declare class DelegateMessage extends DidCommMessage {
|
|
7
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
8
|
+
type: string;
|
|
9
|
+
body: {
|
|
10
|
+
event_id: string;
|
|
11
|
+
delegator: string;
|
|
12
|
+
delegate_to: string;
|
|
13
|
+
scope: DelegationScope;
|
|
14
|
+
reason?: string;
|
|
15
|
+
delegation_token: DelegationToken;
|
|
16
|
+
};
|
|
17
|
+
constructor(options?: {
|
|
18
|
+
id?: string;
|
|
19
|
+
body: DelegateMessage['body'];
|
|
20
|
+
thid?: string;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DelegateMessage };
|
|
25
|
+
//# sourceMappingURL=DelegateMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/DelegateMessage.ts"],"mappings":";;;;;cAIa,eAAA,SAAwB,cAAA;EAAA,gBACZ,IAAA,EADI,kBAAA,CACA,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,SAAA;IACA,WAAA;IACA,KAAA,EAAO,eAAA;IACP,MAAA;IACA,gBAAA,EAAkB,eAAA;EAAA;cAGD,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,eAAA;IAAyB,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/DelegateMessage.ts
|
|
6
|
+
var DelegateMessage = class DelegateMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = DelegateMessage.type.messageTypeUri;
|
|
10
|
+
this.type = DelegateMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
DelegateMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/delegate");
|
|
19
|
+
__decorate([IsValidMessageType(DelegateMessage.type), __decorateMetadata("design:type", Object)], DelegateMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DelegateMessage };
|
|
23
|
+
//# sourceMappingURL=DelegateMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegateMessage.mjs","names":[],"sources":["../../../src/protocol/messages/DelegateMessage.ts"],"sourcesContent":["import type { DelegationScope, DelegationToken } from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class DelegateMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/delegate')\n\n @IsValidMessageType(DelegateMessage.type)\n public type = DelegateMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n delegator: string\n delegate_to: string\n scope: DelegationScope\n reason?: string\n delegation_token: DelegationToken\n }\n\n public constructor(options?: { id?: string; body: DelegateMessage['body']; thid?: string }) {\n super()\n this.type = DelegateMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,kBAAb,MAAa,wBAAwB,eAAe;CAelD,AAAO,YAAY,SAAyE;AAC1F,SAAO;OAZF,OAAO,gBAAgB,KAAK;AAajC,OAAK,OAAO,gBAAgB,KAAK;AACjC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;gBApBzC,OAAO,iBAAiB,4CAA4C;YAE1F,mBAAmB,gBAAgB,KAAK"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CallConfig, Participant, RecurrenceRule, ReminderSpec, Sensitivity, VaultOrLiteral, VaultPointer } from "../../model/types.mjs";
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/InviteMessage.d.ts
|
|
6
|
+
declare class InviteMessage extends DidCommMessage {
|
|
7
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
8
|
+
type: string;
|
|
9
|
+
body: {
|
|
10
|
+
event_id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
start: string;
|
|
14
|
+
end: string;
|
|
15
|
+
timezone: string;
|
|
16
|
+
description?: VaultOrLiteral;
|
|
17
|
+
location?: VaultOrLiteral;
|
|
18
|
+
call_config?: CallConfig | null;
|
|
19
|
+
participants: Participant[];
|
|
20
|
+
reminders?: ReminderSpec[];
|
|
21
|
+
recurrence?: RecurrenceRule | null;
|
|
22
|
+
sequence: number;
|
|
23
|
+
sensitivity: Sensitivity;
|
|
24
|
+
allow_delegation: boolean;
|
|
25
|
+
require_signed_rsvp: boolean;
|
|
26
|
+
vault_ref?: VaultPointer | null;
|
|
27
|
+
attachments?: unknown[];
|
|
28
|
+
pthid?: string | null;
|
|
29
|
+
};
|
|
30
|
+
constructor(options?: {
|
|
31
|
+
id?: string;
|
|
32
|
+
body: InviteMessage['body'];
|
|
33
|
+
thid?: string;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { InviteMessage };
|
|
38
|
+
//# sourceMappingURL=InviteMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviteMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/InviteMessage.ts"],"mappings":";;;;;cAYa,aAAA,SAAsB,cAAA;EAAA,gBACV,IAAA,EADE,kBAAA,CACE,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,KAAA;IACA,IAAA;IACA,KAAA;IACA,GAAA;IACA,QAAA;IACA,WAAA,GAAc,cAAA;IACd,QAAA,GAAW,cAAA;IACX,WAAA,GAAc,UAAA;IACd,YAAA,EAAc,WAAA;IACd,SAAA,GAAY,YAAA;IACZ,UAAA,GAAa,cAAA;IACb,QAAA;IACA,WAAA,EAAa,WAAA;IACb,gBAAA;IACA,mBAAA;IACA,SAAA,GAAY,YAAA;IACZ,WAAA;IACA,KAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,aAAA;IAAuB,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/InviteMessage.ts
|
|
6
|
+
var InviteMessage = class InviteMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = InviteMessage.type.messageTypeUri;
|
|
10
|
+
this.type = InviteMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
InviteMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/invite");
|
|
19
|
+
__decorate([IsValidMessageType(InviteMessage.type), __decorateMetadata("design:type", Object)], InviteMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { InviteMessage };
|
|
23
|
+
//# sourceMappingURL=InviteMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InviteMessage.mjs","names":[],"sources":["../../../src/protocol/messages/InviteMessage.ts"],"sourcesContent":["import type {\n CallConfig,\n Participant,\n RecurrenceRule,\n ReminderSpec,\n Sensitivity,\n VaultOrLiteral,\n VaultPointer,\n} from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class InviteMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/invite')\n\n @IsValidMessageType(InviteMessage.type)\n public type = InviteMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n title: string\n type: string\n start: string\n end: string\n timezone: string\n description?: VaultOrLiteral\n location?: VaultOrLiteral\n call_config?: CallConfig | null\n participants: Participant[]\n reminders?: ReminderSpec[]\n recurrence?: RecurrenceRule | null\n sequence: number\n sensitivity: Sensitivity\n allow_delegation: boolean\n require_signed_rsvp: boolean\n vault_ref?: VaultPointer | null\n attachments?: unknown[]\n pthid?: string | null\n }\n\n public constructor(options?: { id?: string; body: InviteMessage['body']; thid?: string }) {\n super()\n this.type = InviteMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAYA,IAAa,gBAAb,MAAa,sBAAsB,eAAe;CA4BhD,AAAO,YAAY,SAAuE;AACxF,SAAO;OAzBF,OAAO,cAAc,KAAK;AA0B/B,OAAK,OAAO,cAAc,KAAK;AAC/B,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;cAjCzC,OAAO,iBAAiB,0CAA0C;YAExF,mBAAmB,cAAc,KAAK"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PollTally } from "../../model/types.mjs";
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/PollResultMessage.d.ts
|
|
6
|
+
declare class PollResultMessage extends DidCommMessage {
|
|
7
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
8
|
+
type: string;
|
|
9
|
+
body: {
|
|
10
|
+
event_id: string;
|
|
11
|
+
selected_option: string;
|
|
12
|
+
tallies: PollTally[];
|
|
13
|
+
quorum_met: boolean;
|
|
14
|
+
proceed: boolean;
|
|
15
|
+
};
|
|
16
|
+
constructor(options?: {
|
|
17
|
+
id?: string;
|
|
18
|
+
body: PollResultMessage['body'];
|
|
19
|
+
thid?: string;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PollResultMessage };
|
|
24
|
+
//# sourceMappingURL=PollResultMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollResultMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/PollResultMessage.ts"],"mappings":";;;;;cAIa,iBAAA,SAA0B,cAAA;EAAA,gBACd,IAAA,EADM,kBAAA,CACF,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,eAAA;IACA,OAAA,EAAS,SAAA;IACT,UAAA;IACA,OAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,iBAAA;IAA2B,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/PollResultMessage.ts
|
|
6
|
+
var PollResultMessage = class PollResultMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = PollResultMessage.type.messageTypeUri;
|
|
10
|
+
this.type = PollResultMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
PollResultMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/poll-result");
|
|
19
|
+
__decorate([IsValidMessageType(PollResultMessage.type), __decorateMetadata("design:type", Object)], PollResultMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PollResultMessage };
|
|
23
|
+
//# sourceMappingURL=PollResultMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollResultMessage.mjs","names":[],"sources":["../../../src/protocol/messages/PollResultMessage.ts"],"sourcesContent":["import type { PollTally } from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class PollResultMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/poll-result')\n\n @IsValidMessageType(PollResultMessage.type)\n public type = PollResultMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n selected_option: string\n tallies: PollTally[]\n quorum_met: boolean\n proceed: boolean\n }\n\n public constructor(options?: { id?: string; body: PollResultMessage['body']; thid?: string }) {\n super()\n this.type = PollResultMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,oBAAb,MAAa,0BAA0B,eAAe;CAcpD,AAAO,YAAY,SAA2E;AAC5F,SAAO;OAXF,OAAO,kBAAkB,KAAK;AAYnC,OAAK,OAAO,kBAAkB,KAAK;AACnC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;kBAnBzC,OAAO,iBAAiB,+CAA+C;YAE7F,mBAAmB,kBAAkB,KAAK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PollVoteEntry } from "../../model/types.mjs";
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/PollVoteMessage.d.ts
|
|
6
|
+
declare class PollVoteMessage extends DidCommMessage {
|
|
7
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
8
|
+
type: string;
|
|
9
|
+
body: {
|
|
10
|
+
event_id: string;
|
|
11
|
+
votes: PollVoteEntry[];
|
|
12
|
+
};
|
|
13
|
+
constructor(options?: {
|
|
14
|
+
id?: string;
|
|
15
|
+
body: PollVoteMessage['body'];
|
|
16
|
+
thid?: string;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PollVoteMessage };
|
|
21
|
+
//# sourceMappingURL=PollVoteMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollVoteMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/PollVoteMessage.ts"],"mappings":";;;;;cAIa,eAAA,SAAwB,cAAA;EAAA,gBACZ,IAAA,EADI,kBAAA,CACA,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,KAAA,EAAO,aAAA;EAAA;cAGU,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,eAAA;IAAyB,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/PollVoteMessage.ts
|
|
6
|
+
var PollVoteMessage = class PollVoteMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = PollVoteMessage.type.messageTypeUri;
|
|
10
|
+
this.type = PollVoteMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
PollVoteMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/poll-vote");
|
|
19
|
+
__decorate([IsValidMessageType(PollVoteMessage.type), __decorateMetadata("design:type", Object)], PollVoteMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PollVoteMessage };
|
|
23
|
+
//# sourceMappingURL=PollVoteMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollVoteMessage.mjs","names":[],"sources":["../../../src/protocol/messages/PollVoteMessage.ts"],"sourcesContent":["import type { PollVoteEntry } from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class PollVoteMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/poll-vote')\n\n @IsValidMessageType(PollVoteMessage.type)\n public type = PollVoteMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n votes: PollVoteEntry[]\n }\n\n public constructor(options?: { id?: string; body: PollVoteMessage['body']; thid?: string }) {\n super()\n this.type = PollVoteMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,kBAAb,MAAa,wBAAwB,eAAe;CAWlD,AAAO,YAAY,SAAyE;AAC1F,SAAO;OARF,OAAO,gBAAgB,KAAK;AASjC,OAAK,OAAO,gBAAgB,KAAK;AACjC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;gBAhBzC,OAAO,iBAAiB,6CAA6C;YAE3F,mBAAmB,gBAAgB,KAAK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocol/messages/ProblemReportMessage.d.ts
|
|
5
|
+
declare class ProblemReportMessage extends DidCommMessage {
|
|
6
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
7
|
+
type: string;
|
|
8
|
+
body: {
|
|
9
|
+
code: string;
|
|
10
|
+
comment: string;
|
|
11
|
+
args?: Record<string, unknown>;
|
|
12
|
+
};
|
|
13
|
+
constructor(options?: {
|
|
14
|
+
id?: string;
|
|
15
|
+
body: ProblemReportMessage['body'];
|
|
16
|
+
thid?: string;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ProblemReportMessage };
|
|
21
|
+
//# sourceMappingURL=ProblemReportMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProblemReportMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/ProblemReportMessage.ts"],"mappings":";;;;cAEa,oBAAA,SAA6B,cAAA;EAAA,gBACjB,IAAA,EADS,kBAAA,CACL,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,IAAA;IACA,OAAA;IACA,IAAA,GAAO,MAAA;EAAA;cAGU,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,oBAAA;IAA8B,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/ProblemReportMessage.ts
|
|
6
|
+
var ProblemReportMessage = class ProblemReportMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = ProblemReportMessage.type.messageTypeUri;
|
|
10
|
+
this.type = ProblemReportMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ProblemReportMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/problem-report");
|
|
19
|
+
__decorate([IsValidMessageType(ProblemReportMessage.type), __decorateMetadata("design:type", Object)], ProblemReportMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ProblemReportMessage };
|
|
23
|
+
//# sourceMappingURL=ProblemReportMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProblemReportMessage.mjs","names":[],"sources":["../../../src/protocol/messages/ProblemReportMessage.ts"],"sourcesContent":["import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class ProblemReportMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/problem-report')\n\n @IsValidMessageType(ProblemReportMessage.type)\n public type = ProblemReportMessage.type.messageTypeUri\n\n public body!: {\n code: string\n comment: string\n args?: Record<string, unknown>\n }\n\n public constructor(options?: { id?: string; body: ProblemReportMessage['body']; thid?: string }) {\n super()\n this.type = ProblemReportMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,uBAAb,MAAa,6BAA6B,eAAe;CAYvD,AAAO,YAAY,SAA8E;AAC/F,SAAO;OATF,OAAO,qBAAqB,KAAK;AAUtC,OAAK,OAAO,qBAAqB,KAAK;AACtC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;qBAjBzC,OAAO,iBAAiB,kDAAkD;YAEhG,mBAAmB,qBAAqB,KAAK"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CallConfig, Quorum, RecurrenceRule, ReminderSpec, Sensitivity, TimeOption, VaultOrLiteral } from "../../model/types.mjs";
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/ProposeMessage.d.ts
|
|
6
|
+
declare class ProposeMessage extends DidCommMessage {
|
|
7
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
8
|
+
type: string;
|
|
9
|
+
body: {
|
|
10
|
+
event_id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
time_options: TimeOption[];
|
|
14
|
+
description?: VaultOrLiteral;
|
|
15
|
+
location?: VaultOrLiteral;
|
|
16
|
+
call_config?: CallConfig | null;
|
|
17
|
+
quorum?: Quorum;
|
|
18
|
+
reminders?: ReminderSpec[];
|
|
19
|
+
recurrence?: RecurrenceRule | null;
|
|
20
|
+
sensitivity?: Sensitivity;
|
|
21
|
+
tags?: string[];
|
|
22
|
+
};
|
|
23
|
+
constructor(options?: {
|
|
24
|
+
id?: string;
|
|
25
|
+
body: ProposeMessage['body'];
|
|
26
|
+
thid?: string;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ProposeMessage };
|
|
31
|
+
//# sourceMappingURL=ProposeMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProposeMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/ProposeMessage.ts"],"mappings":";;;;;cAYa,cAAA,SAAuB,cAAA;EAAA,gBACX,IAAA,EADG,kBAAA,CACC,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,KAAA;IACA,IAAA;IACA,YAAA,EAAc,UAAA;IACd,WAAA,GAAc,cAAA;IACd,QAAA,GAAW,cAAA;IACX,WAAA,GAAc,UAAA;IACd,MAAA,GAAS,MAAA;IACT,SAAA,GAAY,YAAA;IACZ,UAAA,GAAa,cAAA;IACb,WAAA,GAAc,WAAA;IACd,IAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,cAAA;IAAwB,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/ProposeMessage.ts
|
|
6
|
+
var ProposeMessage = class ProposeMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = ProposeMessage.type.messageTypeUri;
|
|
10
|
+
this.type = ProposeMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ProposeMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/propose");
|
|
19
|
+
__decorate([IsValidMessageType(ProposeMessage.type), __decorateMetadata("design:type", Object)], ProposeMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ProposeMessage };
|
|
23
|
+
//# sourceMappingURL=ProposeMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProposeMessage.mjs","names":[],"sources":["../../../src/protocol/messages/ProposeMessage.ts"],"sourcesContent":["import type {\n CallConfig,\n Quorum,\n RecurrenceRule,\n ReminderSpec,\n Sensitivity,\n TimeOption,\n VaultOrLiteral,\n} from '../../model/types'\n\nimport { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class ProposeMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/propose')\n\n @IsValidMessageType(ProposeMessage.type)\n public type = ProposeMessage.type.messageTypeUri\n\n public body!: {\n event_id: string\n title: string\n type: string\n time_options: TimeOption[]\n description?: VaultOrLiteral\n location?: VaultOrLiteral\n call_config?: CallConfig | null\n quorum?: Quorum\n reminders?: ReminderSpec[]\n recurrence?: RecurrenceRule | null\n sensitivity?: Sensitivity\n tags?: string[]\n }\n\n public constructor(options?: { id?: string; body: ProposeMessage['body']; thid?: string }) {\n super()\n this.type = ProposeMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAYA,IAAa,iBAAb,MAAa,uBAAuB,eAAe;CAqBjD,AAAO,YAAY,SAAwE;AACzF,SAAO;OAlBF,OAAO,eAAe,KAAK;AAmBhC,OAAK,OAAO,eAAe,KAAK;AAChC,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;eA1BzC,OAAO,iBAAiB,2CAA2C;YAEzF,mBAAmB,eAAe,KAAK"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocol/messages/QueryAvailabilityMessage.d.ts
|
|
5
|
+
declare class QueryAvailabilityMessage extends DidCommMessage {
|
|
6
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
7
|
+
type: string;
|
|
8
|
+
body: {
|
|
9
|
+
range: {
|
|
10
|
+
start: string;
|
|
11
|
+
end: string;
|
|
12
|
+
};
|
|
13
|
+
timezone: string;
|
|
14
|
+
granularity_minutes: number;
|
|
15
|
+
purpose?: string;
|
|
16
|
+
};
|
|
17
|
+
constructor(options?: {
|
|
18
|
+
id?: string;
|
|
19
|
+
body: QueryAvailabilityMessage['body'];
|
|
20
|
+
thid?: string;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { QueryAvailabilityMessage };
|
|
25
|
+
//# sourceMappingURL=QueryAvailabilityMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryAvailabilityMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/QueryAvailabilityMessage.ts"],"mappings":";;;;cAEa,wBAAA,SAAiC,cAAA;EAAA,gBACrB,IAAA,EADa,kBAAA,CACT,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,KAAA;MAAS,KAAA;MAAe,GAAA;IAAA;IACxB,QAAA;IACA,mBAAA;IACA,OAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,wBAAA;IAAkC,IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocol/messages/QueryAvailabilityMessage.ts
|
|
6
|
+
var QueryAvailabilityMessage = class QueryAvailabilityMessage extends DidCommMessage {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = QueryAvailabilityMessage.type.messageTypeUri;
|
|
10
|
+
this.type = QueryAvailabilityMessage.type.messageTypeUri;
|
|
11
|
+
if (options) {
|
|
12
|
+
this.id = options.id || this.generateId();
|
|
13
|
+
this.body = options.body;
|
|
14
|
+
if (options.thid) this.setThread({ threadId: options.thid });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
QueryAvailabilityMessage.type = parseMessageType("https://didcomm.org/calendar/1.0/query-availability");
|
|
19
|
+
__decorate([IsValidMessageType(QueryAvailabilityMessage.type), __decorateMetadata("design:type", Object)], QueryAvailabilityMessage.prototype, "type", void 0);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { QueryAvailabilityMessage };
|
|
23
|
+
//# sourceMappingURL=QueryAvailabilityMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryAvailabilityMessage.mjs","names":[],"sources":["../../../src/protocol/messages/QueryAvailabilityMessage.ts"],"sourcesContent":["import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class QueryAvailabilityMessage extends DidCommMessage {\n public static readonly type = parseMessageType('https://didcomm.org/calendar/1.0/query-availability')\n\n @IsValidMessageType(QueryAvailabilityMessage.type)\n public type = QueryAvailabilityMessage.type.messageTypeUri\n\n public body!: {\n range: { start: string; end: string }\n timezone: string\n granularity_minutes: number\n purpose?: string\n }\n\n public constructor(options?: { id?: string; body: QueryAvailabilityMessage['body']; thid?: string }) {\n super()\n this.type = QueryAvailabilityMessage.type.messageTypeUri\n if (options) {\n this.id = options.id || this.generateId()\n this.body = options.body\n if (options.thid) this.setThread({ threadId: options.thid })\n }\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,2BAAb,MAAa,iCAAiC,eAAe;CAa3D,AAAO,YAAY,SAAkF;AACnG,SAAO;OAVF,OAAO,yBAAyB,KAAK;AAW1C,OAAK,OAAO,yBAAyB,KAAK;AAC1C,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,OAAO,QAAQ;AACpB,OAAI,QAAQ,KAAM,MAAK,UAAU,EAAE,UAAU,QAAQ,MAAM,CAAC;;;;yBAlBzC,OAAO,iBAAiB,sDAAsD;YAEpG,mBAAmB,yBAAyB,KAAK"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocol/messages/RecurrenceExceptionMessage.d.ts
|
|
5
|
+
declare class RecurrenceExceptionMessage extends DidCommMessage {
|
|
6
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
7
|
+
type: string;
|
|
8
|
+
body: {
|
|
9
|
+
event_id: string;
|
|
10
|
+
recurrence_id: string;
|
|
11
|
+
action: 'modify' | 'cancel';
|
|
12
|
+
changes?: Record<string, unknown>;
|
|
13
|
+
sequence: number;
|
|
14
|
+
reason?: string;
|
|
15
|
+
};
|
|
16
|
+
constructor(options?: {
|
|
17
|
+
id?: string;
|
|
18
|
+
body: RecurrenceExceptionMessage['body'];
|
|
19
|
+
thid?: string;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RecurrenceExceptionMessage };
|
|
24
|
+
//# sourceMappingURL=RecurrenceExceptionMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecurrenceExceptionMessage.d.mts","names":[],"sources":["../../../src/protocol/messages/RecurrenceExceptionMessage.ts"],"mappings":";;;;cAEa,0BAAA,SAAmC,cAAA;EAAA,gBACvB,IAAA,EADe,kBAAA,CACX,iBAAA;EAGpB,IAAA;EAEA,IAAA;IACL,QAAA;IACA,aAAA;IACA,MAAA;IACA,OAAA,GAAU,MAAA;IACV,QAAA;IACA,MAAA;EAAA;cAGiB,OAAA;IAAY,EAAA;IAAa,IAAA,EAAM,0BAAA;IAAoC,IAAA;EAAA;AAAA"}
|