@viamrobotics/sdk 0.26.0 → 0.26.2
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 +5 -2
- package/dist/api-version.d.ts +1 -1
- package/dist/components/arm/client.d.ts +9 -7
- package/dist/components/base/base.d.ts +1 -1
- package/dist/components/base/client.d.ts +10 -8
- package/dist/components/board/client.d.ts +14 -12
- package/dist/components/camera/client.d.ts +7 -5
- package/dist/components/encoder/client.d.ts +6 -4
- package/dist/components/gantry/client.d.ts +9 -7
- package/dist/components/generic/client.d.ts +3 -1
- package/dist/components/gripper/client.d.ts +7 -5
- package/dist/components/input-controller/client.d.ts +5 -3
- package/dist/components/motor/client.d.ts +13 -11
- package/dist/components/movement-sensor/client.d.ts +12 -10
- package/dist/components/power-sensor/client.d.ts +7 -5
- package/dist/components/sensor/client.d.ts +4 -2
- package/dist/components/servo/client.d.ts +7 -5
- package/dist/gen/app/build/v1/build_pb.d.ts +14 -0
- package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +26 -0
- package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +71 -0
- package/dist/gen/app/v1/app_pb.d.ts +35 -0
- package/dist/gen/app/v1/billing_pb.d.ts +177 -90
- package/dist/gen/app/v1/robot_pb.d.ts +7 -0
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +29 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +5 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +4175 -4102
- package/dist/main.umd.js +6 -6
- package/dist/rpc/base-channel.d.ts +1 -2
- package/dist/rpc/signaling-exchange.d.ts +1 -1
- package/dist/services/data-manager/client.d.ts +4 -2
- package/dist/services/generic/client.d.ts +3 -1
- package/dist/services/motion/client.d.ts +10 -8
- package/dist/services/navigation/client.d.ts +12 -10
- package/dist/services/slam/client.d.ts +7 -5
- package/dist/services/vision/client.d.ts +10 -8
- package/dist/utils.d.ts +5 -1
- package/package.json +10 -4
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +0 -26
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +0 -73
|
@@ -9,10 +9,9 @@ export declare class BaseChannel {
|
|
|
9
9
|
private closedReason;
|
|
10
10
|
protected maxDataChannelSize: number;
|
|
11
11
|
constructor(peerConn: RTCPeerConnection, dataChannel: RTCDataChannel);
|
|
12
|
-
close(): void;
|
|
13
12
|
isClosed(): boolean;
|
|
14
13
|
isClosedReason(): Error | undefined;
|
|
15
|
-
|
|
14
|
+
closeWithReason(err: Error): void;
|
|
16
15
|
private onChannelOpen;
|
|
17
16
|
private onChannelClose;
|
|
18
17
|
private onChannelError;
|
|
@@ -22,7 +22,7 @@ export declare class SignalingExchange {
|
|
|
22
22
|
constructor(signalingClient: PromiseClient<typeof SignalingService>, callOpts: CallOptions, pc: RTCPeerConnection, dc: RTCDataChannel, dialOpts?: DialWebRTCOptions | undefined);
|
|
23
23
|
doExchange(): Promise<ClientChannel>;
|
|
24
24
|
private setup;
|
|
25
|
-
terminate(): void;
|
|
25
|
+
terminate(err: Error): void;
|
|
26
26
|
private processCallResponses;
|
|
27
27
|
private handleInitError;
|
|
28
28
|
private handleInitResponse;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import type { RobotClient } from '../../robot';
|
|
3
4
|
import type { Options } from '../../types';
|
|
4
5
|
import type { DataManager } from './data-manager';
|
|
@@ -6,7 +7,8 @@ export declare class DataManagerClient implements DataManager {
|
|
|
6
7
|
private client;
|
|
7
8
|
private readonly name;
|
|
8
9
|
private readonly options;
|
|
10
|
+
callOptions: CallOptions;
|
|
9
11
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
10
|
-
sync(extra?: {}): Promise<void>;
|
|
11
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
12
|
+
sync(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
13
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
12
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import { RobotClient } from '../../robot';
|
|
3
4
|
import type { Options } from '../../types';
|
|
4
5
|
import type { Generic } from './generic';
|
|
@@ -11,6 +12,7 @@ export declare class GenericClient implements Generic {
|
|
|
11
12
|
private client;
|
|
12
13
|
private readonly name;
|
|
13
14
|
private readonly options;
|
|
15
|
+
callOptions: CallOptions;
|
|
14
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
17
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
16
18
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import type { RobotClient } from '../../robot';
|
|
3
4
|
import type { GeoGeometry, GeoPoint, Geometry, Options, Pose, PoseInFrame, ResourceName, Transform, WorldState } from '../../types';
|
|
4
5
|
import type { Motion } from './motion';
|
|
@@ -12,13 +13,14 @@ export declare class MotionClient implements Motion {
|
|
|
12
13
|
private client;
|
|
13
14
|
private readonly name;
|
|
14
15
|
private readonly options;
|
|
16
|
+
callOptions: CallOptions;
|
|
15
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
16
|
-
move(destination: PoseInFrame, componentName: ResourceName, worldState?: WorldState, constraints?: Constraints, extra?: {}): Promise<boolean>;
|
|
17
|
-
moveOnMap(destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, motionConfig?: MotionConfiguration, obstacles?: Geometry[], extra?: {}): Promise<string>;
|
|
18
|
-
moveOnGlobe(destination: GeoPoint, componentName: ResourceName, movementSensorName: ResourceName, heading?: number, obstaclesList?: GeoGeometry[], motionConfig?: MotionConfiguration, boundingRegionsList?: GeoGeometry[], extra?: {}): Promise<string>;
|
|
19
|
-
stopPlan(componentName: ResourceName, extra?: {}): Promise<null>;
|
|
20
|
-
getPlan(componentName: ResourceName, lastPlanOnly?: boolean, executionId?: string, extra?: {}): Promise<import("../../gen/service/motion/v1/motion_pb").GetPlanResponse>;
|
|
21
|
-
listPlanStatuses(onlyActivePlans?: boolean, extra?: {}): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
|
|
22
|
-
getPose(componentName: ResourceName, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
|
|
23
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
18
|
+
move(destination: PoseInFrame, componentName: ResourceName, worldState?: WorldState, constraints?: Constraints, extra?: {}, callOptions?: CallOptions): Promise<boolean>;
|
|
19
|
+
moveOnMap(destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, motionConfig?: MotionConfiguration, obstacles?: Geometry[], extra?: {}, callOptions?: CallOptions): Promise<string>;
|
|
20
|
+
moveOnGlobe(destination: GeoPoint, componentName: ResourceName, movementSensorName: ResourceName, heading?: number, obstaclesList?: GeoGeometry[], motionConfig?: MotionConfiguration, boundingRegionsList?: GeoGeometry[], extra?: {}, callOptions?: CallOptions): Promise<string>;
|
|
21
|
+
stopPlan(componentName: ResourceName, extra?: {}, callOptions?: CallOptions): Promise<null>;
|
|
22
|
+
getPlan(componentName: ResourceName, lastPlanOnly?: boolean, executionId?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").GetPlanResponse>;
|
|
23
|
+
listPlanStatuses(onlyActivePlans?: boolean, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
|
|
24
|
+
getPose(componentName: ResourceName, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
|
|
25
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
24
26
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import { RobotClient } from '../../robot';
|
|
3
4
|
import type { GeoPoint, Options } from '../../types';
|
|
4
5
|
import type { Navigation } from './navigation';
|
|
@@ -12,15 +13,16 @@ export declare class NavigationClient implements Navigation {
|
|
|
12
13
|
private client;
|
|
13
14
|
private readonly name;
|
|
14
15
|
private readonly options;
|
|
16
|
+
callOptions: CallOptions;
|
|
15
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
16
|
-
getMode(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Mode>;
|
|
17
|
-
setMode(mode: Mode, extra?: {}): Promise<void>;
|
|
18
|
-
getLocation(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetLocationResponse>;
|
|
19
|
-
getWayPoints(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Waypoint[]>;
|
|
20
|
-
addWayPoint(location: GeoPoint, extra?: {}): Promise<void>;
|
|
21
|
-
removeWayPoint(id: string, extra?: {}): Promise<void>;
|
|
22
|
-
getObstacles(extra?: {}): Promise<import("../../gen/common/v1/common_pb").GeoGeometry[]>;
|
|
23
|
-
getPaths(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Path[]>;
|
|
24
|
-
getProperties(): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse>;
|
|
25
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
18
|
+
getMode(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Mode>;
|
|
19
|
+
setMode(mode: Mode, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
20
|
+
getLocation(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetLocationResponse>;
|
|
21
|
+
getWayPoints(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Waypoint[]>;
|
|
22
|
+
addWayPoint(location: GeoPoint, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
23
|
+
removeWayPoint(id: string, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
24
|
+
getObstacles(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").GeoGeometry[]>;
|
|
25
|
+
getPaths(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Path[]>;
|
|
26
|
+
getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse>;
|
|
27
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
26
28
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import { RobotClient } from '../../robot';
|
|
3
4
|
import type { Options } from '../../types';
|
|
4
5
|
import type { Slam } from './slam';
|
|
@@ -11,10 +12,11 @@ export declare class SlamClient implements Slam {
|
|
|
11
12
|
private client;
|
|
12
13
|
private readonly name;
|
|
13
14
|
private readonly options;
|
|
15
|
+
callOptions: CallOptions;
|
|
14
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
getPosition(): Promise<import("../../gen/service/slam/v1/slam_pb").GetPositionResponse>;
|
|
16
|
-
getPointCloudMap: (returnEditedMap?: boolean) => Promise<Uint8Array>;
|
|
17
|
-
getInternalState: () => Promise<Uint8Array>;
|
|
18
|
-
getProperties(): Promise<import("../../gen/service/slam/v1/slam_pb").GetPropertiesResponse>;
|
|
19
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
17
|
+
getPosition(callOptions?: CallOptions): Promise<import("../../gen/service/slam/v1/slam_pb").GetPositionResponse>;
|
|
18
|
+
getPointCloudMap: (returnEditedMap?: boolean, callOptions?: CallOptions) => Promise<Uint8Array>;
|
|
19
|
+
getInternalState: (callOptions?: CallOptions) => Promise<Uint8Array>;
|
|
20
|
+
getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/slam/v1/slam_pb").GetPropertiesResponse>;
|
|
21
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
20
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import type { MimeType } from '../../main';
|
|
3
4
|
import type { RobotClient } from '../../robot';
|
|
4
5
|
import type { Options } from '../../types';
|
|
@@ -13,22 +14,23 @@ export declare class VisionClient implements Vision {
|
|
|
13
14
|
private client;
|
|
14
15
|
private readonly name;
|
|
15
16
|
private readonly options;
|
|
17
|
+
callOptions: CallOptions;
|
|
16
18
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
-
getDetectionsFromCamera(cameraName: string, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
18
|
-
getDetections(image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
19
|
-
getClassificationsFromCamera(cameraName: string, count: number, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
20
|
-
getClassifications(image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
21
|
-
getObjectPointClouds(cameraName: string, extra?: {}): Promise<import("../../gen/common/v1/common_pb").PointCloudObject[]>;
|
|
22
|
-
getProperties(extra?: {}): Promise<{
|
|
19
|
+
getDetectionsFromCamera(cameraName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
20
|
+
getDetections(image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
21
|
+
getClassificationsFromCamera(cameraName: string, count: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
22
|
+
getClassifications(image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
23
|
+
getObjectPointClouds(cameraName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PointCloudObject[]>;
|
|
24
|
+
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
23
25
|
classificationsSupported: boolean;
|
|
24
26
|
detectionsSupported: boolean;
|
|
25
27
|
objectPointCloudsSupported: boolean;
|
|
26
28
|
}>;
|
|
27
|
-
captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, }: CaptureAllOptions, extra?: {}): Promise<{
|
|
29
|
+
captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, }: CaptureAllOptions, extra?: {}, callOptions?: CallOptions): Promise<{
|
|
28
30
|
image: import("../../gen/component/camera/v1/camera_pb").Image | undefined;
|
|
29
31
|
classifications: import("../../gen/service/vision/v1/vision_pb").Classification[];
|
|
30
32
|
detections: import("../../gen/service/vision/v1/vision_pb").Detection[];
|
|
31
33
|
objectPointClouds: import("../../gen/common/v1/common_pb").PointCloudObject[];
|
|
32
34
|
}>;
|
|
33
|
-
doCommand(command: Struct): Promise<JsonValue>;
|
|
35
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
34
36
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -5,5 +5,9 @@ import type { Options } from './types';
|
|
|
5
5
|
export declare const clientHeaders: Headers;
|
|
6
6
|
type doCommand = (request: PartialMessage<DoCommandRequest>, options?: CallOptions) => Promise<DoCommandResponse>;
|
|
7
7
|
/** Send/Receive an arbitrary command using a resource client */
|
|
8
|
-
export declare const doCommandFromClient: (doCommander: doCommand, name: string, command: Struct, options?: Options) => Promise<JsonValue>;
|
|
8
|
+
export declare const doCommandFromClient: (doCommander: doCommand, name: string, command: Struct, options?: Options, callOptions?: CallOptions) => Promise<JsonValue>;
|
|
9
|
+
export declare const enableDebugLogging: (key?: string, opts?: CallOptions) => CallOptions;
|
|
10
|
+
export declare const disableDebugLogging: (opts: CallOptions) => void;
|
|
11
|
+
export declare const addMetadata: (key: string, value: string, opts?: CallOptions) => CallOptions;
|
|
12
|
+
export declare const deleteMetadata: (opts: CallOptions, key: string) => void;
|
|
9
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"typecheck": "concurrently -g npm:typecheck:*",
|
|
34
34
|
"typecheck:src": "tsc",
|
|
35
35
|
"typecheck:node": "tsc --project tsconfig.node.json",
|
|
36
|
+
"e2e:playwright": "playwright test",
|
|
37
|
+
"e2e:playwright-ui": "playwright test --ui",
|
|
38
|
+
"e2e:playwright-debug": "playwright test --debug",
|
|
39
|
+
"e2e:playwright-install": "playwright install",
|
|
40
|
+
"e2e:test-harness": "vite e2e",
|
|
36
41
|
"_eslint": "eslint '.*.cjs' '**/*.{ts,js,cjs}'",
|
|
37
42
|
"_prettier": "prettier '.*.cjs' '**/*.{ts,js,cjs}'"
|
|
38
43
|
},
|
|
@@ -46,13 +51,14 @@
|
|
|
46
51
|
},
|
|
47
52
|
"homepage": "https://github.com/viamrobotics/viam-typescript-sdk#readme",
|
|
48
53
|
"dependencies": {
|
|
49
|
-
"exponential-backoff": "^3.1.1",
|
|
50
54
|
"@bufbuild/protobuf": "^1.10.0",
|
|
51
|
-
"@connectrpc/connect": "^1.
|
|
52
|
-
"@connectrpc/connect-web": "^1.
|
|
55
|
+
"@connectrpc/connect": "^1.6.0",
|
|
56
|
+
"@connectrpc/connect-web": "^1.6.0",
|
|
57
|
+
"exponential-backoff": "^3.1.1"
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
55
60
|
"@bufbuild/buf": "^1.15.0-1",
|
|
61
|
+
"@playwright/test": "1.45.3",
|
|
56
62
|
"@types/node": "^20.11.10",
|
|
57
63
|
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
|
58
64
|
"@typescript-eslint/parser": "^6.17.0",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.5.0
|
|
2
|
-
// @generated from file proto/rpc/examples/fileupload/v1/fileupload.proto (package proto.rpc.examples.fileupload.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import { UploadFileRequest, UploadFileResponse } from "./fileupload_pb.js";
|
|
7
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from service proto.rpc.examples.fileupload.v1.FileUploadService
|
|
11
|
-
*/
|
|
12
|
-
export declare const FileUploadService: {
|
|
13
|
-
readonly typeName: "proto.rpc.examples.fileupload.v1.FileUploadService",
|
|
14
|
-
readonly methods: {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from rpc proto.rpc.examples.fileupload.v1.FileUploadService.UploadFile
|
|
17
|
-
*/
|
|
18
|
-
readonly uploadFile: {
|
|
19
|
-
readonly name: "UploadFile",
|
|
20
|
-
readonly I: typeof UploadFileRequest,
|
|
21
|
-
readonly O: typeof UploadFileResponse,
|
|
22
|
-
readonly kind: MethodKind.ClientStreaming,
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.0
|
|
2
|
-
// @generated from file proto/rpc/examples/fileupload/v1/fileupload.proto (package proto.rpc.examples.fileupload.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from message proto.rpc.examples.fileupload.v1.UploadFileRequest
|
|
11
|
-
*/
|
|
12
|
-
export declare class UploadFileRequest extends Message<UploadFileRequest> {
|
|
13
|
-
/**
|
|
14
|
-
* @generated from oneof proto.rpc.examples.fileupload.v1.UploadFileRequest.data
|
|
15
|
-
*/
|
|
16
|
-
data: {
|
|
17
|
-
/**
|
|
18
|
-
* @generated from field: string name = 1;
|
|
19
|
-
*/
|
|
20
|
-
value: string;
|
|
21
|
-
case: "name";
|
|
22
|
-
} | {
|
|
23
|
-
/**
|
|
24
|
-
* @generated from field: bytes chunk_data = 2;
|
|
25
|
-
*/
|
|
26
|
-
value: Uint8Array;
|
|
27
|
-
case: "chunkData";
|
|
28
|
-
} | { case: undefined; value?: undefined };
|
|
29
|
-
|
|
30
|
-
constructor(data?: PartialMessage<UploadFileRequest>);
|
|
31
|
-
|
|
32
|
-
static readonly runtime: typeof proto3;
|
|
33
|
-
static readonly typeName = "proto.rpc.examples.fileupload.v1.UploadFileRequest";
|
|
34
|
-
static readonly fields: FieldList;
|
|
35
|
-
|
|
36
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadFileRequest;
|
|
37
|
-
|
|
38
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadFileRequest;
|
|
39
|
-
|
|
40
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadFileRequest;
|
|
41
|
-
|
|
42
|
-
static equals(a: UploadFileRequest | PlainMessage<UploadFileRequest> | undefined, b: UploadFileRequest | PlainMessage<UploadFileRequest> | undefined): boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @generated from message proto.rpc.examples.fileupload.v1.UploadFileResponse
|
|
47
|
-
*/
|
|
48
|
-
export declare class UploadFileResponse extends Message<UploadFileResponse> {
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: string name = 1;
|
|
51
|
-
*/
|
|
52
|
-
name: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @generated from field: int64 size = 2;
|
|
56
|
-
*/
|
|
57
|
-
size: bigint;
|
|
58
|
-
|
|
59
|
-
constructor(data?: PartialMessage<UploadFileResponse>);
|
|
60
|
-
|
|
61
|
-
static readonly runtime: typeof proto3;
|
|
62
|
-
static readonly typeName = "proto.rpc.examples.fileupload.v1.UploadFileResponse";
|
|
63
|
-
static readonly fields: FieldList;
|
|
64
|
-
|
|
65
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadFileResponse;
|
|
66
|
-
|
|
67
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadFileResponse;
|
|
68
|
-
|
|
69
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadFileResponse;
|
|
70
|
-
|
|
71
|
-
static equals(a: UploadFileResponse | PlainMessage<UploadFileResponse> | undefined, b: UploadFileResponse | PlainMessage<UploadFileResponse> | undefined): boolean;
|
|
72
|
-
}
|
|
73
|
-
|