weave-typescript 0.12.0 → 0.14.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 (136) 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/index.d.ts +9 -16
  9. package/dist/index.js +13 -21
  10. package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
  11. package/dist/weaveapi/atc/v1/event.pb.js +263 -0
  12. package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
  13. package/dist/weaveapi/atc/v1/message.pb.js +287 -0
  14. package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
  15. package/dist/weaveapi/atc/v1/process.pb.js +658 -0
  16. package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
  17. package/dist/weaveapi/atc/v1/run.pb.js +525 -0
  18. package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
  19. package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
  20. package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
  21. package/dist/weaveapi/project/v1/project.pb.js +765 -66
  22. package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
  23. package/dist/weaveapi/project/v1/service.pb.js +1088 -401
  24. package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
  25. package/dist/weaveapi/task/v1/service.pb.js +1416 -0
  26. package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
  27. package/dist/weaveapi/task/v1/task.pb.js +782 -0
  28. package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
  29. package/dist/weavesql/atcdb/event_sql.js +191 -0
  30. package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
  31. package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
  32. package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
  33. package/dist/weavesql/weavedb/project_sql.js +304 -112
  34. package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
  35. package/dist/weavesql/weavedb/task_sql.js +328 -0
  36. package/package.json +1 -1
  37. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  38. package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
  39. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  40. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  41. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  42. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  43. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  44. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  45. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  46. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  47. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  48. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  49. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  50. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  51. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  52. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  53. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  54. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  55. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  56. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  57. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  58. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  59. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  60. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  61. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  62. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  63. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  64. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  65. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  66. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  67. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  68. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  69. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  70. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  71. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  72. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  73. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
  74. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  75. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  76. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  77. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  78. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  79. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  80. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  81. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  82. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  83. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  84. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  85. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  86. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  87. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  88. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  89. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  90. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  91. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  92. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  93. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  94. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  95. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  96. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  97. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  98. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  99. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  100. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  101. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  102. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  103. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  104. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  105. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  106. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  107. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  108. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  109. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  110. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  111. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  112. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  113. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  114. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  115. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  116. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  117. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  118. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  119. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  120. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  121. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  122. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  123. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  124. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
  125. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  126. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  127. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  128. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  129. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  130. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  131. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  132. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  133. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  134. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  135. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  136. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -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 });
