weave-typescript 0.46.0 → 0.47.1

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.
@@ -1,13 +1,13 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "weaveapi.agent.v1";
3
- export declare enum AgentTemplateStatus {
4
- AGENT_TEMPLATE_STATUS_UNSPECIFIED = 0,
5
- AGENT_TEMPLATE_STATUS_ACTIVE = 1,
6
- AGENT_TEMPLATE_STATUS_ARCHIVED = 2,
3
+ export declare enum AgentDefinitionStatus {
4
+ AGENT_DEFINITION_STATUS_UNSPECIFIED = 0,
5
+ AGENT_DEFINITION_STATUS_ACTIVE = 1,
6
+ AGENT_DEFINITION_STATUS_ARCHIVED = 2,
7
7
  UNRECOGNIZED = -1
8
8
  }
9
- export declare function agentTemplateStatusFromJSON(object: any): AgentTemplateStatus;
10
- export declare function agentTemplateStatusToJSON(object: AgentTemplateStatus): string;
9
+ export declare function agentDefinitionStatusFromJSON(object: any): AgentDefinitionStatus;
10
+ export declare function agentDefinitionStatusToJSON(object: AgentDefinitionStatus): string;
11
11
  export declare enum AgentToolDescriptorKind {
12
12
  AGENT_TOOL_DESCRIPTOR_KIND_UNSPECIFIED = 0,
13
13
  AGENT_TOOL_DESCRIPTOR_KIND_WEAVE_SERVICE = 1,
@@ -57,13 +57,13 @@ export declare enum AgentRunEventKind {
57
57
  }
58
58
  export declare function agentRunEventKindFromJSON(object: any): AgentRunEventKind;
59
59
  export declare function agentRunEventKindToJSON(object: AgentRunEventKind): string;
60
- export interface AgentTemplate {
60
+ export interface AgentDefinition {
61
61
  id: string;
62
62
  organizationId: string;
63
63
  slug: string;
64
64
  name: string;
65
65
  description: string;
66
- status: AgentTemplateStatus;
66
+ status: AgentDefinitionStatus;
67
67
  createdByUserId: string;
68
68
  draftRevision: number;
69
69
  latestVersionId: string;
@@ -73,7 +73,7 @@ export interface AgentTemplate {
73
73
  }
74
74
  export interface AgentDraft {
75
75
  id: string;
76
- templateId: string;
76
+ definitionId: string;
77
77
  organizationId: string;
78
78
  baseVersionId: string;
79
79
  revision: number;
@@ -98,7 +98,7 @@ export interface AgentDraft {
98
98
  }
99
99
  export interface AgentDraftPatch {
100
100
  id: string;
101
- templateId: string;
101
+ definitionId: string;
102
102
  organizationId: string;
103
103
  revision: number;
104
104
  patch: {
@@ -109,7 +109,7 @@ export interface AgentDraftPatch {
109
109
  }
110
110
  export interface AgentVersion {
111
111
  id: string;
112
- templateId: string;
112
+ definitionId: string;
113
113
  organizationId: string;
114
114
  version: number;
115
115
  sourceDraftRevision: number;
@@ -148,7 +148,7 @@ export interface AgentToolDescriptor {
148
148
  } | undefined;
149
149
  }
150
150
  export interface AgentPublishPlan {
151
- templateId: string;
151
+ definitionId: string;
152
152
  draftRevision: number;
153
153
  publishable: boolean;
154
154
  issues: AgentPublishPlanIssue[];
@@ -164,7 +164,7 @@ export interface AgentPublishPlanIssue {
164
164
  export interface AgentRun {
165
165
  id: string;
166
166
  organizationId: string;
167
- agentTemplateId: string;
167
+ agentDefinitionId: string;
168
168
  agentVersionId: string;
169
169
  status: AgentRunStatus;
170
170
  createdByUserId: string;
@@ -195,7 +195,7 @@ export interface AgentRunEvent {
195
195
  } | undefined;
196
196
  createdAt: Date | undefined;
197
197
  }
198
- export declare const AgentTemplate: MessageFns<AgentTemplate>;
198
+ export declare const AgentDefinition: MessageFns<AgentDefinition>;
199
199
  export declare const AgentDraft: MessageFns<AgentDraft>;
200
200
  export declare const AgentDraftPatch: MessageFns<AgentDraftPatch>;
201
201
  export declare const AgentVersion: MessageFns<AgentVersion>;
@@ -5,9 +5,9 @@
5
5
  // protoc unknown
6
6
  // source: weaveapi/agent/v1/agent.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AgentRunEvent = exports.AgentRun = exports.AgentPublishPlanIssue = exports.AgentPublishPlan = exports.AgentToolDescriptor = exports.AgentVersion = exports.AgentDraftPatch = exports.AgentDraft = exports.AgentTemplate = exports.AgentRunEventKind = exports.AgentRunStatus = exports.AgentToolApprovalMode = exports.AgentToolDescriptorKind = exports.AgentTemplateStatus = exports.protobufPackage = void 0;
9
- exports.agentTemplateStatusFromJSON = agentTemplateStatusFromJSON;
10
- exports.agentTemplateStatusToJSON = agentTemplateStatusToJSON;
8
+ exports.AgentRunEvent = exports.AgentRun = exports.AgentPublishPlanIssue = exports.AgentPublishPlan = exports.AgentToolDescriptor = exports.AgentVersion = exports.AgentDraftPatch = exports.AgentDraft = exports.AgentDefinition = exports.AgentRunEventKind = exports.AgentRunStatus = exports.AgentToolApprovalMode = exports.AgentToolDescriptorKind = exports.AgentDefinitionStatus = exports.protobufPackage = void 0;
9
+ exports.agentDefinitionStatusFromJSON = agentDefinitionStatusFromJSON;
10
+ exports.agentDefinitionStatusToJSON = agentDefinitionStatusToJSON;
11
11
  exports.agentToolDescriptorKindFromJSON = agentToolDescriptorKindFromJSON;
12
12
  exports.agentToolDescriptorKindToJSON = agentToolDescriptorKindToJSON;
13
13
  exports.agentToolApprovalModeFromJSON = agentToolApprovalModeFromJSON;
@@ -21,39 +21,39 @@ const wire_1 = require("@bufbuild/protobuf/wire");
21
21
  const struct_pb_1 = require("../../../google/protobuf/struct.pb");
22
22
  const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
23
23
  exports.protobufPackage = "weaveapi.agent.v1";
24
- var AgentTemplateStatus;
25
- (function (AgentTemplateStatus) {
26
- AgentTemplateStatus[AgentTemplateStatus["AGENT_TEMPLATE_STATUS_UNSPECIFIED"] = 0] = "AGENT_TEMPLATE_STATUS_UNSPECIFIED";
27
- AgentTemplateStatus[AgentTemplateStatus["AGENT_TEMPLATE_STATUS_ACTIVE"] = 1] = "AGENT_TEMPLATE_STATUS_ACTIVE";
28
- AgentTemplateStatus[AgentTemplateStatus["AGENT_TEMPLATE_STATUS_ARCHIVED"] = 2] = "AGENT_TEMPLATE_STATUS_ARCHIVED";
29
- AgentTemplateStatus[AgentTemplateStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
30
- })(AgentTemplateStatus || (exports.AgentTemplateStatus = AgentTemplateStatus = {}));
31
- function agentTemplateStatusFromJSON(object) {
24
+ var AgentDefinitionStatus;
25
+ (function (AgentDefinitionStatus) {
26
+ AgentDefinitionStatus[AgentDefinitionStatus["AGENT_DEFINITION_STATUS_UNSPECIFIED"] = 0] = "AGENT_DEFINITION_STATUS_UNSPECIFIED";
27
+ AgentDefinitionStatus[AgentDefinitionStatus["AGENT_DEFINITION_STATUS_ACTIVE"] = 1] = "AGENT_DEFINITION_STATUS_ACTIVE";
28
+ AgentDefinitionStatus[AgentDefinitionStatus["AGENT_DEFINITION_STATUS_ARCHIVED"] = 2] = "AGENT_DEFINITION_STATUS_ARCHIVED";
29
+ AgentDefinitionStatus[AgentDefinitionStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
30
+ })(AgentDefinitionStatus || (exports.AgentDefinitionStatus = AgentDefinitionStatus = {}));
31
+ function agentDefinitionStatusFromJSON(object) {
32
32
  switch (object) {
33
33
  case 0:
34
- case "AGENT_TEMPLATE_STATUS_UNSPECIFIED":
35
- return AgentTemplateStatus.AGENT_TEMPLATE_STATUS_UNSPECIFIED;
34
+ case "AGENT_DEFINITION_STATUS_UNSPECIFIED":
35
+ return AgentDefinitionStatus.AGENT_DEFINITION_STATUS_UNSPECIFIED;
36
36
  case 1:
37
- case "AGENT_TEMPLATE_STATUS_ACTIVE":
38
- return AgentTemplateStatus.AGENT_TEMPLATE_STATUS_ACTIVE;
37
+ case "AGENT_DEFINITION_STATUS_ACTIVE":
38
+ return AgentDefinitionStatus.AGENT_DEFINITION_STATUS_ACTIVE;
39
39
  case 2:
40
- case "AGENT_TEMPLATE_STATUS_ARCHIVED":
41
- return AgentTemplateStatus.AGENT_TEMPLATE_STATUS_ARCHIVED;
40
+ case "AGENT_DEFINITION_STATUS_ARCHIVED":
41
+ return AgentDefinitionStatus.AGENT_DEFINITION_STATUS_ARCHIVED;
42
42
  case -1:
43
43
  case "UNRECOGNIZED":
44
44
  default:
45
- return AgentTemplateStatus.UNRECOGNIZED;
45
+ return AgentDefinitionStatus.UNRECOGNIZED;
46
46
  }
47
47
  }
48
- function agentTemplateStatusToJSON(object) {
48
+ function agentDefinitionStatusToJSON(object) {
49
49
  switch (object) {
50
- case AgentTemplateStatus.AGENT_TEMPLATE_STATUS_UNSPECIFIED:
51
- return "AGENT_TEMPLATE_STATUS_UNSPECIFIED";
52
- case AgentTemplateStatus.AGENT_TEMPLATE_STATUS_ACTIVE:
53
- return "AGENT_TEMPLATE_STATUS_ACTIVE";
54
- case AgentTemplateStatus.AGENT_TEMPLATE_STATUS_ARCHIVED:
55
- return "AGENT_TEMPLATE_STATUS_ARCHIVED";
56
- case AgentTemplateStatus.UNRECOGNIZED:
50
+ case AgentDefinitionStatus.AGENT_DEFINITION_STATUS_UNSPECIFIED:
51
+ return "AGENT_DEFINITION_STATUS_UNSPECIFIED";
52
+ case AgentDefinitionStatus.AGENT_DEFINITION_STATUS_ACTIVE:
53
+ return "AGENT_DEFINITION_STATUS_ACTIVE";
54
+ case AgentDefinitionStatus.AGENT_DEFINITION_STATUS_ARCHIVED:
55
+ return "AGENT_DEFINITION_STATUS_ARCHIVED";
56
+ case AgentDefinitionStatus.UNRECOGNIZED:
57
57
  default:
58
58
  return "UNRECOGNIZED";
59
59
  }
@@ -308,7 +308,7 @@ function agentRunEventKindToJSON(object) {
308
308
  return "UNRECOGNIZED";
309
309
  }
310
310
  }
311
- function createBaseAgentTemplate() {
311
+ function createBaseAgentDefinition() {
312
312
  return {
313
313
  id: "",
314
314
  organizationId: "",
@@ -324,7 +324,7 @@ function createBaseAgentTemplate() {
324
324
  updatedAt: undefined,
325
325
  };
326
326
  }
327
- exports.AgentTemplate = {
327
+ exports.AgentDefinition = {
328
328
  encode(message, writer = new wire_1.BinaryWriter()) {
329
329
  if (message.id !== "") {
330
330
  writer.uint32(10).string(message.id);
@@ -367,7 +367,7 @@ exports.AgentTemplate = {
367
367
  decode(input, length) {
368
368
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
369
369
  const end = length === undefined ? reader.len : reader.pos + length;
370
- const message = createBaseAgentTemplate();
370
+ const message = createBaseAgentDefinition();
371
371
  while (reader.pos < end) {
372
372
  const tag = reader.uint32();
373
373
  switch (tag >>> 3) {
@@ -474,7 +474,7 @@ exports.AgentTemplate = {
474
474
  slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
475
475
  name: isSet(object.name) ? globalThis.String(object.name) : "",
476
476
  description: isSet(object.description) ? globalThis.String(object.description) : "",
477
- status: isSet(object.status) ? agentTemplateStatusFromJSON(object.status) : 0,
477
+ status: isSet(object.status) ? agentDefinitionStatusFromJSON(object.status) : 0,
478
478
  createdByUserId: isSet(object.createdByUserId)
479
479
  ? globalThis.String(object.createdByUserId)
480
480
  : isSet(object.created_by_user_id)
@@ -525,7 +525,7 @@ exports.AgentTemplate = {
525
525
  obj.description = message.description;
526
526
  }
527
527
  if (message.status !== 0) {
528
- obj.status = agentTemplateStatusToJSON(message.status);
528
+ obj.status = agentDefinitionStatusToJSON(message.status);
529
529
  }
530
530
  if (message.createdByUserId !== "") {
531
531
  obj.createdByUserId = message.createdByUserId;
@@ -548,11 +548,11 @@ exports.AgentTemplate = {
548
548
  return obj;
549
549
  },
550
550
  create(base) {
551
- return exports.AgentTemplate.fromPartial(base !== null && base !== void 0 ? base : {});
551
+ return exports.AgentDefinition.fromPartial(base !== null && base !== void 0 ? base : {});
552
552
  },
553
553
  fromPartial(object) {
554
554
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
555
- const message = createBaseAgentTemplate();
555
+ const message = createBaseAgentDefinition();
556
556
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
557
557
  message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
558
558
  message.slug = (_c = object.slug) !== null && _c !== void 0 ? _c : "";
@@ -571,7 +571,7 @@ exports.AgentTemplate = {
571
571
  function createBaseAgentDraft() {
572
572
  return {
573
573
  id: "",
574
- templateId: "",
574
+ definitionId: "",
575
575
  organizationId: "",
576
576
  baseVersionId: "",
577
577
  revision: 0,
@@ -594,8 +594,8 @@ exports.AgentDraft = {
594
594
  if (message.id !== "") {
595
595
  writer.uint32(10).string(message.id);
596
596
  }
597
- if (message.templateId !== "") {
598
- writer.uint32(18).string(message.templateId);
597
+ if (message.definitionId !== "") {
598
+ writer.uint32(18).string(message.definitionId);
599
599
  }
600
600
  if (message.organizationId !== "") {
601
601
  writer.uint32(26).string(message.organizationId);
@@ -662,7 +662,7 @@ exports.AgentDraft = {
662
662
  if (tag !== 18) {
663
663
  break;
664
664
  }
665
- message.templateId = reader.string();
665
+ message.definitionId = reader.string();
666
666
  continue;
667
667
  }
668
668
  case 3: {
@@ -781,10 +781,10 @@ exports.AgentDraft = {
781
781
  fromJSON(object) {
782
782
  return {
783
783
  id: isSet(object.id) ? globalThis.String(object.id) : "",
784
- templateId: isSet(object.templateId)
785
- ? globalThis.String(object.templateId)
786
- : isSet(object.template_id)
787
- ? globalThis.String(object.template_id)
784
+ definitionId: isSet(object.definitionId)
785
+ ? globalThis.String(object.definitionId)
786
+ : isSet(object.definition_id)
787
+ ? globalThis.String(object.definition_id)
788
788
  : "",
789
789
  organizationId: isSet(object.organizationId)
790
790
  ? globalThis.String(object.organizationId)
@@ -847,8 +847,8 @@ exports.AgentDraft = {
847
847
  if (message.id !== "") {
848
848
  obj.id = message.id;
849
849
  }
850
- if (message.templateId !== "") {
851
- obj.templateId = message.templateId;
850
+ if (message.definitionId !== "") {
851
+ obj.definitionId = message.definitionId;
852
852
  }
853
853
  if (message.organizationId !== "") {
854
854
  obj.organizationId = message.organizationId;
@@ -905,7 +905,7 @@ exports.AgentDraft = {
905
905
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
906
906
  const message = createBaseAgentDraft();
907
907
  message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
908
- message.templateId = (_c = object.templateId) !== null && _c !== void 0 ? _c : "";
908
+ message.definitionId = (_c = object.definitionId) !== null && _c !== void 0 ? _c : "";
909
909
  message.organizationId = (_d = object.organizationId) !== null && _d !== void 0 ? _d : "";
910
910
  message.baseVersionId = (_e = object.baseVersionId) !== null && _e !== void 0 ? _e : "";
911
911
  message.revision = (_f = object.revision) !== null && _f !== void 0 ? _f : 0;
@@ -927,7 +927,7 @@ exports.AgentDraft = {
927
927
  function createBaseAgentDraftPatch() {
928
928
  return {
929
929
  id: "",
930
- templateId: "",
930
+ definitionId: "",
931
931
  organizationId: "",
932
932
  revision: 0,
933
933
  patch: undefined,
@@ -940,8 +940,8 @@ exports.AgentDraftPatch = {
940
940
  if (message.id !== "") {
941
941
  writer.uint32(10).string(message.id);
942
942
  }
943
- if (message.templateId !== "") {
944
- writer.uint32(18).string(message.templateId);
943
+ if (message.definitionId !== "") {
944
+ writer.uint32(18).string(message.definitionId);
945
945
  }
946
946
  if (message.organizationId !== "") {
947
947
  writer.uint32(26).string(message.organizationId);
@@ -978,7 +978,7 @@ exports.AgentDraftPatch = {
978
978
  if (tag !== 18) {
979
979
  break;
980
980
  }
981
- message.templateId = reader.string();
981
+ message.definitionId = reader.string();
982
982
  continue;
983
983
  }
984
984
  case 3: {
@@ -1027,10 +1027,10 @@ exports.AgentDraftPatch = {
1027
1027
  fromJSON(object) {
1028
1028
  return {
1029
1029
  id: isSet(object.id) ? globalThis.String(object.id) : "",
1030
- templateId: isSet(object.templateId)
1031
- ? globalThis.String(object.templateId)
1032
- : isSet(object.template_id)
1033
- ? globalThis.String(object.template_id)
1030
+ definitionId: isSet(object.definitionId)
1031
+ ? globalThis.String(object.definitionId)
1032
+ : isSet(object.definition_id)
1033
+ ? globalThis.String(object.definition_id)
1034
1034
  : "",
1035
1035
  organizationId: isSet(object.organizationId)
1036
1036
  ? globalThis.String(object.organizationId)
@@ -1056,8 +1056,8 @@ exports.AgentDraftPatch = {
1056
1056
  if (message.id !== "") {
1057
1057
  obj.id = message.id;
1058
1058
  }
1059
- if (message.templateId !== "") {
1060
- obj.templateId = message.templateId;
1059
+ if (message.definitionId !== "") {
1060
+ obj.definitionId = message.definitionId;
1061
1061
  }
1062
1062
  if (message.organizationId !== "") {
1063
1063
  obj.organizationId = message.organizationId;
@@ -1083,7 +1083,7 @@ exports.AgentDraftPatch = {
1083
1083
  var _a, _b, _c, _d, _e, _f, _g;
1084
1084
  const message = createBaseAgentDraftPatch();
1085
1085
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
1086
- message.templateId = (_b = object.templateId) !== null && _b !== void 0 ? _b : "";
1086
+ message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
1087
1087
  message.organizationId = (_c = object.organizationId) !== null && _c !== void 0 ? _c : "";
1088
1088
  message.revision = (_d = object.revision) !== null && _d !== void 0 ? _d : 0;
1089
1089
  message.patch = (_e = object.patch) !== null && _e !== void 0 ? _e : undefined;
@@ -1095,7 +1095,7 @@ exports.AgentDraftPatch = {
1095
1095
  function createBaseAgentVersion() {
1096
1096
  return {
1097
1097
  id: "",
1098
- templateId: "",
1098
+ definitionId: "",
1099
1099
  organizationId: "",
1100
1100
  version: 0,
1101
1101
  sourceDraftRevision: 0,
@@ -1117,8 +1117,8 @@ exports.AgentVersion = {
1117
1117
  if (message.id !== "") {
1118
1118
  writer.uint32(10).string(message.id);
1119
1119
  }
1120
- if (message.templateId !== "") {
1121
- writer.uint32(18).string(message.templateId);
1120
+ if (message.definitionId !== "") {
1121
+ writer.uint32(18).string(message.definitionId);
1122
1122
  }
1123
1123
  if (message.organizationId !== "") {
1124
1124
  writer.uint32(26).string(message.organizationId);
@@ -1182,7 +1182,7 @@ exports.AgentVersion = {
1182
1182
  if (tag !== 18) {
1183
1183
  break;
1184
1184
  }
1185
- message.templateId = reader.string();
1185
+ message.definitionId = reader.string();
1186
1186
  continue;
1187
1187
  }
1188
1188
  case 3: {
@@ -1294,10 +1294,10 @@ exports.AgentVersion = {
1294
1294
  fromJSON(object) {
1295
1295
  return {
1296
1296
  id: isSet(object.id) ? globalThis.String(object.id) : "",
1297
- templateId: isSet(object.templateId)
1298
- ? globalThis.String(object.templateId)
1299
- : isSet(object.template_id)
1300
- ? globalThis.String(object.template_id)
1297
+ definitionId: isSet(object.definitionId)
1298
+ ? globalThis.String(object.definitionId)
1299
+ : isSet(object.definition_id)
1300
+ ? globalThis.String(object.definition_id)
1301
1301
  : "",
1302
1302
  organizationId: isSet(object.organizationId)
1303
1303
  ? globalThis.String(object.organizationId)
@@ -1355,8 +1355,8 @@ exports.AgentVersion = {
1355
1355
  if (message.id !== "") {
1356
1356
  obj.id = message.id;
1357
1357
  }
1358
- if (message.templateId !== "") {
1359
- obj.templateId = message.templateId;
1358
+ if (message.definitionId !== "") {
1359
+ obj.definitionId = message.definitionId;
1360
1360
  }
1361
1361
  if (message.organizationId !== "") {
1362
1362
  obj.organizationId = message.organizationId;
@@ -1410,7 +1410,7 @@ exports.AgentVersion = {
1410
1410
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
1411
1411
  const message = createBaseAgentVersion();
1412
1412
  message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
1413
- message.templateId = (_c = object.templateId) !== null && _c !== void 0 ? _c : "";
1413
+ message.definitionId = (_c = object.definitionId) !== null && _c !== void 0 ? _c : "";
1414
1414
  message.organizationId = (_d = object.organizationId) !== null && _d !== void 0 ? _d : "";
1415
1415
  message.version = (_e = object.version) !== null && _e !== void 0 ? _e : 0;
1416
1416
  message.sourceDraftRevision = (_f = object.sourceDraftRevision) !== null && _f !== void 0 ? _f : 0;
@@ -1613,12 +1613,12 @@ exports.AgentToolDescriptor = {
1613
1613
  },
1614
1614
  };
1615
1615
  function createBaseAgentPublishPlan() {
1616
- return { templateId: "", draftRevision: 0, publishable: false, issues: [], compiledPreview: undefined };
1616
+ return { definitionId: "", draftRevision: 0, publishable: false, issues: [], compiledPreview: undefined };
1617
1617
  }
1618
1618
  exports.AgentPublishPlan = {
1619
1619
  encode(message, writer = new wire_1.BinaryWriter()) {
1620
- if (message.templateId !== "") {
1621
- writer.uint32(10).string(message.templateId);
1620
+ if (message.definitionId !== "") {
1621
+ writer.uint32(10).string(message.definitionId);
1622
1622
  }
1623
1623
  if (message.draftRevision !== 0) {
1624
1624
  writer.uint32(16).int32(message.draftRevision);
@@ -1645,7 +1645,7 @@ exports.AgentPublishPlan = {
1645
1645
  if (tag !== 10) {
1646
1646
  break;
1647
1647
  }
1648
- message.templateId = reader.string();
1648
+ message.definitionId = reader.string();
1649
1649
  continue;
1650
1650
  }
1651
1651
  case 2: {
@@ -1686,10 +1686,10 @@ exports.AgentPublishPlan = {
1686
1686
  },
1687
1687
  fromJSON(object) {
1688
1688
  return {
1689
- templateId: isSet(object.templateId)
1690
- ? globalThis.String(object.templateId)
1691
- : isSet(object.template_id)
1692
- ? globalThis.String(object.template_id)
1689
+ definitionId: isSet(object.definitionId)
1690
+ ? globalThis.String(object.definitionId)
1691
+ : isSet(object.definition_id)
1692
+ ? globalThis.String(object.definition_id)
1693
1693
  : "",
1694
1694
  draftRevision: isSet(object.draftRevision)
1695
1695
  ? globalThis.Number(object.draftRevision)
@@ -1710,8 +1710,8 @@ exports.AgentPublishPlan = {
1710
1710
  toJSON(message) {
1711
1711
  var _a;
1712
1712
  const obj = {};
1713
- if (message.templateId !== "") {
1714
- obj.templateId = message.templateId;
1713
+ if (message.definitionId !== "") {
1714
+ obj.definitionId = message.definitionId;
1715
1715
  }
1716
1716
  if (message.draftRevision !== 0) {
1717
1717
  obj.draftRevision = Math.round(message.draftRevision);
@@ -1734,7 +1734,7 @@ exports.AgentPublishPlan = {
1734
1734
  var _a;
1735
1735
  var _b, _c, _d, _e;
1736
1736
  const message = createBaseAgentPublishPlan();
1737
- message.templateId = (_b = object.templateId) !== null && _b !== void 0 ? _b : "";
1737
+ message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
1738
1738
  message.draftRevision = (_c = object.draftRevision) !== null && _c !== void 0 ? _c : 0;
1739
1739
  message.publishable = (_d = object.publishable) !== null && _d !== void 0 ? _d : false;
1740
1740
  message.issues = ((_a = object.issues) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AgentPublishPlanIssue.fromPartial(e))) || [];
@@ -1830,7 +1830,7 @@ function createBaseAgentRun() {
1830
1830
  return {
1831
1831
  id: "",
1832
1832
  organizationId: "",
1833
- agentTemplateId: "",
1833
+ agentDefinitionId: "",
1834
1834
  agentVersionId: "",
1835
1835
  status: 0,
1836
1836
  createdByUserId: "",
@@ -1854,8 +1854,8 @@ exports.AgentRun = {
1854
1854
  if (message.organizationId !== "") {
1855
1855
  writer.uint32(18).string(message.organizationId);
1856
1856
  }
1857
- if (message.agentTemplateId !== "") {
1858
- writer.uint32(26).string(message.agentTemplateId);
1857
+ if (message.agentDefinitionId !== "") {
1858
+ writer.uint32(26).string(message.agentDefinitionId);
1859
1859
  }
1860
1860
  if (message.agentVersionId !== "") {
1861
1861
  writer.uint32(34).string(message.agentVersionId);
@@ -1923,7 +1923,7 @@ exports.AgentRun = {
1923
1923
  if (tag !== 26) {
1924
1924
  break;
1925
1925
  }
1926
- message.agentTemplateId = reader.string();
1926
+ message.agentDefinitionId = reader.string();
1927
1927
  continue;
1928
1928
  }
1929
1929
  case 4: {
@@ -2033,10 +2033,10 @@ exports.AgentRun = {
2033
2033
  : isSet(object.organization_id)
2034
2034
  ? globalThis.String(object.organization_id)
2035
2035
  : "",
2036
- agentTemplateId: isSet(object.agentTemplateId)
2037
- ? globalThis.String(object.agentTemplateId)
2038
- : isSet(object.agent_template_id)
2039
- ? globalThis.String(object.agent_template_id)
2036
+ agentDefinitionId: isSet(object.agentDefinitionId)
2037
+ ? globalThis.String(object.agentDefinitionId)
2038
+ : isSet(object.agent_definition_id)
2039
+ ? globalThis.String(object.agent_definition_id)
2040
2040
  : "",
2041
2041
  agentVersionId: isSet(object.agentVersionId)
2042
2042
  ? globalThis.String(object.agentVersionId)
@@ -2101,8 +2101,8 @@ exports.AgentRun = {
2101
2101
  if (message.organizationId !== "") {
2102
2102
  obj.organizationId = message.organizationId;
2103
2103
  }
2104
- if (message.agentTemplateId !== "") {
2105
- obj.agentTemplateId = message.agentTemplateId;
2104
+ if (message.agentDefinitionId !== "") {
2105
+ obj.agentDefinitionId = message.agentDefinitionId;
2106
2106
  }
2107
2107
  if (message.agentVersionId !== "") {
2108
2108
  obj.agentVersionId = message.agentVersionId;
@@ -2153,7 +2153,7 @@ exports.AgentRun = {
2153
2153
  const message = createBaseAgentRun();
2154
2154
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
2155
2155
  message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
2156
- message.agentTemplateId = (_c = object.agentTemplateId) !== null && _c !== void 0 ? _c : "";
2156
+ message.agentDefinitionId = (_c = object.agentDefinitionId) !== null && _c !== void 0 ? _c : "";
2157
2157
  message.agentVersionId = (_d = object.agentVersionId) !== null && _d !== void 0 ? _d : "";
2158
2158
  message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
2159
2159
  message.createdByUserId = (_f = object.createdByUserId) !== null && _f !== void 0 ? _f : "";