@forteplatforms/sdk 1.0.375 → 1.0.379

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.
@@ -173,6 +173,21 @@ var UserObject_1 = require("../models/UserObject");
173
173
  var WebAppBuildRequestObject_1 = require("../models/WebAppBuildRequestObject");
174
174
  var WebAppObject_1 = require("../models/WebAppObject");
175
175
  var WebAppRuntimeMetricsResponse_1 = require("../models/WebAppRuntimeMetricsResponse");
176
+ /**
177
+ * Generates a unique Idempotency-Key for an idempotent operation. Prefers the platform crypto UUID
178
+ * and falls back to a random token when crypto.randomUUID is unavailable. The key is generated once
179
+ * per logical call and reused across automatic retries so the server can safely deduplicate.
180
+ */
181
+ function forteIdempotencyKey() {
182
+ var c = (typeof globalThis !== 'undefined') ? globalThis.crypto : undefined;
183
+ if (c && typeof c.randomUUID === 'function') {
184
+ return c.randomUUID();
185
+ }
186
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (ch) {
187
+ var r = (Math.random() * 16) | 0;
188
+ return (ch === 'x' ? r : (r & 0x3) | 0x8).toString(16);
189
+ });
190
+ }
176
191
  /**
177
192
  *
178
193
  */
@@ -200,6 +215,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
200
215
  queryParameters = {};
201
216
  headerParameters = {};
202
217
  headerParameters['Content-Type'] = 'application/json';
218
+ if (headerParameters['Idempotency-Key'] == null) {
219
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
220
+ }
203
221
  urlPath = "/api/v1/projects/{projectId}/users/{userId}/contact-methods";
204
222
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
205
223
  urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
@@ -1044,6 +1062,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1044
1062
  queryParameters = {};
1045
1063
  headerParameters = {};
1046
1064
  headerParameters['Content-Type'] = 'application/json';
1065
+ if (headerParameters['Idempotency-Key'] == null) {
1066
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1067
+ }
1047
1068
  urlPath = "/api/v1/projects/{projectId}/actions";
