weave-typescript 0.13.0 → 0.15.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 (121) hide show
  1. package/dist/index.d.ts +9 -16
  2. package/dist/index.js +13 -21
  3. package/dist/weaveapi/project/v1/project.pb.d.ts +69 -5
  4. package/dist/weaveapi/project/v1/project.pb.js +787 -62
  5. package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
  6. package/dist/weaveapi/project/v1/service.pb.js +1056 -392
  7. package/dist/weaveapi/task/v1/service.pb.d.ts +172 -0
  8. package/dist/weaveapi/task/v1/service.pb.js +1436 -0
  9. package/dist/weaveapi/task/v1/task.pb.d.ts +85 -0
  10. package/dist/weaveapi/task/v1/task.pb.js +802 -0
  11. package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
  12. package/dist/weavesql/atcdb/event_sql.js +11 -1
  13. package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
  14. package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
  15. package/dist/weavesql/weavedb/project_sql.d.ts +164 -41
  16. package/dist/weavesql/weavedb/project_sql.js +398 -103
  17. package/dist/weavesql/weavedb/task_sql.d.ts +210 -0
  18. package/dist/weavesql/weavedb/task_sql.js +430 -0
  19. package/package.json +2 -2
  20. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  21. package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
  22. package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
  23. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  24. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  25. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  26. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  27. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  28. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  29. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  30. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  31. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  32. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  33. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  34. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  35. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  36. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  37. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  38. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  39. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  40. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  41. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  42. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  43. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  44. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  45. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  46. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  47. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  48. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  49. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  50. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  51. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  52. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  53. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  54. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  55. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  56. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  57. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
  58. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  59. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  60. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  61. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  62. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  63. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  64. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  65. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  66. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  67. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  68. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  69. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  70. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  71. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  72. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  73. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  74. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  75. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  76. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  77. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  78. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  79. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  80. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  81. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  82. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  83. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  84. package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
  85. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  86. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  87. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  88. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  89. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  90. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  91. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  92. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  93. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  94. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  95. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  96. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  97. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  98. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  99. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  100. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  101. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  102. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  103. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  104. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  105. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  106. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  107. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  108. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  109. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
  110. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  111. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  112. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  113. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  114. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  115. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  116. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  117. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  118. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  119. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  120. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  121. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -5,18 +5,27 @@
5
5
  // protoc unknown
6
6
  // source: weaveapi/project/v1/project.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Project = exports.ProjectStatus = exports.protobufPackage = void 0;
8
+ exports.ProjectActivityEntry = exports.ProjectShare = exports.Project = exports.ProjectPrincipalKind = exports.ProjectPermissionLevel = exports.ProjectStatus = exports.protobufPackage = void 0;
9
9
  exports.projectStatusFromJSON = projectStatusFromJSON;
10
10
  exports.projectStatusToJSON = projectStatusToJSON;
11
+ exports.projectPermissionLevelFromJSON = projectPermissionLevelFromJSON;
12
+ exports.projectPermissionLevelToJSON = projectPermissionLevelToJSON;
13
+ exports.projectPrincipalKindFromJSON = projectPrincipalKindFromJSON;
14
+ exports.projectPrincipalKindToJSON = projectPrincipalKindToJSON;
11
15
  /* eslint-disable */
12
16
  const wire_1 = require("@bufbuild/protobuf/wire");
17
+ const struct_pb_1 = require("../../../google/protobuf/struct.pb");
13
18
  const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
14
19
  exports.protobufPackage = "weaveapi.project.v1";
20
+ /** ProjectStatus represents the lifecycle state of a project. */
15
21
  var ProjectStatus;
