@forteplatforms/sdk 1.0.156 → 1.0.163

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 (33) hide show
  1. package/README.md +29 -8
  2. package/dist/generated/apis/ProjectsServerApi.d.ts +98 -0
  3. package/dist/generated/apis/ProjectsServerApi.js +402 -0
  4. package/dist/generated/models/CreateCustomDomainRequest.d.ts +32 -0
  5. package/dist/generated/models/CreateCustomDomainRequest.js +51 -0
  6. package/dist/generated/models/CustomDomain.d.ts +112 -0
  7. package/dist/generated/models/CustomDomain.js +95 -0
  8. package/dist/generated/models/CustomDomainResponse.d.ts +33 -0
  9. package/dist/generated/models/CustomDomainResponse.js +50 -0
  10. package/dist/generated/models/DnsRecordCheck.d.ts +62 -0
  11. package/dist/generated/models/DnsRecordCheck.js +67 -0
  12. package/dist/generated/models/DnsRecordRequirement.d.ts +87 -0
  13. package/dist/generated/models/DnsRecordRequirement.js +83 -0
  14. package/dist/generated/models/DnsValidationResult.d.ts +45 -0
  15. package/dist/generated/models/DnsValidationResult.js +54 -0
  16. package/dist/generated/models/ForteApiException.d.ts +5 -0
  17. package/dist/generated/models/ForteApiException.js +6 -1
  18. package/dist/generated/models/ListCustomDomainsResponse.d.ts +33 -0
  19. package/dist/generated/models/ListCustomDomainsResponse.js +50 -0
  20. package/dist/generated/models/SyncCustomDomainResponse.d.ts +40 -0
  21. package/dist/generated/models/SyncCustomDomainResponse.js +53 -0
  22. package/dist/generated/models/UserActionLogObject.d.ts +1 -0
  23. package/dist/generated/models/UserActionLogObject.js +1 -0
  24. package/dist/generated/models/WebAppBuildRequestObject.d.ts +28 -0
  25. package/dist/generated/models/WebAppBuildRequestObject.js +16 -1
  26. package/dist/generated/models/WebAppDetectionResponse.d.ts +28 -0
  27. package/dist/generated/models/WebAppDetectionResponse.js +16 -1
  28. package/dist/generated/models/WebAppObject.d.ts +37 -2
  29. package/dist/generated/models/WebAppObject.js +21 -3
  30. package/dist/generated/models/index.d.ts +8 -0
  31. package/dist/generated/models/index.js +8 -0
  32. package/dist/index.js +10 -4
  33. package/package.json +1 -1
@@ -73,6 +73,7 @@ var ContactMethod_1 = require("../models/ContactMethod");
73
73
  var ContentObject_1 = require("../models/ContentObject");
74
74
  var CreateContentUploadLinkRequest_1 = require("../models/CreateContentUploadLinkRequest");
75
75
  var CreateContentUploadLinkResponse_1 = require("../models/CreateContentUploadLinkResponse");
76
+ var CreateCustomDomainRequest_1 = require("../models/CreateCustomDomainRequest");
76
77
  var CreateForteServiceRequest_1 = require("../models/CreateForteServiceRequest");
77
78
  var CreatePaymentPreviewRequest_1 = require("../models/CreatePaymentPreviewRequest");
78
79
  var CreatePaymentPreviewResponse_1 = require("../models/CreatePaymentPreviewResponse");
