@randock/nameshift-api-client 0.0.535 → 0.0.536
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/.openapi-generator/FILES +20 -0
- package/README.md +3 -3
- package/dist/apis/WebhooksApi.d.ts +186 -0
- package/dist/apis/WebhooksApi.js +797 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CreateWebhookEndpointInput.d.ts +69 -0
- package/dist/models/CreateWebhookEndpointInput.js +66 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/UpdateWebhookEndpointInput.d.ts +69 -0
- package/dist/models/UpdateWebhookEndpointInput.js +62 -0
- package/dist/models/WebhookAttemptTrigger.d.ts +25 -0
- package/dist/models/WebhookAttemptTrigger.js +51 -0
- package/dist/models/WebhookDeliveriesSummaryDto.d.ts +62 -0
- package/dist/models/WebhookDeliveriesSummaryDto.js +71 -0
- package/dist/models/WebhookDeliveryAttemptDto.d.ts +75 -0
- package/dist/models/WebhookDeliveryAttemptDto.js +80 -0
- package/dist/models/WebhookDeliveryDto.d.ts +100 -0
- package/dist/models/WebhookDeliveryDto.js +97 -0
- package/dist/models/WebhookDeliveryStatus.d.ts +28 -0
- package/dist/models/WebhookDeliveryStatus.js +54 -0
- package/dist/models/WebhookEndpointDto.d.ts +111 -0
- package/dist/models/WebhookEndpointDto.js +104 -0
- package/dist/models/WebhookEndpointHeaderDto.d.ts +38 -0
- package/dist/models/WebhookEndpointHeaderDto.js +55 -0
- package/dist/models/WebhookEndpointHeaderInput.d.ts +38 -0
- package/dist/models/WebhookEndpointHeaderInput.js +55 -0
- package/dist/models/WebhookEndpointHeadersDto.d.ts +33 -0
- package/dist/models/WebhookEndpointHeadersDto.js +52 -0
- package/dist/models/WebhookEndpointSecretDto.d.ts +32 -0
- package/dist/models/WebhookEndpointSecretDto.js +51 -0
- package/dist/models/WebhookEndpointStatus.d.ts +26 -0
- package/dist/models/WebhookEndpointStatus.js +52 -0
- package/dist/models/WebhookEventTypeDto.d.ts +52 -0
- package/dist/models/WebhookEventTypeDto.js +63 -0
- package/dist/models/WebhookMessageDetailDto.d.ts +79 -0
- package/dist/models/WebhookMessageDetailDto.js +82 -0
- package/dist/models/WebhookMessageDto.d.ts +64 -0
- package/dist/models/WebhookMessageDto.js +73 -0
- package/dist/models/WebhookMessagePageDto.d.ts +40 -0
- package/dist/models/WebhookMessagePageDto.js +57 -0
- package/dist/models/WebhookMessagePageMetaDto.d.ts +50 -0
- package/dist/models/WebhookMessagePageMetaDto.js +63 -0
- package/dist/models/WebhookMessageStatus.d.ts +27 -0
- package/dist/models/WebhookMessageStatus.js +53 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/WebhooksApi.ts +671 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateWebhookEndpointInput.ts +123 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/UpdateWebhookEndpointInput.ts +121 -0
- package/src/models/WebhookAttemptTrigger.ts +53 -0
- package/src/models/WebhookDeliveriesSummaryDto.ts +111 -0
- package/src/models/WebhookDeliveryAttemptDto.ts +139 -0
- package/src/models/WebhookDeliveryDto.ts +182 -0
- package/src/models/WebhookDeliveryStatus.ts +56 -0
- package/src/models/WebhookEndpointDto.ts +193 -0
- package/src/models/WebhookEndpointHeaderDto.ts +75 -0
- package/src/models/WebhookEndpointHeaderInput.ts +75 -0
- package/src/models/WebhookEndpointHeadersDto.ts +74 -0
- package/src/models/WebhookEndpointSecretDto.ts +66 -0
- package/src/models/WebhookEndpointStatus.ts +54 -0
- package/src/models/WebhookEventTypeDto.ts +93 -0
- package/src/models/WebhookMessageDetailDto.ts +153 -0
- package/src/models/WebhookMessageDto.ts +128 -0
- package/src/models/WebhookMessagePageDto.ts +90 -0
- package/src/models/WebhookMessagePageMetaDto.ts +93 -0
- package/src/models/WebhookMessageStatus.ts +55 -0
- package/src/models/index.ts +19 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 WebhookEndpointHeaderInput
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEndpointHeaderInput {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the header. Content-Type, User-Agent, Host and the Webhook-* signature headers cannot be set.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEndpointHeaderInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the header, such as an API key the receiver expects.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookEndpointHeaderInput
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WebhookEndpointHeaderInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWebhookEndpointHeaderInput(value: object): value is WebhookEndpointHeaderInput;
|
|
35
|
+
export declare function WebhookEndpointHeaderInputFromJSON(json: any): WebhookEndpointHeaderInput;
|
|
36
|
+
export declare function WebhookEndpointHeaderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeaderInput;
|
|
37
|
+
export declare function WebhookEndpointHeaderInputToJSON(json: any): WebhookEndpointHeaderInput;
|
|
38
|
+
export declare function WebhookEndpointHeaderInputToJSONTyped(value?: WebhookEndpointHeaderInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookEndpointHeaderInput = instanceOfWebhookEndpointHeaderInput;
|
|
17
|
+
exports.WebhookEndpointHeaderInputFromJSON = WebhookEndpointHeaderInputFromJSON;
|
|
18
|
+
exports.WebhookEndpointHeaderInputFromJSONTyped = WebhookEndpointHeaderInputFromJSONTyped;
|
|
19
|
+
exports.WebhookEndpointHeaderInputToJSON = WebhookEndpointHeaderInputToJSON;
|
|
20
|
+
exports.WebhookEndpointHeaderInputToJSONTyped = WebhookEndpointHeaderInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookEndpointHeaderInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookEndpointHeaderInput(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function WebhookEndpointHeaderInputFromJSON(json) {
|
|
32
|
+
return WebhookEndpointHeaderInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function WebhookEndpointHeaderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'value': json['value'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function WebhookEndpointHeaderInputToJSON(json) {
|
|
44
|
+
return WebhookEndpointHeaderInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WebhookEndpointHeaderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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
|
+
import type { WebhookEndpointHeaderDto } from './WebhookEndpointHeaderDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WebhookEndpointHeadersDto
|
|
17
|
+
*/
|
|
18
|
+
export interface WebhookEndpointHeadersDto {
|
|
19
|
+
/**
|
|
20
|
+
* The headers, in the order they are sent.
|
|
21
|
+
* @type {Array<WebhookEndpointHeaderDto>}
|
|
22
|
+
* @memberof WebhookEndpointHeadersDto
|
|
23
|
+
*/
|
|
24
|
+
headers: Array<WebhookEndpointHeaderDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WebhookEndpointHeadersDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWebhookEndpointHeadersDto(value: object): value is WebhookEndpointHeadersDto;
|
|
30
|
+
export declare function WebhookEndpointHeadersDtoFromJSON(json: any): WebhookEndpointHeadersDto;
|
|
31
|
+
export declare function WebhookEndpointHeadersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeadersDto;
|
|
32
|
+
export declare function WebhookEndpointHeadersDtoToJSON(json: any): WebhookEndpointHeadersDto;
|
|
33
|
+
export declare function WebhookEndpointHeadersDtoToJSONTyped(value?: WebhookEndpointHeadersDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookEndpointHeadersDto = instanceOfWebhookEndpointHeadersDto;
|
|
17
|
+
exports.WebhookEndpointHeadersDtoFromJSON = WebhookEndpointHeadersDtoFromJSON;
|
|
18
|
+
exports.WebhookEndpointHeadersDtoFromJSONTyped = WebhookEndpointHeadersDtoFromJSONTyped;
|
|
19
|
+
exports.WebhookEndpointHeadersDtoToJSON = WebhookEndpointHeadersDtoToJSON;
|
|
20
|
+
exports.WebhookEndpointHeadersDtoToJSONTyped = WebhookEndpointHeadersDtoToJSONTyped;
|
|
21
|
+
var WebhookEndpointHeaderDto_1 = require("./WebhookEndpointHeaderDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WebhookEndpointHeadersDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWebhookEndpointHeadersDto(value) {
|
|
26
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WebhookEndpointHeadersDtoFromJSON(json) {
|
|
31
|
+
return WebhookEndpointHeadersDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WebhookEndpointHeadersDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'headers': (json['headers'].map(WebhookEndpointHeaderDto_1.WebhookEndpointHeaderDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WebhookEndpointHeadersDtoToJSON(json) {
|
|
42
|
+
return WebhookEndpointHeadersDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WebhookEndpointHeadersDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'headers': (value['headers'].map(WebhookEndpointHeaderDto_1.WebhookEndpointHeaderDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 WebhookEndpointSecretDto
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEndpointSecretDto {
|
|
18
|
+
/**
|
|
19
|
+
* Signing secret of the endpoint, following the Standard Webhooks specification.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEndpointSecretDto
|
|
22
|
+
*/
|
|
23
|
+
secret: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WebhookEndpointSecretDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfWebhookEndpointSecretDto(value: object): value is WebhookEndpointSecretDto;
|
|
29
|
+
export declare function WebhookEndpointSecretDtoFromJSON(json: any): WebhookEndpointSecretDto;
|
|
30
|
+
export declare function WebhookEndpointSecretDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointSecretDto;
|
|
31
|
+
export declare function WebhookEndpointSecretDtoToJSON(json: any): WebhookEndpointSecretDto;
|
|
32
|
+
export declare function WebhookEndpointSecretDtoToJSONTyped(value?: WebhookEndpointSecretDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookEndpointSecretDto = instanceOfWebhookEndpointSecretDto;
|
|
17
|
+
exports.WebhookEndpointSecretDtoFromJSON = WebhookEndpointSecretDtoFromJSON;
|
|
18
|
+
exports.WebhookEndpointSecretDtoFromJSONTyped = WebhookEndpointSecretDtoFromJSONTyped;
|
|
19
|
+
exports.WebhookEndpointSecretDtoToJSON = WebhookEndpointSecretDtoToJSON;
|
|
20
|
+
exports.WebhookEndpointSecretDtoToJSONTyped = WebhookEndpointSecretDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookEndpointSecretDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookEndpointSecretDto(value) {
|
|
25
|
+
if (!('secret' in value) || value['secret'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function WebhookEndpointSecretDtoFromJSON(json) {
|
|
30
|
+
return WebhookEndpointSecretDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function WebhookEndpointSecretDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'secret': json['secret'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function WebhookEndpointSecretDtoToJSON(json) {
|
|
41
|
+
return WebhookEndpointSecretDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WebhookEndpointSecretDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'secret': value['secret'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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
|
+
* Active, failing (its recent deliveries fail) or disabled (by the seller, or after failing for days).
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const WebhookEndpointStatus: {
|
|
17
|
+
readonly ACTIVE: "active";
|
|
18
|
+
readonly FAILING: "failing";
|
|
19
|
+
readonly DISABLED: "disabled";
|
|
20
|
+
};
|
|
21
|
+
export type WebhookEndpointStatus = typeof WebhookEndpointStatus[keyof typeof WebhookEndpointStatus];
|
|
22
|
+
export declare function instanceOfWebhookEndpointStatus(value: any): boolean;
|
|
23
|
+
export declare function WebhookEndpointStatusFromJSON(json: any): WebhookEndpointStatus;
|
|
24
|
+
export declare function WebhookEndpointStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointStatus;
|
|
25
|
+
export declare function WebhookEndpointStatusToJSON(value?: WebhookEndpointStatus | null): any;
|
|
26
|
+
export declare function WebhookEndpointStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookEndpointStatus;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WebhookEndpointStatus = void 0;
|
|
17
|
+
exports.instanceOfWebhookEndpointStatus = instanceOfWebhookEndpointStatus;
|
|
18
|
+
exports.WebhookEndpointStatusFromJSON = WebhookEndpointStatusFromJSON;
|
|
19
|
+
exports.WebhookEndpointStatusFromJSONTyped = WebhookEndpointStatusFromJSONTyped;
|
|
20
|
+
exports.WebhookEndpointStatusToJSON = WebhookEndpointStatusToJSON;
|
|
21
|
+
exports.WebhookEndpointStatusToJSONTyped = WebhookEndpointStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Active, failing (its recent deliveries fail) or disabled (by the seller, or after failing for days).
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.WebhookEndpointStatus = {
|
|
27
|
+
ACTIVE: 'active',
|
|
28
|
+
FAILING: 'failing',
|
|
29
|
+
DISABLED: 'disabled'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfWebhookEndpointStatus(value) {
|
|
32
|
+
for (var key in exports.WebhookEndpointStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.WebhookEndpointStatus, key)) {
|
|
34
|
+
if (exports.WebhookEndpointStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function WebhookEndpointStatusFromJSON(json) {
|
|
42
|
+
return WebhookEndpointStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WebhookEndpointStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function WebhookEndpointStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function WebhookEndpointStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 WebhookEventTypeDto
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEventTypeDto {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the event type, as it arrives in each event.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEventTypeDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Group the event type is listed under.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WebhookEventTypeDto
|
|
28
|
+
*/
|
|
29
|
+
group: string;
|
|
30
|
+
/**
|
|
31
|
+
* What happened when an event of this type is sent.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WebhookEventTypeDto
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
* Example of the data an event of this type carries.
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof WebhookEventTypeDto
|
|
40
|
+
*/
|
|
41
|
+
example: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
} | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the WebhookEventTypeDto interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfWebhookEventTypeDto(value: object): value is WebhookEventTypeDto;
|
|
49
|
+
export declare function WebhookEventTypeDtoFromJSON(json: any): WebhookEventTypeDto;
|
|
50
|
+
export declare function WebhookEventTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEventTypeDto;
|
|
51
|
+
export declare function WebhookEventTypeDtoToJSON(json: any): WebhookEventTypeDto;
|
|
52
|
+
export declare function WebhookEventTypeDtoToJSONTyped(value?: WebhookEventTypeDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookEventTypeDto = instanceOfWebhookEventTypeDto;
|
|
17
|
+
exports.WebhookEventTypeDtoFromJSON = WebhookEventTypeDtoFromJSON;
|
|
18
|
+
exports.WebhookEventTypeDtoFromJSONTyped = WebhookEventTypeDtoFromJSONTyped;
|
|
19
|
+
exports.WebhookEventTypeDtoToJSON = WebhookEventTypeDtoToJSON;
|
|
20
|
+
exports.WebhookEventTypeDtoToJSONTyped = WebhookEventTypeDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookEventTypeDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookEventTypeDto(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('example' in value) || value['example'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function WebhookEventTypeDtoFromJSON(json) {
|
|
36
|
+
return WebhookEventTypeDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function WebhookEventTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'group': json['group'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'example': json['example'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WebhookEventTypeDtoToJSON(json) {
|
|
50
|
+
return WebhookEventTypeDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function WebhookEventTypeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'group': value['group'],
|
|
60
|
+
'description': value['description'],
|
|
61
|
+
'example': value['example'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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
|
+
import type { WebhookDeliveryDto } from './WebhookDeliveryDto';
|
|
13
|
+
import type { WebhookMessageStatus } from './WebhookMessageStatus';
|
|
14
|
+
import type { WebhookDeliveriesSummaryDto } from './WebhookDeliveriesSummaryDto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WebhookMessageDetailDto
|
|
19
|
+
*/
|
|
20
|
+
export interface WebhookMessageDetailDto {
|
|
21
|
+
/**
|
|
22
|
+
* Event identifier, the same the endpoints receive.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WebhookMessageDetailDto
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Type of the event.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof WebhookMessageDetailDto
|
|
31
|
+
*/
|
|
32
|
+
eventType: string;
|
|
33
|
+
/**
|
|
34
|
+
* How its deliveries ended up, taken together.
|
|
35
|
+
* @type {WebhookMessageStatus}
|
|
36
|
+
* @memberof WebhookMessageDetailDto
|
|
37
|
+
*/
|
|
38
|
+
status: WebhookMessageStatus;
|
|
39
|
+
/**
|
|
40
|
+
* Its deliveries, counted by status.
|
|
41
|
+
* @type {WebhookDeliveriesSummaryDto}
|
|
42
|
+
* @memberof WebhookMessageDetailDto
|
|
43
|
+
*/
|
|
44
|
+
deliveriesSummary: WebhookDeliveriesSummaryDto;
|
|
45
|
+
/**
|
|
46
|
+
* When what the event tells about happened.
|
|
47
|
+
* @type {Date}
|
|
48
|
+
* @memberof WebhookMessageDetailDto
|
|
49
|
+
*/
|
|
50
|
+
occurredAt: Date;
|
|
51
|
+
/**
|
|
52
|
+
* When the event was sent.
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof WebhookMessageDetailDto
|
|
55
|
+
*/
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Data the event carries, under "data" of what is sent.
|
|
59
|
+
* @type {{ [key: string]: any; }}
|
|
60
|
+
* @memberof WebhookMessageDetailDto
|
|
61
|
+
*/
|
|
62
|
+
payload: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Its delivery to each endpoint.
|
|
67
|
+
* @type {Array<WebhookDeliveryDto>}
|
|
68
|
+
* @memberof WebhookMessageDetailDto
|
|
69
|
+
*/
|
|
70
|
+
deliveries: Array<WebhookDeliveryDto>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the WebhookMessageDetailDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfWebhookMessageDetailDto(value: object): value is WebhookMessageDetailDto;
|
|
76
|
+
export declare function WebhookMessageDetailDtoFromJSON(json: any): WebhookMessageDetailDto;
|
|
77
|
+
export declare function WebhookMessageDetailDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookMessageDetailDto;
|
|
78
|
+
export declare function WebhookMessageDetailDtoToJSON(json: any): WebhookMessageDetailDto;
|
|
79
|
+
export declare function WebhookMessageDetailDtoToJSONTyped(value?: WebhookMessageDetailDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWebhookMessageDetailDto = instanceOfWebhookMessageDetailDto;
|
|
17
|
+
exports.WebhookMessageDetailDtoFromJSON = WebhookMessageDetailDtoFromJSON;
|
|
18
|
+
exports.WebhookMessageDetailDtoFromJSONTyped = WebhookMessageDetailDtoFromJSONTyped;
|
|
19
|
+
exports.WebhookMessageDetailDtoToJSON = WebhookMessageDetailDtoToJSON;
|
|
20
|
+
exports.WebhookMessageDetailDtoToJSONTyped = WebhookMessageDetailDtoToJSONTyped;
|
|
21
|
+
var WebhookDeliveryDto_1 = require("./WebhookDeliveryDto");
|
|
22
|
+
var WebhookMessageStatus_1 = require("./WebhookMessageStatus");
|
|
23
|
+
var WebhookDeliveriesSummaryDto_1 = require("./WebhookDeliveriesSummaryDto");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the WebhookMessageDetailDto interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfWebhookMessageDetailDto(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('deliveriesSummary' in value) || value['deliveriesSummary'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('occurredAt' in value) || value['occurredAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('deliveries' in value) || value['deliveries'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function WebhookMessageDetailDtoFromJSON(json) {
|
|
47
|
+
return WebhookMessageDetailDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function WebhookMessageDetailDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'eventType': json['eventType'],
|
|
56
|
+
'status': (0, WebhookMessageStatus_1.WebhookMessageStatusFromJSON)(json['status']),
|
|
57
|
+
'deliveriesSummary': (0, WebhookDeliveriesSummaryDto_1.WebhookDeliveriesSummaryDtoFromJSON)(json['deliveriesSummary']),
|
|
58
|
+
'occurredAt': (new Date(json['occurredAt'])),
|
|
59
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
60
|
+
'payload': json['payload'],
|
|
61
|
+
'deliveries': (json['deliveries'].map(WebhookDeliveryDto_1.WebhookDeliveryDtoFromJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function WebhookMessageDetailDtoToJSON(json) {
|
|
65
|
+
return WebhookMessageDetailDtoToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function WebhookMessageDetailDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'eventType': value['eventType'],
|
|
75
|
+
'status': (0, WebhookMessageStatus_1.WebhookMessageStatusToJSON)(value['status']),
|
|
76
|
+
'deliveriesSummary': (0, WebhookDeliveriesSummaryDto_1.WebhookDeliveriesSummaryDtoToJSON)(value['deliveriesSummary']),
|
|
77
|
+
'occurredAt': ((value['occurredAt']).toISOString()),
|
|
78
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
79
|
+
'payload': value['payload'],
|
|
80
|
+
'deliveries': (value['deliveries'].map(WebhookDeliveryDto_1.WebhookDeliveryDtoToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|