@hatchet-dev/typescript-sdk 1.19.2-alpha.3 → 1.20.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/rest/generated/Api.d.ts +115 -30
- package/clients/rest/generated/Api.js +40 -10
- package/clients/rest/generated/data-contracts.d.ts +95 -30
- package/clients/rest/generated/data-contracts.js +36 -17
- package/package.json +1 -1
- package/protoc/dispatcher/dispatcher.d.ts +30 -30
- package/protoc/dispatcher/dispatcher.js +1 -1
- package/protoc/events/events.d.ts +10 -10
- package/protoc/events/events.js +1 -1
- package/protoc/google/protobuf/timestamp.js +1 -1
- package/protoc/v1/dispatcher.d.ts +6 -6
- package/protoc/v1/dispatcher.js +1 -1
- package/protoc/v1/shared/condition.d.ts +3 -0
- package/protoc/v1/shared/condition.js +68 -3
- package/protoc/v1/shared/trigger.js +1 -1
- package/protoc/v1/workflows.d.ts +12 -12
- package/protoc/v1/workflows.js +1 -1
- package/protoc/workflows/workflows.d.ts +10 -10
- package/protoc/workflows/workflows.js +1 -1
- package/v1/client/worker/context.d.ts +2 -2
- package/v1/client/worker/context.js +11 -2
- package/v1/conditions/index.js +1 -1
- package/v1/conditions/transformer.js +4 -0
- package/v1/conditions/user-event-condition.d.ts +11 -1
- package/v1/conditions/user-event-condition.js +3 -1
- package/v1/examples/durable/workflow.d.ts +19 -0
- package/v1/examples/durable/workflow.js +42 -1
- package/v1/examples/e2e-worker.js +3 -0
- package/v1/parent-run-context-vars.d.ts +0 -2
- package/v1/parent-run-context-vars.js +3 -16
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIErrors, APIMeta, AcceptInviteRequest, BulkCreateEventRequest, CancelEventRequest, CreateAPITokenRequest, CreateAPITokenResponse, CreateCronWorkflowTriggerRequest, CreateEventRequest, CreateSNSIntegrationRequest, CreateTenantAlertEmailGroupRequest, CreateTenantInviteRequest, CreateTenantRequest, CronWorkflows, CronWorkflowsList, CronWorkflowsOrderByField, Event, EventData, EventKey, EventKeyList, EventList, EventOrderByDirection, EventOrderByField, EventSearch, Events, ListAPIMetaIntegration, ListAPITokensResponse, ListSNSIntegrations, ListSlackWebhooks,
|
|
1
|
+
import { APIErrors, APIMeta, AcceptInviteRequest, BulkCreateEventRequest, CancelEventRequest, CreateAPITokenRequest, CreateAPITokenResponse, CreateCronWorkflowTriggerRequest, CreateEventRequest, CreateSNSIntegrationRequest, CreateTenantAlertEmailGroupRequest, CreateTenantInviteRequest, CreateTenantRequest, CronWorkflows, CronWorkflowsList, CronWorkflowsOrderByField, Event, EventData, EventKey, EventKeyList, EventList, EventOrderByDirection, EventOrderByField, EventSearch, Events, FeatureFlagEvaluationResult, FeatureFlagId, ListAPIMetaIntegration, ListAPITokensResponse, ListSNSIntegrations, ListSlackWebhooks, OtelSpanList, RateLimitList, RateLimitOrderByDirection, RateLimitOrderByField, RejectInviteRequest, ReplayEventRequest, ReplayWorkflowRunsRequest, ReplayWorkflowRunsResponse, RerunStepRunRequest, SNSIntegration, ScheduleWorkflowRunRequest, ScheduledRunStatus, ScheduledWorkflows, ScheduledWorkflowsBulkDeleteRequest, ScheduledWorkflowsBulkDeleteResponse, ScheduledWorkflowsBulkUpdateRequest, ScheduledWorkflowsBulkUpdateResponse, ScheduledWorkflowsList, ScheduledWorkflowsOrderByField, StepRun, StepRunArchiveList, StepRunEventList, TaskStats, Tenant, TenantAlertEmailGroup, TenantAlertEmailGroupList, TenantAlertingSettings, TenantInvite, TenantInviteList, TenantMember, TenantMemberList, TenantQueueMetrics, TenantResourcePolicy, TenantStepRunQueueMetrics, TriggerWorkflowRunRequest, UpdateCronWorkflowTriggerRequest, UpdateScheduledWorkflowRunRequest, UpdateTenantAlertEmailGroupRequest, UpdateTenantInviteRequest, UpdateTenantMemberRequest, UpdateTenantRequest, UpdateWorkerRequest, User, UserChangePasswordRequest, UserLoginRequest, UserRegisterRequest, UserTenantMembershipsList, V1BranchDurableTaskRequest, V1BranchDurableTaskResponse, V1CELDebugRequest, V1CELDebugResponse, V1CancelTaskRequest, V1CancelledTasks, V1CreateFilterRequest, V1CreateWebhookRequest, V1DagChildren, V1Event, V1EventList, V1Filter, V1FilterList, V1LogLineLevel, V1LogLineList, V1LogLineOrderByDirection, V1LogsPointMetrics, V1ReplayTaskRequest, V1ReplayedTasks, V1RestoreTaskResponse, V1RunningFilter, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, V1WebhookResponse, V1WebhookSourceName, V1WorkflowRunDetails, V1WorkflowRunDisplayNameList, V1WorkflowRunExternalIdList, WebhookWorkerCreateRequest, WebhookWorkerCreated, WebhookWorkerListResponse, WebhookWorkerRequestListResponse, Worker, WorkerList, Workflow, WorkflowID, WorkflowKindList, WorkflowList, WorkflowMetrics, WorkflowRun, WorkflowRunList, WorkflowRunOrderByDirection, WorkflowRunOrderByField, WorkflowRunShape, WorkflowRunStatus, WorkflowRunStatusList, WorkflowRunsCancelRequest, WorkflowRunsMetrics, 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
|
/**
|
|
@@ -79,6 +79,77 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
79
79
|
* @secure
|
|
80
80
|
*/
|
|
81
81
|
v1TaskCancel: (tenant: string, data: V1CancelTaskRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1CancelledTasks, any, {}>>;
|
|
82
|
+
/**
|
|
83
|
+
* @description Lists log lines for a tenant
|
|
84
|
+
*
|
|
85
|
+
* @tags Log
|
|
86
|
+
* @name V1TenantLogLineList
|
|
87
|
+
* @summary List log lines
|
|
88
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/logs
|
|
89
|
+
* @secure
|
|
90
|
+
*/
|
|
91
|
+
v1TenantLogLineList: (tenant: string, query?: {
|
|
92
|
+
/**
|
|
93
|
+
* The number to limit by
|
|
94
|
+
* @format int64
|
|
95
|
+
*/
|
|
96
|
+
limit?: number;
|
|
97
|
+
/**
|
|
98
|
+
* The start time to get logs for
|
|
99
|
+
* @format date-time
|
|
100
|
+
*/
|
|
101
|
+
since?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The end time to get logs for
|
|
104
|
+
* @format date-time
|
|
105
|
+
*/
|
|
106
|
+
until?: string;
|
|
107
|
+
/** A full-text search query to filter for */
|
|
108
|
+
search?: string;
|
|
109
|
+
/** The log level(s) to include */
|
|
110
|
+
levels?: V1LogLineLevel[];
|
|
111
|
+
/** The direction to order by */
|
|
112
|
+
order_by_direction?: V1LogLineOrderByDirection;
|
|
113
|
+
/** The attempt number to filter for */
|
|
114
|
+
attempt?: number;
|
|
115
|
+
/** The task external ID(s) to filter by */
|
|
116
|
+
taskExternalIds?: string[];
|
|
117
|
+
/** The workflow id(s) to filter for */
|
|
118
|
+
workflow_ids?: string[];
|
|
119
|
+
/** The step id(s) to filter for */
|
|
120
|
+
step_ids?: string[];
|
|
121
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1LogLineList, any, {}>>;
|
|
122
|
+
/**
|
|
123
|
+
* @description Get a minute by minute breakdown of log metrics for a tenant
|
|
124
|
+
*
|
|
125
|
+
* @tags Log
|
|
126
|
+
* @name V1TenantLogLineGetPointMetrics
|
|
127
|
+
* @summary Get log point metrics
|
|
128
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/log-point-metrics
|
|
129
|
+
* @secure
|
|
130
|
+
*/
|
|
131
|
+
v1TenantLogLineGetPointMetrics: (tenant: string, query?: {
|
|
132
|
+
/**
|
|
133
|
+
* The start time to get logs for
|
|
134
|
+
* @format date-time
|
|
135
|
+
*/
|
|
136
|
+
since?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The end time to get logs for
|
|
139
|
+
* @format date-time
|
|
140
|
+
*/
|
|
141
|
+
until?: string;
|
|
142
|
+
/** A full-text search query to filter for */
|
|
143
|
+
search?: string;
|
|
144
|
+
/** The log level(s) to include */
|
|
145
|
+
levels?: V1LogLineLevel[];
|
|
146
|
+
/** The task external ID(s) to filter by */
|
|
147
|
+
taskExternalIds?: string[];
|
|
148
|
+
/** The workflow id(s) to filter for */
|
|
149
|
+
workflow_ids?: string[];
|
|
150
|
+
/** The step id(s) to filter for */
|
|
151
|
+
step_ids?: string[];
|
|
152
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1LogsPointMetrics, any, {}>>;
|
|
82
153
|
/**
|
|
83
154
|
* @description Replay tasks
|
|
84
155
|
*
|
|
@@ -286,6 +357,34 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
286
357
|
*/
|
|
287
358
|
limit?: number;
|
|
288
359
|
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1TaskEventList, any, {}>>;
|
|
360
|
+
/**
|
|
361
|
+
* @description Get OTel trace for a workflow run
|
|
362
|
+
*
|
|
363
|
+
* @tags Observability
|
|
364
|
+
* @name V1ObservabilityGetTrace
|
|
365
|
+
* @summary Get OTel trace
|
|
366
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/traces
|
|
367
|
+
* @secure
|
|
368
|
+
*/
|
|
369
|
+
v1ObservabilityGetTrace: (tenant: string, query: {
|
|
370
|
+
/**
|
|
371
|
+
* The workflow run external id
|
|
372
|
+
* @format uuid
|
|
373
|
+
* @minLength 36
|
|
374
|
+
* @maxLength 36
|
|
375
|
+
*/
|
|
376
|
+
run_external_id: string;
|
|
377
|
+
/**
|
|
378
|
+
* The number of spans to skip
|
|
379
|
+
* @format int64
|
|
380
|
+
*/
|
|
381
|
+
offset?: number;
|
|
382
|
+
/**
|
|
383
|
+
* The number of spans to limit by
|
|
384
|
+
* @format int64
|
|
385
|
+
*/
|
|
386
|
+
limit?: number;
|
|
387
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<OtelSpanList, any, {}>>;
|
|
289
388
|
/**
|
|
290
389
|
* @description Get the timings for a workflow run
|
|
291
390
|
*
|
|
@@ -1499,35 +1598,6 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
1499
1598
|
/** A group key to filter metrics by */
|
|
1500
1599
|
groupKey?: string;
|
|
1501
1600
|
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<WorkflowMetrics, any, {}>>;
|
|
1502
|
-
/**
|
|
1503
|
-
* @description Lists log lines for a step run.
|
|
1504
|
-
*
|
|
1505
|
-
* @tags Log
|
|
1506
|
-
* @name LogLineList
|
|
1507
|
-
* @summary List log lines
|
|
1508
|
-
* @request GET:/api/v1/step-runs/{step-run}/logs
|
|
1509
|
-
* @secure
|
|
1510
|
-
*/
|
|
1511
|
-
logLineList: (stepRun: string, query?: {
|
|
1512
|
-
/**
|
|
1513
|
-
* The number to skip
|
|
1514
|
-
* @format int64
|
|
1515
|
-
*/
|
|
1516
|
-
offset?: number;
|
|
1517
|
-
/**
|
|
1518
|
-
* The number to limit by
|
|
1519
|
-
* @format int64
|
|
1520
|
-
*/
|
|
1521
|
-
limit?: number;
|
|
1522
|
-
/** A list of levels to filter by */
|
|
1523
|
-
levels?: LogLineLevelField;
|
|
1524
|
-
/** The search query to filter for */
|
|
1525
|
-
search?: LogLineSearch;
|
|
1526
|
-
/** What to order by */
|
|
1527
|
-
orderByField?: LogLineOrderByField;
|
|
1528
|
-
/** The order direction */
|
|
1529
|
-
orderByDirection?: LogLineOrderByDirection;
|
|
1530
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<LogLineList, any, {}>>;
|
|
1531
1601
|
/**
|
|
1532
1602
|
* @description List events for a step run
|
|
1533
1603
|
*
|
|
@@ -1924,4 +1994,19 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
1924
1994
|
* @secure
|
|
1925
1995
|
*/
|
|
1926
1996
|
tenantGetTaskStats: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<TaskStats, any, {}>>;
|
|
1997
|
+
/**
|
|
1998
|
+
* @description Evaluate a feature flag for a tenant
|
|
1999
|
+
*
|
|
2000
|
+
* @tags Feature Flags
|
|
2001
|
+
* @name TenantFeatureFlagEvaluate
|
|
2002
|
+
* @summary Evaluate a feature flag for a tenant
|
|
2003
|
+
* @request GET:/api/v1/tenants/{tenant}/feature-flags
|
|
2004
|
+
* @secure
|
|
2005
|
+
*/
|
|
2006
|
+
tenantFeatureFlagEvaluate: (tenant: string, query: {
|
|
2007
|
+
/** The feature flag id to evaluate */
|
|
2008
|
+
featureFlagId: FeatureFlagId;
|
|
2009
|
+
/** A flag indicating what the behavior of the feature flag should be if PostHog is disabled or unavailable */
|
|
2010
|
+
isEnabledIfNoPosthog: boolean;
|
|
2011
|
+
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<FeatureFlagEvaluationResult, any, {}>>;
|
|
1927
2012
|
}
|
|
@@ -56,6 +56,26 @@ class Api extends http_client_1.HttpClient {
|
|
|
56
56
|
* @secure
|
|
57
57
|
*/
|
|
58
58
|
this.v1TaskCancel = (tenant, data, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/tasks/cancel`, method: 'POST', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
|
|
59
|
+
/**
|
|
60
|
+
* @description Lists log lines for a tenant
|
|
61
|
+
*
|
|
62
|
+
* @tags Log
|
|
63
|
+
* @name V1TenantLogLineList
|
|
64
|
+
* @summary List log lines
|
|
65
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/logs
|
|
66
|
+
* @secure
|
|
67
|
+
*/
|
|
68
|
+
this.v1TenantLogLineList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/logs`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
69
|
+
/**
|
|
70
|
+
* @description Get a minute by minute breakdown of log metrics for a tenant
|
|
71
|
+
*
|
|
72
|
+
* @tags Log
|
|
73
|
+
* @name V1TenantLogLineGetPointMetrics
|
|
74
|
+
* @summary Get log point metrics
|
|
75
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/log-point-metrics
|
|
76
|
+
* @secure
|
|
77
|
+
*/
|
|
78
|
+
this.v1TenantLogLineGetPointMetrics = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/log-point-metrics`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
59
79
|
/**
|
|
60
80
|
* @description Replay tasks
|
|
61
81
|
*
|
|
@@ -166,6 +186,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
166
186
|
* @secure
|
|
167
187
|
*/
|
|
168
188
|
this.v1WorkflowRunTaskEventsList = (v1WorkflowRun, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/workflow-runs/${v1WorkflowRun}/task-events`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
189
|
+
/**
|
|
190
|
+
* @description Get OTel trace for a workflow run
|
|
191
|
+
*
|
|
192
|
+
* @tags Observability
|
|
193
|
+
* @name V1ObservabilityGetTrace
|
|
194
|
+
* @summary Get OTel trace
|
|
195
|
+
* @request GET:/api/v1/stable/tenants/{tenant}/traces
|
|
196
|
+
* @secure
|
|
197
|
+
*/
|
|
198
|
+
this.v1ObservabilityGetTrace = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/traces`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
169
199
|
/**
|
|
170
200
|
* @description Get the timings for a workflow run
|
|
171
201
|
*
|
|
@@ -1099,16 +1129,6 @@ class Api extends http_client_1.HttpClient {
|
|
|
1099
1129
|
* @secure
|
|
1100
1130
|
*/
|
|
1101
1131
|
this.workflowGetMetrics = (workflow, query, params = {}) => this.request(Object.assign({ path: `/api/v1/workflows/${workflow}/metrics`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1102
|
-
/**
|
|
1103
|
-
* @description Lists log lines for a step run.
|
|
1104
|
-
*
|
|
1105
|
-
* @tags Log
|
|
1106
|
-
* @name LogLineList
|
|
1107
|
-
* @summary List log lines
|
|
1108
|
-
* @request GET:/api/v1/step-runs/{step-run}/logs
|
|
1109
|
-
* @secure
|
|
1110
|
-
*/
|
|
1111
|
-
this.logLineList = (stepRun, query, params = {}) => this.request(Object.assign({ path: `/api/v1/step-runs/${stepRun}/logs`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1112
1132
|
/**
|
|
1113
1133
|
* @description List events for a step run
|
|
1114
1134
|
*
|
|
@@ -1352,6 +1372,16 @@ class Api extends http_client_1.HttpClient {
|
|
|
1352
1372
|
* @secure
|
|
1353
1373
|
*/
|
|
1354
1374
|
this.tenantGetTaskStats = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/task-stats`, method: 'GET', secure: true, format: 'json' }, params));
|
|
1375
|
+
/**
|
|
1376
|
+
* @description Evaluate a feature flag for a tenant
|
|
1377
|
+
*
|
|
1378
|
+
* @tags Feature Flags
|
|
1379
|
+
* @name TenantFeatureFlagEvaluate
|
|
1380
|
+
* @summary Evaluate a feature flag for a tenant
|
|
1381
|
+
* @request GET:/api/v1/tenants/{tenant}/feature-flags
|
|
1382
|
+
* @secure
|
|
1383
|
+
*/
|
|
1384
|
+
this.tenantFeatureFlagEvaluate = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/feature-flags`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1355
1385
|
}
|
|
1356
1386
|
}
|
|
1357
1387
|
exports.Api = Api;
|
|
@@ -5,10 +5,26 @@ export declare enum V1TaskRunStatus {
|
|
|
5
5
|
FAILED = "FAILED",
|
|
6
6
|
CANCELLED = "CANCELLED"
|
|
7
7
|
}
|
|
8
|
+
export declare enum LogLineOrderByDirection {
|
|
9
|
+
Asc = "asc",
|
|
10
|
+
Desc = "desc"
|
|
11
|
+
}
|
|
12
|
+
export declare enum LogLineOrderByField {
|
|
13
|
+
CreatedAt = "createdAt"
|
|
14
|
+
}
|
|
15
|
+
export declare enum LogLineLevel {
|
|
16
|
+
DEBUG = "DEBUG",
|
|
17
|
+
INFO = "INFO",
|
|
18
|
+
WARN = "WARN",
|
|
19
|
+
ERROR = "ERROR"
|
|
20
|
+
}
|
|
8
21
|
export declare enum PullRequestState {
|
|
9
22
|
Open = "open",
|
|
10
23
|
Closed = "closed"
|
|
11
24
|
}
|
|
25
|
+
export declare enum FeatureFlagId {
|
|
26
|
+
TenantLogWorkflowFilterEnabled = "tenant-log-workflow-filter-enabled"
|
|
27
|
+
}
|
|
12
28
|
export declare enum WebhookWorkerRequestMethod {
|
|
13
29
|
GET = "GET",
|
|
14
30
|
POST = "POST",
|
|
@@ -60,19 +76,6 @@ export declare enum StepRunEventReason {
|
|
|
60
76
|
WORKFLOW_RUN_GROUP_KEY_SUCCEEDED = "WORKFLOW_RUN_GROUP_KEY_SUCCEEDED",
|
|
61
77
|
WORKFLOW_RUN_GROUP_KEY_FAILED = "WORKFLOW_RUN_GROUP_KEY_FAILED"
|
|
62
78
|
}
|
|
63
|
-
export declare enum LogLineOrderByDirection {
|
|
64
|
-
Asc = "asc",
|
|
65
|
-
Desc = "desc"
|
|
66
|
-
}
|
|
67
|
-
export declare enum LogLineOrderByField {
|
|
68
|
-
CreatedAt = "createdAt"
|
|
69
|
-
}
|
|
70
|
-
export declare enum LogLineLevel {
|
|
71
|
-
DEBUG = "DEBUG",
|
|
72
|
-
INFO = "INFO",
|
|
73
|
-
WARN = "WARN",
|
|
74
|
-
ERROR = "ERROR"
|
|
75
|
-
}
|
|
76
79
|
export declare enum JobRunStatus {
|
|
77
80
|
PENDING = "PENDING",
|
|
78
81
|
RUNNING = "RUNNING",
|
|
@@ -208,6 +211,19 @@ export declare enum TenantVersion {
|
|
|
208
211
|
V0 = "V0",
|
|
209
212
|
V1 = "V1"
|
|
210
213
|
}
|
|
214
|
+
export declare enum OtelStatusCode {
|
|
215
|
+
UNSET = "UNSET",
|
|
216
|
+
OK = "OK",
|
|
217
|
+
ERROR = "ERROR"
|
|
218
|
+
}
|
|
219
|
+
export declare enum OtelSpanKind {
|
|
220
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
221
|
+
INTERNAL = "INTERNAL",
|
|
222
|
+
SERVER = "SERVER",
|
|
223
|
+
CLIENT = "CLIENT",
|
|
224
|
+
PRODUCER = "PRODUCER",
|
|
225
|
+
CONSUMER = "CONSUMER"
|
|
226
|
+
}
|
|
211
227
|
export declare enum V1RunningFilter {
|
|
212
228
|
ALL = "ALL",
|
|
213
229
|
EVICTED = "EVICTED",
|
|
@@ -452,6 +468,15 @@ export interface V1LogLine {
|
|
|
452
468
|
message: string;
|
|
453
469
|
/** The log metadata. */
|
|
454
470
|
metadata: object;
|
|
471
|
+
/**
|
|
472
|
+
* The external ID of the task associated with the log line.
|
|
473
|
+
* @format uuid
|
|
474
|
+
* @minLength 36
|
|
475
|
+
* @maxLength 36
|
|
476
|
+
*/
|
|
477
|
+
taskExternalId?: string;
|
|
478
|
+
/** The display name of the task associated with the log line. */
|
|
479
|
+
taskDisplayName?: string;
|
|
455
480
|
/** The retry count of the log line. */
|
|
456
481
|
retryCount?: number;
|
|
457
482
|
/** The attempt number of the log line. */
|
|
@@ -481,6 +506,17 @@ export interface V1CancelledTasks {
|
|
|
481
506
|
/** The list of task external ids that were cancelled */
|
|
482
507
|
ids?: string[];
|
|
483
508
|
}
|
|
509
|
+
export interface V1LogsPointMetric {
|
|
510
|
+
/** @format date-time */
|
|
511
|
+
time: string;
|
|
512
|
+
DEBUG: number;
|
|
513
|
+
INFO: number;
|
|
514
|
+
WARN: number;
|
|
515
|
+
ERROR: number;
|
|
516
|
+
}
|
|
517
|
+
export interface V1LogsPointMetrics {
|
|
518
|
+
results?: V1LogsPointMetric[];
|
|
519
|
+
}
|
|
484
520
|
export interface V1ReplayTaskRequest {
|
|
485
521
|
/** A list of external IDs, which can refer to either task or workflow run external IDs */
|
|
486
522
|
externalIds?: string[];
|
|
@@ -637,6 +673,31 @@ export interface V1BranchDurableTaskResponse {
|
|
|
637
673
|
*/
|
|
638
674
|
branchId: number;
|
|
639
675
|
}
|
|
676
|
+
export interface OtelSpan {
|
|
677
|
+
traceId: string;
|
|
678
|
+
spanId: string;
|
|
679
|
+
parentSpanId?: string;
|
|
680
|
+
spanName: string;
|
|
681
|
+
spanKind: OtelSpanKind;
|
|
682
|
+
serviceName: string;
|
|
683
|
+
statusCode: OtelStatusCode;
|
|
684
|
+
statusMessage?: string;
|
|
685
|
+
/** @format int64 */
|
|
686
|
+
durationNs: number;
|
|
687
|
+
/** @format date-time */
|
|
688
|
+
createdAt: string;
|
|
689
|
+
resourceAttributes?: Record<string, string>;
|
|
690
|
+
spanAttributes?: Record<string, string>;
|
|
691
|
+
scopeName?: string;
|
|
692
|
+
scopeVersion?: string;
|
|
693
|
+
/** @format int32 */
|
|
694
|
+
retryCount: number;
|
|
695
|
+
}
|
|
696
|
+
export interface OtelSpanList {
|
|
697
|
+
pagination?: PaginationResponse;
|
|
698
|
+
retryCounts?: number[];
|
|
699
|
+
rows?: OtelSpan[];
|
|
700
|
+
}
|
|
640
701
|
export interface V1TaskTiming {
|
|
641
702
|
metadata: APIResourceMeta;
|
|
642
703
|
/** The depth of the task in the waterfall. */
|
|
@@ -1820,23 +1881,6 @@ export interface WorkflowMetrics {
|
|
|
1820
1881
|
/** The total number of concurrency group keys. */
|
|
1821
1882
|
groupKeyCount?: number;
|
|
1822
1883
|
}
|
|
1823
|
-
export type LogLineLevelField = LogLineLevel[];
|
|
1824
|
-
export type LogLineSearch = string;
|
|
1825
|
-
export interface LogLine {
|
|
1826
|
-
/**
|
|
1827
|
-
* The creation date of the log line.
|
|
1828
|
-
* @format date-time
|
|
1829
|
-
*/
|
|
1830
|
-
createdAt: string;
|
|
1831
|
-
/** The log message. */
|
|
1832
|
-
message: string;
|
|
1833
|
-
/** The log metadata. */
|
|
1834
|
-
metadata: object;
|
|
1835
|
-
}
|
|
1836
|
-
export interface LogLineList {
|
|
1837
|
-
pagination?: PaginationResponse;
|
|
1838
|
-
rows?: LogLine[];
|
|
1839
|
-
}
|
|
1840
1884
|
export interface StepRunEvent {
|
|
1841
1885
|
id: number;
|
|
1842
1886
|
/** @format date-time */
|
|
@@ -2137,6 +2181,10 @@ export interface TaskStat {
|
|
|
2137
2181
|
running?: TaskStatusStat;
|
|
2138
2182
|
}
|
|
2139
2183
|
export type TaskStats = Record<string, TaskStat>;
|
|
2184
|
+
export interface FeatureFlagEvaluationResult {
|
|
2185
|
+
/** Whether the feature flag is enabled for the tenant */
|
|
2186
|
+
isEnabled: boolean;
|
|
2187
|
+
}
|
|
2140
2188
|
export interface TenantList {
|
|
2141
2189
|
pagination?: PaginationResponse;
|
|
2142
2190
|
rows?: Tenant[];
|
|
@@ -2169,6 +2217,23 @@ export interface PullRequest {
|
|
|
2169
2217
|
export interface ListPullRequestsResponse {
|
|
2170
2218
|
pullRequests: PullRequest[];
|
|
2171
2219
|
}
|
|
2220
|
+
export interface LogLine {
|
|
2221
|
+
/**
|
|
2222
|
+
* The creation date of the log line.
|
|
2223
|
+
* @format date-time
|
|
2224
|
+
*/
|
|
2225
|
+
createdAt: string;
|
|
2226
|
+
/** The log message. */
|
|
2227
|
+
message: string;
|
|
2228
|
+
/** The log metadata. */
|
|
2229
|
+
metadata: object;
|
|
2230
|
+
}
|
|
2231
|
+
export interface LogLineList {
|
|
2232
|
+
pagination?: PaginationResponse;
|
|
2233
|
+
rows?: LogLine[];
|
|
2234
|
+
}
|
|
2235
|
+
export type LogLineSearch = string;
|
|
2236
|
+
export type LogLineLevelField = LogLineLevel[];
|
|
2172
2237
|
export interface WebhookWorkerCreateResponse {
|
|
2173
2238
|
worker?: WebhookWorkerCreated;
|
|
2174
2239
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ---------------------------------------------------------------
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.V1TaskStatus = exports.V1WorkflowType = exports.V1TaskEventType = exports.V1LogLineLevel = exports.V1LogLineOrderByDirection = exports.V1RunningFilter = exports.TenantVersion = exports.TenantEnvironment = exports.V1WebhookSourceName = exports.V1WebhookAuthType = exports.V1WebhookHMACAlgorithm = exports.V1WebhookHMACEncoding = exports.V1CELDebugResponseStatus = exports.TenantResource = exports.TenantMemberRole = exports.WorkflowRunStatus = exports.EventOrderByField = exports.EventOrderByDirection = exports.RateLimitOrderByField = exports.RateLimitOrderByDirection = exports.ScheduledWorkflowsMethod = exports.ScheduledWorkflowsOrderByField = exports.WorkflowRunOrderByDirection = exports.ScheduledRunStatus = exports.CronWorkflowsMethod = exports.CronWorkflowsOrderByField = exports.ConcurrencyLimitStrategy = exports.ConcurrencyScope = exports.StepRunStatus = exports.JobRunStatus = exports.
|
|
14
|
+
exports.V1TaskStatus = exports.V1WorkflowType = exports.V1TaskEventType = exports.V1LogLineLevel = exports.V1LogLineOrderByDirection = exports.V1RunningFilter = exports.OtelSpanKind = exports.OtelStatusCode = exports.TenantVersion = exports.TenantEnvironment = exports.V1WebhookSourceName = exports.V1WebhookAuthType = exports.V1WebhookHMACAlgorithm = exports.V1WebhookHMACEncoding = exports.V1CELDebugResponseStatus = exports.TenantResource = exports.TenantMemberRole = exports.WorkflowRunStatus = exports.EventOrderByField = exports.EventOrderByDirection = exports.RateLimitOrderByField = exports.RateLimitOrderByDirection = exports.ScheduledWorkflowsMethod = exports.ScheduledWorkflowsOrderByField = exports.WorkflowRunOrderByDirection = exports.ScheduledRunStatus = exports.CronWorkflowsMethod = exports.CronWorkflowsOrderByField = exports.ConcurrencyLimitStrategy = exports.ConcurrencyScope = exports.StepRunStatus = exports.JobRunStatus = exports.StepRunEventReason = exports.StepRunEventSeverity = exports.WorkflowKind = exports.WorkflowRunOrderByField = exports.WorkerType = exports.WorkerRuntimeSDKs = exports.WebhookWorkerRequestMethod = exports.FeatureFlagId = exports.PullRequestState = exports.LogLineLevel = exports.LogLineOrderByField = exports.LogLineOrderByDirection = exports.V1TaskRunStatus = void 0;
|
|
15
15
|
var V1TaskRunStatus;
|
|
16
16
|
(function (V1TaskRunStatus) {
|
|
17
17
|
V1TaskRunStatus["PENDING"] = "PENDING";
|
|
@@ -20,11 +20,31 @@ var V1TaskRunStatus;
|
|
|
20
20
|
V1TaskRunStatus["FAILED"] = "FAILED";
|
|
21
21
|
V1TaskRunStatus["CANCELLED"] = "CANCELLED";
|
|
22
22
|
})(V1TaskRunStatus || (exports.V1TaskRunStatus = V1TaskRunStatus = {}));
|
|
23
|
+
var LogLineOrderByDirection;
|
|
24
|
+
(function (LogLineOrderByDirection) {
|
|
25
|
+
LogLineOrderByDirection["Asc"] = "asc";
|
|
26
|
+
LogLineOrderByDirection["Desc"] = "desc";
|
|
27
|
+
})(LogLineOrderByDirection || (exports.LogLineOrderByDirection = LogLineOrderByDirection = {}));
|
|
28
|
+
var LogLineOrderByField;
|
|
29
|
+
(function (LogLineOrderByField) {
|
|
30
|
+
LogLineOrderByField["CreatedAt"] = "createdAt";
|
|
31
|
+
})(LogLineOrderByField || (exports.LogLineOrderByField = LogLineOrderByField = {}));
|
|
32
|
+
var LogLineLevel;
|
|
33
|
+
(function (LogLineLevel) {
|
|
34
|
+
LogLineLevel["DEBUG"] = "DEBUG";
|
|
35
|
+
LogLineLevel["INFO"] = "INFO";
|
|
36
|
+
LogLineLevel["WARN"] = "WARN";
|
|
37
|
+
LogLineLevel["ERROR"] = "ERROR";
|
|
38
|
+
})(LogLineLevel || (exports.LogLineLevel = LogLineLevel = {}));
|
|
23
39
|
var PullRequestState;
|
|
24
40
|
(function (PullRequestState) {
|
|
25
41
|
PullRequestState["Open"] = "open";
|
|
26
42
|
PullRequestState["Closed"] = "closed";
|
|
27
43
|
})(PullRequestState || (exports.PullRequestState = PullRequestState = {}));
|
|
44
|
+
var FeatureFlagId;
|
|
45
|
+
(function (FeatureFlagId) {
|
|
46
|
+
FeatureFlagId["TenantLogWorkflowFilterEnabled"] = "tenant-log-workflow-filter-enabled";
|
|
47
|
+
})(FeatureFlagId || (exports.FeatureFlagId = FeatureFlagId = {}));
|
|
28
48
|
var WebhookWorkerRequestMethod;
|
|
29
49
|
(function (WebhookWorkerRequestMethod) {
|
|
30
50
|
WebhookWorkerRequestMethod["GET"] = "GET";
|
|
@@ -83,22 +103,6 @@ var StepRunEventReason;
|
|
|
83
103
|
StepRunEventReason["WORKFLOW_RUN_GROUP_KEY_SUCCEEDED"] = "WORKFLOW_RUN_GROUP_KEY_SUCCEEDED";
|
|
84
104
|
StepRunEventReason["WORKFLOW_RUN_GROUP_KEY_FAILED"] = "WORKFLOW_RUN_GROUP_KEY_FAILED";
|
|
85
105
|
})(StepRunEventReason || (exports.StepRunEventReason = StepRunEventReason = {}));
|
|
86
|
-
var LogLineOrderByDirection;
|
|
87
|
-
(function (LogLineOrderByDirection) {
|
|
88
|
-
LogLineOrderByDirection["Asc"] = "asc";
|
|
89
|
-
LogLineOrderByDirection["Desc"] = "desc";
|
|
90
|
-
})(LogLineOrderByDirection || (exports.LogLineOrderByDirection = LogLineOrderByDirection = {}));
|
|
91
|
-
var LogLineOrderByField;
|
|
92
|
-
(function (LogLineOrderByField) {
|
|
93
|
-
LogLineOrderByField["CreatedAt"] = "createdAt";
|
|
94
|
-
})(LogLineOrderByField || (exports.LogLineOrderByField = LogLineOrderByField = {}));
|
|
95
|
-
var LogLineLevel;
|
|
96
|
-
(function (LogLineLevel) {
|
|
97
|
-
LogLineLevel["DEBUG"] = "DEBUG";
|
|
98
|
-
LogLineLevel["INFO"] = "INFO";
|
|
99
|
-
LogLineLevel["WARN"] = "WARN";
|
|
100
|
-
LogLineLevel["ERROR"] = "ERROR";
|
|
101
|
-
})(LogLineLevel || (exports.LogLineLevel = LogLineLevel = {}));
|
|
102
106
|
var JobRunStatus;
|
|
103
107
|
(function (JobRunStatus) {
|
|
104
108
|
JobRunStatus["PENDING"] = "PENDING";
|
|
@@ -258,6 +262,21 @@ var TenantVersion;
|
|
|
258
262
|
TenantVersion["V0"] = "V0";
|
|
259
263
|
TenantVersion["V1"] = "V1";
|
|
260
264
|
})(TenantVersion || (exports.TenantVersion = TenantVersion = {}));
|
|
265
|
+
var OtelStatusCode;
|
|
266
|
+
(function (OtelStatusCode) {
|
|
267
|
+
OtelStatusCode["UNSET"] = "UNSET";
|
|
268
|
+
OtelStatusCode["OK"] = "OK";
|
|
269
|
+
OtelStatusCode["ERROR"] = "ERROR";
|
|
270
|
+
})(OtelStatusCode || (exports.OtelStatusCode = OtelStatusCode = {}));
|
|
271
|
+
var OtelSpanKind;
|
|
272
|
+
(function (OtelSpanKind) {
|
|
273
|
+
OtelSpanKind["UNSPECIFIED"] = "UNSPECIFIED";
|
|
274
|
+
OtelSpanKind["INTERNAL"] = "INTERNAL";
|
|
275
|
+
OtelSpanKind["SERVER"] = "SERVER";
|
|
276
|
+
OtelSpanKind["CLIENT"] = "CLIENT";
|
|
277
|
+
OtelSpanKind["PRODUCER"] = "PRODUCER";
|
|
278
|
+
OtelSpanKind["CONSUMER"] = "CONSUMER";
|
|
279
|
+
})(OtelSpanKind || (exports.OtelSpanKind = OtelSpanKind = {}));
|
|
261
280
|
var V1RunningFilter;
|
|
262
281
|
(function (V1RunningFilter) {
|
|
263
282
|
V1RunningFilter["ALL"] = "ALL";
|