@@ -84,9 +85,11 @@ var CreateProjectApiKeyResponse_1 = require("../models/CreateProjectApiKeyRespon
84
85
  var CreateServiceRequestProxyRequest_1 = require("../models/CreateServiceRequestProxyRequest");
85
86
  var CreateServiceRequestProxyResponse_1 = require("../models/CreateServiceRequestProxyResponse");
86
87
  var CreateWebAppRequest_1 = require("../models/CreateWebAppRequest");
88
+ var CustomDomainResponse_1 = require("../models/CustomDomainResponse");
87
89
  var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLinkResponse");
88
90
  var ImpersonationTokenResponse_1 = require("../models/ImpersonationTokenResponse");
89
91
  var ListContentResponse_1 = require("../models/ListContentResponse");
92
+ var ListCustomDomainsResponse_1 = require("../models/ListCustomDomainsResponse");
90
93
  var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesResponse");
91
94
  var PaginatedResponseLogLineObject_1 = require("../models/PaginatedResponseLogLineObject");
92
95
  var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
@@ -104,6 +107,7 @@ var SendUserSmsRequest_1 = require("../models/SendUserSmsRequest");
104
107
  var ServiceBuildRequestObject_1 = require("../models/ServiceBuildRequestObject");
105
108
  var ServiceMetricsResponse_1 = require("../models/ServiceMetricsResponse");
106
109
  var ServiceObject_1 = require("../models/ServiceObject");
110
+ var SyncCustomDomainResponse_1 = require("../models/SyncCustomDomainResponse");
107
111
  var TestInvocationRequest_1 = require("../models/TestInvocationRequest");
108
112
  var TestInvocationResponse_1 = require("../models/TestInvocationResponse");
109
113
  var UpdateContentSharesRequest_1 = require("../models/UpdateContentSharesRequest");
@@ -461,6 +465,72 @@ var ProjectsServerApi = /** @class */ (function (_super) {
461
465
  });
462
466
  });
463
467
  };
468
+ /**
469
+ * Creates request options for createCustomDomain without sending the request
470
+ */
471
+ ProjectsServerApi.prototype.createCustomDomainRequestOpts = function (requestParameters) {
472
+ return __awaiter(this, void 0, void 0, function () {
473
+ var queryParameters, headerParameters, urlPath;
474
+ return __generator(this, function (_a) {
475
+ if (requestParameters['projectId'] == null) {
476
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createCustomDomain().');
477
+ }
478
+ if (requestParameters['webAppId'] == null) {
479
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling createCustomDomain().');
480
+ }
481
+ if (requestParameters['createCustomDomainRequest'] == null) {
482
+ throw new runtime.RequiredError('createCustomDomainRequest', 'Required parameter "createCustomDomainRequest" was null or undefined when calling createCustomDomain().');
483
+ }
484
+ queryParameters = {};
485
+ headerParameters = {};
486
+ headerParameters['Content-Type'] = 'application/json';
487
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains";
488
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
489
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
490
+ return [2 /*return*/, {
491
+ path: urlPath,
492
+ method: 'POST',
493
+ headers: headerParameters,
494
+ query: queryParameters,
495
+ body: (0, CreateCustomDomainRequest_1.CreateCustomDomainRequestToJSON)(requestParameters['createCustomDomainRequest']),
496
+ }];
497
+ });
498
+ });
499
+ };
500
+ /**
501
+ */
502
+ ProjectsServerApi.prototype.createCustomDomainRaw = function (requestParameters, initOverrides) {
503
+ return __awaiter(this, void 0, void 0, function () {
504
+ var requestOptions, response;
505
+ return __generator(this, function (_a) {
506
+ switch (_a.label) {
507
+ case 0: return [4 /*yield*/, this.createCustomDomainRequestOpts(requestParameters)];
508
+ case 1:
509
+ requestOptions = _a.sent();
510
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
511
+ case 2:
512
+ response = _a.sent();
513
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CustomDomainResponse_1.CustomDomainResponseFromJSON)(jsonValue); })];
514
+ }
515
+ });
516
+ });
517
+ };
518
+ /**
519
+ */
520
+ ProjectsServerApi.prototype.createCustomDomain = function (requestParameters, initOverrides) {
521
+ return __awaiter(this, void 0, void 0, function () {
522
+ var response;
523
+ return __generator(this, function (_a) {
524
+ switch (_a.label) {
525
+ case 0: return [4 /*yield*/, this.createCustomDomainRaw(requestParameters, initOverrides)];
526
+ case 1:
527
+ response = _a.sent();
528
+ return [4 /*yield*/, response.value()];
529
+ case 2: return [2 /*return*/, _a.sent()];
530
+ }
531
+ });
532
+ });
533
+ };
464
534
  /**
465
535
  * Creates request options for createPaymentTrigger without sending the request
466
536
  */
@@ -965,6 +1035,69 @@ var ProjectsServerApi = /** @class */ (function (_super) {
965
1035
  });
