@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.
Files changed (81) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +0 -1
  4. package/dist/apis/AccountsPublicApi.js +0 -3
  5. package/dist/apis/WebhooksApi.d.ts +186 -0
  6. package/dist/apis/WebhooksApi.js +797 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/CreateWebhookEndpointInput.d.ts +69 -0
  10. package/dist/models/CreateWebhookEndpointInput.js +66 -0
  11. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  12. package/dist/models/FeatureFlagListItemDto.js +2 -1
  13. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  14. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  15. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  16. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  17. package/dist/models/UpdateWebhookEndpointInput.d.ts +69 -0
  18. package/dist/models/UpdateWebhookEndpointInput.js +62 -0
  19. package/dist/models/WebhookAttemptTrigger.d.ts +25 -0
  20. package/dist/models/WebhookAttemptTrigger.js +51 -0
  21. package/dist/models/WebhookDeliveriesSummaryDto.d.ts +62 -0
  22. package/dist/models/WebhookDeliveriesSummaryDto.js +71 -0
  23. package/dist/models/WebhookDeliveryAttemptDto.d.ts +75 -0
  24. package/dist/models/WebhookDeliveryAttemptDto.js +80 -0
  25. package/dist/models/WebhookDeliveryDto.d.ts +100 -0
  26. package/dist/models/WebhookDeliveryDto.js +97 -0
  27. package/dist/models/WebhookDeliveryStatus.d.ts +28 -0
  28. package/dist/models/WebhookDeliveryStatus.js +54 -0
  29. package/dist/models/WebhookEndpointDto.d.ts +111 -0
  30. package/dist/models/WebhookEndpointDto.js +104 -0
  31. package/dist/models/WebhookEndpointHeaderDto.d.ts +38 -0
  32. package/dist/models/WebhookEndpointHeaderDto.js +55 -0
  33. package/dist/models/WebhookEndpointHeaderInput.d.ts +38 -0
  34. package/dist/models/WebhookEndpointHeaderInput.js +55 -0
  35. package/dist/models/WebhookEndpointHeadersDto.d.ts +33 -0
  36. package/dist/models/WebhookEndpointHeadersDto.js +52 -0
  37. package/dist/models/WebhookEndpointSecretDto.d.ts +32 -0
  38. package/dist/models/WebhookEndpointSecretDto.js +51 -0
  39. package/dist/models/WebhookEndpointStatus.d.ts +26 -0
  40. package/dist/models/WebhookEndpointStatus.js +52 -0
  41. package/dist/models/WebhookEventTypeDto.d.ts +52 -0
  42. package/dist/models/WebhookEventTypeDto.js +63 -0
  43. package/dist/models/WebhookMessageDetailDto.d.ts +79 -0
  44. package/dist/models/WebhookMessageDetailDto.js +82 -0
  45. package/dist/models/WebhookMessageDto.d.ts +64 -0
  46. package/dist/models/WebhookMessageDto.js +73 -0
  47. package/dist/models/WebhookMessagePageDto.d.ts +40 -0
  48. package/dist/models/WebhookMessagePageDto.js +57 -0
  49. package/dist/models/WebhookMessagePageMetaDto.d.ts +50 -0
  50. package/dist/models/WebhookMessagePageMetaDto.js +63 -0
  51. package/dist/models/WebhookMessageStatus.d.ts +27 -0
  52. package/dist/models/WebhookMessageStatus.js +53 -0
  53. package/dist/models/index.d.ts +19 -0
  54. package/dist/models/index.js +19 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsPublicApi.ts +0 -5
  57. package/src/apis/WebhooksApi.ts +671 -0
  58. package/src/apis/index.ts +1 -0
  59. package/src/models/CreateWebhookEndpointInput.ts +123 -0
  60. package/src/models/FeatureFlagListItemDto.ts +2 -1
  61. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  62. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  63. package/src/models/UpdateWebhookEndpointInput.ts +121 -0
  64. package/src/models/WebhookAttemptTrigger.ts +53 -0
  65. package/src/models/WebhookDeliveriesSummaryDto.ts +111 -0
  66. package/src/models/WebhookDeliveryAttemptDto.ts +139 -0
  67. package/src/models/WebhookDeliveryDto.ts +182 -0
  68. package/src/models/WebhookDeliveryStatus.ts +56 -0
  69. package/src/models/WebhookEndpointDto.ts +193 -0
  70. package/src/models/WebhookEndpointHeaderDto.ts +75 -0
  71. package/src/models/WebhookEndpointHeaderInput.ts +75 -0
  72. package/src/models/WebhookEndpointHeadersDto.ts +74 -0
  73. package/src/models/WebhookEndpointSecretDto.ts +66 -0
  74. package/src/models/WebhookEndpointStatus.ts +54 -0
  75. package/src/models/WebhookEventTypeDto.ts +93 -0
  76. package/src/models/WebhookMessageDetailDto.ts +153 -0
  77. package/src/models/WebhookMessageDto.ts +128 -0
  78. package/src/models/WebhookMessagePageDto.ts +90 -0
  79. package/src/models/WebhookMessagePageMetaDto.ts +93 -0
  80. package/src/models/WebhookMessageStatus.ts +55 -0
  81. package/src/models/index.ts +19 -0
