@snap/camera-kit 0.20.0 → 0.22.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/README.md +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts +644 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js +320 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts +10 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js +17 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts +167 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js +423 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts +34 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js +63 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts +109 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js +192 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +3203 -0
- 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 +290 -0
- 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 +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts +24 -0
- 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 +54 -1
- 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 +97 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts +277 -0
- 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 +39 -2
- 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 +11 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js +18 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts +89 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js +108 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts +27 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js +49 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts +1184 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js +507 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts +30 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js +59 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts +29 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js +49 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts +35 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js +58 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts +30 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js +56 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts +40 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js +71 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts +14 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js +21 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/asset.d.ts +51 -0
- package/dist/generated-proto/pb_schema/content/asset.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/asset.js +74 -0
- package/dist/generated-proto/pb_schema/content/asset.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts +103 -0
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_reference.js +183 -0
- package/dist/generated-proto/pb_schema/content/media_reference.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_source.d.ts +19 -0
- package/dist/generated-proto/pb_schema/content/media_source.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_source.js +26 -0
- package/dist/generated-proto/pb_schema/content/media_source.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_types.d.ts +63 -0
- package/dist/generated-proto/pb_schema/content/media_types.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_types.js +71 -0
- package/dist/generated-proto/pb_schema/content/media_types.js.map +1 -0
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts +3 -0
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js +20 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts +2983 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js +2107 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts +27 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js +49 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts +31 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js +56 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts +703 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.js +992 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts +27 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js +36 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts +8 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js +15 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts +24 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js +45 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts +68 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js +66 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js.map +1 -0
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/docs/html/classes/CameraKit.html +2 -2
- package/docs/html/classes/CameraKitSession.html +2 -2
- package/docs/html/classes/CameraKitSource.html +2 -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/ConcatInjectable.html +2 -2
- package/docs/html/functions/Injectable.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 -2
- package/docs/html/functions/lensSourcesFactory.html +2 -2
- package/docs/html/functions/remoteApiServicesFactory.html +2 -2
- 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 -2
- 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 +1 -1
- package/docs/md/classes/CameraKitSource.md +1 -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 +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ session.pause('capture');
|
|
|
181
181
|
|
|
182
182
|
## Error Handling
|
|
183
183
|
|
|
184
|
-
Camera Kit Web SDK methods may throw errors, or return rejected Promises -- these are documented in the [API docs](https://kit.snapchat.com/reference/CameraKit/web/0.
|
|
184
|
+
Camera Kit Web SDK methods may throw errors, or return rejected Promises -- these are documented in the [API docs](https://kit.snapchat.com/reference/CameraKit/web/0.22.0/index.html). It is good practice to handle such cases, to provide a good experience to your users.
|
|
185
185
|
|
|
186
186
|
Errors may also occur during Lens rendering. For example, Lenses contain their own scripting, which could throw an error. A rendering error could also occur if a Lens attempts to use a feature that is not supported by Camera Kit Web SDK.
|
|
187
187
|
|
package/dist/environment.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default { PACKAGE_VERSION: "0.
|
|
1
|
+
export default { PACKAGE_VERSION: "0.22.0" };
|
|
2
2
|
//# sourceMappingURL=environment.js.map
|
package/dist/environment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["export default { PACKAGE_VERSION: \"0.
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["export default { PACKAGE_VERSION: \"0.22.0\" };\n"]}
|
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "com.snap.camerakit.v3";
|
|
3
|
+
/** GetRemoteApiSpecsRequest */
|
|
4
|
+
export interface GetRemoteApiSpecsRequest {
|
|
5
|
+
}
|
|
6
|
+
/** GetRemoteApiSpecsResponse */
|
|
7
|
+
export interface GetRemoteApiSpecsResponse {
|
|
8
|
+
/** Remote API specifications that are defined for a CameraKit partners */
|
|
9
|
+
remoteApiSpecs: RemoteApiSpec[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Defines a remote service with a list of endpoints and a single security configuration.
|
|
13
|
+
* Original full specification data can be found in lenses/remote_api/remote_api_spec.proto.
|
|
14
|
+
*/
|
|
15
|
+
export interface RemoteApiSpec {
|
|
16
|
+
/** ID of the API spec */
|
|
17
|
+
id: string;
|
|
18
|
+
/** Hostname or hostname and port in format of host:port */
|
|
19
|
+
host: string;
|
|
20
|
+
/** List of HTTP endpoints allowed by this API spec */
|
|
21
|
+
endpoints: RemoteEndpoint[];
|
|
22
|
+
/** Defines if secured connection (HTTPS) must be forced */
|
|
23
|
+
tlsRequired: boolean;
|
|
24
|
+
/** Specifies caller's max request size in bytes for any of defined endpoints (optional value) */
|
|
25
|
+
maxRequestSizeBytes: number;
|
|
26
|
+
/** Specifies caller's max response size in bytes for any of defined endpoints (optional value) */
|
|
27
|
+
maxResponseSizeBytes: number;
|
|
28
|
+
/** Specifies caller's max response time in millis for any of defined endpoints (optional value) */
|
|
29
|
+
maxResponseTimeMillis: number;
|
|
30
|
+
}
|
|
31
|
+
/** Defines a remote API HTTP endpoint */
|
|
32
|
+
export interface RemoteEndpoint {
|
|
33
|
+
/** URL path of the endpoint; could be fixed or parameterized */
|
|
34
|
+
path: string;
|
|
35
|
+
/** HTTP methods allowed for requests to this endpoint */
|
|
36
|
+
methods: RemoteEndpoint_HttpRequestMethod[];
|
|
37
|
+
/** Parameters allowed for requests to this endpoint; required if path is parameterized */
|
|
38
|
+
parameters: RemoteParameter[];
|
|
39
|
+
/** ID used by clients to refer to this endpoint */
|
|
40
|
+
refId: string;
|
|
41
|
+
}
|
|
42
|
+
/** Possible HTTP request method on an endpoint */
|
|
43
|
+
export declare enum RemoteEndpoint_HttpRequestMethod {
|
|
44
|
+
/** METHOD_UNSET - Undefined method */
|
|
45
|
+
METHOD_UNSET = 0,
|
|
46
|
+
/** GET - HTTP GET */
|
|
47
|
+
GET = 1,
|
|
48
|
+
/** POST - HTTP POST */
|
|
49
|
+
POST = 2,
|
|
50
|
+
/** PUT - HTTP PUT */
|
|
51
|
+
PUT = 3,
|
|
52
|
+
/** DELETE - HTTP DELETE */
|
|
53
|
+
DELETE = 4,
|
|
54
|
+
/** PATCH - HTTP PATCH */
|
|
55
|
+
PATCH = 5,
|
|
56
|
+
UNRECOGNIZED = -1
|
|
57
|
+
}
|
|
58
|
+
/** Defines how a parameter is injected into an HTTP request */
|
|
59
|
+
export interface RemoteParameter {
|
|
60
|
+
/** Unique name of the parameter */
|
|
61
|
+
name: string;
|
|
62
|
+
/** Location of the parameter */
|
|
63
|
+
location: RemoteParameter_ParameterLocation;
|
|
64
|
+
/** Is parameter optional */
|
|
65
|
+
optional: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* (optional) Name of the parameter that will be used to construct the request (in query/headers/path).
|
|
68
|
+
* `name` is used by clients to fill in the parameters in the request, whereas
|
|
69
|
+
* `external_name` is what is used in the outgoing API request by the proxy.
|
|
70
|
+
* If empty, `external_name` is assumed to be the same as `name`.
|
|
71
|
+
*/
|
|
72
|
+
externalName: string;
|
|
73
|
+
/**
|
|
74
|
+
* Default value if the parameter is not set. Useful for "standard" headers like content-type
|
|
75
|
+
* and other similar cases. If a default value is provided, the parameter will be sent with every request.
|
|
76
|
+
* Required for constant parameters.
|
|
77
|
+
*/
|
|
78
|
+
defaultValue: string;
|
|
79
|
+
/**
|
|
80
|
+
* Constant parameters have the same predefined value for all requests and
|
|
81
|
+
* are always set by the proxy. Not allowed to be overridden by the caller.
|
|
82
|
+
*/
|
|
83
|
+
constant: boolean;
|
|
84
|
+
}
|
|
85
|
+
/** Possible location of a parameter */
|
|
86
|
+
export declare enum RemoteParameter_ParameterLocation {
|
|
87
|
+
/** LOCATION_UNSET - Undefined location */
|
|
88
|
+
LOCATION_UNSET = 0,
|
|
89
|
+
/** QUERY - Parameters that appear in the URL query */
|
|
90
|
+
QUERY = 1,
|
|
91
|
+
/** HEADER - Parameters that appear in the HTTP request header */
|
|
92
|
+
HEADER = 2,
|
|
93
|
+
/** PATH - Parameters that appear in the URL path (for parameterized path only) */
|
|
94
|
+
PATH = 3,
|
|
95
|
+
UNRECOGNIZED = -1
|
|
96
|
+
}
|
|
97
|
+
export declare const GetRemoteApiSpecsRequest: {
|
|
98
|
+
encode(_: GetRemoteApiSpecsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
99
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsRequest;
|
|
100
|
+
fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): GetRemoteApiSpecsRequest;
|
|
101
|
+
};
|
|
102
|
+
export declare const GetRemoteApiSpecsResponse: {
|
|
103
|
+
encode(message: GetRemoteApiSpecsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
104
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsResponse;
|
|
105
|
+
fromPartial<I extends {
|
|
106
|
+
remoteApiSpecs?: {
|
|
107
|
+
id?: string | undefined;
|
|
108
|
+
host?: string | undefined;
|
|
109
|
+
endpoints?: {
|
|
110
|
+
path?: string | undefined;
|
|
111
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
112
|
+
parameters?: {
|
|
113
|
+
name?: string | undefined;
|
|
114
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
115
|
+
optional?: boolean | undefined;
|
|
116
|
+
externalName?: string | undefined;
|
|
117
|
+
defaultValue?: string | undefined;
|
|
118
|
+
constant?: boolean | undefined;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
refId?: string | undefined;
|
|
121
|
+
}[] | undefined;
|
|
122
|
+
tlsRequired?: boolean | undefined;
|
|
123
|
+
maxRequestSizeBytes?: number | undefined;
|
|
124
|
+
maxResponseSizeBytes?: number | undefined;
|
|
125
|
+
maxResponseTimeMillis?: number | undefined;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
} & {
|
|
128
|
+
remoteApiSpecs?: ({
|
|
129
|
+
id?: string | undefined;
|
|
130
|
+
host?: string | undefined;
|
|
131
|
+
endpoints?: {
|
|
132
|
+
path?: string | undefined;
|
|
133
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
134
|
+
parameters?: {
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
137
|
+
optional?: boolean | undefined;
|
|
138
|
+
externalName?: string | undefined;
|
|
139
|
+
defaultValue?: string | undefined;
|
|
140
|
+
constant?: boolean | undefined;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
refId?: string | undefined;
|
|
143
|
+
}[] | undefined;
|
|
144
|
+
tlsRequired?: boolean | undefined;
|
|
145
|
+
maxRequestSizeBytes?: number | undefined;
|
|
146
|
+
maxResponseSizeBytes?: number | undefined;
|
|
147
|
+
maxResponseTimeMillis?: number | undefined;
|
|
148
|
+
}[] & ({
|
|
149
|
+
id?: string | undefined;
|
|
150
|
+
host?: string | undefined;
|
|
151
|
+
endpoints?: {
|
|
152
|
+
path?: string | undefined;
|
|
153
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
154
|
+
parameters?: {
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
157
|
+
optional?: boolean | undefined;
|
|
158
|
+
externalName?: string | undefined;
|
|
159
|
+
defaultValue?: string | undefined;
|
|
160
|
+
constant?: boolean | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
refId?: string | undefined;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
tlsRequired?: boolean | undefined;
|
|
165
|
+
maxRequestSizeBytes?: number | undefined;
|
|
166
|
+
maxResponseSizeBytes?: number | undefined;
|
|
167
|
+
maxResponseTimeMillis?: number | undefined;
|
|
168
|
+
} & {
|
|
169
|
+
id?: string | undefined;
|
|
170
|
+
host?: string | undefined;
|
|
171
|
+
endpoints?: ({
|
|
172
|
+
path?: string | undefined;
|
|
173
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
174
|
+
parameters?: {
|
|
175
|
+
name?: string | undefined;
|
|
176
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
177
|
+
optional?: boolean | undefined;
|
|
178
|
+
externalName?: string | undefined;
|
|
179
|
+
defaultValue?: string | undefined;
|
|
180
|
+
constant?: boolean | undefined;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
refId?: string | undefined;
|
|
183
|
+
}[] & ({
|
|
184
|
+
path?: string | undefined;
|
|
185
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
186
|
+
parameters?: {
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
189
|
+
optional?: boolean | undefined;
|
|
190
|
+
externalName?: string | undefined;
|
|
191
|
+
defaultValue?: string | undefined;
|
|
192
|
+
constant?: boolean | undefined;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
refId?: string | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
path?: string | undefined;
|
|
197
|
+
methods?: (RemoteEndpoint_HttpRequestMethod[] & RemoteEndpoint_HttpRequestMethod[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["methods"], keyof RemoteEndpoint_HttpRequestMethod[]>, never>) | undefined;
|
|
198
|
+
parameters?: ({
|
|
199
|
+
name?: string | undefined;
|
|
200
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
201
|
+
optional?: boolean | undefined;
|
|
202
|
+
externalName?: string | undefined;
|
|
203
|
+
defaultValue?: string | undefined;
|
|
204
|
+
constant?: boolean | undefined;
|
|
205
|
+
}[] & ({
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
208
|
+
optional?: boolean | undefined;
|
|
209
|
+
externalName?: string | undefined;
|
|
210
|
+
defaultValue?: string | undefined;
|
|
211
|
+
constant?: boolean | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
name?: string | undefined;
|
|
214
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
215
|
+
optional?: boolean | undefined;
|
|
216
|
+
externalName?: string | undefined;
|
|
217
|
+
defaultValue?: string | undefined;
|
|
218
|
+
constant?: boolean | undefined;
|
|
219
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["parameters"][number], keyof RemoteParameter>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["parameters"], keyof {
|
|
220
|
+
name?: string | undefined;
|
|
221
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
222
|
+
optional?: boolean | undefined;
|
|
223
|
+
externalName?: string | undefined;
|
|
224
|
+
defaultValue?: string | undefined;
|
|
225
|
+
constant?: boolean | undefined;
|
|
226
|
+
}[]>, never>) | undefined;
|
|
227
|
+
refId?: string | undefined;
|
|
228
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number], keyof RemoteEndpoint>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"], keyof {
|
|
229
|
+
path?: string | undefined;
|
|
230
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
231
|
+
parameters?: {
|
|
232
|
+
name?: string | undefined;
|
|
233
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
234
|
+
optional?: boolean | undefined;
|
|
235
|
+
externalName?: string | undefined;
|
|
236
|
+
defaultValue?: string | undefined;
|
|
237
|
+
constant?: boolean | undefined;
|
|
238
|
+
}[] | undefined;
|
|
239
|
+
refId?: string | undefined;
|
|
240
|
+
}[]>, never>) | undefined;
|
|
241
|
+
tlsRequired?: boolean | undefined;
|
|
242
|
+
maxRequestSizeBytes?: number | undefined;
|
|
243
|
+
maxResponseSizeBytes?: number | undefined;
|
|
244
|
+
maxResponseTimeMillis?: number | undefined;
|
|
245
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number], keyof RemoteApiSpec>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"], keyof {
|
|
246
|
+
id?: string | undefined;
|
|
247
|
+
host?: string | undefined;
|
|
248
|
+
endpoints?: {
|
|
249
|
+
path?: string | undefined;
|
|
250
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
251
|
+
parameters?: {
|
|
252
|
+
name?: string | undefined;
|
|
253
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
254
|
+
optional?: boolean | undefined;
|
|
255
|
+
externalName?: string | undefined;
|
|
256
|
+
defaultValue?: string | undefined;
|
|
257
|
+
constant?: boolean | undefined;
|
|
258
|
+
}[] | undefined;
|
|
259
|
+
refId?: string | undefined;
|
|
260
|
+
}[] | undefined;
|
|
261
|
+
tlsRequired?: boolean | undefined;
|
|
262
|
+
maxRequestSizeBytes?: number | undefined;
|
|
263
|
+
maxResponseSizeBytes?: number | undefined;
|
|
264
|
+
maxResponseTimeMillis?: number | undefined;
|
|
265
|
+
}[]>, never>) | undefined;
|
|
266
|
+
} & Record<Exclude<keyof I, "remoteApiSpecs">, never>>(object: I): GetRemoteApiSpecsResponse;
|
|
267
|
+
};
|
|
268
|
+
export declare const RemoteApiSpec: {
|
|
269
|
+
encode(message: RemoteApiSpec, writer?: _m0.Writer): _m0.Writer;
|
|
270
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteApiSpec;
|
|
271
|
+
fromPartial<I extends {
|
|
272
|
+
id?: string | undefined;
|
|
273
|
+
host?: string | undefined;
|
|
274
|
+
endpoints?: {
|
|
275
|
+
path?: string | undefined;
|
|
276
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
277
|
+
parameters?: {
|
|
278
|
+
name?: string | undefined;
|
|
279
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
280
|
+
optional?: boolean | undefined;
|
|
281
|
+
externalName?: string | undefined;
|
|
282
|
+
defaultValue?: string | undefined;
|
|
283
|
+
constant?: boolean | undefined;
|
|
284
|
+
}[] | undefined;
|
|
285
|
+
refId?: string | undefined;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
tlsRequired?: boolean | undefined;
|
|
288
|
+
maxRequestSizeBytes?: number | undefined;
|
|
289
|
+
maxResponseSizeBytes?: number | undefined;
|
|
290
|
+
maxResponseTimeMillis?: number | undefined;
|
|
291
|
+
} & {
|
|
292
|
+
id?: string | undefined;
|
|
293
|
+
host?: string | undefined;
|
|
294
|
+
endpoints?: ({
|
|
295
|
+
path?: string | undefined;
|
|
296
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
297
|
+
parameters?: {
|
|
298
|
+
name?: string | undefined;
|
|
299
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
300
|
+
optional?: boolean | undefined;
|
|
301
|
+
externalName?: string | undefined;
|
|
302
|
+
defaultValue?: string | undefined;
|
|
303
|
+
constant?: boolean | undefined;
|
|
304
|
+
}[] | undefined;
|
|
305
|
+
refId?: string | undefined;
|
|
306
|
+
}[] & ({
|
|
307
|
+
path?: string | undefined;
|
|
308
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
309
|
+
parameters?: {
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
312
|
+
optional?: boolean | undefined;
|
|
313
|
+
externalName?: string | undefined;
|
|
314
|
+
defaultValue?: string | undefined;
|
|
315
|
+
constant?: boolean | undefined;
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
refId?: string | undefined;
|
|
318
|
+
} & {
|
|
319
|
+
path?: string | undefined;
|
|
320
|
+
methods?: (RemoteEndpoint_HttpRequestMethod[] & RemoteEndpoint_HttpRequestMethod[] & Record<Exclude<keyof I["endpoints"][number]["methods"], keyof RemoteEndpoint_HttpRequestMethod[]>, never>) | undefined;
|
|
321
|
+
parameters?: ({
|
|
322
|
+
name?: string | undefined;
|
|
323
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
324
|
+
optional?: boolean | undefined;
|
|
325
|
+
externalName?: string | undefined;
|
|
326
|
+
defaultValue?: string | undefined;
|
|
327
|
+
constant?: boolean | undefined;
|
|
328
|
+
}[] & ({
|
|
329
|
+
name?: string | undefined;
|
|
330
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
331
|
+
optional?: boolean | undefined;
|
|
332
|
+
externalName?: string | undefined;
|
|
333
|
+
defaultValue?: string | undefined;
|
|
334
|
+
constant?: boolean | undefined;
|
|
335
|
+
} & {
|
|
336
|
+
name?: string | undefined;
|
|
337
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
338
|
+
optional?: boolean | undefined;
|
|
339
|
+
externalName?: string | undefined;
|
|
340
|
+
defaultValue?: string | undefined;
|
|
341
|
+
constant?: boolean | undefined;
|
|
342
|
+
} & Record<Exclude<keyof I["endpoints"][number]["parameters"][number], keyof RemoteParameter>, never>)[] & Record<Exclude<keyof I["endpoints"][number]["parameters"], keyof {
|
|
343
|
+
name?: string | undefined;
|
|
344
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
345
|
+
optional?: boolean | undefined;
|
|
346
|
+
externalName?: string | undefined;
|
|
347
|
+
defaultValue?: string | undefined;
|
|
348
|
+
constant?: boolean | undefined;
|
|
349
|
+
}[]>, never>) | undefined;
|
|
350
|
+
refId?: string | undefined;
|
|
351
|
+
} & Record<Exclude<keyof I["endpoints"][number], keyof RemoteEndpoint>, never>)[] & Record<Exclude<keyof I["endpoints"], keyof {
|
|
352
|
+
path?: string | undefined;
|
|
353
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
354
|
+
parameters?: {
|
|
355
|
+
name?: string | undefined;
|
|
356
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
357
|
+
optional?: boolean | undefined;
|
|
358
|
+
externalName?: string | undefined;
|
|
359
|
+
defaultValue?: string | undefined;
|
|
360
|
+
constant?: boolean | undefined;
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
refId?: string | undefined;
|
|
363
|
+
}[]>, never>) | undefined;
|
|
364
|
+
tlsRequired?: boolean | undefined;
|
|
365
|
+
maxRequestSizeBytes?: number | undefined;
|
|
366
|
+
maxResponseSizeBytes?: number | undefined;
|
|
367
|
+
maxResponseTimeMillis?: number | undefined;
|
|
368
|
+
} & Record<Exclude<keyof I, keyof RemoteApiSpec>, never>>(object: I): RemoteApiSpec;
|
|
369
|
+
};
|
|
370
|
+
export declare const RemoteEndpoint: {
|
|
371
|
+
encode(message: RemoteEndpoint, writer?: _m0.Writer): _m0.Writer;
|
|
372
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteEndpoint;
|
|
373
|
+
fromPartial<I extends {
|
|
374
|
+
path?: string | undefined;
|
|
375
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
376
|
+
parameters?: {
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
379
|
+
optional?: boolean | undefined;
|
|
380
|
+
externalName?: string | undefined;
|
|
381
|
+
defaultValue?: string | undefined;
|
|
382
|
+
constant?: boolean | undefined;
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
refId?: string | undefined;
|
|
385
|
+
} & {
|
|
386
|
+
path?: string | undefined;
|
|
387
|
+
methods?: (RemoteEndpoint_HttpRequestMethod[] & RemoteEndpoint_HttpRequestMethod[] & Record<Exclude<keyof I["methods"], keyof RemoteEndpoint_HttpRequestMethod[]>, never>) | undefined;
|
|
388
|
+
parameters?: ({
|
|
389
|
+
name?: string | undefined;
|
|
390
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
391
|
+
optional?: boolean | undefined;
|
|
392
|
+
externalName?: string | undefined;
|
|
393
|
+
defaultValue?: string | undefined;
|
|
394
|
+
constant?: boolean | undefined;
|
|
395
|
+
}[] & ({
|
|
396
|
+
name?: string | undefined;
|
|
397
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
398
|
+
optional?: boolean | undefined;
|
|
399
|
+
externalName?: string | undefined;
|
|
400
|
+
defaultValue?: string | undefined;
|
|
401
|
+
constant?: boolean | undefined;
|
|
402
|
+
} & {
|
|
403
|
+
name?: string | undefined;
|
|
404
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
405
|
+
optional?: boolean | undefined;
|
|
406
|
+
externalName?: string | undefined;
|
|
407
|
+
defaultValue?: string | undefined;
|
|
408
|
+
constant?: boolean | undefined;
|
|
409
|
+
} & Record<Exclude<keyof I["parameters"][number], keyof RemoteParameter>, never>)[] & Record<Exclude<keyof I["parameters"], keyof {
|
|
410
|
+
name?: string | undefined;
|
|
411
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
412
|
+
optional?: boolean | undefined;
|
|
413
|
+
externalName?: string | undefined;
|
|
414
|
+
defaultValue?: string | undefined;
|
|
415
|
+
constant?: boolean | undefined;
|
|
416
|
+
}[]>, never>) | undefined;
|
|
417
|
+
refId?: string | undefined;
|
|
418
|
+
} & Record<Exclude<keyof I, keyof RemoteEndpoint>, never>>(object: I): RemoteEndpoint;
|
|
419
|
+
};
|
|
420
|
+
export declare const RemoteParameter: {
|
|
421
|
+
encode(message: RemoteParameter, writer?: _m0.Writer): _m0.Writer;
|
|
422
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteParameter;
|
|
423
|
+
fromPartial<I extends {
|
|
424
|
+
name?: string | undefined;
|
|
425
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
426
|
+
optional?: boolean | undefined;
|
|
427
|
+
externalName?: string | undefined;
|
|
428
|
+
defaultValue?: string | undefined;
|
|
429
|
+
constant?: boolean | undefined;
|
|
430
|
+
} & {
|
|
431
|
+
name?: string | undefined;
|
|
432
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
433
|
+
optional?: boolean | undefined;
|
|
434
|
+
externalName?: string | undefined;
|
|
435
|
+
defaultValue?: string | undefined;
|
|
436
|
+
constant?: boolean | undefined;
|
|
437
|
+
} & Record<Exclude<keyof I, keyof RemoteParameter>, never>>(object: I): RemoteParameter;
|
|
438
|
+
};
|
|
439
|
+
/** The service handle Remote API specifications for CameraKit */
|
|
440
|
+
export declare const RemoteApiSpecsDefinition: {
|
|
441
|
+
readonly name: "RemoteApiSpecs";
|
|
442
|
+
readonly fullName: "com.snap.camerakit.v3.RemoteApiSpecs";
|
|
443
|
+
readonly methods: {
|
|
444
|
+
/**
|
|
445
|
+
* GetRemoteApiSpecs provides lens Remote API specifications for CameraKit partners based on Snap Kit App ID.
|
|
446
|
+
* https://docs.google.com/document/d/1UBFybr3eI7nEWiUzm_rAumKefaGW6ecpYp5zOCRIYRA/edit
|
|
447
|
+
*/
|
|
448
|
+
readonly getRemoteApiSpecs: {
|
|
449
|
+
readonly name: "GetRemoteApiSpecs";
|
|
450
|
+
readonly requestType: {
|
|
451
|
+
encode(_: GetRemoteApiSpecsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
452
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsRequest;
|
|
453
|
+
fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): GetRemoteApiSpecsRequest;
|
|
454
|
+
};
|
|
455
|
+
readonly requestStream: false;
|
|
456
|
+
readonly responseType: {
|
|
457
|
+
encode(message: GetRemoteApiSpecsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
458
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRemoteApiSpecsResponse;
|
|
459
|
+
fromPartial<I_1 extends {
|
|
460
|
+
remoteApiSpecs?: {
|
|
461
|
+
id?: string | undefined;
|
|
462
|
+
host?: string | undefined;
|
|
463
|
+
endpoints?: {
|
|
464
|
+
path?: string | undefined;
|
|
465
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
466
|
+
parameters?: {
|
|
467
|
+
name?: string | undefined;
|
|
468
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
469
|
+
optional?: boolean | undefined;
|
|
470
|
+
externalName?: string | undefined;
|
|
471
|
+
defaultValue?: string | undefined;
|
|
472
|
+
constant?: boolean | undefined;
|
|
473
|
+
}[] | undefined;
|
|
474
|
+
refId?: string | undefined;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
tlsRequired?: boolean | undefined;
|
|
477
|
+
maxRequestSizeBytes?: number | undefined;
|
|
478
|
+
maxResponseSizeBytes?: number | undefined;
|
|
479
|
+
maxResponseTimeMillis?: number | undefined;
|
|
480
|
+
}[] | undefined;
|
|
481
|
+
} & {
|
|
482
|
+
remoteApiSpecs?: ({
|
|
483
|
+
id?: string | undefined;
|
|
484
|
+
host?: string | undefined;
|
|
485
|
+
endpoints?: {
|
|
486
|
+
path?: string | undefined;
|
|
487
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
488
|
+
parameters?: {
|
|
489
|
+
name?: string | undefined;
|
|
490
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
491
|
+
optional?: boolean | undefined;
|
|
492
|
+
externalName?: string | undefined;
|
|
493
|
+
defaultValue?: string | undefined;
|
|
494
|
+
constant?: boolean | undefined;
|
|
495
|
+
}[] | undefined;
|
|
496
|
+
refId?: string | undefined;
|
|
497
|
+
}[] | undefined;
|
|
498
|
+
tlsRequired?: boolean | undefined;
|
|
499
|
+
maxRequestSizeBytes?: number | undefined;
|
|
500
|
+
maxResponseSizeBytes?: number | undefined;
|
|
501
|
+
maxResponseTimeMillis?: number | undefined;
|
|
502
|
+
}[] & ({
|
|
503
|
+
id?: string | undefined;
|
|
504
|
+
host?: string | undefined;
|
|
505
|
+
endpoints?: {
|
|
506
|
+
path?: string | undefined;
|
|
507
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
508
|
+
parameters?: {
|
|
509
|
+
name?: string | undefined;
|
|
510
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
511
|
+
optional?: boolean | undefined;
|
|
512
|
+
externalName?: string | undefined;
|
|
513
|
+
defaultValue?: string | undefined;
|
|
514
|
+
constant?: boolean | undefined;
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
refId?: string | undefined;
|
|
517
|
+
}[] | undefined;
|
|
518
|
+
tlsRequired?: boolean | undefined;
|
|
519
|
+
maxRequestSizeBytes?: number | undefined;
|
|
520
|
+
maxResponseSizeBytes?: number | undefined;
|
|
521
|
+
maxResponseTimeMillis?: number | undefined;
|
|
522
|
+
} & {
|
|
523
|
+
id?: string | undefined;
|
|
524
|
+
host?: string | undefined;
|
|
525
|
+
endpoints?: ({
|
|
526
|
+
path?: string | undefined;
|
|
527
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
528
|
+
parameters?: {
|
|
529
|
+
name?: string | undefined;
|
|
530
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
531
|
+
optional?: boolean | undefined;
|
|
532
|
+
externalName?: string | undefined;
|
|
533
|
+
defaultValue?: string | undefined;
|
|
534
|
+
constant?: boolean | undefined;
|
|
535
|
+
}[] | undefined;
|
|
536
|
+
refId?: string | undefined;
|
|
537
|
+
}[] & ({
|
|
538
|
+
path?: string | undefined;
|
|
539
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
540
|
+
parameters?: {
|
|
541
|
+
name?: string | undefined;
|
|
542
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
543
|
+
optional?: boolean | undefined;
|
|
544
|
+
externalName?: string | undefined;
|
|
545
|
+
defaultValue?: string | undefined;
|
|
546
|
+
constant?: boolean | undefined;
|
|
547
|
+
}[] | undefined;
|
|
548
|
+
refId?: string | undefined;
|
|
549
|
+
} & {
|
|
550
|
+
path?: string | undefined;
|
|
551
|
+
methods?: (RemoteEndpoint_HttpRequestMethod[] & RemoteEndpoint_HttpRequestMethod[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["methods"], keyof RemoteEndpoint_HttpRequestMethod[]>, never>) | undefined;
|
|
552
|
+
parameters?: ({
|
|
553
|
+
name?: string | undefined;
|
|
554
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
555
|
+
optional?: boolean | undefined;
|
|
556
|
+
externalName?: string | undefined;
|
|
557
|
+
defaultValue?: string | undefined;
|
|
558
|
+
constant?: boolean | undefined;
|
|
559
|
+
}[] & ({
|
|
560
|
+
name?: string | undefined;
|
|
561
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
562
|
+
optional?: boolean | undefined;
|
|
563
|
+
externalName?: string | undefined;
|
|
564
|
+
defaultValue?: string | undefined;
|
|
565
|
+
constant?: boolean | undefined;
|
|
566
|
+
} & {
|
|
567
|
+
name?: string | undefined;
|
|
568
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
569
|
+
optional?: boolean | undefined;
|
|
570
|
+
externalName?: string | undefined;
|
|
571
|
+
defaultValue?: string | undefined;
|
|
572
|
+
constant?: boolean | undefined;
|
|
573
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["parameters"][number], keyof RemoteParameter>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number]["parameters"], keyof {
|
|
574
|
+
name?: string | undefined;
|
|
575
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
576
|
+
optional?: boolean | undefined;
|
|
577
|
+
externalName?: string | undefined;
|
|
578
|
+
defaultValue?: string | undefined;
|
|
579
|
+
constant?: boolean | undefined;
|
|
580
|
+
}[]>, never>) | undefined;
|
|
581
|
+
refId?: string | undefined;
|
|
582
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"][number], keyof RemoteEndpoint>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"][number]["endpoints"], keyof {
|
|
583
|
+
path?: string | undefined;
|
|
584
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
585
|
+
parameters?: {
|
|
586
|
+
name?: string | undefined;
|
|
587
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
588
|
+
optional?: boolean | undefined;
|
|
589
|
+
externalName?: string | undefined;
|
|
590
|
+
defaultValue?: string | undefined;
|
|
591
|
+
constant?: boolean | undefined;
|
|
592
|
+
}[] | undefined;
|
|
593
|
+
refId?: string | undefined;
|
|
594
|
+
}[]>, never>) | undefined;
|
|
595
|
+
tlsRequired?: boolean | undefined;
|
|
596
|
+
maxRequestSizeBytes?: number | undefined;
|
|
597
|
+
maxResponseSizeBytes?: number | undefined;
|
|
598
|
+
maxResponseTimeMillis?: number | undefined;
|
|
599
|
+
} & Record<Exclude<keyof I["remoteApiSpecs"][number], keyof RemoteApiSpec>, never>)[] & Record<Exclude<keyof I["remoteApiSpecs"], keyof {
|
|
600
|
+
id?: string | undefined;
|
|
601
|
+
host?: string | undefined;
|
|
602
|
+
endpoints?: {
|
|
603
|
+
path?: string | undefined;
|
|
604
|
+
methods?: RemoteEndpoint_HttpRequestMethod[] | undefined;
|
|
605
|
+
parameters?: {
|
|
606
|
+
name?: string | undefined;
|
|
607
|
+
location?: RemoteParameter_ParameterLocation | undefined;
|
|
608
|
+
optional?: boolean | undefined;
|
|
609
|
+
externalName?: string | undefined;
|
|
610
|
+
defaultValue?: string | undefined;
|
|
611
|
+
constant?: boolean | undefined;
|
|
612
|
+
}[] | undefined;
|
|
613
|
+
refId?: string | undefined;
|
|
614
|
+
}[] | undefined;
|
|
615
|
+
tlsRequired?: boolean | undefined;
|
|
616
|
+
maxRequestSizeBytes?: number | undefined;
|
|
617
|
+
maxResponseSizeBytes?: number | undefined;
|
|
618
|
+
maxResponseTimeMillis?: number | undefined;
|
|
619
|
+
}[]>, never>) | undefined;
|
|
620
|
+
} & Record<Exclude<keyof I_1, "remoteApiSpecs">, never>>(object: I_1): GetRemoteApiSpecsResponse;
|
|
621
|
+
};
|
|
622
|
+
readonly responseStream: false;
|
|
623
|
+
readonly options: {
|
|
624
|
+
readonly idempotencyLevel: "NO_SIDE_EFFECTS";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
630
|
+
export 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 {
|
|
631
|
+
$case: string;
|
|
632
|
+
} ? {
|
|
633
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
634
|
+
} & {
|
|
635
|
+
$case: T["$case"];
|
|
636
|
+
} : T extends {} ? {
|
|
637
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
638
|
+
} : Partial<T>;
|
|
639
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
640
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
641
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
642
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
643
|
+
export {};
|
|
644
|
+
//# sourceMappingURL=remote_api_spec.d.ts.map
|