@cobotar/protocol 1.0.9 → 1.0.10
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
CHANGED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=ts"
|
|
2
|
+
// @generated from file product/v1/part_instance_requests.proto (package product.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts";
|
|
8
|
+
import type { PartInstanceLocation, QuantityStatus } from "./part_instance_pb.ts";
|
|
9
|
+
import { file_product_v1_part_instance } from "./part_instance_pb.ts";
|
|
10
|
+
import { file_validation_v1_predefined_string_rules } from "../../validation/v1/predefined_string_rules_pb.ts";
|
|
11
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file product/v1/part_instance_requests.proto.
|
|
15
|
+
*/
|
|
16
|
+
export const file_product_v1_part_instance_requests: GenFile = /*@__PURE__*/
|
|
17
|
+
fileDesc("Cidwcm9kdWN0L3YxL3BhcnRfaW5zdGFuY2VfcmVxdWVzdHMucHJvdG8SCnByb2R1Y3QudjEipQEKGlBhcnRJbnN0YW5jZUJ1bGtDcmVhdGVTcGVjEigKEnBhcnRfZGVmaW5pdGlvbl9pZBgBIAEoCUIMukgJyAEBcgTI8QQBEiIKDmluc3RhbmNlX2NvdW50GAIgASgNQgq6SAcqBRjoByAAEjkKFXF1YW50aXR5X3Blcl9pbnN0YW5jZRgDIAEoCzIaLnByb2R1Y3QudjEuUXVhbnRpdHlTdGF0dXMiwgEKHkJ1bGtDcmVhdGVQYXJ0SW5zdGFuY2VzUmVxdWVzdBJBCgVwYXJ0cxgBIAMoCzImLnByb2R1Y3QudjEuUGFydEluc3RhbmNlQnVsa0NyZWF0ZVNwZWNCCrpIB5IBBAgBEGQSOgoIbG9jYXRpb24YAiABKAsyIC5wcm9kdWN0LnYxLlBhcnRJbnN0YW5jZUxvY2F0aW9uQga6SAPIAQESIQoPaWRlbXBvdGVuY3lfa2V5GAMgASgJQgi6SAVyAxiAAUK4AQoOY29tLnByb2R1Y3QudjFCGVBhcnRJbnN0YW5jZVJlcXVlc3RzUHJvdG9QAVo5Z2l0aHViLmNvbS9jb2JvdGFyL3Byb3RvY29sL21lc3NhZ2VzL3Byb2R1Y3QvdjE7cHJvZHVjdHYxogIDUFhYqgITTWVzc2FnZXMuUHJvZHVjdC5WMcoCClByb2R1Y3RcVjHiAhZQcm9kdWN0XFYxXEdQQk1ldGFkYXRh6gILUHJvZHVjdDo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_product_v1_part_instance, file_validation_v1_predefined_string_rules]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* PartInstanceBulkCreateSpec describes the instances to create for one
|
|
21
|
+
* PartDefinition.
|
|
22
|
+
*
|
|
23
|
+
* @generated from message product.v1.PartInstanceBulkCreateSpec
|
|
24
|
+
*/
|
|
25
|
+
export type PartInstanceBulkCreateSpec = Message<"product.v1.PartInstanceBulkCreateSpec"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Definition from which display information such as name and icon is copied.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string part_definition_id = 1;
|
|
30
|
+
*/
|
|
31
|
+
partDefinitionId: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Number of distinct PartInstances to create.
|
|
35
|
+
*
|
|
36
|
+
* Use one instance per independently identifiable physical part. For example,
|
|
37
|
+
* instance_count=12 creates twelve bolt instances.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: uint32 instance_count = 2;
|
|
40
|
+
*/
|
|
41
|
+
instanceCount: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Optional initial quantity carried by each created PartInstance.
|
|
45
|
+
*
|
|
46
|
+
* This describes the contents of each instance, not the number of instances
|
|
47
|
+
* to create. For example, one lubricant bottle may have instance_count=1 and
|
|
48
|
+
* quantity_per_instance={amount: 500, unit: "ml", nominal_amount: 500}.
|
|
49
|
+
*
|
|
50
|
+
* Omit this for independently tracked discrete parts.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: product.v1.QuantityStatus quantity_per_instance = 3;
|
|
53
|
+
*/
|
|
54
|
+
quantityPerInstance?: QuantityStatus;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message product.v1.PartInstanceBulkCreateSpec.
|
|
59
|
+
* Use `create(PartInstanceBulkCreateSpecSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const PartInstanceBulkCreateSpecSchema: GenMessage<PartInstanceBulkCreateSpec> = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_product_v1_part_instance_requests, 0);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* BulkCreatePartInstancesRequest creates PartInstances from one or more
|
|
66
|
+
* PartDefinitions and places every created instance at the same location.
|
|
67
|
+
*
|
|
68
|
+
* This is primarily an authoring/study convenience operation. Runtime inventory
|
|
69
|
+
* integrations may instead create or synchronize instances individually.
|
|
70
|
+
*
|
|
71
|
+
* @generated from message product.v1.BulkCreatePartInstancesRequest
|
|
72
|
+
*/
|
|
73
|
+
export type BulkCreatePartInstancesRequest = Message<"product.v1.BulkCreatePartInstancesRequest"> & {
|
|
74
|
+
/**
|
|
75
|
+
* Parts and instance counts to create.
|
|
76
|
+
*
|
|
77
|
+
* A PartDefinition should occur at most once in this list. The backend should
|
|
78
|
+
* reject duplicate part_definition_id values rather than silently combining
|
|
79
|
+
* them.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: repeated product.v1.PartInstanceBulkCreateSpec parts = 1;
|
|
82
|
+
*/
|
|
83
|
+
parts: PartInstanceBulkCreateSpec[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Initial location assigned to every created PartInstance.
|
|
87
|
+
*
|
|
88
|
+
* The backend must verify that referenced line, cell, station, container
|
|
89
|
+
* instance, and container slot identifiers exist and are mutually consistent.
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: product.v1.PartInstanceLocation location = 2;
|
|
92
|
+
*/
|
|
93
|
+
location?: PartInstanceLocation;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Optional client-generated key that makes retries of the complete request
|
|
97
|
+
* return the originally created instances instead of creating duplicates.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: string idempotency_key = 3;
|
|
100
|
+
*/
|
|
101
|
+
idempotencyKey: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message product.v1.BulkCreatePartInstancesRequest.
|
|
106
|
+
* Use `create(BulkCreatePartInstancesRequestSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const BulkCreatePartInstancesRequestSchema: GenMessage<BulkCreatePartInstancesRequest> = /*@__PURE__*/
|
|
109
|
+
messageDesc(file_product_v1_part_instance_requests, 1);
|
|
110
|
+
|
|
@@ -14,7 +14,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
14
14
|
* Describes the file runtime/v1/runtime_requests.proto.
|
|
15
15
|
*/
|
|
16
16
|
export const file_runtime_v1_runtime_requests: GenFile = /*@__PURE__*/
|
|
17
|
-
fileDesc("
|
|
17
|
+
fileDesc("CiFydW50aW1lL3YxL3J1bnRpbWVfcmVxdWVzdHMucHJvdG8SCnJ1bnRpbWUudjEibwoTUHJvY2Vzc0Fib3J0UmVxdWVzdBIkCg5wcm9jZXNzX3J1bl9pZBgBIAEoCUIMukgJyAEBcgSI8gQBEg4KBnJlYXNvbhgCIAEoCRIiChFleHBlY3RlZF9yZXZpc2lvbhgDIAEoBEIHukgEMgIoASLEAQoWVGFza1N0YXRlQ2hhbm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oeVEFTS19TVEFURV9SRVFVRVNUX1VOU1BFQ0lGSUVEEAASIgoeVEFTS19TVEFURV9SRVFVRVNUX0lOX1BST0dSRVNTEAESGwoXVEFTS19TVEFURV9SRVFVRVNUX0RPTkUQAhIbChdUQVNLX1NUQVRFX1JFUVVFU1RfVU5ETxADEhwKGFRBU0tfU1RBVEVfUkVRVUVTVF9FUlJPUhAEEiAKHFRBU0tfU1RBVEVfUkVRVUVTVF9TVVNQRU5ERUQQBkKzAQoOY29tLnJ1bnRpbWUudjFCFFJ1bnRpbWVSZXF1ZXN0c1Byb3RvUAFaOWdpdGh1Yi5jb20vY29ib3Rhci9wcm90b2NvbC9tZXNzYWdlcy9ydW50aW1lL3YxO3J1bnRpbWV2MaICA1JYWKoCE01lc3NhZ2VzLlJ1bnRpbWUuVjHKAgpSdW50aW1lXFYx4gIWUnVudGltZVxWMVxHUEJNZXRhZGF0YeoCC1J1bnRpbWU6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_common_v1_actor, file_validation_v1_predefined_string_rules]);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @generated from message runtime.v1.ProcessAbortRequest
|
|
@@ -147,7 +147,7 @@ export type TaskProgressUpdate = Message<"runtime.v1.TaskProgressUpdate"> & {
|
|
|
147
147
|
estimatedTimeLeft: number;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* Revision of the
|
|
150
|
+
* Revision of the TaskRun on which this request is based.
|
|
151
151
|
*
|
|
152
152
|
* @generated from field: uint64 expected_revision = 6;
|
|
153
153
|
*/
|
|
@@ -241,15 +241,12 @@ export enum TaskStateRequest {
|
|
|
241
241
|
UNDO = 3,
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
+
* TODO: add TASK_STATE_REQUEST_FAILED? (perhaps instead of ERROR?)
|
|
245
|
+
*
|
|
244
246
|
* @generated from enum value: TASK_STATE_REQUEST_ERROR = 4;
|
|
245
247
|
*/
|
|
246
248
|
ERROR = 4,
|
|
247
249
|
|
|
248
|
-
/**
|
|
249
|
-
* @generated from enum value: TASK_STATE_REQUEST_ABORT = 5;
|
|
250
|
-
*/
|
|
251
|
-
ABORT = 5,
|
|
252
|
-
|
|
253
250
|
/**
|
|
254
251
|
* Suspend a started task without completing or failing it.
|
|
255
252
|
*
|