1048
1069
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1049
1070
  return [2 /*return*/, {
@@ -1105,6 +1126,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1105
1126
  }
1106
1127
  queryParameters = {};
1107
1128
  headerParameters = {};
1129
+ if (headerParameters['Idempotency-Key'] == null) {
1130
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1131
+ }
1108
1132
  urlPath = "/api/v1/projects/{projectId}/actions/{actionId}/invocations";
1109
1133
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1110
1134
  urlPath = urlPath.replace('{actionId}', encodeURIComponent(String(requestParameters['actionId'])));
@@ -1170,6 +1194,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1170
1194
  queryParameters = {};
1171
1195
  headerParameters = {};
1172
1196
  headerParameters['Content-Type'] = 'application/json';
1197
+ if (headerParameters['Idempotency-Key'] == null) {
1198
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1199
+ }
1173
1200
  urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/custom-domains";
1174
1201
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1175
1202
  urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
@@ -1233,6 +1260,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1233
1260
  queryParameters = {};
1234
1261
  headerParameters = {};
1235
1262
  headerParameters['Content-Type'] = 'application/json';
1263
+ if (headerParameters['Idempotency-Key'] == null) {
1264
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1265
+ }
1236
1266
  urlPath = "/api/v1/projects/{projectId}/custom-email-templates";
1237
1267
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1238
1268
  return [2 /*return*/, {
@@ -1295,6 +1325,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1295
1325
  queryParameters = {};
1296
1326
  headerParameters = {};
1297
1327
  headerParameters['Content-Type'] = 'application/json';
1328
+ if (headerParameters['Idempotency-Key'] == null) {
1329
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1330
+ }
1298
1331
  urlPath = "/api/v1/projects/{projectId}/databases";
1299
1332
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1300
1333
  return [2 /*return*/, {
@@ -1360,6 +1393,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1360
1393
  queryParameters = {};
1361
1394
  headerParameters = {};
1362
1395
  headerParameters['Content-Type'] = 'application/json';
1396
+ if (headerParameters['Idempotency-Key'] == null) {
1397
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1398
+ }
1363
1399
  urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/connections";
1364
1400
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1365
1401
  urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
@@ -1426,6 +1462,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1426
1462
  queryParameters = {};
1427
1463
  headerParameters = {};
1428
1464
  headerParameters['Content-Type'] = 'application/json';
1465
+ if (headerParameters['Idempotency-Key'] == null) {
1466
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1467
+ }
1429
1468
  urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/users";
1430
1469
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1431
1470
  urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
@@ -1489,6 +1528,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1489
1528
  queryParameters = {};
1490
1529
  headerParameters = {};
1491
1530
  headerParameters['Content-Type'] = 'application/json';
1531
+ if (headerParameters['Idempotency-Key'] == null) {
1532
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1533
+ }
1492
1534
  urlPath = "/api/v1/projects/{projectId}/payment-triggers";
1493
1535
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1494
1536
  return [2 /*return*/, {
@@ -1553,6 +1595,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1553
1595
  queryParameters['sandboxMode'] = requestParameters['sandboxMode'];
1554
1596
  }
1555
1597
  headerParameters = {};
1598
+ if (headerParameters['Idempotency-Key'] == null) {
1599
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1600
+ }
1556
1601
  urlPath = "/api/v1/projects";
1557
1602
  return [2 /*return*/, {
1558
1603
  path: urlPath,
@@ -1613,6 +1658,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1613
1658
  queryParameters = {};
1614
1659
  headerParameters = {};
1615
1660
  headerParameters['Content-Type'] = 'application/json';
1661
+ if (headerParameters['Idempotency-Key'] == null) {
1662
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1663
+ }
1616
1664
  urlPath = "/api/v1/projects/{projectId}/api-keys";
1617
1665
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1618
1666
  return [2 /*return*/, {
@@ -1675,6 +1723,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1675
1723
  queryParameters = {};
1676
1724
  headerParameters = {};
1677
1725
  headerParameters['Content-Type'] = 'application/json';
1726
+ if (headerParameters['Idempotency-Key'] == null) {
1727
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1728
+ }
1678
1729
  urlPath = "/api/v1/projects/{projectId}/services";
1679
1730
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1680
1731
  return [2 /*return*/, {
@@ -1740,6 +1791,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1740
1791
  queryParameters = {};
1741
1792
  headerParameters = {};
1742
1793
  headerParameters['Content-Type'] = 'application/json';
1794
+ if (headerParameters['Idempotency-Key'] == null) {
1795
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1796
+ }
1743
1797
  urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/custom-domains";
1744
1798
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1745
1799
  urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
@@ -1808,6 +1862,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1808
1862
  queryParameters['releaseTagName'] = requestParameters['releaseTagName'];
1809
1863
  }
1810
1864
  headerParameters = {};
1865
+ if (headerParameters['Idempotency-Key'] == null) {
1866
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1867
+ }
1811
1868
  urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/deployments";
1812
1869
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1813
1870
  urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
@@ -1936,6 +1993,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1936
1993
  queryParameters = {};
1937
1994
  headerParameters = {};
1938
1995
  headerParameters['Content-Type'] = 'application/json';
1996
+ if (headerParameters['Idempotency-Key'] == null) {
1997
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1998
+ }
1939
1999
  urlPath = "/api/v1/projects/{projectId}/web-apps";
1940
2000
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1941
2001
  return [2 /*return*/, {
@@ -2003,6 +2063,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2003
2063
  queryParameters['releaseTagName'] = requestParameters['releaseTagName'];
2004
2064
  }
2005
2065
  headerParameters = {};
2066
+ if (headerParameters['Idempotency-Key'] == null) {
2067
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
2068
+ }
2006
2069
  urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/deployments";
2007
2070
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2008
2071
  urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
@@ -6392,6 +6455,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
6392
6455
  queryParameters = {};
6393
6456
  headerParameters = {};
6394
6457
  headerParameters['Content-Type'] = 'application/json';
6458
+ if (headerParameters['Idempotency-Key'] == null) {
6459
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
6460
+ }
6395
6461
  urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments";
6396
6462
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
6397
6463
  urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
@@ -6454,6 +6520,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
6454
6520
  }
6455
6521
  queryParameters = {};
6456
6522
  headerParameters = {};
6523
+ if (headerParameters['Idempotency-Key'] == null) {
6524
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
6525
+ }
6457
6526
  urlPath = "/api/v1/projects/{projectId}/users/{userId}/payment-methods";
6458
6527
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
6459
6528
  urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
@@ -6585,6 +6654,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
6585
6654
  queryParameters = {};
6586
6655
  headerParameters = {};
6587
6656
  headerParameters['Content-Type'] = 'application/json';
6657
+ if (headerParameters['Idempotency-Key'] == null) {
6658
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
6659
+ }
6588
6660
  urlPath = "/api/v1/projects/{projectId}/users/{userId}/subscriptions";
6589
6661
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
6590
6662
  urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
@@ -7582,6 +7654,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
7582
7654
  queryParameters['refundAmountCents'] = requestParameters['refundAmountCents'];
7583
7655
  }
7584
7656
  headerParameters = {};
7657
+ if (headerParameters['Idempotency-Key'] == null) {
7658
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
7659
+ }
7585
7660
  urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/{paymentId}/refund";
7586
7661
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
7587
7662
  urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
@@ -121,6 +121,21 @@ var UpdatePaymentMethodRequest_1 = require("../models/UpdatePaymentMethodRequest
121
121
  var UpdateSubscriptionPreviewRequest_1 = require("../models/UpdateSubscriptionPreviewRequest");
122
122
  var UpdateSubscriptionRequest_1 = require("../models/UpdateSubscriptionRequest");
123
123
  var UserObject_1 = require("../models/UserObject");
124
+ /**
125
+ * Generates a unique Idempotency-Key for an idempotent operation. Prefers the platform crypto UUID
126
+ * and falls back to a random token when crypto.randomUUID is unavailable. The key is generated once
127
+ * per logical call and reused across automatic retries so the server can safely deduplicate.
128
+ */
129
+ function forteIdempotencyKey() {
130
+ var c = (typeof globalThis !== 'undefined') ? globalThis.crypto : undefined;
131
+ if (c && typeof c.randomUUID === 'function') {
132
+ return c.randomUUID();
133
+ }
134
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (ch) {
135
+ var r = (Math.random() * 16) | 0;
136
+ return (ch === 'x' ? r : (r & 0x3) | 0x8).toString(16);
137
+ });
138
+ }
124
139
  /**
125
140
  *
126
141
  */
@@ -535,6 +550,9 @@ var UsersServerApi = /** @class */ (function (_super) {
535
550
  if (requestParameters['authorization'] != null) {
536
551
  headerParameters['Authorization'] = String(requestParameters['authorization']);
537
552
  }
553
+ if (headerParameters['Idempotency-Key'] == null) {
554
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
555
+ }
538
556
  urlPath = "/api/v1/{projectId}/users/me/contact-methods";
539
557
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
540
558
  return [2 /*return*/, {
@@ -600,6 +618,9 @@ var UsersServerApi = /** @class */ (function (_super) {
600
618
  if (requestParameters['authorization'] != null) {
601
619
  headerParameters['Authorization'] = String(requestParameters['authorization']);
602
620
  }
621
+ if (headerParameters['Idempotency-Key'] == null) {
622
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
623
+ }
603
624
  urlPath = "/api/v1/{projectId}/users/me/mfa/methods";
604
625
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
605
626
  return [2 /*return*/, {
@@ -792,6 +813,9 @@ var UsersServerApi = /** @class */ (function (_super) {
792
813
  if (requestParameters['authorization'] != null) {
793
814
  headerParameters['Authorization'] = String(requestParameters['authorization']);
794
815
  }
816
+ if (headerParameters['Idempotency-Key'] == null) {
817
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
818
+ }
795
819
  urlPath = "/api/v1/{projectId}/users/me/invites";
796
820
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
797
821
  return [2 /*return*/, {
@@ -977,6 +1001,9 @@ var UsersServerApi = /** @class */ (function (_super) {
977
1001
  if (requestParameters['authorization'] != null) {
978
1002
  headerParameters['Authorization'] = String(requestParameters['authorization']);
979
1003
  }
1004
+ if (headerParameters['Idempotency-Key'] == null) {
1005
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
1006
+ }
980
1007
  urlPath = "/api/v1/{projectId}/users/me/mfa/backup-codes";
981
1008
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
982
1009
  return [2 /*return*/, {
@@ -2706,6 +2733,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2706
2733
  if (requestParameters['authorization'] != null) {
2707
2734
  headerParameters['Authorization'] = String(requestParameters['authorization']);
2708
2735
  }
2736
+ if (headerParameters['Idempotency-Key'] == null) {
2737
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
2738
+ }
2709
2739
  urlPath = "/api/v1/{projectId}/users/me/payments";
2710
2740
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2711
2741
  return [2 /*return*/, {
@@ -2767,6 +2797,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2767
2797
  if (requestParameters['authorization'] != null) {
2768
2798
  headerParameters['Authorization'] = String(requestParameters['authorization']);
2769
2799
  }
2800
+ if (headerParameters['Idempotency-Key'] == null) {
2801
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
2802
+ }
2770
2803
  urlPath = "/api/v1/{projectId}/users/me/payment-methods";
2771
2804
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2772
2805
  return [2 /*return*/, {
@@ -2896,6 +2929,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2896
2929
  if (requestParameters['authorization'] != null) {
2897
2930
  headerParameters['Authorization'] = String(requestParameters['authorization']);
2898
2931
  }
2932
+ if (headerParameters['Idempotency-Key'] == null) {
2933
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
2934
+ }
2899
2935
  urlPath = "/api/v1/{projectId}/users/me/subscriptions";
2900
2936
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2901
2937
  return [2 /*return*/, {
@@ -133,6 +133,8 @@ export declare const AccountActionLogObjectActionTypeType: {
133
133
  readonly EMAIL_CONFIGURATION_CREATED: "EMAIL_CONFIGURATION_CREATED";
134
134
  readonly EMAIL_CONFIGURATION_UPDATED: "EMAIL_CONFIGURATION_UPDATED";
135
135
  readonly EMAIL_CONFIGURATION_VERIFIED: "EMAIL_CONFIGURATION_VERIFIED";
136
+ readonly EMAIL_SUPPRESSION_CREATED: "EMAIL_SUPPRESSION_CREATED";
137
+ readonly EMAIL_SUPPRESSION_DELETED: "EMAIL_SUPPRESSION_DELETED";
136
138
  readonly SMS_CONFIGURATION_CREATED: "SMS_CONFIGURATION_CREATED";
137
139
  readonly SMS_CONFIGURATION_UPDATED: "SMS_CONFIGURATION_UPDATED";
138
140
  readonly SMS_CONFIGURATION_VERIFIED: "SMS_CONFIGURATION_VERIFIED";
@@ -86,6 +86,8 @@ exports.AccountActionLogObjectActionTypeType = {
86
86
  EMAIL_CONFIGURATION_CREATED: 'EMAIL_CONFIGURATION_CREATED',
87
87
  EMAIL_CONFIGURATION_UPDATED: 'EMAIL_CONFIGURATION_UPDATED',
88
88
  EMAIL_CONFIGURATION_VERIFIED: 'EMAIL_CONFIGURATION_VERIFIED',
89
+ EMAIL_SUPPRESSION_CREATED: 'EMAIL_SUPPRESSION_CREATED',
90
+ EMAIL_SUPPRESSION_DELETED: 'EMAIL_SUPPRESSION_DELETED',
89
91
  SMS_CONFIGURATION_CREATED: 'SMS_CONFIGURATION_CREATED',
90
92
  SMS_CONFIGURATION_UPDATED: 'SMS_CONFIGURATION_UPDATED',
91
93
  SMS_CONFIGURATION_VERIFIED: 'SMS_CONFIGURATION_VERIFIED',
@@ -223,6 +223,9 @@ export declare const ForteApiExceptionErrorCodeType: {
223
223
  readonly EMAIL_CONFIGURATION_INVALID: "EMAIL_CONFIGURATION_INVALID";
224
224
  readonly EMAIL_BODY_REQUIRED: "EMAIL_BODY_REQUIRED";
225
225
  readonly SES_TENANT_NOT_PROVISIONED: "SES_TENANT_NOT_PROVISIONED";
226
+ readonly EMAIL_RECIPIENT_SUPPRESSED: "EMAIL_RECIPIENT_SUPPRESSED";
227
+ readonly EMAIL_SUPPRESSION_NOT_FOUND: "EMAIL_SUPPRESSION_NOT_FOUND";
228
+ readonly EMAIL_SUPPRESSION_ALREADY_EXISTS: "EMAIL_SUPPRESSION_ALREADY_EXISTS";
226
229
  readonly INVALID_MAIL_FROM_SUBDOMAIN: "INVALID_MAIL_FROM_SUBDOMAIN";
227
230
  readonly SMS_CONFIGURATION_INVALID: "SMS_CONFIGURATION_INVALID";
228
231
  readonly ENCRYPTION_PASSWORD_REQUIRED: "ENCRYPTION_PASSWORD_REQUIRED";
@@ -320,6 +323,9 @@ export declare const ForteApiExceptionErrorCodeType: {
320
323
  readonly OPS_SUGGESTION_NOT_FOUND: "OPS_SUGGESTION_NOT_FOUND";
321
324
  readonly OPS_SUGGESTION_INVALID_STATUS_TRANSITION: "OPS_SUGGESTION_INVALID_STATUS_TRANSITION";
322
325
  readonly ADMIN_SOCIAL_EXCEPTION: "ADMIN_SOCIAL_EXCEPTION";
326
+ readonly IDEMPOTENCY_KEY_INVALID: "IDEMPOTENCY_KEY_INVALID";
327
+ readonly IDEMPOTENCY_KEY_REUSED: "IDEMPOTENCY_KEY_REUSED";
328
+ readonly IDEMPOTENT_REQUEST_IN_PROGRESS: "IDEMPOTENT_REQUEST_IN_PROGRESS";
323
329
  };
324
330
  export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
325
331
  /**
@@ -208,6 +208,9 @@ exports.ForteApiExceptionErrorCodeType = {
208
208
  EMAIL_CONFIGURATION_INVALID: 'EMAIL_CONFIGURATION_INVALID',
209
209
  EMAIL_BODY_REQUIRED: 'EMAIL_BODY_REQUIRED',
210
210
  SES_TENANT_NOT_PROVISIONED: 'SES_TENANT_NOT_PROVISIONED',
211
+ EMAIL_RECIPIENT_SUPPRESSED: 'EMAIL_RECIPIENT_SUPPRESSED',
212
+ EMAIL_SUPPRESSION_NOT_FOUND: 'EMAIL_SUPPRESSION_NOT_FOUND',
213
+ EMAIL_SUPPRESSION_ALREADY_EXISTS: 'EMAIL_SUPPRESSION_ALREADY_EXISTS',
211
214
  INVALID_MAIL_FROM_SUBDOMAIN: 'INVALID_MAIL_FROM_SUBDOMAIN',
212
215
  SMS_CONFIGURATION_INVALID: 'SMS_CONFIGURATION_INVALID',
213
216
  ENCRYPTION_PASSWORD_REQUIRED: 'ENCRYPTION_PASSWORD_REQUIRED',
@@ -304,7 +307,10 @@ exports.ForteApiExceptionErrorCodeType = {
304
307
  DNS_SCAN_THROTTLED: 'DNS_SCAN_THROTTLED',
305
308
  OPS_SUGGESTION_NOT_FOUND: 'OPS_SUGGESTION_NOT_FOUND',
306
309
  OPS_SUGGESTION_INVALID_STATUS_TRANSITION: 'OPS_SUGGESTION_INVALID_STATUS_TRANSITION',
307
- ADMIN_SOCIAL_EXCEPTION: 'ADMIN_SOCIAL_EXCEPTION'
310
+ ADMIN_SOCIAL_EXCEPTION: 'ADMIN_SOCIAL_EXCEPTION',
311
+ IDEMPOTENCY_KEY_INVALID: 'IDEMPOTENCY_KEY_INVALID',
312
+ IDEMPOTENCY_KEY_REUSED: 'IDEMPOTENCY_KEY_REUSED',
313
+ IDEMPOTENT_REQUEST_IN_PROGRESS: 'IDEMPOTENT_REQUEST_IN_PROGRESS'
308
314
  };
309
315
  /**
310
316
  * Check if a given object implements the ForteApiException interface.
@@ -25,13 +25,13 @@ export interface ServiceMetricsResponse {
25
25
  * @type {Array<TimeSeriesDataPoint>}
26
26
  * @memberof ServiceMetricsResponse
27
27
  */
28
- invocations: Array<TimeSeriesDataPoint>;
28
+ invocations?: Array<TimeSeriesDataPoint>;
29
29
  /**
30
30
  *
31
31
  * @type {{ [key: string]: Array<TimeSeriesDataPoint>; }}
32
32
  * @memberof ServiceMetricsResponse
33
33
  */
34
- statusCodeCounts: {
34
+ statusCodeCounts?: {
35
35
  [key: string]: Array<TimeSeriesDataPoint>;
36
36
  };
37
37
  /**
@@ -39,7 +39,7 @@ export interface ServiceMetricsResponse {
39
39
  * @type {{ [key: string]: Array<TimeSeriesDataPoint>; }}
40
40
  * @memberof ServiceMetricsResponse
41
41
  */
42
- statusCodeGroupCounts: {
42
+ statusCodeGroupCounts?: {
43
43
  [key: string]: Array<TimeSeriesDataPoint>;
44
44
  };
45
45
  /**
@@ -47,31 +47,31 @@ export interface ServiceMetricsResponse {
47
47
  * @type {LatencyMetrics}
48
48
  * @memberof ServiceMetricsResponse
49
49
  */
50
- latencyMetrics: LatencyMetrics;
50
+ latencyMetrics?: LatencyMetrics;
51
51
  /**
52
52
  *
53
53
  * @type {LatencyPercentileSeries}
54
54
  * @memberof ServiceMetricsResponse
55
55
  */
56
- totalLatencySeries: LatencyPercentileSeries;
56
+ totalLatencySeries?: LatencyPercentileSeries;
57
57
  /**
58
58
  *
59
59
  * @type {InstanceCountSeries}
60
60
  * @memberof ServiceMetricsResponse
61
61
  */
62
- concurrentInstances: InstanceCountSeries;
62
+ concurrentInstances?: InstanceCountSeries;
63
63
  /**
64
64
  *
65
65
  * @type {UtilizationSeries}
66
66
  * @memberof ServiceMetricsResponse
67
67
  */
68
- cpuUtilization: UtilizationSeries;
68
+ cpuUtilization?: UtilizationSeries;
69
69
  /**
70
70
  *
71
71
  * @type {UtilizationSeries}
72
72
  * @memberof ServiceMetricsResponse
73
73
  */
74
- memoryUtilization: UtilizationSeries;
74
+ memoryUtilization?: UtilizationSeries;
75
75
  }
76
76
  /**
77
77
  * Check if a given object implements the ServiceMetricsResponse interface.
@@ -27,22 +27,6 @@ var LatencyPercentileSeries_1 = require("./LatencyPercentileSeries");
27
27
  * Check if a given object implements the ServiceMetricsResponse interface.
28
28
  */
29
29
  function instanceOfServiceMetricsResponse(value) {
30
- if (!('invocations' in value) || value['invocations'] === undefined)
31
- return false;
32
- if (!('statusCodeCounts' in value) || value['statusCodeCounts'] === undefined)
33
- return false;
34
- if (!('statusCodeGroupCounts' in value) || value['statusCodeGroupCounts'] === undefined)
35
- return false;
36
- if (!('latencyMetrics' in value) || value['latencyMetrics'] === undefined)
37
- return false;
38
- if (!('totalLatencySeries' in value) || value['totalLatencySeries'] === undefined)
39
- return false;
40
- if (!('concurrentInstances' in value) || value['concurrentInstances'] === undefined)
41
- return false;
42
- if (!('cpuUtilization' in value) || value['cpuUtilization'] === undefined)
43
- return false;
44
- if (!('memoryUtilization' in value) || value['memoryUtilization'] === undefined)
45
- return false;
46
30
  return true;
47
31
  }
48
32
  function ServiceMetricsResponseFromJSON(json) {
@@ -53,14 +37,14 @@ function ServiceMetricsResponseFromJSONTyped(json, ignoreDiscriminator) {
53
37
  return json;
54
38
  }
55
39
  return {
56
- 'invocations': (json['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointFromJSON)),
57
- 'statusCodeCounts': json['statusCodeCounts'],
58
- 'statusCodeGroupCounts': json['statusCodeGroupCounts'],
59
- 'latencyMetrics': (0, LatencyMetrics_1.LatencyMetricsFromJSON)(json['latencyMetrics']),
60
- 'totalLatencySeries': (0, LatencyPercentileSeries_1.LatencyPercentileSeriesFromJSON)(json['totalLatencySeries']),
61
- 'concurrentInstances': (0, InstanceCountSeries_1.InstanceCountSeriesFromJSON)(json['concurrentInstances']),
62
- 'cpuUtilization': (0, UtilizationSeries_1.UtilizationSeriesFromJSON)(json['cpuUtilization']),
63
- 'memoryUtilization': (0, UtilizationSeries_1.UtilizationSeriesFromJSON)(json['memoryUtilization']),
40
+ 'invocations': json['invocations'] == null ? undefined : (json['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointFromJSON)),
41
+ 'statusCodeCounts': json['statusCodeCounts'] == null ? undefined : json['statusCodeCounts'],
42
+ 'statusCodeGroupCounts': json['statusCodeGroupCounts'] == null ? undefined : json['statusCodeGroupCounts'],
43
+ 'latencyMetrics': json['latencyMetrics'] == null ? undefined : (0, LatencyMetrics_1.LatencyMetricsFromJSON)(json['latencyMetrics']),
44
+ 'totalLatencySeries': json['totalLatencySeries'] == null ? undefined : (0, LatencyPercentileSeries_1.LatencyPercentileSeriesFromJSON)(json['totalLatencySeries']),
45
+ 'concurrentInstances': json['concurrentInstances'] == null ? undefined : (0, InstanceCountSeries_1.InstanceCountSeriesFromJSON)(json['concurrentInstances']),
46
+ 'cpuUtilization': json['cpuUtilization'] == null ? undefined : (0, UtilizationSeries_1.UtilizationSeriesFromJSON)(json['cpuUtilization']),
47
+ 'memoryUtilization': json['memoryUtilization'] == null ? undefined : (0, UtilizationSeries_1.UtilizationSeriesFromJSON)(json['memoryUtilization']),
64
48
  };
65
49
  }
66
50
  function ServiceMetricsResponseToJSON(json) {
@@ -72,7 +56,7 @@ function ServiceMetricsResponseToJSONTyped(value, ignoreDiscriminator) {
72
56
  return value;
73
57
  }
74
58
  return {
75
- 'invocations': (value['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointToJSON)),
59
+ 'invocations': value['invocations'] == null ? undefined : (value['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointToJSON)),
76
60
  'statusCodeCounts': value['statusCodeCounts'],
77
61
  'statusCodeGroupCounts': value['statusCodeGroupCounts'],
78
62
  'latencyMetrics': (0, LatencyMetrics_1.LatencyMetricsToJSON)(value['latencyMetrics']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.375",
3
+ "version": "1.0.379",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {