UNPKG

@aneoconsultingfr/armonik.api

Version:

gRPC API to interact with ArmoniK built for the web

276 lines (273 loc) 12.3 kB
import { Duration } from './google/protobuf/duration.js'; import _m0 from 'protobufjs/minimal.js'; import { TaskOptions, Configuration, Output } from './objects.js'; import './task_status.js'; declare const protobufPackage = "armonik.api.grpc.v1.worker"; declare enum HealthCheckReply_ServingStatus { UNKNOWN = 0, SERVING = 1, NOT_SERVING = 2, UNRECOGNIZED = -1 } declare function healthCheckReply_ServingStatusFromJSON(object: any): HealthCheckReply_ServingStatus; declare function healthCheckReply_ServingStatusToJSON(object: HealthCheckReply_ServingStatus): string; interface ProcessRequest { communicationToken: string; sessionId: string; taskId: string; taskOptions: TaskOptions | undefined; expectedOutputKeys: string[]; payloadId: string; dataDependencies: string[]; dataFolder: string; configuration: Configuration | undefined; } declare const ProcessRequest: { encode(message: ProcessRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ProcessRequest; fromJSON(object: any): ProcessRequest; toJSON(message: ProcessRequest): unknown; create<I extends { communicationToken?: string | undefined; sessionId?: string | undefined; taskId?: string | undefined; taskOptions?: { options?: { [x: string]: string | undefined; } | undefined; maxDuration?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } | undefined; expectedOutputKeys?: string[] | undefined; payloadId?: string | undefined; dataDependencies?: string[] | undefined; dataFolder?: string | undefined; configuration?: { dataChunkMaxSize?: number | undefined; } | undefined; } & { communicationToken?: string | undefined; sessionId?: string | undefined; taskId?: string | undefined; taskOptions?: ({ options?: { [x: string]: string | undefined; } | undefined; maxDuration?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } & { options?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & { [K in Exclude<keyof I["taskOptions"]["options"], string | number>]: never; }) | undefined; maxDuration?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & { [K in Exclude<keyof I["taskOptions"]["maxDuration"], keyof Duration>]: never; }) | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } & { [K_1 in Exclude<keyof I["taskOptions"], keyof TaskOptions>]: never; }) | undefined; expectedOutputKeys?: (string[] & string[] & { [K_2 in Exclude<keyof I["expectedOutputKeys"], keyof string[]>]: never; }) | undefined; payloadId?: string | undefined; dataDependencies?: (string[] & string[] & { [K_3 in Exclude<keyof I["dataDependencies"], keyof string[]>]: never; }) | undefined; dataFolder?: string | undefined; configuration?: ({ dataChunkMaxSize?: number | undefined; } & { dataChunkMaxSize?: number | undefined; } & { [K_4 in Exclude<keyof I["configuration"], "dataChunkMaxSize">]: never; }) | undefined; } & { [K_5 in Exclude<keyof I, keyof ProcessRequest>]: never; }>(base?: I | undefined): ProcessRequest; fromPartial<I_1 extends { communicationToken?: string | undefined; sessionId?: string | undefined; taskId?: string | undefined; taskOptions?: { options?: { [x: string]: string | undefined; } | undefined; maxDuration?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } | undefined; expectedOutputKeys?: string[] | undefined; payloadId?: string | undefined; dataDependencies?: string[] | undefined; dataFolder?: string | undefined; configuration?: { dataChunkMaxSize?: number | undefined; } | undefined; } & { communicationToken?: string | undefined; sessionId?: string | undefined; taskId?: string | undefined; taskOptions?: ({ options?: { [x: string]: string | undefined; } | undefined; maxDuration?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } & { options?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & { [K_6 in Exclude<keyof I_1["taskOptions"]["options"], string | number>]: never; }) | undefined; maxDuration?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & { [K_7 in Exclude<keyof I_1["taskOptions"]["maxDuration"], keyof Duration>]: never; }) | undefined; maxRetries?: number | undefined; priority?: number | undefined; partitionId?: string | undefined; applicationName?: string | undefined; applicationVersion?: string | undefined; applicationNamespace?: string | undefined; applicationService?: string | undefined; engineType?: string | undefined; } & { [K_8 in Exclude<keyof I_1["taskOptions"], keyof TaskOptions>]: never; }) | undefined; expectedOutputKeys?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["expectedOutputKeys"], keyof string[]>]: never; }) | undefined; payloadId?: string | undefined; dataDependencies?: (string[] & string[] & { [K_10 in Exclude<keyof I_1["dataDependencies"], keyof string[]>]: never; }) | undefined; dataFolder?: string | undefined; configuration?: ({ dataChunkMaxSize?: number | undefined; } & { dataChunkMaxSize?: number | undefined; } & { [K_11 in Exclude<keyof I_1["configuration"], "dataChunkMaxSize">]: never; }) | undefined; } & { [K_12 in Exclude<keyof I_1, keyof ProcessRequest>]: never; }>(object: I_1): ProcessRequest; }; interface ProcessReply { output: Output | undefined; } declare const ProcessReply: { encode(message: ProcessReply, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ProcessReply; fromJSON(object: any): ProcessReply; toJSON(message: ProcessReply): unknown; create<I extends { output?: { ok?: {} | undefined; error?: { details?: string | undefined; } | undefined; } | undefined; } & { output?: ({ ok?: {} | undefined; error?: { details?: string | undefined; } | undefined; } & { ok?: ({} & {} & { [K in Exclude<keyof I["output"]["ok"], never>]: never; }) | undefined; error?: ({ details?: string | undefined; } & { details?: string | undefined; } & { [K_1 in Exclude<keyof I["output"]["error"], "details">]: never; }) | undefined; } & { [K_2 in Exclude<keyof I["output"], keyof Output>]: never; }) | undefined; } & { [K_3 in Exclude<keyof I, "output">]: never; }>(base?: I | undefined): ProcessReply; fromPartial<I_1 extends { output?: { ok?: {} | undefined; error?: { details?: string | undefined; } | undefined; } | undefined; } & { output?: ({ ok?: {} | undefined; error?: { details?: string | undefined; } | undefined; } & { ok?: ({} & {} & { [K_4 in Exclude<keyof I_1["output"]["ok"], never>]: never; }) | undefined; error?: ({ details?: string | undefined; } & { details?: string | undefined; } & { [K_5 in Exclude<keyof I_1["output"]["error"], "details">]: never; }) | undefined; } & { [K_6 in Exclude<keyof I_1["output"], keyof Output>]: never; }) | undefined; } & { [K_7 in Exclude<keyof I_1, "output">]: never; }>(object: I_1): ProcessReply; }; interface HealthCheckReply { status: HealthCheckReply_ServingStatus; } declare const HealthCheckReply: { encode(message: HealthCheckReply, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheckReply; fromJSON(object: any): HealthCheckReply; toJSON(message: HealthCheckReply): unknown; create<I extends { status?: HealthCheckReply_ServingStatus | undefined; } & { status?: HealthCheckReply_ServingStatus | undefined; } & { [K in Exclude<keyof I, "status">]: never; }>(base?: I | undefined): HealthCheckReply; fromPartial<I_1 extends { status?: HealthCheckReply_ServingStatus | undefined; } & { status?: HealthCheckReply_ServingStatus | undefined; } & { [K_1 in Exclude<keyof I_1, "status">]: never; }>(object: I_1): HealthCheckReply; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 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 {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>; type KeysOfUnion<T> = T extends T ? keyof T : never; type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; }; export { DeepPartial, Exact, HealthCheckReply, HealthCheckReply_ServingStatus, ProcessReply, ProcessRequest, healthCheckReply_ServingStatusFromJSON, healthCheckReply_ServingStatusToJSON, protobufPackage };