@hatchet-dev/typescript-sdk 1.10.4 → 1.10.6

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.
@@ -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, ScheduledWorkflowsBulkDeleteRequest, ScheduledWorkflowsBulkDeleteResponse, ScheduledWorkflowsBulkUpdateRequest, ScheduledWorkflowsBulkUpdateResponse, ScheduledWorkflowsList, ScheduledWorkflowsOrderByField, ScheduleWorkflowRunRequest, SNSIntegration, 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, V1CancelledTasks, V1CancelTaskRequest, V1CELDebugRequest, V1CELDebugResponse, V1CreateFilterRequest, V1CreateWebhookRequest, V1DagChildren, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayedTasks, V1ReplayTaskRequest, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, V1WebhookSourceName, V1WorkflowRunDetails, V1WorkflowRunDisplayNameList, V1WorkflowRunExternalIdList, 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 { 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, LogLineLevelField, LogLineList, LogLineOrderByDirection, LogLineOrderByField, LogLineSearch, 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, V1CELDebugRequest, V1CELDebugResponse, V1CancelTaskRequest, V1CancelledTasks, V1CreateFilterRequest, V1CreateWebhookRequest, V1DagChildren, V1Event, V1EventList, V1Filter, V1FilterList, V1LogLineList, V1ReplayTaskRequest, V1ReplayedTasks, V1TaskEventList, V1TaskPointMetrics, V1TaskRunMetrics, V1TaskStatus, V1TaskSummary, V1TaskSummaryList, V1TaskTimingList, V1TriggerWorkflowRunRequest, V1UpdateFilterRequest, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, 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
  /**
@@ -375,6 +375,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
375
375
  /** The scopes to filter by */
376
376
  scopes?: string[];
377
377
  }, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1EventList, any, {}>>;
378
+ /**
379
+ * @description Get an event by its id
380
+ *
381
+ * @tags Event
382
+ * @name V1EventGet
383
+ * @summary Get events
384
+ * @request GET:/api/v1/stable/tenants/{tenant}/events/{v1-event}
385
+ * @secure
386
+ */
387
+ v1EventGet: (tenant: string, v1Event: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<V1Event, any, {}>>;
378
388
  /**
379
389
  * @description Lists all event keys for a tenant.
380
390
  *
@@ -1025,7 +1035,7 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
1025
1035
  * @request POST:/api/v1/tenants/{tenant}/events/bulk
1026
1036
  * @secure
1027
1037
  */
1028
- eventCreateBulk: (tenant: string, data: BulkCreateEventRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<BulkCreateEventResponse, any, {}>>;
1038
+ eventCreateBulk: (tenant: string, data: BulkCreateEventRequest, params?: RequestParams) => Promise<import("axios").AxiosResponse<Events, any, {}>>;
1029
1039
  /**
1030
1040
  * @description Replays a list of events.
1031
1041
  *
@@ -1125,6 +1135,16 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
1125
1135
  * @secure
1126
1136
  */
1127
1137
  eventDataGet: (event: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<EventData, any, {}>>;
1138
+ /**
1139
+ * @description Get the data for an event.
1140
+ *
1141
+ * @tags Event
1142
+ * @name EventDataGetWithTenant
1143
+ * @summary Get event data
1144
+ * @request GET:/api/v1/tenants/{tenant}/events/{event-with-tenant}/data
1145
+ * @secure
1146
+ */
1147
+ eventDataGetWithTenant: (eventWithTenant: string, tenant: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<EventData, any, {}>>;
1128
1148
  /**
1129
1149
  * @description Lists all event keys for a tenant.
1130
1150
  *
@@ -186,6 +186,16 @@ class Api extends http_client_1.HttpClient {
186
186
  * @secure
187
187
  */
188
188
  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));
189
+ /**
190
+ * @description Get an event by its id
191
+ *
192
+ * @tags Event
193
+ * @name V1EventGet
194
+ * @summary Get events
195
+ * @request GET:/api/v1/stable/tenants/{tenant}/events/{v1-event}
196
+ * @secure
197
+ */
198
+ this.v1EventGet = (tenant, v1Event, params = {}) => this.request(Object.assign({ path: `/api/v1/stable/tenants/${tenant}/events/${v1Event}`, method: 'GET', secure: true, format: 'json' }, params));
189
199
  /**
190
200
  * @description Lists all event keys for a tenant.
191
201
  *
@@ -849,6 +859,16 @@ class Api extends http_client_1.HttpClient {
849
859
  * @secure
850
860
  */
851
861
  this.eventDataGet = (event, params = {}) => this.request(Object.assign({ path: `/api/v1/events/${event}/data`, method: 'GET', secure: true, format: 'json' }, params));
862
+ /**
863
+ * @description Get the data for an event.
864
+ *
865
+ * @tags Event
866
+ * @name EventDataGetWithTenant
867
+ * @summary Get event data
868
+ * @request GET:/api/v1/tenants/{tenant}/events/{event-with-tenant}/data
869
+ * @secure
870
+ */
871
+ this.eventDataGetWithTenant = (eventWithTenant, tenant, params = {}) => this.request(Object.assign({ path: `/api/v1/tenants/${tenant}/events/${eventWithTenant}/data`, method: 'GET', secure: true, format: 'json' }, params));
852
872
  /**
853
873
  * @description Lists all event keys for a tenant.
854
874
  *