@zyphr-dev/node-sdk 0.1.31 → 0.1.32

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/index.cjs CHANGED
@@ -321,6 +321,14 @@ __export(index_exports, {
321
321
  CreateWebhookRequestToJSON: () => CreateWebhookRequestToJSON,
322
322
  CreateWebhookRequestToJSONTyped: () => CreateWebhookRequestToJSONTyped,
323
323
  DefaultConfig: () => DefaultConfig,
324
+ DeleteDomainResponseDataFromJSON: () => DeleteDomainResponseDataFromJSON,
325
+ DeleteDomainResponseDataFromJSONTyped: () => DeleteDomainResponseDataFromJSONTyped,
326
+ DeleteDomainResponseDataToJSON: () => DeleteDomainResponseDataToJSON,
327
+ DeleteDomainResponseDataToJSONTyped: () => DeleteDomainResponseDataToJSONTyped,
328
+ DeleteDomainResponseFromJSON: () => DeleteDomainResponseFromJSON,
329
+ DeleteDomainResponseFromJSONTyped: () => DeleteDomainResponseFromJSONTyped,
330
+ DeleteDomainResponseToJSON: () => DeleteDomainResponseToJSON,
331
+ DeleteDomainResponseToJSONTyped: () => DeleteDomainResponseToJSONTyped,
324
332
  DeleteResultDataFromJSON: () => DeleteResultDataFromJSON,
325
333
  DeleteResultDataFromJSONTyped: () => DeleteResultDataFromJSONTyped,
326
334
  DeleteResultDataToJSON: () => DeleteResultDataToJSON,
@@ -379,6 +387,8 @@ __export(index_exports, {
379
387
  DomainListResponseToJSONTyped: () => DomainListResponseToJSONTyped,
380
388
  DomainResponseFromJSON: () => DomainResponseFromJSON,
381
389
  DomainResponseFromJSONTyped: () => DomainResponseFromJSONTyped,
390
+ DomainResponseSesDkimStatusEnum: () => DomainResponseSesDkimStatusEnum,
391
+ DomainResponseSesIdentityStatusEnum: () => DomainResponseSesIdentityStatusEnum,
382
392
  DomainResponseStatusEnum: () => DomainResponseStatusEnum,
383
393
  DomainResponseToJSON: () => DomainResponseToJSON,
384
394
  DomainResponseToJSONTyped: () => DomainResponseToJSONTyped,
@@ -486,6 +496,14 @@ __export(index_exports, {
486
496
  GenerateWaaSPortalToken201ResponseFromJSONTyped: () => GenerateWaaSPortalToken201ResponseFromJSONTyped,
487
497
  GenerateWaaSPortalToken201ResponseToJSON: () => GenerateWaaSPortalToken201ResponseToJSON,
488
498
  GenerateWaaSPortalToken201ResponseToJSONTyped: () => GenerateWaaSPortalToken201ResponseToJSONTyped,
499
+ GetDomain200ResponseFromJSON: () => GetDomain200ResponseFromJSON,
500
+ GetDomain200ResponseFromJSONTyped: () => GetDomain200ResponseFromJSONTyped,
501
+ GetDomain200ResponseMetaFromJSON: () => GetDomain200ResponseMetaFromJSON,
502
+ GetDomain200ResponseMetaFromJSONTyped: () => GetDomain200ResponseMetaFromJSONTyped,
503
+ GetDomain200ResponseMetaToJSON: () => GetDomain200ResponseMetaToJSON,
504
+ GetDomain200ResponseMetaToJSONTyped: () => GetDomain200ResponseMetaToJSONTyped,
505
+ GetDomain200ResponseToJSON: () => GetDomain200ResponseToJSON,
506
+ GetDomain200ResponseToJSONTyped: () => GetDomain200ResponseToJSONTyped,
489
507
  GetWaaSEndpoint200ResponseFromJSON: () => GetWaaSEndpoint200ResponseFromJSON,
490
508
  GetWaaSEndpoint200ResponseFromJSONTyped: () => GetWaaSEndpoint200ResponseFromJSONTyped,
491
509
  GetWaaSEndpoint200ResponseToJSON: () => GetWaaSEndpoint200ResponseToJSON,
@@ -1383,6 +1401,24 @@ __export(index_exports, {
1383
1401
  ValidateResetTokenResponseFromJSONTyped: () => ValidateResetTokenResponseFromJSONTyped,
1384
1402
  ValidateResetTokenResponseToJSON: () => ValidateResetTokenResponseToJSON,
1385
1403
  ValidateResetTokenResponseToJSONTyped: () => ValidateResetTokenResponseToJSONTyped,
1404
+ VerificationStatusResponseDataFromJSON: () => VerificationStatusResponseDataFromJSON,
1405
+ VerificationStatusResponseDataFromJSONTyped: () => VerificationStatusResponseDataFromJSONTyped,
1406
+ VerificationStatusResponseDataStatusEnum: () => VerificationStatusResponseDataStatusEnum,
1407
+ VerificationStatusResponseDataToJSON: () => VerificationStatusResponseDataToJSON,
1408
+ VerificationStatusResponseDataToJSONTyped: () => VerificationStatusResponseDataToJSONTyped,
1409
+ VerificationStatusResponseFromJSON: () => VerificationStatusResponseFromJSON,
1410
+ VerificationStatusResponseFromJSONTyped: () => VerificationStatusResponseFromJSONTyped,
1411
+ VerificationStatusResponseToJSON: () => VerificationStatusResponseToJSON,
1412
+ VerificationStatusResponseToJSONTyped: () => VerificationStatusResponseToJSONTyped,
1413
+ VerifyDomainResponseDataFromJSON: () => VerifyDomainResponseDataFromJSON,
1414
+ VerifyDomainResponseDataFromJSONTyped: () => VerifyDomainResponseDataFromJSONTyped,
1415
+ VerifyDomainResponseDataStatusEnum: () => VerifyDomainResponseDataStatusEnum,
1416
+ VerifyDomainResponseDataToJSON: () => VerifyDomainResponseDataToJSON,
1417
+ VerifyDomainResponseDataToJSONTyped: () => VerifyDomainResponseDataToJSONTyped,
1418
+ VerifyDomainResponseFromJSON: () => VerifyDomainResponseFromJSON,
1419
+ VerifyDomainResponseFromJSONTyped: () => VerifyDomainResponseFromJSONTyped,
1420
+ VerifyDomainResponseToJSON: () => VerifyDomainResponseToJSON,
1421
+ VerifyDomainResponseToJSONTyped: () => VerifyDomainResponseToJSONTyped,
1386
1422
  VerifySmsConfigDataFromJSON: () => VerifySmsConfigDataFromJSON,
1387
1423
  VerifySmsConfigDataFromJSONTyped: () => VerifySmsConfigDataFromJSONTyped,
1388
1424
  VerifySmsConfigDataToJSON: () => VerifySmsConfigDataToJSON,
@@ -1763,6 +1799,8 @@ __export(index_exports, {
1763
1799
  instanceOfCreateWaaSEventType201Response: () => instanceOfCreateWaaSEventType201Response,
1764
1800
  instanceOfCreateWaaSEventTypeRequest: () => instanceOfCreateWaaSEventTypeRequest,
1765
1801
  instanceOfCreateWebhookRequest: () => instanceOfCreateWebhookRequest,
1802
+ instanceOfDeleteDomainResponse: () => instanceOfDeleteDomainResponse,
1803
+ instanceOfDeleteDomainResponseData: () => instanceOfDeleteDomainResponseData,
1766
1804
  instanceOfDeleteResult: () => instanceOfDeleteResult,
1767
1805
  instanceOfDeleteResultData: () => instanceOfDeleteResultData,
1768
1806
  instanceOfDevice: () => instanceOfDevice,
@@ -1801,6 +1839,8 @@ __export(index_exports, {
1801
1839
  instanceOfGenerateSubscriberToken200ResponseData: () => instanceOfGenerateSubscriberToken200ResponseData,
1802
1840
  instanceOfGenerateSubscriberTokenRequest: () => instanceOfGenerateSubscriberTokenRequest,
1803
1841
  instanceOfGenerateWaaSPortalToken201Response: () => instanceOfGenerateWaaSPortalToken201Response,
1842
+ instanceOfGetDomain200Response: () => instanceOfGetDomain200Response,
1843
+ instanceOfGetDomain200ResponseMeta: () => instanceOfGetDomain200ResponseMeta,
1804
1844
  instanceOfGetWaaSEndpoint200Response: () => instanceOfGetWaaSEndpoint200Response,
1805
1845
  instanceOfGetWaaSUsage200Response: () => instanceOfGetWaaSUsage200Response,
1806
1846
  instanceOfInAppNotification: () => instanceOfInAppNotification,
@@ -2013,6 +2053,10 @@ __export(index_exports, {
2013
2053
  instanceOfValidateResetTokenRequest: () => instanceOfValidateResetTokenRequest,
2014
2054
  instanceOfValidateResetTokenResponse: () => instanceOfValidateResetTokenResponse,
2015
2055
  instanceOfValidateResetTokenResponseData: () => instanceOfValidateResetTokenResponseData,
2056
+ instanceOfVerificationStatusResponse: () => instanceOfVerificationStatusResponse,
2057
+ instanceOfVerificationStatusResponseData: () => instanceOfVerificationStatusResponseData,
2058
+ instanceOfVerifyDomainResponse: () => instanceOfVerifyDomainResponse,
2059
+ instanceOfVerifyDomainResponseData: () => instanceOfVerifyDomainResponseData,
2016
2060
  instanceOfVerifySmsConfigData: () => instanceOfVerifySmsConfigData,
2017
2061
  instanceOfVerifySmsConfigResponse: () => instanceOfVerifySmsConfigResponse,
2018
2062
  instanceOfWaaSApplication: () => instanceOfWaaSApplication,
@@ -2436,6 +2480,20 @@ var DomainResponseStatusEnum = {
2436
2480
  VERIFIED: "verified",
2437
2481
  FAILED: "failed"
2438
2482
  };
2483
+ var DomainResponseSesIdentityStatusEnum = {
2484
+ PENDING: "pending",
2485
+ SUCCESS: "success",
2486
+ FAILED: "failed",
2487
+ TEMPORARY_FAILURE: "temporary_failure",
2488
+ NOT_STARTED: "not_started"
2489
+ };
2490
+ var DomainResponseSesDkimStatusEnum = {
2491
+ PENDING: "pending",
2492
+ SUCCESS: "success",
2493
+ FAILED: "failed",
2494
+ TEMPORARY_FAILURE: "temporary_failure",
2495
+ NOT_STARTED: "not_started"
2496
+ };
2439
2497
  function instanceOfDomainResponse(value) {
2440
2498
  if (!("id" in value) || value["id"] === void 0) return false;
2441
2499
  if (!("domain" in value) || value["domain"] === void 0) return false;
@@ -2461,6 +2519,8 @@ function DomainResponseFromJSONTyped(json, ignoreDiscriminator) {
2461
2519
  "recordsVerified": json["records_verified"],
2462
2520
  "recordsTotal": json["records_total"],
2463
2521
  "verificationToken": json["verification_token"] == null ? void 0 : json["verification_token"],
2522
+ "sesIdentityStatus": json["ses_identity_status"] == null ? void 0 : json["ses_identity_status"],
2523
+ "sesDkimStatus": json["ses_dkim_status"] == null ? void 0 : json["ses_dkim_status"],
2464
2524
  "verifiedAt": json["verified_at"] == null ? void 0 : new Date(json["verified_at"]),
2465
2525
  "lastCheckedAt": json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
2466
2526
  "createdAt": new Date(json["created_at"]),
@@ -2482,6 +2542,8 @@ function DomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
2482
2542
  "records_verified": value["recordsVerified"],
2483
2543
  "records_total": value["recordsTotal"],
2484
2544
  "verification_token": value["verificationToken"],
2545
+ "ses_identity_status": value["sesIdentityStatus"],
2546
+ "ses_dkim_status": value["sesDkimStatus"],
2485
2547
  "verified_at": value["verifiedAt"] == null ? void 0 : value["verifiedAt"].toISOString(),
2486
2548
  "last_checked_at": value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
2487
2549
  "created_at": value["createdAt"].toISOString(),
@@ -5036,6 +5098,95 @@ function CreateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
5036
5098
  };
5037
5099
  }
5038
5100
 
5101
+ // src/src/models/GetDomain200ResponseMeta.ts
5102
+ function instanceOfGetDomain200ResponseMeta(value) {
5103
+ return true;
5104
+ }
5105
+ function GetDomain200ResponseMetaFromJSON(json) {
5106
+ return GetDomain200ResponseMetaFromJSONTyped(json, false);
5107
+ }
5108
+ function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
5109
+ if (json == null) {
5110
+ return json;
5111
+ }
5112
+ return {
5113
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"]
5114
+ };
5115
+ }
5116
+ function GetDomain200ResponseMetaToJSON(json) {
5117
+ return GetDomain200ResponseMetaToJSONTyped(json, false);
5118
+ }
5119
+ function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
5120
+ if (value == null) {
5121
+ return value;
5122
+ }
5123
+ return {
5124
+ "request_id": value["requestId"]
5125
+ };
5126
+ }
5127
+
5128
+ // src/src/models/DeleteDomainResponseData.ts
5129
+ function instanceOfDeleteDomainResponseData(value) {
5130
+ if (!("id" in value) || value["id"] === void 0) return false;
5131
+ if (!("deleted" in value) || value["deleted"] === void 0) return false;
5132
+ return true;
5133
+ }
5134
+ function DeleteDomainResponseDataFromJSON(json) {
5135
+ return DeleteDomainResponseDataFromJSONTyped(json, false);
5136
+ }
5137
+ function DeleteDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5138
+ if (json == null) {
5139
+ return json;
5140
+ }
5141
+ return {
5142
+ "id": json["id"],
5143
+ "deleted": json["deleted"]
5144
+ };
5145
+ }
5146
+ function DeleteDomainResponseDataToJSON(json) {
5147
+ return DeleteDomainResponseDataToJSONTyped(json, false);
5148
+ }
5149
+ function DeleteDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
5150
+ if (value == null) {
5151
+ return value;
5152
+ }
5153
+ return {
5154
+ "id": value["id"],
5155
+ "deleted": value["deleted"]
5156
+ };
5157
+ }
5158
+
5159
+ // src/src/models/DeleteDomainResponse.ts
5160
+ function instanceOfDeleteDomainResponse(value) {
5161
+ if (!("data" in value) || value["data"] === void 0) return false;
5162
+ if (!("meta" in value) || value["meta"] === void 0) return false;
5163
+ return true;
5164
+ }
5165
+ function DeleteDomainResponseFromJSON(json) {
5166
+ return DeleteDomainResponseFromJSONTyped(json, false);
5167
+ }
5168
+ function DeleteDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
5169
+ if (json == null) {
5170
+ return json;
5171
+ }
5172
+ return {
5173
+ "data": DeleteDomainResponseDataFromJSON(json["data"]),
5174
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
5175
+ };
5176
+ }
5177
+ function DeleteDomainResponseToJSON(json) {
5178
+ return DeleteDomainResponseToJSONTyped(json, false);
5179
+ }
5180
+ function DeleteDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
5181
+ if (value == null) {
5182
+ return value;
5183
+ }
5184
+ return {
5185
+ "data": DeleteDomainResponseDataToJSON(value["data"]),
5186
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
5187
+ };
5188
+ }
5189
+
5039
5190
  // src/src/models/DeleteResultData.ts
5040
5191
  function instanceOfDeleteResultData(value) {
5041
5192
  return true;
@@ -6395,6 +6546,35 @@ function GenerateWaaSPortalToken201ResponseToJSONTyped(value, ignoreDiscriminato
6395
6546
  };
6396
6547
  }
6397
6548
 
6549
+ // src/src/models/GetDomain200Response.ts
6550
+ function instanceOfGetDomain200Response(value) {
6551
+ return true;
6552
+ }
6553
+ function GetDomain200ResponseFromJSON(json) {
6554
+ return GetDomain200ResponseFromJSONTyped(json, false);
6555
+ }
6556
+ function GetDomain200ResponseFromJSONTyped(json, ignoreDiscriminator) {
6557
+ if (json == null) {
6558
+ return json;
6559
+ }
6560
+ return {
6561
+ "data": json["data"] == null ? void 0 : DomainResponseFromJSON(json["data"]),
6562
+ "meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
6563
+ };
6564
+ }
6565
+ function GetDomain200ResponseToJSON(json) {
6566
+ return GetDomain200ResponseToJSONTyped(json, false);
6567
+ }
6568
+ function GetDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
6569
+ if (value == null) {
6570
+ return value;
6571
+ }
6572
+ return {
6573
+ "data": DomainResponseToJSON(value["data"]),
6574
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
6575
+ };
6576
+ }
6577
+
6398
6578
  // src/src/models/WaaSEndpoint.ts
6399
6579
  var WaaSEndpointStatusEnum = {
6400
6580
  ACTIVE: "active",
@@ -13381,6 +13561,161 @@ function ValidateResetTokenResponseToJSONTyped(value, ignoreDiscriminator = fals
13381
13561
  };
13382
13562
  }
13383
13563
 
13564
+ // src/src/models/VerificationStatusResponseData.ts
13565
+ var VerificationStatusResponseDataStatusEnum = {
13566
+ PENDING: "pending",
13567
+ VERIFYING: "verifying",
13568
+ VERIFIED: "verified",
13569
+ FAILED: "failed"
13570
+ };
13571
+ function instanceOfVerificationStatusResponseData(value) {
13572
+ if (!("domainId" in value) || value["domainId"] === void 0) return false;
13573
+ if (!("domain" in value) || value["domain"] === void 0) return false;
13574
+ if (!("status" in value) || value["status"] === void 0) return false;
13575
+ if (!("recordsVerified" in value) || value["recordsVerified"] === void 0) return false;
13576
+ if (!("recordsTotal" in value) || value["recordsTotal"] === void 0) return false;
13577
+ if (!("dnsRecords" in value) || value["dnsRecords"] === void 0) return false;
13578
+ return true;
13579
+ }
13580
+ function VerificationStatusResponseDataFromJSON(json) {
13581
+ return VerificationStatusResponseDataFromJSONTyped(json, false);
13582
+ }
13583
+ function VerificationStatusResponseDataFromJSONTyped(json, ignoreDiscriminator) {
13584
+ if (json == null) {
13585
+ return json;
13586
+ }
13587
+ return {
13588
+ "domainId": json["domain_id"],
13589
+ "domain": json["domain"],
13590
+ "status": json["status"],
13591
+ "recordsVerified": json["records_verified"],
13592
+ "recordsTotal": json["records_total"],
13593
+ "progress": json["progress"] == null ? void 0 : json["progress"],
13594
+ "dnsRecords": json["dns_records"].map(DnsRecordFromJSON),
13595
+ "lastCheckedAt": json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"])
13596
+ };
13597
+ }
13598
+ function VerificationStatusResponseDataToJSON(json) {
13599
+ return VerificationStatusResponseDataToJSONTyped(json, false);
13600
+ }
13601
+ function VerificationStatusResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
13602
+ if (value == null) {
13603
+ return value;
13604
+ }
13605
+ return {
13606
+ "domain_id": value["domainId"],
13607
+ "domain": value["domain"],
13608
+ "status": value["status"],
13609
+ "records_verified": value["recordsVerified"],
13610
+ "records_total": value["recordsTotal"],
13611
+ "progress": value["progress"],
13612
+ "dns_records": value["dnsRecords"].map(DnsRecordToJSON),
13613
+ "last_checked_at": value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString()
13614
+ };
13615
+ }
13616
+
13617
+ // src/src/models/VerificationStatusResponse.ts
13618
+ function instanceOfVerificationStatusResponse(value) {
13619
+ if (!("data" in value) || value["data"] === void 0) return false;
13620
+ if (!("meta" in value) || value["meta"] === void 0) return false;
13621
+ return true;
13622
+ }
13623
+ function VerificationStatusResponseFromJSON(json) {
13624
+ return VerificationStatusResponseFromJSONTyped(json, false);
13625
+ }
13626
+ function VerificationStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
13627
+ if (json == null) {
13628
+ return json;
13629
+ }
13630
+ return {
13631
+ "data": VerificationStatusResponseDataFromJSON(json["data"]),
13632
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
13633
+ };
13634
+ }
13635
+ function VerificationStatusResponseToJSON(json) {
13636
+ return VerificationStatusResponseToJSONTyped(json, false);
13637
+ }
13638
+ function VerificationStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
13639
+ if (value == null) {
13640
+ return value;
13641
+ }
13642
+ return {
13643
+ "data": VerificationStatusResponseDataToJSON(value["data"]),
13644
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
13645
+ };
13646
+ }
13647
+
13648
+ // src/src/models/VerifyDomainResponseData.ts
13649
+ var VerifyDomainResponseDataStatusEnum = {
13650
+ VERIFYING: "verifying"
13651
+ };
13652
+ function instanceOfVerifyDomainResponseData(value) {
13653
+ if (!("jobId" in value) || value["jobId"] === void 0) return false;
13654
+ if (!("domainId" in value) || value["domainId"] === void 0) return false;
13655
+ if (!("domain" in value) || value["domain"] === void 0) return false;
13656
+ if (!("status" in value) || value["status"] === void 0) return false;
13657
+ return true;
13658
+ }
13659
+ function VerifyDomainResponseDataFromJSON(json) {
13660
+ return VerifyDomainResponseDataFromJSONTyped(json, false);
13661
+ }
13662
+ function VerifyDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
13663
+ if (json == null) {
13664
+ return json;
13665
+ }
13666
+ return {
13667
+ "jobId": json["job_id"],
13668
+ "domainId": json["domain_id"],
13669
+ "domain": json["domain"],
13670
+ "status": json["status"]
13671
+ };
13672
+ }
13673
+ function VerifyDomainResponseDataToJSON(json) {
13674
+ return VerifyDomainResponseDataToJSONTyped(json, false);
13675
+ }
13676
+ function VerifyDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
13677
+ if (value == null) {
13678
+ return value;
13679
+ }
13680
+ return {
13681
+ "job_id": value["jobId"],
13682
+ "domain_id": value["domainId"],
13683
+ "domain": value["domain"],
13684
+ "status": value["status"]
13685
+ };
13686
+ }
13687
+
13688
+ // src/src/models/VerifyDomainResponse.ts
13689
+ function instanceOfVerifyDomainResponse(value) {
13690
+ if (!("data" in value) || value["data"] === void 0) return false;
13691
+ if (!("meta" in value) || value["meta"] === void 0) return false;
13692
+ return true;
13693
+ }
13694
+ function VerifyDomainResponseFromJSON(json) {
13695
+ return VerifyDomainResponseFromJSONTyped(json, false);
13696
+ }
13697
+ function VerifyDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
13698
+ if (json == null) {
13699
+ return json;
13700
+ }
13701
+ return {
13702
+ "data": VerifyDomainResponseDataFromJSON(json["data"]),
13703
+ "meta": AddDomain200ResponseMetaFromJSON(json["meta"])
13704
+ };
13705
+ }
13706
+ function VerifyDomainResponseToJSON(json) {
13707
+ return VerifyDomainResponseToJSONTyped(json, false);
13708
+ }
13709
+ function VerifyDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
13710
+ if (value == null) {
13711
+ return value;
13712
+ }
13713
+ return {
13714
+ "data": VerifyDomainResponseDataToJSON(value["data"]),
13715
+ "meta": AddDomain200ResponseMetaToJSON(value["meta"])
13716
+ };
13717
+ }
13718
+
13384
13719
  // src/src/models/VerifySmsConfigData.ts