966
1036
  });
967
1037
  };
1038
+ /**
1039
+ * Creates request options for deleteCustomDomain without sending the request
1040
+ */
1041
+ ProjectsServerApi.prototype.deleteCustomDomainRequestOpts = function (requestParameters) {
1042
+ return __awaiter(this, void 0, void 0, function () {
1043
+ var queryParameters, headerParameters, urlPath;
1044
+ return __generator(this, function (_a) {
1045
+ if (requestParameters['projectId'] == null) {
1046
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteCustomDomain().');
1047
+ }
1048
+ if (requestParameters['webAppId'] == null) {
1049
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling deleteCustomDomain().');
1050
+ }
1051
+ if (requestParameters['customDomainId'] == null) {
1052
+ throw new runtime.RequiredError('customDomainId', 'Required parameter "customDomainId" was null or undefined when calling deleteCustomDomain().');
1053
+ }
1054
+ queryParameters = {};
1055
+ headerParameters = {};
1056
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains/{customDomainId}";
1057
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1058
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
1059
+ urlPath = urlPath.replace('{customDomainId}', encodeURIComponent(String(requestParameters['customDomainId'])));
1060
+ return [2 /*return*/, {
1061
+ path: urlPath,
1062
+ method: 'DELETE',
1063
+ headers: headerParameters,
1064
+ query: queryParameters,
1065
+ }];
1066
+ });
1067
+ });
1068
+ };
1069
+ /**
1070
+ */
1071
+ ProjectsServerApi.prototype.deleteCustomDomainRaw = function (requestParameters, initOverrides) {
1072
+ return __awaiter(this, void 0, void 0, function () {
1073
+ var requestOptions, response;
1074
+ return __generator(this, function (_a) {
1075
+ switch (_a.label) {
1076
+ case 0: return [4 /*yield*/, this.deleteCustomDomainRequestOpts(requestParameters)];
1077
+ case 1:
1078
+ requestOptions = _a.sent();
1079
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1080
+ case 2:
1081
+ response = _a.sent();
1082
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1083
+ }
1084
+ });
1085
+ });
1086
+ };
1087
+ /**
1088
+ */
1089
+ ProjectsServerApi.prototype.deleteCustomDomain = function (requestParameters, initOverrides) {
1090
+ return __awaiter(this, void 0, void 0, function () {
1091
+ return __generator(this, function (_a) {
1092
+ switch (_a.label) {
1093
+ case 0: return [4 /*yield*/, this.deleteCustomDomainRaw(requestParameters, initOverrides)];
1094
+ case 1:
1095
+ _a.sent();
1096
+ return [2 /*return*/];
1097
+ }
1098
+ });
1099
+ });
1100
+ };
968
1101
  /**
969
1102
  * Creates request options for deletePaymentTrigger without sending the request
970
1103
  */
@@ -1315,6 +1448,71 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1315
1448
  });
1316
1449
  });
1317
1450
  };
