@randock/nameshift-api-client 0.0.534 → 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/AccountsPublicApi.d.ts +0 -1
- package/dist/apis/AccountsPublicApi.js +0 -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/AccountsPublicApi.ts +0 -5
- 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,123 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WebhookEndpointHeaderInput } from './WebhookEndpointHeaderInput';
|
|
17
|
+
import {
|
|
18
|
+
WebhookEndpointHeaderInputFromJSON,
|
|
19
|
+
WebhookEndpointHeaderInputFromJSONTyped,
|
|
20
|
+
WebhookEndpointHeaderInputToJSON,
|
|
21
|
+
WebhookEndpointHeaderInputToJSONTyped,
|
|
22
|
+
} from './WebhookEndpointHeaderInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateWebhookEndpointInput
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateWebhookEndpointInput {
|
|
30
|
+
/**
|
|
31
|
+
* URL the events are sent to with a POST request. It must use https.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateWebhookEndpointInput
|
|
34
|
+
*/
|
|
35
|
+
url: string;
|
|
36
|
+
/**
|
|
37
|
+
* Free text describing the endpoint.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateWebhookEndpointInput
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Event types the endpoint receives.
|
|
44
|
+
* @type {Set<string>}
|
|
45
|
+
* @memberof CreateWebhookEndpointInput
|
|
46
|
+
*/
|
|
47
|
+
eventTypes: Set<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Whether events are sent to the endpoint from the start.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CreateWebhookEndpointInput
|
|
52
|
+
*/
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Custom headers sent with each event, such as an API key the receiver expects.
|
|
56
|
+
* @type {Array<WebhookEndpointHeaderInput>}
|
|
57
|
+
* @memberof CreateWebhookEndpointInput
|
|
58
|
+
*/
|
|
59
|
+
headers?: Array<WebhookEndpointHeaderInput>;
|
|
60
|
+
/**
|
|
61
|
+
* How long each delivery waits for the answer, in milliseconds.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateWebhookEndpointInput
|
|
64
|
+
*/
|
|
65
|
+
timeoutMs?: number;
|
|
66
|
+
/**
|
|
67
|
+
* How many times an event is tried before giving up.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CreateWebhookEndpointInput
|
|
70
|
+
*/
|
|
71
|
+
maxAttempts?: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreateWebhookEndpointInput interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCreateWebhookEndpointInput(value: object): value is CreateWebhookEndpointInput {
|
|
78
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
79
|
+
if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CreateWebhookEndpointInputFromJSON(json: any): CreateWebhookEndpointInput {
|
|
84
|
+
return CreateWebhookEndpointInputFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CreateWebhookEndpointInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWebhookEndpointInput {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'url': json['url'],
|
|
94
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
95
|
+
'eventTypes': new Set(json['eventTypes']),
|
|
96
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
97
|
+
'headers': json['headers'] == null ? undefined : ((json['headers'] as Array<any>).map(WebhookEndpointHeaderInputFromJSON)),
|
|
98
|
+
'timeoutMs': json['timeoutMs'] == null ? undefined : json['timeoutMs'],
|
|
99
|
+
'maxAttempts': json['maxAttempts'] == null ? undefined : json['maxAttempts'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function CreateWebhookEndpointInputToJSON(json: any): CreateWebhookEndpointInput {
|
|
104
|
+
return CreateWebhookEndpointInputToJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function CreateWebhookEndpointInputToJSONTyped(value?: CreateWebhookEndpointInput | null, ignoreDiscriminator: boolean = false): any {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'url': value['url'],
|
|
115
|
+
'description': value['description'],
|
|
116
|
+
'eventTypes': Array.from(value['eventTypes'] as Set<any>),
|
|
117
|
+
'enabled': value['enabled'],
|
|
118
|
+
'headers': value['headers'] == null ? undefined : ((value['headers'] as Array<any>).map(WebhookEndpointHeaderInputToJSON)),
|
|
119
|
+
'timeoutMs': value['timeoutMs'],
|
|
120
|
+
'maxAttempts': value['maxAttempts'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -101,7 +101,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
101
101
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
102
102
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
103
103
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
104
|
-
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
|
|
104
|
+
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
105
|
+
WEBHOOKS: 'WEBHOOKS'
|
|
105
106
|
} as const;
|
|
106
107
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
107
108
|
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -187,7 +187,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
187
187
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
188
188
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
189
189
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
190
|
-
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
|
|
190
|
+
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
191
|
+
WEBHOOKS: 'WEBHOOKS'
|
|
191
192
|
} as const;
|
|
192
193
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
193
194
|
|
|
@@ -193,7 +193,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
193
193
|
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
194
194
|
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
195
195
|
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK',
|
|
196
|
-
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF'
|
|
196
|
+
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
197
|
+
WEBHOOKS: 'WEBHOOKS'
|
|
197
198
|
} as const;
|
|
198
199
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
199
200
|
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WebhookEndpointHeaderInput } from './WebhookEndpointHeaderInput';
|
|
17
|
+
import {
|
|
18
|
+
WebhookEndpointHeaderInputFromJSON,
|
|
19
|
+
WebhookEndpointHeaderInputFromJSONTyped,
|
|
20
|
+
WebhookEndpointHeaderInputToJSON,
|
|
21
|
+
WebhookEndpointHeaderInputToJSONTyped,
|
|
22
|
+
} from './WebhookEndpointHeaderInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateWebhookEndpointInput
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateWebhookEndpointInput {
|
|
30
|
+
/**
|
|
31
|
+
* New URL the events are sent to. It must use https.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateWebhookEndpointInput
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
/**
|
|
37
|
+
* New description of the endpoint.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateWebhookEndpointInput
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Replacement set of event types the endpoint receives.
|
|
44
|
+
* @type {Set<string>}
|
|
45
|
+
* @memberof UpdateWebhookEndpointInput
|
|
46
|
+
*/
|
|
47
|
+
eventTypes?: Set<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Whether events are sent to the endpoint. Enabling it again also clears a disable caused by failing deliveries.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof UpdateWebhookEndpointInput
|
|
52
|
+
*/
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Replacement set of custom headers sent with each event; an empty list removes them. Left out, they stay.
|
|
56
|
+
* @type {Array<WebhookEndpointHeaderInput>}
|
|
57
|
+
* @memberof UpdateWebhookEndpointInput
|
|
58
|
+
*/
|
|
59
|
+
headers?: Array<WebhookEndpointHeaderInput>;
|
|
60
|
+
/**
|
|
61
|
+
* How long each delivery waits for the answer, in milliseconds.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UpdateWebhookEndpointInput
|
|
64
|
+
*/
|
|
65
|
+
timeoutMs?: number;
|
|
66
|
+
/**
|
|
67
|
+
* How many times an event is tried before giving up.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UpdateWebhookEndpointInput
|
|
70
|
+
*/
|
|
71
|
+
maxAttempts?: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the UpdateWebhookEndpointInput interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfUpdateWebhookEndpointInput(value: object): value is UpdateWebhookEndpointInput {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function UpdateWebhookEndpointInputFromJSON(json: any): UpdateWebhookEndpointInput {
|
|
82
|
+
return UpdateWebhookEndpointInputFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function UpdateWebhookEndpointInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWebhookEndpointInput {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
92
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
93
|
+
'eventTypes': json['eventTypes'] == null ? undefined : new Set(json['eventTypes']),
|
|
94
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
95
|
+
'headers': json['headers'] == null ? undefined : ((json['headers'] as Array<any>).map(WebhookEndpointHeaderInputFromJSON)),
|
|
96
|
+
'timeoutMs': json['timeoutMs'] == null ? undefined : json['timeoutMs'],
|
|
97
|
+
'maxAttempts': json['maxAttempts'] == null ? undefined : json['maxAttempts'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function UpdateWebhookEndpointInputToJSON(json: any): UpdateWebhookEndpointInput {
|
|
102
|
+
return UpdateWebhookEndpointInputToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function UpdateWebhookEndpointInputToJSONTyped(value?: UpdateWebhookEndpointInput | null, ignoreDiscriminator: boolean = false): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'url': value['url'],
|
|
113
|
+
'description': value['description'],
|
|
114
|
+
'eventTypes': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes'] as Set<any>),
|
|
115
|
+
'enabled': value['enabled'],
|
|
116
|
+
'headers': value['headers'] == null ? undefined : ((value['headers'] as Array<any>).map(WebhookEndpointHeaderInputToJSON)),
|
|
117
|
+
'timeoutMs': value['timeoutMs'],
|
|
118
|
+
'maxAttempts': value['maxAttempts'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* scheduled: the first attempt or a retry after the wait; manual: a retry someone asked for.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WebhookAttemptTrigger = {
|
|
21
|
+
SCHEDULED: 'scheduled',
|
|
22
|
+
MANUAL: 'manual'
|
|
23
|
+
} as const;
|
|
24
|
+
export type WebhookAttemptTrigger = typeof WebhookAttemptTrigger[keyof typeof WebhookAttemptTrigger];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfWebhookAttemptTrigger(value: any): boolean {
|
|
28
|
+
for (const key in WebhookAttemptTrigger) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(WebhookAttemptTrigger, key)) {
|
|
30
|
+
if (WebhookAttemptTrigger[key as keyof typeof WebhookAttemptTrigger] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WebhookAttemptTriggerFromJSON(json: any): WebhookAttemptTrigger {
|
|
39
|
+
return WebhookAttemptTriggerFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WebhookAttemptTriggerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookAttemptTrigger {
|
|
43
|
+
return json as WebhookAttemptTrigger;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function WebhookAttemptTriggerToJSON(value?: WebhookAttemptTrigger | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function WebhookAttemptTriggerToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookAttemptTrigger {
|
|
51
|
+
return value as WebhookAttemptTrigger;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WebhookDeliveriesSummaryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface WebhookDeliveriesSummaryDto {
|
|
22
|
+
/**
|
|
23
|
+
* Endpoints the event is sent to.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
26
|
+
*/
|
|
27
|
+
total: number;
|
|
28
|
+
/**
|
|
29
|
+
* Deliveries not tried yet.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
32
|
+
*/
|
|
33
|
+
pending: number;
|
|
34
|
+
/**
|
|
35
|
+
* Deliveries being sent now.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
38
|
+
*/
|
|
39
|
+
inProgress: number;
|
|
40
|
+
/**
|
|
41
|
+
* Deliveries that failed and will be tried again.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
44
|
+
*/
|
|
45
|
+
retrying: number;
|
|
46
|
+
/**
|
|
47
|
+
* Deliveries the endpoint accepted.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
50
|
+
*/
|
|
51
|
+
succeeded: number;
|
|
52
|
+
/**
|
|
53
|
+
* Deliveries that failed every attempt.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof WebhookDeliveriesSummaryDto
|
|
56
|
+
*/
|
|
57
|
+
failed: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the WebhookDeliveriesSummaryDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfWebhookDeliveriesSummaryDto(value: object): value is WebhookDeliveriesSummaryDto {
|
|
64
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
65
|
+
if (!('pending' in value) || value['pending'] === undefined) return false;
|
|
66
|
+
if (!('inProgress' in value) || value['inProgress'] === undefined) return false;
|
|
67
|
+
if (!('retrying' in value) || value['retrying'] === undefined) return false;
|
|
68
|
+
if (!('succeeded' in value) || value['succeeded'] === undefined) return false;
|
|
69
|
+
if (!('failed' in value) || value['failed'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function WebhookDeliveriesSummaryDtoFromJSON(json: any): WebhookDeliveriesSummaryDto {
|
|
74
|
+
return WebhookDeliveriesSummaryDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function WebhookDeliveriesSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveriesSummaryDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'total': json['total'],
|
|
84
|
+
'pending': json['pending'],
|
|
85
|
+
'inProgress': json['inProgress'],
|
|
86
|
+
'retrying': json['retrying'],
|
|
87
|
+
'succeeded': json['succeeded'],
|
|
88
|
+
'failed': json['failed'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function WebhookDeliveriesSummaryDtoToJSON(json: any): WebhookDeliveriesSummaryDto {
|
|
93
|
+
return WebhookDeliveriesSummaryDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function WebhookDeliveriesSummaryDtoToJSONTyped(value?: WebhookDeliveriesSummaryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'total': value['total'],
|
|
104
|
+
'pending': value['pending'],
|
|
105
|
+
'inProgress': value['inProgress'],
|
|
106
|
+
'retrying': value['retrying'],
|
|
107
|
+
'succeeded': value['succeeded'],
|
|
108
|
+
'failed': value['failed'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WebhookAttemptTrigger } from './WebhookAttemptTrigger';
|
|
17
|
+
import {
|
|
18
|
+
WebhookAttemptTriggerFromJSON,
|
|
19
|
+
WebhookAttemptTriggerFromJSONTyped,
|
|
20
|
+
WebhookAttemptTriggerToJSON,
|
|
21
|
+
WebhookAttemptTriggerToJSONTyped,
|
|
22
|
+
} from './WebhookAttemptTrigger';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WebhookDeliveryAttemptDto
|
|
28
|
+
*/
|
|
29
|
+
export interface WebhookDeliveryAttemptDto {
|
|
30
|
+
/**
|
|
31
|
+
* Attempt number, from 1.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
34
|
+
*/
|
|
35
|
+
number: number;
|
|
36
|
+
/**
|
|
37
|
+
* scheduled: the first attempt or a retry after the wait; manual: a retry someone asked for.
|
|
38
|
+
* @type {WebhookAttemptTrigger}
|
|
39
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
40
|
+
*/
|
|
41
|
+
trigger: WebhookAttemptTrigger;
|
|
42
|
+
/**
|
|
43
|
+
* When the request was sent.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
46
|
+
*/
|
|
47
|
+
startedAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
* How long the endpoint took to answer, in milliseconds.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
52
|
+
*/
|
|
53
|
+
durationMs: number;
|
|
54
|
+
/**
|
|
55
|
+
* URL the request was sent to.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
58
|
+
*/
|
|
59
|
+
requestUrl: string;
|
|
60
|
+
/**
|
|
61
|
+
* HTTP status the endpoint answered; null if it did not answer.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
64
|
+
*/
|
|
65
|
+
statusCode: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Body the endpoint answered, cut at 64 KiB.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
70
|
+
*/
|
|
71
|
+
responseBody: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Why the request failed without an answer, such as a timeout.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof WebhookDeliveryAttemptDto
|
|
76
|
+
*/
|
|
77
|
+
error: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the WebhookDeliveryAttemptDto interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfWebhookDeliveryAttemptDto(value: object): value is WebhookDeliveryAttemptDto {
|
|
86
|
+
if (!('number' in value) || value['number'] === undefined) return false;
|
|
87
|
+
if (!('trigger' in value) || value['trigger'] === undefined) return false;
|
|
88
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
89
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined) return false;
|
|
90
|
+
if (!('requestUrl' in value) || value['requestUrl'] === undefined) return false;
|
|
91
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
92
|
+
if (!('responseBody' in value) || value['responseBody'] === undefined) return false;
|
|
93
|
+
if (!('error' in value) || value['error'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function WebhookDeliveryAttemptDtoFromJSON(json: any): WebhookDeliveryAttemptDto {
|
|
98
|
+
return WebhookDeliveryAttemptDtoFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function WebhookDeliveryAttemptDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryAttemptDto {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'number': json['number'],
|
|
108
|
+
'trigger': WebhookAttemptTriggerFromJSON(json['trigger']),
|
|
109
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
110
|
+
'durationMs': json['durationMs'],
|
|
111
|
+
'requestUrl': json['requestUrl'],
|
|
112
|
+
'statusCode': json['statusCode'],
|
|
113
|
+
'responseBody': json['responseBody'],
|
|
114
|
+
'error': json['error'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function WebhookDeliveryAttemptDtoToJSON(json: any): WebhookDeliveryAttemptDto {
|
|
119
|
+
return WebhookDeliveryAttemptDtoToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function WebhookDeliveryAttemptDtoToJSONTyped(value?: WebhookDeliveryAttemptDto | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'number': value['number'],
|
|
130
|
+
'trigger': WebhookAttemptTriggerToJSON(value['trigger']),
|
|
131
|
+
'startedAt': ((value['startedAt']).toISOString()),
|
|
132
|
+
'durationMs': value['durationMs'],
|
|
133
|
+
'requestUrl': value['requestUrl'],
|
|
134
|
+
'statusCode': value['statusCode'],
|
|
135
|
+
'responseBody': value['responseBody'],
|
|
136
|
+
'error': value['error'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|