13385
13720
  function instanceOfVerifySmsConfigData(value) {
13386
13721
  return true;
@@ -17642,6 +17977,102 @@ var DomainsApi = class extends BaseAPI {
17642
17977
  const response = await this.addDomainRaw({ addDomainRequest }, initOverrides);
17643
17978
  return await response.value();
17644
17979
  }
17980
+ /**
17981
+ * Remove a sending domain from the project. The domain is also detached from any SES identity that was provisioned for it. Returns 409 if the domain is still referenced by other resources (templates, scheduled sends, etc.) — those must be removed first.
17982
+ * Remove a sending domain
17983
+ */
17984
+ async deleteDomainRaw(requestParameters, initOverrides) {
17985
+ if (requestParameters["id"] == null) {
17986
+ throw new RequiredError(
17987
+ "id",
17988
+ 'Required parameter "id" was null or undefined when calling deleteDomain().'
17989
+ );
17990
+ }
17991
+ const queryParameters = {};
17992
+ const headerParameters = {};
17993
+ if (this.configuration && this.configuration.apiKey) {
17994
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
17995
+ }
17996
+ const response = await this.request({
17997
+ path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
17998
+ method: "DELETE",
17999
+ headers: headerParameters,
18000
+ query: queryParameters
18001
+ }, initOverrides);
18002
+ return new JSONApiResponse(response, (jsonValue) => DeleteDomainResponseFromJSON(jsonValue));
18003
+ }
18004
+ /**
18005
+ * Remove a sending domain from the project. The domain is also detached from any SES identity that was provisioned for it. Returns 409 if the domain is still referenced by other resources (templates, scheduled sends, etc.) — those must be removed first.
18006
+ * Remove a sending domain
18007
+ */
18008
+ async deleteDomain(id, initOverrides) {
18009
+ const response = await this.deleteDomainRaw({ id }, initOverrides);
18010
+ return await response.value();
18011
+ }
18012
+ /**
18013
+ * Retrieve a single sending domain by ID, including DNS records and verification counters.
18014
+ * Get a sending domain
18015
+ */
18016
+ async getDomainRaw(requestParameters, initOverrides) {
18017
+ if (requestParameters["id"] == null) {
18018
+ throw new RequiredError(
18019
+ "id",
18020
+ 'Required parameter "id" was null or undefined when calling getDomain().'
18021
+ );
18022
+ }
18023
+ const queryParameters = {};
18024
+ const headerParameters = {};
18025
+ if (this.configuration && this.configuration.apiKey) {
18026
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
18027
+ }
18028
+ const response = await this.request({
18029
+ path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
18030
+ method: "GET",
18031
+ headers: headerParameters,
18032
+ query: queryParameters
18033
+ }, initOverrides);
18034
+ return new JSONApiResponse(response, (jsonValue) => GetDomain200ResponseFromJSON(jsonValue));
18035
+ }
18036
+ /**
18037
+ * Retrieve a single sending domain by ID, including DNS records and verification counters.
18038
+ * Get a sending domain
18039
+ */
18040
+ async getDomain(id, initOverrides) {
18041
+ const response = await this.getDomainRaw({ id }, initOverrides);
18042
+ return await response.value();
18043
+ }
18044
+ /**
18045
+ * Returns the current verification status with per-record `verified` flags and aggregate counters. Useful when polling for terminal status from an AI agent (the recommended pattern is to subscribe to the `domain.verified` webhook event instead — see sc-5444).
18046
+ * Get domain verification status
18047
+ */
18048
+ async getDomainVerificationStatusRaw(requestParameters, initOverrides) {
18049
+ if (requestParameters["id"] == null) {
18050
+ throw new RequiredError(
18051
+ "id",
18052
+ 'Required parameter "id" was null or undefined when calling getDomainVerificationStatus().'
18053
+ );
18054
+ }
18055
+ const queryParameters = {};
18056
+ const headerParameters = {};
18057
+ if (this.configuration && this.configuration.apiKey) {
18058
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
18059
+ }
18060
+ const response = await this.request({
18061
+ path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
18062
+ method: "GET",
18063
+ headers: headerParameters,
18064
+ query: queryParameters
18065
+ }, initOverrides);
18066
+ return new JSONApiResponse(response, (jsonValue) => VerificationStatusResponseFromJSON(jsonValue));
18067
+ }
18068
+ /**
18069
+ * Returns the current verification status with per-record `verified` flags and aggregate counters. Useful when polling for terminal status from an AI agent (the recommended pattern is to subscribe to the `domain.verified` webhook event instead — see sc-5444).
18070
+ * Get domain verification status
18071
+ */
18072
+ async getDomainVerificationStatus(id, initOverrides) {
18073
+ const response = await this.getDomainVerificationStatusRaw({ id }, initOverrides);
18074
+ return await response.value();
18075
+ }
17645
18076
  /**
17646
18077
  * List sending domains on the current project, with verification status and DNS records.
17647
18078
  * List sending domains
@@ -17668,6 +18099,38 @@ var DomainsApi = class extends BaseAPI {
17668
18099
  const response = await this.listDomainsRaw(initOverrides);
17669
18100
  return await response.value();
17670
18101
  }
18102
+ /**
18103
+ * Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
18104
+ * Trigger domain verification
18105
+ */
18106
+ async verifyDomainRaw(requestParameters, initOverrides) {
18107
+ if (requestParameters["id"] == null) {
18108
+ throw new RequiredError(
18109
+ "id",
18110
+ 'Required parameter "id" was null or undefined when calling verifyDomain().'
18111
+ );
18112
+ }
18113
+ const queryParameters = {};
18114
+ const headerParameters = {};
18115
+ if (this.configuration && this.configuration.apiKey) {
18116
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
18117
+ }
18118
+ const response = await this.request({
18119
+ path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
18120
+ method: "POST",
18121
+ headers: headerParameters,
18122
+ query: queryParameters
18123
+ }, initOverrides);
18124
+ return new JSONApiResponse(response, (jsonValue) => VerifyDomainResponseFromJSON(jsonValue));
18125
+ }
18126
+ /**
18127
+ * Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
18128
+ * Trigger domain verification
18129
+ */
18130
+ async verifyDomain(id, initOverrides) {
18131
+ const response = await this.verifyDomainRaw({ id }, initOverrides);
18132
+ return await response.value();
18133
+ }
17671
18134
  };
