-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
453 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* eslint-disable */ | ||
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; | ||
import { Observable } from "rxjs"; | ||
|
||
export const protobufPackage = "oid4vc"; | ||
|
||
export interface OfferConfig { | ||
credentials: string[]; | ||
} | ||
|
||
export interface Offer { | ||
uri: string; | ||
offer: string; | ||
} | ||
|
||
export const OID4VC_PACKAGE_NAME = "oid4vc"; | ||
|
||
export interface OID4VCIClient { | ||
createOffer(request: OfferConfig): Observable<Offer>; | ||
} | ||
|
||
export interface OID4VCIController { | ||
createOffer(request: OfferConfig): Promise<Offer> | Observable<Offer> | Offer; | ||
} | ||
|
||
export function OID4VCIControllerMethods() { | ||
return function (constructor: Function) { | ||
const grpcMethods: string[] = ["createOffer"]; | ||
for (const method of grpcMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcMethod("OID4VCI", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
const grpcStreamMethods: string[] = []; | ||
for (const method of grpcStreamMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcStreamMethod("OID4VCI", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
}; | ||
} | ||
|
||
export const O_ID4_VC_I_SERVICE_NAME = "OID4VCI"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* eslint-disable */ | ||
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; | ||
import { Observable } from "rxjs"; | ||
import { Any } from "../google/protobuf/any"; | ||
|
||
export const protobufPackage = "oid4vc"; | ||
|
||
export interface OID4VPRequestConfig { | ||
presentationDefinition: Any | undefined; | ||
nonce?: string | undefined; | ||
state?: string | undefined; | ||
} | ||
|
||
export interface OID4VPRequest { | ||
uri: string; | ||
request: string; | ||
} | ||
|
||
export const OID4VC_PACKAGE_NAME = "oid4vc"; | ||
|
||
export interface OID4VPClient { | ||
createRequest(request: OID4VPRequestConfig): Observable<OID4VPRequest>; | ||
} | ||
|
||
export interface OID4VPController { | ||
createRequest(request: OID4VPRequestConfig): Promise<OID4VPRequest> | Observable<OID4VPRequest> | OID4VPRequest; | ||
} | ||
|
||
export function OID4VPControllerMethods() { | ||
return function (constructor: Function) { | ||
const grpcMethods: string[] = ["createRequest"]; | ||
for (const method of grpcMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcMethod("OID4VP", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
const grpcStreamMethods: string[] = []; | ||
for (const method of grpcStreamMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcStreamMethod("OID4VP", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
}; | ||
} | ||
|
||
export const O_ID4_VP_SERVICE_NAME = "OID4VP"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.