@procivis/react-native-one-core 1.33398.0 → 1.41710.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.
Files changed (155) hide show
  1. package/README.md +8 -26
  2. package/android/build.gradle +27 -3
  3. package/android/build.gradle_opensource +121 -0
  4. package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
  5. package/android/src/main/AndroidManifest.xml +5 -2
  6. package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +5 -5
  7. package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +3 -2
  8. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +99 -12
  9. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
  10. package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +6 -0
  11. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +123 -0
  12. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +23 -0
  13. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +20 -0
  14. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +396 -0
  15. package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +59 -0
  16. package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +48 -0
  17. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +256 -0
  18. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +51 -0
  19. package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +74 -0
  20. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +9 -0
  21. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +9 -0
  22. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +10 -0
  23. package/core-sdk.json +6 -6
  24. package/dist/index.d.ts +7 -0
  25. package/dist/index.js +10 -4
  26. package/dist/src/cache.d.ts +0 -4
  27. package/dist/src/cache.js +0 -5
  28. package/dist/src/config.d.ts +11 -3
  29. package/dist/src/core.d.ts +8 -4
  30. package/dist/src/core.js +67 -0
  31. package/dist/src/credential.d.ts +1 -0
  32. package/dist/src/credentialSchema.d.ts +5 -2
  33. package/dist/src/credentialSchema.js +2 -0
  34. package/dist/src/history.d.ts +19 -4
  35. package/dist/src/history.js +10 -1
  36. package/dist/src/organisation.d.ts +8 -0
  37. package/dist/src/organisation.js +1 -0
  38. package/dist/src/proof.d.ts +19 -4
  39. package/dist/src/proof.js +13 -5
  40. package/dist/src/trust.d.ts +1 -1
  41. package/dist/src/ubiqu.d.ts +49 -0
  42. package/dist/src/ubiqu.js +69 -0
  43. package/ios/Deserialize.swift +57 -19
  44. package/ios/EventEmitter.swift +79 -0
  45. package/ios/ProcivisOneCoreModule.m +30 -4
  46. package/ios/ProcivisOneCoreModule.swift +141 -14
  47. package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +28 -26
  48. package/ios/RSEKeyStorage.swift +587 -0
  49. package/ios/RSEKeyStorage.swift_opensource +49 -0
  50. package/ios/RSEPinPad.swift +74 -0
  51. package/ios/RSEPinPad.swift_opensource +21 -0
  52. package/ios/RSEPinPadManager.m +19 -0
  53. package/ios/Serialize.swift +40 -20
  54. package/ios/UBQKit.xcframework/Info.plist +44 -0
  55. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
  56. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  57. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  58. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  59. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +41 -0
  60. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  61. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  62. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  63. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  64. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  65. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  66. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +222 -0
  67. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  68. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  69. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  70. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  71. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  72. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  73. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  74. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  75. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  76. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  77. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  78. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +120 -0
  79. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  80. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  81. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  82. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  83. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  84. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  85. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  86. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +761 -0
  87. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +56 -0
  88. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +38 -0
  89. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
  90. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +89006 -0
  91. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1099 -0
  92. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  93. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +1099 -0
  94. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +11 -0
  95. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
  96. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +597 -0
  97. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
  98. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
  99. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
  100. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
  101. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
  102. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
  103. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  104. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  105. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  106. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +41 -0
  107. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  108. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  109. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  110. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  111. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  112. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  113. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +222 -0
  114. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  115. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  116. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  117. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  118. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  119. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  120. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  121. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  122. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  123. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  124. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  125. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +120 -0
  126. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  127. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  128. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  129. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  130. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  131. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  132. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  133. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +1522 -0
  134. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +56 -0
  135. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +38 -0
  136. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
  137. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +89006 -0
  138. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1099 -0
  139. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  140. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1099 -0
  141. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +89006 -0
  142. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1099 -0
  143. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  144. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1099 -0
  145. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +11 -0
  146. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
  147. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +652 -0
  148. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
  149. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
  150. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
  151. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
  152. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
  153. package/ios/Util.swift +1 -0
  154. package/package.json +5 -4
  155. package/react-native-one-core.podspec +4 -5
package/dist/src/core.js CHANGED
@@ -7,6 +7,73 @@ export * from "./did";
7
7
  export * from "./history";
8
8
  export * from "./key";
9
9
  export * from "./list";
10
+ export * from "./organisation";
10
11
  export * from "./proof";
11
12
  export * from "./proofSchema";
12
13
  export * from "./trust";
