@snaplyagent/react-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/LICENSE +7 -0
- package/README.md +133 -2
- package/SnaplyAgentReactNative.podspec +24 -0
- package/android/build.gradle +33 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentModule.kt +98 -0
- package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentPackage.kt +26 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/Info.plist +44 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +382 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Info.plist +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftinterface +168 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/SnaplyAgent +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +760 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Info.plist +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftinterface +168 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +168 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/module.modulemap +3 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/SnaplyAgent +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/_CodeSignature/CodeResources +233 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
- package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
- package/ios/Sources/SnaplyAgentModule.h +5 -0
- package/ios/Sources/SnaplyAgentModule.mm +132 -0
- package/ios/Sources/SnaplyBridge.swift +118 -0
- package/lib/SnaplyRedact.d.ts +9 -0
- package/lib/index.d.ts +71 -0
- package/lib/index.js +1 -0
- package/package.json +43 -4
- package/spec/NativeSnaplyAgent.ts +39 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name SnaplyAgent
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
|
+
import CoreImage
|
|
6
|
+
import CryptoKit
|
|
7
|
+
import Foundation
|
|
8
|
+
import MachO
|
|
9
|
+
import Network
|
|
10
|
+
import ObjectiveC
|
|
11
|
+
import ReplayKit
|
|
12
|
+
import Security
|
|
13
|
+
import Swift
|
|
14
|
+
import SwiftUI
|
|
15
|
+
import UIKit
|
|
16
|
+
import _Concurrency
|
|
17
|
+
import _StringProcessing
|
|
18
|
+
import _SwiftConcurrencyShims
|
|
19
|
+
import os
|
|
20
|
+
public struct SnaplyRedaction {
|
|
21
|
+
public var color: UIKit.UIColor
|
|
22
|
+
public var label: Swift.String
|
|
23
|
+
public var labelColor: UIKit.UIColor
|
|
24
|
+
public init(color: UIKit.UIColor = UIColor(red: 226 / 255, green: 59 / 255, blue: 55 / 255, alpha: 1), label: Swift.String = "REDACTED", labelColor: UIKit.UIColor = .white)
|
|
25
|
+
}
|
|
26
|
+
extension UIKit.UIView {
|
|
27
|
+
@_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil)
|
|
28
|
+
@_Concurrency.MainActor @preconcurrency public var isSnaplyRedacted: Swift.Bool {
|
|
29
|
+
get
|
|
30
|
+
set
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
extension SwiftUICore.View {
|
|
34
|
+
@_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil) -> some SwiftUICore.View
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
public protocol SnaplyHostedView : AnyObject {
|
|
38
|
+
var providesSnapshot: Swift.Bool { get }
|
|
39
|
+
var controlMode: SnaplyAgent.SnaplyHostedControlMode { get }
|
|
40
|
+
@_Concurrency.MainActor func snapshot(_ request: SnaplyAgent.SnaplyHostedSnapshotRequest, completion: @escaping (SnaplyAgent.SnaplyHostedSnapshot?) -> Swift.Void)
|
|
41
|
+
@_Concurrency.MainActor func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
|
|
42
|
+
}
|
|
43
|
+
extension SnaplyAgent.SnaplyHostedView {
|
|
44
|
+
public var providesSnapshot: Swift.Bool {
|
|
45
|
+
get
|
|
46
|
+
}
|
|
47
|
+
public var controlMode: SnaplyAgent.SnaplyHostedControlMode {
|
|
48
|
+
get
|
|
49
|
+
}
|
|
50
|
+
@_Concurrency.MainActor public func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
|
|
51
|
+
}
|
|
52
|
+
public enum SnaplyHostedControlMode {
|
|
53
|
+
case none
|
|
54
|
+
case fallback
|
|
55
|
+
case exclusive
|
|
56
|
+
public static func == (a: SnaplyAgent.SnaplyHostedControlMode, b: SnaplyAgent.SnaplyHostedControlMode) -> Swift.Bool
|
|
57
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
58
|
+
public var hashValue: Swift.Int {
|
|
59
|
+
get
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
public struct SnaplyHostedSnapshotRequest {
|
|
63
|
+
public let width: Swift.Int
|
|
64
|
+
public let height: Swift.Int
|
|
65
|
+
public let rules: [SnaplyAgent.SnaplyRedactionRule]
|
|
66
|
+
}
|
|
67
|
+
public struct SnaplyHostedSnapshot {
|
|
68
|
+
public let image: CoreGraphics.CGImage
|
|
69
|
+
public let redactions: [SnaplyAgent.SnaplyHostedRedaction]
|
|
70
|
+
public init(image: CoreGraphics.CGImage, redactions: [SnaplyAgent.SnaplyHostedRedaction] = [])
|
|
71
|
+
}
|
|
72
|
+
public struct SnaplyHostedRedaction {
|
|
73
|
+
public let bounds: CoreFoundation.CGRect
|
|
74
|
+
public let label: Swift.String?
|
|
75
|
+
public init(bounds: CoreFoundation.CGRect, label: Swift.String? = nil)
|
|
76
|
+
}
|
|
77
|
+
public struct SnaplyHostedInput {
|
|
78
|
+
public enum Action {
|
|
79
|
+
case tap
|
|
80
|
+
case scroll
|
|
81
|
+
case type
|
|
82
|
+
case key
|
|
83
|
+
public static func == (a: SnaplyAgent.SnaplyHostedInput.Action, b: SnaplyAgent.SnaplyHostedInput.Action) -> Swift.Bool
|
|
84
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
85
|
+
public var hashValue: Swift.Int {
|
|
86
|
+
get
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
public let action: SnaplyAgent.SnaplyHostedInput.Action
|
|
90
|
+
public let point: CoreFoundation.CGPoint
|
|
91
|
+
public let delta: CoreFoundation.CGPoint
|
|
92
|
+
public let text: Swift.String?
|
|
93
|
+
public let key: Swift.String?
|
|
94
|
+
}
|
|
95
|
+
public struct SnaplyRedactionRule {
|
|
96
|
+
public static let kindIdentifier: Swift.String
|
|
97
|
+
public static let kindText: Swift.String
|
|
98
|
+
public let kind: Swift.String
|
|
99
|
+
public let value: Swift.String
|
|
100
|
+
public let label: Swift.String?
|
|
101
|
+
}
|
|
102
|
+
public enum Snaply {
|
|
103
|
+
public static func configure(key: Swift.String, environment: SnaplyAgent.SnaplyEnvironment = .live, user: SnaplyAgent.SnaplyUser? = nil, collectVendorId: Swift.Bool = true, language: Swift.String = "en") async throws
|
|
104
|
+
public static func configure(key: Swift.String, environment: SnaplyAgent.SnaplyEnvironment = .live, user: SnaplyAgent.SnaplyUser? = nil, collectVendorId: Swift.Bool = true, language: Swift.String = "en", completion: (((any Swift.Error)?) -> Swift.Void)? = nil)
|
|
105
|
+
public static func on(_ callbacks: SnaplyAgent.SnaplyCallbacks)
|
|
106
|
+
public static func setRedactionStyle(_ style: SnaplyAgent.SnaplyRedaction)
|
|
107
|
+
@_Concurrency.MainActor public static func registerHostedView(_ view: UIKit.UIView, host: (any SnaplyAgent.SnaplyHostedView)?)
|
|
108
|
+
public static func identify(id: Swift.String, name: Swift.String? = nil, phone: Swift.String? = nil, identitySignature: Swift.String? = nil)
|
|
109
|
+
public static func reset()
|
|
110
|
+
public static func supportCode() -> Swift.String?
|
|
111
|
+
public static func showSupportCode()
|
|
112
|
+
public static func stop()
|
|
113
|
+
}
|
|
114
|
+
public enum CaptureMode : Swift.String, Swift.Codable {
|
|
115
|
+
case askEveryTime
|
|
116
|
+
case perSession
|
|
117
|
+
case liveView
|
|
118
|
+
case wholeScreen
|
|
119
|
+
public init?(rawValue: Swift.String)
|
|
120
|
+
public typealias RawValue = Swift.String
|
|
121
|
+
public var rawValue: Swift.String {
|
|
122
|
+
get
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
public struct SnaplyUser {
|
|
126
|
+
public let id: Swift.String
|
|
127
|
+
public let name: Swift.String?
|
|
128
|
+
public init(id: Swift.String, name: Swift.String? = nil)
|
|
129
|
+
}
|
|
130
|
+
public struct CaptureResult : Swift.Codable {
|
|
131
|
+
public let captureId: Swift.String
|
|
132
|
+
public let imageUrl: Swift.String
|
|
133
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
134
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
135
|
+
}
|
|
136
|
+
public struct SnaplyError : Swift.Error {
|
|
137
|
+
public let status: Swift.Int
|
|
138
|
+
public let code: Swift.String
|
|
139
|
+
public let message: Swift.String
|
|
140
|
+
}
|
|
141
|
+
public struct LiveSession {
|
|
142
|
+
public let sessionId: Swift.String
|
|
143
|
+
}
|
|
144
|
+
public struct SnaplyCallbacks {
|
|
145
|
+
public var onRequestShown: (() -> Swift.Void)?
|
|
146
|
+
public var onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)?
|
|
147
|
+
public var onDenied: (() -> Swift.Void)?
|
|
148
|
+
public var onExpired: (() -> Swift.Void)?
|
|
149
|
+
public var onError: ((any Swift.Error) -> Swift.Void)?
|
|
150
|
+
public var onRemoteControl: ((Swift.Bool) -> Swift.Void)?
|
|
151
|
+
public var onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)?
|
|
152
|
+
public init(onRequestShown: (() -> Swift.Void)? = nil, onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)? = nil, onDenied: (() -> Swift.Void)? = nil, onExpired: (() -> Swift.Void)? = nil, onError: ((any Swift.Error) -> Swift.Void)? = nil, onRemoteControl: ((Swift.Bool) -> Swift.Void)? = nil, onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)? = nil)
|
|
153
|
+
}
|
|
154
|
+
public enum SnaplyEnvironment {
|
|
155
|
+
case live
|
|
156
|
+
case custom(Foundation.URL, serverKeys: [Swift.String])
|
|
157
|
+
public static let developmentMaster: Swift.String
|
|
158
|
+
public var url: Foundation.URL {
|
|
159
|
+
get
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
extension SnaplyAgent.SnaplyHostedControlMode : Swift.Equatable {}
|
|
163
|
+
extension SnaplyAgent.SnaplyHostedControlMode : Swift.Hashable {}
|
|
164
|
+
extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Equatable {}
|
|
165
|
+
extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Hashable {}
|
|
166
|
+
extension SnaplyAgent.CaptureMode : Swift.Equatable {}
|
|
167
|
+
extension SnaplyAgent.CaptureMode : Swift.Hashable {}
|
|
168
|
+
extension SnaplyAgent.CaptureMode : Swift.RawRepresentable {}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name SnaplyAgent
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
|
+
import CoreImage
|
|
6
|
+
import CryptoKit
|
|
7
|
+
import Foundation
|
|
8
|
+
import MachO
|
|
9
|
+
import Network
|
|
10
|
+
import ObjectiveC
|
|
11
|
+
import ReplayKit
|
|
12
|
+
import Security
|
|
13
|
+
import Swift
|
|
14
|
+
import SwiftUI
|
|
15
|
+
import UIKit
|
|
16
|
+
import _Concurrency
|
|
17
|
+
import _StringProcessing
|
|
18
|
+
import _SwiftConcurrencyShims
|
|
19
|
+
import os
|
|
20
|
+
public struct SnaplyRedaction {
|
|
21
|
+
public var color: UIKit.UIColor
|
|
22
|
+
public var label: Swift.String
|
|
23
|
+
public var labelColor: UIKit.UIColor
|
|
24
|
+
public init(color: UIKit.UIColor = UIColor(red: 226 / 255, green: 59 / 255, blue: 55 / 255, alpha: 1), label: Swift.String = "REDACTED", labelColor: UIKit.UIColor = .white)
|
|
25
|
+
}
|
|
26
|
+
extension UIKit.UIView {
|
|
27
|
+
@_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil)
|
|
28
|
+
@_Concurrency.MainActor @preconcurrency public var isSnaplyRedacted: Swift.Bool {
|
|
29
|
+
get
|
|
30
|
+
set
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
extension SwiftUICore.View {
|
|
34
|
+
@_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil) -> some SwiftUICore.View
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
public protocol SnaplyHostedView : AnyObject {
|
|
38
|
+
var providesSnapshot: Swift.Bool { get }
|
|
39
|
+
var controlMode: SnaplyAgent.SnaplyHostedControlMode { get }
|
|
40
|
+
@_Concurrency.MainActor func snapshot(_ request: SnaplyAgent.SnaplyHostedSnapshotRequest, completion: @escaping (SnaplyAgent.SnaplyHostedSnapshot?) -> Swift.Void)
|
|
41
|
+
@_Concurrency.MainActor func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
|
|
42
|
+
}
|
|
43
|
+
extension SnaplyAgent.SnaplyHostedView {
|
|
44
|
+
public var providesSnapshot: Swift.Bool {
|
|
45
|
+
get
|
|
46
|
+
}
|
|
47
|
+
public var controlMode: SnaplyAgent.SnaplyHostedControlMode {
|
|
48
|
+
get
|
|
49
|
+
}
|
|
50
|
+
@_Concurrency.MainActor public func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
|
|
51
|
+
}
|
|
52
|
+
public enum SnaplyHostedControlMode {
|
|
53
|
+
case none
|
|
54
|
+
case fallback
|
|
55
|
+
case exclusive
|
|
56
|
+
public static func == (a: SnaplyAgent.SnaplyHostedControlMode, b: SnaplyAgent.SnaplyHostedControlMode) -> Swift.Bool
|
|
57
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
58
|
+
public var hashValue: Swift.Int {
|
|
59
|
+
get
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
public struct SnaplyHostedSnapshotRequest {
|
|
63
|
+
public let width: Swift.Int
|
|
64
|
+
public let height: Swift.Int
|
|
65
|
+
public let rules: [SnaplyAgent.SnaplyRedactionRule]
|
|
66
|
+
}
|
|
67
|
+
public struct SnaplyHostedSnapshot {
|
|
68
|
+
public let image: CoreGraphics.CGImage
|
|
69
|
+
public let redactions: [SnaplyAgent.SnaplyHostedRedaction]
|
|
70
|
+
public init(image: CoreGraphics.CGImage, redactions: [SnaplyAgent.SnaplyHostedRedaction] = [])
|
|
71
|
+
}
|
|
72
|
+
public struct SnaplyHostedRedaction {
|
|
73
|
+
public let bounds: CoreFoundation.CGRect
|
|
74
|
+
public let label: Swift.String?
|
|
75
|
+
public init(bounds: CoreFoundation.CGRect, label: Swift.String? = nil)
|
|
76
|
+
}
|
|
77
|
+
public struct SnaplyHostedInput {
|
|
78
|
+
public enum Action {
|
|
79
|
+
case tap
|
|
80
|
+
case scroll
|
|
81
|
+
case type
|
|
82
|
+
case key
|
|
83
|
+
public static func == (a: SnaplyAgent.SnaplyHostedInput.Action, b: SnaplyAgent.SnaplyHostedInput.Action) -> Swift.Bool
|
|
84
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
85
|
+
public var hashValue: Swift.Int {
|
|
86
|
+
get
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
public let action: SnaplyAgent.SnaplyHostedInput.Action
|
|
90
|
+
public let point: CoreFoundation.CGPoint
|
|
91
|
+
public let delta: CoreFoundation.CGPoint
|
|
92
|
+
public let text: Swift.String?
|
|
93
|
+
public let key: Swift.String?
|
|
94
|
+
}
|
|
95
|
+
public struct SnaplyRedactionRule {
|
|
96
|
+
public static let kindIdentifier: Swift.String
|
|
97
|
+
public static let kindText: Swift.String
|
|
98
|
+
public let kind: Swift.String
|
|
99
|
+
public let value: Swift.String
|
|
100
|
+
public let label: Swift.String?
|
|
101
|
+
}
|
|
102
|
+
public enum Snaply {
|
|
103
|
+
public static func configure(key: Swift.String, environment: SnaplyAgent.SnaplyEnvironment = .live, user: SnaplyAgent.SnaplyUser? = nil, collectVendorId: Swift.Bool = true, language: Swift.String = "en") async throws
|
|
104
|
+
public static func configure(key: Swift.String, environment: SnaplyAgent.SnaplyEnvironment = .live, user: SnaplyAgent.SnaplyUser? = nil, collectVendorId: Swift.Bool = true, language: Swift.String = "en", completion: (((any Swift.Error)?) -> Swift.Void)? = nil)
|
|
105
|
+
public static func on(_ callbacks: SnaplyAgent.SnaplyCallbacks)
|
|
106
|
+
public static func setRedactionStyle(_ style: SnaplyAgent.SnaplyRedaction)
|
|
107
|
+
@_Concurrency.MainActor public static func registerHostedView(_ view: UIKit.UIView, host: (any SnaplyAgent.SnaplyHostedView)?)
|
|
108
|
+
public static func identify(id: Swift.String, name: Swift.String? = nil, phone: Swift.String? = nil, identitySignature: Swift.String? = nil)
|
|
109
|
+
public static func reset()
|
|
110
|
+
public static func supportCode() -> Swift.String?
|
|
111
|
+
public static func showSupportCode()
|
|
112
|
+
public static func stop()
|
|
113
|
+
}
|
|
114
|
+
public enum CaptureMode : Swift.String, Swift.Codable {
|
|
115
|
+
case askEveryTime
|
|
116
|
+
case perSession
|
|
117
|
+
case liveView
|
|
118
|
+
case wholeScreen
|
|
119
|
+
public init?(rawValue: Swift.String)
|
|
120
|
+
public typealias RawValue = Swift.String
|
|
121
|
+
public var rawValue: Swift.String {
|
|
122
|
+
get
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
public struct SnaplyUser {
|
|
126
|
+
public let id: Swift.String
|
|
127
|
+
public let name: Swift.String?
|
|
128
|
+
public init(id: Swift.String, name: Swift.String? = nil)
|
|
129
|
+
}
|
|
130
|
+
public struct CaptureResult : Swift.Codable {
|
|
131
|
+
public let captureId: Swift.String
|
|
132
|
+
public let imageUrl: Swift.String
|
|
133
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
134
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
135
|
+
}
|
|
136
|
+
public struct SnaplyError : Swift.Error {
|
|
137
|
+
public let status: Swift.Int
|
|
138
|
+
public let code: Swift.String
|
|
139
|
+
public let message: Swift.String
|
|
140
|
+
}
|
|
141
|
+
public struct LiveSession {
|
|
142
|
+
public let sessionId: Swift.String
|
|
143
|
+
}
|
|
144
|
+
public struct SnaplyCallbacks {
|
|
145
|
+
public var onRequestShown: (() -> Swift.Void)?
|
|
146
|
+
public var onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)?
|
|
147
|
+
public var onDenied: (() -> Swift.Void)?
|
|
148
|
+
public var onExpired: (() -> Swift.Void)?
|
|
149
|
+
public var onError: ((any Swift.Error) -> Swift.Void)?
|
|
150
|
+
public var onRemoteControl: ((Swift.Bool) -> Swift.Void)?
|
|
151
|
+
public var onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)?
|
|
152
|
+
public init(onRequestShown: (() -> Swift.Void)? = nil, onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)? = nil, onDenied: (() -> Swift.Void)? = nil, onExpired: (() -> Swift.Void)? = nil, onError: ((any Swift.Error) -> Swift.Void)? = nil, onRemoteControl: ((Swift.Bool) -> Swift.Void)? = nil, onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)? = nil)
|
|
153
|
+
}
|
|
154
|
+
public enum SnaplyEnvironment {
|
|
155
|
+
case live
|
|
156
|
+
case custom(Foundation.URL, serverKeys: [Swift.String])
|
|
157
|
+
public static let developmentMaster: Swift.String
|
|
158
|
+
public var url: Foundation.URL {
|
|
159
|
+
get
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
extension SnaplyAgent.SnaplyHostedControlMode : Swift.Equatable {}
|
|
163
|
+
extension SnaplyAgent.SnaplyHostedControlMode : Swift.Hashable {}
|
|
164
|
+
extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Equatable {}
|
|
165
|
+
extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Hashable {}
|
|
166
|
+
extension SnaplyAgent.CaptureMode : Swift.Equatable {}
|
|
167
|
+
extension SnaplyAgent.CaptureMode : Swift.Hashable {}
|
|
168
|
+
extension SnaplyAgent.CaptureMode : Swift.RawRepresentable {}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<!--
|
|
4
|
+
PrivacyInfo.xcprivacy — SnaplyAgent iOS SDK
|
|
5
|
+
|
|
6
|
+
Apple requires a privacy manifest from every third-party SDK, and requires the host app to
|
|
7
|
+
aggregate ours into its own nutrition label. Two things are declared here:
|
|
8
|
+
|
|
9
|
+
1. NSPrivacyAccessedAPITypes — the "required reason" APIs we call. UserDefaults is one; the SDK
|
|
10
|
+
stores `installId` there (a random UUID scoped to this app + product key) so a device stays
|
|
11
|
+
recognisable across cold launches. CA92.1 is the correct reason: access is limited to this
|
|
12
|
+
app's own defaults, never an app-group container.
|
|
13
|
+
|
|
14
|
+
2. NSPrivacyCollectedDataTypes — what the SDK sends. NSPrivacyCollectedDataTypeDeviceID is
|
|
15
|
+
declared because the SDK CAN send the vendor identifier (IDFV), and a manifest must describe
|
|
16
|
+
what the code is capable of, not what one integration happened to enable. It is ON by default;
|
|
17
|
+
an app opts out with `Snaply.configure(collectVendorId: false)`. Because it is on by default,
|
|
18
|
+
the host app must declare Identifiers → Device ID in its own App Privacy label — Apple reviews
|
|
19
|
+
the app, and this manifest covers only the SDK.
|
|
20
|
+
|
|
21
|
+
Every entry is Tracking=false and has NO NSPrivacyCollectedDataTypeTracking domains: nothing here
|
|
22
|
+
is linked to third-party data or used for advertising. The data serves the support session the
|
|
23
|
+
user has already consented to, inside the customer's own workspace.
|
|
24
|
+
-->
|
|
25
|
+
<plist version="1.0">
|
|
26
|
+
<dict>
|
|
27
|
+
<key>NSPrivacyTracking</key>
|
|
28
|
+
<false/>
|
|
29
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
30
|
+
<array/>
|
|
31
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
32
|
+
<array>
|
|
33
|
+
<dict>
|
|
34
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
35
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
36
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
37
|
+
<array>
|
|
38
|
+
<!-- CA92.1: read/write only this app's own defaults. -->
|
|
39
|
+
<string>CA92.1</string>
|
|
40
|
+
</array>
|
|
41
|
+
</dict>
|
|
42
|
+
<dict>
|
|
43
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
44
|
+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
|
45
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
46
|
+
<array>
|
|
47
|
+
<!-- E174.1: free space shown to the support agent on the device-health card, so a
|
|
48
|
+
"the app keeps failing to save" call can be diagnosed. Displayed, never shipped
|
|
49
|
+
onward or used to derive an identifier. -->
|
|
50
|
+
<string>E174.1</string>
|
|
51
|
+
</array>
|
|
52
|
+
</dict>
|
|
53
|
+
<dict>
|
|
54
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
55
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
56
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
57
|
+
<array>
|
|
58
|
+
<!-- 35F9.1: ProcessInfo.systemUptime measures elapsed time inside the SDK — the live
|
|
59
|
+
frame pacing in SnaplyClient and the whole-screen capture's frame clock — and is
|
|
60
|
+
never sent, shown or combined into an identifier. Declared since 2.44.1 (audit
|
|
61
|
+
SEC-2610-71): 2.43.1 and 2.44.0 called it undeclared, and every host app's
|
|
62
|
+
upload failed with ITMS-91053. -->
|
|
63
|
+
<string>35F9.1</string>
|
|
64
|
+
</array>
|
|
65
|
+
</dict>
|
|
66
|
+
</array>
|
|
67
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
68
|
+
<array>
|
|
69
|
+
<dict>
|
|
70
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
71
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
72
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
73
|
+
<true/>
|
|
74
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
75
|
+
<false/>
|
|
76
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
77
|
+
<array>
|
|
78
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
79
|
+
</array>
|
|
80
|
+
</dict>
|
|
81
|
+
<!-- SEC-2609-51: `identify(id:name:phone:)` sends a user id, a name and a phone number, and
|
|
82
|
+
registration sends userId/userName. None of the three were declared. The manifest's own
|
|
83
|
+
rule, stated for DeviceID above, applies identically: it must describe what the code is
|
|
84
|
+
CAPABLE of, not what one integration happened to enable. Apple aggregates this file into
|
|
85
|
+
the host app's privacy label, so an undeclared-but-transmitted type is the host app's
|
|
86
|
+
accuracy problem, not only ours. -->
|
|
87
|
+
<dict>
|
|
88
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
89
|
+
<string>NSPrivacyCollectedDataTypeName</string>
|
|
90
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
91
|
+
<true/>
|
|
92
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
93
|
+
<false/>
|
|
94
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
95
|
+
<array>
|
|
96
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
97
|
+
</array>
|
|
98
|
+
</dict>
|
|
99
|
+
<dict>
|
|
100
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
101
|
+
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
|
|
102
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
103
|
+
<true/>
|
|
104
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
105
|
+
<false/>
|
|
106
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
107
|
+
<array>
|
|
108
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
109
|
+
</array>
|
|
110
|
+
</dict>
|
|
111
|
+
<dict>
|
|
112
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
113
|
+
<string>NSPrivacyCollectedDataTypeUserID</string>
|
|
114
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
115
|
+
<true/>
|
|
116
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
117
|
+
<false/>
|
|
118
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
119
|
+
<array>
|
|
120
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
121
|
+
</array>
|
|
122
|
+
</dict>
|
|
123
|
+
<dict>
|
|
124
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
125
|
+
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
|
|
126
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
127
|
+
<true/>
|
|
128
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
129
|
+
<false/>
|
|
130
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
131
|
+
<array>
|
|
132
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
133
|
+
</array>
|
|
134
|
+
</dict>
|
|
135
|
+
<dict>
|
|
136
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
137
|
+
<string>NSPrivacyCollectedDataTypePhotosorVideos</string>
|
|
138
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
139
|
+
<true/>
|
|
140
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
141
|
+
<false/>
|
|
142
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
143
|
+
<array>
|
|
144
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
145
|
+
</array>
|
|
146
|
+
</dict>
|
|
147
|
+
</array>
|
|
148
|
+
</dict>
|
|
149
|
+
</plist>
|