@identomat-inc/react-native-identomat 1.0.20

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 (96) hide show
  1. package/README.md +44 -0
  2. package/android/build.gradle +48 -0
  3. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +7 -0
  6. package/android/src/main/java/com/reactlibrary/BridgeModule.java +86 -0
  7. package/android/src/main/java/com/reactlibrary/BridgePackage.java +36 -0
  8. package/index.js +46 -0
  9. package/ios/Frameworks/identomat.framework/Assets.car +0 -0
  10. package/ios/Frameworks/identomat.framework/Headers/identomat-Swift.h +638 -0
  11. package/ios/Frameworks/identomat.framework/Headers/identomat.h +18 -0
  12. package/ios/Frameworks/identomat.framework/Info.plist +0 -0
  13. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm.swiftsourceinfo +0 -0
  14. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  15. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  16. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo +0 -0
  17. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/armv7.swiftsourceinfo +0 -0
  18. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftdoc +0 -0
  19. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftinterface +1866 -0
  20. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftmodule +0 -0
  21. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  22. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftinterface +1947 -0
  23. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  24. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftdoc +0 -0
  25. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftinterface +1947 -0
  26. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftmodule +0 -0
  27. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftdoc +0 -0
  28. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftinterface +1866 -0
  29. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftmodule +0 -0
  30. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftdoc +0 -0
  31. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftinterface +1866 -0
  32. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftmodule +0 -0
  33. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftdoc +0 -0
  34. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftinterface +1947 -0
  35. package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftmodule +0 -0
  36. package/ios/Frameworks/identomat.framework/Modules/module.modulemap +11 -0
  37. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/3Qb-Zw-Ydv-view-5fQ-xy-n01.nib/objects-11.0+.nib +0 -0
  38. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/3Qb-Zw-Ydv-view-5fQ-xy-n01.nib/runtime.nib +0 -0
  39. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Ajy-Ix-fe9-view-G1g-ks-BqP.nib/objects-11.0+.nib +0 -0
  40. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Ajy-Ix-fe9-view-G1g-ks-BqP.nib/runtime.nib +0 -0
  41. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Info.plist +0 -0
  42. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/RiD-hj-AH5-view-oaZ-g7-pTv.nib/objects-11.0+.nib +0 -0
  43. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/RiD-hj-AH5-view-oaZ-g7-pTv.nib/runtime.nib +0 -0
  44. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/VAA-Ss-lbh-view-UDO-8x-V4i.nib/objects-11.0+.nib +0 -0
  45. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/VAA-Ss-lbh-view-UDO-8x-V4i.nib/runtime.nib +0 -0
  46. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/YyM-f0-UbG-view-INz-ta-t1c.nib/objects-11.0+.nib +0 -0
  47. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/YyM-f0-UbG-view-INz-ta-t1c.nib/runtime.nib +0 -0
  48. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/agreement_view.nib/objects-11.0+.nib +0 -0
  49. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/agreement_view.nib/runtime.nib +0 -0
  50. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/default_view_controller.nib/objects-11.0+.nib +0 -0
  51. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/default_view_controller.nib/runtime.nib +0 -0
  52. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/document_types_view.nib/objects-11.0+.nib +0 -0
  53. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/document_types_view.nib/runtime.nib +0 -0
  54. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/fQF-H1-pI2-view-oqs-SO-IYK.nib/objects-11.0+.nib +0 -0
  55. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/fQF-H1-pI2-view-oqs-SO-IYK.nib/runtime.nib +0 -0
  56. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/liveness_view.nib/objects-11.0+.nib +0 -0
  57. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/liveness_view.nib/runtime.nib +0 -0
  58. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/match_photo_view.nib/objects-11.0+.nib +0 -0
  59. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/match_photo_view.nib/runtime.nib +0 -0
  60. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/qkz-dS-cJe-view-KRp-Px-e4R.nib/objects-11.0+.nib +0 -0
  61. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/qkz-dS-cJe-view-KRp-Px-e4R.nib/runtime.nib +0 -0
  62. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/scan_document_view.nib/objects-11.0+.nib +0 -0
  63. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/scan_document_view.nib/runtime.nib +0 -0
  64. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_file_view.nib/objects-11.0+.nib +0 -0
  65. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_file_view.nib/runtime.nib +0 -0
  66. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_types_view.nib/objects-11.0+.nib +0 -0
  67. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_types_view.nib/runtime.nib +0 -0
  68. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/vTZ-J7-KVA-view-nnL-sn-lBz.nib/objects-11.0+.nib +0 -0
  69. package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/vTZ-J7-KVA-view-nnL-sn-lBz.nib/runtime.nib +0 -0
  70. package/ios/Frameworks/identomat.framework/_CodeSignature/CodeResources +1045 -0
  71. package/ios/Frameworks/identomat.framework/en.lproj/languages.strings +0 -0
  72. package/ios/Frameworks/identomat.framework/es.lproj/languages.strings +0 -0
  73. package/ios/Frameworks/identomat.framework/identomat +0 -0
  74. package/ios/Frameworks/identomat.framework/ka.lproj/languages.strings +0 -0
  75. package/ios/Frameworks/identomat.framework/ru.lproj/languages.strings +0 -0
  76. package/ios/Identomat-Bridging-Header.h +7 -0
  77. package/ios/Identomat.m +26 -0
  78. package/ios/Identomat.swift +122 -0
  79. package/ios/Identomat.xcodeproj/project.pbxproj +333 -0
  80. package/ios/Identomat.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  81. package/ios/Identomat.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  82. package/ios/Identomat.xcodeproj/project.xcworkspace/xcuserdata/otosiradze.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  83. package/ios/Identomat.xcodeproj/xcuserdata/otosiradze.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +6 -0
  84. package/ios/Identomat.xcodeproj/xcuserdata/otosiradze.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  85. package/ios/Identomat.xcworkspace/contents.xcworkspacedata +7 -0
  86. package/ios/Identomat.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  87. package/ios/Identomat.xcworkspace/xcuserdata/otosiradze.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  88. package/package.json +14 -0
  89. package/react-native-identomat.podspec +44 -0
  90. package/windows/RNIdentomat/Properties/AssemblyInfo.cs +30 -0
  91. package/windows/RNIdentomat/Properties/RNIdentomat.rd.xml +28 -0
  92. package/windows/RNIdentomat/RNIdentomat.csproj +153 -0
  93. package/windows/RNIdentomat/RNIdentomatModule.cs +33 -0
  94. package/windows/RNIdentomat/RNIdentomatPackage.cs +53 -0
  95. package/windows/RNIdentomat/project.json +16 -0
  96. package/windows/RNIdentomat.sln +89 -0
