weave-typescript 0.12.0 → 0.13.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.
Files changed (94) hide show
  1. package/dist/google/api/annotations.pb.js +1 -1
  2. package/dist/google/api/http.pb.js +1 -1
  3. package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
  4. package/dist/google/protobuf/descriptor.pb.js +8 -1
  5. package/dist/google/protobuf/struct.pb.js +1 -1
  6. package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
  7. package/dist/google/protobuf/timestamp.pb.js +1 -1
  8. package/dist/weaveapi/atc/v1/event.pb.d.ts +33 -0
  9. package/dist/weaveapi/atc/v1/event.pb.js +263 -0
  10. package/dist/weaveapi/atc/v1/message.pb.d.ts +44 -0
  11. package/dist/weaveapi/atc/v1/message.pb.js +287 -0
  12. package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
  13. package/dist/weaveapi/atc/v1/process.pb.js +658 -0
  14. package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
  15. package/dist/weaveapi/atc/v1/run.pb.js +525 -0
  16. package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
  17. package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
  18. package/dist/weaveapi/auth/v1/service.pb.d.ts +66 -66
  19. package/dist/weaveapi/auth/v1/service.pb.js +86 -5
  20. package/dist/weaveapi/auth/v1/session.pb.js +1 -1
  21. package/dist/weaveapi/auth/v1/usage.pb.js +1 -1
  22. package/dist/weaveapi/auth/v1/user.pb.js +1 -1
  23. package/dist/weaveapi/data/v1/data.pb.js +1 -1
  24. package/dist/weaveapi/data/v1/service.pb.d.ts +27 -27
  25. package/dist/weaveapi/data/v1/service.pb.js +1 -1
  26. package/dist/weaveapi/generate/v1/configuration.pb.js +1 -1
  27. package/dist/weaveapi/generate/v1/generate.pb.js +1 -1
  28. package/dist/weaveapi/generate/v1/service.pb.d.ts +15 -15
  29. package/dist/weaveapi/generate/v1/service.pb.js +1 -1
  30. package/dist/weaveapi/input/v1/input.pb.js +1 -1
  31. package/dist/weaveapi/input/v1/service.pb.d.ts +39 -39
  32. package/dist/weaveapi/input/v1/service.pb.js +1 -1
  33. package/dist/weaveapi/integration/v1/integration.pb.js +1 -1
  34. package/dist/weaveapi/integration/v1/service.pb.d.ts +30 -30
  35. package/dist/weaveapi/integration/v1/service.pb.js +1 -1
  36. package/dist/weaveapi/llmx/v1/architecture.pb.js +1 -1
  37. package/dist/weaveapi/llmx/v1/capabilities.pb.js +1 -1
  38. package/dist/weaveapi/llmx/v1/model.pb.js +1 -1
  39. package/dist/weaveapi/llmx/v1/pricing.pb.js +1 -1
  40. package/dist/weaveapi/llmx/v1/provider.pb.js +1 -1
  41. package/dist/weaveapi/llmx/v1/service.pb.d.ts +36 -36
  42. package/dist/weaveapi/llmx/v1/service.pb.js +51 -6
  43. package/dist/weaveapi/mcpregistry/v1/server.pb.js +1 -1
  44. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +18 -18
  45. package/dist/weaveapi/mcpregistry/v1/service.pb.js +1 -1
  46. package/dist/weaveapi/payment/v1/invoice.pb.js +1 -1
  47. package/dist/weaveapi/payment/v1/service.pb.d.ts +57 -57
  48. package/dist/weaveapi/payment/v1/service.pb.js +1 -1
  49. package/dist/weaveapi/payment/v1/subscription.pb.js +1 -1
  50. package/dist/weaveapi/project/v1/project.pb.js +1 -1
  51. package/dist/weaveapi/project/v1/service.pb.d.ts +21 -21
  52. package/dist/weaveapi/project/v1/service.pb.js +26 -3
  53. package/dist/weaveapi/report/v1/report.pb.js +1 -1
  54. package/dist/weaveapi/report/v1/service.pb.d.ts +18 -18
  55. package/dist/weaveapi/report/v1/service.pb.js +1 -1
  56. package/dist/weaveapi/requirement/v1/requirement.pb.js +1 -1
  57. package/dist/weaveapi/requirement/v1/service.pb.d.ts +39 -39
  58. package/dist/weaveapi/requirement/v1/service.pb.js +1 -1
  59. package/dist/weaveapi/run/v1/run.pb.js +1 -1
  60. package/dist/weaveapi/run/v1/service.pb.d.ts +21 -21
  61. package/dist/weaveapi/run/v1/service.pb.js +1 -1
  62. package/dist/weaveapi/script/v1/script.pb.js +1 -1
  63. package/dist/weaveapi/script/v1/service.pb.d.ts +51 -51
  64. package/dist/weaveapi/script/v1/service.pb.js +1 -1
  65. package/dist/weaveapi/storage/v1/auth.pb.js +1 -1
  66. package/dist/weaveapi/storage/v1/nosql_database.pb.js +1 -1
  67. package/dist/weaveapi/storage/v1/object_store.pb.js +1 -1
  68. package/dist/weaveapi/storage/v1/service.pb.d.ts +12 -12
  69. package/dist/weaveapi/storage/v1/service.pb.js +1 -1
  70. package/dist/weaveapi/storage/v1/sql_database.pb.js +1 -1
  71. package/dist/weaveapi/storage/v1/storage.pb.js +1 -1
  72. package/dist/weaveapi/storage/v1/vcs.pb.js +1 -1
  73. package/dist/weaveapi/suite/v1/service.pb.d.ts +54 -54
  74. package/dist/weaveapi/suite/v1/service.pb.js +1 -1
  75. package/dist/weaveapi/suite/v1/suite.pb.js +1 -1
  76. package/dist/weaveapi/synthesize/v1/dataset.pb.js +1 -1
  77. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +1 -1
  78. package/dist/weaveapi/synthesize/v1/relationship.pb.js +1 -1
  79. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +12 -12
  80. package/dist/weaveapi/synthesize/v1/service.pb.js +22 -2
  81. package/dist/weaveapi/synthesize/v1/training.pb.js +1 -1
  82. package/dist/weaveapi/testcase/v1/service.pb.d.ts +51 -51
  83. package/dist/weaveapi/testcase/v1/service.pb.js +1 -1
  84. package/dist/weaveapi/testcase/v1/testcase.pb.js +1 -1
  85. package/dist/weaveapi/workflow/v1/service.pb.d.ts +27 -27
  86. package/dist/weaveapi/workflow/v1/service.pb.js +1 -1
  87. package/dist/weaveapi/workflow/v1/workflow.pb.js +1 -1
  88. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +27 -27
  89. package/dist/weaveapi/workflowdata/v1/service.pb.js +1 -1
  90. package/dist/weavesql/atcdb/event_sql.d.ts +91 -0
  91. package/dist/weavesql/atcdb/event_sql.js +181 -0
  92. package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
  93. package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
  94. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.2
4
+ // protoc-gen-ts_proto v2.11.6
5
5
  // protoc unknown
6
6
  // source: google/api/annotations.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.2
4
+ // protoc-gen-ts_proto v2.11.6
5
5
  // protoc unknown
6
6
  // source: google/api/http.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,6 +24,8 @@ export declare enum Edition {
24
24
  */
25
25
  EDITION_2023 = 1000,
26
26
  EDITION_2024 = 1001,
27
+ /** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
28
+ EDITION_UNSTABLE = 9999,
27
29
  /**
28
30
  * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
29
31
  * used or relied on outside of tests.
@@ -698,7 +700,12 @@ export interface FieldOptions {
698
700
  * is a formalization for deprecating fields.
699
701
  */
700
702
  deprecated?: boolean | undefined;
701
- /** For Google-internal migration only. Do not use. */
703
+ /**
704
+ * DEPRECATED. DO NOT USE!
705
+ * For Google-internal migration only. Do not use.
706
+ *
707
+ * @deprecated
708
+ */
702
709
  weak?: boolean | undefined;
703
710
  /**
704
711
  * Indicate that the field value should not be printed out when using debug
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.2
4
+ // protoc-gen-ts_proto v2.11.6
5
5
  // protoc unknown
6
6
  // source: google/protobuf/descriptor.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -75,6 +75,8 @@ var Edition;
75
75
  */
76
76
  Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
77
77
  Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
78
+ /** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
79
+ Edition[Edition["EDITION_UNSTABLE"] = 9999] = "EDITION_UNSTABLE";
78
80
  /**
79
81
  * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
80
82
  * used or relied on outside of tests.
@@ -112,6 +114,9 @@ function editionFromJSON(object) {
112
114
  case 1001:
113
115
  case "EDITION_2024":
114
116
  return Edition.EDITION_2024;
117
+ case 9999:
118
+ case "EDITION_UNSTABLE":
119
+ return Edition.EDITION_UNSTABLE;
115
120
  case 1:
116
121
  case "EDITION_1_TEST_ONLY":
117
122
  return Edition.EDITION_1_TEST_ONLY;
@@ -150,6 +155,8 @@ function editionToJSON(object) {
150
155
  return "EDITION_2023";
151
156
  case Edition.EDITION_2024:
152
157
  return "EDITION_2024";
158
+ case Edition.EDITION_UNSTABLE:
159
+ return "EDITION_UNSTABLE";
153
160
  case Edition.EDITION_1_TEST_ONLY:
154
161
  return "EDITION_1_TEST_ONLY";
155
162
  case Edition.EDITION_2_TEST_ONLY:
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.2
4
+ // protoc-gen-ts_proto v2.11.6
5
5
  // protoc unknown
6
6
  // source: google/protobuf/struct.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -93,15 +93,16 @@ export declare const protobufPackage = "google.protobuf";
93
93
  */
