@procivis/react-native-one-core 1.94025.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.
@@ -1,43 +1,43 @@
1
- import { TrustEntityTypeBindingEnum } from "./one-core-uniffi-intf";
2
- export declare enum KeyAlgorithmFeatureEnum {
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: KeyAlgorithmFeatureEnum[];
6
+ features: KeyAlgorithmFeature[];
7
7
  }
8
- export declare enum KeyStorageSecurityEnum {
9
- HARDWARE = "HARDWARE",
10
- SOFTWARE = "SOFTWARE"
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: KeyStorageFeatureEnum[];
18
- security: KeyStorageSecurityEnum[];
15
+ features: KeyStorageFeature[];
19
16
  }
20
- export declare enum DidOperationEnum {
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: DidOperationEnum[];
23
+ operations: DidOperation[];
27
24
  keyAlgorithms: string[];
28
25
  }
29
- export declare enum FormatFeatureEnum {
26
+ export declare enum FormatFeature {
30
27
  SelectiveDisclosure = "SELECTIVE_DISCLOSURE",
31
28
  SupportsCredentialDesign = "SUPPORTS_CREDENTIAL_DESIGN",
32
- RequiresSchemaId = "REQUIRES_SCHEMA_ID"
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 FormatSelectiveDisclosureEnum {
34
+ export declare enum FormatSelectiveDisclosure {
35
35
  AnyLevel = "ANY_LEVEL",
36
36
  SecondLevel = "SECOND_LEVEL"
37
37
  }
38
38
  export interface FormatCapabilities {
39
- features: FormatFeatureEnum[];
40
- selectiveDisclosure: FormatSelectiveDisclosureEnum[];
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<DataTypeEnum | string>;
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 RevocationOperationEnum {
57
+ export declare enum RevocationOperation {
55
58
  REVOKE = "REVOKE",
56
59
  SUSPEND = "SUSPEND"
57
60
  }
58
61
  export interface RevocationCapabilities {
59
- operations: RevocationOperationEnum[];
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 DataTypeEnum {
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: DataTypeEnum.String;
106
+ type: DataType.String;
104
107
  params?: StringDataTypeParams;
105
108
  } | {
106
- type: DataTypeEnum.Number;
109
+ type: DataType.Number;
107
110
  params?: NumberDataTypeParams;
108
111
  } | {
109
- type: DataTypeEnum.Date;
112
+ type: DataType.Date;
110
113
  params?: DateDataTypeParams;
111
114
  } | {
112
- type: DataTypeEnum.Picture | DataTypeEnum.SwiyuPicture;
115
+ type: DataType.Picture | DataType.SwiyuPicture;
113
116
  params?: FileDataTypeParams;
114
117
  } | {
115
- type: DataTypeEnum.Object | DataTypeEnum.Array | DataTypeEnum.Boolean;
118
+ type: DataType.Object | DataType.Array | DataType.Boolean;
116
119
  params?: undefined;
117
120
  };
118
- export declare enum IssuanceProtocolFeatureEnum {
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: IssuanceProtocolFeatureEnum[];
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: TrustEntityTypeBindingEnum[];
149
+ supportedTypes: TrustEntityType[];
136
150
  }
137
- export interface Config {
151
+ export interface CoreConfig {
138
152
  format: ConfigEntities<FormatCapabilities>;
139
153
  issuanceProtocol: ConfigEntities<IssuanceProtocolCapabilities>;
140
154
  verificationProtocol: ConfigEntities<VerificationProtocolCapabilities>;
@@ -1,60 +1,70 @@
1
- export var KeyAlgorithmFeatureEnum;
2
- (function (KeyAlgorithmFeatureEnum) {
3
- KeyAlgorithmFeatureEnum["GENERATE_CSR"] = "GENERATE_CSR";
4
- })(KeyAlgorithmFeatureEnum || (KeyAlgorithmFeatureEnum = {}));
5
- export var KeyStorageSecurityEnum;
6
- (function (KeyStorageSecurityEnum) {
7
- KeyStorageSecurityEnum["HARDWARE"] = "HARDWARE";
8
- KeyStorageSecurityEnum["SOFTWARE"] = "SOFTWARE";
9
- })(KeyStorageSecurityEnum || (KeyStorageSecurityEnum = {}));
10
- export var KeyStorageFeatureEnum;
11
- (function (KeyStorageFeatureEnum) {
12
- KeyStorageFeatureEnum["EXPORTABLE"] = "EXPORTABLE";
13
- })(KeyStorageFeatureEnum || (KeyStorageFeatureEnum = {}));
14
- export var DidOperationEnum;
15
- (function (DidOperationEnum) {
16
- DidOperationEnum["RESOLVE"] = "RESOLVE";
17
- DidOperationEnum["CREATE"] = "CREATE";
18
- DidOperationEnum["DEACTIVATE"] = "DEACTIVATE";
19
- })(DidOperationEnum || (DidOperationEnum = {}));
20
- export var FormatFeatureEnum;
21
- (function (FormatFeatureEnum) {
22
- FormatFeatureEnum["SelectiveDisclosure"] = "SELECTIVE_DISCLOSURE";
23
- FormatFeatureEnum["SupportsCredentialDesign"] = "SUPPORTS_CREDENTIAL_DESIGN";
24
- FormatFeatureEnum["RequiresSchemaId"] = "REQUIRES_SCHEMA_ID";
25
- })(FormatFeatureEnum || (FormatFeatureEnum = {}));
26
- export var FormatSelectiveDisclosureEnum;
27
- (function (FormatSelectiveDisclosureEnum) {
28
- FormatSelectiveDisclosureEnum["AnyLevel"] = "ANY_LEVEL";
29
- FormatSelectiveDisclosureEnum["SecondLevel"] = "SECOND_LEVEL";
30
- })(FormatSelectiveDisclosureEnum || (FormatSelectiveDisclosureEnum = {}));
31
- export var RevocationOperationEnum;
32
- (function (RevocationOperationEnum) {
33
- RevocationOperationEnum["REVOKE"] = "REVOKE";
34
- RevocationOperationEnum["SUSPEND"] = "SUSPEND";
35
- })(RevocationOperationEnum || (RevocationOperationEnum = {}));
36
- export var DataTypeEnum;
37
- (function (DataTypeEnum) {
38
- DataTypeEnum["String"] = "STRING";
39
- DataTypeEnum["Number"] = "NUMBER";
40
- DataTypeEnum["Date"] = "DATE";
41
- DataTypeEnum["Picture"] = "PICTURE";
42
- DataTypeEnum["SwiyuPicture"] = "SWIYU_PICTURE";
43
- DataTypeEnum["Boolean"] = "BOOLEAN";
44
- DataTypeEnum["Object"] = "OBJECT";
45
- DataTypeEnum["Array"] = "ARRAY";
46
- })(DataTypeEnum || (DataTypeEnum = {}));
47
- export var IssuanceProtocolFeatureEnum;
48
- (function (IssuanceProtocolFeatureEnum) {
49
- IssuanceProtocolFeatureEnum["SupportsRejection"] = "SUPPORTS_REJECTION";
50
- })(IssuanceProtocolFeatureEnum || (IssuanceProtocolFeatureEnum = {}));
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 ConfigBindingDto and typed Config in sync
57
- /** assert that all fields listed in {@link ConfigBindingDto} exist in {@link Config} */
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 ConfigBindingDto} */
69
+ /** assert that all fields listed in {@link Config} exist in {@link CoreConfig} */
60
70
  const extraFieldsCheck = null;
@@ -1,13 +1,13 @@
1
- import { Config } from "./config";
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
- export interface ONECore extends Omit<OneCoreBinding, "version" | "getConfig"> {
6
- getVersion(): Promise<ReturnType<OneCoreBinding["version"]>>;
7
- getConfig(): Promise<Config>;
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", "getDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinition", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProof", "holderSubmitProofV2", "getCredentials", "runTask", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "getCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofs", "deleteProof", "proposeProof", "createProofSchema", "getProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "listTrustAnchors", "createTrustEntity", "getTrustEntity", "listTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "getHistoryList", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
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
- "getDids",
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
- "getCredentials",
29
+ "listCredentials",
30
30
  "runTask",
31
31
  "deleteProofClaims",
32
32
  "getCredential",
33
33
  "deleteCredential",
34
34
  "importCredentialSchema",
35
35
  "getCredentialSchema",
36
- "getCredentialSchemas",
36
+ "listCredentialSchemas",
37
37
  "deleteCredentialSchema",
38
38
  "createProof",
39
39
  "shareProof",
40
40
  "shareProofSchema",
41
41
  "shareCredentialSchema",
42
42
  "getProof",
43
- "getProofs",
43
+ "listProofs",
44
44
  "deleteProof",
45
45
  "proposeProof",
46
46
  "createProofSchema",
47
- "getProofSchemas",
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
- "getHistoryList",
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",