@procivis/react-native-one-core 1.119306.0 → 1.120826.0
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.
|
@@ -224,6 +224,9 @@ object SerializeSpecific {
|
|
|
224
224
|
}
|
|
225
225
|
result.putString("protocol", value.protocol)
|
|
226
226
|
result.putBoolean("requiresWalletInstanceAttestation", value.requiresWalletInstanceAttestation)
|
|
227
|
+
value.ecosystem?.let {
|
|
228
|
+
result.putString("ecosystem", it)
|
|
229
|
+
}
|
|
227
230
|
}
|
|
228
231
|
|
|
229
232
|
is HandleInvitationResponse.AuthorizationCodeFlow -> {
|
|
@@ -231,6 +234,9 @@ object SerializeSpecific {
|
|
|
231
234
|
result.putString("interactionId", value.interactionId)
|
|
232
235
|
result.putString("authorizationCodeFlowUrl", value.authorizationCodeFlowUrl)
|
|
233
236
|
result.putString("protocol", value.protocol)
|
|
237
|
+
value.ecosystem?.let {
|
|
238
|
+
result.putString("ecosystem", it)
|
|
239
|
+
}
|
|
234
240
|
}
|
|
235
241
|
|
|
236
242
|
is HandleInvitationResponse.ProofRequest -> {
|
|
@@ -238,6 +244,9 @@ object SerializeSpecific {
|
|
|
238
244
|
result.putString("interactionId", value.interactionId)
|
|
239
245
|
result.putString("proofId", value.proofId)
|
|
240
246
|
result.putString("protocol", value.protocol)
|
|
247
|
+
value.ecosystem?.let {
|
|
248
|
+
result.putString("ecosystem", it)
|
|
249
|
+
}
|
|
241
250
|
}
|
|
242
251
|
}
|
|
243
252
|
return result
|
package/core-sdk.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"android": {
|
|
3
3
|
"debug": {
|
|
4
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
5
|
-
"sha1": "
|
|
4
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/120826/android/onecore-debug.aar",
|
|
5
|
+
"sha1": "8042630dab29996bf714f17cc780098228e5810c"
|
|
6
6
|
},
|
|
7
7
|
"release": {
|
|
8
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
9
|
-
"sha1": "
|
|
8
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/120826/android/onecore-release.aar",
|
|
9
|
+
"sha1": "5d1f2e7ce8268174bf46c05d3d546cf54c018d4e"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"ios": {
|
|
13
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
14
|
-
"sha1": "
|
|
13
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/120826/ios/deploy.zip",
|
|
14
|
+
"sha1": "9dad563f89940149b23b8223e44ec09cb33437e0"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/src/config.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export interface Config {
|
|
|
103
103
|
*/
|
|
104
104
|
walletProvider: Record<string, string>;
|
|
105
105
|
verifierProvider: Record<string, string>;
|
|
106
|
+
ecosystem: Record<string, string>;
|
|
106
107
|
/** Deployment-wide settings that are not tied to a specific config entity. */
|
|
107
108
|
globalSettings: GlobalSettings;
|
|
108
109
|
}
|
|
@@ -117,6 +118,7 @@ export interface ContinueIssuanceResponse {
|
|
|
117
118
|
requiresWalletInstanceAttestation: boolean;
|
|
118
119
|
/** Protocol used for issuance. */
|
|
119
120
|
protocol: string;
|
|
121
|
+
ecosystem?: string;
|
|
120
122
|
}
|
|
121
123
|
export interface CreateCertificateAuthorityRequest {
|
|
122
124
|
name?: string;
|
|
@@ -145,6 +147,7 @@ export interface CreateCredentialSchemaRequest {
|
|
|
145
147
|
transactionCode?: CredentialSchemaTransactionCodeRequest;
|
|
146
148
|
translations?: CredentialSchemaTranslations;
|
|
147
149
|
embeddedDisclosurePolicy?: DisclosurePolicyCreateRequest;
|
|
150
|
+
expiration?: number;
|
|
148
151
|
}
|
|
149
152
|
export interface CreateDidRequest {
|
|
150
153
|
organisationId: string;
|
|
@@ -234,6 +237,7 @@ export interface CreateProofRequest {
|
|
|
234
237
|
engagement?: string;
|
|
235
238
|
/** Optional transaction data to request authorization for. */
|
|
236
239
|
transactionData?: Array<ProofRequestTransactionData>;
|
|
240
|
+
ecosystem?: string;
|
|
237
241
|
}
|
|
238
242
|
export interface CreateProofSchemaInput {
|
|
239
243
|
credentialSchemaId: string;
|
|
@@ -292,6 +296,7 @@ export interface CredentialDetail {
|
|
|
292
296
|
issuanceDate?: string;
|
|
293
297
|
lastModified: string;
|
|
294
298
|
revocationDate?: string;
|
|
299
|
+
expiresAt?: string;
|
|
295
300
|
/** Credential issuer metadata. */
|
|
296
301
|
issuer?: IdentifierListItem;
|
|
297
302
|
/** Credential holder metadata. */
|
|
@@ -335,6 +340,7 @@ export interface CredentialListItem {
|
|
|
335
340
|
issuanceDate?: string;
|
|
336
341
|
lastModified: string;
|
|
337
342
|
revocationDate?: string;
|
|
343
|
+
expiresAt?: string;
|
|
338
344
|
/** Credential issuer metadata. */
|
|
339
345
|
issuer?: string;
|
|
340
346
|
/** State representation of the credential in the system. */
|
|
@@ -484,6 +490,7 @@ export interface CredentialSchemaDetail {
|
|
|
484
490
|
requiresWalletInstanceAttestation: boolean;
|
|
485
491
|
transactionCode?: CredentialSchemaTransactionCode;
|
|
486
492
|
translations: CredentialSchemaTranslations;
|
|
493
|
+
expiration?: number;
|
|
487
494
|
}
|
|
488
495
|
export interface CredentialSchemaDetailInfo {
|
|
489
496
|
id: string;
|
|
@@ -554,6 +561,7 @@ export interface CredentialSchemaListItem {
|
|
|
554
561
|
allowRevocation?: boolean;
|
|
555
562
|
batchSize?: number;
|
|
556
563
|
requiresWalletInstanceAttestation: boolean;
|
|
564
|
+
expiration?: number;
|
|
557
565
|
}
|
|
558
566
|
export interface CredentialSchemaListQuery {
|
|
559
567
|
page: number;
|
|
@@ -769,6 +777,7 @@ export interface HandleInvitationRequest {
|
|
|
769
777
|
* "myapp://example".
|
|
770
778
|
*/
|
|
771
779
|
redirectUri?: string;
|
|
780
|
+
ecosystem?: string;
|
|
772
781
|
}
|
|
773
782
|
export interface HistoryErrorMetadata {
|
|
774
783
|
errorCode: string;
|
|
@@ -1032,6 +1041,7 @@ export interface ImportCredentialSchemaRequestSchema {
|
|
|
1032
1041
|
batchSize?: number;
|
|
1033
1042
|
translations?: CredentialSchemaTranslations;
|
|
1034
1043
|
embeddedDisclosurePolicy?: DisclosurePolicy;
|
|
1044
|
+
expiration?: number;
|
|
1035
1045
|
}
|
|
1036
1046
|
export interface ImportCredentialSchemaTransactionCode {
|
|
1037
1047
|
type: TransactionCodeType;
|
|
@@ -1120,6 +1130,7 @@ export interface InitiateIssuanceRequest {
|
|
|
1120
1130
|
scope?: Array<string>;
|
|
1121
1131
|
/** OpenID4VCI authorization request parameter. */
|
|
1122
1132
|
authorizationDetails?: Array<InitiateIssuanceAuthorizationDetail>;
|
|
1133
|
+
ecosystem?: string;
|
|
1123
1134
|
}
|
|
1124
1135
|
export interface InitiateIssuanceResponse {
|
|
1125
1136
|
url: string;
|
|
@@ -1191,6 +1202,7 @@ export interface OpenId4vciTxCode {
|
|
|
1191
1202
|
description?: string;
|
|
1192
1203
|
}
|
|
1193
1204
|
export interface OrganisationConfiguration {
|
|
1205
|
+
selectedEcosystems: Array<string>;
|
|
1194
1206
|
/**
|
|
1195
1207
|
* When true, the verifier will only validate presentations of
|
|
1196
1208
|
* credentials issued by trusted issuers.
|
|
@@ -1559,6 +1571,7 @@ export interface ProposeProofRequest {
|
|
|
1559
1571
|
organisationId: string;
|
|
1560
1572
|
engagement: Array<string>;
|
|
1561
1573
|
uiMessage?: string;
|
|
1574
|
+
ecosystem?: string;
|
|
1562
1575
|
}
|
|
1563
1576
|
export interface ProposeProofResponse {
|
|
1564
1577
|
proofId: string;
|
|
@@ -1635,7 +1648,7 @@ export interface ShareProofResponse {
|
|
|
1635
1648
|
expiresAt?: string;
|
|
1636
1649
|
}
|
|
1637
1650
|
export interface TransactionDataDisplay {
|
|
1638
|
-
title
|
|
1651
|
+
title?: string;
|
|
1639
1652
|
attributes: Array<TransactionDataDisplayAttribute>;
|
|
1640
1653
|
}
|
|
1641
1654
|
export interface TransactionDataDisplayAttribute {
|
|
@@ -1687,6 +1700,7 @@ export interface UnexportableEntities {
|
|
|
1687
1700
|
totalIdentifiers: number;
|
|
1688
1701
|
}
|
|
1689
1702
|
export interface UpsertOrganisationConfiguration {
|
|
1703
|
+
selectedEcosystems?: Array<string>;
|
|
1690
1704
|
/**
|
|
1691
1705
|
* When true, the verifier will only validate presentations of
|
|
1692
1706
|
* credentials issued by trusted issuers.
|
|
@@ -1883,7 +1897,7 @@ export type ClaimValue = {
|
|
|
1883
1897
|
export declare enum ClientIdScheme {
|
|
1884
1898
|
REDIRECT_URI = "REDIRECT_URI",
|
|
1885
1899
|
VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION",
|
|
1886
|
-
|
|
1900
|
+
DECENTRALIZED_IDENTIFIER = "DECENTRALIZED_IDENTIFIER",
|
|
1887
1901
|
X509_SAN_DNS = "X509_SAN_DNS"
|
|
1888
1902
|
}
|
|
1889
1903
|
export type ConnectionEvent = {
|
|
@@ -1941,7 +1955,8 @@ export declare enum CredentialState {
|
|
|
1941
1955
|
REVOKED = "REVOKED",
|
|
1942
1956
|
SUSPENDED = "SUSPENDED",
|
|
1943
1957
|
ERROR = "ERROR",
|
|
1944
|
-
INTERACTION_EXPIRED = "INTERACTION_EXPIRED"
|
|
1958
|
+
INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
|
|
1959
|
+
EXPIRED = "EXPIRED"
|
|
1945
1960
|
}
|
|
1946
1961
|
export declare enum CredentialType {
|
|
1947
1962
|
SINGLE = "SINGLE",
|
|
@@ -1975,6 +1990,7 @@ export type HandleInvitationResponse = {
|
|
|
1975
1990
|
protocol: string;
|
|
1976
1991
|
/** Whether a valid WIA is required to complete issuance. */
|
|
1977
1992
|
requiresWalletInstanceAttestation: boolean;
|
|
1993
|
+
ecosystem?: string;
|
|
1978
1994
|
} | {
|
|
1979
1995
|
type_: "AUTHORIZATION_CODE_FLOW";
|
|
1980
1996
|
/** For reference. */
|
|
@@ -1986,6 +2002,7 @@ export type HandleInvitationResponse = {
|
|
|
1986
2002
|
authorizationCodeFlowUrl: string;
|
|
1987
2003
|
/** Protocol used for issuance. */
|
|
1988
2004
|
protocol: string;
|
|
2005
|
+
ecosystem?: string;
|
|
1989
2006
|
} | {
|
|
1990
2007
|
type_: "PROOF_REQUEST";
|
|
1991
2008
|
/** For reference. */
|
|
@@ -1994,6 +2011,7 @@ export type HandleInvitationResponse = {
|
|
|
1994
2011
|
proofId: string;
|
|
1995
2012
|
/** Protocol used for issuance. */
|
|
1996
2013
|
protocol: string;
|
|
2014
|
+
ecosystem?: string;
|
|
1997
2015
|
};
|
|
1998
2016
|
export declare enum HistoryAction {
|
|
1999
2017
|
ACCEPTED = "ACCEPTED",
|
|
@@ -2221,7 +2239,8 @@ export declare enum SortableCredentialColumn {
|
|
|
2221
2239
|
CREATED_DATE = "CREATED_DATE",
|
|
2222
2240
|
SCHEMA_NAME = "SCHEMA_NAME",
|
|
2223
2241
|
ISSUER = "ISSUER",
|
|
2224
|
-
STATE = "STATE"
|
|
2242
|
+
STATE = "STATE",
|
|
2243
|
+
EXPIRES_AT = "EXPIRES_AT"
|
|
2225
2244
|
}
|
|
2226
2245
|
export declare enum SortableCredentialSchemaColumn {
|
|
2227
2246
|
NAME = "NAME",
|
|
@@ -64,7 +64,7 @@ export var ClientIdScheme;
|
|
|
64
64
|
(function (ClientIdScheme) {
|
|
65
65
|
ClientIdScheme["REDIRECT_URI"] = "REDIRECT_URI";
|
|
66
66
|
ClientIdScheme["VERIFIER_ATTESTATION"] = "VERIFIER_ATTESTATION";
|
|
67
|
-
ClientIdScheme["
|
|
67
|
+
ClientIdScheme["DECENTRALIZED_IDENTIFIER"] = "DECENTRALIZED_IDENTIFIER";
|
|
68
68
|
ClientIdScheme["X509_SAN_DNS"] = "X509_SAN_DNS";
|
|
69
69
|
})(ClientIdScheme || (ClientIdScheme = {}));
|
|
70
70
|
export var CreateSelfSignedCaRequestIssuerAlternativeNameType;
|
|
@@ -126,6 +126,7 @@ export var CredentialState;
|
|
|
126
126
|
CredentialState["SUSPENDED"] = "SUSPENDED";
|
|
127
127
|
CredentialState["ERROR"] = "ERROR";
|
|
128
128
|
CredentialState["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
|
|
129
|
+
CredentialState["EXPIRED"] = "EXPIRED";
|
|
129
130
|
})(CredentialState || (CredentialState = {}));
|
|
130
131
|
export var CredentialType;
|
|
131
132
|
(function (CredentialType) {
|
|
@@ -319,6 +320,7 @@ export var SortableCredentialColumn;
|
|
|
319
320
|
SortableCredentialColumn["SCHEMA_NAME"] = "SCHEMA_NAME";
|
|
320
321
|
SortableCredentialColumn["ISSUER"] = "ISSUER";
|
|
321
322
|
SortableCredentialColumn["STATE"] = "STATE";
|
|
323
|
+
SortableCredentialColumn["EXPIRES_AT"] = "EXPIRES_AT";
|
|
322
324
|
})(SortableCredentialColumn || (SortableCredentialColumn = {}));
|
|
323
325
|
export var SortableCredentialSchemaColumn;
|
|
324
326
|
(function (SortableCredentialSchemaColumn) {
|
package/ios/Serialize.swift
CHANGED
|
@@ -124,7 +124,7 @@ private func serialize(proofRequestClaimValue: ProofClaimValue) throws -> NSDict
|
|
|
124
124
|
|
|
125
125
|
private func serialize(invitationResponse: HandleInvitationResponse) throws -> NSDictionary {
|
|
126
126
|
switch (invitationResponse) {
|
|
127
|
-
case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode, `protocol`, requiresWalletInstanceAttestation):
|
|
127
|
+
case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode, `protocol`, requiresWalletInstanceAttestation, ecosystem):
|
|
128
128
|
var result: [String: Any] = [
|
|
129
129
|
"type_": "CREDENTIAL_ISSUANCE",
|
|
130
130
|
"interactionId": interactionId,
|
|
@@ -140,23 +140,34 @@ private func serialize(invitationResponse: HandleInvitationResponse) throws -> N
|
|
|
140
140
|
if let txCode = txCode {
|
|
141
141
|
result["txCode"] = try serializeAny(txCode)
|
|
142
142
|
}
|
|
143
|
+
if let ecosystem = ecosystem {
|
|
144
|
+
result["ecosystem"] = ecosystem
|
|
145
|
+
}
|
|
143
146
|
return result as NSDictionary;
|
|
144
147
|
|
|
145
|
-
case let .proofRequest(interactionId, proofId, `protocol
|
|
146
|
-
|
|
148
|
+
case let .proofRequest(interactionId, proofId, `protocol`, ecosystem):
|
|
149
|
+
var result: [String: Any] = [
|
|
147
150
|
"type_": "PROOF_REQUEST",
|
|
148
151
|
"interactionId": interactionId,
|
|
149
152
|
"proofId": proofId,
|
|
150
153
|
"protocol": `protocol`
|
|
151
154
|
];
|
|
155
|
+
if let ecosystem = ecosystem {
|
|
156
|
+
result["ecosystem"] = ecosystem
|
|
157
|
+
}
|
|
158
|
+
return result as NSDictionary;
|
|
152
159
|
|
|
153
|
-
case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl, `protocol
|
|
154
|
-
|
|
160
|
+
case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl, `protocol`, ecosystem):
|
|
161
|
+
var result: [String: Any] = [
|
|
155
162
|
"type_": "AUTHORIZATION_CODE_FLOW",
|
|
156
163
|
"interactionId": interactionId,
|
|
157
164
|
"authorizationCodeFlowUrl": authorizationCodeFlowUrl,
|
|
158
165
|
"protocol": `protocol`
|
|
159
166
|
];
|
|
167
|
+
if let ecosystem = ecosystem {
|
|
168
|
+
result["ecosystem"] = ecosystem
|
|
169
|
+
}
|
|
170
|
+
return result as NSDictionary;
|
|
160
171
|
}
|
|
161
172
|
}
|
|
162
173
|
|