94
94
  export interface Timestamp {
95
95
  /**
96
- * Represents seconds of UTC time since Unix epoch
97
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
98
- * 9999-12-31T23:59:59Z inclusive.
96
+ * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
97
+ * be between -315576000000 and 315576000000 inclusive (which corresponds to
98
+ * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
99
99
  */
100
100
  seconds: number;
101
101
  /**
102
- * Non-negative fractions of a second at nanosecond resolution. Negative
103
- * second values with fractions must still have non-negative nanos values
104
- * that count forward in time. Must be from 0 to 999,999,999
102
+ * Non-negative fractions of a second at nanosecond resolution. This field is
103
+ * the nanosecond portion of the duration, not an alternative to seconds.
104
+ * Negative second values with fractions must still have non-negative nanos
105
+ * values that count forward in time. Must be between 0 and 999,999,999
105
106
  * inclusive.
106
107
  */
107
108
  nanos: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.2
4
+ // protoc-gen-ts_proto v2.11.6
5
5
  // protoc unknown
6
6
  // source: google/protobuf/timestamp.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.atc.v1";
3
+ /** Event is an immutable record in the append-only run history. */
4
+ export interface Event {
5
+ eventId: string;
6
+ runId: string;
7
+ eventType: string;
8
+ sequence: number;
9
+ data: Uint8Array;
10
+ causationId: string;
11
+ correlationId: string;
12
+ occurredAt: Date | undefined;
13
+ }
14
+ export declare const Event: MessageFns<Event>;
15
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
16
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
17
+ [K in keyof T]?: DeepPartial<T[K]>;
18
+ } : Partial<T>;
19
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
20
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
21
+ [K in keyof P]: Exact<P[K], I[K]>;
22
+ } & {
23
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
24
+ };
25
+ export interface MessageFns<T> {
26
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
27
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
28
+ fromJSON(object: any): T;
29
+ toJSON(message: T): unknown;
30
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
31
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
32
+ }
33
+ export {};
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.6
5
+ // protoc unknown
6
+ // source: weaveapi/atc/v1/event.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Event = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
12
+ exports.protobufPackage = "weaveapi.atc.v1";
13
+ function createBaseEvent() {
14
+ return {
15
+ eventId: "",
16
+ runId: "",
17
+ eventType: "",
18
+ sequence: 0,
19
+ data: new Uint8Array(0),
20
+ causationId: "",
21
+ correlationId: "",
22
+ occurredAt: undefined,
23
+ };
24
+ }
25
+ exports.Event = {
26
+ encode(message, writer = new wire_1.BinaryWriter()) {
27
+ if (message.eventId !== "") {
28
+ writer.uint32(10).string(message.eventId);
29
+ }
30
+ if (message.runId !== "") {
31
+ writer.uint32(18).string(message.runId);
32
+ }
33
+ if (message.eventType !== "") {
34
+ writer.uint32(26).string(message.eventType);
35
+ }
36
+ if (message.sequence !== 0) {
37
+ writer.uint32(32).uint64(message.sequence);
38
+ }
39
+ if (message.data.length !== 0) {
40
+ writer.uint32(42).bytes(message.data);
41
+ }
42
+ if (message.causationId !== "") {
43
+ writer.uint32(50).string(message.causationId);
44
+ }
45
+ if (message.correlationId !== "") {
46
+ writer.uint32(58).string(message.correlationId);
47
+ }
48
+ if (message.occurredAt !== undefined) {
49
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.occurredAt), writer.uint32(66).fork()).join();
50
+ }
51
+ return writer;
52
+ },
53
+ decode(input, length) {
54
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
55
+ const end = length === undefined ? reader.len : reader.pos + length;
56
+ const message = createBaseEvent();
57
+ while (reader.pos < end) {
58
+ const tag = reader.uint32();
59
+ switch (tag >>> 3) {
60
+ case 1: {
61
+ if (tag !== 10) {
62
+ break;
63
+ }
64
+ message.eventId = reader.string();
65
+ continue;
66
+ }
67
+ case 2: {
68
+ if (tag !== 18) {
69
+ break;
70
+ }
71
+ message.runId = reader.string();
72
+ continue;
73
+ }
74
+ case 3: {
75
+ if (tag !== 26) {
76
+ break;
77
+ }
78
+ message.eventType = reader.string();
79
+ continue;
80
+ }
81
+ case 4: {
82
+ if (tag !== 32) {
83
+ break;
84
+ }
85
+ message.sequence = longToNumber(reader.uint64());
86
+ continue;
87
+ }
88
+ case 5: {
89
+ if (tag !== 42) {
90
+ break;
91
+ }
92
+ message.data = reader.bytes();
93
+ continue;
94
+ }
95
+ case 6: {
96
+ if (tag !== 50) {
97
+ break;
98
+ }
99
+ message.causationId = reader.string();
100
+ continue;
101
+ }
102
+ case 7: {
103
+ if (tag !== 58) {
104
+ break;
105
+ }
106
+ message.correlationId = reader.string();
107
+ continue;
108
+ }
109
+ case 8: {
110
+ if (tag !== 66) {
111
+ break;
112
+ }
113
+ message.occurredAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
114
+ continue;
115
+ }
116
+ }
117
+ if ((tag & 7) === 4 || tag === 0) {
118
+ break;
119
+ }
120
+ reader.skip(tag & 7);
121
+ }
122
+ return message;
123
+ },
124
+ fromJSON(object) {
125
+ return {
126
+ eventId: isSet(object.eventId)
127
+ ? globalThis.String(object.eventId)
128
+ : isSet(object.event_id)
129
+ ? globalThis.String(object.event_id)
130
+ : "",
131
+ runId: isSet(object.runId)
132
+ ? globalThis.String(object.runId)
133
+ : isSet(object.run_id)
134
+ ? globalThis.String(object.run_id)
135
+ : "",
136
+ eventType: isSet(object.eventType)
137
+ ? globalThis.String(object.eventType)
138
+ : isSet(object.event_type)
139
+ ? globalThis.String(object.event_type)
140
+ : "",
141
+ sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
142
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
143
+ causationId: isSet(object.causationId)
144
+ ? globalThis.String(object.causationId)
145
+ : isSet(object.causation_id)
146
+ ? globalThis.String(object.causation_id)
147
+ : "",
148
+ correlationId: isSet(object.correlationId)
149
+ ? globalThis.String(object.correlationId)
150
+ : isSet(object.correlation_id)
151
+ ? globalThis.String(object.correlation_id)
152
+ : "",
153
+ occurredAt: isSet(object.occurredAt)
154
+ ? fromJsonTimestamp(object.occurredAt)
155
+ : isSet(object.occurred_at)
156
+ ? fromJsonTimestamp(object.occurred_at)
157
+ : undefined,
158
+ };
159
+ },
160
+ toJSON(message) {
161
+ const obj = {};
162
+ if (message.eventId !== "") {
163
+ obj.eventId = message.eventId;
164
+ }
165
+ if (message.runId !== "") {
166
+ obj.runId = message.runId;
167
+ }
168
+ if (message.eventType !== "") {
169
+ obj.eventType = message.eventType;
170
+ }
171
+ if (message.sequence !== 0) {
172
+ obj.sequence = Math.round(message.sequence);
173
+ }
174
+ if (message.data.length !== 0) {
175
+ obj.data = base64FromBytes(message.data);
176
+ }
177
+ if (message.causationId !== "") {
178
+ obj.causationId = message.causationId;
179
+ }
180
+ if (message.correlationId !== "") {
181
+ obj.correlationId = message.correlationId;
182
+ }
183
+ if (message.occurredAt !== undefined) {
184
+ obj.occurredAt = message.occurredAt.toISOString();
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return exports.Event.fromPartial(base !== null && base !== void 0 ? base : {});
190
+ },
191
+ fromPartial(object) {
192
+ var _a, _b, _c, _d, _e, _f, _g, _h;
193
+ const message = createBaseEvent();
194
+ message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
195
+ message.runId = (_b = object.runId) !== null && _b !== void 0 ? _b : "";
196
+ message.eventType = (_c = object.eventType) !== null && _c !== void 0 ? _c : "";
197
+ message.sequence = (_d = object.sequence) !== null && _d !== void 0 ? _d : 0;
198
+ message.data = (_e = object.data) !== null && _e !== void 0 ? _e : new Uint8Array(0);
199
+ message.causationId = (_f = object.causationId) !== null && _f !== void 0 ? _f : "";
200
+ message.correlationId = (_g = object.correlationId) !== null && _g !== void 0 ? _g : "";
201
+ message.occurredAt = (_h = object.occurredAt) !== null && _h !== void 0 ? _h : undefined;
202
+ return message;
203
+ },
204
+ };
205
+ function bytesFromBase64(b64) {
206
+ if (globalThis.Buffer) {
207
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
208
+ }
209
+ else {
210
+ const bin = globalThis.atob(b64);
211
+ const arr = new Uint8Array(bin.length);
212
+ for (let i = 0; i < bin.length; ++i) {
213
+ arr[i] = bin.charCodeAt(i);
214
+ }
215
+ return arr;
216
+ }
217
+ }
218
+ function base64FromBytes(arr) {
219
+ if (globalThis.Buffer) {
220
+ return globalThis.Buffer.from(arr).toString("base64");
221
+ }
222
+ else {
223
+ const bin = [];
224
+ arr.forEach((byte) => {
225
+ bin.push(globalThis.String.fromCharCode(byte));
226
+ });
227
+ return globalThis.btoa(bin.join(""));
228
+ }
229
+ }
230
+ function toTimestamp(date) {
231
+ const seconds = Math.trunc(date.getTime() / 1000);
232
+ const nanos = (date.getTime() % 1000) * 1000000;
233
+ return { seconds, nanos };
234
+ }
235
+ function fromTimestamp(t) {
236
+ let millis = (t.seconds || 0) * 1000;
237
+ millis += (t.nanos || 0) / 1000000;
238
+ return new globalThis.Date(millis);
239
+ }
240
+ function fromJsonTimestamp(o) {
241
+ if (o instanceof globalThis.Date) {
242
+ return o;
243
+ }
244
+ else if (typeof o === "string") {
245
+ return new globalThis.Date(o);
246
+ }
247
+ else {
248
+ return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
249
+ }
250
+ }
251
+ function longToNumber(int64) {
252
+ const num = globalThis.Number(int64.toString());
253
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
254
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
255
+ }
256
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
257
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
258
+ }
259
+ return num;
260
+ }
261
+ function isSet(value) {
262
+ return value !== null && value !== undefined;
263
+ }
@@ -0,0 +1,44 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.atc.v1";
3
+ /** MessageCategory classifies durable mailbox traffic. */
4
+ export declare enum MessageCategory {
5
+ MESSAGE_CATEGORY_UNSPECIFIED = 0,
6
+ /** MESSAGE_CATEGORY_PROTOCOL - Runtime-defined coordination message. */
7
+ MESSAGE_CATEGORY_PROTOCOL = 1,
8
+ /** MESSAGE_CATEGORY_SEMANTIC - Domain message opaque to the runtime. */
9
+ MESSAGE_CATEGORY_SEMANTIC = 2,
10
+ UNRECOGNIZED = -1
11
+ }
12
+ export declare function messageCategoryFromJSON(object: any): MessageCategory;
13
+ export declare function messageCategoryToJSON(object: MessageCategory): string;
14
+ /** MailboxMessage is a durable mailbox message exchanged between processes. */
15
+ export interface MailboxMessage {
16
+ messageId: string;
17
+ fromProcessId: string;
18
+ toProcessId: string;
19
+ category: MessageCategory;
20
+ type: string;
21
+ payload: Uint8Array;
22
+ interrupt: boolean;
23
+ createdAt: Date | undefined;
24
+ }
25
+ export declare const MailboxMessage: MessageFns<MailboxMessage>;
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export interface MessageFns<T> {
37
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
38
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
39
+ fromJSON(object: any): T;
40
+ toJSON(message: T): unknown;
41
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
42
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
43
+ }
44
+ export {};