17672
18135
 
17673
18136
  // src/src/apis/EmailsApi.ts
@@ -23081,6 +23544,14 @@ var SDK_VERSION = "0.1.0";
23081
23544
  CreateWebhookRequestToJSON,
23082
23545
  CreateWebhookRequestToJSONTyped,
23083
23546
  DefaultConfig,
23547
+ DeleteDomainResponseDataFromJSON,
23548
+ DeleteDomainResponseDataFromJSONTyped,
23549
+ DeleteDomainResponseDataToJSON,
23550
+ DeleteDomainResponseDataToJSONTyped,
23551
+ DeleteDomainResponseFromJSON,
23552
+ DeleteDomainResponseFromJSONTyped,
23553
+ DeleteDomainResponseToJSON,
23554
+ DeleteDomainResponseToJSONTyped,
23084
23555
  DeleteResultDataFromJSON,
23085
23556
  DeleteResultDataFromJSONTyped,
23086
23557
  DeleteResultDataToJSON,
@@ -23139,6 +23610,8 @@ var SDK_VERSION = "0.1.0";
23139
23610
  DomainListResponseToJSONTyped,
23140
23611
  DomainResponseFromJSON,
23141
23612
  DomainResponseFromJSONTyped,
23613
+ DomainResponseSesDkimStatusEnum,
23614
+ DomainResponseSesIdentityStatusEnum,
23142
23615
  DomainResponseStatusEnum,
