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
  import { Observable } from "rxjs";
3
- import { WorkflowDefinition, WorkflowDraft, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun, WorkflowTemplate, WorkflowTemplateStatus, WorkflowVersion } from "./workflow.pb";
3
+ import { WorkflowDefinition, WorkflowDefinitionStatus, WorkflowDraft, WorkflowGraph, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun, WorkflowVersion } from "./workflow.pb";
4
4
  export declare const protobufPackage = "weaveapi.workflow.v1";
5
- export interface CreateWorkflowTemplateRequest {
5
+ export interface CreateWorkflowDefinitionRequest {
6
6
  organizationId: string;
7
7
  slug: string;
8
8
  name: string;
9
9
  description: string;
10
- definition: WorkflowDefinition | undefined;
10
+ graph: WorkflowGraph | undefined;
11
11
  inputSchema: {
12
12
  [key: string]: any;
13
13
  } | undefined;
@@ -18,36 +18,36 @@ export interface CreateWorkflowTemplateRequest {
18
18
  [key: string]: any;
19
19
  } | undefined;
20
20
  }
21
- export interface CreateWorkflowTemplateResponse {
22
- template: WorkflowTemplate | undefined;
21
+ export interface CreateWorkflowDefinitionResponse {
22
+ definition: WorkflowDefinition | undefined;
23
23
  draft: WorkflowDraft | undefined;
24
24
  }
25
- export interface GetWorkflowTemplateRequest {
25
+ export interface GetWorkflowDefinitionRequest {
26
26
  organizationId: string;
27
- workflowTemplateId: string;
27
+ workflowDefinitionId: string;
28
28
  }
29
- export interface GetWorkflowTemplateResponse {
30
- template: WorkflowTemplate | undefined;
29
+ export interface GetWorkflowDefinitionResponse {
30
+ definition: WorkflowDefinition | undefined;
31
31
  draft: WorkflowDraft | undefined;
32
32
  latestVersion: WorkflowVersion | undefined;
33
33
  }
34
- export interface ListWorkflowTemplatesRequest {
34
+ export interface ListWorkflowDefinitionsRequest {
35
35
  organizationId: string;
36
- status: WorkflowTemplateStatus;
36
+ status: WorkflowDefinitionStatus;
37
37
  pageSize: number;
38
38
  pageToken: string;
39
39
  }
40
- export interface ListWorkflowTemplatesResponse {
41
- templates: WorkflowTemplate[];
40
+ export interface ListWorkflowDefinitionsResponse {
41
+ definitions: WorkflowDefinition[];
42
42
  nextPageToken: string;
43
43
  }
44
44
  export interface UpdateWorkflowDraftRequest {
45
45
  organizationId: string;
46
- workflowTemplateId: string;
46
+ workflowDefinitionId: string;
47
47
  expectedRevision: number;
48
48
  name: string;
49
49
  description: string;
50
- definition: WorkflowDefinition | undefined;
50
+ graph: WorkflowGraph | undefined;
51
51
  inputSchema: {
52
52
  [key: string]: any;
53
53
  } | undefined;
@@ -66,23 +66,23 @@ export interface UpdateWorkflowDraftResponse {
66
66
  }
67
67
  export interface PlanWorkflowPublishRequest {
68
68
  organizationId: string;
69
- workflowTemplateId: string;
69
+ workflowDefinitionId: string;
70
70
  draftRevision: number;
71
71
  }
72
72
  export interface PlanWorkflowPublishResponse {
73
73
  plan: WorkflowPublishPlan | undefined;
74
74
  }
75
- export interface PublishWorkflowTemplateRequest {
75
+ export interface PublishWorkflowDefinitionRequest {
76
76
  organizationId: string;
77
- workflowTemplateId: string;
77
+ workflowDefinitionId: string;
78
78
  draftRevision: number;
79
79
  }
80
- export interface PublishWorkflowTemplateResponse {
80
+ export interface PublishWorkflowDefinitionResponse {
81
81
  version: WorkflowVersion | undefined;
82
82
  }
83
83
  export interface GetWorkflowVersionRequest {
84
84
  organizationId: string;
85
- workflowTemplateId: string;
85
+ workflowDefinitionId: string;
86
86
  version: number;
87
87
  }
88
88
  export interface GetWorkflowVersionResponse {
@@ -90,7 +90,7 @@ export interface GetWorkflowVersionResponse {
90
90
  }
91
91
  export interface ListWorkflowVersionsRequest {
92
92
  organizationId: string;
93
- workflowTemplateId: string;
93
+ workflowDefinitionId: string;
94
94
  pageSize: number;
95
95
  pageToken: string;
96
96
  }
@@ -100,7 +100,7 @@ export interface ListWorkflowVersionsResponse {
100
100
  }
101
101
  export interface RunWorkflowRequest {
102
102
  organizationId: string;
103
- workflowTemplateId: string;
103
+ workflowDefinitionId: string;
104
104
  version: number;
105
105
  chatSessionId: string;
106
106
  input: {
@@ -120,7 +120,7 @@ export interface GetWorkflowRunResponse {
120
120
  }
121
121
  export interface ListWorkflowRunsRequest {
122
122
  organizationId: string;
123
- workflowTemplateId: string;
123
+ workflowDefinitionId: string;
124
124
  status: WorkflowRunStatus;
125
125
  pageSize: number;
126
126
  pageToken: string;
@@ -137,18 +137,18 @@ export interface WatchWorkflowRunEventsRequest {
137
137
  export interface WatchWorkflowRunEventsResponse {
138
138
  event: WorkflowRunEvent | undefined;
139
139
  }
140
- export declare const CreateWorkflowTemplateRequest: MessageFns<CreateWorkflowTemplateRequest>;
141
- export declare const CreateWorkflowTemplateResponse: MessageFns<CreateWorkflowTemplateResponse>;
142
- export declare const GetWorkflowTemplateRequest: MessageFns<GetWorkflowTemplateRequest>;
143
- export declare const GetWorkflowTemplateResponse: MessageFns<GetWorkflowTemplateResponse>;
144
- export declare const ListWorkflowTemplatesRequest: MessageFns<ListWorkflowTemplatesRequest>;
145
- export declare const ListWorkflowTemplatesResponse: MessageFns<ListWorkflowTemplatesResponse>;
140
+ export declare const CreateWorkflowDefinitionRequest: MessageFns<CreateWorkflowDefinitionRequest>;
141
+ export declare const CreateWorkflowDefinitionResponse: MessageFns<CreateWorkflowDefinitionResponse>;
142
+ export declare const GetWorkflowDefinitionRequest: MessageFns<GetWorkflowDefinitionRequest>;
143
+ export declare const GetWorkflowDefinitionResponse: MessageFns<GetWorkflowDefinitionResponse>;
144
+ export declare const ListWorkflowDefinitionsRequest: MessageFns<ListWorkflowDefinitionsRequest>;
145
+ export declare const ListWorkflowDefinitionsResponse: MessageFns<ListWorkflowDefinitionsResponse>;
146
146
  export declare const UpdateWorkflowDraftRequest: MessageFns<UpdateWorkflowDraftRequest>;
147
147
  export declare const UpdateWorkflowDraftResponse: MessageFns<UpdateWorkflowDraftResponse>;
148
148
  export declare const PlanWorkflowPublishRequest: MessageFns<PlanWorkflowPublishRequest>;
149
149
  export declare const PlanWorkflowPublishResponse: MessageFns<PlanWorkflowPublishResponse>;
150
- export declare const PublishWorkflowTemplateRequest: MessageFns<PublishWorkflowTemplateRequest>;
151
- export declare const PublishWorkflowTemplateResponse: MessageFns<PublishWorkflowTemplateResponse>;
150
+ export declare const PublishWorkflowDefinitionRequest: MessageFns<PublishWorkflowDefinitionRequest>;
151
+ export declare const PublishWorkflowDefinitionResponse: MessageFns<PublishWorkflowDefinitionResponse>;
152
152
  export declare const GetWorkflowVersionRequest: MessageFns<GetWorkflowVersionRequest>;
153
153
  export declare const GetWorkflowVersionResponse: MessageFns<GetWorkflowVersionResponse>;
154
154
  export declare const ListWorkflowVersionsRequest: MessageFns<ListWorkflowVersionsRequest>;
@@ -162,12 +162,12 @@ export declare const ListWorkflowRunsResponse: MessageFns<ListWorkflowRunsRespon
162
162
  export declare const WatchWorkflowRunEventsRequest: MessageFns<WatchWorkflowRunEventsRequest>;
163
163
  export declare const WatchWorkflowRunEventsResponse: MessageFns<WatchWorkflowRunEventsResponse>;
164
164
  export interface WorkflowService {
165
- CreateWorkflowTemplate(request: CreateWorkflowTemplateRequest): Promise<CreateWorkflowTemplateResponse>;
166
- GetWorkflowTemplate(request: GetWorkflowTemplateRequest): Promise<GetWorkflowTemplateResponse>;
167
- ListWorkflowTemplates(request: ListWorkflowTemplatesRequest): Promise<ListWorkflowTemplatesResponse>;
165
+ CreateWorkflowDefinition(request: CreateWorkflowDefinitionRequest): Promise<CreateWorkflowDefinitionResponse>;
166
+ GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
167
+ ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
168
168
  UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
169
169
  PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
170
- PublishWorkflowTemplate(request: PublishWorkflowTemplateRequest): Promise<PublishWorkflowTemplateResponse>;
170
+ PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
171
171
  GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
172
172
  ListWorkflowVersions(request: ListWorkflowVersionsRequest): Promise<ListWorkflowVersionsResponse>;
173
173
  RunWorkflow(request: RunWorkflowRequest): Promise<RunWorkflowResponse>;
@@ -182,12 +182,12 @@ export declare class WorkflowServiceClientImpl implements WorkflowService {
182
182
  constructor(rpc: Rpc, opts?: {
183
183
  service?: string;
184
184
  });
185
- CreateWorkflowTemplate(request: CreateWorkflowTemplateRequest): Promise<CreateWorkflowTemplateResponse>;
186
- GetWorkflowTemplate(request: GetWorkflowTemplateRequest): Promise<GetWorkflowTemplateResponse>;
187
- ListWorkflowTemplates(request: ListWorkflowTemplatesRequest): Promise<ListWorkflowTemplatesResponse>;
185
+ CreateWorkflowDefinition(request: CreateWorkflowDefinitionRequest): Promise<CreateWorkflowDefinitionResponse>;
186
+ GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
187
+ ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
188
188
  UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
189
189
  PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
190
- PublishWorkflowTemplate(request: PublishWorkflowTemplateRequest): Promise<PublishWorkflowTemplateResponse>;
190
+ PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
191
191
  GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
192
192
  ListWorkflowVersions(request: ListWorkflowVersionsRequest): Promise<ListWorkflowVersionsResponse>;
193
193
  RunWorkflow(request: RunWorkflowRequest): Promise<RunWorkflowResponse>;
@@ -200,11 +200,11 @@ export declare const WorkflowServiceDefinition: {
200
200
  readonly name: "WorkflowService";
201
201
  readonly fullName: "weaveapi.workflow.v1.WorkflowService";
202
202
  readonly methods: {
203
- readonly createWorkflowTemplate: {
204
- readonly name: "CreateWorkflowTemplate";
205
- readonly requestType: typeof CreateWorkflowTemplateRequest;
203
+ readonly createWorkflowDefinition: {
204
+ readonly name: "CreateWorkflowDefinition";
205
+ readonly requestType: typeof CreateWorkflowDefinitionRequest;
206
206
  readonly requestStream: false;
207
- readonly responseType: typeof CreateWorkflowTemplateResponse;
207
+ readonly responseType: typeof CreateWorkflowDefinitionResponse;
208
208
  readonly responseStream: false;
209
209
  readonly options: {
210
210
  readonly _unknownFields: {
@@ -212,11 +212,11 @@ export declare const WorkflowServiceDefinition: {
212
212
  };
213
213
  };
214
214
  };
215
- readonly getWorkflowTemplate: {
216
- readonly name: "GetWorkflowTemplate";
217
- readonly requestType: typeof GetWorkflowTemplateRequest;
215
+ readonly getWorkflowDefinition: {
216
+ readonly name: "GetWorkflowDefinition";
217
+ readonly requestType: typeof GetWorkflowDefinitionRequest;
218
218
  readonly requestStream: false;
219
- readonly responseType: typeof GetWorkflowTemplateResponse;
219
+ readonly responseType: typeof GetWorkflowDefinitionResponse;
220
220
  readonly responseStream: false;
221
221
  readonly options: {
222
222
  readonly _unknownFields: {
@@ -224,11 +224,11 @@ export declare const WorkflowServiceDefinition: {
224
224
  };
225
225
  };
226
226
  };
227
- readonly listWorkflowTemplates: {
228
- readonly name: "ListWorkflowTemplates";
229
- readonly requestType: typeof ListWorkflowTemplatesRequest;
227
+ readonly listWorkflowDefinitions: {
228
+ readonly name: "ListWorkflowDefinitions";
229
+ readonly requestType: typeof ListWorkflowDefinitionsRequest;
230
230
  readonly requestStream: false;
231
- readonly responseType: typeof ListWorkflowTemplatesResponse;
231
+ readonly responseType: typeof ListWorkflowDefinitionsResponse;
232
232
  readonly responseStream: false;
233
233
  readonly options: {
234
234
  readonly _unknownFields: {
@@ -260,11 +260,11 @@ export declare const WorkflowServiceDefinition: {
260
260
  };
261
261
  };
262
262
  };
263
- readonly publishWorkflowTemplate: {
264
- readonly name: "PublishWorkflowTemplate";
265
- readonly requestType: typeof PublishWorkflowTemplateRequest;
263
+ readonly publishWorkflowDefinition: {
264
+ readonly name: "PublishWorkflowDefinition";
265
+ readonly requestType: typeof PublishWorkflowDefinitionRequest;
266
266
  readonly requestStream: false;
267
- readonly responseType: typeof PublishWorkflowTemplateResponse;
267
+ readonly responseType: typeof PublishWorkflowDefinitionResponse;
268
268
  readonly responseStream: false;
269
269
  readonly options: {
270
270
  readonly _unknownFields: {