@hatchet-dev/typescript-sdk 0.6.1 → 0.7.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.
- package/clients/admin/admin-client.js +2 -2
- package/clients/dispatcher/dispatcher-client.d.ts +1 -0
- package/clients/dispatcher/dispatcher-client.js +13 -0
- package/clients/dispatcher/heartbeat/heartbeat-controller.js +1 -1
- package/clients/hatchet-client/hatchet-client.d.ts +1 -1
- package/clients/listener/child-listener-client.d.ts +2 -2
- package/clients/listener/child-listener-client.js +3 -3
- package/clients/listener/listener-client.d.ts +1 -1
- package/clients/listener/listener-client.js +3 -3
- package/clients/rest/generated/Api.d.ts +210 -3
- package/clients/rest/generated/Api.js +151 -3
- package/clients/rest/generated/data-contracts.d.ts +153 -0
- package/clients/rest/generated/data-contracts.js +24 -1
- package/clients/rest/generated/http-client.d.ts +1 -1
- package/clients/worker/worker.js +3 -3
- package/package.json +2 -2
- package/protoc/dispatcher/dispatcher.d.ts +94 -0
- package/protoc/dispatcher/dispatcher.js +225 -1
- package/step.d.ts +10 -2
- package/step.js +24 -0
- package/util/retrier.js +2 -2
- package/workflow.d.ts +10 -10
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export interface APIMeta {
|
|
2
2
|
auth?: APIMetaAuth;
|
|
3
|
+
/**
|
|
4
|
+
* the Pylon app ID for usepylon.com chat support
|
|
5
|
+
* @example "12345678-1234-1234-1234-123456789012"
|
|
6
|
+
*/
|
|
7
|
+
pylonAppId?: string;
|
|
8
|
+
posthog?: APIMetaPosthog;
|
|
3
9
|
}
|
|
4
10
|
export interface APIMetaAuth {
|
|
5
11
|
/**
|
|
@@ -8,6 +14,18 @@ export interface APIMetaAuth {
|
|
|
8
14
|
*/
|
|
9
15
|
schemes?: string[];
|
|
10
16
|
}
|
|
17
|
+
export interface APIMetaPosthog {
|
|
18
|
+
/**
|
|
19
|
+
* the PostHog API key
|
|
20
|
+
* @example "phk_1234567890abcdef"
|
|
21
|
+
*/
|
|
22
|
+
apiKey?: string;
|
|
23
|
+
/**
|
|
24
|
+
* the PostHog API host
|
|
25
|
+
* @example "https://posthog.example.com"
|
|
26
|
+
*/
|
|
27
|
+
apiHost?: string;
|
|
28
|
+
}
|
|
11
29
|
export type ListAPIMetaIntegration = APIMetaIntegration[];
|
|
12
30
|
export interface APIMetaIntegration {
|
|
13
31
|
/**
|
|
@@ -100,6 +118,8 @@ export interface User {
|
|
|
100
118
|
emailVerified: boolean;
|
|
101
119
|
/** Whether the user has a password set. */
|
|
102
120
|
hasPassword?: boolean;
|
|
121
|
+
/** A hash of the user's email address for use with Pylon Support Chat */
|
|
122
|
+
emailHash?: string;
|
|
103
123
|
}
|
|
104
124
|
export interface UserTenantPublic {
|
|
105
125
|
/**
|
|
@@ -146,6 +166,8 @@ export interface Tenant {
|
|
|
146
166
|
name: string;
|
|
147
167
|
/** The slug of the tenant. */
|
|
148
168
|
slug: string;
|
|
169
|
+
/** Whether the tenant has opted out of analytics. */
|
|
170
|
+
analyticsOptOut?: boolean;
|
|
149
171
|
}
|
|
150
172
|
export interface TenantMember {
|
|
151
173
|
metadata: APIResourceMeta;
|
|
@@ -175,6 +197,33 @@ export interface UpdateTenantInviteRequest {
|
|
|
175
197
|
/** The role of the user in the tenant. */
|
|
176
198
|
role: TenantMemberRole;
|
|
177
199
|
}
|
|
200
|
+
export interface TenantAlertingSettings {
|
|
201
|
+
metadata: APIResourceMeta;
|
|
202
|
+
/** The max frequency at which to alert. */
|
|
203
|
+
maxAlertingFrequency: string;
|
|
204
|
+
/**
|
|
205
|
+
* The last time an alert was sent.
|
|
206
|
+
* @format date-time
|
|
207
|
+
*/
|
|
208
|
+
lastAlertedAt?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface TenantAlertEmailGroup {
|
|
211
|
+
metadata: APIResourceMeta;
|
|
212
|
+
/** A list of emails for users */
|
|
213
|
+
emails: string[];
|
|
214
|
+
}
|
|
215
|
+
export interface TenantAlertEmailGroupList {
|
|
216
|
+
pagination?: PaginationResponse;
|
|
217
|
+
rows?: TenantAlertEmailGroup[];
|
|
218
|
+
}
|
|
219
|
+
export interface CreateTenantAlertEmailGroupRequest {
|
|
220
|
+
/** A list of emails for users */
|
|
221
|
+
emails: string[];
|
|
222
|
+
}
|
|
223
|
+
export interface UpdateTenantAlertEmailGroupRequest {
|
|
224
|
+
/** A list of emails for users */
|
|
225
|
+
emails: string[];
|
|
226
|
+
}
|
|
178
227
|
export interface TenantInvite {
|
|
179
228
|
metadata: APIResourceMeta;
|
|
180
229
|
/** The email of the user to invite. */
|
|
@@ -221,6 +270,14 @@ export interface CreateTenantRequest {
|
|
|
221
270
|
/** The slug of the tenant. */
|
|
222
271
|
slug: string;
|
|
223
272
|
}
|
|
273
|
+
export interface UpdateTenantRequest {
|
|
274
|
+
/** The name of the tenant. */
|
|
275
|
+
name?: string;
|
|
276
|
+
/** Whether the tenant has opted out of analytics. */
|
|
277
|
+
analyticsOptOut?: boolean;
|
|
278
|
+
/** The max frequency at which to alert. */
|
|
279
|
+
maxAlertingFrequency?: string;
|
|
280
|
+
}
|
|
224
281
|
export interface Event {
|
|
225
282
|
metadata: APIResourceMeta;
|
|
226
283
|
/** The key for the event. */
|
|
@@ -231,6 +288,8 @@ export interface Event {
|
|
|
231
288
|
tenantId: string;
|
|
232
289
|
/** The workflow run summary for this event. */
|
|
233
290
|
workflowRunSummary?: EventWorkflowRunSummary;
|
|
291
|
+
/** Additional metadata for the event. */
|
|
292
|
+
additionalMetadata?: object;
|
|
234
293
|
}
|
|
235
294
|
export interface EventData {
|
|
236
295
|
/** The data for the event (JSON bytes). */
|
|
@@ -346,6 +405,7 @@ export interface WorkflowVersion {
|
|
|
346
405
|
workflow?: Workflow;
|
|
347
406
|
concurrency?: WorkflowConcurrency;
|
|
348
407
|
triggers?: WorkflowTriggers;
|
|
408
|
+
scheduleTimeout?: string;
|
|
349
409
|
jobs?: Job[];
|
|
350
410
|
}
|
|
351
411
|
export interface WorkflowVersionDefinition {
|
|
@@ -430,11 +490,22 @@ export interface WorkflowRun {
|
|
|
430
490
|
* @example "bb214807-246e-43a5-a25d-41761d1cff9e"
|
|
431
491
|
*/
|
|
432
492
|
parentStepRunId?: string;
|
|
493
|
+
additionalMetadata?: Record<string, any>;
|
|
433
494
|
}
|
|
434
495
|
export interface WorkflowRunList {
|
|
435
496
|
rows?: WorkflowRun[];
|
|
436
497
|
pagination?: PaginationResponse;
|
|
437
498
|
}
|
|
499
|
+
export interface WorkflowRunsMetrics {
|
|
500
|
+
counts?: WorkflowRunsMetricsCounts;
|
|
501
|
+
}
|
|
502
|
+
export interface WorkflowRunsMetricsCounts {
|
|
503
|
+
PENDING?: number;
|
|
504
|
+
RUNNING?: number;
|
|
505
|
+
SUCCEEDED?: number;
|
|
506
|
+
FAILED?: number;
|
|
507
|
+
QUEUED?: number;
|
|
508
|
+
}
|
|
438
509
|
export declare enum WorkflowRunStatus {
|
|
439
510
|
PENDING = "PENDING",
|
|
440
511
|
RUNNING = "RUNNING",
|
|
@@ -444,6 +515,9 @@ export declare enum WorkflowRunStatus {
|
|
|
444
515
|
QUEUED = "QUEUED"
|
|
445
516
|
}
|
|
446
517
|
export type WorkflowRunStatusList = WorkflowRunStatus[];
|
|
518
|
+
export interface WorkflowRunsCancelRequest {
|
|
519
|
+
workflowRunIds: string[];
|
|
520
|
+
}
|
|
447
521
|
export declare enum JobRunStatus {
|
|
448
522
|
PENDING = "PENDING",
|
|
449
523
|
RUNNING = "RUNNING",
|
|
@@ -523,6 +597,44 @@ export interface StepRun {
|
|
|
523
597
|
cancelledReason?: string;
|
|
524
598
|
cancelledError?: string;
|
|
525
599
|
}
|
|
600
|
+
export declare enum StepRunEventReason {
|
|
601
|
+
REQUEUED_NO_WORKER = "REQUEUED_NO_WORKER",
|
|
602
|
+
REQUEUED_RATE_LIMIT = "REQUEUED_RATE_LIMIT",
|
|
603
|
+
SCHEDULING_TIMED_OUT = "SCHEDULING_TIMED_OUT",
|
|
604
|
+
ASSIGNED = "ASSIGNED",
|
|
605
|
+
STARTED = "STARTED",
|
|
606
|
+
FINISHED = "FINISHED",
|
|
607
|
+
FAILED = "FAILED",
|
|
608
|
+
RETRYING = "RETRYING",
|
|
609
|
+
CANCELLED = "CANCELLED",
|
|
610
|
+
TIMEOUT_REFRESHED = "TIMEOUT_REFRESHED",
|
|
611
|
+
REASSIGNED = "REASSIGNED",
|
|
612
|
+
TIMED_OUT = "TIMED_OUT",
|
|
613
|
+
SLOT_RELEASED = "SLOT_RELEASED",
|
|
614
|
+
RETRIED_BY_USER = "RETRIED_BY_USER"
|
|
615
|
+
}
|
|
616
|
+
export declare enum StepRunEventSeverity {
|
|
617
|
+
INFO = "INFO",
|
|
618
|
+
WARNING = "WARNING",
|
|
619
|
+
CRITICAL = "CRITICAL"
|
|
620
|
+
}
|
|
621
|
+
export interface StepRunEvent {
|
|
622
|
+
id: number;
|
|
623
|
+
/** @format date-time */
|
|
624
|
+
timeFirstSeen: string;
|
|
625
|
+
/** @format date-time */
|
|
626
|
+
timeLastSeen: string;
|
|
627
|
+
stepRunId: string;
|
|
628
|
+
reason: StepRunEventReason;
|
|
629
|
+
severity: StepRunEventSeverity;
|
|
630
|
+
message: string;
|
|
631
|
+
count: number;
|
|
632
|
+
data?: object;
|
|
633
|
+
}
|
|
634
|
+
export interface StepRunEventList {
|
|
635
|
+
pagination?: PaginationResponse;
|
|
636
|
+
rows?: StepRunEvent[];
|
|
637
|
+
}
|
|
526
638
|
export interface WorkerList {
|
|
527
639
|
pagination?: PaginationResponse;
|
|
528
640
|
rows?: Worker[];
|
|
@@ -537,10 +649,30 @@ export interface Worker {
|
|
|
537
649
|
* @example "2022-12-13T20:06:48.888Z"
|
|
538
650
|
*/
|
|
539
651
|
lastHeartbeatAt?: string;
|
|
652
|
+
/**
|
|
653
|
+
* The time this worker last sent a heartbeat.
|
|
654
|
+
* @format date-time
|
|
655
|
+
* @example "2022-12-13T20:06:48.888Z"
|
|
656
|
+
*/
|
|
657
|
+
lastListenerEstablished?: string;
|
|
540
658
|
/** The actions this worker can perform. */
|
|
541
659
|
actions?: string[];
|
|
542
660
|
/** The recent step runs for this worker. */
|
|
543
661
|
recentStepRuns?: StepRun[];
|
|
662
|
+
/** The status of the worker. */
|
|
663
|
+
status?: 'ACTIVE' | 'INACTIVE';
|
|
664
|
+
/** The maximum number of runs this worker can execute concurrently. */
|
|
665
|
+
maxRuns?: number;
|
|
666
|
+
/** The number of runs this worker can execute concurrently. */
|
|
667
|
+
availableRuns?: number;
|
|
668
|
+
/**
|
|
669
|
+
* the id of the assigned dispatcher, in UUID format
|
|
670
|
+
* @format uuid
|
|
671
|
+
* @minLength 36
|
|
672
|
+
* @maxLength 36
|
|
673
|
+
* @example "bb214807-246e-43a5-a25d-41761d1cff9e"
|
|
674
|
+
*/
|
|
675
|
+
dispatcherId?: string;
|
|
544
676
|
}
|
|
545
677
|
export interface APIToken {
|
|
546
678
|
metadata: APIResourceMeta;
|
|
@@ -575,6 +707,7 @@ export interface RerunStepRunRequest {
|
|
|
575
707
|
}
|
|
576
708
|
export interface TriggerWorkflowRunRequest {
|
|
577
709
|
input: object;
|
|
710
|
+
additionalMetadata?: object;
|
|
578
711
|
}
|
|
579
712
|
export interface LinkGithubRepositoryRequest {
|
|
580
713
|
/**
|
|
@@ -684,6 +817,26 @@ export interface ListSNSIntegrations {
|
|
|
684
817
|
pagination: PaginationResponse;
|
|
685
818
|
rows: SNSIntegration[];
|
|
686
819
|
}
|
|
820
|
+
export interface SlackWebhook {
|
|
821
|
+
metadata: APIResourceMeta;
|
|
822
|
+
/**
|
|
823
|
+
* The unique identifier for the tenant that the SNS integration belongs to.
|
|
824
|
+
* @format uuid
|
|
825
|
+
*/
|
|
826
|
+
tenantId: string;
|
|
827
|
+
/** The team name associated with this slack webhook. */
|
|
828
|
+
teamName: string;
|
|
829
|
+
/** The team id associated with this slack webhook. */
|
|
830
|
+
teamId: string;
|
|
831
|
+
/** The channel name associated with this slack webhook. */
|
|
832
|
+
channelName: string;
|
|
833
|
+
/** The channel id associated with this slack webhook. */
|
|
834
|
+
channelId: string;
|
|
835
|
+
}
|
|
836
|
+
export interface ListSlackWebhooks {
|
|
837
|
+
pagination: PaginationResponse;
|
|
838
|
+
rows: SlackWebhook[];
|
|
839
|
+
}
|
|
687
840
|
export interface CreateSNSIntegrationRequest {
|
|
688
841
|
/** The Amazon Resource Name (ARN) of the SNS topic. */
|
|
689
842
|
topicArn: string;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* ---------------------------------------------------------------
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.LogLineOrderByDirection = exports.LogLineOrderByField = exports.LogLineLevel = exports.PullRequestState = exports.StepRunStatus = exports.JobRunStatus = exports.WorkflowRunStatus = exports.EventOrderByDirection = exports.EventOrderByField = exports.TenantMemberRole = void 0;
|
|
13
|
+
exports.LogLineOrderByDirection = exports.LogLineOrderByField = exports.LogLineLevel = exports.PullRequestState = exports.StepRunEventSeverity = exports.StepRunEventReason = exports.StepRunStatus = exports.JobRunStatus = exports.WorkflowRunStatus = exports.EventOrderByDirection = exports.EventOrderByField = exports.TenantMemberRole = void 0;
|
|
14
14
|
var TenantMemberRole;
|
|
15
15
|
(function (TenantMemberRole) {
|
|
16
16
|
TenantMemberRole["OWNER"] = "OWNER";
|
|
@@ -53,6 +53,29 @@ var StepRunStatus;
|
|
|
53
53
|
StepRunStatus["FAILED"] = "FAILED";
|
|
54
54
|
StepRunStatus["CANCELLED"] = "CANCELLED";
|
|
55
55
|
})(StepRunStatus || (exports.StepRunStatus = StepRunStatus = {}));
|
|
56
|
+
var StepRunEventReason;
|
|
57
|
+
(function (StepRunEventReason) {
|
|
58
|
+
StepRunEventReason["REQUEUED_NO_WORKER"] = "REQUEUED_NO_WORKER";
|
|
59
|
+
StepRunEventReason["REQUEUED_RATE_LIMIT"] = "REQUEUED_RATE_LIMIT";
|
|
60
|
+
StepRunEventReason["SCHEDULING_TIMED_OUT"] = "SCHEDULING_TIMED_OUT";
|
|
61
|
+
StepRunEventReason["ASSIGNED"] = "ASSIGNED";
|
|
62
|
+
StepRunEventReason["STARTED"] = "STARTED";
|
|
63
|
+
StepRunEventReason["FINISHED"] = "FINISHED";
|
|
64
|
+
StepRunEventReason["FAILED"] = "FAILED";
|
|
65
|
+
StepRunEventReason["RETRYING"] = "RETRYING";
|
|
66
|
+
StepRunEventReason["CANCELLED"] = "CANCELLED";
|
|
67
|
+
StepRunEventReason["TIMEOUT_REFRESHED"] = "TIMEOUT_REFRESHED";
|
|
68
|
+
StepRunEventReason["REASSIGNED"] = "REASSIGNED";
|
|
69
|
+
StepRunEventReason["TIMED_OUT"] = "TIMED_OUT";
|
|
70
|
+
StepRunEventReason["SLOT_RELEASED"] = "SLOT_RELEASED";
|
|
71
|
+
StepRunEventReason["RETRIED_BY_USER"] = "RETRIED_BY_USER";
|
|
72
|
+
})(StepRunEventReason || (exports.StepRunEventReason = StepRunEventReason = {}));
|
|
73
|
+
var StepRunEventSeverity;
|
|
74
|
+
(function (StepRunEventSeverity) {
|
|
75
|
+
StepRunEventSeverity["INFO"] = "INFO";
|
|
76
|
+
StepRunEventSeverity["WARNING"] = "WARNING";
|
|
77
|
+
StepRunEventSeverity["CRITICAL"] = "CRITICAL";
|
|
78
|
+
})(StepRunEventSeverity || (exports.StepRunEventSeverity = StepRunEventSeverity = {}));
|
|
56
79
|
var PullRequestState;
|
|
57
80
|
(function (PullRequestState) {
|
|
58
81
|
PullRequestState["Open"] = "open";
|
|
@@ -37,5 +37,5 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
37
37
|
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
38
38
|
protected stringifyFormItem(formItem: unknown): string;
|
|
39
39
|
protected createFormData(input: Record<string, unknown>): FormData;
|
|
40
|
-
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T
|
|
40
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
41
41
|
}
|
package/clients/worker/worker.js
CHANGED
|
@@ -49,8 +49,8 @@ class Worker {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
register_workflow(initWorkflow) {
|
|
52
|
-
var _a, _b, _c;
|
|
53
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
var _a, _b, _c;
|
|
54
54
|
const workflow = Object.assign(Object.assign({}, initWorkflow), { id: this.client.config.namespace + initWorkflow.id });
|
|
55
55
|
try {
|
|
56
56
|
const concurrency = ((_a = workflow.concurrency) === null || _a === void 0 ? void 0 : _a.name)
|
|
@@ -301,8 +301,8 @@ class Worker {
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
exitGracefully(handleKill) {
|
|
304
|
-
var _a;
|
|
305
304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
var _a;
|
|
306
306
|
this.killing = true;
|
|
307
307
|
this.logger.info('Starting to exit...');
|
|
308
308
|
try {
|
|
@@ -322,8 +322,8 @@ class Worker {
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
start() {
|
|
325
|
-
var _a, e_1, _b, _c;
|
|
326
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
var _a, e_1, _b, _c;
|
|
327
327
|
// ensure all workflows are registered
|
|
328
328
|
yield Promise.all(this.registeredWorkflowPromises);
|
|
329
329
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatchet-dev/typescript-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Background task orchestration & visibility for developers",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"ts-node": "^10.9.2",
|
|
86
86
|
"ts-proto": "^1.167.0",
|
|
87
87
|
"typedoc": "^0.25.7",
|
|
88
|
-
"typedoc-plugin-markdown": "^
|
|
88
|
+
"typedoc-plugin-markdown": "^4.0.2",
|
|
89
89
|
"typescript": "^5.3.3"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
@@ -211,6 +211,20 @@ export interface HeartbeatRequest {
|
|
|
211
211
|
}
|
|
212
212
|
export interface HeartbeatResponse {
|
|
213
213
|
}
|
|
214
|
+
export interface RefreshTimeoutRequest {
|
|
215
|
+
/** the id of the step run to release */
|
|
216
|
+
stepRunId: string;
|
|
217
|
+
incrementTimeoutBy: string;
|
|
218
|
+
}
|
|
219
|
+
export interface RefreshTimeoutResponse {
|
|
220
|
+
timeoutAt: Date | undefined;
|
|
221
|
+
}
|
|
222
|
+
export interface ReleaseSlotRequest {
|
|
223
|
+
/** the id of the step run to release */
|
|
224
|
+
stepRunId: string;
|
|
225
|
+
}
|
|
226
|
+
export interface ReleaseSlotResponse {
|
|
227
|
+
}
|
|
214
228
|
export declare const WorkerRegisterRequest: {
|
|
215
229
|
encode(message: WorkerRegisterRequest, writer?: _m0.Writer): _m0.Writer;
|
|
216
230
|
decode(input: _m0.Reader | Uint8Array, length?: number): WorkerRegisterRequest;
|
|
@@ -355,6 +369,38 @@ export declare const HeartbeatResponse: {
|
|
|
355
369
|
create(base?: DeepPartial<HeartbeatResponse>): HeartbeatResponse;
|
|
356
370
|
fromPartial(_: DeepPartial<HeartbeatResponse>): HeartbeatResponse;
|
|
357
371
|
};
|
|
372
|
+
export declare const RefreshTimeoutRequest: {
|
|
373
|
+
encode(message: RefreshTimeoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
374
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RefreshTimeoutRequest;
|
|
375
|
+
fromJSON(object: any): RefreshTimeoutRequest;
|
|
376
|
+
toJSON(message: RefreshTimeoutRequest): unknown;
|
|
377
|
+
create(base?: DeepPartial<RefreshTimeoutRequest>): RefreshTimeoutRequest;
|
|
378
|
+
fromPartial(object: DeepPartial<RefreshTimeoutRequest>): RefreshTimeoutRequest;
|
|
379
|
+
};
|
|
380
|
+
export declare const RefreshTimeoutResponse: {
|
|
381
|
+
encode(message: RefreshTimeoutResponse, writer?: _m0.Writer): _m0.Writer;
|
|
382
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RefreshTimeoutResponse;
|
|
383
|
+
fromJSON(object: any): RefreshTimeoutResponse;
|
|
384
|
+
toJSON(message: RefreshTimeoutResponse): unknown;
|
|
385
|
+
create(base?: DeepPartial<RefreshTimeoutResponse>): RefreshTimeoutResponse;
|
|
386
|
+
fromPartial(object: DeepPartial<RefreshTimeoutResponse>): RefreshTimeoutResponse;
|
|
387
|
+
};
|
|
388
|
+
export declare const ReleaseSlotRequest: {
|
|
389
|
+
encode(message: ReleaseSlotRequest, writer?: _m0.Writer): _m0.Writer;
|
|
390
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleaseSlotRequest;
|
|
391
|
+
fromJSON(object: any): ReleaseSlotRequest;
|
|
392
|
+
toJSON(message: ReleaseSlotRequest): unknown;
|
|
393
|
+
create(base?: DeepPartial<ReleaseSlotRequest>): ReleaseSlotRequest;
|
|
394
|
+
fromPartial(object: DeepPartial<ReleaseSlotRequest>): ReleaseSlotRequest;
|
|
395
|
+
};
|
|
396
|
+
export declare const ReleaseSlotResponse: {
|
|
397
|
+
encode(_: ReleaseSlotResponse, writer?: _m0.Writer): _m0.Writer;
|
|
398
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleaseSlotResponse;
|
|
399
|
+
fromJSON(_: any): ReleaseSlotResponse;
|
|
400
|
+
toJSON(_: ReleaseSlotResponse): unknown;
|
|
401
|
+
create(base?: DeepPartial<ReleaseSlotResponse>): ReleaseSlotResponse;
|
|
402
|
+
fromPartial(_: DeepPartial<ReleaseSlotResponse>): ReleaseSlotResponse;
|
|
403
|
+
};
|
|
358
404
|
export type DispatcherDefinition = typeof DispatcherDefinition;
|
|
359
405
|
export declare const DispatcherDefinition: {
|
|
360
406
|
readonly name: "Dispatcher";
|
|
@@ -585,6 +631,50 @@ export declare const DispatcherDefinition: {
|
|
|
585
631
|
readonly responseStream: false;
|
|
586
632
|
readonly options: {};
|
|
587
633
|
};
|
|
634
|
+
readonly refreshTimeout: {
|
|
635
|
+
readonly name: "RefreshTimeout";
|
|
636
|
+
readonly requestType: {
|
|
637
|
+
encode(message: RefreshTimeoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
638
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RefreshTimeoutRequest;
|
|
639
|
+
fromJSON(object: any): RefreshTimeoutRequest;
|
|
640
|
+
toJSON(message: RefreshTimeoutRequest): unknown;
|
|
641
|
+
create(base?: DeepPartial<RefreshTimeoutRequest>): RefreshTimeoutRequest;
|
|
642
|
+
fromPartial(object: DeepPartial<RefreshTimeoutRequest>): RefreshTimeoutRequest;
|
|
643
|
+
};
|
|
644
|
+
readonly requestStream: false;
|
|
645
|
+
readonly responseType: {
|
|
646
|
+
encode(message: RefreshTimeoutResponse, writer?: _m0.Writer): _m0.Writer;
|
|
647
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RefreshTimeoutResponse;
|
|
648
|
+
fromJSON(object: any): RefreshTimeoutResponse;
|
|
649
|
+
toJSON(message: RefreshTimeoutResponse): unknown;
|
|
650
|
+
create(base?: DeepPartial<RefreshTimeoutResponse>): RefreshTimeoutResponse;
|
|
651
|
+
fromPartial(object: DeepPartial<RefreshTimeoutResponse>): RefreshTimeoutResponse;
|
|
652
|
+
};
|
|
653
|
+
readonly responseStream: false;
|
|
654
|
+
readonly options: {};
|
|
655
|
+
};
|
|
656
|
+
readonly releaseSlot: {
|
|
657
|
+
readonly name: "ReleaseSlot";
|
|
658
|
+
readonly requestType: {
|
|
659
|
+
encode(message: ReleaseSlotRequest, writer?: _m0.Writer): _m0.Writer;
|
|
660
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleaseSlotRequest;
|
|
661
|
+
fromJSON(object: any): ReleaseSlotRequest;
|
|
662
|
+
toJSON(message: ReleaseSlotRequest): unknown;
|
|
663
|
+
create(base?: DeepPartial<ReleaseSlotRequest>): ReleaseSlotRequest;
|
|
664
|
+
fromPartial(object: DeepPartial<ReleaseSlotRequest>): ReleaseSlotRequest;
|
|
665
|
+
};
|
|
666
|
+
readonly requestStream: false;
|
|
667
|
+
readonly responseType: {
|
|
668
|
+
encode(_: ReleaseSlotResponse, writer?: _m0.Writer): _m0.Writer;
|
|
669
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReleaseSlotResponse;
|
|
670
|
+
fromJSON(_: any): ReleaseSlotResponse;
|
|
671
|
+
toJSON(_: ReleaseSlotResponse): unknown;
|
|
672
|
+
create(base?: DeepPartial<ReleaseSlotResponse>): ReleaseSlotResponse;
|
|
673
|
+
fromPartial(_: DeepPartial<ReleaseSlotResponse>): ReleaseSlotResponse;
|
|
674
|
+
};
|
|
675
|
+
readonly responseStream: false;
|
|
676
|
+
readonly options: {};
|
|
677
|
+
};
|
|
588
678
|
};
|
|
589
679
|
};
|
|
590
680
|
export interface DispatcherServiceImplementation<CallContextExt = {}> {
|
|
@@ -603,6 +693,8 @@ export interface DispatcherServiceImplementation<CallContextExt = {}> {
|
|
|
603
693
|
sendGroupKeyActionEvent(request: GroupKeyActionEvent, context: CallContext & CallContextExt): Promise<DeepPartial<ActionEventResponse>>;
|
|
604
694
|
putOverridesData(request: OverridesData, context: CallContext & CallContextExt): Promise<DeepPartial<OverridesDataResponse>>;
|
|
605
695
|
unsubscribe(request: WorkerUnsubscribeRequest, context: CallContext & CallContextExt): Promise<DeepPartial<WorkerUnsubscribeResponse>>;
|
|
696
|
+
refreshTimeout(request: RefreshTimeoutRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RefreshTimeoutResponse>>;
|
|
697
|
+
releaseSlot(request: ReleaseSlotRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ReleaseSlotResponse>>;
|
|
606
698
|
}
|
|
607
699
|
export interface DispatcherClient<CallOptionsExt = {}> {
|
|
608
700
|
register(request: DeepPartial<WorkerRegisterRequest>, options?: CallOptions & CallOptionsExt): Promise<WorkerRegisterResponse>;
|
|
@@ -620,6 +712,8 @@ export interface DispatcherClient<CallOptionsExt = {}> {
|
|
|
620
712
|
sendGroupKeyActionEvent(request: DeepPartial<GroupKeyActionEvent>, options?: CallOptions & CallOptionsExt): Promise<ActionEventResponse>;
|
|
621
713
|
putOverridesData(request: DeepPartial<OverridesData>, options?: CallOptions & CallOptionsExt): Promise<OverridesDataResponse>;
|
|
622
714
|
unsubscribe(request: DeepPartial<WorkerUnsubscribeRequest>, options?: CallOptions & CallOptionsExt): Promise<WorkerUnsubscribeResponse>;
|
|
715
|
+
refreshTimeout(request: DeepPartial<RefreshTimeoutRequest>, options?: CallOptions & CallOptionsExt): Promise<RefreshTimeoutResponse>;
|
|
716
|
+
releaseSlot(request: DeepPartial<ReleaseSlotRequest>, options?: CallOptions & CallOptionsExt): Promise<ReleaseSlotResponse>;
|
|
623
717
|
}
|
|
624
718
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
625
719
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|