@streetcred.id/service-clients
Advanced tools
Comparing version 1.1.1424 to 1.1.2042
@@ -15,3 +15,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* @summary Upload image | ||
* @param uploadedFiles The uploaded files. | ||
* @param uploadedFiles | ||
* @param [options] The optional parameters | ||
@@ -22,3 +22,3 @@ * @returns Promise<Models.UploadImageResponse> | ||
/** | ||
* @param uploadedFiles The uploaded files. | ||
* @param uploadedFiles | ||
* @param callback The callback | ||
@@ -28,3 +28,3 @@ */ | ||
/** | ||
* @param uploadedFiles The uploaded files. | ||
* @param uploadedFiles | ||
* @param options The optional parameters | ||
@@ -52,2 +52,39 @@ * @param callback The callback | ||
/** | ||
* @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.GetTransactionAuthorAgreementResponse> | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTransactionAuthorAgreementResponse>; | ||
/** | ||
* @param networkId Network identifier | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* @param networkId Network identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* @summary Accept the latest transaction author agreement on the specified network. | ||
* @param networkId | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param networkId | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param networkId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Retrieve a list of all connections. Optionally, list only connections in a specified state. | ||
@@ -69,23 +106,27 @@ * @summary List all connections | ||
/** | ||
* Initiate new connection by creating an invitation. The newly created connection record | ||
* Initiate a new connection by creating an invitation. The newly created connection record | ||
* will be in state 'Invited' until the other party has accepted the invitation. | ||
* <br /><i>Please check the <a href="https://docs.streetcred.id">documentation</a> on how to | ||
* present the invitation data to mobile clients using QR code.</i> | ||
* @summary Create new connection | ||
* The response body includes details about the newly creation connection | ||
* <br /><i>Please check the <a | ||
* href="https://docs.streetcred.id/docs/connections">documentation</a> on how to present the | ||
* invitation data to mobile clients using a QR code.</i> | ||
* @summary Create a new connection | ||
* @param body Connection invitation parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateConnectionResponse> | ||
*/ | ||
createConnection(options?: Models.AgencyServiceClientCreateConnectionOptionalParams): Promise<Models.CreateConnectionResponse>; | ||
createConnection(body: Models.ConnectionInvitationParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateConnectionResponse>; | ||
/** | ||
* @param body Connection invitation parameters | ||
* @param callback The callback | ||
*/ | ||
createConnection(callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
createConnection(body: Models.ConnectionInvitationParameters, callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
/** | ||
* @param body Connection invitation parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createConnection(options: Models.AgencyServiceClientCreateConnectionOptionalParams, callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
createConnection(body: Models.ConnectionInvitationParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
/** | ||
* Creates the connections. | ||
* @summary Creates the connections. | ||
* @summary Get a connection by connectionId | ||
* @param connectionId The connection identifier. | ||
@@ -108,4 +149,3 @@ * @param [options] The optional parameters | ||
/** | ||
* Delete connection record. | ||
* @summary Delete connection record. | ||
* @summary Delete a connection record | ||
* @param connectionId Connection identifier | ||
@@ -128,3 +168,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Lists the credentials. | ||
* @summary Lists the credentials. | ||
@@ -161,3 +200,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Gets the credentials. | ||
* @summary Gets the credentials. | ||
@@ -181,3 +219,2 @@ * @param credentialId The credential identifier. | ||
/** | ||
* Issues the credential. | ||
* @summary Issues the credential. | ||
@@ -222,3 +259,2 @@ * @param credentialId The credential identifier. | ||
/** | ||
* List all credential definitions by this issuer. | ||
* @summary List all credential definitions by this issuer. | ||
@@ -239,3 +275,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Create new credential definition and schema with the given parameters. | ||
* @summary Create new credential definition and schema with the given parameters. | ||
@@ -256,3 +291,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Get the credential definition with the specified identifier. | ||
* @summary Get the credential definition with the specified identifier. | ||
@@ -276,17 +310,19 @@ * @param definitionId | ||
/** | ||
* List the schemas registered or used by this issuer. | ||
* @summary List the schemas registered or used by this issuer. | ||
* @summary Create credential definition from existing schema identifier. | ||
* @param schemaId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListSchemasResponse> | ||
* @returns Promise<Models.CreateCredentialDefinitionForSchemaIdResponse> | ||
*/ | ||
listSchemas(options?: msRest.RequestOptionsBase): Promise<Models.ListSchemasResponse>; | ||
createCredentialDefinitionForSchemaId(schemaId: string, options?: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams): Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>; | ||
/** | ||
* @param schemaId | ||
* @param callback The callback | ||
*/ | ||
listSchemas(callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
createCredentialDefinitionForSchemaId(schemaId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* @param schemaId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listSchemas(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
createCredentialDefinitionForSchemaId(schemaId: string, options: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
@@ -310,4 +346,66 @@ * Register schema with the current agency tenant and write the schema | ||
/** | ||
* @summary SendMessage | ||
* @summary List the schemas registered or used by this issuer. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListSchemasResponse> | ||
*/ | ||
listSchemas(options?: msRest.RequestOptionsBase): Promise<Models.ListSchemasResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
listSchemas(callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listSchemas(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
/** | ||
* @summary Gets the specified verification definition. | ||
* @param definitionId The verification identifier. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetVerificationDefinitionResponse> | ||
*/ | ||
getVerificationDefinition(definitionId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationDefinitionResponse>; | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param callback The callback | ||
*/ | ||
getVerificationDefinition(definitionId: string, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getVerificationDefinition(definitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @summary List all verification definitions. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListVerificationDefinitionsResponse> | ||
*/ | ||
listVerificationDefinitions(options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationDefinitionsResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
listVerificationDefinitions(callback: msRest.ServiceCallback<Models.VerificationDefinitionContract[]>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listVerificationDefinitions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract[]>): void; | ||
/** | ||
* @summary Creates new verification definition. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateVerificationDefinitionResponse> | ||
*/ | ||
createVerificationDefinition(options?: Models.AgencyServiceClientCreateVerificationDefinitionOptionalParams): Promise<Models.CreateVerificationDefinitionResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
createVerificationDefinition(callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationDefinition(options: Models.AgencyServiceClientCreateVerificationDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
@@ -326,3 +424,2 @@ */ | ||
/** | ||
* @summary ListMessages | ||
* @param connectionId | ||
@@ -345,3 +442,2 @@ * @param [options] The optional parameters | ||
/** | ||
* @summary GetMessage | ||
* @param messageId | ||
@@ -396,2 +492,20 @@ * @param [options] The optional parameters | ||
/** | ||
* @summary Returns the agent configuration | ||
* @param tenantId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetTenantResponse> | ||
*/ | ||
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>; | ||
/** | ||
* @param tenantId | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* @param tenantId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* Permanently remove a tenant, including their wallet, endpoint registrations and all data. | ||
@@ -418,22 +532,23 @@ * All definitions, connections and credentials issued will be deleted. | ||
/** | ||
* Returns the agent configuration | ||
* @summary Returns the agent configuration | ||
* @param tenantId | ||
* 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.GetTenantResponse> | ||
* @returns Promise<Models.GetIssuerStatusResponse> | ||
*/ | ||
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>; | ||
getIssuerStatus(options?: msRest.RequestOptionsBase): Promise<Models.GetIssuerStatusResponse>; | ||
/** | ||
* @param tenantId | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
getIssuerStatus(callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
/** | ||
* @param tenantId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
getIssuerStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
/** | ||
* Lists the verifications for connection. | ||
* @summary Lists the verifications for connection. | ||
@@ -454,3 +569,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Creates the specified create verification. | ||
* @summary Creates the specified create verification. | ||
@@ -471,3 +585,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Get the verification with the given identifier | ||
* @summary Get the verification with the given identifier | ||
@@ -491,4 +604,2 @@ * @param verificationId The verification 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 | ||
@@ -513,54 +624,2 @@ * by veryfing the proof againt the ledger data. | ||
/** | ||
* 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> | ||
*/ | ||
getVerificationDefinition(definitionId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationDefinitionResponse>; | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param callback The callback | ||
*/ | ||
getVerificationDefinition(definitionId: string, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getVerificationDefinition(definitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* List all verification definitions. | ||
* @summary List all verification definitions. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListVerificationDefinitionsResponse> | ||
*/ | ||
listVerificationDefinitions(options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationDefinitionsResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
listVerificationDefinitions(callback: msRest.ServiceCallback<Models.VerificationDefinitionContract[]>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listVerificationDefinitions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract[]>): void; | ||
/** | ||
* Creates new verification definition. | ||
* @summary Creates new verification definition. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateVerificationDefinitionResponse> | ||
*/ | ||
createVerificationDefinition(options?: Models.AgencyServiceClientCreateVerificationDefinitionOptionalParams): Promise<Models.CreateVerificationDefinitionResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
createVerificationDefinition(callback: msRest.ServiceCallback<Models.IdContract>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationDefinition(options: Models.AgencyServiceClientCreateVerificationDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.IdContract>): void; | ||
/** | ||
* List all webhooks | ||
* @summary List all webhooks | ||
@@ -581,3 +640,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Create new webhook | ||
* @summary Create new webhook | ||
@@ -598,3 +656,2 @@ * @param [options] The optional parameters | ||
/** | ||
* Remove registered webhook | ||
* @summary Remove registered webhook | ||
@@ -618,3 +675,2 @@ * @param webhookId | ||
/** | ||
* Enables a webhook | ||
* @summary Enables a webhook | ||
@@ -638,3 +694,2 @@ * @param webhookId | ||
/** | ||
* Disables a webhook | ||
* @summary Disables a webhook | ||
@@ -657,83 +712,3 @@ * @param webhookId | ||
disableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* 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.GetTransactionAuthorAgreementResponse> | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTransactionAuthorAgreementResponse>; | ||
/** | ||
* @param networkId Network identifier | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* @param networkId Network identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* 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> | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param networkId | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param networkId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Create credential definition from existing schema identifier. | ||
* @summary Create credential definition from existing schema identifier. | ||
* @param schemaId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateCredentialDefinitionForSchemaIdResponse> | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, options?: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams): Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>; | ||
/** | ||
* @param schemaId | ||
* @param callback The callback | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* @param schemaId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, options: Models.AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* 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.GetIssuerStatusResponse> | ||
*/ | ||
getIssuerStatus(options?: msRest.RequestOptionsBase): Promise<Models.GetIssuerStatusResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
getIssuerStatus(callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getIssuerStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
} | ||
export { AgencyServiceClient, AgencyServiceClientContext, Models as AgencyServiceModels, Mappers as AgencyServiceMappers }; |
@@ -20,2 +20,13 @@ "use strict"; | ||
})(); | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -51,2 +62,14 @@ var msRest = require("@azure/ms-rest-js"); | ||
}; | ||
AgencyServiceClient.prototype.getTransactionAuthorAgreement = function (networkId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
options: options | ||
}, getTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.acceptTransactionAuthorAgreement = function (networkId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
options: options | ||
}, acceptTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.listConnections = function (options, callback) { | ||
@@ -57,4 +80,5 @@ return this.sendOperationRequest({ | ||
}; | ||
AgencyServiceClient.prototype.createConnection = function (options, callback) { | ||
AgencyServiceClient.prototype.createConnection = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
@@ -119,6 +143,7 @@ }, createConnectionOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.listSchemas = function (options, callback) { | ||
AgencyServiceClient.prototype.createCredentialDefinitionForSchemaId = function (schemaId, options, callback) { | ||
return this.sendOperationRequest({ | ||
schemaId: schemaId, | ||
options: options | ||
}, listSchemasOperationSpec, callback); | ||
}, createCredentialDefinitionForSchemaIdOperationSpec, callback); | ||
}; | ||
@@ -130,2 +155,23 @@ AgencyServiceClient.prototype.createSchema = function (options, callback) { | ||
}; | ||
AgencyServiceClient.prototype.listSchemas = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, listSchemasOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.getVerificationDefinition = function (definitionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
definitionId: definitionId, | ||
options: options | ||
}, getVerificationDefinitionOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.listVerificationDefinitions = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, listVerificationDefinitionsOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.createVerificationDefinition = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createVerificationDefinitionOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.sendMessage = function (options, callback) { | ||
@@ -158,2 +204,8 @@ return this.sendOperationRequest({ | ||
}; | ||
AgencyServiceClient.prototype.getTenant = function (tenantId, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
options: options | ||
}, getTenantOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.deleteTenant = function (tenantId, options, callback) { | ||
@@ -165,7 +217,6 @@ return this.sendOperationRequest({ | ||
}; | ||
AgencyServiceClient.prototype.getTenant = function (tenantId, options, callback) { | ||
AgencyServiceClient.prototype.getIssuerStatus = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
options: options | ||
}, getTenantOperationSpec, callback); | ||
}, getIssuerStatusOperationSpec, callback); | ||
}; | ||
@@ -194,18 +245,2 @@ AgencyServiceClient.prototype.listVerificationsForConnection = function (options, callback) { | ||
}; | ||
AgencyServiceClient.prototype.getVerificationDefinition = function (definitionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
definitionId: definitionId, | ||
options: options | ||
}, getVerificationDefinitionOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.listVerificationDefinitions = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, listVerificationDefinitionsOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.createVerificationDefinition = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createVerificationDefinitionOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.listWebhooks = function (options, callback) { | ||
@@ -239,25 +274,2 @@ return this.sendOperationRequest({ | ||
}; | ||
AgencyServiceClient.prototype.getTransactionAuthorAgreement = function (networkId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
options: options | ||
}, getTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.acceptTransactionAuthorAgreement = function (networkId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
options: options | ||
}, acceptTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.createCredentialDefinitionForSchemaId = function (schemaId, options, callback) { | ||
return this.sendOperationRequest({ | ||
schemaId: schemaId, | ||
options: options | ||
}, createCredentialDefinitionForSchemaIdOperationSpec, callback); | ||
}; | ||
AgencyServiceClient.prototype.getIssuerStatus = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, getIssuerStatusOperationSpec, callback); | ||
}; | ||
return AgencyServiceClient; | ||
@@ -270,3 +282,3 @@ }(agencyServiceClientContext_1.AgencyServiceClientContext)); | ||
httpMethod: "POST", | ||
path: "agency/v1/common/upload", | ||
path: "common/upload", | ||
formDataParameters: [ | ||
@@ -293,3 +305,3 @@ Parameters.uploadedFiles, | ||
httpMethod: "GET", | ||
path: "agency/v1/common/networks", | ||
path: "common/networks", | ||
responses: { | ||
@@ -314,5 +326,31 @@ 200: { | ||
}; | ||
var getTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "GET", | ||
path: "common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.NetworkTxnAgreementContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var acceptTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listConnectionsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/connections", | ||
path: "connections", | ||
queryParameters: [ | ||
@@ -342,10 +380,8 @@ Parameters.state | ||
httpMethod: "POST", | ||
path: "agency/v1/connections", | ||
path: "connections", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"connectionInvitationParameters" | ||
], | ||
mapper: Mappers.ConnectionInvitationParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.ConnectionInvitationParameters, { required: true }) | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -361,3 +397,3 @@ 200: { | ||
httpMethod: "GET", | ||
path: "agency/v1/connections/{connectionId}", | ||
path: "connections/{connectionId}", | ||
urlParameters: [ | ||
@@ -376,3 +412,3 @@ Parameters.connectionId0 | ||
httpMethod: "DELETE", | ||
path: "agency/v1/connections/{connectionId}", | ||
path: "connections/{connectionId}", | ||
urlParameters: [ | ||
@@ -389,3 +425,3 @@ Parameters.connectionId0 | ||
httpMethod: "GET", | ||
path: "agency/v1/credentials", | ||
path: "credentials", | ||
queryParameters: [ | ||
@@ -416,10 +452,11 @@ Parameters.connectionId1, | ||
httpMethod: "POST", | ||
path: "agency/v1/credentials", | ||
path: "credentials", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialOfferParameters" | ||
"body" | ||
], | ||
mapper: Mappers.CredentialOfferParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -435,3 +472,3 @@ 200: { | ||
httpMethod: "GET", | ||
path: "agency/v1/credentials/{credentialId}", | ||
path: "credentials/{credentialId}", | ||
urlParameters: [ | ||
@@ -450,3 +487,3 @@ Parameters.credentialId | ||
httpMethod: "PUT", | ||
path: "agency/v1/credentials/{credentialId}", | ||
path: "credentials/{credentialId}", | ||
urlParameters: [ | ||
@@ -458,6 +495,6 @@ Parameters.credentialId | ||
"options", | ||
"values" | ||
"body" | ||
], | ||
mapper: { | ||
serializedName: "values", | ||
serializedName: "body", | ||
type: { | ||
@@ -473,2 +510,3 @@ name: "Dictionary", | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -482,3 +520,3 @@ 200: {}, | ||
httpMethod: "DELETE", | ||
path: "agency/v1/credentials/{credentialId}", | ||
path: "credentials/{credentialId}", | ||
urlParameters: [ | ||
@@ -495,3 +533,3 @@ Parameters.credentialId | ||
httpMethod: "GET", | ||
path: "agency/v1/definitions/credentials", | ||
path: "definitions/credentials", | ||
responses: { | ||
@@ -518,10 +556,11 @@ 200: { | ||
httpMethod: "POST", | ||
path: "agency/v1/definitions/credentials", | ||
path: "definitions/credentials", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialDefinitionFromSchemaParameters" | ||
"body" | ||
], | ||
mapper: Mappers.CredentialDefinitionFromSchemaParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -537,3 +576,3 @@ 200: { | ||
httpMethod: "GET", | ||
path: "agency/v1/definitions/credentials/{definitionId}", | ||
path: "definitions/credentials/{definitionId}", | ||
urlParameters: [ | ||
@@ -550,5 +589,51 @@ Parameters.definitionId | ||
}; | ||
var createCredentialDefinitionForSchemaIdOperationSpec = { | ||
httpMethod: "POST", | ||
path: "definitions/credentials/{schemaId}", | ||
urlParameters: [ | ||
Parameters.schemaId | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"body" | ||
], | ||
mapper: Mappers.CredentialDefinitionParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var createSchemaOperationSpec = { | ||
httpMethod: "POST", | ||
path: "definitions/schemas", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"body" | ||
], | ||
mapper: Mappers.SchemaParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listSchemasOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/definitions/schemas", | ||
path: "definitions/schemas", | ||
responses: { | ||
@@ -573,12 +658,19 @@ 200: { | ||
}; | ||
var createSchemaOperationSpec = { | ||
httpMethod: "POST", | ||
path: "agency/v1/definitions/schemas", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"schemaParameters" | ||
], | ||
mapper: Mappers.SchemaParameters | ||
var getVerificationDefinitionOperationSpec = { | ||
httpMethod: "GET", | ||
path: "definitions/verifications/{definitionId}", | ||
urlParameters: [ | ||
Parameters.definitionId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationDefinitionContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listVerificationDefinitionsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "definitions/verifications", | ||
responses: { | ||
@@ -589,3 +681,9 @@ 200: { | ||
type: { | ||
name: "String" | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "VerificationDefinitionContract" | ||
} | ||
} | ||
} | ||
@@ -598,12 +696,32 @@ } | ||
}; | ||
var createVerificationDefinitionOperationSpec = { | ||
httpMethod: "POST", | ||
path: "definitions/verifications", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"body" | ||
], | ||
mapper: Mappers.ProofRequest | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationDefinitionContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var sendMessageOperationSpec = { | ||
httpMethod: "POST", | ||
path: "agency/v1/messages", | ||
path: "messages", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"basicMessageParameters" | ||
"body" | ||
], | ||
mapper: Mappers.BasicMessageParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -617,3 +735,3 @@ 200: {}, | ||
httpMethod: "GET", | ||
path: "agency/v1/messages/connection/{connectionId}", | ||
path: "messages/connection/{connectionId}", | ||
urlParameters: [ | ||
@@ -643,3 +761,3 @@ Parameters.connectionId0 | ||
httpMethod: "GET", | ||
path: "agency/v1/messages/{messageId}", | ||
path: "messages/{messageId}", | ||
urlParameters: [ | ||
@@ -658,3 +776,3 @@ Parameters.messageId | ||
httpMethod: "GET", | ||
path: "agency/v1/tenants", | ||
path: "tenants", | ||
responses: { | ||
@@ -681,10 +799,11 @@ 200: { | ||
httpMethod: "POST", | ||
path: "agency/v1/tenants", | ||
path: "tenants", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"tenantParameters" | ||
"body" | ||
], | ||
mapper: Mappers.TenantParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -698,5 +817,19 @@ 200: { | ||
}; | ||
var getTenantOperationSpec = { | ||
httpMethod: "GET", | ||
path: "tenants/{tenantId}", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.TenantContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var deleteTenantOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "agency/v1/tenants/{tenantId}", | ||
path: "tenants/{tenantId}", | ||
urlParameters: [ | ||
@@ -711,11 +844,8 @@ Parameters.tenantId | ||
}; | ||
var getTenantOperationSpec = { | ||
var getIssuerStatusOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/tenants/{tenantId}", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
], | ||
path: "tenants/issuerStatus", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.TenantContract | ||
bodyMapper: Mappers.IssuerStatusContract | ||
}, | ||
@@ -728,3 +858,3 @@ default: {} | ||
httpMethod: "GET", | ||
path: "agency/v1/verifications", | ||
path: "verifications", | ||
queryParameters: [ | ||
@@ -754,10 +884,11 @@ Parameters.connectionId1 | ||
httpMethod: "POST", | ||
path: "agency/v1/verifications", | ||
path: "verifications", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationParameters" | ||
"body" | ||
], | ||
mapper: Mappers.VerificationParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -773,3 +904,3 @@ 200: { | ||
httpMethod: "GET", | ||
path: "agency/v1/verifications/{verificationId}", | ||
path: "verifications/{verificationId}", | ||
urlParameters: [ | ||
@@ -788,3 +919,3 @@ Parameters.verificationId | ||
httpMethod: "GET", | ||
path: "agency/v1/verifications/{verificationId}/verify", | ||
path: "verifications/{verificationId}/verify", | ||
urlParameters: [ | ||
@@ -801,59 +932,5 @@ Parameters.verificationId | ||
}; | ||
var getVerificationDefinitionOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/definitions/verifications/{definitionId}", | ||
urlParameters: [ | ||
Parameters.definitionId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationDefinitionContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listVerificationDefinitionsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/definitions/verifications", | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "VerificationDefinitionContract" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var createVerificationDefinitionOperationSpec = { | ||
httpMethod: "POST", | ||
path: "agency/v1/definitions/verifications", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"proofRequest" | ||
], | ||
mapper: Mappers.ProofRequest | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.IdContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listWebhooksOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/webhooks", | ||
path: "webhooks", | ||
responses: { | ||
@@ -880,10 +957,11 @@ 200: { | ||
httpMethod: "POST", | ||
path: "agency/v1/webhooks", | ||
path: "webhooks", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"webhookParameters" | ||
"body" | ||
], | ||
mapper: Mappers.WebhookParameters | ||
}, | ||
contentType: "application/json-patch+json; charset=utf-8", | ||
responses: { | ||
@@ -899,3 +977,3 @@ 200: { | ||
httpMethod: "DELETE", | ||
path: "agency/v1/webhooks/{webhookId}", | ||
path: "webhooks/{webhookId}", | ||
urlParameters: [ | ||
@@ -912,3 +990,3 @@ Parameters.webhookId | ||
httpMethod: "PUT", | ||
path: "agency/v1/webhooks/{webhookId}/enable", | ||
path: "webhooks/{webhookId}/enable", | ||
urlParameters: [ | ||
@@ -925,3 +1003,3 @@ Parameters.webhookId | ||
httpMethod: "PUT", | ||
path: "agency/v1/webhooks/{webhookId}/disable", | ||
path: "webhooks/{webhookId}/disable", | ||
urlParameters: [ | ||
@@ -936,59 +1014,1 @@ Parameters.webhookId | ||
}; | ||
var getTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.NetworkTxnAgreementContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var acceptTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "agency/v1/common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var createCredentialDefinitionForSchemaIdOperationSpec = { | ||
httpMethod: "POST", | ||
path: "agency/v1/definitions/credentials/{schemaId}", | ||
urlParameters: [ | ||
Parameters.schemaId | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialDefinitionParameters" | ||
], | ||
mapper: Mappers.CredentialDefinitionParameters | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getIssuerStatusOperationSpec = { | ||
httpMethod: "GET", | ||
path: "agency/v1/tenants/issuerStatus", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.IssuerStatusContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; |
@@ -34,3 +34,3 @@ "use strict"; | ||
var packageName = ""; | ||
var packageVersion = "1.1.1424"; | ||
var packageVersion = "1.1.2042"; | ||
var AgencyServiceClientContext = /** @class */ (function (_super) { | ||
@@ -57,3 +57,3 @@ __extends(AgencyServiceClientContext, _super); | ||
_this = _super.call(this, credentials, options) || this; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/agency/v1"; | ||
_this.baseUri = options.baseUri || _this.baseUri || "http://localhost"; | ||
_this.requestContentType = "application/json; charset=utf-8"; | ||
@@ -60,0 +60,0 @@ _this.credentials = credentials; |
@@ -101,7 +101,17 @@ import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
/** | ||
* Gets or sets their did. | ||
* Connection identifier to send this credential to. | ||
* If ommited, the request will be treated as connectionless | ||
* issuance and will generate a URL. | ||
*/ | ||
connectionId: string; | ||
connectionId?: string; | ||
/** | ||
* Credential attribute values. | ||
* If true, the credential will automatically be issued once the individual accepts the offer. If | ||
* false, when an individual accepts the offer the credential will be in state 'Requested' and | ||
* must be manually issued using the | ||
* PUT /credentials/{credentialId} endpoint. This is set to false by default | ||
*/ | ||
automaticIssuance?: boolean; | ||
/** | ||
* Credential attribute values. If using connectionless issuance, these attributes must be | ||
* specified. | ||
* Must match all credential definition attribute names. | ||
@@ -248,14 +258,5 @@ */ | ||
id?: string; | ||
/** | ||
* Gets or sets the proof request. | ||
*/ | ||
data?: ProofRequest; | ||
} | ||
/** | ||
* An interface representing IdContract. | ||
*/ | ||
export interface IdContract { | ||
id?: string; | ||
} | ||
/** | ||
* An interface representing BasicMessageParameters. | ||
@@ -324,3 +325,3 @@ */ | ||
/** | ||
* Transaction endorsement type. Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
* Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
*/ | ||
@@ -341,5 +342,2 @@ transactionEndorsement?: TransactionEndorsement; | ||
imageUrl?: string; | ||
/** | ||
* Gets or sets the network. | ||
*/ | ||
network?: NetworkContract; | ||
@@ -350,5 +348,2 @@ /** | ||
tenantId?: string; | ||
/** | ||
* Extended tenant information | ||
*/ | ||
extendedInformation?: TenantExtendedInformationContract; | ||
@@ -378,4 +373,3 @@ } | ||
/** | ||
* (Required) Set the endorer type for this organization. Possible values include: 'Shared', | ||
* 'Dedicated', 'Delegated' | ||
* Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
*/ | ||
@@ -404,4 +398,3 @@ endorserType?: EndorserType; | ||
/** | ||
* Configured transacation endorsement type. Possible values include: 'Shared', 'Dedicated', | ||
* 'Delegated' | ||
* Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
*/ | ||
@@ -415,2 +408,15 @@ txnEndorsement?: TxnEndorsement; | ||
/** | ||
* An interface representing ProofAttributeContract. | ||
*/ | ||
export interface ProofAttributeContract { | ||
name?: string; | ||
value?: string; | ||
/** | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly revealed?: boolean; | ||
selfAttested?: boolean; | ||
conditional?: boolean; | ||
} | ||
/** | ||
* An interface representing VerificationContract. | ||
@@ -429,2 +435,5 @@ */ | ||
verifiedAtUtc?: Date; | ||
proof?: { | ||
[propertyName: string]: ProofAttributeContract; | ||
}; | ||
} | ||
@@ -445,2 +454,8 @@ /** | ||
/** | ||
* An interface representing IdContract. | ||
*/ | ||
export interface IdContract { | ||
id?: string; | ||
} | ||
/** | ||
* Verification result | ||
@@ -453,2 +468,8 @@ */ | ||
valid?: boolean; | ||
/** | ||
* Verification Proof Details | ||
*/ | ||
proof?: { | ||
[propertyName: string]: ProofAttributeContract; | ||
}; | ||
} | ||
@@ -464,3 +485,3 @@ /** | ||
/** | ||
* Gets or sets the type of webhook. Possible values include: 'Notification', 'DelegatedEndorser' | ||
* Possible values include: 'Notification', 'DelegatedEndorser' | ||
*/ | ||
@@ -497,9 +518,3 @@ type?: Type; | ||
export interface AgencyServiceClientUploadImageOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The filename. | ||
*/ | ||
filename?: string; | ||
/** | ||
* (Optional) Type of the image content. | ||
*/ | ||
contentType?: string; | ||
@@ -519,11 +534,2 @@ } | ||
*/ | ||
export interface AgencyServiceClientCreateConnectionOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Connection invitation parameters | ||
*/ | ||
connectionInvitationParameters?: ConnectionInvitationParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface AgencyServiceClientListCredentialsOptionalParams extends msRest.RequestOptionsBase { | ||
@@ -543,3 +549,3 @@ connectionId?: string; | ||
*/ | ||
credentialOfferParameters?: CredentialOfferParameters; | ||
body?: CredentialOfferParameters; | ||
} | ||
@@ -551,5 +557,7 @@ /** | ||
/** | ||
* The values. | ||
* If the values offered were incorrect, changes to the values may be made here. You must update | ||
* all of the values, and they must be follow the same structure of the schema. | ||
* To keep the values the same as those included in the credential offer, leave the body blank | ||
*/ | ||
values?: { | ||
body?: { | ||
[propertyName: string]: string; | ||
@@ -565,3 +573,3 @@ }; | ||
*/ | ||
credentialDefinitionFromSchemaParameters?: CredentialDefinitionFromSchemaParameters; | ||
body?: CredentialDefinitionFromSchemaParameters; | ||
} | ||
@@ -571,2 +579,8 @@ /** | ||
*/ | ||
export interface AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams extends msRest.RequestOptionsBase { | ||
body?: CredentialDefinitionParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface AgencyServiceClientCreateSchemaOptionalParams extends msRest.RequestOptionsBase { | ||
@@ -576,3 +590,3 @@ /** | ||
*/ | ||
schemaParameters?: SchemaParameters; | ||
body?: SchemaParameters; | ||
} | ||
@@ -582,4 +596,13 @@ /** | ||
*/ | ||
export interface AgencyServiceClientCreateVerificationDefinitionOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The proof request. | ||
*/ | ||
body?: ProofRequest; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface AgencyServiceClientSendMessageOptionalParams extends msRest.RequestOptionsBase { | ||
basicMessageParameters?: BasicMessageParameters; | ||
body?: BasicMessageParameters; | ||
} | ||
@@ -593,3 +616,3 @@ /** | ||
*/ | ||
tenantParameters?: TenantParameters; | ||
body?: TenantParameters; | ||
} | ||
@@ -612,3 +635,3 @@ /** | ||
*/ | ||
verificationParameters?: VerificationParameters; | ||
body?: VerificationParameters; | ||
} | ||
@@ -618,21 +641,6 @@ /** | ||
*/ | ||
export interface AgencyServiceClientCreateVerificationDefinitionOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The proof request. | ||
*/ | ||
proofRequest?: ProofRequest; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface AgencyServiceClientCreateWebhookOptionalParams extends msRest.RequestOptionsBase { | ||
webhookParameters?: WebhookParameters; | ||
body?: WebhookParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface AgencyServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams extends msRest.RequestOptionsBase { | ||
credentialDefinitionParameters?: CredentialDefinitionParameters; | ||
} | ||
/** | ||
* Defines values for State. | ||
@@ -762,2 +770,20 @@ * Possible values include: 'Invited', 'Negotiating', 'Connected' | ||
/** | ||
* Contains response data for the getTransactionAuthorAgreement operation. | ||
*/ | ||
export declare type GetTransactionAuthorAgreementResponse = NetworkTxnAgreementContract & { | ||
/** | ||
* 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: NetworkTxnAgreementContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listConnections operation. | ||
@@ -925,5 +951,5 @@ */ | ||
/** | ||
* Contains response data for the listSchemas operation. | ||
* Contains response data for the createCredentialDefinitionForSchemaId operation. | ||
*/ | ||
export declare type ListSchemasResponse = Array<SchemaRecord> & { | ||
export declare type CreateCredentialDefinitionForSchemaIdResponse = CredentialDefinitionContract & { | ||
/** | ||
@@ -940,3 +966,3 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: SchemaRecord[]; | ||
parsedBody: CredentialDefinitionContract; | ||
}; | ||
@@ -967,5 +993,5 @@ }; | ||
/** | ||
* Contains response data for the listMessages operation. | ||
* Contains response data for the listSchemas operation. | ||
*/ | ||
export declare type ListMessagesResponse = Array<BasicMessageRecord> & { | ||
export declare type ListSchemasResponse = Array<SchemaRecord> & { | ||
/** | ||
@@ -982,9 +1008,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: BasicMessageRecord[]; | ||
parsedBody: SchemaRecord[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getMessage operation. | ||
* Contains response data for the getVerificationDefinition operation. | ||
*/ | ||
export declare type GetMessageResponse = BasicMessageContract & { | ||
export declare type GetVerificationDefinitionResponse = VerificationDefinitionContract & { | ||
/** | ||
@@ -1001,9 +1027,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: BasicMessageContract; | ||
parsedBody: VerificationDefinitionContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listTenants operation. | ||
* Contains response data for the listVerificationDefinitions operation. | ||
*/ | ||
export declare type ListTenantsResponse = Array<TenantContract> & { | ||
export declare type ListVerificationDefinitionsResponse = Array<VerificationDefinitionContract> & { | ||
/** | ||
@@ -1020,9 +1046,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: TenantContract[]; | ||
parsedBody: VerificationDefinitionContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createTenant operation. | ||
* Contains response data for the createVerificationDefinition operation. | ||
*/ | ||
export declare type CreateTenantResponse = TenantContract & { | ||
export declare type CreateVerificationDefinitionResponse = VerificationDefinitionContract & { | ||
/** | ||
@@ -1039,9 +1065,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: TenantContract; | ||
parsedBody: VerificationDefinitionContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getTenant operation. | ||
* Contains response data for the listMessages operation. | ||
*/ | ||
export declare type GetTenantResponse = TenantContract & { | ||
export declare type ListMessagesResponse = Array<BasicMessageRecord> & { | ||
/** | ||
@@ -1058,9 +1084,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: TenantContract; | ||
parsedBody: BasicMessageRecord[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listVerificationsForConnection operation. | ||
* Contains response data for the getMessage operation. | ||
*/ | ||
export declare type ListVerificationsForConnectionResponse = Array<VerificationContract> & { | ||
export declare type GetMessageResponse = BasicMessageContract & { | ||
/** | ||
@@ -1077,9 +1103,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract[]; | ||
parsedBody: BasicMessageContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createVerification operation. | ||
* Contains response data for the listTenants operation. | ||
*/ | ||
export declare type CreateVerificationResponse = IdContract & { | ||
export declare type ListTenantsResponse = Array<TenantContract> & { | ||
/** | ||
@@ -1096,9 +1122,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: IdContract; | ||
parsedBody: TenantContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerification operation. | ||
* Contains response data for the createTenant operation. | ||
*/ | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
export declare type CreateTenantResponse = TenantContract & { | ||
/** | ||
@@ -1115,9 +1141,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: TenantContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the verifyVerification operation. | ||
* Contains response data for the getTenant operation. | ||
*/ | ||
export declare type VerifyVerificationResponse = VerificationResult & { | ||
export declare type GetTenantResponse = TenantContract & { | ||
/** | ||
@@ -1134,9 +1160,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationResult; | ||
parsedBody: TenantContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerificationDefinition operation. | ||
* Contains response data for the getIssuerStatus operation. | ||
*/ | ||
export declare type GetVerificationDefinitionResponse = VerificationDefinitionContract & { | ||
export declare type GetIssuerStatusResponse = IssuerStatusContract & { | ||
/** | ||
@@ -1153,9 +1179,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationDefinitionContract; | ||
parsedBody: IssuerStatusContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listVerificationDefinitions operation. | ||
* Contains response data for the listVerificationsForConnection operation. | ||
*/ | ||
export declare type ListVerificationDefinitionsResponse = Array<VerificationDefinitionContract> & { | ||
export declare type ListVerificationsForConnectionResponse = Array<VerificationContract> & { | ||
/** | ||
@@ -1172,9 +1198,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationDefinitionContract[]; | ||
parsedBody: VerificationContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createVerificationDefinition operation. | ||
* Contains response data for the createVerification operation. | ||
*/ | ||
export declare type CreateVerificationDefinitionResponse = IdContract & { | ||
export declare type CreateVerificationResponse = IdContract & { | ||
/** | ||
@@ -1195,5 +1221,5 @@ * The underlying HTTP response. | ||
/** | ||
* Contains response data for the listWebhooks operation. | ||
* Contains response data for the getVerification operation. | ||
*/ | ||
export declare type ListWebhooksResponse = Array<WebhookContract> & { | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
/** | ||
@@ -1210,9 +1236,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: WebhookContract[]; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createWebhook operation. | ||
* Contains response data for the verifyVerification operation. | ||
*/ | ||
export declare type CreateWebhookResponse = WebhookContract & { | ||
export declare type VerifyVerificationResponse = VerificationResult & { | ||
/** | ||
@@ -1229,9 +1255,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: WebhookContract; | ||
parsedBody: VerificationResult; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getTransactionAuthorAgreement operation. | ||
* Contains response data for the listWebhooks operation. | ||
*/ | ||
export declare type GetTransactionAuthorAgreementResponse = NetworkTxnAgreementContract & { | ||
export declare type ListWebhooksResponse = Array<WebhookContract> & { | ||
/** | ||
@@ -1248,9 +1274,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: NetworkTxnAgreementContract; | ||
parsedBody: WebhookContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createCredentialDefinitionForSchemaId operation. | ||
* Contains response data for the createWebhook operation. | ||
*/ | ||
export declare type CreateCredentialDefinitionForSchemaIdResponse = CredentialDefinitionContract & { | ||
export declare type CreateWebhookResponse = WebhookContract & { | ||
/** | ||
@@ -1267,22 +1293,4 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialDefinitionContract; | ||
parsedBody: WebhookContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getIssuerStatus operation. | ||
*/ | ||
export declare type GetIssuerStatusResponse = IssuerStatusContract & { | ||
/** | ||
* 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: IssuerStatusContract; | ||
}; | ||
}; |
@@ -20,3 +20,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const VerificationDefinitionContract: msRest.CompositeMapper; | ||
export declare const IdContract: msRest.CompositeMapper; | ||
export declare const BasicMessageParameters: msRest.CompositeMapper; | ||
@@ -29,6 +28,8 @@ export declare const BasicMessageRecord: msRest.CompositeMapper; | ||
export declare const IssuerStatusContract: msRest.CompositeMapper; | ||
export declare const ProofAttributeContract: msRest.CompositeMapper; | ||
export declare const VerificationContract: msRest.CompositeMapper; | ||
export declare const VerificationParameters: msRest.CompositeMapper; | ||
export declare const IdContract: msRest.CompositeMapper; | ||
export declare const VerificationResult: msRest.CompositeMapper; | ||
export declare const WebhookContract: msRest.CompositeMapper; | ||
export declare const WebhookParameters: msRest.CompositeMapper; |
@@ -260,3 +260,2 @@ "use strict"; | ||
connectionId: { | ||
required: true, | ||
serializedName: "connectionId", | ||
@@ -267,2 +266,8 @@ type: { | ||
}, | ||
automaticIssuance: { | ||
serializedName: "automaticIssuance", | ||
type: { | ||
name: "Boolean" | ||
} | ||
}, | ||
credentialValues: { | ||
@@ -705,17 +710,2 @@ serializedName: "credentialValues", | ||
}; | ||
exports.IdContract = { | ||
serializedName: "IdContract", | ||
type: { | ||
name: "Composite", | ||
className: "IdContract", | ||
modelProperties: { | ||
id: { | ||
serializedName: "id", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.BasicMessageParameters = { | ||
@@ -997,2 +987,42 @@ serializedName: "BasicMessageParameters", | ||
}; | ||
exports.ProofAttributeContract = { | ||
serializedName: "ProofAttributeContract", | ||
type: { | ||
name: "Composite", | ||
className: "ProofAttributeContract", | ||
modelProperties: { | ||
name: { | ||
serializedName: "name", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
value: { | ||
serializedName: "value", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
revealed: { | ||
readOnly: true, | ||
serializedName: "revealed", | ||
type: { | ||
name: "Boolean" | ||
} | ||
}, | ||
selfAttested: { | ||
serializedName: "selfAttested", | ||
type: { | ||
name: "Boolean" | ||
} | ||
}, | ||
conditional: { | ||
serializedName: "conditional", | ||
type: { | ||
name: "Boolean" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.VerificationContract = { | ||
@@ -1045,2 +1075,14 @@ serializedName: "VerificationContract", | ||
} | ||
}, | ||
proof: { | ||
serializedName: "proof", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "ProofAttributeContract" | ||
} | ||
} | ||
} | ||
} | ||
@@ -1071,2 +1113,17 @@ } | ||
}; | ||
exports.IdContract = { | ||
serializedName: "IdContract", | ||
type: { | ||
name: "Composite", | ||
className: "IdContract", | ||
modelProperties: { | ||
id: { | ||
serializedName: "id", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.VerificationResult = { | ||
@@ -1083,2 +1140,14 @@ serializedName: "VerificationResult", | ||
} | ||
}, | ||
proof: { | ||
serializedName: "proof", | ||
type: { | ||
name: "Dictionary", | ||
value: { | ||
type: { | ||
name: "Composite", | ||
className: "ProofAttributeContract" | ||
} | ||
} | ||
} | ||
} | ||
@@ -1085,0 +1154,0 @@ } |
{ | ||
"name": "@streetcred.id/service-clients", | ||
"version": "1.1.1424", | ||
"version": "1.1.2042", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
140967
4427