@autifyhq/autify-sdk 0.21.0 → 0.23.0

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.
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- /// <reference types="node" />
13
12
  import { Configuration } from "./configuration";
14
13
  import { RequestArgs } from "./base";
15
14
  import { AxiosInstance, AxiosResponse } from "axios";
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from "axios";
2
- import { AccessPoint, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, ProjectInfo, Scenario, TestPlanResult, TestPlanVariable, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
2
+ import { AccessPoint, BrowserTypeEnum, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, DeviceTypeEnum, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, OsTypeEnum, ProjectInfo, Scenario, TestPlanResult, TestPlanVariable, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
3
3
  export { BASE_PATH as WEB_BASE_PATH } from "./openapi/base";
4
4
  type Options = Readonly<{
5
5
  basePath?: string;
@@ -40,20 +40,22 @@ export declare class WebClient {
40
40
  /**
41
41
  * List available Capabilities.
42
42
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
43
- * @param {string} [os] os name to filter
44
- * @param {string} [browser] browser name to filter
45
- * @param {string} [deviceType] device_type name to filter
43
+ * @param {string} [os] os name to filter (deprecated)
44
+ * @param {OsTypeEnum} [osType] Type of the os to filter
45
+ * @param {string} [browser] browser name to filter (deprecated)
46
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
47
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
46
48
  * @param {*} [options] Override http request option.
47
49
  * @throws {RequiredError}
48
50
  * @memberof CapabilityApi
49
51
  */
50
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
52
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
51
53
  private readonly creditApi;
52
54
  /**
53
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
55
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
54
56
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
55
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
56
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
57
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
58
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
57
59
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
58
60
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
59
61
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -106,7 +108,7 @@ export declare class WebClient {
106
108
  */
107
109
  describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario, any>>;
108
110
  /**
109
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
111
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
110
112
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
111
113
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
112
114
  * @param {*} [options] Override http request option.
@@ -125,7 +127,7 @@ export declare class WebClient {
125
127
  listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any>>;
126
128
  private readonly scheduleApi;
127
129
  /**
128
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
130
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
129
131
  * @summary Run a test plan.
130
132
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
131
133
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -165,7 +167,7 @@ export declare class WebClient {
165
167
  * Update a url replacement for the test plan
166
168
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
167
169
  * @param {number} testPlanVariableId test_plan_variable id
168
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
170
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
169
171
  * @param {*} [options] Override http request option.
170
172
  * @throws {RequiredError}
171
173
  * @memberof TestPlanVariableApi
@@ -82,21 +82,23 @@ class WebClient {
82
82
  /**
83
83
  * List available Capabilities.
84
84
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
85
- * @param {string} [os] os name to filter
86
- * @param {string} [browser] browser name to filter
87
- * @param {string} [deviceType] device_type name to filter
85
+ * @param {string} [os] os name to filter (deprecated)
86
+ * @param {OsTypeEnum} [osType] Type of the os to filter
87
+ * @param {string} [browser] browser name to filter (deprecated)
88
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
89
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
88
90
  * @param {*} [options] Override http request option.
89
91
  * @throws {RequiredError}
90
92
  * @memberof CapabilityApi
91
93
  */
92
- listCapabilities(projectId, os, browser, deviceType, options) {
93
- return this.capabilityApi.listCapabilities(projectId, os, browser, deviceType, options);
94
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
95
+ return this.capabilityApi.listCapabilities(projectId, os, osType, browser, browserType, deviceType, options);
94
96
  }
95
97
  /**
96
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
98
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
97
99
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
98
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
99
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
100
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
101
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
100
102
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
101
103
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
102
104
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -156,7 +158,7 @@ class WebClient {
156
158
  return this.scenarioApi.describeScenario(projectId, scenarioId, options);
157
159
  }
158
160
  /**
159
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
161
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
160
162
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
161
163
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
162
164
  * @param {*} [options] Override http request option.
@@ -178,7 +180,7 @@ class WebClient {
178
180
  return this.scenarioApi.listScenarios(projectId, page, options);
179
181
  }
180
182
  /**
181
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
183
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
182
184
  * @summary Run a test plan.
183
185
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
184
186
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -225,7 +227,7 @@ class WebClient {
225
227
  * Update a url replacement for the test plan
226
228
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
227
229
  * @param {number} testPlanVariableId test_plan_variable id
228
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
230
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
229
231
  * @param {*} [options] Override http request option.
230
232
  * @throws {RequiredError}
231
233
  * @memberof TestPlanVariableApi
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Autify API
3
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
3
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -49,6 +49,20 @@ export interface AccessPoint {
49
49
  */
50
50
  updated_at: string;
51
51
  }
52
+ /**
53
+ *
54
+ * @export
55
+ * @enum {string}
56
+ */
57
+ export declare const BrowserTypeEnum: {
58
+ readonly Chrome: "chrome";
59
+ readonly Firefox: "firefox";
60
+ readonly Safari: "safari";
61
+ readonly Edge: "edge";
62
+ readonly EdgeLegacy: "edge_legacy";
63
+ readonly Ie: "ie";
64
+ };
65
+ export type BrowserTypeEnum = (typeof BrowserTypeEnum)[keyof typeof BrowserTypeEnum];
52
66
  /**
53
67
  *
54
68
  * @export
@@ -122,6 +136,12 @@ export interface CapabilityOption {
122
136
  * @memberof CapabilityOption
123
137
  */
124
138
  os?: string;
139
+ /**
140
+ *
141
+ * @type {OsTypeEnum}
142
+ * @memberof CapabilityOption
143
+ */
144
+ os_type?: OsTypeEnum;
125
145
  /**
126
146
  *
127
147
  * @type {string}
@@ -136,34 +156,35 @@ export interface CapabilityOption {
136
156
  browser?: string;
137
157
  /**
138
158
  *
139
- * @type {string}
159
+ * @type {BrowserTypeEnum}
140
160
  * @memberof CapabilityOption
141
161
  */
142
- browser_version?: string;
162
+ browser_type?: BrowserTypeEnum;
143
163
  /**
144
164
  *
145
165
  * @type {string}
146
166
  * @memberof CapabilityOption
147
167
  */
148
- device?: string;
168
+ browser_version?: string;
149
169
  /**
150
170
  *
151
171
  * @type {string}
152
172
  * @memberof CapabilityOption
153
173
  */
154
- device_type?: string;
174
+ device?: string;
155
175
  /**
156
176
  *
157
- * @type {boolean}
177
+ * @type {DeviceTypeEnum}
158
178
  * @memberof CapabilityOption
159
179
  */
160
- unsupported?: boolean;
180
+ device_type?: DeviceTypeEnum;
161
181
  /**
162
- *
182
+ * (deprecated)
163
183
  * @type {boolean}
164
184
  * @memberof CapabilityOption
185
+ * @deprecated
165
186
  */
166
- no_new_registration?: boolean;
187
+ unsupported?: boolean;
167
188
  }
168
189
  /**
169
190
  *
@@ -429,6 +450,19 @@ export interface DescribeResult200Response {
429
450
  */
430
451
  test_plan?: TestPlan | null;
431
452
  }
453
+ /**
454
+ * mobile is deprecated and will be replaced by smartphone
455
+ * @export
456
+ * @enum {string}
457
+ */
458
+ export declare const DeviceTypeEnum: {
459
+ readonly Desktop: "desktop";
460
+ readonly Mobile: "mobile";
461
+ readonly Smartphone: "smartphone";
462
+ readonly Tablet: "tablet";
463
+ readonly Emulator: "emulator";
464
+ };
465
+ export type DeviceTypeEnum = (typeof DeviceTypeEnum)[keyof typeof DeviceTypeEnum];
432
466
  /**
433
467
  *
434
468
  * @export
@@ -500,13 +534,13 @@ export interface ExecuteScenarios404ResponseErrorsInner {
500
534
  */
501
535
  export interface ExecuteScenariosRequest {
502
536
  /**
503
- * Defaults to \"API execution {{time_at(Time.now, organization.timezone)}}\"
537
+ * Defaults to "API execution {{time_at(Time.now, organization.timezone)}}"
504
538
  * @type {string}
505
539
  * @memberof ExecuteScenariosRequest
506
540
  */
507
541
  name?: string;
508
542
  /**
509
- * Defaults to \"parallel\" (\"sequential\" In case parallel execution was disabled in the workspace)
543
+ * Defaults to "parallel" ("sequential" In case parallel execution was disabled in the workspace)
510
544
  * @type {string}
511
545
  * @memberof ExecuteScenariosRequest
512
546
  */
@@ -564,8 +598,15 @@ export interface ExecuteScenariosRequestCapabilitiesInner {
564
598
  *
565
599
  * @type {string}
566
600
  * @memberof ExecuteScenariosRequestCapabilitiesInner
601
+ * @deprecated
567
602
  */
568
603
  os?: string;
604
+ /**
605
+ *
606
+ * @type {OsTypeEnum}
607
+ * @memberof ExecuteScenariosRequestCapabilitiesInner
608
+ */
609
+ os_type?: OsTypeEnum;
569
610
  /**
570
611
  *
571
612
  * @type {string}
@@ -582,14 +623,15 @@ export interface ExecuteScenariosRequestCapabilitiesInner {
582
623
  *
583
624
  * @type {string}
584
625
  * @memberof ExecuteScenariosRequestCapabilitiesInner
626
+ * @deprecated
585
627
  */
586
- device_type?: string;
628
+ browser?: string;
587
629
  /**
588
630
  *
589
- * @type {string}
631
+ * @type {BrowserTypeEnum}
590
632
  * @memberof ExecuteScenariosRequestCapabilitiesInner
591
633
  */
592
- browser?: string;
634
+ browser_type?: BrowserTypeEnum;
593
635
  /**
594
636
  *
595
637
  * @type {string}
@@ -789,6 +831,20 @@ export interface Label {
789
831
  */
790
832
  updated_at?: string;
791
833
  }
834
+ /**
835
+ *
836
+ * @export
837
+ * @enum {string}
838
+ */
839
+ export declare const OsTypeEnum: {
840
+ readonly Macos: "macos";
841
+ readonly Linux: "linux";
842
+ readonly Windows: "windows";
843
+ readonly WindowsServer: "windows_server";
844
+ readonly Ios: "ios";
845
+ readonly Android: "android";
846
+ };
847
+ export type OsTypeEnum = (typeof OsTypeEnum)[keyof typeof OsTypeEnum];
792
848
  /**
793
849
  *
794
850
  * @export
@@ -918,7 +974,7 @@ export interface TestCaseResult {
918
974
  */
919
975
  project_url?: string;
920
976
  /**
921
- * Number of \"Review needed\" flags present in the test results.
977
+ * Number of "Review needed" flags present in the test results.
922
978
  * @type {number}
923
979
  * @memberof TestCaseResult
924
980
  */
@@ -1441,13 +1497,15 @@ export declare const CapabilityApiAxiosParamCreator: (configuration?: Configurat
1441
1497
  /**
1442
1498
  * List available Capabilities.
1443
1499
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1444
- * @param {string} [os] os name to filter
1445
- * @param {string} [browser] browser name to filter
1446
- * @param {string} [deviceType] device_type name to filter
1500
+ * @param {string} [os] os name to filter (deprecated)
1501
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1502
+ * @param {string} [browser] browser name to filter (deprecated)
1503
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1504
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1447
1505
  * @param {*} [options] Override http request option.
1448
1506
  * @throws {RequiredError}
1449
1507
  */
1450
- listCapabilities: (projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1508
+ listCapabilities: (projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1451
1509
  };
1452
1510
  /**
1453
1511
  * CapabilityApi - functional programming interface
@@ -1457,13 +1515,15 @@ export declare const CapabilityApiFp: (configuration?: Configuration) => {
1457
1515
  /**
1458
1516
  * List available Capabilities.
1459
1517
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1460
- * @param {string} [os] os name to filter
1461
- * @param {string} [browser] browser name to filter
1462
- * @param {string} [deviceType] device_type name to filter
1518
+ * @param {string} [os] os name to filter (deprecated)
1519
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1520
+ * @param {string} [browser] browser name to filter (deprecated)
1521
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1522
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1463
1523
  * @param {*} [options] Override http request option.
1464
1524
  * @throws {RequiredError}
1465
1525
  */
1466
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CapabilityOption>>>;
1526
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CapabilityOption>>>;
1467
1527
  };
1468
1528
  /**
1469
1529
  * CapabilityApi - factory interface
@@ -1473,13 +1533,15 @@ export declare const CapabilityApiFactory: (configuration?: Configuration, baseP
1473
1533
  /**
1474
1534
  * List available Capabilities.
1475
1535
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1476
- * @param {string} [os] os name to filter
1477
- * @param {string} [browser] browser name to filter
1478
- * @param {string} [deviceType] device_type name to filter
1536
+ * @param {string} [os] os name to filter (deprecated)
1537
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1538
+ * @param {string} [browser] browser name to filter (deprecated)
1539
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1540
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1479
1541
  * @param {*} [options] Override http request option.
1480
1542
  * @throws {RequiredError}
1481
1543
  */
1482
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: any): AxiosPromise<Array<CapabilityOption>>;
1544
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: any): AxiosPromise<Array<CapabilityOption>>;
1483
1545
  };
