@procivis/react-native-one-core 1.41710.0 → 1.52682.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.
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +4 -2
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +45 -12
- package/android/src/main/java/ch/procivis/one/core/Serialize.kt +3 -1
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +13 -0
- package/core-sdk.json +6 -6
- package/dist/src/config.d.ts +17 -2
- package/dist/src/config.js +9 -0
- package/dist/src/core.d.ts +15 -9
- package/dist/src/core.js +6 -1
- package/dist/src/credential.d.ts +6 -6
- package/dist/src/history.d.ts +6 -3
- package/dist/src/history.js +3 -0
- package/dist/src/identifier.d.ts +125 -0
- package/dist/src/identifier.js +29 -0
- package/dist/src/key.d.ts +0 -3
- package/dist/src/organisation.d.ts +2 -1
- package/dist/src/proof.d.ts +11 -9
- package/dist/src/trust.d.ts +44 -4
- package/dist/src/trust.js +5 -0
- package/ios/Deserialize.swift +140 -813
- package/ios/EventEmitter.swift +84 -72
- package/ios/ProcivisOneCoreModule.m +23 -6
- package/ios/ProcivisOneCoreModule.swift +981 -805
- package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +9 -1
- package/ios/RNDecoder/RNDecoder.swift +191 -0
- package/ios/RNDecoder/RNDecodingStorage.swift +33 -0
- package/ios/RNDecoder/RNKeyedDecodingContainer.swift +133 -0
- package/ios/RNDecoder/RNUnkeyedDecodingContainer.swift +175 -0
- package/ios/RNEncoder/RNAnyCodingKey.swift +31 -0
- package/ios/RNEncoder/RNEncoder.swift +95 -0
- package/ios/RNEncoder/RNKeyedEncodingContainer.swift +81 -0
- package/ios/RNEncoder/RNSingleValueEncodingContainer.swift +78 -0
- package/ios/RNEncoder/RNUnkeyedEncodingContainer.swift +84 -0
- package/ios/Serialize.swift +46 -615
- package/ios/Util.swift +35 -25
- package/package.json +4 -2
package/dist/src/proof.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CredentialSchema } from "./credentialSchema";
|
|
|
3
3
|
import { ListQuery, SortDirection } from "./list";
|
|
4
4
|
import { ProofInputClaimSchema, ProofSchemaListItem } from "./proofSchema";
|
|
5
5
|
import { DidListItem } from "./did";
|
|
6
|
+
import { IdentifierListItem } from "./identifier";
|
|
6
7
|
export declare enum ProofStateEnum {
|
|
7
8
|
CREATED = "CREATED",
|
|
8
9
|
PENDING = "PENDING",
|
|
@@ -34,9 +35,9 @@ export interface ProofDetail {
|
|
|
34
35
|
state: ProofStateEnum;
|
|
35
36
|
role: ProofRoleEnum;
|
|
36
37
|
proofSchema?: ProofSchemaListItem;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
verifier?: IdentifierListItem;
|
|
39
|
+
holder?: IdentifierListItem;
|
|
40
|
+
protocol: string;
|
|
40
41
|
transport: string;
|
|
41
42
|
redirectUri?: string;
|
|
42
43
|
retainUntilDate?: string;
|
|
@@ -51,8 +52,8 @@ export interface ProofListItem {
|
|
|
51
52
|
issuanceDate: string;
|
|
52
53
|
requestedDate?: string;
|
|
53
54
|
completedDate?: string;
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
verifier?: IdentifierListItem["id"];
|
|
56
|
+
protocol: string;
|
|
56
57
|
transport: string;
|
|
57
58
|
state: ProofStateEnum;
|
|
58
59
|
role: ProofRoleEnum;
|
|
@@ -60,10 +61,10 @@ export interface ProofListItem {
|
|
|
60
61
|
retainUntilDate?: string;
|
|
61
62
|
}
|
|
62
63
|
export interface CreateProofRequest {
|
|
63
|
-
proofSchemaId:
|
|
64
|
-
verifierDidId?:
|
|
65
|
-
verifierIdentifierId?:
|
|
66
|
-
|
|
64
|
+
proofSchemaId: ProofSchemaListItem["id"];
|
|
65
|
+
verifierDidId?: DidListItem["id"];
|
|
66
|
+
verifierIdentifierId?: IdentifierListItem["id"];
|
|
67
|
+
protocol: string;
|
|
67
68
|
redirectUri?: string;
|
|
68
69
|
verifierKey?: string;
|
|
69
70
|
scanToVerify?: ScanToVerifyRequest;
|
|
@@ -84,6 +85,7 @@ export interface ShareProofResponse {
|
|
|
84
85
|
}
|
|
85
86
|
export interface PresentationDefinition {
|
|
86
87
|
requestGroups: PresentationDefinitionRequestGroup[];
|
|
88
|
+
credentials: CredentialDetail[];
|
|
87
89
|
}
|
|
88
90
|
export interface PresentationDefinitionRequestGroup {
|
|
89
91
|
id: string;
|
package/dist/src/trust.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ListQuery, SortDirection } from "./list";
|
|
2
2
|
import { DidListItem } from "./did";
|
|
3
|
+
import { CertificateStateEnum, IdentifierCertificateDetail, IdentifierListItem, X509Attributes } from "./identifier";
|
|
4
|
+
import { UpsertOrganisationRequest } from "./organisation";
|
|
3
5
|
export type CreateTrustAnchorRequest = {
|
|
4
6
|
name: string;
|
|
5
7
|
type: string;
|
|
@@ -50,12 +52,24 @@ export interface TrustEntityListItem {
|
|
|
50
52
|
privacyUrl?: string;
|
|
51
53
|
role: TrustEntityRoleEnum;
|
|
52
54
|
state: TrustEntityStateEnum;
|
|
53
|
-
did
|
|
55
|
+
did?: DidListItem;
|
|
54
56
|
trustAnchor: TrustAnchor;
|
|
55
57
|
}
|
|
56
|
-
export interface
|
|
58
|
+
export interface RemoteTrustEntity extends TrustEntityListItem {
|
|
57
59
|
organisationId?: string;
|
|
58
60
|
}
|
|
61
|
+
export interface TrustEntity extends RemoteTrustEntity {
|
|
62
|
+
entityKey: string;
|
|
63
|
+
type: TrustEntityTypeEnum;
|
|
64
|
+
identifier?: IdentifierListItem;
|
|
65
|
+
content?: string;
|
|
66
|
+
ca?: TrustEntityCertificate;
|
|
67
|
+
}
|
|
68
|
+
export interface TrustEntityCertificate extends X509Attributes {
|
|
69
|
+
state: CertificateStateEnum;
|
|
70
|
+
publicKey: string;
|
|
71
|
+
commonName?: string;
|
|
72
|
+
}
|
|
59
73
|
export declare enum TrustEntityRoleEnum {
|
|
60
74
|
ISSUER = "ISSUER",
|
|
61
75
|
VERIFIER = "VERIFIER",
|
|
@@ -67,6 +81,10 @@ export declare enum TrustEntityStateEnum {
|
|
|
67
81
|
WITHDRAWN = "WITHDRAWN",
|
|
68
82
|
REMOVED_AND_WITHDRAWN = "REMOVED_AND_WITHDRAWN"
|
|
69
83
|
}
|
|
84
|
+
export declare enum TrustEntityTypeEnum {
|
|
85
|
+
Did = "DID",
|
|
86
|
+
CertificateAuthority = "CA"
|
|
87
|
+
}
|
|
70
88
|
export interface CreateTrustEntityRequest {
|
|
71
89
|
name: string;
|
|
72
90
|
logo?: string;
|
|
@@ -75,7 +93,11 @@ export interface CreateTrustEntityRequest {
|
|
|
75
93
|
privacyUrl?: string;
|
|
76
94
|
role: TrustEntityRoleEnum;
|
|
77
95
|
trustAnchorId: TrustAnchor["id"];
|
|
78
|
-
didId
|
|
96
|
+
didId?: DidListItem["id"];
|
|
97
|
+
type: TrustEntityTypeEnum;
|
|
98
|
+
identifierId?: IdentifierListItem["id"];
|
|
99
|
+
content?: string;
|
|
100
|
+
organisationId: UpsertOrganisationRequest["id"];
|
|
79
101
|
}
|
|
80
102
|
export interface TrustEntityListQuery {
|
|
81
103
|
sort?: SortableTrustEntityColumnEnum;
|
|
@@ -92,8 +114,15 @@ export declare enum SortableTrustEntityColumnEnum {
|
|
|
92
114
|
export declare enum ExactTrustEntityFilterColumnEnum {
|
|
93
115
|
NAME = "NAME"
|
|
94
116
|
}
|
|
95
|
-
export interface CreateRemoteTrustEntityRequest
|
|
117
|
+
export interface CreateRemoteTrustEntityRequest {
|
|
118
|
+
name: string;
|
|
119
|
+
logo?: string;
|
|
120
|
+
website?: string;
|
|
121
|
+
termsUrl?: string;
|
|
122
|
+
privacyUrl?: string;
|
|
123
|
+
role: TrustEntityRoleEnum;
|
|
96
124
|
trustAnchorId?: TrustAnchor["id"];
|
|
125
|
+
didId: DidListItem["id"];
|
|
97
126
|
}
|
|
98
127
|
export interface UpdateRemoteTrustEntityRequest {
|
|
99
128
|
didId: DidListItem["id"];
|
|
@@ -104,9 +133,20 @@ export interface UpdateRemoteTrustEntityRequest {
|
|
|
104
133
|
termsUrl?: string | null;
|
|
105
134
|
privacyUrl?: string | null;
|
|
106
135
|
role?: TrustEntityRoleEnum;
|
|
136
|
+
content?: string;
|
|
107
137
|
}
|
|
108
138
|
export declare enum TrustEntityUpdateActionEnum {
|
|
109
139
|
ACTIVATE = "ACTIVATE",
|
|
110
140
|
WITHDRAW = "WITHDRAW",
|
|
111
141
|
REMOVE = "REMOVE"
|
|
112
142
|
}
|
|
143
|
+
export interface ResolveTrustEntityByIdentifierRequest {
|
|
144
|
+
identifiers: Array<{
|
|
145
|
+
id: IdentifierListItem["id"];
|
|
146
|
+
certificateId?: IdentifierCertificateDetail["id"];
|
|
147
|
+
}>;
|
|
148
|
+
}
|
|
149
|
+
export interface ResolvedIdentifierTrustEntity {
|
|
150
|
+
trustEntity: TrustEntity;
|
|
151
|
+
certificateIds?: Array<IdentifierCertificateDetail["id"]>;
|
|
152
|
+
}
|
package/dist/src/trust.js
CHANGED
|
@@ -22,6 +22,11 @@ export var TrustEntityStateEnum;
|
|
|
22
22
|
TrustEntityStateEnum["WITHDRAWN"] = "WITHDRAWN";
|
|
23
23
|
TrustEntityStateEnum["REMOVED_AND_WITHDRAWN"] = "REMOVED_AND_WITHDRAWN";
|
|
24
24
|
})(TrustEntityStateEnum || (TrustEntityStateEnum = {}));
|
|
25
|
+
export var TrustEntityTypeEnum;
|
|
26
|
+
(function (TrustEntityTypeEnum) {
|
|
27
|
+
TrustEntityTypeEnum["Did"] = "DID";
|
|
28
|
+
TrustEntityTypeEnum["CertificateAuthority"] = "CA";
|
|
29
|
+
})(TrustEntityTypeEnum || (TrustEntityTypeEnum = {}));
|
|
25
30
|
export var SortableTrustEntityColumnEnum;
|
|
26
31
|
(function (SortableTrustEntityColumnEnum) {
|
|
27
32
|
SortableTrustEntityColumnEnum["NAME"] = "NAME";
|