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