@hatchet-dev/typescript-sdk 0.16.0-alpha.4 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients/dispatcher/dispatcher-client.d.ts +2 -1
- package/clients/dispatcher/dispatcher-client.js +10 -1
- package/clients/event/event-client.js +13 -8
- package/clients/hatchet-client/client-config.d.ts +0 -6
- package/clients/hatchet-client/client-config.js +0 -2
- package/clients/hatchet-client/features/cron-client.d.ts +79 -0
- package/clients/hatchet-client/features/cron-client.js +127 -0
- package/clients/hatchet-client/features/schedule-client.d.ts +76 -0
- package/clients/hatchet-client/features/schedule-client.js +120 -0
- package/clients/hatchet-client/hatchet-client.d.ts +4 -2
- package/clients/hatchet-client/hatchet-client.js +6 -25
- package/clients/listener/child-listener-client.js +16 -13
- package/clients/rest/api.d.ts +0 -3
- package/clients/rest/api.js +0 -10
- package/clients/rest/generated/Api.d.ts +152 -2
- package/clients/rest/generated/Api.js +81 -1
- package/clients/rest/generated/data-contracts.d.ts +86 -0
- package/clients/rest/generated/data-contracts.js +27 -1
- package/clients/rest/index.d.ts +2 -2
- package/clients/rest/index.js +21 -10
- package/clients/worker/handler.js +16 -11
- package/clients/worker/worker.d.ts +2 -10
- package/clients/worker/worker.js +24 -38
- package/examples/crons/cron-worker.d.ts +2 -0
- package/examples/crons/cron-worker.js +48 -0
- package/examples/crons/programatic-crons.js +55 -0
- package/examples/on-failure.js +15 -10
- package/examples/retries-with-backoff.d.ts +1 -0
- package/examples/{managed-worker.js → retries-with-backoff.js} +24 -33
- package/examples/scheduled-runs/programatic-schedules.d.ts +1 -0
- package/examples/scheduled-runs/programatic-schedules.js +54 -0
- package/examples/simple-worker.d.ts +2 -1
- package/examples/simple-worker.js +6 -3
- package/package.json +8 -8
- package/protoc/dispatcher/dispatcher.js +1 -1
- package/protoc/events/events.js +1 -1
- package/protoc/google/protobuf/timestamp.js +1 -1
- package/protoc/google/protobuf/wrappers.js +17 -7
- package/protoc/workflows/workflows.d.ts +13 -0
- package/protoc/workflows/workflows.js +160 -7
- package/step.d.ts +17 -121
- package/step.js +23 -9
- package/util/config-loader/config-loader.js +18 -26
- package/util/retrier.js +8 -3
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/workflow.d.ts +67 -459
- package/workflow.js +17 -7
- package/clients/rest/generated/cloud/Api.d.ts +0 -377
- package/clients/rest/generated/cloud/Api.js +0 -326
- package/clients/rest/generated/cloud/data-contracts.d.ts +0 -468
- package/clients/rest/generated/cloud/data-contracts.js +0 -68
- package/clients/rest/generated/cloud/http-client.d.ts +0 -41
- package/clients/rest/generated/cloud/http-client.js +0 -102
- package/clients/worker/compute/compute-config.d.ts +0 -156
- package/clients/worker/compute/compute-config.js +0 -82
- package/clients/worker/compute/managed-compute.d.ts +0 -15
- package/clients/worker/compute/managed-compute.js +0 -104
- /package/examples/{managed-worker.d.ts → crons/programatic-crons.d.ts} +0 -0
package/workflow.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.CreateWorkflowSchema = exports.StickyStrategy = exports.HatchetTimeoutSchema = exports.WorkflowConcurrency = exports.ConcurrencyLimitStrategy = void 0;
|
|
27
37
|
const z = __importStar(require("zod"));
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { APICloudMetadata, Build, CreateManagedWorkerRequest, FeatureFlags, InfraAsCodeRequest, InstanceList, ListGithubAppInstallationsResponse, ListGithubBranchesResponse, ListGithubReposResponse, LogLineList, ManagedWorker, ManagedWorkerEventList, ManagedWorkerList, Matrix, RuntimeConfigActionsResponse, TenantBillingState, TenantSubscription, UpdateManagedWorkerRequest, UpdateTenantSubscription, VectorPushRequest, WorkflowRunEventsMetricsCounts } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
3
|
-
export declare class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* @description Gets metadata for the Hatchet instance
|
|
6
|
-
*
|
|
7
|
-
* @tags Metadata
|
|
8
|
-
* @name MetadataGet
|
|
9
|
-
* @summary Get metadata
|
|
10
|
-
* @request GET:/api/v1/cloud/metadata
|
|
11
|
-
*/
|
|
12
|
-
metadataGet: (params?: RequestParams) => Promise<import("axios").AxiosResponse<APICloudMetadata, any>>;
|
|
13
|
-
/**
|
|
14
|
-
* @description Starts the OAuth flow
|
|
15
|
-
*
|
|
16
|
-
* @tags User
|
|
17
|
-
* @name UserUpdateGithubAppOauthStart
|
|
18
|
-
* @summary Start OAuth flow
|
|
19
|
-
* @request GET:/api/v1/cloud/users/github-app/start
|
|
20
|
-
* @secure
|
|
21
|
-
*/
|
|
22
|
-
userUpdateGithubAppOauthStart: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
/**
|
|
24
|
-
* @description Completes the OAuth flow
|
|
25
|
-
*
|
|
26
|
-
* @tags User
|
|
27
|
-
* @name UserUpdateGithubAppOauthCallback
|
|
28
|
-
* @summary Complete OAuth flow
|
|
29
|
-
* @request GET:/api/v1/cloud/users/github-app/callback
|
|
30
|
-
* @secure
|
|
31
|
-
*/
|
|
32
|
-
userUpdateGithubAppOauthCallback: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
33
|
-
/**
|
|
34
|
-
* @description Github App global webhook
|
|
35
|
-
*
|
|
36
|
-
* @tags Github
|
|
37
|
-
* @name GithubUpdateGlobalWebhook
|
|
38
|
-
* @summary Github app global webhook
|
|
39
|
-
* @request POST:/api/v1/cloud/github/webhook
|
|
40
|
-
*/
|
|
41
|
-
githubUpdateGlobalWebhook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
42
|
-
/**
|
|
43
|
-
* @description Github App tenant webhook
|
|
44
|
-
*
|
|
45
|
-
* @tags Github
|
|
46
|
-
* @name GithubUpdateTenantWebhook
|
|
47
|
-
* @summary Github app tenant webhook
|
|
48
|
-
* @request POST:/api/v1/cloud/github/webhook/{webhook}
|
|
49
|
-
*/
|
|
50
|
-
githubUpdateTenantWebhook: (webhook: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
51
|
-
/**
|
|
52
|
-
* @description List Github App installations
|
|
53
|
-
*
|
|
54
|
-
* @tags Github
|
|
55
|
-
* @name GithubAppListInstallations
|
|
56
|
-
* @summary List Github App installations
|
|
57
|
-
* @request GET:/api/v1/cloud/github-app/installations
|
|
58
|
-
* @secure
|
|
59
|
-
*/
|
|
60
|
-
githubAppListInstallations: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ListGithubAppInstallationsResponse, any>>;
|
|
61
|
-
/**
|
|
62
|
-
* @description List Github App repositories
|
|
63
|
-
*
|
|
64
|
-
* @tags Github
|
|
65
|
-
* @name GithubAppListRepos
|
|
66
|
-
* @summary List Github App repositories
|
|
67
|
-
* @request GET:/api/v1/cloud/github-app/installations/{gh-installation}/repos
|
|
68
|
-
* @secure
|
|
69
|
-
*/
|
|
70
|
-
githubAppListRepos: (ghInstallation: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ListGithubReposResponse, any>>;
|
|
71
|
-
/**
|
|
72
|
-
* @description List Github App branches
|
|
73
|
-
*
|
|
74
|
-
* @tags Github
|
|
75
|
-
* @name GithubAppListBranches
|
|
76
|
-
* @summary List Github App branches
|
|
77
|
-
* @request GET:/api/v1/cloud/github-app/installations/{gh-installation}/repos/{gh-repo-owner}/{gh-repo-name}/branches
|
|
78
|
-
* @secure
|
|
79
|
-
*/
|
|
80
|
-
githubAppListBranches: (ghInstallation: string, ghRepoOwner: string, ghRepoName: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ListGithubBranchesResponse, any>>;
|
|
81
|
-
/**
|
|
82
|
-
* @description Get all managed workers for the tenant
|
|
83
|
-
*
|
|
84
|
-
* @tags Managed Worker
|
|
85
|
-
* @name ManagedWorkerList
|
|
86
|
-
* @summary List Managed Workers
|
|
87
|
-
* @request GET:/api/v1/cloud/tenants/{tenant}/managed-worker
|
|
88
|
-
* @secure
|
|
89
|
-
*/
|
|
90
|
-
managedWorkerList: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorkerList, any>>;
|
|
91
|
-
/**
|
|
92
|
-
* @description Create a managed worker for the tenant
|
|
93
|
-
*
|
|
94
|
-
* @tags Managed Worker
|
|
95
|
-
* @name ManagedWorkerCreate
|
|
96
|
-
* @summary Create Managed Worker
|
|
97
|
-
* @request POST:/api/v1/cloud/tenants/{tenant}/managed-worker
|
|
98
|
-
* @secure
|
|
99
|
-
*/
|
|
100
|
-
managedWorkerCreate: (tenant: string, data: CreateManagedWorkerRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorker, any>>;
|
|
101
|
-
/**
|
|
102
|
-
* @description Get a managed worker for the tenant
|
|
103
|
-
*
|
|
104
|
-
* @tags Managed Worker
|
|
105
|
-
* @name ManagedWorkerGet
|
|
106
|
-
* @summary Get Managed Worker
|
|
107
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}
|
|
108
|
-
* @secure
|
|
109
|
-
*/
|
|
110
|
-
managedWorkerGet: (managedWorker: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorker, any>>;
|
|
111
|
-
/**
|
|
112
|
-
* @description Update a managed worker for the tenant
|
|
113
|
-
*
|
|
114
|
-
* @tags Managed Worker
|
|
115
|
-
* @name ManagedWorkerUpdate
|
|
116
|
-
* @summary Update Managed Worker
|
|
117
|
-
* @request POST:/api/v1/cloud/managed-worker/{managed-worker}
|
|
118
|
-
* @secure
|
|
119
|
-
*/
|
|
120
|
-
managedWorkerUpdate: (managedWorker: string, data: UpdateManagedWorkerRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorker, any>>;
|
|
121
|
-
/**
|
|
122
|
-
* @description Delete a managed worker for the tenant
|
|
123
|
-
*
|
|
124
|
-
* @tags Managed Worker
|
|
125
|
-
* @name ManagedWorkerDelete
|
|
126
|
-
* @summary Delete Managed Worker
|
|
127
|
-
* @request DELETE:/api/v1/cloud/managed-worker/{managed-worker}
|
|
128
|
-
* @secure
|
|
129
|
-
*/
|
|
130
|
-
managedWorkerDelete: (managedWorker: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorker, any>>;
|
|
131
|
-
/**
|
|
132
|
-
* @description Registers runtime configs via infra-as-code
|
|
133
|
-
*
|
|
134
|
-
* @tags Managed Worker
|
|
135
|
-
* @name InfraAsCodeCreate
|
|
136
|
-
* @summary Create Infra as Code
|
|
137
|
-
* @request POST:/api/v1/cloud/infra-as-code/{infra-as-code-request}
|
|
138
|
-
* @secure
|
|
139
|
-
*/
|
|
140
|
-
infraAsCodeCreate: (infraAsCodeRequest: string, data: InfraAsCodeRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
141
|
-
/**
|
|
142
|
-
* @description Get a list of runtime config actions for a managed worker
|
|
143
|
-
*
|
|
144
|
-
* @tags Managed Worker
|
|
145
|
-
* @name RuntimeConfigListActions
|
|
146
|
-
* @summary Get Runtime Config Actions
|
|
147
|
-
* @request GET:/api/v1/cloud/runtime-config/{runtime-config}/actions
|
|
148
|
-
* @secure
|
|
149
|
-
*/
|
|
150
|
-
runtimeConfigListActions: (runtimeConfig: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<RuntimeConfigActionsResponse, any>>;
|
|
151
|
-
/**
|
|
152
|
-
* @description Get CPU metrics for a managed worker
|
|
153
|
-
*
|
|
154
|
-
* @tags Metrics
|
|
155
|
-
* @name MetricsCpuGet
|
|
156
|
-
* @summary Get CPU Metrics
|
|
157
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/metrics/cpu
|
|
158
|
-
* @secure
|
|
159
|
-
*/
|
|
160
|
-
metricsCpuGet: (managedWorker: string, query?: {
|
|
161
|
-
/**
|
|
162
|
-
* When the metrics should start
|
|
163
|
-
* @format date-time
|
|
164
|
-
*/
|
|
165
|
-
after?: string;
|
|
166
|
-
/**
|
|
167
|
-
* When the metrics should end
|
|
168
|
-
* @format date-time
|
|
169
|
-
*/
|
|
170
|
-
before?: string;
|
|
171
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<Matrix, any>>;
|
|
172
|
-
/**
|
|
173
|
-
* @description Get memory metrics for a managed worker
|
|
174
|
-
*
|
|
175
|
-
* @tags Metrics
|
|
176
|
-
* @name MetricsMemoryGet
|
|
177
|
-
* @summary Get Memory Metrics
|
|
178
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/metrics/memory
|
|
179
|
-
* @secure
|
|
180
|
-
*/
|
|
181
|
-
metricsMemoryGet: (managedWorker: string, query?: {
|
|
182
|
-
/**
|
|
183
|
-
* When the metrics should start
|
|
184
|
-
* @format date-time
|
|
185
|
-
*/
|
|
186
|
-
after?: string;
|
|
187
|
-
/**
|
|
188
|
-
* When the metrics should end
|
|
189
|
-
* @format date-time
|
|
190
|
-
*/
|
|
191
|
-
before?: string;
|
|
192
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<Matrix, any>>;
|
|
193
|
-
/**
|
|
194
|
-
* @description Get disk metrics for a managed worker
|
|
195
|
-
*
|
|
196
|
-
* @tags Metrics
|
|
197
|
-
* @name MetricsDiskGet
|
|
198
|
-
* @summary Get Disk Metrics
|
|
199
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/metrics/disk
|
|
200
|
-
* @secure
|
|
201
|
-
*/
|
|
202
|
-
metricsDiskGet: (managedWorker: string, query?: {
|
|
203
|
-
/**
|
|
204
|
-
* When the metrics should start
|
|
205
|
-
* @format date-time
|
|
206
|
-
*/
|
|
207
|
-
after?: string;
|
|
208
|
-
/**
|
|
209
|
-
* When the metrics should end
|
|
210
|
-
* @format date-time
|
|
211
|
-
*/
|
|
212
|
-
before?: string;
|
|
213
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<Matrix, any>>;
|
|
214
|
-
/**
|
|
215
|
-
* @description Lists logs for a managed worker
|
|
216
|
-
*
|
|
217
|
-
* @tags Log
|
|
218
|
-
* @name LogList
|
|
219
|
-
* @summary List Logs
|
|
220
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/logs
|
|
221
|
-
* @secure
|
|
222
|
-
*/
|
|
223
|
-
logList: (managedWorker: string, query?: {
|
|
224
|
-
/**
|
|
225
|
-
* When the logs should start
|
|
226
|
-
* @format date-time
|
|
227
|
-
*/
|
|
228
|
-
after?: string;
|
|
229
|
-
/**
|
|
230
|
-
* When the logs should end
|
|
231
|
-
* @format date-time
|
|
232
|
-
*/
|
|
233
|
-
before?: string;
|
|
234
|
-
/** The search query to filter for */
|
|
235
|
-
search?: string;
|
|
236
|
-
/** The direction to sort the logs */
|
|
237
|
-
direction?: "forward" | "backward";
|
|
238
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<LogLineList, any>>;
|
|
239
|
-
/**
|
|
240
|
-
* @description Get the build logs for a specific build of a managed worker
|
|
241
|
-
*
|
|
242
|
-
* @tags Log
|
|
243
|
-
* @name IacLogsList
|
|
244
|
-
* @summary Get IaC Logs
|
|
245
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/iac-logs
|
|
246
|
-
* @secure
|
|
247
|
-
*/
|
|
248
|
-
iacLogsList: (managedWorker: string, query: {
|
|
249
|
-
/** The deploy key */
|
|
250
|
-
deployKey: string;
|
|
251
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<LogLineList, any>>;
|
|
252
|
-
/**
|
|
253
|
-
* @description Get all instances for a managed worker
|
|
254
|
-
*
|
|
255
|
-
* @tags Managed Worker
|
|
256
|
-
* @name ManagedWorkerInstancesList
|
|
257
|
-
* @summary List Instances
|
|
258
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/instances
|
|
259
|
-
* @secure
|
|
260
|
-
*/
|
|
261
|
-
managedWorkerInstancesList: (managedWorker: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<InstanceList, any>>;
|
|
262
|
-
/**
|
|
263
|
-
* @description Get a build
|
|
264
|
-
*
|
|
265
|
-
* @tags Build
|
|
266
|
-
* @name BuildGet
|
|
267
|
-
* @summary Get Build
|
|
268
|
-
* @request GET:/api/v1/cloud/build/{build}
|
|
269
|
-
* @secure
|
|
270
|
-
*/
|
|
271
|
-
buildGet: (build: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<Build, any>>;
|
|
272
|
-
/**
|
|
273
|
-
* @description Get the build logs for a specific build of a managed worker
|
|
274
|
-
*
|
|
275
|
-
* @tags Log
|
|
276
|
-
* @name BuildLogsList
|
|
277
|
-
* @summary Get Build Logs
|
|
278
|
-
* @request GET:/api/v1/cloud/build/{build}/logs
|
|
279
|
-
* @secure
|
|
280
|
-
*/
|
|
281
|
-
buildLogsList: (build: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<LogLineList, any>>;
|
|
282
|
-
/**
|
|
283
|
-
* @description Get events for a managed worker
|
|
284
|
-
*
|
|
285
|
-
* @tags Managed Worker
|
|
286
|
-
* @name ManagedWorkerEventsList
|
|
287
|
-
* @summary Get Managed Worker Events
|
|
288
|
-
* @request GET:/api/v1/cloud/managed-worker/{managed-worker}/events
|
|
289
|
-
* @secure
|
|
290
|
-
*/
|
|
291
|
-
managedWorkerEventsList: (managedWorker: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<ManagedWorkerEventList, any>>;
|
|
292
|
-
/**
|
|
293
|
-
* @description Receive a webhook message from Lago
|
|
294
|
-
*
|
|
295
|
-
* @tags Billing
|
|
296
|
-
* @name LagoMessageCreate
|
|
297
|
-
* @summary Receive a webhook message from Lago
|
|
298
|
-
* @request POST:/api/v1/billing/lago/webhook
|
|
299
|
-
*/
|
|
300
|
-
lagoMessageCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
301
|
-
/**
|
|
302
|
-
* @description Gets the billing state for a tenant
|
|
303
|
-
*
|
|
304
|
-
* @tags Tenant
|
|
305
|
-
* @name TenantBillingStateGet
|
|
306
|
-
* @summary Get the billing state for a tenant
|
|
307
|
-
* @request GET:/api/v1/billing/tenants/{tenant}
|
|
308
|
-
* @secure
|
|
309
|
-
*/
|
|
310
|
-
tenantBillingStateGet: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<TenantBillingState, any>>;
|
|
311
|
-
/**
|
|
312
|
-
* @description Update a subscription
|
|
313
|
-
*
|
|
314
|
-
* @tags Billing
|
|
315
|
-
* @name SubscriptionUpsert
|
|
316
|
-
* @summary Create a new subscription
|
|
317
|
-
* @request PATCH:/api/v1/billing/tenants/{tenant}/subscription
|
|
318
|
-
* @secure
|
|
319
|
-
*/
|
|
320
|
-
subscriptionUpsert: (tenant: string, data: UpdateTenantSubscription, params?: RequestParams) => Promise<import("axios").AxiosResponse<TenantSubscription, any>>;
|
|
321
|
-
/**
|
|
322
|
-
* @description Get the billing portal link
|
|
323
|
-
*
|
|
324
|
-
* @tags Billing
|
|
325
|
-
* @name BillingPortalLinkGet
|
|
326
|
-
* @summary Create a link to the billing portal
|
|
327
|
-
* @request GET:/api/v1/billing/tenants/{tenant}/billing-portal-link
|
|
328
|
-
* @secure
|
|
329
|
-
*/
|
|
330
|
-
billingPortalLinkGet: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<{
|
|
331
|
-
/** The url to the billing portal */
|
|
332
|
-
url?: string;
|
|
333
|
-
}, any>>;
|
|
334
|
-
/**
|
|
335
|
-
* @description Push a log entry for the tenant
|
|
336
|
-
*
|
|
337
|
-
* @tags Log
|
|
338
|
-
* @name LogCreate
|
|
339
|
-
* @summary Push Log Entry
|
|
340
|
-
* @request POST:/api/v1/cloud/tenants/{tenant}/logs
|
|
341
|
-
* @secure
|
|
342
|
-
*/
|
|
343
|
-
logCreate: (tenant: string, data: VectorPushRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
344
|
-
/**
|
|
345
|
-
* @description Get all feature flags for the tenant
|
|
346
|
-
*
|
|
347
|
-
* @tags Feature Flags
|
|
348
|
-
* @name FeatureFlagsList
|
|
349
|
-
* @summary List Feature Flags
|
|
350
|
-
* @request GET:/api/v1/cloud/tenants/{tenant}/feature-flags
|
|
351
|
-
* @secure
|
|
352
|
-
*/
|
|
353
|
-
featureFlagsList: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<FeatureFlags, any>>;
|
|
354
|
-
/**
|
|
355
|
-
* @description Get a minute by minute breakdown of workflow run metrics for a tenant
|
|
356
|
-
*
|
|
357
|
-
* @tags Workflow
|
|
358
|
-
* @name WorkflowRunEventsGetMetrics
|
|
359
|
-
* @summary Get workflow runs
|
|
360
|
-
* @request GET:/api/v1/cloud/tenants/{tenant}/runs-metrics
|
|
361
|
-
* @secure
|
|
362
|
-
*/
|
|
363
|
-
workflowRunEventsGetMetrics: (tenant: string, query?: {
|
|
364
|
-
/**
|
|
365
|
-
* The time after the workflow run was created
|
|
366
|
-
* @format date-time
|
|
367
|
-
* @example "2021-01-01T00:00:00Z"
|
|
368
|
-
*/
|
|
369
|
-
createdAfter?: string;
|
|
370
|
-
/**
|
|
371
|
-
* The time before the workflow run was completed
|
|
372
|
-
* @format date-time
|
|
373
|
-
* @example "2021-01-01T00:00:00Z"
|
|
374
|
-
*/
|
|
375
|
-
finishedBefore?: string;
|
|
376
|
-
}, params?: RequestParams) => Promise<import("axios").AxiosResponse<WorkflowRunEventsMetricsCounts, any>>;
|
|
377
|
-
}
|