1451
+ /**
1452
+ * Creates request options for getCustomDomain without sending the request
1453
+ */
1454
+ ProjectsServerApi.prototype.getCustomDomainRequestOpts = function (requestParameters) {
1455
+ return __awaiter(this, void 0, void 0, function () {
1456
+ var queryParameters, headerParameters, urlPath;
1457
+ return __generator(this, function (_a) {
1458
+ if (requestParameters['projectId'] == null) {
1459
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getCustomDomain().');
1460
+ }
1461
+ if (requestParameters['webAppId'] == null) {
1462
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling getCustomDomain().');
1463
+ }
1464
+ if (requestParameters['customDomainId'] == null) {
1465
+ throw new runtime.RequiredError('customDomainId', 'Required parameter "customDomainId" was null or undefined when calling getCustomDomain().');
1466
+ }
1467
+ queryParameters = {};
1468
+ headerParameters = {};
1469
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains/{customDomainId}";
1470
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1471
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
1472
+ urlPath = urlPath.replace('{customDomainId}', encodeURIComponent(String(requestParameters['customDomainId'])));
1473
+ return [2 /*return*/, {
1474
+ path: urlPath,
1475
+ method: 'GET',
1476
+ headers: headerParameters,
1477
+ query: queryParameters,
1478
+ }];
1479
+ });
1480
+ });
1481
+ };
1482
+ /**
1483
+ */
1484
+ ProjectsServerApi.prototype.getCustomDomainRaw = function (requestParameters, initOverrides) {
1485
+ return __awaiter(this, void 0, void 0, function () {
1486
+ var requestOptions, response;
1487
+ return __generator(this, function (_a) {
1488
+ switch (_a.label) {
1489
+ case 0: return [4 /*yield*/, this.getCustomDomainRequestOpts(requestParameters)];
1490
+ case 1:
1491
+ requestOptions = _a.sent();
1492
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1493
+ case 2:
1494
+ response = _a.sent();
1495
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CustomDomainResponse_1.CustomDomainResponseFromJSON)(jsonValue); })];
1496
+ }
1497
+ });
1498
+ });
1499
+ };
1500
+ /**
1501
+ */
1502
+ ProjectsServerApi.prototype.getCustomDomain = function (requestParameters, initOverrides) {
1503
+ return __awaiter(this, void 0, void 0, function () {
1504
+ var response;
1505
+ return __generator(this, function (_a) {
1506
+ switch (_a.label) {
1507
+ case 0: return [4 /*yield*/, this.getCustomDomainRaw(requestParameters, initOverrides)];
1508
+ case 1:
1509
+ response = _a.sent();
1510
+ return [4 /*yield*/, response.value()];
1511
+ case 2: return [2 /*return*/, _a.sent()];
1512
+ }
1513
+ });
1514
+ });
1515
+ };
1318
1516
  /**
1319
1517
  * Creates request options for getNotificationTemplates without sending the request
1320
1518
  */
@@ -2004,6 +2202,67 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2004
2202
  });
2005
2203
  });
2006
2204
  };
2205
+ /**
2206
+ * Creates request options for listCustomDomains without sending the request
2207
+ */
2208
+ ProjectsServerApi.prototype.listCustomDomainsRequestOpts = function (requestParameters) {
2209
+ return __awaiter(this, void 0, void 0, function () {
2210
+ var queryParameters, headerParameters, urlPath;
2211
+ return __generator(this, function (_a) {
2212
+ if (requestParameters['projectId'] == null) {
2213
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listCustomDomains().');
2214
+ }
2215
+ if (requestParameters['webAppId'] == null) {
2216
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling listCustomDomains().');
2217
+ }
2218
+ queryParameters = {};
2219
+ headerParameters = {};
2220
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains";
2221
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2222
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
2223
+ return [2 /*return*/, {
2224
+ path: urlPath,
2225
+ method: 'GET',
2226
+ headers: headerParameters,
2227
+ query: queryParameters,
2228
+ }];
2229
+ });
2230
+ });
2231
+ };
2232
+ /**
2233
+ */
2234
+ ProjectsServerApi.prototype.listCustomDomainsRaw = function (requestParameters, initOverrides) {
2235
+ return __awaiter(this, void 0, void 0, function () {
2236
+ var requestOptions, response;
2237
+ return __generator(this, function (_a) {
2238
+ switch (_a.label) {
2239
+ case 0: return [4 /*yield*/, this.listCustomDomainsRequestOpts(requestParameters)];
2240
+ case 1:
2241
+ requestOptions = _a.sent();
2242
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2243
+ case 2:
2244
+ response = _a.sent();
2245
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListCustomDomainsResponse_1.ListCustomDomainsResponseFromJSON)(jsonValue); })];
2246
+ }
2247
+ });
2248
+ });
2249
+ };
2250
+ /**
2251
+ */
2252
+ ProjectsServerApi.prototype.listCustomDomains = function (requestParameters, initOverrides) {
2253
+ return __awaiter(this, void 0, void 0, function () {
2254
+ var response;
2255
+ return __generator(this, function (_a) {
2256
+ switch (_a.label) {
2257
+ case 0: return [4 /*yield*/, this.listCustomDomainsRaw(requestParameters, initOverrides)];
2258
+ case 1:
2259
+ response = _a.sent();
2260
+ return [4 /*yield*/, response.value()];
2261
+ case 2: return [2 /*return*/, _a.sent()];
2262
+ }
2263
+ });
2264
+ });
2265
+ };
2007
2266
  /**
2008
2267
  * Creates request options for listLogLines without sending the request
2009
2268
  */
