@0xpolygonid/js-sdk 1.17.2 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/esm/index.js +19 -19
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +19 -19
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/constants.js +19 -19
- package/dist/node/esm/iden3comm/constants.js +19 -19
- package/dist/types/iden3comm/constants.d.ts +19 -19
- package/dist/types/iden3comm/types/packer.d.ts +2 -2
- package/dist/types/iden3comm/types/protocol/auth.d.ts +3 -0
- package/dist/types/iden3comm/types/protocol/contract-request.d.ts +2 -0
- package/dist/types/iden3comm/types/protocol/credentials.d.ts +8 -1
- package/dist/types/iden3comm/types/protocol/messages.d.ts +2 -0
- package/dist/types/iden3comm/types/protocol/payment.d.ts +3 -0
- package/dist/types/iden3comm/types/protocol/proof.d.ts +3 -0
- package/dist/types/iden3comm/types/protocol/proposal-request.d.ts +3 -0
- package/dist/types/iden3comm/types/protocol/revocation.d.ts +3 -0
- package/package.json +1 -1
|
@@ -54621,43 +54621,43 @@ var PolygonIdSdk = (function (exports) {
|
|
|
54621
54621
|
*/
|
|
54622
54622
|
const PROTOCOL_MESSAGE_TYPE = Object.freeze({
|
|
54623
54623
|
// AuthorizationV2RequestMessageType defines auth request type of the communication protocol
|
|
54624
|
-
AUTHORIZATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54624
|
+
AUTHORIZATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}authorization/1.0/request`,
|
|
54625
54625
|
// AuthorizationResponseMessageType defines auth response type of the communication protocol
|
|
54626
|
-
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54626
|
+
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}authorization/1.0/response`,
|
|
54627
54627
|
// CredentialIssuanceRequestMessageType accepts request for credential creation
|
|
54628
|
-
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54628
|
+
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/issuance-request`,
|
|
54629
54629
|
// CredentialFetchRequestMessageType is type for request of credential generation
|
|
54630
|
-
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54630
|
+
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/fetch-request`,
|
|
54631
54631
|
// CredentialOfferMessageType is type of message with credential offering
|
|
54632
|
-
CREDENTIAL_OFFER_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54632
|
+
CREDENTIAL_OFFER_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/offer`,
|
|
54633
54633
|
// CredentialIssuanceResponseMessageType is type for message with a credential issuance
|
|
54634
|
-
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54634
|
+
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/issuance-response`,
|
|
54635
54635
|
// CredentialRefreshMessageType is type for message with a credential issuance
|
|
54636
|
-
CREDENTIAL_REFRESH_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54636
|
+
CREDENTIAL_REFRESH_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/refresh`,
|
|
54637
54637
|
// DeviceRegistrationRequestMessageType defines device registration request type of the communication protocol
|
|
54638
|
-
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54638
|
+
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}devices/1.0/registration`,
|
|
54639
54639
|
// MessageFetMessageFetchRequestMessageType defines message fetch request type of the communication protocol.
|
|
54640
|
-
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54640
|
+
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}messages/1.0/fetch`,
|
|
54641
54641
|
// ProofGenerationRequestMessageType is type for request of proof generation
|
|
54642
|
-
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54642
|
+
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/request`,
|
|
54643
54643
|
// ProofGenerationResponseMessageType is type for response of proof generation
|
|
54644
|
-
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54644
|
+
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/response`,
|
|
54645
54645
|
// RevocationStatusRequestMessageType is type for request of revocation status
|
|
54646
|
-
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54646
|
+
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}revocation/1.0/request-status`,
|
|
54647
54647
|
// RevocationStatusResponseMessageType is type for response with a revocation status
|
|
54648
|
-
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54648
|
+
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}revocation/1.0/status`,
|
|
54649
54649
|
// ContractInvokeRequestMessageType is type for request of contract invoke request
|
|
54650
|
-
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54650
|
+
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/contract-invoke-request`,
|
|
54651
54651
|
// CredentialOnchainOfferMessageType is type of message with credential onchain offering
|
|
54652
|
-
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54652
|
+
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/onchain-offer`,
|
|
54653
54653
|
// ProposalRequestMessageType is type for proposal-request message
|
|
54654
|
-
PROPOSAL_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54654
|
+
PROPOSAL_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/proposal-request`,
|
|
54655
54655
|
// ProposalMessageType is type for proposal message
|
|
54656
|
-
PROPOSAL_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54656
|
+
PROPOSAL_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/proposal`,
|
|
54657
54657
|
// PaymentRequestMessageType is type for payment-request message
|
|
54658
|
-
PAYMENT_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54658
|
+
PAYMENT_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/payment-request`,
|
|
54659
54659
|
// PaymentMessageType is type for payment message
|
|
54660
|
-
PAYMENT_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54660
|
+
PAYMENT_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/payment`
|
|
54661
54661
|
});
|
|
54662
54662
|
/**
|
|
54663
54663
|
* Media types for iden3 comm communication protocol
|