@snaplyagent/react-native 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +7 -0
  3. package/README.md +139 -2
  4. package/SnaplyAgentReactNative.podspec +24 -0
  5. package/android/build.gradle +33 -0
  6. package/android/src/main/AndroidManifest.xml +1 -0
  7. package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentModule.kt +104 -0
  8. package/android/src/main/java/com/snaplyagent/reactnative/SnaplyAgentPackage.kt +26 -0
  9. package/ios/Frameworks/SnaplyAgent.xcframework/Info.plist +44 -0
  10. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +382 -0
  11. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Info.plist +0 -0
  12. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios.swiftinterface +175 -0
  14. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/Modules/module.modulemap +3 -0
  15. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
  16. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/SnaplyAgent +0 -0
  17. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
  18. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
  19. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
  20. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Headers/SnaplyAgent-Swift.h +760 -0
  21. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Info.plist +0 -0
  22. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/arm64-apple-ios-simulator.swiftinterface +175 -0
  24. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  25. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/SnaplyAgent.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +175 -0
  26. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/Modules/module.modulemap +3 -0
  27. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/PrivacyInfo.xcprivacy +149 -0
  28. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/SnaplyAgent +0 -0
  29. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/_CodeSignature/CodeResources +233 -0
  30. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/en.lproj/Snaply.strings +0 -0
  31. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/hy.lproj/Snaply.strings +0 -0
  32. package/ios/Frameworks/SnaplyAgent.xcframework/ios-arm64_x86_64-simulator/SnaplyAgent.framework/ru.lproj/Snaply.strings +0 -0
  33. package/ios/Sources/SnaplyAgentModule.h +5 -0
  34. package/ios/Sources/SnaplyAgentModule.mm +142 -0
  35. package/ios/Sources/SnaplyBridge.swift +123 -0
  36. package/lib/SnaplyRedact.d.ts +9 -0
  37. package/lib/index.d.ts +86 -0
  38. package/lib/index.js +1 -0
  39. package/package.json +43 -4
  40. package/spec/NativeSnaplyAgent.ts +41 -0
