Skip to content

Commit 1f0676e

Browse files
committed
Sync IDLs
1 parent 0ea97a2 commit 1f0676e

File tree

2 files changed

+215
-3
lines changed

2 files changed

+215
-3
lines changed

src/main/thrift/cadence.thrift

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ service WorkflowService {
4343
2: shared.InternalServiceError internalServiceError,
4444
3: shared.DomainAlreadyExistsError domainExistsError,
4545
4: shared.ServiceBusyError serviceBusyError,
46+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
4647
)
4748

4849
/**
@@ -54,6 +55,7 @@ service WorkflowService {
5455
2: shared.InternalServiceError internalServiceError,
5556
3: shared.EntityNotExistsError entityNotExistError,
5657
4: shared.ServiceBusyError serviceBusyError,
58+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
5759
)
5860

5961
/**
@@ -65,6 +67,7 @@ service WorkflowService {
6567
2: shared.InternalServiceError internalServiceError,
6668
3: shared.EntityNotExistsError entityNotExistError,
6769
4: shared.ServiceBusyError serviceBusyError,
70+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
6871
)
6972

7073
/**
@@ -77,6 +80,7 @@ service WorkflowService {
7780
3: shared.EntityNotExistsError entityNotExistError,
7881
4: shared.ServiceBusyError serviceBusyError,
7982
5: shared.DomainNotActiveError domainNotActiveError,
83+
6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
8084
)
8185

8286
/**
@@ -91,6 +95,7 @@ service WorkflowService {
9195
3: shared.EntityNotExistsError entityNotExistError,
9296
4: shared.ServiceBusyError serviceBusyError,
9397
5: shared.DomainNotActiveError domainNotActiveError,
98+
6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
9499
)
95100

96101
/**
@@ -108,6 +113,7 @@ service WorkflowService {
108113
5: shared.DomainNotActiveError domainNotActiveError,
109114
6: shared.LimitExceededError limitExceededError,
110115
7: shared.EntityNotExistsError entityNotExistError,
116+
8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
111117
)
112118

113119
/**
@@ -120,6 +126,7 @@ service WorkflowService {
120126
2: shared.InternalServiceError internalServiceError,
121127
3: shared.EntityNotExistsError entityNotExistError,
122128
4: shared.ServiceBusyError serviceBusyError,
129+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
123130
)
124131

125132
/**
@@ -137,6 +144,7 @@ service WorkflowService {
137144
4: shared.LimitExceededError limitExceededError,
138145
5: shared.EntityNotExistsError entityNotExistError,
139146
6: shared.DomainNotActiveError domainNotActiveError,
147+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
140148
)
141149

142150
/**
@@ -155,6 +163,7 @@ service WorkflowService {
155163
4: shared.DomainNotActiveError domainNotActiveError,
156164
5: shared.LimitExceededError limitExceededError,
157165
6: shared.ServiceBusyError serviceBusyError,
166+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
158167
)
159168

160169
/**
@@ -171,6 +180,7 @@ service WorkflowService {
171180
4: shared.DomainNotActiveError domainNotActiveError,
172181
5: shared.LimitExceededError limitExceededError,
173182
6: shared.ServiceBusyError serviceBusyError,
183+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
174184
)
175185

176186
/**
@@ -190,6 +200,7 @@ service WorkflowService {
190200
4: shared.LimitExceededError limitExceededError,
191201
5: shared.EntityNotExistsError entityNotExistError,
192202
6: shared.DomainNotActiveError domainNotActiveError,
203+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
193204
)
194205

195206
/**
@@ -207,6 +218,7 @@ service WorkflowService {
207218
4: shared.DomainNotActiveError domainNotActiveError,
208219
5: shared.LimitExceededError limitExceededError,
209220
6: shared.ServiceBusyError serviceBusyError,
221+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
210222
)
211223

212224
/**
@@ -224,6 +236,7 @@ service WorkflowService {
224236
4: shared.DomainNotActiveError domainNotActiveError,
225237
5: shared.LimitExceededError limitExceededError,
226238
6: shared.ServiceBusyError serviceBusyError,
239+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
227240
)
228241

229242
/**
@@ -241,6 +254,7 @@ service WorkflowService {
241254
4: shared.DomainNotActiveError domainNotActiveError,
242255
5: shared.LimitExceededError limitExceededError,
243256
6: shared.ServiceBusyError serviceBusyError,
257+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
244258
)
245259

246260
/**
@@ -258,6 +272,7 @@ service WorkflowService {
258272
4: shared.DomainNotActiveError domainNotActiveError,
259273
5: shared.LimitExceededError limitExceededError,
260274
6: shared.ServiceBusyError serviceBusyError,
275+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
261276
)
262277

263278
/**
@@ -275,6 +290,7 @@ service WorkflowService {
275290
4: shared.DomainNotActiveError domainNotActiveError,
276291
5: shared.LimitExceededError limitExceededError,
277292
6: shared.ServiceBusyError serviceBusyError,
293+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
278294
)
279295

280296
/**
@@ -292,6 +308,7 @@ service WorkflowService {
292308
4: shared.DomainNotActiveError domainNotActiveError,
293309
5: shared.LimitExceededError limitExceededError,
294310
6: shared.ServiceBusyError serviceBusyError,
311+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
295312
)
296313

297314
/**
@@ -309,6 +326,7 @@ service WorkflowService {
309326
4: shared.DomainNotActiveError domainNotActiveError,
310327
5: shared.LimitExceededError limitExceededError,
311328
6: shared.ServiceBusyError serviceBusyError,
329+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
312330
)
313331

314332
/**
@@ -326,6 +344,7 @@ service WorkflowService {
326344
4: shared.DomainNotActiveError domainNotActiveError,
327345
5: shared.LimitExceededError limitExceededError,
328346
6: shared.ServiceBusyError serviceBusyError,
347+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
329348
)
330349

331350
/**
@@ -343,6 +362,7 @@ service WorkflowService {
343362
5: shared.ServiceBusyError serviceBusyError,
344363
6: shared.DomainNotActiveError domainNotActiveError,
345364
7: shared.LimitExceededError limitExceededError,
365+
8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
346366
)
347367

348368
/**
@@ -357,6 +377,7 @@ service WorkflowService {
357377
4: shared.ServiceBusyError serviceBusyError,
358378
5: shared.DomainNotActiveError domainNotActiveError,
359379
6: shared.LimitExceededError limitExceededError,
380+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
360381
)
361382

362383
/**
@@ -375,6 +396,22 @@ service WorkflowService {
375396
5: shared.DomainNotActiveError domainNotActiveError,
376397
6: shared.LimitExceededError limitExceededError,
377398
7: shared.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError,
399+
8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
400+
)
401+
402+
/**
403+
* ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive).
404+
* And it will immediately terminating the current execution instance.
405+
**/
406+
shared.ResetWorkflowExecutionResponse ResetWorkflowExecution(1: shared.ResetWorkflowExecutionRequest resetRequest)
407+
throws (
408+
1: shared.BadRequestError badRequestError,
409+
2: shared.InternalServiceError internalServiceError,
410+
3: shared.EntityNotExistsError entityNotExistError,
411+
4: shared.ServiceBusyError serviceBusyError,
412+
5: shared.DomainNotActiveError domainNotActiveError,
413+
6: shared.LimitExceededError limitExceededError,
414+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
378415
)
379416