@@ -2614,6 +2873,83 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2614
2873
  });
2615
2874
  });
2616
2875
  };
2876
+ /**
2877
+ * Creates request options for listWebAppBuildLogLines without sending the request
2878
+ */
2879
+ ProjectsServerApi.prototype.listWebAppBuildLogLinesRequestOpts = function (requestParameters) {
2880
+ return __awaiter(this, void 0, void 0, function () {
2881
+ var queryParameters, headerParameters, urlPath;
2882
+ return __generator(this, function (_a) {
2883
+ if (requestParameters['projectId'] == null) {
2884
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebAppBuildLogLines().');
2885
+ }
2886
+ if (requestParameters['webAppId'] == null) {
2887
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling listWebAppBuildLogLines().');
2888
+ }
2889
+ if (requestParameters['buildId'] == null) {
2890
+ throw new runtime.RequiredError('buildId', 'Required parameter "buildId" was null or undefined when calling listWebAppBuildLogLines().');
2891
+ }
2892
+ queryParameters = {};
2893
+ if (requestParameters['minTime'] != null) {
2894
+ queryParameters['minTime'] = requestParameters['minTime'].toISOString();
2895
+ }
2896
+ if (requestParameters['maxTime'] != null) {
2897
+ queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
2898
+ }
2899
+ if (requestParameters['level'] != null) {
2900
+ queryParameters['level'] = requestParameters['level'];
2901
+ }
2902
+ if (requestParameters['nextToken'] != null) {
2903
+ queryParameters['nextToken'] = requestParameters['nextToken'];
2904
+ }
2905
+ headerParameters = {};
2906
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments/{buildId}/logs";
2907
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2908
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
2909
+ urlPath = urlPath.replace('{buildId}', encodeURIComponent(String(requestParameters['buildId'])));
2910
+ return [2 /*return*/, {
2911
+ path: urlPath,
2912
+ method: 'GET',
2913
+ headers: headerParameters,
2914
+ query: queryParameters,
2915
+ }];
2916
+ });
2917
+ });
2918
+ };
2919
+ /**
2920
+ */
2921
+ ProjectsServerApi.prototype.listWebAppBuildLogLinesRaw = function (requestParameters, initOverrides) {
2922
+ return __awaiter(this, void 0, void 0, function () {
2923
+ var requestOptions, response;
2924
+ return __generator(this, function (_a) {
2925
+ switch (_a.label) {
2926
+ case 0: return [4 /*yield*/, this.listWebAppBuildLogLinesRequestOpts(requestParameters)];
2927
+ case 1:
2928
+ requestOptions = _a.sent();
2929
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
2930
+ case 2:
2931
+ response = _a.sent();
2932
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseLogLineObject_1.PaginatedResponseLogLineObjectFromJSON)(jsonValue); })];
2933
+ }
2934
+ });
2935
+ });
2936
+ };
2937
+ /**
2938
+ */
2939
+ ProjectsServerApi.prototype.listWebAppBuildLogLines = function (requestParameters, initOverrides) {
2940
+ return __awaiter(this, void 0, void 0, function () {
2941
+ var response;
2942
+ return __generator(this, function (_a) {
2943
+ switch (_a.label) {
2944
+ case 0: return [4 /*yield*/, this.listWebAppBuildLogLinesRaw(requestParameters, initOverrides)];
2945
+ case 1:
2946
+ response = _a.sent();
2947
+ return [4 /*yield*/, response.value()];
2948
+ case 2: return [2 /*return*/, _a.sent()];
2949
+ }
2950
+ });
2951
+ });
2952
+ };
2617
2953
  /**
2618
2954
  * Creates request options for listWebAppDeployments without sending the request
2619
2955
  */
@@ -3749,6 +4085,71 @@ var ProjectsServerApi = /** @class */ (function (_super) {
3749
4085
  });
3750
4086
  });
