@scaleway/sdk 2.69.0 → 2.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
- package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
- package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
- package/dist/api/block/v1/api.gen.cjs +6 -2
- package/dist/api/block/v1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/block/v1alpha1/api.gen.js +6 -2
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/container/v1beta1/api.gen.cjs +18 -6
- package/dist/api/container/v1beta1/api.gen.js +18 -6
- package/dist/api/dedibox/v1/api.gen.cjs +9 -3
- package/dist/api/dedibox/v1/api.gen.js +9 -3
- package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
- package/dist/api/domain/v2beta1/api.gen.js +3 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/api.gen.cjs +18 -6
- package/dist/api/function/v1beta1/api.gen.js +18 -6
- package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +1 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +21 -14
- package/dist/api/iam/v1alpha1/marshalling.gen.js +21 -14
- package/dist/api/iam/v1alpha1/types.gen.d.ts +32 -6
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +38 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +36 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +38 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +278 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +278 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +397 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
- package/dist/api/inference/v1beta1/api.gen.js +3 -1
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -1
- package/dist/api/instance/v1/marshalling.gen.js +13 -1
- package/dist/api/instance/v1/types.gen.d.ts +10 -2
- package/dist/api/k8s/v1/api.gen.cjs +3 -1
- package/dist/api/k8s/v1/api.gen.js +3 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
- package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
- package/dist/api/rdb/v1/api.gen.cjs +6 -2
- package/dist/api/rdb/v1/api.gen.js +6 -2
- package/dist/api/redis/v1/api.gen.cjs +3 -1
- package/dist/api/redis/v1/api.gen.js +3 -1
- package/dist/api/registry/v1/api.gen.cjs +9 -3
- package/dist/api/registry/v1/api.gen.js +9 -3
- package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
- package/dist/api/secret/v1beta1/api.gen.js +32 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +157 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/vpc/v2/api.gen.cjs +33 -0
- package/dist/api/vpc/v2/api.gen.d.ts +17 -1
- package/dist/api/vpc/v2/api.gen.js +34 -1
- package/dist/api/vpc/v2/index.gen.d.ts +1 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +59 -0
- package/dist/api/vpc/v2/types.gen.d.ts +80 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v1/api.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
- package/dist/api/vpcgw/v2/api.gen.js +3 -1
- package/dist/api/webhosting/v1/api.gen.cjs +6 -2
- package/dist/api/webhosting/v1/api.gen.js +6 -2
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +27 -2
- package/dist/api/webhosting/v1/marshalling.gen.js +27 -2
- package/dist/api/webhosting/v1/types.gen.d.ts +64 -15
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, Email, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListWebhookEventsRequest, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksResponse, ProjectSettings, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
|
|
3
|
+
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, Email, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectConsumptionRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListOfferSubscriptionsRequest, ListOfferSubscriptionsResponse, ListOffersRequest, ListOffersResponse, ListPoolsRequest, ListPoolsResponse, ListWebhookEventsRequest, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksResponse, OfferSubscription, ProjectConsumption, ProjectSettings, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Transactional Email API.
|
|
6
6
|
*
|
|
@@ -236,4 +236,47 @@ export declare class API extends ParentAPI {
|
|
|
236
236
|
* @param request - The request {@link DeleteBlocklistRequest}
|
|
237
237
|
*/
|
|
238
238
|
deleteBlocklist: (request: Readonly<DeleteBlocklistRequest>) => Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* Get information about subscribed offers. Retrieve information about the
|
|
241
|
+
* offers you are subscribed to using the `project_id` and `region`
|
|
242
|
+
* parameters.
|
|
243
|
+
*
|
|
244
|
+
* @param request - The request {@link ListOfferSubscriptionsRequest}
|
|
245
|
+
* @returns A Promise of ListOfferSubscriptionsResponse
|
|
246
|
+
*/
|
|
247
|
+
listOfferSubscriptions: (request?: Readonly<ListOfferSubscriptionsRequest>) => Promise<ListOfferSubscriptionsResponse>;
|
|
248
|
+
/**
|
|
249
|
+
* Update a subscribed offer.
|
|
250
|
+
*
|
|
251
|
+
* @param request - The request {@link UpdateOfferSubscriptionRequest}
|
|
252
|
+
* @returns A Promise of OfferSubscription
|
|
253
|
+
*/
|
|
254
|
+
updateOfferSubscription: (request?: Readonly<UpdateOfferSubscriptionRequest>) => Promise<OfferSubscription>;
|
|
255
|
+
/**
|
|
256
|
+
* List the available offers.. Retrieve the list of the available and
|
|
257
|
+
* free-of-charge offers you can subscribe to.
|
|
258
|
+
*
|
|
259
|
+
* @param request - The request {@link ListOffersRequest}
|
|
260
|
+
* @returns A Promise of ListOffersResponse
|
|
261
|
+
*/
|
|
262
|
+
listOffers: (request?: Readonly<ListOffersRequest>) => Promise<ListOffersResponse>;
|
|
263
|
+
protected pageOfListPools: (request?: Readonly<ListPoolsRequest>) => Promise<ListPoolsResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* Get information about a sending pool.. Retrieve information about a sending
|
|
266
|
+
* pool, including its creation status and configuration parameters.
|
|
267
|
+
*
|
|
268
|
+
* @param request - The request {@link ListPoolsRequest}
|
|
269
|
+
* @returns A Promise of ListPoolsResponse
|
|
270
|
+
*/
|
|
271
|
+
listPools: (request?: Readonly<ListPoolsRequest>) => Promise<ListPoolsResponse> & {
|
|
272
|
+
all: () => Promise<import("./types.gen").Pool[]>;
|
|
273
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Pool[], void, void>;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Get project resource consumption.. Get project resource consumption.
|
|
277
|
+
*
|
|
278
|
+
* @param request - The request {@link GetProjectConsumptionRequest}
|
|
279
|
+
* @returns A Promise of ProjectConsumption
|
|
280
|
+
*/
|
|
281
|
+
getProjectConsumption: (request?: Readonly<GetProjectConsumptionRequest>) => Promise<ProjectConsumption>;
|
|
239
282
|
}
|
|
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { EMAIL_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { marshalCreateEmailRequest, unmarshalCreateEmailResponse, unmarshalEmail, unmarshalListEmailsResponse, unmarshalStatistics, marshalCreateDomainRequest, unmarshalDomain, unmarshalListDomainsResponse, unmarshalDomainLastStatus, marshalUpdateDomainRequest, marshalCreateWebhookRequest, unmarshalWebhook, unmarshalListWebhooksResponse, marshalUpdateWebhookRequest, unmarshalListWebhookEventsResponse, unmarshalProjectSettings, marshalUpdateProjectSettingsRequest, unmarshalListBlocklistsResponse, marshalBulkCreateBlocklistsRequest, unmarshalBulkCreateBlocklistsResponse } from "./marshalling.gen.js";
|
|
7
|
+
import { marshalCreateEmailRequest, unmarshalCreateEmailResponse, unmarshalEmail, unmarshalListEmailsResponse, unmarshalStatistics, marshalCreateDomainRequest, unmarshalDomain, unmarshalListDomainsResponse, unmarshalDomainLastStatus, marshalUpdateDomainRequest, marshalCreateWebhookRequest, unmarshalWebhook, unmarshalListWebhooksResponse, marshalUpdateWebhookRequest, unmarshalListWebhookEventsResponse, unmarshalProjectSettings, marshalUpdateProjectSettingsRequest, unmarshalListBlocklistsResponse, marshalBulkCreateBlocklistsRequest, unmarshalBulkCreateBlocklistsResponse, unmarshalListOfferSubscriptionsResponse, marshalUpdateOfferSubscriptionRequest, unmarshalOfferSubscription, unmarshalListOffersResponse, unmarshalListPoolsResponse, unmarshalProjectConsumption } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
@@ -474,6 +474,99 @@ class API extends API$1 {
|
|
|
474
474
|
method: "DELETE",
|
|
475
475
|
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/blocklists/${validatePathParam("blocklistId", request.blocklistId)}`
|
|
476
476
|
});
|
|
477
|
+
/**
|
|
478
|
+
* Get information about subscribed offers. Retrieve information about the
|
|
479
|
+
* offers you are subscribed to using the `project_id` and `region`
|
|
480
|
+
* parameters.
|
|
481
|
+
*
|
|
482
|
+
* @param request - The request {@link ListOfferSubscriptionsRequest}
|
|
483
|
+
* @returns A Promise of ListOfferSubscriptionsResponse
|
|
484
|
+
*/
|
|
485
|
+
listOfferSubscriptions = (request = {}) => this.client.fetch(
|
|
486
|
+
{
|
|
487
|
+
method: "GET",
|
|
488
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/offer-subscriptions`,
|
|
489
|
+
urlParams: urlParams([
|
|
490
|
+
"project_id",
|
|
491
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
492
|
+
])
|
|
493
|
+
},
|
|
494
|
+
unmarshalListOfferSubscriptionsResponse
|
|
495
|
+
);
|
|
496
|
+
/**
|
|
497
|
+
* Update a subscribed offer.
|
|
498
|
+
*
|
|
499
|
+
* @param request - The request {@link UpdateOfferSubscriptionRequest}
|
|
500
|
+
* @returns A Promise of OfferSubscription
|
|
501
|
+
*/
|
|
502
|
+
updateOfferSubscription = (request = {}) => this.client.fetch(
|
|
503
|
+
{
|
|
504
|
+
body: JSON.stringify(
|
|
505
|
+
marshalUpdateOfferSubscriptionRequest(request, this.client.settings)
|
|
506
|
+
),
|
|
507
|
+
headers: jsonContentHeaders,
|
|
508
|
+
method: "PATCH",
|
|
509
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/offer-subscriptions`
|
|
510
|
+
},
|
|
511
|
+
unmarshalOfferSubscription
|
|
512
|
+
);
|
|
513
|
+
/**
|
|
514
|
+
* List the available offers.. Retrieve the list of the available and
|
|
515
|
+
* free-of-charge offers you can subscribe to.
|
|
516
|
+
*
|
|
517
|
+
* @param request - The request {@link ListOffersRequest}
|
|
518
|
+
* @returns A Promise of ListOffersResponse
|
|
519
|
+
*/
|
|
520
|
+
listOffers = (request = {}) => this.client.fetch(
|
|
521
|
+
{
|
|
522
|
+
method: "GET",
|
|
523
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/offers`
|
|
524
|
+
},
|
|
525
|
+
unmarshalListOffersResponse
|
|
526
|
+
);
|
|
527
|
+
pageOfListPools = (request = {}) => this.client.fetch(
|
|
528
|
+
{
|
|
529
|
+
method: "GET",
|
|
530
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools`,
|
|
531
|
+
urlParams: urlParams(
|
|
532
|
+
["page", request.page],
|
|
533
|
+
[
|
|
534
|
+
"page_size",
|
|
535
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
536
|
+
],
|
|
537
|
+
[
|
|
538
|
+
"project_id",
|
|
539
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
540
|
+
]
|
|
541
|
+
)
|
|
542
|
+
},
|
|
543
|
+
unmarshalListPoolsResponse
|
|
544
|
+
);
|
|
545
|
+
/**
|
|
546
|
+
* Get information about a sending pool.. Retrieve information about a sending
|
|
547
|
+
* pool, including its creation status and configuration parameters.
|
|
548
|
+
*
|
|
549
|
+
* @param request - The request {@link ListPoolsRequest}
|
|
550
|
+
* @returns A Promise of ListPoolsResponse
|
|
551
|
+
*/
|
|
552
|
+
listPools = (request = {}) => enrichForPagination("pools", this.pageOfListPools, request);
|
|
553
|
+
/**
|
|
554
|
+
* Get project resource consumption.. Get project resource consumption.
|
|
555
|
+
*
|
|
556
|
+
* @param request - The request {@link GetProjectConsumptionRequest}
|
|
557
|
+
* @returns A Promise of ProjectConsumption
|
|
558
|
+
*/
|
|
559
|
+
getProjectConsumption = (request = {}) => this.client.fetch(
|
|
560
|
+
{
|
|
561
|
+
method: "GET",
|
|
562
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/project-consumption`,
|
|
563
|
+
urlParams: urlParams([
|
|
564
|
+
"project_id",
|
|
565
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
566
|
+
])
|
|
567
|
+
},
|
|
568
|
+
unmarshalProjectConsumption
|
|
569
|
+
);
|
|
477
570
|
}
|
|
478
571
|
export {
|
|
479
572
|
API
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
-
export type { Blocklist, BlocklistType, BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailRequestAddress, CreateEmailRequestAttachment, CreateEmailRequestHeader, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, DomainLastStatusAutoconfigState, DomainLastStatusAutoconfigStateReason, DomainLastStatusDkimRecord, DomainLastStatusDmarcRecord, DomainLastStatusRecordStatus, DomainLastStatusSpfRecord, DomainRecords, DomainRecordsDMARC, DomainReputation, DomainReputationStatus, DomainStatistics, DomainStatus, Email, EmailFlag, EmailRcptType, EmailStatus, EmailTry, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsRequestOrderBy, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsRequestOrderBy, ListEmailsResponse, ListWebhookEventsRequest, ListWebhookEventsRequestOrderBy, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksRequestOrderBy, ListWebhooksResponse, ProjectSettings, ProjectSettingsPeriodicReport, ProjectSettingsPeriodicReportFrequency, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateProjectSettingsRequest, UpdateProjectSettingsRequestUpdatePeriodicReport, UpdateWebhookRequest, Webhook, WebhookEvent, WebhookEventStatus, WebhookEventType, } from './types.gen';
|
|
3
|
+
export type { Blocklist, BlocklistType, BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailRequestAddress, CreateEmailRequestAttachment, CreateEmailRequestHeader, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, DomainLastStatusAutoconfigState, DomainLastStatusAutoconfigStateReason, DomainLastStatusDkimRecord, DomainLastStatusDmarcRecord, DomainLastStatusRecordStatus, DomainLastStatusSpfRecord, DomainRecords, DomainRecordsDMARC, DomainReputation, DomainReputationStatus, DomainStatistics, DomainStatus, Email, EmailFlag, EmailRcptType, EmailStatus, EmailTry, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectConsumptionRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsRequestOrderBy, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsRequestOrderBy, ListEmailsResponse, ListOfferSubscriptionsRequest, ListOfferSubscriptionsResponse, ListOffersRequest, ListOffersResponse, ListPoolsRequest, ListPoolsResponse, ListWebhookEventsRequest, ListWebhookEventsRequestOrderBy, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksRequestOrderBy, ListWebhooksResponse, Offer, OfferName, OfferSubscription, Pool, PoolStatus, ProjectConsumption, ProjectSettings, ProjectSettingsPeriodicReport, ProjectSettingsPeriodicReportFrequency, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateProjectSettingsRequestUpdatePeriodicReport, UpdateWebhookRequest, Webhook, WebhookEvent, WebhookEventStatus, WebhookEventType, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -114,6 +114,26 @@ const unmarshalDomain = (data) => {
|
|
|
114
114
|
status: data.status
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
+
const unmarshalOfferSubscription = (data) => {
|
|
118
|
+
if (!json.isJSONObject(data)) {
|
|
119
|
+
throw new TypeError(
|
|
120
|
+
`Unmarshalling the type 'OfferSubscription' failed as data isn't a dictionary.`
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
cancellationAvailableAt: marshalling.unmarshalDate(data.cancellation_available_at),
|
|
125
|
+
includedMonthlyEmails: data.included_monthly_emails,
|
|
126
|
+
maxCustomBlocklistsPerDomain: data.max_custom_blocklists_per_domain,
|
|
127
|
+
maxDedicatedIps: data.max_dedicated_ips,
|
|
128
|
+
maxDomains: data.max_domains,
|
|
129
|
+
maxWebhooksPerDomain: data.max_webhooks_per_domain,
|
|
130
|
+
offerName: data.offer_name,
|
|
131
|
+
organizationId: data.organization_id,
|
|
132
|
+
projectId: data.project_id,
|
|
133
|
+
sla: data.sla,
|
|
134
|
+
subscribedAt: marshalling.unmarshalDate(data.subscribed_at)
|
|
135
|
+
};
|
|
136
|
+
};
|
|
117
137
|
const unmarshalWebhook = (data) => {
|
|
118
138
|
if (!json.isJSONObject(data)) {
|
|
119
139
|
throw new TypeError(
|
|
@@ -266,6 +286,75 @@ const unmarshalListEmailsResponse = (data) => {
|
|
|
266
286
|
totalCount: data.total_count
|
|
267
287
|
};
|
|
268
288
|
};
|
|
289
|
+
const unmarshalListOfferSubscriptionsResponse = (data) => {
|
|
290
|
+
if (!json.isJSONObject(data)) {
|
|
291
|
+
throw new TypeError(
|
|
292
|
+
`Unmarshalling the type 'ListOfferSubscriptionsResponse' failed as data isn't a dictionary.`
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
offerSubscriptions: marshalling.unmarshalArrayOfObject(
|
|
297
|
+
data.offer_subscriptions,
|
|
298
|
+
unmarshalOfferSubscription
|
|
299
|
+
),
|
|
300
|
+
totalCount: data.total_count
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
const unmarshalOffer = (data) => {
|
|
304
|
+
if (!json.isJSONObject(data)) {
|
|
305
|
+
throw new TypeError(
|
|
306
|
+
`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
return {
|
|
310
|
+
commitmentPeriod: data.commitment_period,
|
|
311
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
312
|
+
includedMonthlyEmails: data.included_monthly_emails,
|
|
313
|
+
maxCustomBlocklistsPerDomain: data.max_custom_blocklists_per_domain,
|
|
314
|
+
maxDedicatedIps: data.max_dedicated_ips,
|
|
315
|
+
maxDomains: data.max_domains,
|
|
316
|
+
maxWebhooksPerDomain: data.max_webhooks_per_domain,
|
|
317
|
+
name: data.name,
|
|
318
|
+
sla: data.sla
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
const unmarshalListOffersResponse = (data) => {
|
|
322
|
+
if (!json.isJSONObject(data)) {
|
|
323
|
+
throw new TypeError(
|
|
324
|
+
`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
return {
|
|
328
|
+
offers: marshalling.unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
329
|
+
totalCount: data.total_count
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
const unmarshalPool = (data) => {
|
|
333
|
+
if (!json.isJSONObject(data)) {
|
|
334
|
+
throw new TypeError(
|
|
335
|
+
`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
return {
|
|
339
|
+
details: data.details,
|
|
340
|
+
ips: data.ips,
|
|
341
|
+
projectId: data.project_id,
|
|
342
|
+
reverse: data.reverse,
|
|
343
|
+
status: data.status,
|
|
344
|
+
zone: data.zone
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
const unmarshalListPoolsResponse = (data) => {
|
|
348
|
+
if (!json.isJSONObject(data)) {
|
|
349
|
+
throw new TypeError(
|
|
350
|
+
`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
pools: marshalling.unmarshalArrayOfObject(data.pools, unmarshalPool),
|
|
355
|
+
totalCount: data.total_count
|
|
356
|
+
};
|
|
357
|
+
};
|
|
269
358
|
const unmarshalWebhookEvent = (data) => {
|
|
270
359
|
if (!json.isJSONObject(data)) {
|
|
271
360
|
throw new TypeError(
|
|
@@ -311,6 +400,21 @@ const unmarshalListWebhooksResponse = (data) => {
|
|
|
311
400
|
webhooks: marshalling.unmarshalArrayOfObject(data.webhooks, unmarshalWebhook)
|
|
312
401
|
};
|
|
313
402
|
};
|
|
403
|
+
const unmarshalProjectConsumption = (data) => {
|
|
404
|
+
if (!json.isJSONObject(data)) {
|
|
405
|
+
throw new TypeError(
|
|
406
|
+
`Unmarshalling the type 'ProjectConsumption' failed as data isn't a dictionary.`
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
customBlocklistsCount: data.custom_blocklists_count,
|
|
411
|
+
dedicatedIpsCount: data.dedicated_ips_count,
|
|
412
|
+
domainsCount: data.domains_count,
|
|
413
|
+
monthlyEmailsCount: data.monthly_emails_count,
|
|
414
|
+
projectId: data.project_id,
|
|
415
|
+
webhooksCount: data.webhooks_count
|
|
416
|
+
};
|
|
417
|
+
};
|
|
314
418
|
const unmarshalProjectSettingsPeriodicReport = (data) => {
|
|
315
419
|
if (!json.isJSONObject(data)) {
|
|
316
420
|
throw new TypeError(
|
|
@@ -401,6 +505,10 @@ const marshalCreateWebhookRequest = (request, defaults) => ({
|
|
|
401
505
|
const marshalUpdateDomainRequest = (request, defaults) => ({
|
|
402
506
|
autoconfig: request.autoconfig
|
|
403
507
|
});
|
|
508
|
+
const marshalUpdateOfferSubscriptionRequest = (request, defaults) => ({
|
|
509
|
+
name: request.name,
|
|
510
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
511
|
+
});
|
|
404
512
|
const marshalUpdateProjectSettingsRequestUpdatePeriodicReport = (request, defaults) => ({
|
|
405
513
|
enabled: request.enabled,
|
|
406
514
|
frequency: request.frequency,
|
|
@@ -422,6 +530,7 @@ exports.marshalCreateDomainRequest = marshalCreateDomainRequest;
|
|
|
422
530
|
exports.marshalCreateEmailRequest = marshalCreateEmailRequest;
|
|
423
531
|
exports.marshalCreateWebhookRequest = marshalCreateWebhookRequest;
|
|
424
532
|
exports.marshalUpdateDomainRequest = marshalUpdateDomainRequest;
|
|
533
|
+
exports.marshalUpdateOfferSubscriptionRequest = marshalUpdateOfferSubscriptionRequest;
|
|
425
534
|
exports.marshalUpdateProjectSettingsRequest = marshalUpdateProjectSettingsRequest;
|
|
426
535
|
exports.marshalUpdateWebhookRequest = marshalUpdateWebhookRequest;
|
|
427
536
|
exports.unmarshalBulkCreateBlocklistsResponse = unmarshalBulkCreateBlocklistsResponse;
|
|
@@ -432,8 +541,13 @@ exports.unmarshalEmail = unmarshalEmail;
|
|
|
432
541
|
exports.unmarshalListBlocklistsResponse = unmarshalListBlocklistsResponse;
|
|
433
542
|
exports.unmarshalListDomainsResponse = unmarshalListDomainsResponse;
|
|
434
543
|
exports.unmarshalListEmailsResponse = unmarshalListEmailsResponse;
|
|
544
|
+
exports.unmarshalListOfferSubscriptionsResponse = unmarshalListOfferSubscriptionsResponse;
|
|
545
|
+
exports.unmarshalListOffersResponse = unmarshalListOffersResponse;
|
|
546
|
+
exports.unmarshalListPoolsResponse = unmarshalListPoolsResponse;
|
|
435
547
|
exports.unmarshalListWebhookEventsResponse = unmarshalListWebhookEventsResponse;
|
|
436
548
|
exports.unmarshalListWebhooksResponse = unmarshalListWebhooksResponse;
|
|
549
|
+
exports.unmarshalOfferSubscription = unmarshalOfferSubscription;
|
|
550
|
+
exports.unmarshalProjectConsumption = unmarshalProjectConsumption;
|
|
437
551
|
exports.unmarshalProjectSettings = unmarshalProjectSettings;
|
|
438
552
|
exports.unmarshalStatistics = unmarshalStatistics;
|
|
439
553
|
exports.unmarshalWebhook = unmarshalWebhook;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, Domain, DomainLastStatus, Email, ListBlocklistsResponse, ListDomainsResponse, ListEmailsResponse, ListWebhookEventsResponse, ListWebhooksResponse, ProjectSettings, Statistics, UpdateDomainRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
|
|
2
|
+
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, Domain, DomainLastStatus, Email, ListBlocklistsResponse, ListDomainsResponse, ListEmailsResponse, ListOfferSubscriptionsResponse, ListOffersResponse, ListPoolsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OfferSubscription, ProjectConsumption, ProjectSettings, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
|
|
3
3
|
export declare const unmarshalEmail: (data: unknown) => Email;
|
|
4
4
|
export declare const unmarshalDomain: (data: unknown) => Domain;
|
|
5
|
+
export declare const unmarshalOfferSubscription: (data: unknown) => OfferSubscription;
|
|
5
6
|
export declare const unmarshalWebhook: (data: unknown) => Webhook;
|
|
6
7
|
export declare const unmarshalBulkCreateBlocklistsResponse: (data: unknown) => BulkCreateBlocklistsResponse;
|
|
7
8
|
export declare const unmarshalCreateEmailResponse: (data: unknown) => CreateEmailResponse;
|
|
@@ -9,8 +10,12 @@ export declare const unmarshalDomainLastStatus: (data: unknown) => DomainLastSta
|
|
|
9
10
|
export declare const unmarshalListBlocklistsResponse: (data: unknown) => ListBlocklistsResponse;
|
|
10
11
|
export declare const unmarshalListDomainsResponse: (data: unknown) => ListDomainsResponse;
|
|
11
12
|
export declare const unmarshalListEmailsResponse: (data: unknown) => ListEmailsResponse;
|
|
13
|
+
export declare const unmarshalListOfferSubscriptionsResponse: (data: unknown) => ListOfferSubscriptionsResponse;
|
|
14
|
+
export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
|
|
15
|
+
export declare const unmarshalListPoolsResponse: (data: unknown) => ListPoolsResponse;
|
|
12
16
|
export declare const unmarshalListWebhookEventsResponse: (data: unknown) => ListWebhookEventsResponse;
|
|
13
17
|
export declare const unmarshalListWebhooksResponse: (data: unknown) => ListWebhooksResponse;
|
|
18
|
+
export declare const unmarshalProjectConsumption: (data: unknown) => ProjectConsumption;
|
|
14
19
|
export declare const unmarshalProjectSettings: (data: unknown) => ProjectSettings;
|
|
15
20
|
export declare const unmarshalStatistics: (data: unknown) => Statistics;
|
|
16
21
|
export declare const marshalBulkCreateBlocklistsRequest: (request: BulkCreateBlocklistsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -18,5 +23,6 @@ export declare const marshalCreateDomainRequest: (request: CreateDomainRequest,
|
|
|
18
23
|
export declare const marshalCreateEmailRequest: (request: CreateEmailRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
24
|
export declare const marshalCreateWebhookRequest: (request: CreateWebhookRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
25
|
export declare const marshalUpdateDomainRequest: (request: UpdateDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
+
export declare const marshalUpdateOfferSubscriptionRequest: (request: UpdateOfferSubscriptionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
27
|
export declare const marshalUpdateProjectSettingsRequest: (request: UpdateProjectSettingsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
28
|
export declare const marshalUpdateWebhookRequest: (request: UpdateWebhookRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -112,6 +112,26 @@ const unmarshalDomain = (data) => {
|
|
|
112
112
|
status: data.status
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
+
const unmarshalOfferSubscription = (data) => {
|
|
116
|
+
if (!isJSONObject(data)) {
|
|
117
|
+
throw new TypeError(
|
|
118
|
+
`Unmarshalling the type 'OfferSubscription' failed as data isn't a dictionary.`
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
cancellationAvailableAt: unmarshalDate(data.cancellation_available_at),
|
|
123
|
+
includedMonthlyEmails: data.included_monthly_emails,
|
|
124
|
+
maxCustomBlocklistsPerDomain: data.max_custom_blocklists_per_domain,
|
|
125
|
+
maxDedicatedIps: data.max_dedicated_ips,
|
|
126
|
+
maxDomains: data.max_domains,
|
|
127
|
+
maxWebhooksPerDomain: data.max_webhooks_per_domain,
|
|
128
|
+
offerName: data.offer_name,
|
|
129
|
+
organizationId: data.organization_id,
|
|
130
|
+
projectId: data.project_id,
|
|
131
|
+
sla: data.sla,
|
|
132
|
+
subscribedAt: unmarshalDate(data.subscribed_at)
|
|
133
|
+
};
|
|
134
|
+
};
|
|
115
135
|
const unmarshalWebhook = (data) => {
|
|
116
136
|
if (!isJSONObject(data)) {
|
|
117
137
|
throw new TypeError(
|
|
@@ -264,6 +284,75 @@ const unmarshalListEmailsResponse = (data) => {
|
|
|
264
284
|
totalCount: data.total_count
|
|
265
285
|
};
|
|
266
286
|
};
|
|
287
|
+
const unmarshalListOfferSubscriptionsResponse = (data) => {
|
|
288
|
+
if (!isJSONObject(data)) {
|
|
289
|
+
throw new TypeError(
|
|
290
|
+
`Unmarshalling the type 'ListOfferSubscriptionsResponse' failed as data isn't a dictionary.`
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
offerSubscriptions: unmarshalArrayOfObject(
|
|
295
|
+
data.offer_subscriptions,
|
|
296
|
+
unmarshalOfferSubscription
|
|
297
|
+
),
|
|
298
|
+
totalCount: data.total_count
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
const unmarshalOffer = (data) => {
|
|
302
|
+
if (!isJSONObject(data)) {
|
|
303
|
+
throw new TypeError(
|
|
304
|
+
`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
return {
|
|
308
|
+
commitmentPeriod: data.commitment_period,
|
|
309
|
+
createdAt: unmarshalDate(data.created_at),
|
|
310
|
+
includedMonthlyEmails: data.included_monthly_emails,
|
|
311
|
+
maxCustomBlocklistsPerDomain: data.max_custom_blocklists_per_domain,
|
|
312
|
+
maxDedicatedIps: data.max_dedicated_ips,
|
|
313
|
+
maxDomains: data.max_domains,
|
|
314
|
+
maxWebhooksPerDomain: data.max_webhooks_per_domain,
|
|
315
|
+
name: data.name,
|
|
316
|
+
sla: data.sla
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
const unmarshalListOffersResponse = (data) => {
|
|
320
|
+
if (!isJSONObject(data)) {
|
|
321
|
+
throw new TypeError(
|
|
322
|
+
`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
327
|
+
totalCount: data.total_count
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
const unmarshalPool = (data) => {
|
|
331
|
+
if (!isJSONObject(data)) {
|
|
332
|
+
throw new TypeError(
|
|
333
|
+
`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
return {
|
|
337
|
+
details: data.details,
|
|
338
|
+
ips: data.ips,
|
|
339
|
+
projectId: data.project_id,
|
|
340
|
+
reverse: data.reverse,
|
|
341
|
+
status: data.status,
|
|
342
|
+
zone: data.zone
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
const unmarshalListPoolsResponse = (data) => {
|
|
346
|
+
if (!isJSONObject(data)) {
|
|
347
|
+
throw new TypeError(
|
|
348
|
+
`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
pools: unmarshalArrayOfObject(data.pools, unmarshalPool),
|
|
353
|
+
totalCount: data.total_count
|
|
354
|
+
};
|
|
355
|
+
};
|
|
267
356
|
const unmarshalWebhookEvent = (data) => {
|
|
268
357
|
if (!isJSONObject(data)) {
|
|
269
358
|
throw new TypeError(
|
|
@@ -309,6 +398,21 @@ const unmarshalListWebhooksResponse = (data) => {
|
|
|
309
398
|
webhooks: unmarshalArrayOfObject(data.webhooks, unmarshalWebhook)
|
|
310
399
|
};
|
|
311
400
|
};
|
|
401
|
+
const unmarshalProjectConsumption = (data) => {
|
|
402
|
+
if (!isJSONObject(data)) {
|
|
403
|
+
throw new TypeError(
|
|
404
|
+
`Unmarshalling the type 'ProjectConsumption' failed as data isn't a dictionary.`
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
return {
|
|
408
|
+
customBlocklistsCount: data.custom_blocklists_count,
|
|
409
|
+
dedicatedIpsCount: data.dedicated_ips_count,
|
|
410
|
+
domainsCount: data.domains_count,
|
|
411
|
+
monthlyEmailsCount: data.monthly_emails_count,
|
|
412
|
+
projectId: data.project_id,
|
|
413
|
+
webhooksCount: data.webhooks_count
|
|
414
|
+
};
|
|
415
|
+
};
|
|
312
416
|
const unmarshalProjectSettingsPeriodicReport = (data) => {
|
|
313
417
|
if (!isJSONObject(data)) {
|
|
314
418
|
throw new TypeError(
|
|
@@ -399,6 +503,10 @@ const marshalCreateWebhookRequest = (request, defaults) => ({
|
|
|
399
503
|
const marshalUpdateDomainRequest = (request, defaults) => ({
|
|
400
504
|
autoconfig: request.autoconfig
|
|
401
505
|
});
|
|
506
|
+
const marshalUpdateOfferSubscriptionRequest = (request, defaults) => ({
|
|
507
|
+
name: request.name,
|
|
508
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
509
|
+
});
|
|
402
510
|
const marshalUpdateProjectSettingsRequestUpdatePeriodicReport = (request, defaults) => ({
|
|
403
511
|
enabled: request.enabled,
|
|
404
512
|
frequency: request.frequency,
|
|
@@ -421,6 +529,7 @@ export {
|
|
|
421
529
|
marshalCreateEmailRequest,
|
|
422
530
|
marshalCreateWebhookRequest,
|
|
423
531
|
marshalUpdateDomainRequest,
|
|
532
|
+
marshalUpdateOfferSubscriptionRequest,
|
|
424
533
|
marshalUpdateProjectSettingsRequest,
|
|
425
534
|
marshalUpdateWebhookRequest,
|
|
426
535
|
unmarshalBulkCreateBlocklistsResponse,
|
|
@@ -431,8 +540,13 @@ export {
|
|
|
431
540
|
unmarshalListBlocklistsResponse,
|
|
432
541
|
unmarshalListDomainsResponse,
|
|
433
542
|
unmarshalListEmailsResponse,
|
|
543
|
+
unmarshalListOfferSubscriptionsResponse,
|
|
544
|
+
unmarshalListOffersResponse,
|
|
545
|
+
unmarshalListPoolsResponse,
|
|
434
546
|
unmarshalListWebhookEventsResponse,
|
|
435
547
|
unmarshalListWebhooksResponse,
|
|
548
|
+
unmarshalOfferSubscription,
|
|
549
|
+
unmarshalProjectConsumption,
|
|
436
550
|
unmarshalProjectSettings,
|
|
437
551
|
unmarshalStatistics,
|
|
438
552
|
unmarshalWebhook
|