@dynamic-labs/sdk-api 0.0.587 → 0.0.589
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.
- package/package.json +1 -1
- package/src/apis/CustomHostnamesApi.cjs +10 -7
- package/src/apis/CustomHostnamesApi.d.ts +6 -5
- package/src/apis/CustomHostnamesApi.js +10 -7
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/BadGateway.cjs +43 -0
- package/src/models/BadGateway.d.ts +27 -0
- package/src/models/BadGateway.js +37 -0
- package/src/models/CustomHostname.cjs +1 -1
- package/src/models/CustomHostname.d.ts +1 -1
- package/src/models/CustomHostname.js +1 -1
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -111,17 +111,20 @@ class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* Delete the custom hostname
|
|
114
|
+
* Delete the custom hostname
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
deleteCustomHostnameRaw(requestParameters, initOverrides) {
|
|
117
117
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
119
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
119
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
|
|
122
|
+
throw new runtime.RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
|
|
120
123
|
}
|
|
121
124
|
const queryParameters = {};
|
|
122
125
|
const headerParameters = {};
|
|
123
126
|
const response = yield this.request({
|
|
124
|
-
path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
127
|
+
path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
|
|
125
128
|
method: 'DELETE',
|
|
126
129
|
headers: headerParameters,
|
|
127
130
|
query: queryParameters,
|
|
@@ -130,11 +133,11 @@ class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
130
133
|
});
|
|
131
134
|
}
|
|
132
135
|
/**
|
|
133
|
-
* Delete the custom hostname
|
|
136
|
+
* Delete the custom hostname
|
|
134
137
|
*/
|
|
135
|
-
|
|
138
|
+
deleteCustomHostname(requestParameters, initOverrides) {
|
|
136
139
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
yield this.
|
|
140
|
+
yield this.deleteCustomHostnameRaw(requestParameters, initOverrides);
|
|
138
141
|
});
|
|
139
142
|
}
|
|
140
143
|
/**
|
|
@@ -15,8 +15,9 @@ export interface CreateCustomHostnameRequest {
|
|
|
15
15
|
environmentId: string;
|
|
16
16
|
customHostnameCreateRequest: CustomHostnameCreateRequest;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface DeleteCustomHostnameRequest {
|
|
19
19
|
environmentId: string;
|
|
20
|
+
customHostnameId: string;
|
|
20
21
|
}
|
|
21
22
|
export interface GetCustomHostnamesRequest {
|
|
22
23
|
environmentId: string;
|
|
@@ -34,13 +35,13 @@ export declare class CustomHostnamesApi extends runtime.BaseAPI {
|
|
|
34
35
|
*/
|
|
35
36
|
createCustomHostname(requestParameters: CreateCustomHostnameRequest, initOverrides?: RequestInit): Promise<CustomHostname>;
|
|
36
37
|
/**
|
|
37
|
-
* Delete the custom hostname
|
|
38
|
+
* Delete the custom hostname
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
+
deleteCustomHostnameRaw(requestParameters: DeleteCustomHostnameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
40
41
|
/**
|
|
41
|
-
* Delete the custom hostname
|
|
42
|
+
* Delete the custom hostname
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
deleteCustomHostname(requestParameters: DeleteCustomHostnameRequest, initOverrides?: RequestInit): Promise<void>;
|
|
44
45
|
/**
|
|
45
46
|
* Get the custom hostnames for this environemnt
|
|
46
47
|
*/
|
|
@@ -107,17 +107,20 @@ class CustomHostnamesApi extends BaseAPI {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Delete the custom hostname
|
|
110
|
+
* Delete the custom hostname
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
deleteCustomHostnameRaw(requestParameters, initOverrides) {
|
|
113
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
115
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
115
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
|
|
118
|
+
throw new RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
|
|
116
119
|
}
|
|
117
120
|
const queryParameters = {};
|
|
118
121
|
const headerParameters = {};
|
|
119
122
|
const response = yield this.request({
|
|
120
|
-
path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
123
|
+
path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
|
|
121
124
|
method: 'DELETE',
|
|
122
125
|
headers: headerParameters,
|
|
123
126
|
query: queryParameters,
|
|
@@ -126,11 +129,11 @@ class CustomHostnamesApi extends BaseAPI {
|
|
|
126
129
|
});
|
|
127
130
|
}
|
|
128
131
|
/**
|
|
129
|
-
* Delete the custom hostname
|
|
132
|
+
* Delete the custom hostname
|
|
130
133
|
*/
|
|
131
|
-
|
|
134
|
+
deleteCustomHostname(requestParameters, initOverrides) {
|
|
132
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
yield this.
|
|
136
|
+
yield this.deleteCustomHostnameRaw(requestParameters, initOverrides);
|
|
134
137
|
});
|
|
135
138
|
}
|
|
136
139
|
/**
|
package/src/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ var AuthenticatorAttachment = require('./models/AuthenticatorAttachment.cjs');
|
|
|
55
55
|
var AuthenticatorAttestationResponse = require('./models/AuthenticatorAttestationResponse.cjs');
|
|
56
56
|
var AuthenticatorSelectionCriteria = require('./models/AuthenticatorSelectionCriteria.cjs');
|
|
57
57
|
var AuthenticatorTransportProtocol = require('./models/AuthenticatorTransportProtocol.cjs');
|
|
58
|
+
var BadGateway = require('./models/BadGateway.cjs');
|
|
58
59
|
var BadRequest = require('./models/BadRequest.cjs');
|
|
59
60
|
var BaseUser = require('./models/BaseUser.cjs');
|
|
60
61
|
var BillingSubscription = require('./models/BillingSubscription.cjs');
|
|
@@ -564,6 +565,9 @@ Object.defineProperty(exports, 'AuthenticatorTransportProtocol', {
|
|
|
564
565
|
exports.AuthenticatorTransportProtocolFromJSON = AuthenticatorTransportProtocol.AuthenticatorTransportProtocolFromJSON;
|
|
565
566
|
exports.AuthenticatorTransportProtocolFromJSONTyped = AuthenticatorTransportProtocol.AuthenticatorTransportProtocolFromJSONTyped;
|
|
566
567
|
exports.AuthenticatorTransportProtocolToJSON = AuthenticatorTransportProtocol.AuthenticatorTransportProtocolToJSON;
|
|
568
|
+
exports.BadGatewayFromJSON = BadGateway.BadGatewayFromJSON;
|
|
569
|
+
exports.BadGatewayFromJSONTyped = BadGateway.BadGatewayFromJSONTyped;
|
|
570
|
+
exports.BadGatewayToJSON = BadGateway.BadGatewayToJSON;
|
|
567
571
|
exports.BadRequestFromJSON = BadRequest.BadRequestFromJSON;
|
|
568
572
|
exports.BadRequestFromJSONTyped = BadRequest.BadRequestFromJSONTyped;
|
|
569
573
|
exports.BadRequestToJSON = BadRequest.BadRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -51,6 +51,7 @@ export { AuthenticatorAttachment, AuthenticatorAttachmentFromJSON, Authenticator
|
|
|
51
51
|
export { AuthenticatorAttestationResponseFromJSON, AuthenticatorAttestationResponseFromJSONTyped, AuthenticatorAttestationResponseToJSON } from './models/AuthenticatorAttestationResponse.js';
|
|
52
52
|
export { AuthenticatorSelectionCriteriaFromJSON, AuthenticatorSelectionCriteriaFromJSONTyped, AuthenticatorSelectionCriteriaToJSON } from './models/AuthenticatorSelectionCriteria.js';
|
|
53
53
|
export { AuthenticatorTransportProtocol, AuthenticatorTransportProtocolFromJSON, AuthenticatorTransportProtocolFromJSONTyped, AuthenticatorTransportProtocolToJSON } from './models/AuthenticatorTransportProtocol.js';
|
|
54
|
+
export { BadGatewayFromJSON, BadGatewayFromJSONTyped, BadGatewayToJSON } from './models/BadGateway.js';
|
|
54
55
|
export { BadRequestFromJSON, BadRequestFromJSONTyped, BadRequestToJSON } from './models/BadRequest.js';
|
|
55
56
|
export { BaseUserFromJSON, BaseUserFromJSONTyped, BaseUserToJSON } from './models/BaseUser.js';
|
|
56
57
|
export { BillingSubscriptionFromJSON, BillingSubscriptionFromJSONTyped, BillingSubscriptionToJSON } from './models/BillingSubscription.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function BadGatewayFromJSON(json) {
|
|
19
|
+
return BadGatewayFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function BadGatewayFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'error': json['error'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function BadGatewayToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'error': value.error,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.BadGatewayFromJSON = BadGatewayFromJSON;
|
|
42
|
+
exports.BadGatewayFromJSONTyped = BadGatewayFromJSONTyped;
|
|
43
|
+
exports.BadGatewayToJSON = BadGatewayToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BadGateway
|
|
16
|
+
*/
|
|
17
|
+
export interface BadGateway {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BadGateway
|
|
22
|
+
*/
|
|
23
|
+
error: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function BadGatewayFromJSON(json: any): BadGateway;
|
|
26
|
+
export declare function BadGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): BadGateway;
|
|
27
|
+
export declare function BadGatewayToJSON(value?: BadGateway | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function BadGatewayFromJSON(json) {
|
|
15
|
+
return BadGatewayFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function BadGatewayFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'error': json['error'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function BadGatewayToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'error': value.error,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { BadGatewayFromJSON, BadGatewayFromJSONTyped, BadGatewayToJSON };
|
|
@@ -18,7 +18,7 @@ function CustomHostnameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
return {
|
|
19
19
|
'id': json['id'],
|
|
20
20
|
'hostname': json['hostname'],
|
|
21
|
-
'usage':
|
|
21
|
+
'usage': CustomHostnameUsageEnum.CustomHostnameUsageEnumFromJSON(json['usage']),
|
|
22
22
|
'status': CustomHostnameStatusEnum.CustomHostnameStatusEnumFromJSON(json['status']),
|
|
23
23
|
'verificationRecords': (json['verificationRecords'].map(CustomHostnameVerificationRecord.CustomHostnameVerificationRecordFromJSON)),
|
|
24
24
|
'errors': !runtime.exists(json, 'errors') ? undefined : json['errors'],
|
|
@@ -14,7 +14,7 @@ function CustomHostnameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
return {
|
|
15
15
|
'id': json['id'],
|
|
16
16
|
'hostname': json['hostname'],
|
|
17
|
-
'usage':
|
|
17
|
+
'usage': CustomHostnameUsageEnumFromJSON(json['usage']),
|
|
18
18
|
'status': CustomHostnameStatusEnumFromJSON(json['status']),
|
|
19
19
|
'verificationRecords': (json['verificationRecords'].map(CustomHostnameVerificationRecordFromJSON)),
|
|
20
20
|
'errors': !exists(json, 'errors') ? undefined : json['errors'],
|
package/src/models/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './AuthenticatorAttachment';
|
|
|
20
20
|
export * from './AuthenticatorAttestationResponse';
|
|
21
21
|
export * from './AuthenticatorSelectionCriteria';
|
|
22
22
|
export * from './AuthenticatorTransportProtocol';
|
|
23
|
+
export * from './BadGateway';
|
|
23
24
|
export * from './BadRequest';
|
|
24
25
|
export * from './BaseUser';
|
|
25
26
|
export * from './BillingSubscription';
|