@dailydotdev/schema 0.3.12 → 0.3.14
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/dist/bragi/pipelines_connect.cjs +1 -1
- package/dist/bragi/pipelines_connect.d.cts +24 -1
- package/dist/bragi/pipelines_connect.d.ts +24 -1
- package/dist/bragi/pipelines_connect.js +1 -1
- package/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +687 -2
- package/dist/bragi/pipelines_pb.d.ts +687 -2
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -1
- package/dist/onnx-server/inference_connect.cjs +1 -0
- package/dist/onnx-server/inference_connect.d.cts +54 -0
- package/dist/onnx-server/inference_connect.d.ts +54 -0
- package/dist/onnx-server/inference_connect.js +1 -0
- package/dist/onnx-server/inference_pb.cjs +1 -0
- package/dist/onnx-server/inference_pb.d.cts +318 -0
- package/dist/onnx-server/inference_pb.d.ts +318 -0
- package/dist/onnx-server/inference_pb.js +1 -0
- package/package.json +2 -2
- package/dist/mfserve/recommend/recommend_pb.cjs +0 -1
- package/dist/mfserve/recommend/recommend_pb.d.cts +0 -110
- package/dist/mfserve/recommend/recommend_pb.d.ts +0 -110
- package/dist/mfserve/recommend/recommend_pb.js +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PredictRequest, PredictResponse, ListModelsRequest, ListModelsResponse, GetModelRequest, GetModelResponse } from './inference_pb.cjs';
|
|
2
|
+
import '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* InferenceService serves generic multi-model ONNX inference. The tensor
|
|
6
|
+
* encoding follows the KServe v2 gRPC inference protocol shape (name,
|
|
7
|
+
* datatype, shape, typed flat row-major contents), without claiming full
|
|
8
|
+
* v2 compliance.
|
|
9
|
+
*
|
|
10
|
+
* @generated from service onnxserver.v1.InferenceService
|
|
11
|
+
*/
|
|
12
|
+
declare const InferenceService: {
|
|
13
|
+
readonly typeName: "onnxserver.v1.InferenceService";
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* Predict runs inference on one loaded model.
|
|
17
|
+
* Errors: NOT_FOUND (unknown model), INVALID_ARGUMENT (input validation
|
|
18
|
+
* failure or model-side rejection; the message names the offending
|
|
19
|
+
* input), RESOURCE_EXHAUSTED (inference queue timeout - retryable).
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc onnxserver.v1.InferenceService.Predict
|
|
22
|
+
*/
|
|
23
|
+
readonly predict: {
|
|
24
|
+
readonly name: "Predict";
|
|
25
|
+
readonly I: typeof PredictRequest;
|
|
26
|
+
readonly O: typeof PredictResponse;
|
|
27
|
+
readonly kind: any;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* ListModels returns metadata for every loaded model.
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc onnxserver.v1.InferenceService.ListModels
|
|
33
|
+
*/
|
|
34
|
+
readonly listModels: {
|
|
35
|
+
readonly name: "ListModels";
|
|
36
|
+
readonly I: typeof ListModelsRequest;
|
|
37
|
+
readonly O: typeof ListModelsResponse;
|
|
38
|
+
readonly kind: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* GetModel returns metadata for one model. Errors: NOT_FOUND.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc onnxserver.v1.InferenceService.GetModel
|
|
44
|
+
*/
|
|
45
|
+
readonly getModel: {
|
|
46
|
+
readonly name: "GetModel";
|
|
47
|
+
readonly I: typeof GetModelRequest;
|
|
48
|
+
readonly O: typeof GetModelResponse;
|
|
49
|
+
readonly kind: any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { InferenceService };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PredictRequest, PredictResponse, ListModelsRequest, ListModelsResponse, GetModelRequest, GetModelResponse } from './inference_pb.js';
|
|
2
|
+
import '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* InferenceService serves generic multi-model ONNX inference. The tensor
|
|
6
|
+
* encoding follows the KServe v2 gRPC inference protocol shape (name,
|
|
7
|
+
* datatype, shape, typed flat row-major contents), without claiming full
|
|
8
|
+
* v2 compliance.
|
|
9
|
+
*
|
|
10
|
+
* @generated from service onnxserver.v1.InferenceService
|
|
11
|
+
*/
|
|
12
|
+
declare const InferenceService: {
|
|
13
|
+
readonly typeName: "onnxserver.v1.InferenceService";
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* Predict runs inference on one loaded model.
|
|
17
|
+
* Errors: NOT_FOUND (unknown model), INVALID_ARGUMENT (input validation
|
|
18
|
+
* failure or model-side rejection; the message names the offending
|
|
19
|
+
* input), RESOURCE_EXHAUSTED (inference queue timeout - retryable).
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc onnxserver.v1.InferenceService.Predict
|
|
22
|
+
*/
|
|
23
|
+
readonly predict: {
|
|
24
|
+
readonly name: "Predict";
|
|
25
|
+
readonly I: typeof PredictRequest;
|
|
26
|
+
readonly O: typeof PredictResponse;
|
|
27
|
+
readonly kind: any;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* ListModels returns metadata for every loaded model.
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc onnxserver.v1.InferenceService.ListModels
|
|
33
|
+
*/
|
|
34
|
+
readonly listModels: {
|
|
35
|
+
readonly name: "ListModels";
|
|
36
|
+
readonly I: typeof ListModelsRequest;
|
|
37
|
+
readonly O: typeof ListModelsResponse;
|
|
38
|
+
readonly kind: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* GetModel returns metadata for one model. Errors: NOT_FOUND.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc onnxserver.v1.InferenceService.GetModel
|
|
44
|
+
*/
|
|
45
|
+
readonly getModel: {
|
|
46
|
+
readonly name: "GetModel";
|
|
47
|
+
readonly I: typeof GetModelRequest;
|
|
48
|
+
readonly O: typeof GetModelResponse;
|
|
49
|
+
readonly kind: any;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { InferenceService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{GetModelRequest as e,GetModelResponse as n,ListModelsRequest as r,ListModelsResponse as o,PredictRequest as t,PredictResponse as i}from"./inference_pb.ts";import{MethodKind as d}from"@bufbuild/protobuf";const m={typeName:"onnxserver.v1.InferenceService",methods:{predict:{name:"Predict",I:t,O:i,kind:d.Unary},listModels:{name:"ListModels",I:r,O:o,kind:d.Unary},getModel:{name:"GetModel",I:e,O:n,kind:d.Unary}}};export{m as InferenceService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(o,{DataType:()=>i,GetModelRequest:()=>y,GetModelResponse:()=>g,ListModelsRequest:()=>T,ListModelsResponse:()=>f,ModelMetadata:()=>d,PredictRequest:()=>c,PredictResponse:()=>l,Tensor:()=>m,TensorContents:()=>u,TensorMeta:()=>p}),module.exports=(t=o,((t,o,a,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let u of r(o))s.call(t,u)||u===a||e(t,u,{get:()=>o[u],enumerable:!(i=n(o,u))||i.enumerable});return t})(e({},"__esModule",{value:!0}),t));var a=require("@bufbuild/protobuf"),i=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.FP32=1]="FP32",t[t.FP64=2]="FP64",t[t.INT8=3]="INT8",t[t.INT16=4]="INT16",t[t.INT32=5]="INT32",t[t.INT64=6]="INT64",t[t.UINT8=7]="UINT8",t[t.UINT16=8]="UINT16",t[t.UINT32=9]="UINT32",t[t.UINT64=10]="UINT64",t[t.BOOL=11]="BOOL",t[t.BYTES=12]="BYTES",t))(i||{});a.proto3.util.setEnumType(i,"onnxserver.v1.DataType",[{no:0,name:"DATA_TYPE_UNSPECIFIED"},{no:1,name:"DATA_TYPE_FP32"},{no:2,name:"DATA_TYPE_FP64"},{no:3,name:"DATA_TYPE_INT8"},{no:4,name:"DATA_TYPE_INT16"},{no:5,name:"DATA_TYPE_INT32"},{no:6,name:"DATA_TYPE_INT64"},{no:7,name:"DATA_TYPE_UINT8"},{no:8,name:"DATA_TYPE_UINT16"},{no:9,name:"DATA_TYPE_UINT32"},{no:10,name:"DATA_TYPE_UINT64"},{no:11,name:"DATA_TYPE_BOOL"},{no:12,name:"DATA_TYPE_BYTES"}]);class u extends a.Message{fp32Contents=[];fp64Contents=[];int32Contents=[];int64Contents=[];uint32Contents=[];uint64Contents=[];boolContents=[];bytesContents=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.TensorContents";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"fp32_contents",kind:"scalar",T:2,repeated:!0},{no:2,name:"fp64_contents",kind:"scalar",T:1,repeated:!0},{no:3,name:"int32_contents",kind:"scalar",T:5,repeated:!0},{no:4,name:"int64_contents",kind:"scalar",T:3,repeated:!0},{no:5,name:"uint32_contents",kind:"scalar",T:13,repeated:!0},{no:6,name:"uint64_contents",kind:"scalar",T:4,repeated:!0},{no:7,name:"bool_contents",kind:"scalar",T:8,repeated:!0},{no:8,name:"bytes_contents",kind:"scalar",T:12,repeated:!0}]));static fromBinary(t,e){return(new u).fromBinary(t,e)}static fromJson(t,e){return(new u).fromJson(t,e)}static fromJsonString(t,e){return(new u).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(u,t,e)}}class m extends a.Message{name="";dataType=0;shape=[];contents;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.Tensor";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"data_type",kind:"enum",T:a.proto3.getEnumType(i)},{no:3,name:"shape",kind:"scalar",T:3,repeated:!0},{no:4,name:"contents",kind:"message",T:u}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(m,t,e)}}class c extends a.Message{modelName="";inputs=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.PredictRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9},{no:2,name:"inputs",kind:"message",T:m,repeated:!0}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(c,t,e)}}class l extends a.Message{modelName="";outputs=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.PredictResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9},{no:2,name:"outputs",kind:"message",T:m,repeated:!0}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(l,t,e)}}class p extends a.Message{name="";dataType=0;shape=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.TensorMeta";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"data_type",kind:"enum",T:a.proto3.getEnumType(i)},{no:3,name:"shape",kind:"scalar",T:3,repeated:!0}]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(p,t,e)}}class d extends a.Message{name="";source="";inputs=[];outputs=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.ModelMetadata";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source",kind:"scalar",T:9},{no:3,name:"inputs",kind:"message",T:p,repeated:!0},{no:4,name:"outputs",kind:"message",T:p,repeated:!0}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(d,t,e)}}class T extends a.Message{constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.ListModelsRequest";static fields=a.proto3.util.newFieldList((()=>[]));static fromBinary(t,e){return(new T).fromBinary(t,e)}static fromJson(t,e){return(new T).fromJson(t,e)}static fromJsonString(t,e){return(new T).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(T,t,e)}}class f extends a.Message{models=[];constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.ListModelsResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"models",kind:"message",T:d,repeated:!0}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(f,t,e)}}class y extends a.Message{name="";constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.GetModelRequest";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(y,t,e)}}class g extends a.Message{model;constructor(t){super(),a.proto3.util.initPartial(t,this)}static runtime=a.proto3;static typeName="onnxserver.v1.GetModelResponse";static fields=a.proto3.util.newFieldList((()=>[{no:1,name:"model",kind:"message",T:d}]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return a.proto3.util.equals(g,t,e)}}
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* DataType mirrors the KServe v2 datatype names (FP32, INT64, BYTES, ...).
|
|
5
|
+
* BYTES carries string tensors.
|
|
6
|
+
*
|
|
7
|
+
* @generated from enum onnxserver.v1.DataType
|
|
8
|
+
*/
|
|
9
|
+
declare enum DataType {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum value: DATA_TYPE_UNSPECIFIED = 0;
|
|
12
|
+
*/
|
|
13
|
+
UNSPECIFIED = 0,
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum value: DATA_TYPE_FP32 = 1;
|
|
16
|
+
*/
|
|
17
|
+
FP32 = 1,
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: DATA_TYPE_FP64 = 2;
|
|
20
|
+
*/
|
|
21
|
+
FP64 = 2,
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: DATA_TYPE_INT8 = 3;
|
|
24
|
+
*/
|
|
25
|
+
INT8 = 3,
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: DATA_TYPE_INT16 = 4;
|
|
28
|
+
*/
|
|
29
|
+
INT16 = 4,
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum value: DATA_TYPE_INT32 = 5;
|
|
32
|
+
*/
|
|
33
|
+
INT32 = 5,
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: DATA_TYPE_INT64 = 6;
|
|
36
|
+
*/
|
|
37
|
+
INT64 = 6,
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: DATA_TYPE_UINT8 = 7;
|
|
40
|
+
*/
|
|
41
|
+
UINT8 = 7,
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum value: DATA_TYPE_UINT16 = 8;
|
|
44
|
+
*/
|
|
45
|
+
UINT16 = 8,
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum value: DATA_TYPE_UINT32 = 9;
|
|
48
|
+
*/
|
|
49
|
+
UINT32 = 9,
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum value: DATA_TYPE_UINT64 = 10;
|
|
52
|
+
*/
|
|
53
|
+
UINT64 = 10,
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum value: DATA_TYPE_BOOL = 11;
|
|
56
|
+
*/
|
|
57
|
+
BOOL = 11,
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: DATA_TYPE_BYTES = 12;
|
|
60
|
+
*/
|
|
61
|
+
BYTES = 12
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* TensorContents holds flat row-major tensor data. Only the field matching
|
|
65
|
+
* the tensor's data type is read. 8- and 16-bit integers travel widened in
|
|
66
|
+
* int32_contents / uint32_contents and are range-checked server-side
|
|
67
|
+
* (KServe v2 InferTensorContents style).
|
|
68
|
+
*
|
|
69
|
+
* @generated from message onnxserver.v1.TensorContents
|
|
70
|
+
*/
|
|
71
|
+
declare class TensorContents extends Message<TensorContents> {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: repeated float fp32_contents = 1;
|
|
74
|
+
*/
|
|
75
|
+
fp32Contents: number[];
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: repeated double fp64_contents = 2;
|
|
78
|
+
*/
|
|
79
|
+
fp64Contents: number[];
|
|
80
|
+
/**
|
|
81
|
+
* Carries INT8, INT16 and INT32 elements.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: repeated int32 int32_contents = 3;
|
|
84
|
+
*/
|
|
85
|
+
int32Contents: number[];
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: repeated int64 int64_contents = 4;
|
|
88
|
+
*/
|
|
89
|
+
int64Contents: bigint[];
|
|
90
|
+
/**
|
|
91
|
+
* Carries UINT8, UINT16 and UINT32 elements.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: repeated uint32 uint32_contents = 5;
|
|
94
|
+
*/
|
|
95
|
+
uint32Contents: number[];
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: repeated uint64 uint64_contents = 6;
|
|
98
|
+
*/
|
|
99
|
+
uint64Contents: bigint[];
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: repeated bool bool_contents = 7;
|
|
102
|
+
*/
|
|
103
|
+
boolContents: boolean[];
|
|
104
|
+
/**
|
|
105
|
+
* Carries BYTES (string tensor) elements, one entry per element.
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: repeated bytes bytes_contents = 8;
|
|
108
|
+
*/
|
|
109
|
+
bytesContents: Uint8Array[];
|
|
110
|
+
constructor(data?: PartialMessage<TensorContents>);
|
|
111
|
+
static readonly runtime: typeof proto3;
|
|
112
|
+
static readonly typeName = "onnxserver.v1.TensorContents";
|
|
113
|
+
static readonly fields: FieldList;
|
|
114
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TensorContents;
|
|
115
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TensorContents;
|
|
116
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TensorContents;
|
|
117
|
+
static equals(a: TensorContents | PlainMessage<TensorContents> | undefined, b: TensorContents | PlainMessage<TensorContents> | undefined): boolean;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Tensor is one named tensor. On Predict requests data_type may be left
|
|
121
|
+
* UNSPECIFIED: the model's declared input type is authoritative and the
|
|
122
|
+
* matching contents field is read. Responses always set data_type. The
|
|
123
|
+
* element count of the populated contents field must equal the product of
|
|
124
|
+
* shape.
|
|
125
|
+
*
|
|
126
|
+
* @generated from message onnxserver.v1.Tensor
|
|
127
|
+
*/
|
|
128
|
+
declare class Tensor extends Message<Tensor> {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string name = 1;
|
|
131
|
+
*/
|
|
132
|
+
name: string;
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: onnxserver.v1.DataType data_type = 2;
|
|
135
|
+
*/
|
|
136
|
+
dataType: DataType;
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: repeated int64 shape = 3;
|
|
139
|
+
*/
|
|
140
|
+
shape: bigint[];
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: onnxserver.v1.TensorContents contents = 4;
|
|
143
|
+
*/
|
|
144
|
+
contents?: TensorContents;
|
|
145
|
+
constructor(data?: PartialMessage<Tensor>);
|
|
146
|
+
static readonly runtime: typeof proto3;
|
|
147
|
+
static readonly typeName = "onnxserver.v1.Tensor";
|
|
148
|
+
static readonly fields: FieldList;
|
|
149
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tensor;
|
|
150
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tensor;
|
|
151
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tensor;
|
|
152
|
+
static equals(a: Tensor | PlainMessage<Tensor> | undefined, b: Tensor | PlainMessage<Tensor> | undefined): boolean;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated from message onnxserver.v1.PredictRequest
|
|
156
|
+
*/
|
|
157
|
+
declare class PredictRequest extends Message<PredictRequest> {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string model_name = 1;
|
|
160
|
+
*/
|
|
161
|
+
modelName: string;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: repeated onnxserver.v1.Tensor inputs = 2;
|
|
164
|
+
*/
|
|
165
|
+
inputs: Tensor[];
|
|
166
|
+
constructor(data?: PartialMessage<PredictRequest>);
|
|
167
|
+
static readonly runtime: typeof proto3;
|
|
168
|
+
static readonly typeName = "onnxserver.v1.PredictRequest";
|
|
169
|
+
static readonly fields: FieldList;
|
|
170
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredictRequest;
|
|
171
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredictRequest;
|
|
172
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredictRequest;
|
|
173
|
+
static equals(a: PredictRequest | PlainMessage<PredictRequest> | undefined, b: PredictRequest | PlainMessage<PredictRequest> | undefined): boolean;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @generated from message onnxserver.v1.PredictResponse
|
|
177
|
+
*/
|
|
178
|
+
declare class PredictResponse extends Message<PredictResponse> {
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string model_name = 1;
|
|
181
|
+
*/
|
|
182
|
+
modelName: string;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: repeated onnxserver.v1.Tensor outputs = 2;
|
|
185
|
+
*/
|
|
186
|
+
outputs: Tensor[];
|
|
187
|
+
constructor(data?: PartialMessage<PredictResponse>);
|
|
188
|
+
static readonly runtime: typeof proto3;
|
|
189
|
+
static readonly typeName = "onnxserver.v1.PredictResponse";
|
|
190
|
+
static readonly fields: FieldList;
|
|
191
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredictResponse;
|
|
192
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredictResponse;
|
|
193
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredictResponse;
|
|
194
|
+
static equals(a: PredictResponse | PlainMessage<PredictResponse> | undefined, b: PredictResponse | PlainMessage<PredictResponse> | undefined): boolean;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* TensorMeta describes one model input or output. A dimension of -1 is
|
|
198
|
+
* dynamic (e.g. the batch dimension).
|
|
199
|
+
*
|
|
200
|
+
* @generated from message onnxserver.v1.TensorMeta
|
|
201
|
+
*/
|
|
202
|
+
declare class TensorMeta extends Message<TensorMeta> {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: string name = 1;
|
|
205
|
+
*/
|
|
206
|
+
name: string;
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: onnxserver.v1.DataType data_type = 2;
|
|
209
|
+
*/
|
|
210
|
+
dataType: DataType;
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: repeated int64 shape = 3;
|
|
213
|
+
*/
|
|
214
|
+
shape: bigint[];
|
|
215
|
+
constructor(data?: PartialMessage<TensorMeta>);
|
|
216
|
+
static readonly runtime: typeof proto3;
|
|
217
|
+
static readonly typeName = "onnxserver.v1.TensorMeta";
|
|
218
|
+
static readonly fields: FieldList;
|
|
219
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TensorMeta;
|
|
220
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TensorMeta;
|
|
221
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TensorMeta;
|
|
222
|
+
static equals(a: TensorMeta | PlainMessage<TensorMeta> | undefined, b: TensorMeta | PlainMessage<TensorMeta> | undefined): boolean;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @generated from message onnxserver.v1.ModelMetadata
|
|
226
|
+
*/
|
|
227
|
+
declare class ModelMetadata extends Message<ModelMetadata> {
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: string name = 1;
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: string source = 2;
|
|
234
|
+
*/
|
|
235
|
+
source: string;
|
|
236
|
+
/**
|
|
237
|
+
* @generated from field: repeated onnxserver.v1.TensorMeta inputs = 3;
|
|
238
|
+
*/
|
|
239
|
+
inputs: TensorMeta[];
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: repeated onnxserver.v1.TensorMeta outputs = 4;
|
|
242
|
+
*/
|
|
243
|
+
outputs: TensorMeta[];
|
|
244
|
+
constructor(data?: PartialMessage<ModelMetadata>);
|
|
245
|
+
static readonly runtime: typeof proto3;
|
|
246
|
+
static readonly typeName = "onnxserver.v1.ModelMetadata";
|
|
247
|
+
static readonly fields: FieldList;
|
|
248
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModelMetadata;
|
|
249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModelMetadata;
|
|
250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModelMetadata;
|
|
251
|
+
static equals(a: ModelMetadata | PlainMessage<ModelMetadata> | undefined, b: ModelMetadata | PlainMessage<ModelMetadata> | undefined): boolean;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message onnxserver.v1.ListModelsRequest
|
|
255
|
+
*/
|
|
256
|
+
declare class ListModelsRequest extends Message<ListModelsRequest> {
|
|
257
|
+
constructor(data?: PartialMessage<ListModelsRequest>);
|
|
258
|
+
static readonly runtime: typeof proto3;
|
|
259
|
+
static readonly typeName = "onnxserver.v1.ListModelsRequest";
|
|
260
|
+
static readonly fields: FieldList;
|
|
261
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListModelsRequest;
|
|
262
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListModelsRequest;
|
|
263
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListModelsRequest;
|
|
264
|
+
static equals(a: ListModelsRequest | PlainMessage<ListModelsRequest> | undefined, b: ListModelsRequest | PlainMessage<ListModelsRequest> | undefined): boolean;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message onnxserver.v1.ListModelsResponse
|
|
268
|
+
*/
|
|
269
|
+
declare class ListModelsResponse extends Message<ListModelsResponse> {
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: repeated onnxserver.v1.ModelMetadata models = 1;
|
|
272
|
+
*/
|
|
273
|
+
models: ModelMetadata[];
|
|
274
|
+
constructor(data?: PartialMessage<ListModelsResponse>);
|
|
275
|
+
static readonly runtime: typeof proto3;
|
|
276
|
+
static readonly typeName = "onnxserver.v1.ListModelsResponse";
|
|
277
|
+
static readonly fields: FieldList;
|
|
278
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListModelsResponse;
|
|
279
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListModelsResponse;
|
|
280
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListModelsResponse;
|
|
281
|
+
static equals(a: ListModelsResponse | PlainMessage<ListModelsResponse> | undefined, b: ListModelsResponse | PlainMessage<ListModelsResponse> | undefined): boolean;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @generated from message onnxserver.v1.GetModelRequest
|
|
285
|
+
*/
|
|
286
|
+
declare class GetModelRequest extends Message<GetModelRequest> {
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: string name = 1;
|
|
289
|
+
*/
|
|
290
|
+
name: string;
|
|
291
|
+
constructor(data?: PartialMessage<GetModelRequest>);
|
|
292
|
+
static readonly runtime: typeof proto3;
|
|
293
|
+
static readonly typeName = "onnxserver.v1.GetModelRequest";
|
|
294
|
+
static readonly fields: FieldList;
|
|
295
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetModelRequest;
|
|
296
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetModelRequest;
|
|
297
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetModelRequest;
|
|
298
|
+
static equals(a: GetModelRequest | PlainMessage<GetModelRequest> | undefined, b: GetModelRequest | PlainMessage<GetModelRequest> | undefined): boolean;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @generated from message onnxserver.v1.GetModelResponse
|
|
302
|
+
*/
|
|
303
|
+
declare class GetModelResponse extends Message<GetModelResponse> {
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: onnxserver.v1.ModelMetadata model = 1;
|
|
306
|
+
*/
|
|
307
|
+
model?: ModelMetadata;
|
|
308
|
+
constructor(data?: PartialMessage<GetModelResponse>);
|
|
309
|
+
static readonly runtime: typeof proto3;
|
|
310
|
+
static readonly typeName = "onnxserver.v1.GetModelResponse";
|
|
311
|
+
static readonly fields: FieldList;
|
|
312
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetModelResponse;
|
|
313
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetModelResponse;
|
|
314
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetModelResponse;
|
|
315
|
+
static equals(a: GetModelResponse | PlainMessage<GetModelResponse> | undefined, b: GetModelResponse | PlainMessage<GetModelResponse> | undefined): boolean;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export { DataType, GetModelRequest, GetModelResponse, ListModelsRequest, ListModelsResponse, ModelMetadata, PredictRequest, PredictResponse, Tensor, TensorContents, TensorMeta };
|