16
22
  (function (ProjectStatus) {
17
23
  ProjectStatus[ProjectStatus["PROJECT_STATUS_UNSPECIFIED"] = 0] = "PROJECT_STATUS_UNSPECIFIED";
18
- ProjectStatus[ProjectStatus["PROJECT_STATUS_ACTIVE"] = 1] = "PROJECT_STATUS_ACTIVE";
19
- ProjectStatus[ProjectStatus["PROJECT_STATUS_ARCHIVED"] = 2] = "PROJECT_STATUS_ARCHIVED";
24
+ ProjectStatus[ProjectStatus["PROJECT_STATUS_NOT_READY"] = 1] = "PROJECT_STATUS_NOT_READY";
25
+ ProjectStatus[ProjectStatus["PROJECT_STATUS_READY"] = 2] = "PROJECT_STATUS_READY";
26
+ ProjectStatus[ProjectStatus["PROJECT_STATUS_IN_PROGRESS"] = 3] = "PROJECT_STATUS_IN_PROGRESS";
27
+ ProjectStatus[ProjectStatus["PROJECT_STATUS_COMPLETED"] = 4] = "PROJECT_STATUS_COMPLETED";
28
+ ProjectStatus[ProjectStatus["PROJECT_STATUS_HOLD"] = 5] = "PROJECT_STATUS_HOLD";
20
29
  ProjectStatus[ProjectStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
30
  })(ProjectStatus || (exports.ProjectStatus = ProjectStatus = {}));
22
31
  function projectStatusFromJSON(object) {
@@ -25,11 +34,20 @@ function projectStatusFromJSON(object) {
25
34
  case "PROJECT_STATUS_UNSPECIFIED":
26
35
  return ProjectStatus.PROJECT_STATUS_UNSPECIFIED;
27
36
  case 1:
28
- case "PROJECT_STATUS_ACTIVE":
29
- return ProjectStatus.PROJECT_STATUS_ACTIVE;
37
+ case "PROJECT_STATUS_NOT_READY":
38
+ return ProjectStatus.PROJECT_STATUS_NOT_READY;
30
39
  case 2:
31
- case "PROJECT_STATUS_ARCHIVED":
32
- return ProjectStatus.PROJECT_STATUS_ARCHIVED;
40
+ case "PROJECT_STATUS_READY":
41
+ return ProjectStatus.PROJECT_STATUS_READY;
42
+ case 3:
43
+ case "PROJECT_STATUS_IN_PROGRESS":
44
+ return ProjectStatus.PROJECT_STATUS_IN_PROGRESS;
45
+ case 4:
46
+ case "PROJECT_STATUS_COMPLETED":
47
+ return ProjectStatus.PROJECT_STATUS_COMPLETED;
48
+ case 5:
49
+ case "PROJECT_STATUS_HOLD":
50
+ return ProjectStatus.PROJECT_STATUS_HOLD;
33
51
  case -1:
34
52
  case "UNRECOGNIZED":
35
53
  default:
@@ -40,56 +58,184 @@ function projectStatusToJSON(object) {
40
58
  switch (object) {
41
59
  case ProjectStatus.PROJECT_STATUS_UNSPECIFIED:
42
60
  return "PROJECT_STATUS_UNSPECIFIED";
43
- case ProjectStatus.PROJECT_STATUS_ACTIVE:
44
- return "PROJECT_STATUS_ACTIVE";
45
- case ProjectStatus.PROJECT_STATUS_ARCHIVED:
46
- return "PROJECT_STATUS_ARCHIVED";
61
+ case ProjectStatus.PROJECT_STATUS_NOT_READY:
62
+ return "PROJECT_STATUS_NOT_READY";
63
+ case ProjectStatus.PROJECT_STATUS_READY:
64
+ return "PROJECT_STATUS_READY";
65
+ case ProjectStatus.PROJECT_STATUS_IN_PROGRESS:
66
+ return "PROJECT_STATUS_IN_PROGRESS";
67
+ case ProjectStatus.PROJECT_STATUS_COMPLETED:
68
+ return "PROJECT_STATUS_COMPLETED";
69
+ case ProjectStatus.PROJECT_STATUS_HOLD:
70
+ return "PROJECT_STATUS_HOLD";
47
71
  case ProjectStatus.UNRECOGNIZED:
48
72
  default:
49
73
  return "UNRECOGNIZED";
50
74
  }
51
75
  }
76
+ /** ProjectPermissionLevel defines the effective share level for a project. */
77
+ var ProjectPermissionLevel;
78
+ (function (ProjectPermissionLevel) {
79
+ ProjectPermissionLevel[ProjectPermissionLevel["PROJECT_PERMISSION_LEVEL_UNSPECIFIED"] = 0] = "PROJECT_PERMISSION_LEVEL_UNSPECIFIED";
80
+ ProjectPermissionLevel[ProjectPermissionLevel["PROJECT_PERMISSION_LEVEL_VIEW"] = 1] = "PROJECT_PERMISSION_LEVEL_VIEW";
81
+ ProjectPermissionLevel[ProjectPermissionLevel["PROJECT_PERMISSION_LEVEL_UPDATE"] = 2] = "PROJECT_PERMISSION_LEVEL_UPDATE";
82
+ ProjectPermissionLevel[ProjectPermissionLevel["PROJECT_PERMISSION_LEVEL_MANAGE"] = 3] = "PROJECT_PERMISSION_LEVEL_MANAGE";
83
+ ProjectPermissionLevel[ProjectPermissionLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
84
+ })(ProjectPermissionLevel || (exports.ProjectPermissionLevel = ProjectPermissionLevel = {}));
85
+ function projectPermissionLevelFromJSON(object) {
86
+ switch (object) {
87
+ case 0:
88
+ case "PROJECT_PERMISSION_LEVEL_UNSPECIFIED":
89
+ return ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_UNSPECIFIED;
90
+ case 1:
91
+ case "PROJECT_PERMISSION_LEVEL_VIEW":
92
+ return ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_VIEW;
93
+ case 2:
94
+ case "PROJECT_PERMISSION_LEVEL_UPDATE":
95
+ return ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_UPDATE;
96
+ case 3:
97
+ case "PROJECT_PERMISSION_LEVEL_MANAGE":
98
+ return ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_MANAGE;
99
+ case -1:
100
+ case "UNRECOGNIZED":
101
+ default:
102
+ return ProjectPermissionLevel.UNRECOGNIZED;
103
+ }
104
+ }
105
+ function projectPermissionLevelToJSON(object) {
106
+ switch (object) {
107
+ case ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_UNSPECIFIED:
108
+ return "PROJECT_PERMISSION_LEVEL_UNSPECIFIED";
109
+ case ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_VIEW:
110
+ return "PROJECT_PERMISSION_LEVEL_VIEW";
111
+ case ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_UPDATE:
112
+ return "PROJECT_PERMISSION_LEVEL_UPDATE";
113
+ case ProjectPermissionLevel.PROJECT_PERMISSION_LEVEL_MANAGE:
114
+ return "PROJECT_PERMISSION_LEVEL_MANAGE";
115
+ case ProjectPermissionLevel.UNRECOGNIZED:
116
+ default:
117
+ return "UNRECOGNIZED";
118
+ }
119
+ }
120
+ /** ProjectPrincipalKind defines the principal type on a project share. */
121
+ var ProjectPrincipalKind;
122
+ (function (ProjectPrincipalKind) {
123
+ ProjectPrincipalKind[ProjectPrincipalKind["PROJECT_PRINCIPAL_KIND_UNSPECIFIED"] = 0] = "PROJECT_PRINCIPAL_KIND_UNSPECIFIED";
124
+ ProjectPrincipalKind[ProjectPrincipalKind["PROJECT_PRINCIPAL_KIND_USER"] = 1] = "PROJECT_PRINCIPAL_KIND_USER";
125
+ ProjectPrincipalKind[ProjectPrincipalKind["PROJECT_PRINCIPAL_KIND_ORG_TEAM"] = 2] = "PROJECT_PRINCIPAL_KIND_ORG_TEAM";
126
+ ProjectPrincipalKind[ProjectPrincipalKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
127
+ })(ProjectPrincipalKind || (exports.ProjectPrincipalKind = ProjectPrincipalKind = {}));
128
+ function projectPrincipalKindFromJSON(object) {
129
+ switch (object) {
130
+ case 0:
131
+ case "PROJECT_PRINCIPAL_KIND_UNSPECIFIED":
132
+ return ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_UNSPECIFIED;
133
+ case 1:
134
+ case "PROJECT_PRINCIPAL_KIND_USER":
135
+ return ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_USER;
136
+ case 2:
137
+ case "PROJECT_PRINCIPAL_KIND_ORG_TEAM":
138
+ return ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_ORG_TEAM;
139
+ case -1:
140
+ case "UNRECOGNIZED":
141
+ default:
142
+ return ProjectPrincipalKind.UNRECOGNIZED;
143
+ }
144
+ }
145
+ function projectPrincipalKindToJSON(object) {
146
+ switch (object) {
147
+ case ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_UNSPECIFIED:
148
+ return "PROJECT_PRINCIPAL_KIND_UNSPECIFIED";
149
+ case ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_USER:
150
+ return "PROJECT_PRINCIPAL_KIND_USER";
151
+ case ProjectPrincipalKind.PROJECT_PRINCIPAL_KIND_ORG_TEAM:
152
+ return "PROJECT_PRINCIPAL_KIND_ORG_TEAM";
153
+ case ProjectPrincipalKind.UNRECOGNIZED:
154
+ default:
155
+ return "UNRECOGNIZED";
156
+ }
157
+ }
52
158
  function createBaseProject() {
53
159
  return {
54
- projectId: "",
160
+ id: "",
55
161
  organizationId: "",
162
+ slug: "",
56
163
  name: "",
164
+ summary: "",
57
165
  description: "",
58
166
  status: 0,
167
+ ownerUserId: "",
168
+ creatorUserId: "",
169
+ workspaceId: "",
170
+ gitRepository: "",
171
+ startDate: "",
172
+ targetDate: "",
173
+ sourceSystem: "",
174
+ sourceId: "",
175
+ sourceMetadata: undefined,
59
176
  createdAt: undefined,
60
177
  updatedAt: undefined,
61
- archivedAt: undefined,
62
- slug: "",
178
+ firstTaskStartedAt: undefined,
63
179
  };
64
180
  }
65
181
  exports.Project = {
66
182
  encode(message, writer = new wire_1.BinaryWriter()) {
67
- if (message.projectId !== "") {
68
- writer.uint32(10).string(message.projectId);
183
+ if (message.id !== "") {
184
+ writer.uint32(10).string(message.id);
69
185
  }
70
186
  if (message.organizationId !== "") {
71
187
  writer.uint32(18).string(message.organizationId);
72
188
  }
189
+ if (message.slug !== "") {
190
+ writer.uint32(26).string(message.slug);
191
+ }
73
192
  if (message.name !== "") {
74
- writer.uint32(26).string(message.name);
193
+ writer.uint32(34).string(message.name);
194
+ }
195
+ if (message.summary !== "") {
196
+ writer.uint32(42).string(message.summary);
75
197
  }
76
198
  if (message.description !== "") {
77
- writer.uint32(34).string(message.description);
199
+ writer.uint32(50).string(message.description);
78
200
  }
79
201
  if (message.status !== 0) {
80
- writer.uint32(40).int32(message.status);
202
+ writer.uint32(56).int32(message.status);
203
+ }
204
+ if (message.ownerUserId !== "") {
205
+ writer.uint32(66).string(message.ownerUserId);
206
+ }
207
+ if (message.creatorUserId !== "") {
208
+ writer.uint32(74).string(message.creatorUserId);
209
+ }
210
+ if (message.workspaceId !== "") {
211
+ writer.uint32(82).string(message.workspaceId);
212
+ }
213
+ if (message.gitRepository !== "") {
214
+ writer.uint32(90).string(message.gitRepository);
215
+ }
216
+ if (message.startDate !== "") {
217
+ writer.uint32(98).string(message.startDate);
218
+ }
219
+ if (message.targetDate !== "") {
220
+ writer.uint32(106).string(message.targetDate);
221
+ }
222
+ if (message.sourceSystem !== "") {
223
+ writer.uint32(114).string(message.sourceSystem);
224
+ }
225
+ if (message.sourceId !== "") {
226
+ writer.uint32(122).string(message.sourceId);
227
+ }
228
+ if (message.sourceMetadata !== undefined) {
229
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.sourceMetadata), writer.uint32(130).fork()).join();
81
230
  }
82
231
  if (message.createdAt !== undefined) {
83
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).join();
232
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(138).fork()).join();
84
233
  }
85
234
  if (message.updatedAt !== undefined) {
86
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(58).fork()).join();
235
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(146).fork()).join();
87
236
  }
88
- if (message.archivedAt !== undefined) {
89
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.archivedAt), writer.uint32(66).fork()).join();
90
- }
91
- if (message.slug !== "") {
92
- writer.uint32(74).string(message.slug);
237
+ if (message.firstTaskStartedAt !== undefined) {
238
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.firstTaskStartedAt), writer.uint32(154).fork()).join();
93
239
  }
