Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@streetcred.id/service-clients

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streetcred.id/service-clients - npm Package Compare versions

Comparing version 1.1.1239 to 1.1.1424

267

dist/agencyServiceClient.d.ts

@@ -77,3 +77,3 @@ import * as msRest from "@azure/ms-rest-js";

*/
createConnection(callback: msRest.ServiceCallback<Models.IdContract>): void;
createConnection(callback: msRest.ServiceCallback<Models.ConnectionContract>): void;
/**

@@ -83,3 +83,3 @@ * @param options The optional parameters

*/
createConnection(options: Models.AgencyServiceClientCreateConnectionOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void;
createConnection(options: Models.AgencyServiceClientCreateConnectionOptionalParams, callback: msRest.ServiceCallback<Models.ConnectionContract>): void;
/**

@@ -149,3 +149,3 @@ * Creates the connections.

*/
createCredential(callback: msRest.ServiceCallback<Models.IdContract>): void;
createCredential(callback: msRest.ServiceCallback<Models.CredentialContract>): void;
/**

@@ -155,3 +155,3 @@ * @param options The optional parameters

*/
createCredential(options: Models.AgencyServiceClientCreateCredentialOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void;
createCredential(options: Models.AgencyServiceClientCreateCredentialOptionalParams, callback: msRest.ServiceCallback<Models.CredentialContract>): void;
/**

@@ -217,4 +217,4 @@ * Gets the credentials.

/**
* Gets the definitions.
* @summary Gets the definitions.
* List all credential definitions by this issuer.
* @summary List all credential definitions by this issuer.
* @param [options] The optional parameters

@@ -234,7 +234,4 @@ * @returns Promise<Models.ListCredentialDefinitionsResponse>

/**
* Create new credential definition for a given schema. If schema already exists on the ledger
* specify the 'schema_id' - 'name', 'version' and 'attr_names' will be ignored.
* If schema doesn't exist, you must specify 'name', 'version' and 'attr_names'
* - schema_id will be ignored and generated automatically.
* @summary Create new credential definition.
* Create new credential definition and schema with the given parameters.
* @summary Create new credential definition and schema with the given parameters.
* @param [options] The optional parameters

@@ -247,3 +244,3 @@ * @returns Promise<Models.CreateCredentialDefinitionResponse>

*/
createCredentialDefinition(callback: msRest.ServiceCallback<Models.IdContract>): void;
createCredentialDefinition(callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void;
/**

@@ -253,6 +250,6 @@ * @param options The optional parameters

*/
createCredentialDefinition(options: Models.AgencyServiceClientCreateCredentialDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void;
createCredentialDefinition(options: Models.AgencyServiceClientCreateCredentialDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void;
/**
* Gets the definitions.
* @summary Gets the definitions.
* Get the credential definition with the specified identifier.
* @summary Get the credential definition with the specified identifier.
* @param definitionId

@@ -275,4 +272,4 @@ * @param [options] The optional parameters

/**
* Gets the schemas.
* @summary Gets the schemas.
* List the schemas registered or used by this issuer.
* @summary List the schemas registered or used by this issuer.
* @param [options] The optional parameters

@@ -293,4 +290,4 @@ * @returns Promise<Models.ListSchemasResponse>

* Register schema with the current agency tenant and write the schema
* to the ledger using the tenant as issuer.
* @summary Register new schema
* to the ledger using the tenant as issuer. This does not create credential definition.
* @summary Create new schema
* @param [options] The optional parameters

@@ -310,2 +307,53 @@ * @returns Promise<Models.CreateSchemaResponse>

/**
* @summary SendMessage
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
sendMessage(options?: Models.AgencyServiceClientSendMessageOptionalParams): Promise<msRest.RestResponse>;
/**
* @param callback The callback
*/
sendMessage(callback: msRest.ServiceCallback<void>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
sendMessage(options: Models.AgencyServiceClientSendMessageOptionalParams, callback: msRest.ServiceCallback<void>): void;
/**
* @summary ListMessages
* @param connectionId
* @param [options] The optional parameters
* @returns Promise<Models.ListMessagesResponse>
*/
listMessages(connectionId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListMessagesResponse>;
/**
* @param connectionId
* @param callback The callback
*/
listMessages(connectionId: string, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void;
/**
* @param connectionId
* @param options The optional parameters
* @param callback The callback
*/
listMessages(connectionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void;
/**
* @summary GetMessage
* @param messageId
* @param [options] The optional parameters
* @returns Promise<Models.GetMessageResponse>
*/
getMessage(messageId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetMessageResponse>;
/**
* @param messageId
* @param callback The callback
*/
getMessage(messageId: string, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void;
/**
* @param messageId
* @param options The optional parameters
* @param callback The callback
*/
getMessage(messageId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void;
/**
* Get a collection of available tenants for the current authorization context.

@@ -343,9 +391,11 @@ * @summary List available tenants

/**
* Returns the agent configuration
* @summary Returns the agent configuration
* Permanently remove a tenant, including their wallet, endpoint registrations and all data.
* All definitions, connections and credentials issued will be deleted.
* This action cannot be reverted.
* @summary Delete a tenant.
* @param tenantId
* @param [options] The optional parameters
* @returns Promise<Models.GetTenantResponse>
* @returns Promise<msRest.RestResponse>
*/
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>;
deleteTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**

@@ -355,3 +405,3 @@ * @param tenantId

*/
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void;
deleteTenant(tenantId: string, callback: msRest.ServiceCallback<void>): void;
/**

@@ -362,24 +412,22 @@ * @param tenantId

*/
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void;
deleteTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* Permanently remove a tenant, including their wallet, endpoint registrations and all data.
* All definitions, connections and credentials issued will be deleted.
* This action cannot be reverted.
* @summary Delete a tenant.
* @param tenantId Tenant identifier.
* Returns the agent configuration
* @summary Returns the agent configuration
* @param tenantId
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
* @returns Promise<Models.GetTenantResponse>
*/
deleteTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>;
/**
* @param tenantId Tenant identifier.
* @param tenantId
* @param callback The callback
*/
deleteTenant(tenantId: string, callback: msRest.ServiceCallback<void>): void;
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void;
/**
* @param tenantId Tenant identifier.
* @param tenantId
* @param options The optional parameters
* @param callback The callback
*/
deleteTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void;
/**

@@ -437,6 +485,27 @@ * Lists the verifications for connection.

/**
* Gets the specified proof request identifier.
* @summary Gets the specified proof request identifier.
* @param definitionId The proof request identifier.
* Execute verification on this record. This is an expensive action and is executed
* by veryfing the proof againt the ledger data.
* @summary Execute verification on this record. This is an expensive action and is executed
* by veryfing the proof againt the ledger data.
* @param verificationId Verification identifier
* @param [options] The optional parameters
* @returns Promise<Models.VerifyVerificationResponse>
*/
verifyVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.VerifyVerificationResponse>;
/**
* @param verificationId Verification identifier
* @param callback The callback
*/
verifyVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationResult>): void;
/**
* @param verificationId Verification identifier
* @param options The optional parameters
* @param callback The callback
*/
verifyVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationResult>): void;
/**
* Gets the specified verification definition.
* @summary Gets the specified verification definition.
* @param definitionId The verification identifier.
* @param [options] The optional parameters
* @returns Promise<Models.GetVerificationDefinitionResponse>

@@ -446,3 +515,3 @@ */

/**
* @param definitionId The proof request identifier.
* @param definitionId The verification identifier.
* @param callback The callback

@@ -452,3 +521,3 @@ */

/**
* @param definitionId The proof request identifier.
* @param definitionId The verification identifier.
* @param options The optional parameters

@@ -459,4 +528,4 @@ * @param callback The callback

/**
* Lists this instance.
* @summary Lists this instance.
* List all verification definitions.
* @summary List all verification definitions.
* @param [options] The optional parameters

@@ -476,4 +545,4 @@ * @returns Promise<Models.ListVerificationDefinitionsResponse>

/**
* Creates the specified proof request.
* @summary Creates the specified proof request.
* Creates new verification definition.
* @summary Creates new verification definition.
* @param [options] The optional parameters

@@ -518,3 +587,3 @@ * @returns Promise<Models.CreateVerificationDefinitionResponse>

*/
createWebhook(callback: msRest.ServiceCallback<Models.IdContract>): void;
createWebhook(callback: msRest.ServiceCallback<Models.WebhookContract>): void;
/**

@@ -524,3 +593,3 @@ * @param options The optional parameters

*/
createWebhook(options: Models.AgencyServiceClientCreateWebhookOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void;
createWebhook(options: Models.AgencyServiceClientCreateWebhookOptionalParams, callback: msRest.ServiceCallback<Models.WebhookContract>): void;
/**

@@ -546,112 +615,120 @@ * Remove registered webhook

/**
* @summary SendMessage
* Enables a webhook
* @summary Enables a webhook
* @param webhookId
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
sendMessage(options?: Models.AgencyServiceClientSendMessageOptionalParams): Promise<msRest.RestResponse>;
enableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param webhookId
* @param callback The callback
*/
sendMessage(callback: msRest.ServiceCallback<void>): void;
enableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param webhookId
* @param options The optional parameters
* @param callback The callback
*/
sendMessage(options: Models.AgencyServiceClientSendMessageOptionalParams, callback: msRest.ServiceCallback<void>): void;
enableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* @summary ListMessages
* @param connectionId
* Disables a webhook
* @summary Disables a webhook
* @param webhookId
* @param [options] The optional parameters
* @returns Promise<Models.ListMessagesResponse>
* @returns Promise<msRest.RestResponse>
*/
listMessages(connectionId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListMessagesResponse>;
disableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param connectionId
* @param webhookId
* @param callback The callback
*/
listMessages(connectionId: string, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void;
disableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param connectionId
* @param webhookId
* @param options The optional parameters
* @param callback The callback
*/
listMessages(connectionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void;
disableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* @summary GetMessage
* @param messageId
* Return the latest transaction author agreement and acceptance methods if one
* is set on the network with the specified {networkId}
* @summary Return the latest transaction author agreement and acceptance methods if one
* is set on the network with the specified {networkId}
* @param networkId Network identifier
* @param [options] The optional parameters
* @returns Promise<Models.GetMessageResponse>
* @returns Promise<Models.GetTransactionAuthorAgreementResponse>
*/
getMessage(messageId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetMessageResponse>;
getTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTransactionAuthorAgreementResponse>;
/**
* @param messageId
* @param networkId Network identifier
* @param callback The callback
*/
getMessage(messageId: string, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void;
getTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void;
/**
* @param messageId
* @param networkId Network identifier
* @param options The optional parameters
* @param callback The callback
*/
getMessage(messageId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void;
getTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void;
/**
* Enables a webhook
* @summary Enables a webhook
* @param webhookId
* Accept the latest transaction author agreement on the specified network.
* @summary Accept the latest transaction author agreement on the specified network.
* @param networkId
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
enableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
acceptTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param webhookId
* @param networkId
* @param callback The callback
*/
enableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void;
acceptTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param webhookId
* @param networkId
* @param options The optional parameters
* @param callback The callback
*/
enableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
acceptTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* Disables a webhook
* @summary Disables a webhook
* @param webhookId
* Create credential definition from existing schema identifier.
* @summary Create credential definition from existing schema identifier.
* @param schemaId
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
* @returns Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>
*/
disableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
createCredentialDefinitionForSchemaId(schemaId: string, options?: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams): Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>;
/**
* @param webhookId
* @param schemaId
* @param callback The callback
*/
disableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void;
createCredentialDefinitionForSchemaId(schemaId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void;
/**
* @param webhookId
* @param schemaId
* @param options The optional parameters
* @param callback The callback
*/
disableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
createCredentialDefinitionForSchemaId(schemaId: string, options: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void;
/**
* Execute verification on this record. This is an expensive action and is executed
* by veryfing the proof againt the ledger data.
* @summary Execute verification on this record. This is an expensive action and is executed
* by veryfing the proof againt the ledger data.
* @param verificationId Verification identifier
* If the tenant is configured with Dedicated endorsement, this
* action will check if the issuer DID has the required ENDORSER role
* on the configured ledger network.
* Additionally, check the acceptance of the transaction
* author agreement and return the text and version if acceptance
* is required.
* @summary Get the issuer status for the current tenant.
* @param [options] The optional parameters
* @returns Promise<Models.VerifyVerificationResponse>
* @returns Promise<Models.GetIssuerStatusResponse>
*/
verifyVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.VerifyVerificationResponse>;
getIssuerStatus(options?: msRest.RequestOptionsBase): Promise<Models.GetIssuerStatusResponse>;
/**
* @param verificationId Verification identifier
* @param callback The callback
*/
verifyVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationResult>): void;
getIssuerStatus(callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void;
/**
* @param verificationId Verification identifier
* @param options The optional parameters
* @param callback The callback
*/
verifyVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationResult>): void;
getIssuerStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void;
}
export { AgencyServiceClient, AgencyServiceClientContext, Models as AgencyServiceModels, Mappers as AgencyServiceMappers };

@@ -126,2 +126,19 @@ "use strict";

};
AgencyServiceClient.prototype.sendMessage = function (options, callback) {
return this.sendOperationRequest({
options: options
}, sendMessageOperationSpec, callback);
};
AgencyServiceClient.prototype.listMessages = function (connectionId, options, callback) {
return this.sendOperationRequest({
connectionId: connectionId,
options: options
}, listMessagesOperationSpec, callback);
};
AgencyServiceClient.prototype.getMessage = function (messageId, options, callback) {
return this.sendOperationRequest({
messageId: messageId,
options: options
}, getMessageOperationSpec, callback);
};
AgencyServiceClient.prototype.listTenants = function (options, callback) {

@@ -137,13 +154,13 @@ return this.sendOperationRequest({

};
AgencyServiceClient.prototype.getTenant = function (tenantId, options, callback) {
AgencyServiceClient.prototype.deleteTenant = function (tenantId, options, callback) {
return this.sendOperationRequest({
tenantId: tenantId,
options: options
}, getTenantOperationSpec, callback);
}, deleteTenantOperationSpec, callback);
};
AgencyServiceClient.prototype.deleteTenant = function (tenantId, options, callback) {
AgencyServiceClient.prototype.getTenant = function (tenantId, options, callback) {
return this.sendOperationRequest({
tenantId: tenantId,
options: options
}, deleteTenantOperationSpec, callback);
}, getTenantOperationSpec, callback);
};

@@ -166,2 +183,8 @@ AgencyServiceClient.prototype.listVerificationsForConnection = function (options, callback) {

};
AgencyServiceClient.prototype.verifyVerification = function (verificationId, options, callback) {
return this.sendOperationRequest({
verificationId: verificationId,
options: options
}, verifyVerificationOperationSpec, callback);
};
AgencyServiceClient.prototype.getVerificationDefinition = function (definitionId, options, callback) {

@@ -199,36 +222,36 @@ return this.sendOperationRequest({

};
AgencyServiceClient.prototype.sendMessage = function (options, callback) {
AgencyServiceClient.prototype.enableWebhook = function (webhookId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
options: options
}, sendMessageOperationSpec, callback);
}, enableWebhookOperationSpec, callback);
};
AgencyServiceClient.prototype.listMessages = function (connectionId, options, callback) {
AgencyServiceClient.prototype.disableWebhook = function (webhookId, options, callback) {
return this.sendOperationRequest({
connectionId: connectionId,
webhookId: webhookId,
options: options
}, listMessagesOperationSpec, callback);
}, disableWebhookOperationSpec, callback);
};
AgencyServiceClient.prototype.getMessage = function (messageId, options, callback) {
AgencyServiceClient.prototype.getTransactionAuthorAgreement = function (networkId, options, callback) {
return this.sendOperationRequest({
messageId: messageId,
networkId: networkId,
options: options
}, getMessageOperationSpec, callback);
}, getTransactionAuthorAgreementOperationSpec, callback);
};
AgencyServiceClient.prototype.enableWebhook = function (webhookId, options, callback) {
AgencyServiceClient.prototype.acceptTransactionAuthorAgreement = function (networkId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
networkId: networkId,
options: options
}, enableWebhookOperationSpec, callback);
}, acceptTransactionAuthorAgreementOperationSpec, callback);
};
AgencyServiceClient.prototype.disableWebhook = function (webhookId, options, callback) {
AgencyServiceClient.prototype.createCredentialDefinitionForSchemaId = function (schemaId, options, callback) {
return this.sendOperationRequest({
webhookId: webhookId,
schemaId: schemaId,
options: options
}, disableWebhookOperationSpec, callback);
}, createCredentialDefinitionForSchemaIdOperationSpec, callback);
};
AgencyServiceClient.prototype.verifyVerification = function (verificationId, options, callback) {
AgencyServiceClient.prototype.getIssuerStatus = function (options, callback) {
return this.sendOperationRequest({
verificationId: verificationId,
options: options
}, verifyVerificationOperationSpec, callback);
}, getIssuerStatusOperationSpec, callback);
};

@@ -321,3 +344,3 @@ return AgencyServiceClient;

200: {
bodyMapper: Mappers.IdContract
bodyMapper: Mappers.ConnectionContract
},

@@ -392,3 +415,3 @@ default: {}

200: {
bodyMapper: Mappers.IdContract
bodyMapper: Mappers.CredentialContract
},

@@ -456,3 +479,3 @@ default: {}

httpMethod: "GET",
path: "agency/v1/credentials/definitions",
path: "agency/v1/definitions/credentials",
responses: {

@@ -479,13 +502,13 @@ 200: {

httpMethod: "POST",
path: "agency/v1/credentials/definitions",
path: "agency/v1/definitions/credentials",
requestBody: {
parameterPath: [
"options",
"credentialDefinitionParameters"
"credentialDefinitionFromSchemaParameters"
],
mapper: Mappers.CredentialDefinitionParameters
mapper: Mappers.CredentialDefinitionFromSchemaParameters
},
responses: {
200: {
bodyMapper: Mappers.IdContract
bodyMapper: Mappers.CredentialDefinitionContract
},

@@ -498,3 +521,3 @@ default: {}

httpMethod: "GET",
path: "agency/v1/credentials/definitions/{definitionId}",
path: "agency/v1/definitions/credentials/{definitionId}",
urlParameters: [

@@ -513,3 +536,3 @@ Parameters.definitionId

httpMethod: "GET",
path: "agency/v1/credentials/schemas",
path: "agency/v1/definitions/schemas",
responses: {

@@ -536,3 +559,3 @@ 200: {

httpMethod: "POST",
path: "agency/v1/credentials/schemas",
path: "agency/v1/definitions/schemas",
requestBody: {

@@ -558,2 +581,57 @@ parameterPath: [

};
var sendMessageOperationSpec = {
httpMethod: "POST",
path: "agency/v1/messages",
requestBody: {
parameterPath: [
"options",
"basicMessageParameters"
],
mapper: Mappers.BasicMessageParameters
},
responses: {
200: {},
default: {}
},
serializer: serializer
};
var listMessagesOperationSpec = {
httpMethod: "GET",
path: "agency/v1/messages/connection/{connectionId}",
urlParameters: [
Parameters.connectionId0
],
responses: {
200: {
bodyMapper: {
serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "BasicMessageRecord"
}
}
}
}
},
default: {}
},
serializer: serializer
};
var getMessageOperationSpec = {
httpMethod: "GET",
path: "agency/v1/messages/{messageId}",
urlParameters: [
Parameters.messageId
],
responses: {
200: {
bodyMapper: Mappers.BasicMessageContract
},
default: {}
},
serializer: serializer
};
var listTenantsOperationSpec = {

@@ -599,4 +677,4 @@ httpMethod: "GET",

};
var getTenantOperationSpec = {
httpMethod: "GET",
var deleteTenantOperationSpec = {
httpMethod: "DELETE",
path: "agency/v1/tenants/{tenantId}",

@@ -607,5 +685,3 @@ urlParameters: [

responses: {
200: {
bodyMapper: Mappers.TenantContract
},
200: {},
default: {}

@@ -615,4 +691,4 @@ },

};
var deleteTenantOperationSpec = {
httpMethod: "DELETE",
var getTenantOperationSpec = {
httpMethod: "GET",
path: "agency/v1/tenants/{tenantId}",

@@ -623,3 +699,5 @@ urlParameters: [

responses: {
200: {},
200: {
bodyMapper: Mappers.TenantContract
},
default: {}

@@ -686,5 +764,19 @@ },

};
var verifyVerificationOperationSpec = {
httpMethod: "GET",
path: "agency/v1/verifications/{verificationId}/verify",
urlParameters: [
Parameters.verificationId
],
responses: {
200: {
bodyMapper: Mappers.VerificationResult
},
default: {}
},
serializer: serializer
};
var getVerificationDefinitionOperationSpec = {
httpMethod: "GET",
path: "agency/v1/verifications/definitions/{definitionId}",
path: "agency/v1/definitions/verifications/{definitionId}",
urlParameters: [

@@ -703,3 +795,3 @@ Parameters.definitionId

httpMethod: "GET",
path: "agency/v1/verifications/definitions",
path: "agency/v1/definitions/verifications",
responses: {

@@ -726,3 +818,3 @@ 200: {

httpMethod: "POST",
path: "agency/v1/verifications/definitions",
path: "agency/v1/definitions/verifications",
requestBody: {

@@ -777,3 +869,3 @@ parameterPath: [

200: {
bodyMapper: Mappers.IdContract
bodyMapper: Mappers.WebhookContract
},

@@ -796,12 +888,8 @@ default: {}

};
var sendMessageOperationSpec = {
httpMethod: "POST",
path: "agency/v1/messages",
requestBody: {
parameterPath: [
"options",
"basicMessageParameters"
],
mapper: Mappers.BasicMessageParameters
},
var enableWebhookOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/enable",
urlParameters: [
Parameters.webhookId
],
responses: {

@@ -813,23 +901,10 @@ 200: {},

};
var listMessagesOperationSpec = {
httpMethod: "GET",
path: "agency/v1/messages/connection/{connectionId}",
var disableWebhookOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/disable",
urlParameters: [
Parameters.connectionId0
Parameters.webhookId
],
responses: {
200: {
bodyMapper: {
serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "BasicMessageRecord"
}
}
}
}
},
200: {},
default: {}

@@ -839,11 +914,11 @@ },

};
var getMessageOperationSpec = {
var getTransactionAuthorAgreementOperationSpec = {
httpMethod: "GET",
path: "agency/v1/messages/{messageId}",
path: "agency/v1/common/networks/{networkId}/txnAuthorAgreement",
urlParameters: [
Parameters.messageId
Parameters.networkId
],
responses: {
200: {
bodyMapper: Mappers.BasicMessageContract
bodyMapper: Mappers.NetworkTxnAgreementContract
},

@@ -854,7 +929,7 @@ default: {}

};
var enableWebhookOperationSpec = {
var acceptTransactionAuthorAgreementOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/enable",
path: "agency/v1/common/networks/{networkId}/txnAuthorAgreement",
urlParameters: [
Parameters.webhookId
Parameters.networkId
],

@@ -867,10 +942,19 @@ responses: {

};
var disableWebhookOperationSpec = {
httpMethod: "PUT",
path: "agency/v1/webhooks/{webhookId}/disable",
var createCredentialDefinitionForSchemaIdOperationSpec = {
httpMethod: "POST",
path: "agency/v1/definitions/credentials/{schemaId}",
urlParameters: [
Parameters.webhookId
Parameters.schemaId
],
requestBody: {
parameterPath: [
"options",
"credentialDefinitionParameters"
],
mapper: Mappers.CredentialDefinitionParameters
},
responses: {
200: {},
200: {
bodyMapper: Mappers.CredentialDefinitionContract
},
default: {}

@@ -880,11 +964,8 @@ },

};
var verifyVerificationOperationSpec = {
var getIssuerStatusOperationSpec = {
httpMethod: "GET",
path: "agency/v1/verifications/{verificationId}/verify",
urlParameters: [
Parameters.verificationId
],
path: "agency/v1/tenants/issuerStatus",
responses: {
200: {
bodyMapper: Mappers.VerificationResult
bodyMapper: Mappers.IssuerStatusContract
},

@@ -891,0 +972,0 @@ default: {}

@@ -34,3 +34,3 @@ "use strict";

var packageName = "";
var packageVersion = "1.1.1239";
var packageVersion = "1.1.1424";
var AgencyServiceClientContext = /** @class */ (function (_super) {

@@ -55,3 +55,3 @@ __extends(AgencyServiceClientContext, _super);

}
options = __assign({}, options, { "baseUri": "https://streetcred.azure-api.net/" });
options = __assign({}, options, { "baseUri": "https://api.streetcred.id/" });
_this = _super.call(this, credentials, options) || this;

@@ -58,0 +58,0 @@ _this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/agency/v1";

import { ServiceClientOptions } from "@azure/ms-rest-js";
import * as msRest from "@azure/ms-rest-js";
/**
* Ledger network
* An interface representing NetworkContract.
*/
export interface NetworkContract {
networkId?: string;
networkName?: string;
poolProtocolVersion?: number;
}
/**
* Transaction author agreement
*/
export interface NetworkTxnAgreementContract {
/**
* Network identifier
* Acceptance agreement text
*/
networkId?: string;
text?: string;
/**
* Name of the network.
* Agreement version
*/
networkName?: string;
version?: string;
/**
* Network ledger protocol version.
*
* Default value is '2'.
* List of agreement acceptance methods
*/
poolProtocolVersion?: number;
acceptanceMethods?: {
[propertyName: string]: string;
};
}

@@ -69,8 +77,2 @@ /**

/**
* An interface representing IdContract.
*/
export interface IdContract {
id?: string;
}
/**
* An interface representing CredentialContract.

@@ -98,7 +100,14 @@ */

*/
definitionId?: string;
definitionId: string;
/**
* Gets or sets their did.
*/
connectionId?: string;
connectionId: string;
/**
* Credential attribute values.
* Must match all credential definition attribute names.
*/
credentialValues?: {
[propertyName: string]: string;
};
}

@@ -120,19 +129,15 @@ /**

*/
export interface CredentialDefinitionParameters {
export interface CredentialDefinitionFromSchemaParameters {
/**
* Schema identifier for this definition
*/
schemaId?: string;
/**
* Name of the schema.
*/
name?: string;
name: string;
/**
* Schema version.
*/
version?: string;
version: string;
/**
* Schema attribute names.
*/
attrNames?: string[];
attrNames: string[];
/**

@@ -143,6 +148,15 @@ * Support credential revocation

/**
* Maximum credential count.
* Unique tag to differentiate definitions of the same schema
*/
maxCount?: number;
tag?: string;
}
/**
* Credential definition parameters
*/
export interface CredentialDefinitionParameters {
/**
* Support credential revocation
*/
supportRevocation?: boolean;
/**
* Unique tag to differentiate definitions of the same schema

@@ -157,17 +171,13 @@ */

/**
* Gets or sets the identifier.
*/
id?: string;
/**
* Gets or sets the name.
*/
name?: string;
name: string;
/**
* Gets or sets the version.
*/
version?: string;
version: string;
/**
* Gets or sets the attribute names.
*/
attrNames?: string[];
attrNames: string[];
}

@@ -184,2 +194,72 @@ /**

/**
* An interface representing AttributeFilter.
*/
export interface AttributeFilter {
schemaId?: string;
schemaIssuerDid?: string;
schemaName?: string;
schemaVersion?: string;
issuerDid?: string;
credDefId?: string;
}
/**
* An interface representing RevocationInterval.
*/
export interface RevocationInterval {
from?: number;
to?: number;
}
/**
* An interface representing ProofAttributeInfo.
*/
export interface ProofAttributeInfo {
name?: string;
restrictions?: AttributeFilter[];
nonRevoked?: RevocationInterval;
}
/**
* An interface representing ProofPredicateInfo.
*/
export interface ProofPredicateInfo {
pType?: string;
pValue?: string;
name?: string;
restrictions?: AttributeFilter[];
nonRevoked?: RevocationInterval;
}
/**
* An interface representing ProofRequest.
*/
export interface ProofRequest {
name?: string;
version?: string;
nonce?: string;
requestedAttributes?: {
[propertyName: string]: ProofAttributeInfo;
};
requestedPredicates?: {
[propertyName: string]: ProofPredicateInfo;
};
nonRevoked?: RevocationInterval;
}
/**
* An interface representing VerificationDefinitionContract.
*/
export interface VerificationDefinitionContract {
/**
* Gets or sets the identifier.
*/
id?: string;
/**
* Gets or sets the proof request.
*/
data?: ProofRequest;
}
/**
* An interface representing IdContract.
*/
export interface IdContract {
id?: string;
}
/**
* An interface representing BasicMessageParameters.

@@ -216,2 +296,39 @@ */

/**
* Extended tenant information
*/
export interface TenantExtendedInformationContract {
/**
* Issuer DID
*/
issuerDid?: string;
/**
* Issuer Public Key
*/
issuerKey?: string;
/**
* Isuser key generation seed used for deterministic key creation (32 characters)
*/
issuerKeyGenerationSeed?: string;
/**
* Agent DID
*/
agentDid?: string;
/**
* Agent Public Key
*/
agentKey?: string;
/**
* Agent key generation seed used for deterministic key creation (32 characters)
*/
agentKeyGenerationSeed?: string;
/**
* Agent service endpoint URL
*/
agentServiceEndpoint?: string;
/**
* Transaction endorsement type. Possible values include: 'Shared', 'Dedicated', 'Delegated'
*/
transactionEndorsement?: TransactionEndorsement;
}
/**
* Tenant info.

@@ -236,2 +353,6 @@ */

tenantId?: string;
/**
* Extended tenant information
*/
extendedInformation?: TenantExtendedInformationContract;
}

@@ -256,7 +377,41 @@ /**

/**
* (Optional) Ledger network identifier. Default is Streetcred Test Network
* (Optional) Ledger network identifier. Default is Sovrin Staging (sovrin-staging)
*/
networkId?: string;
/**
* (Required) Set the endorer type for this organization. Possible values include: 'Shared',
* 'Dedicated', 'Delegated'
*/
endorserType?: EndorserType;
}
/**
* Issuer Status contract
*/
export interface IssuerStatusContract {
/**
* Transaction Author Agreement Text
*/
acceptanceText?: string;
/**
* Transaction Author Agreement Version
*/
acceptanceVersion?: string;
acceptanceDigest?: string;
acceptanceTime?: number;
/**
* Indicates if user needs to accept the
* latest agreement on the network
*/
requireAcceptance?: boolean;
/**
* Configured transacation endorsement type. Possible values include: 'Shared', 'Dedicated',
* 'Delegated'
*/
txnEndorsement?: TxnEndorsement;
/**
* Indicates if the user has Endorser status
*/
issuerCanEndorse?: boolean;
}
/**
* An interface representing VerificationContract.

@@ -299,66 +454,2 @@ */

/**
* An interface representing AttributeFilter.
*/
export interface AttributeFilter {
schemaId?: string;
schemaIssuerDid?: string;
schemaName?: string;
schemaVersion?: string;
issuerDid?: string;
credDefId?: string;
}
/**
* An interface representing RevocationInterval.
*/
export interface RevocationInterval {
from?: number;
to?: number;
}
/**
* An interface representing ProofAttributeInfo.
*/
export interface ProofAttributeInfo {
name?: string;
restrictions?: AttributeFilter[];
nonRevoked?: RevocationInterval;
}
/**
* An interface representing ProofPredicateInfo.
*/
export interface ProofPredicateInfo {
pType?: string;
pValue?: string;
name?: string;
restrictions?: AttributeFilter[];
nonRevoked?: RevocationInterval;
}
/**
* An interface representing ProofRequest.
*/
export interface ProofRequest {
name?: string;
version?: string;
nonce?: string;
requestedAttributes?: {
[propertyName: string]: ProofAttributeInfo;
};
requestedPredicates?: {
[propertyName: string]: ProofPredicateInfo;
};
nonRevoked?: RevocationInterval;
}
/**
* An interface representing VerificationDefinitionContract.
*/
export interface VerificationDefinitionContract {
/**
* Gets or sets the identifier.
*/
id?: string;
/**
* Gets or sets the proof request.
*/
data?: ProofRequest;
}
/**
* Webhook Contract.

@@ -372,3 +463,3 @@ */

/**
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedSigning'
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedEndorser'
*/

@@ -389,8 +480,5 @@ type?: Type;

export interface WebhookParameters {
/**
* Gets or sets the webhook endpoing url
*/
url?: string;
/**
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedSigning'
* Possible values include: 'Notification', 'DelegatedEndorser'
*/

@@ -473,3 +561,3 @@ type?: Type1;

*/
credentialDefinitionParameters?: CredentialDefinitionParameters;
credentialDefinitionFromSchemaParameters?: CredentialDefinitionFromSchemaParameters;
}

@@ -488,2 +576,8 @@ /**

*/
export interface AgencyServiceClientSendMessageOptionalParams extends msRest.RequestOptionsBase {
basicMessageParameters?: BasicMessageParameters;
}
/**
* Optional Parameters.
*/
export interface AgencyServiceClientCreateTenantOptionalParams extends msRest.RequestOptionsBase {

@@ -531,4 +625,4 @@ /**

*/
export interface AgencyServiceClientSendMessageOptionalParams extends msRest.RequestOptionsBase {
basicMessageParameters?: BasicMessageParameters;
export interface AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams extends msRest.RequestOptionsBase {
credentialDefinitionParameters?: CredentialDefinitionParameters;
}

@@ -564,2 +658,23 @@ /**

/**
* Defines values for TransactionEndorsement.
* Possible values include: 'Shared', 'Dedicated', 'Delegated'
* @readonly
* @enum {string}
*/
export declare type TransactionEndorsement = 'Shared' | 'Dedicated' | 'Delegated';
/**
* Defines values for EndorserType.
* Possible values include: 'Shared', 'Dedicated', 'Delegated'
* @readonly
* @enum {string}
*/
export declare type EndorserType = 'Shared' | 'Dedicated' | 'Delegated';
/**
* Defines values for TxnEndorsement.
* Possible values include: 'Shared', 'Dedicated', 'Delegated'
* @readonly
* @enum {string}
*/
export declare type TxnEndorsement = 'Shared' | 'Dedicated' | 'Delegated';
/**
* Defines values for State2.

@@ -573,14 +688,14 @@ * Possible values include: 'Requested', 'Accepted', 'Rejected'

* Defines values for Type.
* Possible values include: 'Notification', 'DelegatedSigning'
* Possible values include: 'Notification', 'DelegatedEndorser'
* @readonly
* @enum {string}
*/
export declare type Type = 'Notification' | 'DelegatedSigning';
export declare type Type = 'Notification' | 'DelegatedEndorser';
/**
* Defines values for Type1.
* Possible values include: 'Notification', 'DelegatedSigning'
* Possible values include: 'Notification', 'DelegatedEndorser'
* @readonly
* @enum {string}
*/
export declare type Type1 = 'Notification' | 'DelegatedSigning';
export declare type Type1 = 'Notification' | 'DelegatedEndorser';
/**

@@ -661,3 +776,3 @@ * Defines values for State3.

*/
export declare type CreateConnectionResponse = IdContract & {
export declare type CreateConnectionResponse = ConnectionContract & {
/**

@@ -674,3 +789,3 @@ * The underlying HTTP response.

*/
parsedBody: IdContract;
parsedBody: ConnectionContract;
};

@@ -717,3 +832,3 @@ };

*/
export declare type CreateCredentialResponse = IdContract & {
export declare type CreateCredentialResponse = CredentialContract & {
/**

@@ -730,3 +845,3 @@ * The underlying HTTP response.

*/
parsedBody: IdContract;
parsedBody: CredentialContract;
};

@@ -773,3 +888,3 @@ };

*/
export declare type CreateCredentialDefinitionResponse = IdContract & {
export declare type CreateCredentialDefinitionResponse = CredentialDefinitionContract & {
/**

@@ -786,3 +901,3 @@ * The underlying HTTP response.

*/
parsedBody: IdContract;
parsedBody: CredentialDefinitionContract;
};

@@ -849,2 +964,38 @@ };

/**
* Contains response data for the listMessages operation.
*/
export declare type ListMessagesResponse = Array<BasicMessageRecord> & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: BasicMessageRecord[];
};
};
/**
* Contains response data for the getMessage operation.
*/
export declare type GetMessageResponse = BasicMessageContract & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: BasicMessageContract;
};
};
/**
* Contains response data for the listTenants operation.

@@ -958,2 +1109,20 @@ */

/**
* Contains response data for the verifyVerification operation.
*/
export declare type VerifyVerificationResponse = VerificationResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: VerificationResult;
};
};
/**
* Contains response data for the getVerificationDefinition operation.

@@ -1033,3 +1202,3 @@ */

*/
export declare type CreateWebhookResponse = IdContract & {
export declare type CreateWebhookResponse = WebhookContract & {
/**

@@ -1046,9 +1215,9 @@ * The underlying HTTP response.

*/
parsedBody: IdContract;
parsedBody: WebhookContract;
};
};
/**
* Contains response data for the listMessages operation.
* Contains response data for the getTransactionAuthorAgreement operation.
*/
export declare type ListMessagesResponse = Array<BasicMessageRecord> & {
export declare type GetTransactionAuthorAgreementResponse = NetworkTxnAgreementContract & {
/**

@@ -1065,9 +1234,9 @@ * The underlying HTTP response.

*/
parsedBody: BasicMessageRecord[];
parsedBody: NetworkTxnAgreementContract;
};
};
/**
* Contains response data for the getMessage operation.
* Contains response data for the createCredentialDefinitionForSchemaId operation.
*/
export declare type GetMessageResponse = BasicMessageContract & {
export declare type CreateCredentialDefinitionForSchemaIdResponse = CredentialDefinitionContract & {
/**

@@ -1084,9 +1253,9 @@ * The underlying HTTP response.

*/
parsedBody: BasicMessageContract;
parsedBody: CredentialDefinitionContract;
};
};
/**
* Contains response data for the verifyVerification operation.
* Contains response data for the getIssuerStatus operation.
*/
export declare type VerifyVerificationResponse = VerificationResult & {
export declare type GetIssuerStatusResponse = IssuerStatusContract & {
/**

@@ -1103,4 +1272,4 @@ * The underlying HTTP response.

*/
parsedBody: VerificationResult;
parsedBody: IssuerStatusContract;
};
};
import * as msRest from "@azure/ms-rest-js";
export declare const NetworkContract: msRest.CompositeMapper;
export declare const NetworkTxnAgreementContract: msRest.CompositeMapper;
export declare const AgentEndpoint: msRest.CompositeMapper;
export declare const ConnectionContract: msRest.CompositeMapper;
export declare const ConnectionInvitationParameters: msRest.CompositeMapper;
export declare const IdContract: msRest.CompositeMapper;
export declare const CredentialContract: msRest.CompositeMapper;
export declare const CredentialOfferParameters: msRest.CompositeMapper;
export declare const CredentialDefinitionContract: msRest.CompositeMapper;
export declare const CredentialDefinitionFromSchemaParameters: msRest.CompositeMapper;
export declare const CredentialDefinitionParameters: msRest.CompositeMapper;
export declare const SchemaParameters: msRest.CompositeMapper;
export declare const SchemaRecord: msRest.CompositeMapper;
export declare const AttributeFilter: msRest.CompositeMapper;
export declare const RevocationInterval: msRest.CompositeMapper;
export declare const ProofAttributeInfo: msRest.CompositeMapper;
export declare const ProofPredicateInfo: msRest.CompositeMapper;
export declare const ProofRequest: msRest.CompositeMapper;
export declare const VerificationDefinitionContract: msRest.CompositeMapper;
export declare const IdContract: msRest.CompositeMapper;
export declare const BasicMessageParameters: msRest.CompositeMapper;
export declare const BasicMessageRecord: msRest.CompositeMapper;
export declare const BasicMessageContract: msRest.CompositeMapper;
export declare const TenantExtendedInformationContract: msRest.CompositeMapper;
export declare const TenantContract: msRest.CompositeMapper;
export declare const TenantParameters: msRest.CompositeMapper;
export declare const IssuerStatusContract: msRest.CompositeMapper;
export declare const VerificationContract: msRest.CompositeMapper;
export declare const VerificationParameters: msRest.CompositeMapper;
export declare const VerificationResult: msRest.CompositeMapper;
export declare const AttributeFilter: msRest.CompositeMapper;
export declare const RevocationInterval: msRest.CompositeMapper;
export declare const ProofAttributeInfo: msRest.CompositeMapper;
export declare const ProofPredicateInfo: msRest.CompositeMapper;
export declare const ProofRequest: msRest.CompositeMapper;
export declare const VerificationDefinitionContract: msRest.CompositeMapper;
export declare const WebhookContract: msRest.CompositeMapper;
export declare const WebhookParameters: msRest.CompositeMapper;

@@ -34,2 +34,34 @@ "use strict";

};
exports.NetworkTxnAgreementContract = {
serializedName: "NetworkTxnAgreementContract",
type: {
name: "Composite",
className: "NetworkTxnAgreementContract",
modelProperties: {
text: {
serializedName: "text",
type: {
name: "String"
}
},
version: {
serializedName: "version",
type: {
name: "String"
}
},
acceptanceMethods: {
serializedName: "acceptanceMethods",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};
exports.AgentEndpoint = {

@@ -165,17 +197,2 @@ serializedName: "AgentEndpoint",

};
exports.IdContract = {
serializedName: "IdContract",
type: {
name: "Composite",
className: "IdContract",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
}
}
}
};
exports.CredentialContract = {

@@ -238,2 +255,3 @@ serializedName: "CredentialContract",

definitionId: {
required: true,
serializedName: "definitionId",

@@ -245,2 +263,3 @@ type: {

connectionId: {
required: true,
serializedName: "connectionId",

@@ -250,2 +269,13 @@ type: {

}
},
credentialValues: {
serializedName: "credentialValues",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}

@@ -311,15 +341,10 @@ }

};
exports.CredentialDefinitionParameters = {
serializedName: "CredentialDefinitionParameters",
exports.CredentialDefinitionFromSchemaParameters = {
serializedName: "CredentialDefinitionFromSchemaParameters",
type: {
name: "Composite",
className: "CredentialDefinitionParameters",
className: "CredentialDefinitionFromSchemaParameters",
modelProperties: {
schemaId: {
serializedName: "schema_id",
type: {
name: "String"
}
},
name: {
required: true,
serializedName: "name",

@@ -331,2 +356,3 @@ type: {

version: {
required: true,
serializedName: "version",

@@ -338,3 +364,4 @@ type: {

attrNames: {
serializedName: "attr_names",
required: true,
serializedName: "attrNames",
type: {

@@ -350,3 +377,3 @@ name: "Sequence",

supportRevocation: {
serializedName: "support_revocation",
serializedName: "supportRevocation",
type: {

@@ -356,7 +383,22 @@ name: "Boolean"

},
maxCount: {
serializedName: "max_count",
tag: {
serializedName: "tag",
type: {
name: "Number"
name: "String"
}
}
}
}
};
exports.CredentialDefinitionParameters = {
serializedName: "CredentialDefinitionParameters",
type: {
name: "Composite",
className: "CredentialDefinitionParameters",
modelProperties: {
supportRevocation: {
serializedName: "supportRevocation",
type: {
name: "Boolean"
}
},

@@ -378,9 +420,4 @@ tag: {

modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
name: {
required: true,
serializedName: "name",

@@ -392,2 +429,3 @@ type: {

version: {
required: true,
serializedName: "version",

@@ -399,3 +437,4 @@ type: {

attrNames: {
serializedName: "attr_names",
required: true,
serializedName: "attrNames",
type: {

@@ -451,10 +490,10 @@ name: "Sequence",

};
exports.BasicMessageParameters = {
serializedName: "BasicMessageParameters",
exports.AttributeFilter = {
serializedName: "AttributeFilter",
type: {
name: "Composite",
className: "BasicMessageParameters",
className: "AttributeFilter",
modelProperties: {
connectionId: {
serializedName: "connectionId",
schemaId: {
serializedName: "schema_id",
type: {

@@ -464,25 +503,16 @@ name: "String"

},
text: {
serializedName: "text",
schemaIssuerDid: {
serializedName: "schema_issuer_did",
type: {
name: "String"
}
}
}
}
};
exports.BasicMessageRecord = {
serializedName: "BasicMessageRecord",
type: {
name: "Composite",
className: "BasicMessageRecord",
modelProperties: {
sentTime: {
serializedName: "sentTime",
},
schemaName: {
serializedName: "schema_name",
type: {
name: "DateTime"
name: "String"
}
},
direction: {
serializedName: "direction",
schemaVersion: {
serializedName: "schema_version",
type: {

@@ -492,4 +522,4 @@ name: "String"

},
text: {
serializedName: "text",
issuerDid: {
serializedName: "issuer_did",
type: {

@@ -499,4 +529,4 @@ name: "String"

},
id: {
serializedName: "id",
credDefId: {
serializedName: "cred_def_id",
type: {

@@ -509,31 +539,19 @@ name: "String"

};
exports.BasicMessageContract = {
serializedName: "BasicMessageContract",
exports.RevocationInterval = {
serializedName: "RevocationInterval",
type: {
name: "Composite",
className: "BasicMessageContract",
className: "RevocationInterval",
modelProperties: {
connectionId: {
serializedName: "connectionId",
from: {
serializedName: "from",
type: {
name: "String"
name: "Number"
}
},
timestamp: {
serializedName: "timestamp",
to: {
serializedName: "to",
type: {
name: "DateTime"
name: "Number"
}
},
text: {
serializedName: "text",
type: {
name: "String"
}
},
direction: {
serializedName: "direction",
type: {
name: "String"
}
}

@@ -543,7 +561,7 @@ }

};
exports.TenantContract = {
serializedName: "TenantContract",
exports.ProofAttributeInfo = {
serializedName: "ProofAttributeInfo",
type: {
name: "Composite",
className: "TenantContract",
className: "ProofAttributeInfo",
modelProperties: {

@@ -556,20 +574,20 @@ name: {

},
imageUrl: {
serializedName: "imageUrl",
restrictions: {
serializedName: "restrictions",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "Composite",
className: "AttributeFilter"
}
}
}
},
network: {
serializedName: "network",
nonRevoked: {
serializedName: "non_revoked",
type: {
name: "Composite",
className: "NetworkContract"
className: "RevocationInterval"
}
},
tenantId: {
serializedName: "tenantId",
type: {
name: "String"
}
}

@@ -579,10 +597,10 @@ }

};
exports.TenantParameters = {
serializedName: "TenantParameters",
exports.ProofPredicateInfo = {
serializedName: "ProofPredicateInfo",
type: {
name: "Composite",
className: "TenantParameters",
className: "ProofPredicateInfo",
modelProperties: {
issuerSeed: {
serializedName: "issuer_seed",
pType: {
serializedName: "p_type",
type: {

@@ -592,4 +610,9 @@ name: "String"

},
pValue: {
serializedName: "p_value",
type: {
name: "String"
}
},
name: {
required: true,
serializedName: "name",

@@ -600,12 +623,19 @@ type: {

},
imageUrl: {
serializedName: "image_url",
restrictions: {
serializedName: "restrictions",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "Composite",
className: "AttributeFilter"
}
}
}
},
networkId: {
serializedName: "network_id",
nonRevoked: {
serializedName: "non_revoked",
type: {
name: "String"
name: "Composite",
className: "RevocationInterval"
}

@@ -616,10 +646,10 @@ }

};
exports.VerificationContract = {
serializedName: "VerificationContract",
exports.ProofRequest = {
serializedName: "ProofRequest",
type: {
name: "Composite",
className: "VerificationContract",
className: "ProofRequest",
modelProperties: {
connectionId: {
serializedName: "connectionId",
name: {
serializedName: "name",
type: {

@@ -629,4 +659,4 @@ name: "String"

},
verificationId: {
serializedName: "verificationId",
version: {
serializedName: "version",
type: {

@@ -636,4 +666,4 @@ name: "String"

},
state: {
serializedName: "state",
nonce: {
serializedName: "nonce",
type: {

@@ -643,24 +673,53 @@ name: "String"

},
createdAtUtc: {
serializedName: "createdAtUtc",
requestedAttributes: {
serializedName: "requested_attributes",
type: {
name: "DateTime"
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "ProofAttributeInfo"
}
}
}
},
updatedAtUtc: {
serializedName: "updatedAtUtc",
requestedPredicates: {
serializedName: "requested_predicates",
type: {
name: "DateTime"
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "ProofPredicateInfo"
}
}
}
},
isValid: {
serializedName: "isValid",
nonRevoked: {
serializedName: "non_revoked",
type: {
name: "Boolean"
name: "Composite",
className: "RevocationInterval"
}
}
}
}
};
exports.VerificationDefinitionContract = {
serializedName: "VerificationDefinitionContract",
type: {
name: "Composite",
className: "VerificationDefinitionContract",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
},
verifiedAtUtc: {
serializedName: "verifiedAtUtc",
data: {
serializedName: "data",
type: {
name: "DateTime"
name: "Composite",
className: "ProofRequest"
}

@@ -671,14 +730,23 @@ }

};
exports.VerificationParameters = {
serializedName: "VerificationParameters",
exports.IdContract = {
serializedName: "IdContract",
type: {
name: "Composite",
className: "VerificationParameters",
className: "IdContract",
modelProperties: {
verificationDefinitionId: {
serializedName: "verificationDefinitionId",
id: {
serializedName: "id",
type: {
name: "String"
}
},
}
}
}
};
exports.BasicMessageParameters = {
serializedName: "BasicMessageParameters",
type: {
name: "Composite",
className: "BasicMessageParameters",
modelProperties: {
connectionId: {

@@ -689,2 +757,8 @@ serializedName: "connectionId",

}
},
text: {
serializedName: "text",
type: {
name: "String"
}
}

@@ -694,13 +768,31 @@ }

};
exports.VerificationResult = {
serializedName: "VerificationResult",
exports.BasicMessageRecord = {
serializedName: "BasicMessageRecord",
type: {
name: "Composite",
className: "VerificationResult",
className: "BasicMessageRecord",
modelProperties: {
valid: {
serializedName: "valid",
sentTime: {
serializedName: "sentTime",
type: {
name: "Boolean"
name: "DateTime"
}
},
direction: {
serializedName: "direction",
type: {
name: "String"
}
},
text: {
serializedName: "text",
type: {
name: "String"
}
},
id: {
serializedName: "id",
type: {
name: "String"
}
}

@@ -710,10 +802,10 @@ }

};
exports.AttributeFilter = {
serializedName: "AttributeFilter",
exports.BasicMessageContract = {
serializedName: "BasicMessageContract",
type: {
name: "Composite",
className: "AttributeFilter",
className: "BasicMessageContract",
modelProperties: {
schemaId: {
serializedName: "schema_id",
connectionId: {
serializedName: "connectionId",
type: {

@@ -723,16 +815,37 @@ name: "String"

},
schemaIssuerDid: {
serializedName: "schema_issuer_did",
timestamp: {
serializedName: "timestamp",
type: {
name: "DateTime"
}
},
text: {
serializedName: "text",
type: {
name: "String"
}
},
schemaName: {
serializedName: "schema_name",
direction: {
serializedName: "direction",
type: {
name: "String"
}
}
}
}
};
exports.TenantExtendedInformationContract = {
serializedName: "TenantExtendedInformationContract",
type: {
name: "Composite",
className: "TenantExtendedInformationContract",
modelProperties: {
issuerDid: {
serializedName: "issuerDid",
type: {
name: "String"
}
},
schemaVersion: {
serializedName: "schema_version",
issuerKey: {
serializedName: "issuerKey",
type: {

@@ -742,4 +855,4 @@ name: "String"

},
issuerDid: {
serializedName: "issuer_did",
issuerKeyGenerationSeed: {
serializedName: "issuerKeyGenerationSeed",
type: {

@@ -749,7 +862,31 @@ name: "String"

},
credDefId: {
serializedName: "cred_def_id",
agentDid: {
serializedName: "agentDid",
type: {
name: "String"
}
},
agentKey: {
serializedName: "agentKey",
type: {
name: "String"
}
},
agentKeyGenerationSeed: {
serializedName: "agentKeyGenerationSeed",
type: {
name: "String"
}
},
agentServiceEndpoint: {
serializedName: "agentServiceEndpoint",
type: {
name: "String"
}
},
transactionEndorsement: {
serializedName: "transactionEndorsement",
type: {
name: "String"
}
}

@@ -759,19 +896,39 @@ }

};
exports.RevocationInterval = {
serializedName: "RevocationInterval",
exports.TenantContract = {
serializedName: "TenantContract",
type: {
name: "Composite",
className: "RevocationInterval",
className: "TenantContract",
modelProperties: {
from: {
serializedName: "from",
name: {
serializedName: "name",
type: {
name: "Number"
name: "String"
}
},
to: {
serializedName: "to",
imageUrl: {
serializedName: "imageUrl",
type: {
name: "Number"
name: "String"
}
},
network: {
serializedName: "network",
type: {
name: "Composite",
className: "NetworkContract"
}
},
tenantId: {
serializedName: "tenantId",
type: {
name: "String"
}
},
extendedInformation: {
serializedName: "extendedInformation",
type: {
name: "Composite",
className: "TenantExtendedInformationContract"
}
}

@@ -781,9 +938,16 @@ }

};
exports.ProofAttributeInfo = {
serializedName: "ProofAttributeInfo",
exports.TenantParameters = {
serializedName: "TenantParameters",
type: {
name: "Composite",
className: "ProofAttributeInfo",
className: "TenantParameters",
modelProperties: {
issuerSeed: {
serializedName: "issuer_seed",
type: {
name: "String"
}
},
name: {
required: true,
serializedName: "name",

@@ -794,20 +958,19 @@ type: {

},
restrictions: {
serializedName: "restrictions",
imageUrl: {
serializedName: "image_url",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "AttributeFilter"
}
}
name: "String"
}
},
nonRevoked: {
serializedName: "non_revoked",
networkId: {
serializedName: "network_id",
type: {
name: "Composite",
className: "RevocationInterval"
name: "String"
}
},
endorserType: {
serializedName: "endorser_type",
type: {
name: "String"
}
}

@@ -817,10 +980,10 @@ }

};
exports.ProofPredicateInfo = {
serializedName: "ProofPredicateInfo",
exports.IssuerStatusContract = {
serializedName: "IssuerStatusContract",
type: {
name: "Composite",
className: "ProofPredicateInfo",
className: "IssuerStatusContract",
modelProperties: {
pType: {
serializedName: "p_type",
acceptanceText: {
serializedName: "acceptanceText",
type: {

@@ -830,4 +993,4 @@ name: "String"

},
pValue: {
serializedName: "p_value",
acceptanceVersion: {
serializedName: "acceptanceVersion",
type: {

@@ -837,4 +1000,4 @@ name: "String"

},
name: {
serializedName: "name",
acceptanceDigest: {
serializedName: "acceptanceDigest",
type: {

@@ -844,20 +1007,25 @@ name: "String"

},
restrictions: {
serializedName: "restrictions",
acceptanceTime: {
serializedName: "acceptanceTime",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "AttributeFilter"
}
}
name: "Number"
}
},
nonRevoked: {
serializedName: "non_revoked",
requireAcceptance: {
serializedName: "requireAcceptance",
type: {
name: "Composite",
className: "RevocationInterval"
name: "Boolean"
}
},
txnEndorsement: {
serializedName: "txnEndorsement",
type: {
name: "String"
}
},
issuerCanEndorse: {
serializedName: "issuerCanEndorse",
type: {
name: "Boolean"
}
}

@@ -867,10 +1035,10 @@ }

};
exports.ProofRequest = {
serializedName: "ProofRequest",
exports.VerificationContract = {
serializedName: "VerificationContract",
type: {
name: "Composite",
className: "ProofRequest",
className: "VerificationContract",
modelProperties: {
name: {
serializedName: "name",
connectionId: {
serializedName: "connectionId",
type: {

@@ -880,4 +1048,4 @@ name: "String"

},
version: {
serializedName: "version",
verificationId: {
serializedName: "verificationId",
type: {

@@ -887,4 +1055,4 @@ name: "String"

},
nonce: {
serializedName: "nonce",
state: {
serializedName: "state",
type: {

@@ -894,32 +1062,25 @@ name: "String"

},
requestedAttributes: {
serializedName: "requested_attributes",
createdAtUtc: {
serializedName: "createdAtUtc",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "ProofAttributeInfo"
}
}
name: "DateTime"
}
},
requestedPredicates: {
serializedName: "requested_predicates",
updatedAtUtc: {
serializedName: "updatedAtUtc",
type: {
name: "Dictionary",
value: {
type: {
name: "Composite",
className: "ProofPredicateInfo"
}
}
name: "DateTime"
}
},
nonRevoked: {
serializedName: "non_revoked",
isValid: {
serializedName: "isValid",
type: {
name: "Composite",
className: "RevocationInterval"
name: "Boolean"
}
},
verifiedAtUtc: {
serializedName: "verifiedAtUtc",
type: {
name: "DateTime"
}
}

@@ -929,10 +1090,10 @@ }

};
exports.VerificationDefinitionContract = {
serializedName: "VerificationDefinitionContract",
exports.VerificationParameters = {
serializedName: "VerificationParameters",
type: {
name: "Composite",
className: "VerificationDefinitionContract",
className: "VerificationParameters",
modelProperties: {
id: {
serializedName: "id",
verificationDefinitionId: {
serializedName: "verificationDefinitionId",
type: {

@@ -942,7 +1103,6 @@ name: "String"

},
data: {
serializedName: "data",
connectionId: {
serializedName: "connectionId",
type: {
name: "Composite",
className: "ProofRequest"
name: "String"
}

@@ -953,2 +1113,17 @@ }

};
exports.VerificationResult = {
serializedName: "VerificationResult",
type: {
name: "Composite",
className: "VerificationResult",
modelProperties: {
valid: {
serializedName: "valid",
type: {
name: "Boolean"
}
}
}
}
};
exports.WebhookContract = {

@@ -955,0 +1130,0 @@ serializedName: "WebhookContract",

@@ -9,2 +9,4 @@ import * as msRest from "@azure/ms-rest-js";

export declare const messageId: msRest.OperationURLParameter;
export declare const networkId: msRest.OperationURLParameter;
export declare const schemaId: msRest.OperationURLParameter;
export declare const state: msRest.OperationQueryParameter;

@@ -11,0 +13,0 @@ export declare const tenantId: msRest.OperationURLParameter;

@@ -84,2 +84,22 @@ "use strict";

};
exports.networkId = {
parameterPath: "networkId",
mapper: {
required: true,
serializedName: "networkId",
type: {
name: "String"
}
}
};
exports.schemaId = {
parameterPath: "schemaId",
mapper: {
required: true,
serializedName: "schemaId",
type: {
name: "String"
}
}
};
exports.state = {

@@ -86,0 +106,0 @@ parameterPath: [

{
"name": "@streetcred.id/service-clients",
"version": "1.1.1239",
"version": "1.1.1424",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc