react-native-plaid-link-sdk 12.8.5 → 12.8.7

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 (79) hide show
  1. package/CHANGELOG.md +3369 -0
  2. package/README.md +4 -0
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/AndroidManifest.xml +1 -1
  5. package/dist/src/Types.d.ts +1 -0
  6. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
  7. package/ios/Frameworks/LinkKit.xcframework/Info.plist +44 -0
  8. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit-Swift.h +364 -0
  9. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit.h +25 -0
  10. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
  11. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid.h +648 -0
  12. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Info.plist +0 -0
  13. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/LinkKit +0 -0
  14. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.abi.json +57717 -0
  15. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.private.swiftinterface +724 -0
  16. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftinterface +724 -0
  18. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  19. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/module.modulemap +11 -0
  20. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
  21. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
  22. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
  23. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/_CodeSignature/CodeResources +245 -0
  24. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit-Swift.h +724 -0
  25. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit.h +25 -0
  26. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
  27. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid.h +648 -0
  28. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Info.plist +0 -0
  29. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/LinkKit +0 -0
  30. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json +57717 -0
  31. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +724 -0
  32. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +724 -0
  34. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
  35. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +57717 -0
  36. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +724 -0
  37. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  38. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +724 -0
  39. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
  40. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/module.modulemap +11 -0
  41. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
  42. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
  43. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
  44. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/_CodeSignature/CodeResources +300 -0
  45. package/ios/RNLinksdk.mm +1 -1
  46. package/package.json +30 -4
  47. package/react-native-plaid-link-sdk.podspec +6 -2
  48. package/dist/EmbeddedLink/EmbeddedLinkView.d.ts +0 -13
  49. package/dist/EmbeddedLink/EmbeddedLinkView.js +0 -55
  50. package/dist/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
  51. package/dist/EmbeddedLink/EmbeddedLinkView.web.js +0 -1
  52. package/dist/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
  53. package/dist/EmbeddedLink/NativeEmbeddedLinkView.js +0 -2
  54. package/dist/PlaidLink.d.ts +0 -27
  55. package/dist/PlaidLink.js +0 -124
  56. package/dist/Types.d.ts +0 -539
  57. package/dist/Types.js +0 -454
  58. package/dist/__tests__/Types.tests.d.ts +0 -1
  59. package/dist/__tests__/Types.tests.js +0 -14
  60. package/dist/build/PlaidEmbeddedSearchView.d.ts +0 -2
  61. package/dist/build/PlaidEmbeddedSearchView.js +0 -19
  62. package/dist/build/ReactNativePlaidLinkSdk.types.d.ts +0 -108
  63. package/dist/build/ReactNativePlaidLinkSdk.types.js +0 -470
  64. package/dist/build/ReactNativePlaidLinkSdkModule.d.ts +0 -2
  65. package/dist/build/ReactNativePlaidLinkSdkModule.js +0 -4
  66. package/dist/build/index.d.ts +0 -14
  67. package/dist/build/index.js +0 -104
  68. package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -15
  69. package/dist/fabric/EmbeddedLinkViewNativeComponent.js +0 -2
  70. package/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -14
  71. package/dist/fabric/NativePlaidLinkModuleAndroid.js +0 -4
  72. package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +0 -15
  73. package/dist/fabric/NativePlaidLinkModuleiOS.js +0 -4
  74. package/dist/fabric/fabricUtils.d.ts +0 -1
  75. package/dist/fabric/fabricUtils.js +0 -1
  76. package/dist/index.d.ts +0 -4
  77. package/dist/index.js +0 -6
  78. package/dist/scripts/check-package-entrypoints.d.ts +0 -1
  79. package/dist/scripts/check-package-entrypoints.js +0 -61