3751
4087
  };
4088
+ /**
4089
+ * Creates request options for syncCustomDomain without sending the request
4090
+ */
4091
+ ProjectsServerApi.prototype.syncCustomDomainRequestOpts = function (requestParameters) {
4092
+ return __awaiter(this, void 0, void 0, function () {
4093
+ var queryParameters, headerParameters, urlPath;
4094
+ return __generator(this, function (_a) {
4095
+ if (requestParameters['projectId'] == null) {
4096
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling syncCustomDomain().');
4097
+ }
4098
+ if (requestParameters['webAppId'] == null) {
4099
+ throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling syncCustomDomain().');
4100
+ }
4101
+ if (requestParameters['customDomainId'] == null) {
4102
+ throw new runtime.RequiredError('customDomainId', 'Required parameter "customDomainId" was null or undefined when calling syncCustomDomain().');
4103
+ }
4104
+ queryParameters = {};
4105
+ headerParameters = {};
4106
+ urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains/{customDomainId}/sync";
4107
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
4108
+ urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
4109
+ urlPath = urlPath.replace('{customDomainId}', encodeURIComponent(String(requestParameters['customDomainId'])));
4110
+ return [2 /*return*/, {
4111
+ path: urlPath,
4112
+ method: 'POST',
4113
+ headers: headerParameters,
4114
+ query: queryParameters,
4115
+ }];
4116
+ });
4117
+ });
4118
+ };
4119
+ /**
4120
+ */
4121
+ ProjectsServerApi.prototype.syncCustomDomainRaw = function (requestParameters, initOverrides) {
4122
+ return __awaiter(this, void 0, void 0, function () {
4123
+ var requestOptions, response;
4124
+ return __generator(this, function (_a) {
4125
+ switch (_a.label) {
4126
+ case 0: return [4 /*yield*/, this.syncCustomDomainRequestOpts(requestParameters)];
4127
+ case 1:
4128
+ requestOptions = _a.sent();
4129
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
4130
+ case 2:
4131
+ response = _a.sent();
4132
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, SyncCustomDomainResponse_1.SyncCustomDomainResponseFromJSON)(jsonValue); })];
4133
+ }
4134
+ });
4135
+ });
4136
+ };
4137
+ /**
4138
+ */
4139
+ ProjectsServerApi.prototype.syncCustomDomain = function (requestParameters, initOverrides) {
4140
+ return __awaiter(this, void 0, void 0, function () {
4141
+ var response;
4142
+ return __generator(this, function (_a) {
4143
+ switch (_a.label) {
4144
+ case 0: return [4 /*yield*/, this.syncCustomDomainRaw(requestParameters, initOverrides)];
4145
+ case 1:
4146
+ response = _a.sent();
4147
+ return [4 /*yield*/, response.value()];
4148
+ case 2: return [2 /*return*/, _a.sent()];
4149
+ }
4150
+ });
4151
+ });
4152
+ };
3752
4153
  /**
3753
4154
  * Creates request options for testInvocation without sending the request
3754
4155
  */