23143
23616
  DomainResponseToJSON,
23144
23617
  DomainResponseToJSONTyped,
@@ -23246,6 +23719,14 @@ var SDK_VERSION = "0.1.0";
23246
23719
  GenerateWaaSPortalToken201ResponseFromJSONTyped,
23247
23720
  GenerateWaaSPortalToken201ResponseToJSON,
23248
23721
  GenerateWaaSPortalToken201ResponseToJSONTyped,
23722
+ GetDomain200ResponseFromJSON,
23723
+ GetDomain200ResponseFromJSONTyped,
23724
+ GetDomain200ResponseMetaFromJSON,
23725
+ GetDomain200ResponseMetaFromJSONTyped,
23726
+ GetDomain200ResponseMetaToJSON,
23727
+ GetDomain200ResponseMetaToJSONTyped,
23728
+ GetDomain200ResponseToJSON,
23729
+ GetDomain200ResponseToJSONTyped,
23249
23730
  GetWaaSEndpoint200ResponseFromJSON,
23250
23731
  GetWaaSEndpoint200ResponseFromJSONTyped,
23251
23732
  GetWaaSEndpoint200ResponseToJSON,
@@ -24143,6 +24624,24 @@ var SDK_VERSION = "0.1.0";
24143
24624
  ValidateResetTokenResponseFromJSONTyped,