1484
1546
  /**
1485
1547
  * CapabilityApi - object-oriented interface
@@ -1491,14 +1553,16 @@ export declare class CapabilityApi extends BaseAPI {
1491
1553
  /**
1492
1554
  * List available Capabilities.
1493
1555
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1494
- * @param {string} [os] os name to filter
1495
- * @param {string} [browser] browser name to filter
1496
- * @param {string} [deviceType] device_type name to filter
1556
+ * @param {string} [os] os name to filter (deprecated)
1557
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1558
+ * @param {string} [browser] browser name to filter (deprecated)
1559
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1560
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1497
1561
  * @param {*} [options] Override http request option.
1498
1562
  * @throws {RequiredError}
1499
1563
  * @memberof CapabilityApi
1500
1564
  */
1501
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
1565
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
1502
1566
  }
1503
1567
  /**
1504
1568
  * CreditApi - axios parameter creator
@@ -1506,10 +1570,10 @@ export declare class CapabilityApi extends BaseAPI {
1506
1570
  */
1507
1571
  export declare const CreditApiAxiosParamCreator: (configuration?: Configuration) => {
1508
1572
  /**
1509
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1573
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1510
1574
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
1511
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
1512
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
1575
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
1576
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
1513
1577
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
1514
1578
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
1515
1579
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -1524,10 +1588,10 @@ export declare const CreditApiAxiosParamCreator: (configuration?: Configuration)
1524
1588
  */
1525
1589
  export declare const CreditApiFp: (configuration?: Configuration) => {
1526
1590
  /**
1527
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1591
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1528
1592
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
1529
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
1530
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
1593
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
1594
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
1531
1595
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
1532
1596
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
1533
1597
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -1542,10 +1606,10 @@ export declare const CreditApiFp: (configuration?: Configuration) => {
1542
1606
  */
1543
1607
  export declare const CreditApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1544
1608
  /**
1545
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1609
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1546
1610
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
1547
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
1548
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
1611
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
1612
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
1549
1613
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
1550
1614
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
1551
1615
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -1562,10 +1626,10 @@ export declare const CreditApiFactory: (configuration?: Configuration, basePath?
1562
1626
  */
1563
1627
  export declare class CreditApi extends BaseAPI {
1564
1628
  /**
1565
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1629
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
1566
1630
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
1567
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
1568
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
1631
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
1632
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
1569
1633
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
1570
1634
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
1571
1635
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -1756,7 +1820,7 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
1756
1820
  */
1757
1821
  describeScenario: (projectId: number, scenarioId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1758
1822
  /**
1759
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1823
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1760
1824
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1761
1825
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1762
1826
  * @param {*} [options] Override http request option.
@@ -1786,7 +1850,7 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
1786
1850
  */
1787
1851
  describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scenario>>;
1788
1852
  /**
1789
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1853
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1790
1854
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1791
1855
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1792
1856
  * @param {*} [options] Override http request option.
@@ -1816,7 +1880,7 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
1816
1880
  */
1817
1881
  describeScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<Scenario>;
1818
1882
  /**
1819
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1883
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1820
1884
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1821
1885
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1822
1886
  * @param {*} [options] Override http request option.
@@ -1849,7 +1913,7 @@ export declare class ScenarioApi extends BaseAPI {
1849
1913
  */
1850
1914
  describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario, any>>;
1851
1915
  /**
1852
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1916
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1853
1917
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1854
1918
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1855
1919
  * @param {*} [options] Override http request option.
@@ -1873,7 +1937,7 @@ export declare class ScenarioApi extends BaseAPI {
1873
1937
  */
1874
1938
  export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuration) => {
1875
1939
  /**
1876
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1940
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1877
1941
  * @summary Run a test plan.
1878
1942
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1879
1943
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1888,7 +1952,7 @@ export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuratio
1888
1952
  */
1889
1953
  export declare const ScheduleApiFp: (configuration?: Configuration) => {
1890
1954
  /**
1891
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1955
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1892
1956
  * @summary Run a test plan.
1893
1957
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1894
1958
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1903,7 +1967,7 @@ export declare const ScheduleApiFp: (configuration?: Configuration) => {
1903
1967
  */
1904
1968
  export declare const ScheduleApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1905
1969
  /**
1906
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1970
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1907
1971
  * @summary Run a test plan.
1908
1972
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1909
1973
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1920,7 +1984,7 @@ export declare const ScheduleApiFactory: (configuration?: Configuration, basePat
1920
1984
  */
1921
1985
  export declare class ScheduleApi extends BaseAPI {
1922
1986
  /**
1923
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1987
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1924
1988
  * @summary Run a test plan.
1925
1989
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1926
1990
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1962,7 +2026,7 @@ export declare const TestPlanVariableApiAxiosParamCreator: (configuration?: Conf
1962
2026
  * Update a url replacement for the test plan
1963
2027
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1964
2028
  * @param {number} testPlanVariableId test_plan_variable id
1965
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2029
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1966
2030
  * @param {*} [options] Override http request option.
1967
2031
  * @throws {RequiredError}
1968
2032
  */
@@ -2000,7 +2064,7 @@ export declare const TestPlanVariableApiFp: (configuration?: Configuration) => {
2000
2064
  * Update a url replacement for the test plan
2001
2065
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2002
2066
  * @param {number} testPlanVariableId test_plan_variable id
2003
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2067
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2004
2068
  * @param {*} [options] Override http request option.
2005
2069
  * @throws {RequiredError}
2006
2070
  */
@@ -2038,7 +2102,7 @@ export declare const TestPlanVariableApiFactory: (configuration?: Configuration,
2038
2102
  * Update a url replacement for the test plan
2039
2103
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2040
2104
  * @param {number} testPlanVariableId test_plan_variable id
2041
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2105
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2042
2106
  * @param {*} [options] Override http request option.
2043
2107
  * @throws {RequiredError}
2044
2108
  */
@@ -2081,7 +2145,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
2081
2145
  * Update a url replacement for the test plan
2082
2146
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2083
2147
  * @param {number} testPlanVariableId test_plan_variable id
2084
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2148
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2085
2149
  * @param {*} [options] Override http request option.
2086
2150
  * @throws {RequiredError}
2087
2151
  * @memberof TestPlanVariableApi
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Autify API
6
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
6
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.ExecuteScenariosRequestExecutionTypeEnum = void 0;
16
+ exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.OsTypeEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DeviceTypeEnum = exports.BrowserTypeEnum = void 0;
17
17
  const tslib_1 = require("tslib");
18
18
  const axios_1 = tslib_1.__importDefault(require("axios"));
19
19
  // URLSearchParams not necessarily used
@@ -24,10 +24,48 @@ const url_1 = require("url");
24
24
  const common_1 = require("./common");
25
25
  // @ts-ignore
26
26
  const base_1 = require("./base");
27
+ /**
28
+ *
29
+ * @export
30
+ * @enum {string}
31
+ */
32
+ exports.BrowserTypeEnum = {
33
+ Chrome: "chrome",
34
+ Firefox: "firefox",
35
+ Safari: "safari",
36
+ Edge: "edge",
37
+ EdgeLegacy: "edge_legacy",
38
+ Ie: "ie",
39
+ };
40
+ /**
41
+ * mobile is deprecated and will be replaced by smartphone
42
+ * @export
43
+ * @enum {string}
44
+ */
45
+ exports.DeviceTypeEnum = {
46
+ Desktop: "desktop",
47
+ Mobile: "mobile",
48
+ Smartphone: "smartphone",
49
+ Tablet: "tablet",
50
+ Emulator: "emulator",
51
+ };
27
52
  exports.ExecuteScenariosRequestExecutionTypeEnum = {
28
53
  Parallel: "parallel",
29
54
  Sequential: "sequential",
30
55
  };
56
+ /**
57
+ *
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ exports.OsTypeEnum = {
62
+ Macos: "macos",
63
+ Linux: "linux",
64
+ Windows: "windows",
65
+ WindowsServer: "windows_server",
66
+ Ios: "ios",
67
+ Android: "android",
68
+ };
31
69
  /**
32
70
  *
33
71
  * @export
@@ -340,13 +378,15 @@ const CapabilityApiAxiosParamCreator = function (configuration) {
340
378
  /**
341
379
  * List available Capabilities.
342
380
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
343
- * @param {string} [os] os name to filter
344
- * @param {string} [browser] browser name to filter
345
- * @param {string} [deviceType] device_type name to filter
381
+ * @param {string} [os] os name to filter (deprecated)
382
+ * @param {OsTypeEnum} [osType] Type of the os to filter
383
+ * @param {string} [browser] browser name to filter (deprecated)
384
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
385
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
346
386
  * @param {*} [options] Override http request option.
347
387
  * @throws {RequiredError}
348
388
  */
349
- listCapabilities: async (projectId, os, browser, deviceType, options = {}) => {
389
+ listCapabilities: async (projectId, os, osType, browser, browserType, deviceType, options = {}) => {
350
390
  // verify required parameter 'projectId' is not null or undefined
351
391
  (0, common_1.assertParamExists)("listCapabilities", "projectId", projectId);
352
392
  const localVarPath = `/projects/{project_id}/capabilities`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
@@ -369,9 +409,15 @@ const CapabilityApiAxiosParamCreator = function (configuration) {
369
409
  if (os !== undefined) {
370
410
  localVarQueryParameter["os"] = os;
371
411
  }
412
+ if (osType !== undefined) {
413
+ localVarQueryParameter["os_type"] = osType;
414
+ }
372
415
  if (browser !== undefined) {
373
416
  localVarQueryParameter["browser"] = browser;
374
417
  }
418
+ if (browserType !== undefined) {
419
+ localVarQueryParameter["browser_type"] = browserType;
420
+ }
375
421
  if (deviceType !== undefined) {
376
422
  localVarQueryParameter["device_type"] = deviceType;
377
423
  }
@@ -400,14 +446,16 @@ const CapabilityApiFp = function (configuration) {
400
446
  /**
401
447
  * List available Capabilities.
402
448
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
403
- * @param {string} [os] os name to filter
404
- * @param {string} [browser] browser name to filter
405
- * @param {string} [deviceType] device_type name to filter
449
+ * @param {string} [os] os name to filter (deprecated)
450
+ * @param {OsTypeEnum} [osType] Type of the os to filter
451
+ * @param {string} [browser] browser name to filter (deprecated)
452
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
453
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
406
454
  * @param {*} [options] Override http request option.
407
455
  * @throws {RequiredError}
408
456
  */
409
- async listCapabilities(projectId, os, browser, deviceType, options) {
410
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCapabilities(projectId, os, browser, deviceType, options);
457
+ async listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCapabilities(projectId, os, osType, browser, browserType, deviceType, options);
411
459
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
412
460
  },
413
461
  };
@@ -423,15 +471,17 @@ const CapabilityApiFactory = function (configuration, basePath, axios) {
423
471
  /**
424
472
  * List available Capabilities.
425
473
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
426
- * @param {string} [os] os name to filter
427
- * @param {string} [browser] browser name to filter
428
- * @param {string} [deviceType] device_type name to filter
474
+ * @param {string} [os] os name to filter (deprecated)
475
+ * @param {OsTypeEnum} [osType] Type of the os to filter
476
+ * @param {string} [browser] browser name to filter (deprecated)
477
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
478
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
429
479
  * @param {*} [options] Override http request option.
430
480
  * @throws {RequiredError}
431
481
  */
432
- listCapabilities(projectId, os, browser, deviceType, options) {
482
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
433
483
  return localVarFp
434
- .listCapabilities(projectId, os, browser, deviceType, options)
484
+ .listCapabilities(projectId, os, osType, browser, browserType, deviceType, options)
435
485
  .then((request) => request(axios, basePath));
436
486
  },
437
487
  };
@@ -447,16 +497,18 @@ class CapabilityApi extends base_1.BaseAPI {
447
497
  /**
448
498
  * List available Capabilities.
449
499
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
450
- * @param {string} [os] os name to filter
451
- * @param {string} [browser] browser name to filter
452
- * @param {string} [deviceType] device_type name to filter
500
+ * @param {string} [os] os name to filter (deprecated)
501
+ * @param {OsTypeEnum} [osType] Type of the os to filter
502
+ * @param {string} [browser] browser name to filter (deprecated)
503
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
504
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
453
505
  * @param {*} [options] Override http request option.
454
506
  * @throws {RequiredError}
455
507
  * @memberof CapabilityApi
456
508
  */
457
- listCapabilities(projectId, os, browser, deviceType, options) {
509
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
458
510
  return (0, exports.CapabilityApiFp)(this.configuration)
459
- .listCapabilities(projectId, os, browser, deviceType, options)
511
+ .listCapabilities(projectId, os, osType, browser, browserType, deviceType, options)
460
512
  .then((request) => request(this.axios, this.basePath));
461
513
  }
462
514
  }
@@ -468,10 +520,10 @@ exports.CapabilityApi = CapabilityApi;
468
520
  const CreditApiAxiosParamCreator = function (configuration) {
469
521
  return {
470
522
  /**
471
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
523
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
472
524
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
473
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
474
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
525
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
526
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
475
527
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
476
528
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
477
529
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -542,10 +594,10 @@ const CreditApiFp = function (configuration) {
542
594
  const localVarAxiosParamCreator = (0, exports.CreditApiAxiosParamCreator)(configuration);
543
595
  return {
544
596
  /**
545
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
597
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
546
598
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
547
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
548
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
599
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
600
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
549
601
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
550
602
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
551
603
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -567,10 +619,10 @@ const CreditApiFactory = function (configuration, basePath, axios) {
567
619
  const localVarFp = (0, exports.CreditApiFp)(configuration);
568
620
  return {
569
621
  /**
570
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
622
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
571
623
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
572
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
573
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
624
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
625
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
574
626
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
575
627
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
576
628
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -593,10 +645,10 @@ exports.CreditApiFactory = CreditApiFactory;
593
645
  */
594
646
  class CreditApi extends base_1.BaseAPI {
595
647
  /**
596
- * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
648
+ * Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
597
649
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/credits
598
- * @param {string} [dateFrom] The date to start counting used credits from.\\ If not specified, the date will be set to 1 week ago.\\ Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-21\&quot;).
599
- * @param {string} [dateTo] The date to end counting used credits from.\\ If not specified, the date will be set to today.\\ Date must follow the format YYYY-MM-DD (example: \&quot;2023-09-28\&quot;).
650
+ * @param {string} [dateFrom] The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: "2023-09-21").
651
+ * @param {string} [dateTo] The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: "2023-09-28").
600
652
  * @param {number} [scenarioId] The scenario ID to filter used credits by.
601
653
  * @param {number} [testPlanId] The test plan ID to filter used credits by.
602
654
  * @param {number} [userId] The user ID that executed tests to filter used credits by.
@@ -994,7 +1046,7 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
994
1046
  };
995
1047
  },
996
1048
  /**
997
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1049
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
998
1050
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
999
1051
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1000
1052
  * @param {*} [options] Override http request option.
@@ -1100,7 +1152,7 @@ const ScenarioApiFp = function (configuration) {
1100
1152
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1101
1153
  },
1102
1154
  /**
1103
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1155
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1104
1156
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1105
1157
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1106
1158
  * @param {*} [options] Override http request option.
@@ -1144,7 +1196,7 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
1144
1196
  .then((request) => request(axios, basePath));
1145
1197
  },
1146
1198
  /**
1147
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1199
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1148
1200
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1149
1201
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1150
1202
  * @param {*} [options] Override http request option.
@@ -1191,7 +1243,7 @@ class ScenarioApi extends base_1.BaseAPI {
1191
1243
  .then((request) => request(this.axios, this.basePath));
1192
1244
  }
1193
1245
  /**
1194
- * You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).
1246
+ * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1195
1247
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1196
1248
  * @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
1197
1249
  * @param {*} [options] Override http request option.
@@ -1225,7 +1277,7 @@ exports.ScenarioApi = ScenarioApi;
1225
1277
  const ScheduleApiAxiosParamCreator = function (configuration) {
1226
1278
  return {
1227
1279
  /**
1228
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1280
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1229
1281
  * @summary Run a test plan.
1230
1282
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1231
1283
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1277,7 +1329,7 @@ const ScheduleApiFp = function (configuration) {
1277
1329
  const localVarAxiosParamCreator = (0, exports.ScheduleApiAxiosParamCreator)(configuration);
1278
1330
  return {
1279
1331
  /**
1280
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1332
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1281
1333
  * @summary Run a test plan.
1282
1334
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1283
1335
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1299,7 +1351,7 @@ const ScheduleApiFactory = function (configuration, basePath, axios) {
1299
1351
  const localVarFp = (0, exports.ScheduleApiFp)(configuration);
1300
1352
  return {
1301
1353
  /**
1302
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1354
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1303
1355
  * @summary Run a test plan.
1304
1356
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1305
1357
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1322,7 +1374,7 @@ exports.ScheduleApiFactory = ScheduleApiFactory;
1322
1374
  */
1323
1375
  class ScheduleApi extends base_1.BaseAPI {
1324
1376
  /**
1325
- * \"Schedule\" is called as \"Test Plan\" now.\\ If you want to run a test plan, use this endpoint.
1377
+ * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
1326
1378
  * @summary Run a test plan.
1327
1379
  * @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
1328
1380
  * @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
@@ -1471,7 +1523,7 @@ const TestPlanVariableApiAxiosParamCreator = function (configuration) {
1471
1523
  * Update a url replacement for the test plan
1472
1524
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1473
1525
  * @param {number} testPlanVariableId test_plan_variable id
1474
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1526
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1475
1527
  * @param {*} [options] Override http request option.
1476
1528
  * @throws {RequiredError}
1477
1529
  */
@@ -1561,7 +1613,7 @@ const TestPlanVariableApiFp = function (configuration) {
1561
1613
  * Update a url replacement for the test plan
1562
1614
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1563
1615
  * @param {number} testPlanVariableId test_plan_variable id
1564
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1616
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1565
1617
  * @param {*} [options] Override http request option.
1566
1618
  * @throws {RequiredError}
1567
1619
  */
@@ -1618,7 +1670,7 @@ const TestPlanVariableApiFactory = function (configuration, basePath, axios) {
1618
1670
  * Update a url replacement for the test plan
1619
1671
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1620
1672
  * @param {number} testPlanVariableId test_plan_variable id
1621
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1673
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1622
1674
  * @param {*} [options] Override http request option.
1623
1675
  * @throws {RequiredError}
1624
1676
  */
@@ -1679,7 +1731,7 @@ class TestPlanVariableApi extends base_1.BaseAPI {
1679
1731
  * Update a url replacement for the test plan
1680
1732
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1681
1733
  * @param {number} testPlanVariableId test_plan_variable id
1682
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1734
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1683
1735
  * @param {*} [options] Override http request option.
1684
1736
  * @throws {RequiredError}
1685
1737
  * @memberof TestPlanVariableApi
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Autify API
3
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
3
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Autify API
6
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
6
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Autify API
3
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
3
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- /// <reference types="node" />
13
12
  import { Configuration } from "./configuration";
14
13
  import { RequestArgs } from "./base";
15
14
  import { AxiosInstance, AxiosResponse } from "axios";
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Autify API
6
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
6
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Autify API
3
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
3
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Autify API
6
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
6
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Autify API
3
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
3
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Autify API
6
- * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { \"errors\":[{ \"message\": \"Bad credentials\" }] } ```
6
+ * ## Authorization You can authenticate the API by using a personal access token and passing it to the Bearer header. To generate or manage API keys、please visit [your account page](https://app.autify.com/settings). If the credentials are invalid or omitted, an error message is returned with status code 401: ``` { "errors":[{ "message": "Bad credentials" }] } ```
7
7
  *
8
8
  * The version of the OpenAPI document: v1
9
9
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -13,35 +13,35 @@
13
13
  "/dist"
14
14
  ],
15
15
  "engines": {
16
- "node": ">=20.11.0"
16
+ "node": ">=20.16.0"
17
17
  },
18
18
  "dependencies": {
19
- "axios": "^1.6.0",
20
- "axios-logger": "^2.7.1",
21
- "debug": "^4.3.4",
19
+ "axios": "^1.7.2",
20
+ "axios-logger": "^2.8.1",
21
+ "debug": "^4.3.6",
22
22
  "form-data": "^4.0.0",
23
- "tslib": "^2.6.2"
23
+ "tslib": "^2.6.3"
24
24
  },
25
25
  "devDependencies": {
26
- "@openapitools/openapi-generator-cli": "^2.7.0",
26
+ "@openapitools/openapi-generator-cli": "^2.13.4",
27
27
  "@types/debug": "^4.1.12",
28
- "@types/jest": "^29.5.11",
29
- "@types/node": "^20.11.3",
30
- "@typescript-eslint/eslint-plugin": "^6.19.0",
31
- "@typescript-eslint/parser": "^6.19.0",
28
+ "@types/jest": "^29.5.12",
29
+ "@types/node": "^20.14.13",
30
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
31
+ "@typescript-eslint/parser": "^7.18.0",
32
32
  "axios-mock-adapter": "^1.22.0",
33
- "eslint": "^8.56.0",
33
+ "eslint": "^8.57.0",
34
34
  "eslint-config-prettier": "^9.1.0",
35
- "eslint-plugin-unused-imports": "^3.0.0",
36
- "husky": "^8.0.3",
35
+ "eslint-plugin-unused-imports": "^3.2.0",
36
+ "husky": "^9.1.4",
37
37
  "jest": "^29.7.0",
38
- "lint-staged": "^15.2.0",
39
- "prettier": "^3.2.2",
38
+ "lint-staged": "^15.2.7",
39
+ "prettier": "^3.3.3",
40
40
  "shx": "^0.3.4",
41
- "ts-jest": "^29.1.1",
42
- "ts-morph": "^21.0.1",
41
+ "ts-jest": "^29.2.3",
42
+ "ts-morph": "^23.0.0",
43
43
  "ts-node": "^10.9.2",
44
- "typescript": "^5.3.3"
44
+ "typescript": "^5.5.4"
45
45
  },
46
46
  "scripts": {
47
47
  "update-swagger-web": "curl -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
@@ -50,10 +50,11 @@
50
50
  "generate:sdk-client": "ts-node scripts/generate.ts",
51
51
  "generate:client:web": "npm run update-swagger-web && npm run generate:openapi-client:web && npm run generate:sdk-client web",
52
52
  "generate:client:mobile": "npm run generate:openapi-client:mobile && npm run generate:sdk-client mobile",
53
- "generate": "npm run generate:client:web && npm run generate:client:mobile && npm run lint && npm run format",
53
+ "generate": "npm run generate:client:web && npm run generate:client:mobile && npm run fix-html-escape && npm run lint && npm run format",
54
54
  "build": "shx rm -rf dist && tsc -b",
55
55
  "prepack": "npm run build",
56
56
  "lint": "eslint . --ext .ts",
57
+ "fix-html-escape": "bash scripts/fixHtmlEscape.sh",
57
58
  "format": "prettier --write '**/*.{md,json,yml,js,cjs,ts}'",
58
59
  "prepare": "husky install",
59
60
  "test": "jest test"