@@ -4168,6 +4569,7 @@ exports.ListUserActionLogsActionTypeType = {
4168
4569
  USER_HARD_DELETED: 'USER_HARD_DELETED',
4169
4570
  CONTACT_METHOD_ADDED: 'CONTACT_METHOD_ADDED',
4170
4571
  CONTACT_METHOD_REMOVED: 'CONTACT_METHOD_REMOVED',
4572
+ CONTACT_METHOD_DISPLACED: 'CONTACT_METHOD_DISPLACED',
4171
4573
  CONTACT_METHOD_VERIFICATION_CODE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_SENT',
4172
4574
  CONTACT_METHOD_VERIFICATION_CODE_RE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_RE_SENT',
4173
4575
  CONTACT_METHOD_VERIFIED: 'CONTACT_METHOD_VERIFIED',
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateCustomDomainRequest
16
+ */
17
+ export interface CreateCustomDomainRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateCustomDomainRequest
22
+ */
23
+ domain: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateCustomDomainRequest interface.
27
+ */
28
+ export declare function instanceOfCreateCustomDomainRequest(value: object): value is CreateCustomDomainRequest;
29
+ export declare function CreateCustomDomainRequestFromJSON(json: any): CreateCustomDomainRequest;
30
+ export declare function CreateCustomDomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomDomainRequest;
31
+ export declare function CreateCustomDomainRequestToJSON(json: any): CreateCustomDomainRequest;
32
+ export declare function CreateCustomDomainRequestToJSONTyped(value?: CreateCustomDomainRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCustomDomainRequest = instanceOfCreateCustomDomainRequest;
17
+ exports.CreateCustomDomainRequestFromJSON = CreateCustomDomainRequestFromJSON;
18
+ exports.CreateCustomDomainRequestFromJSONTyped = CreateCustomDomainRequestFromJSONTyped;
19
+ exports.CreateCustomDomainRequestToJSON = CreateCustomDomainRequestToJSON;
20
+ exports.CreateCustomDomainRequestToJSONTyped = CreateCustomDomainRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateCustomDomainRequest interface.
23
+ */
24
+ function instanceOfCreateCustomDomainRequest(value) {
25
+ if (!('domain' in value) || value['domain'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateCustomDomainRequestFromJSON(json) {
30
+ return CreateCustomDomainRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateCustomDomainRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'domain': json['domain'],
38
+ };
39
+ }
40
+ function CreateCustomDomainRequestToJSON(json) {
41
+ return CreateCustomDomainRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateCustomDomainRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'domain': value['domain'],
50
+ };
51
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { DnsValidationResult } from './DnsValidationResult';
13
+ import type { DnsRecordRequirement } from './DnsRecordRequirement';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CustomDomain
18
+ */
19
+ export interface CustomDomain {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof CustomDomain
24
+ */
25
+ customDomainId: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CustomDomain
30
+ */
31
+ domain: string;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof CustomDomain
36
+ */
37
+ apex?: boolean;
38
+ /**
39
+ *
40
+ * @type {CustomDomainStatusType}
41
+ * @memberof CustomDomain
42
+ */
43
+ status: CustomDomainStatusType;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof CustomDomain
48
+ */
49
+ createdTimestamp: Date;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof CustomDomain
54
+ */
55
+ lastModifiedTimestamp: Date;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof CustomDomain
60
+ */
61
+ verifiedTimestamp?: Date;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof CustomDomain
66
+ */
67
+ activatedTimestamp?: Date;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof CustomDomain
72
+ */
73
+ failureReason?: string;
74
+ /**
75
+ *
76
+ * @type {Array<DnsRecordRequirement>}
77
+ * @memberof CustomDomain
78
+ */
79
+ requiredDnsRecords?: Array<DnsRecordRequirement>;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof CustomDomain
84
+ */
85
+ lastDnsCheckAt?: Date;
86
+ /**
87
+ *
88
+ * @type {DnsValidationResult}
89
+ * @memberof CustomDomain
90
+ */
91
+ lastDnsCheckResult?: DnsValidationResult;
92
+ }
93
+ /**
94
+ * @export
95
+ */
96
+ export declare const CustomDomainStatusType: {
97
+ readonly PENDING_DNS_VERIFICATION: "PENDING_DNS_VERIFICATION";
98
+ readonly PROVISIONING_CERTIFICATE: "PROVISIONING_CERTIFICATE";
99
+ readonly ATTACHING: "ATTACHING";
100
+ readonly ACTIVE: "ACTIVE";
101
+ readonly FAILED: "FAILED";
102
+ readonly DELETING: "DELETING";
103
+ };
104
+ export type CustomDomainStatusType = typeof CustomDomainStatusType[keyof typeof CustomDomainStatusType];
105
+ /**
106
+ * Check if a given object implements the CustomDomain interface.
107
+ */
108
+ export declare function instanceOfCustomDomain(value: object): value is CustomDomain;
109
+ export declare function CustomDomainFromJSON(json: any): CustomDomain;
110
+ export declare function CustomDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomDomain;
111
+ export declare function CustomDomainToJSON(json: any): CustomDomain;
112
+ export declare function CustomDomainToJSONTyped(value?: CustomDomain | null, ignoreDiscriminator?: boolean): any;