@@ -16,12 +16,16 @@ import {
1616 APIControlPlaneMetadata ,
1717 APIError ,
1818 APIErrors ,
19+ APITokenList ,
1920 CreateManagementTokenRequest ,
2021 CreateManagementTokenResponse ,
2122 CreateNewTenantForOrganizationRequest ,
2223 CreateOrganizationInviteRequest ,
2324 CreateOrganizationRequest ,
25+ CreateTenantAPITokenRequest ,
26+ CreateTenantAPITokenResponse ,
2427 CreateTenantInviteRequest ,
28+ ListAPIMetaIntegration ,
2529 ManagementTokenList ,
2630 Organization ,
2731 OrganizationForUserList ,
@@ -49,6 +53,34 @@ import { ContentType, HttpClient, RequestParams } from "./http-client";
4953export class Api <
5054 SecurityDataType = unknown ,
5155> extends HttpClient < SecurityDataType > {
56+ /**
57+ * @description Gets the readiness status
58+ *
59+ * @tags Healthcheck
60+ * @name ReadinessGet
61+ * @summary Get readiness
62+ * @request GET:/api/ready
63+ */
64+ readinessGet = ( params : RequestParams = { } ) =>
65+ this . request < void , APIErrors > ( {
66+ path : `/api/ready` ,
67+ method : "GET" ,
68+ ...params ,
69+ } ) ;
70+ /**
71+ * @description Gets the liveness status
72+ *
73+ * @tags Healthcheck
74+ * @name LivenessGet
75+ * @summary Get liveness
76+ * @request GET:/api/live
77+ */
78+ livenessGet = ( params : RequestParams = { } ) =>
79+ this . request < void , APIErrors > ( {
80+ path : `/api/live` ,
81+ method : "GET" ,
82+ ...params ,
83+ } ) ;
5284 /**
5385 * @description Gets metadata for the Hatchet instance
5486 *
@@ -64,6 +96,23 @@ export class Api<
6496 format : "json" ,
6597 ...params ,
6698 } ) ;
99+ /**
100+ * @description List all integrations
101+ *
102+ * @tags Metadata
103+ * @name MetadataListIntegrations
104+ * @summary List integrations
105+ * @request GET:/api/v1/control-plane/metadata/integrations
106+ * @secure
107+ */
108+ metadataListIntegrations = ( params : RequestParams = { } ) =>
109+ this . request < ListAPIMetaIntegration , APIErrors > ( {
110+ path : `/api/v1/control-plane/metadata/integrations` ,
111+ method : "GET" ,
112+ secure : true ,
113+ format : "json" ,
114+ ...params ,
115+ } ) ;
67116 /**
68117 * @description Logs in a cloud user.
69118 *
@@ -210,6 +259,41 @@ export class Api<
210259 method : "GET" ,
211260 ...params ,
212261 } ) ;
262+ /**
263+ * @description Starts the Slack OAuth flow for a tenant
264+ *
265+ * @tags User
266+ * @name CloudUserUpdateSlackOauthStart
267+ * @summary Start Slack OAuth flow
268+ * @request GET:/api/v1/control-plane/tenants/{tenant}/slack/start
269+ * @secure
270+ */
271+ cloudUserUpdateSlackOauthStart = (
272+ tenant : string ,
273+ params : RequestParams = { } ,
274+ ) =>
275+ this . request < any , void > ( {
276+ path : `/api/v1/control-plane/tenants/${ tenant } /slack/start` ,
277+ method : "GET" ,
278+ secure : true ,
279+ ...params ,
280+ } ) ;
281+ /**
282+ * @description Completes the Slack OAuth flow
283+ *
284+ * @tags User
285+ * @name CloudUserUpdateSlackOauthCallback
286+ * @summary Complete Slack OAuth flow
287+ * @request GET:/api/v1/control-plane/users/slack/callback
288+ * @secure
289+ */
290+ cloudUserUpdateSlackOauthCallback = ( params : RequestParams = { } ) =>
291+ this . request < any , void > ( {
292+ path : `/api/v1/control-plane/users/slack/callback` ,
293+ method : "GET" ,
294+ secure : true ,
295+ ...params ,
296+ } ) ;
213297 /**
214298 * @description List all organizations the authenticated user is a member of
215299 *
@@ -326,6 +410,69 @@ export class Api<
326410 format : "json" ,
327411 ...params ,
328412 } ) ;
413+ /**
414+ * @description List all API tokens for a tenant
415+ *
416+ * @tags Management
417+ * @name OrganizationTenantListApiTokens
418+ * @summary List API Tokens for Tenant
419+ * @request GET:/api/v1/control-plane/organization-tenants/{tenant}/api-tokens
420+ * @secure
421+ */
422+ organizationTenantListApiTokens = (
423+ tenant : string ,
424+ params : RequestParams = { } ,
425+ ) =>
426+ this . request < APITokenList , APIError > ( {
427+ path : `/api/v1/control-plane/organization-tenants/${ tenant } /api-tokens` ,
428+ method : "GET" ,
429+ secure : true ,
430+ format : "json" ,
431+ ...params ,
432+ } ) ;
433+ /**
434+ * @description Create a new API token for a tenant
435+ *
436+ * @tags Management
437+ * @name OrganizationTenantCreateApiToken
438+ * @summary Create API Token for Tenant
439+ * @request POST:/api/v1/control-plane/organization-tenants/{tenant}/api-tokens
440+ * @secure
441+ */
442+ organizationTenantCreateApiToken = (
443+ tenant : string ,
444+ data : CreateTenantAPITokenRequest ,
445+ params : RequestParams = { } ,
446+ ) =>
447+ this . request < CreateTenantAPITokenResponse , APIError > ( {
448+ path : `/api/v1/control-plane/organization-tenants/${ tenant } /api-tokens` ,
449+ method : "POST" ,
450+ body : data ,
451+ secure : true ,
452+ type : ContentType . Json ,
453+ format : "json" ,
454+ ...params ,
455+ } ) ;
456+ /**
457+ * @description Delete an API token for a tenant
458+ *
459+ * @tags Management
460+ * @name OrganizationTenantDeleteApiToken
461+ * @summary Delete API Token for Tenant
462+ * @request DELETE:/api/v1/control-plane/organization-tenants/{tenant}/api-tokens/{api-token}
463+ * @secure
464+ */
465+ organizationTenantDeleteApiToken = (
466+ tenant : string ,
467+ apiToken : string ,
468+ params : RequestParams = { } ,
469+ ) =>
470+ this . request < void , APIError > ( {
471+ path : `/api/v1/control-plane/organization-tenants/${ tenant } /api-tokens/${ apiToken } ` ,
472+ method : "DELETE" ,
473+ secure : true ,
474+ ...params ,
475+ } ) ;
329476 /**
330477 * @description Remove a member from an organization
331478 *
0 commit comments