@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,382 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
4
+ #ifndef SNAPLYAGENT_SWIFT_H
5
+ #define SNAPLYAGENT_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif // defined(__OBJC__)
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
47
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
48
+ # include <ptrauth.h>
49
+ #else
50
+ #pragma clang diagnostic push
51
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
52
+ # ifndef __ptrauth_swift_value_witness_function_pointer
53
+ # define __ptrauth_swift_value_witness_function_pointer(x)
54
+ # endif
55
+ # ifndef __ptrauth_swift_class_method_pointer
56
+ # define __ptrauth_swift_class_method_pointer(x)
57
+ # endif
58
+ #pragma clang diagnostic pop
59
+ #endif
60
+ #pragma clang diagnostic pop
61
+ #endif
62
+
63
+ #if !defined(SWIFT_TYPEDEFS)
64
+ # define SWIFT_TYPEDEFS 1
65
+ # if __has_include(<uchar.h>)
66
+ # include <uchar.h>
67
+ # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
69
+ typedef uint_least16_t char16_t;
70
+ typedef uint_least32_t char32_t;
71
+ # endif
72
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
73
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
74
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
75
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
76
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
77
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
78
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
79
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
80
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
81
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
82
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
83
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
84
+ #endif
85
+
86
+ #if !defined(SWIFT_PASTE)
87
+ # define SWIFT_PASTE_HELPER(x, y) x##y
88
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
89
+ #endif
90
+ #if !defined(SWIFT_METATYPE)
91
+ # define SWIFT_METATYPE(X) Class
92
+ #endif
93
+ #if !defined(SWIFT_CLASS_PROPERTY)
94
+ # if __has_feature(objc_class_property)
95
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
96
+ # else
97
+ # define SWIFT_CLASS_PROPERTY(...)
98
+ # endif
99
+ #endif
100
+ #if !defined(SWIFT_RUNTIME_NAME)
101
+ # if __has_attribute(objc_runtime_name)
102
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
103
+ # else
104
+ # define SWIFT_RUNTIME_NAME(X)
105
+ # endif
106
+ #endif
107
+ #if !defined(SWIFT_COMPILE_NAME)
108
+ # if __has_attribute(swift_name)
109
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
110
+ # else
111
+ # define SWIFT_COMPILE_NAME(X)
112
+ # endif
113
+ #endif
114
+ #if !defined(SWIFT_METHOD_FAMILY)
115
+ # if __has_attribute(objc_method_family)
116
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
117
+ # else
118
+ # define SWIFT_METHOD_FAMILY(X)
119
+ # endif
120
+ #endif
121
+ #if !defined(SWIFT_NOESCAPE)
122
+ # if __has_attribute(noescape)
123
+ # define SWIFT_NOESCAPE __attribute__((noescape))
124
+ # else
125
+ # define SWIFT_NOESCAPE
126
+ # endif
127
+ #endif
128
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
129
+ # if __has_attribute(ns_consumed)
130
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
131
+ # else
132
+ # define SWIFT_RELEASES_ARGUMENT
133
+ # endif
134
+ #endif
135
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
136
+ # if __has_attribute(warn_unused_result)
137
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
138
+ # else
139
+ # define SWIFT_WARN_UNUSED_RESULT
140
+ # endif
141
+ #endif
142
+ #if !defined(SWIFT_NORETURN)
143
+ # if __has_attribute(noreturn)
144
+ # define SWIFT_NORETURN __attribute__((noreturn))
145
+ # else
146
+ # define SWIFT_NORETURN
147
+ # endif
148
+ #endif
149
+ #if !defined(SWIFT_CLASS_EXTRA)
150
+ # define SWIFT_CLASS_EXTRA
151
+ #endif
152
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
153
+ # define SWIFT_PROTOCOL_EXTRA
154
+ #endif
155
+ #if !defined(SWIFT_ENUM_EXTRA)
156
+ # define SWIFT_ENUM_EXTRA
157
+ #endif
158
+ #if !defined(SWIFT_CLASS)
159
+ # if __has_attribute(objc_subclassing_restricted)
160
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
161
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
162
+ # else
163
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
164
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
165
+ # endif
166
+ #endif
167
+ #if !defined(SWIFT_RESILIENT_CLASS)
168
+ # if __has_attribute(objc_class_stub)
169
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
170
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
171
+ # else
172
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
173
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
174
+ # endif
175
+ #endif
176
+ #if !defined(SWIFT_PROTOCOL)
177
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
178
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
179
+ #endif
180
+ #if !defined(SWIFT_EXTENSION)
181
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
182
+ #endif
183
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
184
+ # if __has_attribute(objc_designated_initializer)
185
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
186
+ # else
187
+ # define OBJC_DESIGNATED_INITIALIZER
188
+ # endif
189
+ #endif
190
+ #if !defined(SWIFT_ENUM_ATTR)
191
+ # if __has_attribute(enum_extensibility)
192
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
193
+ # else
194
+ # define SWIFT_ENUM_ATTR(_extensibility)
195
+ # endif
196
+ #endif
197
+ #if !defined(SWIFT_ENUM)
198
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
199
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # if __has_feature(generalized_swift_name)
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
202
+ # else
203
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
204
+ # endif
205
+ # else
206
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
207
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
208
+ # endif
209
+ #endif
210
+ #if !defined(SWIFT_ENUM_TAG)
211
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
212
+ # define SWIFT_ENUM_TAG enum
213
+ # else
214
+ # define SWIFT_ENUM_TAG
215
+ # endif
216
+ #endif
217
+ #if !defined(SWIFT_ENUM_FWD_DECL)
218
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
219
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
220
+ # else
221
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
222
+ # endif
223
+ #endif
224
+ #if !defined(SWIFT_UNAVAILABLE)
225
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
226
+ #endif
227
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
228
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
229
+ #endif
230
+ #if !defined(SWIFT_AVAILABILITY)
231
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
232
+ #endif
233
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
234
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
235
+ #endif
236
+ #if !defined(SWIFT_WEAK_IMPORT)
237
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
238
+ #endif
239
+ #if !defined(SWIFT_DEPRECATED)
240
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
241
+ #endif
242
+ #if !defined(SWIFT_DEPRECATED_MSG)
243
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
244
+ #endif
245
+ #if !defined(SWIFT_DEPRECATED_OBJC)
246
+ # if __has_feature(attribute_diagnose_if_objc)
247
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
248
+ # else
249
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
250
+ # endif
251
+ #endif
252
+ #if defined(__OBJC__)
253
+ #if !defined(IBSegueAction)
254
+ # define IBSegueAction
255
+ #endif
256
+ #endif
257
+ #if !defined(SWIFT_EXTERN)
258
+ # if defined(__cplusplus)
259
+ # define SWIFT_EXTERN extern "C"
260
+ # else
261
+ # define SWIFT_EXTERN extern
262
+ # endif
263
+ #endif
264
+ #if !defined(SWIFT_CALL)
265
+ # define SWIFT_CALL __attribute__((swiftcall))
266
+ #endif
267
+ #if !defined(SWIFT_INDIRECT_RESULT)
268
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
269
+ #endif
270
+ #if !defined(SWIFT_CONTEXT)
271
+ # define SWIFT_CONTEXT __attribute__((swift_context))
272
+ #endif
273
+ #if !defined(SWIFT_ERROR_RESULT)
274
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
275
+ #endif
276
+ #if defined(__cplusplus)
277
+ # define SWIFT_NOEXCEPT noexcept
278
+ #else
279
+ # define SWIFT_NOEXCEPT
280
+ #endif
281
+ #if !defined(SWIFT_C_INLINE_THUNK)
282
+ # if __has_attribute(always_inline)
283
+ # if __has_attribute(nodebug)
284
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
285
+ # else
286
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
287
+ # endif
288
+ # else
289
+ # define SWIFT_C_INLINE_THUNK inline
290
+ # endif
291
+ #endif
292
+ #if defined(_WIN32)
293
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
294
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
295
+ #endif
296
+ #else
297
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
298
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
299
+ #endif
300
+ #endif
301
+ #if !__has_feature(nullability)
302
+ # define _Nonnull
303
+ # define _Nullable
304
+ # define _Null_unspecified
305
+ #elif !defined(__OBJC__)
306
+ # pragma clang diagnostic ignored "-Wnullability-extension"
307
+ #endif
308
+ #if !__has_feature(nullability_nullable_result)
309
+ # define _Nullable_result _Nullable
310
+ #endif
311
+ #if __has_feature(objc_modules)
312
+ #if __has_warning("-Watimport-in-framework-header")
313
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
314
+ #endif
315
+ #endif
316
+
317
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
318
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
319
+ #if __has_warning("-Wpragma-clang-attribute")
320
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
321
+ #endif
322
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
323
+ #pragma clang diagnostic ignored "-Wnullability"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SnaplyAgent",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
344
+ #if defined(__OBJC__)
345
+ #if __has_feature(objc_modules)
346
+ #if __has_warning("-Watimport-in-framework-header")
347
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
348
+ #endif
349
+ #endif
350
+
351
+ #endif // defined(__OBJC__)
352
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
353
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
354
+ #if __has_warning("-Wpragma-clang-attribute")
355
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
356
+ #endif
357
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
358
+ #pragma clang diagnostic ignored "-Wnullability"
359
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
360
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
361
+
362
+ #if __has_attribute(external_source_symbol)
363
+ # pragma push_macro("any")
364
+ # undef any
365
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SnaplyAgent",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
366
+ # pragma pop_macro("any")
367
+ #endif
368
+
369
+ #if defined(__OBJC__)
370
+
371
+ #endif // defined(__OBJC__)
372
+ #if __has_attribute(external_source_symbol)
373
+ # pragma clang attribute pop
374
+ #endif
375
+ #if defined(__cplusplus)
376
+ #endif
377
+ #pragma clang diagnostic pop
378
+ #endif
379
+
380
+ #else
381
+ #error unsupported Swift architecture
382
+ #endif
@@ -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 -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
+ }