@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
|
@@ -54482,43 +54482,43 @@ const IDEN3_PROTOCOL = 'https://iden3-communication.io/';
|
|
|
54482
54482
|
*/
|
|
54483
54483
|
const PROTOCOL_MESSAGE_TYPE = Object.freeze({
|
|
54484
54484
|
// AuthorizationV2RequestMessageType defines auth request type of the communication protocol
|
|
54485
|
-
AUTHORIZATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54485
|
+
AUTHORIZATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}authorization/1.0/request`,
|
|
54486
54486
|
// AuthorizationResponseMessageType defines auth response type of the communication protocol
|
|
54487
|
-
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54487
|
+
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}authorization/1.0/response`,
|
|
54488
54488
|
// CredentialIssuanceRequestMessageType accepts request for credential creation
|
|
54489
|
-
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54489
|
+
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/issuance-request`,
|
|
54490
54490
|
// CredentialFetchRequestMessageType is type for request of credential generation
|
|
54491
|
-
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54491
|
+
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/fetch-request`,
|
|
54492
54492
|
// CredentialOfferMessageType is type of message with credential offering
|
|
54493
|
-
CREDENTIAL_OFFER_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54493
|
+
CREDENTIAL_OFFER_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/offer`,
|
|
54494
54494
|
// CredentialIssuanceResponseMessageType is type for message with a credential issuance
|
|
54495
|
-
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54495
|
+
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/issuance-response`,
|
|
54496
54496
|
// CredentialRefreshMessageType is type for message with a credential issuance
|
|
54497
|
-
CREDENTIAL_REFRESH_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54497
|
+
CREDENTIAL_REFRESH_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/refresh`,
|
|
54498
54498
|
// DeviceRegistrationRequestMessageType defines device registration request type of the communication protocol
|
|
54499
|
-
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54499
|
+
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}devices/1.0/registration`,
|
|
54500
54500
|
// MessageFetMessageFetchRequestMessageType defines message fetch request type of the communication protocol.
|
|
54501
|
-
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54501
|
+
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}messages/1.0/fetch`,
|
|
54502
54502
|
// ProofGenerationRequestMessageType is type for request of proof generation
|
|
54503
|
-
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54503
|
+
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/request`,
|
|
54504
54504
|
// ProofGenerationResponseMessageType is type for response of proof generation
|
|
54505
|
-
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54505
|
+
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/response`,
|
|
54506
54506
|
// RevocationStatusRequestMessageType is type for request of revocation status
|
|
54507
|
-
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54507
|
+
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}revocation/1.0/request-status`,
|
|
54508
54508
|
// RevocationStatusResponseMessageType is type for response with a revocation status
|
|
54509
|
-
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54509
|
+
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: `${IDEN3_PROTOCOL}revocation/1.0/status`,
|
|
54510
54510
|
// ContractInvokeRequestMessageType is type for request of contract invoke request
|
|
54511
|
-
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54511
|
+
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}proofs/1.0/contract-invoke-request`,
|
|
54512
54512
|
// CredentialOnchainOfferMessageType is type of message with credential onchain offering
|
|
54513
|
-
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54513
|
+
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/1.0/onchain-offer`,
|
|
54514
54514
|
// ProposalRequestMessageType is type for proposal-request message
|
|
54515
|
-
PROPOSAL_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54515
|
+
PROPOSAL_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/proposal-request`,
|
|
54516
54516
|
// ProposalMessageType is type for proposal message
|
|
54517
|
-
PROPOSAL_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54517
|
+
PROPOSAL_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/proposal`,
|
|
54518
54518
|
// PaymentRequestMessageType is type for payment-request message
|
|
54519
|
-
PAYMENT_REQUEST_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54519
|
+
PAYMENT_REQUEST_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/payment-request`,
|
|
54520
54520
|
// PaymentMessageType is type for payment message
|
|
54521
|
-
PAYMENT_MESSAGE_TYPE: IDEN3_PROTOCOL
|
|
54521
|
+
PAYMENT_MESSAGE_TYPE: `${IDEN3_PROTOCOL}credentials/0.1/payment`
|
|
54522
54522
|
});
|
|
54523
54523
|
/**
|
|
54524
54524
|
* Media types for iden3 comm communication protocol
|