@trinsic/service-clients
Advanced tools
Comparing version 1.1.3977 to 1.1.4070
@@ -13,6 +13,8 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* Upload an image and return a URL with the static remote location | ||
* @summary Upload image | ||
* Please use the Provider API instead. | ||
* Upload an image and return a URL with the static remote location. | ||
* @summary [Deprecated] Upload image | ||
* @param uploadedFiles | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.UploadImageResponse> | ||
@@ -24,2 +26,3 @@ */ | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
@@ -31,8 +34,9 @@ uploadImage(uploadedFiles: msRest.HttpRequestBody, callback: msRest.ServiceCallback<string>): void; | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
uploadImage(uploadedFiles: msRest.HttpRequestBody, options: Models.CredentialsServiceClientUploadImageOptionalParams, callback: msRest.ServiceCallback<string>): void; | ||
/** | ||
* Returns a list of available ledger networks. Some networks are available based on your | ||
* subscription. | ||
* @summary List available ledger networks | ||
* List all available ledger networks. | ||
* Some networks are not available based on your subscription. | ||
* @summary List all ledger networks | ||
* @param [options] The optional parameters | ||
@@ -52,3 +56,51 @@ * @returns Promise<Models.ListNetworksResponse> | ||
/** | ||
* Retrieve a list of all connections. Optionally, list only connections in a specified state. | ||
* This endpoint is no longer needed. | ||
* Get the latest transaction author agreement and acceptance methods if one is set on the | ||
* specified network. | ||
* @summary [Deprecated] Get network transaction author agreement | ||
* @param networkId The network identifier | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.GetTransactionAuthorAgreementResponse> | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTransactionAuthorAgreementResponse>; | ||
/** | ||
* @param networkId The network identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* @param networkId The network identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
/** | ||
* This endpoint is no longer needed. | ||
* Accept the latest transaction author agreement on the specified network. | ||
* @summary [Deprecated] Accept network transaction author agreement | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Retrieve a list of all connections. | ||
* Optionally, list only connections in a specified state. | ||
* @summary List all connections | ||
@@ -69,29 +121,27 @@ * @param [options] The optional parameters | ||
/** | ||
* 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. | ||
* The response body includes details about the newly creation connection | ||
* <br /><i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/connections#creating-new-connection-invitation">documentation</a> | ||
* on how to present the invitation data to mobile clients using a QR code.</i> | ||
* @summary Create a new connection | ||
* 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. | ||
* The response body includes details about the newly creation connection. | ||
* @summary Create connection | ||
* @param body Connection invitation parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateConnectionResponse> | ||
*/ | ||
createConnection(options?: Models.CredentialsServiceClientCreateConnectionOptionalParams): 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.CredentialsServiceClientCreateConnectionOptionalParams, callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
createConnection(body: Models.ConnectionInvitationParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract>): void; | ||
/** | ||
* Get the details of a connection (including invitation details). | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/connections#retrieving-connections-data">documentation</a> on | ||
* how to get connection by sending the connectionId.</i> | ||
* @summary Get a connection by connectionId | ||
* @param connectionId The connection identifier. | ||
* Get the specified connection. | ||
* @summary Get connection | ||
* @param connectionId The connection identifier | ||
* @param [options] The optional parameters | ||
@@ -102,3 +152,3 @@ * @returns Promise<Models.GetConnectionResponse> | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param connectionId The connection identifier | ||
* @param callback The callback | ||
@@ -108,3 +158,3 @@ */ | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param connectionId The connection identifier | ||
* @param options The optional parameters | ||
@@ -115,5 +165,5 @@ * @param callback The callback | ||
/** | ||
* Delete a connection record | ||
* @summary Delete a connection record | ||
* @param connectionId Connection identifier | ||
* Delete the specified connection. | ||
* @summary Delete connection | ||
* @param connectionId The connection identifier | ||
* @param [options] The optional parameters | ||
@@ -124,3 +174,3 @@ * @returns Promise<msRest.RestResponse> | ||
/** | ||
* @param connectionId Connection identifier | ||
* @param connectionId The connection identifier | ||
* @param callback The callback | ||
@@ -130,3 +180,3 @@ */ | ||
/** | ||
* @param connectionId Connection identifier | ||
* @param connectionId The connection identifier | ||
* @param options The optional parameters | ||
@@ -137,4 +187,5 @@ * @param callback The callback | ||
/** | ||
* Lists the credentials. | ||
* @summary Lists the credentials. | ||
* List all credentials that match any specified query parameters. | ||
* No query parameters are required, but any provided will filter the results. | ||
* @summary List all credentials | ||
* @param [options] The optional parameters | ||
@@ -154,24 +205,24 @@ * @returns Promise<Models.ListCredentialsResponse> | ||
/** | ||
* This will send a credential offer of the specified definitionId to the specified connectionId. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#1-send-a-credential-offer">documentation</a> on | ||
* how to send credential offer.</i> | ||
* @summary Sends credential offer of the specified DefinitionId to the specified ConnectionId | ||
* Send a credential offer of the specified credential definition to the specified connection. | ||
* @summary Create and offer credential | ||
* @param body The definition and connection to which this offer will be sent | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateCredentialResponse> | ||
*/ | ||
createCredential(options?: Models.CredentialsServiceClientCreateCredentialOptionalParams): Promise<Models.CreateCredentialResponse>; | ||
createCredential(body: Models.CredentialOfferParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateCredentialResponse>; | ||
/** | ||
* @param body The definition and connection to which this offer will be sent | ||
* @param callback The callback | ||
*/ | ||
createCredential(callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
createCredential(body: Models.CredentialOfferParameters, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* @param body The definition and connection to which this offer will be sent | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createCredential(options: Models.CredentialsServiceClientCreateCredentialOptionalParams, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
createCredential(body: Models.CredentialOfferParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* Gets the credentials. | ||
* @summary Gets the credentials. | ||
* @param credentialId The credential identifier. | ||
* Get the specified credential. | ||
* @summary Get credential | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
@@ -182,3 +233,3 @@ * @returns Promise<Models.GetCredentialResponse> | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
@@ -188,3 +239,3 @@ */ | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
@@ -195,8 +246,8 @@ * @param callback The callback | ||
/** | ||
* This simply needs the credential identifier. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#3-issue-credential">documentation</a> on how to | ||
* issue a credential.</i> | ||
* @summary Issues the credential. | ||
* @param credentialId The credential identifier. | ||
* Issue the specified credential. | ||
* 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. | ||
* @summary Issue credential | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
@@ -207,3 +258,3 @@ * @returns Promise<msRest.RestResponse> | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
@@ -213,3 +264,3 @@ */ | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
@@ -220,10 +271,8 @@ * @param callback The callback | ||
/** | ||
* Revoke credential that was issued previously. Process of revocation will update the revocation | ||
* registry locally and on the ledger. Issued credentials can still participate in proof workflows | ||
* and be considered valid, but only if the verifying ignores the revocation trail. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#revoke-a-credential">documentation</a> on how to | ||
* issue a credential.</i> | ||
* @summary Revokes an isused credential | ||
* @param credentialId Credential identifier. | ||
* Revoke credential that was issued previously. | ||
* Process of revocation will update the revocation registry locally and on the ledger. | ||
* Issued credentials can still participate in proof workflows and be considered valid, but only if | ||
* the verifying ignores the revocation trail. | ||
* @summary Revoke an issued credential | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
@@ -234,3 +283,3 @@ * @returns Promise<msRest.RestResponse> | ||
/** | ||
* @param credentialId Credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
@@ -240,3 +289,3 @@ */ | ||
/** | ||
* @param credentialId Credential identifier. | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
@@ -247,31 +296,32 @@ * @param callback The callback | ||
/** | ||
* List all credential definitions by this issuer. | ||
* @summary List all credential definitions by this issuer. | ||
* Delete the specified credential. | ||
* This endpoint does not revoke the credential. | ||
* @summary Delete credential | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListCredentialDefinitionsResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
listCredentialDefinitions(options?: msRest.RequestOptionsBase): Promise<Models.ListCredentialDefinitionsResponse>; | ||
deleteCredential(credentialId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
*/ | ||
listCredentialDefinitions(callback: msRest.ServiceCallback<Models.CredentialDefinitionContract[]>): void; | ||
deleteCredential(credentialId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listCredentialDefinitions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract[]>): void; | ||
deleteCredential(credentialId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* A credential definition is created and saved on your cloud agent. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#create-credential-definitions">documentation</a> | ||
* on how to create new credential definition.</i> | ||
* @summary Create new credential definition and schema with the given parameters. | ||
* List all verification policies for the authenticated organization. | ||
* @summary List all verification policies | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateCredentialDefinitionResponse> | ||
* @returns Promise<Models.ListVerificationPoliciesResponse> | ||
*/ | ||
createCredentialDefinition(options?: Models.CredentialsServiceClientCreateCredentialDefinitionOptionalParams): Promise<Models.CreateCredentialDefinitionResponse>; | ||
listVerificationPolicies(options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationPoliciesResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
createCredentialDefinition(callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
listVerificationPolicies(callback: msRest.ServiceCallback<Models.VerificationPolicyContract[]>): void; | ||
/** | ||
@@ -281,69 +331,71 @@ * @param options The optional parameters | ||
*/ | ||
createCredentialDefinition(options: Models.CredentialsServiceClientCreateCredentialDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
listVerificationPolicies(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyContract[]>): void; | ||
/** | ||
* Get the credential definition with the specified identifier. | ||
* @summary Get the credential definition with the specified identifier. | ||
* @param definitionId | ||
* Create a verification policy from the specified parameters. | ||
* @summary Create verification policy | ||
* @param body The verification policy parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetCredentialDefinitionResponse> | ||
* @returns Promise<Models.CreateVerificationPolicyResponse> | ||
*/ | ||
getCredentialDefinition(definitionId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetCredentialDefinitionResponse>; | ||
createVerificationPolicy(body: Models.VerificationPolicyParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationPolicyResponse>; | ||
/** | ||
* @param definitionId | ||
* @param body The verification policy parameters | ||
* @param callback The callback | ||
*/ | ||
getCredentialDefinition(definitionId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
createVerificationPolicy(body: Models.VerificationPolicyParameters, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* @param definitionId | ||
* @param body The verification policy parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getCredentialDefinition(definitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
createVerificationPolicy(body: Models.VerificationPolicyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* List the schemas registered or used by this issuer. | ||
* @summary List the schemas registered or used by this issuer. | ||
* Get the specified verification policy. | ||
* @summary Get verification policy | ||
* @param policyId The verification policy identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListSchemasResponse> | ||
* @returns Promise<Models.GetVerificationPolicyResponse> | ||
*/ | ||
listSchemas(options?: msRest.RequestOptionsBase): Promise<Models.ListSchemasResponse>; | ||
getVerificationPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationPolicyResponse>; | ||
/** | ||
* @param policyId The verification policy identifier | ||
* @param callback The callback | ||
*/ | ||
listSchemas(callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
getVerificationPolicy(policyId: string, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* @param policyId The verification policy identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listSchemas(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
getVerificationPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* Register schema with the current agency tenant and write the schema | ||
* to the ledger using the tenant as issuer. This does not create credential definition. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#create-schemas">documentation</a> on how to | ||
* create new schema.</i> | ||
* @summary Create new schema | ||
* Delete the specified verification policy. | ||
* @summary Delete verification policy | ||
* @param policyId The verification policy identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateSchemaResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
createSchema(options?: Models.CredentialsServiceClientCreateSchemaOptionalParams): Promise<Models.CreateSchemaResponse>; | ||
deleteVerificationPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param policyId The verification policy identifier | ||
* @param callback The callback | ||
*/ | ||
createSchema(callback: msRest.ServiceCallback<string>): void; | ||
deleteVerificationPolicy(policyId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param policyId The verification policy identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createSchema(options: Models.CredentialsServiceClientCreateSchemaOptionalParams, callback: msRest.ServiceCallback<string>): void; | ||
deleteVerificationPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Get a collection of available tenants for the current authorization context. | ||
* @summary List available tenants | ||
* List all credential definitions for the authorization context. | ||
* @summary List all credential definitions | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListTenantsResponse> | ||
* @returns Promise<Models.ListCredentialDefinitionsResponse> | ||
*/ | ||
listTenants(options?: msRest.RequestOptionsBase): Promise<Models.ListTenantsResponse>; | ||
listCredentialDefinitions(options?: msRest.RequestOptionsBase): Promise<Models.ListCredentialDefinitionsResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
listTenants(callback: msRest.ServiceCallback<Models.TenantContract[]>): void; | ||
listCredentialDefinitions(callback: msRest.ServiceCallback<Models.CredentialDefinitionContract[]>): void; | ||
/** | ||
@@ -353,151 +405,125 @@ * @param options The optional parameters | ||
*/ | ||
listTenants(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract[]>): void; | ||
listCredentialDefinitions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract[]>): void; | ||
/** | ||
* Create new tenant and setup a unique agency endpoint. The agency will be set as an issuer | ||
* @summary Create new tenant | ||
* A credential definition is created and saved on your cloud agent. | ||
* @summary Create credential definition and schema from parameters | ||
* @param body Definition parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateTenantResponse> | ||
* @returns Promise<Models.CreateCredentialDefinitionResponse> | ||
*/ | ||
createTenant(options?: Models.CredentialsServiceClientCreateTenantOptionalParams): Promise<Models.CreateTenantResponse>; | ||
createCredentialDefinition(body: Models.CredentialDefinitionFromSchemaParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateCredentialDefinitionResponse>; | ||
/** | ||
* @param body Definition parameters | ||
* @param callback The callback | ||
*/ | ||
createTenant(callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
createCredentialDefinition(body: Models.CredentialDefinitionFromSchemaParameters, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* @param body Definition parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createTenant(options: Models.CredentialsServiceClientCreateTenantOptionalParams, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
createCredentialDefinition(body: Models.CredentialDefinitionFromSchemaParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* Returns the agent configuration | ||
* @summary Returns the agent configuration | ||
* @param tenantId | ||
* Get the specified credential definition. | ||
* @summary Get credential definition | ||
* @param definitionId The credential definition identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetTenantResponse> | ||
* @returns Promise<Models.GetCredentialDefinitionResponse> | ||
*/ | ||
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>; | ||
getCredentialDefinition(definitionId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetCredentialDefinitionResponse>; | ||
/** | ||
* @param tenantId | ||
* @param definitionId The credential definition identifier | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
getCredentialDefinition(definitionId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* @param tenantId | ||
* @param definitionId The credential definition identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
getCredentialDefinition(definitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): 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 | ||
* Create a credential definition from the specified schema. | ||
* @summary Create credential definition from schema | ||
* @param schemaId The schema identifier | ||
* @param body The definition parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.CreateCredentialDefinitionForSchemaIdResponse> | ||
*/ | ||
deleteTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
createCredentialDefinitionForSchemaId(schemaId: string, body: Models.CredentialDefinitionParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>; | ||
/** | ||
* @param tenantId | ||
* @param schemaId The schema identifier | ||
* @param body The definition parameters | ||
* @param callback The callback | ||
*/ | ||
deleteTenant(tenantId: string, callback: msRest.ServiceCallback<void>): void; | ||
createCredentialDefinitionForSchemaId(schemaId: string, body: Models.CredentialDefinitionParameters, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* @param tenantId | ||
* @param schemaId The schema identifier | ||
* @param body The definition parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
createCredentialDefinitionForSchemaId(schemaId: string, body: Models.CredentialDefinitionParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#list-all-verifications-for-a-connection">documentation</a> | ||
* on how to list verification credentials by connection id.</i> | ||
* @summary Lists the verifications for connection. | ||
* Delete the specified credential definition. | ||
* @summary Delete credential definition | ||
* @param credentialDefinitionId The credential definition identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListVerificationsForConnectionResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
listVerificationsForConnection(options?: Models.CredentialsServiceClientListVerificationsForConnectionOptionalParams): Promise<Models.ListVerificationsForConnectionResponse>; | ||
deleteCredentialDefinition(credentialDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param credentialDefinitionId The credential definition identifier | ||
* @param callback The callback | ||
*/ | ||
listVerificationsForConnection(callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
deleteCredentialDefinition(credentialDefinitionId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param credentialDefinitionId The credential definition identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listVerificationsForConnection(options: Models.CredentialsServiceClientListVerificationsForConnectionOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
deleteCredentialDefinition(credentialDefinitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* This endpoint can be used to send a verification definition to a connection, which will create a | ||
* verification ID to track the response from the connection. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#create-a-verification">documentation</a> on how | ||
* to create verification credentials.</i> | ||
* | ||
* If the parameter {connectionId} is not specified, this endpoint will create a connectionless | ||
* verification. A URL will be generated that can be shared with anonymous user. | ||
* @summary Creates the specified create verification. | ||
* Register schema with the current agency tenant and write the schema to the ledger using the | ||
* tenant as issuer. | ||
* This does not create credential definition. | ||
* @summary Create schema | ||
* @param body Schema parameters | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.CreateVerificationResponse> | ||
* @returns Promise<Models.CreateSchemaResponse> | ||
*/ | ||
createVerification(options?: Models.CredentialsServiceClientCreateVerificationOptionalParams): Promise<Models.CreateVerificationResponse>; | ||
createSchema(body: Models.SchemaParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateSchemaResponse>; | ||
/** | ||
* @param body Schema parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
createVerification(callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
createSchema(body: Models.SchemaParameters, callback: msRest.ServiceCallback<string>): void; | ||
/** | ||
* @param body Schema parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
createVerification(options: Models.CredentialsServiceClientCreateVerificationOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
createSchema(body: Models.SchemaParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#get-verification-by-identifier">documentation</a> | ||
* on how to list verification credentials by verification id.</i> | ||
* @summary Get the verification with the given identifier | ||
* @param verificationId The verification identifier. | ||
* List all schemas registered to or used by the authenticated organization. | ||
* @summary List all schemas | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetVerificationResponse> | ||
* @returns Promise<Models.ListSchemasResponse> | ||
*/ | ||
getVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationResponse>; | ||
listSchemas(options?: msRest.RequestOptionsBase): Promise<Models.ListSchemasResponse>; | ||
/** | ||
* @param verificationId The verification identifier. | ||
* @param callback The callback | ||
*/ | ||
getVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
listSchemas(callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
/** | ||
* @param verificationId The verification identifier. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
listSchemas(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SchemaRecord[]>): void; | ||
/** | ||
* Delete Verification by Id | ||
* @summary Delete Verification by Id | ||
* @param verificationId | ||
* Please use Verification Policies endpoints. | ||
* Get the specified verification definition. | ||
* @summary [Deprecated] Get verification definition | ||
* @param definitionId The verification definition identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
deleteVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param verificationId | ||
* @param callback The callback | ||
*/ | ||
deleteVerification(verificationId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param verificationId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Use the verification definition ID to get a specific verification definition. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#get-the-specified-verification-definition">documentation</a> | ||
* on how to get verification definition by definition Id.</i> | ||
* @summary Gets the specified verification definition. | ||
* @param definitionId The verification identifier. | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
@@ -508,3 +534,3 @@ * @returns Promise<Models.GetVerificationDefinitionResponse> | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param definitionId The verification definition identifier | ||
* @param callback The callback | ||
@@ -515,3 +541,3 @@ * @deprecated This operation is deprecated. Please do not use it any longer. | ||
/** | ||
* @param definitionId The verification identifier. | ||
* @param definitionId The verification definition identifier | ||
* @param options The optional parameters | ||
@@ -523,7 +549,5 @@ * @param callback The callback | ||
/** | ||
* This will list all of the verification definitions that you have created with your organization. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#list-all-verification-definitions">documentation</a> | ||
* on how to list verification definitions.</i> | ||
* @summary List all verification definitions. | ||
* Please use Verification Policies endpoints. | ||
* List all verification definitions for the authenticated organization. | ||
* @summary [Deprecated] List all verification definitions | ||
* @param [options] The optional parameters | ||
@@ -546,8 +570,7 @@ * @deprecated This operation is deprecated. Please do not use it any longer. | ||
/** | ||
* A verification definition is created and saved on your cloud agent. You can discover your | ||
* definition based on the ID that is returned or the name. | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/verifications#create-a-verification-definition">documentation</a> | ||
* on how to create new verification definition.</i> | ||
* @summary Creates new verification definition. | ||
* Please use Verification Policies endpoints. | ||
* A verification definition is created and saved on your cloud agent. | ||
* You can discover your definition based on the ID that is returned or the name. | ||
* @summary [Deprecated] Create verification definition | ||
* @param body The proof request | ||
* @param [options] The optional parameters | ||
@@ -557,9 +580,11 @@ * @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
createVerificationDefinition(options?: Models.CredentialsServiceClientCreateVerificationDefinitionOptionalParams): Promise<Models.CreateVerificationDefinitionResponse>; | ||
createVerificationDefinition(body: Models.ProofRequest, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationDefinitionResponse>; | ||
/** | ||
* @param body The proof request | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
createVerificationDefinition(callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
createVerificationDefinition(body: Models.ProofRequest, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* @param body The proof request | ||
* @param options The optional parameters | ||
@@ -569,298 +594,288 @@ * @param callback The callback | ||
*/ | ||
createVerificationDefinition(options: Models.CredentialsServiceClientCreateVerificationDefinitionOptionalParams, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
createVerificationDefinition(body: Models.ProofRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationDefinitionContract>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/webhooks#list-registered-webhooks">documentation</a> on how | ||
* to list webhooks.</i> | ||
* @summary List all webhooks | ||
* Please use Verification Policies endpoints. | ||
* Delete the specified verification definition. | ||
* @summary [Deprecated] Delete verification definition | ||
* @param verificationDefinitionId The verification definition identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListWebhooksResponse> | ||
*/ | ||
listWebhooks(options?: msRest.RequestOptionsBase): Promise<Models.ListWebhooksResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
listWebhooks(callback: msRest.ServiceCallback<Models.WebhookContract[]>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listWebhooks(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WebhookContract[]>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/webhooks#create-a-notification-webhook">documentation</a> on | ||
* how to create a webhook.</i> | ||
* @summary Create new webhook | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateWebhookResponse> | ||
*/ | ||
createWebhook(options?: Models.CredentialsServiceClientCreateWebhookOptionalParams): Promise<Models.CreateWebhookResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
createWebhook(callback: msRest.ServiceCallback<Models.WebhookContract>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createWebhook(options: Models.CredentialsServiceClientCreateWebhookOptionalParams, callback: msRest.ServiceCallback<Models.WebhookContract>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/webhooks#remove-a-webhook">documentation</a> on how to remove | ||
* a webhook.</i> | ||
* @summary Remove registered webhook | ||
* @param webhookId | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
removeWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteVerificationDefinition(verificationDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param webhookId | ||
* @param verificationDefinitionId The verification definition identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
removeWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
deleteVerificationDefinition(verificationDefinitionId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param webhookId | ||
* @param verificationDefinitionId The verification definition identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
removeWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteVerificationDefinition(verificationDefinitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* SendMessage | ||
* @summary SendMessage | ||
* Please use the Provider API instead. | ||
* List all tenants for the current authorization context. | ||
* @summary [Deprecated] List all tenants | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.ListTenantsResponse> | ||
*/ | ||
sendMessage(options?: Models.CredentialsServiceClientSendMessageOptionalParams): Promise<msRest.RestResponse>; | ||
listTenants(options?: msRest.RequestOptionsBase): Promise<Models.ListTenantsResponse>; | ||
/** | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
sendMessage(callback: msRest.ServiceCallback<void>): void; | ||
listTenants(callback: msRest.ServiceCallback<Models.TenantContract[]>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
sendMessage(options: Models.CredentialsServiceClientSendMessageOptionalParams, callback: msRest.ServiceCallback<void>): void; | ||
listTenants(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract[]>): void; | ||
/** | ||
* ListMessages | ||
* @summary ListMessages | ||
* @param connectionId | ||
* Please use the Provider API instead. | ||
* Create a new tenant and setup a unique agency endpoint. | ||
* The agency will be set as an issuer. | ||
* @summary [Deprecated] Create tenant | ||
* @param body Configuration options for creating new tenant | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListMessagesResponse> | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.CreateTenantResponse> | ||
*/ | ||
listMessages(connectionId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListMessagesResponse>; | ||
createTenant(body: Models.TenantParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateTenantResponse>; | ||
/** | ||
* @param connectionId | ||
* @param body Configuration options for creating new tenant | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
listMessages(connectionId: string, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void; | ||
createTenant(body: Models.TenantParameters, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* @param connectionId | ||
* @param body Configuration options for creating new tenant | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
listMessages(connectionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageRecord[]>): void; | ||
createTenant(body: Models.TenantParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* GetMessage | ||
* @summary GetMessage | ||
* @param messageId | ||
* Please use the Provider API instead. | ||
* Get the configuration for the specified tenant. | ||
* @summary [Deprectaed] Get tenant | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetMessageResponse> | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.GetTenantResponse> | ||
*/ | ||
getMessage(messageId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetMessageResponse>; | ||
getTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTenantResponse>; | ||
/** | ||
* @param messageId | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
getMessage(messageId: string, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void; | ||
getTenant(tenantId: string, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* @param messageId | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
getMessage(messageId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BasicMessageContract>): void; | ||
getTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/webhooks#enable-or-disable-a-webhook">documentation</a> on | ||
* how to enable a webhook.</i> | ||
* @summary Enables a webhook | ||
* @param webhookId | ||
* Please use the Provider API instead. | ||
* Permanently remove the specified tenant, including their wallet, endpoint registrations and all | ||
* data. | ||
* All definitions, connections and credentials issued will be deleted. | ||
* This action cannot be reverted. | ||
* @summary [Deprecated] Delete tenant | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
enableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteTenant(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param webhookId | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
enableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
deleteTenant(tenantId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param webhookId | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
enableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteTenant(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/webhooks#enable-or-disable-a-webhook">documentation</a> on | ||
* how to disable a webhook.</i> | ||
* @summary Disables a webhook | ||
* @param webhookId | ||
* Please use the Provider API instead. | ||
* 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 [Deprecated] Get issuer status for current tenant | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.GetIssuerStatusResponse> | ||
*/ | ||
disableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
getIssuerStatus(options?: msRest.RequestOptionsBase): Promise<Models.GetIssuerStatusResponse>; | ||
/** | ||
* @param webhookId | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
disableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
getIssuerStatus(callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
/** | ||
* @param webhookId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
disableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
getIssuerStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IssuerStatusContract>): 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 | ||
* Send a verification to the specified connection using an existing policy. | ||
* @summary Send verification to connection from policy | ||
* @param connectionId The connection identifier | ||
* @param policyId The policy identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetTransactionAuthorAgreementResponse> | ||
* @returns Promise<Models.SendVerificationFromPolicyResponse> | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetTransactionAuthorAgreementResponse>; | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.SendVerificationFromPolicyResponse>; | ||
/** | ||
* @param networkId Network identifier | ||
* @param connectionId The connection identifier | ||
* @param policyId The policy identifier | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param networkId Network identifier | ||
* @param connectionId The connection identifier | ||
* @param policyId The policy identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getTransactionAuthorAgreement(networkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkTxnAgreementContract>): void; | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Accept the latest transaction author agreement on the specified network. | ||
* @summary Accept the latest transaction author agreement on the specified network. | ||
* @param tenantId | ||
* Send a verification request to the specified connection from a set of parameters. | ||
* @summary Send verification to connection from parameters | ||
* @param connectionId The connection identifier | ||
* @param body The policy parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.SendVerificationFromParametersResponse> | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
sendVerificationFromParameters(connectionId: string, body: Models.VerificationPolicyParameters, options?: msRest.RequestOptionsBase): Promise<Models.SendVerificationFromParametersResponse>; | ||
/** | ||
* @param tenantId | ||
* @param connectionId The connection identifier | ||
* @param body The policy parameters | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, callback: msRest.ServiceCallback<void>): void; | ||
sendVerificationFromParameters(connectionId: string, body: Models.VerificationPolicyParameters, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param tenantId | ||
* @param connectionId The connection identifier | ||
* @param body The policy parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
acceptTransactionAuthorAgreement(tenantId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
sendVerificationFromParameters(connectionId: string, body: Models.VerificationPolicyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* <i>Please check the <a | ||
* href="https://docs.trinsic.id/docs/credentials#from-schema">documentation</a> on how to create | ||
* new credential definition from schema id.</i> | ||
* @summary Create credential definition from existing schema identifier. | ||
* @param schemaId | ||
* Create a verification from the specified policy and send it to the specified connection. | ||
* @summary Send verification from policy | ||
* @param connectionId The connection identifier | ||
* @param policyId The verification policy identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateCredentialDefinitionForSchemaIdResponse> | ||
* @returns Promise<Models.SendVerificationFromProposalResponse> | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, options?: Models.CredentialsServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams): Promise<Models.CreateCredentialDefinitionForSchemaIdResponse>; | ||
sendVerificationFromProposal(connectionId: string, policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.SendVerificationFromProposalResponse>; | ||
/** | ||
* @param schemaId | ||
* @param connectionId The connection identifier | ||
* @param policyId The verification policy identifier | ||
* @param callback The callback | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
sendVerificationFromProposal(connectionId: string, policyId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param schemaId | ||
* @param connectionId The connection identifier | ||
* @param policyId The verification policy identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createCredentialDefinitionForSchemaId(schemaId: string, options: Models.CredentialsServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams, callback: msRest.ServiceCallback<Models.CredentialDefinitionContract>): void; | ||
sendVerificationFromProposal(connectionId: string, policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): 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. | ||
* Create a connectionless verification from the specified policy. | ||
* Connectionless transport uses URLs that can be shared with the user over any existing transport | ||
* (email, SMS, web). | ||
* @summary Create connectionless verification from policy | ||
* @param policyId The policy identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetIssuerStatusResponse> | ||
* @returns Promise<Models.CreateVerificationFromPolicyResponse> | ||
*/ | ||
getIssuerStatus(options?: msRest.RequestOptionsBase): Promise<Models.GetIssuerStatusResponse>; | ||
createVerificationFromPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationFromPolicyResponse>; | ||
/** | ||
* @param policyId The policy identifier | ||
* @param callback The callback | ||
*/ | ||
getIssuerStatus(callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
createVerificationFromPolicy(policyId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param policyId The policy identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getIssuerStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IssuerStatusContract>): void; | ||
createVerificationFromPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Delete credential definition | ||
* @summary Delete credential definition | ||
* @param credentialDefinitionId | ||
* Create verification from parameters. | ||
* Connectionless transport uses URLs that can be shared with the user over any existing transport | ||
* (email, SMS, web). | ||
* @summary Create connectionless verification from parameters | ||
* @param body The policy parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.CreateVerificationFromParametersResponse> | ||
*/ | ||
deleteCredentialDefinition(credentialDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
createVerificationFromParameters(body: Models.VerificationPolicyParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationFromParametersResponse>; | ||
/** | ||
* @param credentialDefinitionId | ||
* @param body The policy parameters | ||
* @param callback The callback | ||
*/ | ||
deleteCredentialDefinition(credentialDefinitionId: string, callback: msRest.ServiceCallback<void>): void; | ||
createVerificationFromParameters(body: Models.VerificationPolicyParameters, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param credentialDefinitionId | ||
* @param body The policy parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteCredentialDefinition(credentialDefinitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
createVerificationFromParameters(body: Models.VerificationPolicyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Delete Verification Definition by Id | ||
* @summary Delete Verification Definition by Id | ||
* @param verificationDefinitionId | ||
* List all verifications. | ||
* Optionally filter by connection and/or definition. | ||
* @summary List all verifications | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.ListVerificationsResponse> | ||
*/ | ||
deleteVerificationDefinition(verificationDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
listVerifications(options?: Models.CredentialsServiceClientListVerificationsOptionalParams): Promise<Models.ListVerificationsResponse>; | ||
/** | ||
* @param verificationDefinitionId | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
deleteVerificationDefinition(verificationDefinitionId: string, callback: msRest.ServiceCallback<void>): void; | ||
listVerifications(callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
/** | ||
* @param verificationDefinitionId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
deleteVerificationDefinition(verificationDefinitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
listVerifications(options: Models.CredentialsServiceClientListVerificationsOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract[]>): 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 | ||
* Please use SendVerification(policyId) or CreateVerification(policyId) instead. | ||
* This endpoint can be used to send a verification definition to a connection, which will create a | ||
* verification ID to track the response from the connection. | ||
* If the parameter {connectionId} is not specified, this endpoint will create a connectionless | ||
* verification. A URL will be generated that can be shared with anonymous user. | ||
* @summary [Deprecated] Create/send verification | ||
* @param body The verification parameters | ||
* @param [options] The optional parameters | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.VerifyVerificationResponse> | ||
* @returns Promise<Models.CreateVerificationResponse> | ||
*/ | ||
verifyVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.VerifyVerificationResponse>; | ||
createVerification(body: Models.VerificationParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationResponse>; | ||
/** | ||
* @param verificationId Verification identifier | ||
* @param body The verification parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
verifyVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationResult>): void; | ||
createVerification(body: Models.VerificationParameters, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param verificationId Verification identifier | ||
* @param body The verification parameters | ||
* @param options The optional parameters | ||
@@ -870,209 +885,174 @@ * @param callback The callback | ||
*/ | ||
verifyVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationResult>): void; | ||
createVerification(body: Models.VerificationParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Lists the verification policies. | ||
* @summary Lists the verification policies. | ||
* Get the specified verification. | ||
* @summary Get verification | ||
* @param verificationId The verification identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListVerificationPoliciesResponse> | ||
* @returns Promise<Models.GetVerificationResponse> | ||
*/ | ||
listVerificationPolicies(options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationPoliciesResponse>; | ||
getVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationResponse>; | ||
/** | ||
* @param verificationId The verification identifier | ||
* @param callback The callback | ||
*/ | ||
listVerificationPolicies(callback: msRest.ServiceCallback<Models.VerificationPolicyContract[]>): void; | ||
getVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param verificationId The verification identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listVerificationPolicies(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyContract[]>): void; | ||
getVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Creates the verification policy. | ||
* @summary Creates the verification policy. | ||
* Delete the specified verification. | ||
* @summary Delete verification | ||
* @param verificationId The verification identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateVerificationPolicyResponse> | ||
*/ | ||
createVerificationPolicy(options?: Models.CredentialsServiceClientCreateVerificationPolicyOptionalParams): Promise<Models.CreateVerificationPolicyResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
createVerificationPolicy(callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationPolicy(options: Models.CredentialsServiceClientCreateVerificationPolicyOptionalParams, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* Gets the verification policy. | ||
* @summary Gets the verification policy. | ||
* @param policyId The verification policy identifier. | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetVerificationPolicyResponse> | ||
*/ | ||
getVerificationPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationPolicyResponse>; | ||
/** | ||
* @param policyId The verification policy identifier. | ||
* @param callback The callback | ||
*/ | ||
getVerificationPolicy(policyId: string, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* @param policyId The verification policy identifier. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getVerificationPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyContract>): void; | ||
/** | ||
* Deletes the verification policy. | ||
* @summary Deletes the verification policy. | ||
* @param policyId The policy identifier. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
deleteVerificationPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param policyId The policy identifier. | ||
* @param verificationId The verification identifier | ||
* @param callback The callback | ||
*/ | ||
deleteVerificationPolicy(policyId: string, callback: msRest.ServiceCallback<void>): void; | ||
deleteVerification(verificationId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param policyId The policy identifier. | ||
* @param verificationId The verification identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteVerificationPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Send a verification to the specified connection from existing policy | ||
* @summary Send a verification to the specified connection from existing policy | ||
* @param connectionId The connection identifier. | ||
* @param policyId The policy identifier. | ||
* This action is now obsolete. Verifications are automatically verified when they are received. | ||
* Execute verification on this record. This is an expensive action and is executed by verifying | ||
* the proof against the ledger data. | ||
* @summary [Deprecated] Verify verification | ||
* @param verificationId The verification identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.SendVerificationFromPolicyResponse> | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
* @returns Promise<Models.VerifyVerificationResponse> | ||
*/ | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.SendVerificationFromPolicyResponse>; | ||
verifyVerification(verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.VerifyVerificationResponse>; | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param policyId The policy identifier. | ||
* @param verificationId The verification identifier | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
verifyVerification(verificationId: string, callback: msRest.ServiceCallback<Models.VerificationResult>): void; | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param policyId The policy identifier. | ||
* @param verificationId The verification identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
* @deprecated This operation is deprecated. Please do not use it any longer. | ||
*/ | ||
sendVerificationFromPolicy(connectionId: string, policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
verifyVerification(verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationResult>): void; | ||
/** | ||
* Connectionless transport uses URLs that can be shared with the user over any | ||
* existing transport (email, SMS, web). | ||
* @summary Create a verification from existing policy used for connectionless transport. | ||
* @param policyId The policy identifier. | ||
* List all webhooks registered with the authenticated organization. | ||
* @summary List all webhooks | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateVerificationFromPolicyResponse> | ||
* @returns Promise<Models.ListWebhooksResponse> | ||
*/ | ||
createVerificationFromPolicy(policyId: string, options?: msRest.RequestOptionsBase): Promise<Models.CreateVerificationFromPolicyResponse>; | ||
listWebhooks(options?: msRest.RequestOptionsBase): Promise<Models.ListWebhooksResponse>; | ||
/** | ||
* @param policyId The policy identifier. | ||
* @param callback The callback | ||
*/ | ||
createVerificationFromPolicy(policyId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
listWebhooks(callback: msRest.ServiceCallback<Models.WebhookContract[]>): void; | ||
/** | ||
* @param policyId The policy identifier. | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationFromPolicy(policyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
listWebhooks(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WebhookContract[]>): void; | ||
/** | ||
* Connectionless transport uses URLs that can be shared with the user over any | ||
* existing transport (email, SMS, web). | ||
* @summary Create a verification from parameters used for connectionless transport. | ||
* Register a webhook with the authenticated organization. | ||
* @summary Create webhook | ||
* @param body The webhook parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateVerificationFromParametersResponse> | ||
* @returns Promise<Models.CreateWebhookResponse> | ||
*/ | ||
createVerificationFromParameters(options?: Models.CredentialsServiceClientCreateVerificationFromParametersOptionalParams): Promise<Models.CreateVerificationFromParametersResponse>; | ||
createWebhook(body: Models.WebhookParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateWebhookResponse>; | ||
/** | ||
* @param body The webhook parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationFromParameters(callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
createWebhook(body: Models.WebhookParameters, callback: msRest.ServiceCallback<Models.WebhookContract>): void; | ||
/** | ||
* @param body The webhook parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createVerificationFromParameters(options: Models.CredentialsServiceClientCreateVerificationFromParametersOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
createWebhook(body: Models.WebhookParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WebhookContract>): void; | ||
/** | ||
* Health | ||
* @summary Health | ||
* Remove a registered webhook from the authenticated organization. | ||
* @summary Remove webhook | ||
* @param webhookId The webhook identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
health(options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
removeWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param webhookId The webhook identifier | ||
* @param callback The callback | ||
*/ | ||
health(callback: msRest.ServiceCallback<void>): void; | ||
removeWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param webhookId The webhook identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
health(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
removeWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Send a verification to the specified connection from parameters | ||
* @summary Send a verification to the specified connection from parameters | ||
* @param connectionId The connection identifier. | ||
* Enable a registered webhook for the authenticated organization. | ||
* @summary Enable webhook | ||
* @param webhookId The webhook identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.SendVerificationFromParametersResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
sendVerificationFromParameters(connectionId: string, options?: Models.CredentialsServiceClientSendVerificationFromParametersOptionalParams): Promise<Models.SendVerificationFromParametersResponse>; | ||
enableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param webhookId The webhook identifier | ||
* @param callback The callback | ||
*/ | ||
sendVerificationFromParameters(connectionId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
enableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param connectionId The connection identifier. | ||
* @param webhookId The webhook identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
sendVerificationFromParameters(connectionId: string, options: Models.CredentialsServiceClientSendVerificationFromParametersOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
enableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* This endpoint doesn't revoke the credential. | ||
* @summary Delete the credential record permanently | ||
* @param credentialId The credential identifier. | ||
* Enable a registered webhook for the authenticated organization. | ||
* @summary Disable webhook | ||
* @param webhookId The webhook identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
deleteCredential(credentialId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
disableWebhook(webhookId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param webhookId The webhook identifier | ||
* @param callback The callback | ||
*/ | ||
deleteCredential(credentialId: string, callback: msRest.ServiceCallback<void>): void; | ||
disableWebhook(webhookId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param credentialId The credential identifier. | ||
* @param webhookId The webhook identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteCredential(credentialId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
disableWebhook(webhookId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Creates and send a verification from an existing proposal | ||
* @summary Creates and send a verification from an existing proposal | ||
* @param connectionId | ||
* @param verificationId | ||
* Check the health of the API. | ||
* @summary Health check | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.SendVerificationFromProposalResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
sendVerificationFromProposal(connectionId: string, verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.SendVerificationFromProposalResponse>; | ||
health(options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param connectionId | ||
* @param verificationId | ||
* @param callback The callback | ||
*/ | ||
sendVerificationFromProposal(connectionId: string, verificationId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
health(callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param connectionId | ||
* @param verificationId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
sendVerificationFromProposal(connectionId: string, verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
health(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
} | ||
export { CredentialsServiceClient, CredentialsServiceClientContext, Models as CredentialsServiceModels, Mappers as CredentialsServiceMappers }; |
@@ -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"); | ||
}; | ||
CredentialsServiceClient.prototype.getTransactionAuthorAgreement = function (networkId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
options: options | ||
}, getTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.acceptTransactionAuthorAgreement = function (tenantId, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
options: options | ||
}, acceptTransactionAuthorAgreementOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listConnections = function (options, callback) { | ||
@@ -57,4 +80,5 @@ return this.sendOperationRequest({ | ||
}; | ||
CredentialsServiceClient.prototype.createConnection = function (options, callback) { | ||
CredentialsServiceClient.prototype.createConnection = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
@@ -80,4 +104,5 @@ }, createConnectionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createCredential = function (options, callback) { | ||
CredentialsServiceClient.prototype.createCredential = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
@@ -104,72 +129,72 @@ }, createCredentialOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listCredentialDefinitions = function (options, callback) { | ||
CredentialsServiceClient.prototype.deleteCredential = function (credentialId, options, callback) { | ||
return this.sendOperationRequest({ | ||
credentialId: credentialId, | ||
options: options | ||
}, listCredentialDefinitionsOperationSpec, callback); | ||
}, deleteCredentialOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createCredentialDefinition = function (options, callback) { | ||
CredentialsServiceClient.prototype.listVerificationPolicies = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createCredentialDefinitionOperationSpec, callback); | ||
}, listVerificationPoliciesOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getCredentialDefinition = function (definitionId, options, callback) { | ||
CredentialsServiceClient.prototype.createVerificationPolicy = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
definitionId: definitionId, | ||
body: body, | ||
options: options | ||
}, getCredentialDefinitionOperationSpec, callback); | ||
}, createVerificationPolicyOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listSchemas = function (options, callback) { | ||
CredentialsServiceClient.prototype.getVerificationPolicy = function (policyId, options, callback) { | ||
return this.sendOperationRequest({ | ||
policyId: policyId, | ||
options: options | ||
}, listSchemasOperationSpec, callback); | ||
}, getVerificationPolicyOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createSchema = function (options, callback) { | ||
CredentialsServiceClient.prototype.deleteVerificationPolicy = function (policyId, options, callback) { | ||
return this.sendOperationRequest({ | ||
policyId: policyId, | ||
options: options | ||
}, createSchemaOperationSpec, callback); | ||
}, deleteVerificationPolicyOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listTenants = function (options, callback) { | ||
CredentialsServiceClient.prototype.listCredentialDefinitions = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, listTenantsOperationSpec, callback); | ||
}, listCredentialDefinitionsOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createTenant = function (options, callback) { | ||
CredentialsServiceClient.prototype.createCredentialDefinition = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
}, createTenantOperationSpec, callback); | ||
}, createCredentialDefinitionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getTenant = function (tenantId, options, callback) { | ||
CredentialsServiceClient.prototype.getCredentialDefinition = function (definitionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
definitionId: definitionId, | ||
options: options | ||
}, getTenantOperationSpec, callback); | ||
}, getCredentialDefinitionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteTenant = function (tenantId, options, callback) { | ||
CredentialsServiceClient.prototype.createCredentialDefinitionForSchemaId = function (schemaId, body, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
schemaId: schemaId, | ||
body: body, | ||
options: options | ||
}, deleteTenantOperationSpec, callback); | ||
}, createCredentialDefinitionForSchemaIdOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listVerificationsForConnection = function (options, callback) { | ||
CredentialsServiceClient.prototype.deleteCredentialDefinition = function (credentialDefinitionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
credentialDefinitionId: credentialDefinitionId, | ||
options: options | ||
}, listVerificationsForConnectionOperationSpec, callback); | ||
}, deleteCredentialDefinitionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createVerification = function (options, callback) { | ||
CredentialsServiceClient.prototype.createSchema = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
}, createVerificationOperationSpec, callback); | ||
}, createSchemaOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getVerification = function (verificationId, options, callback) { | ||
CredentialsServiceClient.prototype.listSchemas = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationId: verificationId, | ||
options: options | ||
}, getVerificationOperationSpec, callback); | ||
}, listSchemasOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteVerification = function (verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationId: verificationId, | ||
options: options | ||
}, deleteVerificationOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getVerificationDefinition = function (definitionId, options, callback) { | ||
@@ -186,133 +211,133 @@ return this.sendOperationRequest({ | ||
}; | ||
CredentialsServiceClient.prototype.createVerificationDefinition = function (options, callback) { | ||
CredentialsServiceClient.prototype.createVerificationDefinition = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
}, createVerificationDefinitionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listWebhooks = function (options, callback) { | ||
CredentialsServiceClient.prototype.deleteVerificationDefinition = function (verificationDefinitionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationDefinitionId: verificationDefinitionId, | ||
options: options | ||
}, listWebhooksOperationSpec, callback); | ||
}, deleteVerificationDefinitionOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createWebhook = function (options, callback) { | ||
CredentialsServiceClient.prototype.listTenants = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createWebhookOperationSpec, callback); | ||
}, listTenantsOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.removeWebhook = function (webhookId, options, callback) { | ||
CredentialsServiceClient.prototype.createTenant = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
webhookId: webhookId, | ||
body: body, | ||
options: options | ||
}, removeWebhookOperationSpec, callback); | ||
}, createTenantOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.sendMessage = function (options, callback) { | ||
CredentialsServiceClient.prototype.getTenant = function (tenantId, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
options: options | ||
}, sendMessageOperationSpec, callback); | ||
}, getTenantOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listMessages = function (connectionId, options, callback) { | ||
CredentialsServiceClient.prototype.deleteTenant = function (tenantId, options, callback) { | ||
return this.sendOperationRequest({ | ||
connectionId: connectionId, | ||
tenantId: tenantId, | ||
options: options | ||
}, listMessagesOperationSpec, callback); | ||
}, deleteTenantOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getMessage = function (messageId, options, callback) { | ||
CredentialsServiceClient.prototype.getIssuerStatus = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
messageId: messageId, | ||
options: options | ||
}, getMessageOperationSpec, callback); | ||
}, getIssuerStatusOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.enableWebhook = function (webhookId, options, callback) { | ||
CredentialsServiceClient.prototype.sendVerificationFromPolicy = function (connectionId, policyId, options, callback) { | ||
return this.sendOperationRequest({ | ||
webhookId: webhookId, | ||
connectionId: connectionId, | ||
policyId: policyId, | ||
options: options | ||
}, enableWebhookOperationSpec, callback); | ||
}, sendVerificationFromPolicyOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.disableWebhook = function (webhookId, options, callback) { | ||
CredentialsServiceClient.prototype.sendVerificationFromParameters = function (connectionId, body, options, callback) { | ||
return this.sendOperationRequest({ | ||
webhookId: webhookId, | ||
connectionId: connectionId, | ||
body: body, | ||
options: options | ||
}, disableWebhookOperationSpec, callback); | ||
}, sendVerificationFromParametersOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getTransactionAuthorAgreement = function (networkId, options, callback) { | ||
CredentialsServiceClient.prototype.sendVerificationFromProposal = function (connectionId, policyId, options, callback) { | ||
return this.sendOperationRequest({ | ||
networkId: networkId, | ||
connectionId: connectionId, | ||
policyId: policyId, | ||
options: options | ||
}, getTransactionAuthorAgreementOperationSpec, callback); | ||
}, sendVerificationFromProposalOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.acceptTransactionAuthorAgreement = function (tenantId, options, callback) { | ||
CredentialsServiceClient.prototype.createVerificationFromPolicy = function (policyId, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
policyId: policyId, | ||
options: options | ||
}, acceptTransactionAuthorAgreementOperationSpec, callback); | ||
}, createVerificationFromPolicyOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createCredentialDefinitionForSchemaId = function (schemaId, options, callback) { | ||
CredentialsServiceClient.prototype.createVerificationFromParameters = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
schemaId: schemaId, | ||
body: body, | ||
options: options | ||
}, createCredentialDefinitionForSchemaIdOperationSpec, callback); | ||
}, createVerificationFromParametersOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getIssuerStatus = function (options, callback) { | ||
CredentialsServiceClient.prototype.listVerifications = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, getIssuerStatusOperationSpec, callback); | ||
}, listVerificationsOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteCredentialDefinition = function (credentialDefinitionId, options, callback) { | ||
CredentialsServiceClient.prototype.createVerification = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
credentialDefinitionId: credentialDefinitionId, | ||
body: body, | ||
options: options | ||
}, deleteCredentialDefinitionOperationSpec, callback); | ||
}, createVerificationOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteVerificationDefinition = function (verificationDefinitionId, options, callback) { | ||
CredentialsServiceClient.prototype.getVerification = function (verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationDefinitionId: verificationDefinitionId, | ||
verificationId: verificationId, | ||
options: options | ||
}, deleteVerificationDefinitionOperationSpec, callback); | ||
}, getVerificationOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.verifyVerification = function (verificationId, options, callback) { | ||
CredentialsServiceClient.prototype.deleteVerification = function (verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationId: verificationId, | ||
options: options | ||
}, verifyVerificationOperationSpec, callback); | ||
}, deleteVerificationOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.listVerificationPolicies = function (options, callback) { | ||
CredentialsServiceClient.prototype.verifyVerification = function (verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
verificationId: verificationId, | ||
options: options | ||
}, listVerificationPoliciesOperationSpec, callback); | ||
}, verifyVerificationOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createVerificationPolicy = function (options, callback) { | ||
CredentialsServiceClient.prototype.listWebhooks = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createVerificationPolicyOperationSpec, callback); | ||
}, listWebhooksOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.getVerificationPolicy = function (policyId, options, callback) { | ||
CredentialsServiceClient.prototype.createWebhook = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
policyId: policyId, | ||
body: body, | ||
options: options | ||
}, getVerificationPolicyOperationSpec, callback); | ||
}, createWebhookOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteVerificationPolicy = function (policyId, options, callback) { | ||
CredentialsServiceClient.prototype.removeWebhook = function (webhookId, options, callback) { | ||
return this.sendOperationRequest({ | ||
policyId: policyId, | ||
webhookId: webhookId, | ||
options: options | ||
}, deleteVerificationPolicyOperationSpec, callback); | ||
}, removeWebhookOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.sendVerificationFromPolicy = function (connectionId, policyId, options, callback) { | ||
CredentialsServiceClient.prototype.enableWebhook = function (webhookId, options, callback) { | ||
return this.sendOperationRequest({ | ||
connectionId: connectionId, | ||
policyId: policyId, | ||
webhookId: webhookId, | ||
options: options | ||
}, sendVerificationFromPolicyOperationSpec, callback); | ||
}, enableWebhookOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createVerificationFromPolicy = function (policyId, options, callback) { | ||
CredentialsServiceClient.prototype.disableWebhook = function (webhookId, options, callback) { | ||
return this.sendOperationRequest({ | ||
policyId: policyId, | ||
webhookId: webhookId, | ||
options: options | ||
}, createVerificationFromPolicyOperationSpec, callback); | ||
}, disableWebhookOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.createVerificationFromParameters = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createVerificationFromParametersOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.health = function (options, callback) { | ||
@@ -323,21 +348,2 @@ return this.sendOperationRequest({ | ||
}; | ||
CredentialsServiceClient.prototype.sendVerificationFromParameters = function (connectionId, options, callback) { | ||
return this.sendOperationRequest({ | ||
connectionId: connectionId, | ||
options: options | ||
}, sendVerificationFromParametersOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.deleteCredential = function (credentialId, options, callback) { | ||
return this.sendOperationRequest({ | ||
credentialId: credentialId, | ||
options: options | ||
}, deleteCredentialOperationSpec, callback); | ||
}; | ||
CredentialsServiceClient.prototype.sendVerificationFromProposal = function (connectionId, verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
connectionId: connectionId, | ||
verificationId: verificationId, | ||
options: options | ||
}, sendVerificationFromProposalOperationSpec, callback); | ||
}; | ||
return CredentialsServiceClient; | ||
@@ -392,2 +398,28 @@ }(credentialsServiceClientContext_1.CredentialsServiceClientContext)); | ||
}; | ||
var getTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.NetworkTxnAgreementContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var acceptTransactionAuthorAgreementOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/common/networks/{tenantId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listConnectionsOperationSpec = { | ||
@@ -422,7 +454,4 @@ httpMethod: "GET", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"connectionInvitationParameters" | ||
], | ||
mapper: Mappers.ConnectionInvitationParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.ConnectionInvitationParameters, { required: true }) | ||
}, | ||
@@ -494,7 +523,4 @@ responses: { | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialOfferParameters" | ||
], | ||
mapper: Mappers.CredentialOfferParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.CredentialOfferParameters, { required: true }) | ||
}, | ||
@@ -564,5 +590,17 @@ responses: { | ||
}; | ||
var listCredentialDefinitionsOperationSpec = { | ||
var deleteCredentialOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/credentials/delete/{credentialId}", | ||
urlParameters: [ | ||
Parameters.credentialId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listVerificationPoliciesOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/definitions/credentials", | ||
path: "credentials/v1/verificationPolicies", | ||
responses: { | ||
@@ -577,3 +615,3 @@ 200: { | ||
name: "Composite", | ||
className: "CredentialDefinitionContract" | ||
className: "VerificationPolicyContract" | ||
} | ||
@@ -588,15 +626,12 @@ } | ||
}; | ||
var createCredentialDefinitionOperationSpec = { | ||
var createVerificationPolicyOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/definitions/credentials", | ||
path: "credentials/v1/verificationPolicies", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialDefinitionFromSchemaParameters" | ||
], | ||
mapper: Mappers.CredentialDefinitionFromSchemaParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.VerificationPolicyParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
bodyMapper: Mappers.VerificationPolicyContract | ||
}, | ||
@@ -607,11 +642,11 @@ default: {} | ||
}; | ||
var getCredentialDefinitionOperationSpec = { | ||
var getVerificationPolicyOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/definitions/credentials/{definitionId}", | ||
path: "credentials/v1/verificationPolicies/{policyId}", | ||
urlParameters: [ | ||
Parameters.definitionId1 | ||
Parameters.policyId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
bodyMapper: Mappers.VerificationPolicyContract | ||
}, | ||
@@ -622,5 +657,17 @@ default: {} | ||
}; | ||
var listSchemasOperationSpec = { | ||
var deleteVerificationPolicyOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/verificationPolicies/{policyId}", | ||
urlParameters: [ | ||
Parameters.policyId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listCredentialDefinitionsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/definitions/schemas", | ||
path: "credentials/v1/definitions/credentials", | ||
responses: { | ||
@@ -635,3 +682,3 @@ 200: { | ||
name: "Composite", | ||
className: "SchemaRecord" | ||
className: "CredentialDefinitionContract" | ||
} | ||
@@ -646,20 +693,12 @@ } | ||
}; | ||
var createSchemaOperationSpec = { | ||
var createCredentialDefinitionOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/definitions/schemas", | ||
path: "credentials/v1/definitions/credentials", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"schemaParameters" | ||
], | ||
mapper: Mappers.SchemaParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.CredentialDefinitionFromSchemaParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
}, | ||
@@ -670,19 +709,11 @@ default: {} | ||
}; | ||
var listTenantsOperationSpec = { | ||
var getCredentialDefinitionOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/tenants", | ||
path: "credentials/v1/definitions/credentials/{definitionId}", | ||
urlParameters: [ | ||
Parameters.definitionId1 | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "TenantContract" | ||
} | ||
} | ||
} | ||
} | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
}, | ||
@@ -693,15 +724,15 @@ default: {} | ||
}; | ||
var createTenantOperationSpec = { | ||
var createCredentialDefinitionForSchemaIdOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/tenants", | ||
path: "credentials/v1/definitions/credentials/{schemaId}", | ||
urlParameters: [ | ||
Parameters.schemaId | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"tenantParameters" | ||
], | ||
mapper: Mappers.TenantParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.CredentialDefinitionParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.TenantContract | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
}, | ||
@@ -712,12 +743,10 @@ default: {} | ||
}; | ||
var getTenantOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/tenants/{tenantId}", | ||
var deleteCredentialDefinitionOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/definitions/credentials/{credentialDefinitionId}", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
Parameters.credentialDefinitionId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.TenantContract | ||
}, | ||
200: {}, | ||
default: {} | ||
@@ -727,10 +756,18 @@ }, | ||
}; | ||
var deleteTenantOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/tenants/{tenantId}", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
], | ||
var createSchemaOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/definitions/schemas", | ||
requestBody: { | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.SchemaParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}, | ||
default: {} | ||
@@ -740,9 +777,5 @@ }, | ||
}; | ||
var listVerificationsForConnectionOperationSpec = { | ||
var listSchemasOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verifications", | ||
queryParameters: [ | ||
Parameters.connectionId1, | ||
Parameters.definitionId0 | ||
], | ||
path: "credentials/v1/definitions/schemas", | ||
responses: { | ||
@@ -757,3 +790,3 @@ 200: { | ||
name: "Composite", | ||
className: "VerificationContract" | ||
className: "SchemaRecord" | ||
} | ||
@@ -768,46 +801,2 @@ } | ||
}; | ||
var createVerificationOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/verifications", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationParameters" | ||
], | ||
mapper: Mappers.VerificationParameters | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verifications/{verificationId}", | ||
urlParameters: [ | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var deleteVerificationOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/verifications/{verificationId}", | ||
urlParameters: [ | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getVerificationDefinitionOperationSpec = { | ||
@@ -853,7 +842,4 @@ httpMethod: "GET", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"proofRequest" | ||
], | ||
mapper: Mappers.ProofRequest | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.ProofRequest, { required: true }) | ||
}, | ||
@@ -868,47 +854,7 @@ responses: { | ||
}; | ||
var listWebhooksOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/webhooks", | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "WebhookContract" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var createWebhookOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/webhooks", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"webhookParameters" | ||
], | ||
mapper: Mappers.WebhookParameters | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.WebhookContract | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var removeWebhookOperationSpec = { | ||
var deleteVerificationDefinitionOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/webhooks/{webhookId}", | ||
path: "credentials/v1/definitions/verifications/{verificationDefinitionId}", | ||
urlParameters: [ | ||
Parameters.webhookId | ||
Parameters.verificationDefinitionId | ||
], | ||
@@ -921,24 +867,5 @@ responses: { | ||
}; | ||
var sendMessageOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/messages", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"basicMessageParameters" | ||
], | ||
mapper: Mappers.BasicMessageParameters | ||
}, | ||
responses: { | ||
200: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listMessagesOperationSpec = { | ||
var listTenantsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/messages/connection/{connectionId}", | ||
urlParameters: [ | ||
Parameters.connectionId0 | ||
], | ||
path: "credentials/v1/tenants", | ||
responses: { | ||
@@ -953,3 +880,3 @@ 200: { | ||
name: "Composite", | ||
className: "BasicMessageRecord" | ||
className: "TenantContract" | ||
} | ||
@@ -964,11 +891,12 @@ } | ||
}; | ||
var getMessageOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/messages/{messageId}", | ||
urlParameters: [ | ||
Parameters.messageId | ||
], | ||
var createTenantOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/tenants", | ||
requestBody: { | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.TenantParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.BasicMessageContract | ||
bodyMapper: Mappers.TenantContract | ||
}, | ||
@@ -979,10 +907,12 @@ default: {} | ||
}; | ||
var enableWebhookOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/webhooks/{webhookId}/enable", | ||
var getTenantOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/tenants/{tenantId}", | ||
urlParameters: [ | ||
Parameters.webhookId | ||
Parameters.tenantId | ||
], | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: Mappers.TenantContract | ||
}, | ||
default: {} | ||
@@ -992,7 +922,7 @@ }, | ||
}; | ||
var disableWebhookOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/webhooks/{webhookId}/disable", | ||
var deleteTenantOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/tenants/{tenantId}", | ||
urlParameters: [ | ||
Parameters.webhookId | ||
Parameters.tenantId | ||
], | ||
@@ -1005,11 +935,8 @@ responses: { | ||
}; | ||
var getTransactionAuthorAgreementOperationSpec = { | ||
var getIssuerStatusOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/common/networks/{networkId}/txnAuthorAgreement", | ||
urlParameters: [ | ||
Parameters.networkId | ||
], | ||
path: "credentials/v1/tenants/issuerStatus", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.NetworkTxnAgreementContract | ||
bodyMapper: Mappers.IssuerStatusContract | ||
}, | ||
@@ -1020,10 +947,13 @@ default: {} | ||
}; | ||
var acceptTransactionAuthorAgreementOperationSpec = { | ||
var sendVerificationFromPolicyOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/common/networks/{tenantId}/txnAuthorAgreement", | ||
path: "credentials/v1/verifications/policy/{policyId}/connections/{connectionId}", | ||
urlParameters: [ | ||
Parameters.tenantId | ||
Parameters.connectionId0, | ||
Parameters.policyId | ||
], | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
default: {} | ||
@@ -1033,18 +963,15 @@ }, | ||
}; | ||
var createCredentialDefinitionForSchemaIdOperationSpec = { | ||
var sendVerificationFromParametersOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/definitions/credentials/{schemaId}", | ||
path: "credentials/v1/verifications/policy/connections/{connectionId}", | ||
urlParameters: [ | ||
Parameters.schemaId | ||
Parameters.connectionId0 | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"credentialDefinitionParameters" | ||
], | ||
mapper: Mappers.CredentialDefinitionParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.VerificationPolicyParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialDefinitionContract | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
@@ -1055,8 +982,12 @@ default: {} | ||
}; | ||
var getIssuerStatusOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/tenants/issuerStatus", | ||
var sendVerificationFromProposalOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/verifications/proposal/{policyId}/connections/{connectionId}", | ||
urlParameters: [ | ||
Parameters.connectionId0, | ||
Parameters.policyId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.IssuerStatusContract | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
@@ -1067,10 +998,12 @@ default: {} | ||
}; | ||
var deleteCredentialDefinitionOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/definitions/credentials/{credentialDefinitionId}", | ||
var createVerificationFromPolicyOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/verifications/policy/{policyId}", | ||
urlParameters: [ | ||
Parameters.credentialDefinitionId | ||
Parameters.policyId | ||
], | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
default: {} | ||
@@ -1080,23 +1013,12 @@ }, | ||
}; | ||
var deleteVerificationDefinitionOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/definitions/verifications/{verificationDefinitionId}", | ||
urlParameters: [ | ||
Parameters.verificationDefinitionId | ||
], | ||
responses: { | ||
200: {}, | ||
default: {} | ||
var createVerificationFromParametersOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/verifications/policy", | ||
requestBody: { | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.VerificationPolicyParameters, { required: true }) | ||
}, | ||
serializer: serializer | ||
}; | ||
var verifyVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verifications/{verificationId}/verify", | ||
urlParameters: [ | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationResult | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
@@ -1107,5 +1029,9 @@ default: {} | ||
}; | ||
var listVerificationPoliciesOperationSpec = { | ||
var listVerificationsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verificationPolicies", | ||
path: "credentials/v1/verifications", | ||
queryParameters: [ | ||
Parameters.connectionId1, | ||
Parameters.definitionId0 | ||
], | ||
responses: { | ||
@@ -1120,3 +1046,3 @@ 200: { | ||
name: "Composite", | ||
className: "VerificationPolicyContract" | ||
className: "VerificationContract" | ||
} | ||
@@ -1131,15 +1057,12 @@ } | ||
}; | ||
var createVerificationPolicyOperationSpec = { | ||
var createVerificationOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/verificationPolicies", | ||
path: "credentials/v1/verifications", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationPolicyParameters" | ||
], | ||
mapper: Mappers.VerificationPolicyParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.VerificationParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationPolicyContract | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
@@ -1150,11 +1073,11 @@ default: {} | ||
}; | ||
var getVerificationPolicyOperationSpec = { | ||
var getVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verificationPolicies/{policyId}", | ||
path: "credentials/v1/verifications/{verificationId}", | ||
urlParameters: [ | ||
Parameters.policyId | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationPolicyContract | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
@@ -1165,7 +1088,7 @@ default: {} | ||
}; | ||
var deleteVerificationPolicyOperationSpec = { | ||
var deleteVerificationOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/verificationPolicies/{policyId}", | ||
path: "credentials/v1/verifications/{verificationId}", | ||
urlParameters: [ | ||
Parameters.policyId | ||
Parameters.verificationId | ||
], | ||
@@ -1178,12 +1101,11 @@ responses: { | ||
}; | ||
var sendVerificationFromPolicyOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/verifications/policy/{policyId}/connections/{connectionId}", | ||
var verifyVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/verifications/{verificationId}/verify", | ||
urlParameters: [ | ||
Parameters.connectionId0, | ||
Parameters.policyId | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
bodyMapper: Mappers.VerificationResult | ||
}, | ||
@@ -1194,11 +1116,19 @@ default: {} | ||
}; | ||
var createVerificationFromPolicyOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/verifications/policy/{policyId}", | ||
urlParameters: [ | ||
Parameters.policyId | ||
], | ||
var listWebhooksOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/webhooks", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "WebhookContract" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
@@ -1209,15 +1139,12 @@ default: {} | ||
}; | ||
var createVerificationFromParametersOperationSpec = { | ||
var createWebhookOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/verifications/policy", | ||
path: "credentials/v1/webhooks", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationPolicyParameters" | ||
], | ||
mapper: Mappers.VerificationPolicyParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.WebhookParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
bodyMapper: Mappers.WebhookContract | ||
}, | ||
@@ -1228,5 +1155,8 @@ default: {} | ||
}; | ||
var healthOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/health", | ||
var removeWebhookOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/webhooks/{webhookId}", | ||
urlParameters: [ | ||
Parameters.webhookId | ||
], | ||
responses: { | ||
@@ -1238,19 +1168,10 @@ 200: {}, | ||
}; | ||
var sendVerificationFromParametersOperationSpec = { | ||
httpMethod: "POST", | ||
path: "credentials/v1/verifications/policy/connections/{connectionId}", | ||
var enableWebhookOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/webhooks/{webhookId}/enable", | ||
urlParameters: [ | ||
Parameters.connectionId0 | ||
Parameters.webhookId | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationPolicyParameters" | ||
], | ||
mapper: Mappers.VerificationPolicyParameters | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
200: {}, | ||
default: {} | ||
@@ -1260,7 +1181,7 @@ }, | ||
}; | ||
var deleteCredentialOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "credentials/v1/credentials/delete/{credentialId}", | ||
var disableWebhookOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/webhooks/{webhookId}/disable", | ||
urlParameters: [ | ||
Parameters.credentialId | ||
Parameters.webhookId | ||
], | ||
@@ -1273,13 +1194,7 @@ responses: { | ||
}; | ||
var sendVerificationFromProposalOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "credentials/v1/verifications/proposal/{verificationId}/connections/{connectionId}", | ||
urlParameters: [ | ||
Parameters.connectionId0, | ||
Parameters.verificationId | ||
], | ||
var healthOperationSpec = { | ||
httpMethod: "GET", | ||
path: "credentials/v1/health", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
200: {}, | ||
default: {} | ||
@@ -1286,0 +1201,0 @@ }, |
@@ -34,3 +34,3 @@ "use strict"; | ||
var packageName = ""; | ||
var packageVersion = "1.1.3977"; | ||
var packageVersion = "1.1.4070"; | ||
var CredentialsServiceClientContext = /** @class */ (function (_super) { | ||
@@ -57,3 +57,3 @@ __extends(CredentialsServiceClientContext, _super); | ||
_this = _super.call(this, credentials, options) || this; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/credentials/v1"; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.trinsic.id/credentials/v1"; | ||
_this.requestContentType = "application/json; charset=utf-8"; | ||
@@ -60,0 +60,0 @@ _this.credentials = credentials; |
@@ -82,3 +82,2 @@ import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
* created. | ||
* | ||
* Default value is 'false'. | ||
@@ -88,4 +87,3 @@ */ | ||
/** | ||
* Name that can be used as organization name | ||
* | ||
* Name that can be used as an alias for the connection. | ||
* Default value is 'null'. | ||
@@ -120,3 +118,3 @@ */ | ||
/** | ||
* Gets or sets the credential definition identifier. | ||
* The credential definition identifier | ||
*/ | ||
@@ -126,11 +124,10 @@ definitionId: string; | ||
* Connection identifier to send this credential to. | ||
* If ommited, the request will be treated as connectionless | ||
* issuance and will generate a URL. | ||
* If omitted, the request will be treated as connectionless issuance and will generate a URL. | ||
*/ | ||
connectionId?: string; | ||
/** | ||
* 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 | ||
* 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. | ||
* Default value is 'false'. | ||
*/ | ||
@@ -166,3 +163,3 @@ automaticIssuance?: boolean; | ||
policyName: string; | ||
attributeNames?: string[]; | ||
attributeNames: string[]; | ||
restrictions?: VerificationPolicyRestriction[]; | ||
@@ -181,5 +178,5 @@ } | ||
/** | ||
* An interface representing VerificationPolicyRevocationReqirement. | ||
* An interface representing VerificationPolicyRevocationRequirement. | ||
*/ | ||
export interface VerificationPolicyRevocationReqirement { | ||
export interface VerificationPolicyRevocationRequirement { | ||
validAt?: Date; | ||
@@ -196,3 +193,3 @@ } | ||
predicates?: VerificationPolicyPredicateContract[]; | ||
revocationRequirement?: VerificationPolicyRevocationReqirement; | ||
revocationRequirement?: VerificationPolicyRevocationRequirement; | ||
} | ||
@@ -207,3 +204,3 @@ /** | ||
predicates?: VerificationPolicyPredicateContract[]; | ||
revocationRequirement?: VerificationPolicyRevocationReqirement; | ||
revocationRequirement?: VerificationPolicyRevocationRequirement; | ||
} | ||
@@ -226,11 +223,11 @@ /** | ||
/** | ||
* Name of the schema. | ||
* Schema name | ||
*/ | ||
name: string; | ||
/** | ||
* Schema version. | ||
* Schema version | ||
*/ | ||
version: string; | ||
/** | ||
* Schema attribute names. | ||
* Schema attribute names | ||
*/ | ||
@@ -265,11 +262,11 @@ attributes: string[]; | ||
/** | ||
* Gets or sets the name. | ||
* The schema name | ||
*/ | ||
name: string; | ||
/** | ||
* Gets or sets the version. | ||
* The schema version | ||
*/ | ||
version: string; | ||
/** | ||
* Gets or sets the attribute names. | ||
* The attribute names | ||
*/ | ||
@@ -365,3 +362,3 @@ attributeNames: string[]; | ||
/** | ||
* Gets or sets the identifier. | ||
* The verification identifier | ||
*/ | ||
@@ -372,6 +369,12 @@ id?: string; | ||
/** | ||
* An interface representing BasicMessageParameters. | ||
* Basic message parameters | ||
*/ | ||
export interface BasicMessageParameters { | ||
/** | ||
* The connection identifier | ||
*/ | ||
connectionId?: string; | ||
/** | ||
* The message text | ||
*/ | ||
text?: string; | ||
@@ -405,7 +408,16 @@ } | ||
/** | ||
* An interface representing BasicMessageContract. | ||
* Basic message contract | ||
*/ | ||
export interface BasicMessageContract { | ||
/** | ||
* The connection identifier | ||
*/ | ||
connectionId?: string; | ||
/** | ||
* The message timestamp | ||
*/ | ||
timestamp?: Date; | ||
/** | ||
* The message text | ||
*/ | ||
text?: string; | ||
@@ -430,3 +442,3 @@ /** | ||
/** | ||
* Isuser key generation seed used for deterministic key creation (32 characters) | ||
* Issuer key generation seed used for deterministic key creation (32 characters) | ||
*/ | ||
@@ -456,7 +468,7 @@ issuerKeyGenerationSeed?: string; | ||
/** | ||
* Tenant info. | ||
* Tenant info | ||
*/ | ||
export interface TenantContract { | ||
/** | ||
* Gets or sets the name. | ||
* The tenant name | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
@@ -466,3 +478,3 @@ */ | ||
/** | ||
* Gets or sets the image URI. | ||
* The image URL | ||
*/ | ||
@@ -472,3 +484,3 @@ imageUrl?: string; | ||
/** | ||
* Gets or sets the tenant identifier. | ||
* The tenant identifier | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
@@ -484,16 +496,17 @@ */ | ||
/** | ||
* (Optional) Issuer seed used for deterministic DID generation. | ||
* If omitted, a random DID/Key is generated | ||
* Issuer seed used for deterministic DID generation. | ||
* If omitted, a random DID/Key is generated. | ||
*/ | ||
issuerSeed?: string; | ||
/** | ||
* The name of the tenant. | ||
* The tenant name | ||
*/ | ||
name: string; | ||
/** | ||
* (Optional) Location of image URL used as profile for this tenant | ||
* URL of tenant profile image | ||
*/ | ||
imageUrl?: string; | ||
/** | ||
* (Optional) Ledger network identifier. Default is Sovrin Staging (sovrin-staging) | ||
* Ledger network identifier. | ||
* Default is Sovrin Staging (sovrin-staging). | ||
*/ | ||
@@ -515,10 +528,15 @@ networkId?: string; | ||
/** | ||
* Transaction Author Agreement Version | ||
* Transaction Author Agreement version | ||
*/ | ||
acceptanceVersion?: string; | ||
/** | ||
* The acceptance digest | ||
*/ | ||
acceptanceDigest?: string; | ||
/** | ||
* The acceptance time | ||
*/ | ||
acceptanceTime?: number; | ||
/** | ||
* Indicates if user needs to accept the | ||
* latest agreement on the network | ||
* Indicates if user needs to accept the latest agreement on the network | ||
*/ | ||
@@ -611,7 +629,7 @@ requireAcceptance?: boolean; | ||
/** | ||
* Verification definition identifier. | ||
* Verification definition identifier | ||
*/ | ||
verificationDefinitionId: string; | ||
/** | ||
* Connection identifier. | ||
* Connection identifier | ||
*/ | ||
@@ -656,2 +674,3 @@ connectionId?: string; | ||
type?: Type1; | ||
parameters?: string; | ||
} | ||
@@ -676,3 +695,3 @@ /** | ||
/** | ||
* Possible values include: 'Invited', 'Negotiating', 'Connected' | ||
* The connection state. Possible values include: 'Invited', 'Negotiating', 'Connected' | ||
*/ | ||
@@ -684,27 +703,16 @@ state?: State3; | ||
*/ | ||
export interface CredentialsServiceClientCreateConnectionOptionalParams extends msRest.RequestOptionsBase { | ||
export interface CredentialsServiceClientListCredentialsOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Connection invitation parameters | ||
* A connection identifier | ||
*/ | ||
connectionInvitationParameters?: ConnectionInvitationParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientListCredentialsOptionalParams extends msRest.RequestOptionsBase { | ||
connectionId?: string; | ||
/** | ||
* Possible values include: 'Offered', 'Requested', 'Issued', 'Rejected', 'Revoked' | ||
* The state of credentials. Possible values include: 'Offered', 'Requested', 'Issued', | ||
* 'Rejected', 'Revoked' | ||
*/ | ||
state?: State4; | ||
definitionId?: string; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateCredentialOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The definition and connection to which this offer will be sent. | ||
* A credential definition identifier | ||
*/ | ||
credentialOfferParameters?: CredentialOfferParameters; | ||
definitionId?: string; | ||
} | ||
@@ -716,5 +724,3 @@ /** | ||
/** | ||
* 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 | ||
* Updated credential values | ||
*/ | ||
@@ -728,36 +734,9 @@ body?: { | ||
*/ | ||
export interface CredentialsServiceClientCreateCredentialDefinitionOptionalParams extends msRest.RequestOptionsBase { | ||
export interface CredentialsServiceClientListVerificationsOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Definition. | ||
* The connection identifier | ||
*/ | ||
credentialDefinitionFromSchemaParameters?: CredentialDefinitionFromSchemaParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateSchemaOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Schema details | ||
*/ | ||
schemaParameters?: SchemaParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateTenantOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Configuration options for creating new tenant. | ||
*/ | ||
tenantParameters?: TenantParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientListVerificationsForConnectionOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The connection identifier. | ||
*/ | ||
connectionId?: string; | ||
/** | ||
* The definition identifier. | ||
* The definition identifier | ||
*/ | ||
@@ -767,65 +746,2 @@ definitionId?: string; | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateVerificationOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The create verification. | ||
*/ | ||
verificationParameters?: VerificationParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateVerificationDefinitionOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The proof request. | ||
*/ | ||
proofRequest?: ProofRequest; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateWebhookOptionalParams extends msRest.RequestOptionsBase { | ||
webhookParameters?: WebhookParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientSendMessageOptionalParams extends msRest.RequestOptionsBase { | ||
basicMessageParameters?: BasicMessageParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateCredentialDefinitionForSchemaIdOptionalParams extends msRest.RequestOptionsBase { | ||
credentialDefinitionParameters?: CredentialDefinitionParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateVerificationPolicyOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The verification policy parameters. | ||
*/ | ||
verificationPolicyParameters?: VerificationPolicyParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientCreateVerificationFromParametersOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The policy parameters. | ||
*/ | ||
verificationPolicyParameters?: VerificationPolicyParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface CredentialsServiceClientSendVerificationFromParametersOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The policy parameters. | ||
*/ | ||
verificationPolicyParameters?: VerificationPolicyParameters; | ||
} | ||
/** | ||
* Defines values for State. | ||
@@ -955,2 +871,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. | ||
@@ -1064,5 +998,5 @@ */ | ||
/** | ||
* Contains response data for the listCredentialDefinitions operation. | ||
* Contains response data for the listVerificationPolicies operation. | ||
*/ | ||
export declare type ListCredentialDefinitionsResponse = Array<CredentialDefinitionContract> & { | ||
export declare type ListVerificationPoliciesResponse = Array<VerificationPolicyContract> & { | ||
/** | ||
@@ -1079,9 +1013,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialDefinitionContract[]; | ||
parsedBody: VerificationPolicyContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createCredentialDefinition operation. | ||
* Contains response data for the createVerificationPolicy operation. | ||
*/ | ||
export declare type CreateCredentialDefinitionResponse = CredentialDefinitionContract & { | ||
export declare type CreateVerificationPolicyResponse = VerificationPolicyContract & { | ||
/** | ||
@@ -1098,9 +1032,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialDefinitionContract; | ||
parsedBody: VerificationPolicyContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getCredentialDefinition operation. | ||
* Contains response data for the getVerificationPolicy operation. | ||
*/ | ||
export declare type GetCredentialDefinitionResponse = CredentialDefinitionContract & { | ||
export declare type GetVerificationPolicyResponse = VerificationPolicyContract & { | ||
/** | ||
@@ -1117,9 +1051,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialDefinitionContract; | ||
parsedBody: VerificationPolicyContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listSchemas operation. | ||
* Contains response data for the listCredentialDefinitions operation. | ||
*/ | ||
export declare type ListSchemasResponse = Array<SchemaRecord> & { | ||
export declare type ListCredentialDefinitionsResponse = Array<CredentialDefinitionContract> & { | ||
/** | ||
@@ -1136,14 +1070,10 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: SchemaRecord[]; | ||
parsedBody: CredentialDefinitionContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createSchema operation. | ||
* Contains response data for the createCredentialDefinition operation. | ||
*/ | ||
export declare type CreateSchemaResponse = { | ||
export declare type CreateCredentialDefinitionResponse = CredentialDefinitionContract & { | ||
/** | ||
* The parsed response body. | ||
*/ | ||
body: string; | ||
/** | ||
* The underlying HTTP response. | ||
@@ -1159,9 +1089,9 @@ */ | ||
*/ | ||
parsedBody: string; | ||
parsedBody: CredentialDefinitionContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listTenants operation. | ||
* Contains response data for the getCredentialDefinition operation. | ||
*/ | ||
export declare type ListTenantsResponse = Array<TenantContract> & { | ||
export declare type GetCredentialDefinitionResponse = CredentialDefinitionContract & { | ||
/** | ||
@@ -1178,9 +1108,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: TenantContract[]; | ||
parsedBody: CredentialDefinitionContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createTenant operation. | ||
* Contains response data for the createCredentialDefinitionForSchemaId operation. | ||
*/ | ||
export declare type CreateTenantResponse = TenantContract & { | ||
export declare type CreateCredentialDefinitionForSchemaIdResponse = CredentialDefinitionContract & { | ||
/** | ||
@@ -1197,27 +1127,13 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: TenantContract; | ||
parsedBody: CredentialDefinitionContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getTenant operation. | ||
* Contains response data for the createSchema operation. | ||
*/ | ||
export declare type GetTenantResponse = TenantContract & { | ||
export declare type CreateSchemaResponse = { | ||
/** | ||
* The underlying HTTP response. | ||
* The parsed response body. | ||
*/ | ||
_response: msRest.HttpResponse & { | ||
/** | ||
* The response body as text (string format) | ||
*/ | ||
bodyAsText: string; | ||
/** | ||
* The response body as parsed JSON or XML | ||
*/ | ||
parsedBody: TenantContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listVerificationsForConnection operation. | ||
*/ | ||
export declare type ListVerificationsForConnectionResponse = Array<VerificationContract> & { | ||
body: string; | ||
/** | ||
@@ -1234,9 +1150,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract[]; | ||
parsedBody: string; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createVerification operation. | ||
* Contains response data for the listSchemas operation. | ||
*/ | ||
export declare type CreateVerificationResponse = VerificationContract & { | ||
export declare type ListSchemasResponse = Array<SchemaRecord> & { | ||
/** | ||
@@ -1253,24 +1169,6 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: SchemaRecord[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerification operation. | ||
*/ | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
/** | ||
* 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: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerificationDefinition operation. | ||
@@ -1330,5 +1228,5 @@ */ | ||
/** | ||
* Contains response data for the listWebhooks operation. | ||
* Contains response data for the listTenants operation. | ||
*/ | ||
export declare type ListWebhooksResponse = Array<WebhookContract> & { | ||
export declare type ListTenantsResponse = Array<TenantContract> & { | ||
/** | ||
@@ -1345,9 +1243,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: WebhookContract[]; | ||
parsedBody: TenantContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createWebhook operation. | ||
* Contains response data for the createTenant operation. | ||
*/ | ||
export declare type CreateWebhookResponse = WebhookContract & { | ||
export declare type CreateTenantResponse = TenantContract & { | ||
/** | ||
@@ -1364,9 +1262,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: WebhookContract; | ||
parsedBody: TenantContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listMessages operation. | ||
* Contains response data for the getTenant operation. | ||
*/ | ||
export declare type ListMessagesResponse = Array<BasicMessageRecord> & { | ||
export declare type GetTenantResponse = TenantContract & { | ||
/** | ||
@@ -1383,9 +1281,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: BasicMessageRecord[]; | ||
parsedBody: TenantContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getMessage operation. | ||
* Contains response data for the getIssuerStatus operation. | ||
*/ | ||
export declare type GetMessageResponse = BasicMessageContract & { | ||
export declare type GetIssuerStatusResponse = IssuerStatusContract & { | ||
/** | ||
@@ -1402,9 +1300,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: BasicMessageContract; | ||
parsedBody: IssuerStatusContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getTransactionAuthorAgreement operation. | ||
* Contains response data for the sendVerificationFromPolicy operation. | ||
*/ | ||
export declare type GetTransactionAuthorAgreementResponse = NetworkTxnAgreementContract & { | ||
export declare type SendVerificationFromPolicyResponse = VerificationContract & { | ||
/** | ||
@@ -1421,9 +1319,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: NetworkTxnAgreementContract; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createCredentialDefinitionForSchemaId operation. | ||
* Contains response data for the sendVerificationFromParameters operation. | ||
*/ | ||
export declare type CreateCredentialDefinitionForSchemaIdResponse = CredentialDefinitionContract & { | ||
export declare type SendVerificationFromParametersResponse = VerificationContract & { | ||
/** | ||
@@ -1440,9 +1338,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialDefinitionContract; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getIssuerStatus operation. | ||
* Contains response data for the sendVerificationFromProposal operation. | ||
*/ | ||
export declare type GetIssuerStatusResponse = IssuerStatusContract & { | ||
export declare type SendVerificationFromProposalResponse = VerificationContract & { | ||
/** | ||
@@ -1459,9 +1357,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: IssuerStatusContract; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the verifyVerification operation. | ||
* Contains response data for the createVerificationFromPolicy operation. | ||
*/ | ||
export declare type VerifyVerificationResponse = VerificationResult & { | ||
export declare type CreateVerificationFromPolicyResponse = VerificationContract & { | ||
/** | ||
@@ -1478,9 +1376,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationResult; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listVerificationPolicies operation. | ||
* Contains response data for the createVerificationFromParameters operation. | ||
*/ | ||
export declare type ListVerificationPoliciesResponse = Array<VerificationPolicyContract> & { | ||
export declare type CreateVerificationFromParametersResponse = VerificationContract & { | ||
/** | ||
@@ -1497,9 +1395,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationPolicyContract[]; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createVerificationPolicy operation. | ||
* Contains response data for the listVerifications operation. | ||
*/ | ||
export declare type CreateVerificationPolicyResponse = VerificationPolicyContract & { | ||
export declare type ListVerificationsResponse = Array<VerificationContract> & { | ||
/** | ||
@@ -1516,9 +1414,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationPolicyContract; | ||
parsedBody: VerificationContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerificationPolicy operation. | ||
* Contains response data for the createVerification operation. | ||
*/ | ||
export declare type GetVerificationPolicyResponse = VerificationPolicyContract & { | ||
export declare type CreateVerificationResponse = VerificationContract & { | ||
/** | ||
@@ -1535,20 +1433,2 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationPolicyContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the sendVerificationFromPolicy operation. | ||
*/ | ||
export declare type SendVerificationFromPolicyResponse = VerificationContract & { | ||
/** | ||
* 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: VerificationContract; | ||
@@ -1558,5 +1438,5 @@ }; | ||
/** | ||
* Contains response data for the createVerificationFromPolicy operation. | ||
* Contains response data for the getVerification operation. | ||
*/ | ||
export declare type CreateVerificationFromPolicyResponse = VerificationContract & { | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
/** | ||
@@ -1577,5 +1457,5 @@ * The underlying HTTP response. | ||
/** | ||
* Contains response data for the createVerificationFromParameters operation. | ||
* Contains response data for the verifyVerification operation. | ||
*/ | ||
export declare type CreateVerificationFromParametersResponse = VerificationContract & { | ||
export declare type VerifyVerificationResponse = VerificationResult & { | ||
/** | ||
@@ -1592,9 +1472,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: VerificationResult; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the sendVerificationFromParameters operation. | ||
* Contains response data for the listWebhooks operation. | ||
*/ | ||
export declare type SendVerificationFromParametersResponse = VerificationContract & { | ||
export declare type ListWebhooksResponse = Array<WebhookContract> & { | ||
/** | ||
@@ -1611,9 +1491,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: WebhookContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the sendVerificationFromProposal operation. | ||
* Contains response data for the createWebhook operation. | ||
*/ | ||
export declare type SendVerificationFromProposalResponse = VerificationContract & { | ||
export declare type CreateWebhookResponse = WebhookContract & { | ||
/** | ||
@@ -1630,4 +1510,4 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: WebhookContract; | ||
}; | ||
}; |
@@ -13,3 +13,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const VerificationPolicyPredicateContract: msRest.CompositeMapper; | ||
export declare const VerificationPolicyRevocationReqirement: msRest.CompositeMapper; | ||
export declare const VerificationPolicyRevocationRequirement: msRest.CompositeMapper; | ||
export declare const VerificationPolicyContract: msRest.CompositeMapper; | ||
@@ -16,0 +16,0 @@ export declare const VerificationPolicyParameters: msRest.CompositeMapper; |
@@ -422,2 +422,3 @@ "use strict"; | ||
attributeNames: { | ||
required: true, | ||
serializedName: "attributeNames", | ||
@@ -497,7 +498,7 @@ type: { | ||
}; | ||
exports.VerificationPolicyRevocationReqirement = { | ||
serializedName: "VerificationPolicyRevocationReqirement", | ||
exports.VerificationPolicyRevocationRequirement = { | ||
serializedName: "VerificationPolicyRevocationRequirement", | ||
type: { | ||
name: "Composite", | ||
className: "VerificationPolicyRevocationReqirement", | ||
className: "VerificationPolicyRevocationRequirement", | ||
modelProperties: { | ||
@@ -567,3 +568,3 @@ validAt: { | ||
name: "Composite", | ||
className: "VerificationPolicyRevocationReqirement" | ||
className: "VerificationPolicyRevocationRequirement" | ||
} | ||
@@ -622,3 +623,3 @@ } | ||
name: "Composite", | ||
className: "VerificationPolicyRevocationReqirement" | ||
className: "VerificationPolicyRevocationRequirement" | ||
} | ||
@@ -1808,2 +1809,8 @@ } | ||
} | ||
}, | ||
parameters: { | ||
serializedName: "parameters", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
@@ -1810,0 +1817,0 @@ } |
@@ -10,3 +10,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const filename: msRest.OperationParameter; | ||
export declare const messageId: msRest.OperationURLParameter; | ||
export declare const networkId: msRest.OperationURLParameter; | ||
@@ -13,0 +12,0 @@ export declare const policyId: msRest.OperationURLParameter; |
@@ -96,12 +96,2 @@ "use strict"; | ||
}; | ||
exports.messageId = { | ||
parameterPath: "messageId", | ||
mapper: { | ||
required: true, | ||
serializedName: "messageId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
exports.networkId = { | ||
@@ -108,0 +98,0 @@ parameterPath: "networkId", |
import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* An interface representing AssetContract. | ||
* Cloud Wallet Analytics Contract | ||
*/ | ||
export interface CloudWalletAnalyticsContract { | ||
/** | ||
* Total number of cloud wallets for this account. | ||
*/ | ||
total?: number; | ||
} | ||
/** | ||
* Usage Contract | ||
*/ | ||
export interface UsageContract { | ||
/** | ||
* Period start date | ||
*/ | ||
periodStart?: Date; | ||
/** | ||
* Period end date | ||
*/ | ||
periodEnd?: Date; | ||
/** | ||
* Total credentials issued for the given period | ||
*/ | ||
credentialCount?: number; | ||
/** | ||
* Total verifications processed for the given period | ||
*/ | ||
verificationCount?: number; | ||
/** | ||
* The invoice identifier | ||
*/ | ||
invoiceId?: string; | ||
} | ||
/** | ||
* Asset contract | ||
*/ | ||
export interface AssetContract { | ||
/** | ||
* Public URI | ||
*/ | ||
publicUri?: string; | ||
@@ -31,3 +68,3 @@ } | ||
/** | ||
* Isuser key generation seed used for deterministic key creation (32 characters) | ||
* Issuer key generation seed used for deterministic key creation (32 characters) | ||
*/ | ||
@@ -57,7 +94,7 @@ issuerKeyGenerationSeed?: string; | ||
/** | ||
* The Tenant | ||
* Tenant info | ||
*/ | ||
export interface TenantContract { | ||
/** | ||
* Gets or sets the name of the Tenant. | ||
* The tenant name | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
@@ -67,3 +104,3 @@ */ | ||
/** | ||
* Gets or sets the image URL. | ||
* The image URL | ||
*/ | ||
@@ -73,3 +110,3 @@ imageUrl?: string; | ||
/** | ||
* Gets or sets the tenant identifier. | ||
* The tenant identifier | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
@@ -85,37 +122,38 @@ */ | ||
/** | ||
* (Optional) Unique tenant identifier. If not provided, a ranom one will be generated | ||
* The tenant identifier | ||
*/ | ||
tenantId?: string; | ||
/** | ||
* (Optional) Issuer seed used for deterministic DID generation. | ||
* If omitted, a random DID/Key is generated | ||
* Issuer seed used for deterministic DID generation. | ||
* If omitted, a random DID/Key is generated. | ||
*/ | ||
issuerSeed?: string; | ||
/** | ||
* (Optional) Ledger network identifier. Default is Sovrin Staging (sovrin-staging) | ||
* The tenant name | ||
*/ | ||
networkId?: string; | ||
name: string; | ||
/** | ||
* Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
* URL of tenant profile image | ||
*/ | ||
endorserType?: EndorserType; | ||
imageUrl?: string; | ||
/** | ||
* (Required) The name of the tenant. | ||
* Ledger network identifier. | ||
* Default value is Sovrin Staging (sovrin-staging). | ||
*/ | ||
name: string; | ||
networkId?: string; | ||
/** | ||
* (Optional) Location of image URL used as profile for this tenant | ||
* Possible values include: 'Shared', 'Dedicated', 'Delegated' | ||
*/ | ||
imageUrl?: string; | ||
endorserType?: EndorserType; | ||
} | ||
/** | ||
* An interface representing TenantUpdateParameters. | ||
* Tenant update parameters | ||
*/ | ||
export interface TenantUpdateParameters { | ||
/** | ||
* (Required) The name of the tenant. | ||
* The tenant name | ||
*/ | ||
name?: string; | ||
name: string; | ||
/** | ||
* (Optional) Location of image URL used as profile for this tenant | ||
* URL of tenant image | ||
*/ | ||
@@ -125,3 +163,3 @@ imageUrl?: string; | ||
/** | ||
* An interface representing TenantKeysContract. | ||
* Tenant keys | ||
*/ | ||
@@ -134,4 +172,3 @@ export interface TenantKeysContract { | ||
/** | ||
* Identifies and authenticates your subscription. This is the same across all Trinsic's | ||
* organizations and APIs | ||
* Identifies and authenticates your subscription | ||
*/ | ||
@@ -158,23 +195,4 @@ subscriptionKey?: string; | ||
contentType?: string; | ||
uploadedFiles?: msRest.HttpRequestBody; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface ProviderServiceClientCreateTenantOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* Configuration options for creating new tenant. | ||
*/ | ||
tenantParameters?: TenantParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface ProviderServiceClientUpdateTenantOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* The tenant parameters. | ||
*/ | ||
tenantUpdateParameters?: TenantUpdateParameters; | ||
} | ||
/** | ||
* Defines values for TransactionEndorsement. | ||
@@ -181,0 +199,0 @@ * Possible values include: 'Shared', 'Dedicated', 'Delegated' |
import * as msRest from "@azure/ms-rest-js"; | ||
export declare const CloudWalletAnalyticsContract: msRest.CompositeMapper; | ||
export declare const UsageContract: msRest.CompositeMapper; | ||
export declare const AssetContract: msRest.CompositeMapper; | ||
@@ -3,0 +5,0 @@ export declare const NetworkContract: msRest.CompositeMapper; |
@@ -7,2 +7,56 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CloudWalletAnalyticsContract = { | ||
serializedName: "CloudWalletAnalyticsContract", | ||
type: { | ||
name: "Composite", | ||
className: "CloudWalletAnalyticsContract", | ||
modelProperties: { | ||
total: { | ||
serializedName: "total", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.UsageContract = { | ||
serializedName: "UsageContract", | ||
type: { | ||
name: "Composite", | ||
className: "UsageContract", | ||
modelProperties: { | ||
periodStart: { | ||
serializedName: "periodStart", | ||
type: { | ||
name: "DateTime" | ||
} | ||
}, | ||
periodEnd: { | ||
serializedName: "periodEnd", | ||
type: { | ||
name: "DateTime" | ||
} | ||
}, | ||
credentialCount: { | ||
serializedName: "credentialCount", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
verificationCount: { | ||
serializedName: "verificationCount", | ||
type: { | ||
name: "Number" | ||
} | ||
}, | ||
invoiceId: { | ||
serializedName: "invoiceId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
exports.AssetContract = { | ||
@@ -174,4 +228,5 @@ serializedName: "AssetContract", | ||
}, | ||
networkId: { | ||
serializedName: "networkId", | ||
name: { | ||
required: true, | ||
serializedName: "name", | ||
type: { | ||
@@ -181,4 +236,4 @@ name: "String" | ||
}, | ||
endorserType: { | ||
serializedName: "endorserType", | ||
imageUrl: { | ||
serializedName: "imageUrl", | ||
type: { | ||
@@ -188,5 +243,4 @@ name: "String" | ||
}, | ||
name: { | ||
required: true, | ||
serializedName: "name", | ||
networkId: { | ||
serializedName: "networkId", | ||
type: { | ||
@@ -196,4 +250,4 @@ name: "String" | ||
}, | ||
imageUrl: { | ||
serializedName: "imageUrl", | ||
endorserType: { | ||
serializedName: "endorserType", | ||
type: { | ||
@@ -213,2 +267,3 @@ name: "String" | ||
name: { | ||
required: true, | ||
serializedName: "name", | ||
@@ -215,0 +270,0 @@ type: { |
import * as msRest from "@azure/ms-rest-js"; | ||
export declare const contentType: msRest.OperationQueryParameter; | ||
export declare const filename: msRest.OperationQueryParameter; | ||
export declare const contentType: msRest.OperationParameter; | ||
export declare const filename: msRest.OperationParameter; | ||
export declare const tenantId: msRest.OperationURLParameter; | ||
export declare const uploadedFiles: msRest.OperationParameter; |
@@ -43,7 +43,5 @@ "use strict"; | ||
exports.uploadedFiles = { | ||
parameterPath: [ | ||
"options", | ||
"uploadedFiles" | ||
], | ||
parameterPath: "uploadedFiles", | ||
mapper: { | ||
required: true, | ||
serializedName: "uploadedFiles", | ||
@@ -50,0 +48,0 @@ type: { |
@@ -14,19 +14,22 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* Upload a new asset to be used as an image for a tenant tile. | ||
* @summary Upload a new asset | ||
* @summary Upload asset | ||
* @param uploadedFiles Asset files to be uploaded | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.AddAssetResponse> | ||
*/ | ||
addAsset(options?: Models.ProviderServiceClientAddAssetOptionalParams): Promise<Models.AddAssetResponse>; | ||
addAsset(uploadedFiles: msRest.HttpRequestBody, options?: Models.ProviderServiceClientAddAssetOptionalParams): Promise<Models.AddAssetResponse>; | ||
/** | ||
* @param uploadedFiles Asset files to be uploaded | ||
* @param callback The callback | ||
*/ | ||
addAsset(callback: msRest.ServiceCallback<Models.AssetContract>): void; | ||
addAsset(uploadedFiles: msRest.HttpRequestBody, callback: msRest.ServiceCallback<Models.AssetContract>): void; | ||
/** | ||
* @param uploadedFiles Asset files to be uploaded | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
addAsset(options: Models.ProviderServiceClientAddAssetOptionalParams, callback: msRest.ServiceCallback<Models.AssetContract>): void; | ||
addAsset(uploadedFiles: msRest.HttpRequestBody, options: Models.ProviderServiceClientAddAssetOptionalParams, callback: msRest.ServiceCallback<Models.AssetContract>): void; | ||
/** | ||
* Get a collection of available tenants for the current authorization context. | ||
* @summary List all available tenants | ||
* List all available tenants for the current authorization context. | ||
* @summary List all tenants | ||
* @param [options] The optional parameters | ||
@@ -46,22 +49,25 @@ * @returns Promise<Models.ListTenantsResponse> | ||
/** | ||
* Create new tenant and setup a unique agency endpoint. | ||
* Create a tenant and setup a unique agency endpoint. | ||
* The agency will be set as an issuer. | ||
* @summary Create a new tenant | ||
* @summary Create tenant | ||
* @param body Configuration options for creating new tenant | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateTenantResponse> | ||
*/ | ||
createTenant(options?: Models.ProviderServiceClientCreateTenantOptionalParams): Promise<Models.CreateTenantResponse>; | ||
createTenant(body: Models.TenantParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateTenantResponse>; | ||
/** | ||
* @param body Configuration options for creating new tenant | ||
* @param callback The callback | ||
*/ | ||
createTenant(callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
createTenant(body: Models.TenantParameters, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* @param body Configuration options for creating new tenant | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createTenant(options: Models.ProviderServiceClientCreateTenantOptionalParams, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
createTenant(body: Models.TenantParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantContract>): void; | ||
/** | ||
* Returns the tenant associate with the provided tenantId. | ||
* @summary Get the specified tenant | ||
* @param tenantId | ||
* Get the specified tenant. | ||
* @summary Get tenant | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
@@ -72,3 +78,3 @@ * @returns Promise<Models.GetTenantResponse> | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
@@ -78,3 +84,3 @@ */ | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
@@ -85,25 +91,28 @@ * @param callback The callback | ||
/** | ||
* Updates the tenant with the specified new configuration. | ||
* @summary Updates the tenant | ||
* @param tenantId The tenant identifier. | ||
* Update the specified tenant with the specified new configuration. | ||
* @summary Update tenant | ||
* @param tenantId The tenant identifier | ||
* @param body The tenant parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
updateTenant(tenantId: string, options?: Models.ProviderServiceClientUpdateTenantOptionalParams): Promise<msRest.RestResponse>; | ||
updateTenant(tenantId: string, body: Models.TenantUpdateParameters, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param tenantId The tenant identifier. | ||
* @param tenantId The tenant identifier | ||
* @param body The tenant parameters | ||
* @param callback The callback | ||
*/ | ||
updateTenant(tenantId: string, callback: msRest.ServiceCallback<void>): void; | ||
updateTenant(tenantId: string, body: Models.TenantUpdateParameters, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param tenantId The tenant identifier. | ||
* @param tenantId The tenant identifier | ||
* @param body The tenant parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
updateTenant(tenantId: string, options: Models.ProviderServiceClientUpdateTenantOptionalParams, callback: msRest.ServiceCallback<void>): void; | ||
updateTenant(tenantId: string, body: Models.TenantUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Permanently remove a tenant, including their wallet, endpoint registrations and all data. | ||
* Permanently delete 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 | ||
* @summary Delete tenant | ||
* @param tenantId | ||
@@ -126,5 +135,5 @@ * @param [options] The optional parameters | ||
/** | ||
* Get the authorization keys for a tenant in the current authorization context | ||
* Get the authorization keys for a tenant in the current authorization context. | ||
* @summary Get tenant keys | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
@@ -135,3 +144,3 @@ * @returns Promise<Models.GetTenantKeysResponse> | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
@@ -141,3 +150,3 @@ */ | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
@@ -148,5 +157,5 @@ * @param callback The callback | ||
/** | ||
* Update the authorization keys for a tenant in the current authorization context | ||
* Update the authorization keys for a tenant in the current authorization context. | ||
* @summary Update tenant keys | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param [options] The optional parameters | ||
@@ -157,3 +166,3 @@ * @returns Promise<Models.ChangeTenantKeysResponse> | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param callback The callback | ||
@@ -163,3 +172,3 @@ */ | ||
/** | ||
* @param tenantId | ||
* @param tenantId The tenant identifier | ||
* @param options The optional parameters | ||
@@ -166,0 +175,0 @@ * @param callback The callback |
@@ -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 }); | ||
@@ -40,4 +51,5 @@ var msRest = require("@azure/ms-rest-js"); | ||
} | ||
ProviderServiceClient.prototype.addAsset = function (options, callback) { | ||
ProviderServiceClient.prototype.addAsset = function (uploadedFiles, options, callback) { | ||
return this.sendOperationRequest({ | ||
uploadedFiles: uploadedFiles, | ||
options: options | ||
@@ -51,4 +63,5 @@ }, addAssetOperationSpec, callback); | ||
}; | ||
ProviderServiceClient.prototype.createTenant = function (options, callback) { | ||
ProviderServiceClient.prototype.createTenant = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
@@ -63,5 +76,6 @@ }, createTenantOperationSpec, callback); | ||
}; | ||
ProviderServiceClient.prototype.updateTenant = function (tenantId, options, callback) { | ||
ProviderServiceClient.prototype.updateTenant = function (tenantId, body, options, callback) { | ||
return this.sendOperationRequest({ | ||
tenantId: tenantId, | ||
body: body, | ||
options: options | ||
@@ -96,9 +110,7 @@ }, updateTenantOperationSpec, callback); | ||
path: "provider/v1/assets", | ||
queryParameters: [ | ||
formDataParameters: [ | ||
Parameters.uploadedFiles, | ||
Parameters.filename, | ||
Parameters.contentType | ||
], | ||
formDataParameters: [ | ||
Parameters.uploadedFiles | ||
], | ||
contentType: "multipart/form-data", | ||
@@ -139,8 +151,6 @@ responses: { | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"tenantParameters" | ||
], | ||
mapper: Mappers.TenantParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.TenantParameters, { required: true }) | ||
}, | ||
contentType: "application/json;odata.metadata=minimal;odata.streaming=true; charset=utf-8", | ||
responses: { | ||
@@ -175,8 +185,6 @@ 200: { | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"tenantUpdateParameters" | ||
], | ||
mapper: Mappers.TenantUpdateParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.TenantUpdateParameters, { required: true }) | ||
}, | ||
contentType: "application/json;odata.metadata=minimal;odata.streaming=true; charset=utf-8", | ||
responses: { | ||
@@ -183,0 +191,0 @@ 200: {}, |
@@ -34,3 +34,3 @@ "use strict"; | ||
var packageName = ""; | ||
var packageVersion = "1.1.3977"; | ||
var packageVersion = "1.1.4070"; | ||
var ProviderServiceClientContext = /** @class */ (function (_super) { | ||
@@ -57,3 +57,3 @@ __extends(ProviderServiceClientContext, _super); | ||
_this = _super.call(this, credentials, options) || this; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/provider/v1"; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.trinsic.id/provider/v1"; | ||
_this.requestContentType = "application/json; charset=utf-8"; | ||
@@ -60,0 +60,0 @@ _this.credentials = credentials; |
@@ -19,10 +19,9 @@ import { ServiceClientCredentials, WebResource } from "@azure/ms-rest-js"; | ||
accessToken: string; | ||
subscriptionKey: string; | ||
constructor(accessToken: string, subscriptionKey: string); | ||
constructor(accessToken: string); | ||
signRequest(webResource: WebResource): Promise<WebResource>; | ||
} | ||
export declare class TrinsicProviderCredentials implements ServiceClientCredentials { | ||
accountSecret: string; | ||
constructor(accountSecret: string); | ||
providerKey: string; | ||
constructor(providerKey: string); | ||
signRequest(webResource: WebResource): Promise<WebResource>; | ||
} |
@@ -22,9 +22,7 @@ "use strict"; | ||
var TrinsicClientCredentials = /** @class */ (function () { | ||
function TrinsicClientCredentials(accessToken, subscriptionKey) { | ||
function TrinsicClientCredentials(accessToken) { | ||
this.accessToken = accessToken; | ||
this.subscriptionKey = subscriptionKey; | ||
} | ||
TrinsicClientCredentials.prototype.signRequest = function (webResource) { | ||
webResource.headers.set("Authorization", "Bearer " + this.accessToken); | ||
webResource.headers.set("X-Trinsic-Subscription-Key", this.subscriptionKey); | ||
return Promise.resolve(webResource); | ||
@@ -36,7 +34,7 @@ }; | ||
var TrinsicProviderCredentials = /** @class */ (function () { | ||
function TrinsicProviderCredentials(accountSecret) { | ||
this.accountSecret = accountSecret; | ||
function TrinsicProviderCredentials(providerKey) { | ||
this.providerKey = providerKey; | ||
} | ||
TrinsicProviderCredentials.prototype.signRequest = function (webResource) { | ||
webResource.headers.set("Authorization", "Bearer " + this.accountSecret); | ||
webResource.headers.set("Authorization", "Bearer " + this.providerKey); | ||
return Promise.resolve(webResource); | ||
@@ -43,0 +41,0 @@ }; |
@@ -206,7 +206,7 @@ import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
/** | ||
* Gets or sets the identifier. | ||
* The wallet identifier | ||
*/ | ||
walletId?: string; | ||
/** | ||
* Gets or sets the name. | ||
* The wallet name | ||
*/ | ||
@@ -220,3 +220,3 @@ name?: string; | ||
/** | ||
* Gets or sets the wallet identifier. | ||
* The wallet identifier | ||
* <remarks> | ||
@@ -228,3 +228,3 @@ * This property can be null. If not set, a unique identifier will be generated | ||
/** | ||
* Gets or sets the name of the owner. | ||
* The owner name | ||
*/ | ||
@@ -240,26 +240,2 @@ ownerName?: string; | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface WalletServiceClientCreateWalletOptionalParams extends msRest.RequestOptionsBase { | ||
walletParameters?: WalletParameters; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface WalletServiceClientDeleteWalletOptionalParams extends msRest.RequestOptionsBase { | ||
walletId?: string; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface WalletServiceClientSubmitVerificationOptionalParams extends msRest.RequestOptionsBase { | ||
verificationPolicyCredentialParametersArray?: VerificationPolicyCredentialParameters[]; | ||
} | ||
/** | ||
* Optional Parameters. | ||
*/ | ||
export interface WalletServiceClientProposeVerificationOptionalParams extends msRest.RequestOptionsBase { | ||
verificationPolicyParameters?: VerificationPolicyParameters; | ||
} | ||
/** | ||
* Defines values for State. | ||
@@ -322,5 +298,5 @@ * Possible values include: 'Invited', 'Negotiating', 'Connected' | ||
/** | ||
* Contains response data for the getConnections operation. | ||
* Contains response data for the listConnections operation. | ||
*/ | ||
export declare type GetConnectionsResponse = Array<ConnectionContract> & { | ||
export declare type ListConnectionsResponse = Array<ConnectionContract> & { | ||
/** | ||
@@ -341,5 +317,5 @@ * The underlying HTTP response. | ||
/** | ||
* Contains response data for the getInvitations operation. | ||
* Contains response data for the listInvitations operation. | ||
*/ | ||
export declare type GetInvitationsResponse = Array<ConnectionContract> & { | ||
export declare type ListInvitationsResponse = Array<ConnectionContract> & { | ||
/** | ||
@@ -414,5 +390,5 @@ * The underlying HTTP response. | ||
/** | ||
* Contains response data for the listVerificationsForConnection operation. | ||
* Contains response data for the acceptCredential operation. | ||
*/ | ||
export declare type ListVerificationsForConnectionResponse = Array<VerificationContract> & { | ||
export declare type AcceptCredentialResponse = CredentialContract & { | ||
/** | ||
@@ -429,9 +405,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract[]; | ||
parsedBody: CredentialContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listWallets operation. | ||
* Contains response data for the listVerificationsForConnection operation. | ||
*/ | ||
export declare type ListWalletsResponse = Array<CustodianWalletContract> & { | ||
export declare type ListVerificationsForConnectionResponse = Array<VerificationContract> & { | ||
/** | ||
@@ -448,9 +424,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CustodianWalletContract[]; | ||
parsedBody: VerificationContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createWallet operation. | ||
* Contains response data for the listVerifications operation. | ||
*/ | ||
export declare type CreateWalletResponse = CustodianWalletContract & { | ||
export declare type ListVerificationsResponse = Array<VerificationContract> & { | ||
/** | ||
@@ -467,9 +443,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CustodianWalletContract; | ||
parsedBody: VerificationContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the listVerifications operation. | ||
* Contains response data for the getVerification operation. | ||
*/ | ||
export declare type ListVerificationsResponse = Array<VerificationContract> & { | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
/** | ||
@@ -486,9 +462,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract[]; | ||
parsedBody: VerificationContract; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the getVerification operation. | ||
* Contains response data for the proposeVerification operation. | ||
*/ | ||
export declare type GetVerificationResponse = VerificationContract & { | ||
export declare type ProposeVerificationResponse = VerificationContract & { | ||
/** | ||
@@ -527,5 +503,5 @@ * The underlying HTTP response. | ||
/** | ||
* Contains response data for the acceptCredential operation. | ||
* Contains response data for the listWallets operation. | ||
*/ | ||
export declare type AcceptCredentialResponse = CredentialContract & { | ||
export declare type ListWalletsResponse = Array<CustodianWalletContract> & { | ||
/** | ||
@@ -542,9 +518,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: CredentialContract; | ||
parsedBody: CustodianWalletContract[]; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the proposeVerification operation. | ||
* Contains response data for the createWallet operation. | ||
*/ | ||
export declare type ProposeVerificationResponse = VerificationContract & { | ||
export declare type CreateWalletResponse = CustodianWalletContract & { | ||
/** | ||
@@ -561,4 +537,4 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: VerificationContract; | ||
parsedBody: CustodianWalletContract; | ||
}; | ||
}; |
@@ -8,3 +8,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const verificationId: msRest.OperationURLParameter; | ||
export declare const walletId0: msRest.OperationURLParameter; | ||
export declare const walletId1: msRest.OperationQueryParameter; | ||
export declare const walletId: msRest.OperationURLParameter; |
@@ -68,3 +68,3 @@ "use strict"; | ||
}; | ||
exports.walletId0 = { | ||
exports.walletId = { | ||
parameterPath: "walletId", | ||
@@ -79,13 +79,1 @@ mapper: { | ||
}; | ||
exports.walletId1 = { | ||
parameterPath: [ | ||
"options", | ||
"walletId" | ||
], | ||
mapper: { | ||
serializedName: "walletId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; |
@@ -13,8 +13,6 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* Accept a connection invitation in the specified wallet. | ||
* The invitation can be in a form of URL or invitation JSON encoded as base64 data. | ||
* More details about what it means to accept an invitation can be found within the <a | ||
* href="https://github.com/hyperledger/aries-rfcs/blob/master/features/0160-connection-protocol/README.md#0-invitation-to-connect">Aries | ||
* Connection Protocol </a> | ||
* @summary Accept an invitation to connect. | ||
* @param walletId The wallet Id | ||
* @summary Accept connection invitation | ||
* @param walletId The wallet identifier | ||
* @param invitation | ||
@@ -26,3 +24,3 @@ * @param [options] The optional parameters | ||
/** | ||
* @param walletId The wallet Id | ||
* @param walletId The wallet identifier | ||
* @param invitation | ||
@@ -33,3 +31,3 @@ * @param callback The callback | ||
/** | ||
* @param walletId The wallet Id | ||
* @param walletId The wallet identifier | ||
* @param invitation | ||
@@ -41,6 +39,6 @@ * @param options The optional parameters | ||
/** | ||
* Related: <a href="https://docs.trinsic.id/docs/connections"> Guide to Connections </a> | ||
* @summary Get connection by ID | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* Get the specified connection in the specified wallet. | ||
* @summary Get connection | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param [options] The optional parameters | ||
@@ -51,4 +49,4 @@ * @returns Promise<Models.GetConnectionResponse> | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param callback The callback | ||
@@ -58,4 +56,4 @@ */ | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param options The optional parameters | ||
@@ -66,28 +64,28 @@ * @param callback The callback | ||
/** | ||
* Retrieves a list of connections that are in 'Connected' state. | ||
* @summary Get list of connections. | ||
* @param walletId | ||
* List all connections in the specified wallet in the "Connected" state. | ||
* @summary List all connections | ||
* @param walletId The wallet identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetConnectionsResponse> | ||
* @returns Promise<Models.ListConnectionsResponse> | ||
*/ | ||
getConnections(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetConnectionsResponse>; | ||
listConnections(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListConnectionsResponse>; | ||
/** | ||
* @param walletId | ||
* @param walletId The wallet identifier | ||
* @param callback The callback | ||
*/ | ||
getConnections(walletId: string, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
listConnections(walletId: string, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
/** | ||
* @param walletId | ||
* @param walletId The wallet identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getConnections(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
listConnections(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
/** | ||
* Get list of invitations. | ||
* @summary Get list of invitations. | ||
* List all connection invitations in the specified wallet. | ||
* @summary List connection invitations | ||
* @param walletId The wallet identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetInvitationsResponse> | ||
* @returns Promise<Models.ListInvitationsResponse> | ||
*/ | ||
getInvitations(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetInvitationsResponse>; | ||
listInvitations(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListInvitationsResponse>; | ||
/** | ||
@@ -97,3 +95,3 @@ * @param walletId The wallet identifier | ||
*/ | ||
getInvitations(walletId: string, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
listInvitations(walletId: string, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
/** | ||
@@ -104,8 +102,8 @@ * @param walletId The wallet identifier | ||
*/ | ||
getInvitations(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
listInvitations(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ConnectionContract[]>): void; | ||
/** | ||
* Lists the credentials for a connection identifier. | ||
* @summary Lists the credentials for a connection identifier. | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* List all credentials in the specified wallet associated with the specified connection. | ||
* @summary List all credentials for connection | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param [options] The optional parameters | ||
@@ -116,4 +114,4 @@ * @returns Promise<Models.ListCredentialsForConnectionIdResponse> | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param callback The callback | ||
@@ -123,4 +121,4 @@ */ | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param options The optional parameters | ||
@@ -131,4 +129,4 @@ * @param callback The callback | ||
/** | ||
* Lists the credentials. | ||
* @summary Lists the credentials. | ||
* List all credentials in the specified wallet | ||
* @summary List all credentials | ||
* @param walletId | ||
@@ -151,8 +149,29 @@ * @param [options] The optional parameters | ||
/** | ||
* Learn more about credentials in <a href="https://docs.trinsic.id/docs/credentials"> our | ||
* credentials documentation </a> | ||
* @summary Accepts a credential offer | ||
* @param walletId | ||
* @param credentialId The credential identifier. | ||
* Get the specified credential in the specified wallet. | ||
* @summary Get credential | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetCredentialResponse> | ||
*/ | ||
getCredential(walletId: string, credentialId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetCredentialResponse>; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
*/ | ||
getCredential(walletId: string, credentialId: string, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getCredential(walletId: string, credentialId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* Accept the specified credential offer in the specified wallet. | ||
* @summary Accept credential offer | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
@@ -162,4 +181,4 @@ */ | ||
/** | ||
* @param walletId | ||
* @param credentialId The credential identifier. | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param callback The callback | ||
@@ -169,4 +188,4 @@ */ | ||
/** | ||
* @param walletId | ||
* @param credentialId The credential identifier. | ||
* @param walletId The wallet identifier | ||
* @param credentialId The credential identifier | ||
* @param options The optional parameters | ||
@@ -177,28 +196,30 @@ * @param callback The callback | ||
/** | ||
* Retrieve the credential details for the given {credentialId} | ||
* @summary Retrieve the credential details for the given {credentialId} | ||
* @param walletId The wallet identifier. | ||
* @param credentialId The credential identifier. | ||
* Accept a credential offer using the provided URL or data. | ||
* The credential field can be in the form of a URL or JSON encoded as base64 data. | ||
* This endpoint is used to accept connectionless credential issuance. | ||
* @summary Accept credential offer from URL or data | ||
* @param walletId The wallet identifier | ||
* @param credentialData | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetCredentialResponse> | ||
* @returns Promise<Models.AcceptCredentialResponse> | ||
*/ | ||
getCredential(walletId: string, credentialId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetCredentialResponse>; | ||
acceptCredential(walletId: string, credentialData: string, options?: msRest.RequestOptionsBase): Promise<Models.AcceptCredentialResponse>; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param credentialId The credential identifier. | ||
* @param walletId The wallet identifier | ||
* @param credentialData | ||
* @param callback The callback | ||
*/ | ||
getCredential(walletId: string, credentialId: string, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
acceptCredential(walletId: string, credentialData: string, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param credentialId The credential identifier. | ||
* @param walletId The wallet identifier | ||
* @param credentialData | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getCredential(walletId: string, credentialId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
acceptCredential(walletId: string, credentialData: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
/** | ||
* Lists the verifications for connection. | ||
* @summary Lists the verifications for connection. | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* List all available verifications in the specified wallet for the specified connection. | ||
* @summary List all verifications for connection | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param [options] The optional parameters | ||
@@ -209,4 +230,4 @@ * @returns Promise<Models.ListVerificationsForConnectionResponse> | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param callback The callback | ||
@@ -216,4 +237,4 @@ */ | ||
/** | ||
* @param walletId | ||
* @param connectionId The connection identifier. | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param options The optional parameters | ||
@@ -224,72 +245,97 @@ * @param callback The callback | ||
/** | ||
* Lists all wallets | ||
* @summary Lists all wallets | ||
* List all available verifications in the specified wallet. | ||
* @summary List all verifications | ||
* @param walletId The wallet identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListWalletsResponse> | ||
* @returns Promise<Models.ListVerificationsResponse> | ||
*/ | ||
listWallets(options?: msRest.RequestOptionsBase): Promise<Models.ListWalletsResponse>; | ||
listVerifications(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationsResponse>; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param callback The callback | ||
*/ | ||
listWallets(callback: msRest.ServiceCallback<Models.CustodianWalletContract[]>): void; | ||
listVerifications(walletId: string, callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listWallets(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CustodianWalletContract[]>): void; | ||
listVerifications(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
/** | ||
* Create new user wallet | ||
* @summary Create new user wallet | ||
* Get the specified verification in the specified wallet. | ||
* @summary Get verification | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.CreateWalletResponse> | ||
* @returns Promise<Models.GetVerificationResponse> | ||
*/ | ||
createWallet(options?: Models.WalletServiceClientCreateWalletOptionalParams): Promise<Models.CreateWalletResponse>; | ||
getVerification(walletId: string, verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationResponse>; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param callback The callback | ||
*/ | ||
createWallet(callback: msRest.ServiceCallback<Models.CustodianWalletContract>): void; | ||
getVerification(walletId: string, verificationId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
createWallet(options: Models.WalletServiceClientCreateWalletOptionalParams, callback: msRest.ServiceCallback<Models.CustodianWalletContract>): void; | ||
getVerification(walletId: string, verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* This will delete all connections, credentials and verification records for this user wallet. | ||
* @summary Deletes the wallet permanently. | ||
* Submit the verification using the provided policy parameters. | ||
* @summary Submit verification using policy parameters | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param body The verification policy parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
deleteWallet(options?: Models.WalletServiceClientDeleteWalletOptionalParams): Promise<msRest.RestResponse>; | ||
submitVerification(walletId: string, verificationId: string, body: Models.VerificationPolicyCredentialParameters[], options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param body The verification policy parameters | ||
* @param callback The callback | ||
*/ | ||
deleteWallet(callback: msRest.ServiceCallback<void>): void; | ||
submitVerification(walletId: string, verificationId: string, body: Models.VerificationPolicyCredentialParameters[], callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param body The verification policy parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteWallet(options: Models.WalletServiceClientDeleteWalletOptionalParams, callback: msRest.ServiceCallback<void>): void; | ||
submitVerification(walletId: string, verificationId: string, body: Models.VerificationPolicyCredentialParameters[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Get a list of all available verifications for the specified wallet | ||
* @summary Get a list of all available verifications for the specified wallet | ||
* @param walletId | ||
* Create a verification proposal from the specified policy | ||
* @summary Create verification proposal | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param body The proposal policy | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListVerificationsResponse> | ||
* @returns Promise<Models.ProposeVerificationResponse> | ||
*/ | ||
listVerifications(walletId: string, options?: msRest.RequestOptionsBase): Promise<Models.ListVerificationsResponse>; | ||
proposeVerification(walletId: string, connectionId: string, body: Models.VerificationPolicyParameters, options?: msRest.RequestOptionsBase): Promise<Models.ProposeVerificationResponse>; | ||
/** | ||
* @param walletId | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param body The proposal policy | ||
* @param callback The callback | ||
*/ | ||
listVerifications(walletId: string, callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
proposeVerification(walletId: string, connectionId: string, body: Models.VerificationPolicyParameters, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param walletId | ||
* @param walletId The wallet identifier | ||
* @param connectionId The connection identifier | ||
* @param body The proposal policy | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listVerifications(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract[]>): void; | ||
proposeVerification(walletId: string, connectionId: string, body: Models.VerificationPolicyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* If a credential is not available for a certain policy, that policy will not be included | ||
* in the submitted verification. | ||
* @summary Submit verification by automatically selecting available credentials. | ||
* Submit the verification with a credential that matches the requested information. | ||
* If a credential is not available for a certain policy, that policy will not be included in the | ||
* submitted verification. | ||
* @summary Submit verification with automatic credential selection | ||
* @param walletId The wallet identifier | ||
@@ -315,135 +361,102 @@ * @param verificationId The verification identifier | ||
/** | ||
* Submit verification using the provided policy parameters | ||
* @summary Submit verification using the provided policy parameters | ||
* @param walletId | ||
* @param verificationId | ||
* List all available credentials that satisfy the verification request. | ||
* @summary List all credentials for verification | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.GetAvailableCredentialsForVerificationResponse> | ||
*/ | ||
submitVerification(walletId: string, verificationId: string, options?: Models.WalletServiceClientSubmitVerificationOptionalParams): Promise<msRest.RestResponse>; | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetAvailableCredentialsForVerificationResponse>; | ||
/** | ||
* @param walletId | ||
* @param verificationId | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param callback The callback | ||
*/ | ||
submitVerification(walletId: string, verificationId: string, callback: msRest.ServiceCallback<void>): void; | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, callback: msRest.ServiceCallback<Models.VerificationPolicyCredentialContract[]>): void; | ||
/** | ||
* @param walletId | ||
* @param verificationId | ||
* @param walletId The wallet identifier | ||
* @param verificationId The verification identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
submitVerification(walletId: string, verificationId: string, options: Models.WalletServiceClientSubmitVerificationOptionalParams, callback: msRest.ServiceCallback<void>): void; | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyCredentialContract[]>): void; | ||
/** | ||
* Retrieve a verification with the given identifier. | ||
* @summary Retrieve a verification with the given identifier. | ||
* @param walletId The wallet identifier. | ||
* @param verificationId The verification identifier. | ||
* Submit the verification from data with automatic credential selection. | ||
* Verification data can be in the form of a URL or base64 data. | ||
* @summary Submit verification with automatic credential selection from data | ||
* @param walletId The wallet identifier | ||
* @param verificationData | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetVerificationResponse> | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
getVerification(walletId: string, verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetVerificationResponse>; | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param verificationId The verification identifier. | ||
* @param walletId The wallet identifier | ||
* @param verificationData | ||
* @param callback The callback | ||
*/ | ||
getVerification(walletId: string, verificationId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param verificationId The verification identifier. | ||
* @param walletId The wallet identifier | ||
* @param verificationData | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getVerification(walletId: string, verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* Get a list of available credentials for a given verification | ||
* @summary Get a list of available credentials for a given verification | ||
* @param walletId | ||
* @param verificationId | ||
* List all custodian wallets for the current authorization context. | ||
* @summary List all wallets | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetAvailableCredentialsForVerificationResponse> | ||
* @returns Promise<Models.ListWalletsResponse> | ||
*/ | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetAvailableCredentialsForVerificationResponse>; | ||
listWallets(options?: msRest.RequestOptionsBase): Promise<Models.ListWalletsResponse>; | ||
/** | ||
* @param walletId | ||
* @param verificationId | ||
* @param callback The callback | ||
*/ | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, callback: msRest.ServiceCallback<Models.VerificationPolicyCredentialContract[]>): void; | ||
listWallets(callback: msRest.ServiceCallback<Models.CustodianWalletContract[]>): void; | ||
/** | ||
* @param walletId | ||
* @param verificationId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getAvailableCredentialsForVerification(walletId: string, verificationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VerificationPolicyCredentialContract[]>): void; | ||
listWallets(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CustodianWalletContract[]>): void; | ||
/** | ||
* The credential field can be in the form of a URL or JSON encoded as base64 data. | ||
* This endpoint is used to accept connectionless credential issuance. | ||
* @summary Accepts a credential offer (from URL or data) | ||
* @param walletId The wallet identifier. | ||
* @param credentialData | ||
* Create a new custodian wallet. | ||
* @summary Create wallet | ||
* @param body The wallet parameters | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.AcceptCredentialResponse> | ||
* @returns Promise<Models.CreateWalletResponse> | ||
*/ | ||
acceptCredential(walletId: string, credentialData: string, options?: msRest.RequestOptionsBase): Promise<Models.AcceptCredentialResponse>; | ||
createWallet(body: Models.WalletParameters, options?: msRest.RequestOptionsBase): Promise<Models.CreateWalletResponse>; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param credentialData | ||
* @param body The wallet parameters | ||
* @param callback The callback | ||
*/ | ||
acceptCredential(walletId: string, credentialData: string, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
createWallet(body: Models.WalletParameters, callback: msRest.ServiceCallback<Models.CustodianWalletContract>): void; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param credentialData | ||
* @param body The wallet parameters | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
acceptCredential(walletId: string, credentialData: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CredentialContract>): void; | ||
createWallet(body: Models.WalletParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CustodianWalletContract>): void; | ||
/** | ||
* Creates proposal from policy | ||
* @summary Creates proposal from policy | ||
* @param walletId | ||
* @param connectionId | ||
* Permanently delete all connections, credentials and verification records for the specified | ||
* wallet. | ||
* @summary Delete wallet by query | ||
* @param walletId The wallet identifier | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ProposeVerificationResponse> | ||
*/ | ||
proposeVerification(walletId: string, connectionId: string, options?: Models.WalletServiceClientProposeVerificationOptionalParams): Promise<Models.ProposeVerificationResponse>; | ||
/** | ||
* @param walletId | ||
* @param connectionId | ||
* @param callback The callback | ||
*/ | ||
proposeVerification(walletId: string, connectionId: string, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* @param walletId | ||
* @param connectionId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
proposeVerification(walletId: string, connectionId: string, options: Models.WalletServiceClientProposeVerificationOptionalParams, callback: msRest.ServiceCallback<Models.VerificationContract>): void; | ||
/** | ||
* Verification data can be in the form of a URL or base64 data | ||
* @summary Submits the verification from data with automatic credential selection. | ||
* @param walletId The wallet identifier. | ||
* @param verificationData | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteWalletByQuery(walletId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param verificationData | ||
* @param walletId The wallet identifier | ||
* @param callback The callback | ||
*/ | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, callback: msRest.ServiceCallback<void>): void; | ||
deleteWalletByQuery(walletId: string, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param walletId The wallet identifier. | ||
* @param verificationData | ||
* @param walletId The wallet identifier | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
submitVerificationFromDataAutoSelect(walletId: string, verificationData: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteWalletByQuery(walletId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
} | ||
export { WalletServiceClient, WalletServiceClientContext, Models as WalletServiceModels, Mappers as WalletServiceMappers }; |
@@ -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 }); | ||
@@ -54,13 +65,13 @@ var msRest = require("@azure/ms-rest-js"); | ||
}; | ||
WalletServiceClient.prototype.getConnections = function (walletId, options, callback) { | ||
WalletServiceClient.prototype.listConnections = function (walletId, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
options: options | ||
}, getConnectionsOperationSpec, callback); | ||
}, listConnectionsOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.getInvitations = function (walletId, options, callback) { | ||
WalletServiceClient.prototype.listInvitations = function (walletId, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
options: options | ||
}, getInvitationsOperationSpec, callback); | ||
}, listInvitationsOperationSpec, callback); | ||
}; | ||
@@ -80,2 +91,9 @@ WalletServiceClient.prototype.listCredentialsForConnectionId = function (walletId, connectionId, options, callback) { | ||
}; | ||
WalletServiceClient.prototype.getCredential = function (walletId, credentialId, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
credentialId: credentialId, | ||
options: options | ||
}, getCredentialOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.acceptCredentialOffer = function (walletId, credentialId, options, callback) { | ||
@@ -88,8 +106,8 @@ return this.sendOperationRequest({ | ||
}; | ||
WalletServiceClient.prototype.getCredential = function (walletId, credentialId, options, callback) { | ||
WalletServiceClient.prototype.acceptCredential = function (walletId, credentialData, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
credentialId: credentialId, | ||
credentialData: credentialData, | ||
options: options | ||
}, getCredentialOperationSpec, callback); | ||
}, acceptCredentialOperationSpec, callback); | ||
}; | ||
@@ -103,17 +121,2 @@ WalletServiceClient.prototype.listVerificationsForConnection = function (walletId, connectionId, options, callback) { | ||
}; | ||
WalletServiceClient.prototype.listWallets = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, listWalletsOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.createWallet = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, createWalletOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.deleteWallet = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, deleteWalletOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.listVerifications = function (walletId, options, callback) { | ||
@@ -125,3 +128,3 @@ return this.sendOperationRequest({ | ||
}; | ||
WalletServiceClient.prototype.submitVerificationAutoSelect = function (walletId, verificationId, options, callback) { | ||
WalletServiceClient.prototype.getVerification = function (walletId, verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
@@ -131,17 +134,26 @@ walletId: walletId, | ||
options: options | ||
}, submitVerificationAutoSelectOperationSpec, callback); | ||
}, getVerificationOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.submitVerification = function (walletId, verificationId, options, callback) { | ||
WalletServiceClient.prototype.submitVerification = function (walletId, verificationId, body, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
verificationId: verificationId, | ||
body: body, | ||
options: options | ||
}, submitVerificationOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.getVerification = function (walletId, verificationId, options, callback) { | ||
WalletServiceClient.prototype.proposeVerification = function (walletId, connectionId, body, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
connectionId: connectionId, | ||
body: body, | ||
options: options | ||
}, proposeVerificationOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.submitVerificationAutoSelect = function (walletId, verificationId, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
verificationId: verificationId, | ||
options: options | ||
}, getVerificationOperationSpec, callback); | ||
}, submitVerificationAutoSelectOperationSpec, callback); | ||
}; | ||
@@ -155,22 +167,25 @@ WalletServiceClient.prototype.getAvailableCredentialsForVerification = function (walletId, verificationId, options, callback) { | ||
}; | ||
WalletServiceClient.prototype.acceptCredential = function (walletId, credentialData, options, callback) { | ||
WalletServiceClient.prototype.submitVerificationFromDataAutoSelect = function (walletId, verificationData, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
credentialData: credentialData, | ||
verificationData: verificationData, | ||
options: options | ||
}, acceptCredentialOperationSpec, callback); | ||
}, submitVerificationFromDataAutoSelectOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.proposeVerification = function (walletId, connectionId, options, callback) { | ||
WalletServiceClient.prototype.listWallets = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
connectionId: connectionId, | ||
options: options | ||
}, proposeVerificationOperationSpec, callback); | ||
}, listWalletsOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.submitVerificationFromDataAutoSelect = function (walletId, verificationData, options, callback) { | ||
WalletServiceClient.prototype.createWallet = function (body, options, callback) { | ||
return this.sendOperationRequest({ | ||
body: body, | ||
options: options | ||
}, createWalletOperationSpec, callback); | ||
}; | ||
WalletServiceClient.prototype.deleteWalletByQuery = function (walletId, options, callback) { | ||
return this.sendOperationRequest({ | ||
walletId: walletId, | ||
verificationData: verificationData, | ||
options: options | ||
}, submitVerificationFromDataAutoSelectOperationSpec, callback); | ||
}, deleteWalletByQueryOperationSpec, callback); | ||
}; | ||
@@ -186,3 +201,3 @@ return WalletServiceClient; | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
@@ -207,3 +222,3 @@ formDataParameters: [ | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.connectionId | ||
@@ -221,7 +236,7 @@ ], | ||
}; | ||
var getConnectionsOperationSpec = { | ||
var listConnectionsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/connections", | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
@@ -249,7 +264,7 @@ responses: { | ||
}; | ||
var getInvitationsOperationSpec = { | ||
var listInvitationsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/connections/invitations", | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
@@ -281,3 +296,3 @@ responses: { | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.connectionId | ||
@@ -310,3 +325,3 @@ ], | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
@@ -334,11 +349,13 @@ responses: { | ||
}; | ||
var acceptCredentialOfferOperationSpec = { | ||
httpMethod: "POST", | ||
var getCredentialOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/credentials/{credentialId}", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.credentialId | ||
], | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: Mappers.CredentialContract | ||
}, | ||
401: {}, | ||
@@ -350,13 +367,11 @@ 403: {}, | ||
}; | ||
var getCredentialOperationSpec = { | ||
httpMethod: "GET", | ||
var acceptCredentialOfferOperationSpec = { | ||
httpMethod: "POST", | ||
path: "wallet/v1/api/{walletId}/credentials/{credentialId}", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.credentialId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialContract | ||
}, | ||
200: {}, | ||
401: {}, | ||
@@ -368,23 +383,15 @@ 403: {}, | ||
}; | ||
var listVerificationsForConnectionOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/verifications/connection/{connectionId}", | ||
var acceptCredentialOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/credentials/fromData", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.connectionId | ||
Parameters.walletId | ||
], | ||
formDataParameters: [ | ||
Parameters.credentialData | ||
], | ||
contentType: "multipart/form-data", | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "VerificationContract" | ||
} | ||
} | ||
} | ||
} | ||
bodyMapper: Mappers.CredentialContract | ||
}, | ||
@@ -397,5 +404,9 @@ 401: {}, | ||
}; | ||
var listWalletsOperationSpec = { | ||
var listVerificationsForConnectionOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/wallets", | ||
path: "wallet/v1/api/{walletId}/verifications/connection/{connectionId}", | ||
urlParameters: [ | ||
Parameters.walletId, | ||
Parameters.connectionId | ||
], | ||
responses: { | ||
@@ -410,3 +421,3 @@ 200: { | ||
name: "Composite", | ||
className: "CustodianWalletContract" | ||
className: "VerificationContract" | ||
} | ||
@@ -423,36 +434,2 @@ } | ||
}; | ||
var createWalletOperationSpec = { | ||
httpMethod: "POST", | ||
path: "wallet/v1/api/wallets", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"walletParameters" | ||
], | ||
mapper: Mappers.WalletParameters | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CustodianWalletContract | ||
}, | ||
401: {}, | ||
403: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var deleteWalletOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "wallet/v1/api/wallets", | ||
queryParameters: [ | ||
Parameters.walletId1 | ||
], | ||
responses: { | ||
200: {}, | ||
401: {}, | ||
403: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listVerificationsOperationSpec = { | ||
@@ -462,3 +439,3 @@ httpMethod: "GET", | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
@@ -486,11 +463,13 @@ responses: { | ||
}; | ||
var submitVerificationAutoSelectOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/verifications/{verificationId}/autoSelect", | ||
var getVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/verifications/{verificationId}", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: {}, | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
}, | ||
401: {}, | ||
@@ -506,12 +485,10 @@ 403: {}, | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.verificationId | ||
], | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationPolicyCredentialParametersArray" | ||
], | ||
parameterPath: "body", | ||
mapper: { | ||
serializedName: "verificationPolicyCredentialParametersArray", | ||
required: true, | ||
serializedName: "body", | ||
type: { | ||
@@ -536,9 +513,13 @@ name: "Sequence", | ||
}; | ||
var getVerificationOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/{walletId}/verifications/{verificationId}", | ||
var proposeVerificationOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/verifications/propose/{connectionId}", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.verificationId | ||
Parameters.walletId, | ||
Parameters.connectionId | ||
], | ||
requestBody: { | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.VerificationPolicyParameters, { required: true }) | ||
}, | ||
responses: { | ||
@@ -554,2 +535,17 @@ 200: { | ||
}; | ||
var submitVerificationAutoSelectOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/verifications/{verificationId}/autoSelect", | ||
urlParameters: [ | ||
Parameters.walletId, | ||
Parameters.verificationId | ||
], | ||
responses: { | ||
200: {}, | ||
401: {}, | ||
403: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var getAvailableCredentialsForVerificationOperationSpec = { | ||
@@ -559,3 +555,3 @@ httpMethod: "GET", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.walletId, | ||
Parameters.verificationId | ||
@@ -584,15 +580,37 @@ ], | ||
}; | ||
var acceptCredentialOperationSpec = { | ||
var submitVerificationFromDataAutoSelectOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/credentials/fromData", | ||
path: "wallet/v1/api/{walletId}/verifications/fromData/autoSelect", | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
Parameters.walletId | ||
], | ||
formDataParameters: [ | ||
Parameters.credentialData | ||
Parameters.verificationData | ||
], | ||
contentType: "multipart/form-data", | ||
responses: { | ||
200: {}, | ||
401: {}, | ||
403: {}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
var listWalletsOperationSpec = { | ||
httpMethod: "GET", | ||
path: "wallet/v1/api/wallets", | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.CredentialContract | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "CustodianWalletContract" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
@@ -605,19 +623,12 @@ 401: {}, | ||
}; | ||
var proposeVerificationOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/verifications/propose/{connectionId}", | ||
urlParameters: [ | ||
Parameters.walletId0, | ||
Parameters.connectionId | ||
], | ||
var createWalletOperationSpec = { | ||
httpMethod: "POST", | ||
path: "wallet/v1/api/wallets", | ||
requestBody: { | ||
parameterPath: [ | ||
"options", | ||
"verificationPolicyParameters" | ||
], | ||
mapper: Mappers.VerificationPolicyParameters | ||
parameterPath: "body", | ||
mapper: __assign({}, Mappers.WalletParameters, { required: true }) | ||
}, | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.VerificationContract | ||
bodyMapper: Mappers.CustodianWalletContract | ||
}, | ||
@@ -630,12 +641,8 @@ 401: {}, | ||
}; | ||
var submitVerificationFromDataAutoSelectOperationSpec = { | ||
httpMethod: "PUT", | ||
path: "wallet/v1/api/{walletId}/verifications/fromData/autoSelect", | ||
urlParameters: [ | ||
Parameters.walletId0 | ||
var deleteWalletByQueryOperationSpec = { | ||
httpMethod: "DELETE", | ||
path: "wallet/v1/api/wallets", | ||
queryParameters: [ | ||
Parameters.walletId | ||
], | ||
formDataParameters: [ | ||
Parameters.verificationData | ||
], | ||
contentType: "multipart/form-data", | ||
responses: { | ||
@@ -642,0 +649,0 @@ 200: {}, |
@@ -34,3 +34,3 @@ "use strict"; | ||
var packageName = ""; | ||
var packageVersion = "1.1.3977"; | ||
var packageVersion = "1.1.4070"; | ||
var WalletServiceClientContext = /** @class */ (function (_super) { | ||
@@ -57,3 +57,3 @@ __extends(WalletServiceClientContext, _super); | ||
_this = _super.call(this, credentials, options) || this; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.streetcred.id/wallet/v1"; | ||
_this.baseUri = options.baseUri || _this.baseUri || "https://api.trinsic.id/wallet/v1"; | ||
_this.requestContentType = "application/json; charset=utf-8"; | ||
@@ -60,0 +60,0 @@ _this.credentials = credentials; |
{ | ||
"name": "@trinsic/service-clients", | ||
"version": "1.1.3977", | ||
"version": "1.1.4070", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
323942
9632