package/dist/index.d.ts CHANGED
@@ -1,16 +1,9 @@
1
- export * as configuration from './weaveapi/generate/v1/configuration.pb';
2
- export * as generate from './weaveapi/generate/v1/generate.pb';
3
- export * as generateService from './weaveapi/generate/v1/service.pb';
4
- export * as server from './weaveapi/mcpregistry/v1/server.pb';
5
- export * as mcpregistryService from './weaveapi/mcpregistry/v1/service.pb';
6
- export * as auth from './weaveapi/storage/v1/auth.pb';
7
- export * as nosqlDatabase from './weaveapi/storage/v1/nosql_database.pb';
8
- export * as objectStore from './weaveapi/storage/v1/object_store.pb';
9
- export * as storageService from './weaveapi/storage/v1/service.pb';
10
- export * as sqlDatabase from './weaveapi/storage/v1/sql_database.pb';
11
- export * as storage from './weaveapi/storage/v1/storage.pb';
12
- export * as dataset from './weaveapi/synthesize/v1/dataset.pb';
13
- export * as inlineData from './weaveapi/synthesize/v1/inline_data.pb';
14
- export * as relationship from './weaveapi/synthesize/v1/relationship.pb';
15
- export * as synthesizeService from './weaveapi/synthesize/v1/service.pb';
16
- export * as training from './weaveapi/synthesize/v1/training.pb';
1
+ export * as event from './weaveapi/atc/v1/event.pb';
2
+ export * as message from './weaveapi/atc/v1/message.pb';
3
+ export * as process from './weaveapi/atc/v1/process.pb';
4
+ export * as run from './weaveapi/atc/v1/run.pb';
5
+ export * as atcService from './weaveapi/atc/v1/service.pb';
6
+ export * as project from './weaveapi/project/v1/project.pb';
7
+ export * as projectService from './weaveapi/project/v1/service.pb';
8
+ export * as taskService from './weaveapi/task/v1/service.pb';
9
+ export * as task from './weaveapi/task/v1/task.pb';
package/dist/index.js CHANGED
@@ -34,24 +34,16 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.training = exports.synthesizeService = exports.relationship = exports.inlineData = exports.dataset = exports.storage = exports.sqlDatabase = exports.storageService = exports.objectStore = exports.nosqlDatabase = exports.auth = exports.mcpregistryService = exports.server = exports.generateService = exports.generate = exports.configuration = void 0;
38
- // Re-export from weaveapi/generate/v1
39
- exports.configuration = __importStar(require("./weaveapi/generate/v1/configuration.pb"));
40
- exports.generate = __importStar(require("./weaveapi/generate/v1/generate.pb"));
41
- exports.generateService = __importStar(require("./weaveapi/generate/v1/service.pb"));
42
- // Re-export from weaveapi/mcpregistry/v1
43
- exports.server = __importStar(require("./weaveapi/mcpregistry/v1/server.pb"));
44
- exports.mcpregistryService = __importStar(require("./weaveapi/mcpregistry/v1/service.pb"));
45
- // Re-export from weaveapi/storage/v1
46
- exports.auth = __importStar(require("./weaveapi/storage/v1/auth.pb"));
47
- exports.nosqlDatabase = __importStar(require("./weaveapi/storage/v1/nosql_database.pb"));
48
- exports.objectStore = __importStar(require("./weaveapi/storage/v1/object_store.pb"));
49
- exports.storageService = __importStar(require("./weaveapi/storage/v1/service.pb"));
50
- exports.sqlDatabase = __importStar(require("./weaveapi/storage/v1/sql_database.pb"));
51
- exports.storage = __importStar(require("./weaveapi/storage/v1/storage.pb"));
52
- // Re-export from weaveapi/synthesize/v1
53
- exports.dataset = __importStar(require("./weaveapi/synthesize/v1/dataset.pb"));
54
- exports.inlineData = __importStar(require("./weaveapi/synthesize/v1/inline_data.pb"));
55
- exports.relationship = __importStar(require("./weaveapi/synthesize/v1/relationship.pb"));
56
- exports.synthesizeService = __importStar(require("./weaveapi/synthesize/v1/service.pb"));
57
- exports.training = __importStar(require("./weaveapi/synthesize/v1/training.pb"));
37
+ exports.task = exports.taskService = exports.projectService = exports.project = exports.atcService = exports.run = exports.process = exports.message = exports.event = void 0;
38
+ // Re-export from weaveapi/atc/v1
39
+ exports.event = __importStar(require("./weaveapi/atc/v1/event.pb"));
40
+ exports.message = __importStar(require("./weaveapi/atc/v1/message.pb"));
41
+ exports.process = __importStar(require("./weaveapi/atc/v1/process.pb"));
42
+ exports.run = __importStar(require("./weaveapi/atc/v1/run.pb"));
43
+ exports.atcService = __importStar(require("./weaveapi/atc/v1/service.pb"));
44
+ // Re-export from weaveapi/project/v1
45
+ exports.project = __importStar(require("./weaveapi/project/v1/project.pb"));
46
+ exports.projectService = __importStar(require("./weaveapi/project/v1/service.pb"));
47
+ // Re-export from weaveapi/task/v1
48
+ exports.taskService = __importStar(require("./weaveapi/task/v1/service.pb"));
49
+ exports.task = __importStar(require("./weaveapi/task/v1/task.pb"));
@@ -1,11 +1,17 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "weaveapi.storage.v1";
3
- export interface AwsCredentials {
4
- accessKeyId: string;
5
- secretAccessKey: string;
6
- sessionToken: string;
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;
7
13
  }
8
- export declare const AwsCredentials: MessageFns<AwsCredentials>;
14
+ export declare const Event: MessageFns<Event>;
9
15
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
10
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 {} ? {
11
17
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -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
+ }
@@ -1,27 +1,28 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "weaveapi.auth.v1";
3
- export interface Session {
4
- id: string;
5
- userId: string;
6
- /** JWT token ID */
7
- tokenId: string;
8
- /** Session details */
9
- ipAddress: string;
10
- userAgent: string;
11
- /** Geo-location if available */
12
- location: string;
13
- /** desktop, mobile, tablet */
14
- deviceType: string;
15
- /** Status */
16
- isActive: boolean;
17
- expiresAt: Date | undefined;
18
- /** Activity */
19
- lastActivityAt: Date | undefined;
20
- requestCount: number;
21
- /** Metadata */
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;
22
23
  createdAt: Date | undefined;
23
24
  }
24
- export declare const Session: MessageFns<Session>;
25
+ export declare const MailboxMessage: MessageFns<MailboxMessage>;
25
26
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
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 {} ? {
27
28
  [K in keyof T]?: DeepPartial<T[K]>;