weave-typescript 0.45.0 → 0.47.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.
@@ -1,13 +1,13 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "weaveapi.workflow.v1";
3
- export declare enum WorkflowTemplateStatus {
4
- WORKFLOW_TEMPLATE_STATUS_UNSPECIFIED = 0,
5
- WORKFLOW_TEMPLATE_STATUS_ACTIVE = 1,
6
- WORKFLOW_TEMPLATE_STATUS_ARCHIVED = 2,
3
+ export declare enum WorkflowDefinitionStatus {
4
+ WORKFLOW_DEFINITION_STATUS_UNSPECIFIED = 0,
5
+ WORKFLOW_DEFINITION_STATUS_ACTIVE = 1,
6
+ WORKFLOW_DEFINITION_STATUS_ARCHIVED = 2,
7
7
  UNRECOGNIZED = -1
8
8
  }
9
- export declare function workflowTemplateStatusFromJSON(object: any): WorkflowTemplateStatus;
10
- export declare function workflowTemplateStatusToJSON(object: WorkflowTemplateStatus): string;
9
+ export declare function workflowDefinitionStatusFromJSON(object: any): WorkflowDefinitionStatus;
10
+ export declare function workflowDefinitionStatusToJSON(object: WorkflowDefinitionStatus): string;
11
11
  export declare enum WorkflowStepKind {
12
12
  WORKFLOW_STEP_KIND_UNSPECIFIED = 0,
13
13
  WORKFLOW_STEP_KIND_AGENT = 1,
@@ -76,13 +76,13 @@ export declare enum ToolCallState {
76
76
  }
77
77
  export declare function toolCallStateFromJSON(object: any): ToolCallState;
78
78
  export declare function toolCallStateToJSON(object: ToolCallState): string;
79
- export interface WorkflowTemplate {
79
+ export interface WorkflowDefinition {
80
80
  id: string;
81
81
  organizationId: string;
82
82
  slug: string;
83
83
  name: string;
84
84
  description: string;
85
- status: WorkflowTemplateStatus;
85
+ status: WorkflowDefinitionStatus;
86
86
  createdByUserId: string;
87
87
  draftRevision: number;
88
88
  latestVersionId: string;
@@ -92,13 +92,13 @@ export interface WorkflowTemplate {
92
92
  }
93
93
  export interface WorkflowDraft {
94
94
  id: string;
95
- templateId: string;
95
+ definitionId: string;
96
96
  organizationId: string;
97
97
  baseVersionId: string;
98
98
  revision: number;
99
99
  name: string;
100
100
  description: string;
101
- definition: WorkflowDefinition | undefined;
101
+ graph: WorkflowGraph | undefined;
102
102
  inputSchema: {
103
103
  [key: string]: any;
104
104
  } | undefined;
@@ -114,7 +114,7 @@ export interface WorkflowDraft {
114
114
  }
115
115
  export interface WorkflowDraftPatch {
116
116
  id: string;
117
- templateId: string;
117
+ definitionId: string;
118
118
  organizationId: string;
119
119
  revision: number;
120
120
  patch: {
@@ -125,13 +125,13 @@ export interface WorkflowDraftPatch {
125
125
  }
126
126
  export interface WorkflowVersion {
127
127
  id: string;
128
- templateId: string;
128
+ definitionId: string;
129
129
  organizationId: string;
130
130
  version: number;
131
131
  sourceDraftRevision: number;
132
132
  name: string;
133
133
  description: string;
134
- definition: WorkflowDefinition | undefined;
134
+ graph: WorkflowGraph | undefined;
135
135
  inputSchema: {
136
136
  [key: string]: any;
137
137
  } | undefined;
@@ -144,7 +144,7 @@ export interface WorkflowVersion {
144
144
  publishedByUserId: string;
145
145
  publishedAt: Date | undefined;
146
146
  }
147
- export interface WorkflowDefinition {
147
+ export interface WorkflowGraph {
148
148
  steps: WorkflowStepDefinition[];
149
149
  edges: WorkflowEdge[];
150
150
  config: {
@@ -175,7 +175,7 @@ export interface WorkflowEdge {
175
175
  condition: string;
176
176
  }
177
177
  export interface WorkflowPublishPlan {
178
- templateId: string;
178
+ definitionId: string;
179
179
  draftRevision: number;
180
180
  publishable: boolean;
181
181
  issues: WorkflowPublishPlanIssue[];
@@ -191,7 +191,7 @@ export interface WorkflowPublishPlanIssue {
191
191
  export interface WorkflowRun {
192
192
  id: string;
193
193
  organizationId: string;
194
- workflowTemplateId: string;
194
+ workflowDefinitionId: string;
195
195
  workflowVersionId: string;
196
196
  status: WorkflowRunStatus;
197
197
  createdByUserId: string;
@@ -263,11 +263,11 @@ export interface ToolCallEvent {
263
263
  safeErrorMessage: string;
264
264
  createdAt: Date | undefined;
265
265
  }
266
- export declare const WorkflowTemplate: MessageFns<WorkflowTemplate>;
266
+ export declare const WorkflowDefinition: MessageFns<WorkflowDefinition>;
267
267
  export declare const WorkflowDraft: MessageFns<WorkflowDraft>;
268
268
  export declare const WorkflowDraftPatch: MessageFns<WorkflowDraftPatch>;
269
269
  export declare const WorkflowVersion: MessageFns<WorkflowVersion>;
270
- export declare const WorkflowDefinition: MessageFns<WorkflowDefinition>;
270
+ export declare const WorkflowGraph: MessageFns<WorkflowGraph>;
271
271
  export declare const WorkflowStepDefinition: MessageFns<WorkflowStepDefinition>;
272
272
  export declare const WorkflowEdge: MessageFns<WorkflowEdge>;
273
273
  export declare const WorkflowPublishPlan: MessageFns<WorkflowPublishPlan>;