@snap/camera-kit 0.15.1 → 0.17.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 (418) hide show
  1. package/LICENSE.md +139 -3873
  2. package/README.md +3 -3
  3. package/docs/html/assets/main.js +4 -3
  4. package/docs/html/assets/navigation.js +1 -0
  5. package/docs/html/assets/search.js +1 -1
  6. package/docs/html/assets/style.css +72 -25
  7. package/docs/html/classes/CameraKit.html +11 -196
  8. package/docs/html/classes/CameraKitSession.html +43 -366
  9. package/docs/html/classes/CameraKitSource.html +14 -223
  10. package/docs/html/classes/LensPerformanceMeasurement.html +9 -184
  11. package/docs/html/classes/LensPerformanceMetrics.html +7 -148
  12. package/docs/html/classes/LensRepository.html +17 -234
  13. package/docs/html/classes/Transform2D.html +7 -176
  14. package/docs/html/classes/TypedCustomEvent.html +4 -178
  15. package/docs/html/classes/TypedEventTarget.html +4 -209
  16. package/docs/html/enums/Lens_CameraFacing.html +5 -0
  17. package/docs/html/enums/UserData_Zodiac.html +15 -0
  18. package/docs/html/functions/ConcatInjectable.html +10 -193
  19. package/docs/html/functions/Injectable.html +9 -192
  20. package/docs/html/functions/bootstrapCameraKit.html +6 -147
  21. package/docs/html/functions/createExtension.html +6 -123
  22. package/docs/html/functions/createImageSource.html +4 -130
  23. package/docs/html/functions/createMediaStreamSource.html +4 -130
  24. package/docs/html/functions/createVideoSource.html +4 -130
  25. package/docs/html/functions/estimateLensPerformance.html +3 -120
  26. package/docs/html/functions/lensSourcesFactory.html +6 -127
  27. package/docs/html/functions/remoteApiServicesFactory.html +3 -121
  28. package/docs/html/hierarchy.html +1 -0
  29. package/docs/html/index.html +8 -165
  30. package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +11 -192
  31. package/docs/html/interfaces/CameraKitDeviceOptions.html +11 -0
  32. package/docs/html/interfaces/CameraKitSourceInfo.html +9 -0
  33. package/docs/html/interfaces/CameraKitSourceSubscriber.html +3 -194
  34. package/docs/html/interfaces/ComputedFrameMetrics.html +2 -150
  35. package/docs/html/interfaces/CreateSessionOptions.html +5 -148
  36. package/docs/html/interfaces/EstimatedLensPerformance.html +3 -146
  37. package/docs/html/interfaces/FunctionSourceOptions.html +7 -0
  38. package/docs/html/interfaces/Lens.html +12 -205
  39. package/docs/html/interfaces/LensCreator.html +3 -0
  40. package/docs/html/interfaces/LensLaunchData.html +3 -179
  41. package/docs/html/interfaces/LensSource.html +3 -172
  42. package/docs/html/interfaces/LoadAssetRequest.html +13 -0
  43. package/docs/html/interfaces/MediaStreamSourceOptions.html +16 -138
  44. package/docs/html/interfaces/Preview.html +4 -141
  45. package/docs/html/interfaces/RemoteApiRequest.html +7 -162
  46. package/docs/html/interfaces/RemoteApiResponse.html +6 -155
  47. package/docs/html/interfaces/RemoteApiService.html +9 -171
  48. package/docs/html/interfaces/Snapcode.html +5 -148
  49. package/docs/html/interfaces/UriCancelRequest.html +2 -138
  50. package/docs/html/interfaces/UriRequest.html +2 -154
  51. package/docs/html/interfaces/UriResponse.html +2 -150
  52. package/docs/html/interfaces/VideoSourceOptions.html +15 -134
  53. package/docs/html/modules.html +57 -175
  54. package/docs/html/types/AssetLoader.html +5 -132
  55. package/docs/html/types/AssetResponse.html +1 -0
  56. package/docs/html/types/AssetTiming.html +2 -115
  57. package/docs/html/types/BenchmarkError.html +1 -112
  58. package/docs/html/types/BootstrapError.html +2 -115
  59. package/docs/html/types/CacheKeyNotFoundError.html +1 -112
  60. package/docs/html/types/CameraKitSessionEventListener.html +2 -115
  61. package/docs/html/types/CameraKitSessionEvents.html +2 -122
  62. package/docs/html/types/CameraKitSourceError.html +1 -112
  63. package/docs/html/types/ConfigurationError.html +2 -115
  64. package/docs/html/types/FetchHandler.html +1 -0
  65. package/docs/html/types/Keyboard.html +14 -194
  66. package/docs/html/types/KeyboardEvents.html +2 -124
  67. package/docs/html/types/LegalError.html +1 -112
  68. package/docs/html/types/LensAbortError.html +2 -115
  69. package/docs/html/types/LensAssetError.html +2 -115
  70. package/docs/html/types/LensContentValidationError.html +1 -112
  71. package/docs/html/types/LensError.html +1 -112
  72. package/docs/html/types/LensExecutionError.html +2 -115
  73. package/docs/html/types/LensImagePickerError.html +2 -115
  74. package/docs/html/types/LensLaunchParams.html +2 -0
  75. package/docs/html/types/LensMetricsEvents.html +2 -115
  76. package/docs/html/types/LensPerformanceCluster.html +1 -113
  77. package/docs/html/types/LensView.html +2 -115
  78. package/docs/html/types/LensWait.html +2 -115
  79. package/docs/html/types/Matrix.html +3 -0
  80. package/docs/html/types/PersistentStoreError.html +2 -115
  81. package/docs/html/types/PlatformNotSupportedError.html +2 -115
  82. package/docs/html/types/PublicContainer.html +2 -115
  83. package/docs/html/types/PublicServices.html +2 -0
  84. package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -0
  85. package/docs/html/types/RemoteApiRequestHandler.html +2 -139
  86. package/docs/html/types/RemoteApiServices.html +1 -112
  87. package/docs/html/types/RemoteApiStatus.html +2 -115
  88. package/docs/html/types/RenderTarget.html +2 -115
  89. package/docs/html/types/Uri.html +1 -112
  90. package/docs/html/types/WebGLError.html +1 -112
  91. package/docs/html/variables/extensionRequestContext.html +2 -115
  92. package/docs/md/README.md +3 -3
  93. package/docs/md/classes/CameraKit.md +15 -15
  94. package/docs/md/classes/CameraKitSession.md +38 -38
  95. package/docs/md/classes/CameraKitSource.md +22 -30
  96. package/docs/md/classes/LensPerformanceMeasurement.md +10 -6
  97. package/docs/md/classes/LensPerformanceMetrics.md +2 -2
  98. package/docs/md/classes/LensRepository.md +18 -18
  99. package/docs/md/classes/Transform2D.md +7 -3
  100. package/docs/md/classes/TypedCustomEvent.md +10 -6
  101. package/docs/md/classes/TypedEventTarget.md +12 -8
  102. package/docs/md/enums/Lens_CameraFacing.md +36 -0
  103. package/docs/md/enums/UserData_Zodiac.md +106 -0
  104. package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +2 -2
  105. package/docs/md/interfaces/CameraKitDeviceOptions.md +41 -0
  106. package/docs/md/interfaces/CameraKitSourceInfo.md +43 -0
  107. package/docs/md/interfaces/CameraKitSourceSubscriber.md +7 -7
  108. package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
  109. package/docs/md/interfaces/CreateSessionOptions.md +1 -1
  110. package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
  111. package/docs/md/interfaces/FunctionSourceOptions.md +22 -0
  112. package/docs/md/interfaces/Lens.md +4 -4
  113. package/docs/md/interfaces/LensCreator.md +17 -0
  114. package/docs/md/interfaces/LensLaunchData.md +6 -6
  115. package/docs/md/interfaces/LensSource.md +5 -5
  116. package/docs/md/interfaces/LoadAssetRequest.md +49 -0
  117. package/docs/md/interfaces/MediaStreamSourceOptions.md +46 -1
  118. package/docs/md/interfaces/Preview.md +1 -1
  119. package/docs/md/interfaces/RemoteApiRequest.md +2 -2
  120. package/docs/md/interfaces/RemoteApiResponse.md +2 -2
  121. package/docs/md/interfaces/RemoteApiService.md +1 -1
  122. package/docs/md/interfaces/Snapcode.md +1 -1
  123. package/docs/md/interfaces/UriCancelRequest.md +2 -2
  124. package/docs/md/interfaces/UriRequest.md +3 -3
  125. package/docs/md/interfaces/UriResponse.md +2 -2
  126. package/docs/md/interfaces/VideoSourceOptions.md +44 -1
  127. package/docs/md/modules.md +183 -201
  128. package/lib/CameraKit.d.ts +108 -108
  129. package/lib/CameraKit.js +1 -1
  130. package/lib/CameraKit.js.map +1 -1
  131. package/lib/bootstrapCameraKit.d.ts +4 -4
  132. package/lib/bootstrapCameraKit.js +21 -20
  133. package/lib/bootstrapCameraKit.js.map +1 -1
  134. package/lib/clients/createTsProtoClient.d.ts +5 -12
  135. package/lib/clients/createTsProtoClient.js +1 -2
  136. package/lib/clients/createTsProtoClient.js.map +1 -1
  137. package/lib/clients/grpcHandler.d.ts +7 -4
  138. package/lib/clients/grpcHandler.js +8 -5
  139. package/lib/clients/grpcHandler.js.map +1 -1
  140. package/lib/clients/lensesClient.d.ts +3 -3
  141. package/lib/clients/lensesClient.js +2 -2
  142. package/lib/clients/lensesClient.js.map +1 -1
  143. package/lib/clients/metricsClient.d.ts +26 -0
  144. package/lib/clients/metricsClient.js +120 -0
  145. package/lib/clients/metricsClient.js.map +1 -0
  146. package/lib/configuration.js +1 -1
  147. package/lib/configuration.js.map +1 -1
  148. package/lib/dependency-injection/Container.d.ts +1 -1
  149. package/lib/dependency-injection/Container.js +1 -1
  150. package/lib/dependency-injection/Container.js.map +1 -1
  151. package/lib/dependency-injection/Injectable.d.ts +6 -6
  152. package/lib/dependency-injection/Injectable.js.map +1 -1
  153. package/lib/dependency-injection/RootServices.d.ts +7 -8
  154. package/lib/dependency-injection/RootServices.js.map +1 -1
  155. package/lib/environment.d.ts +4 -0
  156. package/lib/environment.js +2 -0
  157. package/lib/environment.js.map +1 -0
  158. package/lib/extensions/RemoteApiServices.d.ts +2 -2
  159. package/lib/extensions/RemoteApiServices.js +11 -6
  160. package/lib/extensions/RemoteApiServices.js.map +1 -1
  161. package/lib/extensions/uriHandlersRegister.d.ts +4 -4
  162. package/lib/extensions/uriHandlersRegister.js +6 -6
  163. package/lib/extensions/uriHandlersRegister.js.map +1 -1
  164. package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +4330 -678
  165. package/lib/generated-proto/blizzard/cameraKitEvents.js +515 -72
  166. package/lib/generated-proto/blizzard/cameraKitEvents.js.map +1 -1
  167. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +3 -11
  168. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +6 -156
  169. package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
  170. package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +19 -19
  171. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +13 -27
  172. package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
  173. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +0 -6
  174. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +2 -83
  175. package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
  176. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +0 -22
  177. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +0 -263
  178. package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
  179. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +30 -34
  180. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +7 -73
  181. package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
  182. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +0 -6
  183. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +0 -110
  184. package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
  185. package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +48 -114
  186. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +0 -225
  187. package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
  188. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +6 -6
  189. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js +5 -19
  190. package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -1
  191. package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +1422 -1422
  192. package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +12 -12
  193. package/lib/generated-proto/pb_schema/cdp/cof/config_request.js +10 -24
  194. package/lib/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -1
  195. package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +207 -207
  196. package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +530 -530
  197. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js +10 -24
  198. package/lib/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -1
  199. package/lib/generated-proto/pb_schema/common/value.d.ts +6 -6
  200. package/lib/generated-proto/pb_schema/common/value.js +4 -18
  201. package/lib/generated-proto/pb_schema/common/value.js.map +1 -1
  202. package/lib/generated-proto/pb_schema/google/api/http.d.ts +0 -6
  203. package/lib/generated-proto/pb_schema/google/api/http.js +0 -77
  204. package/lib/generated-proto/pb_schema/google/api/http.js.map +1 -1
  205. package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +0 -2
  206. package/lib/generated-proto/pb_schema/google/protobuf/any.js +0 -44
  207. package/lib/generated-proto/pb_schema/google/protobuf/any.js.map +1 -1
  208. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +4830 -4896
  209. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js +10 -997
  210. package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -1
  211. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +3 -5
  212. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js +6 -35
  213. package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -1
  214. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +6 -6
  215. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js +10 -24
  216. package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -1
  217. package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +9 -9
  218. package/lib/generated-proto/pb_schema/lenses/remote_api/remote_api_service.d.ts +11 -11
  219. package/lib/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js +6 -20
  220. package/lib/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js.map +1 -1
  221. package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +42 -42
  222. package/lib/generated-proto/pb_schema/lenses/snappable.js +14 -28
  223. package/lib/generated-proto/pb_schema/lenses/snappable.js.map +1 -1
  224. package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +8 -8
  225. package/lib/generated-proto/pb_schema/lenses/user_data.js +8 -22
  226. package/lib/generated-proto/pb_schema/lenses/user_data.js.map +1 -1
  227. package/lib/handlers/defaultFetchHandler.d.ts +1 -1
  228. package/lib/handlers/defaultFetchHandler.js.map +1 -1
  229. package/lib/handlers/requestStateEmittingHandler.d.ts +5 -6
  230. package/lib/handlers/requestStateEmittingHandler.js +6 -8
  231. package/lib/handlers/requestStateEmittingHandler.js.map +1 -1
  232. package/lib/handlers/responseCachingHandler.d.ts +9 -10
  233. package/lib/handlers/responseCachingHandler.js +9 -3
  234. package/lib/handlers/responseCachingHandler.js.map +1 -1
  235. package/lib/handlers/utils.d.ts +12 -0
  236. package/lib/handlers/utils.js +19 -0
  237. package/lib/handlers/utils.js.map +1 -0
  238. package/lib/index.d.ts +21 -15
  239. package/lib/index.js +17 -12
  240. package/lib/index.js.map +1 -1
  241. package/lib/lens/Lens.d.ts +12 -2
  242. package/lib/lens/Lens.js +5 -0
  243. package/lib/lens/Lens.js.map +1 -1
  244. package/lib/lens/LensLaunchData.d.ts +6 -3
  245. package/lib/lens/LensLaunchData.js +2 -0
  246. package/lib/lens/LensLaunchData.js.map +1 -1
  247. package/lib/lens/LensPersistenceStore.d.ts +1 -1
  248. package/lib/lens/LensPersistenceStore.js +1 -1
  249. package/lib/lens/LensPersistenceStore.js.map +1 -1
  250. package/lib/lens/LensRepository.d.ts +5 -1
  251. package/lib/lens/LensRepository.js +9 -5
  252. package/lib/lens/LensRepository.js.map +1 -1
  253. package/lib/lens/LensSource.d.ts +2 -2
  254. package/lib/lens/LensSource.js +4 -4
  255. package/lib/lens/LensSource.js.map +1 -1
  256. package/lib/lens/assets/LensAssetRepository.d.ts +35 -4
  257. package/lib/lens/assets/LensAssetRepository.js +9 -9
  258. package/lib/lens/assets/LensAssetRepository.js.map +1 -1
  259. package/lib/lens/assets/LensAssetsProvider.d.ts +1 -1
  260. package/lib/lens/assets/LensAssetsProvider.js +9 -4
  261. package/lib/lens/assets/LensAssetsProvider.js.map +1 -1
  262. package/lib/lens/assets/deviceDependentAssetLoader.js +3 -2
  263. package/lib/lens/assets/deviceDependentAssetLoader.js.map +1 -1
  264. package/lib/lens/assets/remoteMediaAssetLoaderFactory.js +4 -3
  265. package/lib/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -1
  266. package/lib/lens/assets/staticAssetLoader.js +5 -4
  267. package/lib/lens/assets/staticAssetLoader.js.map +1 -1
  268. package/lib/lens/cameraKitLensSource.d.ts +3 -2
  269. package/lib/lens/cameraKitLensSource.js +87 -42
  270. package/lib/lens/cameraKitLensSource.js.map +1 -1
  271. package/lib/lens/fetchWatermarkLens.d.ts +11 -0
  272. package/lib/lens/fetchWatermarkLens.js +27 -0
  273. package/lib/lens/fetchWatermarkLens.js.map +1 -0
  274. package/lib/lens-client-interface/imagePicker.d.ts +2 -1
  275. package/lib/lens-client-interface/imagePicker.js.map +1 -1
  276. package/lib/lens-client-interface/lensClientInterface.d.ts +1 -1
  277. package/lib/lens-client-interface/lensClientInterface.js +1 -1
  278. package/lib/lens-client-interface/lensClientInterface.js.map +1 -1
  279. package/lib/lens-core-module/lensCore.d.ts +2 -1
  280. package/lib/lens-core-module/lensCore.js.map +1 -1
  281. package/lib/lens-core-module/loader/bootstrapURLs.d.ts +12 -0
  282. package/lib/lens-core-module/loader/bootstrapURLs.js +48 -0
  283. package/lib/lens-core-module/loader/bootstrapURLs.js.map +1 -0
  284. package/lib/lens-core-module/loader/lensCoreFactory.d.ts +0 -12
  285. package/lib/lens-core-module/loader/lensCoreFactory.js +4 -49
  286. package/lib/lens-core-module/loader/lensCoreFactory.js.map +1 -1
  287. package/lib/lensCoreWasmVersions.d.ts +6 -0
  288. package/lib/lensCoreWasmVersions.js +6 -0
  289. package/lib/lensCoreWasmVersions.js.map +1 -0
  290. package/lib/media-sources/CameraKitSource.d.ts +39 -17
  291. package/lib/media-sources/CameraKitSource.js +8 -2
  292. package/lib/media-sources/CameraKitSource.js.map +1 -1
  293. package/lib/media-sources/FunctionSource.d.ts +15 -4
  294. package/lib/media-sources/FunctionSource.js +1 -2
  295. package/lib/media-sources/FunctionSource.js.map +1 -1
  296. package/lib/media-sources/ImageSource.d.ts +3 -5
  297. package/lib/media-sources/ImageSource.js +1 -3
  298. package/lib/media-sources/ImageSource.js.map +1 -1
  299. package/lib/media-sources/MediaStreamSource.d.ts +17 -33
  300. package/lib/media-sources/MediaStreamSource.js +6 -41
  301. package/lib/media-sources/MediaStreamSource.js.map +1 -1
  302. package/lib/media-sources/VideoSource.d.ts +14 -10
  303. package/lib/media-sources/VideoSource.js +5 -11
  304. package/lib/media-sources/VideoSource.js.map +1 -1
  305. package/lib/metrics/businessEventsReporter.d.ts +3 -4
  306. package/lib/metrics/businessEventsReporter.js +11 -55
  307. package/lib/metrics/businessEventsReporter.js.map +1 -1
  308. package/lib/metrics/operational/Count.d.ts +2 -0
  309. package/lib/metrics/operational/Count.js +6 -1
  310. package/lib/metrics/operational/Count.js.map +1 -1
  311. package/lib/metrics/operational/Histogram.d.ts +1 -1
  312. package/lib/metrics/operational/Histogram.js +7 -3
  313. package/lib/metrics/operational/Histogram.js.map +1 -1
  314. package/lib/metrics/operational/Metric.js +2 -0
  315. package/lib/metrics/operational/Metric.js.map +1 -1
  316. package/lib/metrics/operational/Timer.d.ts +9 -6
  317. package/lib/metrics/operational/Timer.js +12 -26
  318. package/lib/metrics/operational/Timer.js.map +1 -1
  319. package/lib/metrics/reporters/reportBenchmarks.d.ts +3 -3
  320. package/lib/metrics/reporters/reportBenchmarks.js +6 -5
  321. package/lib/metrics/reporters/reportBenchmarks.js.map +1 -1
  322. package/lib/metrics/reporters/reportGlobalException.d.ts +4 -4
  323. package/lib/metrics/reporters/reportGlobalException.js +13 -11
  324. package/lib/metrics/reporters/reportGlobalException.js.map +1 -1
  325. package/lib/metrics/reporters/reportHttpMetrics.d.ts +3 -3
  326. package/lib/metrics/reporters/reportHttpMetrics.js +19 -16
  327. package/lib/metrics/reporters/reportHttpMetrics.js.map +1 -1
  328. package/lib/metrics/reporters/reportLegalState.d.ts +3 -3
  329. package/lib/metrics/reporters/reportLegalState.js +7 -9
  330. package/lib/metrics/reporters/reportLegalState.js.map +1 -1
  331. package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +3 -3
  332. package/lib/metrics/reporters/reportLensAndAssetDownload.js +12 -12
  333. package/lib/metrics/reporters/reportLensAndAssetDownload.js.map +1 -1
  334. package/lib/metrics/reporters/reportLensView.d.ts +3 -3
  335. package/lib/metrics/reporters/reportLensView.js +6 -6
  336. package/lib/metrics/reporters/reportLensView.js.map +1 -1
  337. package/lib/metrics/reporters/reportLensWait.d.ts +2 -3
  338. package/lib/metrics/reporters/reportLensWait.js +1 -3
  339. package/lib/metrics/reporters/reportLensWait.js.map +1 -1
  340. package/lib/metrics/reporters/reportPlatformCapabilities.d.ts +3 -3
  341. package/lib/metrics/reporters/reportPlatformCapabilities.js +6 -5
  342. package/lib/metrics/reporters/reportPlatformCapabilities.js.map +1 -1
  343. package/lib/metrics/reporters/reportUserSession.js +3 -3
  344. package/lib/metrics/reporters/reportUserSession.js.map +1 -1
  345. package/lib/metrics/reporters/reporters.d.ts +2 -2
  346. package/lib/namedErrors.d.ts +1 -1
  347. package/lib/namedErrors.js +1 -1
  348. package/lib/namedErrors.js.map +1 -1
  349. package/lib/observable-operators/unsubscribed.d.ts +1 -1
  350. package/lib/observable-operators/unsubscribed.js +1 -1
  351. package/lib/observable-operators/unsubscribed.js.map +1 -1
  352. package/lib/platform/platformCapabilities.d.ts +1 -1
  353. package/lib/platform/platformCapabilities.js +9 -3
  354. package/lib/platform/platformCapabilities.js.map +1 -1
  355. package/lib/platform/platformInfo.d.ts +1 -0
  356. package/lib/platform/platformInfo.js +3 -3
  357. package/lib/platform/platformInfo.js.map +1 -1
  358. package/lib/remote-configuration/cofHandler.d.ts +3 -3
  359. package/lib/remote-configuration/cofHandler.js +6 -4
  360. package/lib/remote-configuration/cofHandler.js.map +1 -1
  361. package/lib/remote-configuration/preloadConfiguration.d.ts +1 -1
  362. package/lib/remote-configuration/preloadConfiguration.js +9 -4
  363. package/lib/remote-configuration/preloadConfiguration.js.map +1 -1
  364. package/lib/remote-configuration/remoteConfiguration.d.ts +7 -6
  365. package/lib/remote-configuration/remoteConfiguration.js +18 -15
  366. package/lib/remote-configuration/remoteConfiguration.js.map +1 -1
  367. package/lib/session/CameraKitSession.d.ts +8 -8
  368. package/lib/session/CameraKitSession.js +11 -9
  369. package/lib/session/CameraKitSession.js.map +1 -1
  370. package/lib/session/LensKeyboard.d.ts +1 -7
  371. package/lib/session/LensKeyboard.js.map +1 -1
  372. package/lib/session/LensPerformanceMeasurement.d.ts +1 -1
  373. package/lib/session/LensPerformanceMeasurement.js +3 -3
  374. package/lib/session/LensPerformanceMeasurement.js.map +1 -1
  375. package/lib/session/LensPerformanceMetrics.d.ts +1 -1
  376. package/lib/session/LensPerformanceMetrics.js.map +1 -1
  377. package/lib/session/lensState.d.ts +5 -4
  378. package/lib/session/lensState.js +80 -57
  379. package/lib/session/lensState.js.map +1 -1
  380. package/lib/transforms/Transform2D.d.ts +8 -3
  381. package/lib/transforms/Transform2D.js +1 -1
  382. package/lib/transforms/Transform2D.js.map +1 -1
  383. package/lib/utils.d.ts +3 -0
  384. package/lib/utils.js +4 -0
  385. package/lib/utils.js.map +1 -0
  386. package/package.json +27 -6
  387. package/docs/html/functions/createUserMediaSource.html +0 -138
  388. package/docs/html/functions/getRequiredBootstrapURLs.html +0 -130
  389. package/docs/html/types/CameraKitDeviceInfo.html +0 -125
  390. package/docs/html/types/CameraKitDeviceOptions.html +0 -120
  391. package/docs/html/types/CameraKitSourceInfo.html +0 -112
  392. package/docs/html/types/CameraKitSourceOptions.html +0 -118
  393. package/lib/common/index.d.ts +0 -2
  394. package/lib/common/index.js +0 -3
  395. package/lib/common/index.js.map +0 -1
  396. package/lib/environment.json +0 -1
  397. package/lib/handlers/index.d.ts +0 -2
  398. package/lib/handlers/index.js +0 -3
  399. package/lib/handlers/index.js.map +0 -1
  400. package/lib/lens-core-module/index.d.ts +0 -3
  401. package/lib/lens-core-module/index.js +0 -4
  402. package/lib/lens-core-module/index.js.map +0 -1
  403. package/lib/lens-core-module/loader/index.d.ts +0 -1
  404. package/lib/lens-core-module/loader/index.js +0 -2
  405. package/lib/lens-core-module/loader/index.js.map +0 -1
  406. package/lib/lensCoreWasmVersions.json +0 -5
  407. package/lib/metrics/metricsHandler.d.ts +0 -10
  408. package/lib/metrics/metricsHandler.js +0 -13
  409. package/lib/metrics/metricsHandler.js.map +0 -1
  410. package/lib/metrics/operational/operationalMetricsReporter.d.ts +0 -64
  411. package/lib/metrics/operational/operationalMetricsReporter.js +0 -144
  412. package/lib/metrics/operational/operationalMetricsReporter.js.map +0 -1
  413. package/lib/session/index.d.ts +0 -1
  414. package/lib/session/index.js +0 -2
  415. package/lib/session/index.js.map +0 -1
  416. package/lib/transforms/index.d.ts +0 -1
  417. package/lib/transforms/index.js +0 -2
  418. package/lib/transforms/index.js.map +0 -1