94
240
  return writer;
95
241
  },
@@ -104,7 +250,7 @@ exports.Project = {
104
250
  if (tag !== 10) {
105
251
  break;
106
252
  }
107
- message.projectId = reader.string();
253
+ message.id = reader.string();
108
254
  continue;
109
255
  }
110
256
  case 2: {
@@ -118,49 +264,119 @@ exports.Project = {
118
264
  if (tag !== 26) {
119
265
  break;
120
266
  }
121
- message.name = reader.string();
267
+ message.slug = reader.string();
122
268
  continue;
123
269
  }
124
270
  case 4: {
125
271
  if (tag !== 34) {
126
272
  break;
127
273
  }
128
- message.description = reader.string();
274
+ message.name = reader.string();
129
275
  continue;
130
276
  }
131
277
  case 5: {
132
- if (tag !== 40) {
278
+ if (tag !== 42) {
133
279
  break;
134
280
  }
135
- message.status = reader.int32();
281
+ message.summary = reader.string();
136
282
  continue;
137
283
  }
138
284
  case 6: {
139
285
  if (tag !== 50) {
140
286
  break;
141
287
  }
142
- message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
288
+ message.description = reader.string();
143
289
  continue;
144
290
  }
145
291
  case 7: {
146
- if (tag !== 58) {
292
+ if (tag !== 56) {
147
293
  break;
148
294
  }
149
- message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
295
+ message.status = reader.int32();
150
296
  continue;
151
297
  }
152
298
  case 8: {
153
299
  if (tag !== 66) {
154
300
  break;
155
301
  }
156
- message.archivedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
302
+ message.ownerUserId = reader.string();
157
303
  continue;
158
304
  }
159
305
  case 9: {
160
306
  if (tag !== 74) {
161
307
  break;
162
308
  }
163
- message.slug = reader.string();
309
+ message.creatorUserId = reader.string();
310
+ continue;
311
+ }
312
+ case 10: {
313
+ if (tag !== 82) {
314
+ break;
315
+ }
316
+ message.workspaceId = reader.string();
317
+ continue;
318
+ }
319
+ case 11: {
320
+ if (tag !== 90) {
321
+ break;
322
+ }
323
+ message.gitRepository = reader.string();
324
+ continue;
325
+ }
326
+ case 12: {
327
+ if (tag !== 98) {
328
+ break;
329
+ }
330
+ message.startDate = reader.string();
331
+ continue;
332
+ }
333
+ case 13: {
334
+ if (tag !== 106) {
335
+ break;
336
+ }
337
+ message.targetDate = reader.string();
338
+ continue;
339
+ }
340
+ case 14: {
341
+ if (tag !== 114) {
342
+ break;
343
+ }
344
+ message.sourceSystem = reader.string();
345
+ continue;
346
+ }
347
+ case 15: {
348
+ if (tag !== 122) {
349
+ break;
350
+ }
351
+ message.sourceId = reader.string();
352
+ continue;
353
+ }
354
+ case 16: {
355
+ if (tag !== 130) {
356
+ break;
357
+ }
358
+ message.sourceMetadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
359
+ continue;
360
+ }
361
+ case 17: {
362
+ if (tag !== 138) {
363
+ break;
364
+ }
365
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
366
+ continue;
367
+ }
368
+ case 18: {
369
+ if (tag !== 146) {
370
+ break;
371
+ }
372
+ message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
373
+ continue;
374
+ }
375
+ case 19: {
376
+ if (tag !== 154) {
377
+ break;
378
+ }
379
+ message.firstTaskStartedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
164
380
  continue;
165
381
  }
166
382
  }
@@ -173,19 +389,62 @@ exports.Project = {
173
389
  },
174
390
  fromJSON(object) {
175
391
  return {
176
- projectId: isSet(object.projectId)
177
- ? globalThis.String(object.projectId)
178
- : isSet(object.project_id)
179
- ? globalThis.String(object.project_id)
180
- : "",
392
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
181
393
  organizationId: isSet(object.organizationId)
182
394
  ? globalThis.String(object.organizationId)
183
395
  : isSet(object.organization_id)
184
396
  ? globalThis.String(object.organization_id)
185
397
  : "",
398
+ slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
186
399
  name: isSet(object.name) ? globalThis.String(object.name) : "",
400
+ summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
187
401
  description: isSet(object.description) ? globalThis.String(object.description) : "",
188
402
  status: isSet(object.status) ? projectStatusFromJSON(object.status) : 0,
403
+ ownerUserId: isSet(object.ownerUserId)
404
+ ? globalThis.String(object.ownerUserId)
405
+ : isSet(object.owner_user_id)
406
+ ? globalThis.String(object.owner_user_id)
407
+ : "",
408
+ creatorUserId: isSet(object.creatorUserId)
409
+ ? globalThis.String(object.creatorUserId)
410
+ : isSet(object.creator_user_id)
411
+ ? globalThis.String(object.creator_user_id)
412
+ : "",
413
+ workspaceId: isSet(object.workspaceId)
414
+ ? globalThis.String(object.workspaceId)
415
+ : isSet(object.workspace_id)
416
+ ? globalThis.String(object.workspace_id)
417
+ : "",
418
+ gitRepository: isSet(object.gitRepository)
419
+ ? globalThis.String(object.gitRepository)
420
+ : isSet(object.git_repository)
421
+ ? globalThis.String(object.git_repository)
422
+ : "",
423
+ startDate: isSet(object.startDate)
424
+ ? globalThis.String(object.startDate)
425
+ : isSet(object.start_date)
426
+ ? globalThis.String(object.start_date)
427
+ : "",
428
+ targetDate: isSet(object.targetDate)
429
+ ? globalThis.String(object.targetDate)
430
+ : isSet(object.target_date)
431
+ ? globalThis.String(object.target_date)
432
+ : "",
433
+ sourceSystem: isSet(object.sourceSystem)
434
+ ? globalThis.String(object.sourceSystem)
435
+ : isSet(object.source_system)
436
+ ? globalThis.String(object.source_system)
437
+ : "",
438
+ sourceId: isSet(object.sourceId)
439
+ ? globalThis.String(object.sourceId)
440
+ : isSet(object.source_id)
441
+ ? globalThis.String(object.source_id)
442
+ : "",
443
+ sourceMetadata: isObject(object.sourceMetadata)
444
+ ? object.sourceMetadata
445
+ : isObject(object.source_metadata)
446
+ ? object.source_metadata
447
+ : undefined,
189
448
  createdAt: isSet(object.createdAt)
190
449
  ? fromJsonTimestamp(object.createdAt)
191
450
  : isSet(object.created_at)
@@ -196,42 +455,71 @@ exports.Project = {
196
455
  : isSet(object.updated_at)
197
456
  ? fromJsonTimestamp(object.updated_at)
198
457
  : undefined,
199
- archivedAt: isSet(object.archivedAt)
200
- ? fromJsonTimestamp(object.archivedAt)
201
- : isSet(object.archived_at)
202
- ? fromJsonTimestamp(object.archived_at)
458
+ firstTaskStartedAt: isSet(object.firstTaskStartedAt)
459
+ ? fromJsonTimestamp(object.firstTaskStartedAt)
460
+ : isSet(object.first_task_started_at)
461
+ ? fromJsonTimestamp(object.first_task_started_at)
203
462
  : undefined,
204
- slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
205
463
  };
206
464
  },
207
465
  toJSON(message) {
208
466
  const obj = {};
209
- if (message.projectId !== "") {
210
- obj.projectId = message.projectId;
467
+ if (message.id !== "") {
468
+ obj.id = message.id;
211
469
  }
212
470
  if (message.organizationId !== "") {
213
471
  obj.organizationId = message.organizationId;
214
472
  }
473
+ if (message.slug !== "") {
474
+ obj.slug = message.slug;
475
+ }
215
476
  if (message.name !== "") {
216
477
  obj.name = message.name;
217
478
  }
479
+ if (message.summary !== "") {
480
+ obj.summary = message.summary;
481
+ }
218
482
  if (message.description !== "") {
219
483
  obj.description = message.description;
220
484
  }
221
485
  if (message.status !== 0) {
222
486
  obj.status = projectStatusToJSON(message.status);
223
487
  }
488
+ if (message.ownerUserId !== "") {
489
+ obj.ownerUserId = message.ownerUserId;
490
+ }
491
+ if (message.creatorUserId !== "") {
492
+ obj.creatorUserId = message.creatorUserId;
493
+ }
494
+ if (message.workspaceId !== "") {
495
+ obj.workspaceId = message.workspaceId;
496
+ }
497
+ if (message.gitRepository !== "") {
498
+ obj.gitRepository = message.gitRepository;
499
+ }
500
+ if (message.startDate !== "") {
501
+ obj.startDate = message.startDate;
502
+ }
503
+ if (message.targetDate !== "") {
504
+ obj.targetDate = message.targetDate;
505
+ }
506
+ if (message.sourceSystem !== "") {
507
+ obj.sourceSystem = message.sourceSystem;
508
+ }
509
+ if (message.sourceId !== "") {
510
+ obj.sourceId = message.sourceId;
511
+ }
512
+ if (message.sourceMetadata !== undefined) {
513
+ obj.sourceMetadata = message.sourceMetadata;
514
+ }
224
515
  if (message.createdAt !== undefined) {
225
516
  obj.createdAt = message.createdAt.toISOString();
226
517
  }
227
518
  if (message.updatedAt !== undefined) {
228
519
  obj.updatedAt = message.updatedAt.toISOString();
229
520
  }
230
- if (message.archivedAt !== undefined) {
231
- obj.archivedAt = message.archivedAt.toISOString();
232
- }
233
- if (message.slug !== "") {
234
- obj.slug = message.slug;
521
+ if (message.firstTaskStartedAt !== undefined) {
522
+ obj.firstTaskStartedAt = message.firstTaskStartedAt.toISOString();
235
523
  }
236
524
  return obj;
237
525
  },
@@ -239,17 +527,451 @@ exports.Project = {
239
527
  return exports.Project.fromPartial(base !== null && base !== void 0 ? base : {});
240
528
  },
241
529
  fromPartial(object) {
242
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
530
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
243
531
  const message = createBaseProject();
244
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
532
+ message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
245
533
  message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
246
- message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
247
- message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
248
- message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
249
- message.createdAt = (_f = object.createdAt) !== null && _f !== void 0 ? _f : undefined;
250
- message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : undefined;
251
- message.archivedAt = (_h = object.archivedAt) !== null && _h !== void 0 ? _h : undefined;
252
- message.slug = (_j = object.slug) !== null && _j !== void 0 ? _j : "";
534
+ message.slug = (_c = object.slug) !== null && _c !== void 0 ? _c : "";
535
+ message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
536
+ message.summary = (_e = object.summary) !== null && _e !== void 0 ? _e : "";
537
+ message.description = (_f = object.description) !== null && _f !== void 0 ? _f : "";
538
+ message.status = (_g = object.status) !== null && _g !== void 0 ? _g : 0;
539
+ message.ownerUserId = (_h = object.ownerUserId) !== null && _h !== void 0 ? _h : "";
540
+ message.creatorUserId = (_j = object.creatorUserId) !== null && _j !== void 0 ? _j : "";
541
+ message.workspaceId = (_k = object.workspaceId) !== null && _k !== void 0 ? _k : "";
542
+ message.gitRepository = (_l = object.gitRepository) !== null && _l !== void 0 ? _l : "";
543
+ message.startDate = (_m = object.startDate) !== null && _m !== void 0 ? _m : "";
544
+ message.targetDate = (_o = object.targetDate) !== null && _o !== void 0 ? _o : "";
545
+ message.sourceSystem = (_p = object.sourceSystem) !== null && _p !== void 0 ? _p : "";
546
+ message.sourceId = (_q = object.sourceId) !== null && _q !== void 0 ? _q : "";
547
+ message.sourceMetadata = (_r = object.sourceMetadata) !== null && _r !== void 0 ? _r : undefined;
548
+ message.createdAt = (_s = object.createdAt) !== null && _s !== void 0 ? _s : undefined;
549
+ message.updatedAt = (_t = object.updatedAt) !== null && _t !== void 0 ? _t : undefined;
550
+ message.firstTaskStartedAt = (_u = object.firstTaskStartedAt) !== null && _u !== void 0 ? _u : undefined;
551
+ return message;
552
+ },
553
+ };
554
+ function createBaseProjectShare() {
555
+ return {
556
+ id: "",
557
+ projectId: "",
558
+ principalKind: 0,
559
+ principalId: "",
560
+ principalSlug: "",
561
+ principalDisplayName: "",
562
+ permissionLevel: 0,
563
+ createdAt: undefined,
564
+ };
565
+ }
566
+ exports.ProjectShare = {
567
+ encode(message, writer = new wire_1.BinaryWriter()) {
568
+ if (message.id !== "") {
569
+ writer.uint32(10).string(message.id);
570
+ }
571
+ if (message.projectId !== "") {
572
+ writer.uint32(18).string(message.projectId);
573
+ }
574
+ if (message.principalKind !== 0) {
575
+ writer.uint32(24).int32(message.principalKind);
576
+ }
577
+ if (message.principalId !== "") {
578
+ writer.uint32(34).string(message.principalId);
579
+ }
580
+ if (message.principalSlug !== "") {
581
+ writer.uint32(42).string(message.principalSlug);
582
+ }
583
+ if (message.principalDisplayName !== "") {
584
+ writer.uint32(50).string(message.principalDisplayName);
585
+ }
586
+ if (message.permissionLevel !== 0) {
587
+ writer.uint32(56).int32(message.permissionLevel);
588
+ }
589
+ if (message.createdAt !== undefined) {
590
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(66).fork()).join();
591
+ }
592
+ return writer;
593
+ },
594
+ decode(input, length) {
595
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
596
+ const end = length === undefined ? reader.len : reader.pos + length;
597
+ const message = createBaseProjectShare();
598
+ while (reader.pos < end) {
599
+ const tag = reader.uint32();
600
+ switch (tag >>> 3) {
601
+ case 1: {
602
+ if (tag !== 10) {
603
+ break;
604
+ }
605
+ message.id = reader.string();
606
+ continue;
607
+ }
608
+ case 2: {
609
+ if (tag !== 18) {
610
+ break;
611
+ }
612
+ message.projectId = reader.string();
613
+ continue;
614
+ }
615
+ case 3: {
616
+ if (tag !== 24) {
617
+ break;
618
+ }
619
+ message.principalKind = reader.int32();
620
+ continue;
621
+ }
622
+ case 4: {
623
+ if (tag !== 34) {
624
+ break;
625
+ }
626
+ message.principalId = reader.string();
627
+ continue;
628
+ }
629
+ case 5: {
630
+ if (tag !== 42) {
631
+ break;
632
+ }
633
+ message.principalSlug = reader.string();
634
+ continue;
635
+ }
636
+ case 6: {
637
+ if (tag !== 50) {
638
+ break;
639
+ }
640
+ message.principalDisplayName = reader.string();
641
+ continue;
642
+ }
643
+ case 7: {
644
+ if (tag !== 56) {
645
+ break;
646
+ }
647
+ message.permissionLevel = reader.int32();
648
+ continue;
649
+ }
650
+ case 8: {
651
+ if (tag !== 66) {
652
+ break;
653
+ }
654
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
655
+ continue;
656
+ }
657
+ }
658
+ if ((tag & 7) === 4 || tag === 0) {
659
+ break;
660
+ }
661
+ reader.skip(tag & 7);
662
+ }
663
+ return message;
664
+ },
665
+ fromJSON(object) {
666
+ return {
667
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
668
+ projectId: isSet(object.projectId)
669
+ ? globalThis.String(object.projectId)
670
+ : isSet(object.project_id)
671
+ ? globalThis.String(object.project_id)
672
+ : "",
673
+ principalKind: isSet(object.principalKind)
674
+ ? projectPrincipalKindFromJSON(object.principalKind)
675
+ : isSet(object.principal_kind)
676
+ ? projectPrincipalKindFromJSON(object.principal_kind)
677
+ : 0,
678
+ principalId: isSet(object.principalId)
679
+ ? globalThis.String(object.principalId)
680
+ : isSet(object.principal_id)
681
+ ? globalThis.String(object.principal_id)
682
+ : "",
683
+ principalSlug: isSet(object.principalSlug)
684
+ ? globalThis.String(object.principalSlug)
685
+ : isSet(object.principal_slug)
686
+ ? globalThis.String(object.principal_slug)
687
+ : "",
688
+ principalDisplayName: isSet(object.principalDisplayName)
689
+ ? globalThis.String(object.principalDisplayName)
690
+ : isSet(object.principal_display_name)
691
+ ? globalThis.String(object.principal_display_name)
692
+ : "",
693
+ permissionLevel: isSet(object.permissionLevel)
694
+ ? projectPermissionLevelFromJSON(object.permissionLevel)
695
+ : isSet(object.permission_level)
696
+ ? projectPermissionLevelFromJSON(object.permission_level)
697
+ : 0,
698
+ createdAt: isSet(object.createdAt)
699
+ ? fromJsonTimestamp(object.createdAt)
700
+ : isSet(object.created_at)
701
+ ? fromJsonTimestamp(object.created_at)
702
+ : undefined,
703
+ };
704
+ },
705
+ toJSON(message) {
706
+ const obj = {};
707
+ if (message.id !== "") {
708
+ obj.id = message.id;
709
+ }
710
+ if (message.projectId !== "") {
711
+ obj.projectId = message.projectId;
712
+ }
713
+ if (message.principalKind !== 0) {
714
+ obj.principalKind = projectPrincipalKindToJSON(message.principalKind);
715
+ }
716
+ if (message.principalId !== "") {
717
+ obj.principalId = message.principalId;
718
+ }
719
+ if (message.principalSlug !== "") {
720
+ obj.principalSlug = message.principalSlug;
721
+ }
722
+ if (message.principalDisplayName !== "") {
723
+ obj.principalDisplayName = message.principalDisplayName;
724
+ }
725
+ if (message.permissionLevel !== 0) {
726
+ obj.permissionLevel = projectPermissionLevelToJSON(message.permissionLevel);
727
+ }
728
+ if (message.createdAt !== undefined) {
729
+ obj.createdAt = message.createdAt.toISOString();
730
+ }
731
+ return obj;
732
+ },
733
+ create(base) {
734
+ return exports.ProjectShare.fromPartial(base !== null && base !== void 0 ? base : {});
735
+ },
736
+ fromPartial(object) {
737
+ var _a, _b, _c, _d, _e, _f, _g, _h;
738
+ const message = createBaseProjectShare();
739
+ message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
740
+ message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
741
+ message.principalKind = (_c = object.principalKind) !== null && _c !== void 0 ? _c : 0;
742
+ message.principalId = (_d = object.principalId) !== null && _d !== void 0 ? _d : "";
743
+ message.principalSlug = (_e = object.principalSlug) !== null && _e !== void 0 ? _e : "";
744
+ message.principalDisplayName = (_f = object.principalDisplayName) !== null && _f !== void 0 ? _f : "";
745
+ message.permissionLevel = (_g = object.permissionLevel) !== null && _g !== void 0 ? _g : 0;
746
+ message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : undefined;
747
+ return message;
748
+ },
749
+ };
750
+ function createBaseProjectActivityEntry() {
751
+ return {
752
+ id: "",
753
+ projectId: "",
754
+ taskId: "",
755
+ eventType: "",
756
+ actorId: "",
757
+ actorSlug: "",
758
+ actorLabel: "",
759
+ description: "",
760
+ metadata: undefined,
761
+ createdAt: undefined,
762
+ };
763
+ }
764
+ exports.ProjectActivityEntry = {
765
+ encode(message, writer = new wire_1.BinaryWriter()) {
766
+ if (message.id !== "") {
767
+ writer.uint32(10).string(message.id);
768
+ }
769
+ if (message.projectId !== "") {
770
+ writer.uint32(18).string(message.projectId);
771
+ }
772
+ if (message.taskId !== "") {
773
+ writer.uint32(26).string(message.taskId);
774
+ }
775
+ if (message.eventType !== "") {
776
+ writer.uint32(34).string(message.eventType);
777
+ }
778
+ if (message.actorId !== "") {
779
+ writer.uint32(42).string(message.actorId);
780
+ }
781
+ if (message.actorSlug !== "") {
782
+ writer.uint32(50).string(message.actorSlug);
783
+ }
784
+ if (message.actorLabel !== "") {
785
+ writer.uint32(58).string(message.actorLabel);
786
+ }
787
+ if (message.description !== "") {
788
+ writer.uint32(66).string(message.description);
789
+ }
790
+ if (message.metadata !== undefined) {
791
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
792
+ }
793
+ if (message.createdAt !== undefined) {
794
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
795
+ }
796
+ return writer;
797
+ },
798
+ decode(input, length) {
799
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
800
+ const end = length === undefined ? reader.len : reader.pos + length;
801
+ const message = createBaseProjectActivityEntry();
802
+ while (reader.pos < end) {
803
+ const tag = reader.uint32();
804
+ switch (tag >>> 3) {
805
+ case 1: {
806
+ if (tag !== 10) {
807
+ break;
808
+ }
809
+ message.id = reader.string();
810
+ continue;
811
+ }
812
+ case 2: {
813
+ if (tag !== 18) {
814
+ break;
815
+ }
816
+ message.projectId = reader.string();
817
+ continue;
818
+ }
819
+ case 3: {
820
+ if (tag !== 26) {
821
+ break;
822
+ }
823
+ message.taskId = reader.string();
824
+ continue;
825
+ }
826
+ case 4: {
827
+ if (tag !== 34) {
828
+ break;
829
+ }
830
+ message.eventType = reader.string();
831
+ continue;
832
+ }
833
+ case 5: {
834
+ if (tag !== 42) {
835
+ break;
836
+ }
837
+ message.actorId = reader.string();
838
+ continue;
839
+ }
840
+ case 6: {
841
+ if (tag !== 50) {
842
+ break;
843
+ }
844
+ message.actorSlug = reader.string();
845
+ continue;
846
+ }
847
+ case 7: {
848
+ if (tag !== 58) {
849
+ break;
850
+ }
851
+ message.actorLabel = reader.string();
852
+ continue;
853
+ }
854
+ case 8: {
855
+ if (tag !== 66) {
856
+ break;
857
+ }
858
+ message.description = reader.string();
859
+ continue;
860
+ }
861
+ case 9: {
862
+ if (tag !== 74) {
863
+ break;
864
+ }
865
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
866
+ continue;
867
+ }
868
+ case 10: {
869
+ if (tag !== 82) {
870
+ break;
871
+ }
872
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
873
+ continue;
874
+ }
875
+ }
876
+ if ((tag & 7) === 4 || tag === 0) {
877
+ break;
878
+ }
879
+ reader.skip(tag & 7);
880
+ }
881
+ return message;
882
+ },
883
+ fromJSON(object) {
884
+ return {
885
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
886
+ projectId: isSet(object.projectId)
887
+ ? globalThis.String(object.projectId)
888
+ : isSet(object.project_id)
889
+ ? globalThis.String(object.project_id)
890
+ : "",
891
+ taskId: isSet(object.taskId)
892
+ ? globalThis.String(object.taskId)
893
+ : isSet(object.task_id)
894
+ ? globalThis.String(object.task_id)
895
+ : "",
896
+ eventType: isSet(object.eventType)
897
+ ? globalThis.String(object.eventType)
898
+ : isSet(object.event_type)
899
+ ? globalThis.String(object.event_type)
900
+ : "",
901
+ actorId: isSet(object.actorId)
902
+ ? globalThis.String(object.actorId)
903
+ : isSet(object.actor_id)
904
+ ? globalThis.String(object.actor_id)
905
+ : "",
906
+ actorSlug: isSet(object.actorSlug)
907
+ ? globalThis.String(object.actorSlug)
908
+ : isSet(object.actor_slug)
909
+ ? globalThis.String(object.actor_slug)
910
+ : "",
911
+ actorLabel: isSet(object.actorLabel)
912
+ ? globalThis.String(object.actorLabel)
913
+ : isSet(object.actor_label)
914
+ ? globalThis.String(object.actor_label)
915
+ : "",
916
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
917
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
918
+ createdAt: isSet(object.createdAt)
919
+ ? fromJsonTimestamp(object.createdAt)
920
+ : isSet(object.created_at)
921
+ ? fromJsonTimestamp(object.created_at)
922
+ : undefined,
923
+ };
924
+ },
925
+ toJSON(message) {
926
+ const obj = {};
927
+ if (message.id !== "") {
928
+ obj.id = message.id;
929
+ }
930
+ if (message.projectId !== "") {
931
+ obj.projectId = message.projectId;
932
+ }
933
+ if (message.taskId !== "") {
934
+ obj.taskId = message.taskId;
935
+ }
936
+ if (message.eventType !== "") {
937
+ obj.eventType = message.eventType;
938
+ }
939
+ if (message.actorId !== "") {
940
+ obj.actorId = message.actorId;
941
+ }
942
+ if (message.actorSlug !== "") {
943
+ obj.actorSlug = message.actorSlug;
944
+ }
945
+ if (message.actorLabel !== "") {
946
+ obj.actorLabel = message.actorLabel;
947
+ }
948
+ if (message.description !== "") {
949
+ obj.description = message.description;
950
+ }
951
+ if (message.metadata !== undefined) {
952
+ obj.metadata = message.metadata;
953
+ }
954
+ if (message.createdAt !== undefined) {
955
+ obj.createdAt = message.createdAt.toISOString();
956
+ }
957
+ return obj;
958
+ },
959
+ create(base) {
960
+ return exports.ProjectActivityEntry.fromPartial(base !== null && base !== void 0 ? base : {});
961
+ },
962
+ fromPartial(object) {
963
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
964
+ const message = createBaseProjectActivityEntry();
965
+ message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
966
+ message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
967
+ message.taskId = (_c = object.taskId) !== null && _c !== void 0 ? _c : "";
968
+ message.eventType = (_d = object.eventType) !== null && _d !== void 0 ? _d : "";
969
+ message.actorId = (_e = object.actorId) !== null && _e !== void 0 ? _e : "";
970
+ message.actorSlug = (_f = object.actorSlug) !== null && _f !== void 0 ? _f : "";
971
+ message.actorLabel = (_g = object.actorLabel) !== null && _g !== void 0 ? _g : "";
972
+ message.description = (_h = object.description) !== null && _h !== void 0 ? _h : "";
973
+ message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
974
+ message.createdAt = (_k = object.createdAt) !== null && _k !== void 0 ? _k : undefined;
253
975
  return message;
254
976
  },
255
977
  };
@@ -274,6 +996,9 @@ function fromJsonTimestamp(o) {
274
996
  return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
275
997
  }
276
998
  }
999
+ function isObject(value) {
1000
+ return typeof value === "object" && value !== null;
1001
+ }
277
1002
  function isSet(value) {
278
1003
  return value !== null && value !== undefined;
279
1004
  }