@@ -0,0 +1,182 @@
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 { WebhookDeliveryStatus } from './WebhookDeliveryStatus';
17
+ import {
18
+ WebhookDeliveryStatusFromJSON,
19
+ WebhookDeliveryStatusFromJSONTyped,
20
+ WebhookDeliveryStatusToJSON,
21
+ WebhookDeliveryStatusToJSONTyped,
22
+ } from './WebhookDeliveryStatus';
23
+ import type { WebhookDeliveryAttemptDto } from './WebhookDeliveryAttemptDto';
24
+ import {
25
+ WebhookDeliveryAttemptDtoFromJSON,
26
+ WebhookDeliveryAttemptDtoFromJSONTyped,
27
+ WebhookDeliveryAttemptDtoToJSON,
28
+ WebhookDeliveryAttemptDtoToJSONTyped,
29
+ } from './WebhookDeliveryAttemptDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface WebhookDeliveryDto
35
+ */
36
+ export interface WebhookDeliveryDto {
37
+ /**
38
+ * Delivery identifier.
39
+ * @type {string}
40
+ * @memberof WebhookDeliveryDto
41
+ */
42
+ id: string;
43
+ /**
44
+ * Endpoint the event is sent to.
45
+ * @type {string}
46
+ * @memberof WebhookDeliveryDto
47
+ */
48
+ endpointId: string;
49
+ /**
50
+ * URL of the endpoint.
51
+ * @type {string}
52
+ * @memberof WebhookDeliveryDto
53
+ */
54
+ endpointUrl: string;
55
+ /**
56
+ * Where the delivery is.
57
+ * @type {WebhookDeliveryStatus}
58
+ * @memberof WebhookDeliveryDto
59
+ */
60
+ status: WebhookDeliveryStatus;
61
+ /**
62
+ * Attempts made so far.
63
+ * @type {number}
64
+ * @memberof WebhookDeliveryDto
65
+ */
66
+ attemptsCount: number;
67
+ /**
68
+ * Attempts made at most before giving up.
69
+ * @type {number}
70
+ * @memberof WebhookDeliveryDto
71
+ */
72
+ maxAttempts: number;
73
+ /**
74
+ * When the next attempt is due, while it is retrying.
75
+ * @type {Date}
76
+ * @memberof WebhookDeliveryDto
77
+ */
78
+ nextAttemptAt: Date | null;
79
+ /**
80
+ * HTTP status of the last attempt.
81
+ * @type {number}
82
+ * @memberof WebhookDeliveryDto
83
+ */
84
+ lastStatusCode: number | null;
85
+ /**
86
+ * Why the last attempt failed.
87
+ * @type {string}
88
+ * @memberof WebhookDeliveryDto
89
+ */
90
+ lastError: string | null;
91
+ /**
92
+ * When the endpoint accepted the event.
93
+ * @type {Date}
94
+ * @memberof WebhookDeliveryDto
95
+ */
96
+ deliveredAt: Date | null;
97
+ /**
98
+ * When the delivery was created.
99
+ * @type {Date}
100
+ * @memberof WebhookDeliveryDto
101
+ */
102
+ createdAt: Date;
103
+ /**
104
+ * Its attempts, the first one first.
105
+ * @type {Array<WebhookDeliveryAttemptDto>}
106
+ * @memberof WebhookDeliveryDto
107
+ */
108
+ attempts: Array<WebhookDeliveryAttemptDto>;
109
+ }
110
+
111
+
112
+
113
+ /**
114
+ * Check if a given object implements the WebhookDeliveryDto interface.
115
+ */
116
+ export function instanceOfWebhookDeliveryDto(value: object): value is WebhookDeliveryDto {
117
+ if (!('id' in value) || value['id'] === undefined) return false;
118
+ if (!('endpointId' in value) || value['endpointId'] === undefined) return false;
119
+ if (!('endpointUrl' in value) || value['endpointUrl'] === undefined) return false;
120
+ if (!('status' in value) || value['status'] === undefined) return false;
121
+ if (!('attemptsCount' in value) || value['attemptsCount'] === undefined) return false;
122
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
123
+ if (!('nextAttemptAt' in value) || value['nextAttemptAt'] === undefined) return false;
124
+ if (!('lastStatusCode' in value) || value['lastStatusCode'] === undefined) return false;
125
+ if (!('lastError' in value) || value['lastError'] === undefined) return false;
126
+ if (!('deliveredAt' in value) || value['deliveredAt'] === undefined) return false;
127
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
128
+ if (!('attempts' in value) || value['attempts'] === undefined) return false;
129
+ return true;
130
+ }
131
+
132
+ export function WebhookDeliveryDtoFromJSON(json: any): WebhookDeliveryDto {
133
+ return WebhookDeliveryDtoFromJSONTyped(json, false);
134
+ }
135
+
136
+ export function WebhookDeliveryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryDto {
137
+ if (json == null) {
138
+ return json;
139
+ }
140
+ return {
141
+
142
+ 'id': json['id'],
143
+ 'endpointId': json['endpointId'],
144
+ 'endpointUrl': json['endpointUrl'],
145
+ 'status': WebhookDeliveryStatusFromJSON(json['status']),
146
+ 'attemptsCount': json['attemptsCount'],
147
+ 'maxAttempts': json['maxAttempts'],
148
+ 'nextAttemptAt': (json['nextAttemptAt'] == null ? null : new Date(json['nextAttemptAt'])),
149
+ 'lastStatusCode': json['lastStatusCode'],
150
+ 'lastError': json['lastError'],
151
+ 'deliveredAt': (json['deliveredAt'] == null ? null : new Date(json['deliveredAt'])),
152
+ 'createdAt': (new Date(json['createdAt'])),
153
+ 'attempts': ((json['attempts'] as Array<any>).map(WebhookDeliveryAttemptDtoFromJSON)),
154
+ };
155
+ }
156
+
157
+ export function WebhookDeliveryDtoToJSON(json: any): WebhookDeliveryDto {
158
+ return WebhookDeliveryDtoToJSONTyped(json, false);
159
+ }
160
+
161
+ export function WebhookDeliveryDtoToJSONTyped(value?: WebhookDeliveryDto | null, ignoreDiscriminator: boolean = false): any {
162
+ if (value == null) {
163
+ return value;
164
+ }
165
+
166
+ return {
167
+
168
+ 'id': value['id'],
169
+ 'endpointId': value['endpointId'],
170
+ 'endpointUrl': value['endpointUrl'],
171
+ 'status': WebhookDeliveryStatusToJSON(value['status']),
172
+ 'attemptsCount': value['attemptsCount'],
173
+ 'maxAttempts': value['maxAttempts'],
174
+ 'nextAttemptAt': (value['nextAttemptAt'] == null ? null : (value['nextAttemptAt'] as any).toISOString()),
175
+ 'lastStatusCode': value['lastStatusCode'],
176
+ 'lastError': value['lastError'],
177
+ 'deliveredAt': (value['deliveredAt'] == null ? null : (value['deliveredAt'] as any).toISOString()),
178
+ 'createdAt': ((value['createdAt']).toISOString()),
179
+ 'attempts': ((value['attempts'] as Array<any>).map(WebhookDeliveryAttemptDtoToJSON)),
180
+ };
181
+ }
182
+
@@ -0,0 +1,56 @@
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
+ *
18
+ * @export
19
+ */
20
+ export const WebhookDeliveryStatus = {
21
+ PENDING: 'pending',
22
+ IN_PROGRESS: 'in_progress',
23
+ RETRYING: 'retrying',
24
+ SUCCEEDED: 'succeeded',
25
+ FAILED: 'failed'
26
+ } as const;
27
+ export type WebhookDeliveryStatus = typeof WebhookDeliveryStatus[keyof typeof WebhookDeliveryStatus];
28
+
29
+
30
+ export function instanceOfWebhookDeliveryStatus(value: any): boolean {
31
+ for (const key in WebhookDeliveryStatus) {
32
+ if (Object.prototype.hasOwnProperty.call(WebhookDeliveryStatus, key)) {
33
+ if (WebhookDeliveryStatus[key as keyof typeof WebhookDeliveryStatus] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ export function WebhookDeliveryStatusFromJSON(json: any): WebhookDeliveryStatus {
42
+ return WebhookDeliveryStatusFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function WebhookDeliveryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryStatus {
46
+ return json as WebhookDeliveryStatus;
47
+ }
48
+
49
+ export function WebhookDeliveryStatusToJSON(value?: WebhookDeliveryStatus | null): any {
50
+ return value as any;
51
+ }
52
+
53
+ export function WebhookDeliveryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WebhookDeliveryStatus {
54
+ return value as WebhookDeliveryStatus;
55
+ }
56
+
@@ -0,0 +1,193 @@
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 { WebhookEndpointStatus } from './WebhookEndpointStatus';
17
+ import {
18
+ WebhookEndpointStatusFromJSON,
19
+ WebhookEndpointStatusFromJSONTyped,
20
+ WebhookEndpointStatusToJSON,
21
+ WebhookEndpointStatusToJSONTyped,
22
+ } from './WebhookEndpointStatus';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WebhookEndpointDto
28
+ */
29
+ export interface WebhookEndpointDto {
30
+ /**
31
+ * Endpoint identifier.
32
+ * @type {string}
33
+ * @memberof WebhookEndpointDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * URL the events are sent to with a POST request.
38
+ * @type {string}
39
+ * @memberof WebhookEndpointDto
40
+ */
41
+ url: string;
42
+ /**
43
+ * Free text describing the endpoint.
44
+ * @type {string}
45
+ * @memberof WebhookEndpointDto
46
+ */
47
+ description: string;
48
+ /**
49
+ * Event types the endpoint receives.
50
+ * @type {Array<string>}
51
+ * @memberof WebhookEndpointDto
52
+ */
53
+ eventTypes: Array<string>;
54
+ /**
55
+ * Names of the custom headers sent with each event. Their values are read on their own.
56
+ * @type {Array<string>}
57
+ * @memberof WebhookEndpointDto
58
+ */
59
+ headerNames: Array<string>;
60
+ /**
61
+ * Whether events are sent to the endpoint.
62
+ * @type {boolean}
63
+ * @memberof WebhookEndpointDto
64
+ */
65
+ enabled: boolean;
66
+ /**
67
+ * How long each delivery waits for the answer, in milliseconds.
68
+ * @type {number}
69
+ * @memberof WebhookEndpointDto
70
+ */
71
+ timeoutMs: number;
72
+ /**
73
+ * How many times an event is tried before giving up.
74
+ * @type {number}
75
+ * @memberof WebhookEndpointDto
76
+ */
77
+ maxAttempts: number;
78
+ /**
79
+ * Active, failing (its recent deliveries fail) or disabled (by the seller, or after failing for days).
80
+ * @type {WebhookEndpointStatus}
81
+ * @memberof WebhookEndpointDto
82
+ */
83
+ status: WebhookEndpointStatus;
84
+ /**
85
+ * Why the endpoint is disabled: "manual", "failing", or empty while it is enabled.
86
+ * @type {string}
87
+ * @memberof WebhookEndpointDto
88
+ */
89
+ disabledReason: string;
90
+ /**
91
+ * When an event was last delivered to the endpoint.
92
+ * @type {Date}
93
+ * @memberof WebhookEndpointDto
94
+ */
95
+ lastSuccessAt: Date | null;
96
+ /**
97
+ * Since when its deliveries have been failing.
98
+ * @type {Date}
99
+ * @memberof WebhookEndpointDto
100
+ */
101
+ failingSince: Date | null;
102
+ /**
103
+ * When the endpoint was created.
104
+ * @type {Date}
105
+ * @memberof WebhookEndpointDto
106
+ */
107
+ createdAt: Date;
108
+ /**
109
+ * When the endpoint was last changed.
110
+ * @type {Date}
111
+ * @memberof WebhookEndpointDto
112
+ */
113
+ updatedAt: Date;
114
+ }
115
+
116
+
117
+
118
+ /**
119
+ * Check if a given object implements the WebhookEndpointDto interface.
120
+ */
121
+ export function instanceOfWebhookEndpointDto(value: object): value is WebhookEndpointDto {
122
+ if (!('id' in value) || value['id'] === undefined) return false;
123
+ if (!('url' in value) || value['url'] === undefined) return false;
124
+ if (!('description' in value) || value['description'] === undefined) return false;
125
+ if (!('eventTypes' in value) || value['eventTypes'] === undefined) return false;
126
+ if (!('headerNames' in value) || value['headerNames'] === undefined) return false;
127
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
128
+ if (!('timeoutMs' in value) || value['timeoutMs'] === undefined) return false;
129
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
130
+ if (!('status' in value) || value['status'] === undefined) return false;
131
+ if (!('disabledReason' in value) || value['disabledReason'] === undefined) return false;
132
+ if (!('lastSuccessAt' in value) || value['lastSuccessAt'] === undefined) return false;
133
+ if (!('failingSince' in value) || value['failingSince'] === undefined) return false;
134
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
135
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
136
+ return true;
137
+ }
138
+
139
+ export function WebhookEndpointDtoFromJSON(json: any): WebhookEndpointDto {
140
+ return WebhookEndpointDtoFromJSONTyped(json, false);
141
+ }
142
+
143
+ export function WebhookEndpointDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointDto {
144
+ if (json == null) {
145
+ return json;
146
+ }
147
+ return {
148
+
149
+ 'id': json['id'],
150
+ 'url': json['url'],
151
+ 'description': json['description'],
152
+ 'eventTypes': json['eventTypes'],
153
+ 'headerNames': json['headerNames'],
154
+ 'enabled': json['enabled'],
155
+ 'timeoutMs': json['timeoutMs'],
156
+ 'maxAttempts': json['maxAttempts'],
157
+ 'status': WebhookEndpointStatusFromJSON(json['status']),
158
+ 'disabledReason': json['disabledReason'],
159
+ 'lastSuccessAt': (json['lastSuccessAt'] == null ? null : new Date(json['lastSuccessAt'])),
160
+ 'failingSince': (json['failingSince'] == null ? null : new Date(json['failingSince'])),
161
+ 'createdAt': (new Date(json['createdAt'])),
162
+ 'updatedAt': (new Date(json['updatedAt'])),
163
+ };
164
+ }
165
+
166
+ export function WebhookEndpointDtoToJSON(json: any): WebhookEndpointDto {
167
+ return WebhookEndpointDtoToJSONTyped(json, false);
168
+ }
169
+
170
+ export function WebhookEndpointDtoToJSONTyped(value?: WebhookEndpointDto | null, ignoreDiscriminator: boolean = false): any {
171
+ if (value == null) {
172
+ return value;
173
+ }
174
+
175
+ return {
176
+
177
+ 'id': value['id'],
178
+ 'url': value['url'],
179
+ 'description': value['description'],
180
+ 'eventTypes': value['eventTypes'],
181
+ 'headerNames': value['headerNames'],
182
+ 'enabled': value['enabled'],
183
+ 'timeoutMs': value['timeoutMs'],
184
+ 'maxAttempts': value['maxAttempts'],
185
+ 'status': WebhookEndpointStatusToJSON(value['status']),
186
+ 'disabledReason': value['disabledReason'],
187
+ 'lastSuccessAt': (value['lastSuccessAt'] == null ? null : (value['lastSuccessAt'] as any).toISOString()),
188
+ 'failingSince': (value['failingSince'] == null ? null : (value['failingSince'] as any).toISOString()),
189
+ 'createdAt': ((value['createdAt']).toISOString()),
190
+ 'updatedAt': ((value['updatedAt']).toISOString()),
191
+ };
192
+ }
193
+
@@ -0,0 +1,75 @@
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 WebhookEndpointHeaderDto
20
+ */
21
+ export interface WebhookEndpointHeaderDto {
22
+ /**
23
+ * Name of the header.
24
+ * @type {string}
25
+ * @memberof WebhookEndpointHeaderDto
26
+ */
27
+ name: string;
28
+ /**
29
+ * Value of the header, as it is sent.
30
+ * @type {string}
31
+ * @memberof WebhookEndpointHeaderDto
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the WebhookEndpointHeaderDto interface.
38
+ */
39
+ export function instanceOfWebhookEndpointHeaderDto(value: object): value is WebhookEndpointHeaderDto {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function WebhookEndpointHeaderDtoFromJSON(json: any): WebhookEndpointHeaderDto {
46
+ return WebhookEndpointHeaderDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function WebhookEndpointHeaderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeaderDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function WebhookEndpointHeaderDtoToJSON(json: any): WebhookEndpointHeaderDto {
61
+ return WebhookEndpointHeaderDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function WebhookEndpointHeaderDtoToJSONTyped(value?: WebhookEndpointHeaderDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'value': value['value'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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 WebhookEndpointHeaderInput
20
+ */
21
+ export interface WebhookEndpointHeaderInput {
22
+ /**
23
+ * Name of the header. Content-Type, User-Agent, Host and the Webhook-* signature headers cannot be set.
24
+ * @type {string}
25
+ * @memberof WebhookEndpointHeaderInput
26
+ */
27
+ name: string;
28
+ /**
29
+ * Value of the header, such as an API key the receiver expects.
30
+ * @type {string}
31
+ * @memberof WebhookEndpointHeaderInput
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the WebhookEndpointHeaderInput interface.
38
+ */
39
+ export function instanceOfWebhookEndpointHeaderInput(value: object): value is WebhookEndpointHeaderInput {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function WebhookEndpointHeaderInputFromJSON(json: any): WebhookEndpointHeaderInput {
46
+ return WebhookEndpointHeaderInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function WebhookEndpointHeaderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeaderInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function WebhookEndpointHeaderInputToJSON(json: any): WebhookEndpointHeaderInput {
61
+ return WebhookEndpointHeaderInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function WebhookEndpointHeaderInputToJSONTyped(value?: WebhookEndpointHeaderInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'value': value['value'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,74 @@
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 { WebhookEndpointHeaderDto } from './WebhookEndpointHeaderDto';
17
+ import {
18
+ WebhookEndpointHeaderDtoFromJSON,
19
+ WebhookEndpointHeaderDtoFromJSONTyped,
20
+ WebhookEndpointHeaderDtoToJSON,
21
+ WebhookEndpointHeaderDtoToJSONTyped,
22
+ } from './WebhookEndpointHeaderDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WebhookEndpointHeadersDto
28
+ */
29
+ export interface WebhookEndpointHeadersDto {
30
+ /**
31
+ * The headers, in the order they are sent.
32
+ * @type {Array<WebhookEndpointHeaderDto>}
33
+ * @memberof WebhookEndpointHeadersDto
34
+ */
35
+ headers: Array<WebhookEndpointHeaderDto>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the WebhookEndpointHeadersDto interface.
40
+ */
41
+ export function instanceOfWebhookEndpointHeadersDto(value: object): value is WebhookEndpointHeadersDto {
42
+ if (!('headers' in value) || value['headers'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function WebhookEndpointHeadersDtoFromJSON(json: any): WebhookEndpointHeadersDto {
47
+ return WebhookEndpointHeadersDtoFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function WebhookEndpointHeadersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointHeadersDto {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'headers': ((json['headers'] as Array<any>).map(WebhookEndpointHeaderDtoFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function WebhookEndpointHeadersDtoToJSON(json: any): WebhookEndpointHeadersDto {
61
+ return WebhookEndpointHeadersDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function WebhookEndpointHeadersDtoToJSONTyped(value?: WebhookEndpointHeadersDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'headers': ((value['headers'] as Array<any>).map(WebhookEndpointHeaderDtoToJSON)),
72
+ };
73
+ }
74
+