380417
/**
@@ -389,6 +426,7 @@ service WorkflowService {
389426
4: shared.ServiceBusyError serviceBusyError,
390427
5: shared.DomainNotActiveError domainNotActiveError,
391428
6: shared.LimitExceededError limitExceededError,
429+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
392430
)
393431

394432
/**
@@ -401,6 +439,7 @@ service WorkflowService {
401439
3: shared.EntityNotExistsError entityNotExistError,
402440
4: shared.ServiceBusyError serviceBusyError,
403441
5: shared.LimitExceededError limitExceededError,
442+
6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
404443
)
405444

406445
/**
@@ -412,6 +451,53 @@ service WorkflowService {
412451
2: shared.InternalServiceError internalServiceError,
413452
3: shared.EntityNotExistsError entityNotExistError,
414453
4: shared.ServiceBusyError serviceBusyError,
454+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
455+
)
456+
457+
/**
458+
* ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.
459+
**/
460+
shared.ListWorkflowExecutionsResponse ListWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)
461+
throws (
462+
1: shared.BadRequestError badRequestError,
463+
2: shared.InternalServiceError internalServiceError,
464+
3: shared.EntityNotExistsError entityNotExistError,
465+
4: shared.ServiceBusyError serviceBusyError,
466+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
467+
)
468+
469+
/**
470+
* ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.
471+
**/
472+
shared.ListWorkflowExecutionsResponse ScanWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)
473+
throws (
474+
1: shared.BadRequestError badRequestError,
475+
2: shared.InternalServiceError internalServiceError,
476+
3: shared.EntityNotExistsError entityNotExistError,
477+
4: shared.ServiceBusyError serviceBusyError,
478+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
479+
)
480+
481+
/**
482+
* CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.
483+
**/
484+
shared.CountWorkflowExecutionsResponse CountWorkflowExecutions(1: shared.CountWorkflowExecutionsRequest countRequest)
485+
throws (
486+
1: shared.BadRequestError badRequestError,
487+
2: shared.InternalServiceError internalServiceError,
488+
3: shared.EntityNotExistsError entityNotExistError,
489+
4: shared.ServiceBusyError serviceBusyError,
490+
5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
491+
)
492+
493+
/**
494+
* GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs
495+
**/
496+
shared.GetSearchAttributesResponse GetSearchAttributes()
497+
throws (
498+
1: shared.InternalServiceError internalServiceError,
499+
2: shared.ServiceBusyError serviceBusyError,
500+
3: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
415501
)
416502

417503
/**
@@ -427,6 +513,7 @@ service WorkflowService {
427513
4: shared.LimitExceededError limitExceededError,
428514
5: shared.ServiceBusyError serviceBusyError,
429515
6: shared.DomainNotActiveError domainNotActiveError,
516+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
430517
)
431518

432519
/**
@@ -446,6 +533,7 @@ service WorkflowService {
446533
4: shared.LimitExceededError limitExceededError,
447534
5: shared.ServiceBusyError serviceBusyError,
448535
6: shared.DomainNotActiveError domainNotActiveError,
536+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
449537
)
450538

451539
/**
@@ -459,6 +547,7 @@ service WorkflowService {
459547
4: shared.QueryFailedError queryFailedError,
460548
5: shared.LimitExceededError limitExceededError,
461549
6: shared.ServiceBusyError serviceBusyError,
550+
7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
462551
)
463552

464553
/**
@@ -471,6 +560,7 @@ service WorkflowService {
471560
3: shared.EntityNotExistsError entityNotExistError,
472561
4: shared.LimitExceededError limitExceededError,
473562
5: shared.ServiceBusyError serviceBusyError,
563+
6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
474564
)
475565

476566
/**
@@ -484,6 +574,7 @@ service WorkflowService {
484574
3: shared.EntityNotExistsError entityNotExistError,
485575
4: shared.LimitExceededError limitExceededError,
486576
5: shared.ServiceBusyError serviceBusyError,
577+
6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,
487578
)
488579

489580
}

0 commit comments

Comments
 (0)