@procivis/react-native-one-core 1.26730.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/LICENSE +201 -0
- package/README.md +202 -0
- package/android/build.gradle +96 -0
- package/android/proguard-rules.pro +4 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +118 -0
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +94 -0
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +444 -0
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +19 -0
- package/android/src/main/java/ch/procivis/one/core/Serialize.kt +115 -0
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +121 -0
- package/android/src/main/java/ch/procivis/one/core/Util.kt +23 -0
- package/bin/postinstall +12 -0
- package/core-sdk.json +16 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +59 -0
- package/dist/src/backup.d.ts +22 -0
- package/dist/src/backup.js +1 -0
- package/dist/src/config.d.ts +100 -0
- package/dist/src/config.js +25 -0
- package/dist/src/core.d.ts +109 -0
- package/dist/src/core.js +11 -0
- package/dist/src/credential.d.ts +115 -0
- package/dist/src/credential.js +39 -0
- package/dist/src/credentialSchema.d.ts +130 -0
- package/dist/src/credentialSchema.js +37 -0
- package/dist/src/did.d.ts +59 -0
- package/dist/src/did.js +27 -0
- package/dist/src/error.d.ts +23 -0
- package/dist/src/error.js +25 -0
- package/dist/src/history.d.ts +66 -0
- package/dist/src/history.js +42 -0
- package/dist/src/key.d.ts +17 -0
- package/dist/src/key.js +1 -0
- package/dist/src/list.d.ts +14 -0
- package/dist/src/list.js +5 -0
- package/dist/src/proof.d.ts +137 -0
- package/dist/src/proof.js +30 -0
- package/dist/src/proofSchema.d.ts +106 -0
- package/dist/src/proofSchema.js +9 -0
- package/dist/src/trust.d.ts +46 -0
- package/dist/src/trust.js +18 -0
- package/ios/Deserialize.swift +655 -0
- package/ios/ProcivisOneCoreModule.m +216 -0
- package/ios/ProcivisOneCoreModule.swift +600 -0
- package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +318 -0
- package/ios/Serialize.swift +607 -0
- package/ios/Util.swift +47 -0
- package/ios/react-native-one-core-Bridging-Header.h +1 -0
- package/package.json +40 -0
- package/react-native-one-core.podspec +46 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { CredentialSchema, CredentialSchemaLayoutProperties, CredentialSchemaType, LayoutType, WalletStorageType } from "./credentialSchema";
|
|
2
|
+
import { ListQuery, SortDirection } from "./list";
|
|
3
|
+
export interface ProofInputClaimSchema {
|
|
4
|
+
id: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
key: string;
|
|
7
|
+
dataType: string;
|
|
8
|
+
claims: ProofInputClaimSchema[];
|
|
9
|
+
array: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ProofSchemaListItem {
|
|
12
|
+
id: string;
|
|
13
|
+
createdDate: string;
|
|
14
|
+
lastModified: string;
|
|
15
|
+
deletedAt?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
expireDuration: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ProofSchema {
|
|
20
|
+
id: string;
|
|
21
|
+
createdDate: string;
|
|
22
|
+
lastModified: string;
|
|
23
|
+
name: string;
|
|
24
|
+
organisationId: string;
|
|
25
|
+
expireDuration: number;
|
|
26
|
+
proofInputSchemas: ProofInputSchema[];
|
|
27
|
+
importedSourceUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ProofInputSchema {
|
|
30
|
+
claimSchemas: ProofInputClaimSchema[];
|
|
31
|
+
credentialSchema: CredentialSchema;
|
|
32
|
+
validityConstraint?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ShareProofSchemaResponse {
|
|
35
|
+
url: string;
|
|
36
|
+
}
|
|
37
|
+
export declare enum SortableProofSchemasColumnEnum {
|
|
38
|
+
NAME = "NAME",
|
|
39
|
+
CREATED_DATE = "CREATED_DATE"
|
|
40
|
+
}
|
|
41
|
+
export declare enum ExactProofSchemaFilterColumnEnum {
|
|
42
|
+
NAME = "NAME"
|
|
43
|
+
}
|
|
44
|
+
export interface ProofSchemaListQuery extends ListQuery {
|
|
45
|
+
sort?: SortableProofSchemasColumnEnum;
|
|
46
|
+
sortDirection?: SortDirection;
|
|
47
|
+
name?: string;
|
|
48
|
+
exact?: ExactProofSchemaFilterColumnEnum[];
|
|
49
|
+
ids?: Array<ProofSchema["id"]>;
|
|
50
|
+
}
|
|
51
|
+
export interface ImportProofSchemaRequest {
|
|
52
|
+
organisationId: string;
|
|
53
|
+
schema: ImportProofSchema;
|
|
54
|
+
}
|
|
55
|
+
export interface ImportProofSchema {
|
|
56
|
+
id: string;
|
|
57
|
+
createdDate: string;
|
|
58
|
+
lastModified: string;
|
|
59
|
+
name: string;
|
|
60
|
+
organisationId: string;
|
|
61
|
+
importedSourceUrl: string;
|
|
62
|
+
expireDuration: number;
|
|
63
|
+
proofInputSchemas: ImportProofSchemaInputSchema[];
|
|
64
|
+
}
|
|
65
|
+
export interface ImportProofSchemaInputSchema {
|
|
66
|
+
claimSchemas: ImportProofSchemaClaimSchema[];
|
|
67
|
+
credentialSchema: ImportProofSchemaCredentialSchema;
|
|
68
|
+
validityConstraint?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface ImportProofSchemaClaimSchema {
|
|
71
|
+
id: string;
|
|
72
|
+
required: boolean;
|
|
73
|
+
key: string;
|
|
74
|
+
dataType: string;
|
|
75
|
+
claims?: ImportProofSchemaClaimSchema[];
|
|
76
|
+
array: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface ImportProofSchemaCredentialSchema {
|
|
79
|
+
id: string;
|
|
80
|
+
createdDate: string;
|
|
81
|
+
lastModified: string;
|
|
82
|
+
name: string;
|
|
83
|
+
format: string;
|
|
84
|
+
revocationMethod: string;
|
|
85
|
+
walletStorageType?: WalletStorageType;
|
|
86
|
+
schemaId: string;
|
|
87
|
+
importedSourceUrl: string;
|
|
88
|
+
schemaType: CredentialSchemaType;
|
|
89
|
+
layoutType?: LayoutType;
|
|
90
|
+
layoutProperties?: CredentialSchemaLayoutProperties;
|
|
91
|
+
}
|
|
92
|
+
export interface CreateProofSchemaRequest {
|
|
93
|
+
name: string;
|
|
94
|
+
organisationId: string;
|
|
95
|
+
expireDuration: number;
|
|
96
|
+
proofInputSchemas: ProofInputSchemaRequest[];
|
|
97
|
+
}
|
|
98
|
+
export interface ProofInputSchemaRequest {
|
|
99
|
+
credentialSchemaId: string;
|
|
100
|
+
validityConstraint?: number;
|
|
101
|
+
claimSchemas: ProofSchemaClaimRequest[];
|
|
102
|
+
}
|
|
103
|
+
export interface ProofSchemaClaimRequest {
|
|
104
|
+
id: string;
|
|
105
|
+
required: boolean;
|
|
106
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var SortableProofSchemasColumnEnum;
|
|
2
|
+
(function (SortableProofSchemasColumnEnum) {
|
|
3
|
+
SortableProofSchemasColumnEnum["NAME"] = "NAME";
|
|
4
|
+
SortableProofSchemasColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
5
|
+
})(SortableProofSchemasColumnEnum || (SortableProofSchemasColumnEnum = {}));
|
|
6
|
+
export var ExactProofSchemaFilterColumnEnum;
|
|
7
|
+
(function (ExactProofSchemaFilterColumnEnum) {
|
|
8
|
+
ExactProofSchemaFilterColumnEnum["NAME"] = "NAME";
|
|
9
|
+
})(ExactProofSchemaFilterColumnEnum || (ExactProofSchemaFilterColumnEnum = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ListQuery, SortDirection } from "./list";
|
|
2
|
+
export declare enum TrustAnchorRoleEnum {
|
|
3
|
+
PUBLISHER = "PUBLISHER",
|
|
4
|
+
CLIENT = "CLIENT"
|
|
5
|
+
}
|
|
6
|
+
export interface CreateTrustAnchorRequest {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
publisherReference?: string;
|
|
10
|
+
role: TrustAnchorRoleEnum;
|
|
11
|
+
priority?: number;
|
|
12
|
+
organisationId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TrustAnchor {
|
|
15
|
+
id: string;
|
|
16
|
+
createdDate: string;
|
|
17
|
+
lastModified: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
publisherReference?: string;
|
|
21
|
+
role: TrustAnchorRoleEnum;
|
|
22
|
+
priority?: number;
|
|
23
|
+
organisationId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface TrustAnchorListItem extends TrustAnchor {
|
|
26
|
+
entities: number;
|
|
27
|
+
}
|
|
28
|
+
export declare enum SortableTrustAnchorColumnEnum {
|
|
29
|
+
NAME = "NAME",
|
|
30
|
+
CREATED_DATE = "CREATED_DATE",
|
|
31
|
+
TYPE = "TYPE",
|
|
32
|
+
ROLE = "ROLE",
|
|
33
|
+
PRIORITY = "PRIORITY"
|
|
34
|
+
}
|
|
35
|
+
export declare enum ExactTrustAnchorFilterColumnEnum {
|
|
36
|
+
NAME = "NAME",
|
|
37
|
+
TYPE = "TYPE"
|
|
38
|
+
}
|
|
39
|
+
export interface TrustAnchorListQuery extends ListQuery {
|
|
40
|
+
sort?: SortableTrustAnchorColumnEnum;
|
|
41
|
+
sortDirection?: SortDirection;
|
|
42
|
+
name?: string;
|
|
43
|
+
exact?: ExactTrustAnchorFilterColumnEnum[];
|
|
44
|
+
type?: string;
|
|
45
|
+
role?: TrustAnchorRoleEnum;
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var TrustAnchorRoleEnum;
|
|
2
|
+
(function (TrustAnchorRoleEnum) {
|
|
3
|
+
TrustAnchorRoleEnum["PUBLISHER"] = "PUBLISHER";
|
|
4
|
+
TrustAnchorRoleEnum["CLIENT"] = "CLIENT";
|
|
5
|
+
})(TrustAnchorRoleEnum || (TrustAnchorRoleEnum = {}));
|
|
6
|
+
export var SortableTrustAnchorColumnEnum;
|
|
7
|
+
(function (SortableTrustAnchorColumnEnum) {
|
|
8
|
+
SortableTrustAnchorColumnEnum["NAME"] = "NAME";
|
|
9
|
+
SortableTrustAnchorColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
10
|
+
SortableTrustAnchorColumnEnum["TYPE"] = "TYPE";
|
|
11
|
+
SortableTrustAnchorColumnEnum["ROLE"] = "ROLE";
|
|
12
|
+
SortableTrustAnchorColumnEnum["PRIORITY"] = "PRIORITY";
|
|
13
|
+
})(SortableTrustAnchorColumnEnum || (SortableTrustAnchorColumnEnum = {}));
|
|
14
|
+
export var ExactTrustAnchorFilterColumnEnum;
|
|
15
|
+
(function (ExactTrustAnchorFilterColumnEnum) {
|
|
16
|
+
ExactTrustAnchorFilterColumnEnum["NAME"] = "NAME";
|
|
17
|
+
ExactTrustAnchorFilterColumnEnum["TYPE"] = "TYPE";
|
|
18
|
+
})(ExactTrustAnchorFilterColumnEnum || (ExactTrustAnchorFilterColumnEnum = {}));
|