@zyphr-dev/node-sdk 0.1.42 → 0.1.44
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/README.md +6 -4
- package/dist/index.cjs +2056 -345
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2258 -466
- package/dist/index.d.ts +2258 -466
- package/dist/index.js +1852 -340
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +40 -1
- package/src/client.ts +18 -3
- package/src/clientAuth.ts +45 -12
- package/src/src/apis/AuthApplicationApi.ts +93 -0
- package/src/src/apis/AuthEmailTemplatesApi.ts +4 -4
- package/src/src/apis/AuthUserDirectoryApi.ts +120 -36
- package/src/src/apis/DomainsApi.ts +7 -6
- package/src/src/apis/InboxApi.ts +78 -54
- package/src/src/apis/TemplatesApi.ts +10 -6
- package/src/src/apis/WaaSDeliveriesApi.ts +17 -12
- package/src/src/apis/WaaSEndpointsApi.ts +50 -30
- package/src/src/apis/WaaSEventTypesApi.ts +17 -12
- package/src/src/apis/index.ts +1 -0
- package/src/src/models/ApplicationSelf.ts +118 -0
- package/src/src/models/ApplicationSelfResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateTestRequest.ts +1 -1
- package/src/src/models/AuthMethods.ts +111 -0
- package/src/src/models/CloseWaaSEndpointCircuit200Response.ts +88 -0
- package/src/src/models/CloseWaaSEndpointCircuit200ResponseData.ts +76 -0
- package/src/src/models/GetEndUserAuthMethods200Response.ts +88 -0
- package/src/src/models/GetEndUserById200Response.ts +88 -0
- package/src/src/models/GetEndUserClaims200Response.ts +88 -0
- package/src/src/models/GetEndUserClaims200ResponseData.ts +65 -0
- package/src/src/models/GetSubscriberInboxPreferences200Response.ts +73 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseData.ts +88 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.ts +88 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.ts +97 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobal.ts +73 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.ts +94 -0
- package/src/src/models/GetSubscriberNotification200Response.ts +73 -0
- package/src/src/models/GetSubscriberUnreadCount200Response.ts +73 -0
- package/src/src/models/GetWaaSDelivery200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointCircuit200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointCircuit200ResponseData.ts +123 -0
- package/src/src/models/GetWaaSEndpointMetrics200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseData.ts +99 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseDataHealth.ts +87 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseDataWindowsValue.ts +126 -0
- package/src/src/models/InviteEndUser200Response.ts +88 -0
- package/src/src/models/InviteEndUser200ResponseData.ts +81 -0
- package/src/src/models/ListEndUsers200Response.ts +88 -0
- package/src/src/models/{ListWorkflowExecutions200ResponseMeta.ts → ListEndUsers200ResponseMeta.ts} +15 -15
- package/src/src/models/ListWorkflowExecutions200Response.ts +11 -11
- package/src/src/models/MarkAllSubscriberNotificationsRead200Response.ts +73 -0
- package/src/src/models/RotateWaaSEndpointSecret200Response.ts +88 -0
- package/src/src/models/RotateWaaSEndpointSecret200ResponseData.ts +66 -0
- package/src/src/models/SendTemplateTestEmail202Response.ts +90 -0
- package/src/src/models/SendTemplateTestEmail202ResponseData.ts +120 -0
- package/src/src/models/SendTemplateTestEmail202ResponseMeta.ts +66 -0
- package/src/src/models/SmsListResponse.ts +10 -10
- package/src/src/models/UpdateSubscriberPreferences200Response.ts +73 -0
- package/src/src/models/UpdateSubscriberPreferences200ResponseData.ts +81 -0
- package/src/src/models/UpdateSubscriberPreferences200ResponseDataPreferencesInner.ts +102 -0
- package/src/src/models/UpdateWaaSEndpoint200Response.ts +88 -0
- package/src/src/models/UpdateWaaSEventType200Response.ts +88 -0
- package/src/src/models/index.ts +39 -1
package/dist/index.js
CHANGED
|
@@ -850,6 +850,81 @@ function ApiErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
+
// src/src/models/ApplicationSelf.ts
|
|
854
|
+
var ApplicationSelfEnvironmentEnum = {
|
|
855
|
+
TEST: "test",
|
|
856
|
+
LIVE: "live"
|
|
857
|
+
};
|
|
858
|
+
var ApplicationSelfSigningAlgorithmEnum = {
|
|
859
|
+
HS256: "HS256",
|
|
860
|
+
RS256: "RS256",
|
|
861
|
+
ES256: "ES256"
|
|
862
|
+
};
|
|
863
|
+
function instanceOfApplicationSelf(value) {
|
|
864
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
865
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
866
|
+
if (!("environment" in value) || value["environment"] === void 0) return false;
|
|
867
|
+
if (!("signingAlgorithm" in value) || value["signingAlgorithm"] === void 0) return false;
|
|
868
|
+
return true;
|
|
869
|
+
}
|
|
870
|
+
function ApplicationSelfFromJSON(json) {
|
|
871
|
+
return ApplicationSelfFromJSONTyped(json, false);
|
|
872
|
+
}
|
|
873
|
+
function ApplicationSelfFromJSONTyped(json, ignoreDiscriminator) {
|
|
874
|
+
if (json == null) {
|
|
875
|
+
return json;
|
|
876
|
+
}
|
|
877
|
+
return {
|
|
878
|
+
"id": json["id"],
|
|
879
|
+
"name": json["name"],
|
|
880
|
+
"environment": json["environment"],
|
|
881
|
+
"signingAlgorithm": json["signing_algorithm"]
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
function ApplicationSelfToJSON(json) {
|
|
885
|
+
return ApplicationSelfToJSONTyped(json, false);
|
|
886
|
+
}
|
|
887
|
+
function ApplicationSelfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
888
|
+
if (value == null) {
|
|
889
|
+
return value;
|
|
890
|
+
}
|
|
891
|
+
return {
|
|
892
|
+
"id": value["id"],
|
|
893
|
+
"name": value["name"],
|
|
894
|
+
"environment": value["environment"],
|
|
895
|
+
"signing_algorithm": value["signingAlgorithm"]
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// src/src/models/ApplicationSelfResponse.ts
|
|
900
|
+
function instanceOfApplicationSelfResponse(value) {
|
|
901
|
+
return true;
|
|
902
|
+
}
|
|
903
|
+
function ApplicationSelfResponseFromJSON(json) {
|
|
904
|
+
return ApplicationSelfResponseFromJSONTyped(json, false);
|
|
905
|
+
}
|
|
906
|
+
function ApplicationSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
907
|
+
if (json == null) {
|
|
908
|
+
return json;
|
|
909
|
+
}
|
|
910
|
+
return {
|
|
911
|
+
"data": json["data"] == null ? void 0 : ApplicationSelfFromJSON(json["data"]),
|
|
912
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
function ApplicationSelfResponseToJSON(json) {
|
|
916
|
+
return ApplicationSelfResponseToJSONTyped(json, false);
|
|
917
|
+
}
|
|
918
|
+
function ApplicationSelfResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
919
|
+
if (value == null) {
|
|
920
|
+
return value;
|
|
921
|
+
}
|
|
922
|
+
return {
|
|
923
|
+
"data": ApplicationSelfToJSON(value["data"]),
|
|
924
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
|
|
853
928
|
// src/src/models/AuthEmailType.ts
|
|
854
929
|
var AuthEmailType = {
|
|
855
930
|
MAGIC_LINK: "magic_link",
|
|
@@ -1598,6 +1673,49 @@ function AuthLoginResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1598
1673
|
};
|
|
1599
1674
|
}
|
|
1600
1675
|
|
|
1676
|
+
// src/src/models/AuthMethods.ts
|
|
1677
|
+
function instanceOfAuthMethods(value) {
|
|
1678
|
+
if (!("hasPassword" in value) || value["hasPassword"] === void 0) return false;
|
|
1679
|
+
if (!("oauthProviders" in value) || value["oauthProviders"] === void 0) return false;
|
|
1680
|
+
if (!("mfaEnabled" in value) || value["mfaEnabled"] === void 0) return false;
|
|
1681
|
+
if (!("emailVerified" in value) || value["emailVerified"] === void 0) return false;
|
|
1682
|
+
if (!("phoneVerified" in value) || value["phoneVerified"] === void 0) return false;
|
|
1683
|
+
if (!("passkeys" in value) || value["passkeys"] === void 0) return false;
|
|
1684
|
+
return true;
|
|
1685
|
+
}
|
|
1686
|
+
function AuthMethodsFromJSON(json) {
|
|
1687
|
+
return AuthMethodsFromJSONTyped(json, false);
|
|
1688
|
+
}
|
|
1689
|
+
function AuthMethodsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1690
|
+
if (json == null) {
|
|
1691
|
+
return json;
|
|
1692
|
+
}
|
|
1693
|
+
return {
|
|
1694
|
+
"hasPassword": json["has_password"],
|
|
1695
|
+
"oauthProviders": json["oauth_providers"],
|
|
1696
|
+
"mfaEnabled": json["mfa_enabled"],
|
|
1697
|
+
"emailVerified": json["email_verified"],
|
|
1698
|
+
"phoneVerified": json["phone_verified"],
|
|
1699
|
+
"passkeys": json["passkeys"]
|
|
1700
|
+
};
|
|
1701
|
+
}
|
|
1702
|
+
function AuthMethodsToJSON(json) {
|
|
1703
|
+
return AuthMethodsToJSONTyped(json, false);
|
|
1704
|
+
}
|
|
1705
|
+
function AuthMethodsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1706
|
+
if (value == null) {
|
|
1707
|
+
return value;
|
|
1708
|
+
}
|
|
1709
|
+
return {
|
|
1710
|
+
"has_password": value["hasPassword"],
|
|
1711
|
+
"oauth_providers": value["oauthProviders"],
|
|
1712
|
+
"mfa_enabled": value["mfaEnabled"],
|
|
1713
|
+
"email_verified": value["emailVerified"],
|
|
1714
|
+
"phone_verified": value["phoneVerified"],
|
|
1715
|
+
"passkeys": value["passkeys"]
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1601
1719
|
// src/src/models/AuthResult.ts
|
|
1602
1720
|
function instanceOfAuthResult(value) {
|
|
1603
1721
|
return true;
|
|
@@ -2087,6 +2205,93 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2087
2205
|
};
|
|
2088
2206
|
}
|
|
2089
2207
|
|
|
2208
|
+
// src/src/models/GetDomain200ResponseMeta.ts
|
|
2209
|
+
function instanceOfGetDomain200ResponseMeta(value) {
|
|
2210
|
+
return true;
|
|
2211
|
+
}
|
|
2212
|
+
function GetDomain200ResponseMetaFromJSON(json) {
|
|
2213
|
+
return GetDomain200ResponseMetaFromJSONTyped(json, false);
|
|
2214
|
+
}
|
|
2215
|
+
function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
2216
|
+
if (json == null) {
|
|
2217
|
+
return json;
|
|
2218
|
+
}
|
|
2219
|
+
return {
|
|
2220
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
function GetDomain200ResponseMetaToJSON(json) {
|
|
2224
|
+
return GetDomain200ResponseMetaToJSONTyped(json, false);
|
|
2225
|
+
}
|
|
2226
|
+
function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2227
|
+
if (value == null) {
|
|
2228
|
+
return value;
|
|
2229
|
+
}
|
|
2230
|
+
return {
|
|
2231
|
+
"request_id": value["requestId"]
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
// src/src/models/CloseWaaSEndpointCircuit200ResponseData.ts
|
|
2236
|
+
var CloseWaaSEndpointCircuit200ResponseDataStateEnum = {
|
|
2237
|
+
CLOSED: "closed"
|
|
2238
|
+
};
|
|
2239
|
+
function instanceOfCloseWaaSEndpointCircuit200ResponseData(value) {
|
|
2240
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
2241
|
+
return true;
|
|
2242
|
+
}
|
|
2243
|
+
function CloseWaaSEndpointCircuit200ResponseDataFromJSON(json) {
|
|
2244
|
+
return CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, false);
|
|
2245
|
+
}
|
|
2246
|
+
function CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
2247
|
+
if (json == null) {
|
|
2248
|
+
return json;
|
|
2249
|
+
}
|
|
2250
|
+
return {
|
|
2251
|
+
"state": json["state"]
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
function CloseWaaSEndpointCircuit200ResponseDataToJSON(json) {
|
|
2255
|
+
return CloseWaaSEndpointCircuit200ResponseDataToJSONTyped(json, false);
|
|
2256
|
+
}
|
|
2257
|
+
function CloseWaaSEndpointCircuit200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2258
|
+
if (value == null) {
|
|
2259
|
+
return value;
|
|
2260
|
+
}
|
|
2261
|
+
return {
|
|
2262
|
+
"state": value["state"]
|
|
2263
|
+
};
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
// src/src/models/CloseWaaSEndpointCircuit200Response.ts
|
|
2267
|
+
function instanceOfCloseWaaSEndpointCircuit200Response(value) {
|
|
2268
|
+
return true;
|
|
2269
|
+
}
|
|
2270
|
+
function CloseWaaSEndpointCircuit200ResponseFromJSON(json) {
|
|
2271
|
+
return CloseWaaSEndpointCircuit200ResponseFromJSONTyped(json, false);
|
|
2272
|
+
}
|
|
2273
|
+
function CloseWaaSEndpointCircuit200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2274
|
+
if (json == null) {
|
|
2275
|
+
return json;
|
|
2276
|
+
}
|
|
2277
|
+
return {
|
|
2278
|
+
"data": json["data"] == null ? void 0 : CloseWaaSEndpointCircuit200ResponseDataFromJSON(json["data"]),
|
|
2279
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
2280
|
+
};
|
|
2281
|
+
}
|
|
2282
|
+
function CloseWaaSEndpointCircuit200ResponseToJSON(json) {
|
|
2283
|
+
return CloseWaaSEndpointCircuit200ResponseToJSONTyped(json, false);
|
|
2284
|
+
}
|
|
2285
|
+
function CloseWaaSEndpointCircuit200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2286
|
+
if (value == null) {
|
|
2287
|
+
return value;
|
|
2288
|
+
}
|
|
2289
|
+
return {
|
|
2290
|
+
"data": CloseWaaSEndpointCircuit200ResponseDataToJSON(value["data"]),
|
|
2291
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2090
2295
|
// src/src/models/ConfirmEmailVerificationRequest.ts
|
|
2091
2296
|
function instanceOfConfirmEmailVerificationRequest(value) {
|
|
2092
2297
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -3351,33 +3556,6 @@ function CreateWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
3351
3556
|
};
|
|
3352
3557
|
}
|
|
3353
3558
|
|
|
3354
|
-
// src/src/models/GetDomain200ResponseMeta.ts
|
|
3355
|
-
function instanceOfGetDomain200ResponseMeta(value) {
|
|
3356
|
-
return true;
|
|
3357
|
-
}
|
|
3358
|
-
function GetDomain200ResponseMetaFromJSON(json) {
|
|
3359
|
-
return GetDomain200ResponseMetaFromJSONTyped(json, false);
|
|
3360
|
-
}
|
|
3361
|
-
function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
3362
|
-
if (json == null) {
|
|
3363
|
-
return json;
|
|
3364
|
-
}
|
|
3365
|
-
return {
|
|
3366
|
-
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
3367
|
-
};
|
|
3368
|
-
}
|
|
3369
|
-
function GetDomain200ResponseMetaToJSON(json) {
|
|
3370
|
-
return GetDomain200ResponseMetaToJSONTyped(json, false);
|
|
3371
|
-
}
|
|
3372
|
-
function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3373
|
-
if (value == null) {
|
|
3374
|
-
return value;
|
|
3375
|
-
}
|
|
3376
|
-
return {
|
|
3377
|
-
"request_id": value["requestId"]
|
|
3378
|
-
};
|
|
3379
|
-
}
|
|
3380
|
-
|
|
3381
3559
|
// src/src/models/DeleteDomainResponseData.ts
|
|
3382
3560
|
function instanceOfDeleteDomainResponseData(value) {
|
|
3383
3561
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
@@ -4946,171 +5124,332 @@ function GetDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4946
5124
|
};
|
|
4947
5125
|
}
|
|
4948
5126
|
|
|
4949
|
-
// src/src/models/
|
|
4950
|
-
|
|
4951
|
-
ACTIVE: "active",
|
|
4952
|
-
PAUSED: "paused",
|
|
4953
|
-
DISABLED: "disabled"
|
|
4954
|
-
};
|
|
4955
|
-
function instanceOfWaaSEndpoint(value) {
|
|
5127
|
+
// src/src/models/GetEndUserAuthMethods200Response.ts
|
|
5128
|
+
function instanceOfGetEndUserAuthMethods200Response(value) {
|
|
4956
5129
|
return true;
|
|
4957
5130
|
}
|
|
4958
|
-
function
|
|
4959
|
-
return
|
|
5131
|
+
function GetEndUserAuthMethods200ResponseFromJSON(json) {
|
|
5132
|
+
return GetEndUserAuthMethods200ResponseFromJSONTyped(json, false);
|
|
4960
5133
|
}
|
|
4961
|
-
function
|
|
5134
|
+
function GetEndUserAuthMethods200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4962
5135
|
if (json == null) {
|
|
4963
5136
|
return json;
|
|
4964
5137
|
}
|
|
4965
5138
|
return {
|
|
4966
|
-
"
|
|
4967
|
-
"
|
|
4968
|
-
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
4969
|
-
"url": json["url"] == null ? void 0 : json["url"],
|
|
4970
|
-
"events": json["events"] == null ? void 0 : json["events"],
|
|
4971
|
-
"status": json["status"] == null ? void 0 : json["status"],
|
|
4972
|
-
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
4973
|
-
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
5139
|
+
"data": json["data"] == null ? void 0 : AuthMethodsFromJSON(json["data"]),
|
|
5140
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
4974
5141
|
};
|
|
4975
5142
|
}
|
|
4976
|
-
function
|
|
4977
|
-
return
|
|
5143
|
+
function GetEndUserAuthMethods200ResponseToJSON(json) {
|
|
5144
|
+
return GetEndUserAuthMethods200ResponseToJSONTyped(json, false);
|
|
4978
5145
|
}
|
|
4979
|
-
function
|
|
5146
|
+
function GetEndUserAuthMethods200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4980
5147
|
if (value == null) {
|
|
4981
5148
|
return value;
|
|
4982
5149
|
}
|
|
4983
5150
|
return {
|
|
4984
|
-
"
|
|
4985
|
-
"
|
|
4986
|
-
"tenant_id": value["tenantId"],
|
|
4987
|
-
"url": value["url"],
|
|
4988
|
-
"events": value["events"],
|
|
4989
|
-
"status": value["status"],
|
|
4990
|
-
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
4991
|
-
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
5151
|
+
"data": AuthMethodsToJSON(value["data"]),
|
|
5152
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
4992
5153
|
};
|
|
4993
5154
|
}
|
|
4994
5155
|
|
|
4995
|
-
// src/src/models/
|
|
4996
|
-
function
|
|
5156
|
+
// src/src/models/GetEndUserById200Response.ts
|
|
5157
|
+
function instanceOfGetEndUserById200Response(value) {
|
|
4997
5158
|
return true;
|
|
4998
5159
|
}
|
|
4999
|
-
function
|
|
5000
|
-
return
|
|
5160
|
+
function GetEndUserById200ResponseFromJSON(json) {
|
|
5161
|
+
return GetEndUserById200ResponseFromJSONTyped(json, false);
|
|
5001
5162
|
}
|
|
5002
|
-
function
|
|
5163
|
+
function GetEndUserById200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5003
5164
|
if (json == null) {
|
|
5004
5165
|
return json;
|
|
5005
5166
|
}
|
|
5006
5167
|
return {
|
|
5007
|
-
"data": json["data"] == null ? void 0 :
|
|
5168
|
+
"data": json["data"] == null ? void 0 : AuthUserFromJSON(json["data"]),
|
|
5169
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5008
5170
|
};
|
|
5009
5171
|
}
|
|
5010
|
-
function
|
|
5011
|
-
return
|
|
5172
|
+
function GetEndUserById200ResponseToJSON(json) {
|
|
5173
|
+
return GetEndUserById200ResponseToJSONTyped(json, false);
|
|
5012
5174
|
}
|
|
5013
|
-
function
|
|
5175
|
+
function GetEndUserById200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5014
5176
|
if (value == null) {
|
|
5015
5177
|
return value;
|
|
5016
5178
|
}
|
|
5017
5179
|
return {
|
|
5018
|
-
"data":
|
|
5180
|
+
"data": AuthUserToJSON(value["data"]),
|
|
5181
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5019
5182
|
};
|
|
5020
5183
|
}
|
|
5021
5184
|
|
|
5022
|
-
// src/src/models/
|
|
5023
|
-
function
|
|
5185
|
+
// src/src/models/GetEndUserClaims200ResponseData.ts
|
|
5186
|
+
function instanceOfGetEndUserClaims200ResponseData(value) {
|
|
5024
5187
|
return true;
|
|
5025
5188
|
}
|
|
5026
|
-
function
|
|
5027
|
-
return
|
|
5189
|
+
function GetEndUserClaims200ResponseDataFromJSON(json) {
|
|
5190
|
+
return GetEndUserClaims200ResponseDataFromJSONTyped(json, false);
|
|
5028
5191
|
}
|
|
5029
|
-
function
|
|
5192
|
+
function GetEndUserClaims200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5030
5193
|
if (json == null) {
|
|
5031
5194
|
return json;
|
|
5032
5195
|
}
|
|
5033
5196
|
return {
|
|
5034
|
-
"
|
|
5035
|
-
"applicationsLimit": json["applications_limit"] == null ? void 0 : json["applications_limit"],
|
|
5036
|
-
"endpointsCount": json["endpoints_count"] == null ? void 0 : json["endpoints_count"],
|
|
5037
|
-
"endpointsLimit": json["endpoints_limit"] == null ? void 0 : json["endpoints_limit"],
|
|
5038
|
-
"eventsThisMonth": json["events_this_month"] == null ? void 0 : json["events_this_month"],
|
|
5039
|
-
"eventsLimit": json["events_limit"] == null ? void 0 : json["events_limit"]
|
|
5197
|
+
"claims": json["claims"] == null ? void 0 : json["claims"]
|
|
5040
5198
|
};
|
|
5041
5199
|
}
|
|
5042
|
-
function
|
|
5043
|
-
return
|
|
5200
|
+
function GetEndUserClaims200ResponseDataToJSON(json) {
|
|
5201
|
+
return GetEndUserClaims200ResponseDataToJSONTyped(json, false);
|
|
5044
5202
|
}
|
|
5045
|
-
function
|
|
5203
|
+
function GetEndUserClaims200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5046
5204
|
if (value == null) {
|
|
5047
5205
|
return value;
|
|
5048
5206
|
}
|
|
5049
5207
|
return {
|
|
5050
|
-
"
|
|
5051
|
-
"applications_limit": value["applicationsLimit"],
|
|
5052
|
-
"endpoints_count": value["endpointsCount"],
|
|
5053
|
-
"endpoints_limit": value["endpointsLimit"],
|
|
5054
|
-
"events_this_month": value["eventsThisMonth"],
|
|
5055
|
-
"events_limit": value["eventsLimit"]
|
|
5208
|
+
"claims": value["claims"]
|
|
5056
5209
|
};
|
|
5057
5210
|
}
|
|
5058
5211
|
|
|
5059
|
-
// src/src/models/
|
|
5060
|
-
function
|
|
5212
|
+
// src/src/models/GetEndUserClaims200Response.ts
|
|
5213
|
+
function instanceOfGetEndUserClaims200Response(value) {
|
|
5061
5214
|
return true;
|
|
5062
5215
|
}
|
|
5063
|
-
function
|
|
5064
|
-
return
|
|
5216
|
+
function GetEndUserClaims200ResponseFromJSON(json) {
|
|
5217
|
+
return GetEndUserClaims200ResponseFromJSONTyped(json, false);
|
|
5065
5218
|
}
|
|
5066
|
-
function
|
|
5219
|
+
function GetEndUserClaims200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5067
5220
|
if (json == null) {
|
|
5068
5221
|
return json;
|
|
5069
5222
|
}
|
|
5070
5223
|
return {
|
|
5071
|
-
"data": json["data"] == null ? void 0 :
|
|
5224
|
+
"data": json["data"] == null ? void 0 : GetEndUserClaims200ResponseDataFromJSON(json["data"]),
|
|
5225
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5072
5226
|
};
|
|
5073
5227
|
}
|
|
5074
|
-
function
|
|
5075
|
-
return
|
|
5228
|
+
function GetEndUserClaims200ResponseToJSON(json) {
|
|
5229
|
+
return GetEndUserClaims200ResponseToJSONTyped(json, false);
|
|
5076
5230
|
}
|
|
5077
|
-
function
|
|
5231
|
+
function GetEndUserClaims200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5078
5232
|
if (value == null) {
|
|
5079
5233
|
return value;
|
|
5080
5234
|
}
|
|
5081
5235
|
return {
|
|
5082
|
-
"data":
|
|
5236
|
+
"data": GetEndUserClaims200ResponseDataToJSON(value["data"]),
|
|
5237
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5083
5238
|
};
|
|
5084
5239
|
}
|
|
5085
5240
|
|
|
5086
|
-
// src/src/models/
|
|
5087
|
-
|
|
5088
|
-
LOW: "low",
|
|
5089
|
-
NORMAL: "normal",
|
|
5090
|
-
HIGH: "high",
|
|
5091
|
-
URGENT: "urgent"
|
|
5092
|
-
};
|
|
5093
|
-
function instanceOfInAppNotification(value) {
|
|
5241
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.ts
|
|
5242
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory(value) {
|
|
5094
5243
|
return true;
|
|
5095
5244
|
}
|
|
5096
|
-
function
|
|
5097
|
-
return
|
|
5245
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON(json) {
|
|
5246
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped(json, false);
|
|
5098
5247
|
}
|
|
5099
|
-
function
|
|
5248
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
5100
5249
|
if (json == null) {
|
|
5101
5250
|
return json;
|
|
5102
5251
|
}
|
|
5103
5252
|
return {
|
|
5104
5253
|
"id": json["id"] == null ? void 0 : json["id"],
|
|
5105
|
-
"
|
|
5106
|
-
"
|
|
5107
|
-
"
|
|
5108
|
-
"
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5254
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
5255
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
5256
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
5257
|
+
"allowUnsubscribe": json["allow_unsubscribe"] == null ? void 0 : json["allow_unsubscribe"]
|
|
5258
|
+
};
|
|
5259
|
+
}
|
|
5260
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON(json) {
|
|
5261
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped(json, false);
|
|
5262
|
+
}
|
|
5263
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5264
|
+
if (value == null) {
|
|
5265
|
+
return value;
|
|
5266
|
+
}
|
|
5267
|
+
return {
|
|
5268
|
+
"id": value["id"],
|
|
5269
|
+
"name": value["name"],
|
|
5270
|
+
"slug": value["slug"],
|
|
5271
|
+
"description": value["description"],
|
|
5272
|
+
"allow_unsubscribe": value["allowUnsubscribe"]
|
|
5273
|
+
};
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.ts
|
|
5277
|
+
var GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerChannelEnum = {
|
|
5278
|
+
EMAIL: "email",
|
|
5279
|
+
PUSH: "push",
|
|
5280
|
+
SMS: "sms",
|
|
5281
|
+
IN_APP: "in_app"
|
|
5282
|
+
};
|
|
5283
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner(value) {
|
|
5284
|
+
return true;
|
|
5285
|
+
}
|
|
5286
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON(json) {
|
|
5287
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped(json, false);
|
|
5288
|
+
}
|
|
5289
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5290
|
+
if (json == null) {
|
|
5291
|
+
return json;
|
|
5292
|
+
}
|
|
5293
|
+
return {
|
|
5294
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
5295
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"],
|
|
5296
|
+
"source": json["source"] == null ? void 0 : json["source"]
|
|
5297
|
+
};
|
|
5298
|
+
}
|
|
5299
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON(json) {
|
|
5300
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped(json, false);
|
|
5301
|
+
}
|
|
5302
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5303
|
+
if (value == null) {
|
|
5304
|
+
return value;
|
|
5305
|
+
}
|
|
5306
|
+
return {
|
|
5307
|
+
"channel": value["channel"],
|
|
5308
|
+
"enabled": value["enabled"],
|
|
5309
|
+
"source": value["source"]
|
|
5310
|
+
};
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.ts
|
|
5314
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInner(value) {
|
|
5315
|
+
return true;
|
|
5316
|
+
}
|
|
5317
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON(json) {
|
|
5318
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped(json, false);
|
|
5319
|
+
}
|
|
5320
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5321
|
+
if (json == null) {
|
|
5322
|
+
return json;
|
|
5323
|
+
}
|
|
5324
|
+
return {
|
|
5325
|
+
"category": json["category"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON(json["category"]),
|
|
5326
|
+
"channels": json["channels"] == null ? void 0 : json["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON)
|
|
5327
|
+
};
|
|
5328
|
+
}
|
|
5329
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON(json) {
|
|
5330
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped(json, false);
|
|
5331
|
+
}
|
|
5332
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5333
|
+
if (value == null) {
|
|
5334
|
+
return value;
|
|
5335
|
+
}
|
|
5336
|
+
return {
|
|
5337
|
+
"category": GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON(value["category"]),
|
|
5338
|
+
"channels": value["channels"] == null ? void 0 : value["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON)
|
|
5339
|
+
};
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobal.ts
|
|
5343
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataGlobal(value) {
|
|
5344
|
+
return true;
|
|
5345
|
+
}
|
|
5346
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON(json) {
|
|
5347
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped(json, false);
|
|
5348
|
+
}
|
|
5349
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped(json, ignoreDiscriminator) {
|
|
5350
|
+
if (json == null) {
|
|
5351
|
+
return json;
|
|
5352
|
+
}
|
|
5353
|
+
return {
|
|
5354
|
+
"channels": json["channels"] == null ? void 0 : json["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON)
|
|
5355
|
+
};
|
|
5356
|
+
}
|
|
5357
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalToJSON(json) {
|
|
5358
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped(json, false);
|
|
5359
|
+
}
|
|
5360
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5361
|
+
if (value == null) {
|
|
5362
|
+
return value;
|
|
5363
|
+
}
|
|
5364
|
+
return {
|
|
5365
|
+
"channels": value["channels"] == null ? void 0 : value["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON)
|
|
5366
|
+
};
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseData.ts
|
|
5370
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseData(value) {
|
|
5371
|
+
return true;
|
|
5372
|
+
}
|
|
5373
|
+
function GetSubscriberInboxPreferences200ResponseDataFromJSON(json) {
|
|
5374
|
+
return GetSubscriberInboxPreferences200ResponseDataFromJSONTyped(json, false);
|
|
5375
|
+
}
|
|
5376
|
+
function GetSubscriberInboxPreferences200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5377
|
+
if (json == null) {
|
|
5378
|
+
return json;
|
|
5379
|
+
}
|
|
5380
|
+
return {
|
|
5381
|
+
"global": json["global"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON(json["global"]),
|
|
5382
|
+
"categories": json["categories"] == null ? void 0 : json["categories"].map(GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON)
|
|
5383
|
+
};
|
|
5384
|
+
}
|
|
5385
|
+
function GetSubscriberInboxPreferences200ResponseDataToJSON(json) {
|
|
5386
|
+
return GetSubscriberInboxPreferences200ResponseDataToJSONTyped(json, false);
|
|
5387
|
+
}
|
|
5388
|
+
function GetSubscriberInboxPreferences200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5389
|
+
if (value == null) {
|
|
5390
|
+
return value;
|
|
5391
|
+
}
|
|
5392
|
+
return {
|
|
5393
|
+
"global": GetSubscriberInboxPreferences200ResponseDataGlobalToJSON(value["global"]),
|
|
5394
|
+
"categories": value["categories"] == null ? void 0 : value["categories"].map(GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON)
|
|
5395
|
+
};
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
// src/src/models/GetSubscriberInboxPreferences200Response.ts
|
|
5399
|
+
function instanceOfGetSubscriberInboxPreferences200Response(value) {
|
|
5400
|
+
return true;
|
|
5401
|
+
}
|
|
5402
|
+
function GetSubscriberInboxPreferences200ResponseFromJSON(json) {
|
|
5403
|
+
return GetSubscriberInboxPreferences200ResponseFromJSONTyped(json, false);
|
|
5404
|
+
}
|
|
5405
|
+
function GetSubscriberInboxPreferences200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5406
|
+
if (json == null) {
|
|
5407
|
+
return json;
|
|
5408
|
+
}
|
|
5409
|
+
return {
|
|
5410
|
+
"data": json["data"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataFromJSON(json["data"])
|
|
5411
|
+
};
|
|
5412
|
+
}
|
|
5413
|
+
function GetSubscriberInboxPreferences200ResponseToJSON(json) {
|
|
5414
|
+
return GetSubscriberInboxPreferences200ResponseToJSONTyped(json, false);
|
|
5415
|
+
}
|
|
5416
|
+
function GetSubscriberInboxPreferences200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5417
|
+
if (value == null) {
|
|
5418
|
+
return value;
|
|
5419
|
+
}
|
|
5420
|
+
return {
|
|
5421
|
+
"data": GetSubscriberInboxPreferences200ResponseDataToJSON(value["data"])
|
|
5422
|
+
};
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5425
|
+
// src/src/models/InAppNotification.ts
|
|
5426
|
+
var InAppNotificationPriorityEnum = {
|
|
5427
|
+
LOW: "low",
|
|
5428
|
+
NORMAL: "normal",
|
|
5429
|
+
HIGH: "high",
|
|
5430
|
+
URGENT: "urgent"
|
|
5431
|
+
};
|
|
5432
|
+
function instanceOfInAppNotification(value) {
|
|
5433
|
+
return true;
|
|
5434
|
+
}
|
|
5435
|
+
function InAppNotificationFromJSON(json) {
|
|
5436
|
+
return InAppNotificationFromJSONTyped(json, false);
|
|
5437
|
+
}
|
|
5438
|
+
function InAppNotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5439
|
+
if (json == null) {
|
|
5440
|
+
return json;
|
|
5441
|
+
}
|
|
5442
|
+
return {
|
|
5443
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5444
|
+
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
5445
|
+
"title": json["title"] == null ? void 0 : json["title"],
|
|
5446
|
+
"body": json["body"] == null ? void 0 : json["body"],
|
|
5447
|
+
"actionUrl": json["action_url"] == null ? void 0 : json["action_url"],
|
|
5448
|
+
"actionLabel": json["action_label"] == null ? void 0 : json["action_label"],
|
|
5449
|
+
"imageUrl": json["image_url"] == null ? void 0 : json["image_url"],
|
|
5450
|
+
"icon": json["icon"] == null ? void 0 : json["icon"],
|
|
5451
|
+
"category": json["category"] == null ? void 0 : json["category"],
|
|
5452
|
+
"priority": json["priority"] == null ? void 0 : json["priority"],
|
|
5114
5453
|
"data": json["data"] == null ? void 0 : json["data"],
|
|
5115
5454
|
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
5116
5455
|
"readAt": json["read_at"] == null ? void 0 : new Date(json["read_at"]),
|
|
@@ -5119,30 +5458,553 @@ function InAppNotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5119
5458
|
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
5120
5459
|
};
|
|
5121
5460
|
}
|
|
5122
|
-
function InAppNotificationToJSON(json) {
|
|
5123
|
-
return InAppNotificationToJSONTyped(json, false);
|
|
5461
|
+
function InAppNotificationToJSON(json) {
|
|
5462
|
+
return InAppNotificationToJSONTyped(json, false);
|
|
5463
|
+
}
|
|
5464
|
+
function InAppNotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5465
|
+
if (value == null) {
|
|
5466
|
+
return value;
|
|
5467
|
+
}
|
|
5468
|
+
return {
|
|
5469
|
+
"id": value["id"],
|
|
5470
|
+
"subscriber_id": value["subscriberId"],
|
|
5471
|
+
"title": value["title"],
|
|
5472
|
+
"body": value["body"],
|
|
5473
|
+
"action_url": value["actionUrl"],
|
|
5474
|
+
"action_label": value["actionLabel"],
|
|
5475
|
+
"image_url": value["imageUrl"],
|
|
5476
|
+
"icon": value["icon"],
|
|
5477
|
+
"category": value["category"],
|
|
5478
|
+
"priority": value["priority"],
|
|
5479
|
+
"data": value["data"],
|
|
5480
|
+
"tags": value["tags"],
|
|
5481
|
+
"read_at": value["readAt"] == null ? void 0 : value["readAt"].toISOString(),
|
|
5482
|
+
"archived_at": value["archivedAt"] == null ? void 0 : value["archivedAt"].toISOString(),
|
|
5483
|
+
"expires_at": value["expiresAt"] == null ? void 0 : value["expiresAt"].toISOString(),
|
|
5484
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
5485
|
+
};
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
// src/src/models/GetSubscriberNotification200Response.ts
|
|
5489
|
+
function instanceOfGetSubscriberNotification200Response(value) {
|
|
5490
|
+
return true;
|
|
5491
|
+
}
|
|
5492
|
+
function GetSubscriberNotification200ResponseFromJSON(json) {
|
|
5493
|
+
return GetSubscriberNotification200ResponseFromJSONTyped(json, false);
|
|
5494
|
+
}
|
|
5495
|
+
function GetSubscriberNotification200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5496
|
+
if (json == null) {
|
|
5497
|
+
return json;
|
|
5498
|
+
}
|
|
5499
|
+
return {
|
|
5500
|
+
"data": json["data"] == null ? void 0 : InAppNotificationFromJSON(json["data"])
|
|
5501
|
+
};
|
|
5502
|
+
}
|
|
5503
|
+
function GetSubscriberNotification200ResponseToJSON(json) {
|
|
5504
|
+
return GetSubscriberNotification200ResponseToJSONTyped(json, false);
|
|
5505
|
+
}
|
|
5506
|
+
function GetSubscriberNotification200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5507
|
+
if (value == null) {
|
|
5508
|
+
return value;
|
|
5509
|
+
}
|
|
5510
|
+
return {
|
|
5511
|
+
"data": InAppNotificationToJSON(value["data"])
|
|
5512
|
+
};
|
|
5513
|
+
}
|
|
5514
|
+
|
|
5515
|
+
// src/src/models/UnreadCountData.ts
|
|
5516
|
+
function instanceOfUnreadCountData(value) {
|
|
5517
|
+
return true;
|
|
5518
|
+
}
|
|
5519
|
+
function UnreadCountDataFromJSON(json) {
|
|
5520
|
+
return UnreadCountDataFromJSONTyped(json, false);
|
|
5521
|
+
}
|
|
5522
|
+
function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5523
|
+
if (json == null) {
|
|
5524
|
+
return json;
|
|
5525
|
+
}
|
|
5526
|
+
return {
|
|
5527
|
+
"unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
|
|
5528
|
+
};
|
|
5529
|
+
}
|
|
5530
|
+
function UnreadCountDataToJSON(json) {
|
|
5531
|
+
return UnreadCountDataToJSONTyped(json, false);
|
|
5532
|
+
}
|
|
5533
|
+
function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5534
|
+
if (value == null) {
|
|
5535
|
+
return value;
|
|
5536
|
+
}
|
|
5537
|
+
return {
|
|
5538
|
+
"unread_count": value["unreadCount"]
|
|
5539
|
+
};
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5542
|
+
// src/src/models/GetSubscriberUnreadCount200Response.ts
|
|
5543
|
+
function instanceOfGetSubscriberUnreadCount200Response(value) {
|
|
5544
|
+
return true;
|
|
5545
|
+
}
|
|
5546
|
+
function GetSubscriberUnreadCount200ResponseFromJSON(json) {
|
|
5547
|
+
return GetSubscriberUnreadCount200ResponseFromJSONTyped(json, false);
|
|
5548
|
+
}
|
|
5549
|
+
function GetSubscriberUnreadCount200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5550
|
+
if (json == null) {
|
|
5551
|
+
return json;
|
|
5552
|
+
}
|
|
5553
|
+
return {
|
|
5554
|
+
"data": json["data"] == null ? void 0 : UnreadCountDataFromJSON(json["data"])
|
|
5555
|
+
};
|
|
5556
|
+
}
|
|
5557
|
+
function GetSubscriberUnreadCount200ResponseToJSON(json) {
|
|
5558
|
+
return GetSubscriberUnreadCount200ResponseToJSONTyped(json, false);
|
|
5559
|
+
}
|
|
5560
|
+
function GetSubscriberUnreadCount200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5561
|
+
if (value == null) {
|
|
5562
|
+
return value;
|
|
5563
|
+
}
|
|
5564
|
+
return {
|
|
5565
|
+
"data": UnreadCountDataToJSON(value["data"])
|
|
5566
|
+
};
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5569
|
+
// src/src/models/WaaSDelivery.ts
|
|
5570
|
+
var WaaSDeliveryStatusEnum = {
|
|
5571
|
+
PENDING: "pending",
|
|
5572
|
+
DELIVERING: "delivering",
|
|
5573
|
+
DELIVERED: "delivered",
|
|
5574
|
+
FAILED: "failed",
|
|
5575
|
+
RETRYING: "retrying",
|
|
5576
|
+
EXHAUSTED: "exhausted"
|
|
5577
|
+
};
|
|
5578
|
+
function instanceOfWaaSDelivery(value) {
|
|
5579
|
+
return true;
|
|
5580
|
+
}
|
|
5581
|
+
function WaaSDeliveryFromJSON(json) {
|
|
5582
|
+
return WaaSDeliveryFromJSONTyped(json, false);
|
|
5583
|
+
}
|
|
5584
|
+
function WaaSDeliveryFromJSONTyped(json, ignoreDiscriminator) {
|
|
5585
|
+
if (json == null) {
|
|
5586
|
+
return json;
|
|
5587
|
+
}
|
|
5588
|
+
return {
|
|
5589
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5590
|
+
"applicationId": json["application_id"] == null ? void 0 : json["application_id"],
|
|
5591
|
+
"endpointId": json["endpoint_id"] == null ? void 0 : json["endpoint_id"],
|
|
5592
|
+
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
5593
|
+
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
5594
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
5595
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
5596
|
+
"attempts": json["attempts"] == null ? void 0 : json["attempts"],
|
|
5597
|
+
"lastAttemptAt": json["last_attempt_at"] == null ? void 0 : new Date(json["last_attempt_at"]),
|
|
5598
|
+
"nextRetryAt": json["next_retry_at"] == null ? void 0 : new Date(json["next_retry_at"]),
|
|
5599
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
5600
|
+
};
|
|
5601
|
+
}
|
|
5602
|
+
function WaaSDeliveryToJSON(json) {
|
|
5603
|
+
return WaaSDeliveryToJSONTyped(json, false);
|
|
5604
|
+
}
|
|
5605
|
+
function WaaSDeliveryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5606
|
+
if (value == null) {
|
|
5607
|
+
return value;
|
|
5608
|
+
}
|
|
5609
|
+
return {
|
|
5610
|
+
"id": value["id"],
|
|
5611
|
+
"application_id": value["applicationId"],
|
|
5612
|
+
"endpoint_id": value["endpointId"],
|
|
5613
|
+
"event_id": value["eventId"],
|
|
5614
|
+
"event_type": value["eventType"],
|
|
5615
|
+
"tenant_id": value["tenantId"],
|
|
5616
|
+
"status": value["status"],
|
|
5617
|
+
"attempts": value["attempts"],
|
|
5618
|
+
"last_attempt_at": value["lastAttemptAt"] == null ? void 0 : value["lastAttemptAt"].toISOString(),
|
|
5619
|
+
"next_retry_at": value["nextRetryAt"] == null ? void 0 : value["nextRetryAt"].toISOString(),
|
|
5620
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
5621
|
+
};
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
// src/src/models/GetWaaSDelivery200Response.ts
|
|
5625
|
+
function instanceOfGetWaaSDelivery200Response(value) {
|
|
5626
|
+
return true;
|
|
5627
|
+
}
|
|
5628
|
+
function GetWaaSDelivery200ResponseFromJSON(json) {
|
|
5629
|
+
return GetWaaSDelivery200ResponseFromJSONTyped(json, false);
|
|
5630
|
+
}
|
|
5631
|
+
function GetWaaSDelivery200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5632
|
+
if (json == null) {
|
|
5633
|
+
return json;
|
|
5634
|
+
}
|
|
5635
|
+
return {
|
|
5636
|
+
"data": json["data"] == null ? void 0 : WaaSDeliveryFromJSON(json["data"]),
|
|
5637
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5638
|
+
};
|
|
5639
|
+
}
|
|
5640
|
+
function GetWaaSDelivery200ResponseToJSON(json) {
|
|
5641
|
+
return GetWaaSDelivery200ResponseToJSONTyped(json, false);
|
|
5642
|
+
}
|
|
5643
|
+
function GetWaaSDelivery200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5644
|
+
if (value == null) {
|
|
5645
|
+
return value;
|
|
5646
|
+
}
|
|
5647
|
+
return {
|
|
5648
|
+
"data": WaaSDeliveryToJSON(value["data"]),
|
|
5649
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5650
|
+
};
|
|
5651
|
+
}
|
|
5652
|
+
|
|
5653
|
+
// src/src/models/WaaSEndpoint.ts
|
|
5654
|
+
var WaaSEndpointStatusEnum = {
|
|
5655
|
+
ACTIVE: "active",
|
|
5656
|
+
PAUSED: "paused",
|
|
5657
|
+
DISABLED: "disabled"
|
|
5658
|
+
};
|
|
5659
|
+
function instanceOfWaaSEndpoint(value) {
|
|
5660
|
+
return true;
|
|
5661
|
+
}
|
|
5662
|
+
function WaaSEndpointFromJSON(json) {
|
|
5663
|
+
return WaaSEndpointFromJSONTyped(json, false);
|
|
5664
|
+
}
|
|
5665
|
+
function WaaSEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
5666
|
+
if (json == null) {
|
|
5667
|
+
return json;
|
|
5668
|
+
}
|
|
5669
|
+
return {
|
|
5670
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5671
|
+
"applicationId": json["application_id"] == null ? void 0 : json["application_id"],
|
|
5672
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
5673
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
5674
|
+
"events": json["events"] == null ? void 0 : json["events"],
|
|
5675
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
5676
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
5677
|
+
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
5678
|
+
};
|
|
5679
|
+
}
|
|
5680
|
+
function WaaSEndpointToJSON(json) {
|
|
5681
|
+
return WaaSEndpointToJSONTyped(json, false);
|
|
5682
|
+
}
|
|
5683
|
+
function WaaSEndpointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5684
|
+
if (value == null) {
|
|
5685
|
+
return value;
|
|
5686
|
+
}
|
|
5687
|
+
return {
|
|
5688
|
+
"id": value["id"],
|
|
5689
|
+
"application_id": value["applicationId"],
|
|
5690
|
+
"tenant_id": value["tenantId"],
|
|
5691
|
+
"url": value["url"],
|
|
5692
|
+
"events": value["events"],
|
|
5693
|
+
"status": value["status"],
|
|
5694
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
5695
|
+
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
5696
|
+
};
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
// src/src/models/GetWaaSEndpoint200Response.ts
|
|
5700
|
+
function instanceOfGetWaaSEndpoint200Response(value) {
|
|
5701
|
+
return true;
|
|
5702
|
+
}
|
|
5703
|
+
function GetWaaSEndpoint200ResponseFromJSON(json) {
|
|
5704
|
+
return GetWaaSEndpoint200ResponseFromJSONTyped(json, false);
|
|
5705
|
+
}
|
|
5706
|
+
function GetWaaSEndpoint200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5707
|
+
if (json == null) {
|
|
5708
|
+
return json;
|
|
5709
|
+
}
|
|
5710
|
+
return {
|
|
5711
|
+
"data": json["data"] == null ? void 0 : WaaSEndpointFromJSON(json["data"])
|
|
5712
|
+
};
|
|
5713
|
+
}
|
|
5714
|
+
function GetWaaSEndpoint200ResponseToJSON(json) {
|
|
5715
|
+
return GetWaaSEndpoint200ResponseToJSONTyped(json, false);
|
|
5124
5716
|
}
|
|
5125
|
-
function
|
|
5717
|
+
function GetWaaSEndpoint200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5126
5718
|
if (value == null) {
|
|
5127
5719
|
return value;
|
|
5128
5720
|
}
|
|
5129
5721
|
return {
|
|
5130
|
-
"
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5722
|
+
"data": WaaSEndpointToJSON(value["data"])
|
|
5723
|
+
};
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
// src/src/models/GetWaaSEndpointCircuit200ResponseData.ts
|
|
5727
|
+
var GetWaaSEndpointCircuit200ResponseDataStateEnum = {
|
|
5728
|
+
CLOSED: "closed",
|
|
5729
|
+
OPEN: "open",
|
|
5730
|
+
HALF_OPEN: "half_open"
|
|
5731
|
+
};
|
|
5732
|
+
function instanceOfGetWaaSEndpointCircuit200ResponseData(value) {
|
|
5733
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
5734
|
+
if (!("failures" in value) || value["failures"] === void 0) return false;
|
|
5735
|
+
if (!("lastFailureAt" in value) || value["lastFailureAt"] === void 0) return false;
|
|
5736
|
+
if (!("openedAt" in value) || value["openedAt"] === void 0) return false;
|
|
5737
|
+
if (!("nextTestAt" in value) || value["nextTestAt"] === void 0) return false;
|
|
5738
|
+
if (!("recoveryAttempts" in value) || value["recoveryAttempts"] === void 0) return false;
|
|
5739
|
+
return true;
|
|
5740
|
+
}
|
|
5741
|
+
function GetWaaSEndpointCircuit200ResponseDataFromJSON(json) {
|
|
5742
|
+
return GetWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, false);
|
|
5743
|
+
}
|
|
5744
|
+
function GetWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5745
|
+
if (json == null) {
|
|
5746
|
+
return json;
|
|
5747
|
+
}
|
|
5748
|
+
return {
|
|
5749
|
+
"state": json["state"],
|
|
5750
|
+
"failures": json["failures"],
|
|
5751
|
+
"lastFailureAt": json["last_failure_at"] == null ? null : new Date(json["last_failure_at"]),
|
|
5752
|
+
"openedAt": json["opened_at"] == null ? null : new Date(json["opened_at"]),
|
|
5753
|
+
"nextTestAt": json["next_test_at"] == null ? null : new Date(json["next_test_at"]),
|
|
5754
|
+
"recoveryAttempts": json["recovery_attempts"]
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
function GetWaaSEndpointCircuit200ResponseDataToJSON(json) {
|
|
5758
|
+
return GetWaaSEndpointCircuit200ResponseDataToJSONTyped(json, false);
|
|
5759
|
+
}
|
|
5760
|
+
function GetWaaSEndpointCircuit200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5761
|
+
if (value == null) {
|
|
5762
|
+
return value;
|
|
5763
|
+
}
|
|
5764
|
+
return {
|
|
5765
|
+
"state": value["state"],
|
|
5766
|
+
"failures": value["failures"],
|
|
5767
|
+
"last_failure_at": value["lastFailureAt"] == null ? null : value["lastFailureAt"].toISOString(),
|
|
5768
|
+
"opened_at": value["openedAt"] == null ? null : value["openedAt"].toISOString(),
|
|
5769
|
+
"next_test_at": value["nextTestAt"] == null ? null : value["nextTestAt"].toISOString(),
|
|
5770
|
+
"recovery_attempts": value["recoveryAttempts"]
|
|
5771
|
+
};
|
|
5772
|
+
}
|
|
5773
|
+
|
|
5774
|
+
// src/src/models/GetWaaSEndpointCircuit200Response.ts
|
|
5775
|
+
function instanceOfGetWaaSEndpointCircuit200Response(value) {
|
|
5776
|
+
return true;
|
|
5777
|
+
}
|
|
5778
|
+
function GetWaaSEndpointCircuit200ResponseFromJSON(json) {
|
|
5779
|
+
return GetWaaSEndpointCircuit200ResponseFromJSONTyped(json, false);
|
|
5780
|
+
}
|
|
5781
|
+
function GetWaaSEndpointCircuit200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5782
|
+
if (json == null) {
|
|
5783
|
+
return json;
|
|
5784
|
+
}
|
|
5785
|
+
return {
|
|
5786
|
+
"data": json["data"] == null ? void 0 : GetWaaSEndpointCircuit200ResponseDataFromJSON(json["data"]),
|
|
5787
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5788
|
+
};
|
|
5789
|
+
}
|
|
5790
|
+
function GetWaaSEndpointCircuit200ResponseToJSON(json) {
|
|
5791
|
+
return GetWaaSEndpointCircuit200ResponseToJSONTyped(json, false);
|
|
5792
|
+
}
|
|
5793
|
+
function GetWaaSEndpointCircuit200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5794
|
+
if (value == null) {
|
|
5795
|
+
return value;
|
|
5796
|
+
}
|
|
5797
|
+
return {
|
|
5798
|
+
"data": GetWaaSEndpointCircuit200ResponseDataToJSON(value["data"]),
|
|
5799
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5800
|
+
};
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5803
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseDataWindowsValue.ts
|
|
5804
|
+
var GetWaaSEndpointMetrics200ResponseDataWindowsValueWindowEnum = {
|
|
5805
|
+
_1H: "1h",
|
|
5806
|
+
_24H: "24h",
|
|
5807
|
+
_7D: "7d",
|
|
5808
|
+
_30D: "30d"
|
|
5809
|
+
};
|
|
5810
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseDataWindowsValue(value) {
|
|
5811
|
+
return true;
|
|
5812
|
+
}
|
|
5813
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON(json) {
|
|
5814
|
+
return GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped(json, false);
|
|
5815
|
+
}
|
|
5816
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
5817
|
+
if (json == null) {
|
|
5818
|
+
return json;
|
|
5819
|
+
}
|
|
5820
|
+
return {
|
|
5821
|
+
"window": json["window"] == null ? void 0 : json["window"],
|
|
5822
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
5823
|
+
"successes": json["successes"] == null ? void 0 : json["successes"],
|
|
5824
|
+
"failures": json["failures"] == null ? void 0 : json["failures"],
|
|
5825
|
+
"successRate": json["success_rate"] == null ? void 0 : json["success_rate"],
|
|
5826
|
+
"avgLatencyMs": json["avg_latency_ms"] == null ? void 0 : json["avg_latency_ms"],
|
|
5827
|
+
"p95LatencyMs": json["p95_latency_ms"] == null ? void 0 : json["p95_latency_ms"]
|
|
5828
|
+
};
|
|
5829
|
+
}
|
|
5830
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON(json) {
|
|
5831
|
+
return GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped(json, false);
|
|
5832
|
+
}
|
|
5833
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5834
|
+
if (value == null) {
|
|
5835
|
+
return value;
|
|
5836
|
+
}
|
|
5837
|
+
return {
|
|
5838
|
+
"window": value["window"],
|
|
5839
|
+
"total": value["total"],
|
|
5840
|
+
"successes": value["successes"],
|
|
5841
|
+
"failures": value["failures"],
|
|
5842
|
+
"success_rate": value["successRate"],
|
|
5843
|
+
"avg_latency_ms": value["avgLatencyMs"],
|
|
5844
|
+
"p95_latency_ms": value["p95LatencyMs"]
|
|
5845
|
+
};
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseDataHealth.ts
|
|
5849
|
+
var GetWaaSEndpointMetrics200ResponseDataHealthStatusEnum = {
|
|
5850
|
+
HEALTHY: "healthy",
|
|
5851
|
+
DEGRADED: "degraded",
|
|
5852
|
+
UNHEALTHY: "unhealthy"
|
|
5853
|
+
};
|
|
5854
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseDataHealth(value) {
|
|
5855
|
+
if (!("score" in value) || value["score"] === void 0) return false;
|
|
5856
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
5857
|
+
return true;
|
|
5858
|
+
}
|
|
5859
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthFromJSON(json) {
|
|
5860
|
+
return GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped(json, false);
|
|
5861
|
+
}
|
|
5862
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped(json, ignoreDiscriminator) {
|
|
5863
|
+
if (json == null) {
|
|
5864
|
+
return json;
|
|
5865
|
+
}
|
|
5866
|
+
return {
|
|
5867
|
+
"score": json["score"],
|
|
5868
|
+
"status": json["status"]
|
|
5869
|
+
};
|
|
5870
|
+
}
|
|
5871
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthToJSON(json) {
|
|
5872
|
+
return GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped(json, false);
|
|
5873
|
+
}
|
|
5874
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5875
|
+
if (value == null) {
|
|
5876
|
+
return value;
|
|
5877
|
+
}
|
|
5878
|
+
return {
|
|
5879
|
+
"score": value["score"],
|
|
5880
|
+
"status": value["status"]
|
|
5881
|
+
};
|
|
5882
|
+
}
|
|
5883
|
+
|
|
5884
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseData.ts
|
|
5885
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseData(value) {
|
|
5886
|
+
if (!("webhookId" in value) || value["webhookId"] === void 0) return false;
|
|
5887
|
+
if (!("health" in value) || value["health"] === void 0) return false;
|
|
5888
|
+
if (!("windows" in value) || value["windows"] === void 0) return false;
|
|
5889
|
+
return true;
|
|
5890
|
+
}
|
|
5891
|
+
function GetWaaSEndpointMetrics200ResponseDataFromJSON(json) {
|
|
5892
|
+
return GetWaaSEndpointMetrics200ResponseDataFromJSONTyped(json, false);
|
|
5893
|
+
}
|
|
5894
|
+
function GetWaaSEndpointMetrics200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5895
|
+
if (json == null) {
|
|
5896
|
+
return json;
|
|
5897
|
+
}
|
|
5898
|
+
return {
|
|
5899
|
+
"webhookId": json["webhook_id"],
|
|
5900
|
+
"health": GetWaaSEndpointMetrics200ResponseDataHealthFromJSON(json["health"]),
|
|
5901
|
+
"windows": mapValues(json["windows"], GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON)
|
|
5902
|
+
};
|
|
5903
|
+
}
|
|
5904
|
+
function GetWaaSEndpointMetrics200ResponseDataToJSON(json) {
|
|
5905
|
+
return GetWaaSEndpointMetrics200ResponseDataToJSONTyped(json, false);
|
|
5906
|
+
}
|
|
5907
|
+
function GetWaaSEndpointMetrics200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5908
|
+
if (value == null) {
|
|
5909
|
+
return value;
|
|
5910
|
+
}
|
|
5911
|
+
return {
|
|
5912
|
+
"webhook_id": value["webhookId"],
|
|
5913
|
+
"health": GetWaaSEndpointMetrics200ResponseDataHealthToJSON(value["health"]),
|
|
5914
|
+
"windows": mapValues(value["windows"], GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON)
|
|
5915
|
+
};
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5918
|
+
// src/src/models/GetWaaSEndpointMetrics200Response.ts
|
|
5919
|
+
function instanceOfGetWaaSEndpointMetrics200Response(value) {
|
|
5920
|
+
return true;
|
|
5921
|
+
}
|
|
5922
|
+
function GetWaaSEndpointMetrics200ResponseFromJSON(json) {
|
|
5923
|
+
return GetWaaSEndpointMetrics200ResponseFromJSONTyped(json, false);
|
|
5924
|
+
}
|
|
5925
|
+
function GetWaaSEndpointMetrics200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5926
|
+
if (json == null) {
|
|
5927
|
+
return json;
|
|
5928
|
+
}
|
|
5929
|
+
return {
|
|
5930
|
+
"data": json["data"] == null ? void 0 : GetWaaSEndpointMetrics200ResponseDataFromJSON(json["data"]),
|
|
5931
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5932
|
+
};
|
|
5933
|
+
}
|
|
5934
|
+
function GetWaaSEndpointMetrics200ResponseToJSON(json) {
|
|
5935
|
+
return GetWaaSEndpointMetrics200ResponseToJSONTyped(json, false);
|
|
5936
|
+
}
|
|
5937
|
+
function GetWaaSEndpointMetrics200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5938
|
+
if (value == null) {
|
|
5939
|
+
return value;
|
|
5940
|
+
}
|
|
5941
|
+
return {
|
|
5942
|
+
"data": GetWaaSEndpointMetrics200ResponseDataToJSON(value["data"]),
|
|
5943
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5944
|
+
};
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5947
|
+
// src/src/models/WaaSUsageResponse.ts
|
|
5948
|
+
function instanceOfWaaSUsageResponse(value) {
|
|
5949
|
+
return true;
|
|
5950
|
+
}
|
|
5951
|
+
function WaaSUsageResponseFromJSON(json) {
|
|
5952
|
+
return WaaSUsageResponseFromJSONTyped(json, false);
|
|
5953
|
+
}
|
|
5954
|
+
function WaaSUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5955
|
+
if (json == null) {
|
|
5956
|
+
return json;
|
|
5957
|
+
}
|
|
5958
|
+
return {
|
|
5959
|
+
"applicationsCount": json["applications_count"] == null ? void 0 : json["applications_count"],
|
|
5960
|
+
"applicationsLimit": json["applications_limit"] == null ? void 0 : json["applications_limit"],
|
|
5961
|
+
"endpointsCount": json["endpoints_count"] == null ? void 0 : json["endpoints_count"],
|
|
5962
|
+
"endpointsLimit": json["endpoints_limit"] == null ? void 0 : json["endpoints_limit"],
|
|
5963
|
+
"eventsThisMonth": json["events_this_month"] == null ? void 0 : json["events_this_month"],
|
|
5964
|
+
"eventsLimit": json["events_limit"] == null ? void 0 : json["events_limit"]
|
|
5965
|
+
};
|
|
5966
|
+
}
|
|
5967
|
+
function WaaSUsageResponseToJSON(json) {
|
|
5968
|
+
return WaaSUsageResponseToJSONTyped(json, false);
|
|
5969
|
+
}
|
|
5970
|
+
function WaaSUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5971
|
+
if (value == null) {
|
|
5972
|
+
return value;
|
|
5973
|
+
}
|
|
5974
|
+
return {
|
|
5975
|
+
"applications_count": value["applicationsCount"],
|
|
5976
|
+
"applications_limit": value["applicationsLimit"],
|
|
5977
|
+
"endpoints_count": value["endpointsCount"],
|
|
5978
|
+
"endpoints_limit": value["endpointsLimit"],
|
|
5979
|
+
"events_this_month": value["eventsThisMonth"],
|
|
5980
|
+
"events_limit": value["eventsLimit"]
|
|
5981
|
+
};
|
|
5982
|
+
}
|
|
5983
|
+
|
|
5984
|
+
// src/src/models/GetWaaSUsage200Response.ts
|
|
5985
|
+
function instanceOfGetWaaSUsage200Response(value) {
|
|
5986
|
+
return true;
|
|
5987
|
+
}
|
|
5988
|
+
function GetWaaSUsage200ResponseFromJSON(json) {
|
|
5989
|
+
return GetWaaSUsage200ResponseFromJSONTyped(json, false);
|
|
5990
|
+
}
|
|
5991
|
+
function GetWaaSUsage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5992
|
+
if (json == null) {
|
|
5993
|
+
return json;
|
|
5994
|
+
}
|
|
5995
|
+
return {
|
|
5996
|
+
"data": json["data"] == null ? void 0 : WaaSUsageResponseFromJSON(json["data"])
|
|
5997
|
+
};
|
|
5998
|
+
}
|
|
5999
|
+
function GetWaaSUsage200ResponseToJSON(json) {
|
|
6000
|
+
return GetWaaSUsage200ResponseToJSONTyped(json, false);
|
|
6001
|
+
}
|
|
6002
|
+
function GetWaaSUsage200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6003
|
+
if (value == null) {
|
|
6004
|
+
return value;
|
|
6005
|
+
}
|
|
6006
|
+
return {
|
|
6007
|
+
"data": WaaSUsageResponseToJSON(value["data"])
|
|
5146
6008
|
};
|
|
5147
6009
|
}
|
|
5148
6010
|
|
|
@@ -5523,16 +6385,76 @@ function InboxNotificationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5523
6385
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
5524
6386
|
};
|
|
5525
6387
|
}
|
|
5526
|
-
function InboxNotificationResponseToJSON(json) {
|
|
5527
|
-
return InboxNotificationResponseToJSONTyped(json, false);
|
|
6388
|
+
function InboxNotificationResponseToJSON(json) {
|
|
6389
|
+
return InboxNotificationResponseToJSONTyped(json, false);
|
|
6390
|
+
}
|
|
6391
|
+
function InboxNotificationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6392
|
+
if (value == null) {
|
|
6393
|
+
return value;
|
|
6394
|
+
}
|
|
6395
|
+
return {
|
|
6396
|
+
"data": InAppNotificationToJSON(value["data"]),
|
|
6397
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
6398
|
+
};
|
|
6399
|
+
}
|
|
6400
|
+
|
|
6401
|
+
// src/src/models/InviteEndUser200ResponseData.ts
|
|
6402
|
+
function instanceOfInviteEndUser200ResponseData(value) {
|
|
6403
|
+
return true;
|
|
6404
|
+
}
|
|
6405
|
+
function InviteEndUser200ResponseDataFromJSON(json) {
|
|
6406
|
+
return InviteEndUser200ResponseDataFromJSONTyped(json, false);
|
|
6407
|
+
}
|
|
6408
|
+
function InviteEndUser200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6409
|
+
if (json == null) {
|
|
6410
|
+
return json;
|
|
6411
|
+
}
|
|
6412
|
+
return {
|
|
6413
|
+
"userId": json["user_id"] == null ? void 0 : json["user_id"],
|
|
6414
|
+
"created": json["created"] == null ? void 0 : json["created"],
|
|
6415
|
+
"linkSent": json["link_sent"] == null ? void 0 : json["link_sent"]
|
|
6416
|
+
};
|
|
6417
|
+
}
|
|
6418
|
+
function InviteEndUser200ResponseDataToJSON(json) {
|
|
6419
|
+
return InviteEndUser200ResponseDataToJSONTyped(json, false);
|
|
6420
|
+
}
|
|
6421
|
+
function InviteEndUser200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6422
|
+
if (value == null) {
|
|
6423
|
+
return value;
|
|
6424
|
+
}
|
|
6425
|
+
return {
|
|
6426
|
+
"user_id": value["userId"],
|
|
6427
|
+
"created": value["created"],
|
|
6428
|
+
"link_sent": value["linkSent"]
|
|
6429
|
+
};
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6432
|
+
// src/src/models/InviteEndUser200Response.ts
|
|
6433
|
+
function instanceOfInviteEndUser200Response(value) {
|
|
6434
|
+
return true;
|
|
6435
|
+
}
|
|
6436
|
+
function InviteEndUser200ResponseFromJSON(json) {
|
|
6437
|
+
return InviteEndUser200ResponseFromJSONTyped(json, false);
|
|
6438
|
+
}
|
|
6439
|
+
function InviteEndUser200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6440
|
+
if (json == null) {
|
|
6441
|
+
return json;
|
|
6442
|
+
}
|
|
6443
|
+
return {
|
|
6444
|
+
"data": json["data"] == null ? void 0 : InviteEndUser200ResponseDataFromJSON(json["data"]),
|
|
6445
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
6446
|
+
};
|
|
6447
|
+
}
|
|
6448
|
+
function InviteEndUser200ResponseToJSON(json) {
|
|
6449
|
+
return InviteEndUser200ResponseToJSONTyped(json, false);
|
|
5528
6450
|
}
|
|
5529
|
-
function
|
|
6451
|
+
function InviteEndUser200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5530
6452
|
if (value == null) {
|
|
5531
6453
|
return value;
|
|
5532
6454
|
}
|
|
5533
6455
|
return {
|
|
5534
|
-
"data":
|
|
5535
|
-
"meta":
|
|
6456
|
+
"data": InviteEndUser200ResponseDataToJSON(value["data"]),
|
|
6457
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5536
6458
|
};
|
|
5537
6459
|
}
|
|
5538
6460
|
|
|
@@ -5577,85 +6499,94 @@ function InviteEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5577
6499
|
};
|
|
5578
6500
|
}
|
|
5579
6501
|
|
|
5580
|
-
// src/src/models/
|
|
5581
|
-
function
|
|
6502
|
+
// src/src/models/ListEndUsers200ResponseMeta.ts
|
|
6503
|
+
function instanceOfListEndUsers200ResponseMeta(value) {
|
|
5582
6504
|
return true;
|
|
5583
6505
|
}
|
|
5584
|
-
function
|
|
5585
|
-
return
|
|
6506
|
+
function ListEndUsers200ResponseMetaFromJSON(json) {
|
|
6507
|
+
return ListEndUsers200ResponseMetaFromJSONTyped(json, false);
|
|
5586
6508
|
}
|
|
5587
|
-
function
|
|
6509
|
+
function ListEndUsers200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
5588
6510
|
if (json == null) {
|
|
5589
6511
|
return json;
|
|
5590
6512
|
}
|
|
5591
6513
|
return {
|
|
5592
|
-
"
|
|
6514
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
6515
|
+
"page": json["page"] == null ? void 0 : json["page"],
|
|
6516
|
+
"perPage": json["per_page"] == null ? void 0 : json["per_page"],
|
|
6517
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
6518
|
+
"totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
|
|
5593
6519
|
};
|
|
5594
6520
|
}
|
|
5595
|
-
function
|
|
5596
|
-
return
|
|
6521
|
+
function ListEndUsers200ResponseMetaToJSON(json) {
|
|
6522
|
+
return ListEndUsers200ResponseMetaToJSONTyped(json, false);
|
|
5597
6523
|
}
|
|
5598
|
-
function
|
|
6524
|
+
function ListEndUsers200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5599
6525
|
if (value == null) {
|
|
5600
6526
|
return value;
|
|
5601
6527
|
}
|
|
5602
6528
|
return {
|
|
5603
|
-
"
|
|
6529
|
+
"request_id": value["requestId"],
|
|
6530
|
+
"page": value["page"],
|
|
6531
|
+
"per_page": value["perPage"],
|
|
6532
|
+
"total": value["total"],
|
|
6533
|
+
"total_pages": value["totalPages"]
|
|
5604
6534
|
};
|
|
5605
6535
|
}
|
|
5606
6536
|
|
|
5607
|
-
// src/src/models/
|
|
5608
|
-
|
|
5609
|
-
PENDING: "pending",
|
|
5610
|
-
DELIVERING: "delivering",
|
|
5611
|
-
DELIVERED: "delivered",
|
|
5612
|
-
FAILED: "failed",
|
|
5613
|
-
RETRYING: "retrying",
|
|
5614
|
-
EXHAUSTED: "exhausted"
|
|
5615
|
-
};
|
|
5616
|
-
function instanceOfWaaSDelivery(value) {
|
|
6537
|
+
// src/src/models/ListEndUsers200Response.ts
|
|
6538
|
+
function instanceOfListEndUsers200Response(value) {
|
|
5617
6539
|
return true;
|
|
5618
6540
|
}
|
|
5619
|
-
function
|
|
5620
|
-
return
|
|
6541
|
+
function ListEndUsers200ResponseFromJSON(json) {
|
|
6542
|
+
return ListEndUsers200ResponseFromJSONTyped(json, false);
|
|
5621
6543
|
}
|
|
5622
|
-
function
|
|
6544
|
+
function ListEndUsers200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5623
6545
|
if (json == null) {
|
|
5624
6546
|
return json;
|
|
5625
6547
|
}
|
|
5626
6548
|
return {
|
|
5627
|
-
"
|
|
5628
|
-
"
|
|
5629
|
-
"endpointId": json["endpoint_id"] == null ? void 0 : json["endpoint_id"],
|
|
5630
|
-
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
5631
|
-
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
5632
|
-
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
5633
|
-
"status": json["status"] == null ? void 0 : json["status"],
|
|
5634
|
-
"attempts": json["attempts"] == null ? void 0 : json["attempts"],
|
|
5635
|
-
"lastAttemptAt": json["last_attempt_at"] == null ? void 0 : new Date(json["last_attempt_at"]),
|
|
5636
|
-
"nextRetryAt": json["next_retry_at"] == null ? void 0 : new Date(json["next_retry_at"]),
|
|
5637
|
-
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
6549
|
+
"data": json["data"] == null ? void 0 : json["data"].map(AuthUserFromJSON),
|
|
6550
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
5638
6551
|
};
|
|
5639
6552
|
}
|
|
5640
|
-
function
|
|
5641
|
-
return
|
|
6553
|
+
function ListEndUsers200ResponseToJSON(json) {
|
|
6554
|
+
return ListEndUsers200ResponseToJSONTyped(json, false);
|
|
5642
6555
|
}
|
|
5643
|
-
function
|
|
6556
|
+
function ListEndUsers200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5644
6557
|
if (value == null) {
|
|
5645
6558
|
return value;
|
|
5646
6559
|
}
|
|
5647
6560
|
return {
|
|
5648
|
-
"
|
|
5649
|
-
"
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
6561
|
+
"data": value["data"] == null ? void 0 : value["data"].map(AuthUserToJSON),
|
|
6562
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
6563
|
+
};
|
|
6564
|
+
}
|
|
6565
|
+
|
|
6566
|
+
// src/src/models/ListWaaSApplications200Response.ts
|
|
6567
|
+
function instanceOfListWaaSApplications200Response(value) {
|
|
6568
|
+
return true;
|
|
6569
|
+
}
|
|
6570
|
+
function ListWaaSApplications200ResponseFromJSON(json) {
|
|
6571
|
+
return ListWaaSApplications200ResponseFromJSONTyped(json, false);
|
|
6572
|
+
}
|
|
6573
|
+
function ListWaaSApplications200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6574
|
+
if (json == null) {
|
|
6575
|
+
return json;
|
|
6576
|
+
}
|
|
6577
|
+
return {
|
|
6578
|
+
"data": json["data"] == null ? void 0 : json["data"].map(WaaSApplicationFromJSON)
|
|
6579
|
+
};
|
|
6580
|
+
}
|
|
6581
|
+
function ListWaaSApplications200ResponseToJSON(json) {
|
|
6582
|
+
return ListWaaSApplications200ResponseToJSONTyped(json, false);
|
|
6583
|
+
}
|
|
6584
|
+
function ListWaaSApplications200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6585
|
+
if (value == null) {
|
|
6586
|
+
return value;
|
|
6587
|
+
}
|
|
6588
|
+
return {
|
|
6589
|
+
"data": value["data"] == null ? void 0 : value["data"].map(WaaSApplicationToJSON)
|
|
5659
6590
|
};
|
|
5660
6591
|
}
|
|
5661
6592
|
|
|
@@ -5740,41 +6671,6 @@ function ListWaaSEventTypes200ResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5740
6671
|
};
|
|
5741
6672
|
}
|
|
5742
6673
|
|
|
5743
|
-
// src/src/models/ListWorkflowExecutions200ResponseMeta.ts
|
|
5744
|
-
function instanceOfListWorkflowExecutions200ResponseMeta(value) {
|
|
5745
|
-
return true;
|
|
5746
|
-
}
|
|
5747
|
-
function ListWorkflowExecutions200ResponseMetaFromJSON(json) {
|
|
5748
|
-
return ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, false);
|
|
5749
|
-
}
|
|
5750
|
-
function ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
5751
|
-
if (json == null) {
|
|
5752
|
-
return json;
|
|
5753
|
-
}
|
|
5754
|
-
return {
|
|
5755
|
-
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
5756
|
-
"page": json["page"] == null ? void 0 : json["page"],
|
|
5757
|
-
"perPage": json["per_page"] == null ? void 0 : json["per_page"],
|
|
5758
|
-
"total": json["total"] == null ? void 0 : json["total"],
|
|
5759
|
-
"totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
|
|
5760
|
-
};
|
|
5761
|
-
}
|
|
5762
|
-
function ListWorkflowExecutions200ResponseMetaToJSON(json) {
|
|
5763
|
-
return ListWorkflowExecutions200ResponseMetaToJSONTyped(json, false);
|
|
5764
|
-
}
|
|
5765
|
-
function ListWorkflowExecutions200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5766
|
-
if (value == null) {
|
|
5767
|
-
return value;
|
|
5768
|
-
}
|
|
5769
|
-
return {
|
|
5770
|
-
"request_id": value["requestId"],
|
|
5771
|
-
"page": value["page"],
|
|
5772
|
-
"per_page": value["perPage"],
|
|
5773
|
-
"total": value["total"],
|
|
5774
|
-
"total_pages": value["totalPages"]
|
|
5775
|
-
};
|
|
5776
|
-
}
|
|
5777
|
-
|
|
5778
6674
|
// src/src/models/ListWorkflowExecutions200Response.ts
|
|
5779
6675
|
function instanceOfListWorkflowExecutions200Response(value) {
|
|
5780
6676
|
return true;
|
|
@@ -5788,7 +6684,7 @@ function ListWorkflowExecutions200ResponseFromJSONTyped(json, ignoreDiscriminato
|
|
|
5788
6684
|
}
|
|
5789
6685
|
return {
|
|
5790
6686
|
"data": json["data"] == null ? void 0 : json["data"].map(WorkflowExecutionFromJSON),
|
|
5791
|
-
"meta": json["meta"] == null ? void 0 :
|
|
6687
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
5792
6688
|
};
|
|
5793
6689
|
}
|
|
5794
6690
|
function ListWorkflowExecutions200ResponseToJSON(json) {
|
|
@@ -5800,7 +6696,7 @@ function ListWorkflowExecutions200ResponseToJSONTyped(value, ignoreDiscriminator
|
|
|
5800
6696
|
}
|
|
5801
6697
|
return {
|
|
5802
6698
|
"data": value["data"] == null ? void 0 : value["data"].map(WorkflowExecutionToJSON),
|
|
5803
|
-
"meta":
|
|
6699
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
5804
6700
|
};
|
|
5805
6701
|
}
|
|
5806
6702
|
|
|
@@ -6114,6 +7010,33 @@ function MarkAllReadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6114
7010
|
};
|
|
6115
7011
|
}
|
|
6116
7012
|
|
|
7013
|
+
// src/src/models/MarkAllSubscriberNotificationsRead200Response.ts
|
|
7014
|
+
function instanceOfMarkAllSubscriberNotificationsRead200Response(value) {
|
|
7015
|
+
return true;
|
|
7016
|
+
}
|
|
7017
|
+
function MarkAllSubscriberNotificationsRead200ResponseFromJSON(json) {
|
|
7018
|
+
return MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped(json, false);
|
|
7019
|
+
}
|
|
7020
|
+
function MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7021
|
+
if (json == null) {
|
|
7022
|
+
return json;
|
|
7023
|
+
}
|
|
7024
|
+
return {
|
|
7025
|
+
"data": json["data"] == null ? void 0 : MarkAllReadDataFromJSON(json["data"])
|
|
7026
|
+
};
|
|
7027
|
+
}
|
|
7028
|
+
function MarkAllSubscriberNotificationsRead200ResponseToJSON(json) {
|
|
7029
|
+
return MarkAllSubscriberNotificationsRead200ResponseToJSONTyped(json, false);
|
|
7030
|
+
}
|
|
7031
|
+
function MarkAllSubscriberNotificationsRead200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7032
|
+
if (value == null) {
|
|
7033
|
+
return value;
|
|
7034
|
+
}
|
|
7035
|
+
return {
|
|
7036
|
+
"data": MarkAllReadDataToJSON(value["data"])
|
|
7037
|
+
};
|
|
7038
|
+
}
|
|
7039
|
+
|
|
6117
7040
|
// src/src/models/MarkAllSubscriberNotificationsReadRequest.ts
|
|
6118
7041
|
function instanceOfMarkAllSubscriberNotificationsReadRequest(value) {
|
|
6119
7042
|
return true;
|
|
@@ -9227,6 +10150,63 @@ function RevokeSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9227
10150
|
};
|
|
9228
10151
|
}
|
|
9229
10152
|
|
|
10153
|
+
// src/src/models/RotateWaaSEndpointSecret200ResponseData.ts
|
|
10154
|
+
function instanceOfRotateWaaSEndpointSecret200ResponseData(value) {
|
|
10155
|
+
if (!("secret" in value) || value["secret"] === void 0) return false;
|
|
10156
|
+
return true;
|
|
10157
|
+
}
|
|
10158
|
+
function RotateWaaSEndpointSecret200ResponseDataFromJSON(json) {
|
|
10159
|
+
return RotateWaaSEndpointSecret200ResponseDataFromJSONTyped(json, false);
|
|
10160
|
+
}
|
|
10161
|
+
function RotateWaaSEndpointSecret200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
10162
|
+
if (json == null) {
|
|
10163
|
+
return json;
|
|
10164
|
+
}
|
|
10165
|
+
return {
|
|
10166
|
+
"secret": json["secret"]
|
|
10167
|
+
};
|
|
10168
|
+
}
|
|
10169
|
+
function RotateWaaSEndpointSecret200ResponseDataToJSON(json) {
|
|
10170
|
+
return RotateWaaSEndpointSecret200ResponseDataToJSONTyped(json, false);
|
|
10171
|
+
}
|
|
10172
|
+
function RotateWaaSEndpointSecret200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10173
|
+
if (value == null) {
|
|
10174
|
+
return value;
|
|
10175
|
+
}
|
|
10176
|
+
return {
|
|
10177
|
+
"secret": value["secret"]
|
|
10178
|
+
};
|
|
10179
|
+
}
|
|
10180
|
+
|
|
10181
|
+
// src/src/models/RotateWaaSEndpointSecret200Response.ts
|
|
10182
|
+
function instanceOfRotateWaaSEndpointSecret200Response(value) {
|
|
10183
|
+
return true;
|
|
10184
|
+
}
|
|
10185
|
+
function RotateWaaSEndpointSecret200ResponseFromJSON(json) {
|
|
10186
|
+
return RotateWaaSEndpointSecret200ResponseFromJSONTyped(json, false);
|
|
10187
|
+
}
|
|
10188
|
+
function RotateWaaSEndpointSecret200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10189
|
+
if (json == null) {
|
|
10190
|
+
return json;
|
|
10191
|
+
}
|
|
10192
|
+
return {
|
|
10193
|
+
"data": json["data"] == null ? void 0 : RotateWaaSEndpointSecret200ResponseDataFromJSON(json["data"]),
|
|
10194
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
10195
|
+
};
|
|
10196
|
+
}
|
|
10197
|
+
function RotateWaaSEndpointSecret200ResponseToJSON(json) {
|
|
10198
|
+
return RotateWaaSEndpointSecret200ResponseToJSONTyped(json, false);
|
|
10199
|
+
}
|
|
10200
|
+
function RotateWaaSEndpointSecret200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10201
|
+
if (value == null) {
|
|
10202
|
+
return value;
|
|
10203
|
+
}
|
|
10204
|
+
return {
|
|
10205
|
+
"data": RotateWaaSEndpointSecret200ResponseDataToJSON(value["data"]),
|
|
10206
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
10207
|
+
};
|
|
10208
|
+
}
|
|
10209
|
+
|
|
9230
10210
|
// src/src/models/SendBatchEmailRequest.ts
|
|
9231
10211
|
function instanceOfSendBatchEmailRequest(value) {
|
|
9232
10212
|
if (!("from" in value) || value["from"] === void 0) return false;
|
|
@@ -10417,49 +11397,154 @@ function SendSmsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10417
11397
|
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
10418
11398
|
};
|
|
10419
11399
|
}
|
|
10420
|
-
function SendSmsRequestToJSON(json) {
|
|
10421
|
-
return SendSmsRequestToJSONTyped(json, false);
|
|
11400
|
+
function SendSmsRequestToJSON(json) {
|
|
11401
|
+
return SendSmsRequestToJSONTyped(json, false);
|
|
11402
|
+
}
|
|
11403
|
+
function SendSmsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11404
|
+
if (value == null) {
|
|
11405
|
+
return value;
|
|
11406
|
+
}
|
|
11407
|
+
return {
|
|
11408
|
+
"to": value["to"],
|
|
11409
|
+
"from": value["from"],
|
|
11410
|
+
"body": value["body"],
|
|
11411
|
+
"subscriber_id": value["subscriberId"],
|
|
11412
|
+
"scheduled_at": value["scheduledAt"] == null ? void 0 : value["scheduledAt"].toISOString(),
|
|
11413
|
+
"metadata": value["metadata"]
|
|
11414
|
+
};
|
|
11415
|
+
}
|
|
11416
|
+
|
|
11417
|
+
// src/src/models/SendSmsResponse.ts
|
|
11418
|
+
function instanceOfSendSmsResponse(value) {
|
|
11419
|
+
return true;
|
|
11420
|
+
}
|
|
11421
|
+
function SendSmsResponseFromJSON(json) {
|
|
11422
|
+
return SendSmsResponseFromJSONTyped(json, false);
|
|
11423
|
+
}
|
|
11424
|
+
function SendSmsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11425
|
+
if (json == null) {
|
|
11426
|
+
return json;
|
|
11427
|
+
}
|
|
11428
|
+
return {
|
|
11429
|
+
"data": json["data"] == null ? void 0 : SendSmsDataFromJSON(json["data"]),
|
|
11430
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
11431
|
+
};
|
|
11432
|
+
}
|
|
11433
|
+
function SendSmsResponseToJSON(json) {
|
|
11434
|
+
return SendSmsResponseToJSONTyped(json, false);
|
|
11435
|
+
}
|
|
11436
|
+
function SendSmsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11437
|
+
if (value == null) {
|
|
11438
|
+
return value;
|
|
11439
|
+
}
|
|
11440
|
+
return {
|
|
11441
|
+
"data": SendSmsDataToJSON(value["data"]),
|
|
11442
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
11443
|
+
};
|
|
11444
|
+
}
|
|
11445
|
+
|
|
11446
|
+
// src/src/models/SendTemplateTestEmail202ResponseData.ts
|
|
11447
|
+
function instanceOfSendTemplateTestEmail202ResponseData(value) {
|
|
11448
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
11449
|
+
if (!("messageId" in value) || value["messageId"] === void 0) return false;
|
|
11450
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
11451
|
+
if (!("from" in value) || value["from"] === void 0) return false;
|
|
11452
|
+
if (!("subject" in value) || value["subject"] === void 0) return false;
|
|
11453
|
+
if (!("templateId" in value) || value["templateId"] === void 0) return false;
|
|
11454
|
+
if (!("templateName" in value) || value["templateName"] === void 0) return false;
|
|
11455
|
+
return true;
|
|
11456
|
+
}
|
|
11457
|
+
function SendTemplateTestEmail202ResponseDataFromJSON(json) {
|
|
11458
|
+
return SendTemplateTestEmail202ResponseDataFromJSONTyped(json, false);
|
|
11459
|
+
}
|
|
11460
|
+
function SendTemplateTestEmail202ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
11461
|
+
if (json == null) {
|
|
11462
|
+
return json;
|
|
11463
|
+
}
|
|
11464
|
+
return {
|
|
11465
|
+
"message": json["message"],
|
|
11466
|
+
"messageId": json["message_id"],
|
|
11467
|
+
"to": json["to"],
|
|
11468
|
+
"from": json["from"],
|
|
11469
|
+
"subject": json["subject"],
|
|
11470
|
+
"templateId": json["template_id"],
|
|
11471
|
+
"templateName": json["template_name"]
|
|
11472
|
+
};
|
|
11473
|
+
}
|
|
11474
|
+
function SendTemplateTestEmail202ResponseDataToJSON(json) {
|
|
11475
|
+
return SendTemplateTestEmail202ResponseDataToJSONTyped(json, false);
|
|
11476
|
+
}
|
|
11477
|
+
function SendTemplateTestEmail202ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11478
|
+
if (value == null) {
|
|
11479
|
+
return value;
|
|
11480
|
+
}
|
|
11481
|
+
return {
|
|
11482
|
+
"message": value["message"],
|
|
11483
|
+
"message_id": value["messageId"],
|
|
11484
|
+
"to": value["to"],
|
|
11485
|
+
"from": value["from"],
|
|
11486
|
+
"subject": value["subject"],
|
|
11487
|
+
"template_id": value["templateId"],
|
|
11488
|
+
"template_name": value["templateName"]
|
|
11489
|
+
};
|
|
11490
|
+
}
|
|
11491
|
+
|
|
11492
|
+
// src/src/models/SendTemplateTestEmail202ResponseMeta.ts
|
|
11493
|
+
function instanceOfSendTemplateTestEmail202ResponseMeta(value) {
|
|
11494
|
+
if (!("requestId" in value) || value["requestId"] === void 0) return false;
|
|
11495
|
+
return true;
|
|
11496
|
+
}
|
|
11497
|
+
function SendTemplateTestEmail202ResponseMetaFromJSON(json) {
|
|
11498
|
+
return SendTemplateTestEmail202ResponseMetaFromJSONTyped(json, false);
|
|
11499
|
+
}
|
|
11500
|
+
function SendTemplateTestEmail202ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
11501
|
+
if (json == null) {
|
|
11502
|
+
return json;
|
|
11503
|
+
}
|
|
11504
|
+
return {
|
|
11505
|
+
"requestId": json["request_id"]
|
|
11506
|
+
};
|
|
11507
|
+
}
|
|
11508
|
+
function SendTemplateTestEmail202ResponseMetaToJSON(json) {
|
|
11509
|
+
return SendTemplateTestEmail202ResponseMetaToJSONTyped(json, false);
|
|
10422
11510
|
}
|
|
10423
|
-
function
|
|
11511
|
+
function SendTemplateTestEmail202ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10424
11512
|
if (value == null) {
|
|
10425
11513
|
return value;
|
|
10426
11514
|
}
|
|
10427
11515
|
return {
|
|
10428
|
-
"
|
|
10429
|
-
"from": value["from"],
|
|
10430
|
-
"body": value["body"],
|
|
10431
|
-
"subscriber_id": value["subscriberId"],
|
|
10432
|
-
"scheduled_at": value["scheduledAt"] == null ? void 0 : value["scheduledAt"].toISOString(),
|
|
10433
|
-
"metadata": value["metadata"]
|
|
11516
|
+
"request_id": value["requestId"]
|
|
10434
11517
|
};
|
|
10435
11518
|
}
|
|
10436
11519
|
|
|
10437
|
-
// src/src/models/
|
|
10438
|
-
function
|
|
11520
|
+
// src/src/models/SendTemplateTestEmail202Response.ts
|
|
11521
|
+
function instanceOfSendTemplateTestEmail202Response(value) {
|
|
11522
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
11523
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
10439
11524
|
return true;
|
|
10440
11525
|
}
|
|
10441
|
-
function
|
|
10442
|
-
return
|
|
11526
|
+
function SendTemplateTestEmail202ResponseFromJSON(json) {
|
|
11527
|
+
return SendTemplateTestEmail202ResponseFromJSONTyped(json, false);
|
|
10443
11528
|
}
|
|
10444
|
-
function
|
|
11529
|
+
function SendTemplateTestEmail202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10445
11530
|
if (json == null) {
|
|
10446
11531
|
return json;
|
|
10447
11532
|
}
|
|
10448
11533
|
return {
|
|
10449
|
-
"data":
|
|
10450
|
-
"meta":
|
|
11534
|
+
"data": SendTemplateTestEmail202ResponseDataFromJSON(json["data"]),
|
|
11535
|
+
"meta": SendTemplateTestEmail202ResponseMetaFromJSON(json["meta"])
|
|
10451
11536
|
};
|
|
10452
11537
|
}
|
|
10453
|
-
function
|
|
10454
|
-
return
|
|
11538
|
+
function SendTemplateTestEmail202ResponseToJSON(json) {
|
|
11539
|
+
return SendTemplateTestEmail202ResponseToJSONTyped(json, false);
|
|
10455
11540
|
}
|
|
10456
|
-
function
|
|
11541
|
+
function SendTemplateTestEmail202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10457
11542
|
if (value == null) {
|
|
10458
11543
|
return value;
|
|
10459
11544
|
}
|
|
10460
11545
|
return {
|
|
10461
|
-
"data":
|
|
10462
|
-
"meta":
|
|
11546
|
+
"data": SendTemplateTestEmail202ResponseDataToJSON(value["data"]),
|
|
11547
|
+
"meta": SendTemplateTestEmail202ResponseMetaToJSON(value["meta"])
|
|
10463
11548
|
};
|
|
10464
11549
|
}
|
|
10465
11550
|
|
|
@@ -11462,7 +12547,7 @@ function SmsListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11462
12547
|
}
|
|
11463
12548
|
return {
|
|
11464
12549
|
"data": json["data"] == null ? void 0 : json["data"].map(SmsMessageFromJSON),
|
|
11465
|
-
"meta": json["meta"] == null ? void 0 :
|
|
12550
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
11466
12551
|
};
|
|
11467
12552
|
}
|
|
11468
12553
|
function SmsListResponseToJSON(json) {
|
|
@@ -11474,7 +12559,7 @@ function SmsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11474
12559
|
}
|
|
11475
12560
|
return {
|
|
11476
12561
|
"data": value["data"] == null ? void 0 : value["data"].map(SmsMessageToJSON),
|
|
11477
|
-
"meta":
|
|
12562
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
11478
12563
|
};
|
|
11479
12564
|
}
|
|
11480
12565
|
|
|
@@ -12441,33 +13526,6 @@ function TriggerWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
12441
13526
|
};
|
|
12442
13527
|
}
|
|
12443
13528
|
|
|
12444
|
-
// src/src/models/UnreadCountData.ts
|
|
12445
|
-
function instanceOfUnreadCountData(value) {
|
|
12446
|
-
return true;
|
|
12447
|
-
}
|
|
12448
|
-
function UnreadCountDataFromJSON(json) {
|
|
12449
|
-
return UnreadCountDataFromJSONTyped(json, false);
|
|
12450
|
-
}
|
|
12451
|
-
function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12452
|
-
if (json == null) {
|
|
12453
|
-
return json;
|
|
12454
|
-
}
|
|
12455
|
-
return {
|
|
12456
|
-
"unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
|
|
12457
|
-
};
|
|
12458
|
-
}
|
|
12459
|
-
function UnreadCountDataToJSON(json) {
|
|
12460
|
-
return UnreadCountDataToJSONTyped(json, false);
|
|
12461
|
-
}
|
|
12462
|
-
function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12463
|
-
if (value == null) {
|
|
12464
|
-
return value;
|
|
12465
|
-
}
|
|
12466
|
-
return {
|
|
12467
|
-
"unread_count": value["unreadCount"]
|
|
12468
|
-
};
|
|
12469
|
-
}
|
|
12470
|
-
|
|
12471
13529
|
// src/src/models/UnreadCountResponse.ts
|
|
12472
13530
|
function instanceOfUnreadCountResponse(value) {
|
|
12473
13531
|
return true;
|
|
@@ -12791,6 +13849,101 @@ function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
12791
13849
|
};
|
|
12792
13850
|
}
|
|
12793
13851
|
|
|
13852
|
+
// src/src/models/UpdateSubscriberPreferences200ResponseDataPreferencesInner.ts
|
|
13853
|
+
var UpdateSubscriberPreferences200ResponseDataPreferencesInnerChannelEnum = {
|
|
13854
|
+
EMAIL: "email",
|
|
13855
|
+
PUSH: "push",
|
|
13856
|
+
SMS: "sms",
|
|
13857
|
+
IN_APP: "in_app"
|
|
13858
|
+
};
|
|
13859
|
+
function instanceOfUpdateSubscriberPreferences200ResponseDataPreferencesInner(value) {
|
|
13860
|
+
return true;
|
|
13861
|
+
}
|
|
13862
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON(json) {
|
|
13863
|
+
return UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped(json, false);
|
|
13864
|
+
}
|
|
13865
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
13866
|
+
if (json == null) {
|
|
13867
|
+
return json;
|
|
13868
|
+
}
|
|
13869
|
+
return {
|
|
13870
|
+
"categoryId": json["category_id"] == null ? void 0 : json["category_id"],
|
|
13871
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
13872
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"],
|
|
13873
|
+
"source": json["source"] == null ? void 0 : json["source"]
|
|
13874
|
+
};
|
|
13875
|
+
}
|
|
13876
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON(json) {
|
|
13877
|
+
return UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped(json, false);
|
|
13878
|
+
}
|
|
13879
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13880
|
+
if (value == null) {
|
|
13881
|
+
return value;
|
|
13882
|
+
}
|
|
13883
|
+
return {
|
|
13884
|
+
"category_id": value["categoryId"],
|
|
13885
|
+
"channel": value["channel"],
|
|
13886
|
+
"enabled": value["enabled"],
|
|
13887
|
+
"source": value["source"]
|
|
13888
|
+
};
|
|
13889
|
+
}
|
|
13890
|
+
|
|
13891
|
+
// src/src/models/UpdateSubscriberPreferences200ResponseData.ts
|
|
13892
|
+
function instanceOfUpdateSubscriberPreferences200ResponseData(value) {
|
|
13893
|
+
return true;
|
|
13894
|
+
}
|
|
13895
|
+
function UpdateSubscriberPreferences200ResponseDataFromJSON(json) {
|
|
13896
|
+
return UpdateSubscriberPreferences200ResponseDataFromJSONTyped(json, false);
|
|
13897
|
+
}
|
|
13898
|
+
function UpdateSubscriberPreferences200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
13899
|
+
if (json == null) {
|
|
13900
|
+
return json;
|
|
13901
|
+
}
|
|
13902
|
+
return {
|
|
13903
|
+
"updated": json["updated"] == null ? void 0 : json["updated"],
|
|
13904
|
+
"preferences": json["preferences"] == null ? void 0 : json["preferences"].map(UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON)
|
|
13905
|
+
};
|
|
13906
|
+
}
|
|
13907
|
+
function UpdateSubscriberPreferences200ResponseDataToJSON(json) {
|
|
13908
|
+
return UpdateSubscriberPreferences200ResponseDataToJSONTyped(json, false);
|
|
13909
|
+
}
|
|
13910
|
+
function UpdateSubscriberPreferences200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13911
|
+
if (value == null) {
|
|
13912
|
+
return value;
|
|
13913
|
+
}
|
|
13914
|
+
return {
|
|
13915
|
+
"updated": value["updated"],
|
|
13916
|
+
"preferences": value["preferences"] == null ? void 0 : value["preferences"].map(UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON)
|
|
13917
|
+
};
|
|
13918
|
+
}
|
|
13919
|
+
|
|
13920
|
+
// src/src/models/UpdateSubscriberPreferences200Response.ts
|
|
13921
|
+
function instanceOfUpdateSubscriberPreferences200Response(value) {
|
|
13922
|
+
return true;
|
|
13923
|
+
}
|
|
13924
|
+
function UpdateSubscriberPreferences200ResponseFromJSON(json) {
|
|
13925
|
+
return UpdateSubscriberPreferences200ResponseFromJSONTyped(json, false);
|
|
13926
|
+
}
|
|
13927
|
+
function UpdateSubscriberPreferences200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13928
|
+
if (json == null) {
|
|
13929
|
+
return json;
|
|
13930
|
+
}
|
|
13931
|
+
return {
|
|
13932
|
+
"data": json["data"] == null ? void 0 : UpdateSubscriberPreferences200ResponseDataFromJSON(json["data"])
|
|
13933
|
+
};
|
|
13934
|
+
}
|
|
13935
|
+
function UpdateSubscriberPreferences200ResponseToJSON(json) {
|
|
13936
|
+
return UpdateSubscriberPreferences200ResponseToJSONTyped(json, false);
|
|
13937
|
+
}
|
|
13938
|
+
function UpdateSubscriberPreferences200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13939
|
+
if (value == null) {
|
|
13940
|
+
return value;
|
|
13941
|
+
}
|
|
13942
|
+
return {
|
|
13943
|
+
"data": UpdateSubscriberPreferences200ResponseDataToJSON(value["data"])
|
|
13944
|
+
};
|
|
13945
|
+
}
|
|
13946
|
+
|
|
12794
13947
|
// src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
12795
13948
|
var UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum = {
|
|
12796
13949
|
EMAIL: "email",
|
|
@@ -13003,6 +14156,35 @@ function UpdateWaaSApplicationRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
13003
14156
|
};
|
|
13004
14157
|
}
|
|
13005
14158
|
|
|
14159
|
+
// src/src/models/UpdateWaaSEndpoint200Response.ts
|
|
14160
|
+
function instanceOfUpdateWaaSEndpoint200Response(value) {
|
|
14161
|
+
return true;
|
|
14162
|
+
}
|
|
14163
|
+
function UpdateWaaSEndpoint200ResponseFromJSON(json) {
|
|
14164
|
+
return UpdateWaaSEndpoint200ResponseFromJSONTyped(json, false);
|
|
14165
|
+
}
|
|
14166
|
+
function UpdateWaaSEndpoint200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14167
|
+
if (json == null) {
|
|
14168
|
+
return json;
|
|
14169
|
+
}
|
|
14170
|
+
return {
|
|
14171
|
+
"data": json["data"] == null ? void 0 : WaaSEndpointFromJSON(json["data"]),
|
|
14172
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
14173
|
+
};
|
|
14174
|
+
}
|
|
14175
|
+
function UpdateWaaSEndpoint200ResponseToJSON(json) {
|
|
14176
|
+
return UpdateWaaSEndpoint200ResponseToJSONTyped(json, false);
|
|
14177
|
+
}
|
|
14178
|
+
function UpdateWaaSEndpoint200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14179
|
+
if (value == null) {
|
|
14180
|
+
return value;
|
|
14181
|
+
}
|
|
14182
|
+
return {
|
|
14183
|
+
"data": WaaSEndpointToJSON(value["data"]),
|
|
14184
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
14185
|
+
};
|
|
14186
|
+
}
|
|
14187
|
+
|
|
13006
14188
|
// src/src/models/UpdateWaaSEndpointRequest.ts
|
|
13007
14189
|
var UpdateWaaSEndpointRequestStatusEnum = {
|
|
13008
14190
|
ACTIVE: "active",
|
|
@@ -13039,6 +14221,35 @@ function UpdateWaaSEndpointRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
13039
14221
|
};
|
|
13040
14222
|
}
|
|
13041
14223
|
|
|
14224
|
+
// src/src/models/UpdateWaaSEventType200Response.ts
|
|
14225
|
+
function instanceOfUpdateWaaSEventType200Response(value) {
|
|
14226
|
+
return true;
|
|
14227
|
+
}
|
|
14228
|
+
function UpdateWaaSEventType200ResponseFromJSON(json) {
|
|
14229
|
+
return UpdateWaaSEventType200ResponseFromJSONTyped(json, false);
|
|
14230
|
+
}
|
|
14231
|
+
function UpdateWaaSEventType200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14232
|
+
if (json == null) {
|
|
14233
|
+
return json;
|
|
14234
|
+
}
|
|
14235
|
+
return {
|
|
14236
|
+
"data": json["data"] == null ? void 0 : WaaSEventTypeFromJSON(json["data"]),
|
|
14237
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
14238
|
+
};
|
|
14239
|
+
}
|
|
14240
|
+
function UpdateWaaSEventType200ResponseToJSON(json) {
|
|
14241
|
+
return UpdateWaaSEventType200ResponseToJSONTyped(json, false);
|
|
14242
|
+
}
|
|
14243
|
+
function UpdateWaaSEventType200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14244
|
+
if (value == null) {
|
|
14245
|
+
return value;
|
|
14246
|
+
}
|
|
14247
|
+
return {
|
|
14248
|
+
"data": WaaSEventTypeToJSON(value["data"]),
|
|
14249
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
14250
|
+
};
|
|
14251
|
+
}
|
|
14252
|
+
|
|
13042
14253
|
// src/src/models/UpdateWaaSEventTypeRequest.ts
|
|
13043
14254
|
function instanceOfUpdateWaaSEventTypeRequest(value) {
|
|
13044
14255
|
return true;
|
|
@@ -15494,6 +16705,39 @@ function WithdrawSubscriberConsentRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
15494
16705
|
};
|
|
15495
16706
|
}
|
|
15496
16707
|
|
|
16708
|
+
// src/src/apis/AuthApplicationApi.ts
|
|
16709
|
+
var AuthApplicationApi = class extends BaseAPI {
|
|
16710
|
+
/**
|
|
16711
|
+
* Return non-sensitive metadata about the application whose credentials authenticated this request. Lets an integrator read their own application_id (the sole tenant discriminator embedded in every end-user token) directly from the API, rather than only from the dashboard UI or by decoding a token. Returns only id, name, the calling environment\'s mode, and the JWT signing algorithm — never secrets, signing keys, or account-internal fields.
|
|
16712
|
+
* Get the authenticating application
|
|
16713
|
+
*/
|
|
16714
|
+
async getSelfApplicationRaw(initOverrides) {
|
|
16715
|
+
const queryParameters = {};
|
|
16716
|
+
const headerParameters = {};
|
|
16717
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16718
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16719
|
+
}
|
|
16720
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16721
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16722
|
+
}
|
|
16723
|
+
const response = await this.request({
|
|
16724
|
+
path: `/auth/application`,
|
|
16725
|
+
method: "GET",
|
|
16726
|
+
headers: headerParameters,
|
|
16727
|
+
query: queryParameters
|
|
16728
|
+
}, initOverrides);
|
|
16729
|
+
return new JSONApiResponse(response, (jsonValue) => ApplicationSelfResponseFromJSON(jsonValue));
|
|
16730
|
+
}
|
|
16731
|
+
/**
|
|
16732
|
+
* Return non-sensitive metadata about the application whose credentials authenticated this request. Lets an integrator read their own application_id (the sole tenant discriminator embedded in every end-user token) directly from the API, rather than only from the dashboard UI or by decoding a token. Returns only id, name, the calling environment\'s mode, and the JWT signing algorithm — never secrets, signing keys, or account-internal fields.
|
|
16733
|
+
* Get the authenticating application
|
|
16734
|
+
*/
|
|
16735
|
+
async getSelfApplication(initOverrides) {
|
|
16736
|
+
const response = await this.getSelfApplicationRaw(initOverrides);
|
|
16737
|
+
return await response.value();
|
|
16738
|
+
}
|
|
16739
|
+
};
|
|
16740
|
+
|
|
15497
16741
|
// src/src/apis/AuthEmailOTPApi.ts
|
|
15498
16742
|
var AuthEmailOTPApi = class extends BaseAPI {
|
|
15499
16743
|
/**
|
|
@@ -15957,7 +17201,7 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
|
|
|
15957
17201
|
return await response.value();
|
|
15958
17202
|
}
|
|
15959
17203
|
/**
|
|
15960
|
-
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited.
|
|
17204
|
+
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited. When non-empty, `test_recipients` gates ALL auth emails this application sends (magic link, password reset, email verification, and email OTP) — not just these test renders. Only listed recipients receive auth email; any other recipient is silently blocked. Use it to make a non-production application safe from mass sends. An empty allowlist (the default) imposes no restriction and every recipient receives auth email normally.
|
|
15961
17205
|
* Send a test render of a template
|
|
15962
17206
|
*/
|
|
15963
17207
|
async sendAuthEmailTemplateTestRaw(requestParameters, initOverrides) {
|
|
@@ -15992,7 +17236,7 @@ var AuthEmailTemplatesApi = class extends BaseAPI {
|
|
|
15992
17236
|
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateTestResponseFromJSON(jsonValue));
|
|
15993
17237
|
}
|
|
15994
17238
|
/**
|
|
15995
|
-
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited.
|
|
17239
|
+
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited. When non-empty, `test_recipients` gates ALL auth emails this application sends (magic link, password reset, email verification, and email OTP) — not just these test renders. Only listed recipients receive auth email; any other recipient is silently blocked. Use it to make a non-production application safe from mass sends. An empty allowlist (the default) imposes no restriction and every recipient receives auth email normally.
|
|
15996
17240
|
* Send a test render of a template
|
|
15997
17241
|
*/
|
|
15998
17242
|
async sendAuthEmailTemplateTest(type, authEmailTemplateTestRequest, initOverrides) {
|
|
@@ -17923,6 +19167,41 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17923
19167
|
async deleteEndUserByApplication(userId, initOverrides) {
|
|
17924
19168
|
await this.deleteEndUserByApplicationRaw({ userId }, initOverrides);
|
|
17925
19169
|
}
|
|
19170
|
+
/**
|
|
19171
|
+
* Secret-key-scoped, aggregate view of the sign-in methods configured for a single end user within the authenticating application. Reports whether the user has a password, which OAuth providers are linked, whether MFA is enabled, whether email/phone are verified, and how many passkeys are registered — everything a customer admin needs to build a \"sign-in methods\" screen. Scoped to the application — a caller can never read a user belonging to another application.
|
|
19172
|
+
* Get an end user\'s sign-in methods (server-side admin)
|
|
19173
|
+
*/
|
|
19174
|
+
async getEndUserAuthMethodsRaw(requestParameters, initOverrides) {
|
|
19175
|
+
if (requestParameters["userId"] == null) {
|
|
19176
|
+
throw new RequiredError(
|
|
19177
|
+
"userId",
|
|
19178
|
+
'Required parameter "userId" was null or undefined when calling getEndUserAuthMethods().'
|
|
19179
|
+
);
|
|
19180
|
+
}
|
|
19181
|
+
const queryParameters = {};
|
|
19182
|
+
const headerParameters = {};
|
|
19183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19184
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19185
|
+
}
|
|
19186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19187
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19188
|
+
}
|
|
19189
|
+
const response = await this.request({
|
|
19190
|
+
path: `/auth/users/{user_id}/auth-methods`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19191
|
+
method: "GET",
|
|
19192
|
+
headers: headerParameters,
|
|
19193
|
+
query: queryParameters
|
|
19194
|
+
}, initOverrides);
|
|
19195
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserAuthMethods200ResponseFromJSON(jsonValue));
|
|
19196
|
+
}
|
|
19197
|
+
/**
|
|
19198
|
+
* Secret-key-scoped, aggregate view of the sign-in methods configured for a single end user within the authenticating application. Reports whether the user has a password, which OAuth providers are linked, whether MFA is enabled, whether email/phone are verified, and how many passkeys are registered — everything a customer admin needs to build a \"sign-in methods\" screen. Scoped to the application — a caller can never read a user belonging to another application.
|
|
19199
|
+
* Get an end user\'s sign-in methods (server-side admin)
|
|
19200
|
+
*/
|
|
19201
|
+
async getEndUserAuthMethods(userId, initOverrides) {
|
|
19202
|
+
const response = await this.getEndUserAuthMethodsRaw({ userId }, initOverrides);
|
|
19203
|
+
return await response.value();
|
|
19204
|
+
}
|
|
17926
19205
|
/**
|
|
17927
19206
|
* Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
17928
19207
|
* Look up an end user by email (server-side admin)
|
|
@@ -17951,14 +19230,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17951
19230
|
headers: headerParameters,
|
|
17952
19231
|
query: queryParameters
|
|
17953
19232
|
}, initOverrides);
|
|
17954
|
-
return new
|
|
19233
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
17955
19234
|
}
|
|
17956
19235
|
/**
|
|
17957
19236
|
* Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
17958
19237
|
* Look up an end user by email (server-side admin)
|
|
17959
19238
|
*/
|
|
17960
19239
|
async getEndUserByEmail(email, initOverrides) {
|
|
17961
|
-
await this.getEndUserByEmailRaw({ email }, initOverrides);
|
|
19240
|
+
const response = await this.getEndUserByEmailRaw({ email }, initOverrides);
|
|
19241
|
+
return await response.value();
|
|
17962
19242
|
}
|
|
17963
19243
|
/**
|
|
17964
19244
|
* Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
@@ -17985,14 +19265,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17985
19265
|
headers: headerParameters,
|
|
17986
19266
|
query: queryParameters
|
|
17987
19267
|
}, initOverrides);
|
|
17988
|
-
return new
|
|
19268
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
17989
19269
|
}
|
|
17990
19270
|
/**
|
|
17991
19271
|
* Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
17992
19272
|
* Get an end user by id (server-side admin)
|
|
17993
19273
|
*/
|
|
17994
19274
|
async getEndUserById(userId, initOverrides) {
|
|
17995
|
-
await this.getEndUserByIdRaw({ userId }, initOverrides);
|
|
19275
|
+
const response = await this.getEndUserByIdRaw({ userId }, initOverrides);
|
|
19276
|
+
return await response.value();
|
|
17996
19277
|
}
|
|
17997
19278
|
/**
|
|
17998
19279
|
* Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user\'s JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
@@ -18019,14 +19300,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18019
19300
|
headers: headerParameters,
|
|
18020
19301
|
query: queryParameters
|
|
18021
19302
|
}, initOverrides);
|
|
18022
|
-
return new
|
|
19303
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserClaims200ResponseFromJSON(jsonValue));
|
|
18023
19304
|
}
|
|
18024
19305
|
/**
|
|
18025
19306
|
* Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user\'s JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
18026
19307
|
* Get an end user\'s stored custom claims (server-side admin)
|
|
18027
19308
|
*/
|
|
18028
19309
|
async getEndUserClaims(userId, initOverrides) {
|
|
18029
|
-
await this.getEndUserClaimsRaw({ userId }, initOverrides);
|
|
19310
|
+
const response = await this.getEndUserClaimsRaw({ userId }, initOverrides);
|
|
19311
|
+
return await response.value();
|
|
18030
19312
|
}
|
|
18031
19313
|
/**
|
|
18032
19314
|
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
@@ -18055,14 +19337,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18055
19337
|
query: queryParameters,
|
|
18056
19338
|
body: InviteEndUserRequestToJSON(requestParameters["inviteEndUserRequest"])
|
|
18057
19339
|
}, initOverrides);
|
|
18058
|
-
return new
|
|
19340
|
+
return new JSONApiResponse(response, (jsonValue) => InviteEndUser200ResponseFromJSON(jsonValue));
|
|
18059
19341
|
}
|
|
18060
19342
|
/**
|
|
18061
19343
|
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
18062
19344
|
* Pre-provision (invite) an end user (server-side admin)
|
|
18063
19345
|
*/
|
|
18064
19346
|
async inviteEndUser(inviteEndUserRequest, initOverrides) {
|
|
18065
|
-
await this.inviteEndUserRaw({ inviteEndUserRequest }, initOverrides);
|
|
19347
|
+
const response = await this.inviteEndUserRaw({ inviteEndUserRequest }, initOverrides);
|
|
19348
|
+
return await response.value();
|
|
18066
19349
|
}
|
|
18067
19350
|
/**
|
|
18068
19351
|
* Secret-key-scoped directory listing of end users in the authenticating application. Supports substring search over email, name, and phone, an optional environment filter (test/live), and pagination. Scoped to the application — never returns users from another application.
|
|
@@ -18095,14 +19378,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18095
19378
|
headers: headerParameters,
|
|
18096
19379
|
query: queryParameters
|
|
18097
19380
|
}, initOverrides);
|
|
18098
|
-
return new
|
|
19381
|
+
return new JSONApiResponse(response, (jsonValue) => ListEndUsers200ResponseFromJSON(jsonValue));
|
|
18099
19382
|
}
|
|
18100
19383
|
/**
|
|
18101
19384
|
* Secret-key-scoped directory listing of end users in the authenticating application. Supports substring search over email, name, and phone, an optional environment filter (test/live), and pagination. Scoped to the application — never returns users from another application.
|
|
18102
19385
|
* List / search end users (server-side admin)
|
|
18103
19386
|
*/
|
|
18104
19387
|
async listEndUsers(page, perPage, search, environment, initOverrides) {
|
|
18105
|
-
await this.listEndUsersRaw({ page, perPage, search, environment }, initOverrides);
|
|
19388
|
+
const response = await this.listEndUsersRaw({ page, perPage, search, environment }, initOverrides);
|
|
19389
|
+
return await response.value();
|
|
18106
19390
|
}
|
|
18107
19391
|
/**
|
|
18108
19392
|
* Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user\'s JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected. Each write bumps a monotonic `claims_version` (returned in the response). The change applies seamlessly on the user\'s next login or token refresh — a token carrying an older `claims_version` is rejected on verification and the client silently re-mints with the new claims, without a forced logout. For a hard cut-off (log the user out of all sessions immediately), call POST /auth/sessions/revoke-all after updating claims.
|
|
@@ -18180,14 +19464,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18180
19464
|
query: queryParameters,
|
|
18181
19465
|
body: UpdateEndUserByApplicationRequestToJSON(requestParameters["updateEndUserByApplicationRequest"])
|
|
18182
19466
|
}, initOverrides);
|
|
18183
|
-
return new
|
|
19467
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
18184
19468
|
}
|
|
18185
19469
|
/**
|
|
18186
19470
|
* Secret-key-scoped update of an arbitrary end user in the authenticating application. Updatable fields: email, name, avatar_url, metadata, status. Scoped to the application — a caller can never modify a user belonging to another application.
|
|
18187
19471
|
* Update an end user (server-side admin)
|
|
18188
19472
|
*/
|
|
18189
19473
|
async updateEndUserByApplication(userId, updateEndUserByApplicationRequest, initOverrides) {
|
|
18190
|
-
await this.updateEndUserByApplicationRaw({ userId, updateEndUserByApplicationRequest }, initOverrides);
|
|
19474
|
+
const response = await this.updateEndUserByApplicationRaw({ userId, updateEndUserByApplicationRequest }, initOverrides);
|
|
19475
|
+
return await response.value();
|
|
18191
19476
|
}
|
|
18192
19477
|
};
|
|
18193
19478
|
var ListEndUsersEnvironmentEnum = {
|
|
@@ -19003,14 +20288,15 @@ var DomainsApi = class extends BaseAPI {
|
|
|
19003
20288
|
query: queryParameters,
|
|
19004
20289
|
body: SetDomainInboundRequestToJSON(requestParameters["setDomainInboundRequest"])
|
|
19005
20290
|
}, initOverrides);
|
|
19006
|
-
return new
|
|
20291
|
+
return new JSONApiResponse(response, (jsonValue) => GetDomain200ResponseFromJSON(jsonValue));
|
|
19007
20292
|
}
|
|
19008
20293
|
/**
|
|
19009
20294
|
* Toggle email receiving for a domain. When enabled, the domain\'s DNS records gain an MX record on the `inbound.` subdomain that the tenant must publish. Requires a plan with inbound email (Starter+).
|
|
19010
20295
|
* Enable or disable inbound email for a domain
|
|
19011
20296
|
*/
|
|
19012
20297
|
async setDomainInbound(id, setDomainInboundRequest, initOverrides) {
|
|
19013
|
-
await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
20298
|
+
const response = await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
20299
|
+
return await response.value();
|
|
19014
20300
|
}
|
|
19015
20301
|
/**
|
|
19016
20302
|
* 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).
|
|
@@ -19544,13 +20830,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
19544
20830
|
headers: headerParameters,
|
|
19545
20831
|
query: queryParameters
|
|
19546
20832
|
}, initOverrides);
|
|
19547
|
-
return new
|
|
20833
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
19548
20834
|
}
|
|
19549
20835
|
/**
|
|
19550
20836
|
* Archive a notification
|
|
19551
20837
|
*/
|
|
19552
20838
|
async archiveSubscriberNotification(id, initOverrides) {
|
|
19553
|
-
await this.archiveSubscriberNotificationRaw({ id }, initOverrides);
|
|
20839
|
+
const response = await this.archiveSubscriberNotificationRaw({ id }, initOverrides);
|
|
20840
|
+
return await response.value();
|
|
19554
20841
|
}
|
|
19555
20842
|
/**
|
|
19556
20843
|
* Permanently delete an in-app notification.
|
|
@@ -19714,14 +21001,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19714
21001
|
headers: headerParameters,
|
|
19715
21002
|
query: queryParameters
|
|
19716
21003
|
}, initOverrides);
|
|
19717
|
-
return new
|
|
21004
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberInboxPreferences200ResponseFromJSON(jsonValue));
|
|
19718
21005
|
}
|
|
19719
21006
|
/**
|
|
19720
21007
|
* Get notification preferences grouped by category for the authenticated subscriber.
|
|
19721
21008
|
* Get subscriber preferences
|
|
19722
21009
|
*/
|
|
19723
21010
|
async getSubscriberInboxPreferences(initOverrides) {
|
|
19724
|
-
await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
21011
|
+
const response = await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
21012
|
+
return await response.value();
|
|
19725
21013
|
}
|
|
19726
21014
|
/**
|
|
19727
21015
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
@@ -19749,14 +21037,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19749
21037
|
headers: headerParameters,
|
|
19750
21038
|
query: queryParameters
|
|
19751
21039
|
}, initOverrides);
|
|
19752
|
-
return new
|
|
21040
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
19753
21041
|
}
|
|
19754
21042
|
/**
|
|
19755
21043
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
19756
21044
|
* Get a notification
|
|
19757
21045
|
*/
|
|
19758
21046
|
async getSubscriberNotification(id, initOverrides) {
|
|
19759
|
-
await this.getSubscriberNotificationRaw({ id }, initOverrides);
|
|
21047
|
+
const response = await this.getSubscriberNotificationRaw({ id }, initOverrides);
|
|
21048
|
+
return await response.value();
|
|
19760
21049
|
}
|
|
19761
21050
|
/**
|
|
19762
21051
|
* Get the unread notification count for the authenticated subscriber.
|
|
@@ -19778,14 +21067,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19778
21067
|
headers: headerParameters,
|
|
19779
21068
|
query: queryParameters
|
|
19780
21069
|
}, initOverrides);
|
|
19781
|
-
return new
|
|
21070
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberUnreadCount200ResponseFromJSON(jsonValue));
|
|
19782
21071
|
}
|
|
19783
21072
|
/**
|
|
19784
21073
|
* Get the unread notification count for the authenticated subscriber.
|
|
19785
21074
|
* Get unread count
|
|
19786
21075
|
*/
|
|
19787
21076
|
async getSubscriberUnreadCount(initOverrides) {
|
|
19788
|
-
await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
21077
|
+
const response = await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
21078
|
+
return await response.value();
|
|
19789
21079
|
}
|
|
19790
21080
|
/**
|
|
19791
21081
|
* Get the count of unread in-app notifications for a subscriber.
|
|
@@ -19853,14 +21143,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19853
21143
|
headers: headerParameters,
|
|
19854
21144
|
query: queryParameters
|
|
19855
21145
|
}, initOverrides);
|
|
19856
|
-
return new
|
|
21146
|
+
return new JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
19857
21147
|
}
|
|
19858
21148
|
/**
|
|
19859
21149
|
* List all in-app notifications for the current project. Used by the dashboard to display all notifications without requiring a subscriber selection.
|
|
19860
21150
|
* List all project notifications
|
|
19861
21151
|
*/
|
|
19862
21152
|
async listAllInbox(subscriberId, status, category, search, limit, offset, initOverrides) {
|
|
19863
|
-
await this.listAllInboxRaw({ subscriberId, status, category, search, limit, offset }, initOverrides);
|
|
21153
|
+
const response = await this.listAllInboxRaw({ subscriberId, status, category, search, limit, offset }, initOverrides);
|
|
21154
|
+
return await response.value();
|
|
19864
21155
|
}
|
|
19865
21156
|
/**
|
|
19866
21157
|
* Retrieve in-app notifications for a subscriber. Requires subscriber_id or external_id.
|
|
@@ -19947,14 +21238,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19947
21238
|
headers: headerParameters,
|
|
19948
21239
|
query: queryParameters
|
|
19949
21240
|
}, initOverrides);
|
|
19950
|
-
return new
|
|
21241
|
+
return new JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
19951
21242
|
}
|
|
19952
21243
|
/**
|
|
19953
21244
|
* List notifications for the authenticated subscriber. Supports cursor-based pagination.
|
|
19954
21245
|
* List subscriber notifications
|
|
19955
21246
|
*/
|
|
19956
21247
|
async listSubscriberNotifications(category, includeRead, includeArchived, limit, cursor, initOverrides) {
|
|
19957
|
-
await this.listSubscriberNotificationsRaw({ category, includeRead, includeArchived, limit, cursor }, initOverrides);
|
|
21248
|
+
const response = await this.listSubscriberNotificationsRaw({ category, includeRead, includeArchived, limit, cursor }, initOverrides);
|
|
21249
|
+
return await response.value();
|
|
19958
21250
|
}
|
|
19959
21251
|
/**
|
|
19960
21252
|
* Mark all unread in-app notifications as read for a subscriber. Optionally filter by category.
|
|
@@ -20011,13 +21303,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
20011
21303
|
query: queryParameters,
|
|
20012
21304
|
body: MarkAllSubscriberNotificationsReadRequestToJSON(requestParameters["markAllSubscriberNotificationsReadRequest"])
|
|
20013
21305
|
}, initOverrides);
|
|
20014
|
-
return new
|
|
21306
|
+
return new JSONApiResponse(response, (jsonValue) => MarkAllSubscriberNotificationsRead200ResponseFromJSON(jsonValue));
|
|
20015
21307
|
}
|
|
20016
21308
|
/**
|
|
20017
21309
|
* Mark all notifications as read
|
|
20018
21310
|
*/
|
|
20019
21311
|
async markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest, initOverrides) {
|
|
20020
|
-
await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
21312
|
+
const response = await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
21313
|
+
return await response.value();
|
|
20021
21314
|
}
|
|
20022
21315
|
/**
|
|
20023
21316
|
* Mark a specific in-app notification as read.
|
|
@@ -20078,13 +21371,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
20078
21371
|
headers: headerParameters,
|
|
20079
21372
|
query: queryParameters
|
|
20080
21373
|
}, initOverrides);
|
|
20081
|
-
return new
|
|
21374
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
20082
21375
|
}
|
|
20083
21376
|
/**
|
|
20084
21377
|
* Mark notification as read
|
|
20085
21378
|
*/
|
|
20086
21379
|
async markSubscriberNotificationRead(id, initOverrides) {
|
|
20087
|
-
await this.markSubscriberNotificationReadRaw({ id }, initOverrides);
|
|
21380
|
+
const response = await this.markSubscriberNotificationReadRaw({ id }, initOverrides);
|
|
21381
|
+
return await response.value();
|
|
20088
21382
|
}
|
|
20089
21383
|
/**
|
|
20090
21384
|
* Send in-app notifications to multiple subscribers in a single request (max 100).
|
|
@@ -20182,14 +21476,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
20182
21476
|
query: queryParameters,
|
|
20183
21477
|
body: UpdateSubscriberPreferencesRequestToJSON(requestParameters["updateSubscriberPreferencesRequest"])
|
|
20184
21478
|
}, initOverrides);
|
|
20185
|
-
return new
|
|
21479
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateSubscriberPreferences200ResponseFromJSON(jsonValue));
|
|
20186
21480
|
}
|
|
20187
21481
|
/**
|
|
20188
21482
|
* Update notification channel preferences for specific categories or globally.
|
|
20189
21483
|
* Update subscriber preferences
|
|
20190
21484
|
*/
|
|
20191
21485
|
async updateSubscriberPreferences(updateSubscriberPreferencesRequest, initOverrides) {
|
|
20192
|
-
await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest }, initOverrides);
|
|
21486
|
+
const response = await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest }, initOverrides);
|
|
21487
|
+
return await response.value();
|
|
20193
21488
|
}
|
|
20194
21489
|
};
|
|
20195
21490
|
var ListAllInboxStatusEnum = {
|
|
@@ -21820,14 +23115,15 @@ var TemplatesApi = class extends BaseAPI {
|
|
|
21820
23115
|
query: queryParameters,
|
|
21821
23116
|
body: SendTemplateTestEmailRequestToJSON(requestParameters["sendTemplateTestEmailRequest"])
|
|
21822
23117
|
}, initOverrides);
|
|
21823
|
-
return new
|
|
23118
|
+
return new JSONApiResponse(response, (jsonValue) => SendTemplateTestEmail202ResponseFromJSON(jsonValue));
|
|
21824
23119
|
}
|
|
21825
23120
|
/**
|
|
21826
23121
|
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
21827
23122
|
* Send a test email using a template
|
|
21828
23123
|
*/
|
|
21829
23124
|
async sendTemplateTestEmail(id, sendTemplateTestEmailRequest, initOverrides) {
|
|
21830
|
-
await this.sendTemplateTestEmailRaw({ id, sendTemplateTestEmailRequest }, initOverrides);
|
|
23125
|
+
const response = await this.sendTemplateTestEmailRaw({ id, sendTemplateTestEmailRequest }, initOverrides);
|
|
23126
|
+
return await response.value();
|
|
21831
23127
|
}
|
|
21832
23128
|
/**
|
|
21833
23129
|
* Update an existing template. Only provided fields are changed.
|
|
@@ -22465,14 +23761,15 @@ var WaaSDeliveriesApi = class extends BaseAPI {
|
|
|
22465
23761
|
headers: headerParameters,
|
|
22466
23762
|
query: queryParameters
|
|
22467
23763
|
}, initOverrides);
|
|
22468
|
-
return new
|
|
23764
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
22469
23765
|
}
|
|
22470
23766
|
/**
|
|
22471
23767
|
* Get full delivery details including request/response data.
|
|
22472
23768
|
* Get delivery detail
|
|
22473
23769
|
*/
|
|
22474
23770
|
async getWaaSDelivery(appId, deliveryId, initOverrides) {
|
|
22475
|
-
await this.getWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23771
|
+
const response = await this.getWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23772
|
+
return await response.value();
|
|
22476
23773
|
}
|
|
22477
23774
|
/**
|
|
22478
23775
|
* List delivery records for a WaaS application. Filter by tenant, event type, or status.
|
|
@@ -22596,14 +23893,15 @@ var WaaSDeliveriesApi = class extends BaseAPI {
|
|
|
22596
23893
|
headers: headerParameters,
|
|
22597
23894
|
query: queryParameters
|
|
22598
23895
|
}, initOverrides);
|
|
22599
|
-
return new
|
|
23896
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
22600
23897
|
}
|
|
22601
23898
|
/**
|
|
22602
23899
|
* Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
22603
23900
|
* Retry a delivery
|
|
22604
23901
|
*/
|
|
22605
23902
|
async retryWaaSDelivery(appId, deliveryId, initOverrides) {
|
|
22606
|
-
await this.retryWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23903
|
+
const response = await this.retryWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23904
|
+
return await response.value();
|
|
22607
23905
|
}
|
|
22608
23906
|
};
|
|
22609
23907
|
var ListWaaSDeliveriesStatusEnum = {
|
|
@@ -22645,14 +23943,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22645
23943
|
headers: headerParameters,
|
|
22646
23944
|
query: queryParameters
|
|
22647
23945
|
}, initOverrides);
|
|
22648
|
-
return new
|
|
23946
|
+
return new JSONApiResponse(response, (jsonValue) => CloseWaaSEndpointCircuit200ResponseFromJSON(jsonValue));
|
|
22649
23947
|
}
|
|
22650
23948
|
/**
|
|
22651
23949
|
* Force the circuit breaker to close, resuming deliveries to the endpoint.
|
|
22652
23950
|
* Force-close circuit breaker
|
|
22653
23951
|
*/
|
|
22654
23952
|
async closeWaaSEndpointCircuit(appId, endpointId, initOverrides) {
|
|
22655
|
-
await this.closeWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23953
|
+
const response = await this.closeWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23954
|
+
return await response.value();
|
|
22656
23955
|
}
|
|
22657
23956
|
/**
|
|
22658
23957
|
* Create a webhook endpoint for a specific tenant. The signing secret is returned only on creation.
|
|
@@ -22795,14 +24094,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22795
24094
|
headers: headerParameters,
|
|
22796
24095
|
query: queryParameters
|
|
22797
24096
|
}, initOverrides);
|
|
22798
|
-
return new
|
|
24097
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSEndpointCircuit200ResponseFromJSON(jsonValue));
|
|
22799
24098
|
}
|
|
22800
24099
|
/**
|
|
22801
24100
|
* Get the circuit breaker state for an endpoint (closed, open, or half-open).
|
|
22802
24101
|
* Get circuit breaker state
|
|
22803
24102
|
*/
|
|
22804
24103
|
async getWaaSEndpointCircuit(appId, endpointId, initOverrides) {
|
|
22805
|
-
await this.getWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
24104
|
+
const response = await this.getWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
24105
|
+
return await response.value();
|
|
22806
24106
|
}
|
|
22807
24107
|
/**
|
|
22808
24108
|
* Get delivery success rate, latency, and health metrics for an endpoint.
|
|
@@ -22832,14 +24132,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22832
24132
|
headers: headerParameters,
|
|
22833
24133
|
query: queryParameters
|
|
22834
24134
|
}, initOverrides);
|
|
22835
|
-
return new
|
|
24135
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSEndpointMetrics200ResponseFromJSON(jsonValue));
|
|
22836
24136
|
}
|
|
22837
24137
|
/**
|
|
22838
24138
|
* Get delivery success rate, latency, and health metrics for an endpoint.
|
|
22839
24139
|
* Get endpoint metrics
|
|
22840
24140
|
*/
|
|
22841
24141
|
async getWaaSEndpointMetrics(appId, endpointId, initOverrides) {
|
|
22842
|
-
await this.getWaaSEndpointMetricsRaw({ appId, endpointId }, initOverrides);
|
|
24142
|
+
const response = await this.getWaaSEndpointMetricsRaw({ appId, endpointId }, initOverrides);
|
|
24143
|
+
return await response.value();
|
|
22843
24144
|
}
|
|
22844
24145
|
/**
|
|
22845
24146
|
* List all endpoints for a WaaS application. Optionally filter by tenant ID or status.
|
|
@@ -22913,14 +24214,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22913
24214
|
headers: headerParameters,
|
|
22914
24215
|
query: queryParameters
|
|
22915
24216
|
}, initOverrides);
|
|
22916
|
-
return new
|
|
24217
|
+
return new JSONApiResponse(response, (jsonValue) => RotateWaaSEndpointSecret200ResponseFromJSON(jsonValue));
|
|
22917
24218
|
}
|
|
22918
24219
|
/**
|
|
22919
24220
|
* Rotate the signing secret for an endpoint. During rotation, deliveries are signed with both old and new secrets.
|
|
22920
24221
|
* Rotate endpoint secret
|
|
22921
24222
|
*/
|
|
22922
24223
|
async rotateWaaSEndpointSecret(appId, endpointId, initOverrides) {
|
|
22923
|
-
await this.rotateWaaSEndpointSecretRaw({ appId, endpointId }, initOverrides);
|
|
24224
|
+
const response = await this.rotateWaaSEndpointSecretRaw({ appId, endpointId }, initOverrides);
|
|
24225
|
+
return await response.value();
|
|
22924
24226
|
}
|
|
22925
24227
|
/**
|
|
22926
24228
|
* Update an endpoint
|
|
@@ -22957,13 +24259,14 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22957
24259
|
query: queryParameters,
|
|
22958
24260
|
body: UpdateWaaSEndpointRequestToJSON(requestParameters["updateWaaSEndpointRequest"])
|
|
22959
24261
|
}, initOverrides);
|
|
22960
|
-
return new
|
|
24262
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEndpoint200ResponseFromJSON(jsonValue));
|
|
22961
24263
|
}
|
|
22962
24264
|
/**
|
|
22963
24265
|
* Update an endpoint
|
|
22964
24266
|
*/
|
|
22965
24267
|
async updateWaaSEndpoint(appId, endpointId, updateWaaSEndpointRequest, initOverrides) {
|
|
22966
|
-
await this.updateWaaSEndpointRaw({ appId, endpointId, updateWaaSEndpointRequest }, initOverrides);
|
|
24268
|
+
const response = await this.updateWaaSEndpointRaw({ appId, endpointId, updateWaaSEndpointRequest }, initOverrides);
|
|
24269
|
+
return await response.value();
|
|
22967
24270
|
}
|
|
22968
24271
|
};
|
|
22969
24272
|
var ListWaaSEndpointsStatusEnum = {
|
|
@@ -23079,14 +24382,15 @@ var WaaSEventTypesApi = class extends BaseAPI {
|
|
|
23079
24382
|
headers: headerParameters,
|
|
23080
24383
|
query: queryParameters
|
|
23081
24384
|
}, initOverrides);
|
|
23082
|
-
return new
|
|
24385
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEventType200ResponseFromJSON(jsonValue));
|
|
23083
24386
|
}
|
|
23084
24387
|
/**
|
|
23085
24388
|
* Mark an event type as deprecated. Existing subscriptions continue to receive deliveries, but new subscriptions are blocked.
|
|
23086
24389
|
* Deprecate an event type
|
|
23087
24390
|
*/
|
|
23088
24391
|
async deprecateWaaSEventType(appId, eventTypeId, initOverrides) {
|
|
23089
|
-
await this.deprecateWaaSEventTypeRaw({ appId, eventTypeId }, initOverrides);
|
|
24392
|
+
const response = await this.deprecateWaaSEventTypeRaw({ appId, eventTypeId }, initOverrides);
|
|
24393
|
+
return await response.value();
|
|
23090
24394
|
}
|
|
23091
24395
|
/**
|
|
23092
24396
|
* Get an event type
|
|
@@ -23203,13 +24507,14 @@ var WaaSEventTypesApi = class extends BaseAPI {
|
|
|
23203
24507
|
query: queryParameters,
|
|
23204
24508
|
body: UpdateWaaSEventTypeRequestToJSON(requestParameters["updateWaaSEventTypeRequest"])
|
|
23205
24509
|
}, initOverrides);
|
|
23206
|
-
return new
|
|
24510
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEventType200ResponseFromJSON(jsonValue));
|
|
23207
24511
|
}
|
|
23208
24512
|
/**
|
|
23209
24513
|
* Update an event type
|
|
23210
24514
|
*/
|
|
23211
24515
|
async updateWaaSEventType(appId, eventTypeId, updateWaaSEventTypeRequest, initOverrides) {
|
|
23212
|
-
await this.updateWaaSEventTypeRaw({ appId, eventTypeId, updateWaaSEventTypeRequest }, initOverrides);
|
|
24516
|
+
const response = await this.updateWaaSEventTypeRaw({ appId, eventTypeId, updateWaaSEventTypeRequest }, initOverrides);
|
|
24517
|
+
return await response.value();
|
|
23213
24518
|
}
|
|
23214
24519
|
};
|
|
23215
24520
|
var ListWaaSEventTypesStatusEnum = {
|
|
@@ -24755,7 +26060,8 @@ var Zyphr = class {
|
|
|
24755
26060
|
emailOtp: new AuthEmailOTPApi(config),
|
|
24756
26061
|
profile: new AuthUserProfileApi(config),
|
|
24757
26062
|
userDirectory: new AuthUserDirectoryApi(config),
|
|
24758
|
-
webauthn: new AuthWebAuthnApi(config)
|
|
26063
|
+
webauthn: new AuthWebAuthnApi(config),
|
|
26064
|
+
application: new AuthApplicationApi(config)
|
|
24759
26065
|
};
|
|
24760
26066
|
}
|
|
24761
26067
|
/**
|
|
@@ -24802,7 +26108,14 @@ var ZyphrClientCredentialError = class extends Error {
|
|
|
24802
26108
|
this.name = "ZyphrClientCredentialError";
|
|
24803
26109
|
}
|
|
24804
26110
|
};
|
|
24805
|
-
var
|
|
26111
|
+
var PUBLISHABLE_KEY_PREFIXES = ["za_live_pub_", "za_test_pub_", "za_pub_"];
|
|
26112
|
+
var SECRET_KEY_PREFIXES = [
|
|
26113
|
+
"za_live_sec_",
|
|
26114
|
+
"za_test_sec_",
|
|
26115
|
+
"za_sec_",
|
|
26116
|
+
"zy_live_",
|
|
26117
|
+
"zy_test_"
|
|
26118
|
+
];
|
|
24806
26119
|
var ZyphrClient = class {
|
|
24807
26120
|
auth;
|
|
24808
26121
|
/** Device registration for push (takes an OS-acquired token). */
|
|
@@ -24811,16 +26124,16 @@ var ZyphrClient = class {
|
|
|
24811
26124
|
accessToken;
|
|
24812
26125
|
constructor(options) {
|
|
24813
26126
|
if (!options.applicationKey) {
|
|
24814
|
-
throw new ZyphrClientCredentialError("applicationKey (
|
|
26127
|
+
throw new ZyphrClientCredentialError("applicationKey (za_live_pub_* / za_test_pub_*) is required");
|
|
24815
26128
|
}
|
|
24816
26129
|
if (SECRET_KEY_PREFIXES.some((p) => options.applicationKey.startsWith(p))) {
|
|
24817
26130
|
throw new ZyphrClientCredentialError(
|
|
24818
|
-
"ZyphrClient must be constructed with a publishable application key (
|
|
26131
|
+
"ZyphrClient must be constructed with a publishable application key (za_live_pub_* / za_test_pub_*), never a secret key. Secret keys must stay server-side."
|
|
24819
26132
|
);
|
|
24820
26133
|
}
|
|
24821
|
-
if (!options.applicationKey.startsWith(
|
|
26134
|
+
if (!PUBLISHABLE_KEY_PREFIXES.some((p) => options.applicationKey.startsWith(p))) {
|
|
24822
26135
|
throw new ZyphrClientCredentialError(
|
|
24823
|
-
"applicationKey must be a publishable application key (
|
|
26136
|
+
"applicationKey must be a publishable application key (za_live_pub_* / za_test_pub_*)."
|
|
24824
26137
|
);
|
|
24825
26138
|
}
|
|
24826
26139
|
this.applicationKey = options.applicationKey;
|
|
@@ -24924,6 +26237,17 @@ export {
|
|
|
24924
26237
|
ApiErrorMetaToJSONTyped,
|
|
24925
26238
|
ApiErrorToJSON,
|
|
24926
26239
|
ApiErrorToJSONTyped,
|
|
26240
|
+
ApplicationSelfEnvironmentEnum,
|
|
26241
|
+
ApplicationSelfFromJSON,
|
|
26242
|
+
ApplicationSelfFromJSONTyped,
|
|
26243
|
+
ApplicationSelfResponseFromJSON,
|
|
26244
|
+
ApplicationSelfResponseFromJSONTyped,
|
|
26245
|
+
ApplicationSelfResponseToJSON,
|
|
26246
|
+
ApplicationSelfResponseToJSONTyped,
|
|
26247
|
+
ApplicationSelfSigningAlgorithmEnum,
|
|
26248
|
+
ApplicationSelfToJSON,
|
|
26249
|
+
ApplicationSelfToJSONTyped,
|
|
26250
|
+
AuthApplicationApi,
|
|
24927
26251
|
AuthEmailOTPApi,
|
|
24928
26252
|
AuthEmailTemplateDefaultFromJSON,
|
|
24929
26253
|
AuthEmailTemplateDefaultFromJSONTyped,
|
|
@@ -25013,6 +26337,10 @@ export {
|
|
|
25013
26337
|
AuthLoginResultToJSONTyped,
|
|
25014
26338
|
AuthMFAApi,
|
|
25015
26339
|
AuthMagicLinksApi,
|
|
26340
|
+
AuthMethodsFromJSON,
|
|
26341
|
+
AuthMethodsFromJSONTyped,
|
|
26342
|
+
AuthMethodsToJSON,
|
|
26343
|
+
AuthMethodsToJSONTyped,
|
|
25016
26344
|
AuthOAuthApi,
|
|
25017
26345
|
AuthOrganizationsApi,
|
|
25018
26346
|
AuthPasswordResetApi,
|
|
@@ -25088,6 +26416,15 @@ export {
|
|
|
25088
26416
|
CategoryResponseToJSONTyped,
|
|
25089
26417
|
CategoryToJSON,
|
|
25090
26418
|
CategoryToJSONTyped,
|
|
26419
|
+
CloseWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
26420
|
+
CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
26421
|
+
CloseWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
26422
|
+
CloseWaaSEndpointCircuit200ResponseDataToJSON,
|
|
26423
|
+
CloseWaaSEndpointCircuit200ResponseDataToJSONTyped,
|
|
26424
|
+
CloseWaaSEndpointCircuit200ResponseFromJSON,
|
|
26425
|
+
CloseWaaSEndpointCircuit200ResponseFromJSONTyped,
|
|
26426
|
+
CloseWaaSEndpointCircuit200ResponseToJSON,
|
|
26427
|
+
CloseWaaSEndpointCircuit200ResponseToJSONTyped,
|
|
25091
26428
|
Configuration,
|
|
25092
26429
|
ConfirmEmailVerificationRequestFromJSON,
|
|
25093
26430
|
ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -25411,10 +26748,90 @@ export {
|
|
|
25411
26748
|
GetDomain200ResponseMetaToJSONTyped,
|
|
25412
26749
|
GetDomain200ResponseToJSON,
|
|
25413
26750
|
GetDomain200ResponseToJSONTyped,
|
|
26751
|
+
GetEndUserAuthMethods200ResponseFromJSON,
|
|
26752
|
+
GetEndUserAuthMethods200ResponseFromJSONTyped,
|
|
26753
|
+
GetEndUserAuthMethods200ResponseToJSON,
|
|
26754
|
+
GetEndUserAuthMethods200ResponseToJSONTyped,
|
|
26755
|
+
GetEndUserById200ResponseFromJSON,
|
|
26756
|
+
GetEndUserById200ResponseFromJSONTyped,
|
|
26757
|
+
GetEndUserById200ResponseToJSON,
|
|
26758
|
+
GetEndUserById200ResponseToJSONTyped,
|
|
26759
|
+
GetEndUserClaims200ResponseDataFromJSON,
|
|
26760
|
+
GetEndUserClaims200ResponseDataFromJSONTyped,
|
|
26761
|
+
GetEndUserClaims200ResponseDataToJSON,
|
|
26762
|
+
GetEndUserClaims200ResponseDataToJSONTyped,
|
|
26763
|
+
GetEndUserClaims200ResponseFromJSON,
|
|
26764
|
+
GetEndUserClaims200ResponseFromJSONTyped,
|
|
26765
|
+
GetEndUserClaims200ResponseToJSON,
|
|
26766
|
+
GetEndUserClaims200ResponseToJSONTyped,
|
|
26767
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON,
|
|
26768
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped,
|
|
26769
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON,
|
|
26770
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped,
|
|
26771
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON,
|
|
26772
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped,
|
|
26773
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON,
|
|
26774
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped,
|
|
26775
|
+
GetSubscriberInboxPreferences200ResponseDataFromJSON,
|
|
26776
|
+
GetSubscriberInboxPreferences200ResponseDataFromJSONTyped,
|
|
26777
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerChannelEnum,
|
|
26778
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON,
|
|
26779
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped,
|
|
26780
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON,
|
|
26781
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped,
|
|
26782
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON,
|
|
26783
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped,
|
|
26784
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalToJSON,
|
|
26785
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped,
|
|
26786
|
+
GetSubscriberInboxPreferences200ResponseDataToJSON,
|
|
26787
|
+
GetSubscriberInboxPreferences200ResponseDataToJSONTyped,
|
|
26788
|
+
GetSubscriberInboxPreferences200ResponseFromJSON,
|
|
26789
|
+
GetSubscriberInboxPreferences200ResponseFromJSONTyped,
|
|
26790
|
+
GetSubscriberInboxPreferences200ResponseToJSON,
|
|
26791
|
+
GetSubscriberInboxPreferences200ResponseToJSONTyped,
|
|
26792
|
+
GetSubscriberNotification200ResponseFromJSON,
|
|
26793
|
+
GetSubscriberNotification200ResponseFromJSONTyped,
|
|
26794
|
+
GetSubscriberNotification200ResponseToJSON,
|
|
26795
|
+
GetSubscriberNotification200ResponseToJSONTyped,
|
|
26796
|
+
GetSubscriberUnreadCount200ResponseFromJSON,
|
|
26797
|
+
GetSubscriberUnreadCount200ResponseFromJSONTyped,
|
|
26798
|
+
GetSubscriberUnreadCount200ResponseToJSON,
|
|
26799
|
+
GetSubscriberUnreadCount200ResponseToJSONTyped,
|
|
26800
|
+
GetWaaSDelivery200ResponseFromJSON,
|
|
26801
|
+
GetWaaSDelivery200ResponseFromJSONTyped,
|
|
26802
|
+
GetWaaSDelivery200ResponseToJSON,
|
|
26803
|
+
GetWaaSDelivery200ResponseToJSONTyped,
|
|
25414
26804
|
GetWaaSEndpoint200ResponseFromJSON,
|
|
25415
26805
|
GetWaaSEndpoint200ResponseFromJSONTyped,
|
|
25416
26806
|
GetWaaSEndpoint200ResponseToJSON,
|
|
25417
26807
|
GetWaaSEndpoint200ResponseToJSONTyped,
|
|
26808
|
+
GetWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
26809
|
+
GetWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
26810
|
+
GetWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
26811
|
+
GetWaaSEndpointCircuit200ResponseDataToJSON,
|
|
26812
|
+
GetWaaSEndpointCircuit200ResponseDataToJSONTyped,
|
|
26813
|
+
GetWaaSEndpointCircuit200ResponseFromJSON,
|
|
26814
|
+
GetWaaSEndpointCircuit200ResponseFromJSONTyped,
|
|
26815
|
+
GetWaaSEndpointCircuit200ResponseToJSON,
|
|
26816
|
+
GetWaaSEndpointCircuit200ResponseToJSONTyped,
|
|
26817
|
+
GetWaaSEndpointMetrics200ResponseDataFromJSON,
|
|
26818
|
+
GetWaaSEndpointMetrics200ResponseDataFromJSONTyped,
|
|
26819
|
+
GetWaaSEndpointMetrics200ResponseDataHealthFromJSON,
|
|
26820
|
+
GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped,
|
|
26821
|
+
GetWaaSEndpointMetrics200ResponseDataHealthStatusEnum,
|
|
26822
|
+
GetWaaSEndpointMetrics200ResponseDataHealthToJSON,
|
|
26823
|
+
GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped,
|
|
26824
|
+
GetWaaSEndpointMetrics200ResponseDataToJSON,
|
|
26825
|
+
GetWaaSEndpointMetrics200ResponseDataToJSONTyped,
|
|
26826
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON,
|
|
26827
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped,
|
|
26828
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON,
|
|
26829
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped,
|
|
26830
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueWindowEnum,
|
|
26831
|
+
GetWaaSEndpointMetrics200ResponseFromJSON,
|
|
26832
|
+
GetWaaSEndpointMetrics200ResponseFromJSONTyped,
|
|
26833
|
+
GetWaaSEndpointMetrics200ResponseToJSON,
|
|
26834
|
+
GetWaaSEndpointMetrics200ResponseToJSONTyped,
|
|
25418
26835
|
GetWaaSUsage200ResponseFromJSON,
|
|
25419
26836
|
GetWaaSUsage200ResponseFromJSONTyped,
|
|
25420
26837
|
GetWaaSUsage200ResponseToJSON,
|
|
@@ -25474,6 +26891,14 @@ export {
|
|
|
25474
26891
|
InboxNotificationResponseFromJSONTyped,
|
|
25475
26892
|
InboxNotificationResponseToJSON,
|
|
25476
26893
|
InboxNotificationResponseToJSONTyped,
|
|
26894
|
+
InviteEndUser200ResponseDataFromJSON,
|
|
26895
|
+
InviteEndUser200ResponseDataFromJSONTyped,
|
|
26896
|
+
InviteEndUser200ResponseDataToJSON,
|
|
26897
|
+
InviteEndUser200ResponseDataToJSONTyped,
|
|
26898
|
+
InviteEndUser200ResponseFromJSON,
|
|
26899
|
+
InviteEndUser200ResponseFromJSONTyped,
|
|
26900
|
+
InviteEndUser200ResponseToJSON,
|
|
26901
|
+
InviteEndUser200ResponseToJSONTyped,
|
|
25477
26902
|
InviteEndUserRequestFromJSON,
|
|
25478
26903
|
InviteEndUserRequestFromJSONTyped,
|
|
25479
26904
|
InviteEndUserRequestSendLinkEnum,
|
|
@@ -25483,6 +26908,14 @@ export {
|
|
|
25483
26908
|
ListAllInboxStatusEnum,
|
|
25484
26909
|
ListDevicesPlatformEnum,
|
|
25485
26910
|
ListEmailsStatusEnum,
|
|
26911
|
+
ListEndUsers200ResponseFromJSON,
|
|
26912
|
+
ListEndUsers200ResponseFromJSONTyped,
|
|
26913
|
+
ListEndUsers200ResponseMetaFromJSON,
|
|
26914
|
+
ListEndUsers200ResponseMetaFromJSONTyped,
|
|
26915
|
+
ListEndUsers200ResponseMetaToJSON,
|
|
26916
|
+
ListEndUsers200ResponseMetaToJSONTyped,
|
|
26917
|
+
ListEndUsers200ResponseToJSON,
|
|
26918
|
+
ListEndUsers200ResponseToJSONTyped,
|
|
25486
26919
|
ListEndUsersEnvironmentEnum,
|
|
25487
26920
|
ListInboundEmailsStatusEnum,
|
|
25488
26921
|
ListPushStatusEnum,
|
|
@@ -25512,10 +26945,6 @@ export {
|
|
|
25512
26945
|
ListWebhookDeliveriesStatusEnum,
|
|
25513
26946
|
ListWorkflowExecutions200ResponseFromJSON,
|
|
25514
26947
|
ListWorkflowExecutions200ResponseFromJSONTyped,
|
|
25515
|
-
ListWorkflowExecutions200ResponseMetaFromJSON,
|
|
25516
|
-
ListWorkflowExecutions200ResponseMetaFromJSONTyped,
|
|
25517
|
-
ListWorkflowExecutions200ResponseMetaToJSON,
|
|
25518
|
-
ListWorkflowExecutions200ResponseMetaToJSONTyped,
|
|
25519
26948
|
ListWorkflowExecutions200ResponseToJSON,
|
|
25520
26949
|
ListWorkflowExecutions200ResponseToJSONTyped,
|
|
25521
26950
|
ListWorkflows200ResponseFromJSON,
|
|
@@ -25558,6 +26987,10 @@ export {
|
|
|
25558
26987
|
MarkAllReadResponseFromJSONTyped,
|
|
25559
26988
|
MarkAllReadResponseToJSON,
|
|
25560
26989
|
MarkAllReadResponseToJSONTyped,
|
|
26990
|
+
MarkAllSubscriberNotificationsRead200ResponseFromJSON,
|
|
26991
|
+
MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped,
|
|
26992
|
+
MarkAllSubscriberNotificationsRead200ResponseToJSON,
|
|
26993
|
+
MarkAllSubscriberNotificationsRead200ResponseToJSONTyped,
|
|
25561
26994
|
MarkAllSubscriberNotificationsReadRequestFromJSON,
|
|
25562
26995
|
MarkAllSubscriberNotificationsReadRequestFromJSONTyped,
|
|
25563
26996
|
MarkAllSubscriberNotificationsReadRequestToJSON,
|
|
@@ -25955,6 +27388,14 @@ export {
|
|
|
25955
27388
|
RevokeSessionRequestFromJSONTyped,
|
|
25956
27389
|
RevokeSessionRequestToJSON,
|
|
25957
27390
|
RevokeSessionRequestToJSONTyped,
|
|
27391
|
+
RotateWaaSEndpointSecret200ResponseDataFromJSON,
|
|
27392
|
+
RotateWaaSEndpointSecret200ResponseDataFromJSONTyped,
|
|
27393
|
+
RotateWaaSEndpointSecret200ResponseDataToJSON,
|
|
27394
|
+
RotateWaaSEndpointSecret200ResponseDataToJSONTyped,
|
|
27395
|
+
RotateWaaSEndpointSecret200ResponseFromJSON,
|
|
27396
|
+
RotateWaaSEndpointSecret200ResponseFromJSONTyped,
|
|
27397
|
+
RotateWaaSEndpointSecret200ResponseToJSON,
|
|
27398
|
+
RotateWaaSEndpointSecret200ResponseToJSONTyped,
|
|
25958
27399
|
SDK_VERSION,
|
|
25959
27400
|
SMSApi,
|
|
25960
27401
|
SendBatchEmailRequestFromJSON,
|
|
@@ -26087,6 +27528,18 @@ export {
|
|
|
26087
27528
|
SendSmsResponseFromJSONTyped,
|
|
26088
27529
|
SendSmsResponseToJSON,
|
|
26089
27530
|
SendSmsResponseToJSONTyped,
|
|
27531
|
+
SendTemplateTestEmail202ResponseDataFromJSON,
|
|
27532
|
+
SendTemplateTestEmail202ResponseDataFromJSONTyped,
|
|
27533
|
+
SendTemplateTestEmail202ResponseDataToJSON,
|
|
27534
|
+
SendTemplateTestEmail202ResponseDataToJSONTyped,
|
|
27535
|
+
SendTemplateTestEmail202ResponseFromJSON,
|
|
27536
|
+
SendTemplateTestEmail202ResponseFromJSONTyped,
|
|
27537
|
+
SendTemplateTestEmail202ResponseMetaFromJSON,
|
|
27538
|
+
SendTemplateTestEmail202ResponseMetaFromJSONTyped,
|
|
27539
|
+
SendTemplateTestEmail202ResponseMetaToJSON,
|
|
27540
|
+
SendTemplateTestEmail202ResponseMetaToJSONTyped,
|
|
27541
|
+
SendTemplateTestEmail202ResponseToJSON,
|
|
27542
|
+
SendTemplateTestEmail202ResponseToJSONTyped,
|
|
26090
27543
|
SendTemplateTestEmailRequestFromJSON,
|
|
26091
27544
|
SendTemplateTestEmailRequestFromJSONTyped,
|
|
26092
27545
|
SendTemplateTestEmailRequestToJSON,
|
|
@@ -26408,6 +27861,19 @@ export {
|
|
|
26408
27861
|
UpdateOrganizationRequestFromJSONTyped,
|
|
26409
27862
|
UpdateOrganizationRequestToJSON,
|
|
26410
27863
|
UpdateOrganizationRequestToJSONTyped,
|
|
27864
|
+
UpdateSubscriberPreferences200ResponseDataFromJSON,
|
|
27865
|
+
UpdateSubscriberPreferences200ResponseDataFromJSONTyped,
|
|
27866
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerChannelEnum,
|
|
27867
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON,
|
|
27868
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped,
|
|
27869
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON,
|
|
27870
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped,
|
|
27871
|
+
UpdateSubscriberPreferences200ResponseDataToJSON,
|
|
27872
|
+
UpdateSubscriberPreferences200ResponseDataToJSONTyped,
|
|
27873
|
+
UpdateSubscriberPreferences200ResponseFromJSON,
|
|
27874
|
+
UpdateSubscriberPreferences200ResponseFromJSONTyped,
|
|
27875
|
+
UpdateSubscriberPreferences200ResponseToJSON,
|
|
27876
|
+
UpdateSubscriberPreferences200ResponseToJSONTyped,
|
|
26411
27877
|
UpdateSubscriberPreferencesRequestFromJSON,
|
|
26412
27878
|
UpdateSubscriberPreferencesRequestFromJSONTyped,
|
|
26413
27879
|
UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
|
|
@@ -26435,11 +27901,19 @@ export {
|
|
|
26435
27901
|
UpdateWaaSApplicationRequestStatusEnum,
|
|
26436
27902
|
UpdateWaaSApplicationRequestToJSON,
|
|
26437
27903
|
UpdateWaaSApplicationRequestToJSONTyped,
|
|
27904
|
+
UpdateWaaSEndpoint200ResponseFromJSON,
|
|
27905
|
+
UpdateWaaSEndpoint200ResponseFromJSONTyped,
|
|
27906
|
+
UpdateWaaSEndpoint200ResponseToJSON,
|
|
27907
|
+
UpdateWaaSEndpoint200ResponseToJSONTyped,
|
|
26438
27908
|
UpdateWaaSEndpointRequestFromJSON,
|
|
26439
27909
|
UpdateWaaSEndpointRequestFromJSONTyped,
|
|
26440
27910
|
UpdateWaaSEndpointRequestStatusEnum,
|
|
26441
27911
|
UpdateWaaSEndpointRequestToJSON,
|
|
26442
27912
|
UpdateWaaSEndpointRequestToJSONTyped,
|
|
27913
|
+
UpdateWaaSEventType200ResponseFromJSON,
|
|
27914
|
+
UpdateWaaSEventType200ResponseFromJSONTyped,
|
|
27915
|
+
UpdateWaaSEventType200ResponseToJSON,
|
|
27916
|
+
UpdateWaaSEventType200ResponseToJSONTyped,
|
|
26443
27917
|
UpdateWaaSEventTypeRequestFromJSON,
|
|
26444
27918
|
UpdateWaaSEventTypeRequestFromJSONTyped,
|
|
26445
27919
|
UpdateWaaSEventTypeRequestToJSON,
|
|
@@ -26860,6 +28334,8 @@ export {
|
|
|
26860
28334
|
instanceOfApiError,
|
|
26861
28335
|
instanceOfApiErrorError,
|
|
26862
28336
|
instanceOfApiErrorMeta,
|
|
28337
|
+
instanceOfApplicationSelf,
|
|
28338
|
+
instanceOfApplicationSelfResponse,
|
|
26863
28339
|
instanceOfAuthEmailTemplate,
|
|
26864
28340
|
instanceOfAuthEmailTemplateDefault,
|
|
26865
28341
|
instanceOfAuthEmailTemplateDefaultResponse,
|
|
@@ -26880,6 +28356,7 @@ export {
|
|
|
26880
28356
|
instanceOfAuthLoginResponse,
|
|
26881
28357
|
instanceOfAuthLoginResult,
|
|
26882
28358
|
instanceOfAuthLoginResultMfaChallenge,
|
|
28359
|
+
instanceOfAuthMethods,
|
|
26883
28360
|
instanceOfAuthResult,
|
|
26884
28361
|
instanceOfAuthResultResponse,
|
|
26885
28362
|
instanceOfAuthSession,
|
|
@@ -26895,6 +28372,8 @@ export {
|
|
|
26895
28372
|
instanceOfCategory,
|
|
26896
28373
|
instanceOfCategoryListResponse,
|
|
26897
28374
|
instanceOfCategoryResponse,
|
|
28375
|
+
instanceOfCloseWaaSEndpointCircuit200Response,
|
|
28376
|
+
instanceOfCloseWaaSEndpointCircuit200ResponseData,
|
|
26898
28377
|
instanceOfConfirmEmailVerificationRequest,
|
|
26899
28378
|
instanceOfConfirmEmailVerificationResponse,
|
|
26900
28379
|
instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -26970,7 +28449,26 @@ export {
|
|
|
26970
28449
|
instanceOfGenerateWaaSPortalToken201Response,
|
|
26971
28450
|
instanceOfGetDomain200Response,
|
|
26972
28451
|
instanceOfGetDomain200ResponseMeta,
|
|
28452
|
+
instanceOfGetEndUserAuthMethods200Response,
|
|
28453
|
+
instanceOfGetEndUserById200Response,
|
|
28454
|
+
instanceOfGetEndUserClaims200Response,
|
|
28455
|
+
instanceOfGetEndUserClaims200ResponseData,
|
|
28456
|
+
instanceOfGetSubscriberInboxPreferences200Response,
|
|
28457
|
+
instanceOfGetSubscriberInboxPreferences200ResponseData,
|
|
28458
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInner,
|
|
28459
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory,
|
|
28460
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataGlobal,
|
|
28461
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner,
|
|
28462
|
+
instanceOfGetSubscriberNotification200Response,
|
|
28463
|
+
instanceOfGetSubscriberUnreadCount200Response,
|
|
28464
|
+
instanceOfGetWaaSDelivery200Response,
|
|
26973
28465
|
instanceOfGetWaaSEndpoint200Response,
|
|
28466
|
+
instanceOfGetWaaSEndpointCircuit200Response,
|
|
28467
|
+
instanceOfGetWaaSEndpointCircuit200ResponseData,
|
|
28468
|
+
instanceOfGetWaaSEndpointMetrics200Response,
|
|
28469
|
+
instanceOfGetWaaSEndpointMetrics200ResponseData,
|
|
28470
|
+
instanceOfGetWaaSEndpointMetrics200ResponseDataHealth,
|
|
28471
|
+
instanceOfGetWaaSEndpointMetrics200ResponseDataWindowsValue,
|
|
26974
28472
|
instanceOfGetWaaSUsage200Response,
|
|
26975
28473
|
instanceOfInAppNotification,
|
|
26976
28474
|
instanceOfInboundAttachmentUrlResponse,
|
|
@@ -26984,13 +28482,16 @@ export {
|
|
|
26984
28482
|
instanceOfInboxListMeta,
|
|
26985
28483
|
instanceOfInboxListResponse,
|
|
26986
28484
|
instanceOfInboxNotificationResponse,
|
|
28485
|
+
instanceOfInviteEndUser200Response,
|
|
28486
|
+
instanceOfInviteEndUser200ResponseData,
|
|
26987
28487
|
instanceOfInviteEndUserRequest,
|
|
28488
|
+
instanceOfListEndUsers200Response,
|
|
28489
|
+
instanceOfListEndUsers200ResponseMeta,
|
|
26988
28490
|
instanceOfListWaaSApplications200Response,
|
|
26989
28491
|
instanceOfListWaaSEndpointDeliveries200Response,
|
|
26990
28492
|
instanceOfListWaaSEndpoints200Response,
|
|
26991
28493
|
instanceOfListWaaSEventTypes200Response,
|
|
26992
28494
|
instanceOfListWorkflowExecutions200Response,
|
|
26993
|
-
instanceOfListWorkflowExecutions200ResponseMeta,
|
|
26994
28495
|
instanceOfListWorkflows200Response,
|
|
26995
28496
|
instanceOfListWorkflows200ResponseMeta,
|
|
26996
28497
|
instanceOfLoginRequest,
|
|
@@ -27001,6 +28502,7 @@ export {
|
|
|
27001
28502
|
instanceOfMarkAllInboxReadRequest,
|
|
27002
28503
|
instanceOfMarkAllReadData,
|
|
27003
28504
|
instanceOfMarkAllReadResponse,
|
|
28505
|
+
instanceOfMarkAllSubscriberNotificationsRead200Response,
|
|
27004
28506
|
instanceOfMarkAllSubscriberNotificationsReadRequest,
|
|
27005
28507
|
instanceOfMarkInboxReadRequest,
|
|
27006
28508
|
instanceOfMfaBackupCodesResponse,
|
|
@@ -27097,6 +28599,8 @@ export {
|
|
|
27097
28599
|
instanceOfRevokeAllSessionsResponse,
|
|
27098
28600
|
instanceOfRevokeAllSessionsResponseData,
|
|
27099
28601
|
instanceOfRevokeSessionRequest,
|
|
28602
|
+
instanceOfRotateWaaSEndpointSecret200Response,
|
|
28603
|
+
instanceOfRotateWaaSEndpointSecret200ResponseData,
|
|
27100
28604
|
instanceOfSendBatchEmailRequest,
|
|
27101
28605
|
instanceOfSendBatchEmailResponse,
|
|
27102
28606
|
instanceOfSendBatchEmailResult,
|
|
@@ -27129,6 +28633,9 @@ export {
|
|
|
27129
28633
|
instanceOfSendSmsData,
|
|
27130
28634
|
instanceOfSendSmsRequest,
|
|
27131
28635
|
instanceOfSendSmsResponse,
|
|
28636
|
+
instanceOfSendTemplateTestEmail202Response,
|
|
28637
|
+
instanceOfSendTemplateTestEmail202ResponseData,
|
|
28638
|
+
instanceOfSendTemplateTestEmail202ResponseMeta,
|
|
27132
28639
|
instanceOfSendTemplateTestEmailRequest,
|
|
27133
28640
|
instanceOfSendTestSmsData,
|
|
27134
28641
|
instanceOfSendTestSmsRequest,
|
|
@@ -27206,13 +28713,18 @@ export {
|
|
|
27206
28713
|
instanceOfUpdateEndUserRequest,
|
|
27207
28714
|
instanceOfUpdateOrganizationMemberRoleRequest,
|
|
27208
28715
|
instanceOfUpdateOrganizationRequest,
|
|
28716
|
+
instanceOfUpdateSubscriberPreferences200Response,
|
|
28717
|
+
instanceOfUpdateSubscriberPreferences200ResponseData,
|
|
28718
|
+
instanceOfUpdateSubscriberPreferences200ResponseDataPreferencesInner,
|
|
27209
28719
|
instanceOfUpdateSubscriberPreferencesRequest,
|
|
27210
28720
|
instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
|
|
27211
28721
|
instanceOfUpdateSubscriberRequest,
|
|
27212
28722
|
instanceOfUpdateTemplateRequest,
|
|
27213
28723
|
instanceOfUpdateTopicRequest,
|
|
27214
28724
|
instanceOfUpdateWaaSApplicationRequest,
|
|
28725
|
+
instanceOfUpdateWaaSEndpoint200Response,
|
|
27215
28726
|
instanceOfUpdateWaaSEndpointRequest,
|
|
28727
|
+
instanceOfUpdateWaaSEventType200Response,
|
|
27216
28728
|
instanceOfUpdateWaaSEventTypeRequest,
|
|
27217
28729
|
instanceOfUpdateWebhookRequest,
|
|
27218
28730
|
instanceOfUpdateWorkflowRequest,
|