24144
24625
  ValidateResetTokenResponseToJSON,
24145
24626
  ValidateResetTokenResponseToJSONTyped,
24627
+ VerificationStatusResponseDataFromJSON,
24628
+ VerificationStatusResponseDataFromJSONTyped,
24629
+ VerificationStatusResponseDataStatusEnum,
24630
+ VerificationStatusResponseDataToJSON,
24631
+ VerificationStatusResponseDataToJSONTyped,
24632
+ VerificationStatusResponseFromJSON,
24633
+ VerificationStatusResponseFromJSONTyped,
24634
+ VerificationStatusResponseToJSON,
24635
+ VerificationStatusResponseToJSONTyped,
24636
+ VerifyDomainResponseDataFromJSON,
24637
+ VerifyDomainResponseDataFromJSONTyped,
24638
+ VerifyDomainResponseDataStatusEnum,
24639
+ VerifyDomainResponseDataToJSON,
24640
+ VerifyDomainResponseDataToJSONTyped,
24641
+ VerifyDomainResponseFromJSON,
24642
+ VerifyDomainResponseFromJSONTyped,
24643
+ VerifyDomainResponseToJSON,
24644
+ VerifyDomainResponseToJSONTyped,
24146
24645
  VerifySmsConfigDataFromJSON,