@@ -0,0 +1,724 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
3
+ // swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Osize -enable-bare-slash-regex -module-name LinkKit
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface
5
+ import AuthenticationServices
6
+ import CoreTelephony
7
+ import FinanceKit
8
+ import Foundation
9
+ @_exported import LinkKit
10
+ import SafariServices
11
+ import Swift
12
+ import SwiftUI
13
+ import UIKit
14
+ import WebKit
15
+ import _AuthenticationServices_SwiftUI
16
+ import _Concurrency
17
+ import _StringProcessing
18
+ import _SwiftConcurrencyShims
19
+ import os
20
+ public enum PresentationMethod {
21
+ case viewController(UIKit.UIViewController)
22
+ case custom(LinkKit.PresentationHandler, _: LinkKit.DismissalHandler = { $0.presentingViewController?.dismiss(animated: true, completion: nil) })
23
+ }
24
+ public struct ExitMetadata : Swift.Codable {
25
+ public var status: LinkKit.ExitStatus?
26
+ public var institution: LinkKit.Institution?
27
+ public var linkSessionID: Swift.String?
28
+ public var requestID: Swift.String?
29
+ public var metadataJSON: LinkKit.RawJSONMetadata?
30
+ public func encode(to encoder: any Swift.Encoder) throws
31
+ public init(from decoder: any Swift.Decoder) throws
32
+ }
33
+ public enum ExitErrorCode : Swift.Codable {
34
+ case apiError(LinkKit.ApiErrorCode)
35
+ case authError(LinkKit.AuthErrorCode)
36
+ case assetReportError(LinkKit.AssetReportErrorCode)
37
+ case `internal`(Swift.String)
38
+ case institutionError(LinkKit.InstitutionErrorCode)
39
+ case itemError(LinkKit.ItemErrorCode)
40
+ case invalidInput(LinkKit.InvalidInputErrorCode)
41
+ case invalidRequest(LinkKit.InvalidRequestErrorCode)
42
+ case rateLimitExceeded(LinkKit.RateLimitErrorCode)
43
+ case unknown(type: Swift.String, code: Swift.String)
44
+ public init(from decoder: any Swift.Decoder) throws
45
+ public var description: Swift.String {
46
+ get
47
+ }
48
+ public func encode(to encoder: any Swift.Encoder) throws
49
+ }
50
+ extension SwiftUICore.View {
51
+ @_Concurrency.MainActor @preconcurrency public func plaidLink(isPresented: SwiftUICore.Binding<Swift.Bool>, handler: any LinkKit.Handler) -> some SwiftUICore.View
52
+
53
+ @_Concurrency.MainActor @preconcurrency public func plaidLink(isPresented: SwiftUICore.Binding<Swift.Bool>, token: Swift.String, onSuccess: @escaping (LinkKit.LinkSuccess) -> Swift.Void, onExit: ((LinkKit.LinkExit) -> Swift.Void)?, onEvent: ((LinkKit.LinkEvent) -> Swift.Void)?, onLoad: (() -> Swift.Void)?, errorView: SwiftUICore.AnyView) -> some SwiftUICore.View
54
+
55
+ }
56
+ extension Foundation.UUID {
57
+ public var linkuuidString: Swift.String {
58
+ get
59
+ }
60
+ }
61
+ public struct LinkSuccess : Swift.Codable {
62
+ public var publicToken: Swift.String
63
+ public var metadata: LinkKit.SuccessMetadata
64
+ public func encode(to encoder: any Swift.Encoder) throws
65
+ public init(from decoder: any Swift.Decoder) throws
66
+ }
67
+ public enum EventName : Swift.CustomStringConvertible, Swift.Codable {
68
+ case autoSubmitPhone
69
+ case bankIncomeInsightsCompleted
70
+ case closeOAuth
71
+ case connectNewInstitution
72
+ case error
73
+ case exit
74
+ case failOAuth
75
+ case handoff
76
+ case identityMatchPassed
77
+ case identityMatchFailed
78
+ case identityVerificationStartStep
79
+ case identityVerificationPassStep
80
+ case identityVerificationFailStep
81
+ case identityVerificationPendingReviewStep
82
+ case identityVerificationCreateSession
83
+ case identityVerificationResumeSession
84
+ case identityVerificationPassSession
85
+ case identityVerificationFailSession
86
+ case identityVerificationPendingReviewSession
87
+ case identityVerificationOpenUI
88
+ case identityVerificationResumeUI
89
+ case identityVerificationCloseUI
90
+ case issueFollowed
91
+ case layerAutoFillNotAvailable
92
+ case layerReady
93
+ case layerNotAvailable
94
+ case matchedSelectInstitution
95
+ case matchedSelectVerifyMethod
96
+ case open
97
+ case openMyPlaid
98
+ case openOAuth
99
+ case profileEligibilityCheckReady
100
+ case profileEligibilityCheckError
101
+ case searchInstitution
102
+ case selectAccount
103
+ case selectDegradedInstitution
104
+ case selectFilteredInstitution
105
+ case selectDownInstitution
106
+ case selectDenylistedInstitution
107
+ case selectFallbackRoutingInstitution
108
+ case selectInstitution
109
+ case selectRememberMeDuplicateInstitution
110
+ case selectBrand
111
+ case selectAuthType
112
+ case skipSubmitPhone
113
+ case submitAccountNumber
114
+ case submitCredentials
115
+ case submitDocuments
116
+ case submitDocumentsSuccess
117
+ case submitDocumentsError
118
+ case submitMFA
119
+ case submitOTP
120
+ case submitPhone
121
+ case submitRoutingNumber
122
+ case transitionView
123
+ case verifyPhone
124
+ case viewDataTypes
125
+ case submitEmail
126
+ case skipSubmitEmail
127
+ case rememberMeEnabled
128
+ case rememberMeDisabled
129
+ case rememberMeHoldout
130
+ case selectSavedInstitution
131
+ case selectSavedAccount
132
+ case autoSelectSavedInstitution
133
+ case plaidCheckPane
134
+ case unknown(Swift.String)
135
+ public init(from decoder: any Swift.Decoder) throws
136
+ public var description: Swift.String {
137
+ get
138
+ }
139
+ public func encode(to encoder: any Swift.Encoder) throws
140
+ }
141
+ public struct Institution : Swift.Codable {
142
+ public var id: LinkKit.InstitutionID
143
+ public var name: Swift.String
144
+ public func encode(to encoder: any Swift.Encoder) throws
145
+ public init(from decoder: any Swift.Decoder) throws
146
+ }
147
+ public enum ConfigurationError : Swift.Error {
148
+ case malformedClientID(message: Swift.String)
149
+ case missingAuthorization(message: Swift.String)
150
+ case noProduct(message: Swift.String)
151
+ case invalidOptionValue(message: Swift.String)
152
+ case invalidOptionCombination(message: Swift.String)
153
+ case invalidToken(message: Swift.String)
154
+ }
155
+ public struct LinkExit : Swift.Codable {
156
+ public var error: LinkKit.ExitError?
157
+ public var metadata: LinkKit.ExitMetadata
158
+ public func encode(to encoder: any Swift.Encoder) throws
159
+ public init(from decoder: any Swift.Decoder) throws
160
+ }
161
+ public enum AccountSubtype : Swift.Codable {
162
+ case unknown(type: Swift.String, subtype: Swift.String)
163
+ case other(LinkKit.AccountSubtype.Other)
164
+ public enum Other : Swift.Codable {
165
+ case all
166
+ case other
167
+ case unknown(Swift.String)
168
+ public init(from decoder: any Swift.Decoder) throws
169
+ }
170
+ case credit(LinkKit.AccountSubtype.Credit)
171
+ public enum Credit : Swift.Codable {
172
+ case all
173
+ case creditCard
174
+ case paypal
175
+ case unknown(Swift.String)
176
+ public init(from decoder: any Swift.Decoder) throws
177
+ }
178
+ case loan(LinkKit.AccountSubtype.Loan)
179
+ public enum Loan : Swift.Codable {
180
+ case all
181
+ case auto
182
+ case business
183
+ case commercial
184
+ case construction
185
+ case consumer
186
+ case homeEquity
187
+ case lineOfCredit
188
+ case loan
189
+ case mortgage
190
+ case overdraft
191
+ case student
192
+ case unknown(Swift.String)
193
+ public init(from decoder: any Swift.Decoder) throws
194
+ }
195
+ case depository(LinkKit.AccountSubtype.Depository)
196
+ public enum Depository : Swift.Codable {
197
+ case all
198
+ case cashManagement
199
+ case cd
200
+ case checking
201
+ case ebt
202
+ case hsa
203
+ case moneyMarket
204
+ case paypal
205
+ case prepaid
206
+ case savings
207
+ case unknown(Swift.String)
208
+ public init(from decoder: any Swift.Decoder) throws
209
+ }
210
+ case investment(LinkKit.AccountSubtype.Investment)
211
+ public enum Investment : Swift.Codable {
212
+ case all
213
+ case brokerage
214
+ case cashIsa
215
+ case educationSavingsAccount
216
+ case fixedAnnuity
217
+ case gic
218
+ case healthReimbursementArrangement
219
+ case hsa
220
+ case investment401a
221
+ case investment401k
222
+ case investment403B
223
+ case investment457b
224
+ case investment529
225
+ case ira
226
+ case isa
227
+ case keogh
228
+ case lif
229
+ case lira
230
+ case lrif
231
+ case lrsp
232
+ case mutualFund
233
+ case nonTaxableBrokerageAccount
234
+ case pension
235
+ case plan
236
+ case prif
237
+ case profitSharingPlan
238
+ case rdsp
239
+ case resp
240
+ case retirement
241
+ case rlif
242
+ case roth
243
+ case roth401k
244
+ case rrif
245
+ case rrsp
246
+ case sarsep
247
+ case sepIra
248
+ case simpleIra
249
+ case sipp
250
+ case stockPlan
251
+ case tfsa
252
+ case thriftSavingsPlan
253
+ case trust
254
+ case ugma
255
+ case unknown(Swift.String)
256
+ case utma
257
+ case variableAnnuity
258
+ public init(from decoder: any Swift.Decoder) throws
259
+ }
260
+ public init(from decoder: any Swift.Decoder) throws
261
+ public func encode(to encoder: any Swift.Encoder) throws
262
+ }
263
+ public struct SuccessMetadata : Swift.Codable {
264
+ public var institution: LinkKit.Institution
265
+ public var accounts: [LinkKit.Account]
266
+ public var linkSessionID: Swift.String
267
+ public var metadataJSON: LinkKit.RawJSONMetadata?
268
+ public func encode(to encoder: any Swift.Encoder) throws
269
+ public init(from decoder: any Swift.Decoder) throws
270
+ }
271
+ public enum RateLimitErrorCode : Swift.Error, Swift.CustomStringConvertible {
272
+ case accountsLimit
273
+ case additionLimit
274
+ case authLimit
275
+ case identityLimit
276
+ case incomeLimit
277
+ case itemGetLimit
278
+ case rateLimit
279
+ case transactionsLimit
280
+ case unknown(Swift.String)
281
+ public var description: Swift.String {
282
+ get
283
+ }
284
+ }
285
+ public enum ApiErrorCode : Swift.Error, Swift.CustomStringConvertible {
286
+ case internalServerError
287
+ case plannedMaintenance
288
+ case unknown(Swift.String)
289
+ public var description: Swift.String {
290
+ get
291
+ }
292
+ }
293
+ public enum ExitStatus : Swift.CustomStringConvertible, Swift.Codable {
294
+ case requiresQuestions
295
+ case requiresSelections
296
+ case requiresCode
297
+ case chooseDevice
298
+ case requiresCredentials
299
+ case institutionNotFound
300
+ case requiresAccountSelection
301
+ case continueToThirdParty
302
+ case unknown(Swift.String)
303
+ public init(from decoder: any Swift.Decoder) throws
304
+ public var description: Swift.String {
305
+ get
306
+ }
307
+ public func encode(to encoder: any Swift.Encoder) throws
308
+ }
309
+ public struct EventMetadata : Swift.Codable {
310
+ public var accountNumberMask: Swift.String?
311
+ public var errorCode: LinkKit.ExitErrorCode?
312
+ public var errorMessage: Swift.String?
313
+ public var exitStatus: LinkKit.ExitStatus?
314
+ public var institutionID: LinkKit.InstitutionID?
315
+ public var institutionName: Swift.String?
316
+ public var institutionSearchQuery: Swift.String?
317
+ public var isUpdateMode: Swift.String?
318
+ public var matchReason: Swift.String?
319
+ public var linkSessionID: Swift.String
320
+ public var mfaType: LinkKit.MFAType?
321
+ public var requestID: Swift.String?
322
+ public var issueID: Swift.String?
323
+ public var issueDescription: Swift.String?
324
+ public var issueDetectedAt: Foundation.Date?
325
+ public var routingNumber: Swift.String?
326
+ public var selection: Swift.String?
327
+ public var timestamp: Foundation.Date
328
+ public var viewName: LinkKit.ViewName?
329
+ public var metadataJSON: LinkKit.RawJSONMetadata?
330
+ public func encode(to encoder: any Swift.Encoder) throws
331
+ public init(from decoder: any Swift.Decoder) throws
332
+ }
333
+ public struct Plaid {
334
+ public enum CreateError : Swift.Error {
335
+ case configurationError(LinkKit.ConfigurationError)
336
+ }
337
+ public static func create(_ linkTokenConfiguration: LinkKit.LinkTokenConfiguration, onLoad: (() -> Swift.Void)? = nil) -> Swift.Result<any LinkKit.Handler, LinkKit.Plaid.CreateError>
338
+ @available(iOS 17.4, *)
339
+ @available(iOS, introduced: 17.4, deprecated: 17.4, message: "Use PlaidFinanceKit.sync(token:requestAuthorizationIfNeeded:syncBehavior:completion:) instead. This method will be removed in version 7 of the SDK.")
340
+ public static func syncFinanceKit(token: Swift.String, requestAuthorizationIfNeeded: Swift.Bool, simulatedBehavior: Swift.Bool = false, completion: @escaping (Swift.Result<Swift.Void, LinkKit.FinanceKitError>) -> Swift.Void)
341
+ public static let version: Swift.String
342
+ }
343
+ public enum AuthErrorCode : Swift.Error, Swift.CustomStringConvertible {
344
+ case productNotReady
345
+ case verificationExpired
346
+ case unknown(Swift.String)
347
+ public var description: Swift.String {
348
+ get
349
+ }
350
+ }
351
+ public enum Environment : Swift.CustomStringConvertible {
352
+ case production
353
+ case sandbox
354
+ public var description: Swift.String {
355
+ get
356
+ }
357
+ public static func == (a: LinkKit.Environment, b: LinkKit.Environment) -> Swift.Bool
358
+ public func hash(into hasher: inout Swift.Hasher)
359
+ public var hashValue: Swift.Int {
360
+ get
361
+ }
362
+ }
363
+ public struct ExitError : Swift.Error, Swift.Codable {
364
+ public var errorCode: LinkKit.ExitErrorCode
365
+ public var errorMessage: Swift.String
366
+ public var displayMessage: Swift.String?
367
+ public var errorJSON: LinkKit.RawJSONMetadata?
368
+ public func encode(to encoder: any Swift.Encoder) throws
369
+ public init(from decoder: any Swift.Decoder) throws
370
+ }
371
+ public protocol SubmissionData {
372
+ var phoneNumber: Swift.String? { get }
373
+ var dateOfBirth: Swift.String? { get }
374
+ var params: [Swift.String : Swift.String]? { get }
375
+ }
376
+ extension LinkKit.SubmissionData {
377
+ public var params: [Swift.String : Swift.String]? {
378
+ get
379
+ }
380
+ }
381
+ public enum MFAType : Swift.CustomStringConvertible, Swift.Codable {
382
+ case code
383
+ case device
384
+ case questions
385
+ case selections
386
+ public init(from decoder: any Swift.Decoder) throws
387
+ public var description: Swift.String {
388
+ get
389
+ }
390
+ public func encode(to encoder: any Swift.Encoder) throws
391
+ public static func == (a: LinkKit.MFAType, b: LinkKit.MFAType) -> Swift.Bool
392
+ public func hash(into hasher: inout Swift.Hasher)
393
+ public var hashValue: Swift.Int {
394
+ get
395
+ }
396
+ }
397
+ public enum InstitutionErrorCode : Swift.Error, Swift.CustomStringConvertible {
398
+ case institutionDown
399
+ case institutionNotResponding
400
+ case institutionNotAvailable
401
+ case institutionNoLongerSupported
402
+ case unknown(Swift.String)
403
+ public var description: Swift.String {
404
+ get
405
+ }
406
+ }
407
+ public enum InvalidRequestErrorCode : Swift.Error, Swift.CustomStringConvertible {
408
+ case missingFields
409
+ case unknownFields
410
+ case invalidField
411
+ case invalidBody
412
+ case invalidAddress
413
+ case notFound
414
+ case sandboxOnly
415
+ case unknown(Swift.String)
416
+ public var description: Swift.String {
417
+ get
418
+ }
419
+ }
420
+ public enum ItemErrorCode : Swift.Error, Swift.CustomStringConvertible {
421
+ case insufficientCredentials
422
+ case invalidCredentials
423
+ case invalidMfa
424
+ case invalidSendMethod
425
+ case invalidUpdatedUsername
426
+ case itemLocked
427
+ case itemLoginRequired
428
+ case itemNoError
429
+ case itemNotSupported
430
+ case incorrectDepositAmounts
431
+ case userSetupRequired
432
+ case mfaNotSupported
433
+ case noAccounts
434
+ case noAuthAccounts
435
+ case noInvestmentAccounts
436
+ case noLiabilityAccounts
437
+ case productNotReady
438
+ case productsNotSupported
439
+ case instantMatchFailed
440
+ case unknown(Swift.String)
441
+ public var description: Swift.String {
442
+ get
443
+ }
444
+ }
445
+ public struct LinkEvent : Swift.Codable {
446
+ public var eventName: LinkKit.EventName
447
+ public var metadata: LinkKit.EventMetadata
448
+ public init(from decoder: any Swift.Decoder) throws
449
+ public func encode(to encoder: any Swift.Encoder) throws
450
+ }
451
+ public enum EmbeddedSearchComponentType : Swift.CaseIterable, Swift.CustomStringConvertible {
452
+ case searchAndSelect
453
+ case button
454
+ case chip
455
+ case miniCard
456
+ public var description: Swift.String {
457
+ get
458
+ }
459
+ public static func == (a: LinkKit.EmbeddedSearchComponentType, b: LinkKit.EmbeddedSearchComponentType) -> Swift.Bool
460
+ public func hash(into hasher: inout Swift.Hasher)
461
+ public typealias AllCases = [LinkKit.EmbeddedSearchComponentType]
462
+ nonisolated public static var allCases: [LinkKit.EmbeddedSearchComponentType] {
463
+ get
464
+ }
465
+ public var hashValue: Swift.Int {
466
+ get
467
+ }
468
+ }
469
+ public enum Product : Swift.CustomStringConvertible, Swift.CaseIterable {
470
+ case assets
471
+ case auth
472
+ case depositSwitch
473
+ case identity
474
+ case income
475
+ case investments
476
+ case liabilities
477
+ case liabilitiesReport
478
+ case paymentInitiation
479
+ case transactions
480
+ public var description: Swift.String {
481
+ get
482
+ }
483
+ public static func == (a: LinkKit.Product, b: LinkKit.Product) -> Swift.Bool
484
+ public func hash(into hasher: inout Swift.Hasher)
485
+ public typealias AllCases = [LinkKit.Product]
486
+ nonisolated public static var allCases: [LinkKit.Product] {
487
+ get
488
+ }
489
+ public var hashValue: Swift.Int {
490
+ get
491
+ }
492
+ }
493
+ public typealias PublicKey = Swift.String
494
+ public typealias PublicToken = Swift.String
495
+ public typealias PaymentToken = Swift.String
496
+ public typealias DepositSwitchToken = Swift.String
497
+ public typealias Language = Swift.String
498
+ public typealias CountryCode = Swift.String
499
+ public typealias PresentationHandler = (UIKit.UIViewController) -> Swift.Void
500
+ public typealias DismissalHandler = (UIKit.UIViewController) -> Swift.Void
501
+ public typealias OnSuccessHandler = (LinkKit.LinkSuccess) -> Swift.Void
502
+ public typealias OnExitHandler = (LinkKit.LinkExit) -> Swift.Void
503
+ public typealias OnEventHandler = (LinkKit.LinkEvent) -> Swift.Void
504
+ public typealias RawJSONMetadata = Swift.String
505
+ public typealias InstitutionID = Swift.String
506
+ public typealias AccountID = Swift.String
507
+ public typealias AccountMask = Swift.String
508
+ public struct LinkTokenConfiguration {
509
+ public let token: Swift.String
510
+ public var onSuccess: LinkKit.OnSuccessHandler
511
+ public var onExit: (LinkKit.LinkExit) -> Swift.Void
512
+ public var onEvent: (LinkKit.LinkEvent) -> Swift.Void
513
+ public var noLoadingState: Swift.Bool
514
+ public var showGradientBackground: Swift.Bool
515
+ public init(token: Swift.String, onSuccess: @escaping LinkKit.OnSuccessHandler)
516
+ }
517
+ public enum ViewName : Swift.CustomStringConvertible, Swift.Codable {
518
+ case acceptTOS
519
+ case connected
520
+ case consent
521
+ case credential
522
+ case dataTransparency
523
+ case dataTransparencyConsent
524
+ case documentaryVerification
525
+ case error
526
+ case exit
527
+ case kycCheck
528
+ case loading
529
+ case matchedConsent
530
+ case matchedCredential
531
+ case matchedMFA
532
+ case mfa
533
+ case numbers
534
+ case numbersSelectInstitution
535
+ case oauth
536
+ case profileDataReview
537
+ case recaptcha
538
+ case riskCheck
539
+ case screening
540
+ case selectAccount
541
+ case selectAuthType
542
+ case submitPhone
543
+ case verifyPhone
544
+ case selectSavedInstitution
545
+ case selectSavedAccount
546
+ case selectBrand
547
+ case selectInstitution
548
+ case selfieCheck
549
+ case uploadDocuments
550
+ case submitDocuments
551
+ case submitDocumentsSuccess
552
+ case submitDocumentsError
553
+ case verifySMS
554
+ case submitEmail
555
+ case verifyEmail
556
+ case unknown(Swift.String)
557
+ public init(from decoder: any Swift.Decoder) throws
558
+ public var description: Swift.String {
559
+ get
560
+ }
561
+ public func encode(to encoder: any Swift.Encoder) throws
562
+ }
563
+ public struct PlaidFinanceKit {
564
+ @available(iOS 17.4, *)
565
+ public enum SyncBehavior {
566
+ case live
567
+ case simulated
568
+ public static func == (a: LinkKit.PlaidFinanceKit.SyncBehavior, b: LinkKit.PlaidFinanceKit.SyncBehavior) -> Swift.Bool
569
+ public func hash(into hasher: inout Swift.Hasher)
570
+ public var hashValue: Swift.Int {
571
+ get
572
+ }
573
+ }
574
+ @available(iOS 17.4, *)
575
+ public static func sync(token: Swift.String, requestAuthorizationIfNeeded: Swift.Bool, syncBehavior: LinkKit.PlaidFinanceKit.SyncBehavior = .live, completion: @escaping (Swift.Result<Swift.Void, LinkKit.FinanceKitError>) -> Swift.Void)
576
+ @available(iOS 17.4, *)
577
+ public static func sync(token: Swift.String, requestAuthorizationIfNeeded: Swift.Bool, syncBehavior: LinkKit.PlaidFinanceKit.SyncBehavior = .live) async throws
578
+ }
579
+ public enum VerificationStatus : Swift.CustomStringConvertible, Swift.Codable {
580
+ case pendingAutomaticVerification
581
+ case pendingManualVerification
582
+ case manuallyVerified
583
+ case unknown(Swift.String)
584
+ public init(from decoder: any Swift.Decoder) throws
585
+ public var description: Swift.String {
586
+ get
587
+ }
588
+ public func encode(to encoder: any Swift.Encoder) throws
589
+ }
590
+ public enum AssetReportErrorCode : Swift.Error, Swift.CustomStringConvertible {
591
+ case productNotEnabled
592
+ case dataUnavailable
593
+ case productNotReady
594
+ case assetReportGenerationFailed
595
+ case invalidParent
596
+ case insightsNotEnabled
597
+ case insightsPreviouslyNotEnabled
598
+ case unknown(Swift.String)
599
+ public var description: Swift.String {
600
+ get
601
+ }
602
+ }
603
+ @_inheritsConvenienceInitializers @objc public class PLKPlaid : ObjectiveC.NSObject {
604
+ @objc public static func createWithLinkTokenConfiguration(_ linkTokenConfiguration: LinkKit.PLKLinkTokenConfiguration, error: Foundation.NSErrorPointer) -> (any LinkKit.PLKHandler)?
605
+ @objc public static func createWithLinkTokenConfiguration(_ linkTokenConfiguration: LinkKit.PLKLinkTokenConfiguration, onLoad: (() -> Swift.Void)?, error: Foundation.NSErrorPointer) -> (any LinkKit.PLKHandler)?
606
+ @objc public static var sdkVersion: Swift.String {
607
+ @objc get
608
+ }
609
+ @available(iOS 17.4, *)
610
+ @available(iOS, introduced: 17.4, deprecated: 17.4, message: "Use PKLPlaidFinanceKit.sync(token:requestAuthorizationIfNeeded:syncBehavior:completion:) instead. This method will be removed in version 7 of the SDK.")
611
+ @objc public static func syncFinanceKit(token: Swift.String, requestAuthorizationIfNeeded: Swift.Bool, simulatedBehavior: Swift.Bool, onSuccess: @escaping () -> Swift.Void, onError: @escaping (Foundation.NSError) -> Swift.Void)
612
+ @objc override dynamic public init()
613
+ @objc deinit
614
+ }
615
+ @_inheritsConvenienceInitializers @objc public class PLKPlaidFinanceKit : ObjectiveC.NSObject {
616
+ @available(iOS 17.4, *)
617
+ @objc public static func sync(token: Swift.String, requestAuthorizationIfNeeded: Swift.Bool, syncBehavior: LinkKit.PLKSyncBehavior, onSuccess: @escaping () -> Swift.Void, onError: @escaping (Foundation.NSError) -> Swift.Void)
618
+ @objc override dynamic public init()
619
+ @objc deinit
620
+ }
621
+ extension LinkKit.LinkSuccess {
622
+ public var toObjC: LinkKit.PLKLinkSuccess {
623
+ get
624
+ }
625
+ }
626
+ extension LinkKit.LinkExit {
627
+ public var toObjC: LinkKit.PLKLinkExit {
628
+ get
629
+ }
630
+ }
631
+ extension LinkKit.LinkEvent {
632
+ public var toObjC: LinkKit.PLKLinkEvent {
633
+ get
634
+ }
635
+ }
636
+ public struct Account : Swift.Codable {
637
+ public let id: LinkKit.AccountID
638
+ public let name: Swift.String
639
+ public let mask: LinkKit.AccountMask?
640
+ public let subtype: LinkKit.AccountSubtype
641
+ public let verificationStatus: LinkKit.VerificationStatus?
642
+ public func encode(to encoder: any Swift.Encoder) throws
643
+ public init(from decoder: any Swift.Decoder) throws
644
+ }
645
+ @available(iOS 17.4, *)
646
+ public enum FinanceKitError : Foundation.LocalizedError {
647
+ case invalidToken(message: Swift.String)
648
+ case permissionError(message: Swift.String)
649
+ case linkApiError(message: Swift.String)
650
+ case permissionAccessError(message: Swift.String)
651
+ case unknown(error: any Swift.Error)
652
+ public var errorDescription: Swift.String? {
653
+ get
654
+ }
655
+ }
656
+ extension LinkKit.AccountSubtype {
657
+ public var description: Swift.String {
658
+ get
659
+ }
660
+ }
661
+ extension LinkKit.AccountSubtype.Other {
662
+ public var description: Swift.String {
663
+ get
664
+ }
665
+ }
666
+ extension LinkKit.AccountSubtype.Credit {
667
+ public var description: Swift.String {
668
+ get
669
+ }
670
+ }
671
+ extension LinkKit.AccountSubtype.Loan {
672
+ public var description: Swift.String {
673
+ get
674
+ }
675
+ }
676
+ extension LinkKit.AccountSubtype.Depository {
677
+ public var description: Swift.String {
678
+ get
679
+ }
680
+ }
681
+ extension LinkKit.AccountSubtype.Investment {
682
+ public var description: Swift.String {
683
+ get
684
+ }
685
+ }
686
+ public protocol Handler {
687
+ func open(presentUsing method: LinkKit.PresentationMethod)
688
+ func submit(data: any LinkKit.SubmissionData)
689
+ func createEmbeddedView(presentUsing: LinkKit.PresentationMethod) -> UIKit.UIView
690
+ func makePlaidLinkSheet() -> SwiftUICore.AnyView
691
+ func resumeAfterTermination(from redirectUri: Foundation.URL)
692
+ }
693
+ public enum InvalidInputErrorCode : Swift.Error, Swift.CustomStringConvertible {
694
+ case invalidApiKeys
695
+ case unauthorizedEnvironment
696
+ case invalidAccessToken
697
+ case invalidPublicToken
698
+ case invalidProduct
699
+ case invalidAccountId
700
+ case invalidInstitution
701
+ case tooManyVerificationAttempts
702
+ case unknown(Swift.String)
703
+ public var description: Swift.String {
704
+ get
705
+ }
706
+ }
707
+ extension LinkKit.EmbeddedSearchComponentType : Swift.Equatable {}
708
+ extension LinkKit.EmbeddedSearchComponentType : Swift.Hashable {}
709
+ extension LinkKit.AccountSubtype : Swift.CustomStringConvertible {}
710
+ extension LinkKit.AccountSubtype.Other : Swift.CustomStringConvertible {}
711
+ extension LinkKit.AccountSubtype.Credit : Swift.CustomStringConvertible {}
712
+ extension LinkKit.AccountSubtype.Loan : Swift.CustomStringConvertible {}
713
+ extension LinkKit.AccountSubtype.Depository : Swift.CustomStringConvertible {}
714
+ extension LinkKit.AccountSubtype.Investment : Swift.CustomStringConvertible {}
715
+ extension LinkKit.Environment : Swift.Equatable {}
716
+ extension LinkKit.Environment : Swift.Hashable {}
717
+ extension LinkKit.MFAType : Swift.Equatable {}
718
+ extension LinkKit.MFAType : Swift.Hashable {}
719
+ extension LinkKit.Product : Swift.Equatable {}
720
+ extension LinkKit.Product : Swift.Hashable {}
721
+ @available(iOS 17.4, *)
722
+ extension LinkKit.PlaidFinanceKit.SyncBehavior : Swift.Equatable {}
723
+ @available(iOS 17.4, *)
724
+ extension LinkKit.PlaidFinanceKit.SyncBehavior : Swift.Hashable {}