@hatchet-dev/typescript-sdk 0.1.12 → 0.1.14

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.
@@ -0,0 +1,599 @@
1
+ export interface APIMeta {
2
+ auth?: APIMetaAuth;
3
+ }
4
+ export interface APIMetaAuth {
5
+ /**
6
+ * the supported types of authentication
7
+ * @example ["basic","google"]
8
+ */
9
+ schemes?: string[];
10
+ }
11
+ export type ListAPIMetaIntegration = APIMetaIntegration[];
12
+ export interface APIMetaIntegration {
13
+ /**
14
+ * the name of the integration
15
+ * @example "github"
16
+ */
17
+ name: string;
18
+ /** whether this integration is enabled on the instance */
19
+ enabled: boolean;
20
+ }
21
+ export interface APIErrors {
22
+ errors: APIError[];
23
+ }
24
+ export interface APIError {
25
+ /**
26
+ * a custom Hatchet error code
27
+ * @format uint64
28
+ * @example 1400
29
+ */
30
+ code?: number;
31
+ /**
32
+ * the field that this error is associated with, if applicable
33
+ * @example "name"
34
+ */
35
+ field?: string;
36
+ /**
37
+ * a description for this error
38
+ * @example "A descriptive error message"
39
+ */
40
+ description: string;
41
+ /**
42
+ * a link to the documentation for this error, if it exists
43
+ * @example "github.com/hatchet-dev/hatchet"
44
+ */
45
+ docs_link?: string;
46
+ }
47
+ /** @example {"next_page":3,"num_pages":10,"current_page":2} */
48
+ export interface PaginationResponse {
49
+ /**
50
+ * the current page
51
+ * @format int64
52
+ * @example 2
53
+ */
54
+ current_page?: number;
55
+ /**
56
+ * the next page
57
+ * @format int64
58
+ * @example 3
59
+ */
60
+ next_page?: number;
61
+ /**
62
+ * the total number of pages for listing
63
+ * @format int64
64
+ * @example 10
65
+ */
66
+ num_pages?: number;
67
+ }
68
+ export interface APIResourceMeta {
69
+ /**
70
+ * the id of this resource, in UUID format
71
+ * @format uuid
72
+ * @minLength 36
73
+ * @maxLength 36
74
+ * @example "bb214807-246e-43a5-a25d-41761d1cff9e"
75
+ */
76
+ id: string;
77
+ /**
78
+ * the time that this resource was created
79
+ * @format date-time
80
+ * @example "2022-12-13T20:06:48.888Z"
81
+ */
82
+ createdAt: string;
83
+ /**
84
+ * the time that this resource was last updated
85
+ * @format date-time
86
+ * @example "2022-12-13T20:06:48.888Z"
87
+ */
88
+ updatedAt: string;
89
+ }
90
+ export interface User {
91
+ metadata: APIResourceMeta;
92
+ /** The display name of the user. */
93
+ name?: string;
94
+ /**
95
+ * The email address of the user.
96
+ * @format email
97
+ */
98
+ email: string;
99
+ /** Whether the user has verified their email address. */
100
+ emailVerified: boolean;
101
+ }
102
+ export interface UserTenantPublic {
103
+ /**
104
+ * The email address of the user.
105
+ * @format email
106
+ */
107
+ email: string;
108
+ /** The display name of the user. */
109
+ name?: string;
110
+ }
111
+ export interface UserLoginRequest {
112
+ /**
113
+ * The email address of the user.
114
+ * @format email
115
+ */
116
+ email: string;
117
+ /** The password of the user. */
118
+ password: string;
119
+ }
120
+ export interface UserRegisterRequest {
121
+ /** The name of the user. */
122
+ name: string;
123
+ /**
124
+ * The email address of the user.
125
+ * @format email
126
+ */
127
+ email: string;
128
+ /** The password of the user. */
129
+ password: string;
130
+ }
131
+ export interface UserTenantMembershipsList {
132
+ pagination?: PaginationResponse;
133
+ rows?: TenantMember[];
134
+ }
135
+ export interface Tenant {
136
+ metadata: APIResourceMeta;
137
+ /** The name of the tenant. */
138
+ name: string;
139
+ /** The slug of the tenant. */
140
+ slug: string;
141
+ }
142
+ export interface TenantMember {
143
+ metadata: APIResourceMeta;
144
+ /** The user associated with this tenant member. */
145
+ user: UserTenantPublic;
146
+ /** The role of the user in the tenant. */
147
+ role: TenantMemberRole;
148
+ /** The tenant associated with this tenant member. */
149
+ tenant?: Tenant;
150
+ }
151
+ export interface TenantMemberList {
152
+ pagination?: PaginationResponse;
153
+ rows?: TenantMember[];
154
+ }
155
+ export declare enum TenantMemberRole {
156
+ OWNER = "OWNER",
157
+ ADMIN = "ADMIN",
158
+ MEMBER = "MEMBER"
159
+ }
160
+ export interface CreateTenantInviteRequest {
161
+ /** The email of the user to invite. */
162
+ email: string;
163
+ /** The role of the user in the tenant. */
164
+ role: TenantMemberRole;
165
+ }
166
+ export interface UpdateTenantInviteRequest {
167
+ /** The role of the user in the tenant. */
168
+ role: TenantMemberRole;
169
+ }
170
+ export interface TenantInvite {
171
+ metadata: APIResourceMeta;
172
+ /** The email of the user to invite. */
173
+ email: string;
174
+ /** The role of the user in the tenant. */
175
+ role: TenantMemberRole;
176
+ /** The tenant id associated with this tenant invite. */
177
+ tenantId: string;
178
+ /** The tenant name for the tenant. */
179
+ tenantName?: string;
180
+ /**
181
+ * The time that this invite expires.
182
+ * @format date-time
183
+ */
184
+ expires: string;
185
+ }
186
+ export interface TenantInviteList {
187
+ pagination?: PaginationResponse;
188
+ rows?: TenantInvite[];
189
+ }
190
+ export interface AcceptInviteRequest {
191
+ /**
192
+ * @minLength 36
193
+ * @maxLength 36
194
+ * @example "bb214807-246e-43a5-a25d-41761d1cff9e"
195
+ */
196
+ invite: string;
197
+ }
198
+ export interface RejectInviteRequest {
199
+ /**
200
+ * @minLength 36
201
+ * @maxLength 36
202
+ * @example "bb214807-246e-43a5-a25d-41761d1cff9e"
203
+ */
204
+ invite: string;
205
+ }
206
+ export interface TenantList {
207
+ pagination?: PaginationResponse;
208
+ rows?: Tenant[];
209
+ }
210
+ export interface CreateTenantRequest {
211
+ /** The name of the tenant. */
212
+ name: string;
213
+ /** The slug of the tenant. */
214
+ slug: string;
215
+ }
216
+ export interface Event {
217
+ metadata: APIResourceMeta;
218
+ /** The key for the event. */
219
+ key: string;
220
+ /** The tenant associated with this event. */
221
+ tenant?: Tenant;
222
+ /** The ID of the tenant associated with this event. */
223
+ tenantId: string;
224
+ /** The workflow run summary for this event. */
225
+ workflowRunSummary?: EventWorkflowRunSummary;
226
+ }
227
+ export interface EventData {
228
+ /** The data for the event (JSON bytes). */
229
+ data: string;
230
+ }
231
+ export interface EventWorkflowRunSummary {
232
+ /**
233
+ * The number of pending runs.
234
+ * @format int64
235
+ */
236
+ pending?: number;
237
+ /**
238
+ * The number of running runs.
239
+ * @format int64
240
+ */
241
+ running?: number;
242
+ /**
243
+ * The number of succeeded runs.
244
+ * @format int64
245
+ */
246
+ succeeded?: number;
247
+ /**
248
+ * The number of failed runs.
249
+ * @format int64
250
+ */
251
+ failed?: number;
252
+ }
253
+ export declare enum EventOrderByField {
254
+ CreatedAt = "createdAt"
255
+ }
256
+ export declare enum EventOrderByDirection {
257
+ Asc = "asc",
258
+ Desc = "desc"
259
+ }
260
+ export type EventSearch = string;
261
+ export interface EventKeyList {
262
+ pagination?: PaginationResponse;
263
+ rows?: EventKey[];
264
+ }
265
+ /** The key for the event. */
266
+ export type EventKey = string;
267
+ /** A workflow ID. */
268
+ export type WorkflowID = string;
269
+ export interface EventList {
270
+ pagination?: PaginationResponse;
271
+ rows?: Event[];
272
+ }
273
+ export interface ReplayEventRequest {
274
+ eventIds: string[];
275
+ }
276
+ export interface Workflow {
277
+ metadata: APIResourceMeta;
278
+ /** The name of the workflow. */
279
+ name: string;
280
+ /** The description of the workflow. */
281
+ description?: string;
282
+ versions?: WorkflowVersionMeta[];
283
+ /** The tags of the workflow. */
284
+ tags?: WorkflowTag[];
285
+ lastRun?: WorkflowRun;
286
+ /** The jobs of the workflow. */
287
+ jobs?: Job[];
288
+ deployment?: WorkflowDeploymentConfig;
289
+ }
290
+ export interface WorkflowDeploymentConfig {
291
+ metadata: APIResourceMeta;
292
+ /** The repository name. */
293
+ gitRepoName: string;
294
+ /** The repository owner. */
295
+ gitRepoOwner: string;
296
+ /** The repository branch. */
297
+ gitRepoBranch: string;
298
+ /** The Github App installation. */
299
+ githubAppInstallation?: GithubAppInstallation;
300
+ /**
301
+ * The id of the Github App installation.
302
+ * @format uuid
303
+ */
304
+ githubAppInstallationId: string;
305
+ }
306
+ export interface WorkflowVersionMeta {
307
+ metadata: APIResourceMeta;
308
+ /** The version of the workflow. */
309
+ version: string;
310
+ /** @format int32 */
311
+ order: number;
312
+ workflowId: string;
313
+ workflow?: Workflow;
314
+ }
315
+ export interface WorkflowVersion {
316
+ metadata: APIResourceMeta;
317
+ /** The version of the workflow. */
318
+ version: string;
319
+ /** @format int32 */
320
+ order: number;
321
+ workflowId: string;
322
+ workflow?: Workflow;
323
+ triggers?: WorkflowTriggers;
324
+ jobs?: Job[];
325
+ }
326
+ export interface WorkflowVersionDefinition {
327
+ /** The raw YAML definition of the workflow. */
328
+ rawDefinition: string;
329
+ }
330
+ export interface WorkflowTag {
331
+ /** The name of the workflow. */
332
+ name: string;
333
+ /** The description of the workflow. */
334
+ color: string;
335
+ }
336
+ export interface WorkflowList {
337
+ metadata?: APIResourceMeta;
338
+ rows?: Workflow[];
339
+ pagination?: PaginationResponse;
340
+ }
341
+ export interface WorkflowTriggers {
342
+ metadata?: APIResourceMeta;
343
+ workflow_version_id?: string;
344
+ tenant_id?: string;
345
+ events?: WorkflowTriggerEventRef[];
346
+ crons?: WorkflowTriggerCronRef[];
347
+ }
348
+ export interface WorkflowTriggerEventRef {
349
+ parent_id?: string;
350
+ event_key?: string;
351
+ }
352
+ export interface WorkflowTriggerCronRef {
353
+ parent_id?: string;
354
+ cron?: string;
355
+ }
356
+ export interface Job {
357
+ metadata: APIResourceMeta;
358
+ tenantId: string;
359
+ versionId: string;
360
+ name: string;
361
+ /** The description of the job. */
362
+ description?: string;
363
+ steps: Step[];
364
+ /** The timeout of the job. */
365
+ timeout?: string;
366
+ }
367
+ export interface Step {
368
+ metadata: APIResourceMeta;
369
+ /** The readable id of the step. */
370
+ readableId: string;
371
+ tenantId: string;
372
+ jobId: string;
373
+ action: string;
374
+ /** The timeout of the step. */
375
+ timeout?: string;
376
+ children?: string[];
377
+ parents?: string[];
378
+ }
379
+ export interface WorkflowRun {
380
+ metadata: APIResourceMeta;
381
+ tenantId: string;
382
+ workflowVersionId: string;
383
+ workflowVersion?: WorkflowVersion;
384
+ status: WorkflowRunStatus;
385
+ displayName?: string;
386
+ jobRuns?: JobRun[];
387
+ triggeredBy: WorkflowRunTriggeredBy;
388
+ input?: Record<string, any>;
389
+ error?: string;
390
+ /** @format date-time */
391
+ startedAt?: string;
392
+ /** @format date-time */
393
+ finishedAt?: string;
394
+ }
395
+ export interface WorkflowRunList {
396
+ rows?: WorkflowRun[];
397
+ pagination?: PaginationResponse;
398
+ }
399
+ export declare enum WorkflowRunStatus {
400
+ PENDING = "PENDING",
401
+ RUNNING = "RUNNING",
402
+ SUCCEEDED = "SUCCEEDED",
403
+ FAILED = "FAILED",
404
+ CANCELLED = "CANCELLED"
405
+ }
406
+ export declare enum JobRunStatus {
407
+ PENDING = "PENDING",
408
+ RUNNING = "RUNNING",
409
+ SUCCEEDED = "SUCCEEDED",
410
+ FAILED = "FAILED",
411
+ CANCELLED = "CANCELLED"
412
+ }
413
+ export declare enum StepRunStatus {
414
+ PENDING = "PENDING",
415
+ PENDING_ASSIGNMENT = "PENDING_ASSIGNMENT",
416
+ ASSIGNED = "ASSIGNED",
417
+ RUNNING = "RUNNING",
418
+ SUCCEEDED = "SUCCEEDED",
419
+ FAILED = "FAILED",
420
+ CANCELLED = "CANCELLED"
421
+ }
422
+ export interface JobRun {
423
+ metadata: APIResourceMeta;
424
+ tenantId: string;
425
+ workflowRunId: string;
426
+ workflowRun?: WorkflowRun;
427
+ jobId: string;
428
+ job?: Job;
429
+ tickerId?: string;
430
+ stepRuns?: StepRun[];
431
+ status: JobRunStatus;
432
+ result?: object;
433
+ /** @format date-time */
434
+ startedAt?: string;
435
+ /** @format date-time */
436
+ finishedAt?: string;
437
+ /** @format date-time */
438
+ timeoutAt?: string;
439
+ /** @format date-time */
440
+ cancelledAt?: string;
441
+ cancelledReason?: string;
442
+ cancelledError?: string;
443
+ }
444
+ export interface WorkflowRunTriggeredBy {
445
+ metadata: APIResourceMeta;
446
+ parentId: string;
447
+ eventId?: string;
448
+ event?: Event;
449
+ cronParentId?: string;
450
+ cronSchedule?: string;
451
+ }
452
+ export interface StepRun {
453
+ metadata: APIResourceMeta;
454
+ tenantId: string;
455
+ jobRunId: string;
456
+ jobRun?: JobRun;
457
+ stepId: string;
458
+ step?: Step;
459
+ children?: string[];
460
+ parents?: string[];
461
+ workerId?: string;
462
+ input?: string;
463
+ output?: string;
464
+ status: StepRunStatus;
465
+ /** @format date-time */
466
+ requeueAfter?: string;
467
+ result?: object;
468
+ error?: string;
469
+ /** @format date-time */
470
+ startedAt?: string;
471
+ startedAtEpoch?: number;
472
+ /** @format date-time */
473
+ finishedAt?: string;
474
+ finishedAtEpoch?: number;
475
+ /** @format date-time */
476
+ timeoutAt?: string;
477
+ timeoutAtEpoch?: number;
478
+ /** @format date-time */
479
+ cancelledAt?: string;
480
+ cancelledAtEpoch?: number;
481
+ cancelledReason?: string;
482
+ cancelledError?: string;
483
+ inputSchema?: string;
484
+ }
485
+ export interface WorkerList {
486
+ pagination?: PaginationResponse;
487
+ rows?: Worker[];
488
+ }
489
+ export interface Worker {
490
+ metadata: APIResourceMeta;
491
+ /** The name of the worker. */
492
+ name: string;
493
+ /**
494
+ * The time this worker last sent a heartbeat.
495
+ * @format date-time
496
+ * @example "2022-12-13T20:06:48.888Z"
497
+ */
498
+ lastHeartbeatAt?: string;
499
+ /** The actions this worker can perform. */
500
+ actions?: string[];
501
+ /** The recent step runs for this worker. */
502
+ recentStepRuns?: StepRun[];
503
+ }
504
+ export interface APIToken {
505
+ metadata: APIResourceMeta;
506
+ /**
507
+ * The name of the API token.
508
+ * @maxLength 255
509
+ */
510
+ name: string;
511
+ /**
512
+ * When the API token expires.
513
+ * @format date-time
514
+ */
515
+ expiresAt: string;
516
+ }
517
+ export interface CreateAPITokenRequest {
518
+ /**
519
+ * A name for the API token.
520
+ * @maxLength 255
521
+ */
522
+ name: string;
523
+ }
524
+ export interface CreateAPITokenResponse {
525
+ /** The API token. */
526
+ token: string;
527
+ }
528
+ export interface ListAPITokensResponse {
529
+ pagination?: PaginationResponse;
530
+ rows?: APIToken[];
531
+ }
532
+ export interface RerunStepRunRequest {
533
+ input: object;
534
+ }
535
+ export interface TriggerWorkflowRunRequest {
536
+ input: object;
537
+ }
538
+ export interface LinkGithubRepositoryRequest {
539
+ /**
540
+ * The repository name.
541
+ * @minLength 36
542
+ * @maxLength 36
543
+ */
544
+ installationId: string;
545
+ /** The repository name. */
546
+ gitRepoName: string;
547
+ /** The repository owner. */
548
+ gitRepoOwner: string;
549
+ /** The repository branch. */
550
+ gitRepoBranch: string;
551
+ }
552
+ export interface GithubBranch {
553
+ branch_name: string;
554
+ is_default: boolean;
555
+ }
556
+ export interface GithubRepo {
557
+ repo_owner: string;
558
+ repo_name: string;
559
+ }
560
+ export interface GithubAppInstallation {
561
+ metadata: APIResourceMeta;
562
+ installation_settings_url: string;
563
+ account_name: string;
564
+ account_avatar_url: string;
565
+ }
566
+ export interface ListGithubAppInstallationsResponse {
567
+ pagination: PaginationResponse;
568
+ rows: GithubAppInstallation[];
569
+ }
570
+ export type ListGithubReposResponse = GithubRepo[];
571
+ export type ListGithubBranchesResponse = GithubBranch[];
572
+ export interface CreatePullRequestFromStepRun {
573
+ branchName: string;
574
+ }
575
+ export interface GetStepRunDiffResponse {
576
+ diffs: StepRunDiff[];
577
+ }
578
+ export interface StepRunDiff {
579
+ key: string;
580
+ original: string;
581
+ modified: string;
582
+ }
583
+ export interface ListPullRequestsResponse {
584
+ pullRequests: PullRequest[];
585
+ }
586
+ export interface PullRequest {
587
+ repositoryOwner: string;
588
+ repositoryName: string;
589
+ pullRequestID: number;
590
+ pullRequestTitle: string;
591
+ pullRequestNumber: number;
592
+ pullRequestHeadBranch: string;
593
+ pullRequestBaseBranch: string;
594
+ pullRequestState: PullRequestState;
595
+ }
596
+ export declare enum PullRequestState {
597
+ Open = "open",
598
+ Closed = "closed"
599
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /* tslint:disable */
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.PullRequestState = exports.StepRunStatus = exports.JobRunStatus = exports.WorkflowRunStatus = exports.EventOrderByDirection = exports.EventOrderByField = exports.TenantMemberRole = void 0;
14
+ var TenantMemberRole;
15
+ (function (TenantMemberRole) {
16
+ TenantMemberRole["OWNER"] = "OWNER";
17
+ TenantMemberRole["ADMIN"] = "ADMIN";
18
+ TenantMemberRole["MEMBER"] = "MEMBER";
19
+ })(TenantMemberRole || (exports.TenantMemberRole = TenantMemberRole = {}));
20
+ var EventOrderByField;
21
+ (function (EventOrderByField) {
22
+ EventOrderByField["CreatedAt"] = "createdAt";
23
+ })(EventOrderByField || (exports.EventOrderByField = EventOrderByField = {}));
24
+ var EventOrderByDirection;
25
+ (function (EventOrderByDirection) {
26
+ EventOrderByDirection["Asc"] = "asc";
27
+ EventOrderByDirection["Desc"] = "desc";
28
+ })(EventOrderByDirection || (exports.EventOrderByDirection = EventOrderByDirection = {}));
29
+ var WorkflowRunStatus;
30
+ (function (WorkflowRunStatus) {
31
+ WorkflowRunStatus["PENDING"] = "PENDING";
32
+ WorkflowRunStatus["RUNNING"] = "RUNNING";
33
+ WorkflowRunStatus["SUCCEEDED"] = "SUCCEEDED";
34
+ WorkflowRunStatus["FAILED"] = "FAILED";
35
+ WorkflowRunStatus["CANCELLED"] = "CANCELLED";
36
+ })(WorkflowRunStatus || (exports.WorkflowRunStatus = WorkflowRunStatus = {}));
37
+ var JobRunStatus;
38
+ (function (JobRunStatus) {
39
+ JobRunStatus["PENDING"] = "PENDING";
40
+ JobRunStatus["RUNNING"] = "RUNNING";
41
+ JobRunStatus["SUCCEEDED"] = "SUCCEEDED";
42
+ JobRunStatus["FAILED"] = "FAILED";
43
+ JobRunStatus["CANCELLED"] = "CANCELLED";
44
+ })(JobRunStatus || (exports.JobRunStatus = JobRunStatus = {}));
45
+ var StepRunStatus;
46
+ (function (StepRunStatus) {
47
+ StepRunStatus["PENDING"] = "PENDING";
48
+ StepRunStatus["PENDING_ASSIGNMENT"] = "PENDING_ASSIGNMENT";
49
+ StepRunStatus["ASSIGNED"] = "ASSIGNED";
50
+ StepRunStatus["RUNNING"] = "RUNNING";
51
+ StepRunStatus["SUCCEEDED"] = "SUCCEEDED";
52
+ StepRunStatus["FAILED"] = "FAILED";
53
+ StepRunStatus["CANCELLED"] = "CANCELLED";
54
+ })(StepRunStatus || (exports.StepRunStatus = StepRunStatus = {}));
55
+ var PullRequestState;
56
+ (function (PullRequestState) {
57
+ PullRequestState["Open"] = "open";
58
+ PullRequestState["Closed"] = "closed";
59
+ })(PullRequestState || (exports.PullRequestState = PullRequestState = {}));
@@ -0,0 +1,41 @@
1
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
2
+ export type QueryParamsType = Record<string | number, any>;
3
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
4
+ /** set parameter to `true` for call `securityWorker` for this request */
5
+ secure?: boolean;
6
+ /** request path */
7
+ path: string;
8
+ /** content type of request body */
9
+ type?: ContentType;
10
+ /** query params */
11
+ query?: QueryParamsType;
12
+ /** format of response (i.e. response.json() -> format: "json") */
13
+ format?: ResponseType;
14
+ /** request body */
15
+ body?: unknown;
16
+ }
17
+ export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
18
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
19
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
20
+ secure?: boolean;
21
+ format?: ResponseType;
22
+ }
23
+ export declare enum ContentType {
24
+ Json = "application/json",
25
+ FormData = "multipart/form-data",
26
+ UrlEncoded = "application/x-www-form-urlencoded",
27
+ Text = "text/plain"
28
+ }
29
+ export declare class HttpClient<SecurityDataType = unknown> {
30
+ instance: AxiosInstance;
31
+ private securityData;
32
+ private securityWorker?;
33
+ private secure?;
34
+ private format?;
35
+ constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
36
+ setSecurityData: (data: SecurityDataType | null) => void;
37
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
38
+ protected stringifyFormItem(formItem: unknown): string;
39
+ protected createFormData(input: Record<string, unknown>): FormData;
40
+ request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T, any>>;
41
+ }