Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions build/libs/generated/ssi/client/enums.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export declare const protobufPackage = "hypersign.ssi.client";
/** The messages defined here are meant only meant for TS client. */
export declare enum VerificationMethodRelationships {
authentication = "authentication",
assertionMethod = "assertionMethod",
keyAgreement = "keyAgreement",
capabilityInvocation = "capabilityInvocation",
capabilityDelegation = "capabilityDelegation"
}
export declare function verificationMethodRelationshipsFromJSON(object: any): VerificationMethodRelationships;
export declare function verificationMethodRelationshipsToJSON(object: VerificationMethodRelationships): string;
export declare function verificationMethodRelationshipsToNumber(object: VerificationMethodRelationships): number;
export declare enum VerificationMethodTypes {
Ed25519VerificationKey2020 = "Ed25519VerificationKey2020",
EcdsaSecp256k1VerificationKey2019 = "EcdsaSecp256k1VerificationKey2019",
EcdsaSecp256k1RecoveryMethod2020 = "EcdsaSecp256k1RecoveryMethod2020",
X25519KeyAgreementKey2020 = "X25519KeyAgreementKey2020",
X25519KeyAgreementKeyEIP5630 = "X25519KeyAgreementKeyEIP5630",
Bls12381G2Key2020 = "Bls12381G2Key2020",
BabyJubJubVerificationKey2023 = "BabyJubJubVerificationKey2023"
}
export declare function verificationMethodTypesFromJSON(object: any): VerificationMethodTypes;
export declare function verificationMethodTypesToJSON(object: VerificationMethodTypes): string;
export declare function verificationMethodTypesToNumber(object: VerificationMethodTypes): number;
export declare enum ProofTypes {
Ed25519Signature2020 = "Ed25519Signature2020",
EcdsaSecp256k1Signature2019 = "EcdsaSecp256k1Signature2019",
EcdsaSecp256k1RecoverySignature2020 = "EcdsaSecp256k1RecoverySignature2020",
BabyJubJubSignature2023 = "BabyJubJubSignature2023",
BbsBlsSignature2020 = "BbsBlsSignature2020"
}
export declare function proofTypesFromJSON(object: any): ProofTypes;
export declare function proofTypesToJSON(object: ProofTypes): string;
export declare function proofTypesToNumber(object: ProofTypes): number;
//# sourceMappingURL=enums.d.ts.map
1 change: 1 addition & 0 deletions build/libs/generated/ssi/client/enums.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