@@ -0,0 +1,175 @@
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 enum CaptureMode : Swift.String, Swift.Codable {
21
+ case askEveryTime
22
+ case perSession
23
+ case liveView
24
+ case wholeScreen
25
+ public init?(rawValue: Swift.String)
26
+ public typealias RawValue = Swift.String
27
+ public var rawValue: Swift.String {
28
+ get
29
+ }
30
+ }
31
+ public struct SnaplyUser {
32
+ public let id: Swift.String
33
+ public let name: Swift.String?
34
+ public init(id: Swift.String, name: Swift.String? = nil)
35
+ }
36
+ public struct CaptureResult : Swift.Codable {
37
+ public let captureId: Swift.String
38
+ public let imageUrl: Swift.String
39
+ public func encode(to encoder: any Swift.Encoder) throws
40
+ public init(from decoder: any Swift.Decoder) throws
41
+ }
42
+ public struct SnaplyError : Swift.Error {
43
+ public let status: Swift.Int
44
+ public let code: Swift.String
45
+ public let message: Swift.String
46
+ }
47
+ public struct LiveSession {
48
+ public let sessionId: Swift.String
49
+ }
50
+ public struct SnaplyCallbacks {
51
+ public var onRequestShown: (() -> Swift.Void)?
52
+ public var onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)?
53
+ public var onDenied: (() -> Swift.Void)?
54
+ public var onExpired: (() -> Swift.Void)?
55
+ public var onError: ((any Swift.Error) -> Swift.Void)?
56
+ public var onRemoteControl: ((Swift.Bool) -> Swift.Void)?
57
+ public var onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)?
58
+ public var onLiveView: ((Swift.Bool) -> Swift.Void)?
59
+ 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, onLiveView: ((Swift.Bool) -> Swift.Void)? = nil)
60
+ }
61
+ public struct SnaplyRedaction {
62
+ public var color: UIKit.UIColor
63
+ public var label: Swift.String
64
+ public var labelColor: UIKit.UIColor
65
+ 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)
66
+ }
67
+ extension UIKit.UIView {
68
+ @_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil)
69
+ @_Concurrency.MainActor @preconcurrency public var isSnaplyRedacted: Swift.Bool {
70
+ get
71
+ set
72
+ }
73
+ }
74
+ extension SwiftUICore.View {
75
+ @_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil) -> some SwiftUICore.View
76
+
77
+ }
78
+ public protocol SnaplyHostedView : AnyObject {
79
+ var providesSnapshot: Swift.Bool { get }
80
+ var controlMode: SnaplyAgent.SnaplyHostedControlMode { get }
81
+ @_Concurrency.MainActor func snapshot(_ request: SnaplyAgent.SnaplyHostedSnapshotRequest, completion: @escaping (SnaplyAgent.SnaplyHostedSnapshot?) -> Swift.Void)
82
+ @_Concurrency.MainActor func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
83
+ }
84
+ extension SnaplyAgent.SnaplyHostedView {
85
+ public var providesSnapshot: Swift.Bool {
86
+ get
87
+ }
88
+ public var controlMode: SnaplyAgent.SnaplyHostedControlMode {
89
+ get
90
+ }
91
+ @_Concurrency.MainActor public func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
92
+ }
93
+ public enum SnaplyHostedControlMode {
94
+ case none
95
+ case fallback
96
+ case exclusive
97
+ public static func == (a: SnaplyAgent.SnaplyHostedControlMode, b: SnaplyAgent.SnaplyHostedControlMode) -> Swift.Bool
98
+ public func hash(into hasher: inout Swift.Hasher)
99
+ public var hashValue: Swift.Int {
100
+ get
101
+ }
102
+ }
103
+ public struct SnaplyHostedSnapshotRequest {
104
+ public let width: Swift.Int
105
+ public let height: Swift.Int
106
+ public let rules: [SnaplyAgent.SnaplyRedactionRule]
107
+ }
108
+ public struct SnaplyHostedSnapshot {
109
+ public let image: CoreGraphics.CGImage
110
+ public let redactions: [SnaplyAgent.SnaplyHostedRedaction]
111
+ public init(image: CoreGraphics.CGImage, redactions: [SnaplyAgent.SnaplyHostedRedaction] = [])
112
+ }
113
+ public struct SnaplyHostedRedaction {
114
+ public let bounds: CoreFoundation.CGRect
115
+ public let label: Swift.String?
116
+ public init(bounds: CoreFoundation.CGRect, label: Swift.String? = nil)
117
+ }
118
+ public struct SnaplyHostedInput {
119
+ public enum Action {
120
+ case tap
121
+ case scroll
122
+ case type
123
+ case key
124
+ public static func == (a: SnaplyAgent.SnaplyHostedInput.Action, b: SnaplyAgent.SnaplyHostedInput.Action) -> Swift.Bool
125
+ public func hash(into hasher: inout Swift.Hasher)
126
+ public var hashValue: Swift.Int {
127
+ get
128
+ }
129
+ }
130
+ public let action: SnaplyAgent.SnaplyHostedInput.Action
131
+ public let point: CoreFoundation.CGPoint
132
+ public let delta: CoreFoundation.CGPoint
133
+ public let text: Swift.String?
134
+ public let key: Swift.String?
135
+ }
136
+ public struct SnaplyRedactionRule {
137
+ public static let kindIdentifier: Swift.String
138
+ public static let kindText: Swift.String
139
+ public let kind: Swift.String
140
+ public let value: Swift.String
141
+ public let label: Swift.String?
142
+ }
143
+ public enum SnaplyEnvironment {
144
+ case live
145
+ case custom(Foundation.URL, serverKeys: [Swift.String])
146
+ public static let developmentMaster: Swift.String
147
+ public var url: Foundation.URL {
148
+ get
149
+ }
150
+ }
151
+ public enum Snaply {
152
+ 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
153
+ 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)
154
+ public static func on(_ callbacks: SnaplyAgent.SnaplyCallbacks)
155
+ public static var isLiveViewActive: Swift.Bool {
156
+ get
157
+ }
158
+ public static var isRemoteControlActive: Swift.Bool {
159
+ get
160
+ }
161
+ public static func setRedactionStyle(_ style: SnaplyAgent.SnaplyRedaction)
162
+ @_Concurrency.MainActor public static func registerHostedView(_ view: UIKit.UIView, host: (any SnaplyAgent.SnaplyHostedView)?)
163
+ public static func identify(id: Swift.String, name: Swift.String? = nil, phone: Swift.String? = nil, identitySignature: Swift.String? = nil)
164
+ public static func reset()
165
+ public static func supportCode() -> Swift.String?
166
+ public static func showSupportCode()
167
+ public static func stop()
168
+ }
169
+ extension SnaplyAgent.CaptureMode : Swift.Equatable {}
170
+ extension SnaplyAgent.CaptureMode : Swift.Hashable {}
171
+ extension SnaplyAgent.CaptureMode : Swift.RawRepresentable {}
172
+ extension SnaplyAgent.SnaplyHostedControlMode : Swift.Equatable {}
173
+ extension SnaplyAgent.SnaplyHostedControlMode : Swift.Hashable {}
174
+ extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Equatable {}
175
+ extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Hashable {}
@@ -0,0 +1,175 @@
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 enum CaptureMode : Swift.String, Swift.Codable {
21
+ case askEveryTime
22
+ case perSession
23
+ case liveView
24
+ case wholeScreen
25
+ public init?(rawValue: Swift.String)
26
+ public typealias RawValue = Swift.String
27
+ public var rawValue: Swift.String {
28
+ get
29
+ }
30
+ }
31
+ public struct SnaplyUser {
32
+ public let id: Swift.String
33
+ public let name: Swift.String?
34
+ public init(id: Swift.String, name: Swift.String? = nil)
35
+ }
36
+ public struct CaptureResult : Swift.Codable {
37
+ public let captureId: Swift.String
38
+ public let imageUrl: Swift.String
39
+ public func encode(to encoder: any Swift.Encoder) throws
40
+ public init(from decoder: any Swift.Decoder) throws
41
+ }
42
+ public struct SnaplyError : Swift.Error {
43
+ public let status: Swift.Int
44
+ public let code: Swift.String
45
+ public let message: Swift.String
46
+ }
47
+ public struct LiveSession {
48
+ public let sessionId: Swift.String
49
+ }
50
+ public struct SnaplyCallbacks {
51
+ public var onRequestShown: (() -> Swift.Void)?
52
+ public var onAllowed: ((SnaplyAgent.CaptureResult) -> Swift.Void)?
53
+ public var onDenied: (() -> Swift.Void)?
54
+ public var onExpired: (() -> Swift.Void)?
55
+ public var onError: ((any Swift.Error) -> Swift.Void)?
56
+ public var onRemoteControl: ((Swift.Bool) -> Swift.Void)?
57
+ public var onLiveEnded: ((SnaplyAgent.LiveSession) -> Swift.Void)?
58
+ public var onLiveView: ((Swift.Bool) -> Swift.Void)?
59
+ 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, onLiveView: ((Swift.Bool) -> Swift.Void)? = nil)
60
+ }
61
+ public struct SnaplyRedaction {
62
+ public var color: UIKit.UIColor
63
+ public var label: Swift.String
64
+ public var labelColor: UIKit.UIColor
65
+ 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)
66
+ }
67
+ extension UIKit.UIView {
68
+ @_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil)
69
+ @_Concurrency.MainActor @preconcurrency public var isSnaplyRedacted: Swift.Bool {
70
+ get
71
+ set
72
+ }
73
+ }
74
+ extension SwiftUICore.View {
75
+ @_Concurrency.MainActor @preconcurrency public func snaplyRedact(color: UIKit.UIColor? = nil, label: Swift.String? = nil, labelColor: UIKit.UIColor? = nil) -> some SwiftUICore.View
76
+
77
+ }
78
+ public protocol SnaplyHostedView : AnyObject {
79
+ var providesSnapshot: Swift.Bool { get }
80
+ var controlMode: SnaplyAgent.SnaplyHostedControlMode { get }
81
+ @_Concurrency.MainActor func snapshot(_ request: SnaplyAgent.SnaplyHostedSnapshotRequest, completion: @escaping (SnaplyAgent.SnaplyHostedSnapshot?) -> Swift.Void)
82
+ @_Concurrency.MainActor func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
83
+ }
84
+ extension SnaplyAgent.SnaplyHostedView {
85
+ public var providesSnapshot: Swift.Bool {
86
+ get
87
+ }
88
+ public var controlMode: SnaplyAgent.SnaplyHostedControlMode {
89
+ get
90
+ }
91
+ @_Concurrency.MainActor public func control(_ input: SnaplyAgent.SnaplyHostedInput) -> Swift.Bool
92
+ }
93
+ public enum SnaplyHostedControlMode {
94
+ case none
95
+ case fallback
96
+ case exclusive
97
+ public static func == (a: SnaplyAgent.SnaplyHostedControlMode, b: SnaplyAgent.SnaplyHostedControlMode) -> Swift.Bool
98
+ public func hash(into hasher: inout Swift.Hasher)
99
+ public var hashValue: Swift.Int {
100
+ get
101
+ }
102
+ }
103
+ public struct SnaplyHostedSnapshotRequest {
104
+ public let width: Swift.Int
105
+ public let height: Swift.Int
106
+ public let rules: [SnaplyAgent.SnaplyRedactionRule]
107
+ }
108
+ public struct SnaplyHostedSnapshot {
109
+ public let image: CoreGraphics.CGImage
110
+ public let redactions: [SnaplyAgent.SnaplyHostedRedaction]
111
+ public init(image: CoreGraphics.CGImage, redactions: [SnaplyAgent.SnaplyHostedRedaction] = [])
112
+ }
113
+ public struct SnaplyHostedRedaction {
114
+ public let bounds: CoreFoundation.CGRect
115
+ public let label: Swift.String?
116
+ public init(bounds: CoreFoundation.CGRect, label: Swift.String? = nil)
117
+ }
118
+ public struct SnaplyHostedInput {
119
+ public enum Action {
120
+ case tap
121
+ case scroll
122
+ case type
123
+ case key
124
+ public static func == (a: SnaplyAgent.SnaplyHostedInput.Action, b: SnaplyAgent.SnaplyHostedInput.Action) -> Swift.Bool
125
+ public func hash(into hasher: inout Swift.Hasher)
126
+ public var hashValue: Swift.Int {
127
+ get
128
+ }
129
+ }
130
+ public let action: SnaplyAgent.SnaplyHostedInput.Action
131
+ public let point: CoreFoundation.CGPoint
132
+ public let delta: CoreFoundation.CGPoint
133
+ public let text: Swift.String?
134
+ public let key: Swift.String?
135
+ }
136
+ public struct SnaplyRedactionRule {
137
+ public static let kindIdentifier: Swift.String
138
+ public static let kindText: Swift.String
139
+ public let kind: Swift.String
140
+ public let value: Swift.String
141
+ public let label: Swift.String?
142
+ }
143
+ public enum SnaplyEnvironment {
144
+ case live
145
+ case custom(Foundation.URL, serverKeys: [Swift.String])
146
+ public static let developmentMaster: Swift.String
147
+ public var url: Foundation.URL {
148
+ get
149
+ }
150
+ }
151
+ public enum Snaply {
152
+ 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
153
+ 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)
154
+ public static func on(_ callbacks: SnaplyAgent.SnaplyCallbacks)
155
+ public static var isLiveViewActive: Swift.Bool {
156
+ get
157
+ }
158
+ public static var isRemoteControlActive: Swift.Bool {
159
+ get
160
+ }
161
+ public static func setRedactionStyle(_ style: SnaplyAgent.SnaplyRedaction)
162
+ @_Concurrency.MainActor public static func registerHostedView(_ view: UIKit.UIView, host: (any SnaplyAgent.SnaplyHostedView)?)
163
+ public static func identify(id: Swift.String, name: Swift.String? = nil, phone: Swift.String? = nil, identitySignature: Swift.String? = nil)
164
+ public static func reset()
165
+ public static func supportCode() -> Swift.String?
166
+ public static func showSupportCode()
167
+ public static func stop()
168
+ }
169
+ extension SnaplyAgent.CaptureMode : Swift.Equatable {}
170
+ extension SnaplyAgent.CaptureMode : Swift.Hashable {}
171
+ extension SnaplyAgent.CaptureMode : Swift.RawRepresentable {}
172
+ extension SnaplyAgent.SnaplyHostedControlMode : Swift.Equatable {}
173
+ extension SnaplyAgent.SnaplyHostedControlMode : Swift.Hashable {}
174
+ extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Equatable {}
175
+ extension SnaplyAgent.SnaplyHostedInput.Action : Swift.Hashable {}
@@ -0,0 +1,3 @@
1
+ framework module SnaplyAgent {
2
+ header "SnaplyAgent-Swift.h"
3
+ }
@@ -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>