@procivis/react-native-one-core 1.90342.0 → 1.95657.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/ProcivisOneCoreModule.kt +47 -30
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +38 -38
- package/android/src/main/java/ch/procivis/one/core/Util.kt +3 -3
- package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +3 -3
- package/core-sdk.json +6 -6
- package/dist/src/config.d.ts +47 -33
- package/dist/src/config.js +63 -53
- package/dist/src/core.d.ts +7 -7
- package/dist/src/core.js +9 -7
- package/dist/src/one-core-uniffi-intf.d.ts +712 -698
- package/dist/src/one-core-uniffi-intf.js +357 -354
- package/ios/ProcivisOneCoreModule.m +16 -6
- package/ios/ProcivisOneCoreModule.swift +65 -38
- package/ios/RSEKeyStorage.swift +2 -2
- package/ios/Serialize.swift +12 -12
- package/ios/Util.swift +1 -1
- package/package.json +1 -1
package/dist/src/config.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare enum
|
|
1
|
+
import { TrustEntityType, IdentifierType } from "./one-core-uniffi-intf";
|
|
2
|
+
export declare enum KeyAlgorithmFeature {
|
|
3
3
|
GENERATE_CSR = "GENERATE_CSR"
|
|
4
4
|
}
|
|
5
5
|
export interface KeyAlgorithmCapabilities {
|
|
6
|
-
features:
|
|
6
|
+
features: KeyAlgorithmFeature[];
|
|
7
7
|
}
|
|
8
|
-
export declare enum
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare enum KeyStorageFeatureEnum {
|
|
13
|
-
EXPORTABLE = "EXPORTABLE"
|
|
8
|
+
export declare enum KeyStorageFeature {
|
|
9
|
+
EXPORTABLE = "EXPORTABLE",
|
|
10
|
+
IMPORTABLE = "IMPORTABLE",
|
|
11
|
+
ATTESTATION = "ATTESTATION"
|
|
14
12
|
}
|
|
15
13
|
export interface KeyStorageCapabilities {
|
|
16
14
|
algorithms: string[];
|
|
17
|
-
features:
|
|
18
|
-
security: KeyStorageSecurityEnum[];
|
|
15
|
+
features: KeyStorageFeature[];
|
|
19
16
|
}
|
|
20
|
-
export declare enum
|
|
17
|
+
export declare enum DidOperation {
|
|
21
18
|
RESOLVE = "RESOLVE",
|
|
22
19
|
CREATE = "CREATE",
|
|
23
20
|
DEACTIVATE = "DEACTIVATE"
|
|
24
21
|
}
|
|
25
22
|
export interface DidCapabilities {
|
|
26
|
-
operations:
|
|
23
|
+
operations: DidOperation[];
|
|
27
24
|
keyAlgorithms: string[];
|
|
28
25
|
}
|
|
29
|
-
export declare enum
|
|
26
|
+
export declare enum FormatFeature {
|
|
30
27
|
SelectiveDisclosure = "SELECTIVE_DISCLOSURE",
|
|
31
28
|
SupportsCredentialDesign = "SUPPORTS_CREDENTIAL_DESIGN",
|
|
32
|
-
|
|
29
|
+
SupportsSchemaId = "SUPPORTS_SCHEMA_ID",
|
|
30
|
+
RequiresPresentationEncryption = "REQUIRES_PRESENTATION_ENCRYPTION",
|
|
31
|
+
SupportsCombinedPresentation = "SUPPORTS_COMBINED_PRESENTATION",
|
|
32
|
+
SupportsTxCode = "SUPPORTS_TX_CODE"
|
|
33
33
|
}
|
|
34
|
-
export declare enum
|
|
34
|
+
export declare enum FormatSelectiveDisclosure {
|
|
35
35
|
AnyLevel = "ANY_LEVEL",
|
|
36
36
|
SecondLevel = "SECOND_LEVEL"
|
|
37
37
|
}
|
|
38
38
|
export interface FormatCapabilities {
|
|
39
|
-
features:
|
|
40
|
-
selectiveDisclosure:
|
|
39
|
+
features: FormatFeature[];
|
|
40
|
+
selectiveDisclosure: FormatSelectiveDisclosure[];
|
|
41
41
|
issuanceDidMethods: string[];
|
|
42
42
|
issuanceExchangeProtocols: string[];
|
|
43
43
|
proofExchangeProtocols: string[];
|
|
@@ -45,18 +45,21 @@ export interface FormatCapabilities {
|
|
|
45
45
|
signingKeyAlgorithms: string[];
|
|
46
46
|
verificationKeyAlgorithms: string[];
|
|
47
47
|
verificationKeyStorages: string[];
|
|
48
|
-
datatypes: Array<
|
|
49
|
-
allowedSchemaIds: string[];
|
|
48
|
+
datatypes: Array<DataType | string>;
|
|
50
49
|
forbiddenClaimNames: string[];
|
|
51
50
|
issuanceIdentifierTypes: string[];
|
|
52
51
|
verificationIdentifierTypes: string[];
|
|
52
|
+
holderIdentifierTypes: string[];
|
|
53
|
+
holderKeyAlgorithms: string[];
|
|
54
|
+
holderDidMethods: string[];
|
|
55
|
+
ecosystemSchemaIds: string[];
|
|
53
56
|
}
|
|
54
|
-
export declare enum
|
|
57
|
+
export declare enum RevocationOperation {
|
|
55
58
|
REVOKE = "REVOKE",
|
|
56
59
|
SUSPEND = "SUSPEND"
|
|
57
60
|
}
|
|
58
61
|
export interface RevocationCapabilities {
|
|
59
|
-
operations:
|
|
62
|
+
operations: RevocationOperation[];
|
|
60
63
|
}
|
|
61
64
|
export interface ConfigEntity<Capabilities> {
|
|
62
65
|
enabled?: boolean;
|
|
@@ -67,7 +70,7 @@ export interface ConfigEntity<Capabilities> {
|
|
|
67
70
|
export type ConfigEntities<Capabilities = undefined, Params = {
|
|
68
71
|
type: string;
|
|
69
72
|
}> = Record<string, ConfigEntity<Capabilities> & Params>;
|
|
70
|
-
export declare enum
|
|
73
|
+
export declare enum DataType {
|
|
71
74
|
String = "STRING",
|
|
72
75
|
Number = "NUMBER",
|
|
73
76
|
Date = "DATE",
|
|
@@ -100,31 +103,42 @@ export interface FileDataTypeParams {
|
|
|
100
103
|
showAs: "IMAGE" | "VIDEO" | "FILE";
|
|
101
104
|
}
|
|
102
105
|
export type DataTypeParams = {
|
|
103
|
-
type:
|
|
106
|
+
type: DataType.String;
|
|
104
107
|
params?: StringDataTypeParams;
|
|
105
108
|
} | {
|
|
106
|
-
type:
|
|
109
|
+
type: DataType.Number;
|
|
107
110
|
params?: NumberDataTypeParams;
|
|
108
111
|
} | {
|
|
109
|
-
type:
|
|
112
|
+
type: DataType.Date;
|
|
110
113
|
params?: DateDataTypeParams;
|
|
111
114
|
} | {
|
|
112
|
-
type:
|
|
115
|
+
type: DataType.Picture | DataType.SwiyuPicture;
|
|
113
116
|
params?: FileDataTypeParams;
|
|
114
117
|
} | {
|
|
115
|
-
type:
|
|
118
|
+
type: DataType.Object | DataType.Array | DataType.Boolean;
|
|
116
119
|
params?: undefined;
|
|
117
120
|
};
|
|
118
|
-
export declare enum
|
|
119
|
-
SupportsRejection = "SUPPORTS_REJECTION"
|
|
121
|
+
export declare enum IssuanceProtocolFeature {
|
|
122
|
+
SupportsRejection = "SUPPORTS_REJECTION",
|
|
123
|
+
SupportsWebhooks = "SUPPORTS_WEBHOOKS"
|
|
120
124
|
}
|
|
121
125
|
export interface IssuanceProtocolCapabilities {
|
|
122
126
|
didMethods: string[];
|
|
123
|
-
features:
|
|
127
|
+
features: IssuanceProtocolFeature[];
|
|
128
|
+
}
|
|
129
|
+
export declare enum VerificationProtocolFeature {
|
|
130
|
+
SupportsWebhooks = "SUPPORTS_WEBHOOKS"
|
|
131
|
+
}
|
|
132
|
+
export declare enum PresentationDefinitionVersion {
|
|
133
|
+
V1 = "V1",
|
|
134
|
+
V2 = "V2"
|
|
124
135
|
}
|
|
125
136
|
export interface VerificationProtocolCapabilities {
|
|
137
|
+
features: VerificationProtocolFeature[];
|
|
126
138
|
didMethods: string[];
|
|
127
139
|
supportedTransports: string[];
|
|
140
|
+
verifierIdentifierTypes: IdentifierType[];
|
|
141
|
+
supportedPresentationDefinition: PresentationDefinitionVersion[];
|
|
128
142
|
}
|
|
129
143
|
export declare enum TrustOperation {
|
|
130
144
|
Publish = "PUBLISH",
|
|
@@ -132,9 +146,9 @@ export declare enum TrustOperation {
|
|
|
132
146
|
}
|
|
133
147
|
export interface TrustCapabilities {
|
|
134
148
|
operations: TrustOperation[];
|
|
135
|
-
supportedTypes:
|
|
149
|
+
supportedTypes: TrustEntityType[];
|
|
136
150
|
}
|
|
137
|
-
export interface
|
|
151
|
+
export interface CoreConfig {
|
|
138
152
|
format: ConfigEntities<FormatCapabilities>;
|
|
139
153
|
issuanceProtocol: ConfigEntities<IssuanceProtocolCapabilities>;
|
|
140
154
|
verificationProtocol: ConfigEntities<VerificationProtocolCapabilities>;
|
package/dist/src/config.js
CHANGED
|
@@ -1,60 +1,70 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
})(
|
|
5
|
-
export var
|
|
6
|
-
(function (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
26
|
-
export var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})(
|
|
31
|
-
export var
|
|
32
|
-
(function (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})(
|
|
36
|
-
export var
|
|
37
|
-
(function (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})(
|
|
47
|
-
export var
|
|
48
|
-
(function (
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
export var KeyAlgorithmFeature;
|
|
2
|
+
(function (KeyAlgorithmFeature) {
|
|
3
|
+
KeyAlgorithmFeature["GENERATE_CSR"] = "GENERATE_CSR";
|
|
4
|
+
})(KeyAlgorithmFeature || (KeyAlgorithmFeature = {}));
|
|
5
|
+
export var KeyStorageFeature;
|
|
6
|
+
(function (KeyStorageFeature) {
|
|
7
|
+
KeyStorageFeature["EXPORTABLE"] = "EXPORTABLE";
|
|
8
|
+
KeyStorageFeature["IMPORTABLE"] = "IMPORTABLE";
|
|
9
|
+
KeyStorageFeature["ATTESTATION"] = "ATTESTATION";
|
|
10
|
+
})(KeyStorageFeature || (KeyStorageFeature = {}));
|
|
11
|
+
export var DidOperation;
|
|
12
|
+
(function (DidOperation) {
|
|
13
|
+
DidOperation["RESOLVE"] = "RESOLVE";
|
|
14
|
+
DidOperation["CREATE"] = "CREATE";
|
|
15
|
+
DidOperation["DEACTIVATE"] = "DEACTIVATE";
|
|
16
|
+
})(DidOperation || (DidOperation = {}));
|
|
17
|
+
export var FormatFeature;
|
|
18
|
+
(function (FormatFeature) {
|
|
19
|
+
FormatFeature["SelectiveDisclosure"] = "SELECTIVE_DISCLOSURE";
|
|
20
|
+
FormatFeature["SupportsCredentialDesign"] = "SUPPORTS_CREDENTIAL_DESIGN";
|
|
21
|
+
FormatFeature["SupportsSchemaId"] = "SUPPORTS_SCHEMA_ID";
|
|
22
|
+
FormatFeature["RequiresPresentationEncryption"] = "REQUIRES_PRESENTATION_ENCRYPTION";
|
|
23
|
+
FormatFeature["SupportsCombinedPresentation"] = "SUPPORTS_COMBINED_PRESENTATION";
|
|
24
|
+
FormatFeature["SupportsTxCode"] = "SUPPORTS_TX_CODE";
|
|
25
|
+
})(FormatFeature || (FormatFeature = {}));
|
|
26
|
+
export var FormatSelectiveDisclosure;
|
|
27
|
+
(function (FormatSelectiveDisclosure) {
|
|
28
|
+
FormatSelectiveDisclosure["AnyLevel"] = "ANY_LEVEL";
|
|
29
|
+
FormatSelectiveDisclosure["SecondLevel"] = "SECOND_LEVEL";
|
|
30
|
+
})(FormatSelectiveDisclosure || (FormatSelectiveDisclosure = {}));
|
|
31
|
+
export var RevocationOperation;
|
|
32
|
+
(function (RevocationOperation) {
|
|
33
|
+
RevocationOperation["REVOKE"] = "REVOKE";
|
|
34
|
+
RevocationOperation["SUSPEND"] = "SUSPEND";
|
|
35
|
+
})(RevocationOperation || (RevocationOperation = {}));
|
|
36
|
+
export var DataType;
|
|
37
|
+
(function (DataType) {
|
|
38
|
+
DataType["String"] = "STRING";
|
|
39
|
+
DataType["Number"] = "NUMBER";
|
|
40
|
+
DataType["Date"] = "DATE";
|
|
41
|
+
DataType["Picture"] = "PICTURE";
|
|
42
|
+
DataType["SwiyuPicture"] = "SWIYU_PICTURE";
|
|
43
|
+
DataType["Boolean"] = "BOOLEAN";
|
|
44
|
+
DataType["Object"] = "OBJECT";
|
|
45
|
+
DataType["Array"] = "ARRAY";
|
|
46
|
+
})(DataType || (DataType = {}));
|
|
47
|
+
export var IssuanceProtocolFeature;
|
|
48
|
+
(function (IssuanceProtocolFeature) {
|
|
49
|
+
IssuanceProtocolFeature["SupportsRejection"] = "SUPPORTS_REJECTION";
|
|
50
|
+
IssuanceProtocolFeature["SupportsWebhooks"] = "SUPPORTS_WEBHOOKS";
|
|
51
|
+
})(IssuanceProtocolFeature || (IssuanceProtocolFeature = {}));
|
|
52
|
+
export var VerificationProtocolFeature;
|
|
53
|
+
(function (VerificationProtocolFeature) {
|
|
54
|
+
VerificationProtocolFeature["SupportsWebhooks"] = "SUPPORTS_WEBHOOKS";
|
|
55
|
+
})(VerificationProtocolFeature || (VerificationProtocolFeature = {}));
|
|
56
|
+
export var PresentationDefinitionVersion;
|
|
57
|
+
(function (PresentationDefinitionVersion) {
|
|
58
|
+
PresentationDefinitionVersion["V1"] = "V1";
|
|
59
|
+
PresentationDefinitionVersion["V2"] = "V2";
|
|
60
|
+
})(PresentationDefinitionVersion || (PresentationDefinitionVersion = {}));
|
|
51
61
|
export var TrustOperation;
|
|
52
62
|
(function (TrustOperation) {
|
|
53
63
|
TrustOperation["Publish"] = "PUBLISH";
|
|
54
64
|
TrustOperation["Lookup"] = "LOOKUP";
|
|
55
65
|
})(TrustOperation || (TrustOperation = {}));
|
|
56
|
-
// Typescript automatic assertions to keep the fields of ONECore
|
|
57
|
-
/** assert that all fields listed in {@link
|
|
66
|
+
// Typescript automatic assertions to keep the fields of ONECore Config and typed Config in sync
|
|
67
|
+
/** assert that all fields listed in {@link CoreConfig} exist in {@link Config} */
|
|
58
68
|
const missingFieldsCheck = null;
|
|
59
|
-
/** assert that all fields listed in {@link Config} exist in {@link
|
|
69
|
+
/** assert that all fields listed in {@link Config} exist in {@link CoreConfig} */
|
|
60
70
|
const extraFieldsCheck = null;
|
package/dist/src/core.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OneCoreBinding } from "./one-core-uniffi-intf";
|
|
3
|
-
export * from "./one-core-uniffi-intf";
|
|
1
|
+
import { CoreConfig } from "./config";
|
|
4
2
|
export * from "./config";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { Version, OneCore } from "./one-core-uniffi-intf";
|
|
4
|
+
export * from "./one-core-uniffi-intf";
|
|
5
|
+
export interface ONECore extends Omit<OneCore, "version" | "getConfig"> {
|
|
6
|
+
getVersion(): Promise<Version>;
|
|
7
|
+
getConfig(): Promise<CoreConfig>;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
* New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
12
12
|
*/
|
|
13
|
-
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "
|
|
13
|
+
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinition", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "listProofs", "deleteProof", "proposeProof", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "listTrustAnchors", "createTrustEntity", "getTrustEntity", "listTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "holderWalletUnitUpdate", "holderGetWalletUnitTrustCollections", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
|
package/dist/src/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./one-core-uniffi-intf";
|
|
2
1
|
export * from "./config";
|
|
2
|
+
export * from "./one-core-uniffi-intf";
|
|
3
3
|
/**
|
|
4
4
|
* @hidden
|
|
5
5
|
* New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
@@ -11,7 +11,7 @@ export const interfaceMethodNames = [
|
|
|
11
11
|
"upsertOrganisation",
|
|
12
12
|
"generateKey",
|
|
13
13
|
"createDid",
|
|
14
|
-
"
|
|
14
|
+
"listDids",
|
|
15
15
|
"createIdentifier",
|
|
16
16
|
"getIdentifier",
|
|
17
17
|
"listIdentifiers",
|
|
@@ -26,25 +26,25 @@ export const interfaceMethodNames = [
|
|
|
26
26
|
"holderRejectProof",
|
|
27
27
|
"holderSubmitProof",
|
|
28
28
|
"holderSubmitProofV2",
|
|
29
|
-
"
|
|
29
|
+
"listCredentials",
|
|
30
30
|
"runTask",
|
|
31
31
|
"deleteProofClaims",
|
|
32
32
|
"getCredential",
|
|
33
33
|
"deleteCredential",
|
|
34
34
|
"importCredentialSchema",
|
|
35
35
|
"getCredentialSchema",
|
|
36
|
-
"
|
|
36
|
+
"listCredentialSchemas",
|
|
37
37
|
"deleteCredentialSchema",
|
|
38
38
|
"createProof",
|
|
39
39
|
"shareProof",
|
|
40
40
|
"shareProofSchema",
|
|
41
41
|
"shareCredentialSchema",
|
|
42
42
|
"getProof",
|
|
43
|
-
"
|
|
43
|
+
"listProofs",
|
|
44
44
|
"deleteProof",
|
|
45
45
|
"proposeProof",
|
|
46
46
|
"createProofSchema",
|
|
47
|
-
"
|
|
47
|
+
"listProofSchemas",
|
|
48
48
|
"getProofSchema",
|
|
49
49
|
"deleteProofSchema",
|
|
50
50
|
"importProofSchema",
|
|
@@ -61,7 +61,7 @@ export const interfaceMethodNames = [
|
|
|
61
61
|
"createRemoteTrustEntity",
|
|
62
62
|
"getRemoteTrustEntity",
|
|
63
63
|
"updateRemoteTrustEntity",
|
|
64
|
-
"
|
|
64
|
+
"listHistory",
|
|
65
65
|
"getHistoryEntry",
|
|
66
66
|
"createBackup",
|
|
67
67
|
"backupInfo",
|
|
@@ -73,6 +73,8 @@ export const interfaceMethodNames = [
|
|
|
73
73
|
"holderRegisterWalletUnit",
|
|
74
74
|
"holderWalletUnitStatus",
|
|
75
75
|
"holderGetWalletUnit",
|
|
76
|
+
"holderWalletUnitUpdate",
|
|
77
|
+
"holderGetWalletUnitTrustCollections",
|
|
76
78
|
"nfcReadIsoMdlEngagement",
|
|
77
79
|
"nfcStopIsoMdlEngagement",
|
|
78
80
|
"uninitialize",
|