@hatchet-dev/typescript-sdk 1.6.2 → 1.7.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.
Files changed (50) hide show
  1. package/clients/admin/admin-client.d.ts +1 -0
  2. package/clients/admin/admin-client.js +5 -11
  3. package/clients/event/event-client.js +3 -4
  4. package/clients/hatchet-client/hatchet-client.d.ts +0 -4
  5. package/clients/hatchet-client/hatchet-client.js +0 -5
  6. package/clients/rest/generated/Api.d.ts +62 -1
  7. package/clients/rest/generated/Api.js +39 -0
  8. package/clients/rest/generated/data-contracts.d.ts +201 -161
  9. package/clients/rest/generated/data-contracts.js +168 -168
  10. package/clients/worker/worker.d.ts +1 -1
  11. package/clients/worker/worker.js +5 -4
  12. package/package.json +2 -2
  13. package/protoc/v1/workflows.d.ts +11 -0
  14. package/protoc/v1/workflows.js +105 -3
  15. package/step.js +3 -2
  16. package/util/apply-namespace.d.ts +1 -0
  17. package/util/apply-namespace.js +9 -0
  18. package/util/config-loader/config-loader.js +5 -2
  19. package/util/uuid.d.ts +1 -0
  20. package/util/uuid.js +7 -0
  21. package/v1/client/admin.js +3 -8
  22. package/v1/client/client.d.ts +20 -5
  23. package/v1/client/client.interface.d.ts +4 -0
  24. package/v1/client/client.js +48 -11
  25. package/{clients/hatchet-client/features/cron-client.d.ts → v1/client/features/crons.d.ts} +13 -19
  26. package/{clients/hatchet-client/features/cron-client.js → v1/client/features/crons.js} +31 -16
  27. package/v1/client/features/filters.d.ts +1 -0
  28. package/v1/client/features/filters.js +6 -0
  29. package/v1/client/features/index.d.ts +2 -0
  30. package/v1/client/features/index.js +2 -0
  31. package/v1/client/features/runs.d.ts +1 -0
  32. package/v1/client/features/runs.js +7 -0
  33. package/{clients/hatchet-client/features/schedule-client.d.ts → v1/client/features/schedules.d.ts} +12 -18
  34. package/{clients/hatchet-client/features/schedule-client.js → v1/client/features/schedules.js} +31 -16
  35. package/v1/client/features/tenant.d.ts +15 -0
  36. package/v1/client/features/tenant.js +31 -0
  37. package/v1/client/features/workflows.d.ts +10 -3
  38. package/v1/client/features/workflows.js +43 -1
  39. package/v1/client/worker/context.js +3 -2
  40. package/v1/client/worker/worker-internal.d.ts +1 -2
  41. package/v1/client/worker/worker-internal.js +11 -5
  42. package/v1/declaration.d.ts +7 -2
  43. package/v1/declaration.js +5 -3
  44. package/v1/examples/cancellations/workflow.js +2 -2
  45. package/v1/examples/on_event/workflow.d.ts +1 -0
  46. package/v1/examples/on_event/workflow.js +27 -1
  47. package/v1/examples/simple/cron.js +1 -1
  48. package/v1/examples/simple/schedule.js +3 -3
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
@@ -186,6 +186,7 @@ export declare class AdminClient {
186
186
  * @param name the name of the workflow to schedule
187
187
  * @param options an object containing the schedules to set
188
188
  * @param input an object containing the input to the workflow
189
+ * @deprecated use hatchet.schedules.create instead
189
190
  */
190
191
  scheduleWorkflow(name: string, options?: {
191
192
  schedules?: Date[];
@@ -18,6 +18,7 @@ const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error
18
18
  const retrier_1 = require("../../util/retrier");
19
19
  const workflow_run_ref_1 = __importDefault(require("../../util/workflow-run-ref"));
20
20
  const workflows_2 = require("../../protoc/v1/workflows");
21
+ const apply_namespace_1 = require("../../util/apply-namespace");
21
22
  class AdminClient {
22
23
  constructor(config, channel, factory, api, tenantId, listenerClient, workflows) {
23
24
  this.config = config;
@@ -116,11 +117,8 @@ class AdminClient {
116
117
  * @returns the ID of the new workflow run
117
118
  */
118
119
  runWorkflow(workflowName, input, options) {
119
- let computedName = workflowName;
120
+ const computedName = (0, apply_namespace_1.applyNamespace)(workflowName, this.config.namespace);
120
121
  try {
121
- if (this.config.namespace && !workflowName.startsWith(this.config.namespace)) {
122
- computedName = this.config.namespace + workflowName;
123
- }
124
122
  const inputStr = JSON.stringify(input);
125
123
  const resp = this.client.triggerWorkflow(Object.assign(Object.assign({ name: computedName, input: inputStr }, options), { additionalMetadata: (options === null || options === void 0 ? void 0 : options.additionalMetadata)
126
124
  ? JSON.stringify(options === null || options === void 0 ? void 0 : options.additionalMetadata)
@@ -140,10 +138,7 @@ class AdminClient {
140
138
  runWorkflows(workflowRuns) {
141
139
  // Prepare workflows to be triggered in bulk
142
140
  const workflowRequests = workflowRuns.map(({ workflowName, input, options }) => {
143
- let computedName = workflowName;
144
- if (this.config.namespace && !workflowName.startsWith(this.config.namespace)) {
145
- computedName = this.config.namespace + workflowName;
146
- }
141
+ const computedName = (0, apply_namespace_1.applyNamespace)(workflowName, this.config.namespace);
147
142
  const inputStr = JSON.stringify(input);
148
143
  return Object.assign(Object.assign({ name: computedName, input: inputStr }, options), { additionalMetadata: (options === null || options === void 0 ? void 0 : options.additionalMetadata)
149
144
  ? JSON.stringify(options.additionalMetadata)
@@ -274,13 +269,12 @@ class AdminClient {
274
269
  * @param name the name of the workflow to schedule
275
270
  * @param options an object containing the schedules to set
276
271
  * @param input an object containing the input to the workflow
272
+ * @deprecated use hatchet.schedules.create instead
277
273
  */
278
274
  scheduleWorkflow(name, options) {
279
275
  let computedName = name;
280
276
  try {
281
- if (this.config.namespace && !name.startsWith(this.config.namespace)) {
282
- computedName = this.config.namespace + name;
283
- }
277
+ computedName = (0, apply_namespace_1.applyNamespace)(name, this.config.namespace);
284
278
  let input;
285
279
  if (options === null || options === void 0 ? void 0 : options.input) {
286
280
  input = JSON.stringify(options.input);
@@ -16,6 +16,7 @@ exports.EventClient = exports.LogLevel = void 0;
16
16
  const events_1 = require("../../protoc/events/events");
17
17
  const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
18
18
  const retrier_1 = require("../../util/retrier");
19
+ const apply_namespace_1 = require("../../util/apply-namespace");
19
20
  // eslint-disable-next-line no-shadow
20
21
  var LogLevel;
21
22
  (function (LogLevel) {
@@ -34,8 +35,7 @@ class EventClient {
34
35
  this.tenantId = config.tenant_id;
35
36
  }
36
37
  push(type, input, options = {}) {
37
- var _a;
38
- const namespacedType = `${(_a = this.config.namespace) !== null && _a !== void 0 ? _a : ''}${type}`;
38
+ const namespacedType = (0, apply_namespace_1.applyNamespace)(type, this.config.namespace);
39
39
  const req = {
40
40
  key: namespacedType,
41
41
  payload: JSON.stringify(input),
@@ -56,8 +56,7 @@ class EventClient {
56
56
  }
57
57
  }
58
58
  bulkPush(type, inputs, options = {}) {
59
- var _a;
60
- const namespacedType = `${(_a = this.config.namespace) !== null && _a !== void 0 ? _a : ''}${type}`;
59
+ const namespacedType = (0, apply_namespace_1.applyNamespace)(type, this.config.namespace);
61
60
  const events = inputs.map((input) => {
62
61
  return {
63
62
  key: namespacedType,
@@ -10,8 +10,6 @@ import { RunsClient } from '../../v1';
10
10
  import { ClientConfig } from './client-config';
11
11
  import { RunListenerClient } from '../listeners/run-listener/child-listener-client';
12
12
  import { Api } from '../rest/generated/Api';
13
- import { CronClient } from './features/cron-client';
14
- import { ScheduleClient } from './features/schedule-client';
15
13
  import { DurableListenerClient } from '../listeners/durable-listener/durable-listener-client';
16
14
  export interface HatchetClientOptions {
17
15
  config_path?: string;
@@ -29,8 +27,6 @@ export declare class LegacyHatchetClient {
29
27
  tenantId: string;
30
28
  durableListener: DurableListenerClient;
31
29
  logger: Logger;
32
- cron: CronClient;
33
- schedule: ScheduleClient;
34
30
  constructor(config?: Partial<ClientConfig>, options?: HatchetClientOptions, axiosOpts?: AxiosRequestConfig, runs?: RunsClient);
35
31
  static init(config?: Partial<ClientConfig>, options?: HatchetClientOptions, axiosConfig?: AxiosRequestConfig): LegacyHatchetClient;
36
32
  run(workflow: string | V0Workflow): Promise<V0Worker>;
@@ -25,8 +25,6 @@ const grpc_helpers_1 = require("../../util/grpc-helpers");
25
25
  const client_config_1 = require("./client-config");
26
26
  const child_listener_client_1 = require("../listeners/run-listener/child-listener-client");
27
27
  const rest_1 = __importDefault(require("../rest"));
28
- const cron_client_1 = require("./features/cron-client");
29
- const schedule_client_1 = require("./features/schedule-client");
30
28
  const durable_listener_client_1 = require("../listeners/durable-listener/durable-listener-client");
31
29
  class LegacyHatchetClient {
32
30
  constructor(config, options, axiosOpts, runs) {
@@ -63,9 +61,6 @@ class LegacyHatchetClient {
63
61
  this.durableListener = new durable_listener_client_1.DurableListenerClient(this.config, (0, grpc_helpers_1.channelFactory)(this.config, this.credentials), clientFactory, this.api);
64
62
  this.logger = this.config.logger('HatchetClient', this.config.log_level);
65
63
  this.logger.debug(`Initialized HatchetClient`);
66
- // Feature Clients
67
- this.cron = new cron_client_1.CronClient(this.tenantId, this.config, this.api, this.admin);
68
- this.schedule = new schedule_client_1.ScheduleClient(this.tenantId, this.config, this.api, this.admin);
69
64
  }
70
65
  static init(config, options, axiosConfig) {
71
66
  return new LegacyHatchetClient(config, options, axiosConfig);
@@ -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, V1CancelTaskRequest, V1CreateFilterRequest, V1DagChildren, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayTaskRequest, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, 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, Tenant, TenantAlertEmailGroup, TenantAlertEmailGroupList, TenantAlertingSettings, TenantInvite, TenantInviteList, TenantMember, TenantMemberList, TenantQueueMetrics, TenantResourcePolicy, TenantStepRunQueueMetrics, TriggerWorkflowRunRequest, UpdateTenantAlertEmailGroupRequest, UpdateTenantInviteRequest, UpdateTenantRequest, UpdateWorkerRequest, User, UserChangePasswordRequest, UserLoginRequest, UserRegisterRequest, UserTenantMembershipsList, V1CancelTaskRequest, V1CreateFilterRequest, V1DagChildren, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayTaskRequest, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, 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';
2
2
  import { HttpClient, RequestParams } from './http-client';
3
3
  export declare class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
@@ -144,6 +144,8 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
144
144
  * @maxLength 36
145
145
  */
146
146
  triggering_event_external_id?: string;
147
+ /** A flag for whether or not to include the input and output payloads in the response. Defaults to `true` if unset. */
148
+ include_payloads?: boolean;
147
149
  }, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1TaskSummaryList, any>>;
148
150
  /**
149
151
  * @description Lists displayable names of workflow runs for a tenant
@@ -178,6 +180,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
178
180
  * @secure
179
181
  */
180
182
  v1WorkflowRunGet: (v1WorkflowRun: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1WorkflowRunDetails, any>>;
183
+ /**
184
+ * @description Get the status of a workflow run.
185
+ *
186
+ * @tags Workflow Runs
187
+ * @name V1WorkflowRunGetStatus
188
+ * @summary Get workflow run status
189
+ * @request GET:/api/v1/stable/workflow-runs/{v1-workflow-run}/status
190
+ * @secure
191
+ */
192
+ v1WorkflowRunGetStatus: (v1WorkflowRun: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1TaskStatus, any>>;
181
193
  /**
182
194
  * @description List all tasks for a workflow run
183
195
  *
@@ -297,7 +309,37 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
297
309
  limit?: number;
298
310
  /** A list of keys to filter by */
299
311
  keys?: EventKey[];
312
+ /**
313
+ * Consider events that occurred after this time
314
+ * @format date-time
315
+ */
316
+ since?: string;
317
+ /**
318
+ * Consider events that occurred before this time
319
+ * @format date-time
320
+ */
321
+ until?: string;
322
+ /** Filter to events that are associated with a specific workflow run */
323
+ workflowIds?: string[];
324
+ /** Filter to events that are associated with workflow runs matching a certain status */
325
+ workflowRunStatuses?: V1TaskStatus[];
326
+ /** Filter to specific events by their ids */
327
+ eventIds?: string[];
328
+ /** Filter by additional metadata on the events */
329
+ additionalMetadata?: string[];
330
+ /** The scopes to filter by */
331
+ scopes?: string[];
300
332
  }, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1EventList, any>>;
333
+ /**
334
+ * @description Lists all event keys for a tenant.
335
+ *
336
+ * @tags Event
337
+ * @name V1EventKeyList
338
+ * @summary List event keys
339
+ * @request GET:/api/v1/stable/tenants/{tenant}/events/keys
340
+ * @secure
341
+ */
342
+ v1EventKeyList: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<EventKeyList, any>>;
301
343
  /**
302
344
  * @description Lists all filters for a tenant.
303
345
  *
@@ -352,6 +394,15 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
352
394
  * @secure
353
395
  */
354
396
  v1FilterDelete: (tenant: string, v1Filter: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1Filter, any>>;
397
+ /**
398
+ * @description Update a filter
399
+ *
400
+ * @tags Filter
401
+ * @name V1FilterUpdate
402
+ * @request PATCH:/api/v1/stable/tenants/{tenant}/filters/{v1-filter}
403
+ * @secure
404
+ */
405
+ v1FilterUpdate: (tenant: string, v1Filter: string, data: V1UpdateFilterRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1Filter, any>>;
355
406
  /**
356
407
  * @description Gets the readiness status
357
408
  *
@@ -671,6 +722,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
671
722
  * @secure
672
723
  */
673
724
  tenantUpdate: (tenant: string, data: UpdateTenantRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<Tenant, any>>;
725
+ /**
726
+ * @description Get the details of a tenant
727
+ *
728
+ * @tags Tenant
729
+ * @name TenantGet
730
+ * @summary Get tenant
731
+ * @request GET:/api/v1/tenants/{tenant}
732
+ * @secure
733
+ */
734
+ tenantGet: (tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<Tenant, any>>;
674
735
  /**
675
736
  * @description Gets the alerting settings for a tenant
676
737
  *
@@ -116,6 +116,16 @@ class Api extends http_client_1.HttpClient {
116
116
  * @secure
117
117
  */
118
118
  this.v1WorkflowRunGet = (v1WorkflowRun, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/workflow-runs/${v1WorkflowRun}`, method: 'GET', secure: true, format: 'json' }, params));
119
+ /**
120
+ * @description Get the status of a workflow run.
121
+ *
122
+ * @tags Workflow Runs
123
+ * @name V1WorkflowRunGetStatus
124
+ * @summary Get workflow run status
125
+ * @request GET:/api/v1/stable/workflow-runs/{v1-workflow-run}/status
126
+ * @secure
127
+ */
128
+ this.v1WorkflowRunGetStatus = (v1WorkflowRun, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/workflow-runs/${v1WorkflowRun}/status`, method: 'GET', secure: true, format: 'json' }, params));
119
129
  /**
120
130
  * @description List all tasks for a workflow run
121
131
  *
@@ -166,6 +176,16 @@ class Api extends http_client_1.HttpClient {
166
176
  * @secure
167
177
  */
168
178
  this.v1EventList = (tenant, query, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/events`, method: 'GET', query: query, secure: true, format: 'json' }, params));
179
+ /**
180
+ * @description Lists all event keys for a tenant.
181
+ *
182
+ * @tags Event
183
+ * @name V1EventKeyList
184
+ * @summary List event keys
185
+ * @request GET:/api/v1/stable/tenants/{tenant}/events/keys
186
+ * @secure
187
+ */
188
+ this.v1EventKeyList = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/events/keys`, method: 'GET', secure: true, format: 'json' }, params));
169
189
  /**
170
190
  * @description Lists all filters for a tenant.
171
191
  *
@@ -205,6 +225,15 @@ class Api extends http_client_1.HttpClient {
205
225
  * @secure
206
226
  */
207
227
  this.v1FilterDelete = (tenant, v1Filter, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/filters/${v1Filter}`, method: 'DELETE', secure: true, format: 'json' }, params));
228
+ /**
229
+ * @description Update a filter
230
+ *
231
+ * @tags Filter
232
+ * @name V1FilterUpdate
233
+ * @request PATCH:/api/v1/stable/tenants/{tenant}/filters/{v1-filter}
234
+ * @secure
235
+ */
236
+ this.v1FilterUpdate = (tenant, v1Filter, data, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/filters/${v1Filter}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
208
237
  /**
209
238
  * @description Gets the readiness status
210
239
  *
@@ -524,6 +553,16 @@ class Api extends http_client_1.HttpClient {
524
553
  * @secure
525
554
  */
526
555
  this.tenantUpdate = (tenant, data, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}`, method: 'PATCH', body: data, secure: true, type: http_client_1.ContentType.Json, format: 'json' }, params));
556
+ /**
557
+ * @description Get the details of a tenant
558
+ *
559
+ * @tags Tenant
560
+ * @name TenantGet
561
+ * @summary Get tenant
562
+ * @request GET:/api/v1/tenants/{tenant}
563
+ * @secure
564
+ */
565
+ this.tenantGet = (tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}`, method: 'GET', secure: true, format: 'json' }, params));
527
566
  /**
528
567
  * @description Gets the alerting settings for a tenant
529
568
  *