24147
24646
  VerifySmsConfigDataFromJSONTyped,
24148
24647
  VerifySmsConfigDataToJSON,
@@ -24523,6 +25022,8 @@ var SDK_VERSION = "0.1.0";
24523
25022
  instanceOfCreateWaaSEventType201Response,
24524
25023
  instanceOfCreateWaaSEventTypeRequest,
24525
25024
  instanceOfCreateWebhookRequest,
25025
+ instanceOfDeleteDomainResponse,
25026
+ instanceOfDeleteDomainResponseData,
24526
25027
  instanceOfDeleteResult,
24527
25028
  instanceOfDeleteResultData,
24528
25029
  instanceOfDevice,
@@ -24561,6 +25062,8 @@ var SDK_VERSION = "0.1.0";
24561
25062
  instanceOfGenerateSubscriberToken200ResponseData,
24562
25063
  instanceOfGenerateSubscriberTokenRequest,
24563
25064
  instanceOfGenerateWaaSPortalToken201Response,
25065
+ instanceOfGetDomain200Response,
25066
+ instanceOfGetDomain200ResponseMeta,
24564
25067
  instanceOfGetWaaSEndpoint200Response,
24565
25068
  instanceOfGetWaaSUsage200Response,
24566
25069
  instanceOfInAppNotification,
@@ -24773,6 +25276,10 @@ var SDK_VERSION = "0.1.0";
24773
25276
  instanceOfValidateResetTokenRequest,
24774
25277
  instanceOfValidateResetTokenResponse,
24775
25278
  instanceOfValidateResetTokenResponseData,
25279
+ instanceOfVerificationStatusResponse,
25280
+ instanceOfVerificationStatusResponseData,
25281
+ instanceOfVerifyDomainResponse,
25282
+ instanceOfVerifyDomainResponseData,
24776
25283
  instanceOfVerifySmsConfigData,
24777
25284
  instanceOfVerifySmsConfigResponse,
24778
25285
  instanceOfWaaSApplication,