@snap/camera-kit 0.7.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 (554) hide show
  1. package/LICENSE.md +6247 -0
  2. package/README.md +166 -0
  3. package/docs/html/.nojekyll +1 -0
  4. package/docs/html/assets/highlight.css +106 -0
  5. package/docs/html/assets/main.js +54 -0
  6. package/docs/html/assets/search.js +1 -0
  7. package/docs/html/assets/style.css +1225 -0
  8. package/docs/html/assets/widgets.png +0 -0
  9. package/docs/html/assets/widgets@2x.png +0 -0
  10. package/docs/html/classes/CameraKit.html +121 -0
  11. package/docs/html/classes/CameraKitSession.html +347 -0
  12. package/docs/html/classes/CameraKitSource.html +152 -0
  13. package/docs/html/classes/LensPerformanceMeasurement.html +115 -0
  14. package/docs/html/classes/LensPerformanceMetrics.html +76 -0
  15. package/docs/html/classes/LensRepository.html +171 -0
  16. package/docs/html/classes/LensSources.html +82 -0
  17. package/docs/html/classes/Transform2D.html +99 -0
  18. package/docs/html/classes/TypedCustomEvent.html +109 -0
  19. package/docs/html/classes/TypedEventTarget.html +146 -0
  20. package/docs/html/functions/Injectable.html +193 -0
  21. package/docs/html/functions/bootstrapCameraKit.html +158 -0
  22. package/docs/html/functions/createExtension.html +127 -0
  23. package/docs/html/functions/createImageSource.html +123 -0
  24. package/docs/html/functions/createMediaStreamSource.html +123 -0
  25. package/docs/html/functions/createUserMediaSource.html +127 -0
  26. package/docs/html/functions/createVideoSource.html +124 -0
  27. package/docs/html/functions/estimateLensPerformance.html +116 -0
  28. package/docs/html/functions/getRequiredBootstrapURLs.html +124 -0
  29. package/docs/html/functions/lensSourcesFactory.html +116 -0
  30. package/docs/html/functions/uriHandlersFactory.html +118 -0
  31. package/docs/html/index.html +208 -0
  32. package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +132 -0
  33. package/docs/html/interfaces/CameraKitSourceSubscriber.html +121 -0
  34. package/docs/html/interfaces/ComputedFrameMetrics.html +70 -0
  35. package/docs/html/interfaces/CreateSessionOptions.html +77 -0
  36. package/docs/html/interfaces/EstimatedLensPerformance.html +78 -0
  37. package/docs/html/interfaces/Lens.html +115 -0
  38. package/docs/html/interfaces/LensSource.html +113 -0
  39. package/docs/html/interfaces/MediaStreamSourceOptions.html +65 -0
  40. package/docs/html/interfaces/UriCancelRequest.html +65 -0
  41. package/docs/html/interfaces/UriHandler.html +128 -0
  42. package/docs/html/interfaces/UriRequest.html +80 -0
  43. package/docs/html/interfaces/UriResponse.html +80 -0
  44. package/docs/html/interfaces/VideoSourceOptions.html +60 -0
  45. package/docs/html/modules.html +198 -0
  46. package/docs/html/types/AssetLoader.html +126 -0
  47. package/docs/html/types/AssetTiming.html +116 -0
  48. package/docs/html/types/BenchmarkError.html +107 -0
  49. package/docs/html/types/BootstrapError.html +110 -0
  50. package/docs/html/types/CacheKeyNotFoundError.html +107 -0
  51. package/docs/html/types/CameraKitDeviceInfo.html +114 -0
  52. package/docs/html/types/CameraKitSessionEventListener.html +109 -0
  53. package/docs/html/types/CameraKitSessionEvents.html +118 -0
  54. package/docs/html/types/CameraKitSourceError.html +107 -0
  55. package/docs/html/types/CameraKitSourceInfo.html +107 -0
  56. package/docs/html/types/CameraKitSourceOptions.html +113 -0
  57. package/docs/html/types/ConfigurationError.html +109 -0
  58. package/docs/html/types/Keyboard.html +196 -0
  59. package/docs/html/types/KeyboardEvents.html +109 -0
  60. package/docs/html/types/LegalError.html +107 -0
  61. package/docs/html/types/LensAssetError.html +109 -0
  62. package/docs/html/types/LensContentValidationError.html +107 -0
  63. package/docs/html/types/LensError.html +107 -0
  64. package/docs/html/types/LensExecutionError.html +114 -0
  65. package/docs/html/types/LensImagePickerError.html +110 -0
  66. package/docs/html/types/LensLaunchParams.html +109 -0
  67. package/docs/html/types/LensMetricsEvents.html +110 -0
  68. package/docs/html/types/LensPerformanceCluster.html +107 -0
  69. package/docs/html/types/LensView.html +119 -0
  70. package/docs/html/types/LensWait.html +111 -0
  71. package/docs/html/types/PersistentStoreError.html +109 -0
  72. package/docs/html/types/PlatformNotSupportedError.html +110 -0
  73. package/docs/html/types/PublicContainer.html +110 -0
  74. package/docs/html/types/RenderTarget.html +111 -0
  75. package/docs/html/types/Uri.html +107 -0
  76. package/docs/html/types/UriHandlers.html +109 -0
  77. package/docs/html/types/WebGLError.html +107 -0
  78. package/docs/html/variables/extensionRequestContext.html +109 -0
  79. package/docs/md/.nojekyll +1 -0
  80. package/docs/md/README.md +168 -0
  81. package/docs/md/classes/CameraKit.md +94 -0
  82. package/docs/md/classes/CameraKitSession.md +359 -0
  83. package/docs/md/classes/CameraKitSource.md +110 -0
  84. package/docs/md/classes/LensPerformanceMeasurement.md +77 -0
  85. package/docs/md/classes/LensPerformanceMetrics.md +37 -0
  86. package/docs/md/classes/LensRepository.md +145 -0
  87. package/docs/md/classes/LensSources.md +29 -0
  88. package/docs/md/classes/Transform2D.md +55 -0
  89. package/docs/md/classes/TypedCustomEvent.md +65 -0
  90. package/docs/md/classes/TypedEventTarget.md +103 -0
  91. package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +106 -0
  92. package/docs/md/interfaces/CameraKitSourceSubscriber.md +55 -0
  93. package/docs/md/interfaces/ComputedFrameMetrics.md +29 -0
  94. package/docs/md/interfaces/CreateSessionOptions.md +35 -0
  95. package/docs/md/interfaces/EstimatedLensPerformance.md +38 -0
  96. package/docs/md/interfaces/Lens.md +84 -0
  97. package/docs/md/interfaces/LensSource.md +68 -0
  98. package/docs/md/interfaces/MediaStreamSourceOptions.md +22 -0
  99. package/docs/md/interfaces/UriCancelRequest.md +22 -0
  100. package/docs/md/interfaces/UriHandler.md +63 -0
  101. package/docs/md/interfaces/UriRequest.md +43 -0
  102. package/docs/md/interfaces/UriResponse.md +43 -0
  103. package/docs/md/interfaces/VideoSourceOptions.md +15 -0
  104. package/docs/md/modules.md +827 -0
  105. package/lib/CameraKit.d.ts +170 -0
  106. package/lib/CameraKit.js +145 -0
  107. package/lib/CameraKit.js.map +1 -0
  108. package/lib/__tests__/data.d.ts +9 -0
  109. package/lib/__tests__/data.js +50 -0
  110. package/lib/__tests__/data.js.map +1 -0
  111. package/lib/__tests__/deferred.d.ts +16 -0
  112. package/lib/__tests__/deferred.js +29 -0
  113. package/lib/__tests__/deferred.js.map +1 -0
  114. package/lib/__tests__/jest.matchers.d.ts +17 -0
  115. package/lib/__tests__/jest.matchers.js +67 -0
  116. package/lib/__tests__/jest.matchers.js.map +1 -0
  117. package/lib/assertPlatformSupported.d.ts +4 -0
  118. package/lib/assertPlatformSupported.js +10 -0
  119. package/lib/assertPlatformSupported.js.map +1 -0
  120. package/lib/benchmark/benchmarkGflops.d.ts +16 -0
  121. package/lib/benchmark/benchmarkGflops.js +129 -0
  122. package/lib/benchmark/benchmarkGflops.js.map +1 -0
  123. package/lib/benchmark/estimateLensPerformanceCluster.d.ts +33 -0
  124. package/lib/benchmark/estimateLensPerformanceCluster.js +48 -0
  125. package/lib/benchmark/estimateLensPerformanceCluster.js.map +1 -0
  126. package/lib/benchmark/webglUtils.d.ts +7 -0
  127. package/lib/benchmark/webglUtils.js +87 -0
  128. package/lib/benchmark/webglUtils.js.map +1 -0
  129. package/lib/bootstrapCameraKit.d.ts +96 -0
  130. package/lib/bootstrapCameraKit.js +204 -0
  131. package/lib/bootstrapCameraKit.js.map +1 -0
  132. package/lib/common/__mocks__/loadScript.d.ts +1 -0
  133. package/lib/common/__mocks__/loadScript.js +10 -0
  134. package/lib/common/__mocks__/loadScript.js.map +1 -0
  135. package/lib/common/assertions.d.ts +27 -0
  136. package/lib/common/assertions.js +39 -0
  137. package/lib/common/assertions.js.map +1 -0
  138. package/lib/common/cameraKitUserAgent.d.ts +34 -0
  139. package/lib/common/cameraKitUserAgent.js +216 -0
  140. package/lib/common/cameraKitUserAgent.js.map +1 -0
  141. package/lib/common/copyDefinedProperties.d.ts +13 -0
  142. package/lib/common/copyDefinedProperties.js +16 -0
  143. package/lib/common/copyDefinedProperties.js.map +1 -0
  144. package/lib/common/entries.d.ts +3 -0
  145. package/lib/common/entries.js +3 -0
  146. package/lib/common/entries.js.map +1 -0
  147. package/lib/common/errorHelpers.d.ts +10 -0
  148. package/lib/common/errorHelpers.js +24 -0
  149. package/lib/common/errorHelpers.js.map +1 -0
  150. package/lib/common/getFilename.d.ts +1 -0
  151. package/lib/common/getFilename.js +4 -0
  152. package/lib/common/getFilename.js.map +1 -0
  153. package/lib/common/index.d.ts +2 -0
  154. package/lib/common/index.js +3 -0
  155. package/lib/common/index.js.map +1 -0
  156. package/lib/common/loadScript.d.ts +1 -0
  157. package/lib/common/loadScript.js +11 -0
  158. package/lib/common/loadScript.js.map +1 -0
  159. package/lib/common/locale.d.ts +2 -0
  160. package/lib/common/locale.js +11 -0
  161. package/lib/common/locale.js.map +1 -0
  162. package/lib/common/localization.d.ts +43 -0
  163. package/lib/common/localization.js +43 -0
  164. package/lib/common/localization.js.map +1 -0
  165. package/lib/common/memoize.d.ts +8 -0
  166. package/lib/common/memoize.js +15 -0
  167. package/lib/common/memoize.js.map +1 -0
  168. package/lib/common/pageVisibility.d.ts +20 -0
  169. package/lib/common/pageVisibility.js +62 -0
  170. package/lib/common/pageVisibility.js.map +1 -0
  171. package/lib/common/time.d.ts +1 -0
  172. package/lib/common/time.js +2 -0
  173. package/lib/common/time.js.map +1 -0
  174. package/lib/common/typeguards.d.ts +53 -0
  175. package/lib/common/typeguards.js +92 -0
  176. package/lib/common/typeguards.js.map +1 -0
  177. package/lib/common/types.d.ts +10 -0
  178. package/lib/common/types.js +2 -0
  179. package/lib/common/types.js.map +1 -0
  180. package/lib/common/validate.d.ts +14 -0
  181. package/lib/common/validate.js +104 -0
  182. package/lib/common/validate.js.map +1 -0
  183. package/lib/configuration.d.ts +92 -0
  184. package/lib/configuration.js +36 -0
  185. package/lib/configuration.js.map +1 -0
  186. package/lib/configurationOverrides.d.ts +12 -0
  187. package/lib/configurationOverrides.js +41 -0
  188. package/lib/configurationOverrides.js.map +1 -0
  189. package/lib/dependency-injection/Container.d.ts +177 -0
  190. package/lib/dependency-injection/Container.js +160 -0
  191. package/lib/dependency-injection/Container.js.map +1 -0
  192. package/lib/dependency-injection/Injectable.d.ts +39 -0
  193. package/lib/dependency-injection/Injectable.js +18 -0
  194. package/lib/dependency-injection/Injectable.js.map +1 -0
  195. package/lib/dependency-injection/PartialContainer.d.ts +81 -0
  196. package/lib/dependency-injection/PartialContainer.js +85 -0
  197. package/lib/dependency-injection/PartialContainer.js.map +1 -0
  198. package/lib/dependency-injection/RootServices.d.ts +62 -0
  199. package/lib/dependency-injection/RootServices.js +2 -0
  200. package/lib/dependency-injection/RootServices.js.map +1 -0
  201. package/lib/dependency-injection/types.d.ts +56 -0
  202. package/lib/dependency-injection/types.js +2 -0
  203. package/lib/dependency-injection/types.js.map +1 -0
  204. package/lib/environment.json +1 -0
  205. package/lib/events/TypedCustomEvent.d.ts +10 -0
  206. package/lib/events/TypedCustomEvent.js +11 -0
  207. package/lib/events/TypedCustomEvent.js.map +1 -0
  208. package/lib/events/TypedEventTarget.d.ts +25 -0
  209. package/lib/events/TypedEventTarget.js +57 -0
  210. package/lib/events/TypedEventTarget.js.map +1 -0
  211. package/lib/events/scan.d.ts +15 -0
  212. package/lib/events/scan.js +46 -0
  213. package/lib/events/scan.js.map +1 -0
  214. package/lib/extensions/LensSources.d.ts +58 -0
  215. package/lib/extensions/LensSources.js +50 -0
  216. package/lib/extensions/LensSources.js.map +1 -0
  217. package/lib/extensions/UriHandlers.d.ts +54 -0
  218. package/lib/extensions/UriHandlers.js +93 -0
  219. package/lib/extensions/UriHandlers.js.map +1 -0
  220. package/lib/extensions/extensionRequestContext.d.ts +4 -0
  221. package/lib/extensions/extensionRequestContext.js +14 -0
  222. package/lib/extensions/extensionRequestContext.js.map +1 -0
  223. package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +5603 -0
  224. package/lib/generated-proto/blizzard/cameraKitEvents.js +522 -0
  225. package/lib/generated-proto/blizzard/cameraKitEvents.js.map +1 -0
  226. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +98 -0
  227. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +260 -0
  228. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -0
  229. package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +543 -0
  230. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +429 -0
  231. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -0
  232. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +100 -0
  233. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +164 -0
  234. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -0
  235. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +395 -0
  236. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +644 -0
  237. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -0
  238. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +185 -0
  239. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +172 -0
  240. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -0
  241. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +86 -0
  242. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +234 -0
  243. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -0
  244. package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +854 -0
  245. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +629 -0
  246. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -0
  247. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +86 -0
  248. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js +185 -0
  249. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -0
  250. package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.d.ts +95 -0
  251. package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js +104 -0
  252. package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js.map +1 -0
  253. package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +10212 -0
  254. package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js +1300 -0
  255. package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -0
  256. package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +401 -0
  257. package/lib/generated-proto/pb_schema/cdp/cof/config_request.js +525 -0
  258. package/lib/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -0
  259. package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +1287 -0
  260. package/lib/generated-proto/pb_schema/cdp/cof/config_response.js +135 -0
  261. package/lib/generated-proto/pb_schema/cdp/cof/config_response.js.map +1 -0
  262. package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4208 -0
  263. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js +1053 -0
  264. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -0
  265. package/lib/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +102 -0
  266. package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js +165 -0
  267. package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js.map +1 -0
  268. package/lib/generated-proto/pb_schema/cdp/cof/namespace.d.ts +8 -0
  269. package/lib/generated-proto/pb_schema/cdp/cof/namespace.js +17 -0
  270. package/lib/generated-proto/pb_schema/cdp/cof/namespace.js.map +1 -0
  271. package/lib/generated-proto/pb_schema/common/ruid.d.ts +75 -0
  272. package/lib/generated-proto/pb_schema/common/ruid.js +96 -0
  273. package/lib/generated-proto/pb_schema/common/ruid.js.map +1 -0
  274. package/lib/generated-proto/pb_schema/common/value.d.ts +131 -0
  275. package/lib/generated-proto/pb_schema/common/value.js +204 -0
  276. package/lib/generated-proto/pb_schema/common/value.js.map +1 -0
  277. package/lib/generated-proto/pb_schema/google/api/annotations.d.ts +1 -0
  278. package/lib/generated-proto/pb_schema/google/api/annotations.js +9 -0
  279. package/lib/generated-proto/pb_schema/google/api/annotations.js.map +1 -0
  280. package/lib/generated-proto/pb_schema/google/api/http.d.ts +3636 -0
  281. package/lib/generated-proto/pb_schema/google/api/http.js +271 -0
  282. package/lib/generated-proto/pb_schema/google/api/http.js.map +1 -0
  283. package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +139 -0
  284. package/lib/generated-proto/pb_schema/google/protobuf/any.js +94 -0
  285. package/lib/generated-proto/pb_schema/google/protobuf/any.js.map +1 -0
  286. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +50968 -0
  287. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js +2962 -0
  288. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -0
  289. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +98 -0
  290. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js +82 -0
  291. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -0
  292. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +173 -0
  293. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js +332 -0
  294. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -0
  295. package/lib/generated-proto/pb_schema/lenses/geocircle.d.ts +42 -0
  296. package/lib/generated-proto/pb_schema/lenses/geocircle.js +52 -0
  297. package/lib/generated-proto/pb_schema/lenses/geocircle.js.map +1 -0
  298. package/lib/generated-proto/pb_schema/lenses/geopoint.d.ts +32 -0
  299. package/lib/generated-proto/pb_schema/lenses/geopoint.js +50 -0
  300. package/lib/generated-proto/pb_schema/lenses/geopoint.js.map +1 -0
  301. package/lib/generated-proto/pb_schema/lenses/launch_params.d.ts +29 -0
  302. package/lib/generated-proto/pb_schema/lenses/launch_params.js +43 -0
  303. package/lib/generated-proto/pb_schema/lenses/launch_params.js.map +1 -0
  304. package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +365 -0
  305. package/lib/generated-proto/pb_schema/lenses/launchdata.js +216 -0
  306. package/lib/generated-proto/pb_schema/lenses/launchdata.js.map +1 -0
  307. package/lib/generated-proto/pb_schema/lenses/lures.d.ts +113 -0
  308. package/lib/generated-proto/pb_schema/lenses/lures.js +64 -0
  309. package/lib/generated-proto/pb_schema/lenses/lures.js.map +1 -0
  310. package/lib/generated-proto/pb_schema/lenses/persistent_store.d.ts +29 -0
  311. package/lib/generated-proto/pb_schema/lenses/persistent_store.js +43 -0
  312. package/lib/generated-proto/pb_schema/lenses/persistent_store.js.map +1 -0
  313. package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +921 -0
  314. package/lib/generated-proto/pb_schema/lenses/snappable.js +954 -0
  315. package/lib/generated-proto/pb_schema/lenses/snappable.js.map +1 -0
  316. package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +247 -0
  317. package/lib/generated-proto/pb_schema/lenses/user_data.js +362 -0
  318. package/lib/generated-proto/pb_schema/lenses/user_data.js.map +1 -0
  319. package/lib/handlers/HandlerChainBuilder.d.ts +95 -0
  320. package/lib/handlers/HandlerChainBuilder.js +187 -0
  321. package/lib/handlers/HandlerChainBuilder.js.map +1 -0
  322. package/lib/handlers/arrayBufferParsingHandler.d.ts +10 -0
  323. package/lib/handlers/arrayBufferParsingHandler.js +18 -0
  324. package/lib/handlers/arrayBufferParsingHandler.js.map +1 -0
  325. package/lib/handlers/batchingHandler.d.ts +25 -0
  326. package/lib/handlers/batchingHandler.js +79 -0
  327. package/lib/handlers/batchingHandler.js.map +1 -0
  328. package/lib/handlers/cameraKitServiceFetchHandlerFactory.d.ts +12 -0
  329. package/lib/handlers/cameraKitServiceFetchHandlerFactory.js +19 -0
  330. package/lib/handlers/cameraKitServiceFetchHandlerFactory.js.map +1 -0
  331. package/lib/handlers/debugHandler.d.ts +8 -0
  332. package/lib/handlers/debugHandler.js +27 -0
  333. package/lib/handlers/debugHandler.js.map +1 -0
  334. package/lib/handlers/defaultFetchHandler.d.ts +15 -0
  335. package/lib/handlers/defaultFetchHandler.js +29 -0
  336. package/lib/handlers/defaultFetchHandler.js.map +1 -0
  337. package/lib/handlers/headersModifyingFetchHandler.d.ts +8 -0
  338. package/lib/handlers/headersModifyingFetchHandler.js +13 -0
  339. package/lib/handlers/headersModifyingFetchHandler.js.map +1 -0
  340. package/lib/handlers/index.d.ts +2 -0
  341. package/lib/handlers/index.js +3 -0
  342. package/lib/handlers/index.js.map +1 -0
  343. package/lib/handlers/mappingHandler.d.ts +15 -0
  344. package/lib/handlers/mappingHandler.js +65 -0
  345. package/lib/handlers/mappingHandler.js.map +1 -0
  346. package/lib/handlers/noCorsRetryingFetchHandler.d.ts +48 -0
  347. package/lib/handlers/noCorsRetryingFetchHandler.js +94 -0
  348. package/lib/handlers/noCorsRetryingFetchHandler.js.map +1 -0
  349. package/lib/handlers/persistingHandler.d.ts +14 -0
  350. package/lib/handlers/persistingHandler.js +71 -0
  351. package/lib/handlers/persistingHandler.js.map +1 -0
  352. package/lib/handlers/rateLimitingHandler.d.ts +20 -0
  353. package/lib/handlers/rateLimitingHandler.js +43 -0
  354. package/lib/handlers/rateLimitingHandler.js.map +1 -0
  355. package/lib/handlers/requestStateEmittingHandler.d.ts +29 -0
  356. package/lib/handlers/requestStateEmittingHandler.js +43 -0
  357. package/lib/handlers/requestStateEmittingHandler.js.map +1 -0
  358. package/lib/handlers/responseCachingHandler.d.ts +27 -0
  359. package/lib/handlers/responseCachingHandler.js +94 -0
  360. package/lib/handlers/responseCachingHandler.js.map +1 -0
  361. package/lib/handlers/retryingHandler.d.ts +37 -0
  362. package/lib/handlers/retryingHandler.js +73 -0
  363. package/lib/handlers/retryingHandler.js.map +1 -0
  364. package/lib/handlers/timeoutHandler.d.ts +18 -0
  365. package/lib/handlers/timeoutHandler.js +30 -0
  366. package/lib/handlers/timeoutHandler.js.map +1 -0
  367. package/lib/index.d.ts +33 -0
  368. package/lib/index.js +32 -0
  369. package/lib/index.js.map +1 -0
  370. package/lib/legal/legalPrompt.d.ts +17 -0
  371. package/lib/legal/legalPrompt.js +144 -0
  372. package/lib/legal/legalPrompt.js.map +1 -0
  373. package/lib/legal/legalState.d.ts +50 -0
  374. package/lib/legal/legalState.js +149 -0
  375. package/lib/legal/legalState.js.map +1 -0
  376. package/lib/lens/Lens.d.ts +71 -0
  377. package/lib/lens/Lens.js +63 -0
  378. package/lib/lens/Lens.js.map +1 -0
  379. package/lib/lens/LensLaunchParams.d.ts +19 -0
  380. package/lib/lens/LensLaunchParams.js +38 -0
  381. package/lib/lens/LensLaunchParams.js.map +1 -0
  382. package/lib/lens/LensPersistenceStore.d.ts +7 -0
  383. package/lib/lens/LensPersistenceStore.js +20 -0
  384. package/lib/lens/LensPersistenceStore.js.map +1 -0
  385. package/lib/lens/LensRepository.d.ts +134 -0
  386. package/lib/lens/LensRepository.js +239 -0
  387. package/lib/lens/LensRepository.js.map +1 -0
  388. package/lib/lens/assets/LensAssetRepository.d.ts +66 -0
  389. package/lib/lens/assets/LensAssetRepository.js +179 -0
  390. package/lib/lens/assets/LensAssetRepository.js.map +1 -0
  391. package/lib/lens/assets/LensAssetsProvider.d.ts +21 -0
  392. package/lib/lens/assets/LensAssetsProvider.js +41 -0
  393. package/lib/lens/assets/LensAssetsProvider.js.map +1 -0
  394. package/lib/lens/assets/deviceDependentAssetLoader.d.ts +11 -0
  395. package/lib/lens/assets/deviceDependentAssetLoader.js +58 -0
  396. package/lib/lens/assets/deviceDependentAssetLoader.js.map +1 -0
  397. package/lib/lens/assets/remoteMediaAssetLoaderFactory.d.ts +10 -0
  398. package/lib/lens/assets/remoteMediaAssetLoaderFactory.js +26 -0
  399. package/lib/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -0
  400. package/lib/lens/assets/staticAssetLoader.d.ts +10 -0
  401. package/lib/lens/assets/staticAssetLoader.js +24 -0
  402. package/lib/lens/assets/staticAssetLoader.js.map +1 -0
  403. package/lib/lens/index.d.ts +7 -0
  404. package/lib/lens/index.js +7 -0
  405. package/lib/lens/index.js.map +1 -0
  406. package/lib/lens/lensEnvelopeUtil.d.ts +5 -0
  407. package/lib/lens/lensEnvelopeUtil.js +19 -0
  408. package/lib/lens/lensEnvelopeUtil.js.map +1 -0
  409. package/lib/lens/lensHttpUtil.d.ts +4 -0
  410. package/lib/lens/lensHttpUtil.js +30 -0
  411. package/lib/lens/lensHttpUtil.js.map +1 -0
  412. package/lib/lens-client-interface/exif.d.ts +20 -0
  413. package/lib/lens-client-interface/exif.js +61 -0
  414. package/lib/lens-client-interface/exif.js.map +1 -0
  415. package/lib/lens-client-interface/imagePicker.d.ts +7 -0
  416. package/lib/lens-client-interface/imagePicker.js +128 -0
  417. package/lib/lens-client-interface/imagePicker.js.map +1 -0
  418. package/lib/lens-client-interface/lensClientInterface.d.ts +13 -0
  419. package/lib/lens-client-interface/lensClientInterface.js +30 -0
  420. package/lib/lens-client-interface/lensClientInterface.js.map +1 -0
  421. package/lib/lens-core-module/generated-types.d.ts +426 -0
  422. package/lib/lens-core-module/generated-types.js +2 -0
  423. package/lib/lens-core-module/generated-types.js.map +1 -0
  424. package/lib/lens-core-module/index.d.ts +2 -0
  425. package/lib/lens-core-module/index.js +3 -0
  426. package/lib/lens-core-module/index.js.map +1 -0
  427. package/lib/lens-core-module/loader/index.d.ts +1 -0
  428. package/lib/lens-core-module/loader/index.js +2 -0
  429. package/lib/lens-core-module/loader/index.js.map +1 -0
  430. package/lib/lens-core-module/loader/lensCoreFactory.d.ts +30 -0
  431. package/lib/lens-core-module/loader/lensCoreFactory.js +121 -0
  432. package/lib/lens-core-module/loader/lensCoreFactory.js.map +1 -0
  433. package/lib/lensCoreWasmVersions.json +5 -0
  434. package/lib/logger/errorLoggingDecorator.d.ts +9 -0
  435. package/lib/logger/errorLoggingDecorator.js +32 -0
  436. package/lib/logger/errorLoggingDecorator.js.map +1 -0
  437. package/lib/logger/logEntries.d.ts +15 -0
  438. package/lib/logger/logEntries.js +14 -0
  439. package/lib/logger/logEntries.js.map +1 -0
  440. package/lib/logger/logger.d.ts +35 -0
  441. package/lib/logger/logger.js +48 -0
  442. package/lib/logger/logger.js.map +1 -0
  443. package/lib/logger/registerLogEntriesSubscriber.d.ts +14 -0
  444. package/lib/logger/registerLogEntriesSubscriber.js +23 -0
  445. package/lib/logger/registerLogEntriesSubscriber.js.map +1 -0
  446. package/lib/media-sources/CameraKitSource.d.ts +88 -0
  447. package/lib/media-sources/CameraKitSource.js +140 -0
  448. package/lib/media-sources/CameraKitSource.js.map +1 -0
  449. package/lib/media-sources/FunctionSource.d.ts +30 -0
  450. package/lib/media-sources/FunctionSource.js +132 -0
  451. package/lib/media-sources/FunctionSource.js.map +1 -0
  452. package/lib/media-sources/ImageSource.d.ts +13 -0
  453. package/lib/media-sources/ImageSource.js +28 -0
  454. package/lib/media-sources/ImageSource.js.map +1 -0
  455. package/lib/media-sources/MediaStreamSource.d.ts +41 -0
  456. package/lib/media-sources/MediaStreamSource.js +146 -0
  457. package/lib/media-sources/MediaStreamSource.js.map +1 -0
  458. package/lib/media-sources/VideoSource.d.ts +21 -0
  459. package/lib/media-sources/VideoSource.js +38 -0
  460. package/lib/media-sources/VideoSource.js.map +1 -0
  461. package/lib/metrics/businessEventsReporter.d.ts +37 -0
  462. package/lib/metrics/businessEventsReporter.js +160 -0
  463. package/lib/metrics/businessEventsReporter.js.map +1 -0
  464. package/lib/metrics/metricsEventTarget.d.ts +41 -0
  465. package/lib/metrics/metricsEventTarget.js +11 -0
  466. package/lib/metrics/metricsEventTarget.js.map +1 -0
  467. package/lib/metrics/metricsHandler.d.ts +9 -0
  468. package/lib/metrics/metricsHandler.js +13 -0
  469. package/lib/metrics/metricsHandler.js.map +1 -0
  470. package/lib/metrics/operationalMetricsReporter.d.ts +52 -0
  471. package/lib/metrics/operationalMetricsReporter.js +108 -0
  472. package/lib/metrics/operationalMetricsReporter.js.map +1 -0
  473. package/lib/metrics/reporters/reportBenchmarks.d.ts +10 -0
  474. package/lib/metrics/reporters/reportBenchmarks.js +29 -0
  475. package/lib/metrics/reporters/reportBenchmarks.js.map +1 -0
  476. package/lib/metrics/reporters/reportGlobalException.d.ts +19 -0
  477. package/lib/metrics/reporters/reportGlobalException.js +68 -0
  478. package/lib/metrics/reporters/reportGlobalException.js.map +1 -0
  479. package/lib/metrics/reporters/reportHttpMetrics.d.ts +17 -0
  480. package/lib/metrics/reporters/reportHttpMetrics.js +92 -0
  481. package/lib/metrics/reporters/reportHttpMetrics.js.map +1 -0
  482. package/lib/metrics/reporters/reportLegalState.d.ts +15 -0
  483. package/lib/metrics/reporters/reportLegalState.js +34 -0
  484. package/lib/metrics/reporters/reportLegalState.js.map +1 -0
  485. package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +38 -0
  486. package/lib/metrics/reporters/reportLensAndAssetDownload.js +88 -0
  487. package/lib/metrics/reporters/reportLensAndAssetDownload.js.map +1 -0
  488. package/lib/metrics/reporters/reportLensValidationFailed.d.ts +20 -0
  489. package/lib/metrics/reporters/reportLensValidationFailed.js +24 -0
  490. package/lib/metrics/reporters/reportLensValidationFailed.js.map +1 -0
  491. package/lib/metrics/reporters/reportLensView.d.ts +36 -0
  492. package/lib/metrics/reporters/reportLensView.js +101 -0
  493. package/lib/metrics/reporters/reportLensView.js.map +1 -0
  494. package/lib/metrics/reporters/reportLensWait.d.ts +33 -0
  495. package/lib/metrics/reporters/reportLensWait.js +56 -0
  496. package/lib/metrics/reporters/reportLensWait.js.map +1 -0
  497. package/lib/metrics/reporters/reportSessionException.d.ts +17 -0
  498. package/lib/metrics/reporters/reportSessionException.js +12 -0
  499. package/lib/metrics/reporters/reportSessionException.js.map +1 -0
  500. package/lib/metrics/reporters/reportUserSession.d.ts +14 -0
  501. package/lib/metrics/reporters/reportUserSession.js +67 -0
  502. package/lib/metrics/reporters/reportUserSession.js.map +1 -0
  503. package/lib/metrics/reporters/reporters.d.ts +44 -0
  504. package/lib/metrics/reporters/reporters.js +33 -0
  505. package/lib/metrics/reporters/reporters.js.map +1 -0
  506. package/lib/namedErrors.d.ts +107 -0
  507. package/lib/namedErrors.js +56 -0
  508. package/lib/namedErrors.js.map +1 -0
  509. package/lib/persistence/ExpiringPersistence.d.ts +20 -0
  510. package/lib/persistence/ExpiringPersistence.js +58 -0
  511. package/lib/persistence/ExpiringPersistence.js.map +1 -0
  512. package/lib/persistence/IndexedDBPersistence.d.ts +47 -0
  513. package/lib/persistence/IndexedDBPersistence.js +180 -0
  514. package/lib/persistence/IndexedDBPersistence.js.map +1 -0
  515. package/lib/persistence/Persistence.d.ts +25 -0
  516. package/lib/persistence/Persistence.js +10 -0
  517. package/lib/persistence/Persistence.js.map +1 -0
  518. package/lib/remote-configuration/cofHandler.d.ts +21 -0
  519. package/lib/remote-configuration/cofHandler.js +75 -0
  520. package/lib/remote-configuration/cofHandler.js.map +1 -0
  521. package/lib/remote-configuration/remoteConfiguration.d.ts +13 -0
  522. package/lib/remote-configuration/remoteConfiguration.js +43 -0
  523. package/lib/remote-configuration/remoteConfiguration.js.map +1 -0
  524. package/lib/session/CameraKitSession.d.ts +252 -0
  525. package/lib/session/CameraKitSession.js +439 -0
  526. package/lib/session/CameraKitSession.js.map +1 -0
  527. package/lib/session/CameraKitSessionEvents.d.ts +33 -0
  528. package/lib/session/CameraKitSessionEvents.js +21 -0
  529. package/lib/session/CameraKitSessionEvents.js.map +1 -0
  530. package/lib/session/LensKeyboard.d.ts +89 -0
  531. package/lib/session/LensKeyboard.js +95 -0
  532. package/lib/session/LensKeyboard.js.map +1 -0
  533. package/lib/session/LensPerformanceMeasurement.d.ts +55 -0
  534. package/lib/session/LensPerformanceMeasurement.js +91 -0
  535. package/lib/session/LensPerformanceMeasurement.js.map +1 -0
  536. package/lib/session/LensPerformanceMetrics.d.ts +31 -0
  537. package/lib/session/LensPerformanceMetrics.js +58 -0
  538. package/lib/session/LensPerformanceMetrics.js.map +1 -0
  539. package/lib/session/index.d.ts +1 -0
  540. package/lib/session/index.js +2 -0
  541. package/lib/session/index.js.map +1 -0
  542. package/lib/session/lensState.d.ts +29 -0
  543. package/lib/session/lensState.js +160 -0
  544. package/lib/session/lensState.js.map +1 -0
  545. package/lib/session/sessionState.d.ts +10 -0
  546. package/lib/session/sessionState.js +12 -0
  547. package/lib/session/sessionState.js.map +1 -0
  548. package/lib/transforms/Transform2D.d.ts +17 -0
  549. package/lib/transforms/Transform2D.js +18 -0
  550. package/lib/transforms/Transform2D.js.map +1 -0
  551. package/lib/transforms/index.d.ts +1 -0
  552. package/lib/transforms/index.js +2 -0
  553. package/lib/transforms/index.js.map +1 -0
  554. package/package.json +62 -0
