@verana-labs/vs-agent-model 2.0.0-dev.63 → 2.0.0-dev.65
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.
|
@@ -5,6 +5,9 @@ export interface InvitationMessageOptions extends BaseMessageOptions {
|
|
|
5
5
|
imageUrl?: string;
|
|
6
6
|
did?: string;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `POST /v2/didcomm/invitations` to send an invitation.
|
|
10
|
+
*/
|
|
8
11
|
export declare class InvitationMessage extends BaseMessage {
|
|
9
12
|
constructor(options: InvitationMessageOptions);
|
|
10
13
|
readonly type = MessageType.InvitationMessage;
|
|
@@ -13,6 +13,9 @@ exports.InvitationMessage = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const BaseMessage_1 = require("./BaseMessage");
|
|
15
15
|
const MessageType_1 = require("./MessageType");
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `POST /v2/didcomm/invitations` to send an invitation.
|
|
18
|
+
*/
|
|
16
19
|
class InvitationMessage extends BaseMessage_1.BaseMessage {
|
|
17
20
|
constructor(options) {
|
|
18
21
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationMessage.js","sourceRoot":"","sources":["../../src/messages/InvitationMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsD;AAEtD,+CAA+D;AAC/D,+CAA2C;AAQ3C,MAAa,iBAAkB,SAAQ,yBAAW;IAChD,YAAmB,OAAiC;;QAClD,KAAK,EAAE,CAAA;QAaO,SAAI,GAAG,iBAAiB,CAAC,IAAI,CAAA;QAX3C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,MAAA,OAAO,CAAC,EAAE,mCAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;YAChC,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CAAC,KAAK,CAAA;YAC1B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;YAChC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACxB,CAAC;IACH,CAAC;;AAbH,8CA6BC;AAbwB,sBAAI,GAAG,yBAAW,CAAC,iBAAiB,AAAhC,CAAgC;AAIpD;IAFN,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACQ;AAId;IAFN,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACW;AAIjB;IAFN,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACM"}
|
package/build/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonObject } from '@credo-ts/core';
|
|
2
|
-
import { DidCommHandshakeProtocol, DidCommProofState, OutOfBandDidCommService, ReceiveOutOfBandInvitationConfig } from '@credo-ts/didcomm';
|
|
2
|
+
import { DidCommDidExchangeRole, DidCommDidExchangeState, DidCommHandshakeProtocol, DidCommProofState, DidCommVersion, OutOfBandDidCommService, ReceiveOutOfBandInvitationConfig } from '@credo-ts/didcomm';
|
|
3
3
|
import { Claim, ClaimOptions } from './messages/CredentialIssuanceMessage';
|
|
4
4
|
export interface VsAgentInfo {
|
|
5
5
|
label: string;
|
|
@@ -85,6 +85,38 @@ export interface CreatePresentationRequestResult {
|
|
|
85
85
|
export interface CreateInvitationResult {
|
|
86
86
|
url: string;
|
|
87
87
|
}
|
|
88
|
+
export interface SendInvitationOptions {
|
|
89
|
+
connectionId: string;
|
|
90
|
+
did?: string;
|
|
91
|
+
label?: string;
|
|
92
|
+
imageUrl?: string;
|
|
93
|
+
goal?: string;
|
|
94
|
+
goalCode?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface SendInvitationResult {
|
|
97
|
+
id: string;
|
|
98
|
+
outOfBandId?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface ConnectionRecord {
|
|
101
|
+
id: string;
|
|
102
|
+
state: DidCommDidExchangeState;
|
|
103
|
+
role: DidCommDidExchangeRole;
|
|
104
|
+
did?: string;
|
|
105
|
+
theirDid?: string;
|
|
106
|
+
theirLabel?: string;
|
|
107
|
+
alias?: string;
|
|
108
|
+
threadId?: string;
|
|
109
|
+
imageUrl?: string;
|
|
110
|
+
outOfBandId: string | null;
|
|
111
|
+
parentConnectionId: string | null;
|
|
112
|
+
invitationDid?: string;
|
|
113
|
+
didcommVersion?: DidCommVersion;
|
|
114
|
+
mediatorId?: string;
|
|
115
|
+
previousDids?: string[];
|
|
116
|
+
previousTheirDids?: string[];
|
|
117
|
+
createdAt: Date;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
}
|
|
88
120
|
export interface PresentationData {
|
|
89
121
|
requestedCredentials: RequestedCredential[];
|
|
90
122
|
claims: Claim[];
|