14
+ // New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
15
+ export const interfaceMethodNames = [
16
+ "getVersion",
17
+ "getConfig",
18
+ "createOrganisation",
19
+ "upsertOrganisation",
20
+ "generateKey",
21
+ "createDid",
22
+ "getDids",
23
+ "handleInvitation",
24
+ "holderAcceptCredential",
25
+ "holderRejectCredential",
26
+ "getPresentationDefinition",
27
+ "holderRejectProof",
28
+ "holderSubmitProof",
29
+ "getCredentials",
30
+ "runTask",
31
+ "checkCertificate",
32
+ "deleteProofClaims",
33
+ "getCredential",
34
+ "deleteCredential",
35
+ "importCredentialSchema",
36
+ "getCredentialSchema",
37
+ "getCredentialSchemas",
38
+ "deleteCredentialSchema",
39
+ "createProof",
40
+ "shareProof",
41
+ "shareProofSchema",
42
+ "shareCredentialSchema",
43
+ "getProof",
44
+ "getProofs",
45
+ "deleteProof",
46
+ "proposeProof",
47
+ "createProofSchema",
48
+ "getProofSchemas",
49
+ "getProofSchema",
50
+ "deleteProofSchema",
51
+ "importProofSchema",
52
+ "checkRevocation",
53
+ "createTrustAnchor",
54
+ "deleteTrustAnchor",
55
+ "getTrustAnchor",
56
+ "getTrustAnchors",
57
+ "createTrustEntity",
58
+ "getTrustEntity",
59
+ "getTrustEntities",
60
+ "getTrustEntityByDid",
61
+ "createRemoteTrustEntity",
62
+ "getRemoteTrustEntity",
63
+ "updateRemoteTrustEntity",
64
+ "getHistory",
65
+ "getHistoryEntry",
66
+ "createBackup",
67
+ "backupInfo",
68
+ "deleteCache",
69
+ "unpackBackup",
70
+ "finalizeImport",
71
+ "rollbackImport",
72
+ "resolveJsonldContext",
73
+ "uninitialize",
74
+ ];
75
+ // Typescript automatic assertions to keep ONECore and interfaceMethodNames in sync
76
+ /** assert that all method names listed in {@link interfaceMethodNames} exist in {@link ONECore} interface */
77
+ const methodNamesCheck = interfaceMethodNames;
78
+ /** assert that all {@link ONECore} interface methods are listed in {@link interfaceMethodNames} */
79
+ const interfaceMethodsCheck = null;
@@ -52,6 +52,7 @@ export interface CredentialListItem {
52
52
  schema: CredentialSchema;
53
53
  role: CredentialRoleEnum;
54
54
  suspendEndDate?: string;
55
+ exchange: string;
55
56
  }
