@hatchet-dev/typescript-sdk 1.10.0 → 1.10.2
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/rest/generated/Api.d.ts +88 -6
- package/clients/rest/generated/Api.js +51 -1
- package/clients/rest/generated/data-contracts.d.ts +57 -2
- package/clients/rest/generated/data-contracts.js +10 -1
- package/package.json +1 -1
- package/protoc/dispatcher/dispatcher.d.ts +1 -1
- package/protoc/dispatcher/dispatcher.js +29 -29
- package/protoc/events/events.d.ts +2 -2
- package/protoc/events/events.js +10 -10
- package/protoc/google/protobuf/timestamp.js +2 -2
- package/protoc/v1/dispatcher.d.ts +1 -1
- package/protoc/v1/dispatcher.js +5 -5
- package/protoc/v1/shared/condition.js +7 -7
- package/protoc/v1/workflows.d.ts +1 -1
- package/protoc/v1/workflows.js +16 -16
- package/protoc/workflows/workflows.d.ts +1 -1
- package/protoc/workflows/workflows.js +21 -21
- package/v1/client/admin.js +11 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AcceptInviteRequest, APIErrors, APIMeta, BulkCreateEventRequest, BulkCreateEventResponse, CancelEventRequest, CreateAPITokenRequest, CreateAPITokenResponse, CreateCronWorkflowTriggerRequest, CreateEventRequest, CreateSNSIntegrationRequest, CreateTenantAlertEmailGroupRequest, CreateTenantInviteRequest, CreateTenantRequest, CronWorkflows, CronWorkflowsList, CronWorkflowsOrderByField, Event, EventData, EventKey, EventKeyList, EventList, EventOrderByDirection, EventOrderByField, EventSearch, ListAPIMetaIntegration, ListAPITokensResponse, ListSlackWebhooks, ListSNSIntegrations, LogLineLevelField, LogLineList, LogLineOrderByDirection, LogLineOrderByField, LogLineSearch, RateLimitList, RateLimitOrderByDirection, RateLimitOrderByField, RejectInviteRequest, ReplayEventRequest, ReplayWorkflowRunsRequest, ReplayWorkflowRunsResponse, RerunStepRunRequest, ScheduledRunStatus, ScheduledWorkflows, ScheduledWorkflowsList, ScheduledWorkflowsOrderByField, ScheduleWorkflowRunRequest, SNSIntegration, StepRun, StepRunArchiveList, StepRunEventList, Tenant, TenantAlertEmailGroup, TenantAlertEmailGroupList, TenantAlertingSettings, TenantInvite, TenantInviteList, TenantMember, TenantMemberList, TenantQueueMetrics, TenantResourcePolicy, TenantStepRunQueueMetrics, TriggerWorkflowRunRequest, UpdateTenantAlertEmailGroupRequest, UpdateTenantInviteRequest, UpdateTenantRequest, UpdateWorkerRequest, User, UserChangePasswordRequest, UserLoginRequest, UserRegisterRequest, UserTenantMembershipsList, V1CancelledTasks, V1CancelTaskRequest, V1CELDebugRequest, V1CELDebugResponse, V1CreateFilterRequest, V1CreateWebhookRequest, V1DagChildren, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayedTasks, V1ReplayTaskRequest, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, V1Webhook, V1WebhookList, V1WebhookSourceName, V1WorkflowRunDetails, V1WorkflowRunDisplayNameList, WebhookWorkerCreated, WebhookWorkerCreateRequest, WebhookWorkerListResponse, WebhookWorkerRequestListResponse, Worker, WorkerList, Workflow, WorkflowID, WorkflowKindList, WorkflowList, WorkflowMetrics, WorkflowRun, WorkflowRunList, WorkflowRunOrderByDirection, WorkflowRunOrderByField, WorkflowRunsCancelRequest, WorkflowRunShape, WorkflowRunsMetrics, WorkflowRunStatus, WorkflowRunStatusList, WorkflowUpdateRequest, WorkflowVersion, WorkflowWorkersCount } from './data-contracts';
|
|
1
|
+
import { AcceptInviteRequest, APIErrors, APIMeta, BulkCreateEventRequest, BulkCreateEventResponse, CancelEventRequest, CreateAPITokenRequest, CreateAPITokenResponse, CreateCronWorkflowTriggerRequest, CreateEventRequest, CreateSNSIntegrationRequest, CreateTenantAlertEmailGroupRequest, CreateTenantInviteRequest, CreateTenantRequest, CronWorkflows, CronWorkflowsList, CronWorkflowsOrderByField, Event, EventData, EventKey, EventKeyList, EventList, EventOrderByDirection, EventOrderByField, EventSearch, ListAPIMetaIntegration, ListAPITokensResponse, ListSlackWebhooks, ListSNSIntegrations, LogLineLevelField, LogLineList, LogLineOrderByDirection, LogLineOrderByField, LogLineSearch, RateLimitList, RateLimitOrderByDirection, RateLimitOrderByField, RejectInviteRequest, ReplayEventRequest, ReplayWorkflowRunsRequest, ReplayWorkflowRunsResponse, RerunStepRunRequest, ScheduledRunStatus, ScheduledWorkflows, ScheduledWorkflowsList, ScheduledWorkflowsOrderByField, ScheduleWorkflowRunRequest, SNSIntegration, StepRun, StepRunArchiveList, StepRunEventList, TaskStats, Tenant, TenantAlertEmailGroup, TenantAlertEmailGroupList, TenantAlertingSettings, TenantInvite, TenantInviteList, TenantMember, TenantMemberList, TenantQueueMetrics, TenantResourcePolicy, TenantStepRunQueueMetrics, TriggerWorkflowRunRequest, UpdateCronWorkflowTriggerRequest, UpdateTenantAlertEmailGroupRequest, UpdateTenantInviteRequest, UpdateTenantMemberRequest, UpdateTenantRequest, UpdateWorkerRequest, User, UserChangePasswordRequest, UserLoginRequest, UserRegisterRequest, UserTenantMembershipsList, V1CancelledTasks, V1CancelTaskRequest, V1CELDebugRequest, V1CELDebugResponse, V1CreateFilterRequest, V1CreateWebhookRequest, V1DagChildren, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayedTasks, V1ReplayTaskRequest, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, V1WebhookSourceName, V1WorkflowRunDetails, V1WorkflowRunDisplayNameList, V1WorkflowRunExternalIdList, WebhookWorkerCreated, WebhookWorkerCreateRequest, WebhookWorkerListResponse, WebhookWorkerRequestListResponse, Worker, WorkerList, Workflow, WorkflowID, WorkflowKindList, WorkflowList, WorkflowMetrics, WorkflowRun, WorkflowRunList, WorkflowRunOrderByDirection, WorkflowRunOrderByField, WorkflowRunsCancelRequest, WorkflowRunShape, WorkflowRunsMetrics, WorkflowRunStatus, WorkflowRunStatusList, WorkflowUpdateRequest, WorkflowVersion, WorkflowWorkersCount } from './data-contracts';
|
|
2
2
|
import { HttpClient, RequestParams } from './http-client';
|
|
3
3
|
export declare class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
@@ -44,7 +44,23 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
44
44
|
* @request GET:/api/v1/stable/tasks/{task}/logs
|
|
45
45
|
* @secure
|
|
46
46
|
*/
|
|
47
|
-
v1LogLineList: (task: string,
|
|
47
|
+
v1LogLineList: (task: string, query?: {
|
|
48
|
+
/**
|
|
49
|
+
* The number to limit by
|
|
50
|
+
* @format int64
|
|
51
|
+
*/
|
|
52
|
+
limit?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The start time to get logs for
|
|
55
|
+
* @format date-time
|
|
56
|
+
*/
|
|
57
|
+
since?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The end time to get logs for
|
|
60
|
+
* @format date-time
|
|
61
|
+
*/
|
|
62
|
+
until?: string;
|
|
63
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1LogLineList, any, {}>>;
|
|
48
64
|
/**
|
|
49
65
|
* @description Cancel tasks
|
|
50
66
|
*
|
|
@@ -160,6 +176,33 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
160
176
|
/** The external ids of the workflow runs to get display names for */
|
|
161
177
|
external_ids: string[];
|
|
162
178
|
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1WorkflowRunDisplayNameList, any, {}>>;
|
|
179
|
+
/**
|
|
180
|
+
* @description Lists external ids for workflow runs matching filters
|
|
181
|
+
*
|
|
182
|
+
* @tags Workflow Runs
|
|
183
|
+
* @name V1WorkflowRunExternalIdsList
|
|
184
|
+
* @summary List workflow run external ids
|
|
185
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/workflow-runs/external-ids
|
|
186
|
+
* @secure
|
|
187
|
+
*/
|
|
188
|
+
v1WorkflowRunExternalIdsList: (tenant: string, query: {
|
|
189
|
+
/** A list of statuses to filter by */
|
|
190
|
+
statuses?: V1TaskStatus[];
|
|
191
|
+
/**
|
|
192
|
+
* The earliest date to filter by
|
|
193
|
+
* @format date-time
|
|
194
|
+
*/
|
|
195
|
+
since: string;
|
|
196
|
+
/**
|
|
197
|
+
* The latest date to filter by
|
|
198
|
+
* @format date-time
|
|
199
|
+
*/
|
|
200
|
+
until?: string;
|
|
201
|
+
/** Additional metadata k-v pairs to filter by */
|
|
202
|
+
additional_metadata?: string[];
|
|
203
|
+
/** The workflow ids to find runs for */
|
|
204
|
+
workflow_ids?: string[];
|
|
205
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1WorkflowRunExternalIdList, any, {}>>;
|
|
163
206
|
/**
|
|
164
207
|
* @description Trigger a new workflow run
|
|
165
208
|
*
|
|
@@ -263,6 +306,8 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
263
306
|
* @maxLength 36
|
|
264
307
|
*/
|
|
265
308
|
triggering_event_external_id?: string;
|
|
309
|
+
/** Additional metadata k-v pairs to filter by */
|
|
310
|
+
additional_metadata?: string[];
|
|
266
311
|
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1TaskRunMetrics, any, {}>>;
|
|
267
312
|
/**
|
|
268
313
|
* @description Get a minute by minute breakdown of task metrics for a tenant
|
|
@@ -465,10 +510,17 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
465
510
|
* @summary Post a webhook message
|
|
466
511
|
* @request POST:/api/v1/stable/tenants/{tenant}/webhooks/{v1-webhook}
|
|
467
512
|
*/
|
|
468
|
-
v1WebhookReceive: (tenant: string, v1Webhook: string, data?: any, params?: RequestParams) => Promise<import("axios").AxiosResponse<{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
513
|
+
v1WebhookReceive: (tenant: string, v1Webhook: string, data?: any, params?: RequestParams) => Promise<import("axios").AxiosResponse<Record<string, any>, any, {}>>;
|
|
514
|
+
/**
|
|
515
|
+
* @description Update a webhook
|
|
516
|
+
*
|
|
517
|
+
* @tags Webhook
|
|
518
|
+
* @name V1WebhookUpdate
|
|
519
|
+
* @summary Update a webhook
|
|
520
|
+
* @request PATCH:/api/v1/stable/tenants/{tenant}/webhooks/{v1-webhook}
|
|
521
|
+
* @secure
|
|
522
|
+
*/
|
|
523
|
+
v1WebhookUpdate: (tenant: string, v1Webhook: string, data: V1UpdateWebhookRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1Webhook, any, {}>>;
|
|
472
524
|
/**
|
|
473
525
|
* @description Evaluate a CEL expression against provided input data.
|
|
474
526
|
*
|
|
@@ -1033,6 +1085,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
1033
1085
|
* @secure
|
|
1034
1086
|
*/
|
|
1035
1087
|
tenantMemberList: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<TenantMemberList, any, {}>>;
|
|
1088
|
+
/**
|
|
1089
|
+
* @description Update a tenant member
|
|
1090
|
+
*
|
|
1091
|
+
* @tags Tenant
|
|
1092
|
+
* @name TenantMemberUpdate
|
|
1093
|
+
* @summary Update a tenant member
|
|
1094
|
+
* @request PATCH:/api/v1/tenants/{tenant}/members/{member}
|
|
1095
|
+
* @secure
|
|
1096
|
+
*/
|
|
1097
|
+
tenantMemberUpdate: (tenant: string, member: string, data: UpdateTenantMemberRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<TenantMember, any, {}>>;
|
|
1036
1098
|
/**
|
|
1037
1099
|
* @description Delete a member from a tenant
|
|
1038
1100
|
*
|
|
@@ -1252,6 +1314,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
1252
1314
|
* @secure
|
|
1253
1315
|
*/
|
|
1254
1316
|
workflowCronDelete: (tenant: string, cronWorkflow: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1317
|
+
/**
|
|
1318
|
+
* @description Update a cron workflow for a tenant
|
|
1319
|
+
*
|
|
1320
|
+
* @tags Workflow
|
|
1321
|
+
* @name WorkflowCronUpdate
|
|
1322
|
+
* @summary Update cron job workflow run
|
|
1323
|
+
* @request PATCH:/api/v1/tenants/{tenant}/workflows/crons/{cron-workflow}
|
|
1324
|
+
* @secure
|
|
1325
|
+
*/
|
|
1326
|
+
workflowCronUpdate: (tenant: string, cronWorkflow: string, data: UpdateCronWorkflowTriggerRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1255
1327
|
/**
|
|
1256
1328
|
* @description Cancel a batch of workflow runs
|
|
1257
1329
|
*
|
|
@@ -1760,4 +1832,14 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
1760
1832
|
* @secure
|
|
1761
1833
|
*/
|
|
1762
1834
|
tenantGetPrometheusMetrics: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
1835
|
+
/**
|
|
1836
|
+
* @description Get task stats for tenant
|
|
1837
|
+
*
|
|
1838
|
+
* @tags Tenant
|
|
1839
|
+
* @name TenantGetTaskStats
|
|
1840
|
+
* @summary Get task stats for tenant
|
|
1841
|
+
* @request GET:/api/v1/tenants/{tenant}/task-stats
|
|
1842
|
+
* @secure
|
|
1843
|
+
*/
|
|
1844
|
+
tenantGetTaskStats: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<TaskStats, any, {}>>;
|
|
1763
1845
|
}
|
|
@@ -45,7 +45,7 @@ class Api extends http_client_1.HttpClient {
|
|
|
45
45
|
* @request GET:/api/v1/stable/tasks/{task}/logs
|
|
46
46
|
* @secure
|
|
47
47
|
*/
|
|
48
|
-
this.v1LogLineList = (task, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tasks/${task}/logs`, method: 'GET', secure: true, format: 'json' }, params));
|
|
48
|
+
this.v1LogLineList = (task, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tasks/${task}/logs`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
49
49
|
/**
|
|
50
50
|
* @description Cancel tasks
|
|
51
51
|
*
|
|
@@ -96,6 +96,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
96
96
|
* @secure
|
|
97
97
|
*/
|
|
98
98
|
this.v1WorkflowRunDisplayNamesList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/workflow-runs/display-names`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
99
|
+
/**
|
|
100
|
+
* @description Lists external ids for workflow runs matching filters
|
|
101
|
+
*
|
|
102
|
+
* @tags Workflow Runs
|
|
103
|
+
* @name V1WorkflowRunExternalIdsList
|
|
104
|
+
* @summary List workflow run external ids
|
|
105
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/workflow-runs/external-ids
|
|
106
|
+
* @secure
|
|
107
|
+
*/
|
|
108
|
+
this.v1WorkflowRunExternalIdsList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/workflow-runs/external-ids`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
99
109
|
/**
|
|
100
110
|
* @description Trigger a new workflow run
|
|
101
111
|
*
|
|
@@ -282,6 +292,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
282
292
|
* @request POST:/api/v1/stable/tenants/{tenant}/webhooks/{v1-webhook}
|
|
283
293
|
*/
|
|
284
294
|
this.v1WebhookReceive = (tenant, v1Webhook, data, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/webhooks/${v1Webhook}`, method: 'POST', body: data, format: 'json' }, params));
|
|
295
|
+
/**
|
|
296
|
+
* @description Update a webhook
|
|
297
|
+
*
|
|
298
|
+
* @tags Webhook
|
|
299
|
+
* @name V1WebhookUpdate
|
|
300
|
+
* @summary Update a webhook
|
|
301
|
+
* @request PATCH:/api/v1/stable/tenants/{tenant}/webhooks/{v1-webhook}
|
|
302
|
+
* @secure
|
|
303
|
+
*/
|
|
304
|
+
this.v1WebhookUpdate = (tenant, v1Webhook, data, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/webhooks/${v1Webhook}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
285
305
|
/**
|
|
286
306
|
* @description Evaluate a CEL expression against provided input data.
|
|
287
307
|
*
|
|
@@ -789,6 +809,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
789
809
|
* @secure
|
|
790
810
|
*/
|
|
791
811
|
this.tenantMemberList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/members`, method: 'GET', secure: true, format: 'json' }, params));
|
|
812
|
+
/**
|
|
813
|
+
* @description Update a tenant member
|
|
814
|
+
*
|
|
815
|
+
* @tags Tenant
|
|
816
|
+
* @name TenantMemberUpdate
|
|
817
|
+
* @summary Update a tenant member
|
|
818
|
+
* @request PATCH:/api/v1/tenants/{tenant}/members/{member}
|
|
819
|
+
* @secure
|
|
820
|
+
*/
|
|
821
|
+
this.tenantMemberUpdate = (tenant, member, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/members/${member}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
792
822
|
/**
|
|
793
823
|
* @description Delete a member from a tenant
|
|
794
824
|
*
|
|
@@ -919,6 +949,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
919
949
|
* @secure
|
|
920
950
|
*/
|
|
921
951
|
this.workflowCronDelete = (tenant, cronWorkflow, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/workflows/crons/${cronWorkflow}`, method: 'DELETE', secure: true }, params));
|
|
952
|
+
/**
|
|
953
|
+
* @description Update a cron workflow for a tenant
|
|
954
|
+
*
|
|
955
|
+
* @tags Workflow
|
|
956
|
+
* @name WorkflowCronUpdate
|
|
957
|
+
* @summary Update cron job workflow run
|
|
958
|
+
* @request PATCH:/api/v1/tenants/{tenant}/workflows/crons/{cron-workflow}
|
|
959
|
+
* @secure
|
|
960
|
+
*/
|
|
961
|
+
this.workflowCronUpdate = (tenant, cronWorkflow, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/workflows/crons/${cronWorkflow}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json }, params));
|
|
922
962
|
/**
|
|
923
963
|
* @description Cancel a batch of workflow runs
|
|
924
964
|
*
|
|
@@ -1232,6 +1272,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
1232
1272
|
* @secure
|
|
1233
1273
|
*/
|
|
1234
1274
|
this.tenantGetPrometheusMetrics = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/prometheus-metrics`, method: 'GET', secure: true }, params));
|
|
1275
|
+
/**
|
|
1276
|
+
* @description Get task stats for tenant
|
|
1277
|
+
*
|
|
1278
|
+
* @tags Tenant
|
|
1279
|
+
* @name TenantGetTaskStats
|
|
1280
|
+
* @summary Get task stats for tenant
|
|
1281
|
+
* @request GET:/api/v1/tenants/{tenant}/task-stats
|
|
1282
|
+
* @secure
|
|
1283
|
+
*/
|
|
1284
|
+
this.tenantGetTaskStats = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/task-stats`, method: 'GET', secure: true, format: 'json' }, params));
|
|
1235
1285
|
}
|
|
1236
1286
|
}
|
|
1237
1287
|
exports.Api = Api;
|
|
@@ -193,6 +193,8 @@ export interface Tenant {
|
|
|
193
193
|
version: 'V0' | 'V1';
|
|
194
194
|
/** The UI of the tenant. */
|
|
195
195
|
uiVersion?: 'V0' | 'V1';
|
|
196
|
+
/** The environment type of the tenant. */
|
|
197
|
+
environment?: TenantEnvironment;
|
|
196
198
|
}
|
|
197
199
|
export interface TenantMember {
|
|
198
200
|
metadata: APIResourceMeta;
|
|
@@ -207,6 +209,11 @@ export interface TenantMemberList {
|
|
|
207
209
|
pagination?: PaginationResponse;
|
|
208
210
|
rows?: TenantMember[];
|
|
209
211
|
}
|
|
212
|
+
export declare enum TenantEnvironment {
|
|
213
|
+
Local = "local",
|
|
214
|
+
Development = "development",
|
|
215
|
+
Production = "production"
|
|
216
|
+
}
|
|
210
217
|
export declare enum TenantMemberRole {
|
|
211
218
|
OWNER = "OWNER",
|
|
212
219
|
ADMIN = "ADMIN",
|
|
@@ -219,7 +226,8 @@ export declare enum TenantResource {
|
|
|
219
226
|
WORKFLOW_RUN = "WORKFLOW_RUN",
|
|
220
227
|
TASK_RUN = "TASK_RUN",
|
|
221
228
|
CRON = "CRON",
|
|
222
|
-
SCHEDULE = "SCHEDULE"
|
|
229
|
+
SCHEDULE = "SCHEDULE",
|
|
230
|
+
INCOMING_WEBHOOK = "INCOMING_WEBHOOK"
|
|
223
231
|
}
|
|
224
232
|
export interface TenantResourceLimit {
|
|
225
233
|
metadata: APIResourceMeta;
|
|
@@ -253,6 +261,10 @@ export interface UpdateTenantInviteRequest {
|
|
|
253
261
|
/** The role of the user in the tenant. */
|
|
254
262
|
role: TenantMemberRole;
|
|
255
263
|
}
|
|
264
|
+
export interface UpdateTenantMemberRequest {
|
|
265
|
+
/** The role of the user in the tenant. */
|
|
266
|
+
role: TenantMemberRole;
|
|
267
|
+
}
|
|
256
268
|
export interface TenantAlertingSettings {
|
|
257
269
|
metadata: APIResourceMeta;
|
|
258
270
|
/** Whether to alert tenant members. */
|
|
@@ -304,6 +316,22 @@ export interface TenantInvite {
|
|
|
304
316
|
*/
|
|
305
317
|
expires: string;
|
|
306
318
|
}
|
|
319
|
+
export type TaskStats = Record<string, TaskStat>;
|
|
320
|
+
export interface TaskStat {
|
|
321
|
+
queued?: TaskStatusStat;
|
|
322
|
+
running?: TaskStatusStat;
|
|
323
|
+
}
|
|
324
|
+
export interface TaskStatusStat {
|
|
325
|
+
/** @format int64 */
|
|
326
|
+
total?: number;
|
|
327
|
+
queues?: Record<string, number>;
|
|
328
|
+
concurrency?: ConcurrencyStat[];
|
|
329
|
+
}
|
|
330
|
+
export interface ConcurrencyStat {
|
|
331
|
+
expression?: string;
|
|
332
|
+
type?: string;
|
|
333
|
+
keys?: Record<string, number>;
|
|
334
|
+
}
|
|
307
335
|
export interface TenantInviteList {
|
|
308
336
|
pagination?: PaginationResponse;
|
|
309
337
|
rows?: TenantInvite[];
|
|
@@ -354,6 +382,10 @@ export interface CreateTenantRequest {
|
|
|
354
382
|
uiVersion?: any;
|
|
355
383
|
/** The engine version of the tenant. Defaults to V0. */
|
|
356
384
|
engineVersion?: any;
|
|
385
|
+
/** The environment type of the tenant. */
|
|
386
|
+
environment?: TenantEnvironment;
|
|
387
|
+
/** Additional onboarding data to store with the tenant. */
|
|
388
|
+
onboardingData?: Record<string, any>;
|
|
357
389
|
}
|
|
358
390
|
export interface UpdateTenantRequest {
|
|
359
391
|
/** The name of the tenant. */
|
|
@@ -556,6 +588,8 @@ export interface V1Filter {
|
|
|
556
588
|
expression: string;
|
|
557
589
|
/** Additional payload data associated with the filter */
|
|
558
590
|
payload: object;
|
|
591
|
+
/** Whether the filter is declarative (true) or programmatic (false) */
|
|
592
|
+
isDeclarative?: boolean;
|
|
559
593
|
}
|
|
560
594
|
export interface V1WebhookList {
|
|
561
595
|
pagination?: PaginationResponse;
|
|
@@ -577,7 +611,9 @@ export interface V1Webhook {
|
|
|
577
611
|
export declare enum V1WebhookSourceName {
|
|
578
612
|
GENERIC = "GENERIC",
|
|
579
613
|
GITHUB = "GITHUB",
|
|
580
|
-
STRIPE = "STRIPE"
|
|
614
|
+
STRIPE = "STRIPE",
|
|
615
|
+
SLACK = "SLACK",
|
|
616
|
+
LINEAR = "LINEAR"
|
|
581
617
|
}
|
|
582
618
|
export declare enum V1WebhookAuthType {
|
|
583
619
|
BASIC = "BASIC",
|
|
@@ -1156,6 +1192,16 @@ export interface Worker {
|
|
|
1156
1192
|
lastListenerEstablished?: string;
|
|
1157
1193
|
/** The actions this worker can perform. */
|
|
1158
1194
|
actions?: string[];
|
|
1195
|
+
/** The workflow ids registered on this worker. */
|
|
1196
|
+
registeredWorkflows?: {
|
|
1197
|
+
/**
|
|
1198
|
+
* The workflow id registered on this worker.
|
|
1199
|
+
* @format uuid
|
|
1200
|
+
*/
|
|
1201
|
+
id: string;
|
|
1202
|
+
/** The name of the workflow registered on this worker. */
|
|
1203
|
+
name: string;
|
|
1204
|
+
}[];
|
|
1159
1205
|
/** The semaphore slot state for the worker. */
|
|
1160
1206
|
slots?: SemaphoreSlots[];
|
|
1161
1207
|
/** The recent step runs for the worker. */
|
|
@@ -1257,6 +1303,9 @@ export interface CreateCronWorkflowTriggerRequest {
|
|
|
1257
1303
|
*/
|
|
1258
1304
|
priority?: number;
|
|
1259
1305
|
}
|
|
1306
|
+
export interface UpdateCronWorkflowTriggerRequest {
|
|
1307
|
+
enabled?: boolean;
|
|
1308
|
+
}
|
|
1260
1309
|
export interface CreatePullRequestFromStepRun {
|
|
1261
1310
|
branchName: string;
|
|
1262
1311
|
}
|
|
@@ -1428,6 +1477,8 @@ export interface V1WorkflowRunDisplayNameList {
|
|
|
1428
1477
|
displayName: string;
|
|
1429
1478
|
}[];
|
|
1430
1479
|
}
|
|
1480
|
+
/** The list of external IDs */
|
|
1481
|
+
export type V1WorkflowRunExternalIdList = string[];
|
|
1431
1482
|
export interface V1TaskSummary {
|
|
1432
1483
|
metadata: APIResourceMeta;
|
|
1433
1484
|
/** The action ID of the task. */
|
|
@@ -1829,6 +1880,10 @@ export type V1CreateWebhookRequest = ({
|
|
|
1829
1880
|
signingSecret: string;
|
|
1830
1881
|
};
|
|
1831
1882
|
};
|
|
1883
|
+
export interface V1UpdateWebhookRequest {
|
|
1884
|
+
/** The CEL expression to use for the event key. This is used to create the event key from the webhook payload. */
|
|
1885
|
+
eventKeyExpression: string;
|
|
1886
|
+
}
|
|
1832
1887
|
export interface V1UpdateFilterRequest {
|
|
1833
1888
|
/** The expression for the filter */
|
|
1834
1889
|
expression?: string;
|
|
@@ -11,7 +11,13 @@
|
|
|
11
11
|
* ---------------------------------------------------------------
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.V1CELDebugResponseStatus = exports.V1LogLineLevel = exports.V1TaskRunStatus = exports.V1TaskStatus = exports.WebhookWorkerRequestMethod = exports.LogLineOrderByDirection = exports.LogLineOrderByField = exports.LogLineLevel = exports.PullRequestState = exports.WorkerRuntimeSDKs = exports.StepRunEventSeverity = exports.StepRunEventReason = exports.StepRunStatus = exports.JobRunStatus = exports.WorkflowKind = exports.WorkflowRunStatus = exports.WorkflowRunOrderByDirection = exports.WorkflowRunOrderByField = exports.CronWorkflowsOrderByField = exports.ScheduledRunStatus = exports.ScheduledWorkflowsOrderByField = exports.RateLimitOrderByDirection = exports.RateLimitOrderByField = exports.V1WebhookAuthType = exports.V1WebhookSourceName = exports.EventOrderByDirection = exports.EventOrderByField = exports.TenantResource = exports.TenantMemberRole = void 0;
|
|
14
|
+
exports.V1CELDebugResponseStatus = exports.V1LogLineLevel = exports.V1TaskRunStatus = exports.V1TaskStatus = exports.WebhookWorkerRequestMethod = exports.LogLineOrderByDirection = exports.LogLineOrderByField = exports.LogLineLevel = exports.PullRequestState = exports.WorkerRuntimeSDKs = exports.StepRunEventSeverity = exports.StepRunEventReason = exports.StepRunStatus = exports.JobRunStatus = exports.WorkflowKind = exports.WorkflowRunStatus = exports.WorkflowRunOrderByDirection = exports.WorkflowRunOrderByField = exports.CronWorkflowsOrderByField = exports.ScheduledRunStatus = exports.ScheduledWorkflowsOrderByField = exports.RateLimitOrderByDirection = exports.RateLimitOrderByField = exports.V1WebhookAuthType = exports.V1WebhookSourceName = exports.EventOrderByDirection = exports.EventOrderByField = exports.TenantResource = exports.TenantMemberRole = exports.TenantEnvironment = void 0;
|
|
15
|
+
var TenantEnvironment;
|
|
16
|
+
(function (TenantEnvironment) {
|
|
17
|
+
TenantEnvironment["Local"] = "local";
|
|
18
|
+
TenantEnvironment["Development"] = "development";
|
|
19
|
+
TenantEnvironment["Production"] = "production";
|
|
20
|
+
})(TenantEnvironment || (exports.TenantEnvironment = TenantEnvironment = {}));
|
|
15
21
|
var TenantMemberRole;
|
|
16
22
|
(function (TenantMemberRole) {
|
|
17
23
|
TenantMemberRole["OWNER"] = "OWNER";
|
|
@@ -27,6 +33,7 @@ var TenantResource;
|
|
|
27
33
|
TenantResource["TASK_RUN"] = "TASK_RUN";
|
|
28
34
|
TenantResource["CRON"] = "CRON";
|
|
29
35
|
TenantResource["SCHEDULE"] = "SCHEDULE";
|
|
36
|
+
TenantResource["INCOMING_WEBHOOK"] = "INCOMING_WEBHOOK";
|
|
30
37
|
})(TenantResource || (exports.TenantResource = TenantResource = {}));
|
|
31
38
|
var EventOrderByField;
|
|
32
39
|
(function (EventOrderByField) {
|
|
@@ -42,6 +49,8 @@ var V1WebhookSourceName;
|
|
|
42
49
|
V1WebhookSourceName["GENERIC"] = "GENERIC";
|
|
43
50
|
V1WebhookSourceName["GITHUB"] = "GITHUB";
|
|
44
51
|
V1WebhookSourceName["STRIPE"] = "STRIPE";
|
|
52
|
+
V1WebhookSourceName["SLACK"] = "SLACK";
|
|
53
|
+
V1WebhookSourceName["LINEAR"] = "LINEAR";
|
|
45
54
|
})(V1WebhookSourceName || (exports.V1WebhookSourceName = V1WebhookSourceName = {}));
|
|
46
55
|
var V1WebhookAuthType;
|
|
47
56
|
(function (V1WebhookAuthType) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
-
import {
|
|
2
|
+
import type { CallContext, CallOptions } from 'nice-grpc-common';
|
|
3
3
|
export declare const protobufPackage = "";
|
|
4
4
|
export declare enum SDKS {
|
|
5
5
|
UNKNOWN = 0,
|