214 changes: 214 additions & 0 deletions build/libs/generated/ssi/client/enums.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
"use strict";
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.proofTypesToNumber = exports.proofTypesToJSON = exports.proofTypesFromJSON = exports.ProofTypes = exports.verificationMethodTypesToNumber = exports.verificationMethodTypesToJSON = exports.verificationMethodTypesFromJSON = exports.VerificationMethodTypes = exports.verificationMethodRelationshipsToNumber = exports.verificationMethodRelationshipsToJSON = exports.verificationMethodRelationshipsFromJSON = exports.VerificationMethodRelationships = exports.protobufPackage = void 0;
exports.protobufPackage = "hypersign.ssi.client";
/** The messages defined here are meant only meant for TS client. */
var VerificationMethodRelationships;
(function (VerificationMethodRelationships) {
VerificationMethodRelationships["authentication"] = "authentication";
VerificationMethodRelationships["assertionMethod"] = "assertionMethod";
VerificationMethodRelationships["keyAgreement"] = "keyAgreement";
VerificationMethodRelationships["capabilityInvocation"] = "capabilityInvocation";
VerificationMethodRelationships["capabilityDelegation"] = "capabilityDelegation";
})(VerificationMethodRelationships = exports.VerificationMethodRelationships || (exports.VerificationMethodRelationships = {}));
function verificationMethodRelationshipsFromJSON(object) {
switch (object) {
case 0:
case "authentication":
return VerificationMethodRelationships.authentication;
case 1:
case "assertionMethod":
return VerificationMethodRelationships.assertionMethod;
case 2:
case "keyAgreement":
return VerificationMethodRelationships.keyAgreement;
case 3:
case "capabilityInvocation":
return VerificationMethodRelationships.capabilityInvocation;
case 4:
case "capabilityDelegation":
return VerificationMethodRelationships.capabilityDelegation;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodRelationships");
}
}
exports.verificationMethodRelationshipsFromJSON = verificationMethodRelationshipsFromJSON;
function verificationMethodRelationshipsToJSON(object) {
switch (object) {
case VerificationMethodRelationships.authentication:
return "authentication";
case VerificationMethodRelationships.assertionMethod:
return "assertionMethod";
case VerificationMethodRelationships.keyAgreement:
return "keyAgreement";
case VerificationMethodRelationships.capabilityInvocation:
return "capabilityInvocation";
case VerificationMethodRelationships.capabilityDelegation:
return "capabilityDelegation";
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodRelationships");
}
}
exports.verificationMethodRelationshipsToJSON = verificationMethodRelationshipsToJSON;
function verificationMethodRelationshipsToNumber(object) {
switch (object) {
case VerificationMethodRelationships.authentication:
return 0;
case VerificationMethodRelationships.assertionMethod:
return 1;
case VerificationMethodRelationships.keyAgreement:
return 2;
case VerificationMethodRelationships.capabilityInvocation:
return 3;
case VerificationMethodRelationships.capabilityDelegation:
return 4;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodRelationships");
}
}
exports.verificationMethodRelationshipsToNumber = verificationMethodRelationshipsToNumber;
var VerificationMethodTypes;
(function (VerificationMethodTypes) {
VerificationMethodTypes["Ed25519VerificationKey2020"] = "Ed25519VerificationKey2020";
VerificationMethodTypes["EcdsaSecp256k1VerificationKey2019"] = "EcdsaSecp256k1VerificationKey2019";
VerificationMethodTypes["EcdsaSecp256k1RecoveryMethod2020"] = "EcdsaSecp256k1RecoveryMethod2020";
VerificationMethodTypes["X25519KeyAgreementKey2020"] = "X25519KeyAgreementKey2020";
VerificationMethodTypes["X25519KeyAgreementKeyEIP5630"] = "X25519KeyAgreementKeyEIP5630";
VerificationMethodTypes["Bls12381G2Key2020"] = "Bls12381G2Key2020";
VerificationMethodTypes["BabyJubJubVerificationKey2023"] = "BabyJubJubVerificationKey2023";
})(VerificationMethodTypes = exports.VerificationMethodTypes || (exports.VerificationMethodTypes = {}));
function verificationMethodTypesFromJSON(object) {
switch (object) {
case 0:
case "Ed25519VerificationKey2020":
return VerificationMethodTypes.Ed25519VerificationKey2020;
case 1:
case "EcdsaSecp256k1VerificationKey2019":
return VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019;
case 2:
case "EcdsaSecp256k1RecoveryMethod2020":
return VerificationMethodTypes.EcdsaSecp256k1RecoveryMethod2020;
case 3:
case "X25519KeyAgreementKey2020":
return VerificationMethodTypes.X25519KeyAgreementKey2020;
case 4:
case "X25519KeyAgreementKeyEIP5630":
return VerificationMethodTypes.X25519KeyAgreementKeyEIP5630;
case 5:
case "Bls12381G2Key2020":
return VerificationMethodTypes.Bls12381G2Key2020;
case 6:
case "BabyJubJubVerificationKey2023":
return VerificationMethodTypes.BabyJubJubVerificationKey2023;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodTypes");
}
}
exports.verificationMethodTypesFromJSON = verificationMethodTypesFromJSON;
function verificationMethodTypesToJSON(object) {
switch (object) {
case VerificationMethodTypes.Ed25519VerificationKey2020:
return "Ed25519VerificationKey2020";
case VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019:
return "EcdsaSecp256k1VerificationKey2019";
case VerificationMethodTypes.EcdsaSecp256k1RecoveryMethod2020:
return "EcdsaSecp256k1RecoveryMethod2020";
case VerificationMethodTypes.X25519KeyAgreementKey2020:
return "X25519KeyAgreementKey2020";
case VerificationMethodTypes.X25519KeyAgreementKeyEIP5630:
return "X25519KeyAgreementKeyEIP5630";
case VerificationMethodTypes.Bls12381G2Key2020:
return "Bls12381G2Key2020";
case VerificationMethodTypes.BabyJubJubVerificationKey2023:
return "BabyJubJubVerificationKey2023";
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodTypes");
}
}
exports.verificationMethodTypesToJSON = verificationMethodTypesToJSON;
function verificationMethodTypesToNumber(object) {
switch (object) {
case VerificationMethodTypes.Ed25519VerificationKey2020:
return 0;
case VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019:
return 1;
case VerificationMethodTypes.EcdsaSecp256k1RecoveryMethod2020:
return 2;
case VerificationMethodTypes.X25519KeyAgreementKey2020:
return 3;
case VerificationMethodTypes.X25519KeyAgreementKeyEIP5630:
return 4;
case VerificationMethodTypes.Bls12381G2Key2020:
return 5;
case VerificationMethodTypes.BabyJubJubVerificationKey2023:
return 6;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum VerificationMethodTypes");
}
}
exports.verificationMethodTypesToNumber = verificationMethodTypesToNumber;
var ProofTypes;
(function (ProofTypes) {
ProofTypes["Ed25519Signature2020"] = "Ed25519Signature2020";
ProofTypes["EcdsaSecp256k1Signature2019"] = "EcdsaSecp256k1Signature2019";
ProofTypes["EcdsaSecp256k1RecoverySignature2020"] = "EcdsaSecp256k1RecoverySignature2020";
ProofTypes["BabyJubJubSignature2023"] = "BabyJubJubSignature2023";
ProofTypes["BbsBlsSignature2020"] = "BbsBlsSignature2020";
})(ProofTypes = exports.ProofTypes || (exports.ProofTypes = {}));
function proofTypesFromJSON(object) {
switch (object) {
case 0:
case "Ed25519Signature2020":
return ProofTypes.Ed25519Signature2020;
case 1:
case "EcdsaSecp256k1Signature2019":
return ProofTypes.EcdsaSecp256k1Signature2019;
case 2:
case "EcdsaSecp256k1RecoverySignature2020":
return ProofTypes.EcdsaSecp256k1RecoverySignature2020;
case 3:
case "BabyJubJubSignature2023":
return ProofTypes.BabyJubJubSignature2023;
case 4:
case "BbsBlsSignature2020":
return ProofTypes.BbsBlsSignature2020;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum ProofTypes");
}
}
exports.proofTypesFromJSON = proofTypesFromJSON;
function proofTypesToJSON(object) {
switch (object) {
case ProofTypes.Ed25519Signature2020:
return "Ed25519Signature2020";
case ProofTypes.EcdsaSecp256k1Signature2019:
return "EcdsaSecp256k1Signature2019";
case ProofTypes.EcdsaSecp256k1RecoverySignature2020:
return "EcdsaSecp256k1RecoverySignature2020";
case ProofTypes.BabyJubJubSignature2023:
return "BabyJubJubSignature2023";
case ProofTypes.BbsBlsSignature2020:
return "BbsBlsSignature2020";
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum ProofTypes");
}
}
exports.proofTypesToJSON = proofTypesToJSON;
function proofTypesToNumber(object) {
switch (object) {
case ProofTypes.Ed25519Signature2020:
return 0;
case ProofTypes.EcdsaSecp256k1Signature2019:
return 1;
case ProofTypes.EcdsaSecp256k1RecoverySignature2020:
return 2;
case ProofTypes.BabyJubJubSignature2023:
return 3;
case ProofTypes.BbsBlsSignature2020:
return 4;
default:
throw new globalThis.Error("Unrecognized enum value " + object + " for enum ProofTypes");
}
}
exports.proofTypesToNumber = proofTypesToNumber;
19 changes: 0 additions & 19 deletions build/libs/generated/ssi/clientSpec.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion build/libs/generated/ssi/clientSpec.d.ts.map

This file was deleted.

79 changes: 0 additions & 79 deletions build/libs/generated/ssi/clientSpec.js

This file was deleted.

10 changes: 10 additions & 0 deletions build/libs/generated/ssi/client_spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export declare const protobufPackage = "hypersign.ssi.v1";
export declare enum ClientSpecType {
CLIENT_SPEC_TYPE_NONE = "CLIENT_SPEC_TYPE_NONE",
CLIENT_SPEC_TYPE_COSMOS_ADR036 = "CLIENT_SPEC_TYPE_COSMOS_ADR036",
CLIENT_SPEC_TYPE_ETH_PERSONAL_SIGN = "CLIENT_SPEC_TYPE_ETH_PERSONAL_SIGN"
}
export declare function clientSpecTypeFromJSON(object: any): ClientSpecType;
export declare function clientSpecTypeToJSON(object: ClientSpecType): string;
export declare function clientSpecTypeToNumber(object: ClientSpecType): number;
//# sourceMappingURL=client_spec.d.ts.map
1 change: 1 addition & 0 deletions build/libs/generated/ssi/client_spec.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading