@hatchet-dev/typescript-sdk 0.15.0 → 0.16.0-alpha.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.
Files changed (32) hide show
  1. package/clients/hatchet-client/client-config.d.ts +6 -0
  2. package/clients/hatchet-client/client-config.js +2 -0
  3. package/clients/hatchet-client/hatchet-client.d.ts +2 -0
  4. package/clients/hatchet-client/hatchet-client.js +25 -1
  5. package/clients/rest/api.d.ts +3 -0
  6. package/clients/rest/api.js +10 -0
  7. package/clients/rest/generated/cloud/Api.d.ts +377 -0
  8. package/clients/rest/generated/cloud/Api.js +326 -0
  9. package/clients/rest/generated/cloud/data-contracts.d.ts +468 -0
  10. package/clients/rest/generated/cloud/data-contracts.js +68 -0
  11. package/clients/rest/generated/cloud/http-client.d.ts +41 -0
  12. package/clients/rest/generated/cloud/http-client.js +102 -0
  13. package/clients/rest/index.d.ts +2 -2
  14. package/clients/rest/index.js +4 -5
  15. package/clients/worker/compute/compute-config.d.ts +150 -0
  16. package/clients/worker/compute/compute-config.js +76 -0
  17. package/clients/worker/compute/managed-compute.d.ts +15 -0
  18. package/clients/worker/compute/managed-compute.js +100 -0
  19. package/clients/worker/worker.d.ts +10 -2
  20. package/clients/worker/worker.js +31 -10
  21. package/examples/managed-worker.d.ts +1 -0
  22. package/examples/managed-worker.js +65 -0
  23. package/package.json +4 -1
  24. package/protoc/dispatcher/dispatcher.d.ts +19 -0
  25. package/protoc/dispatcher/dispatcher.js +368 -92
  26. package/protoc/events/events.js +45 -23
  27. package/protoc/google/protobuf/timestamp.js +5 -3
  28. package/protoc/workflows/workflows.js +153 -77
  29. package/step.d.ts +117 -0
  30. package/step.js +2 -0
  31. package/util/config-loader/config-loader.js +19 -1
  32. package/workflow.d.ts +443 -0
@@ -45,6 +45,8 @@ export declare const ClientConfigSchema: z.ZodObject<{
45
45
  log_level: z.ZodOptional<z.ZodEnum<["OFF", "DEBUG", "INFO", "WARN", "ERROR"]>>;
46
46
  tenant_id: z.ZodString;
47
47
  namespace: z.ZodOptional<z.ZodString>;
48
+ runnable_actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ cloud_register_id: z.ZodOptional<z.ZodString>;
48
50
  }, "strip", z.ZodTypeAny, {
49
51
  token: string;
50
52
  tls_config: {
@@ -59,6 +61,8 @@ export declare const ClientConfigSchema: z.ZodObject<{
59
61
  tenant_id: string;
60
62
  log_level?: "OFF" | "DEBUG" | "INFO" | "WARN" | "ERROR" | undefined;
61
63
  namespace?: string | undefined;
64
+ runnable_actions?: string[] | undefined;
65
+ cloud_register_id?: string | undefined;
62
66
  }, {
63
67
  token: string;
64
68
  tls_config: {
@@ -73,6 +77,8 @@ export declare const ClientConfigSchema: z.ZodObject<{
73
77
  tenant_id: string;
74
78
  log_level?: "OFF" | "DEBUG" | "INFO" | "WARN" | "ERROR" | undefined;
75
79
  namespace?: string | undefined;
80
+ runnable_actions?: string[] | undefined;
81
+ cloud_register_id?: string | undefined;
76
82
  }>;
77
83
  export type ClientConfig = z.infer<typeof ClientConfigSchema> & {
78
84
  credentials?: ChannelCredentials;
@@ -17,4 +17,6 @@ exports.ClientConfigSchema = zod_1.z.object({
17
17
  log_level: zod_1.z.enum(['OFF', 'DEBUG', 'INFO', 'WARN', 'ERROR']).optional(),
18
18
  tenant_id: zod_1.z.string(),
19
19
  namespace: zod_1.z.string().optional(),
20
+ runnable_actions: zod_1.z.array(zod_1.z.string()).optional(),
21
+ cloud_register_id: zod_1.z.string().optional(),
20
22
  });
@@ -9,6 +9,7 @@ import { AxiosRequestConfig } from 'axios';
9
9
  import { ClientConfig } from './client-config';
10
10
  import { ListenerClient } from '../listener/listener-client';
11
11
  import { Api } from '../rest/generated/Api';
12
+ import { CloudApi } from '../rest';
12
13
  export interface HatchetClientOptions {
13
14
  config_path?: string;
14
15
  credentials?: ChannelCredentials;
@@ -22,6 +23,7 @@ export declare class HatchetClient {
22
23
  dispatcher: DispatcherClient;
23
24
  admin: AdminClient;
24
25
  api: Api;
26
+ cloudApi: CloudApi;
25
27
  listener: ListenerClient;
26
28
  tenantId: string;
27
29
  logger: Logger;
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -48,7 +71,7 @@ const worker_1 = require("../worker");
48
71
  const logger_1 = __importDefault(require("../../util/logger/logger"));
49
72
  const client_config_1 = require("./client-config");
50
73
  const listener_client_1 = require("../listener/listener-client");
51
- const rest_1 = __importDefault(require("../rest"));
74
+ const rest_1 = __importStar(require("../rest"));
52
75
  const channelFactory = (config, credentials) => (0, nice_grpc_1.createChannel)(config.host_port, credentials, {
53
76
  'grpc.ssl_target_name_override': config.tls_config.server_name,
54
77
  'grpc.keepalive_timeout_ms': 60 * 1000,
@@ -109,6 +132,7 @@ class HatchetClient {
109
132
  const clientFactory = (0, nice_grpc_1.createClientFactory)().use((0, exports.addTokenMiddleware)(this.config.token));
110
133
  this.tenantId = this.config.tenant_id;
111
134
  this.api = (0, rest_1.default)(this.config.api_url, this.config.token, axiosOpts);
135
+ this.cloudApi = (0, rest_1.cloudApi)(this.config.api_url, this.config.token, axiosOpts);
112
136
  this.event = new event_client_1.EventClient(this.config, (0, exports.channelFactory)(this.config, this.credentials), clientFactory);
113
137
  this.dispatcher = new dispatcher_client_1.DispatcherClient(this.config, (0, exports.channelFactory)(this.config, this.credentials), clientFactory);
114
138
  this.listener = new listener_client_1.ListenerClient(this.config, (0, exports.channelFactory)(this.config, this.credentials), clientFactory, this.api);
@@ -1,4 +1,7 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  import { Api } from './generated/Api';
3
+ import { Api as CloudApi } from './generated/cloud/Api';
3
4
  declare const api: (serverUrl: string, token: string, axiosOpts?: AxiosRequestConfig) => Api<unknown>;
5
+ export declare const cloudApi: (serverUrl: string, token: string, axiosOpts?: AxiosRequestConfig) => CloudApi<unknown>;
6
+ export { api, CloudApi };
4
7
  export default api;
@@ -3,11 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CloudApi = exports.api = exports.cloudApi = void 0;
6
7
  const qs_1 = __importDefault(require("qs"));
7
8
  const Api_1 = require("./generated/Api");
9
+ const Api_2 = require("./generated/cloud/Api");
10
+ Object.defineProperty(exports, "CloudApi", { enumerable: true, get: function () { return Api_2.Api; } });
8
11
  const api = (serverUrl, token, axiosOpts) => {
9
12
  return new Api_1.Api(Object.assign({ baseURL: serverUrl, headers: {
10
13
  Authorization: `Bearer ${token}`,
11
14
  }, paramsSerializer: (params) => qs_1.default.stringify(params, { arrayFormat: 'repeat' }) }, axiosOpts));
12
15
  };
16
+ exports.api = api;
17
+ const cloudApi = (serverUrl, token, axiosOpts) => {
18
+ return new Api_2.Api(Object.assign({ baseURL: serverUrl, headers: {
19
+ Authorization: `Bearer ${token}`,
20
+ }, paramsSerializer: (params) => qs_1.default.stringify(params, { arrayFormat: 'repeat' }) }, axiosOpts));
21
+ };
22
+ exports.cloudApi = cloudApi;
13
23
  exports.default = api;
@@ -0,0 +1,377 @@
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
+ }