@ajna-inc/workflow 0.5.37 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmvc/attestations.jsonld +32 -0
- package/LICENSE +202 -0
- package/build/WorkflowEvents.d.mts +40 -0
- package/build/WorkflowEvents.d.mts.map +1 -0
- package/build/WorkflowEvents.mjs +11 -0
- package/build/WorkflowEvents.mjs.map +1 -0
- package/build/WorkflowModule.d.mts +17 -0
- package/build/WorkflowModule.d.mts.map +1 -0
- package/build/WorkflowModule.mjs +446 -0
- package/build/WorkflowModule.mjs.map +1 -0
- package/build/WorkflowModuleConfig.d.mts +39 -0
- package/build/WorkflowModuleConfig.d.mts.map +1 -0
- package/build/WorkflowModuleConfig.mjs +19 -0
- package/build/WorkflowModuleConfig.mjs.map +1 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs +14 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs +11 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateParam.mjs +9 -0
- package/build/_virtual/rolldown_runtime.mjs +41 -0
- package/build/actions/ActionRegistry.d.mts +64 -0
- package/build/actions/ActionRegistry.d.mts.map +1 -0
- package/build/actions/ActionRegistry.mjs +304 -0
- package/build/actions/ActionRegistry.mjs.map +1 -0
- package/build/api/WorkflowApi.d.mts +99 -0
- package/build/api/WorkflowApi.d.mts.map +1 -0
- package/build/api/WorkflowApi.mjs +228 -0
- package/build/api/WorkflowApi.mjs.map +1 -0
- package/build/engine/AttributePlanner.d.mts +12 -0
- package/build/engine/AttributePlanner.d.mts.map +1 -0
- package/build/engine/AttributePlanner.mjs +58 -0
- package/build/engine/AttributePlanner.mjs.map +1 -0
- package/build/engine/GuardEvaluator.d.mts +16 -0
- package/build/engine/GuardEvaluator.d.mts.map +1 -0
- package/build/engine/GuardEvaluator.mjs +38 -0
- package/build/engine/GuardEvaluator.mjs.map +1 -0
- package/build/index.d.mts +46 -0
- package/build/index.mjs +53 -0
- package/build/index.mjs.map +1 -0
- package/build/model/TemplateValidation.d.mts +8 -0
- package/build/model/TemplateValidation.d.mts.map +1 -0
- package/build/model/TemplateValidation.mjs +278 -0
- package/build/model/TemplateValidation.mjs.map +1 -0
- package/build/model/types.d.mts +120 -0
- package/build/model/types.d.mts.map +1 -0
- package/build/model/types.mjs +11 -0
- package/build/model/types.mjs.map +1 -0
- package/build/protocol/WorkflowMessageTypes.d.mts +19 -0
- package/build/protocol/WorkflowMessageTypes.d.mts.map +1 -0
- package/build/protocol/WorkflowMessageTypes.mjs +20 -0
- package/build/protocol/WorkflowMessageTypes.mjs.map +1 -0
- package/build/protocol/handlers/AdvanceHandler.d.mts +16 -0
- package/build/protocol/handlers/AdvanceHandler.d.mts.map +1 -0
- package/build/protocol/handlers/AdvanceHandler.mjs +148 -0
- package/build/protocol/handlers/AdvanceHandler.mjs.map +1 -0
- package/build/protocol/handlers/CancelHandler.d.mts +16 -0
- package/build/protocol/handlers/CancelHandler.d.mts.map +1 -0
- package/build/protocol/handlers/CancelHandler.mjs +103 -0
- package/build/protocol/handlers/CancelHandler.mjs.map +1 -0
- package/build/protocol/handlers/CompleteHandler.d.mts +16 -0
- package/build/protocol/handlers/CompleteHandler.d.mts.map +1 -0
- package/build/protocol/handlers/CompleteHandler.mjs +103 -0
- package/build/protocol/handlers/CompleteHandler.mjs.map +1 -0
- package/build/protocol/handlers/DiscoverHandler.d.mts +15 -0
- package/build/protocol/handlers/DiscoverHandler.d.mts.map +1 -0
- package/build/protocol/handlers/DiscoverHandler.mjs +73 -0
- package/build/protocol/handlers/DiscoverHandler.mjs.map +1 -0
- package/build/protocol/handlers/FetchTemplateHandler.d.mts +16 -0
- package/build/protocol/handlers/FetchTemplateHandler.d.mts.map +1 -0
- package/build/protocol/handlers/FetchTemplateHandler.mjs +64 -0
- package/build/protocol/handlers/FetchTemplateHandler.mjs.map +1 -0
- package/build/protocol/handlers/PauseHandler.d.mts +16 -0
- package/build/protocol/handlers/PauseHandler.d.mts.map +1 -0
- package/build/protocol/handlers/PauseHandler.mjs +103 -0
- package/build/protocol/handlers/PauseHandler.mjs.map +1 -0
- package/build/protocol/handlers/ProblemReportHandler.d.mts +11 -0
- package/build/protocol/handlers/ProblemReportHandler.d.mts.map +1 -0
- package/build/protocol/handlers/ProblemReportHandler.mjs +26 -0
- package/build/protocol/handlers/ProblemReportHandler.mjs.map +1 -0
- package/build/protocol/handlers/PublishTemplateHandler.d.mts +15 -0
- package/build/protocol/handlers/PublishTemplateHandler.d.mts.map +1 -0
- package/build/protocol/handlers/PublishTemplateHandler.mjs +47 -0
- package/build/protocol/handlers/PublishTemplateHandler.mjs.map +1 -0
- package/build/protocol/handlers/ResumeHandler.d.mts +16 -0
- package/build/protocol/handlers/ResumeHandler.d.mts.map +1 -0
- package/build/protocol/handlers/ResumeHandler.mjs +103 -0
- package/build/protocol/handlers/ResumeHandler.mjs.map +1 -0
- package/build/protocol/handlers/StartHandler.d.mts +16 -0
- package/build/protocol/handlers/StartHandler.d.mts.map +1 -0
- package/build/protocol/handlers/StartHandler.mjs +238 -0
- package/build/protocol/handlers/StartHandler.mjs.map +1 -0
- package/build/protocol/handlers/StatusHandler.d.mts +16 -0
- package/build/protocol/handlers/StatusHandler.d.mts.map +1 -0
- package/build/protocol/handlers/StatusHandler.mjs +169 -0
- package/build/protocol/handlers/StatusHandler.mjs.map +1 -0
- package/build/protocol/handlers/TemplateHandler.d.mts +14 -0
- package/build/protocol/handlers/TemplateHandler.d.mts.map +1 -0
- package/build/protocol/handlers/TemplateHandler.mjs +66 -0
- package/build/protocol/handlers/TemplateHandler.mjs.map +1 -0
- package/build/protocol/messages/AdvanceMessage.d.mts +22 -0
- package/build/protocol/messages/AdvanceMessage.d.mts.map +1 -0
- package/build/protocol/messages/AdvanceMessage.mjs +25 -0
- package/build/protocol/messages/AdvanceMessage.mjs.map +1 -0
- package/build/protocol/messages/CancelMessage.d.mts +20 -0
- package/build/protocol/messages/CancelMessage.d.mts.map +1 -0
- package/build/protocol/messages/CancelMessage.mjs +25 -0
- package/build/protocol/messages/CancelMessage.mjs.map +1 -0
- package/build/protocol/messages/CompleteMessage.d.mts +20 -0
- package/build/protocol/messages/CompleteMessage.d.mts.map +1 -0
- package/build/protocol/messages/CompleteMessage.mjs +25 -0
- package/build/protocol/messages/CompleteMessage.mjs.map +1 -0
- package/build/protocol/messages/DiscoverMessage.d.mts +29 -0
- package/build/protocol/messages/DiscoverMessage.d.mts.map +1 -0
- package/build/protocol/messages/DiscoverMessage.mjs +25 -0
- package/build/protocol/messages/DiscoverMessage.mjs.map +1 -0
- package/build/protocol/messages/FetchTemplateMessage.d.mts +21 -0
- package/build/protocol/messages/FetchTemplateMessage.d.mts.map +1 -0
- package/build/protocol/messages/FetchTemplateMessage.mjs +31 -0
- package/build/protocol/messages/FetchTemplateMessage.mjs.map +1 -0
- package/build/protocol/messages/PauseMessage.d.mts +20 -0
- package/build/protocol/messages/PauseMessage.d.mts.map +1 -0
- package/build/protocol/messages/PauseMessage.mjs +25 -0
- package/build/protocol/messages/PauseMessage.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 +25 -0
- package/build/protocol/messages/ProblemReportMessage.mjs.map +1 -0
- package/build/protocol/messages/PublishTemplateMessage.d.mts +23 -0
- package/build/protocol/messages/PublishTemplateMessage.d.mts.map +1 -0
- package/build/protocol/messages/PublishTemplateMessage.mjs +24 -0
- package/build/protocol/messages/PublishTemplateMessage.mjs.map +1 -0
- package/build/protocol/messages/ResumeMessage.d.mts +20 -0
- package/build/protocol/messages/ResumeMessage.d.mts.map +1 -0
- package/build/protocol/messages/ResumeMessage.mjs +25 -0
- package/build/protocol/messages/ResumeMessage.mjs.map +1 -0
- package/build/protocol/messages/StartMessage.d.mts +27 -0
- package/build/protocol/messages/StartMessage.d.mts.map +1 -0
- package/build/protocol/messages/StartMessage.mjs +25 -0
- package/build/protocol/messages/StartMessage.mjs.map +1 -0
- package/build/protocol/messages/StatusMessage.d.mts +35 -0
- package/build/protocol/messages/StatusMessage.d.mts.map +1 -0
- package/build/protocol/messages/StatusMessage.mjs +25 -0
- package/build/protocol/messages/StatusMessage.mjs.map +1 -0
- package/build/protocol/messages/StatusRequestMessage.d.mts +29 -0
- package/build/protocol/messages/StatusRequestMessage.d.mts.map +1 -0
- package/build/protocol/messages/StatusRequestMessage.mjs +25 -0
- package/build/protocol/messages/StatusRequestMessage.mjs.map +1 -0
- package/build/protocol/messages/TemplateMessage.d.mts +20 -0
- package/build/protocol/messages/TemplateMessage.d.mts.map +1 -0
- package/build/protocol/messages/TemplateMessage.mjs +25 -0
- package/build/protocol/messages/TemplateMessage.mjs.map +1 -0
- package/build/protocol/messages/WorkflowsMessage.d.mts +28 -0
- package/build/protocol/messages/WorkflowsMessage.d.mts.map +1 -0
- package/build/protocol/messages/WorkflowsMessage.mjs +25 -0
- package/build/protocol/messages/WorkflowsMessage.mjs.map +1 -0
- package/build/queue/CommandQueue.d.mts +22 -0
- package/build/queue/CommandQueue.d.mts.map +1 -0
- package/build/queue/CommandQueue.mjs +6 -0
- package/build/queue/CommandQueue.mjs.map +1 -0
- package/build/queue/PersistentCommandQueue.d.mts +56 -0
- package/build/queue/PersistentCommandQueue.d.mts.map +1 -0
- package/build/queue/PersistentCommandQueue.mjs +273 -0
- package/build/queue/PersistentCommandQueue.mjs.map +1 -0
- package/build/repository/WorkflowCommandRecord.d.mts +50 -0
- package/build/repository/WorkflowCommandRecord.d.mts.map +1 -0
- package/build/repository/WorkflowCommandRecord.mjs +48 -0
- package/build/repository/WorkflowCommandRecord.mjs.map +1 -0
- package/build/repository/WorkflowCommandRepository.d.mts +59 -0
- package/build/repository/WorkflowCommandRepository.d.mts.map +1 -0
- package/build/repository/WorkflowCommandRepository.mjs +136 -0
- package/build/repository/WorkflowCommandRepository.mjs.map +1 -0
- package/build/repository/WorkflowInstanceRecord.d.mts +65 -0
- package/build/repository/WorkflowInstanceRecord.d.mts.map +1 -0
- package/build/repository/WorkflowInstanceRecord.mjs +44 -0
- package/build/repository/WorkflowInstanceRecord.mjs.map +1 -0
- package/build/repository/WorkflowInstanceRepository.d.mts +15 -0
- package/build/repository/WorkflowInstanceRepository.d.mts.map +1 -0
- package/build/repository/WorkflowInstanceRepository.mjs +48 -0
- package/build/repository/WorkflowInstanceRepository.mjs.map +1 -0
- package/build/repository/WorkflowTemplateRecord.d.mts +27 -0
- package/build/repository/WorkflowTemplateRecord.d.mts.map +1 -0
- package/build/repository/WorkflowTemplateRecord.mjs +29 -0
- package/build/repository/WorkflowTemplateRecord.mjs.map +1 -0
- package/build/repository/WorkflowTemplateRepository.d.mts +11 -0
- package/build/repository/WorkflowTemplateRepository.d.mts.map +1 -0
- package/build/repository/WorkflowTemplateRepository.mjs +43 -0
- package/build/repository/WorkflowTemplateRepository.mjs.map +1 -0
- package/build/services/WorkflowService.d.mts +107 -0
- package/build/services/WorkflowService.d.mts.map +1 -0
- package/build/services/WorkflowService.mjs +582 -0
- package/build/services/WorkflowService.mjs.map +1 -0
- package/build/ui/UiFilter.mjs +85 -0
- package/build/ui/UiFilter.mjs.map +1 -0
- package/package.json +27 -33
- package/build/WorkflowEvents.d.ts +0 -35
- package/build/WorkflowEvents.js +0 -10
- package/build/WorkflowEvents.js.map +0 -1
- package/build/WorkflowModule.d.ts +0 -13
- package/build/WorkflowModule.js +0 -647
- package/build/WorkflowModule.js.map +0 -1
- package/build/WorkflowModuleConfig.d.ts +0 -35
- package/build/WorkflowModuleConfig.js +0 -19
- package/build/WorkflowModuleConfig.js.map +0 -1
- package/build/actions/ActionRegistry.d.ts +0 -59
- package/build/actions/ActionRegistry.js +0 -367
- package/build/actions/ActionRegistry.js.map +0 -1
- package/build/api/WorkflowApi.d.ts +0 -94
- package/build/api/WorkflowApi.js +0 -241
- package/build/api/WorkflowApi.js.map +0 -1
- package/build/engine/AttributePlanner.d.ts +0 -7
- package/build/engine/AttributePlanner.js +0 -81
- package/build/engine/AttributePlanner.js.map +0 -1
- package/build/engine/GuardEvaluator.d.ts +0 -11
- package/build/engine/GuardEvaluator.js +0 -40
- package/build/engine/GuardEvaluator.js.map +0 -1
- package/build/index.d.ts +0 -45
- package/build/index.js +0 -69
- package/build/index.js.map +0 -1
- package/build/model/TemplateValidation.d.ts +0 -3
- package/build/model/TemplateValidation.js +0 -231
- package/build/model/TemplateValidation.js.map +0 -1
- package/build/model/types.d.ts +0 -116
- package/build/model/types.js +0 -15
- package/build/model/types.js.map +0 -1
- package/build/protocol/WorkflowMessageTypes.d.ts +0 -15
- package/build/protocol/WorkflowMessageTypes.js +0 -22
- package/build/protocol/WorkflowMessageTypes.js.map +0 -1
- package/build/protocol/handlers/AdvanceHandler.d.ts +0 -12
- package/build/protocol/handlers/AdvanceHandler.js +0 -149
- package/build/protocol/handlers/AdvanceHandler.js.map +0 -1
- package/build/protocol/handlers/CancelHandler.d.ts +0 -12
- package/build/protocol/handlers/CancelHandler.js +0 -124
- package/build/protocol/handlers/CancelHandler.js.map +0 -1
- package/build/protocol/handlers/CompleteHandler.d.ts +0 -12
- package/build/protocol/handlers/CompleteHandler.js +0 -125
- package/build/protocol/handlers/CompleteHandler.js.map +0 -1
- package/build/protocol/handlers/DiscoverHandler.d.ts +0 -11
- package/build/protocol/handlers/DiscoverHandler.js +0 -71
- package/build/protocol/handlers/DiscoverHandler.js.map +0 -1
- package/build/protocol/handlers/FetchTemplateHandler.d.ts +0 -12
- package/build/protocol/handlers/FetchTemplateHandler.js +0 -71
- package/build/protocol/handlers/FetchTemplateHandler.js.map +0 -1
- package/build/protocol/handlers/PauseHandler.d.ts +0 -12
- package/build/protocol/handlers/PauseHandler.js +0 -124
- package/build/protocol/handlers/PauseHandler.js.map +0 -1
- package/build/protocol/handlers/ProblemReportHandler.d.ts +0 -6
- package/build/protocol/handlers/ProblemReportHandler.js +0 -28
- package/build/protocol/handlers/ProblemReportHandler.js.map +0 -1
- package/build/protocol/handlers/PublishTemplateHandler.d.ts +0 -11
- package/build/protocol/handlers/PublishTemplateHandler.js +0 -53
- package/build/protocol/handlers/PublishTemplateHandler.js.map +0 -1
- package/build/protocol/handlers/ResumeHandler.d.ts +0 -12
- package/build/protocol/handlers/ResumeHandler.js +0 -124
- package/build/protocol/handlers/ResumeHandler.js.map +0 -1
- package/build/protocol/handlers/StartHandler.d.ts +0 -12
- package/build/protocol/handlers/StartHandler.js +0 -274
- package/build/protocol/handlers/StartHandler.js.map +0 -1
- package/build/protocol/handlers/StatusHandler.d.ts +0 -12
- package/build/protocol/handlers/StatusHandler.js +0 -202
- package/build/protocol/handlers/StatusHandler.js.map +0 -1
- package/build/protocol/handlers/TemplateHandler.d.ts +0 -9
- package/build/protocol/handlers/TemplateHandler.js +0 -83
- package/build/protocol/handlers/TemplateHandler.js.map +0 -1
- package/build/protocol/messages/AdvanceMessage.d.ts +0 -16
- package/build/protocol/messages/AdvanceMessage.js +0 -33
- package/build/protocol/messages/AdvanceMessage.js.map +0 -1
- package/build/protocol/messages/CancelMessage.d.ts +0 -14
- package/build/protocol/messages/CancelMessage.js +0 -33
- package/build/protocol/messages/CancelMessage.js.map +0 -1
- package/build/protocol/messages/CompleteMessage.d.ts +0 -14
- package/build/protocol/messages/CompleteMessage.js +0 -33
- package/build/protocol/messages/CompleteMessage.js.map +0 -1
- package/build/protocol/messages/DiscoverMessage.d.ts +0 -23
- package/build/protocol/messages/DiscoverMessage.js +0 -33
- package/build/protocol/messages/DiscoverMessage.js.map +0 -1
- package/build/protocol/messages/FetchTemplateMessage.d.ts +0 -15
- package/build/protocol/messages/FetchTemplateMessage.js +0 -33
- package/build/protocol/messages/FetchTemplateMessage.js.map +0 -1
- package/build/protocol/messages/PauseMessage.d.ts +0 -14
- package/build/protocol/messages/PauseMessage.js +0 -33
- package/build/protocol/messages/PauseMessage.js.map +0 -1
- package/build/protocol/messages/ProblemReportMessage.d.ts +0 -15
- package/build/protocol/messages/ProblemReportMessage.js +0 -33
- package/build/protocol/messages/ProblemReportMessage.js.map +0 -1
- package/build/protocol/messages/PublishTemplateMessage.d.ts +0 -17
- package/build/protocol/messages/PublishTemplateMessage.js +0 -31
- package/build/protocol/messages/PublishTemplateMessage.js.map +0 -1
- package/build/protocol/messages/ResumeMessage.d.ts +0 -14
- package/build/protocol/messages/ResumeMessage.js +0 -33
- package/build/protocol/messages/ResumeMessage.js.map +0 -1
- package/build/protocol/messages/StartMessage.d.ts +0 -21
- package/build/protocol/messages/StartMessage.js +0 -33
- package/build/protocol/messages/StartMessage.js.map +0 -1
- package/build/protocol/messages/StatusMessage.d.ts +0 -29
- package/build/protocol/messages/StatusMessage.js +0 -33
- package/build/protocol/messages/StatusMessage.js.map +0 -1
- package/build/protocol/messages/StatusRequestMessage.d.ts +0 -23
- package/build/protocol/messages/StatusRequestMessage.js +0 -33
- package/build/protocol/messages/StatusRequestMessage.js.map +0 -1
- package/build/protocol/messages/TemplateMessage.d.ts +0 -14
- package/build/protocol/messages/TemplateMessage.js +0 -33
- package/build/protocol/messages/TemplateMessage.js.map +0 -1
- package/build/protocol/messages/WorkflowsMessage.d.ts +0 -22
- package/build/protocol/messages/WorkflowsMessage.js +0 -33
- package/build/protocol/messages/WorkflowsMessage.js.map +0 -1
- package/build/queue/CommandQueue.d.ts +0 -18
- package/build/queue/CommandQueue.js +0 -8
- package/build/queue/CommandQueue.js.map +0 -1
- package/build/queue/PersistentCommandQueue.d.ts +0 -51
- package/build/queue/PersistentCommandQueue.js +0 -348
- package/build/queue/PersistentCommandQueue.js.map +0 -1
- package/build/repository/WorkflowCommandRecord.d.ts +0 -46
- package/build/repository/WorkflowCommandRecord.js +0 -52
- package/build/repository/WorkflowCommandRecord.js.map +0 -1
- package/build/repository/WorkflowCommandRepository.d.ts +0 -55
- package/build/repository/WorkflowCommandRepository.js +0 -149
- package/build/repository/WorkflowCommandRepository.js.map +0 -1
- package/build/repository/WorkflowInstanceRecord.d.ts +0 -61
- package/build/repository/WorkflowInstanceRecord.js +0 -43
- package/build/repository/WorkflowInstanceRecord.js.map +0 -1
- package/build/repository/WorkflowInstanceRepository.d.ts +0 -10
- package/build/repository/WorkflowInstanceRepository.js +0 -52
- package/build/repository/WorkflowInstanceRepository.js.map +0 -1
- package/build/repository/WorkflowTemplateRecord.d.ts +0 -23
- package/build/repository/WorkflowTemplateRecord.js +0 -28
- package/build/repository/WorkflowTemplateRecord.js.map +0 -1
- package/build/repository/WorkflowTemplateRepository.d.ts +0 -6
- package/build/repository/WorkflowTemplateRepository.js +0 -56
- package/build/repository/WorkflowTemplateRepository.js.map +0 -1
- package/build/services/WorkflowService.d.ts +0 -102
- package/build/services/WorkflowService.js +0 -704
- package/build/services/WorkflowService.js.map +0 -1
- package/build/ui/UiFilter.d.ts +0 -5
- package/build/ui/UiFilter.js +0 -104
- package/build/ui/UiFilter.js.map +0 -1
- package/build/ui/UiTypes.d.ts +0 -28
- package/build/ui/UiTypes.js +0 -3
- package/build/ui/UiTypes.js.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PauseMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class PauseMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = PauseMessage.type.messageTypeUri;
|
|
18
|
-
this.type = PauseMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.PauseMessage = PauseMessage;
|
|
28
|
-
PauseMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/pause');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(PauseMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], PauseMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=PauseMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PauseMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/PauseMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAmF;AAEnF,MAAa,YAAa,SAAQ,mBAAY;IAQ5C,YAAmB,OAAoE;QACrF,KAAK,EAAE,CAAA;QALF,SAAI,GAAG,YAAY,CAAC,IAAI,CAAC,cAAc,CAAA;QAM5C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,cAAc,CAAA;QAC5C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAhBH,oCAiBC;AAhBwB,iBAAI,GAAG,IAAA,uBAAgB,EAAC,wCAAwC,CAAC,AAA7D,CAA6D;AAGjF;IADN,IAAA,yBAAkB,EAAC,YAAY,CAAC,IAAI,CAAC;;0CACQ"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
2
|
-
export declare class ProblemReportMessage extends AgentMessage {
|
|
3
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
4
|
-
type: string;
|
|
5
|
-
body: {
|
|
6
|
-
code: string;
|
|
7
|
-
comment?: string;
|
|
8
|
-
args?: Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
constructor(options?: {
|
|
11
|
-
id?: string;
|
|
12
|
-
body: ProblemReportMessage['body'];
|
|
13
|
-
thid?: string;
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ProblemReportMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class ProblemReportMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = ProblemReportMessage.type.messageTypeUri;
|
|
18
|
-
this.type = ProblemReportMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ProblemReportMessage = ProblemReportMessage;
|
|
28
|
-
ProblemReportMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/problem-report');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(ProblemReportMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], ProblemReportMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=ProblemReportMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProblemReportMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/ProblemReportMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAmF;AAEnF,MAAa,oBAAqB,SAAQ,mBAAY;IAQpD,YAAmB,OAA4E;QAC7F,KAAK,EAAE,CAAA;QALF,SAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAA;QAMpD,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAA;QACpD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAhBH,oDAiBC;AAhBwB,yBAAI,GAAG,IAAA,uBAAgB,EAAC,iDAAiD,CAAC,AAAtE,CAAsE;AAG1F;IADN,IAAA,yBAAkB,EAAC,oBAAoB,CAAC,IAAI,CAAC;;kDACQ"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { WorkflowTemplate } from '../../model/types';
|
|
2
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
3
|
-
export declare class PublishTemplateMessage extends AgentMessage {
|
|
4
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
5
|
-
type: string;
|
|
6
|
-
body: {
|
|
7
|
-
template: WorkflowTemplate;
|
|
8
|
-
mode?: 'upsert';
|
|
9
|
-
};
|
|
10
|
-
constructor(options?: {
|
|
11
|
-
id?: string;
|
|
12
|
-
body: {
|
|
13
|
-
template: WorkflowTemplate;
|
|
14
|
-
mode?: 'upsert';
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PublishTemplateMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class PublishTemplateMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = PublishTemplateMessage.type.messageTypeUri;
|
|
18
|
-
this.type = PublishTemplateMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.PublishTemplateMessage = PublishTemplateMessage;
|
|
26
|
-
PublishTemplateMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/publish-template');
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, core_1.IsValidMessageType)(PublishTemplateMessage.type),
|
|
29
|
-
__metadata("design:type", Object)
|
|
30
|
-
], PublishTemplateMessage.prototype, "type", void 0);
|
|
31
|
-
//# sourceMappingURL=PublishTemplateMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublishTemplateMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/PublishTemplateMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAmF;AAEnF,MAAa,sBAAuB,SAAQ,mBAAY;IAQtD,YAAmB,OAAgF;QACjG,KAAK,EAAE,CAAA;QALF,SAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC,cAAc,CAAA;QAMtD,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC,cAAc,CAAA;QACtD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;QAC1B,CAAC;IACH,CAAC;;AAfH,wDAgBC;AAfwB,2BAAI,GAAG,IAAA,uBAAgB,EAAC,mDAAmD,CAAC,AAAxE,CAAwE;AAG5F;IADN,IAAA,yBAAkB,EAAC,sBAAsB,CAAC,IAAI,CAAC;;oDACQ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
2
|
-
export declare class ResumeMessage extends AgentMessage {
|
|
3
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
4
|
-
type: string;
|
|
5
|
-
body: {
|
|
6
|
-
instance_id: string;
|
|
7
|
-
reason?: string;
|
|
8
|
-
};
|
|
9
|
-
constructor(options?: {
|
|
10
|
-
id?: string;
|
|
11
|
-
body: ResumeMessage['body'];
|
|
12
|
-
thid?: string;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResumeMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class ResumeMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = ResumeMessage.type.messageTypeUri;
|
|
18
|
-
this.type = ResumeMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ResumeMessage = ResumeMessage;
|
|
28
|
-
ResumeMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/resume');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(ResumeMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], ResumeMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=ResumeMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResumeMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/ResumeMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAmF;AAEnF,MAAa,aAAc,SAAQ,mBAAY;IAQ7C,YAAmB,OAAqE;QACtF,KAAK,EAAE,CAAA;QALF,SAAI,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAA;QAM7C,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAA;QAC7C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAhBH,sCAiBC;AAhBwB,kBAAI,GAAG,IAAA,uBAAgB,EAAC,yCAAyC,CAAC,AAA9D,CAA8D;AAGlF;IADN,IAAA,yBAAkB,EAAC,aAAa,CAAC,IAAI,CAAC;;2CACQ"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Participants } from '../../model/types';
|
|
2
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
3
|
-
export declare class StartMessage extends AgentMessage {
|
|
4
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
5
|
-
type: string;
|
|
6
|
-
body: {
|
|
7
|
-
template_id: string;
|
|
8
|
-
template_version?: string;
|
|
9
|
-
instance_id?: string;
|
|
10
|
-
connection_id?: string;
|
|
11
|
-
participants?: Participants;
|
|
12
|
-
context?: Record<string, unknown>;
|
|
13
|
-
allow_discover?: boolean;
|
|
14
|
-
template_hash?: string;
|
|
15
|
-
};
|
|
16
|
-
constructor(options?: {
|
|
17
|
-
id?: string;
|
|
18
|
-
body: StartMessage['body'];
|
|
19
|
-
thid?: string;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StartMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class StartMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = StartMessage.type.messageTypeUri;
|
|
18
|
-
this.type = StartMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.StartMessage = StartMessage;
|
|
28
|
-
StartMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/start');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(StartMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], StartMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=StartMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StartMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/StartMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAmF;AAEnF,MAAa,YAAa,SAAQ,mBAAY;IAiB5C,YAAmB,OAAoE;QACrF,KAAK,EAAE,CAAA;QAdF,SAAI,GAAG,YAAY,CAAC,IAAI,CAAC,cAAc,CAAA;QAe5C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,cAAc,CAAA;QAC5C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAzBH,oCA0BC;AAzBwB,iBAAI,GAAG,IAAA,uBAAgB,EAAC,wCAAwC,CAAC,AAA7D,CAA6D;AAGjF;IADN,IAAA,yBAAkB,EAAC,YAAY,CAAC,IAAI,CAAC;;0CACQ"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { UiItem } from '../../model/types';
|
|
2
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
3
|
-
export declare class StatusMessage extends AgentMessage {
|
|
4
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
5
|
-
type: string;
|
|
6
|
-
body: {
|
|
7
|
-
instance_id: string;
|
|
8
|
-
state: string;
|
|
9
|
-
section?: string;
|
|
10
|
-
allowed_events: string[];
|
|
11
|
-
action_menu: Array<{
|
|
12
|
-
label?: string;
|
|
13
|
-
event: string;
|
|
14
|
-
}>;
|
|
15
|
-
artifacts: Record<string, unknown>;
|
|
16
|
-
ui?: UiItem[];
|
|
17
|
-
ui_profile?: string;
|
|
18
|
-
assets?: Record<string, {
|
|
19
|
-
mediaType: string;
|
|
20
|
-
uri?: string;
|
|
21
|
-
attachmentId?: string;
|
|
22
|
-
}>;
|
|
23
|
-
};
|
|
24
|
-
constructor(options?: {
|
|
25
|
-
id?: string;
|
|
26
|
-
body: StatusMessage['body'];
|
|
27
|
-
thid?: string;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StatusMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class StatusMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = StatusMessage.type.messageTypeUri;
|
|
18
|
-
this.type = StatusMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.StatusMessage = StatusMessage;
|
|
28
|
-
StatusMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/status');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(StatusMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], StatusMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=StatusMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/StatusMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAmF;AAEnF,MAAa,aAAc,SAAQ,mBAAY;IAkB7C,YAAmB,OAAqE;QACtF,KAAK,EAAE,CAAA;QAfF,SAAI,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAA;QAgB7C,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAA;QAC7C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AA1BH,sCA2BC;AA1BwB,kBAAI,GAAG,IAAA,uBAAgB,EAAC,yCAAyC,CAAC,AAA9D,CAA8D;AAGlF;IADN,IAAA,yBAAkB,EAAC,aAAa,CAAC,IAAI,CAAC;;2CACQ"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
2
|
-
export declare class StatusRequestMessage extends AgentMessage {
|
|
3
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
4
|
-
type: string;
|
|
5
|
-
body: {
|
|
6
|
-
instance_id: string;
|
|
7
|
-
include_actions?: boolean;
|
|
8
|
-
include_ui?: boolean;
|
|
9
|
-
ui_profile?: string;
|
|
10
|
-
viewer?: {
|
|
11
|
-
role?: string;
|
|
12
|
-
connection_id?: string;
|
|
13
|
-
did?: string;
|
|
14
|
-
participantKey?: string;
|
|
15
|
-
};
|
|
16
|
-
capabilities?: string[];
|
|
17
|
-
};
|
|
18
|
-
constructor(options?: {
|
|
19
|
-
id?: string;
|
|
20
|
-
body: StatusRequestMessage['body'];
|
|
21
|
-
thid?: string;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StatusRequestMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class StatusRequestMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = StatusRequestMessage.type.messageTypeUri;
|
|
18
|
-
this.type = StatusRequestMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.StatusRequestMessage = StatusRequestMessage;
|
|
28
|
-
StatusRequestMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/status');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(StatusRequestMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], StatusRequestMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=StatusRequestMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusRequestMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/StatusRequestMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAmF;AAEnF,MAAa,oBAAqB,SAAQ,mBAAY;IAepD,YAAmB,OAA4E;QAC7F,KAAK,EAAE,CAAA;QAZF,SAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAA;QAapD,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAA;QACpD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAvBH,oDAwBC;AAvBwB,yBAAI,GAAG,IAAA,uBAAgB,EAAC,yCAAyC,CAAC,AAA9D,CAA8D;AAGlF;IADN,IAAA,yBAAkB,EAAC,oBAAoB,CAAC,IAAI,CAAC;;kDACQ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WorkflowTemplate } from '../../model/types';
|
|
2
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
3
|
-
export declare class TemplateMessage extends AgentMessage {
|
|
4
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
5
|
-
type: string;
|
|
6
|
-
body: {
|
|
7
|
-
template: WorkflowTemplate;
|
|
8
|
-
};
|
|
9
|
-
constructor(options?: {
|
|
10
|
-
id?: string;
|
|
11
|
-
body: TemplateMessage['body'];
|
|
12
|
-
thid?: string;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TemplateMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class TemplateMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = TemplateMessage.type.messageTypeUri;
|
|
18
|
-
this.type = TemplateMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.TemplateMessage = TemplateMessage;
|
|
28
|
-
TemplateMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/template');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(TemplateMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], TemplateMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=TemplateMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/TemplateMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAmF;AAEnF,MAAa,eAAgB,SAAQ,mBAAY;IAQ/C,YAAmB,OAAuE;QACxF,KAAK,EAAE,CAAA;QALF,SAAI,GAAG,eAAe,CAAC,IAAI,CAAC,cAAc,CAAA;QAM/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,cAAc,CAAA;QAC/C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAhBH,0CAiBC;AAhBwB,oBAAI,GAAG,IAAA,uBAAgB,EAAC,2CAA2C,CAAC,AAAhE,CAAgE;AAGpF;IADN,IAAA,yBAAkB,EAAC,eAAe,CAAC,IAAI,CAAC;;6CACQ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AgentMessage } from '@credo-ts/core';
|
|
2
|
-
export declare class WorkflowsMessage extends AgentMessage {
|
|
3
|
-
static readonly type: import("@credo-ts/core").ParsedMessageType;
|
|
4
|
-
type: string;
|
|
5
|
-
body: {
|
|
6
|
-
workflows: Array<{
|
|
7
|
-
template_id: string;
|
|
8
|
-
versions: string[];
|
|
9
|
-
title?: string;
|
|
10
|
-
hash?: string;
|
|
11
|
-
}>;
|
|
12
|
-
paging?: {
|
|
13
|
-
total?: number;
|
|
14
|
-
next_offset?: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
constructor(options?: {
|
|
18
|
-
id?: string;
|
|
19
|
-
body: WorkflowsMessage['body'];
|
|
20
|
-
thid?: string;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.WorkflowsMessage = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
class WorkflowsMessage extends core_1.AgentMessage {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super();
|
|
17
|
-
this.type = WorkflowsMessage.type.messageTypeUri;
|
|
18
|
-
this.type = WorkflowsMessage.type.messageTypeUri;
|
|
19
|
-
if (options) {
|
|
20
|
-
this.id = options.id || this.generateId();
|
|
21
|
-
this.body = options.body;
|
|
22
|
-
if (options.thid)
|
|
23
|
-
this.setThread({ threadId: options.thid });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.WorkflowsMessage = WorkflowsMessage;
|
|
28
|
-
WorkflowsMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/workflow/1.0/workflows');
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.IsValidMessageType)(WorkflowsMessage.type),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], WorkflowsMessage.prototype, "type", void 0);
|
|
33
|
-
//# sourceMappingURL=WorkflowsMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowsMessage.js","sourceRoot":"","sources":["../../../src/protocol/messages/WorkflowsMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAmF;AAEnF,MAAa,gBAAiB,SAAQ,mBAAY;IAWhD,YAAmB,OAAwE;QACzF,KAAK,EAAE,CAAA;QARF,SAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAA;QAShD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAA;QAChD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;YACxB,IAAI,OAAO,CAAC,IAAI;gBAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;;AAnBH,4CAoBC;AAnBwB,qBAAI,GAAG,IAAA,uBAAgB,EAAC,4CAA4C,CAAC,AAAjE,CAAiE;AAGrF;IADN,IAAA,yBAAkB,EAAC,gBAAgB,CAAC,IAAI,CAAC;;8CACQ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { AgentContext } from '@credo-ts/core';
|
|
2
|
-
export type WorkflowCommandJob = {
|
|
3
|
-
cmd: 'start' | 'advance' | 'pause' | 'resume' | 'cancel' | 'complete';
|
|
4
|
-
thid: string;
|
|
5
|
-
connectionId?: string;
|
|
6
|
-
idempotency_key?: string;
|
|
7
|
-
payload: Record<string, unknown>;
|
|
8
|
-
contextCorrelationId: string;
|
|
9
|
-
};
|
|
10
|
-
export interface CommandQueue {
|
|
11
|
-
enqueue(agentContext: AgentContext, job: WorkflowCommandJob): Promise<void>;
|
|
12
|
-
startWorker(onJob: (job: WorkflowCommandJob) => Promise<void>): Promise<void>;
|
|
13
|
-
stop(): Promise<void>;
|
|
14
|
-
isReady(): Promise<boolean>;
|
|
15
|
-
triggerPoll?(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class CommandQueueService {
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommandQueueService = void 0;
|
|
4
|
-
// DI token for the queue instance
|
|
5
|
-
class CommandQueueService {
|
|
6
|
-
}
|
|
7
|
-
exports.CommandQueueService = CommandQueueService;
|
|
8
|
-
//# sourceMappingURL=CommandQueue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandQueue.js","sourceRoot":"","sources":["../../src/queue/CommandQueue.ts"],"names":[],"mappings":";;;AAoBA,kCAAkC;AAClC,MAAa,mBAAmB;CAAG;AAAnC,kDAAmC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { AgentContext, AgentContextProvider } from '@credo-ts/core';
|
|
2
|
-
import type { CommandQueue, WorkflowCommandJob } from './CommandQueue';
|
|
3
|
-
import { WorkflowCommandRepository } from '../repository/WorkflowCommandRepository';
|
|
4
|
-
export interface PersistentCommandQueueOptions {
|
|
5
|
-
pollIntervalMs?: number;
|
|
6
|
-
concurrency?: number;
|
|
7
|
-
processingTimeoutMs?: number;
|
|
8
|
-
staleCheckIntervalMs?: number;
|
|
9
|
-
cleanupIntervalMs?: number;
|
|
10
|
-
commandRetentionMs?: number;
|
|
11
|
-
failedRetentionMs?: number;
|
|
12
|
-
maxAttempts?: number;
|
|
13
|
-
}
|
|
14
|
-
export declare class PersistentCommandQueue implements CommandQueue {
|
|
15
|
-
private readonly pollIntervalMs;
|
|
16
|
-
private readonly concurrency;
|
|
17
|
-
private readonly processingTimeoutMs;
|
|
18
|
-
private readonly staleCheckIntervalMs;
|
|
19
|
-
private readonly cleanupIntervalMs;
|
|
20
|
-
private readonly commandRetentionMs;
|
|
21
|
-
private readonly failedRetentionMs;
|
|
22
|
-
private readonly maxAttempts;
|
|
23
|
-
private running;
|
|
24
|
-
private activeCount;
|
|
25
|
-
private onJobHandler?;
|
|
26
|
-
private readonly repository;
|
|
27
|
-
private readonly contextProvider;
|
|
28
|
-
private readonly rootContext;
|
|
29
|
-
private readonly logger;
|
|
30
|
-
private readonly pendingSleeps;
|
|
31
|
-
constructor(repository: WorkflowCommandRepository, contextProvider: AgentContextProvider, rootContext: AgentContext, options?: PersistentCommandQueueOptions);
|
|
32
|
-
isReady(): Promise<boolean>;
|
|
33
|
-
enqueue(agentContext: AgentContext, job: WorkflowCommandJob): Promise<void>;
|
|
34
|
-
triggerPoll(): void;
|
|
35
|
-
startWorker(onJob: (job: WorkflowCommandJob) => Promise<void>): Promise<void>;
|
|
36
|
-
stop(): Promise<void>;
|
|
37
|
-
private pollLoop;
|
|
38
|
-
private poll;
|
|
39
|
-
private processCommand;
|
|
40
|
-
private staleCheckLoop;
|
|
41
|
-
private cleanupLoop;
|
|
42
|
-
private resolveContext;
|
|
43
|
-
private sleep;
|
|
44
|
-
getMetrics(): Promise<{
|
|
45
|
-
pending: number;
|
|
46
|
-
processing: number;
|
|
47
|
-
completed: number;
|
|
48
|
-
failed: number;
|
|
49
|
-
active: number;
|
|
50
|
-
}>;
|
|
51
|
-
}
|