@@ -35,26 +35,6 @@ export const Http = {
35
35
  }
36
36
  return message;
37
37
  },
38
- fromJSON(object) {
39
- return {
40
- rules: Array.isArray(object === null || object === void 0 ? void 0 : object.rules) ? object.rules.map((e) => HttpRule.fromJSON(e)) : [],
41
- fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)
42
- ? Boolean(object.fullyDecodeReservedExpansion)
43
- : false,
44
- };
45
- },
46
- toJSON(message) {
47
- const obj = {};
48
- if (message.rules) {
49
- obj.rules = message.rules.map((e) => (e ? HttpRule.toJSON(e) : undefined));
50
- }
51
- else {
52
- obj.rules = [];
53
- }
54
- message.fullyDecodeReservedExpansion !== undefined &&
55
- (obj.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion);
56
- return obj;
57
- },
58
38
  fromPartial(object) {
59
39
  var _a, _b;
60
40
  const message = createBaseHttp();
@@ -139,48 +119,6 @@ export const HttpRule = {
139
119
  }
140
120
  return message;
141
121
  },
142
- fromJSON(object) {
143
- return {
144
- selector: isSet(object.selector) ? String(object.selector) : "",
145
- pattern: isSet(object.get)
146
- ? { $case: "get", get: String(object.get) }
147
- : isSet(object.put)
148
- ? { $case: "put", put: String(object.put) }
149
- : isSet(object.post)
150
- ? { $case: "post", post: String(object.post) }
151
- : isSet(object.delete)
152
- ? { $case: "delete", delete: String(object.delete) }
153
- : isSet(object.patch)
154
- ? { $case: "patch", patch: String(object.patch) }
155
- : isSet(object.custom)
156
- ? { $case: "custom", custom: CustomHttpPattern.fromJSON(object.custom) }
157
- : undefined,
158
- body: isSet(object.body) ? String(object.body) : "",
159
- additionalBindings: Array.isArray(object === null || object === void 0 ? void 0 : object.additionalBindings)
160
- ? object.additionalBindings.map((e) => HttpRule.fromJSON(e))
161
- : [],
162
- };
163
- },
164
- toJSON(message) {
165
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
166
- const obj = {};
167
- message.selector !== undefined && (obj.selector = message.selector);
168
- ((_a = message.pattern) === null || _a === void 0 ? void 0 : _a.$case) === "get" && (obj.get = (_b = message.pattern) === null || _b === void 0 ? void 0 : _b.get);
169
- ((_c = message.pattern) === null || _c === void 0 ? void 0 : _c.$case) === "put" && (obj.put = (_d = message.pattern) === null || _d === void 0 ? void 0 : _d.put);
170
- ((_e = message.pattern) === null || _e === void 0 ? void 0 : _e.$case) === "post" && (obj.post = (_f = message.pattern) === null || _f === void 0 ? void 0 : _f.post);
171
- ((_g = message.pattern) === null || _g === void 0 ? void 0 : _g.$case) === "delete" && (obj.delete = (_h = message.pattern) === null || _h === void 0 ? void 0 : _h.delete);
172
- ((_j = message.pattern) === null || _j === void 0 ? void 0 : _j.$case) === "patch" && (obj.patch = (_k = message.pattern) === null || _k === void 0 ? void 0 : _k.patch);
173
- ((_l = message.pattern) === null || _l === void 0 ? void 0 : _l.$case) === "custom" &&
174
- (obj.custom = ((_m = message.pattern) === null || _m === void 0 ? void 0 : _m.custom) ? CustomHttpPattern.toJSON((_o = message.pattern) === null || _o === void 0 ? void 0 : _o.custom) : undefined);
175
- message.body !== undefined && (obj.body = message.body);
176
- if (message.additionalBindings) {
177
- obj.additionalBindings = message.additionalBindings.map((e) => (e ? HttpRule.toJSON(e) : undefined));
178
- }
179
- else {
180
- obj.additionalBindings = [];
181
- }
182
- return obj;
183
- },
184
122
  fromPartial(object) {
185
123
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
186
124
  const message = createBaseHttpRule();
@@ -241,18 +179,6 @@ export const CustomHttpPattern = {
241
179
  }
242
180
  return message;
243
181
  },