@@ -0,0 +1,332 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ export const protobufPackage = "google.protobuf";
5
+ function createBaseDoubleValue() {
6
+ return { value: 0 };
7
+ }
8
+ export const DoubleValue = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.value !== 0) {
11
+ writer.uint32(9).double(message.value);
12
+ }
13
+ return writer;
14
+ },
15
+ decode(input, length) {
16
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
17
+ let end = length === undefined ? reader.len : reader.pos + length;
18
+ const message = createBaseDoubleValue();
19
+ while (reader.pos < end) {
20
+ const tag = reader.uint32();
21
+ switch (tag >>> 3) {
22
+ case 1:
23
+ message.value = reader.double();
24
+ break;
25
+ default:
26
+ reader.skipType(tag & 7);
27
+ break;
28
+ }
29
+ }
30
+ return message;
31
+ },
32
+ fromPartial(object) {
33
+ var _a;
34
+ const message = createBaseDoubleValue();
35
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
36
+ return message;
37
+ },
38
+ };
39
+ function createBaseFloatValue() {
40
+ return { value: 0 };
41
+ }
42
+ export const FloatValue = {
43
+ encode(message, writer = _m0.Writer.create()) {
44
+ if (message.value !== 0) {
45
+ writer.uint32(13).float(message.value);
46
+ }
47
+ return writer;
48
+ },
49
+ decode(input, length) {
50
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
51
+ let end = length === undefined ? reader.len : reader.pos + length;
52
+ const message = createBaseFloatValue();
53
+ while (reader.pos < end) {
54
+ const tag = reader.uint32();
55
+ switch (tag >>> 3) {
56
+ case 1:
57
+ message.value = reader.float();
58
+ break;
59
+ default:
60
+ reader.skipType(tag & 7);
61
+ break;
62
+ }
63
+ }
64
+ return message;
65
+ },
66
+ fromPartial(object) {
67
+ var _a;
68
+ const message = createBaseFloatValue();
69
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
70
+ return message;
71
+ },
72
+ };
73
+ function createBaseInt64Value() {
74
+ return { value: 0 };
75
+ }
76
+ export const Int64Value = {
77
+ encode(message, writer = _m0.Writer.create()) {
78
+ if (message.value !== 0) {
79
+ writer.uint32(8).int64(message.value);
80
+ }
81
+ return writer;
82
+ },
83
+ decode(input, length) {
84
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
85
+ let end = length === undefined ? reader.len : reader.pos + length;
86
+ const message = createBaseInt64Value();
87
+ while (reader.pos < end) {
88
+ const tag = reader.uint32();
89
+ switch (tag >>> 3) {
90
+ case 1:
91
+ message.value = longToNumber(reader.int64());
92
+ break;
93
+ default:
94
+ reader.skipType(tag & 7);
95
+ break;
96
+ }
97
+ }
98
+ return message;
99
+ },
100
+ fromPartial(object) {
101
+ var _a;
102
+ const message = createBaseInt64Value();
103
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
104
+ return message;
105
+ },
106
+ };
107
+ function createBaseUInt64Value() {
108
+ return { value: 0 };
109
+ }
110
+ export const UInt64Value = {
111
+ encode(message, writer = _m0.Writer.create()) {
112
+ if (message.value !== 0) {
113
+ writer.uint32(8).uint64(message.value);
114
+ }
115
+ return writer;
116
+ },
117
+ decode(input, length) {
118
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
119
+ let end = length === undefined ? reader.len : reader.pos + length;
120
+ const message = createBaseUInt64Value();
121
+ while (reader.pos < end) {
122
+ const tag = reader.uint32();
123
+ switch (tag >>> 3) {
124
+ case 1:
125
+ message.value = longToNumber(reader.uint64());
126
+ break;
127
+ default:
128
+ reader.skipType(tag & 7);
129
+ break;
130
+ }
131
+ }
132
+ return message;
133
+ },
134
+ fromPartial(object) {
135
+ var _a;
136
+ const message = createBaseUInt64Value();
137
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
138
+ return message;
139
+ },
140
+ };
141
+ function createBaseInt32Value() {
142
+ return { value: 0 };
143
+ }
144
+ export const Int32Value = {
145
+ encode(message, writer = _m0.Writer.create()) {
146
+ if (message.value !== 0) {
147
+ writer.uint32(8).int32(message.value);
148
+ }
149
+ return writer;
150
+ },
151
+ decode(input, length) {
152
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
153
+ let end = length === undefined ? reader.len : reader.pos + length;
154
+ const message = createBaseInt32Value();
155
+ while (reader.pos < end) {
156
+ const tag = reader.uint32();
157
+ switch (tag >>> 3) {
158
+ case 1:
159
+ message.value = reader.int32();
160
+ break;
161
+ default:
162
+ reader.skipType(tag & 7);
163
+ break;
164
+ }
165
+ }
166
+ return message;
167
+ },
168
+ fromPartial(object) {
169
+ var _a;
170
+ const message = createBaseInt32Value();
171
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
172
+ return message;
173
+ },
174
+ };
175
+ function createBaseUInt32Value() {
176
+ return { value: 0 };
177
+ }
178
+ export const UInt32Value = {
179
+ encode(message, writer = _m0.Writer.create()) {
180
+ if (message.value !== 0) {
181
+ writer.uint32(8).uint32(message.value);
182
+ }
183
+ return writer;
184
+ },
185
+ decode(input, length) {
186
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
187
+ let end = length === undefined ? reader.len : reader.pos + length;
188
+ const message = createBaseUInt32Value();
189
+ while (reader.pos < end) {
190
+ const tag = reader.uint32();
191
+ switch (tag >>> 3) {
192
+ case 1:
193
+ message.value = reader.uint32();
194
+ break;
195
+ default:
196
+ reader.skipType(tag & 7);
197
+ break;
198
+ }
199
+ }
200
+ return message;
201
+ },
202
+ fromPartial(object) {
203
+ var _a;
204
+ const message = createBaseUInt32Value();
205
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : 0;
206
+ return message;
207
+ },
208
+ };
209
+ function createBaseBoolValue() {
210
+ return { value: false };
211
+ }
212
+ export const BoolValue = {
213
+ encode(message, writer = _m0.Writer.create()) {
214
+ if (message.value === true) {
215
+ writer.uint32(8).bool(message.value);
216
+ }
217
+ return writer;
218
+ },
219
+ decode(input, length) {
220
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
221
+ let end = length === undefined ? reader.len : reader.pos + length;
222
+ const message = createBaseBoolValue();
223
+ while (reader.pos < end) {
224
+ const tag = reader.uint32();
225
+ switch (tag >>> 3) {
226
+ case 1:
227
+ message.value = reader.bool();
228
+ break;
229
+ default:
230
+ reader.skipType(tag & 7);
231
+ break;
232
+ }
233
+ }
234
+ return message;
235
+ },
236
+ fromPartial(object) {
237
+ var _a;
238
+ const message = createBaseBoolValue();
239
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : false;
240
+ return message;
241
+ },
242
+ };
243
+ function createBaseStringValue() {
244
+ return { value: "" };
245
+ }
246
+ export const StringValue = {
247
+ encode(message, writer = _m0.Writer.create()) {
248
+ if (message.value !== "") {
249
+ writer.uint32(10).string(message.value);
250
+ }
251
+ return writer;
252
+ },
253
+ decode(input, length) {
254
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
255
+ let end = length === undefined ? reader.len : reader.pos + length;
256
+ const message = createBaseStringValue();
257
+ while (reader.pos < end) {
258
+ const tag = reader.uint32();
259
+ switch (tag >>> 3) {
260
+ case 1:
261
+ message.value = reader.string();
262
+ break;
263
+ default:
264
+ reader.skipType(tag & 7);
265
+ break;
266
+ }
267
+ }
268
+ return message;
269
+ },
270
+ fromPartial(object) {
271
+ var _a;
272
+ const message = createBaseStringValue();
273
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : "";
274
+ return message;
275
+ },
276
+ };
277
+ function createBaseBytesValue() {
278
+ return { value: new Uint8Array() };
279
+ }
280
+ export const BytesValue = {
281
+ encode(message, writer = _m0.Writer.create()) {
282
+ if (message.value.length !== 0) {
283
+ writer.uint32(10).bytes(message.value);
284
+ }
285
+ return writer;
286
+ },
287
+ decode(input, length) {
288
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
289
+ let end = length === undefined ? reader.len : reader.pos + length;
290
+ const message = createBaseBytesValue();
291
+ while (reader.pos < end) {
292
+ const tag = reader.uint32();
293
+ switch (tag >>> 3) {
294
+ case 1:
295
+ message.value = reader.bytes();
296
+ break;
297
+ default:
298
+ reader.skipType(tag & 7);
299
+ break;
300
+ }
301
+ }
302
+ return message;
303
+ },
304
+ fromPartial(object) {
305
+ var _a;
306
+ const message = createBaseBytesValue();
307
+ message.value = (_a = object.value) !== null && _a !== void 0 ? _a : new Uint8Array();
308
+ return message;
309
+ },
310
+ };
311
+ var globalThis = (() => {
312
+ if (typeof globalThis !== "undefined")
313
+ return globalThis;
314
+ if (typeof self !== "undefined")
315
+ return self;
316
+ if (typeof window !== "undefined")
317
+ return window;
318
+ if (typeof global !== "undefined")
319
+ return global;
320
+ throw "Unable to locate global object";
321
+ })();
322
+ function longToNumber(long) {
323
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
324
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
325
+ }
326
+ return long.toNumber();
327
+ }
328
+ if (_m0.util.Long !== Long) {
329
+ _m0.util.Long = Long;
330
+ _m0.configure();
331
+ }
332
+ //# sourceMappingURL=wrappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrappers.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/protobuf/wrappers.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,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,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * Wrapper message for `double`.\n *\n * The JSON representation for `DoubleValue` is JSON number.\n */\nexport interface DoubleValue {\n /** The double value. */\n value: number;\n}\n\n/**\n * Wrapper message for `float`.\n *\n * The JSON representation for `FloatValue` is JSON number.\n */\nexport interface FloatValue {\n /** The float value. */\n value: number;\n}\n\n/**\n * Wrapper message for `int64`.\n *\n * The JSON representation for `Int64Value` is JSON string.\n */\nexport interface Int64Value {\n /** The int64 value. */\n value: number;\n}\n\n/**\n * Wrapper message for `uint64`.\n *\n * The JSON representation for `UInt64Value` is JSON string.\n */\nexport interface UInt64Value {\n /** The uint64 value. */\n value: number;\n}\n\n/**\n * Wrapper message for `int32`.\n *\n * The JSON representation for `Int32Value` is JSON number.\n */\nexport interface Int32Value {\n /** The int32 value. */\n value: number;\n}\n\n/**\n * Wrapper message for `uint32`.\n *\n * The JSON representation for `UInt32Value` is JSON number.\n */\nexport interface UInt32Value {\n /** The uint32 value. */\n value: number;\n}\n\n/**\n * Wrapper message for `bool`.\n *\n * The JSON representation for `BoolValue` is JSON `true` and `false`.\n */\nexport interface BoolValue {\n /** The bool value. */\n value: boolean;\n}\n\n/**\n * Wrapper message for `string`.\n *\n * The JSON representation for `StringValue` is JSON string.\n */\nexport interface StringValue {\n /** The string value. */\n value: string;\n}\n\n/**\n * Wrapper message for `bytes`.\n *\n * The JSON representation for `BytesValue` is JSON string.\n */\nexport interface BytesValue {\n /** The bytes value. */\n value: Uint8Array;\n}\n\nfunction createBaseDoubleValue(): DoubleValue {\n return { value: 0 };\n}\n\nexport const DoubleValue = {\n encode(message: DoubleValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(9).double(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): DoubleValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDoubleValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.double();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<DoubleValue>, I>>(object: I): DoubleValue {\n const message = createBaseDoubleValue();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseFloatValue(): FloatValue {\n return { value: 0 };\n}\n\nexport const FloatValue = {\n encode(message: FloatValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(13).float(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): FloatValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseFloatValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.float();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<FloatValue>, I>>(object: I): FloatValue {\n const message = createBaseFloatValue();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseInt64Value(): Int64Value {\n return { value: 0 };\n}\n\nexport const Int64Value = {\n encode(message: Int64Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(8).int64(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Int64Value {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseInt64Value();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = longToNumber(reader.int64() as Long);\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Int64Value>, I>>(object: I): Int64Value {\n const message = createBaseInt64Value();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseUInt64Value(): UInt64Value {\n return { value: 0 };\n}\n\nexport const UInt64Value = {\n encode(message: UInt64Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(8).uint64(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): UInt64Value {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUInt64Value();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = longToNumber(reader.uint64() as Long);\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<UInt64Value>, I>>(object: I): UInt64Value {\n const message = createBaseUInt64Value();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseInt32Value(): Int32Value {\n return { value: 0 };\n}\n\nexport const Int32Value = {\n encode(message: Int32Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(8).int32(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Int32Value {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseInt32Value();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.int32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Int32Value>, I>>(object: I): Int32Value {\n const message = createBaseInt32Value();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseUInt32Value(): UInt32Value {\n return { value: 0 };\n}\n\nexport const UInt32Value = {\n encode(message: UInt32Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== 0) {\n writer.uint32(8).uint32(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): UInt32Value {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUInt32Value();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.uint32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<UInt32Value>, I>>(object: I): UInt32Value {\n const message = createBaseUInt32Value();\n message.value = object.value ?? 0;\n return message;\n },\n};\n\nfunction createBaseBoolValue(): BoolValue {\n return { value: false };\n}\n\nexport const BoolValue = {\n encode(message: BoolValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value === true) {\n writer.uint32(8).bool(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): BoolValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBoolValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.bool();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<BoolValue>, I>>(object: I): BoolValue {\n const message = createBaseBoolValue();\n message.value = object.value ?? false;\n return message;\n },\n};\n\nfunction createBaseStringValue(): StringValue {\n return { value: \"\" };\n}\n\nexport const StringValue = {\n encode(message: StringValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value !== \"\") {\n writer.uint32(10).string(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): StringValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseStringValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<StringValue>, I>>(object: I): StringValue {\n const message = createBaseStringValue();\n message.value = object.value ?? \"\";\n return message;\n },\n};\n\nfunction createBaseBytesValue(): BytesValue {\n return { value: new Uint8Array() };\n}\n\nexport const BytesValue = {\n encode(message: BytesValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.value.length !== 0) {\n writer.uint32(10).bytes(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): BytesValue {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseBytesValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.value = reader.bytes();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<BytesValue>, I>>(object: I): BytesValue {\n const message = createBaseBytesValue();\n message.value = object.value ?? new Uint8Array();\n return message;\n },\n};\n\ndeclare var self: any | undefined;\ndeclare var window: any | undefined;\ndeclare var global: any | undefined;\nvar globalThis: any = (() => {\n if (typeof globalThis !== \"undefined\") return globalThis;\n if (typeof self !== \"undefined\") return self;\n if (typeof window !== \"undefined\") return window;\n if (typeof global !== \"undefined\") return global;\n throw \"Unable to locate global object\";\n})();\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin\n ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\n\nfunction longToNumber(long: Long): number {\n if (long.gt(Number.MAX_SAFE_INTEGER)) {\n throw new globalThis.Error(\"Value is larger than Number.MAX_SAFE_INTEGER\");\n }\n return long.toNumber();\n}\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
@@ -0,0 +1,42 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Geopoint } from "./geopoint";
3
+ export declare const protobufPackage = "snapchat.lenses";
4
+ export interface Geocircle {
5
+ radius: number;
6
+ center: Geopoint | undefined;
7
+ }
8
+ export declare const Geocircle: {
9
+ encode(message: Geocircle, writer?: _m0.Writer): _m0.Writer;
10
+ decode(input: _m0.Reader | Uint8Array, length?: number): Geocircle;
11
+ fromPartial<I extends {
12
+ radius?: number | undefined;
13
+ center?: {
14
+ latitude?: number | undefined;
15
+ longitude?: number | undefined;
16
+ } | undefined;
17
+ } & {
18
+ radius?: number | undefined;
19
+ center?: ({
20
+ latitude?: number | undefined;
21
+ longitude?: number | undefined;
22
+ } & {
23
+ latitude?: number | undefined;
24
+ longitude?: number | undefined;
25
+ } & Record<Exclude<keyof I["center"], keyof Geopoint>, never>) | undefined;
26
+ } & Record<Exclude<keyof I, keyof Geocircle>, never>>(object: I): Geocircle;
27
+ };
28
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
29
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
30
+ $case: string;
31
+ } ? {
32
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
33
+ } & {
34
+ $case: T["$case"];
35
+ } : T extends {} ? {
36
+ [K in keyof T]?: DeepPartial<T[K]>;
37
+ } : Partial<T>;
38
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
39
+ export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
+ [K in keyof P]: Exact<P[K], I[K]>;
41
+ } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
42
+ export {};
@@ -0,0 +1,52 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Geopoint } from "./geopoint";
5
+ export const protobufPackage = "snapchat.lenses";
6
+ function createBaseGeocircle() {
7
+ return { radius: 0, center: undefined };
8
+ }
9
+ export const Geocircle = {
10
+ encode(message, writer = _m0.Writer.create()) {
11
+ if (message.radius !== 0) {
12
+ writer.uint32(9).double(message.radius);
13
+ }
14
+ if (message.center !== undefined) {
15
+ Geopoint.encode(message.center, writer.uint32(18).fork()).ldelim();
16
+ }
17
+ return writer;
18
+ },
19
+ decode(input, length) {
20
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
21
+ let end = length === undefined ? reader.len : reader.pos + length;
22
+ const message = createBaseGeocircle();
23
+ while (reader.pos < end) {
24
+ const tag = reader.uint32();
25
+ switch (tag >>> 3) {
26
+ case 1:
27
+ message.radius = reader.double();
28
+ break;
29
+ case 2:
30
+ message.center = Geopoint.decode(reader, reader.uint32());
31
+ break;
32
+ default:
33
+ reader.skipType(tag & 7);
34
+ break;
35
+ }
36
+ }
37
+ return message;
38
+ },
39
+ fromPartial(object) {
40
+ var _a;
41
+ const message = createBaseGeocircle();
42
+ message.radius = (_a = object.radius) !== null && _a !== void 0 ? _a : 0;
43
+ message.center =
44
+ object.center !== undefined && object.center !== null ? Geopoint.fromPartial(object.center) : undefined;
45
+ return message;
46
+ },
47
+ };
48
+ if (_m0.util.Long !== Long) {
49
+ _m0.util.Long = Long;
50
+ _m0.configure();
51
+ }
52
+ //# sourceMappingURL=geocircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3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AAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE;gBACjB,KAAK,CAAC;oBACJ,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBACjC,MAAM;gBACR,KAAK,CAAC;oBACJ,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;oBAC1D,MAAM;gBACR;oBACE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACT;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,WAAW,CAA6C,MAAS;;QAC/D,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,CAAC,CAAC;QACpC,OAAO,CAAC,MAAM;YACZ,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC1G,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAqBF,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IAC1B,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\nimport { Geopoint } from \"./geopoint\";\n\nexport const protobufPackage = \"snapchat.lenses\";\n\nexport interface Geocircle {\n radius: number;\n center: Geopoint | undefined;\n}\n\nfunction createBaseGeocircle(): Geocircle {\n return { radius: 0, center: undefined };\n}\n\nexport const Geocircle = {\n encode(message: Geocircle, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.radius !== 0) {\n writer.uint32(9).double(message.radius);\n }\n if (message.center !== undefined) {\n Geopoint.encode(message.center, writer.uint32(18).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Geocircle {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGeocircle();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.radius = reader.double();\n break;\n case 2:\n message.center = Geopoint.decode(reader, reader.uint32());\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Geocircle>, I>>(object: I): Geocircle {\n const message = createBaseGeocircle();\n message.radius = object.radius ?? 0;\n message.center =\n object.center !== undefined && object.center !== null ? Geopoint.fromPartial(object.center) : undefined;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends { $case: string }\n ? { [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]> } & { $case: T[\"$case\"] }\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin\n ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
@@ -0,0 +1,32 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "snapchat.lenses";
3
+ export interface Geopoint {
4
+ latitude: number;
5
+ longitude: number;
6
+ }
7
+ export declare const Geopoint: {
8
+ encode(message: Geopoint, writer?: _m0.Writer): _m0.Writer;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number): Geopoint;
10
+ fromPartial<I extends {
11
+ latitude?: number | undefined;
12
+ longitude?: number | undefined;
13
+ } & {
14
+ latitude?: number | undefined;
15
+ longitude?: number | undefined;
16
+ } & Record<Exclude<keyof I, keyof Geopoint>, never>>(object: I): Geopoint;
17
+ };
18
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
19
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
20
+ $case: string;
21
+ } ? {
22
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
23
+ } & {
24
+ $case: T["$case"];
25
+ } : T extends {} ? {
26
+ [K in keyof T]?: DeepPartial<T[K]>;
27
+ } : Partial<T>;
28
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
29
+ export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
30
+ [K in keyof P]: Exact<P[K], I[K]>;
31
+ } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
32
+ export {};
@@ -0,0 +1,50 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ export const protobufPackage = "snapchat.lenses";
5
+ function createBaseGeopoint() {
6
+ return { latitude: 0, longitude: 0 };
7
+ }
8
+ export const Geopoint = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.latitude !== 0) {
11
+ writer.uint32(9).double(message.latitude);
12
+ }
13
+ if (message.longitude !== 0) {
14
+ writer.uint32(17).double(message.longitude);
15
+ }
16
+ return writer;
17
+ },
18
+ decode(input, length) {
19
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
20
+ let end = length === undefined ? reader.len : reader.pos + length;
21
+ const message = createBaseGeopoint();
22
+ while (reader.pos < end) {
23
+ const tag = reader.uint32();
24
+ switch (tag >>> 3) {
25
+ case 1:
26
+ message.latitude = reader.double();
27
+ break;
28
+ case 2:
29
+ message.longitude = reader.double();
30
+ break;
31
+ default:
32
+ reader.skipType(tag & 7);
33
+ break;
34
+ }
35
+ }
36
+ return message;
37
+ },
38
+ fromPartial(object) {
39
+ var _a, _b;
40
+ const message = createBaseGeopoint();
41
+ message.latitude = (_a = object.latitude) !== null && _a !== void 0 ? _a : 0;
42
+ message.longitude = (_b = object.longitude) !== null && _b !== void 0 ? _b : 0;
43
+ return message;
44
+ },
45
+ };
46
+ if (_m0.util.Long !== Long) {
47
+ _m0.util.Long = Long;
48
+ _m0.configure();
49
+ }
50
+ //# sourceMappingURL=geopoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geopoint.js","sourceRoot":"","sources":["../../../../src/generated-proto/pb_schema/lenses/geopoint.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAOjD,SAAS,kBAAkB;IACzB,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,CAAC,OAAiB,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,CAAC,EAAE;YAC1B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SAC3C;QACD,IAAI,OAAO,CAAC,SAAS,KAAK,CAAC,EAAE;YAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAA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AC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"snapchat.lenses\";\n\nexport interface Geopoint {\n latitude: number;\n longitude: number;\n}\n\nfunction createBaseGeopoint(): Geopoint {\n return { latitude: 0, longitude: 0 };\n}\n\nexport const Geopoint = {\n encode(message: Geopoint, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.latitude !== 0) {\n writer.uint32(9).double(message.latitude);\n }\n if (message.longitude !== 0) {\n writer.uint32(17).double(message.longitude);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Geopoint {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGeopoint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.latitude = reader.double();\n break;\n case 2:\n message.longitude = reader.double();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Geopoint>, I>>(object: I): Geopoint {\n const message = createBaseGeopoint();\n message.latitude = object.latitude ?? 0;\n message.longitude = object.longitude ?? 0;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends { $case: string }\n ? { [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]> } & { $case: T[\"$case\"] }\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin\n ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "snapchat.lenses";
3
+ export interface LaunchParams {
4
+ data: Uint8Array;
5
+ }
6
+ export declare const LaunchParams: {
7
+ encode(message: LaunchParams, writer?: _m0.Writer): _m0.Writer;
8
+ decode(input: _m0.Reader | Uint8Array, length?: number): LaunchParams;
9
+ fromPartial<I extends {
10
+ data?: Uint8Array | undefined;
11
+ } & {
12
+ data?: Uint8Array | undefined;
13
+ } & Record<Exclude<keyof I, "data">, never>>(object: I): LaunchParams;
14
+ };
15
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
16
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
17
+ $case: string;
18
+ } ? {
19
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
20
+ } & {
21
+ $case: T["$case"];
22
+ } : T extends {} ? {
23
+ [K in keyof T]?: DeepPartial<T[K]>;
24
+ } : Partial<T>;
25
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
26
+ export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
27
+ [K in keyof P]: Exact<P[K], I[K]>;
28
+ } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
29
+ export {};
@@ -0,0 +1,43 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ export const protobufPackage = "snapchat.lenses";
5
+ function createBaseLaunchParams() {
6
+ return { data: new Uint8Array() };
7
+ }
8
+ export const LaunchParams = {
9
+ encode(message, writer = _m0.Writer.create()) {
10
+ if (message.data.length !== 0) {
11
+ writer.uint32(10).bytes(message.data);
12
+ }
13
+ return writer;
14
+ },
15
+ decode(input, length) {
16
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
17
+ let end = length === undefined ? reader.len : reader.pos + length;
18
+ const message = createBaseLaunchParams();
19
+ while (reader.pos < end) {
20
+ const tag = reader.uint32();
21
+ switch (tag >>> 3) {
22
+ case 1:
23
+ message.data = reader.bytes();
24
+ break;
25
+ default:
26
+ reader.skipType(tag & 7);
27
+ break;
28
+ }
29
+ }
30
+ return message;
31
+ },
32
+ fromPartial(object) {
33
+ var _a;
34
+ const message = createBaseLaunchParams();
35
+ message.data = (_a = object.data) !== null && _a !== void 0 ? _a : new Uint8Array();
36
+ return message;
37
+ },
38
+ };
39
+ if (_m0.util.Long !== Long) {
40
+ _m0.util.Long = Long;
41
+ _m0.configure();
42
+ }
43
+ //# sourceMappingURL=launch_params.js.map