@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.
- package/LICENSE.md +6247 -0
- package/README.md +166 -0
- package/docs/html/.nojekyll +1 -0
- package/docs/html/assets/highlight.css +106 -0
- package/docs/html/assets/main.js +54 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1225 -0
- package/docs/html/assets/widgets.png +0 -0
- package/docs/html/assets/widgets@2x.png +0 -0
- package/docs/html/classes/CameraKit.html +121 -0
- package/docs/html/classes/CameraKitSession.html +347 -0
- package/docs/html/classes/CameraKitSource.html +152 -0
- package/docs/html/classes/LensPerformanceMeasurement.html +115 -0
- package/docs/html/classes/LensPerformanceMetrics.html +76 -0
- package/docs/html/classes/LensRepository.html +171 -0
- package/docs/html/classes/LensSources.html +82 -0
- package/docs/html/classes/Transform2D.html +99 -0
- package/docs/html/classes/TypedCustomEvent.html +109 -0
- package/docs/html/classes/TypedEventTarget.html +146 -0
- package/docs/html/functions/Injectable.html +193 -0
- package/docs/html/functions/bootstrapCameraKit.html +158 -0
- package/docs/html/functions/createExtension.html +127 -0
- package/docs/html/functions/createImageSource.html +123 -0
- package/docs/html/functions/createMediaStreamSource.html +123 -0
- package/docs/html/functions/createUserMediaSource.html +127 -0
- package/docs/html/functions/createVideoSource.html +124 -0
- package/docs/html/functions/estimateLensPerformance.html +116 -0
- package/docs/html/functions/getRequiredBootstrapURLs.html +124 -0
- package/docs/html/functions/lensSourcesFactory.html +116 -0
- package/docs/html/functions/uriHandlersFactory.html +118 -0
- package/docs/html/index.html +208 -0
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +132 -0
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +121 -0
- package/docs/html/interfaces/ComputedFrameMetrics.html +70 -0
- package/docs/html/interfaces/CreateSessionOptions.html +77 -0
- package/docs/html/interfaces/EstimatedLensPerformance.html +78 -0
- package/docs/html/interfaces/Lens.html +115 -0
- package/docs/html/interfaces/LensSource.html +113 -0
- package/docs/html/interfaces/MediaStreamSourceOptions.html +65 -0
- package/docs/html/interfaces/UriCancelRequest.html +65 -0
- package/docs/html/interfaces/UriHandler.html +128 -0
- package/docs/html/interfaces/UriRequest.html +80 -0
- package/docs/html/interfaces/UriResponse.html +80 -0
- package/docs/html/interfaces/VideoSourceOptions.html +60 -0
- package/docs/html/modules.html +198 -0
- package/docs/html/types/AssetLoader.html +126 -0
- package/docs/html/types/AssetTiming.html +116 -0
- package/docs/html/types/BenchmarkError.html +107 -0
- package/docs/html/types/BootstrapError.html +110 -0
- package/docs/html/types/CacheKeyNotFoundError.html +107 -0
- package/docs/html/types/CameraKitDeviceInfo.html +114 -0
- package/docs/html/types/CameraKitSessionEventListener.html +109 -0
- package/docs/html/types/CameraKitSessionEvents.html +118 -0
- package/docs/html/types/CameraKitSourceError.html +107 -0
- package/docs/html/types/CameraKitSourceInfo.html +107 -0
- package/docs/html/types/CameraKitSourceOptions.html +113 -0
- package/docs/html/types/ConfigurationError.html +109 -0
- package/docs/html/types/Keyboard.html +196 -0
- package/docs/html/types/KeyboardEvents.html +109 -0
- package/docs/html/types/LegalError.html +107 -0
- package/docs/html/types/LensAssetError.html +109 -0
- package/docs/html/types/LensContentValidationError.html +107 -0
- package/docs/html/types/LensError.html +107 -0
- package/docs/html/types/LensExecutionError.html +114 -0
- package/docs/html/types/LensImagePickerError.html +110 -0
- package/docs/html/types/LensLaunchParams.html +109 -0
- package/docs/html/types/LensMetricsEvents.html +110 -0
- package/docs/html/types/LensPerformanceCluster.html +107 -0
- package/docs/html/types/LensView.html +119 -0
- package/docs/html/types/LensWait.html +111 -0
- package/docs/html/types/PersistentStoreError.html +109 -0
- package/docs/html/types/PlatformNotSupportedError.html +110 -0
- package/docs/html/types/PublicContainer.html +110 -0
- package/docs/html/types/RenderTarget.html +111 -0
- package/docs/html/types/Uri.html +107 -0
- package/docs/html/types/UriHandlers.html +109 -0
- package/docs/html/types/WebGLError.html +107 -0
- package/docs/html/variables/extensionRequestContext.html +109 -0
- package/docs/md/.nojekyll +1 -0
- package/docs/md/README.md +168 -0
- package/docs/md/classes/CameraKit.md +94 -0
- package/docs/md/classes/CameraKitSession.md +359 -0
- package/docs/md/classes/CameraKitSource.md +110 -0
- package/docs/md/classes/LensPerformanceMeasurement.md +77 -0
- package/docs/md/classes/LensPerformanceMetrics.md +37 -0
- package/docs/md/classes/LensRepository.md +145 -0
- package/docs/md/classes/LensSources.md +29 -0
- package/docs/md/classes/Transform2D.md +55 -0
- package/docs/md/classes/TypedCustomEvent.md +65 -0
- package/docs/md/classes/TypedEventTarget.md +103 -0
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +106 -0
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +55 -0
- package/docs/md/interfaces/ComputedFrameMetrics.md +29 -0
- package/docs/md/interfaces/CreateSessionOptions.md +35 -0
- package/docs/md/interfaces/EstimatedLensPerformance.md +38 -0
- package/docs/md/interfaces/Lens.md +84 -0
- package/docs/md/interfaces/LensSource.md +68 -0
- package/docs/md/interfaces/MediaStreamSourceOptions.md +22 -0
- package/docs/md/interfaces/UriCancelRequest.md +22 -0
- package/docs/md/interfaces/UriHandler.md +63 -0
- package/docs/md/interfaces/UriRequest.md +43 -0
- package/docs/md/interfaces/UriResponse.md +43 -0
- package/docs/md/interfaces/VideoSourceOptions.md +15 -0
- package/docs/md/modules.md +827 -0
- package/lib/CameraKit.d.ts +170 -0
- package/lib/CameraKit.js +145 -0
- package/lib/CameraKit.js.map +1 -0
- package/lib/__tests__/data.d.ts +9 -0
- package/lib/__tests__/data.js +50 -0
- package/lib/__tests__/data.js.map +1 -0
- package/lib/__tests__/deferred.d.ts +16 -0
- package/lib/__tests__/deferred.js +29 -0
- package/lib/__tests__/deferred.js.map +1 -0
- package/lib/__tests__/jest.matchers.d.ts +17 -0
- package/lib/__tests__/jest.matchers.js +67 -0
- package/lib/__tests__/jest.matchers.js.map +1 -0
- package/lib/assertPlatformSupported.d.ts +4 -0
- package/lib/assertPlatformSupported.js +10 -0
- package/lib/assertPlatformSupported.js.map +1 -0
- package/lib/benchmark/benchmarkGflops.d.ts +16 -0
- package/lib/benchmark/benchmarkGflops.js +129 -0
- package/lib/benchmark/benchmarkGflops.js.map +1 -0
- package/lib/benchmark/estimateLensPerformanceCluster.d.ts +33 -0
- package/lib/benchmark/estimateLensPerformanceCluster.js +48 -0
- package/lib/benchmark/estimateLensPerformanceCluster.js.map +1 -0
- package/lib/benchmark/webglUtils.d.ts +7 -0
- package/lib/benchmark/webglUtils.js +87 -0
- package/lib/benchmark/webglUtils.js.map +1 -0
- package/lib/bootstrapCameraKit.d.ts +96 -0
- package/lib/bootstrapCameraKit.js +204 -0
- package/lib/bootstrapCameraKit.js.map +1 -0
- package/lib/common/__mocks__/loadScript.d.ts +1 -0
- package/lib/common/__mocks__/loadScript.js +10 -0
- package/lib/common/__mocks__/loadScript.js.map +1 -0
- package/lib/common/assertions.d.ts +27 -0
- package/lib/common/assertions.js +39 -0
- package/lib/common/assertions.js.map +1 -0
- package/lib/common/cameraKitUserAgent.d.ts +34 -0
- package/lib/common/cameraKitUserAgent.js +216 -0
- package/lib/common/cameraKitUserAgent.js.map +1 -0
- package/lib/common/copyDefinedProperties.d.ts +13 -0
- package/lib/common/copyDefinedProperties.js +16 -0
- package/lib/common/copyDefinedProperties.js.map +1 -0
- package/lib/common/entries.d.ts +3 -0
- package/lib/common/entries.js +3 -0
- package/lib/common/entries.js.map +1 -0
- package/lib/common/errorHelpers.d.ts +10 -0
- package/lib/common/errorHelpers.js +24 -0
- package/lib/common/errorHelpers.js.map +1 -0
- package/lib/common/getFilename.d.ts +1 -0
- package/lib/common/getFilename.js +4 -0
- package/lib/common/getFilename.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +3 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/loadScript.d.ts +1 -0
- package/lib/common/loadScript.js +11 -0
- package/lib/common/loadScript.js.map +1 -0
- package/lib/common/locale.d.ts +2 -0
- package/lib/common/locale.js +11 -0
- package/lib/common/locale.js.map +1 -0
- package/lib/common/localization.d.ts +43 -0
- package/lib/common/localization.js +43 -0
- package/lib/common/localization.js.map +1 -0
- package/lib/common/memoize.d.ts +8 -0
- package/lib/common/memoize.js +15 -0
- package/lib/common/memoize.js.map +1 -0
- package/lib/common/pageVisibility.d.ts +20 -0
- package/lib/common/pageVisibility.js +62 -0
- package/lib/common/pageVisibility.js.map +1 -0
- package/lib/common/time.d.ts +1 -0
- package/lib/common/time.js +2 -0
- package/lib/common/time.js.map +1 -0
- package/lib/common/typeguards.d.ts +53 -0
- package/lib/common/typeguards.js +92 -0
- package/lib/common/typeguards.js.map +1 -0
- package/lib/common/types.d.ts +10 -0
- package/lib/common/types.js +2 -0
- package/lib/common/types.js.map +1 -0
- package/lib/common/validate.d.ts +14 -0
- package/lib/common/validate.js +104 -0
- package/lib/common/validate.js.map +1 -0
- package/lib/configuration.d.ts +92 -0
- package/lib/configuration.js +36 -0
- package/lib/configuration.js.map +1 -0
- package/lib/configurationOverrides.d.ts +12 -0
- package/lib/configurationOverrides.js +41 -0
- package/lib/configurationOverrides.js.map +1 -0
- package/lib/dependency-injection/Container.d.ts +177 -0
- package/lib/dependency-injection/Container.js +160 -0
- package/lib/dependency-injection/Container.js.map +1 -0
- package/lib/dependency-injection/Injectable.d.ts +39 -0
- package/lib/dependency-injection/Injectable.js +18 -0
- package/lib/dependency-injection/Injectable.js.map +1 -0
- package/lib/dependency-injection/PartialContainer.d.ts +81 -0
- package/lib/dependency-injection/PartialContainer.js +85 -0
- package/lib/dependency-injection/PartialContainer.js.map +1 -0
- package/lib/dependency-injection/RootServices.d.ts +62 -0
- package/lib/dependency-injection/RootServices.js +2 -0
- package/lib/dependency-injection/RootServices.js.map +1 -0
- package/lib/dependency-injection/types.d.ts +56 -0
- package/lib/dependency-injection/types.js +2 -0
- package/lib/dependency-injection/types.js.map +1 -0
- package/lib/environment.json +1 -0
- package/lib/events/TypedCustomEvent.d.ts +10 -0
- package/lib/events/TypedCustomEvent.js +11 -0
- package/lib/events/TypedCustomEvent.js.map +1 -0
- package/lib/events/TypedEventTarget.d.ts +25 -0
- package/lib/events/TypedEventTarget.js +57 -0
- package/lib/events/TypedEventTarget.js.map +1 -0
- package/lib/events/scan.d.ts +15 -0
- package/lib/events/scan.js +46 -0
- package/lib/events/scan.js.map +1 -0
- package/lib/extensions/LensSources.d.ts +58 -0
- package/lib/extensions/LensSources.js +50 -0
- package/lib/extensions/LensSources.js.map +1 -0
- package/lib/extensions/UriHandlers.d.ts +54 -0
- package/lib/extensions/UriHandlers.js +93 -0
- package/lib/extensions/UriHandlers.js.map +1 -0
- package/lib/extensions/extensionRequestContext.d.ts +4 -0
- package/lib/extensions/extensionRequestContext.js +14 -0
- package/lib/extensions/extensionRequestContext.js.map +1 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +5603 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.js +522 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +98 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +260 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +543 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +429 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +100 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +164 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +395 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +644 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +185 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +172 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +86 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +234 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +854 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +629 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +86 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js +185 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.d.ts +95 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js +104 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +10212 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js +1300 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +401 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.js +525 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +1287 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.js +135 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4208 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.js +1053 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +102 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js +165 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.d.ts +8 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.js +17 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.js.map +1 -0
- package/lib/generated-proto/pb_schema/common/ruid.d.ts +75 -0
- package/lib/generated-proto/pb_schema/common/ruid.js +96 -0
- package/lib/generated-proto/pb_schema/common/ruid.js.map +1 -0
- package/lib/generated-proto/pb_schema/common/value.d.ts +131 -0
- package/lib/generated-proto/pb_schema/common/value.js +204 -0
- package/lib/generated-proto/pb_schema/common/value.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.d.ts +1 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.js +9 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/api/http.d.ts +3636 -0
- package/lib/generated-proto/pb_schema/google/api/http.js +271 -0
- package/lib/generated-proto/pb_schema/google/api/http.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +139 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.js +94 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +50968 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js +2962 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +98 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js +82 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +173 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js +332 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.d.ts +42 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.js +52 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.d.ts +32 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.js +50 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.d.ts +29 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.js +43 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +365 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.js +216 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/lures.d.ts +113 -0
- package/lib/generated-proto/pb_schema/lenses/lures.js +64 -0
- package/lib/generated-proto/pb_schema/lenses/lures.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.d.ts +29 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.js +43 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +921 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.js +954 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +247 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.js +362 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.js.map +1 -0
- package/lib/handlers/HandlerChainBuilder.d.ts +95 -0
- package/lib/handlers/HandlerChainBuilder.js +187 -0
- package/lib/handlers/HandlerChainBuilder.js.map +1 -0
- package/lib/handlers/arrayBufferParsingHandler.d.ts +10 -0
- package/lib/handlers/arrayBufferParsingHandler.js +18 -0
- package/lib/handlers/arrayBufferParsingHandler.js.map +1 -0
- package/lib/handlers/batchingHandler.d.ts +25 -0
- package/lib/handlers/batchingHandler.js +79 -0
- package/lib/handlers/batchingHandler.js.map +1 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.d.ts +12 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.js +19 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.js.map +1 -0
- package/lib/handlers/debugHandler.d.ts +8 -0
- package/lib/handlers/debugHandler.js +27 -0
- package/lib/handlers/debugHandler.js.map +1 -0
- package/lib/handlers/defaultFetchHandler.d.ts +15 -0
- package/lib/handlers/defaultFetchHandler.js +29 -0
- package/lib/handlers/defaultFetchHandler.js.map +1 -0
- package/lib/handlers/headersModifyingFetchHandler.d.ts +8 -0
- package/lib/handlers/headersModifyingFetchHandler.js +13 -0
- package/lib/handlers/headersModifyingFetchHandler.js.map +1 -0
- package/lib/handlers/index.d.ts +2 -0
- package/lib/handlers/index.js +3 -0
- package/lib/handlers/index.js.map +1 -0
- package/lib/handlers/mappingHandler.d.ts +15 -0
- package/lib/handlers/mappingHandler.js +65 -0
- package/lib/handlers/mappingHandler.js.map +1 -0
- package/lib/handlers/noCorsRetryingFetchHandler.d.ts +48 -0
- package/lib/handlers/noCorsRetryingFetchHandler.js +94 -0
- package/lib/handlers/noCorsRetryingFetchHandler.js.map +1 -0
- package/lib/handlers/persistingHandler.d.ts +14 -0
- package/lib/handlers/persistingHandler.js +71 -0
- package/lib/handlers/persistingHandler.js.map +1 -0
- package/lib/handlers/rateLimitingHandler.d.ts +20 -0
- package/lib/handlers/rateLimitingHandler.js +43 -0
- package/lib/handlers/rateLimitingHandler.js.map +1 -0
- package/lib/handlers/requestStateEmittingHandler.d.ts +29 -0
- package/lib/handlers/requestStateEmittingHandler.js +43 -0
- package/lib/handlers/requestStateEmittingHandler.js.map +1 -0
- package/lib/handlers/responseCachingHandler.d.ts +27 -0
- package/lib/handlers/responseCachingHandler.js +94 -0
- package/lib/handlers/responseCachingHandler.js.map +1 -0
- package/lib/handlers/retryingHandler.d.ts +37 -0
- package/lib/handlers/retryingHandler.js +73 -0
- package/lib/handlers/retryingHandler.js.map +1 -0
- package/lib/handlers/timeoutHandler.d.ts +18 -0
- package/lib/handlers/timeoutHandler.js +30 -0
- package/lib/handlers/timeoutHandler.js.map +1 -0
- package/lib/index.d.ts +33 -0
- package/lib/index.js +32 -0
- package/lib/index.js.map +1 -0
- package/lib/legal/legalPrompt.d.ts +17 -0
- package/lib/legal/legalPrompt.js +144 -0
- package/lib/legal/legalPrompt.js.map +1 -0
- package/lib/legal/legalState.d.ts +50 -0
- package/lib/legal/legalState.js +149 -0
- package/lib/legal/legalState.js.map +1 -0
- package/lib/lens/Lens.d.ts +71 -0
- package/lib/lens/Lens.js +63 -0
- package/lib/lens/Lens.js.map +1 -0
- package/lib/lens/LensLaunchParams.d.ts +19 -0
- package/lib/lens/LensLaunchParams.js +38 -0
- package/lib/lens/LensLaunchParams.js.map +1 -0
- package/lib/lens/LensPersistenceStore.d.ts +7 -0
- package/lib/lens/LensPersistenceStore.js +20 -0
- package/lib/lens/LensPersistenceStore.js.map +1 -0
- package/lib/lens/LensRepository.d.ts +134 -0
- package/lib/lens/LensRepository.js +239 -0
- package/lib/lens/LensRepository.js.map +1 -0
- package/lib/lens/assets/LensAssetRepository.d.ts +66 -0
- package/lib/lens/assets/LensAssetRepository.js +179 -0
- package/lib/lens/assets/LensAssetRepository.js.map +1 -0
- package/lib/lens/assets/LensAssetsProvider.d.ts +21 -0
- package/lib/lens/assets/LensAssetsProvider.js +41 -0
- package/lib/lens/assets/LensAssetsProvider.js.map +1 -0
- package/lib/lens/assets/deviceDependentAssetLoader.d.ts +11 -0
- package/lib/lens/assets/deviceDependentAssetLoader.js +58 -0
- package/lib/lens/assets/deviceDependentAssetLoader.js.map +1 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.d.ts +10 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.js +26 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -0
- package/lib/lens/assets/staticAssetLoader.d.ts +10 -0
- package/lib/lens/assets/staticAssetLoader.js +24 -0
- package/lib/lens/assets/staticAssetLoader.js.map +1 -0
- package/lib/lens/index.d.ts +7 -0
- package/lib/lens/index.js +7 -0
- package/lib/lens/index.js.map +1 -0
- package/lib/lens/lensEnvelopeUtil.d.ts +5 -0
- package/lib/lens/lensEnvelopeUtil.js +19 -0
- package/lib/lens/lensEnvelopeUtil.js.map +1 -0
- package/lib/lens/lensHttpUtil.d.ts +4 -0
- package/lib/lens/lensHttpUtil.js +30 -0
- package/lib/lens/lensHttpUtil.js.map +1 -0
- package/lib/lens-client-interface/exif.d.ts +20 -0
- package/lib/lens-client-interface/exif.js +61 -0
- package/lib/lens-client-interface/exif.js.map +1 -0
- package/lib/lens-client-interface/imagePicker.d.ts +7 -0
- package/lib/lens-client-interface/imagePicker.js +128 -0
- package/lib/lens-client-interface/imagePicker.js.map +1 -0
- package/lib/lens-client-interface/lensClientInterface.d.ts +13 -0
- package/lib/lens-client-interface/lensClientInterface.js +30 -0
- package/lib/lens-client-interface/lensClientInterface.js.map +1 -0
- package/lib/lens-core-module/generated-types.d.ts +426 -0
- package/lib/lens-core-module/generated-types.js +2 -0
- package/lib/lens-core-module/generated-types.js.map +1 -0
- package/lib/lens-core-module/index.d.ts +2 -0
- package/lib/lens-core-module/index.js +3 -0
- package/lib/lens-core-module/index.js.map +1 -0
- package/lib/lens-core-module/loader/index.d.ts +1 -0
- package/lib/lens-core-module/loader/index.js +2 -0
- package/lib/lens-core-module/loader/index.js.map +1 -0
- package/lib/lens-core-module/loader/lensCoreFactory.d.ts +30 -0
- package/lib/lens-core-module/loader/lensCoreFactory.js +121 -0
- package/lib/lens-core-module/loader/lensCoreFactory.js.map +1 -0
- package/lib/lensCoreWasmVersions.json +5 -0
- package/lib/logger/errorLoggingDecorator.d.ts +9 -0
- package/lib/logger/errorLoggingDecorator.js +32 -0
- package/lib/logger/errorLoggingDecorator.js.map +1 -0
- package/lib/logger/logEntries.d.ts +15 -0
- package/lib/logger/logEntries.js +14 -0
- package/lib/logger/logEntries.js.map +1 -0
- package/lib/logger/logger.d.ts +35 -0
- package/lib/logger/logger.js +48 -0
- package/lib/logger/logger.js.map +1 -0
- package/lib/logger/registerLogEntriesSubscriber.d.ts +14 -0
- package/lib/logger/registerLogEntriesSubscriber.js +23 -0
- package/lib/logger/registerLogEntriesSubscriber.js.map +1 -0
- package/lib/media-sources/CameraKitSource.d.ts +88 -0
- package/lib/media-sources/CameraKitSource.js +140 -0
- package/lib/media-sources/CameraKitSource.js.map +1 -0
- package/lib/media-sources/FunctionSource.d.ts +30 -0
- package/lib/media-sources/FunctionSource.js +132 -0
- package/lib/media-sources/FunctionSource.js.map +1 -0
- package/lib/media-sources/ImageSource.d.ts +13 -0
- package/lib/media-sources/ImageSource.js +28 -0
- package/lib/media-sources/ImageSource.js.map +1 -0
- package/lib/media-sources/MediaStreamSource.d.ts +41 -0
- package/lib/media-sources/MediaStreamSource.js +146 -0
- package/lib/media-sources/MediaStreamSource.js.map +1 -0
- package/lib/media-sources/VideoSource.d.ts +21 -0
- package/lib/media-sources/VideoSource.js +38 -0
- package/lib/media-sources/VideoSource.js.map +1 -0
- package/lib/metrics/businessEventsReporter.d.ts +37 -0
- package/lib/metrics/businessEventsReporter.js +160 -0
- package/lib/metrics/businessEventsReporter.js.map +1 -0
- package/lib/metrics/metricsEventTarget.d.ts +41 -0
- package/lib/metrics/metricsEventTarget.js +11 -0
- package/lib/metrics/metricsEventTarget.js.map +1 -0
- package/lib/metrics/metricsHandler.d.ts +9 -0
- package/lib/metrics/metricsHandler.js +13 -0
- package/lib/metrics/metricsHandler.js.map +1 -0
- package/lib/metrics/operationalMetricsReporter.d.ts +52 -0
- package/lib/metrics/operationalMetricsReporter.js +108 -0
- package/lib/metrics/operationalMetricsReporter.js.map +1 -0
- package/lib/metrics/reporters/reportBenchmarks.d.ts +10 -0
- package/lib/metrics/reporters/reportBenchmarks.js +29 -0
- package/lib/metrics/reporters/reportBenchmarks.js.map +1 -0
- package/lib/metrics/reporters/reportGlobalException.d.ts +19 -0
- package/lib/metrics/reporters/reportGlobalException.js +68 -0
- package/lib/metrics/reporters/reportGlobalException.js.map +1 -0
- package/lib/metrics/reporters/reportHttpMetrics.d.ts +17 -0
- package/lib/metrics/reporters/reportHttpMetrics.js +92 -0
- package/lib/metrics/reporters/reportHttpMetrics.js.map +1 -0
- package/lib/metrics/reporters/reportLegalState.d.ts +15 -0
- package/lib/metrics/reporters/reportLegalState.js +34 -0
- package/lib/metrics/reporters/reportLegalState.js.map +1 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +38 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.js +88 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.js.map +1 -0
- package/lib/metrics/reporters/reportLensValidationFailed.d.ts +20 -0
- package/lib/metrics/reporters/reportLensValidationFailed.js +24 -0
- package/lib/metrics/reporters/reportLensValidationFailed.js.map +1 -0
- package/lib/metrics/reporters/reportLensView.d.ts +36 -0
- package/lib/metrics/reporters/reportLensView.js +101 -0
- package/lib/metrics/reporters/reportLensView.js.map +1 -0
- package/lib/metrics/reporters/reportLensWait.d.ts +33 -0
- package/lib/metrics/reporters/reportLensWait.js +56 -0
- package/lib/metrics/reporters/reportLensWait.js.map +1 -0
- package/lib/metrics/reporters/reportSessionException.d.ts +17 -0
- package/lib/metrics/reporters/reportSessionException.js +12 -0
- package/lib/metrics/reporters/reportSessionException.js.map +1 -0
- package/lib/metrics/reporters/reportUserSession.d.ts +14 -0
- package/lib/metrics/reporters/reportUserSession.js +67 -0
- package/lib/metrics/reporters/reportUserSession.js.map +1 -0
- package/lib/metrics/reporters/reporters.d.ts +44 -0
- package/lib/metrics/reporters/reporters.js +33 -0
- package/lib/metrics/reporters/reporters.js.map +1 -0
- package/lib/namedErrors.d.ts +107 -0
- package/lib/namedErrors.js +56 -0
- package/lib/namedErrors.js.map +1 -0
- package/lib/persistence/ExpiringPersistence.d.ts +20 -0
- package/lib/persistence/ExpiringPersistence.js +58 -0
- package/lib/persistence/ExpiringPersistence.js.map +1 -0
- package/lib/persistence/IndexedDBPersistence.d.ts +47 -0
- package/lib/persistence/IndexedDBPersistence.js +180 -0
- package/lib/persistence/IndexedDBPersistence.js.map +1 -0
- package/lib/persistence/Persistence.d.ts +25 -0
- package/lib/persistence/Persistence.js +10 -0
- package/lib/persistence/Persistence.js.map +1 -0
- package/lib/remote-configuration/cofHandler.d.ts +21 -0
- package/lib/remote-configuration/cofHandler.js +75 -0
- package/lib/remote-configuration/cofHandler.js.map +1 -0
- package/lib/remote-configuration/remoteConfiguration.d.ts +13 -0
- package/lib/remote-configuration/remoteConfiguration.js +43 -0
- package/lib/remote-configuration/remoteConfiguration.js.map +1 -0
- package/lib/session/CameraKitSession.d.ts +252 -0
- package/lib/session/CameraKitSession.js +439 -0
- package/lib/session/CameraKitSession.js.map +1 -0
- package/lib/session/CameraKitSessionEvents.d.ts +33 -0
- package/lib/session/CameraKitSessionEvents.js +21 -0
- package/lib/session/CameraKitSessionEvents.js.map +1 -0
- package/lib/session/LensKeyboard.d.ts +89 -0
- package/lib/session/LensKeyboard.js +95 -0
- package/lib/session/LensKeyboard.js.map +1 -0
- package/lib/session/LensPerformanceMeasurement.d.ts +55 -0
- package/lib/session/LensPerformanceMeasurement.js +91 -0
- package/lib/session/LensPerformanceMeasurement.js.map +1 -0
- package/lib/session/LensPerformanceMetrics.d.ts +31 -0
- package/lib/session/LensPerformanceMetrics.js +58 -0
- package/lib/session/LensPerformanceMetrics.js.map +1 -0
- package/lib/session/index.d.ts +1 -0
- package/lib/session/index.js +2 -0
- package/lib/session/index.js.map +1 -0
- package/lib/session/lensState.d.ts +29 -0
- package/lib/session/lensState.js +160 -0
- package/lib/session/lensState.js.map +1 -0
- package/lib/session/sessionState.d.ts +10 -0
- package/lib/session/sessionState.js +12 -0
- package/lib/session/sessionState.js.map +1 -0
- package/lib/transforms/Transform2D.d.ts +17 -0
- package/lib/transforms/Transform2D.js +18 -0
- package/lib/transforms/Transform2D.js.map +1 -0
- package/lib/transforms/index.d.ts +1 -0
- package/lib/transforms/index.js +2 -0
- package/lib/transforms/index.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export const protobufPackage = "google.api";
|
|
5
|
+
function createBaseHttp() {
|
|
6
|
+
return { rules: [], fullyDecodeReservedExpansion: false };
|
|
7
|
+
}
|
|
8
|
+
export const Http = {
|
|
9
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
10
|
+
for (const v of message.rules) {
|
|
11
|
+
HttpRule.encode(v, writer.uint32(10).fork()).ldelim();
|
|
12
|
+
}
|
|
13
|
+
if (message.fullyDecodeReservedExpansion === true) {
|
|
14
|
+
writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
|
|
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 = createBaseHttp();
|
|
22
|
+
while (reader.pos < end) {
|
|
23
|
+
const tag = reader.uint32();
|
|
24
|
+
switch (tag >>> 3) {
|
|
25
|
+
case 1:
|
|
26
|
+
message.rules.push(HttpRule.decode(reader, reader.uint32()));
|
|
27
|
+
break;
|
|
28
|
+
case 2:
|
|
29
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
reader.skipType(tag & 7);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return message;
|
|
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
|
+
fromPartial(object) {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
const message = createBaseHttp();
|
|
61
|
+
message.rules = ((_a = object.rules) === null || _a === void 0 ? void 0 : _a.map((e) => HttpRule.fromPartial(e))) || [];
|
|
62
|
+
message.fullyDecodeReservedExpansion = (_b = object.fullyDecodeReservedExpansion) !== null && _b !== void 0 ? _b : false;
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
function createBaseHttpRule() {
|
|
67
|
+
return { selector: "", pattern: undefined, body: "", additionalBindings: [] };
|
|
68
|
+
}
|
|
69
|
+
export const HttpRule = {
|
|
70
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
71
|
+
var _a, _b, _c, _d, _e, _f;
|
|
72
|
+
if (message.selector !== "") {
|
|
73
|
+
writer.uint32(10).string(message.selector);
|
|
74
|
+
}
|
|
75
|
+
if (((_a = message.pattern) === null || _a === void 0 ? void 0 : _a.$case) === "get") {
|
|
76
|
+
writer.uint32(18).string(message.pattern.get);
|
|
77
|
+
}
|
|
78
|
+
if (((_b = message.pattern) === null || _b === void 0 ? void 0 : _b.$case) === "put") {
|
|
79
|
+
writer.uint32(26).string(message.pattern.put);
|
|
80
|
+
}
|
|
81
|
+
if (((_c = message.pattern) === null || _c === void 0 ? void 0 : _c.$case) === "post") {
|
|
82
|
+
writer.uint32(34).string(message.pattern.post);
|
|
83
|
+
}
|
|
84
|
+
if (((_d = message.pattern) === null || _d === void 0 ? void 0 : _d.$case) === "delete") {
|
|
85
|
+
writer.uint32(42).string(message.pattern.delete);
|
|
86
|
+
}
|
|
87
|
+
if (((_e = message.pattern) === null || _e === void 0 ? void 0 : _e.$case) === "patch") {
|
|
88
|
+
writer.uint32(50).string(message.pattern.patch);
|
|
89
|
+
}
|
|
90
|
+
if (((_f = message.pattern) === null || _f === void 0 ? void 0 : _f.$case) === "custom") {
|
|
91
|
+
CustomHttpPattern.encode(message.pattern.custom, writer.uint32(66).fork()).ldelim();
|
|
92
|
+
}
|
|
93
|
+
if (message.body !== "") {
|
|
94
|
+
writer.uint32(58).string(message.body);
|
|
95
|
+
}
|
|
96
|
+
for (const v of message.additionalBindings) {
|
|
97
|
+
HttpRule.encode(v, writer.uint32(90).fork()).ldelim();
|
|
98
|
+
}
|
|
99
|
+
return writer;
|
|
100
|
+
},
|
|
101
|
+
decode(input, length) {
|
|
102
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
+
const message = createBaseHttpRule();
|
|
105
|
+
while (reader.pos < end) {
|
|
106
|
+
const tag = reader.uint32();
|
|
107
|
+
switch (tag >>> 3) {
|
|
108
|
+
case 1:
|
|
109
|
+
message.selector = reader.string();
|
|
110
|
+
break;
|
|
111
|
+
case 2:
|
|
112
|
+
message.pattern = { $case: "get", get: reader.string() };
|
|
113
|
+
break;
|
|
114
|
+
case 3:
|
|
115
|
+
message.pattern = { $case: "put", put: reader.string() };
|
|
116
|
+
break;
|
|
117
|
+
case 4:
|
|
118
|
+
message.pattern = { $case: "post", post: reader.string() };
|
|
119
|
+
break;
|
|
120
|
+
case 5:
|
|
121
|
+
message.pattern = { $case: "delete", delete: reader.string() };
|
|
122
|
+
break;
|
|
123
|
+
case 6:
|
|
124
|
+
message.pattern = { $case: "patch", patch: reader.string() };
|
|
125
|
+
break;
|
|
126
|
+
case 8:
|
|
127
|
+
message.pattern = { $case: "custom", custom: CustomHttpPattern.decode(reader, reader.uint32()) };
|
|
128
|
+
break;
|
|
129
|
+
case 7:
|
|
130
|
+
message.body = reader.string();
|
|
131
|
+
break;
|
|
132
|
+
case 11:
|
|
133
|
+
message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
reader.skipType(tag & 7);
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
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
|
+
fromPartial(object) {
|
|
185
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
186
|
+
const message = createBaseHttpRule();
|
|
187
|
+
message.selector = (_a = object.selector) !== null && _a !== void 0 ? _a : "";
|
|
188
|
+
if (((_b = object.pattern) === null || _b === void 0 ? void 0 : _b.$case) === "get" && ((_c = object.pattern) === null || _c === void 0 ? void 0 : _c.get) !== undefined && ((_d = object.pattern) === null || _d === void 0 ? void 0 : _d.get) !== null) {
|
|
189
|
+
message.pattern = { $case: "get", get: object.pattern.get };
|
|
190
|
+
}
|
|
191
|
+
if (((_e = object.pattern) === null || _e === void 0 ? void 0 : _e.$case) === "put" && ((_f = object.pattern) === null || _f === void 0 ? void 0 : _f.put) !== undefined && ((_g = object.pattern) === null || _g === void 0 ? void 0 : _g.put) !== null) {
|
|
192
|
+
message.pattern = { $case: "put", put: object.pattern.put };
|
|
193
|
+
}
|
|
194
|
+
if (((_h = object.pattern) === null || _h === void 0 ? void 0 : _h.$case) === "post" && ((_j = object.pattern) === null || _j === void 0 ? void 0 : _j.post) !== undefined && ((_k = object.pattern) === null || _k === void 0 ? void 0 : _k.post) !== null) {
|
|
195
|
+
message.pattern = { $case: "post", post: object.pattern.post };
|
|
196
|
+
}
|
|
197
|
+
if (((_l = object.pattern) === null || _l === void 0 ? void 0 : _l.$case) === "delete" && ((_m = object.pattern) === null || _m === void 0 ? void 0 : _m.delete) !== undefined && ((_o = object.pattern) === null || _o === void 0 ? void 0 : _o.delete) !== null) {
|
|
198
|
+
message.pattern = { $case: "delete", delete: object.pattern.delete };
|
|
199
|
+
}
|
|
200
|
+
if (((_p = object.pattern) === null || _p === void 0 ? void 0 : _p.$case) === "patch" && ((_q = object.pattern) === null || _q === void 0 ? void 0 : _q.patch) !== undefined && ((_r = object.pattern) === null || _r === void 0 ? void 0 : _r.patch) !== null) {
|
|
201
|
+
message.pattern = { $case: "patch", patch: object.pattern.patch };
|
|
202
|
+
}
|
|
203
|
+
if (((_s = object.pattern) === null || _s === void 0 ? void 0 : _s.$case) === "custom" && ((_t = object.pattern) === null || _t === void 0 ? void 0 : _t.custom) !== undefined && ((_u = object.pattern) === null || _u === void 0 ? void 0 : _u.custom) !== null) {
|
|
204
|
+
message.pattern = { $case: "custom", custom: CustomHttpPattern.fromPartial(object.pattern.custom) };
|
|
205
|
+
}
|
|
206
|
+
message.body = (_v = object.body) !== null && _v !== void 0 ? _v : "";
|
|
207
|
+
message.additionalBindings = ((_w = object.additionalBindings) === null || _w === void 0 ? void 0 : _w.map((e) => HttpRule.fromPartial(e))) || [];
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
function createBaseCustomHttpPattern() {
|
|
212
|
+
return { kind: "", path: "" };
|
|
213
|
+
}
|
|
214
|
+
export const CustomHttpPattern = {
|
|
215
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
216
|
+
if (message.kind !== "") {
|
|
217
|
+
writer.uint32(10).string(message.kind);
|
|
218
|
+
}
|
|
219
|
+
if (message.path !== "") {
|
|
220
|
+
writer.uint32(18).string(message.path);
|
|
221
|
+
}
|
|
222
|
+
return writer;
|
|
223
|
+
},
|
|
224
|
+
decode(input, length) {
|
|
225
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
226
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
227
|
+
const message = createBaseCustomHttpPattern();
|
|
228
|
+
while (reader.pos < end) {
|
|
229
|
+
const tag = reader.uint32();
|
|
230
|
+
switch (tag >>> 3) {
|
|
231
|
+
case 1:
|
|
232
|
+
message.kind = reader.string();
|
|
233
|
+
break;
|
|
234
|
+
case 2:
|
|
235
|
+
message.path = reader.string();
|
|
236
|
+
break;
|
|
237
|
+
default:
|
|
238
|
+
reader.skipType(tag & 7);
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
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
|
+
fromPartial(object) {
|
|
257
|
+
var _a, _b;
|
|
258
|
+
const message = createBaseCustomHttpPattern();
|
|
259
|
+
message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : "";
|
|
260
|
+
message.path = (_b = object.path) !== null && _b !== void 0 ? _b : "";
|
|
261
|
+
return message;
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
if (_m0.util.Long !== Long) {
|
|
265
|
+
_m0.util.Long = Long;
|
|
266
|
+
_m0.configure();
|
|
267
|
+
}
|
|
268
|
+
function isSet(value) {
|
|
269
|
+
return value !== null && value !== undefined;
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +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,EAAE;YAC7B,QAAQ,CAAC,MAAM,CAAC,CAAE,EAA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G,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¶m=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"]}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
5
|
+
* URL that describes the type of the serialized message.
|
|
6
|
+
*
|
|
7
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
8
|
+
* of utility functions or additional generated methods of the Any type.
|
|
9
|
+
*
|
|
10
|
+
* Example 1: Pack and unpack a message in C++.
|
|
11
|
+
*
|
|
12
|
+
* Foo foo = ...;
|
|
13
|
+
* Any any;
|
|
14
|
+
* any.PackFrom(foo);
|
|
15
|
+
* ...
|
|
16
|
+
* if (any.UnpackTo(&foo)) {
|
|
17
|
+
* ...
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* Example 2: Pack and unpack a message in Java.
|
|
21
|
+
*
|
|
22
|
+
* Foo foo = ...;
|
|
23
|
+
* Any any = Any.pack(foo);
|
|
24
|
+
* ...
|
|
25
|
+
* if (any.is(Foo.class)) {
|
|
26
|
+
* foo = any.unpack(Foo.class);
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* Example 3: Pack and unpack a message in Python.
|
|
30
|
+
*
|
|
31
|
+
* foo = Foo(...)
|
|
32
|
+
* any = Any()
|
|
33
|
+
* any.Pack(foo)
|
|
34
|
+
* ...
|
|
35
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
36
|
+
* any.Unpack(foo)
|
|
37
|
+
* ...
|
|
38
|
+
*
|
|
39
|
+
* Example 4: Pack and unpack a message in Go
|
|
40
|
+
*
|
|
41
|
+
* foo := &pb.Foo{...}
|
|
42
|
+
* any, err := ptypes.MarshalAny(foo)
|
|
43
|
+
* ...
|
|
44
|
+
* foo := &pb.Foo{}
|
|
45
|
+
* if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
|
46
|
+
* ...
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* The pack methods provided by protobuf library will by default use
|
|
50
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
51
|
+
* methods only use the fully qualified type name after the last '/'
|
|
52
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
53
|
+
* name "y.z".
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* JSON
|
|
57
|
+
* ====
|
|
58
|
+
* The JSON representation of an `Any` value uses the regular
|
|
59
|
+
* representation of the deserialized, embedded message, with an
|
|
60
|
+
* additional field `@type` which contains the type URL. Example:
|
|
61
|
+
*
|
|
62
|
+
* package google.profile;
|
|
63
|
+
* message Person {
|
|
64
|
+
* string first_name = 1;
|
|
65
|
+
* string last_name = 2;
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* {
|
|
69
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
70
|
+
* "firstName": <string>,
|
|
71
|
+
* "lastName": <string>
|
|
72
|
+
* }
|
|
73
|
+
*
|
|
74
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
75
|
+
* representation, that representation will be embedded adding a field
|
|
76
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
77
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
78
|
+
*
|
|
79
|
+
* {
|
|
80
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
81
|
+
* "value": "1.212s"
|
|
82
|
+
* }
|
|
83
|
+
*/
|
|
84
|
+
export interface Any {
|
|
85
|
+
/**
|
|
86
|
+
* A URL/resource name whose content describes the type of the
|
|
87
|
+
* serialized protocol buffer message.
|
|
88
|
+
*
|
|
89
|
+
* For URLs which use the scheme `http`, `https`, or no scheme, the
|
|
90
|
+
* following restrictions and interpretations apply:
|
|
91
|
+
*
|
|
92
|
+
* * If no scheme is provided, `https` is assumed.
|
|
93
|
+
* * The last segment of the URL's path must represent the fully
|
|
94
|
+
* qualified name of the type (as in `path/google.protobuf.Duration`).
|
|
95
|
+
* The name should be in a canonical form (e.g., leading "." is
|
|
96
|
+
* not accepted).
|
|
97
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
98
|
+
* value in binary format, or produce an error.
|
|
99
|
+
* * Applications are allowed to cache lookup results based on the
|
|
100
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
101
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
102
|
+
* on changes to types. (Use versioned type names to manage
|
|
103
|
+
* breaking changes.)
|
|
104
|
+
*
|
|
105
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
106
|
+
* used with implementation specific semantics.
|
|
107
|
+
*/
|
|
108
|
+
typeUrl: string;
|
|
109
|
+
/** Must be a valid serialized protocol buffer of the above specified type. */
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
export declare const Any: {
|
|
113
|
+
encode(message: Any, writer?: _m0.Writer): _m0.Writer;
|
|
114
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
115
|
+
fromJSON(object: any): Any;
|
|
116
|
+
toJSON(message: Any): unknown;
|
|
117
|
+
fromPartial<I extends {
|
|
118
|
+
typeUrl?: string | undefined;
|
|
119
|
+
value?: Uint8Array | undefined;
|
|
120
|
+
} & {
|
|
121
|
+
typeUrl?: string | undefined;
|
|
122
|
+
value?: Uint8Array | undefined;
|
|
123
|
+
} & Record<Exclude<keyof I, keyof Any>, never>>(object: I): Any;
|
|
124
|
+
};
|
|
125
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
126
|
+
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 {
|
|
127
|
+
$case: string;
|
|
128
|
+
} ? {
|
|
129
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
130
|
+
} & {
|
|
131
|
+
$case: T["$case"];
|
|
132
|
+
} : T extends {} ? {
|
|
133
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
134
|
+
} : Partial<T>;
|
|
135
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
136
|
+
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
137
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
138
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
139
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export const protobufPackage = "google.protobuf";
|
|
5
|
+
function createBaseAny() {
|
|
6
|
+
return { typeUrl: "", value: new Uint8Array() };
|
|
7
|
+
}
|
|
8
|
+
export const Any = {
|
|
9
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
10
|
+
if (message.typeUrl !== "") {
|
|
11
|
+
writer.uint32(10).string(message.typeUrl);
|
|
12
|
+
}
|
|
13
|
+
if (message.value.length !== 0) {
|
|
14
|
+
writer.uint32(18).bytes(message.value);
|
|
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 = createBaseAny();
|
|
22
|
+
while (reader.pos < end) {
|
|
23
|
+
const tag = reader.uint32();
|
|
24
|
+
switch (tag >>> 3) {
|
|
25
|
+
case 1:
|
|
26
|
+
message.typeUrl = reader.string();
|
|
27
|
+
break;
|
|
28
|
+
case 2:
|
|
29
|
+
message.value = reader.bytes();
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
reader.skipType(tag & 7);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return message;
|
|
37
|
+
},
|
|
38
|
+
fromJSON(object) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "",
|
|
41
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
toJSON(message) {
|
|
45
|
+
const obj = {};
|
|
46
|
+
message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl);
|
|
47
|
+
message.value !== undefined &&
|
|
48
|
+
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const message = createBaseAny();
|
|
54
|
+
message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : "";
|
|
55
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
56
|
+
return message;
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
var globalThis = (() => {
|
|
60
|
+
if (typeof globalThis !== "undefined")
|
|
61
|
+
return globalThis;
|
|
62
|
+
if (typeof self !== "undefined")
|
|
63
|
+
return self;
|
|
64
|
+
if (typeof window !== "undefined")
|
|
65
|
+
return window;
|
|
66
|
+
if (typeof global !== "undefined")
|
|
67
|
+
return global;
|
|
68
|
+
throw "Unable to locate global object";
|
|
69
|
+
})();
|
|
70
|
+
const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
|
|
71
|
+
function bytesFromBase64(b64) {
|
|
72
|
+
const bin = atob(b64);
|
|
73
|
+
const arr = new Uint8Array(bin.length);
|
|
74
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
75
|
+
arr[i] = bin.charCodeAt(i);
|
|
76
|
+
}
|
|
77
|
+
return arr;
|
|
78
|
+
}
|
|
79
|
+
const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
|
|
80
|
+
function base64FromBytes(arr) {
|
|
81
|
+
const bin = [];
|
|
82
|
+
for (const byte of arr) {
|
|
83
|
+
bin.push(String.fromCharCode(byte));
|
|
84
|
+
}
|
|
85
|
+
return btoa(bin.join(""));
|
|
86
|
+
}
|
|
87
|
+
if (_m0.util.Long !== Long) {
|
|
88
|
+
_m0.util.Long = Long;
|
|
89
|
+
_m0.configure();
|
|
90
|
+
}
|
|
91
|
+
function isSet(value) {
|
|
92
|
+
return value !== null && value !== undefined;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=any.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"any.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/protobuf/any.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;AAgHjD,SAAS,aAAa;IACpB,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,UAAU,EAAE,EAAE,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM,CAAC,OAAY,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC3D,IAAI,OAAO,CAAC,OAAO,KAAK,EAAE,EAAE;YAC1B,MAAM,CAAC,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K,SAAS,CAAC;AAC/C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := ptypes.MarshalAny(foo)\n * ...\n * foo := &pb.Foo{}\n * if err := ptypes.UnmarshalAny(any, foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n */\nexport interface Any {\n /**\n * A URL/resource name whose content describes the type of the\n * serialized protocol buffer message.\n *\n * For URLs which use the scheme `http`, `https`, or no scheme, the\n * following restrictions and interpretations apply:\n *\n * * If no scheme is provided, `https` is assumed.\n * * The last segment of the URL's path must represent the fully\n * qualified name of the type (as in `path/google.protobuf.Duration`).\n * The name should be in a canonical form (e.g., leading \".\" is\n * not accepted).\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n */\n typeUrl: string;\n /** Must be a valid serialized protocol buffer of the above specified type. */\n value: Uint8Array;\n}\n\nfunction createBaseAny(): Any {\n return { typeUrl: \"\", value: new Uint8Array() };\n}\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\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\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\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\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};\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\nconst atob: (b64: string) => string =\n 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}\n\nconst btoa: (bin: string) => string =\n 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}\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"]}
|