244
- fromJSON(object) {
245
- return {
246
- kind: isSet(object.kind) ? String(object.kind) : "",
247
- path: isSet(object.path) ? String(object.path) : "",
248
- };
249
- },
250
- toJSON(message) {
251
- const obj = {};
252
- message.kind !== undefined && (obj.kind = message.kind);
253
- message.path !== undefined && (obj.path = message.path);
254
- return obj;
255
- },
256
182
  fromPartial(object) {
257
183
  var _a, _b;
258
184
  const message = createBaseCustomHttpPattern();
@@ -265,7 +191,4 @@ if (_m0.util.Long !== Long) {
265
191
  _m0.util.Long = Long;
266
192
  _m0.configure();
267
193
  }
268
- function isSet(value) {
269
- return value !== null && value !== undefined;
270
- }
271
194
  //# sourceMappingURL=http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/api/http.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAyR5C,SAAS,cAAc;IACrB,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,4BAA4B,EAAE,KAAK,EAAE,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,CAAC,OAAa,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5D,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,KAAK,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,CAAC;IAED,MAAM,CAAC,OAA0B;QAC/B,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACxD,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACxD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,WAAW,CAAqD,MAAS;;QACvE,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;QAC9C,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,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;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"google.api\";\n\n/**\n * Defines the HTTP configuration for an API service. It contains a list of\n * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method\n * to one or more HTTP REST API methods.\n */\nexport interface Http {\n /**\n * A list of HTTP configuration rules that apply to individual API methods.\n *\n * **NOTE:** All service configuration rules follow \"last one wins\" order.\n */\n rules: HttpRule[];\n /**\n * When set to true, URL path parmeters will be fully URI-decoded except in\n * cases of single segment matches in reserved expansion, where \"%2F\" will be\n * left encoded.\n *\n * The default behavior is to not decode RFC 6570 reserved characters in multi\n * segment matches.\n */\n fullyDecodeReservedExpansion: boolean;\n}\n\n/**\n * `HttpRule` defines the mapping of an RPC method to one or more HTTP\n * REST API methods. The mapping specifies how different portions of the RPC\n * request message are mapped to URL path, URL query parameters, and\n * HTTP request body. The mapping is typically specified as an\n * `google.api.http` annotation on the RPC method,\n * see \"google/api/annotations.proto\" for details.\n *\n * The mapping consists of a field specifying the path template and\n * method kind. The path template can refer to fields in the request\n * message, as in the example below which describes a REST GET\n * operation on a resource collection of messages:\n *\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http).get = \"/v1/messages/{message_id}/{sub.subfield}\";\n * }\n * }\n * message GetMessageRequest {\n * message SubMessage {\n * string subfield = 1;\n * }\n * string message_id = 1; // mapped to the URL\n * SubMessage sub = 2; // `sub.subfield` is url-mapped\n * }\n * message Message {\n * string text = 1; // content of the resource\n * }\n *\n * The same http annotation can alternatively be expressed inside the\n * `GRPC API Configuration` YAML file.\n *\n * http:\n * rules:\n * - selector: <proto_package_name>.Messaging.GetMessage\n * get: /v1/messages/{message_id}/{sub.subfield}\n *\n * This definition enables an automatic, bidrectional mapping of HTTP\n * JSON to RPC. Example:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456/foo` | `GetMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n *\n * In general, not only fields but also field paths can be referenced\n * from a path pattern. Fields mapped to the path pattern cannot be\n * repeated and must have a primitive (non-message) type.\n *\n * Any fields in the request message which are not bound by the path\n * pattern automatically become (optional) HTTP query\n * parameters. Assume the following definition of the request message:\n *\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http).get = \"/v1/messages/{message_id}\";\n * }\n * }\n * message GetMessageRequest {\n * message SubMessage {\n * string subfield = 1;\n * }\n * string message_id = 1; // mapped to the URL\n * int64 revision = 2; // becomes a parameter\n * SubMessage sub = 3; // `sub.subfield` becomes a parameter\n * }\n *\n *\n * This enables a HTTP JSON to RPC mapping as below:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n *\n * Note that fields which are mapped to HTTP parameters must have a\n * primitive type or a repeated primitive type. Message types are not\n * allowed. In the case of a repeated type, the parameter can be\n * repeated in the URL, as in `...?param=A&param=B`.\n *\n * For HTTP method kinds which allow a request body, the `body` field\n * specifies the mapping. Consider a REST update method on the\n * message resource collection:\n *\n *\n * service Messaging {\n * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {\n * option (google.api.http) = {\n * put: \"/v1/messages/{message_id}\"\n * body: \"message\"\n * };\n * }\n * }\n * message UpdateMessageRequest {\n * string message_id = 1; // mapped to the URL\n * Message message = 2; // mapped to the body\n * }\n *\n *\n * The following HTTP JSON to RPC mapping is enabled, where the\n * representation of the JSON in the request body is determined by\n * protos JSON encoding:\n *\n * HTTP | RPC\n * -----|-----\n * `PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \"Hi!\" })`\n *\n * The special name `*` can be used in the body mapping to define that\n * every field not bound by the path template should be mapped to the\n * request body. This enables the following alternative definition of\n * the update method:\n *\n * service Messaging {\n * rpc UpdateMessage(Message) returns (Message) {\n * option (google.api.http) = {\n * put: \"/v1/messages/{message_id}\"\n * body: \"*\"\n * };\n * }\n * }\n * message Message {\n * string message_id = 1;\n * string text = 2;\n * }\n *\n *\n * The following HTTP JSON to RPC mapping is enabled:\n *\n * HTTP | RPC\n * -----|-----\n * `PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"Hi!\")`\n *\n * Note that when using `*` in the body mapping, it is not possible to\n * have HTTP parameters, as all fields not bound by the path end in\n * the body. This makes this option more rarely used in practice of\n * defining REST APIs. The common usage of `*` is in custom methods\n * which don't use the URL at all for transferring data.\n *\n * It is possible to define multiple HTTP methods for one RPC by using\n * the `additional_bindings` option. Example:\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http) = {\n * get: \"/v1/messages/{message_id}\"\n * additional_bindings {\n * get: \"/v1/users/{user_id}/messages/{message_id}\"\n * }\n * };\n * }\n * }\n * message GetMessageRequest {\n * string message_id = 1;\n * string user_id = 2;\n * }\n *\n *\n * This enables the following two alternative HTTP JSON to RPC\n * mappings:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456` | `GetMessage(message_id: \"123456\")`\n * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n *\n * # Rules for HTTP mapping\n *\n * The rules for mapping HTTP path, query parameters, and body fields\n * to the request message are as follows:\n *\n * 1. The `body` field specifies either `*` or a field path, or is\n * omitted. If omitted, it indicates there is no HTTP request body.\n * 2. Leaf fields (recursive expansion of nested messages in the\n * request) can be classified into three types:\n * (a) Matched in the URL template.\n * (b) Covered by body (if body is `*`, everything except (a) fields;\n * else everything under the body field)\n * (c) All other fields.\n * 3. URL query parameters found in the HTTP request are mapped to (c) fields.\n * 4. Any body sent with an HTTP request can contain only (b) fields.\n *\n * The syntax of the path template is as follows:\n *\n * Template = \"/\" Segments [ Verb ] ;\n * Segments = Segment { \"/\" Segment } ;\n * Segment = \"*\" | \"**\" | LITERAL | Variable ;\n * Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n * FieldPath = IDENT { \".\" IDENT } ;\n * Verb = \":\" LITERAL ;\n *\n * The syntax `*` matches a single path segment. The syntax `**` matches zero\n * or more path segments, which must be the last part of the path except the\n * `Verb`. The syntax `LITERAL` matches literal text in the path.\n *\n * The syntax `Variable` matches part of the URL path as specified by its\n * template. A variable template must not contain other variables. If a variable\n * matches a single path segment, its template may be omitted, e.g. `{var}`\n * is equivalent to `{var=*}`.\n *\n * If a variable contains exactly one path segment, such as `\"{var}\"` or\n * `\"{var=*}\"`, when such a variable is expanded into a URL path, all characters\n * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the\n * Discovery Document as `{var}`.\n *\n * If a variable contains one or more path segments, such as `\"{var=foo/*}\"`\n * or `\"{var=**}\"`, when such a variable is expanded into a URL path, all\n * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables\n * show up in the Discovery Document as `{+var}`.\n *\n * NOTE: While the single segment variable matches the semantics of\n * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2\n * Simple String Expansion, the multi segment variable **does not** match\n * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion\n * does not expand special characters like `?` and `#`, which would lead\n * to invalid URLs.\n *\n * NOTE: the field paths in variables and in the `body` must not refer to\n * repeated fields or map fields.\n */\nexport interface HttpRule {\n /**\n * Selects methods to which this rule applies.\n *\n * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.\n */\n selector: string;\n pattern?:\n | { $case: \"get\"; get: string }\n | { $case: \"put\"; put: string }\n | { $case: \"post\"; post: string }\n | { $case: \"delete\"; delete: string }\n | { $case: \"patch\"; patch: string }\n | { $case: \"custom\"; custom: CustomHttpPattern };\n /**\n * The name of the request field whose value is mapped to the HTTP body, or\n * `*` for mapping all fields not captured by the path pattern to the HTTP\n * body. NOTE: the referred field must not be a repeated field and must be\n * present at the top-level of request message type.\n */\n body: string;\n /**\n * Additional HTTP bindings for the selector. Nested bindings must\n * not contain an `additional_bindings` field themselves (that is,\n * the nesting may only be one level deep).\n */\n additionalBindings: HttpRule[];\n}\n\n/** A custom pattern is used for defining custom HTTP verb. */\nexport interface CustomHttpPattern {\n /** The name of this custom HTTP verb. */\n kind: string;\n /** The path matched by this custom verb. */\n path: string;\n}\n\nfunction createBaseHttp(): Http {\n return { rules: [], fullyDecodeReservedExpansion: false };\n}\n\nexport const Http = {\n encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.rules) {\n HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n if (message.fullyDecodeReservedExpansion === true) {\n writer.uint32(16).bool(message.fullyDecodeReservedExpansion);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Http {\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 = createBaseHttp();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.rules.push(HttpRule.decode(reader, reader.uint32()));\n break;\n case 2:\n message.fullyDecodeReservedExpansion = reader.bool();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Http {\n return {\n rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => HttpRule.fromJSON(e)) : [],\n fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)\n ? Boolean(object.fullyDecodeReservedExpansion)\n : false,\n };\n },\n\n toJSON(message: Http): unknown {\n const obj: any = {};\n if (message.rules) {\n obj.rules = message.rules.map((e) => (e ? HttpRule.toJSON(e) : undefined));\n } else {\n obj.rules = [];\n }\n message.fullyDecodeReservedExpansion !== undefined &&\n (obj.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion);\n return obj;\n },\n\n fromPartial<I extends Exact<DeepPartial<Http>, I>>(object: I): Http {\n const message = createBaseHttp();\n message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || [];\n message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;\n return message;\n },\n};\n\nfunction createBaseHttpRule(): HttpRule {\n return { selector: \"\", pattern: undefined, body: \"\", additionalBindings: [] };\n}\n\nexport const HttpRule = {\n encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.selector !== \"\") {\n writer.uint32(10).string(message.selector);\n }\n if (message.pattern?.$case === \"get\") {\n writer.uint32(18).string(message.pattern.get);\n }\n if (message.pattern?.$case === \"put\") {\n writer.uint32(26).string(message.pattern.put);\n }\n if (message.pattern?.$case === \"post\") {\n writer.uint32(34).string(message.pattern.post);\n }\n if (message.pattern?.$case === \"delete\") {\n writer.uint32(42).string(message.pattern.delete);\n }\n if (message.pattern?.$case === \"patch\") {\n writer.uint32(50).string(message.pattern.patch);\n }\n if (message.pattern?.$case === \"custom\") {\n CustomHttpPattern.encode(message.pattern.custom, writer.uint32(66).fork()).ldelim();\n }\n if (message.body !== \"\") {\n writer.uint32(58).string(message.body);\n }\n for (const v of message.additionalBindings) {\n HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule {\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 = createBaseHttpRule();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.selector = reader.string();\n break;\n case 2:\n message.pattern = { $case: \"get\", get: reader.string() };\n break;\n case 3:\n message.pattern = { $case: \"put\", put: reader.string() };\n break;\n case 4:\n message.pattern = { $case: \"post\", post: reader.string() };\n break;\n case 5:\n message.pattern = { $case: \"delete\", delete: reader.string() };\n break;\n case 6:\n message.pattern = { $case: \"patch\", patch: reader.string() };\n break;\n case 8:\n message.pattern = { $case: \"custom\", custom: CustomHttpPattern.decode(reader, reader.uint32()) };\n break;\n case 7:\n message.body = reader.string();\n break;\n case 11:\n message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): HttpRule {\n return {\n selector: isSet(object.selector) ? String(object.selector) : \"\",\n pattern: isSet(object.get)\n ? { $case: \"get\", get: String(object.get) }\n : isSet(object.put)\n ? { $case: \"put\", put: String(object.put) }\n : isSet(object.post)\n ? { $case: \"post\", post: String(object.post) }\n : isSet(object.delete)\n ? { $case: \"delete\", delete: String(object.delete) }\n : isSet(object.patch)\n ? { $case: \"patch\", patch: String(object.patch) }\n : isSet(object.custom)\n ? { $case: \"custom\", custom: CustomHttpPattern.fromJSON(object.custom) }\n : undefined,\n body: isSet(object.body) ? String(object.body) : \"\",\n additionalBindings: Array.isArray(object?.additionalBindings)\n ? object.additionalBindings.map((e: any) => HttpRule.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: HttpRule): unknown {\n const obj: any = {};\n message.selector !== undefined && (obj.selector = message.selector);\n message.pattern?.$case === \"get\" && (obj.get = message.pattern?.get);\n message.pattern?.$case === \"put\" && (obj.put = message.pattern?.put);\n message.pattern?.$case === \"post\" && (obj.post = message.pattern?.post);\n message.pattern?.$case === \"delete\" && (obj.delete = message.pattern?.delete);\n message.pattern?.$case === \"patch\" && (obj.patch = message.pattern?.patch);\n message.pattern?.$case === \"custom\" &&\n (obj.custom = message.pattern?.custom ? CustomHttpPattern.toJSON(message.pattern?.custom) : undefined);\n message.body !== undefined && (obj.body = message.body);\n if (message.additionalBindings) {\n obj.additionalBindings = message.additionalBindings.map((e) => (e ? HttpRule.toJSON(e) : undefined));\n } else {\n obj.additionalBindings = [];\n }\n return obj;\n },\n\n fromPartial<I extends Exact<DeepPartial<HttpRule>, I>>(object: I): HttpRule {\n const message = createBaseHttpRule();\n message.selector = object.selector ?? \"\";\n if (object.pattern?.$case === \"get\" && object.pattern?.get !== undefined && object.pattern?.get !== null) {\n message.pattern = { $case: \"get\", get: object.pattern.get };\n }\n if (object.pattern?.$case === \"put\" && object.pattern?.put !== undefined && object.pattern?.put !== null) {\n message.pattern = { $case: \"put\", put: object.pattern.put };\n }\n if (object.pattern?.$case === \"post\" && object.pattern?.post !== undefined && object.pattern?.post !== null) {\n message.pattern = { $case: \"post\", post: object.pattern.post };\n }\n if (object.pattern?.$case === \"delete\" && object.pattern?.delete !== undefined && object.pattern?.delete !== null) {\n message.pattern = { $case: \"delete\", delete: object.pattern.delete };\n }\n if (object.pattern?.$case === \"patch\" && object.pattern?.patch !== undefined && object.pattern?.patch !== null) {\n message.pattern = { $case: \"patch\", patch: object.pattern.patch };\n }\n if (object.pattern?.$case === \"custom\" && object.pattern?.custom !== undefined && object.pattern?.custom !== null) {\n message.pattern = { $case: \"custom\", custom: CustomHttpPattern.fromPartial(object.pattern.custom) };\n }\n message.body = object.body ?? \"\";\n message.additionalBindings = object.additionalBindings?.map((e) => HttpRule.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseCustomHttpPattern(): CustomHttpPattern {\n return { kind: \"\", path: \"\" };\n}\n\nexport const CustomHttpPattern = {\n encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.kind !== \"\") {\n writer.uint32(10).string(message.kind);\n }\n if (message.path !== \"\") {\n writer.uint32(18).string(message.path);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern {\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 = createBaseCustomHttpPattern();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.kind = reader.string();\n break;\n case 2:\n message.path = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): CustomHttpPattern {\n return {\n kind: isSet(object.kind) ? String(object.kind) : \"\",\n path: isSet(object.path) ? String(object.path) : \"\",\n };\n },\n\n toJSON(message: CustomHttpPattern): unknown {\n const obj: any = {};\n message.kind !== undefined && (obj.kind = message.kind);\n message.path !== undefined && (obj.path = message.path);\n return obj;\n },\n\n fromPartial<I extends Exact<DeepPartial<CustomHttpPattern>, I>>(object: I): CustomHttpPattern {\n const message = createBaseCustomHttpPattern();\n message.kind = object.kind ?? \"\";\n message.path = object.path ?? \"\";\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\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/api/http.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAyR5C,SAAS,cAAc;IACrB,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,4BAA4B,EAAE,KAAK,EAAE,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,CAAC,OAAa,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5D,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE;YAC7B,QAAQ,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SACxD;QACD,IAAI,OAAO,CAAC,4BAA4B,KAAK,IAAI,EAAE;YACjD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;SAC9D;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MA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;gBACR;oBACE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACT;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,WAAW,CAAqD,MAAS;;QACvE,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;QAC9C,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,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\";\n\nexport const protobufPackage = \"google.api\";\n\n/**\n * Defines the HTTP configuration for an API service. It contains a list of\n * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method\n * to one or more HTTP REST API methods.\n */\nexport interface Http {\n /**\n * A list of HTTP configuration rules that apply to individual API methods.\n *\n * **NOTE:** All service configuration rules follow \"last one wins\" order.\n */\n rules: HttpRule[];\n /**\n * When set to true, URL path parmeters will be fully URI-decoded except in\n * cases of single segment matches in reserved expansion, where \"%2F\" will be\n * left encoded.\n *\n * The default behavior is to not decode RFC 6570 reserved characters in multi\n * segment matches.\n */\n fullyDecodeReservedExpansion: boolean;\n}\n\n/**\n * `HttpRule` defines the mapping of an RPC method to one or more HTTP\n * REST API methods. The mapping specifies how different portions of the RPC\n * request message are mapped to URL path, URL query parameters, and\n * HTTP request body. The mapping is typically specified as an\n * `google.api.http` annotation on the RPC method,\n * see \"google/api/annotations.proto\" for details.\n *\n * The mapping consists of a field specifying the path template and\n * method kind. The path template can refer to fields in the request\n * message, as in the example below which describes a REST GET\n * operation on a resource collection of messages:\n *\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http).get = \"/v1/messages/{message_id}/{sub.subfield}\";\n * }\n * }\n * message GetMessageRequest {\n * message SubMessage {\n * string subfield = 1;\n * }\n * string message_id = 1; // mapped to the URL\n * SubMessage sub = 2; // `sub.subfield` is url-mapped\n * }\n * message Message {\n * string text = 1; // content of the resource\n * }\n *\n * The same http annotation can alternatively be expressed inside the\n * `GRPC API Configuration` YAML file.\n *\n * http:\n * rules:\n * - selector: <proto_package_name>.Messaging.GetMessage\n * get: /v1/messages/{message_id}/{sub.subfield}\n *\n * This definition enables an automatic, bidrectional mapping of HTTP\n * JSON to RPC. Example:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456/foo` | `GetMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n *\n * In general, not only fields but also field paths can be referenced\n * from a path pattern. Fields mapped to the path pattern cannot be\n * repeated and must have a primitive (non-message) type.\n *\n * Any fields in the request message which are not bound by the path\n * pattern automatically become (optional) HTTP query\n * parameters. Assume the following definition of the request message:\n *\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http).get = \"/v1/messages/{message_id}\";\n * }\n * }\n * message GetMessageRequest {\n * message SubMessage {\n * string subfield = 1;\n * }\n * string message_id = 1; // mapped to the URL\n * int64 revision = 2; // becomes a parameter\n * SubMessage sub = 3; // `sub.subfield` becomes a parameter\n * }\n *\n *\n * This enables a HTTP JSON to RPC mapping as below:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n *\n * Note that fields which are mapped to HTTP parameters must have a\n * primitive type or a repeated primitive type. Message types are not\n * allowed. In the case of a repeated type, the parameter can be\n * repeated in the URL, as in `...?param=A&param=B`.\n *\n * For HTTP method kinds which allow a request body, the `body` field\n * specifies the mapping. Consider a REST update method on the\n * message resource collection:\n *\n *\n * service Messaging {\n * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {\n * option (google.api.http) = {\n * put: \"/v1/messages/{message_id}\"\n * body: \"message\"\n * };\n * }\n * }\n * message UpdateMessageRequest {\n * string message_id = 1; // mapped to the URL\n * Message message = 2; // mapped to the body\n * }\n *\n *\n * The following HTTP JSON to RPC mapping is enabled, where the\n * representation of the JSON in the request body is determined by\n * protos JSON encoding:\n *\n * HTTP | RPC\n * -----|-----\n * `PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \"Hi!\" })`\n *\n * The special name `*` can be used in the body mapping to define that\n * every field not bound by the path template should be mapped to the\n * request body. This enables the following alternative definition of\n * the update method:\n *\n * service Messaging {\n * rpc UpdateMessage(Message) returns (Message) {\n * option (google.api.http) = {\n * put: \"/v1/messages/{message_id}\"\n * body: \"*\"\n * };\n * }\n * }\n * message Message {\n * string message_id = 1;\n * string text = 2;\n * }\n *\n *\n * The following HTTP JSON to RPC mapping is enabled:\n *\n * HTTP | RPC\n * -----|-----\n * `PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"Hi!\")`\n *\n * Note that when using `*` in the body mapping, it is not possible to\n * have HTTP parameters, as all fields not bound by the path end in\n * the body. This makes this option more rarely used in practice of\n * defining REST APIs. The common usage of `*` is in custom methods\n * which don't use the URL at all for transferring data.\n *\n * It is possible to define multiple HTTP methods for one RPC by using\n * the `additional_bindings` option. Example:\n *\n * service Messaging {\n * rpc GetMessage(GetMessageRequest) returns (Message) {\n * option (google.api.http) = {\n * get: \"/v1/messages/{message_id}\"\n * additional_bindings {\n * get: \"/v1/users/{user_id}/messages/{message_id}\"\n * }\n * };\n * }\n * }\n * message GetMessageRequest {\n * string message_id = 1;\n * string user_id = 2;\n * }\n *\n *\n * This enables the following two alternative HTTP JSON to RPC\n * mappings:\n *\n * HTTP | RPC\n * -----|-----\n * `GET /v1/messages/123456` | `GetMessage(message_id: \"123456\")`\n * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n *\n * # Rules for HTTP mapping\n *\n * The rules for mapping HTTP path, query parameters, and body fields\n * to the request message are as follows:\n *\n * 1. The `body` field specifies either `*` or a field path, or is\n * omitted. If omitted, it indicates there is no HTTP request body.\n * 2. Leaf fields (recursive expansion of nested messages in the\n * request) can be classified into three types:\n * (a) Matched in the URL template.\n * (b) Covered by body (if body is `*`, everything except (a) fields;\n * else everything under the body field)\n * (c) All other fields.\n * 3. URL query parameters found in the HTTP request are mapped to (c) fields.\n * 4. Any body sent with an HTTP request can contain only (b) fields.\n *\n * The syntax of the path template is as follows:\n *\n * Template = \"/\" Segments [ Verb ] ;\n * Segments = Segment { \"/\" Segment } ;\n * Segment = \"*\" | \"**\" | LITERAL | Variable ;\n * Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n * FieldPath = IDENT { \".\" IDENT } ;\n * Verb = \":\" LITERAL ;\n *\n * The syntax `*` matches a single path segment. The syntax `**` matches zero\n * or more path segments, which must be the last part of the path except the\n * `Verb`. The syntax `LITERAL` matches literal text in the path.\n *\n * The syntax `Variable` matches part of the URL path as specified by its\n * template. A variable template must not contain other variables. If a variable\n * matches a single path segment, its template may be omitted, e.g. `{var}`\n * is equivalent to `{var=*}`.\n *\n * If a variable contains exactly one path segment, such as `\"{var}\"` or\n * `\"{var=*}\"`, when such a variable is expanded into a URL path, all characters\n * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the\n * Discovery Document as `{var}`.\n *\n * If a variable contains one or more path segments, such as `\"{var=foo/*}\"`\n * or `\"{var=**}\"`, when such a variable is expanded into a URL path, all\n * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables\n * show up in the Discovery Document as `{+var}`.\n *\n * NOTE: While the single segment variable matches the semantics of\n * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2\n * Simple String Expansion, the multi segment variable **does not** match\n * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion\n * does not expand special characters like `?` and `#`, which would lead\n * to invalid URLs.\n *\n * NOTE: the field paths in variables and in the `body` must not refer to\n * repeated fields or map fields.\n */\nexport interface HttpRule {\n /**\n * Selects methods to which this rule applies.\n *\n * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.\n */\n selector: string;\n pattern?:\n | { $case: \"get\"; get: string }\n | { $case: \"put\"; put: string }\n | { $case: \"post\"; post: string }\n | { $case: \"delete\"; delete: string }\n | { $case: \"patch\"; patch: string }\n | { $case: \"custom\"; custom: CustomHttpPattern };\n /**\n * The name of the request field whose value is mapped to the HTTP body, or\n * `*` for mapping all fields not captured by the path pattern to the HTTP\n * body. NOTE: the referred field must not be a repeated field and must be\n * present at the top-level of request message type.\n */\n body: string;\n /**\n * Additional HTTP bindings for the selector. Nested bindings must\n * not contain an `additional_bindings` field themselves (that is,\n * the nesting may only be one level deep).\n */\n additionalBindings: HttpRule[];\n}\n\n/** A custom pattern is used for defining custom HTTP verb. */\nexport interface CustomHttpPattern {\n /** The name of this custom HTTP verb. */\n kind: string;\n /** The path matched by this custom verb. */\n path: string;\n}\n\nfunction createBaseHttp(): Http {\n return { rules: [], fullyDecodeReservedExpansion: false };\n}\n\nexport const Http = {\n encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.rules) {\n HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n if (message.fullyDecodeReservedExpansion === true) {\n writer.uint32(16).bool(message.fullyDecodeReservedExpansion);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Http {\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 = createBaseHttp();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.rules.push(HttpRule.decode(reader, reader.uint32()));\n break;\n case 2:\n message.fullyDecodeReservedExpansion = 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<Http>, I>>(object: I): Http {\n const message = createBaseHttp();\n message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || [];\n message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;\n return message;\n },\n};\n\nfunction createBaseHttpRule(): HttpRule {\n return { selector: \"\", pattern: undefined, body: \"\", additionalBindings: [] };\n}\n\nexport const HttpRule = {\n encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.selector !== \"\") {\n writer.uint32(10).string(message.selector);\n }\n if (message.pattern?.$case === \"get\") {\n writer.uint32(18).string(message.pattern.get);\n }\n if (message.pattern?.$case === \"put\") {\n writer.uint32(26).string(message.pattern.put);\n }\n if (message.pattern?.$case === \"post\") {\n writer.uint32(34).string(message.pattern.post);\n }\n if (message.pattern?.$case === \"delete\") {\n writer.uint32(42).string(message.pattern.delete);\n }\n if (message.pattern?.$case === \"patch\") {\n writer.uint32(50).string(message.pattern.patch);\n }\n if (message.pattern?.$case === \"custom\") {\n CustomHttpPattern.encode(message.pattern.custom, writer.uint32(66).fork()).ldelim();\n }\n if (message.body !== \"\") {\n writer.uint32(58).string(message.body);\n }\n for (const v of message.additionalBindings) {\n HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule {\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 = createBaseHttpRule();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.selector = reader.string();\n break;\n case 2:\n message.pattern = { $case: \"get\", get: reader.string() };\n break;\n case 3:\n message.pattern = { $case: \"put\", put: reader.string() };\n break;\n case 4:\n message.pattern = { $case: \"post\", post: reader.string() };\n break;\n case 5:\n message.pattern = { $case: \"delete\", delete: reader.string() };\n break;\n case 6:\n message.pattern = { $case: \"patch\", patch: reader.string() };\n break;\n case 8:\n message.pattern = { $case: \"custom\", custom: CustomHttpPattern.decode(reader, reader.uint32()) };\n break;\n case 7:\n message.body = reader.string();\n break;\n case 11:\n message.additionalBindings.push(HttpRule.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<HttpRule>, I>>(object: I): HttpRule {\n const message = createBaseHttpRule();\n message.selector = object.selector ?? \"\";\n if (object.pattern?.$case === \"get\" && object.pattern?.get !== undefined && object.pattern?.get !== null) {\n message.pattern = { $case: \"get\", get: object.pattern.get };\n }\n if (object.pattern?.$case === \"put\" && object.pattern?.put !== undefined && object.pattern?.put !== null) {\n message.pattern = { $case: \"put\", put: object.pattern.put };\n }\n if (object.pattern?.$case === \"post\" && object.pattern?.post !== undefined && object.pattern?.post !== null) {\n message.pattern = { $case: \"post\", post: object.pattern.post };\n }\n if (object.pattern?.$case === \"delete\" && object.pattern?.delete !== undefined && object.pattern?.delete !== null) {\n message.pattern = { $case: \"delete\", delete: object.pattern.delete };\n }\n if (object.pattern?.$case === \"patch\" && object.pattern?.patch !== undefined && object.pattern?.patch !== null) {\n message.pattern = { $case: \"patch\", patch: object.pattern.patch };\n }\n if (object.pattern?.$case === \"custom\" && object.pattern?.custom !== undefined && object.pattern?.custom !== null) {\n message.pattern = { $case: \"custom\", custom: CustomHttpPattern.fromPartial(object.pattern.custom) };\n }\n message.body = object.body ?? \"\";\n message.additionalBindings = object.additionalBindings?.map((e) => HttpRule.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseCustomHttpPattern(): CustomHttpPattern {\n return { kind: \"\", path: \"\" };\n}\n\nexport const CustomHttpPattern = {\n encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.kind !== \"\") {\n writer.uint32(10).string(message.kind);\n }\n if (message.path !== \"\") {\n writer.uint32(18).string(message.path);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern {\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 = createBaseCustomHttpPattern();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.kind = reader.string();\n break;\n case 2:\n message.path = 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<CustomHttpPattern>, I>>(object: I): CustomHttpPattern {\n const message = createBaseCustomHttpPattern();\n message.kind = object.kind ?? \"\";\n message.path = object.path ?? \"\";\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"]}
@@ -7,8 +7,6 @@ export interface Any {
7
7
  export declare const Any: {
8
8
  encode(message: Any, writer?: _m0.Writer): _m0.Writer;
9
9
  decode(input: _m0.Reader | Uint8Array, length?: number): Any;
10
- fromJSON(object: any): Any;
11
- toJSON(message: Any): unknown;
12
10
  fromPartial<I extends {
13
11
  typeUrl?: string | undefined;
14
12
  value?: Uint8Array | undefined;
@@ -34,19 +34,6 @@ export const Any = {
34
34
  }
35
35
  return message;
36
36
  },
37
- fromJSON(object) {
38
- return {
39
- typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "",
40
- value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
41
- };
42
- },
43
- toJSON(message) {
44
- const obj = {};
45
- message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl);
46
- message.value !== undefined &&
47
- (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
48
- return obj;
49
- },
50
37
  fromPartial(object) {
51
38
  var _a, _b;
52
39
  const message = createBaseAny();
@@ -55,39 +42,8 @@ export const Any = {
55
42
  return message;
56
43
  },
57
44
  };
58
- var globalThis = (() => {
59
- if (typeof globalThis !== "undefined")
60
- return globalThis;
61
- if (typeof self !== "undefined")
62
- return self;
63
- if (typeof window !== "undefined")
64
- return window;
65
- if (typeof global !== "undefined")
66
- return global;
67
- throw "Unable to locate global object";
68
- })();
69
- const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
70
- function bytesFromBase64(b64) {
71
- const bin = atob(b64);
72
- const arr = new Uint8Array(bin.length);
73
- for (let i = 0; i < bin.length; ++i) {
74
- arr[i] = bin.charCodeAt(i);
75
- }
76
- return arr;
77
- }
78
- const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
79
- function base64FromBytes(arr) {
80
- const bin = [];
81
- for (const byte of arr) {
82
- bin.push(String.fromCharCode(byte));
83
- }
84
- return btoa(bin.join(""));
85
- }
86
45
  if (_m0.util.Long !== Long) {
87
46
  _m0.util.Long = Long;
88
47
  _m0.configure();
89
48
  }
90
- function isSet(value) {
91
- return value !== null && value !== undefined;
92
- }
93
49
  //# sourceMappingURL=any.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/protobuf/any.ts"],"names":[],"mappings":"AAAA,OAAO,I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E;QACpB,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;KACvC;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9B,CAAC;AAeD,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IACxB,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACnB;AACD,SAAS,KAAK,CAAC,KAAU;IACrB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AACjD,CAAC","sourcesContent":["import Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\nexport const protobufPackage = \"google.protobuf\";\nexport interface Any {\n typeUrl: string;\n value: Uint8Array;\n}\nfunction createBaseAny(): Any {\n return { typeUrl: \"\", value: new Uint8Array() };\n}\nexport const Any = {\n encode(message: Any, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.typeUrl !== \"\") {\n writer.uint32(10).string(message.typeUrl);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): Any {\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 = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.typeUrl = reader.string();\n break;\n case 2:\n message.value = reader.bytes();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromJSON(object: any): Any {\n return {\n typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : \"\",\n value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),\n };\n },\n toJSON(message: Any): unknown {\n const obj: any = {};\n message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl);\n message.value !== undefined &&\n (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));\n return obj;\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.typeUrl = object.typeUrl ?? \"\";\n message.value = object.value ?? new Uint8Array();\n return message;\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\")\n return globalThis;\n if (typeof self !== \"undefined\")\n return self;\n if (typeof window !== \"undefined\")\n return window;\n if (typeof global !== \"undefined\")\n return global;\n throw \"Unable to locate global object\";\n})();\nconst atob: (b64: string) => string = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, \"base64\").toString(\"binary\"));\nfunction bytesFromBase64(b64: string): Uint8Array {\n const bin = atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n}\nconst btoa: (bin: string) => string = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, \"binary\").toString(\"base64\"));\nfunction base64FromBytes(arr: Uint8Array): string {\n const bin: string[] = [];\n for (const byte of arr) {\n bin.push(String.fromCharCode(byte));\n }\n return btoa(bin.join(\"\"));\n}\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport 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 {\n $case: string;\n} ? {\n [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]>;\n} & {\n $case: T[\"$case\"];\n} : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
1
+ {"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/protobuf/any.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAKjD,SAAS,aAAa;IAClB,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,UAAU,EAAE,EAAE,CAAC;AACpD,CAAC;AACD,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,MAAM,CAAC,OAAY,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACzD,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE,EAAE;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC7C;QACD,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,MAAM,CAAC,KAA8B,EAAE,MAAe;QAClD,MAAM,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACrB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE;gBACf,KAAK,CAAC;oBACF,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBAClC,MAAM;gBACV,KAAK,CAAC;oBACF,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;oBAC/B,MAAM;gBACV;oBACI,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACb;SACJ;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,WAAW,CAAuC,MAAS;;QACvD,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;QACvC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,IAAI,UAAU,EAAE,CAAC;QACjD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC;AAeF,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IACxB,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACnB","sourcesContent":["import Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\nexport const protobufPackage = \"google.protobuf\";\nexport interface Any {\n typeUrl: string;\n value: Uint8Array;\n}\nfunction createBaseAny(): Any {\n return { typeUrl: \"\", value: new Uint8Array() };\n}\nexport const Any = {\n encode(message: Any, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.typeUrl !== \"\") {\n writer.uint32(10).string(message.typeUrl);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): Any {\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 = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.typeUrl = reader.string();\n break;\n case 2:\n message.value = reader.bytes();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.typeUrl = object.typeUrl ?? \"\";\n message.value = object.value ?? new Uint8Array();\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport 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 {\n $case: string;\n} ? {\n [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]>;\n} & {\n $case: T[\"$case\"];\n} : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}