@snap/camera-kit 0.22.0 → 1.0.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 +1122 -537
- package/README.md +1 -1
- package/dist/CameraKit.d.ts +3 -3
- package/dist/CameraKit.d.ts.map +1 -1
- package/dist/CameraKit.js +1 -2
- package/dist/CameraKit.js.map +1 -1
- package/dist/RootServices.d.ts +78 -0
- package/dist/RootServices.d.ts.map +1 -0
- package/dist/RootServices.js.map +1 -0
- package/dist/bootstrapCameraKit.d.ts +3 -4
- package/dist/bootstrapCameraKit.d.ts.map +1 -1
- package/dist/bootstrapCameraKit.js +8 -8
- package/dist/bootstrapCameraKit.js.map +1 -1
- package/dist/clients/createTsProtoClient.d.ts +2 -2
- package/dist/clients/createTsProtoClient.d.ts.map +1 -1
- package/dist/clients/createTsProtoClient.js.map +1 -1
- package/dist/clients/grpcHandler.d.ts.map +1 -1
- package/dist/clients/grpcHandler.js +1 -1
- package/dist/clients/grpcHandler.js.map +1 -1
- package/dist/clients/lensesClient.js +1 -1
- package/dist/clients/lensesClient.js.map +1 -1
- package/dist/clients/metricsClient.d.ts.map +1 -1
- package/dist/clients/metricsClient.js +1 -1
- package/dist/clients/metricsClient.js.map +1 -1
- package/dist/common/pageVisibility.js +1 -1
- package/dist/common/pageVisibility.js.map +1 -1
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/extensions/RemoteApiServices.js +1 -1
- package/dist/extensions/RemoteApiServices.js.map +1 -1
- package/dist/extensions/UriHandlers.js +1 -1
- package/dist/extensions/UriHandlers.js.map +1 -1
- package/dist/extensions/uriHandlersRegister.d.ts.map +1 -1
- package/dist/extensions/uriHandlersRegister.js +1 -1
- package/dist/extensions/uriHandlersRegister.js.map +1 -1
- package/dist/generated-proto/blizzard/cameraKitEvents.d.ts +45 -9270
- package/dist/generated-proto/blizzard/cameraKitEvents.d.ts.map +1 -1
- package/dist/generated-proto/blizzard/cameraKitEvents.js +300 -123
- package/dist/generated-proto/blizzard/cameraKitEvents.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +12 -32
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.js +77 -37
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.d.ts +19 -454
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.js +219 -118
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.d.ts +12 -12
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.js +16 -13
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.d.ts +12 -12
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.js +16 -13
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +13 -54
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +61 -34
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +19 -299
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.js +294 -133
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +14 -148
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +74 -48
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +12 -18
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.js +34 -19
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts +19 -516
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js +164 -80
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.d.ts +80 -2371
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.js +847 -174
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +18 -59
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.js +88 -52
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts +12 -106
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js +328 -140
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts +12 -18
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js +35 -20
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts +12 -34
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js +86 -39
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +47 -28591
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js +644 -348
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts +18 -214
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js +362 -157
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts +20 -3801
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.js +144 -46
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts +49 -10060
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js +443 -182
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts +12 -14
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js +24 -17
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +14 -56
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.js +78 -45
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.d.ts +28 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.js +89 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts +28 -1103
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js +358 -210
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts +12 -16
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js +31 -23
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts +13 -15
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js +22 -15
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts +12 -14
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js +22 -15
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts +12 -16
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js +29 -18
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts +12 -18
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js +35 -20
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js.map +1 -1
- package/dist/generated-proto/pb_schema/common/ruid.d.ts +12 -16
- package/dist/generated-proto/pb_schema/common/ruid.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/common/ruid.js +28 -17
- package/dist/generated-proto/pb_schema/common/ruid.js.map +1 -1
- package/dist/generated-proto/pb_schema/common/value.d.ts +25 -123
- package/dist/generated-proto/pb_schema/common/value.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/common/value.js +136 -71
- package/dist/generated-proto/pb_schema/common/value.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/asset.d.ts +12 -14
- package/dist/generated-proto/pb_schema/content/asset.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/asset.js +22 -15
- package/dist/generated-proto/pb_schema/content/asset.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts +13 -46
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_reference.js +86 -47
- package/dist/generated-proto/pb_schema/content/media_reference.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_source.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_source.js +0 -6
- package/dist/generated-proto/pb_schema/content/media_source.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_types.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_types.js +0 -6
- package/dist/generated-proto/pb_schema/content/media_types.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/annotations.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/annotations.js +0 -6
- package/dist/generated-proto/pb_schema/google/api/annotations.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/http.d.ts +15 -3336
- package/dist/generated-proto/pb_schema/google/api/http.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/http.js +129 -68
- package/dist/generated-proto/pb_schema/google/api/http.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/any.d.ts +12 -14
- package/dist/generated-proto/pb_schema/google/protobuf/any.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/any.js +24 -17
- package/dist/generated-proto/pb_schema/google/protobuf/any.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +126 -50157
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.js +1162 -563
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +12 -14
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.js +23 -19
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +20 -84
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.js +141 -77
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geocircle.d.ts +12 -23
- package/dist/generated-proto/pb_schema/lenses/geocircle.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geocircle.js +26 -18
- package/dist/generated-proto/pb_schema/lenses/geocircle.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geopoint.d.ts +12 -14
- package/dist/generated-proto/pb_schema/lenses/geopoint.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geopoint.js +22 -15
- package/dist/generated-proto/pb_schema/lenses/geopoint.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launch_params.d.ts +12 -12
- package/dist/generated-proto/pb_schema/lenses/launch_params.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launch_params.js +18 -15
- package/dist/generated-proto/pb_schema/lenses/launch_params.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts +15 -324
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js +112 -66
- package/dist/generated-proto/pb_schema/lenses/launchdata.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/lures.d.ts +12 -91
- package/dist/generated-proto/pb_schema/lenses/lures.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/lures.js +37 -28
- package/dist/generated-proto/pb_schema/lenses/lures.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/persistent_store.d.ts +12 -12
- package/dist/generated-proto/pb_schema/lenses/persistent_store.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/persistent_store.js +18 -15
- package/dist/generated-proto/pb_schema/lenses/persistent_store.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.d.ts +30 -396
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js +520 -240
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts +30 -2429
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js +991 -440
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/snappable.d.ts +27 -783
- package/dist/generated-proto/pb_schema/lenses/snappable.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/snappable.js +502 -245
- package/dist/generated-proto/pb_schema/lenses/snappable.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/user_data.d.ts +15 -174
- package/dist/generated-proto/pb_schema/lenses/user_data.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/user_data.js +144 -77
- package/dist/generated-proto/pb_schema/lenses/user_data.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts +12 -14
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js +24 -17
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts +14 -18
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js +29 -18
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts +52 -576
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media.js +615 -318
- package/dist/generated-proto/pb_schema/snapdoc/media.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts +12 -12
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js +17 -17
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js.map +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.d.ts.map +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.js +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.js.map +1 -1
- package/dist/handlers/defaultFetchHandler.js +1 -1
- package/dist/handlers/defaultFetchHandler.js.map +1 -1
- package/dist/handlers/requestStateEmittingHandler.js +1 -1
- package/dist/handlers/requestStateEmittingHandler.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/legal/legalPrompt.js +1 -1
- package/dist/legal/legalPrompt.js.map +1 -1
- package/dist/legal/legalState.js +1 -1
- package/dist/legal/legalState.js.map +1 -1
- package/dist/lens/LensPersistenceStore.js +1 -1
- package/dist/lens/LensPersistenceStore.js.map +1 -1
- package/dist/lens/LensRepository.js +1 -1
- package/dist/lens/LensRepository.js.map +1 -1
- package/dist/lens/LensSource.js +1 -1
- package/dist/lens/LensSource.js.map +1 -1
- package/dist/lens/assets/LensAssetRepository.js +1 -1
- package/dist/lens/assets/LensAssetRepository.js.map +1 -1
- package/dist/lens/assets/LensAssetsProvider.js +1 -1
- package/dist/lens/assets/LensAssetsProvider.js.map +1 -1
- package/dist/lens/assets/deviceDependentAssetLoader.js +1 -1
- package/dist/lens/assets/deviceDependentAssetLoader.js.map +1 -1
- package/dist/lens/assets/remoteMediaAssetLoaderFactory.js +1 -1
- package/dist/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -1
- package/dist/lens/assets/staticAssetLoader.js +1 -1
- package/dist/lens/assets/staticAssetLoader.js.map +1 -1
- package/dist/lens/cameraKitLensSource.d.ts.map +1 -1
- package/dist/lens/cameraKitLensSource.js +6 -6
- package/dist/lens/cameraKitLensSource.js.map +1 -1
- package/dist/lens/fetchWatermarkLens.d.ts.map +1 -1
- package/dist/lens/fetchWatermarkLens.js +1 -1
- package/dist/lens/fetchWatermarkLens.js.map +1 -1
- package/dist/lens/userDataAccessResolver.d.ts +52 -0
- package/dist/lens/userDataAccessResolver.d.ts.map +1 -0
- package/dist/lens/userDataAccessResolver.js +3 -0
- package/dist/lens/userDataAccessResolver.js.map +1 -0
- package/dist/lens-client-interface/filePicker.d.ts.map +1 -1
- package/dist/lens-client-interface/filePicker.js +1 -1
- package/dist/lens-client-interface/filePicker.js.map +1 -1
- package/dist/lens-client-interface/lensClientInterface.js +1 -1
- package/dist/lens-client-interface/lensClientInterface.js.map +1 -1
- package/dist/lens-core-module/loader/bootstrapURLs.d.ts +2 -0
- package/dist/lens-core-module/loader/bootstrapURLs.d.ts.map +1 -1
- package/dist/lens-core-module/loader/bootstrapURLs.js +22 -11
- package/dist/lens-core-module/loader/bootstrapURLs.js.map +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.d.ts.map +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.js +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.js.map +1 -1
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/dist/logger/logEntries.js +1 -1
- package/dist/logger/logEntries.js.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.d.ts.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.js +1 -1
- package/dist/logger/registerLogEntriesSubscriber.js.map +1 -1
- package/dist/media-sources/CameraKitSource.d.ts +6 -0
- package/dist/media-sources/CameraKitSource.d.ts.map +1 -1
- package/dist/media-sources/CameraKitSource.js +2 -2
- package/dist/media-sources/CameraKitSource.js.map +1 -1
- package/dist/metrics/businessEventsReporter.js +1 -1
- package/dist/metrics/businessEventsReporter.js.map +1 -1
- package/dist/metrics/metricsEventTarget.js +1 -1
- package/dist/metrics/metricsEventTarget.js.map +1 -1
- package/dist/metrics/reporters/reportBenchmarks.d.ts.map +1 -1
- package/dist/metrics/reporters/reportBenchmarks.js +1 -1
- package/dist/metrics/reporters/reportBenchmarks.js.map +1 -1
- package/dist/metrics/reporters/reportGlobalException.js +1 -1
- package/dist/metrics/reporters/reportGlobalException.js.map +1 -1
- package/dist/metrics/reporters/reportHttpMetrics.js +1 -1
- package/dist/metrics/reporters/reportHttpMetrics.js.map +1 -1
- package/dist/metrics/reporters/reportLegalState.js +1 -1
- package/dist/metrics/reporters/reportLegalState.js.map +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.d.ts.map +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.js +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.js.map +1 -1
- package/dist/metrics/reporters/reportLensValidationFailed.js +1 -1
- package/dist/metrics/reporters/reportLensValidationFailed.js.map +1 -1
- package/dist/metrics/reporters/reportLensView.js +1 -1
- package/dist/metrics/reporters/reportLensView.js.map +1 -1
- package/dist/metrics/reporters/reportLensWait.js +1 -1
- package/dist/metrics/reporters/reportLensWait.js.map +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.d.ts.map +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.js +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.js.map +1 -1
- package/dist/metrics/reporters/reportSessionException.js +1 -1
- package/dist/metrics/reporters/reportSessionException.js.map +1 -1
- package/dist/metrics/reporters/reportUserSession.js +1 -1
- package/dist/metrics/reporters/reportUserSession.js.map +1 -1
- package/dist/metrics/reporters/reporters.d.ts +1 -1
- package/dist/metrics/reporters/reporters.d.ts.map +1 -1
- package/dist/metrics/reporters/reporters.js +1 -1
- package/dist/metrics/reporters/reporters.js.map +1 -1
- package/dist/platform/platformCapabilities.d.ts +6 -16
- package/dist/platform/platformCapabilities.d.ts.map +1 -1
- package/dist/platform/platformCapabilities.js +15 -15
- package/dist/platform/platformCapabilities.js.map +1 -1
- package/dist/remote-configuration/cofHandler.d.ts.map +1 -1
- package/dist/remote-configuration/cofHandler.js +1 -1
- package/dist/remote-configuration/cofHandler.js.map +1 -1
- package/dist/remote-configuration/preloadConfiguration.js +1 -1
- package/dist/remote-configuration/preloadConfiguration.js.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.d.ts.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.js +1 -1
- package/dist/remote-configuration/remoteConfiguration.js.map +1 -1
- package/dist/session/CameraKitSession.d.ts +6 -1
- package/dist/session/CameraKitSession.d.ts.map +1 -1
- package/dist/session/CameraKitSession.js +1 -1
- package/dist/session/CameraKitSession.js.map +1 -1
- package/dist/session/LensKeyboard.js +1 -1
- package/dist/session/LensKeyboard.js.map +1 -1
- package/dist/session/lensState.d.ts +3 -2
- package/dist/session/lensState.d.ts.map +1 -1
- package/dist/session/lensState.js +21 -6
- package/dist/session/lensState.js.map +1 -1
- package/dist/session/sessionState.js +1 -1
- package/dist/session/sessionState.js.map +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/CameraKit.html +2 -2
- package/docs/html/classes/CameraKitSession.html +7 -3
- package/docs/html/classes/CameraKitSource.html +6 -2
- package/docs/html/classes/LensPerformanceMeasurement.html +2 -2
- package/docs/html/classes/LensPerformanceMetrics.html +2 -2
- package/docs/html/classes/LensRepository.html +2 -2
- package/docs/html/classes/Transform2D.html +2 -2
- package/docs/html/classes/TypedCustomEvent.html +2 -2
- package/docs/html/classes/TypedEventTarget.html +2 -2
- package/docs/html/enums/Lens_CameraFacing.html +2 -2
- package/docs/html/functions/bootstrapCameraKit.html +2 -2
- package/docs/html/functions/createExtension.html +2 -2
- package/docs/html/functions/createImageSource.html +2 -2
- package/docs/html/functions/createMediaStreamSource.html +2 -2
- package/docs/html/functions/createVideoSource.html +2 -2
- package/docs/html/functions/estimateLensPerformance.html +2 -2
- package/docs/html/functions/filePickerFactory.html +2 -4
- package/docs/html/functions/lensSourcesFactory.html +3 -5
- package/docs/html/functions/remoteApiServicesFactory.html +1 -3
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +3 -3
- package/docs/html/interfaces/BitmojiUserInfo.html +2 -2
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +2 -2
- package/docs/html/interfaces/CameraKitDeviceOptions.html +2 -2
- package/docs/html/interfaces/CameraKitSourceInfo.html +2 -2
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +2 -2
- package/docs/html/interfaces/ComputedFrameMetrics.html +2 -2
- package/docs/html/interfaces/CreateSessionOptions.html +2 -2
- package/docs/html/interfaces/EstimatedLensPerformance.html +2 -2
- package/docs/html/interfaces/FriendUserInfo.html +2 -2
- package/docs/html/interfaces/FunctionSourceOptions.html +2 -2
- package/docs/html/interfaces/Lens.html +2 -2
- package/docs/html/interfaces/LensCreator.html +2 -2
- package/docs/html/interfaces/LensLaunchData.html +2 -2
- package/docs/html/interfaces/LensSource.html +2 -2
- package/docs/html/interfaces/LensUserData.html +2 -2
- package/docs/html/interfaces/LoadAssetRequest.html +2 -2
- package/docs/html/interfaces/MediaStreamSourceOptions.html +2 -2
- package/docs/html/interfaces/Preview.html +2 -2
- package/docs/html/interfaces/RemoteApiRequest.html +2 -2
- package/docs/html/interfaces/RemoteApiResponse.html +2 -2
- package/docs/html/interfaces/RemoteApiService.html +2 -2
- package/docs/html/interfaces/Snapcode.html +2 -2
- package/docs/html/interfaces/UriCancelRequest.html +2 -2
- package/docs/html/interfaces/UriRequest.html +2 -2
- package/docs/html/interfaces/UriResponse.html +2 -2
- package/docs/html/interfaces/VideoSourceOptions.html +2 -2
- package/docs/html/modules.html +2 -4
- package/docs/html/types/ArgumentValidationError.html +2 -2
- package/docs/html/types/AssetLoader.html +2 -2
- package/docs/html/types/AssetResponse.html +1 -1
- package/docs/html/types/AssetTiming.html +2 -2
- package/docs/html/types/BenchmarkError.html +1 -1
- package/docs/html/types/BootstrapError.html +2 -2
- package/docs/html/types/CacheKeyNotFoundError.html +1 -1
- package/docs/html/types/CameraKitSessionEventListener.html +2 -2
- package/docs/html/types/CameraKitSessionEvents.html +2 -2
- package/docs/html/types/CameraKitSourceError.html +1 -1
- package/docs/html/types/ConfigurationError.html +2 -2
- package/docs/html/types/FetchHandler.html +1 -1
- package/docs/html/types/FilePicker.html +2 -2
- package/docs/html/types/FilePickerOptions.html +2 -2
- package/docs/html/types/FilePickerResult.html +2 -2
- package/docs/html/types/Keyboard.html +2 -2
- package/docs/html/types/KeyboardEvents.html +2 -2
- package/docs/html/types/LegalError.html +1 -1
- package/docs/html/types/LensAbortError.html +2 -2
- package/docs/html/types/LensAssetError.html +2 -2
- package/docs/html/types/LensContentValidationError.html +1 -1
- package/docs/html/types/LensError.html +1 -1
- package/docs/html/types/LensExecutionError.html +2 -2
- package/docs/html/types/LensImagePickerError.html +2 -2
- package/docs/html/types/LensLaunchParams.html +2 -2
- package/docs/html/types/LensMetricsEvents.html +2 -2
- package/docs/html/types/LensPerformanceCluster.html +1 -1
- package/docs/html/types/LensView.html +2 -2
- package/docs/html/types/LensWait.html +2 -2
- package/docs/html/types/Matrix.html +2 -2
- package/docs/html/types/PersistentStoreError.html +2 -2
- package/docs/html/types/PlatformNotSupportedError.html +2 -2
- package/docs/html/types/PublicContainer.html +2 -2
- package/docs/html/types/PublicServices.html +2 -2
- package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiServices.html +1 -1
- package/docs/html/types/RemoteApiStatus.html +2 -2
- package/docs/html/types/RenderTarget.html +2 -2
- package/docs/html/types/Uri.html +1 -1
- package/docs/html/types/WebGLError.html +1 -1
- package/docs/html/types/Zodiac.html +1 -1
- package/docs/html/variables/extensionRequestContext.html +2 -2
- package/docs/md/README.md +1 -1
- package/docs/md/classes/CameraKit.md +1 -1
- package/docs/md/classes/CameraKitSession.md +7 -2
- package/docs/md/classes/CameraKitSource.md +6 -1
- package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
- package/docs/md/classes/LensPerformanceMetrics.md +1 -1
- package/docs/md/classes/LensRepository.md +1 -1
- package/docs/md/classes/Transform2D.md +1 -1
- package/docs/md/classes/TypedCustomEvent.md +1 -1
- package/docs/md/classes/TypedEventTarget.md +1 -1
- package/docs/md/enums/Lens_CameraFacing.md +1 -1
- package/docs/md/interfaces/BitmojiUserInfo.md +1 -1
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
- package/docs/md/interfaces/CameraKitDeviceOptions.md +1 -1
- package/docs/md/interfaces/CameraKitSourceInfo.md +1 -1
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
- package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
- package/docs/md/interfaces/CreateSessionOptions.md +1 -1
- package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
- package/docs/md/interfaces/FriendUserInfo.md +1 -1
- package/docs/md/interfaces/FunctionSourceOptions.md +1 -1
- package/docs/md/interfaces/Lens.md +1 -1
- package/docs/md/interfaces/LensCreator.md +1 -1
- package/docs/md/interfaces/LensLaunchData.md +1 -1
- package/docs/md/interfaces/LensSource.md +1 -1
- package/docs/md/interfaces/LensUserData.md +1 -1
- package/docs/md/interfaces/LoadAssetRequest.md +1 -1
- package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
- package/docs/md/interfaces/Preview.md +1 -1
- package/docs/md/interfaces/RemoteApiRequest.md +1 -1
- package/docs/md/interfaces/RemoteApiResponse.md +1 -1
- package/docs/md/interfaces/RemoteApiService.md +1 -1
- package/docs/md/interfaces/Snapcode.md +1 -1
- package/docs/md/interfaces/UriCancelRequest.md +1 -1
- package/docs/md/interfaces/UriRequest.md +1 -1
- package/docs/md/interfaces/UriResponse.md +1 -1
- package/docs/md/interfaces/VideoSourceOptions.md +1 -1
- package/docs/md/modules.md +5 -166
- package/package.json +6 -6
- package/dist/dependency-injection/Container.d.ts +0 -177
- package/dist/dependency-injection/Container.d.ts.map +0 -1
- package/dist/dependency-injection/Container.js +0 -72
- package/dist/dependency-injection/Container.js.map +0 -1
- package/dist/dependency-injection/Injectable.d.ts +0 -96
- package/dist/dependency-injection/Injectable.d.ts.map +0 -1
- package/dist/dependency-injection/Injectable.js +0 -37
- package/dist/dependency-injection/Injectable.js.map +0 -1
- package/dist/dependency-injection/PartialContainer.d.ts +0 -86
- package/dist/dependency-injection/PartialContainer.d.ts.map +0 -1
- package/dist/dependency-injection/PartialContainer.js +0 -28
- package/dist/dependency-injection/PartialContainer.js.map +0 -1
- package/dist/dependency-injection/RootServices.d.ts +0 -76
- package/dist/dependency-injection/RootServices.d.ts.map +0 -1
- package/dist/dependency-injection/RootServices.js.map +0 -1
- package/dist/dependency-injection/types.d.ts +0 -57
- package/dist/dependency-injection/types.d.ts.map +0 -1
- package/dist/dependency-injection/types.js +0 -2
- package/dist/dependency-injection/types.js.map +0 -1
- package/docs/html/functions/ConcatInjectable.html +0 -19
- package/docs/html/functions/Injectable.html +0 -17
- /package/dist/{dependency-injection/RootServices.js → RootServices.js} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
2
|
export const protobufPackage = "com.snap.camerakit.v3";
|
|
4
3
|
export var RemoteEndpoint_HttpRequestMethod;
|
|
5
4
|
(function (RemoteEndpoint_HttpRequestMethod) {
|
|
@@ -23,23 +22,27 @@ function createBaseGetRemoteApiSpecsRequest() {
|
|
|
23
22
|
return {};
|
|
24
23
|
}
|
|
25
24
|
export const GetRemoteApiSpecsRequest = {
|
|
26
|
-
encode(_, writer =
|
|
25
|
+
encode(_, writer = new BinaryWriter()) {
|
|
27
26
|
return writer;
|
|
28
27
|
},
|
|
29
28
|
decode(input, length) {
|
|
30
|
-
const reader = input instanceof
|
|
29
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
31
30
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
31
|
const message = createBaseGetRemoteApiSpecsRequest();
|
|
33
32
|
while (reader.pos < end) {
|
|
34
33
|
const tag = reader.uint32();
|
|
35
34
|
switch (tag >>> 3) {
|
|
36
|
-
default:
|
|
37
|
-
reader.skipType(tag & 7);
|
|
38
|
-
break;
|
|
39
35
|
}
|
|
36
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
reader.skip(tag & 7);
|
|
40
40
|
}
|
|
41
41
|
return message;
|
|
42
42
|
},
|
|
43
|
+
create(base) {
|
|
44
|
+
return GetRemoteApiSpecsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
45
|
+
},
|
|
43
46
|
fromPartial(_) {
|
|
44
47
|
const message = createBaseGetRemoteApiSpecsRequest();
|
|
45
48
|
return message;
|
|
@@ -49,29 +52,37 @@ function createBaseGetRemoteApiSpecsResponse() {
|
|
|
49
52
|
return { remoteApiSpecs: [] };
|
|
50
53
|
}
|
|
51
54
|
export const GetRemoteApiSpecsResponse = {
|
|
52
|
-
encode(message, writer =
|
|
55
|
+
encode(message, writer = new BinaryWriter()) {
|
|
53
56
|
for (const v of message.remoteApiSpecs) {
|
|
54
|
-
RemoteApiSpec.encode(v, writer.uint32(10).fork()).
|
|
57
|
+
RemoteApiSpec.encode(v, writer.uint32(10).fork()).join();
|
|
55
58
|
}
|
|
56
59
|
return writer;
|
|
57
60
|
},
|
|
58
61
|
decode(input, length) {
|
|
59
|
-
const reader = input instanceof
|
|
62
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
60
63
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
61
64
|
const message = createBaseGetRemoteApiSpecsResponse();
|
|
62
65
|
while (reader.pos < end) {
|
|
63
66
|
const tag = reader.uint32();
|
|
64
67
|
switch (tag >>> 3) {
|
|
65
|
-
case 1:
|
|
68
|
+
case 1: {
|
|
69
|
+
if (tag !== 10) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
66
72
|
message.remoteApiSpecs.push(RemoteApiSpec.decode(reader, reader.uint32()));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
71
78
|
}
|
|
79
|
+
reader.skip(tag & 7);
|
|
72
80
|
}
|
|
73
81
|
return message;
|
|
74
82
|
},
|
|
83
|
+
create(base) {
|
|
84
|
+
return GetRemoteApiSpecsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
85
|
+
},
|
|
75
86
|
fromPartial(object) {
|
|
76
87
|
var _a;
|
|
77
88
|
const message = createBaseGetRemoteApiSpecsResponse();
|
|
@@ -91,7 +102,7 @@ function createBaseRemoteApiSpec() {
|
|
|
91
102
|
};
|
|
92
103
|
}
|
|
93
104
|
export const RemoteApiSpec = {
|
|
94
|
-
encode(message, writer =
|
|
105
|
+
encode(message, writer = new BinaryWriter()) {
|
|
95
106
|
if (message.id !== "") {
|
|
96
107
|
writer.uint32(10).string(message.id);
|
|
97
108
|
}
|
|
@@ -99,9 +110,9 @@ export const RemoteApiSpec = {
|
|
|
99
110
|
writer.uint32(18).string(message.host);
|
|
100
111
|
}
|
|
101
112
|
for (const v of message.endpoints) {
|
|
102
|
-
RemoteEndpoint.encode(v, writer.uint32(26).fork()).
|
|
113
|
+
RemoteEndpoint.encode(v, writer.uint32(26).fork()).join();
|
|
103
114
|
}
|
|
104
|
-
if (message.tlsRequired
|
|
115
|
+
if (message.tlsRequired !== false) {
|
|
105
116
|
writer.uint32(32).bool(message.tlsRequired);
|
|
106
117
|
}
|
|
107
118
|
if (message.maxRequestSizeBytes !== 0) {
|
|
@@ -116,40 +127,72 @@ export const RemoteApiSpec = {
|
|
|
116
127
|
return writer;
|
|
117
128
|
},
|
|
118
129
|
decode(input, length) {
|
|
119
|
-
const reader = input instanceof
|
|
130
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
120
131
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
132
|
const message = createBaseRemoteApiSpec();
|
|
122
133
|
while (reader.pos < end) {
|
|
123
134
|
const tag = reader.uint32();
|
|
124
135
|
switch (tag >>> 3) {
|
|
125
|
-
case 1:
|
|
136
|
+
case 1: {
|
|
137
|
+
if (tag !== 10) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
126
140
|
message.id = reader.string();
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
case 2: {
|
|
144
|
+
if (tag !== 18) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
129
147
|
message.host = reader.string();
|
|
130
|
-
|
|
131
|
-
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
case 3: {
|
|
151
|
+
if (tag !== 26) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
132
154
|
message.endpoints.push(RemoteEndpoint.decode(reader, reader.uint32()));
|
|
133
|
-
|
|
134
|
-
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
case 4: {
|
|
158
|
+
if (tag !== 32) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
135
161
|
message.tlsRequired = reader.bool();
|
|
136
|
-
|
|
137
|
-
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
case 5: {
|
|
165
|
+
if (tag !== 40) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
138
168
|
message.maxRequestSizeBytes = reader.int32();
|
|
139
|
-
|
|
140
|
-
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
case 6: {
|
|
172
|
+
if (tag !== 48) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
141
175
|
message.maxResponseSizeBytes = reader.int32();
|
|
142
|
-
|
|
143
|
-
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
case 7: {
|
|
179
|
+
if (tag !== 56) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
144
182
|
message.maxResponseTimeMillis = reader.int32();
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
187
|
+
break;
|
|
149
188
|
}
|
|
189
|
+
reader.skip(tag & 7);
|
|
150
190
|
}
|
|
151
191
|
return message;
|
|
152
192
|
},
|
|
193
|
+
create(base) {
|
|
194
|
+
return RemoteApiSpec.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
195
|
+
},
|
|
153
196
|
fromPartial(object) {
|
|
154
197
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
155
198
|
const message = createBaseRemoteApiSpec();
|
|
@@ -167,7 +210,7 @@ function createBaseRemoteEndpoint() {
|
|
|
167
210
|
return { path: "", methods: [], parameters: [], refId: "" };
|
|
168
211
|
}
|
|
169
212
|
export const RemoteEndpoint = {
|
|
170
|
-
encode(message, writer =
|
|
213
|
+
encode(message, writer = new BinaryWriter()) {
|
|
171
214
|
if (message.path !== "") {
|
|
172
215
|
writer.uint32(10).string(message.path);
|
|
173
216
|
}
|
|
@@ -175,9 +218,9 @@ export const RemoteEndpoint = {
|
|
|
175
218
|
for (const v of message.methods) {
|
|
176
219
|
writer.int32(v);
|
|
177
220
|
}
|
|
178
|
-
writer.
|
|
221
|
+
writer.join();
|
|
179
222
|
for (const v of message.parameters) {
|
|
180
|
-
RemoteParameter.encode(v, writer.uint32(26).fork()).
|
|
223
|
+
RemoteParameter.encode(v, writer.uint32(26).fork()).join();
|
|
181
224
|
}
|
|
182
225
|
if (message.refId !== "") {
|
|
183
226
|
writer.uint32(34).string(message.refId);
|
|
@@ -185,39 +228,58 @@ export const RemoteEndpoint = {
|
|
|
185
228
|
return writer;
|
|
186
229
|
},
|
|
187
230
|
decode(input, length) {
|
|
188
|
-
const reader = input instanceof
|
|
231
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
189
232
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
190
233
|
const message = createBaseRemoteEndpoint();
|
|
191
234
|
while (reader.pos < end) {
|
|
192
235
|
const tag = reader.uint32();
|
|
193
236
|
switch (tag >>> 3) {
|
|
194
|
-
case 1:
|
|
237
|
+
case 1: {
|
|
238
|
+
if (tag !== 10) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
195
241
|
message.path = reader.string();
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
case 2: {
|
|
245
|
+
if (tag === 16) {
|
|
246
|
+
message.methods.push(reader.int32());
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
if (tag === 18) {
|
|
199
250
|
const end2 = reader.uint32() + reader.pos;
|
|
200
251
|
while (reader.pos < end2) {
|
|
201
252
|
message.methods.push(reader.int32());
|
|
202
253
|
}
|
|
203
|
-
|
|
204
|
-
else {
|
|
205
|
-
message.methods.push(reader.int32());
|
|
254
|
+
continue;
|
|
206
255
|
}
|
|
207
256
|
break;
|
|
208
|
-
|
|
257
|
+
}
|
|
258
|
+
case 3: {
|
|
259
|
+
if (tag !== 26) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
209
262
|
message.parameters.push(RemoteParameter.decode(reader, reader.uint32()));
|
|
210
|
-
|
|
211
|
-
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
case 4: {
|
|
266
|
+
if (tag !== 34) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
212
269
|
message.refId = reader.string();
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
reader.skipType(tag & 7);
|
|
216
|
-
break;
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
217
272
|
}
|
|
273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
reader.skip(tag & 7);
|
|
218
277
|
}
|
|
219
278
|
return message;
|
|
220
279
|
},
|
|
280
|
+
create(base) {
|
|
281
|
+
return RemoteEndpoint.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
282
|
+
},
|
|
221
283
|
fromPartial(object) {
|
|
222
284
|
var _a, _b, _c, _d;
|
|
223
285
|
const message = createBaseRemoteEndpoint();
|
|
@@ -232,14 +294,14 @@ function createBaseRemoteParameter() {
|
|
|
232
294
|
return { name: "", location: 0, optional: false, externalName: "", defaultValue: "", constant: false };
|
|
233
295
|
}
|
|
234
296
|
export const RemoteParameter = {
|
|
235
|
-
encode(message, writer =
|
|
297
|
+
encode(message, writer = new BinaryWriter()) {
|
|
236
298
|
if (message.name !== "") {
|
|
237
299
|
writer.uint32(10).string(message.name);
|
|
238
300
|
}
|
|
239
301
|
if (message.location !== 0) {
|
|
240
302
|
writer.uint32(16).int32(message.location);
|
|
241
303
|
}
|
|
242
|
-
if (message.optional
|
|
304
|
+
if (message.optional !== false) {
|
|
243
305
|
writer.uint32(24).bool(message.optional);
|
|
244
306
|
}
|
|
245
307
|
if (message.externalName !== "") {
|
|
@@ -248,43 +310,71 @@ export const RemoteParameter = {
|
|
|
248
310
|
if (message.defaultValue !== "") {
|
|
249
311
|
writer.uint32(42).string(message.defaultValue);
|
|
250
312
|
}
|
|
251
|
-
if (message.constant
|
|
313
|
+
if (message.constant !== false) {
|
|
252
314
|
writer.uint32(48).bool(message.constant);
|
|
253
315
|
}
|
|
254
316
|
return writer;
|
|
255
317
|
},
|
|
256
318
|
decode(input, length) {
|
|
257
|
-
const reader = input instanceof
|
|
319
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
258
320
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
259
321
|
const message = createBaseRemoteParameter();
|
|
260
322
|
while (reader.pos < end) {
|
|
261
323
|
const tag = reader.uint32();
|
|
262
324
|
switch (tag >>> 3) {
|
|
263
|
-
case 1:
|
|
325
|
+
case 1: {
|
|
326
|
+
if (tag !== 10) {
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
264
329
|
message.name = reader.string();
|
|
265
|
-
|
|
266
|
-
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
case 2: {
|
|
333
|
+
if (tag !== 16) {
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
267
336
|
message.location = reader.int32();
|
|
268
|
-
|
|
269
|
-
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
case 3: {
|
|
340
|
+
if (tag !== 24) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
270
343
|
message.optional = reader.bool();
|
|
271
|
-
|
|
272
|
-
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
case 4: {
|
|
347
|
+
if (tag !== 34) {
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
273
350
|
message.externalName = reader.string();
|
|
274
|
-
|
|
275
|
-
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
case 5: {
|
|
354
|
+
if (tag !== 42) {
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
276
357
|
message.defaultValue = reader.string();
|
|
277
|
-
|
|
278
|
-
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
case 6: {
|
|
361
|
+
if (tag !== 48) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
279
364
|
message.constant = reader.bool();
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
reader.skipType(tag & 7);
|
|
283
|
-
break;
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
284
367
|
}
|
|
368
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
reader.skip(tag & 7);
|
|
285
372
|
}
|
|
286
373
|
return message;
|
|
287
374
|
},
|
|
375
|
+
create(base) {
|
|
376
|
+
return RemoteParameter.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
377
|
+
},
|
|
288
378
|
fromPartial(object) {
|
|
289
379
|
var _a, _b, _c, _d, _e, _f;
|
|
290
380
|
const message = createBaseRemoteParameter();
|
|
@@ -307,14 +397,8 @@ export const RemoteApiSpecsDefinition = {
|
|
|
307
397
|
requestStream: false,
|
|
308
398
|
responseType: GetRemoteApiSpecsResponse,
|
|
309
399
|
responseStream: false,
|
|
310
|
-
options: {
|
|
311
|
-
idempotencyLevel: "NO_SIDE_EFFECTS",
|
|
312
|
-
},
|
|
400
|
+
options: { idempotencyLevel: "NO_SIDE_EFFECTS" },
|
|
313
401
|
},
|
|
314
402
|
},
|
|
315
403
|
};
|
|
316
|
-
if (_m0.util.Long !== Long) {
|
|
317
|
-
_m0.util.Long = Long;
|
|
318
|
-
_m0.configure();
|
|
319
|
-
}
|
|
320
404
|
//# sourceMappingURL=remote_api_spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote_api_spec.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AA6CvD,MAAM,CAAN,IAAY,gCAcX;AAdD,WAAY,gCAAgC;IAE1C,uGAAgB,CAAA;IAEhB,qFAAO,CAAA;IAEP,uFAAQ,CAAA;IAER,qFAAO,CAAA;IAEP,2FAAU,CAAA;IAEV,yFAAS,CAAA;IACT,wGAAiB,CAAA;AACnB,CAAC,EAdW,gCAAgC,KAAhC,gCAAgC,QAc3C;AA+BD,MAAM,CAAN,IAAY,iCAUX;AAVD,WAAY,iCAAiC;IAE3C,6GAAkB,CAAA;IAElB,2FAAS,CAAA;IAET,6FAAU,CAAA;IAEV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AAI,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 = \"com.snap.camerakit.v3\";\n\n/** GetRemoteApiSpecsRequest */\nexport interface GetRemoteApiSpecsRequest {}\n\n/** GetRemoteApiSpecsResponse */\nexport interface GetRemoteApiSpecsResponse {\n /** Remote API specifications that are defined for a CameraKit partners */\n remoteApiSpecs: RemoteApiSpec[];\n}\n\n/**\n * Defines a remote service with a list of endpoints and a single security configuration.\n * Original full specification data can be found in lenses/remote_api/remote_api_spec.proto.\n */\nexport interface RemoteApiSpec {\n /** ID of the API spec */\n id: string;\n /** Hostname or hostname and port in format of host:port */\n host: string;\n /** List of HTTP endpoints allowed by this API spec */\n endpoints: RemoteEndpoint[];\n /** Defines if secured connection (HTTPS) must be forced */\n tlsRequired: boolean;\n /** Specifies caller's max request size in bytes for any of defined endpoints (optional value) */\n maxRequestSizeBytes: number;\n /** Specifies caller's max response size in bytes for any of defined endpoints (optional value) */\n maxResponseSizeBytes: number;\n /** Specifies caller's max response time in millis for any of defined endpoints (optional value) */\n maxResponseTimeMillis: number;\n}\n\n/** Defines a remote API HTTP endpoint */\nexport interface RemoteEndpoint {\n /** URL path of the endpoint; could be fixed or parameterized */\n path: string;\n /** HTTP methods allowed for requests to this endpoint */\n methods: RemoteEndpoint_HttpRequestMethod[];\n /** Parameters allowed for requests to this endpoint; required if path is parameterized */\n parameters: RemoteParameter[];\n /** ID used by clients to refer to this endpoint */\n refId: string;\n}\n\n/** Possible HTTP request method on an endpoint */\nexport enum RemoteEndpoint_HttpRequestMethod {\n /** METHOD_UNSET - Undefined method */\n METHOD_UNSET = 0,\n /** GET - HTTP GET */\n GET = 1,\n /** POST - HTTP POST */\n POST = 2,\n /** PUT - HTTP PUT */\n PUT = 3,\n /** DELETE - HTTP DELETE */\n DELETE = 4,\n /** PATCH - HTTP PATCH */\n PATCH = 5,\n UNRECOGNIZED = -1,\n}\n\n/** Defines how a parameter is injected into an HTTP request */\nexport interface RemoteParameter {\n /** Unique name of the parameter */\n name: string;\n /** Location of the parameter */\n location: RemoteParameter_ParameterLocation;\n /** Is parameter optional */\n optional: boolean;\n /**\n * (optional) Name of the parameter that will be used to construct the request (in query/headers/path).\n * `name` is used by clients to fill in the parameters in the request, whereas\n * `external_name` is what is used in the outgoing API request by the proxy.\n * If empty, `external_name` is assumed to be the same as `name`.\n */\n externalName: string;\n /**\n * Default value if the parameter is not set. Useful for \"standard\" headers like content-type\n * and other similar cases. If a default value is provided, the parameter will be sent with every request.\n * Required for constant parameters.\n */\n defaultValue: string;\n /**\n * Constant parameters have the same predefined value for all requests and\n * are always set by the proxy. Not allowed to be overridden by the caller.\n */\n constant: boolean;\n}\n\n/** Possible location of a parameter */\nexport enum RemoteParameter_ParameterLocation {\n /** LOCATION_UNSET - Undefined location */\n LOCATION_UNSET = 0,\n /** QUERY - Parameters that appear in the URL query */\n QUERY = 1,\n /** HEADER - Parameters that appear in the HTTP request header */\n HEADER = 2,\n /** PATH - Parameters that appear in the URL path (for parameterized path only) */\n PATH = 3,\n UNRECOGNIZED = -1,\n}\n\nfunction createBaseGetRemoteApiSpecsRequest(): GetRemoteApiSpecsRequest {\n return {};\n}\n\nexport const GetRemoteApiSpecsRequest = {\n encode(_: GetRemoteApiSpecsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsRequest {\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 = createBaseGetRemoteApiSpecsRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<GetRemoteApiSpecsRequest>, I>>(_: I): GetRemoteApiSpecsRequest {\n const message = createBaseGetRemoteApiSpecsRequest();\n return message;\n },\n};\n\nfunction createBaseGetRemoteApiSpecsResponse(): GetRemoteApiSpecsResponse {\n return { remoteApiSpecs: [] };\n}\n\nexport const GetRemoteApiSpecsResponse = {\n encode(message: GetRemoteApiSpecsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.remoteApiSpecs) {\n RemoteApiSpec.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsResponse {\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 = createBaseGetRemoteApiSpecsResponse();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.remoteApiSpecs.push(RemoteApiSpec.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<GetRemoteApiSpecsResponse>, I>>(object: I): GetRemoteApiSpecsResponse {\n const message = createBaseGetRemoteApiSpecsResponse();\n message.remoteApiSpecs = object.remoteApiSpecs?.map((e) => RemoteApiSpec.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseRemoteApiSpec(): RemoteApiSpec {\n return {\n id: \"\",\n host: \"\",\n endpoints: [],\n tlsRequired: false,\n maxRequestSizeBytes: 0,\n maxResponseSizeBytes: 0,\n maxResponseTimeMillis: 0,\n };\n}\n\nexport const RemoteApiSpec = {\n encode(message: RemoteApiSpec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.id !== \"\") {\n writer.uint32(10).string(message.id);\n }\n if (message.host !== \"\") {\n writer.uint32(18).string(message.host);\n }\n for (const v of message.endpoints) {\n RemoteEndpoint.encode(v!, writer.uint32(26).fork()).ldelim();\n }\n if (message.tlsRequired === true) {\n writer.uint32(32).bool(message.tlsRequired);\n }\n if (message.maxRequestSizeBytes !== 0) {\n writer.uint32(40).int32(message.maxRequestSizeBytes);\n }\n if (message.maxResponseSizeBytes !== 0) {\n writer.uint32(48).int32(message.maxResponseSizeBytes);\n }\n if (message.maxResponseTimeMillis !== 0) {\n writer.uint32(56).int32(message.maxResponseTimeMillis);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): RemoteApiSpec {\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 = createBaseRemoteApiSpec();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.id = reader.string();\n break;\n case 2:\n message.host = reader.string();\n break;\n case 3:\n message.endpoints.push(RemoteEndpoint.decode(reader, reader.uint32()));\n break;\n case 4:\n message.tlsRequired = reader.bool();\n break;\n case 5:\n message.maxRequestSizeBytes = reader.int32();\n break;\n case 6:\n message.maxResponseSizeBytes = reader.int32();\n break;\n case 7:\n message.maxResponseTimeMillis = reader.int32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<RemoteApiSpec>, I>>(object: I): RemoteApiSpec {\n const message = createBaseRemoteApiSpec();\n message.id = object.id ?? \"\";\n message.host = object.host ?? \"\";\n message.endpoints = object.endpoints?.map((e) => RemoteEndpoint.fromPartial(e)) || [];\n message.tlsRequired = object.tlsRequired ?? false;\n message.maxRequestSizeBytes = object.maxRequestSizeBytes ?? 0;\n message.maxResponseSizeBytes = object.maxResponseSizeBytes ?? 0;\n message.maxResponseTimeMillis = object.maxResponseTimeMillis ?? 0;\n return message;\n },\n};\n\nfunction createBaseRemoteEndpoint(): RemoteEndpoint {\n return { path: \"\", methods: [], parameters: [], refId: \"\" };\n}\n\nexport const RemoteEndpoint = {\n encode(message: RemoteEndpoint, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.path !== \"\") {\n writer.uint32(10).string(message.path);\n }\n writer.uint32(18).fork();\n for (const v of message.methods) {\n writer.int32(v);\n }\n writer.ldelim();\n for (const v of message.parameters) {\n RemoteParameter.encode(v!, writer.uint32(26).fork()).ldelim();\n }\n if (message.refId !== \"\") {\n writer.uint32(34).string(message.refId);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): RemoteEndpoint {\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 = createBaseRemoteEndpoint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.path = reader.string();\n break;\n case 2:\n if ((tag & 7) === 2) {\n const end2 = reader.uint32() + reader.pos;\n while (reader.pos < end2) {\n message.methods.push(reader.int32() as any);\n }\n } else {\n message.methods.push(reader.int32() as any);\n }\n break;\n case 3:\n message.parameters.push(RemoteParameter.decode(reader, reader.uint32()));\n break;\n case 4:\n message.refId = 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<RemoteEndpoint>, I>>(object: I): RemoteEndpoint {\n const message = createBaseRemoteEndpoint();\n message.path = object.path ?? \"\";\n message.methods = object.methods?.map((e) => e) || [];\n message.parameters = object.parameters?.map((e) => RemoteParameter.fromPartial(e)) || [];\n message.refId = object.refId ?? \"\";\n return message;\n },\n};\n\nfunction createBaseRemoteParameter(): RemoteParameter {\n return { name: \"\", location: 0, optional: false, externalName: \"\", defaultValue: \"\", constant: false };\n}\n\nexport const RemoteParameter = {\n encode(message: RemoteParameter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.name !== \"\") {\n writer.uint32(10).string(message.name);\n }\n if (message.location !== 0) {\n writer.uint32(16).int32(message.location);\n }\n if (message.optional === true) {\n writer.uint32(24).bool(message.optional);\n }\n if (message.externalName !== \"\") {\n writer.uint32(34).string(message.externalName);\n }\n if (message.defaultValue !== \"\") {\n writer.uint32(42).string(message.defaultValue);\n }\n if (message.constant === true) {\n writer.uint32(48).bool(message.constant);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): RemoteParameter {\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 = createBaseRemoteParameter();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.name = reader.string();\n break;\n case 2:\n message.location = reader.int32() as any;\n break;\n case 3:\n message.optional = reader.bool();\n break;\n case 4:\n message.externalName = reader.string();\n break;\n case 5:\n message.defaultValue = reader.string();\n break;\n case 6:\n message.constant = 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<RemoteParameter>, I>>(object: I): RemoteParameter {\n const message = createBaseRemoteParameter();\n message.name = object.name ?? \"\";\n message.location = object.location ?? 0;\n message.optional = object.optional ?? false;\n message.externalName = object.externalName ?? \"\";\n message.defaultValue = object.defaultValue ?? \"\";\n message.constant = object.constant ?? false;\n return message;\n },\n};\n\n/** The service handle Remote API specifications for CameraKit */\nexport const RemoteApiSpecsDefinition = {\n name: \"RemoteApiSpecs\",\n fullName: \"com.snap.camerakit.v3.RemoteApiSpecs\",\n methods: {\n /**\n * GetRemoteApiSpecs provides lens Remote API specifications for CameraKit partners based on Snap Kit App ID.\n * https://docs.google.com/document/d/1UBFybr3eI7nEWiUzm_rAumKefaGW6ecpYp5zOCRIYRA/edit\n */\n getRemoteApiSpecs: {\n name: \"GetRemoteApiSpecs\",\n requestType: GetRemoteApiSpecsRequest,\n requestStream: false,\n responseType: GetRemoteApiSpecsResponse,\n responseStream: false,\n options: {\n idempotencyLevel: \"NO_SIDE_EFFECTS\",\n },\n },\n },\n} as const;\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"]}
|
|
1
|
+
{"version":3,"file":"remote_api_spec.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AA8CvD,MAAM,CAAN,IAAY,gCAcX;AAdD,WAAY,gCAAgC;IAE1C,uGAAgB,CAAA;IAEhB,qFAAO,CAAA;IAEP,uFAAQ,CAAA;IAER,qFAAO,CAAA;IAEP,2FAAU,CAAA;IAEV,yFAAS,CAAA;IACT,wGAAiB,CAAA;AACnB,CAAC,EAdW,gCAAgC,KAAhC,gCAAgC,QAc3C;AA+BD,MAAM,CAAN,IAAY,iCAUX;AAVD,WAAY,iCAAiC;IAE3C,6GAAkB,CAAA;IAElB,2FAAS,CAAA;IAET,6FAAU,CAAA;IAEV,yFAAQ,CAAA;IACR,0GAAiB,CAAA;AACnB,CAAC,EAVW,iCAAiC,KAAjC,iCAAiC,QAU5C;AAED,SAAS,kCAAkC;IACzC,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAyC;IAC5E,MAAM,CAAC,CAA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MAAA,MAAM,CAAC,QAAQ,mCAAI,KAAK,CAAC;QAC5C,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,EAAE,CAAC;QACjD,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,EAAE,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,KAAK,CAAC;QAC5C,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAIF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,sCAAsC;IAChD,OAAO,EAAE;QAKP,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,wBAAwB;YACrC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,yBAAyB;YACvC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE,gBAAgB,EAAE,iBAAiB,EAAE;SACjD;KACF;CACO,CAAC","sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.2.4\n// protoc v5.28.2\n// source: camera_kit/v3/remote_api_spec.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"com.snap.camerakit.v3\";\n\n/** GetRemoteApiSpecsRequest */\nexport interface GetRemoteApiSpecsRequest {\n}\n\n/** GetRemoteApiSpecsResponse */\nexport interface GetRemoteApiSpecsResponse {\n /** Remote API specifications that are defined for a CameraKit partners */\n remoteApiSpecs: RemoteApiSpec[];\n}\n\n/**\n * Defines a remote service with a list of endpoints and a single security configuration.\n * Original full specification data can be found in lenses/remote_api/remote_api_spec.proto.\n */\nexport interface RemoteApiSpec {\n /** ID of the API spec */\n id: string;\n /** Hostname or hostname and port in format of host:port */\n host: string;\n /** List of HTTP endpoints allowed by this API spec */\n endpoints: RemoteEndpoint[];\n /** Defines if secured connection (HTTPS) must be forced */\n tlsRequired: boolean;\n /** Specifies caller's max request size in bytes for any of defined endpoints (optional value) */\n maxRequestSizeBytes: number;\n /** Specifies caller's max response size in bytes for any of defined endpoints (optional value) */\n maxResponseSizeBytes: number;\n /** Specifies caller's max response time in millis for any of defined endpoints (optional value) */\n maxResponseTimeMillis: number;\n}\n\n/** Defines a remote API HTTP endpoint */\nexport interface RemoteEndpoint {\n /** URL path of the endpoint; could be fixed or parameterized */\n path: string;\n /** HTTP methods allowed for requests to this endpoint */\n methods: RemoteEndpoint_HttpRequestMethod[];\n /** Parameters allowed for requests to this endpoint; required if path is parameterized */\n parameters: RemoteParameter[];\n /** ID used by clients to refer to this endpoint */\n refId: string;\n}\n\n/** Possible HTTP request method on an endpoint */\nexport enum RemoteEndpoint_HttpRequestMethod {\n /** METHOD_UNSET - Undefined method */\n METHOD_UNSET = 0,\n /** GET - HTTP GET */\n GET = 1,\n /** POST - HTTP POST */\n POST = 2,\n /** PUT - HTTP PUT */\n PUT = 3,\n /** DELETE - HTTP DELETE */\n DELETE = 4,\n /** PATCH - HTTP PATCH */\n PATCH = 5,\n UNRECOGNIZED = -1,\n}\n\n/** Defines how a parameter is injected into an HTTP request */\nexport interface RemoteParameter {\n /** Unique name of the parameter */\n name: string;\n /** Location of the parameter */\n location: RemoteParameter_ParameterLocation;\n /** Is parameter optional */\n optional: boolean;\n /**\n * (optional) Name of the parameter that will be used to construct the request (in query/headers/path).\n * `name` is used by clients to fill in the parameters in the request, whereas\n * `external_name` is what is used in the outgoing API request by the proxy.\n * If empty, `external_name` is assumed to be the same as `name`.\n */\n externalName: string;\n /**\n * Default value if the parameter is not set. Useful for \"standard\" headers like content-type\n * and other similar cases. If a default value is provided, the parameter will be sent with every request.\n * Required for constant parameters.\n */\n defaultValue: string;\n /**\n * Constant parameters have the same predefined value for all requests and\n * are always set by the proxy. Not allowed to be overridden by the caller.\n */\n constant: boolean;\n}\n\n/** Possible location of a parameter */\nexport enum RemoteParameter_ParameterLocation {\n /** LOCATION_UNSET - Undefined location */\n LOCATION_UNSET = 0,\n /** QUERY - Parameters that appear in the URL query */\n QUERY = 1,\n /** HEADER - Parameters that appear in the HTTP request header */\n HEADER = 2,\n /** PATH - Parameters that appear in the URL path (for parameterized path only) */\n PATH = 3,\n UNRECOGNIZED = -1,\n}\n\nfunction createBaseGetRemoteApiSpecsRequest(): GetRemoteApiSpecsRequest {\n return {};\n}\n\nexport const GetRemoteApiSpecsRequest: MessageFns<GetRemoteApiSpecsRequest> = {\n encode(_: GetRemoteApiSpecsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetRemoteApiSpecsRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetRemoteApiSpecsRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n create<I extends Exact<DeepPartial<GetRemoteApiSpecsRequest>, I>>(base?: I): GetRemoteApiSpecsRequest {\n return GetRemoteApiSpecsRequest.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<GetRemoteApiSpecsRequest>, I>>(_: I): GetRemoteApiSpecsRequest {\n const message = createBaseGetRemoteApiSpecsRequest();\n return message;\n },\n};\n\nfunction createBaseGetRemoteApiSpecsResponse(): GetRemoteApiSpecsResponse {\n return { remoteApiSpecs: [] };\n}\n\nexport const GetRemoteApiSpecsResponse: MessageFns<GetRemoteApiSpecsResponse> = {\n encode(message: GetRemoteApiSpecsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.remoteApiSpecs) {\n RemoteApiSpec.encode(v!, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetRemoteApiSpecsResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetRemoteApiSpecsResponse();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.remoteApiSpecs.push(RemoteApiSpec.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n create<I extends Exact<DeepPartial<GetRemoteApiSpecsResponse>, I>>(base?: I): GetRemoteApiSpecsResponse {\n return GetRemoteApiSpecsResponse.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<GetRemoteApiSpecsResponse>, I>>(object: I): GetRemoteApiSpecsResponse {\n const message = createBaseGetRemoteApiSpecsResponse();\n message.remoteApiSpecs = object.remoteApiSpecs?.map((e) => RemoteApiSpec.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseRemoteApiSpec(): RemoteApiSpec {\n return {\n id: \"\",\n host: \"\",\n endpoints: [],\n tlsRequired: false,\n maxRequestSizeBytes: 0,\n maxResponseSizeBytes: 0,\n maxResponseTimeMillis: 0,\n };\n}\n\nexport const RemoteApiSpec: MessageFns<RemoteApiSpec> = {\n encode(message: RemoteApiSpec, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== \"\") {\n writer.uint32(10).string(message.id);\n }\n if (message.host !== \"\") {\n writer.uint32(18).string(message.host);\n }\n for (const v of message.endpoints) {\n RemoteEndpoint.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.tlsRequired !== false) {\n writer.uint32(32).bool(message.tlsRequired);\n }\n if (message.maxRequestSizeBytes !== 0) {\n writer.uint32(40).int32(message.maxRequestSizeBytes);\n }\n if (message.maxResponseSizeBytes !== 0) {\n writer.uint32(48).int32(message.maxResponseSizeBytes);\n }\n if (message.maxResponseTimeMillis !== 0) {\n writer.uint32(56).int32(message.maxResponseTimeMillis);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): RemoteApiSpec {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseRemoteApiSpec();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.id = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.host = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.endpoints.push(RemoteEndpoint.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 32) {\n break;\n }\n\n message.tlsRequired = reader.bool();\n continue;\n }\n case 5: {\n if (tag !== 40) {\n break;\n }\n\n message.maxRequestSizeBytes = reader.int32();\n continue;\n }\n case 6: {\n if (tag !== 48) {\n break;\n }\n\n message.maxResponseSizeBytes = reader.int32();\n continue;\n }\n case 7: {\n if (tag !== 56) {\n break;\n }\n\n message.maxResponseTimeMillis = reader.int32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n create<I extends Exact<DeepPartial<RemoteApiSpec>, I>>(base?: I): RemoteApiSpec {\n return RemoteApiSpec.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<RemoteApiSpec>, I>>(object: I): RemoteApiSpec {\n const message = createBaseRemoteApiSpec();\n message.id = object.id ?? \"\";\n message.host = object.host ?? \"\";\n message.endpoints = object.endpoints?.map((e) => RemoteEndpoint.fromPartial(e)) || [];\n message.tlsRequired = object.tlsRequired ?? false;\n message.maxRequestSizeBytes = object.maxRequestSizeBytes ?? 0;\n message.maxResponseSizeBytes = object.maxResponseSizeBytes ?? 0;\n message.maxResponseTimeMillis = object.maxResponseTimeMillis ?? 0;\n return message;\n },\n};\n\nfunction createBaseRemoteEndpoint(): RemoteEndpoint {\n return { path: \"\", methods: [], parameters: [], refId: \"\" };\n}\n\nexport const RemoteEndpoint: MessageFns<RemoteEndpoint> = {\n encode(message: RemoteEndpoint, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.path !== \"\") {\n writer.uint32(10).string(message.path);\n }\n writer.uint32(18).fork();\n for (const v of message.methods) {\n writer.int32(v);\n }\n writer.join();\n for (const v of message.parameters) {\n RemoteParameter.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.refId !== \"\") {\n writer.uint32(34).string(message.refId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): RemoteEndpoint {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseRemoteEndpoint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.path = reader.string();\n continue;\n }\n case 2: {\n if (tag === 16) {\n message.methods.push(reader.int32() as any);\n\n continue;\n }\n\n if (tag === 18) {\n const end2 = reader.uint32() + reader.pos;\n while (reader.pos < end2) {\n message.methods.push(reader.int32() as any);\n }\n\n continue;\n }\n\n break;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.parameters.push(RemoteParameter.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.refId = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n create<I extends Exact<DeepPartial<RemoteEndpoint>, I>>(base?: I): RemoteEndpoint {\n return RemoteEndpoint.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<RemoteEndpoint>, I>>(object: I): RemoteEndpoint {\n const message = createBaseRemoteEndpoint();\n message.path = object.path ?? \"\";\n message.methods = object.methods?.map((e) => e) || [];\n message.parameters = object.parameters?.map((e) => RemoteParameter.fromPartial(e)) || [];\n message.refId = object.refId ?? \"\";\n return message;\n },\n};\n\nfunction createBaseRemoteParameter(): RemoteParameter {\n return { name: \"\", location: 0, optional: false, externalName: \"\", defaultValue: \"\", constant: false };\n}\n\nexport const RemoteParameter: MessageFns<RemoteParameter> = {\n encode(message: RemoteParameter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.name !== \"\") {\n writer.uint32(10).string(message.name);\n }\n if (message.location !== 0) {\n writer.uint32(16).int32(message.location);\n }\n if (message.optional !== false) {\n writer.uint32(24).bool(message.optional);\n }\n if (message.externalName !== \"\") {\n writer.uint32(34).string(message.externalName);\n }\n if (message.defaultValue !== \"\") {\n writer.uint32(42).string(message.defaultValue);\n }\n if (message.constant !== false) {\n writer.uint32(48).bool(message.constant);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): RemoteParameter {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseRemoteParameter();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.name = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.location = reader.int32() as any;\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.optional = reader.bool();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.externalName = reader.string();\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.defaultValue = reader.string();\n continue;\n }\n case 6: {\n if (tag !== 48) {\n break;\n }\n\n message.constant = reader.bool();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n create<I extends Exact<DeepPartial<RemoteParameter>, I>>(base?: I): RemoteParameter {\n return RemoteParameter.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<RemoteParameter>, I>>(object: I): RemoteParameter {\n const message = createBaseRemoteParameter();\n message.name = object.name ?? \"\";\n message.location = object.location ?? 0;\n message.optional = object.optional ?? false;\n message.externalName = object.externalName ?? \"\";\n message.defaultValue = object.defaultValue ?? \"\";\n message.constant = object.constant ?? false;\n return message;\n },\n};\n\n/** The service handle Remote API specifications for CameraKit */\nexport type RemoteApiSpecsDefinition = typeof RemoteApiSpecsDefinition;\nexport const RemoteApiSpecsDefinition = {\n name: \"RemoteApiSpecs\",\n fullName: \"com.snap.camerakit.v3.RemoteApiSpecs\",\n methods: {\n /**\n * GetRemoteApiSpecs provides lens Remote API specifications for CameraKit partners based on Snap Kit App ID.\n * https://docs.google.com/document/d/1UBFybr3eI7nEWiUzm_rAumKefaGW6ecpYp5zOCRIYRA/edit\n */\n getRemoteApiSpecs: {\n name: \"GetRemoteApiSpecs\",\n requestType: GetRemoteApiSpecsRequest,\n requestStream: false,\n responseType: GetRemoteApiSpecsResponse,\n responseStream: false,\n options: { idempotencyLevel: \"NO_SIDE_EFFECTS\" },\n },\n },\n} as const;\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends { $case: string } ? { [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]> } & { $case: T[\"$case\"] }\n : T extends {} ? { [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 ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"]}
|