56
57
  export interface CredentialDetail extends Omit<CredentialListItem, "issuerDid"> {
57
58
  claims: Claim[];
@@ -19,6 +19,7 @@ export interface ImportCredentialSchemaRequestSchema {
19
19
  layoutType?: LayoutType;
20
20
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
21
21
  allowSuspension?: boolean;
22
+ externalSchema: boolean;
22
23
  }
23
24
  export interface ImportCredentialSchemaClaimSchema {
24
25
  id: string;
@@ -62,12 +63,14 @@ export interface CredentialSchemaListQuery extends ListQuery {
62
63
  }
63
64
  export declare enum WalletStorageType {
64
65
  HARDWARE = "HARDWARE",
65
- SOFTWARE = "SOFTWARE"
66
+ SOFTWARE = "SOFTWARE",
67
+ REMOTE_SECURE_ELEMENT = "REMOTE_SECURE_ELEMENT"
66
68
  }
67
69
  export declare enum KnownCredentialSchemaType {
68
70
  PROCIVIS_ONE_SCHEMA2024 = "PROCIVIS_ONE_SCHEMA2024",
69
71
  FALLBACK_SCHEMA2024 = "FALLBACK_SCHEMA2024",
70
- MDOC = "MDOC"
72
+ MDOC = "MDOC",
73
+ SD_JWT_VC = "SD_JWT_VC"
71
74
  }
72
75
  export type CredentialSchemaType = KnownCredentialSchemaType | string;
73
76
  export declare enum LayoutType {
@@ -16,12 +16,14 @@ export var WalletStorageType;
16
16
  (function (WalletStorageType) {
17
17
  WalletStorageType["HARDWARE"] = "HARDWARE";
18
18
  WalletStorageType["SOFTWARE"] = "SOFTWARE";
19
+ WalletStorageType["REMOTE_SECURE_ELEMENT"] = "REMOTE_SECURE_ELEMENT";
19
20
  })(WalletStorageType || (WalletStorageType = {}));
20
21
  export var KnownCredentialSchemaType;
21
22
  (function (KnownCredentialSchemaType) {
22
23
  KnownCredentialSchemaType["PROCIVIS_ONE_SCHEMA2024"] = "PROCIVIS_ONE_SCHEMA2024";
23
24
  KnownCredentialSchemaType["FALLBACK_SCHEMA2024"] = "FALLBACK_SCHEMA2024";
24
25
  KnownCredentialSchemaType["MDOC"] = "MDOC";
26
+ KnownCredentialSchemaType["SD_JWT_VC"] = "SD_JWT_VC";
25
27
  })(KnownCredentialSchemaType || (KnownCredentialSchemaType = {}));
26
28
  export var LayoutType;
27
29
  (function (LayoutType) {
@@ -5,6 +5,7 @@ export declare enum HistoryActionEnum {
5
5
  CREATED = "CREATED",
6
6
  DEACTIVATED = "DEACTIVATED",
7
7
  DELETED = "DELETED",
8
+ ERRORED = "ERRORED",
8
9
  ISSUED = "ISSUED",
9
10
  OFFERED = "OFFERED",
10
11
  REJECTED = "REJECTED",
@@ -13,10 +14,16 @@ export declare enum HistoryActionEnum {
13
14
  PENDING = "PENDING",
14
15
  SUSPENDED = "SUSPENDED",
15
16
  RESTORED = "RESTORED",
16
- ERRORED = "ERRORED",
17
17
  SHARED = "SHARED",
18
18
  IMPORTED = "IMPORTED",
19
- CLAIMS_REMOVED = "CLAIMS_REMOVED"
19
+ CLAIMS_REMOVED = "CLAIMS_REMOVED",
20
+ RETRACTED = "RETRACTED",
21
+ ACTIVATED = "ACTIVATED",
22
+ WITHDRAWN = "WITHDRAWN",
23
+ REMOVED = "REMOVED",
24
+ UPDATED = "UPDATED",
25
+ REACTIVATED = "REACTIVATED",
26
+ CSR_GENERATED = "CSR_GENERATED"
20
27
  }
21
28
  export declare enum HistoryEntityTypeEnum {
22
29
  KEY = "KEY",
@@ -26,7 +33,9 @@ export declare enum HistoryEntityTypeEnum {
26
33
  PROOF = "PROOF",
27
34
  PROOF_SCHEMA = "PROOF_SCHEMA",
28
35
  ORGANISATION = "ORGANISATION",
29
- BACKUP = "BACKUP"
36
+ BACKUP = "BACKUP",
37
+ TRUST_ANCHOR = "TRUST_ANCHOR",
38
+ TRUST_ENTITY = "TRUST_ENTITY"
30
39
  }
31
40
  export declare enum HistorySearchTypeEnum {
32
41
  CLAIM_NAME = "CLAIM_NAME",
@@ -53,11 +62,17 @@ export interface HistoryListQuery extends ListQuery {
53
62
  searchText?: string;
54
63
  searchType?: HistorySearchTypeEnum;
55
64
  }
56
- export type HistoryMetadata = UnexportableEntities;
65
+ export interface HistoryErrorMetadata {
66
+ errorCode: string;
67
+ message: string;
68
+ }
69
+ export type HistoryMetadata = UnexportableEntities | HistoryErrorMetadata;
57
70
  export interface HistoryListItem {
58
71
  id: string;
59
72
  createdDate: string;
60
73
  action: HistoryActionEnum;
74
+ name: string;
75
+ target?: string;
61
76
  entityId?: string;
62
77
  entityType: HistoryEntityTypeEnum;
63
78
  organisationId: string;
@@ -4,6 +4,7 @@ export var HistoryActionEnum;
4
4
  HistoryActionEnum["CREATED"] = "CREATED";
5
5
  HistoryActionEnum["DEACTIVATED"] = "DEACTIVATED";
6
6
  HistoryActionEnum["DELETED"] = "DELETED";
7
+ HistoryActionEnum["ERRORED"] = "ERRORED";
7
8
  HistoryActionEnum["ISSUED"] = "ISSUED";
8
9
  HistoryActionEnum["OFFERED"] = "OFFERED";
9
10
  HistoryActionEnum["REJECTED"] = "REJECTED";
@@ -12,10 +13,16 @@ export var HistoryActionEnum;
12
13
  HistoryActionEnum["PENDING"] = "PENDING";
13
14
  HistoryActionEnum["SUSPENDED"] = "SUSPENDED";
14
15
  HistoryActionEnum["RESTORED"] = "RESTORED";
15
- HistoryActionEnum["ERRORED"] = "ERRORED";
16
16
  HistoryActionEnum["SHARED"] = "SHARED";
17
17
  HistoryActionEnum["IMPORTED"] = "IMPORTED";
18
18
  HistoryActionEnum["CLAIMS_REMOVED"] = "CLAIMS_REMOVED";
19
+ HistoryActionEnum["RETRACTED"] = "RETRACTED";
20
+ HistoryActionEnum["ACTIVATED"] = "ACTIVATED";
21
+ HistoryActionEnum["WITHDRAWN"] = "WITHDRAWN";
22
+ HistoryActionEnum["REMOVED"] = "REMOVED";
23
+ HistoryActionEnum["UPDATED"] = "UPDATED";
24
+ HistoryActionEnum["REACTIVATED"] = "REACTIVATED";
25
+ HistoryActionEnum["CSR_GENERATED"] = "CSR_GENERATED";
19
26
  })(HistoryActionEnum || (HistoryActionEnum = {}));
20
27
  export var HistoryEntityTypeEnum;
21
28
  (function (HistoryEntityTypeEnum) {
@@ -27,6 +34,8 @@ export var HistoryEntityTypeEnum;
27
34
  HistoryEntityTypeEnum["PROOF_SCHEMA"] = "PROOF_SCHEMA";
28
35
  HistoryEntityTypeEnum["ORGANISATION"] = "ORGANISATION";
29
36
  HistoryEntityTypeEnum["BACKUP"] = "BACKUP";
37
+ HistoryEntityTypeEnum["TRUST_ANCHOR"] = "TRUST_ANCHOR";
38
+ HistoryEntityTypeEnum["TRUST_ENTITY"] = "TRUST_ENTITY";
30
39
  })(HistoryEntityTypeEnum || (HistoryEntityTypeEnum = {}));
31
40
  export var HistorySearchTypeEnum;
32
41
  (function (HistorySearchTypeEnum) {
@@ -0,0 +1,8 @@
1
+ export interface CreateOrganisationRequest {
2
+ id?: string;
3
+ name?: string;
4
+ }
5
+ export interface UpsertOrganisationRequest {
6
+ id: string;
7
+ name: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -9,8 +9,13 @@ export declare enum ProofStateEnum {
9
9
  REQUESTED = "REQUESTED",
10
10
  ACCEPTED = "ACCEPTED",
11
11
  REJECTED = "REJECTED",
12
+ RETRACTED = "RETRACTED",
12
13
  ERROR = "ERROR"
13
14
  }
15
+ export declare enum ProofRoleEnum {
16
+ HOLDER = "HOLDER",
17
+ VERIFIER = "VERIFIER"
18
+ }
14
19
  export interface ProofInput {
15
20
  claims: ProofInputClaim[];
16
21
  credential?: CredentialDetail;
@@ -27,12 +32,17 @@ export interface ProofDetail {
27
32
  lastModified: string;
28
33
  proofInputs: ProofInput[];
29
34
  state: ProofStateEnum;
35
+ role: ProofRoleEnum;
30
36
  proofSchema?: ProofSchemaListItem;
31
37
  verifierDid?: DidListItem;
32
38
  holderDid?: DidListItem;
33
39
  exchange: string;
40
+ transport: string;
34
41
  redirectUri?: string;
35
42
  retainUntilDate?: string;
43
+ requestedDate?: string;
44
+ completedDate?: string;
45
+ claimsRemovedAt?: string;
36
46
  }
37
47
  export interface ProofListItem {
38
48
  id: string;
@@ -45,12 +55,14 @@ export interface ProofListItem {
45
55
  exchange: string;
46
56
  transport: string;
47
57
  state: ProofStateEnum;
58
+ role: ProofRoleEnum;
48
59
  schema?: ProofSchemaListItem;
49
60
  retainUntilDate?: string;
50
61
  }
51
62
  export interface CreateProofRequest {
52
63
  proofSchemaId: string;
53
- verifierDidId: string;
64
+ verifierDidId?: string;
65
+ verifierIdentifierId?: string;
54
66
  exchange: string;
55
67
  redirectUri?: string;
56
68
  verifierKey?: string;
@@ -125,6 +137,7 @@ export interface ProofListQuery extends ListQuery {
125
137
  name?: string;
126
138
  ids?: string[];
127
139
  proofStates?: ProofStateEnum[];
140
+ proofRoles?: ProofRoleEnum[];
128
141
  proofSchemaIds?: string[];
129
142
  exact?: ExactProofFilterColumnEnum[];
130
143
  }
@@ -141,9 +154,11 @@ export interface ShareProofRequest {
141
154
  params?: ShareProofRequestParams;
142
155
  }
143
156
  export interface ShareProofRequestParams {
144
- clientIdSchema?: ShareProofRequestClientIdSchemaType;
157
+ clientIdScheme?: ClientIdSchemeEnum;
145
158
  }
146
- export declare enum ShareProofRequestClientIdSchemaType {
159
+ export declare enum ClientIdSchemeEnum {
147
160
  REDIRECT_URI = "REDIRECT_URI",
148
- VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION"
161
+ VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION",
162
+ DID = "DID",
163
+ X509_SAN_DNS = "X509_SAN_DNS"
149
164
  }
package/dist/src/proof.js CHANGED
@@ -5,8 +5,14 @@ export var ProofStateEnum;
5
5
  ProofStateEnum["REQUESTED"] = "REQUESTED";
6
6
  ProofStateEnum["ACCEPTED"] = "ACCEPTED";
7
7
  ProofStateEnum["REJECTED"] = "REJECTED";
8
+ ProofStateEnum["RETRACTED"] = "RETRACTED";
8
9
  ProofStateEnum["ERROR"] = "ERROR";
9
10
  })(ProofStateEnum || (ProofStateEnum = {}));
11
+ export var ProofRoleEnum;
12
+ (function (ProofRoleEnum) {
13
+ ProofRoleEnum["HOLDER"] = "HOLDER";
14
+ ProofRoleEnum["VERIFIER"] = "VERIFIER";
15
+ })(ProofRoleEnum || (ProofRoleEnum = {}));
10
16
  export var ScanToVerifyBarcodeTypeEnum;
11
17
  (function (ScanToVerifyBarcodeTypeEnum) {
12
18
  ScanToVerifyBarcodeTypeEnum["MRZ"] = "MRZ";
@@ -28,8 +34,10 @@ export var ExactProofFilterColumnEnum;
28
34
  (function (ExactProofFilterColumnEnum) {
29
35
  ExactProofFilterColumnEnum["NAME"] = "NAME";
30
36
  })(ExactProofFilterColumnEnum || (ExactProofFilterColumnEnum = {}));
31
- export var ShareProofRequestClientIdSchemaType;
32
- (function (ShareProofRequestClientIdSchemaType) {
33
- ShareProofRequestClientIdSchemaType["REDIRECT_URI"] = "REDIRECT_URI";
34
- ShareProofRequestClientIdSchemaType["VERIFIER_ATTESTATION"] = "VERIFIER_ATTESTATION";
35
- })(ShareProofRequestClientIdSchemaType || (ShareProofRequestClientIdSchemaType = {}));
37
+ export var ClientIdSchemeEnum;
38
+ (function (ClientIdSchemeEnum) {
39
+ ClientIdSchemeEnum["REDIRECT_URI"] = "REDIRECT_URI";
40
+ ClientIdSchemeEnum["VERIFIER_ATTESTATION"] = "VERIFIER_ATTESTATION";
41
+ ClientIdSchemeEnum["DID"] = "DID";
42
+ ClientIdSchemeEnum["X509_SAN_DNS"] = "X509_SAN_DNS";
43
+ })(ClientIdSchemeEnum || (ClientIdSchemeEnum = {}));
@@ -54,7 +54,7 @@ export interface TrustEntityListItem {
54
54
  trustAnchor: TrustAnchor;
55
55
  }
56
56
  export interface TrustEntity extends TrustEntityListItem {
57
- organisationId: string;
57
+ organisationId?: string;
58
58
  }
59
59
  export declare enum TrustEntityRoleEnum {
60
60
  ISSUER = "ISSUER",
@@ -0,0 +1,49 @@
1
+ import { ViewProps } from "react-native";
2
+ export declare enum PinEventType {
3
+ SHOW_PIN = "RSE_SHOW_PIN",
4
+ HIDE_PIN = "RSE_HIDE_PIN",
5
+ PIN_STAGE = "RSE_PIN_STAGE",
6
+ DIGITS_ENTERED = "RSE_DIGITS_ENTERED",
7
+ INCORRECT_PIN = "RSE_INCORRECT_PIN"
8
+ }
9
+ export declare enum PinFlowType {
10
+ SUBSCRIBE = "SUBSCRIBE",
11
+ TRANSACTION = "TRANSACTION",
12
+ ADD_BIOMETRICS = "ADD_BIOMETRICS",
13
+ CHANGE_PIN = "CHANGE_PIN"
14
+ }
15
+ export declare enum PinFlowStage {
16
+ CHECK_CURRENT_PIN = "CHECK_CURRENT_PIN",
17
+ NEW_FIRST_PIN = "NEW_FIRST_PIN",
18
+ NEW_SECOND_PIN = "NEW_SECOND_PIN"
19
+ }
20
+ export interface ShowPinEvent {
21
+ type: PinEventType.SHOW_PIN;
22
+ flowType: PinFlowType;
23
+ stage: PinFlowStage;
24
+ }
25
+ export interface HidePinEvent {
26
+ type: PinEventType.HIDE_PIN;
27
+ }
28
+ export interface StagePinEvent {
29
+ type: PinEventType.PIN_STAGE;
30
+ stage: PinFlowStage;
31
+ }
32
+ export interface DigitsEnteredEvent {
33
+ type: PinEventType.DIGITS_ENTERED;
34
+ digitsEntered: number;
35
+ }
36
+ export interface IncorrectPinEvent {
37
+ type: PinEventType.INCORRECT_PIN;
38
+ attemptsLeft: number;
39
+ }
40
+ export type Event = ShowPinEvent | HidePinEvent | StagePinEvent | DigitsEnteredEvent | IncorrectPinEvent;
41
+ export declare const PIN_COUNT = 5;
42
+ export declare function addEventListener(fn: (event: Event) => void): () => void;
43
+ export declare const PinPad: import("react-native").HostComponent<ViewProps>;
44
+ export declare const changePin: () => Promise<void>;
45
+ export declare const areBiometricsSupported: () => Promise<boolean>;
46
+ export declare const areBiometricsEnabled: () => Promise<boolean>;
47
+ export declare const setBiometrics: (enabled: boolean) => Promise<void>;
48
+ export declare const reset: () => Promise<void>;
49
+ export declare const resetPinFlow: () => Promise<void>;
@@ -0,0 +1,69 @@
1
+ import { NativeModules, NativeEventEmitter, requireNativeComponent, } from "react-native";
2
+ const NativeModule = NativeModules.ProcivisOneCoreModule;
3
+ export var PinEventType;
4
+ (function (PinEventType) {
5
+ PinEventType["SHOW_PIN"] = "RSE_SHOW_PIN";
6
+ PinEventType["HIDE_PIN"] = "RSE_HIDE_PIN";
7
+ PinEventType["PIN_STAGE"] = "RSE_PIN_STAGE";
8
+ PinEventType["DIGITS_ENTERED"] = "RSE_DIGITS_ENTERED";
9
+ PinEventType["INCORRECT_PIN"] = "RSE_INCORRECT_PIN";
10
+ })(PinEventType || (PinEventType = {}));
11
+ export var PinFlowType;
12
+ (function (PinFlowType) {
13
+ PinFlowType["SUBSCRIBE"] = "SUBSCRIBE";
14
+ PinFlowType["TRANSACTION"] = "TRANSACTION";
15
+ PinFlowType["ADD_BIOMETRICS"] = "ADD_BIOMETRICS";
16
+ PinFlowType["CHANGE_PIN"] = "CHANGE_PIN";
17
+ })(PinFlowType || (PinFlowType = {}));
18
+ export var PinFlowStage;
19
+ (function (PinFlowStage) {
20
+ PinFlowStage["CHECK_CURRENT_PIN"] = "CHECK_CURRENT_PIN";
21
+ PinFlowStage["NEW_FIRST_PIN"] = "NEW_FIRST_PIN";
22
+ PinFlowStage["NEW_SECOND_PIN"] = "NEW_SECOND_PIN";
23
+ })(PinFlowStage || (PinFlowStage = {}));
24
+ export const PIN_COUNT = 5;
25
+ export function addEventListener(fn) {
26
+ const eventEmitter = new NativeEventEmitter(NativeModule);
27
+ const showPinListener = eventEmitter.addListener(PinEventType.SHOW_PIN, (event) => {
28
+ fn({
29
+ type: PinEventType.SHOW_PIN,
30
+ flowType: event.flowType,
31
+ stage: event.stage,
32
+ });
33
+ });
34
+ const hidePinListener = eventEmitter.addListener(PinEventType.HIDE_PIN, () => {
35
+ fn({ type: PinEventType.HIDE_PIN });
36
+ });
37
+ const stageListener = eventEmitter.addListener(PinEventType.PIN_STAGE, (event) => {
38
+ fn({
39
+ type: PinEventType.PIN_STAGE,
40
+ stage: event.stage,
41
+ });
42
+ });
43
+ const digitsEnteredListener = eventEmitter.addListener(PinEventType.DIGITS_ENTERED, (event) => {
44
+ fn({
45
+ type: PinEventType.DIGITS_ENTERED,
46
+ digitsEntered: event.digitsEntered,
47
+ });
48
+ });
49
+ const incorrectPinListener = eventEmitter.addListener(PinEventType.INCORRECT_PIN, (event) => {
50
+ fn({
51
+ type: PinEventType.INCORRECT_PIN,
52
+ attemptsLeft: event.attemptsLeft,
53
+ });
54
+ });
55
+ return () => {
56
+ showPinListener.remove();
57
+ hidePinListener.remove();
58
+ stageListener.remove();
59
+ digitsEnteredListener.remove();
60
+ incorrectPinListener.remove();
61
+ };
62
+ }
63
+ export const PinPad = requireNativeComponent("RCTProcivisRSEPinPad");
64
+ export const changePin = async () => NativeModule.changeRSEPin();
65
+ export const areBiometricsSupported = async () => NativeModule.areRSEBiometricsSupported();
66
+ export const areBiometricsEnabled = async () => NativeModule.areRSEBiometricsEnabled();
67
+ export const setBiometrics = async (enabled) => NativeModule.setRSEBiometrics(enabled);
68
+ export const reset = async () => NativeModule.resetRSE();
69
+ export const resetPinFlow = async () => NativeModule.resetRSEPinFlow();
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  import Foundation
9
+ import ProcivisOneCore
9
10
 
10
11
  struct SerializationError: LocalizedError {
11
12
  let description: String
@@ -19,6 +20,20 @@ struct SerializationError: LocalizedError {
19
20
  }
20
21
  }
21
22
 
23
+ func deserializeCreateOrganisationRequest(request: NSDictionary) -> CreateOrganisationRequestBindingDto {
24
+ return CreateOrganisationRequestBindingDto(
25
+ id: request.value(forKey: "id") as? String,
26
+ name: request.value(forKey: "name") as? String
27
+ );
28
+ }
29
+
30
+ func deserializeUpsertOrganisationRequest(request: NSDictionary) throws -> UpsertOrganisationRequestBindingDto {
31
+ return UpsertOrganisationRequestBindingDto(
32
+ id: try safeCast(request.value(forKey: "id")),
33
+ name: try safeCast(request.value(forKey: "name"))
34
+ );
35
+ }
36
+
22
37
  func deserializeKeyRequest(keyRequest: NSDictionary) throws -> KeyRequestBindingDto {
23
38
  let keyType: String = try safeCast(keyRequest.value(forKey: "keyType"));
24
39
  let name: String = try safeCast(keyRequest.value(forKey: "name"));
@@ -99,10 +114,6 @@ func deserializeCacheTypes(types: NSArray?) throws -> [CacheTypeBindingDto]? {
99
114
  return try opt(types, enumList)
100
115
  }
101
116
 
102
- func deserializeBypassCache(bypassCache: NSArray?) throws -> [BypassCacheBindingDto]? {
103
- return try opt(bypassCache, enumList)
104
- }
105
-
106
117
  func deserializePresentationSubmitCredentialRequest(_ input: NSDictionary) throws -> PresentationSubmitCredentialRequestBindingDto {
107
118
  let claims: NSArray = try safeCast(input.value(forKey: "submitClaims"));
108
119
  var submitClaims: [String] = [];
@@ -208,6 +219,7 @@ func deserializeProofListQuery(_ query: NSDictionary) throws -> ProofListQueryBi
208
219
  name: query.value(forKey: "name") as? String,
209
220
  ids: try opt(query.value(forKey: "ids") as? NSArray, deserializeIds),
210
221
  proofStates: try opt(query.value(forKey: "proofStates") as? NSArray, { columns in try enumList(columns) } ),
222
+ proofRoles: try opt(query.value(forKey: "proofRoles") as? NSArray, { columns in try enumList(columns) } ),
211
223
  proofSchemaIds: query.value(forKey: "proofSchemaIds") as? [String],
212
224
  exact: try opt(query.value(forKey: "exact") as? NSArray, { columns in try enumList(columns) } )
213
225
  )
@@ -329,7 +341,8 @@ func deserializeImportCredentialSchemaRequestSchema(_ request: NSDictionary) thr
329
341
  schemaType: deserializeCredentialSchemaTypeBindingEnum(try safeCast(request.value(forKey: "schemaType"))),
330
342
  layoutType: try opt(request.value(forKey: "layoutType") as? String, deserializeEnum),
331
343
  layoutProperties: try opt((request.value(forKey: "layoutProperties") as? NSDictionary), deserializeImportCredentialSchemaRequestLayoutProperties),
332
- allowSuspension: request.value(forKey: "allowSuspension") as? Bool
344
+ allowSuspension: request.value(forKey: "allowSuspension") as? Bool,
345
+ externalSchema: try safeCast(request.value(forKey: "externalSchema") as? Bool)
333
346
  )
334
347
  }
335
348
 
@@ -395,7 +408,8 @@ func deserializeImportCredentialSchemaCodeProperties(_ request: NSDictionary) th
395
408
  func deserializeCreateProofRequest(_ request: NSDictionary) throws -> CreateProofRequestBindingDto {
396
409
  return CreateProofRequestBindingDto(
397
410
  proofSchemaId: try safeCast(request.value(forKey: "proofSchemaId")),
398
- verifierDidId: try safeCast(request.value(forKey: "verifierDidId")),
411
+ verifierDidId: request.value(forKey: "verifierDidId") as? String,
412
+ verifierIdentifierId: request.value(forKey: "verifierIdentifierId") as? String,
399
413
  exchange: try safeCast(request.value(forKey: "exchange")),
400
414
  redirectUri: request.value(forKey: "redirectUri") as? String,
401
415
  verifierKey: request.value(forKey: "verifierKey") as? String,
@@ -413,11 +427,10 @@ func deserializeShareProofRequest(_ request: NSDictionary) throws -> ShareProofR
413
427
 
414
428
  func deserializeShareProofRequestParams(_ request: NSDictionary) throws -> ShareProofRequestParamsBindingDto {
415
429
  return ShareProofRequestParamsBindingDto(
416
- clientIdSchema: try opt(request.value(forKey: "clientIdSchema") as? String, deserializeEnum)
430
+ clientIdScheme: try opt(request.value(forKey: "clientIdScheme") as? String, deserializeEnum)
417
431
  )
418
432
  }
419
433
 
420
-
421
434
  func deserializeKeyCheckCertificateRequest(_ request: NSDictionary) throws -> KeyCheckCertificateRequestBindingDto {
422
435
  return KeyCheckCertificateRequestBindingDto(
423
436
  certificate: (request.value(forKey: "certificate") as? String)!
@@ -576,7 +589,29 @@ extension HistorySearchEnumBindingEnum: CaseIterable {
576
589
 
577
590
  extension HistoryActionBindingEnum: CaseIterable {
578
591
  public static var allCases: [HistoryActionBindingEnum] {
579
- return [.accepted, .created, .deactivated, .deleted, .errored, .issued, .offered, .rejected, .requested, .revoked, .pending, .suspended, .restored, .shared, .imported, .claimsRemoved]
592
+ return [
593
+ .accepted,
594
+ .created,
595
+ .deactivated,
596
+ .deleted,
597
+ .errored,
598
+ .issued,
599
+ .offered,
600
+ .rejected,
601
+ .requested,
602
+ .revoked,
603
+ .suspended,
604
+ .pending,
605
+ .restored,
606
+ .shared,
607
+ .imported,
608
+ .claimsRemoved,
609
+ .activated,
610
+ .withdrawn,
611
+ .removed,
612
+ .retracted,
613
+ .updated
614
+ ]
580
615
  }
581
616
  }
582
617
 
@@ -642,7 +677,7 @@ extension LayoutTypeBindingEnum: CaseIterable {
642
677
 
643
678
  extension WalletStorageTypeBindingEnum: CaseIterable {
644
679
  public static var allCases: [WalletStorageTypeBindingEnum] {
645
- return [.hardware, .software]
680
+ return [.hardware, .software, .remoteSecureElement]
646
681
  }
647
682
  }
648
683
 
@@ -654,14 +689,21 @@ extension ProofStateBindingEnum: CaseIterable {
654
689
  .requested,
655
690
  .accepted,
656
691
  .rejected,
692
+ .retracted,
657
693
  .error
658
694
  ]
659
695
  }
660
696
  }
661
697
 
662
- extension ShareProofRequestClientIdSchemaTypeBindingDto: CaseIterable {
663
- public static var allCases: [ShareProofRequestClientIdSchemaTypeBindingDto] {
664
- return [.redirectUri, .verifierAttestation]
698
+ extension ProofRoleBindingEnum: CaseIterable {
699
+ public static var allCases: [ProofRoleBindingEnum] {
700
+ return [.holder, .verifier]
701
+ }
702
+ }
703
+
704
+ extension ClientIdSchemeBindingEnum: CaseIterable {
705
+ public static var allCases: [ClientIdSchemeBindingEnum] {
706
+ return [.redirectUri, .verifierAttestation, .did, .x509SanDns]
665
707
  }
666
708
  }
667
709
 
@@ -725,12 +767,6 @@ extension CacheTypeBindingDto: CaseIterable {
725
767
  }
726
768
  }
727
769
 
728
- extension BypassCacheBindingDto: CaseIterable {
729
- public static var allCases: [BypassCacheBindingDto] {
730
- return [.didDocument, .statusListCredential]
731
- }
732
- }
733
-
734
770
  private func deserializeEnum<T: CaseIterable>(_ input: String) throws -> T {
735
771
  if let entry = T.allCases.first(where: { value in
736
772
  serializeEnumValue(value: value) == input
@@ -789,6 +825,8 @@ private func deserializeCredentialSchemaTypeBindingEnum(_ credentialSchemaType:
789
825
  return .fallbackSchema2024
790
826
  case "MDOC":
791
827
  return .mdoc
828
+ case "SD_JWT_VC":
829
+ return .sdJwtVc
792
830
  case let other:
793
831
  return .other(value: other)
794
832
  }