@@ -0,0 +1,1866 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
3
+ // swift-module-flags: -target armv7-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name identomat
4
+ import AVFoundation
5
+ import AVKit
6
+ import Accelerate
7
+ import CoreImage
8
+ import Dispatch
9
+ import Foundation
10
+ import MobileCoreServices
11
+ import QuartzCore
12
+ import Swift
13
+ import SwiftUI
14
+ import SystemConfiguration
15
+ import UIKit
16
+ @_exported import identomat
17
+ import Accelerate.vImage
18
+ public protocol RequestAdapter {
19
+ func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
20
+ }
21
+ public enum RetryResult {
22
+ case retry
23
+ case retryWithDelay(Foundation.TimeInterval)
24
+ case doNotRetry
25
+ case doNotRetryWithError(Swift.Error)
26
+ }
27
+ public protocol RequestRetrier {
28
+ func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
29
+ }
30
+ public protocol RequestInterceptor : identomat.RequestAdapter, identomat.RequestRetrier {
31
+ }
32
+ extension RequestInterceptor {
33
+ public func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
34
+ public func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
35
+ }
36
+ public typealias AdaptHandler = (Foundation.URLRequest, identomat.Session, @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void) -> Swift.Void
37
+ public typealias RetryHandler = (identomat.Request, identomat.Session, Swift.Error, @escaping (identomat.RetryResult) -> Swift.Void) -> Swift.Void
38
+ open class Adapter : identomat.RequestInterceptor {
39
+ public init(_ adaptHandler: @escaping identomat.AdaptHandler)
40
+ open func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
41
+ @objc deinit
42
+ }
43
+ open class Retrier : identomat.RequestInterceptor {
44
+ public init(_ retryHandler: @escaping identomat.RetryHandler)
45
+ open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
46
+ @objc deinit
47
+ }
48
+ open class Interceptor : identomat.RequestInterceptor {
49
+ final public let adapters: [identomat.RequestAdapter]
50
+ final public let retriers: [identomat.RequestRetrier]
51
+ public init(adaptHandler: @escaping identomat.AdaptHandler, retryHandler: @escaping identomat.RetryHandler)
52
+ public init(adapter: identomat.RequestAdapter, retrier: identomat.RequestRetrier)
53
+ public init(adapters: [identomat.RequestAdapter] = [], retriers: [identomat.RequestRetrier] = [], interceptors: [identomat.RequestInterceptor] = [])
54
+ open func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
55
+ open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
56
+ @objc deinit
57
+ }
58
+ @_hasMissingDesignatedInitializers public class Request {
59
+ public enum State {
60
+ case initialized
61
+ case resumed
62
+ case suspended
63
+ case cancelled
64
+ case finished
65
+ public static func == (a: identomat.Request.State, b: identomat.Request.State) -> Swift.Bool
66
+ public var hashValue: Swift.Int {
67
+ get
68
+ }
69
+ public func hash(into hasher: inout Swift.Hasher)
70
+ }
71
+ final public let id: Foundation.UUID
72
+ final public let underlyingQueue: Dispatch.DispatchQueue
73
+ final public let serializationQueue: Dispatch.DispatchQueue
74
+ final public let eventMonitor: identomat.EventMonitor?
75
+ final public let interceptor: identomat.RequestInterceptor?
76
+ weak public var delegate: identomat.RequestDelegate? {
77
+ get
78
+ }
79
+ public var state: identomat.Request.State {
80
+ get
81
+ }
82
+ public var isInitialized: Swift.Bool {
83
+ get
84
+ }
85
+ public var isResumed: Swift.Bool {
86
+ get
87
+ }
88
+ public var isSuspended: Swift.Bool {
89
+ get
90
+ }
91
+ public var isCancelled: Swift.Bool {
92
+ get
93
+ }
94
+ public var isFinished: Swift.Bool {
95
+ get
96
+ }
97
+ public typealias ProgressHandler = (Foundation.Progress) -> Swift.Void
98
+ final public let uploadProgress: Foundation.Progress
99
+ final public let downloadProgress: Foundation.Progress
100
+ public var redirectHandler: identomat.RedirectHandler? {
101
+ get
102
+ }
103
+ public var cachedResponseHandler: identomat.CachedResponseHandler? {
104
+ get
105
+ }
106
+ public var credential: Foundation.URLCredential? {
107
+ get
108
+ }
109
+ public var requests: [Foundation.URLRequest] {
110
+ get
111
+ }
112
+ public var firstRequest: Foundation.URLRequest? {
113
+ get
114
+ }
115
+ public var lastRequest: Foundation.URLRequest? {
116
+ get
117
+ }
118
+ public var request: Foundation.URLRequest? {
119
+ get
120
+ }
121
+ public var performedRequests: [Foundation.URLRequest] {
122
+ get
123
+ }
124
+ public var response: Foundation.HTTPURLResponse? {
125
+ get
126
+ }
127
+ public var tasks: [Foundation.URLSessionTask] {
128
+ get
129
+ }
130
+ public var firstTask: Foundation.URLSessionTask? {
131
+ get
132
+ }
133
+ public var lastTask: Foundation.URLSessionTask? {
134
+ get
135
+ }
136
+ public var task: Foundation.URLSessionTask? {
137
+ get
138
+ }
139
+ public var allMetrics: [Foundation.URLSessionTaskMetrics] {
140
+ get
141
+ }
142
+ public var firstMetrics: Foundation.URLSessionTaskMetrics? {
143
+ get
144
+ }
145
+ public var lastMetrics: Foundation.URLSessionTaskMetrics? {
146
+ get
147
+ }
148
+ public var metrics: Foundation.URLSessionTaskMetrics? {
149
+ get
150
+ }
151
+ public var retryCount: Swift.Int {
152
+ get
153
+ }
154
+ public var error: identomat.AFError? {
155
+ get
156
+ }
157
+ @discardableResult
158
+ public func cancel() -> Self
159
+ @discardableResult
160
+ public func suspend() -> Self
161
+ @discardableResult
162
+ public func resume() -> Self
163
+ @discardableResult
164
+ public func authenticate(username: Swift.String, password: Swift.String, persistence: Foundation.URLCredential.Persistence = .forSession) -> Self
165
+ @discardableResult
166
+ public func authenticate(with credential: Foundation.URLCredential) -> Self
167
+ @discardableResult
168
+ public func downloadProgress(queue: Dispatch.DispatchQueue = .main, closure: @escaping identomat.Request.ProgressHandler) -> Self
169
+ @discardableResult
170
+ public func uploadProgress(queue: Dispatch.DispatchQueue = .main, closure: @escaping identomat.Request.ProgressHandler) -> Self
171
+ @discardableResult
172
+ public func redirect(using handler: identomat.RedirectHandler) -> Self
173
+ @discardableResult
174
+ public func cacheResponse(using handler: identomat.CachedResponseHandler) -> Self
175
+ @discardableResult
176
+ public func cURLDescription(on queue: Dispatch.DispatchQueue, calling handler: @escaping (Swift.String) -> Swift.Void) -> Self
177
+ @discardableResult
178
+ public func cURLDescription(calling handler: @escaping (Swift.String) -> Swift.Void) -> Self
179
+ @discardableResult
180
+ public func onURLRequestCreation(on queue: Dispatch.DispatchQueue = .main, perform handler: @escaping (Foundation.URLRequest) -> Swift.Void) -> Self
181
+ @discardableResult
182
+ public func onURLSessionTaskCreation(on queue: Dispatch.DispatchQueue = .main, perform handler: @escaping (Foundation.URLSessionTask) -> Swift.Void) -> Self
183
+ @objc deinit
184
+ }
185
+ extension Request : Swift.Equatable {
186
+ public static func == (lhs: identomat.Request, rhs: identomat.Request) -> Swift.Bool
187
+ }
188
+ extension Request : Swift.Hashable {
189
+ public func hash(into hasher: inout Swift.Hasher)
190
+ public var hashValue: Swift.Int {
191
+ get
192
+ }
193
+ }
194
+ extension Request : Swift.CustomStringConvertible {
195
+ public var description: Swift.String {
196
+ get
197
+ }
198
+ }
199
+ extension Request {
200
+ public func cURLDescription() -> Swift.String
201
+ }
202
+ public protocol RequestDelegate : AnyObject {
203
+ var sessionConfiguration: Foundation.URLSessionConfiguration { get }
204
+ var startImmediately: Swift.Bool { get }
205
+ func cleanup(after request: identomat.Request)
206
+ func retryResult(for request: identomat.Request, dueTo error: identomat.AFError, completion: @escaping (identomat.RetryResult) -> Swift.Void)
207
+ func retryRequest(_ request: identomat.Request, withDelay timeDelay: Foundation.TimeInterval?)
208
+ }
209
+ @_hasMissingDesignatedInitializers public class DataRequest : identomat.Request {
210
+ final public let convertible: identomat.URLRequestConvertible
211
+ public var data: Foundation.Data? {
212
+ get
213
+ }
214
+ @discardableResult
215
+ public func validate(_ validation: @escaping identomat.DataRequest.Validation) -> Self
216
+ @objc deinit
217
+ }
218
+ @_hasMissingDesignatedInitializers final public class DataStreamRequest : identomat.Request {
219
+ public typealias Handler<Success, Failure> = (identomat.DataStreamRequest.Stream<Success, Failure>) throws -> Swift.Void where Failure : Swift.Error
220
+ public struct Stream<Success, Failure> where Failure : Swift.Error {
221
+ public let event: identomat.DataStreamRequest.Event<Success, Failure>
222
+ public let token: identomat.DataStreamRequest.CancellationToken
223
+ public func cancel()
224
+ }
225
+ public enum Event<Success, Failure> where Failure : Swift.Error {
226
+ case stream(Swift.Result<Success, Failure>)
227
+ case complete(identomat.DataStreamRequest.Completion)
228
+ }
229
+ public struct Completion {
230
+ public let request: Foundation.URLRequest?
231
+ public let response: Foundation.HTTPURLResponse?
232
+ public let metrics: Foundation.URLSessionTaskMetrics?
233
+ public let error: identomat.AFError?
234
+ }
235
+ public struct CancellationToken {
236
+ public func cancel()
237
+ }
238
+ final public let convertible: identomat.URLRequestConvertible
239
+ final public let automaticallyCancelOnStreamError: Swift.Bool
240
+ @discardableResult
241
+ final public func validate(_ validation: @escaping identomat.DataStreamRequest.Validation) -> Self
242
+ final public func asInputStream(bufferSize: Swift.Int = 1024) -> Foundation.InputStream?
243
+ @objc deinit
244
+ }
245
+ extension DataStreamRequest.Stream {
246
+ public var result: Swift.Result<Success, Failure>? {
247
+ get
248
+ }
249
+ public var value: Success? {
250
+ get
251
+ }
252
+ public var error: Failure? {
253
+ get
254
+ }
255
+ public var completion: identomat.DataStreamRequest.Completion? {
256
+ get
257
+ }
258
+ }
259
+ @_hasMissingDesignatedInitializers public class DownloadRequest : identomat.Request {
260
+ public struct Options : Swift.OptionSet {
261
+ public static var createIntermediateDirectories: identomat.DownloadRequest.Options
262
+ public static var removePreviousFile: identomat.DownloadRequest.Options
263
+ public let rawValue: Swift.Int
264
+ public init(rawValue: Swift.Int)
265
+ public typealias Element = identomat.DownloadRequest.Options
266
+ public typealias ArrayLiteralElement = identomat.DownloadRequest.Options
267
+ public typealias RawValue = Swift.Int
268
+ }
269
+ public typealias Destination = (Foundation.URL, Foundation.HTTPURLResponse) -> (destinationURL: Foundation.URL, options: identomat.DownloadRequest.Options)
270
+ public class func suggestedDownloadDestination(for directory: Foundation.FileManager.SearchPathDirectory = .documentDirectory, in domain: Foundation.FileManager.SearchPathDomainMask = .userDomainMask, options: identomat.DownloadRequest.Options = []) -> identomat.DownloadRequest.Destination
271
+ public enum Downloadable {
272
+ case request(identomat.URLRequestConvertible)
273
+ case resumeData(Foundation.Data)
274
+ }
275
+ public var resumeData: Foundation.Data? {
276
+ get
277
+ }
278
+ public var fileURL: Foundation.URL? {
279
+ get
280
+ }
281
+ final public let downloadable: identomat.DownloadRequest.Downloadable
282
+ public func task(forResumeData data: Foundation.Data, using session: Foundation.URLSession) -> Foundation.URLSessionTask
283
+ @discardableResult
284
+ override public func cancel() -> Self
285
+ @discardableResult
286
+ public func cancel(producingResumeData shouldProduceResumeData: Swift.Bool) -> Self
287
+ @discardableResult
288
+ public func cancel(byProducingResumeData completionHandler: @escaping (Foundation.Data?) -> Swift.Void) -> Self
289
+ @discardableResult
290
+ public func validate(_ validation: @escaping identomat.DownloadRequest.Validation) -> Self
291
+ @objc deinit
292
+ }
293
+ @_hasMissingDesignatedInitializers public class UploadRequest : identomat.DataRequest {
294
+ public enum Uploadable {
295
+ case data(Foundation.Data)
296
+ case file(Foundation.URL, shouldRemove: Swift.Bool)
297
+ case stream(Foundation.InputStream)
298
+ }
299
+ final public let upload: identomat.UploadableConvertible
300
+ final public let fileManager: Foundation.FileManager
301
+ public var uploadable: identomat.UploadRequest.Uploadable?
302
+ public func cleanup()
303
+ @objc deinit
304
+ }
305
+ public protocol UploadableConvertible {
306
+ func createUploadable() throws -> identomat.UploadRequest.Uploadable
307
+ }
308
+ extension UploadRequest.Uploadable : identomat.UploadableConvertible {
309
+ public func createUploadable() throws -> identomat.UploadRequest.Uploadable
310
+ }
311
+ public protocol UploadConvertible : identomat.URLRequestConvertible, identomat.UploadableConvertible {
312
+ }
313
+ public typealias AFResult<Success> = Swift.Result<Success, identomat.AFError>
314
+ public protocol RedirectHandler {
315
+ func task(_ task: Foundation.URLSessionTask, willBeRedirectedTo request: Foundation.URLRequest, for response: Foundation.HTTPURLResponse, completion: @escaping (Foundation.URLRequest?) -> Swift.Void)
316
+ }
317
+ public struct Redirector {
318
+ public enum Behavior {
319
+ case follow
320
+ case doNotFollow
321
+ case modify((Foundation.URLSessionTask, Foundation.URLRequest, Foundation.HTTPURLResponse) -> Foundation.URLRequest?)
322
+ }
323
+ public static var follow: identomat.Redirector
324
+ public static var doNotFollow: identomat.Redirector
325
+ public let behavior: identomat.Redirector.Behavior
326
+ public init(behavior: identomat.Redirector.Behavior)
327
+ }
328
+ extension Redirector : identomat.RedirectHandler {
329
+ public func task(_ task: Foundation.URLSessionTask, willBeRedirectedTo request: Foundation.URLRequest, for response: Foundation.HTTPURLResponse, completion: @escaping (Foundation.URLRequest?) -> Swift.Void)
330
+ }
331
+ public typealias AFDataResponse<Success> = identomat.DataResponse<Success, identomat.AFError>
332
+ public typealias AFDownloadResponse<Success> = identomat.DownloadResponse<Success, identomat.AFError>
333
+ public struct DataResponse<Success, Failure> where Failure : Swift.Error {
334
+ public let request: Foundation.URLRequest?
335
+ public let response: Foundation.HTTPURLResponse?
336
+ public let data: Foundation.Data?
337
+ public let metrics: Foundation.URLSessionTaskMetrics?
338
+ public let serializationDuration: Foundation.TimeInterval
339
+ public let result: Swift.Result<Success, Failure>
340
+ public var value: Success? {
341
+ get
342
+ }
343
+ public var error: Failure? {
344
+ get
345
+ }
346
+ public init(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, metrics: Foundation.URLSessionTaskMetrics?, serializationDuration: Foundation.TimeInterval, result: Swift.Result<Success, Failure>)
347
+ }
348
+ extension DataResponse : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
349
+ public var description: Swift.String {
350
+ get
351
+ }
352
+ public var debugDescription: Swift.String {
353
+ get
354
+ }
355
+ }
356
+ extension DataResponse {
357
+ public func map<NewSuccess>(_ transform: (Success) -> NewSuccess) -> identomat.DataResponse<NewSuccess, Failure>
358
+ public func tryMap<NewSuccess>(_ transform: (Success) throws -> NewSuccess) -> identomat.DataResponse<NewSuccess, Swift.Error>
359
+ public func mapError<NewFailure>(_ transform: (Failure) -> NewFailure) -> identomat.DataResponse<Success, NewFailure> where NewFailure : Swift.Error
360
+ public func tryMapError<NewFailure>(_ transform: (Failure) throws -> NewFailure) -> identomat.DataResponse<Success, Swift.Error> where NewFailure : Swift.Error
361
+ }
362
+ public struct DownloadResponse<Success, Failure> where Failure : Swift.Error {
363
+ public let request: Foundation.URLRequest?
364
+ public let response: Foundation.HTTPURLResponse?
365
+ public let fileURL: Foundation.URL?
366
+ public let resumeData: Foundation.Data?
367
+ public let metrics: Foundation.URLSessionTaskMetrics?
368
+ public let serializationDuration: Foundation.TimeInterval
369
+ public let result: Swift.Result<Success, Failure>
370
+ public var value: Success? {
371
+ get
372
+ }
373
+ public var error: Failure? {
374
+ get
375
+ }
376
+ public init(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, resumeData: Foundation.Data?, metrics: Foundation.URLSessionTaskMetrics?, serializationDuration: Foundation.TimeInterval, result: Swift.Result<Success, Failure>)
377
+ }
378
+ extension DownloadResponse : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
379
+ public var description: Swift.String {
380
+ get
381
+ }
382
+ public var debugDescription: Swift.String {
383
+ get
384
+ }
385
+ }
386
+ extension DownloadResponse {
387
+ public func map<NewSuccess>(_ transform: (Success) -> NewSuccess) -> identomat.DownloadResponse<NewSuccess, Failure>
388
+ public func tryMap<NewSuccess>(_ transform: (Success) throws -> NewSuccess) -> identomat.DownloadResponse<NewSuccess, Swift.Error>
389
+ public func mapError<NewFailure>(_ transform: (Failure) -> NewFailure) -> identomat.DownloadResponse<Success, NewFailure> where NewFailure : Swift.Error
390
+ public func tryMapError<NewFailure>(_ transform: (Failure) throws -> NewFailure) -> identomat.DownloadResponse<Success, Swift.Error> where NewFailure : Swift.Error
391
+ }
392
+ extension URLRequest {
393
+ public var method: identomat.HTTPMethod? {
394
+ get
395
+ set(newValue)
396
+ }
397
+ public func validate() throws
398
+ }
399
+ public var AF: identomat.Session
400
+ open class Session {
401
+ public static var `default`: identomat.Session
402
+ final public let session: Foundation.URLSession
403
+ final public let delegate: identomat.SessionDelegate
404
+ final public let rootQueue: Dispatch.DispatchQueue
405
+ final public let startRequestsImmediately: Swift.Bool
406
+ final public let requestQueue: Dispatch.DispatchQueue
407
+ final public let serializationQueue: Dispatch.DispatchQueue
408
+ final public let interceptor: identomat.RequestInterceptor?
409
+ final public let serverTrustManager: identomat.ServerTrustManager?
410
+ final public let redirectHandler: identomat.RedirectHandler?
411
+ final public let cachedResponseHandler: identomat.CachedResponseHandler?
412
+ final public let eventMonitor: identomat.CompositeEventMonitor
413
+ final public let defaultEventMonitors: [identomat.EventMonitor]
414
+ public init(session: Foundation.URLSession, delegate: identomat.SessionDelegate, rootQueue: Dispatch.DispatchQueue, startRequestsImmediately: Swift.Bool = true, requestQueue: Dispatch.DispatchQueue? = nil, serializationQueue: Dispatch.DispatchQueue? = nil, interceptor: identomat.RequestInterceptor? = nil, serverTrustManager: identomat.ServerTrustManager? = nil, redirectHandler: identomat.RedirectHandler? = nil, cachedResponseHandler: identomat.CachedResponseHandler? = nil, eventMonitors: [identomat.EventMonitor] = [])
415
+ public convenience init(configuration: Foundation.URLSessionConfiguration = URLSessionConfiguration.af.default, delegate: identomat.SessionDelegate = SessionDelegate(), rootQueue: Dispatch.DispatchQueue = DispatchQueue(label: "org.alamofire.session.rootQueue"), startRequestsImmediately: Swift.Bool = true, requestQueue: Dispatch.DispatchQueue? = nil, serializationQueue: Dispatch.DispatchQueue? = nil, interceptor: identomat.RequestInterceptor? = nil, serverTrustManager: identomat.ServerTrustManager? = nil, redirectHandler: identomat.RedirectHandler? = nil, cachedResponseHandler: identomat.CachedResponseHandler? = nil, eventMonitors: [identomat.EventMonitor] = [])
416
+ @objc deinit
417
+ public func withAllRequests(perform action: @escaping (Swift.Set<identomat.Request>) -> Swift.Void)
418
+ public func cancelAllRequests(completingOnQueue queue: Dispatch.DispatchQueue = .main, completion: (() -> Swift.Void)? = nil)
419
+ public typealias RequestModifier = (inout Foundation.URLRequest) throws -> Swift.Void
420
+ open func request(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: identomat.Parameters? = nil, encoding: identomat.ParameterEncoding = URLEncoding.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataRequest
421
+ open func request<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataRequest where Parameters : Swift.Encodable
422
+ open func request(_ convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil) -> identomat.DataRequest
423
+ open func streamRequest<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataStreamRequest where Parameters : Swift.Encodable
424
+ open func streamRequest(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, headers: identomat.HTTPHeaders? = nil, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataStreamRequest
425
+ open func streamRequest(_ convertible: identomat.URLRequestConvertible, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil) -> identomat.DataStreamRequest
426
+ open func download(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: identomat.Parameters? = nil, encoding: identomat.ParameterEncoding = URLEncoding.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
427
+ open func download<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest where Parameters : Swift.Encodable
428
+ open func download(_ convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
429
+ open func download(resumingWith data: Foundation.Data, interceptor: identomat.RequestInterceptor? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
430
+ open func upload(_ data: Foundation.Data, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
431
+ open func upload(_ data: Foundation.Data, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
432
+ open func upload(_ fileURL: Foundation.URL, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
433
+ open func upload(_ fileURL: Foundation.URL, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
434
+ open func upload(_ stream: Foundation.InputStream, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
435
+ open func upload(_ stream: Foundation.InputStream, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
436
+ open func upload(multipartFormData: @escaping (identomat.MultipartFormData) -> Swift.Void, to url: identomat.URLConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
437
+ open func upload(multipartFormData: @escaping (identomat.MultipartFormData) -> Swift.Void, with request: identomat.URLRequestConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
438
+ open func upload(multipartFormData: identomat.MultipartFormData, to url: identomat.URLConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
439
+ open func upload(multipartFormData: identomat.MultipartFormData, with request: identomat.URLRequestConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
440
+ }
441
+ extension Session : identomat.RequestDelegate {
442
+ public var sessionConfiguration: Foundation.URLSessionConfiguration {
443
+ get
444
+ }
445
+ public var startImmediately: Swift.Bool {
446
+ get
447
+ }
448
+ public func cleanup(after request: identomat.Request)
449
+ public func retryResult(for request: identomat.Request, dueTo error: identomat.AFError, completion: @escaping (identomat.RetryResult) -> Swift.Void)
450
+ public func retryRequest(_ request: identomat.Request, withDelay timeDelay: Foundation.TimeInterval?)
451
+ }
452
+ open class MultipartFormData {
453
+ public static var encodingMemoryThreshold: Swift.UInt64
454
+ open var contentType: Swift.String {
455
+ get
456
+ set(value)
457
+ }
458
+ public var contentLength: Swift.UInt64 {
459
+ get
460
+ }
461
+ final public let boundary: Swift.String
462
+ public init(fileManager: Foundation.FileManager = .default, boundary: Swift.String? = nil)
463
+ public func append(_ data: Foundation.Data, withName name: Swift.String, fileName: Swift.String? = nil, mimeType: Swift.String? = nil)
464
+ public func append(_ fileURL: Foundation.URL, withName name: Swift.String)
465
+ public func append(_ fileURL: Foundation.URL, withName name: Swift.String, fileName: Swift.String, mimeType: Swift.String)
466
+ public func append(_ stream: Foundation.InputStream, withLength length: Swift.UInt64, name: Swift.String, fileName: Swift.String, mimeType: Swift.String)
467
+ public func append(_ stream: Foundation.InputStream, withLength length: Swift.UInt64, headers: identomat.HTTPHeaders)
468
+ public func encode() throws -> Foundation.Data
469
+ public func writeEncodedData(to fileURL: Foundation.URL) throws
470
+ @objc deinit
471
+ }
472
+ extension URLSessionConfiguration : identomat.AlamofireExtended {
473
+ public typealias ExtendedType = Foundation.URLSessionConfiguration
474
+ }
475
+ extension AlamofireExtension where ExtendedType : Foundation.URLSessionConfiguration {
476
+ public static var `default`: Foundation.URLSessionConfiguration {
477
+ get
478
+ }
479
+ }
480
+ public protocol AuthenticationCredential {
481
+ var requiresRefresh: Swift.Bool { get }
482
+ }
483
+ public protocol Authenticator : AnyObject {
484
+ associatedtype Credential : identomat.AuthenticationCredential
485
+ func apply(_ credential: Self.Credential, to urlRequest: inout Foundation.URLRequest)
486
+ func refresh(_ credential: Self.Credential, for session: identomat.Session, completion: @escaping (Swift.Result<Self.Credential, Swift.Error>) -> Swift.Void)
487
+ func didRequest(_ urlRequest: Foundation.URLRequest, with response: Foundation.HTTPURLResponse, failDueToAuthenticationError error: Swift.Error) -> Swift.Bool
488
+ func isRequest(_ urlRequest: Foundation.URLRequest, authenticatedWith credential: Self.Credential) -> Swift.Bool
489
+ }
490
+ public enum AuthenticationError : Swift.Error {
491
+ case missingCredential
492
+ case excessiveRefresh
493
+ public static func == (a: identomat.AuthenticationError, b: identomat.AuthenticationError) -> Swift.Bool
494
+ public var hashValue: Swift.Int {
495
+ get
496
+ }
497
+ public func hash(into hasher: inout Swift.Hasher)
498
+ }
499
+ public class AuthenticationInterceptor<AuthenticatorType> : identomat.RequestInterceptor where AuthenticatorType : identomat.Authenticator {
500
+ public typealias Credential = AuthenticatorType.Credential
501
+ public struct RefreshWindow {
502
+ public let interval: Foundation.TimeInterval
503
+ public let maximumAttempts: Swift.Int
504
+ public init(interval: Foundation.TimeInterval = 30.0, maximumAttempts: Swift.Int = 5)
505
+ }
506
+ public var credential: identomat.AuthenticationInterceptor<AuthenticatorType>.Credential? {
507
+ get
508
+ set(newValue)
509
+ }
510
+ public init(authenticator: AuthenticatorType, credential: identomat.AuthenticationInterceptor<AuthenticatorType>.Credential? = nil, refreshWindow: identomat.AuthenticationInterceptor<AuthenticatorType>.RefreshWindow? = RefreshWindow())
511
+ public func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
512
+ public func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
513
+ @objc deinit
514
+ }
515
+ extension Request {
516
+ public typealias ValidationResult = Swift.Result<Swift.Void, Swift.Error>
517
+ }
518
+ extension DataRequest {
519
+ public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.Data?) -> identomat.DataRequest.ValidationResult
520
+ @discardableResult
521
+ public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
522
+ @discardableResult
523
+ public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
524
+ @discardableResult
525
+ public func validate() -> Self
526
+ }
527
+ extension DataStreamRequest {
528
+ public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse) -> identomat.DataStreamRequest.ValidationResult
529
+ @discardableResult
530
+ final public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
531
+ @discardableResult
532
+ final public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
533
+ @discardableResult
534
+ final public func validate() -> Self
535
+ }
536
+ extension DownloadRequest {
537
+ public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.URL?) -> identomat.DownloadRequest.ValidationResult
538
+ @discardableResult
539
+ public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
540
+ @discardableResult
541
+ public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
542
+ @discardableResult
543
+ public func validate() -> Self
544
+ }
545
+ public protocol EventMonitor {
546
+ var queue: Dispatch.DispatchQueue { get }
547
+ func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
548
+ func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
549
+ func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
550
+ func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
551
+ func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
552
+ func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
553
+ func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
554
+ @available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
555
+ func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
556
+ func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
557
+ func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
558
+ func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
559
+ func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
560
+ func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
561
+ func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
562
+ func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
563
+ func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
564
+ func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
565
+ func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
566
+ func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
567
+ func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
568
+ func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
569
+ func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
570
+ func requestIsRetrying(_ request: identomat.Request)
571
+ func requestDidFinish(_ request: identomat.Request)
572
+ func requestDidResume(_ request: identomat.Request)
573
+ func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
574
+ func requestDidSuspend(_ request: identomat.Request)
575
+ func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
576
+ func requestDidCancel(_ request: identomat.Request)
577
+ func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
578
+ func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
579
+ func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
580
+ func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
581
+ func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
582
+ func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
583
+ func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
584
+ func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
585
+ func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
586
+ func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
587
+ func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
588
+ func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
589
+ func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
590
+ func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
591
+ }
592
+ extension EventMonitor {
593
+ public var queue: Dispatch.DispatchQueue {
594
+ get
595
+ }
596
+ public func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
597
+ public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
598
+ public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
599
+ public func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
600
+ public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
601
+ public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
602
+ public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
603
+ public func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
604
+ public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
605
+ public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
606
+ public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
607
+ public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
608
+ public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
609
+ public func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
610
+ public func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
611
+ public func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
612
+ public func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
613
+ public func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
614
+ public func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
615
+ public func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
616
+ public func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
617
+ public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
618
+ public func requestIsRetrying(_ request: identomat.Request)
619
+ public func requestDidFinish(_ request: identomat.Request)
620
+ public func requestDidResume(_ request: identomat.Request)
621
+ public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
622
+ public func requestDidSuspend(_ request: identomat.Request)
623
+ public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
624
+ public func requestDidCancel(_ request: identomat.Request)
625
+ public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
626
+ public func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
627
+ public func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
628
+ public func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
629
+ public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
630
+ public func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
631
+ public func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
632
+ public func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
633
+ public func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
634
+ public func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
635
+ public func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
636
+ public func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
637
+ public func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
638
+ public func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
639
+ }
640
+ @_hasMissingDesignatedInitializers final public class CompositeEventMonitor : identomat.EventMonitor {
641
+ final public let queue: Dispatch.DispatchQueue
642
+ final public func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
643
+ final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
644
+ final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
645
+ final public func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
646
+ final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
647
+ final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
648
+ final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
649
+ @available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
650
+ final public func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
651
+ final public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
652
+ final public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
653
+ final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
654
+ final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
655
+ final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
656
+ final public func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
657
+ final public func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
658
+ final public func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
659
+ final public func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
660
+ final public func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
661
+ final public func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
662
+ final public func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
663
+ final public func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
664
+ final public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
665
+ final public func requestIsRetrying(_ request: identomat.Request)
666
+ final public func requestDidFinish(_ request: identomat.Request)
667
+ final public func requestDidResume(_ request: identomat.Request)
668
+ final public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
669
+ final public func requestDidSuspend(_ request: identomat.Request)
670
+ final public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
671
+ final public func requestDidCancel(_ request: identomat.Request)
672
+ final public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
673
+ final public func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
674
+ final public func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
675
+ final public func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
676
+ final public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
677
+ final public func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
678
+ final public func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
679
+ final public func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
680
+ final public func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
681
+ final public func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
682
+ final public func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
683
+ final public func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
684
+ final public func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
685
+ final public func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
686
+ @objc deinit
687
+ }
688
+ open class ClosureEventMonitor : identomat.EventMonitor {
689
+ open var sessionDidBecomeInvalidWithError: ((Foundation.URLSession, Swift.Error?) -> Swift.Void)?
690
+ open var taskDidReceiveChallenge: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.URLAuthenticationChallenge) -> Swift.Void)?
691
+ open var taskDidSendBodyData: ((Foundation.URLSession, Foundation.URLSessionTask, Swift.Int64, Swift.Int64, Swift.Int64) -> Swift.Void)?
692
+ open var taskNeedNewBodyStream: ((Foundation.URLSession, Foundation.URLSessionTask) -> Swift.Void)?
693
+ open var taskWillPerformHTTPRedirection: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.HTTPURLResponse, Foundation.URLRequest) -> Swift.Void)?
694
+ open var taskDidFinishCollectingMetrics: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.URLSessionTaskMetrics) -> Swift.Void)?
695
+ open var taskDidComplete: ((Foundation.URLSession, Foundation.URLSessionTask, Swift.Error?) -> Swift.Void)?
696
+ open var taskIsWaitingForConnectivity: ((Foundation.URLSession, Foundation.URLSessionTask) -> Swift.Void)?
697
+ open var dataTaskDidReceiveData: ((Foundation.URLSession, Foundation.URLSessionDataTask, Foundation.Data) -> Swift.Void)?
698
+ open var dataTaskWillCacheResponse: ((Foundation.URLSession, Foundation.URLSessionDataTask, Foundation.CachedURLResponse) -> Swift.Void)?
699
+ open var downloadTaskDidFinishDownloadingToURL: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Foundation.URL) -> Swift.Void)?
700
+ open var downloadTaskDidWriteData: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Swift.Int64, Swift.Int64, Swift.Int64) -> Swift.Void)?
701
+ open var downloadTaskDidResumeAtOffset: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Swift.Int64, Swift.Int64) -> Swift.Void)?
702
+ open var requestDidCreateInitialURLRequest: ((identomat.Request, Foundation.URLRequest) -> Swift.Void)?
703
+ open var requestDidFailToCreateURLRequestWithError: ((identomat.Request, identomat.AFError) -> Swift.Void)?
704
+ open var requestDidAdaptInitialRequestToAdaptedRequest: ((identomat.Request, Foundation.URLRequest, Foundation.URLRequest) -> Swift.Void)?
705
+ open var requestDidFailToAdaptURLRequestWithError: ((identomat.Request, Foundation.URLRequest, identomat.AFError) -> Swift.Void)?
706
+ open var requestDidCreateURLRequest: ((identomat.Request, Foundation.URLRequest) -> Swift.Void)?
707
+ open var requestDidCreateTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
708
+ open var requestDidGatherMetrics: ((identomat.Request, Foundation.URLSessionTaskMetrics) -> Swift.Void)?
709
+ open var requestDidFailTaskEarlyWithError: ((identomat.Request, Foundation.URLSessionTask, identomat.AFError) -> Swift.Void)?
710
+ open var requestDidCompleteTaskWithError: ((identomat.Request, Foundation.URLSessionTask, identomat.AFError?) -> Swift.Void)?
711
+ open var requestIsRetrying: ((identomat.Request) -> Swift.Void)?
712
+ open var requestDidFinish: ((identomat.Request) -> Swift.Void)?
713
+ open var requestDidResume: ((identomat.Request) -> Swift.Void)?
714
+ open var requestDidResumeTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
715
+ open var requestDidSuspend: ((identomat.Request) -> Swift.Void)?
716
+ open var requestDidSuspendTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
717
+ open var requestDidCancel: ((identomat.Request) -> Swift.Void)?
718
+ open var requestDidCancelTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
719
+ open var requestDidValidateRequestResponseDataWithResult: ((identomat.DataRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.Data?, identomat.Request.ValidationResult) -> Swift.Void)?
720
+ open var requestDidParseResponse: ((identomat.DataRequest, identomat.DataResponse<Foundation.Data?, identomat.AFError>) -> Swift.Void)?
721
+ open var requestDidValidateRequestResponseWithResult: ((identomat.DataStreamRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, identomat.Request.ValidationResult) -> Swift.Void)?
722
+ open var requestDidCreateUploadable: ((identomat.UploadRequest, identomat.UploadRequest.Uploadable) -> Swift.Void)?
723
+ open var requestDidFailToCreateUploadableWithError: ((identomat.UploadRequest, identomat.AFError) -> Swift.Void)?
724
+ open var requestDidProvideInputStream: ((identomat.UploadRequest, Foundation.InputStream) -> Swift.Void)?
725
+ open var requestDidFinishDownloadingUsingTaskWithResult: ((identomat.DownloadRequest, Foundation.URLSessionTask, Swift.Result<Foundation.URL, identomat.AFError>) -> Swift.Void)?
726
+ open var requestDidCreateDestinationURL: ((identomat.DownloadRequest, Foundation.URL) -> Swift.Void)?
727
+ open var requestDidValidateRequestResponseFileURLWithResult: ((identomat.DownloadRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.URL?, identomat.Request.ValidationResult) -> Swift.Void)?
728
+ open var requestDidParseDownloadResponse: ((identomat.DownloadRequest, identomat.DownloadResponse<Foundation.URL?, identomat.AFError>) -> Swift.Void)?
729
+ final public let queue: Dispatch.DispatchQueue
730
+ public init(queue: Dispatch.DispatchQueue = .main)
731
+ open func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
732
+ open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
733
+ open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
734
+ open func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
735
+ open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
736
+ open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
737
+ open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
738
+ open func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
739
+ open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
740
+ open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
741
+ open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
742
+ open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
743
+ open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
744
+ open func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
745
+ open func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
746
+ open func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
747
+ open func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
748
+ open func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
749
+ open func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
750
+ open func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
751
+ open func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
752
+ open func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
753
+ open func requestIsRetrying(_ request: identomat.Request)
754
+ open func requestDidFinish(_ request: identomat.Request)
755
+ open func requestDidResume(_ request: identomat.Request)
756
+ public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
757
+ open func requestDidSuspend(_ request: identomat.Request)
758
+ public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
759
+ open func requestDidCancel(_ request: identomat.Request)
760
+ public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
761
+ open func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
762
+ open func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
763
+ public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
764
+ open func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
765
+ open func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
766
+ open func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
767
+ open func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
768
+ open func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
769
+ open func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
770
+ open func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
771
+ @objc deinit
772
+ }
773
+ public protocol ParameterEncoder {
774
+ func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
775
+ }
776
+ open class JSONParameterEncoder : identomat.ParameterEncoder {
777
+ public static var `default`: identomat.JSONParameterEncoder {
778
+ get
779
+ }
780
+ public static var prettyPrinted: identomat.JSONParameterEncoder {
781
+ get
782
+ }
783
+ @available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
784
+ public static var sortedKeys: identomat.JSONParameterEncoder {
785
+ get
786
+ }
787
+ final public let encoder: Foundation.JSONEncoder
788
+ public init(encoder: Foundation.JSONEncoder = JSONEncoder())
789
+ open func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
790
+ @objc deinit
791
+ }
792
+ open class URLEncodedFormParameterEncoder : identomat.ParameterEncoder {
793
+ public enum Destination {
794
+ case methodDependent
795
+ case queryString
796
+ case httpBody
797
+ public static func == (a: identomat.URLEncodedFormParameterEncoder.Destination, b: identomat.URLEncodedFormParameterEncoder.Destination) -> Swift.Bool
798
+ public var hashValue: Swift.Int {
799
+ get
800
+ }
801
+ public func hash(into hasher: inout Swift.Hasher)
802
+ }
803
+ public static var `default`: identomat.URLEncodedFormParameterEncoder {
804
+ get
805
+ }
806
+ final public let encoder: identomat.URLEncodedFormEncoder
807
+ final public let destination: identomat.URLEncodedFormParameterEncoder.Destination
808
+ public init(encoder: identomat.URLEncodedFormEncoder = URLEncodedFormEncoder(), destination: identomat.URLEncodedFormParameterEncoder.Destination = .methodDependent)
809
+ open func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
810
+ @objc deinit
811
+ }
812
+ open class ServerTrustManager {
813
+ final public let allHostsMustBeEvaluated: Swift.Bool
814
+ final public let evaluators: [Swift.String : identomat.ServerTrustEvaluating]
815
+ public init(allHostsMustBeEvaluated: Swift.Bool = true, evaluators: [Swift.String : identomat.ServerTrustEvaluating])
816
+ open func serverTrustEvaluator(forHost host: Swift.String) throws -> identomat.ServerTrustEvaluating?
817
+ @objc deinit
818
+ }
819
+ public protocol ServerTrustEvaluating {
820
+ func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
821
+ }
822
+ final public class DefaultTrustEvaluator : identomat.ServerTrustEvaluating {
823
+ public init(validateHost: Swift.Bool = true)
824
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
825
+ @objc deinit
826
+ }
827
+ final public class RevocationTrustEvaluator : identomat.ServerTrustEvaluating {
828
+ public struct Options : Swift.OptionSet {
829
+ public static var crl: identomat.RevocationTrustEvaluator.Options
830
+ public static var networkAccessDisabled: identomat.RevocationTrustEvaluator.Options
831
+ public static var ocsp: identomat.RevocationTrustEvaluator.Options
832
+ public static var preferCRL: identomat.RevocationTrustEvaluator.Options
833
+ public static var requirePositiveResponse: identomat.RevocationTrustEvaluator.Options
834
+ public static var any: identomat.RevocationTrustEvaluator.Options
835
+ public let rawValue: CoreFoundation.CFOptionFlags
836
+ public init(rawValue: CoreFoundation.CFOptionFlags)
837
+ public typealias Element = identomat.RevocationTrustEvaluator.Options
838
+ public typealias ArrayLiteralElement = identomat.RevocationTrustEvaluator.Options
839
+ public typealias RawValue = CoreFoundation.CFOptionFlags
840
+ }
841
+ public init(performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true, options: identomat.RevocationTrustEvaluator.Options = .any)
842
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
843
+ @objc deinit
844
+ }
845
+ final public class PinnedCertificatesTrustEvaluator : identomat.ServerTrustEvaluating {
846
+ public init(certificates: [Security.SecCertificate] = Bundle.main.af.certificates, acceptSelfSignedCertificates: Swift.Bool = false, performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true)
847
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
848
+ @objc deinit
849
+ }
850
+ final public class PublicKeysTrustEvaluator : identomat.ServerTrustEvaluating {
851
+ public init(keys: [Security.SecKey] = Bundle.main.af.publicKeys, performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true)
852
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
853
+ @objc deinit
854
+ }
855
+ final public class CompositeTrustEvaluator : identomat.ServerTrustEvaluating {
856
+ public init(evaluators: [identomat.ServerTrustEvaluating])
857
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
858
+ @objc deinit
859
+ }
860
+ @available(*, deprecated, renamed: "DisabledTrustEvaluator", message: "DisabledEvaluator has been renamed DisabledTrustEvaluator.")
861
+ public typealias DisabledEvaluator = identomat.DisabledTrustEvaluator
862
+ final public class DisabledTrustEvaluator : identomat.ServerTrustEvaluating {
863
+ public init()
864
+ final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
865
+ @objc deinit
866
+ }
867
+ extension Array where Element == identomat.ServerTrustEvaluating {
868
+ public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
869
+ }
870
+ extension Bundle : identomat.AlamofireExtended {
871
+ public typealias ExtendedType = Foundation.Bundle
872
+ }
873
+ extension AlamofireExtension where ExtendedType : Foundation.Bundle {
874
+ public var certificates: [Security.SecCertificate] {
875
+ get
876
+ }
877
+ public var publicKeys: [Security.SecKey] {
878
+ get
879
+ }
880
+ public func paths(forResourcesOfTypes types: [Swift.String]) -> [Swift.String]
881
+ }
882
+ extension SecTrust : identomat.AlamofireExtended {
883
+ public typealias ExtendedType = Security.SecTrust
884
+ }
885
+ extension AlamofireExtension where ExtendedType == Security.SecTrust {
886
+ @available(iOS 12, OSX 10.14, tvOS 12, watchOS 5, *)
887
+ public func evaluate(afterApplying policy: Security.SecPolicy) throws
888
+ @available(iOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
889
+ @available(OSX, introduced: 10.12, deprecated: 10.14, renamed: "evaluate(afterApplying:)")
890
+ @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
891
+ @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate(afterApplying:)")
892
+ public func validate(policy: Security.SecPolicy, errorProducer: (Darwin.OSStatus, Security.SecTrustResultType) -> Swift.Error) throws
893
+ public func apply(policy: Security.SecPolicy) throws -> Security.SecTrust
894
+ @available(iOS 12, OSX 10.14, tvOS 12, watchOS 5, *)
895
+ public func evaluate() throws
896
+ @available(iOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
897
+ @available(OSX, introduced: 10.12, deprecated: 10.14, renamed: "evaluate()")
898
+ @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
899
+ @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate()")
900
+ public func validate(errorProducer: (Darwin.OSStatus, Security.SecTrustResultType) -> Swift.Error) throws
901
+ public func setAnchorCertificates(_ certificates: [Security.SecCertificate]) throws
902
+ public var publicKeys: [Security.SecKey] {
903
+ get
904
+ }
905
+ public var certificates: [Security.SecCertificate] {
906
+ get
907
+ }
908
+ public var certificateData: [Foundation.Data] {
909
+ get
910
+ }
911
+ public func performDefaultValidation(forHost host: Swift.String) throws
912
+ public func performValidation(forHost host: Swift.String) throws
913
+ }
914
+ extension SecPolicy : identomat.AlamofireExtended {
915
+ public typealias ExtendedType = Security.SecPolicy
916
+ }
917
+ extension AlamofireExtension where ExtendedType == Security.SecPolicy {
918
+ public static var `default`: Security.SecPolicy
919
+ public static func hostname(_ hostname: Swift.String) -> Security.SecPolicy
920
+ public static func revocation(options: identomat.RevocationTrustEvaluator.Options) throws -> Security.SecPolicy
921
+ }
922
+ extension Array : identomat.AlamofireExtended {
923
+ public typealias ExtendedType = Swift.Array<Element>
924
+ }
925
+ extension AlamofireExtension where ExtendedType == [Security.SecCertificate] {
926
+ public var data: [Foundation.Data] {
927
+ get
928
+ }
929
+ public var publicKeys: [Security.SecKey] {
930
+ get
931
+ }
932
+ }
933
+ extension SecCertificate : identomat.AlamofireExtended {
934
+ public typealias ExtendedType = Security.SecCertificate
935
+ }
936
+ extension AlamofireExtension where ExtendedType == Security.SecCertificate {
937
+ public var publicKey: Security.SecKey? {
938
+ get
939
+ }
940
+ }
941
+ extension Int32 : identomat.AlamofireExtended {
942
+ public typealias ExtendedType = Swift.Int32
943
+ }
944
+ extension AlamofireExtension where ExtendedType == Darwin.OSStatus {
945
+ public var isSuccess: Swift.Bool {
946
+ get
947
+ }
948
+ }
949
+ extension SecTrustResultType : identomat.AlamofireExtended {
950
+ public typealias ExtendedType = Security.SecTrustResultType
951
+ }
952
+ extension AlamofireExtension where ExtendedType == Security.SecTrustResultType {
953
+ public var isSuccess: Swift.Bool {
954
+ get
955
+ }
956
+ }
957
+ public protocol DataResponseSerializerProtocol {
958
+ associatedtype SerializedObject
959
+ func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Self.SerializedObject
960
+ }
961
+ public protocol DownloadResponseSerializerProtocol {
962
+ associatedtype SerializedObject
963
+ func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Self.SerializedObject
964
+ }
965
+ public protocol ResponseSerializer : identomat.DataResponseSerializerProtocol, identomat.DownloadResponseSerializerProtocol {
966
+ var dataPreprocessor: identomat.DataPreprocessor { get }
967
+ var emptyRequestMethods: Swift.Set<identomat.HTTPMethod> { get }
968
+ var emptyResponseCodes: Swift.Set<Swift.Int> { get }
969
+ }
970
+ public protocol DataPreprocessor {
971
+ func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
972
+ }
973
+ public struct PassthroughPreprocessor : identomat.DataPreprocessor {
974
+ public init()
975
+ public func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
976
+ }
977
+ public struct GoogleXSSIPreprocessor : identomat.DataPreprocessor {
978
+ public init()
979
+ public func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
980
+ }
981
+ extension ResponseSerializer {
982
+ public static var defaultDataPreprocessor: identomat.DataPreprocessor {
983
+ get
984
+ }
985
+ public static var defaultEmptyRequestMethods: Swift.Set<identomat.HTTPMethod> {
986
+ get
987
+ }
988
+ public static var defaultEmptyResponseCodes: Swift.Set<Swift.Int> {
989
+ get
990
+ }
991
+ public var dataPreprocessor: identomat.DataPreprocessor {
992
+ get
993
+ }
994
+ public var emptyRequestMethods: Swift.Set<identomat.HTTPMethod> {
995
+ get
996
+ }
997
+ public var emptyResponseCodes: Swift.Set<Swift.Int> {
998
+ get
999
+ }
1000
+ public func requestAllowsEmptyResponseData(_ request: Foundation.URLRequest?) -> Swift.Bool?
1001
+ public func responseAllowsEmptyResponseData(_ response: Foundation.HTTPURLResponse?) -> Swift.Bool?
1002
+ public func emptyResponseAllowed(forRequest request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?) -> Swift.Bool
1003
+ }
1004
+ extension DownloadResponseSerializerProtocol where Self : identomat.DataResponseSerializerProtocol {
1005
+ public func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Self.SerializedObject
1006
+ }
1007
+ extension DataRequest {
1008
+ @discardableResult
1009
+ public func response(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDataResponse<Foundation.Data?>) -> Swift.Void) -> Self
1010
+ @discardableResult
1011
+ public func response<Serializer>(queue: Dispatch.DispatchQueue = .main, responseSerializer: Serializer, completionHandler: @escaping (identomat.AFDataResponse<Serializer.SerializedObject>) -> Swift.Void) -> Self where Serializer : identomat.DataResponseSerializerProtocol
1012
+ }
1013
+ extension DownloadRequest {
1014
+ @discardableResult
1015
+ public func response(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.URL?>) -> Swift.Void) -> Self
1016
+ @discardableResult
1017
+ public func response<Serializer>(queue: Dispatch.DispatchQueue = .main, responseSerializer: Serializer, completionHandler: @escaping (identomat.AFDownloadResponse<Serializer.SerializedObject>) -> Swift.Void) -> Self where Serializer : identomat.DownloadResponseSerializerProtocol
1018
+ }
1019
+ public struct URLResponseSerializer : identomat.DownloadResponseSerializerProtocol {
1020
+ public init()
1021
+ public func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Foundation.URL
1022
+ public typealias SerializedObject = Foundation.URL
1023
+ }
1024
+ extension DownloadRequest {
1025
+ @discardableResult
1026
+ public func responseURL(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.URL>) -> Swift.Void) -> Self
1027
+ }
1028
+ final public class DataResponseSerializer : identomat.ResponseSerializer {
1029
+ final public let dataPreprocessor: identomat.DataPreprocessor
1030
+ final public let emptyResponseCodes: Swift.Set<Swift.Int>
1031
+ final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
1032
+ public init(dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods)
1033
+ final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Foundation.Data
1034
+ @objc deinit
1035
+ public typealias SerializedObject = Foundation.Data
1036
+ }
1037
+ extension DataRequest {
1038
+ @discardableResult
1039
+ public func responseData(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<Foundation.Data>) -> Swift.Void) -> Self
1040
+ }
1041
+ extension DownloadRequest {
1042
+ @discardableResult
1043
+ public func responseData(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.Data>) -> Swift.Void) -> Self
1044
+ }
1045
+ final public class StringResponseSerializer : identomat.ResponseSerializer {
1046
+ final public let dataPreprocessor: identomat.DataPreprocessor
1047
+ final public let encoding: Swift.String.Encoding?
1048
+ final public let emptyResponseCodes: Swift.Set<Swift.Int>
1049
+ final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
1050
+ public init(dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods)
1051
+ final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Swift.String
1052
+ @objc deinit
1053
+ public typealias SerializedObject = Swift.String
1054
+ }
1055
+ extension DataRequest {
1056
+ @discardableResult
1057
+ public func responseString(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<Swift.String>) -> Swift.Void) -> Self
1058
+ }
1059
+ extension DownloadRequest {
1060
+ @discardableResult
1061
+ public func responseString(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<Swift.String>) -> Swift.Void) -> Self
1062
+ }
1063
+ final public class JSONResponseSerializer : identomat.ResponseSerializer {
1064
+ final public let dataPreprocessor: identomat.DataPreprocessor
1065
+ final public let emptyResponseCodes: Swift.Set<Swift.Int>
1066
+ final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
1067
+ final public let options: Foundation.JSONSerialization.ReadingOptions
1068
+ public init(dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments)
1069
+ final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Any
1070
+ @objc deinit
1071
+ public typealias SerializedObject = Any
1072
+ }
1073
+ extension DataRequest {
1074
+ @discardableResult
1075
+ public func responseJSON(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments, completionHandler: @escaping (identomat.AFDataResponse<Any>) -> Swift.Void) -> Self
1076
+ }
1077
+ extension DownloadRequest {
1078
+ @discardableResult
1079
+ public func responseJSON(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments, completionHandler: @escaping (identomat.AFDownloadResponse<Any>) -> Swift.Void) -> Self
1080
+ }
1081
+ public protocol EmptyResponse {
1082
+ static func emptyValue() -> Self
1083
+ }
1084
+ public struct Empty : Swift.Codable {
1085
+ public static var value: identomat.Empty
1086
+ public init(from decoder: Swift.Decoder) throws
1087
+ public func encode(to encoder: Swift.Encoder) throws
1088
+ }
1089
+ extension Empty : identomat.EmptyResponse {
1090
+ public static func emptyValue() -> identomat.Empty
1091
+ }
1092
+ public protocol DataDecoder {
1093
+ func decode<D>(_ type: D.Type, from data: Foundation.Data) throws -> D where D : Swift.Decodable
1094
+ }
1095
+ extension JSONDecoder : identomat.DataDecoder {
1096
+ }
1097
+ extension PropertyListDecoder : identomat.DataDecoder {
1098
+ }
1099
+ final public class DecodableResponseSerializer<T> : identomat.ResponseSerializer where T : Swift.Decodable {
1100
+ final public let dataPreprocessor: identomat.DataPreprocessor
1101
+ final public let decoder: identomat.DataDecoder
1102
+ final public let emptyResponseCodes: Swift.Set<Swift.Int>
1103
+ final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
1104
+ public init(dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer.defaultEmptyRequestMethods)
1105
+ final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> T
1106
+ @objc deinit
1107
+ public typealias SerializedObject = T
1108
+ }
1109
+ extension DataRequest {
1110
+ @discardableResult
1111
+ public func responseDecodable<T>(of type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<T>) -> Swift.Void) -> Self where T : Swift.Decodable
1112
+ }
1113
+ extension DownloadRequest {
1114
+ @discardableResult
1115
+ public func responseDecodable<T>(of type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<T>) -> Swift.Void) -> Self where T : Swift.Decodable
1116
+ }
1117
+ public protocol DataStreamSerializer {
1118
+ associatedtype SerializedObject
1119
+ func serialize(_ data: Foundation.Data) throws -> Self.SerializedObject
1120
+ }
1121
+ public struct DecodableStreamSerializer<T> : identomat.DataStreamSerializer where T : Swift.Decodable {
1122
+ public let decoder: identomat.DataDecoder
1123
+ public let dataPreprocessor: identomat.DataPreprocessor
1124
+ public init(decoder: identomat.DataDecoder = JSONDecoder(), dataPreprocessor: identomat.DataPreprocessor = PassthroughPreprocessor())
1125
+ public func serialize(_ data: Foundation.Data) throws -> T
1126
+ public typealias SerializedObject = T
1127
+ }
1128
+ public struct PassthroughStreamSerializer : identomat.DataStreamSerializer {
1129
+ public func serialize(_ data: Foundation.Data) throws -> Foundation.Data
1130
+ public typealias SerializedObject = Foundation.Data
1131
+ }
1132
+ public struct StringStreamSerializer : identomat.DataStreamSerializer {
1133
+ public func serialize(_ data: Foundation.Data) throws -> Swift.String
1134
+ public typealias SerializedObject = Swift.String
1135
+ }
1136
+ extension DataStreamRequest {
1137
+ @discardableResult
1138
+ final public func responseStream(on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Foundation.Data, Swift.Never>) -> Self
1139
+ @discardableResult
1140
+ final public func responseStream<Serializer>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Serializer.SerializedObject, identomat.AFError>) -> Self where Serializer : identomat.DataStreamSerializer
1141
+ @discardableResult
1142
+ final public func responseStreamString(on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Swift.String, Swift.Never>) -> Self
1143
+ @discardableResult
1144
+ final public func responseStreamDecodable<T>(of type: T.Type = T.self, on queue: Dispatch.DispatchQueue = .main, using decoder: identomat.DataDecoder = JSONDecoder(), preprocessor: identomat.DataPreprocessor = PassthroughPreprocessor(), stream: @escaping identomat.DataStreamRequest.Handler<T, identomat.AFError>) -> Self where T : Swift.Decodable
1145
+ }
1146
+ public enum NVActivityIndicatorType : Swift.CaseIterable {
1147
+ case blank
1148
+ case ballPulse
1149
+ case ballGridPulse
1150
+ case ballClipRotate
1151
+ case squareSpin
1152
+ case ballClipRotatePulse
1153
+ case ballClipRotateMultiple
1154
+ case ballPulseRise
1155
+ case ballRotate
1156
+ case cubeTransition
1157
+ case ballZigZag
1158
+ case ballZigZagDeflect
1159
+ case ballTrianglePath
1160
+ case ballScale
1161
+ case lineScale
1162
+ case lineScaleParty
1163
+ case ballScaleMultiple
1164
+ case ballPulseSync
1165
+ case ballBeat
1166
+ case ballDoubleBounce
1167
+ case lineScalePulseOut
1168
+ case lineScalePulseOutRapid
1169
+ case ballScaleRipple
1170
+ case ballScaleRippleMultiple
1171
+ case ballSpinFadeLoader
1172
+ case lineSpinFadeLoader
1173
+ case triangleSkewSpin
1174
+ case pacman
1175
+ case ballGridBeat
1176
+ case semiCircleSpin
1177
+ case ballRotateChase
1178
+ case orbit
1179
+ case audioEqualizer
1180
+ case circleStrokeSpin
1181
+ public static func == (a: identomat.NVActivityIndicatorType, b: identomat.NVActivityIndicatorType) -> Swift.Bool
1182
+ public var hashValue: Swift.Int {
1183
+ get
1184
+ }
1185
+ public func hash(into hasher: inout Swift.Hasher)
1186
+ public typealias AllCases = [identomat.NVActivityIndicatorType]
1187
+ public static var allCases: [identomat.NVActivityIndicatorType] {
1188
+ get
1189
+ }
1190
+ }
1191
+ public typealias FadeInAnimation = (UIKit.UIView) -> Swift.Void
1192
+ public typealias FadeOutAnimation = (UIKit.UIView, @escaping () -> Swift.Void) -> Swift.Void
1193
+ @objc final public class NVActivityIndicatorView : UIKit.UIView {
1194
+ public static var DEFAULT_TYPE: identomat.NVActivityIndicatorType
1195
+ public static var DEFAULT_COLOR: UIKit.UIColor
1196
+ public static var DEFAULT_TEXT_COLOR: UIKit.UIColor
1197
+ public static var DEFAULT_PADDING: CoreGraphics.CGFloat
1198
+ public static var DEFAULT_BLOCKER_SIZE: CoreGraphics.CGSize
1199
+ public static var DEFAULT_BLOCKER_DISPLAY_TIME_THRESHOLD: Swift.Int
1200
+ public static var DEFAULT_BLOCKER_MINIMUM_DISPLAY_TIME: Swift.Int
1201
+ public static var DEFAULT_BLOCKER_MESSAGE: Swift.String?
1202
+ public static var DEFAULT_BLOCKER_MESSAGE_SPACING: CoreGraphics.CGFloat
1203
+ public static var DEFAULT_BLOCKER_MESSAGE_FONT: UIKit.UIFont
1204
+ public static var DEFAULT_BLOCKER_BACKGROUND_COLOR: UIKit.UIColor
1205
+ public static var DEFAULT_FADE_IN_ANIMATION: (UIKit.UIView) -> Swift.Void
1206
+ public static var DEFAULT_FADE_OUT_ANIMATION: (UIKit.UIView, @escaping () -> Swift.Void) -> Swift.Void
1207
+ final public var type: identomat.NVActivityIndicatorType
1208
+ @objc @IBInspectable final public var color: UIKit.UIColor
1209
+ @objc @IBInspectable final public var padding: CoreGraphics.CGFloat
1210
+ @available(*, deprecated)
1211
+ final public var animating: Swift.Bool {
1212
+ get
1213
+ }
1214
+ final public var isAnimating: Swift.Bool {
1215
+ get
1216
+ }
1217
+ @objc required dynamic public init?(coder aDecoder: Foundation.NSCoder)
1218
+ public init(frame: CoreGraphics.CGRect, type: identomat.NVActivityIndicatorType? = nil, color: UIKit.UIColor? = nil, padding: CoreGraphics.CGFloat? = nil)
1219
+ @objc override final public var intrinsicContentSize: CoreGraphics.CGSize {
1220
+ @objc get
1221
+ }
1222
+ @objc override final public var bounds: CoreGraphics.CGRect {
1223
+ @objc get
1224
+ @objc set(value)
1225
+ }
1226
+ final public func startAnimating()
1227
+ final public func stopAnimating()
1228
+ @objc deinit
1229
+ @objc override dynamic public init(frame: CoreGraphics.CGRect)
1230
+ }
1231
+ public struct HTTPMethod : Swift.RawRepresentable, Swift.Equatable, Swift.Hashable {
1232
+ public static var connect: identomat.HTTPMethod
1233
+ public static var delete: identomat.HTTPMethod
1234
+ public static var get: identomat.HTTPMethod
1235
+ public static var head: identomat.HTTPMethod
1236
+ public static var options: identomat.HTTPMethod
1237
+ public static var patch: identomat.HTTPMethod
1238
+ public static var post: identomat.HTTPMethod
1239
+ public static var put: identomat.HTTPMethod
1240
+ public static var trace: identomat.HTTPMethod
1241
+ public let rawValue: Swift.String
1242
+ public init(rawValue: Swift.String)
1243
+ public typealias RawValue = Swift.String
1244
+ }
1245
+ @objc @_hasMissingDesignatedInitializers public class NavigationView : UIKit.UIView {
1246
+ @objc override dynamic public init(frame: CoreGraphics.CGRect)
1247
+ @objc deinit
1248
+ }
1249
+ final public class URLEncodedFormEncoder {
1250
+ public enum ArrayEncoding {
1251
+ case brackets
1252
+ case noBrackets
1253
+ public static func == (a: identomat.URLEncodedFormEncoder.ArrayEncoding, b: identomat.URLEncodedFormEncoder.ArrayEncoding) -> Swift.Bool
1254
+ public var hashValue: Swift.Int {
1255
+ get
1256
+ }
1257
+ public func hash(into hasher: inout Swift.Hasher)
1258
+ }
1259
+ public enum BoolEncoding {
1260
+ case numeric
1261
+ case literal
1262
+ public static func == (a: identomat.URLEncodedFormEncoder.BoolEncoding, b: identomat.URLEncodedFormEncoder.BoolEncoding) -> Swift.Bool
1263
+ public var hashValue: Swift.Int {
1264
+ get
1265
+ }
1266
+ public func hash(into hasher: inout Swift.Hasher)
1267
+ }
1268
+ public enum DataEncoding {
1269
+ case deferredToData
1270
+ case base64
1271
+ case custom((Foundation.Data) throws -> Swift.String)
1272
+ }
1273
+ public enum DateEncoding {
1274
+ case deferredToDate
1275
+ case secondsSince1970
1276
+ case millisecondsSince1970
1277
+ case iso8601
1278
+ case formatted(Foundation.DateFormatter)
1279
+ case custom((Foundation.Date) throws -> Swift.String)
1280
+ }
1281
+ public enum KeyEncoding {
1282
+ case useDefaultKeys
1283
+ case convertToSnakeCase
1284
+ case convertToKebabCase
1285
+ case capitalized
1286
+ case uppercased
1287
+ case lowercased
1288
+ case custom((Swift.String) -> Swift.String)
1289
+ }
1290
+ public enum SpaceEncoding {
1291
+ case percentEscaped
1292
+ case plusReplaced
1293
+ public static func == (a: identomat.URLEncodedFormEncoder.SpaceEncoding, b: identomat.URLEncodedFormEncoder.SpaceEncoding) -> Swift.Bool
1294
+ public var hashValue: Swift.Int {
1295
+ get
1296
+ }
1297
+ public func hash(into hasher: inout Swift.Hasher)
1298
+ }
1299
+ public enum Error : Swift.Error {
1300
+ case invalidRootObject(Swift.String)
1301
+ }
1302
+ final public let alphabetizeKeyValuePairs: Swift.Bool
1303
+ final public let arrayEncoding: identomat.URLEncodedFormEncoder.ArrayEncoding
1304
+ final public let boolEncoding: identomat.URLEncodedFormEncoder.BoolEncoding
1305
+ final public let dataEncoding: identomat.URLEncodedFormEncoder.DataEncoding
1306
+ final public let dateEncoding: identomat.URLEncodedFormEncoder.DateEncoding
1307
+ final public let keyEncoding: identomat.URLEncodedFormEncoder.KeyEncoding
1308
+ final public let spaceEncoding: identomat.URLEncodedFormEncoder.SpaceEncoding
1309
+ final public var allowedCharacters: Foundation.CharacterSet
1310
+ public init(alphabetizeKeyValuePairs: Swift.Bool = true, arrayEncoding: identomat.URLEncodedFormEncoder.ArrayEncoding = .brackets, boolEncoding: identomat.URLEncodedFormEncoder.BoolEncoding = .numeric, dataEncoding: identomat.URLEncodedFormEncoder.DataEncoding = .base64, dateEncoding: identomat.URLEncodedFormEncoder.DateEncoding = .deferredToDate, keyEncoding: identomat.URLEncodedFormEncoder.KeyEncoding = .useDefaultKeys, spaceEncoding: identomat.URLEncodedFormEncoder.SpaceEncoding = .percentEscaped, allowedCharacters: Foundation.CharacterSet = .afURLQueryAllowed)
1311
+ final public func encode(_ value: Swift.Encodable) throws -> Swift.String
1312
+ final public func encode(_ value: Swift.Encodable) throws -> Foundation.Data
1313
+ @objc deinit
1314
+ }
1315
+ extension CharacterSet {
1316
+ public static var afURLQueryAllowed: Foundation.CharacterSet
1317
+ }
1318
+ @_hasMissingDesignatedInitializers public class IdentomatManager {
1319
+ public static func getInstance() -> identomat.IdentomatManager
1320
+ public func setUp(token: Swift.String, flags: [Swift.String : Any], documentTypes: [Swift.Int])
1321
+ public func setHead1Font(fontname: Swift.String)
1322
+ public func setHead2Font(fontname: Swift.String)
1323
+ public func setBodyFont(fontname: Swift.String)
1324
+ public func setColors(color: [Swift.String : Swift.String])
1325
+ public func setLivenessIcons(neutralFace: UIKit.UIImage?, smileFace: UIKit.UIImage?)
1326
+ public func setBackButtonImage(image: UIKit.UIImage)
1327
+ public func setStringsTableName(tableName: Swift.String)
1328
+ public func setStrings(dict: [Swift.String : Any?])
1329
+ public func setBaseUrl(url: Swift.String)
1330
+ public func setLogo(view: UIKit.UIView)
1331
+ public func skipLegalAgreement()
1332
+ public func skipLivenessInstructions()
1333
+ public func callBack(callback: (() -> Swift.Void)?)
1334
+ public func getIdentomatView() -> UIKit.UINavigationController
1335
+ @objc deinit
1336
+ }
1337
+ public enum AFError : Swift.Error {
1338
+ public enum MultipartEncodingFailureReason {
1339
+ case bodyPartURLInvalid(url: Foundation.URL)
1340
+ case bodyPartFilenameInvalid(in: Foundation.URL)
1341
+ case bodyPartFileNotReachable(at: Foundation.URL)
1342
+ case bodyPartFileNotReachableWithError(atURL: Foundation.URL, error: Swift.Error)
1343
+ case bodyPartFileIsDirectory(at: Foundation.URL)
1344
+ case bodyPartFileSizeNotAvailable(at: Foundation.URL)
1345
+ case bodyPartFileSizeQueryFailedWithError(forURL: Foundation.URL, error: Swift.Error)
1346
+ case bodyPartInputStreamCreationFailed(for: Foundation.URL)
1347
+ case outputStreamCreationFailed(for: Foundation.URL)
1348
+ case outputStreamFileAlreadyExists(at: Foundation.URL)
1349
+ case outputStreamURLInvalid(url: Foundation.URL)
1350
+ case outputStreamWriteFailed(error: Swift.Error)
1351
+ case inputStreamReadFailed(error: Swift.Error)
1352
+ }
1353
+ public enum ParameterEncodingFailureReason {
1354
+ case missingURL
1355
+ case jsonEncodingFailed(error: Swift.Error)
1356
+ case customEncodingFailed(error: Swift.Error)
1357
+ }
1358
+ public enum ParameterEncoderFailureReason {
1359
+ public enum RequiredComponent {
1360
+ case url
1361
+ case httpMethod(rawValue: Swift.String)
1362
+ }
1363
+ case missingRequiredComponent(identomat.AFError.ParameterEncoderFailureReason.RequiredComponent)
1364
+ case encoderFailed(error: Swift.Error)
1365
+ }
1366
+ public enum ResponseValidationFailureReason {
1367
+ case dataFileNil
1368
+ case dataFileReadFailed(at: Foundation.URL)
1369
+ case missingContentType(acceptableContentTypes: [Swift.String])
1370
+ case unacceptableContentType(acceptableContentTypes: [Swift.String], responseContentType: Swift.String)
1371
+ case unacceptableStatusCode(code: Swift.Int)
1372
+ case customValidationFailed(error: Swift.Error)
1373
+ }
1374
+ public enum ResponseSerializationFailureReason {
1375
+ case inputDataNilOrZeroLength
1376
+ case inputFileNil
1377
+ case inputFileReadFailed(at: Foundation.URL)
1378
+ case stringSerializationFailed(encoding: Swift.String.Encoding)
1379
+ case jsonSerializationFailed(error: Swift.Error)
1380
+ case decodingFailed(error: Swift.Error)
1381
+ case customSerializationFailed(error: Swift.Error)
1382
+ case invalidEmptyResponse(type: Swift.String)
1383
+ }
1384
+ public enum ServerTrustFailureReason {
1385
+ public struct Output {
1386
+ public let host: Swift.String
1387
+ public let trust: Security.SecTrust
1388
+ public let status: Darwin.OSStatus
1389
+ public let result: Security.SecTrustResultType
1390
+ }
1391
+ case noRequiredEvaluator(host: Swift.String)
1392
+ case noCertificatesFound
1393
+ case noPublicKeysFound
1394
+ case policyApplicationFailed(trust: Security.SecTrust, policy: Security.SecPolicy, status: Darwin.OSStatus)
1395
+ case settingAnchorCertificatesFailed(status: Darwin.OSStatus, certificates: [Security.SecCertificate])
1396
+ case revocationPolicyCreationFailed
1397
+ case trustEvaluationFailed(error: Swift.Error?)
1398
+ case defaultEvaluationFailed(output: identomat.AFError.ServerTrustFailureReason.Output)
1399
+ case hostValidationFailed(output: identomat.AFError.ServerTrustFailureReason.Output)
1400
+ case revocationCheckFailed(output: identomat.AFError.ServerTrustFailureReason.Output, options: identomat.RevocationTrustEvaluator.Options)
1401
+ case certificatePinningFailed(host: Swift.String, trust: Security.SecTrust, pinnedCertificates: [Security.SecCertificate], serverCertificates: [Security.SecCertificate])
1402
+ case publicKeyPinningFailed(host: Swift.String, trust: Security.SecTrust, pinnedKeys: [Security.SecKey], serverKeys: [Security.SecKey])
1403
+ case customEvaluationFailed(error: Swift.Error)
1404
+ }
1405
+ public enum URLRequestValidationFailureReason {
1406
+ case bodyDataInGETRequest(Foundation.Data)
1407
+ }
1408
+ case createUploadableFailed(error: Swift.Error)
1409
+ case createURLRequestFailed(error: Swift.Error)
1410
+ case downloadedFileMoveFailed(error: Swift.Error, source: Foundation.URL, destination: Foundation.URL)
1411
+ case explicitlyCancelled
1412
+ case invalidURL(url: identomat.URLConvertible)
1413
+ case multipartEncodingFailed(reason: identomat.AFError.MultipartEncodingFailureReason)
1414
+ case parameterEncodingFailed(reason: identomat.AFError.ParameterEncodingFailureReason)
1415
+ case parameterEncoderFailed(reason: identomat.AFError.ParameterEncoderFailureReason)
1416
+ case requestAdaptationFailed(error: Swift.Error)
1417
+ case requestRetryFailed(retryError: Swift.Error, originalError: Swift.Error)
1418
+ case responseValidationFailed(reason: identomat.AFError.ResponseValidationFailureReason)
1419
+ case responseSerializationFailed(reason: identomat.AFError.ResponseSerializationFailureReason)
1420
+ case serverTrustEvaluationFailed(reason: identomat.AFError.ServerTrustFailureReason)
1421
+ case sessionDeinitialized
1422
+ case sessionInvalidated(error: Swift.Error?)
1423
+ case sessionTaskFailed(error: Swift.Error)
1424
+ case urlRequestValidationFailed(reason: identomat.AFError.URLRequestValidationFailureReason)
1425
+ }
1426
+ extension Error {
1427
+ public var asAFError: identomat.AFError? {
1428
+ get
1429
+ }
1430
+ public func asAFError(orFailWith message: @autoclosure () -> Swift.String, file: Swift.StaticString = #file, line: Swift.UInt = #line) -> identomat.AFError
1431
+ }
1432
+ extension AFError {
1433
+ public var isSessionDeinitializedError: Swift.Bool {
1434
+ get
1435
+ }
1436
+ public var isSessionInvalidatedError: Swift.Bool {
1437
+ get
1438
+ }
1439
+ public var isExplicitlyCancelledError: Swift.Bool {
1440
+ get
1441
+ }
1442
+ public var isInvalidURLError: Swift.Bool {
1443
+ get
1444
+ }
1445
+ public var isParameterEncodingError: Swift.Bool {
1446
+ get
1447
+ }
1448
+ public var isParameterEncoderError: Swift.Bool {
1449
+ get
1450
+ }
1451
+ public var isMultipartEncodingError: Swift.Bool {
1452
+ get
1453
+ }
1454
+ public var isRequestAdaptationError: Swift.Bool {
1455
+ get
1456
+ }
1457
+ public var isResponseValidationError: Swift.Bool {
1458
+ get
1459
+ }
1460
+ public var isResponseSerializationError: Swift.Bool {
1461
+ get
1462
+ }
1463
+ public var isServerTrustEvaluationError: Swift.Bool {
1464
+ get
1465
+ }
1466
+ public var isRequestRetryError: Swift.Bool {
1467
+ get
1468
+ }
1469
+ public var isCreateUploadableError: Swift.Bool {
1470
+ get
1471
+ }
1472
+ public var isCreateURLRequestError: Swift.Bool {
1473
+ get
1474
+ }
1475
+ public var isDownloadedFileMoveError: Swift.Bool {
1476
+ get
1477
+ }
1478
+ public var isSessionTaskError: Swift.Bool {
1479
+ get
1480
+ }
1481
+ }
1482
+ extension AFError {
1483
+ public var urlConvertible: identomat.URLConvertible? {
1484
+ get
1485
+ }
1486
+ public var url: Foundation.URL? {
1487
+ get
1488
+ }
1489
+ public var underlyingError: Swift.Error? {
1490
+ get
1491
+ }
1492
+ public var acceptableContentTypes: [Swift.String]? {
1493
+ get
1494
+ }
1495
+ public var responseContentType: Swift.String? {
1496
+ get
1497
+ }
1498
+ public var responseCode: Swift.Int? {
1499
+ get
1500
+ }
1501
+ public var failedStringEncoding: Swift.String.Encoding? {
1502
+ get
1503
+ }
1504
+ public var sourceURL: Foundation.URL? {
1505
+ get
1506
+ }
1507
+ public var destinationURL: Foundation.URL? {
1508
+ get
1509
+ }
1510
+ }
1511
+ extension AFError : Foundation.LocalizedError {
1512
+ public var errorDescription: Swift.String? {
1513
+ get
1514
+ }
1515
+ }
1516
+ public typealias Parameters = [Swift.String : Any]
1517
+ public protocol ParameterEncoding {
1518
+ func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
1519
+ }
1520
+ public struct URLEncoding : identomat.ParameterEncoding {
1521
+ public enum Destination {
1522
+ case methodDependent
1523
+ case queryString
1524
+ case httpBody
1525
+ public static func == (a: identomat.URLEncoding.Destination, b: identomat.URLEncoding.Destination) -> Swift.Bool
1526
+ public var hashValue: Swift.Int {
1527
+ get
1528
+ }
1529
+ public func hash(into hasher: inout Swift.Hasher)
1530
+ }
1531
+ public enum ArrayEncoding {
1532
+ case brackets
1533
+ case noBrackets
1534
+ public static func == (a: identomat.URLEncoding.ArrayEncoding, b: identomat.URLEncoding.ArrayEncoding) -> Swift.Bool
1535
+ public var hashValue: Swift.Int {
1536
+ get
1537
+ }
1538
+ public func hash(into hasher: inout Swift.Hasher)
1539
+ }
1540
+ public enum BoolEncoding {
1541
+ case numeric
1542
+ case literal
1543
+ public static func == (a: identomat.URLEncoding.BoolEncoding, b: identomat.URLEncoding.BoolEncoding) -> Swift.Bool
1544
+ public var hashValue: Swift.Int {
1545
+ get
1546
+ }
1547
+ public func hash(into hasher: inout Swift.Hasher)
1548
+ }
1549
+ public static var `default`: identomat.URLEncoding {
1550
+ get
1551
+ }
1552
+ public static var queryString: identomat.URLEncoding {
1553
+ get
1554
+ }
1555
+ public static var httpBody: identomat.URLEncoding {
1556
+ get
1557
+ }
1558
+ public let destination: identomat.URLEncoding.Destination
1559
+ public let arrayEncoding: identomat.URLEncoding.ArrayEncoding
1560
+ public let boolEncoding: identomat.URLEncoding.BoolEncoding
1561
+ public init(destination: identomat.URLEncoding.Destination = .methodDependent, arrayEncoding: identomat.URLEncoding.ArrayEncoding = .brackets, boolEncoding: identomat.URLEncoding.BoolEncoding = .numeric)
1562
+ public func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
1563
+ public func queryComponents(fromKey key: Swift.String, value: Any) -> [(Swift.String, Swift.String)]
1564
+ public func escape(_ string: Swift.String) -> Swift.String
1565
+ }
1566
+ public struct JSONEncoding : identomat.ParameterEncoding {
1567
+ public static var `default`: identomat.JSONEncoding {
1568
+ get
1569
+ }
1570
+ public static var prettyPrinted: identomat.JSONEncoding {
1571
+ get
1572
+ }
1573
+ public let options: Foundation.JSONSerialization.WritingOptions
1574
+ public init(options: Foundation.JSONSerialization.WritingOptions = [])
1575
+ public func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
1576
+ public func encode(_ urlRequest: identomat.URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> Foundation.URLRequest
1577
+ }
1578
+ public protocol URLConvertible {
1579
+ func asURL() throws -> Foundation.URL
1580
+ }
1581
+ extension String : identomat.URLConvertible {
1582
+ public func asURL() throws -> Foundation.URL
1583
+ }
1584
+ extension URL : identomat.URLConvertible {
1585
+ public func asURL() throws -> Foundation.URL
1586
+ }
1587
+ extension URLComponents : identomat.URLConvertible {
1588
+ public func asURL() throws -> Foundation.URL
1589
+ }
1590
+ public protocol URLRequestConvertible {
1591
+ func asURLRequest() throws -> Foundation.URLRequest
1592
+ }
1593
+ extension URLRequestConvertible {
1594
+ public var urlRequest: Foundation.URLRequest? {
1595
+ get
1596
+ }
1597
+ }
1598
+ extension URLRequest : identomat.URLRequestConvertible {
1599
+ public func asURLRequest() throws -> Foundation.URLRequest
1600
+ }
1601
+ extension URLRequest {
1602
+ public init(url: identomat.URLConvertible, method: identomat.HTTPMethod, headers: identomat.HTTPHeaders? = nil) throws
1603
+ }
1604
+ public struct HTTPHeaders {
1605
+ public init()
1606
+ public init(_ headers: [identomat.HTTPHeader])
1607
+ public init(_ dictionary: [Swift.String : Swift.String])
1608
+ public mutating func add(name: Swift.String, value: Swift.String)
1609
+ public mutating func add(_ header: identomat.HTTPHeader)
1610
+ public mutating func update(name: Swift.String, value: Swift.String)
1611
+ public mutating func update(_ header: identomat.HTTPHeader)
1612
+ public mutating func remove(name: Swift.String)
1613
+ public mutating func sort()
1614
+ public func sorted() -> identomat.HTTPHeaders
1615
+ public func value(for name: Swift.String) -> Swift.String?
1616
+ public subscript(name: Swift.String) -> Swift.String? {
1617
+ get
1618
+ set(newValue)
1619
+ }
1620
+ public var dictionary: [Swift.String : Swift.String] {
1621
+ get
1622
+ }
1623
+ }
1624
+ extension HTTPHeaders : Swift.ExpressibleByDictionaryLiteral {
1625
+ public init(dictionaryLiteral elements: (Swift.String, Swift.String)...)
1626
+ public typealias Key = Swift.String
1627
+ public typealias Value = Swift.String
1628
+ }
1629
+ extension HTTPHeaders : Swift.ExpressibleByArrayLiteral {
1630
+ public init(arrayLiteral elements: identomat.HTTPHeader...)
1631
+ public typealias ArrayLiteralElement = identomat.HTTPHeader
1632
+ }
1633
+ extension HTTPHeaders : Swift.Sequence {
1634
+ public func makeIterator() -> Swift.IndexingIterator<[identomat.HTTPHeader]>
1635
+ }
1636
+ extension HTTPHeaders : Swift.Collection {
1637
+ public var startIndex: Swift.Int {
1638
+ get
1639
+ }
1640
+ public var endIndex: Swift.Int {
1641
+ get
1642
+ }
1643
+ public subscript(position: Swift.Int) -> identomat.HTTPHeader {
1644
+ get
1645
+ }
1646
+ public func index(after i: Swift.Int) -> Swift.Int
1647
+ public typealias Element = identomat.HTTPHeader
1648
+ public typealias Index = Swift.Int
1649
+ public typealias Iterator = Swift.IndexingIterator<[identomat.HTTPHeader]>
1650
+ public typealias SubSequence = Swift.Slice<identomat.HTTPHeaders>
1651
+ public typealias Indices = Swift.DefaultIndices<identomat.HTTPHeaders>
1652
+ }
1653
+ extension HTTPHeaders : Swift.CustomStringConvertible {
1654
+ public var description: Swift.String {
1655
+ get
1656
+ }
1657
+ }
1658
+ public struct HTTPHeader : Swift.Hashable {
1659
+ public let name: Swift.String
1660
+ public let value: Swift.String
1661
+ public init(name: Swift.String, value: Swift.String)
1662
+ public var hashValue: Swift.Int {
1663
+ get
1664
+ }
1665
+ public func hash(into hasher: inout Swift.Hasher)
1666
+ public static func == (a: identomat.HTTPHeader, b: identomat.HTTPHeader) -> Swift.Bool
1667
+ }
1668
+ extension HTTPHeader : Swift.CustomStringConvertible {
1669
+ public var description: Swift.String {
1670
+ get
1671
+ }
1672
+ }
1673
+ extension HTTPHeader {
1674
+ public static func accept(_ value: Swift.String) -> identomat.HTTPHeader
1675
+ public static func acceptCharset(_ value: Swift.String) -> identomat.HTTPHeader
1676
+ public static func acceptLanguage(_ value: Swift.String) -> identomat.HTTPHeader
1677
+ public static func acceptEncoding(_ value: Swift.String) -> identomat.HTTPHeader
1678
+ public static func authorization(username: Swift.String, password: Swift.String) -> identomat.HTTPHeader
1679
+ public static func authorization(bearerToken: Swift.String) -> identomat.HTTPHeader
1680
+ public static func authorization(_ value: Swift.String) -> identomat.HTTPHeader
1681
+ public static func contentDisposition(_ value: Swift.String) -> identomat.HTTPHeader
1682
+ public static func contentType(_ value: Swift.String) -> identomat.HTTPHeader
1683
+ public static func userAgent(_ value: Swift.String) -> identomat.HTTPHeader
1684
+ }
1685
+ extension HTTPHeaders {
1686
+ public static var `default`: identomat.HTTPHeaders
1687
+ }
1688
+ extension HTTPHeader {
1689
+ public static var defaultAcceptEncoding: identomat.HTTPHeader
1690
+ public static var defaultAcceptLanguage: identomat.HTTPHeader
1691
+ public static var defaultUserAgent: identomat.HTTPHeader
1692
+ }
1693
+ extension URLRequest {
1694
+ public var headers: identomat.HTTPHeaders {
1695
+ get
1696
+ set(newValue)
1697
+ }
1698
+ }
1699
+ extension HTTPURLResponse {
1700
+ public var headers: identomat.HTTPHeaders {
1701
+ get
1702
+ }
1703
+ }
1704
+ extension URLSessionConfiguration {
1705
+ public var headers: identomat.HTTPHeaders {
1706
+ get
1707
+ set(newValue)
1708
+ }
1709
+ }
1710
+ public protocol CachedResponseHandler {
1711
+ func dataTask(_ task: Foundation.URLSessionDataTask, willCacheResponse response: Foundation.CachedURLResponse, completion: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
1712
+ }
1713
+ public struct ResponseCacher {
1714
+ public enum Behavior {
1715
+ case cache
1716
+ case doNotCache
1717
+ case modify((Foundation.URLSessionDataTask, Foundation.CachedURLResponse) -> Foundation.CachedURLResponse?)
1718
+ }
1719
+ public static var cache: identomat.ResponseCacher
1720
+ public static var doNotCache: identomat.ResponseCacher
1721
+ public let behavior: identomat.ResponseCacher.Behavior
1722
+ public init(behavior: identomat.ResponseCacher.Behavior)
1723
+ }
1724
+ extension ResponseCacher : identomat.CachedResponseHandler {
1725
+ public func dataTask(_ task: Foundation.URLSessionDataTask, willCacheResponse response: Foundation.CachedURLResponse, completion: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
1726
+ }
1727
+ @_hasMissingDesignatedInitializers open class NetworkReachabilityManager {
1728
+ public enum NetworkReachabilityStatus {
1729
+ case unknown
1730
+ case notReachable
1731
+ case reachable(identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType)
1732
+ public enum ConnectionType {
1733
+ case ethernetOrWiFi
1734
+ case cellular
1735
+ public static func == (a: identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType, b: identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType) -> Swift.Bool
1736
+ public var hashValue: Swift.Int {
1737
+ get
1738
+ }
1739
+ public func hash(into hasher: inout Swift.Hasher)
1740
+ }
1741
+ }
1742
+ public typealias Listener = (identomat.NetworkReachabilityManager.NetworkReachabilityStatus) -> Swift.Void
1743
+ public static var `default`: identomat.NetworkReachabilityManager?
1744
+ open var isReachable: Swift.Bool {
1745
+ get
1746
+ }
1747
+ open var isReachableOnCellular: Swift.Bool {
1748
+ get
1749
+ }
1750
+ open var isReachableOnEthernetOrWiFi: Swift.Bool {
1751
+ get
1752
+ }
1753
+ final public let reachabilityQueue: Dispatch.DispatchQueue
1754
+ open var flags: SystemConfiguration.SCNetworkReachabilityFlags? {
1755
+ get
1756
+ }
1757
+ open var status: identomat.NetworkReachabilityManager.NetworkReachabilityStatus {
1758
+ get
1759
+ }
1760
+ public convenience init?(host: Swift.String)
1761
+ public convenience init?()
1762
+ @objc deinit
1763
+ @discardableResult
1764
+ open func startListening(onQueue queue: Dispatch.DispatchQueue = .main, onUpdatePerforming listener: @escaping identomat.NetworkReachabilityManager.Listener) -> Swift.Bool
1765
+ open func stopListening()
1766
+ }
1767
+ extension NetworkReachabilityManager.NetworkReachabilityStatus : Swift.Equatable {
1768
+ public static func == (a: identomat.NetworkReachabilityManager.NetworkReachabilityStatus, b: identomat.NetworkReachabilityManager.NetworkReachabilityStatus) -> Swift.Bool
1769
+ }
1770
+ open class RetryPolicy : identomat.RequestInterceptor {
1771
+ public static var defaultRetryLimit: Swift.UInt
1772
+ public static var defaultExponentialBackoffBase: Swift.UInt
1773
+ public static var defaultExponentialBackoffScale: Swift.Double
1774
+ public static var defaultRetryableHTTPMethods: Swift.Set<identomat.HTTPMethod>
1775
+ public static var defaultRetryableHTTPStatusCodes: Swift.Set<Swift.Int>
1776
+ public static var defaultRetryableURLErrorCodes: Swift.Set<Foundation.URLError.Code>
1777
+ final public let retryLimit: Swift.UInt
1778
+ final public let exponentialBackoffBase: Swift.UInt
1779
+ final public let exponentialBackoffScale: Swift.Double
1780
+ final public let retryableHTTPMethods: Swift.Set<identomat.HTTPMethod>
1781
+ final public let retryableHTTPStatusCodes: Swift.Set<Swift.Int>
1782
+ final public let retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code>
1783
+ public init(retryLimit: Swift.UInt = RetryPolicy.defaultRetryLimit, exponentialBackoffBase: Swift.UInt = RetryPolicy.defaultExponentialBackoffBase, exponentialBackoffScale: Swift.Double = RetryPolicy.defaultExponentialBackoffScale, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = RetryPolicy.defaultRetryableHTTPMethods, retryableHTTPStatusCodes: Swift.Set<Swift.Int> = RetryPolicy.defaultRetryableHTTPStatusCodes, retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code> = RetryPolicy.defaultRetryableURLErrorCodes)
1784
+ open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
1785
+ open func shouldRetry(request: identomat.Request, dueTo error: Swift.Error) -> Swift.Bool
1786
+ @objc deinit
1787
+ }
1788
+ open class ConnectionLostRetryPolicy : identomat.RetryPolicy {
1789
+ public init(retryLimit: Swift.UInt = RetryPolicy.defaultRetryLimit, exponentialBackoffBase: Swift.UInt = RetryPolicy.defaultExponentialBackoffBase, exponentialBackoffScale: Swift.Double = RetryPolicy.defaultExponentialBackoffScale, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = RetryPolicy.defaultRetryableHTTPMethods)
1790
+ @objc deinit
1791
+ override public init(retryLimit: Swift.UInt = super, exponentialBackoffBase: Swift.UInt = super, exponentialBackoffScale: Swift.Double = super, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = super, retryableHTTPStatusCodes: Swift.Set<Swift.Int> = super, retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code> = super)
1792
+ }
1793
+ extension Request {
1794
+ public static var didResumeNotification: Foundation.Notification.Name
1795
+ public static var didSuspendNotification: Foundation.Notification.Name
1796
+ public static var didCancelNotification: Foundation.Notification.Name
1797
+ public static var didFinishNotification: Foundation.Notification.Name
1798
+ public static var didResumeTaskNotification: Foundation.Notification.Name
1799
+ public static var didSuspendTaskNotification: Foundation.Notification.Name
1800
+ public static var didCancelTaskNotification: Foundation.Notification.Name
1801
+ public static var didCompleteTaskNotification: Foundation.Notification.Name
1802
+ }
1803
+ extension Notification {
1804
+ public var request: identomat.Request? {
1805
+ get
1806
+ }
1807
+ }
1808
+ @_hasMissingDesignatedInitializers final public class AlamofireNotifications : identomat.EventMonitor {
1809
+ final public func requestDidResume(_ request: identomat.Request)
1810
+ final public func requestDidSuspend(_ request: identomat.Request)
1811
+ final public func requestDidCancel(_ request: identomat.Request)
1812
+ final public func requestDidFinish(_ request: identomat.Request)
1813
+ final public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
1814
+ final public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
1815
+ final public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
1816
+ final public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
1817
+ @objc deinit
1818
+ }
1819
+ public struct AlamofireExtension<ExtendedType> {
1820
+ public var type: ExtendedType {
1821
+ get
1822
+ }
1823
+ public init(_ type: ExtendedType)
1824
+ }
1825
+ public protocol AlamofireExtended {
1826
+ associatedtype ExtendedType
1827
+ static var af: identomat.AlamofireExtension<Self.ExtendedType>.Type { get set }
1828
+ var af: identomat.AlamofireExtension<Self.ExtendedType> { get set }
1829
+ }
1830
+ extension AlamofireExtended {
1831
+ public static var af: identomat.AlamofireExtension<Self>.Type {
1832
+ get
1833
+ set(newValue)
1834
+ }
1835
+ public var af: identomat.AlamofireExtension<Self> {
1836
+ get
1837
+ set(newValue)
1838
+ }
1839
+ }
1840
+ @objc open class SessionDelegate : ObjectiveC.NSObject {
1841
+ public init(fileManager: Foundation.FileManager = .default)
1842
+ @objc deinit
1843
+ @objc override dynamic public init()
1844
+ }
1845
+ extension SessionDelegate : Foundation.URLSessionDelegate {
1846
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
1847
+ }
1848
+ extension SessionDelegate : Foundation.URLSessionTaskDelegate {
1849
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge, completionHandler: @escaping (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void)
1850
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
1851
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, needNewBodyStream completionHandler: @escaping (Foundation.InputStream?) -> Swift.Void)
1852
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest, completionHandler: @escaping (Foundation.URLRequest?) -> Swift.Void)
1853
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
1854
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
1855
+ @available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
1856
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
1857
+ }
1858
+ extension SessionDelegate : Foundation.URLSessionDataDelegate {
1859
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
1860
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse, completionHandler: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
1861
+ }
1862
+ extension SessionDelegate : Foundation.URLSessionDownloadDelegate {
1863
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
1864
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
1865
+ @objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
1866
+ }