@zyphr-dev/node-sdk 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1912 -392
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2055 -501
- package/dist/index.d.ts +2055 -501
- package/dist/index.js +1721 -387
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +37 -1
- package/src/client.ts +4 -0
- package/src/src/apis/AuthUserDirectoryApi.ts +68 -46
- package/src/src/apis/DomainsApi.ts +7 -6
- package/src/src/apis/InboxApi.ts +82 -58
- 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/models/CloseWaaSEndpointCircuit200Response.ts +88 -0
- package/src/src/models/CloseWaaSEndpointCircuit200ResponseData.ts +76 -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/SetEndUserClaims200Response.ts +73 -0
- package/src/src/models/SetEndUserClaims200ResponseData.ts +73 -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 +37 -1
package/dist/index.js
CHANGED
|
@@ -2087,6 +2087,93 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2087
2087
|
};
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
|
+
// src/src/models/GetDomain200ResponseMeta.ts
|
|
2091
|
+
function instanceOfGetDomain200ResponseMeta(value) {
|
|
2092
|
+
return true;
|
|
2093
|
+
}
|
|
2094
|
+
function GetDomain200ResponseMetaFromJSON(json) {
|
|
2095
|
+
return GetDomain200ResponseMetaFromJSONTyped(json, false);
|
|
2096
|
+
}
|
|
2097
|
+
function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
2098
|
+
if (json == null) {
|
|
2099
|
+
return json;
|
|
2100
|
+
}
|
|
2101
|
+
return {
|
|
2102
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
2103
|
+
};
|
|
2104
|
+
}
|
|
2105
|
+
function GetDomain200ResponseMetaToJSON(json) {
|
|
2106
|
+
return GetDomain200ResponseMetaToJSONTyped(json, false);
|
|
2107
|
+
}
|
|
2108
|
+
function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2109
|
+
if (value == null) {
|
|
2110
|
+
return value;
|
|
2111
|
+
}
|
|
2112
|
+
return {
|
|
2113
|
+
"request_id": value["requestId"]
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
// src/src/models/CloseWaaSEndpointCircuit200ResponseData.ts
|
|
2118
|
+
var CloseWaaSEndpointCircuit200ResponseDataStateEnum = {
|
|
2119
|
+
CLOSED: "closed"
|
|
2120
|
+
};
|
|
2121
|
+
function instanceOfCloseWaaSEndpointCircuit200ResponseData(value) {
|
|
2122
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
2123
|
+
return true;
|
|
2124
|
+
}
|
|
2125
|
+
function CloseWaaSEndpointCircuit200ResponseDataFromJSON(json) {
|
|
2126
|
+
return CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, false);
|
|
2127
|
+
}
|
|
2128
|
+
function CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
2129
|
+
if (json == null) {
|
|
2130
|
+
return json;
|
|
2131
|
+
}
|
|
2132
|
+
return {
|
|
2133
|
+
"state": json["state"]
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
function CloseWaaSEndpointCircuit200ResponseDataToJSON(json) {
|
|
2137
|
+
return CloseWaaSEndpointCircuit200ResponseDataToJSONTyped(json, false);
|
|
2138
|
+
}
|
|
2139
|
+
function CloseWaaSEndpointCircuit200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2140
|
+
if (value == null) {
|
|
2141
|
+
return value;
|
|
2142
|
+
}
|
|
2143
|
+
return {
|
|
2144
|
+
"state": value["state"]
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
// src/src/models/CloseWaaSEndpointCircuit200Response.ts
|
|
2149
|
+
function instanceOfCloseWaaSEndpointCircuit200Response(value) {
|
|
2150
|
+
return true;
|
|
2151
|
+
}
|
|
2152
|
+
function CloseWaaSEndpointCircuit200ResponseFromJSON(json) {
|
|
2153
|
+
return CloseWaaSEndpointCircuit200ResponseFromJSONTyped(json, false);
|
|
2154
|
+
}
|
|
2155
|
+
function CloseWaaSEndpointCircuit200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2156
|
+
if (json == null) {
|
|
2157
|
+
return json;
|
|
2158
|
+
}
|
|
2159
|
+
return {
|
|
2160
|
+
"data": json["data"] == null ? void 0 : CloseWaaSEndpointCircuit200ResponseDataFromJSON(json["data"]),
|
|
2161
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
2162
|
+
};
|
|
2163
|
+
}
|
|
2164
|
+
function CloseWaaSEndpointCircuit200ResponseToJSON(json) {
|
|
2165
|
+
return CloseWaaSEndpointCircuit200ResponseToJSONTyped(json, false);
|
|
2166
|
+
}
|
|
2167
|
+
function CloseWaaSEndpointCircuit200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2168
|
+
if (value == null) {
|
|
2169
|
+
return value;
|
|
2170
|
+
}
|
|
2171
|
+
return {
|
|
2172
|
+
"data": CloseWaaSEndpointCircuit200ResponseDataToJSON(value["data"]),
|
|
2173
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2090
2177
|
// src/src/models/ConfirmEmailVerificationRequest.ts
|
|
2091
2178
|
function instanceOfConfirmEmailVerificationRequest(value) {
|
|
2092
2179
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -3351,33 +3438,6 @@ function CreateWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
3351
3438
|
};
|
|
3352
3439
|
}
|
|
3353
3440
|
|
|
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
3441
|
// src/src/models/DeleteDomainResponseData.ts
|
|
3382
3442
|
function instanceOfDeleteDomainResponseData(value) {
|
|
3383
3443
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
@@ -4946,267 +5006,922 @@ function GetDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4946
5006
|
};
|
|
4947
5007
|
}
|
|
4948
5008
|
|
|
4949
|
-
// src/src/models/
|
|
4950
|
-
|
|
4951
|
-
ACTIVE: "active",
|
|
4952
|
-
PAUSED: "paused",
|
|
4953
|
-
DISABLED: "disabled"
|
|
4954
|
-
};
|
|
4955
|
-
function instanceOfWaaSEndpoint(value) {
|
|
5009
|
+
// src/src/models/GetEndUserById200Response.ts
|
|
5010
|
+
function instanceOfGetEndUserById200Response(value) {
|
|
4956
5011
|
return true;
|
|
4957
5012
|
}
|
|
4958
|
-
function
|
|
4959
|
-
return
|
|
5013
|
+
function GetEndUserById200ResponseFromJSON(json) {
|
|
5014
|
+
return GetEndUserById200ResponseFromJSONTyped(json, false);
|
|
4960
5015
|
}
|
|
4961
|
-
function
|
|
5016
|
+
function GetEndUserById200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4962
5017
|
if (json == null) {
|
|
4963
5018
|
return json;
|
|
4964
5019
|
}
|
|
4965
5020
|
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"])
|
|
5021
|
+
"data": json["data"] == null ? void 0 : AuthUserFromJSON(json["data"]),
|
|
5022
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
4974
5023
|
};
|
|
4975
5024
|
}
|
|
4976
|
-
function
|
|
4977
|
-
return
|
|
5025
|
+
function GetEndUserById200ResponseToJSON(json) {
|
|
5026
|
+
return GetEndUserById200ResponseToJSONTyped(json, false);
|
|
4978
5027
|
}
|
|
4979
|
-
function
|
|
5028
|
+
function GetEndUserById200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4980
5029
|
if (value == null) {
|
|
4981
5030
|
return value;
|
|
4982
5031
|
}
|
|
4983
5032
|
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()
|
|
5033
|
+
"data": AuthUserToJSON(value["data"]),
|
|
5034
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
4992
5035
|
};
|
|
4993
5036
|
}
|
|
4994
5037
|
|
|
4995
|
-
// src/src/models/
|
|
4996
|
-
function
|
|
5038
|
+
// src/src/models/GetEndUserClaims200ResponseData.ts
|
|
5039
|
+
function instanceOfGetEndUserClaims200ResponseData(value) {
|
|
4997
5040
|
return true;
|
|
4998
5041
|
}
|
|
4999
|
-
function
|
|
5000
|
-
return
|
|
5042
|
+
function GetEndUserClaims200ResponseDataFromJSON(json) {
|
|
5043
|
+
return GetEndUserClaims200ResponseDataFromJSONTyped(json, false);
|
|
5001
5044
|
}
|
|
5002
|
-
function
|
|
5045
|
+
function GetEndUserClaims200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5003
5046
|
if (json == null) {
|
|
5004
5047
|
return json;
|
|
5005
5048
|
}
|
|
5006
5049
|
return {
|
|
5007
|
-
"
|
|
5050
|
+
"claims": json["claims"] == null ? void 0 : json["claims"]
|
|
5008
5051
|
};
|
|
5009
5052
|
}
|
|
5010
|
-
function
|
|
5011
|
-
return
|
|
5053
|
+
function GetEndUserClaims200ResponseDataToJSON(json) {
|
|
5054
|
+
return GetEndUserClaims200ResponseDataToJSONTyped(json, false);
|
|
5012
5055
|
}
|
|
5013
|
-
function
|
|
5056
|
+
function GetEndUserClaims200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5014
5057
|
if (value == null) {
|
|
5015
5058
|
return value;
|
|
5016
5059
|
}
|
|
5017
5060
|
return {
|
|
5018
|
-
"
|
|
5061
|
+
"claims": value["claims"]
|
|
5019
5062
|
};
|
|
5020
5063
|
}
|
|
5021
5064
|
|
|
5022
|
-
// src/src/models/
|
|
5023
|
-
function
|
|
5065
|
+
// src/src/models/GetEndUserClaims200Response.ts
|
|
5066
|
+
function instanceOfGetEndUserClaims200Response(value) {
|
|
5024
5067
|
return true;
|
|
5025
5068
|
}
|
|
5026
|
-
function
|
|
5027
|
-
return
|
|
5069
|
+
function GetEndUserClaims200ResponseFromJSON(json) {
|
|
5070
|
+
return GetEndUserClaims200ResponseFromJSONTyped(json, false);
|
|
5028
5071
|
}
|
|
5029
|
-
function
|
|
5072
|
+
function GetEndUserClaims200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5030
5073
|
if (json == null) {
|
|
5031
5074
|
return json;
|
|
5032
5075
|
}
|
|
5033
5076
|
return {
|
|
5034
|
-
"
|
|
5035
|
-
"
|
|
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"]
|
|
5077
|
+
"data": json["data"] == null ? void 0 : GetEndUserClaims200ResponseDataFromJSON(json["data"]),
|
|
5078
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5040
5079
|
};
|
|
5041
5080
|
}
|
|
5042
|
-
function
|
|
5043
|
-
return
|
|
5081
|
+
function GetEndUserClaims200ResponseToJSON(json) {
|
|
5082
|
+
return GetEndUserClaims200ResponseToJSONTyped(json, false);
|
|
5044
5083
|
}
|
|
5045
|
-
function
|
|
5084
|
+
function GetEndUserClaims200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5046
5085
|
if (value == null) {
|
|
5047
5086
|
return value;
|
|
5048
5087
|
}
|
|
5049
5088
|
return {
|
|
5050
|
-
"
|
|
5051
|
-
"
|
|
5052
|
-
"endpoints_count": value["endpointsCount"],
|
|
5053
|
-
"endpoints_limit": value["endpointsLimit"],
|
|
5054
|
-
"events_this_month": value["eventsThisMonth"],
|
|
5055
|
-
"events_limit": value["eventsLimit"]
|
|
5089
|
+
"data": GetEndUserClaims200ResponseDataToJSON(value["data"]),
|
|
5090
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5056
5091
|
};
|
|
5057
5092
|
}
|
|
5058
5093
|
|
|
5059
|
-
// src/src/models/
|
|
5060
|
-
function
|
|
5094
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.ts
|
|
5095
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory(value) {
|
|
5061
5096
|
return true;
|
|
5062
5097
|
}
|
|
5063
|
-
function
|
|
5064
|
-
return
|
|
5098
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON(json) {
|
|
5099
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped(json, false);
|
|
5065
5100
|
}
|
|
5066
|
-
function
|
|
5101
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
5067
5102
|
if (json == null) {
|
|
5068
5103
|
return json;
|
|
5069
5104
|
}
|
|
5070
5105
|
return {
|
|
5071
|
-
"
|
|
5106
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5107
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
5108
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
5109
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
5110
|
+
"allowUnsubscribe": json["allow_unsubscribe"] == null ? void 0 : json["allow_unsubscribe"]
|
|
5072
5111
|
};
|
|
5073
5112
|
}
|
|
5074
|
-
function
|
|
5075
|
-
return
|
|
5113
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON(json) {
|
|
5114
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped(json, false);
|
|
5076
5115
|
}
|
|
5077
|
-
function
|
|
5116
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5078
5117
|
if (value == null) {
|
|
5079
5118
|
return value;
|
|
5080
5119
|
}
|
|
5081
5120
|
return {
|
|
5082
|
-
"
|
|
5121
|
+
"id": value["id"],
|
|
5122
|
+
"name": value["name"],
|
|
5123
|
+
"slug": value["slug"],
|
|
5124
|
+
"description": value["description"],
|
|
5125
|
+
"allow_unsubscribe": value["allowUnsubscribe"]
|
|
5083
5126
|
};
|
|
5084
5127
|
}
|
|
5085
5128
|
|
|
5086
|
-
// src/src/models/
|
|
5087
|
-
var
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5129
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.ts
|
|
5130
|
+
var GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerChannelEnum = {
|
|
5131
|
+
EMAIL: "email",
|
|
5132
|
+
PUSH: "push",
|
|
5133
|
+
SMS: "sms",
|
|
5134
|
+
IN_APP: "in_app"
|
|
5092
5135
|
};
|
|
5093
|
-
function
|
|
5136
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner(value) {
|
|
5094
5137
|
return true;
|
|
5095
5138
|
}
|
|
5096
|
-
function
|
|
5097
|
-
return
|
|
5139
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON(json) {
|
|
5140
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped(json, false);
|
|
5098
5141
|
}
|
|
5099
|
-
function
|
|
5142
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5100
5143
|
if (json == null) {
|
|
5101
5144
|
return json;
|
|
5102
5145
|
}
|
|
5103
5146
|
return {
|
|
5104
|
-
"
|
|
5105
|
-
"
|
|
5106
|
-
"
|
|
5107
|
-
"body": json["body"] == null ? void 0 : json["body"],
|
|
5108
|
-
"actionUrl": json["action_url"] == null ? void 0 : json["action_url"],
|
|
5109
|
-
"actionLabel": json["action_label"] == null ? void 0 : json["action_label"],
|
|
5110
|
-
"imageUrl": json["image_url"] == null ? void 0 : json["image_url"],
|
|
5111
|
-
"icon": json["icon"] == null ? void 0 : json["icon"],
|
|
5112
|
-
"category": json["category"] == null ? void 0 : json["category"],
|
|
5113
|
-
"priority": json["priority"] == null ? void 0 : json["priority"],
|
|
5114
|
-
"data": json["data"] == null ? void 0 : json["data"],
|
|
5115
|
-
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
5116
|
-
"readAt": json["read_at"] == null ? void 0 : new Date(json["read_at"]),
|
|
5117
|
-
"archivedAt": json["archived_at"] == null ? void 0 : new Date(json["archived_at"]),
|
|
5118
|
-
"expiresAt": json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5119
|
-
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
5147
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
5148
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"],
|
|
5149
|
+
"source": json["source"] == null ? void 0 : json["source"]
|
|
5120
5150
|
};
|
|
5121
5151
|
}
|
|
5122
|
-
function
|
|
5123
|
-
return
|
|
5152
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON(json) {
|
|
5153
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped(json, false);
|
|
5124
5154
|
}
|
|
5125
|
-
function
|
|
5155
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5126
5156
|
if (value == null) {
|
|
5127
5157
|
return value;
|
|
5128
5158
|
}
|
|
5129
5159
|
return {
|
|
5130
|
-
"
|
|
5131
|
-
"
|
|
5132
|
-
"
|
|
5133
|
-
"body": value["body"],
|
|
5134
|
-
"action_url": value["actionUrl"],
|
|
5135
|
-
"action_label": value["actionLabel"],
|
|
5136
|
-
"image_url": value["imageUrl"],
|
|
5137
|
-
"icon": value["icon"],
|
|
5138
|
-
"category": value["category"],
|
|
5139
|
-
"priority": value["priority"],
|
|
5140
|
-
"data": value["data"],
|
|
5141
|
-
"tags": value["tags"],
|
|
5142
|
-
"read_at": value["readAt"] == null ? void 0 : value["readAt"].toISOString(),
|
|
5143
|
-
"archived_at": value["archivedAt"] == null ? void 0 : value["archivedAt"].toISOString(),
|
|
5144
|
-
"expires_at": value["expiresAt"] == null ? void 0 : value["expiresAt"].toISOString(),
|
|
5145
|
-
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
5160
|
+
"channel": value["channel"],
|
|
5161
|
+
"enabled": value["enabled"],
|
|
5162
|
+
"source": value["source"]
|
|
5146
5163
|
};
|
|
5147
5164
|
}
|
|
5148
5165
|
|
|
5149
|
-
// src/src/models/
|
|
5150
|
-
function
|
|
5166
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.ts
|
|
5167
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInner(value) {
|
|
5151
5168
|
return true;
|
|
5152
5169
|
}
|
|
5153
|
-
function
|
|
5154
|
-
return
|
|
5170
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON(json) {
|
|
5171
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped(json, false);
|
|
5155
5172
|
}
|
|
5156
|
-
function
|
|
5173
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5157
5174
|
if (json == null) {
|
|
5158
5175
|
return json;
|
|
5159
5176
|
}
|
|
5160
5177
|
return {
|
|
5161
|
-
"
|
|
5162
|
-
"
|
|
5163
|
-
"contentType": json["content_type"] == null ? void 0 : json["content_type"]
|
|
5178
|
+
"category": json["category"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON(json["category"]),
|
|
5179
|
+
"channels": json["channels"] == null ? void 0 : json["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON)
|
|
5164
5180
|
};
|
|
5165
5181
|
}
|
|
5166
|
-
function
|
|
5167
|
-
return
|
|
5182
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON(json) {
|
|
5183
|
+
return GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped(json, false);
|
|
5168
5184
|
}
|
|
5169
|
-
function
|
|
5185
|
+
function GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5170
5186
|
if (value == null) {
|
|
5171
5187
|
return value;
|
|
5172
5188
|
}
|
|
5173
5189
|
return {
|
|
5174
|
-
"
|
|
5175
|
-
"
|
|
5176
|
-
"content_type": value["contentType"]
|
|
5190
|
+
"category": GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON(value["category"]),
|
|
5191
|
+
"channels": value["channels"] == null ? void 0 : value["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON)
|
|
5177
5192
|
};
|
|
5178
5193
|
}
|
|
5179
5194
|
|
|
5180
|
-
// src/src/models/
|
|
5181
|
-
function
|
|
5195
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobal.ts
|
|
5196
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseDataGlobal(value) {
|
|
5182
5197
|
return true;
|
|
5183
5198
|
}
|
|
5184
|
-
function
|
|
5185
|
-
return
|
|
5199
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON(json) {
|
|
5200
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped(json, false);
|
|
5186
5201
|
}
|
|
5187
|
-
function
|
|
5202
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped(json, ignoreDiscriminator) {
|
|
5188
5203
|
if (json == null) {
|
|
5189
5204
|
return json;
|
|
5190
5205
|
}
|
|
5191
5206
|
return {
|
|
5192
|
-
"
|
|
5193
|
-
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
5207
|
+
"channels": json["channels"] == null ? void 0 : json["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON)
|
|
5194
5208
|
};
|
|
5195
5209
|
}
|
|
5196
|
-
function
|
|
5197
|
-
return
|
|
5210
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalToJSON(json) {
|
|
5211
|
+
return GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped(json, false);
|
|
5198
5212
|
}
|
|
5199
|
-
function
|
|
5213
|
+
function GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5200
5214
|
if (value == null) {
|
|
5201
5215
|
return value;
|
|
5202
5216
|
}
|
|
5203
5217
|
return {
|
|
5204
|
-
"
|
|
5205
|
-
"meta": RequestMetaToJSON(value["meta"])
|
|
5218
|
+
"channels": value["channels"] == null ? void 0 : value["channels"].map(GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON)
|
|
5206
5219
|
};
|
|
5207
5220
|
}
|
|
5208
5221
|
|
|
5209
|
-
// src/src/models/
|
|
5222
|
+
// src/src/models/GetSubscriberInboxPreferences200ResponseData.ts
|
|
5223
|
+
function instanceOfGetSubscriberInboxPreferences200ResponseData(value) {
|
|
5224
|
+
return true;
|
|
5225
|
+
}
|
|
5226
|
+
function GetSubscriberInboxPreferences200ResponseDataFromJSON(json) {
|
|
5227
|
+
return GetSubscriberInboxPreferences200ResponseDataFromJSONTyped(json, false);
|
|
5228
|
+
}
|
|
5229
|
+
function GetSubscriberInboxPreferences200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5230
|
+
if (json == null) {
|
|
5231
|
+
return json;
|
|
5232
|
+
}
|
|
5233
|
+
return {
|
|
5234
|
+
"global": json["global"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON(json["global"]),
|
|
5235
|
+
"categories": json["categories"] == null ? void 0 : json["categories"].map(GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON)
|
|
5236
|
+
};
|
|
5237
|
+
}
|
|
5238
|
+
function GetSubscriberInboxPreferences200ResponseDataToJSON(json) {
|
|
5239
|
+
return GetSubscriberInboxPreferences200ResponseDataToJSONTyped(json, false);
|
|
5240
|
+
}
|
|
5241
|
+
function GetSubscriberInboxPreferences200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5242
|
+
if (value == null) {
|
|
5243
|
+
return value;
|
|
5244
|
+
}
|
|
5245
|
+
return {
|
|
5246
|
+
"global": GetSubscriberInboxPreferences200ResponseDataGlobalToJSON(value["global"]),
|
|
5247
|
+
"categories": value["categories"] == null ? void 0 : value["categories"].map(GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON)
|
|
5248
|
+
};
|
|
5249
|
+
}
|
|
5250
|
+
|
|
5251
|
+
// src/src/models/GetSubscriberInboxPreferences200Response.ts
|
|
5252
|
+
function instanceOfGetSubscriberInboxPreferences200Response(value) {
|
|
5253
|
+
return true;
|
|
5254
|
+
}
|
|
5255
|
+
function GetSubscriberInboxPreferences200ResponseFromJSON(json) {
|
|
5256
|
+
return GetSubscriberInboxPreferences200ResponseFromJSONTyped(json, false);
|
|
5257
|
+
}
|
|
5258
|
+
function GetSubscriberInboxPreferences200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5259
|
+
if (json == null) {
|
|
5260
|
+
return json;
|
|
5261
|
+
}
|
|
5262
|
+
return {
|
|
5263
|
+
"data": json["data"] == null ? void 0 : GetSubscriberInboxPreferences200ResponseDataFromJSON(json["data"])
|
|
5264
|
+
};
|
|
5265
|
+
}
|
|
5266
|
+
function GetSubscriberInboxPreferences200ResponseToJSON(json) {
|
|
5267
|
+
return GetSubscriberInboxPreferences200ResponseToJSONTyped(json, false);
|
|
5268
|
+
}
|
|
5269
|
+
function GetSubscriberInboxPreferences200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5270
|
+
if (value == null) {
|
|
5271
|
+
return value;
|
|
5272
|
+
}
|
|
5273
|
+
return {
|
|
5274
|
+
"data": GetSubscriberInboxPreferences200ResponseDataToJSON(value["data"])
|
|
5275
|
+
};
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
// src/src/models/InAppNotification.ts
|
|
5279
|
+
var InAppNotificationPriorityEnum = {
|
|
5280
|
+
LOW: "low",
|
|
5281
|
+
NORMAL: "normal",
|
|
5282
|
+
HIGH: "high",
|
|
5283
|
+
URGENT: "urgent"
|
|
5284
|
+
};
|
|
5285
|
+
function instanceOfInAppNotification(value) {
|
|
5286
|
+
return true;
|
|
5287
|
+
}
|
|
5288
|
+
function InAppNotificationFromJSON(json) {
|
|
5289
|
+
return InAppNotificationFromJSONTyped(json, false);
|
|
5290
|
+
}
|
|
5291
|
+
function InAppNotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5292
|
+
if (json == null) {
|
|
5293
|
+
return json;
|
|
5294
|
+
}
|
|
5295
|
+
return {
|
|
5296
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5297
|
+
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
5298
|
+
"title": json["title"] == null ? void 0 : json["title"],
|
|
5299
|
+
"body": json["body"] == null ? void 0 : json["body"],
|
|
5300
|
+
"actionUrl": json["action_url"] == null ? void 0 : json["action_url"],
|
|
5301
|
+
"actionLabel": json["action_label"] == null ? void 0 : json["action_label"],
|
|
5302
|
+
"imageUrl": json["image_url"] == null ? void 0 : json["image_url"],
|
|
5303
|
+
"icon": json["icon"] == null ? void 0 : json["icon"],
|
|
5304
|
+
"category": json["category"] == null ? void 0 : json["category"],
|
|
5305
|
+
"priority": json["priority"] == null ? void 0 : json["priority"],
|
|
5306
|
+
"data": json["data"] == null ? void 0 : json["data"],
|
|
5307
|
+
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
5308
|
+
"readAt": json["read_at"] == null ? void 0 : new Date(json["read_at"]),
|
|
5309
|
+
"archivedAt": json["archived_at"] == null ? void 0 : new Date(json["archived_at"]),
|
|
5310
|
+
"expiresAt": json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5311
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
5312
|
+
};
|
|
5313
|
+
}
|
|
5314
|
+
function InAppNotificationToJSON(json) {
|
|
5315
|
+
return InAppNotificationToJSONTyped(json, false);
|
|
5316
|
+
}
|
|
5317
|
+
function InAppNotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5318
|
+
if (value == null) {
|
|
5319
|
+
return value;
|
|
5320
|
+
}
|
|
5321
|
+
return {
|
|
5322
|
+
"id": value["id"],
|
|
5323
|
+
"subscriber_id": value["subscriberId"],
|
|
5324
|
+
"title": value["title"],
|
|
5325
|
+
"body": value["body"],
|
|
5326
|
+
"action_url": value["actionUrl"],
|
|
5327
|
+
"action_label": value["actionLabel"],
|
|
5328
|
+
"image_url": value["imageUrl"],
|
|
5329
|
+
"icon": value["icon"],
|
|
5330
|
+
"category": value["category"],
|
|
5331
|
+
"priority": value["priority"],
|
|
5332
|
+
"data": value["data"],
|
|
5333
|
+
"tags": value["tags"],
|
|
5334
|
+
"read_at": value["readAt"] == null ? void 0 : value["readAt"].toISOString(),
|
|
5335
|
+
"archived_at": value["archivedAt"] == null ? void 0 : value["archivedAt"].toISOString(),
|
|
5336
|
+
"expires_at": value["expiresAt"] == null ? void 0 : value["expiresAt"].toISOString(),
|
|
5337
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
5338
|
+
};
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
// src/src/models/GetSubscriberNotification200Response.ts
|
|
5342
|
+
function instanceOfGetSubscriberNotification200Response(value) {
|
|
5343
|
+
return true;
|
|
5344
|
+
}
|
|
5345
|
+
function GetSubscriberNotification200ResponseFromJSON(json) {
|
|
5346
|
+
return GetSubscriberNotification200ResponseFromJSONTyped(json, false);
|
|
5347
|
+
}
|
|
5348
|
+
function GetSubscriberNotification200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5349
|
+
if (json == null) {
|
|
5350
|
+
return json;
|
|
5351
|
+
}
|
|
5352
|
+
return {
|
|
5353
|
+
"data": json["data"] == null ? void 0 : InAppNotificationFromJSON(json["data"])
|
|
5354
|
+
};
|
|
5355
|
+
}
|
|
5356
|
+
function GetSubscriberNotification200ResponseToJSON(json) {
|
|
5357
|
+
return GetSubscriberNotification200ResponseToJSONTyped(json, false);
|
|
5358
|
+
}
|
|
5359
|
+
function GetSubscriberNotification200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5360
|
+
if (value == null) {
|
|
5361
|
+
return value;
|
|
5362
|
+
}
|
|
5363
|
+
return {
|
|
5364
|
+
"data": InAppNotificationToJSON(value["data"])
|
|
5365
|
+
};
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
// src/src/models/UnreadCountData.ts
|
|
5369
|
+
function instanceOfUnreadCountData(value) {
|
|
5370
|
+
return true;
|
|
5371
|
+
}
|
|
5372
|
+
function UnreadCountDataFromJSON(json) {
|
|
5373
|
+
return UnreadCountDataFromJSONTyped(json, false);
|
|
5374
|
+
}
|
|
5375
|
+
function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5376
|
+
if (json == null) {
|
|
5377
|
+
return json;
|
|
5378
|
+
}
|
|
5379
|
+
return {
|
|
5380
|
+
"unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
|
|
5381
|
+
};
|
|
5382
|
+
}
|
|
5383
|
+
function UnreadCountDataToJSON(json) {
|
|
5384
|
+
return UnreadCountDataToJSONTyped(json, false);
|
|
5385
|
+
}
|
|
5386
|
+
function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5387
|
+
if (value == null) {
|
|
5388
|
+
return value;
|
|
5389
|
+
}
|
|
5390
|
+
return {
|
|
5391
|
+
"unread_count": value["unreadCount"]
|
|
5392
|
+
};
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
// src/src/models/GetSubscriberUnreadCount200Response.ts
|
|
5396
|
+
function instanceOfGetSubscriberUnreadCount200Response(value) {
|
|
5397
|
+
return true;
|
|
5398
|
+
}
|
|
5399
|
+
function GetSubscriberUnreadCount200ResponseFromJSON(json) {
|
|
5400
|
+
return GetSubscriberUnreadCount200ResponseFromJSONTyped(json, false);
|
|
5401
|
+
}
|
|
5402
|
+
function GetSubscriberUnreadCount200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5403
|
+
if (json == null) {
|
|
5404
|
+
return json;
|
|
5405
|
+
}
|
|
5406
|
+
return {
|
|
5407
|
+
"data": json["data"] == null ? void 0 : UnreadCountDataFromJSON(json["data"])
|
|
5408
|
+
};
|
|
5409
|
+
}
|
|
5410
|
+
function GetSubscriberUnreadCount200ResponseToJSON(json) {
|
|
5411
|
+
return GetSubscriberUnreadCount200ResponseToJSONTyped(json, false);
|
|
5412
|
+
}
|
|
5413
|
+
function GetSubscriberUnreadCount200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5414
|
+
if (value == null) {
|
|
5415
|
+
return value;
|
|
5416
|
+
}
|
|
5417
|
+
return {
|
|
5418
|
+
"data": UnreadCountDataToJSON(value["data"])
|
|
5419
|
+
};
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5422
|
+
// src/src/models/WaaSDelivery.ts
|
|
5423
|
+
var WaaSDeliveryStatusEnum = {
|
|
5424
|
+
PENDING: "pending",
|
|
5425
|
+
DELIVERING: "delivering",
|
|
5426
|
+
DELIVERED: "delivered",
|
|
5427
|
+
FAILED: "failed",
|
|
5428
|
+
RETRYING: "retrying",
|
|
5429
|
+
EXHAUSTED: "exhausted"
|
|
5430
|
+
};
|
|
5431
|
+
function instanceOfWaaSDelivery(value) {
|
|
5432
|
+
return true;
|
|
5433
|
+
}
|
|
5434
|
+
function WaaSDeliveryFromJSON(json) {
|
|
5435
|
+
return WaaSDeliveryFromJSONTyped(json, false);
|
|
5436
|
+
}
|
|
5437
|
+
function WaaSDeliveryFromJSONTyped(json, ignoreDiscriminator) {
|
|
5438
|
+
if (json == null) {
|
|
5439
|
+
return json;
|
|
5440
|
+
}
|
|
5441
|
+
return {
|
|
5442
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5443
|
+
"applicationId": json["application_id"] == null ? void 0 : json["application_id"],
|
|
5444
|
+
"endpointId": json["endpoint_id"] == null ? void 0 : json["endpoint_id"],
|
|
5445
|
+
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
5446
|
+
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
5447
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
5448
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
5449
|
+
"attempts": json["attempts"] == null ? void 0 : json["attempts"],
|
|
5450
|
+
"lastAttemptAt": json["last_attempt_at"] == null ? void 0 : new Date(json["last_attempt_at"]),
|
|
5451
|
+
"nextRetryAt": json["next_retry_at"] == null ? void 0 : new Date(json["next_retry_at"]),
|
|
5452
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
5453
|
+
};
|
|
5454
|
+
}
|
|
5455
|
+
function WaaSDeliveryToJSON(json) {
|
|
5456
|
+
return WaaSDeliveryToJSONTyped(json, false);
|
|
5457
|
+
}
|
|
5458
|
+
function WaaSDeliveryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5459
|
+
if (value == null) {
|
|
5460
|
+
return value;
|
|
5461
|
+
}
|
|
5462
|
+
return {
|
|
5463
|
+
"id": value["id"],
|
|
5464
|
+
"application_id": value["applicationId"],
|
|
5465
|
+
"endpoint_id": value["endpointId"],
|
|
5466
|
+
"event_id": value["eventId"],
|
|
5467
|
+
"event_type": value["eventType"],
|
|
5468
|
+
"tenant_id": value["tenantId"],
|
|
5469
|
+
"status": value["status"],
|
|
5470
|
+
"attempts": value["attempts"],
|
|
5471
|
+
"last_attempt_at": value["lastAttemptAt"] == null ? void 0 : value["lastAttemptAt"].toISOString(),
|
|
5472
|
+
"next_retry_at": value["nextRetryAt"] == null ? void 0 : value["nextRetryAt"].toISOString(),
|
|
5473
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
5474
|
+
};
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5477
|
+
// src/src/models/GetWaaSDelivery200Response.ts
|
|
5478
|
+
function instanceOfGetWaaSDelivery200Response(value) {
|
|
5479
|
+
return true;
|
|
5480
|
+
}
|
|
5481
|
+
function GetWaaSDelivery200ResponseFromJSON(json) {
|
|
5482
|
+
return GetWaaSDelivery200ResponseFromJSONTyped(json, false);
|
|
5483
|
+
}
|
|
5484
|
+
function GetWaaSDelivery200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5485
|
+
if (json == null) {
|
|
5486
|
+
return json;
|
|
5487
|
+
}
|
|
5488
|
+
return {
|
|
5489
|
+
"data": json["data"] == null ? void 0 : WaaSDeliveryFromJSON(json["data"]),
|
|
5490
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5491
|
+
};
|
|
5492
|
+
}
|
|
5493
|
+
function GetWaaSDelivery200ResponseToJSON(json) {
|
|
5494
|
+
return GetWaaSDelivery200ResponseToJSONTyped(json, false);
|
|
5495
|
+
}
|
|
5496
|
+
function GetWaaSDelivery200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5497
|
+
if (value == null) {
|
|
5498
|
+
return value;
|
|
5499
|
+
}
|
|
5500
|
+
return {
|
|
5501
|
+
"data": WaaSDeliveryToJSON(value["data"]),
|
|
5502
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5503
|
+
};
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
// src/src/models/WaaSEndpoint.ts
|
|
5507
|
+
var WaaSEndpointStatusEnum = {
|
|
5508
|
+
ACTIVE: "active",
|
|
5509
|
+
PAUSED: "paused",
|
|
5510
|
+
DISABLED: "disabled"
|
|
5511
|
+
};
|
|
5512
|
+
function instanceOfWaaSEndpoint(value) {
|
|
5513
|
+
return true;
|
|
5514
|
+
}
|
|
5515
|
+
function WaaSEndpointFromJSON(json) {
|
|
5516
|
+
return WaaSEndpointFromJSONTyped(json, false);
|
|
5517
|
+
}
|
|
5518
|
+
function WaaSEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
5519
|
+
if (json == null) {
|
|
5520
|
+
return json;
|
|
5521
|
+
}
|
|
5522
|
+
return {
|
|
5523
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
5524
|
+
"applicationId": json["application_id"] == null ? void 0 : json["application_id"],
|
|
5525
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
5526
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
5527
|
+
"events": json["events"] == null ? void 0 : json["events"],
|
|
5528
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
5529
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
5530
|
+
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
5531
|
+
};
|
|
5532
|
+
}
|
|
5533
|
+
function WaaSEndpointToJSON(json) {
|
|
5534
|
+
return WaaSEndpointToJSONTyped(json, false);
|
|
5535
|
+
}
|
|
5536
|
+
function WaaSEndpointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5537
|
+
if (value == null) {
|
|
5538
|
+
return value;
|
|
5539
|
+
}
|
|
5540
|
+
return {
|
|
5541
|
+
"id": value["id"],
|
|
5542
|
+
"application_id": value["applicationId"],
|
|
5543
|
+
"tenant_id": value["tenantId"],
|
|
5544
|
+
"url": value["url"],
|
|
5545
|
+
"events": value["events"],
|
|
5546
|
+
"status": value["status"],
|
|
5547
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
5548
|
+
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
5549
|
+
};
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
// src/src/models/GetWaaSEndpoint200Response.ts
|
|
5553
|
+
function instanceOfGetWaaSEndpoint200Response(value) {
|
|
5554
|
+
return true;
|
|
5555
|
+
}
|
|
5556
|
+
function GetWaaSEndpoint200ResponseFromJSON(json) {
|
|
5557
|
+
return GetWaaSEndpoint200ResponseFromJSONTyped(json, false);
|
|
5558
|
+
}
|
|
5559
|
+
function GetWaaSEndpoint200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5560
|
+
if (json == null) {
|
|
5561
|
+
return json;
|
|
5562
|
+
}
|
|
5563
|
+
return {
|
|
5564
|
+
"data": json["data"] == null ? void 0 : WaaSEndpointFromJSON(json["data"])
|
|
5565
|
+
};
|
|
5566
|
+
}
|
|
5567
|
+
function GetWaaSEndpoint200ResponseToJSON(json) {
|
|
5568
|
+
return GetWaaSEndpoint200ResponseToJSONTyped(json, false);
|
|
5569
|
+
}
|
|
5570
|
+
function GetWaaSEndpoint200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5571
|
+
if (value == null) {
|
|
5572
|
+
return value;
|
|
5573
|
+
}
|
|
5574
|
+
return {
|
|
5575
|
+
"data": WaaSEndpointToJSON(value["data"])
|
|
5576
|
+
};
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5579
|
+
// src/src/models/GetWaaSEndpointCircuit200ResponseData.ts
|
|
5580
|
+
var GetWaaSEndpointCircuit200ResponseDataStateEnum = {
|
|
5581
|
+
CLOSED: "closed",
|
|
5582
|
+
OPEN: "open",
|
|
5583
|
+
HALF_OPEN: "half_open"
|
|
5584
|
+
};
|
|
5585
|
+
function instanceOfGetWaaSEndpointCircuit200ResponseData(value) {
|
|
5586
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
5587
|
+
if (!("failures" in value) || value["failures"] === void 0) return false;
|
|
5588
|
+
if (!("lastFailureAt" in value) || value["lastFailureAt"] === void 0) return false;
|
|
5589
|
+
if (!("openedAt" in value) || value["openedAt"] === void 0) return false;
|
|
5590
|
+
if (!("nextTestAt" in value) || value["nextTestAt"] === void 0) return false;
|
|
5591
|
+
if (!("recoveryAttempts" in value) || value["recoveryAttempts"] === void 0) return false;
|
|
5592
|
+
return true;
|
|
5593
|
+
}
|
|
5594
|
+
function GetWaaSEndpointCircuit200ResponseDataFromJSON(json) {
|
|
5595
|
+
return GetWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, false);
|
|
5596
|
+
}
|
|
5597
|
+
function GetWaaSEndpointCircuit200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5598
|
+
if (json == null) {
|
|
5599
|
+
return json;
|
|
5600
|
+
}
|
|
5601
|
+
return {
|
|
5602
|
+
"state": json["state"],
|
|
5603
|
+
"failures": json["failures"],
|
|
5604
|
+
"lastFailureAt": json["last_failure_at"] == null ? null : new Date(json["last_failure_at"]),
|
|
5605
|
+
"openedAt": json["opened_at"] == null ? null : new Date(json["opened_at"]),
|
|
5606
|
+
"nextTestAt": json["next_test_at"] == null ? null : new Date(json["next_test_at"]),
|
|
5607
|
+
"recoveryAttempts": json["recovery_attempts"]
|
|
5608
|
+
};
|
|
5609
|
+
}
|
|
5610
|
+
function GetWaaSEndpointCircuit200ResponseDataToJSON(json) {
|
|
5611
|
+
return GetWaaSEndpointCircuit200ResponseDataToJSONTyped(json, false);
|
|
5612
|
+
}
|
|
5613
|
+
function GetWaaSEndpointCircuit200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5614
|
+
if (value == null) {
|
|
5615
|
+
return value;
|
|
5616
|
+
}
|
|
5617
|
+
return {
|
|
5618
|
+
"state": value["state"],
|
|
5619
|
+
"failures": value["failures"],
|
|
5620
|
+
"last_failure_at": value["lastFailureAt"] == null ? null : value["lastFailureAt"].toISOString(),
|
|
5621
|
+
"opened_at": value["openedAt"] == null ? null : value["openedAt"].toISOString(),
|
|
5622
|
+
"next_test_at": value["nextTestAt"] == null ? null : value["nextTestAt"].toISOString(),
|
|
5623
|
+
"recovery_attempts": value["recoveryAttempts"]
|
|
5624
|
+
};
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
// src/src/models/GetWaaSEndpointCircuit200Response.ts
|
|
5628
|
+
function instanceOfGetWaaSEndpointCircuit200Response(value) {
|
|
5629
|
+
return true;
|
|
5630
|
+
}
|
|
5631
|
+
function GetWaaSEndpointCircuit200ResponseFromJSON(json) {
|
|
5632
|
+
return GetWaaSEndpointCircuit200ResponseFromJSONTyped(json, false);
|
|
5633
|
+
}
|
|
5634
|
+
function GetWaaSEndpointCircuit200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5635
|
+
if (json == null) {
|
|
5636
|
+
return json;
|
|
5637
|
+
}
|
|
5638
|
+
return {
|
|
5639
|
+
"data": json["data"] == null ? void 0 : GetWaaSEndpointCircuit200ResponseDataFromJSON(json["data"]),
|
|
5640
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5641
|
+
};
|
|
5642
|
+
}
|
|
5643
|
+
function GetWaaSEndpointCircuit200ResponseToJSON(json) {
|
|
5644
|
+
return GetWaaSEndpointCircuit200ResponseToJSONTyped(json, false);
|
|
5645
|
+
}
|
|
5646
|
+
function GetWaaSEndpointCircuit200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5647
|
+
if (value == null) {
|
|
5648
|
+
return value;
|
|
5649
|
+
}
|
|
5650
|
+
return {
|
|
5651
|
+
"data": GetWaaSEndpointCircuit200ResponseDataToJSON(value["data"]),
|
|
5652
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5653
|
+
};
|
|
5654
|
+
}
|
|
5655
|
+
|
|
5656
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseDataWindowsValue.ts
|
|
5657
|
+
var GetWaaSEndpointMetrics200ResponseDataWindowsValueWindowEnum = {
|
|
5658
|
+
_1H: "1h",
|
|
5659
|
+
_24H: "24h",
|
|
5660
|
+
_7D: "7d",
|
|
5661
|
+
_30D: "30d"
|
|
5662
|
+
};
|
|
5663
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseDataWindowsValue(value) {
|
|
5664
|
+
return true;
|
|
5665
|
+
}
|
|
5666
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON(json) {
|
|
5667
|
+
return GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped(json, false);
|
|
5668
|
+
}
|
|
5669
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
5670
|
+
if (json == null) {
|
|
5671
|
+
return json;
|
|
5672
|
+
}
|
|
5673
|
+
return {
|
|
5674
|
+
"window": json["window"] == null ? void 0 : json["window"],
|
|
5675
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
5676
|
+
"successes": json["successes"] == null ? void 0 : json["successes"],
|
|
5677
|
+
"failures": json["failures"] == null ? void 0 : json["failures"],
|
|
5678
|
+
"successRate": json["success_rate"] == null ? void 0 : json["success_rate"],
|
|
5679
|
+
"avgLatencyMs": json["avg_latency_ms"] == null ? void 0 : json["avg_latency_ms"],
|
|
5680
|
+
"p95LatencyMs": json["p95_latency_ms"] == null ? void 0 : json["p95_latency_ms"]
|
|
5681
|
+
};
|
|
5682
|
+
}
|
|
5683
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON(json) {
|
|
5684
|
+
return GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped(json, false);
|
|
5685
|
+
}
|
|
5686
|
+
function GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5687
|
+
if (value == null) {
|
|
5688
|
+
return value;
|
|
5689
|
+
}
|
|
5690
|
+
return {
|
|
5691
|
+
"window": value["window"],
|
|
5692
|
+
"total": value["total"],
|
|
5693
|
+
"successes": value["successes"],
|
|
5694
|
+
"failures": value["failures"],
|
|
5695
|
+
"success_rate": value["successRate"],
|
|
5696
|
+
"avg_latency_ms": value["avgLatencyMs"],
|
|
5697
|
+
"p95_latency_ms": value["p95LatencyMs"]
|
|
5698
|
+
};
|
|
5699
|
+
}
|
|
5700
|
+
|
|
5701
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseDataHealth.ts
|
|
5702
|
+
var GetWaaSEndpointMetrics200ResponseDataHealthStatusEnum = {
|
|
5703
|
+
HEALTHY: "healthy",
|
|
5704
|
+
DEGRADED: "degraded",
|
|
5705
|
+
UNHEALTHY: "unhealthy"
|
|
5706
|
+
};
|
|
5707
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseDataHealth(value) {
|
|
5708
|
+
if (!("score" in value) || value["score"] === void 0) return false;
|
|
5709
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
5710
|
+
return true;
|
|
5711
|
+
}
|
|
5712
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthFromJSON(json) {
|
|
5713
|
+
return GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped(json, false);
|
|
5714
|
+
}
|
|
5715
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped(json, ignoreDiscriminator) {
|
|
5716
|
+
if (json == null) {
|
|
5717
|
+
return json;
|
|
5718
|
+
}
|
|
5719
|
+
return {
|
|
5720
|
+
"score": json["score"],
|
|
5721
|
+
"status": json["status"]
|
|
5722
|
+
};
|
|
5723
|
+
}
|
|
5724
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthToJSON(json) {
|
|
5725
|
+
return GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped(json, false);
|
|
5726
|
+
}
|
|
5727
|
+
function GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5728
|
+
if (value == null) {
|
|
5729
|
+
return value;
|
|
5730
|
+
}
|
|
5731
|
+
return {
|
|
5732
|
+
"score": value["score"],
|
|
5733
|
+
"status": value["status"]
|
|
5734
|
+
};
|
|
5735
|
+
}
|
|
5736
|
+
|
|
5737
|
+
// src/src/models/GetWaaSEndpointMetrics200ResponseData.ts
|
|
5738
|
+
function instanceOfGetWaaSEndpointMetrics200ResponseData(value) {
|
|
5739
|
+
if (!("webhookId" in value) || value["webhookId"] === void 0) return false;
|
|
5740
|
+
if (!("health" in value) || value["health"] === void 0) return false;
|
|
5741
|
+
if (!("windows" in value) || value["windows"] === void 0) return false;
|
|
5742
|
+
return true;
|
|
5743
|
+
}
|
|
5744
|
+
function GetWaaSEndpointMetrics200ResponseDataFromJSON(json) {
|
|
5745
|
+
return GetWaaSEndpointMetrics200ResponseDataFromJSONTyped(json, false);
|
|
5746
|
+
}
|
|
5747
|
+
function GetWaaSEndpointMetrics200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5748
|
+
if (json == null) {
|
|
5749
|
+
return json;
|
|
5750
|
+
}
|
|
5751
|
+
return {
|
|
5752
|
+
"webhookId": json["webhook_id"],
|
|
5753
|
+
"health": GetWaaSEndpointMetrics200ResponseDataHealthFromJSON(json["health"]),
|
|
5754
|
+
"windows": mapValues(json["windows"], GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON)
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
function GetWaaSEndpointMetrics200ResponseDataToJSON(json) {
|
|
5758
|
+
return GetWaaSEndpointMetrics200ResponseDataToJSONTyped(json, false);
|
|
5759
|
+
}
|
|
5760
|
+
function GetWaaSEndpointMetrics200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5761
|
+
if (value == null) {
|
|
5762
|
+
return value;
|
|
5763
|
+
}
|
|
5764
|
+
return {
|
|
5765
|
+
"webhook_id": value["webhookId"],
|
|
5766
|
+
"health": GetWaaSEndpointMetrics200ResponseDataHealthToJSON(value["health"]),
|
|
5767
|
+
"windows": mapValues(value["windows"], GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON)
|
|
5768
|
+
};
|
|
5769
|
+
}
|
|
5770
|
+
|
|
5771
|
+
// src/src/models/GetWaaSEndpointMetrics200Response.ts
|
|
5772
|
+
function instanceOfGetWaaSEndpointMetrics200Response(value) {
|
|
5773
|
+
return true;
|
|
5774
|
+
}
|
|
5775
|
+
function GetWaaSEndpointMetrics200ResponseFromJSON(json) {
|
|
5776
|
+
return GetWaaSEndpointMetrics200ResponseFromJSONTyped(json, false);
|
|
5777
|
+
}
|
|
5778
|
+
function GetWaaSEndpointMetrics200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5779
|
+
if (json == null) {
|
|
5780
|
+
return json;
|
|
5781
|
+
}
|
|
5782
|
+
return {
|
|
5783
|
+
"data": json["data"] == null ? void 0 : GetWaaSEndpointMetrics200ResponseDataFromJSON(json["data"]),
|
|
5784
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
5785
|
+
};
|
|
5786
|
+
}
|
|
5787
|
+
function GetWaaSEndpointMetrics200ResponseToJSON(json) {
|
|
5788
|
+
return GetWaaSEndpointMetrics200ResponseToJSONTyped(json, false);
|
|
5789
|
+
}
|
|
5790
|
+
function GetWaaSEndpointMetrics200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5791
|
+
if (value == null) {
|
|
5792
|
+
return value;
|
|
5793
|
+
}
|
|
5794
|
+
return {
|
|
5795
|
+
"data": GetWaaSEndpointMetrics200ResponseDataToJSON(value["data"]),
|
|
5796
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
5797
|
+
};
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
// src/src/models/WaaSUsageResponse.ts
|
|
5801
|
+
function instanceOfWaaSUsageResponse(value) {
|
|
5802
|
+
return true;
|
|
5803
|
+
}
|
|
5804
|
+
function WaaSUsageResponseFromJSON(json) {
|
|
5805
|
+
return WaaSUsageResponseFromJSONTyped(json, false);
|
|
5806
|
+
}
|
|
5807
|
+
function WaaSUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5808
|
+
if (json == null) {
|
|
5809
|
+
return json;
|
|
5810
|
+
}
|
|
5811
|
+
return {
|
|
5812
|
+
"applicationsCount": json["applications_count"] == null ? void 0 : json["applications_count"],
|
|
5813
|
+
"applicationsLimit": json["applications_limit"] == null ? void 0 : json["applications_limit"],
|
|
5814
|
+
"endpointsCount": json["endpoints_count"] == null ? void 0 : json["endpoints_count"],
|
|
5815
|
+
"endpointsLimit": json["endpoints_limit"] == null ? void 0 : json["endpoints_limit"],
|
|
5816
|
+
"eventsThisMonth": json["events_this_month"] == null ? void 0 : json["events_this_month"],
|
|
5817
|
+
"eventsLimit": json["events_limit"] == null ? void 0 : json["events_limit"]
|
|
5818
|
+
};
|
|
5819
|
+
}
|
|
5820
|
+
function WaaSUsageResponseToJSON(json) {
|
|
5821
|
+
return WaaSUsageResponseToJSONTyped(json, false);
|
|
5822
|
+
}
|
|
5823
|
+
function WaaSUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5824
|
+
if (value == null) {
|
|
5825
|
+
return value;
|
|
5826
|
+
}
|
|
5827
|
+
return {
|
|
5828
|
+
"applications_count": value["applicationsCount"],
|
|
5829
|
+
"applications_limit": value["applicationsLimit"],
|
|
5830
|
+
"endpoints_count": value["endpointsCount"],
|
|
5831
|
+
"endpoints_limit": value["endpointsLimit"],
|
|
5832
|
+
"events_this_month": value["eventsThisMonth"],
|
|
5833
|
+
"events_limit": value["eventsLimit"]
|
|
5834
|
+
};
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
// src/src/models/GetWaaSUsage200Response.ts
|
|
5838
|
+
function instanceOfGetWaaSUsage200Response(value) {
|
|
5839
|
+
return true;
|
|
5840
|
+
}
|
|
5841
|
+
function GetWaaSUsage200ResponseFromJSON(json) {
|
|
5842
|
+
return GetWaaSUsage200ResponseFromJSONTyped(json, false);
|
|
5843
|
+
}
|
|
5844
|
+
function GetWaaSUsage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5845
|
+
if (json == null) {
|
|
5846
|
+
return json;
|
|
5847
|
+
}
|
|
5848
|
+
return {
|
|
5849
|
+
"data": json["data"] == null ? void 0 : WaaSUsageResponseFromJSON(json["data"])
|
|
5850
|
+
};
|
|
5851
|
+
}
|
|
5852
|
+
function GetWaaSUsage200ResponseToJSON(json) {
|
|
5853
|
+
return GetWaaSUsage200ResponseToJSONTyped(json, false);
|
|
5854
|
+
}
|
|
5855
|
+
function GetWaaSUsage200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5856
|
+
if (value == null) {
|
|
5857
|
+
return value;
|
|
5858
|
+
}
|
|
5859
|
+
return {
|
|
5860
|
+
"data": WaaSUsageResponseToJSON(value["data"])
|
|
5861
|
+
};
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
// src/src/models/InboundAttachmentUrlResponseData.ts
|
|
5865
|
+
function instanceOfInboundAttachmentUrlResponseData(value) {
|
|
5866
|
+
return true;
|
|
5867
|
+
}
|
|
5868
|
+
function InboundAttachmentUrlResponseDataFromJSON(json) {
|
|
5869
|
+
return InboundAttachmentUrlResponseDataFromJSONTyped(json, false);
|
|
5870
|
+
}
|
|
5871
|
+
function InboundAttachmentUrlResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5872
|
+
if (json == null) {
|
|
5873
|
+
return json;
|
|
5874
|
+
}
|
|
5875
|
+
return {
|
|
5876
|
+
"downloadUrl": json["download_url"] == null ? void 0 : json["download_url"],
|
|
5877
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
5878
|
+
"contentType": json["content_type"] == null ? void 0 : json["content_type"]
|
|
5879
|
+
};
|
|
5880
|
+
}
|
|
5881
|
+
function InboundAttachmentUrlResponseDataToJSON(json) {
|
|
5882
|
+
return InboundAttachmentUrlResponseDataToJSONTyped(json, false);
|
|
5883
|
+
}
|
|
5884
|
+
function InboundAttachmentUrlResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5885
|
+
if (value == null) {
|
|
5886
|
+
return value;
|
|
5887
|
+
}
|
|
5888
|
+
return {
|
|
5889
|
+
"download_url": value["downloadUrl"],
|
|
5890
|
+
"filename": value["filename"],
|
|
5891
|
+
"content_type": value["contentType"]
|
|
5892
|
+
};
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
// src/src/models/InboundAttachmentUrlResponse.ts
|
|
5896
|
+
function instanceOfInboundAttachmentUrlResponse(value) {
|
|
5897
|
+
return true;
|
|
5898
|
+
}
|
|
5899
|
+
function InboundAttachmentUrlResponseFromJSON(json) {
|
|
5900
|
+
return InboundAttachmentUrlResponseFromJSONTyped(json, false);
|
|
5901
|
+
}
|
|
5902
|
+
function InboundAttachmentUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5903
|
+
if (json == null) {
|
|
5904
|
+
return json;
|
|
5905
|
+
}
|
|
5906
|
+
return {
|
|
5907
|
+
"data": json["data"] == null ? void 0 : InboundAttachmentUrlResponseDataFromJSON(json["data"]),
|
|
5908
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
5909
|
+
};
|
|
5910
|
+
}
|
|
5911
|
+
function InboundAttachmentUrlResponseToJSON(json) {
|
|
5912
|
+
return InboundAttachmentUrlResponseToJSONTyped(json, false);
|
|
5913
|
+
}
|
|
5914
|
+
function InboundAttachmentUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5915
|
+
if (value == null) {
|
|
5916
|
+
return value;
|
|
5917
|
+
}
|
|
5918
|
+
return {
|
|
5919
|
+
"data": InboundAttachmentUrlResponseDataToJSON(value["data"]),
|
|
5920
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
5921
|
+
};
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
// src/src/models/InboundEmailFrom.ts
|
|
5210
5925
|
function instanceOfInboundEmailFrom(value) {
|
|
5211
5926
|
return true;
|
|
5212
5927
|
}
|
|
@@ -5536,6 +6251,66 @@ function InboxNotificationResponseToJSONTyped(value, ignoreDiscriminator = false
|
|
|
5536
6251
|
};
|
|
5537
6252
|
}
|
|
5538
6253
|
|
|
6254
|
+
// src/src/models/InviteEndUser200ResponseData.ts
|
|
6255
|
+
function instanceOfInviteEndUser200ResponseData(value) {
|
|
6256
|
+
return true;
|
|
6257
|
+
}
|
|
6258
|
+
function InviteEndUser200ResponseDataFromJSON(json) {
|
|
6259
|
+
return InviteEndUser200ResponseDataFromJSONTyped(json, false);
|
|
6260
|
+
}
|
|
6261
|
+
function InviteEndUser200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6262
|
+
if (json == null) {
|
|
6263
|
+
return json;
|
|
6264
|
+
}
|
|
6265
|
+
return {
|
|
6266
|
+
"userId": json["user_id"] == null ? void 0 : json["user_id"],
|
|
6267
|
+
"created": json["created"] == null ? void 0 : json["created"],
|
|
6268
|
+
"linkSent": json["link_sent"] == null ? void 0 : json["link_sent"]
|
|
6269
|
+
};
|
|
6270
|
+
}
|
|
6271
|
+
function InviteEndUser200ResponseDataToJSON(json) {
|
|
6272
|
+
return InviteEndUser200ResponseDataToJSONTyped(json, false);
|
|
6273
|
+
}
|
|
6274
|
+
function InviteEndUser200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6275
|
+
if (value == null) {
|
|
6276
|
+
return value;
|
|
6277
|
+
}
|
|
6278
|
+
return {
|
|
6279
|
+
"user_id": value["userId"],
|
|
6280
|
+
"created": value["created"],
|
|
6281
|
+
"link_sent": value["linkSent"]
|
|
6282
|
+
};
|
|
6283
|
+
}
|
|
6284
|
+
|
|
6285
|
+
// src/src/models/InviteEndUser200Response.ts
|
|
6286
|
+
function instanceOfInviteEndUser200Response(value) {
|
|
6287
|
+
return true;
|
|
6288
|
+
}
|
|
6289
|
+
function InviteEndUser200ResponseFromJSON(json) {
|
|
6290
|
+
return InviteEndUser200ResponseFromJSONTyped(json, false);
|
|
6291
|
+
}
|
|
6292
|
+
function InviteEndUser200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6293
|
+
if (json == null) {
|
|
6294
|
+
return json;
|
|
6295
|
+
}
|
|
6296
|
+
return {
|
|
6297
|
+
"data": json["data"] == null ? void 0 : InviteEndUser200ResponseDataFromJSON(json["data"]),
|
|
6298
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
6299
|
+
};
|
|
6300
|
+
}
|
|
6301
|
+
function InviteEndUser200ResponseToJSON(json) {
|
|
6302
|
+
return InviteEndUser200ResponseToJSONTyped(json, false);
|
|
6303
|
+
}
|
|
6304
|
+
function InviteEndUser200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6305
|
+
if (value == null) {
|
|
6306
|
+
return value;
|
|
6307
|
+
}
|
|
6308
|
+
return {
|
|
6309
|
+
"data": InviteEndUser200ResponseDataToJSON(value["data"]),
|
|
6310
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
6311
|
+
};
|
|
6312
|
+
}
|
|
6313
|
+
|
|
5539
6314
|
// src/src/models/InviteEndUserRequest.ts
|
|
5540
6315
|
var InviteEndUserRequestSendLinkEnum = {
|
|
5541
6316
|
MAGIC: "magic",
|
|
@@ -5561,101 +6336,110 @@ function InviteEndUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5561
6336
|
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
|
|
5562
6337
|
};
|
|
5563
6338
|
}
|
|
5564
|
-
function InviteEndUserRequestToJSON(json) {
|
|
5565
|
-
return InviteEndUserRequestToJSONTyped(json, false);
|
|
6339
|
+
function InviteEndUserRequestToJSON(json) {
|
|
6340
|
+
return InviteEndUserRequestToJSONTyped(json, false);
|
|
6341
|
+
}
|
|
6342
|
+
function InviteEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6343
|
+
if (value == null) {
|
|
6344
|
+
return value;
|
|
6345
|
+
}
|
|
6346
|
+
return {
|
|
6347
|
+
"email": value["email"],
|
|
6348
|
+
"name": value["name"],
|
|
6349
|
+
"metadata": value["metadata"],
|
|
6350
|
+
"send_link": value["sendLink"],
|
|
6351
|
+
"redirect_url": value["redirectUrl"]
|
|
6352
|
+
};
|
|
6353
|
+
}
|
|
6354
|
+
|
|
6355
|
+
// src/src/models/ListEndUsers200ResponseMeta.ts
|
|
6356
|
+
function instanceOfListEndUsers200ResponseMeta(value) {
|
|
6357
|
+
return true;
|
|
6358
|
+
}
|
|
6359
|
+
function ListEndUsers200ResponseMetaFromJSON(json) {
|
|
6360
|
+
return ListEndUsers200ResponseMetaFromJSONTyped(json, false);
|
|
6361
|
+
}
|
|
6362
|
+
function ListEndUsers200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
6363
|
+
if (json == null) {
|
|
6364
|
+
return json;
|
|
6365
|
+
}
|
|
6366
|
+
return {
|
|
6367
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
6368
|
+
"page": json["page"] == null ? void 0 : json["page"],
|
|
6369
|
+
"perPage": json["per_page"] == null ? void 0 : json["per_page"],
|
|
6370
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
6371
|
+
"totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
|
|
6372
|
+
};
|
|
6373
|
+
}
|
|
6374
|
+
function ListEndUsers200ResponseMetaToJSON(json) {
|
|
6375
|
+
return ListEndUsers200ResponseMetaToJSONTyped(json, false);
|
|
5566
6376
|
}
|
|
5567
|
-
function
|
|
6377
|
+
function ListEndUsers200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5568
6378
|
if (value == null) {
|
|
5569
6379
|
return value;
|
|
5570
6380
|
}
|
|
5571
6381
|
return {
|
|
5572
|
-
"
|
|
5573
|
-
"
|
|
5574
|
-
"
|
|
5575
|
-
"
|
|
5576
|
-
"
|
|
6382
|
+
"request_id": value["requestId"],
|
|
6383
|
+
"page": value["page"],
|
|
6384
|
+
"per_page": value["perPage"],
|
|
6385
|
+
"total": value["total"],
|
|
6386
|
+
"total_pages": value["totalPages"]
|
|
5577
6387
|
};
|
|
5578
6388
|
}
|
|
5579
6389
|
|
|
5580
|
-
// src/src/models/
|
|
5581
|
-
function
|
|
6390
|
+
// src/src/models/ListEndUsers200Response.ts
|
|
6391
|
+
function instanceOfListEndUsers200Response(value) {
|
|
5582
6392
|
return true;
|
|
5583
6393
|
}
|
|
5584
|
-
function
|
|
5585
|
-
return
|
|
6394
|
+
function ListEndUsers200ResponseFromJSON(json) {
|
|
6395
|
+
return ListEndUsers200ResponseFromJSONTyped(json, false);
|
|
5586
6396
|
}
|
|
5587
|
-
function
|
|
6397
|
+
function ListEndUsers200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5588
6398
|
if (json == null) {
|
|
5589
6399
|
return json;
|
|
5590
6400
|
}
|
|
5591
6401
|
return {
|
|
5592
|
-
"data": json["data"] == null ? void 0 : json["data"].map(
|
|
6402
|
+
"data": json["data"] == null ? void 0 : json["data"].map(AuthUserFromJSON),
|
|
6403
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
5593
6404
|
};
|
|
5594
6405
|
}
|
|
5595
|
-
function
|
|
5596
|
-
return
|
|
6406
|
+
function ListEndUsers200ResponseToJSON(json) {
|
|
6407
|
+
return ListEndUsers200ResponseToJSONTyped(json, false);
|
|
5597
6408
|
}
|
|
5598
|
-
function
|
|
6409
|
+
function ListEndUsers200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5599
6410
|
if (value == null) {
|
|
5600
6411
|
return value;
|
|
5601
6412
|
}
|
|
5602
6413
|
return {
|
|
5603
|
-
"data": value["data"] == null ? void 0 : value["data"].map(
|
|
6414
|
+
"data": value["data"] == null ? void 0 : value["data"].map(AuthUserToJSON),
|
|
6415
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
5604
6416
|
};
|
|
5605
6417
|
}
|
|
5606
6418
|
|
|
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) {
|
|
6419
|
+
// src/src/models/ListWaaSApplications200Response.ts
|
|
6420
|
+
function instanceOfListWaaSApplications200Response(value) {
|
|
5617
6421
|
return true;
|
|
5618
6422
|
}
|
|
5619
|
-
function
|
|
5620
|
-
return
|
|
6423
|
+
function ListWaaSApplications200ResponseFromJSON(json) {
|
|
6424
|
+
return ListWaaSApplications200ResponseFromJSONTyped(json, false);
|
|
5621
6425
|
}
|
|
5622
|
-
function
|
|
6426
|
+
function ListWaaSApplications200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5623
6427
|
if (json == null) {
|
|
5624
6428
|
return json;
|
|
5625
6429
|
}
|
|
5626
6430
|
return {
|
|
5627
|
-
"
|
|
5628
|
-
"applicationId": json["application_id"] == null ? void 0 : json["application_id"],
|
|
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"])
|
|
6431
|
+
"data": json["data"] == null ? void 0 : json["data"].map(WaaSApplicationFromJSON)
|
|
5638
6432
|
};
|
|
5639
6433
|
}
|
|
5640
|
-
function
|
|
5641
|
-
return
|
|
6434
|
+
function ListWaaSApplications200ResponseToJSON(json) {
|
|
6435
|
+
return ListWaaSApplications200ResponseToJSONTyped(json, false);
|
|
5642
6436
|
}
|
|
5643
|
-
function
|
|
6437
|
+
function ListWaaSApplications200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
5644
6438
|
if (value == null) {
|
|
5645
6439
|
return value;
|
|
5646
6440
|
}
|
|
5647
6441
|
return {
|
|
5648
|
-
"
|
|
5649
|
-
"application_id": value["applicationId"],
|
|
5650
|
-
"endpoint_id": value["endpointId"],
|
|
5651
|
-
"event_id": value["eventId"],
|
|
5652
|
-
"event_type": value["eventType"],
|
|
5653
|
-
"tenant_id": value["tenantId"],
|
|
5654
|
-
"status": value["status"],
|
|
5655
|
-
"attempts": value["attempts"],
|
|
5656
|
-
"last_attempt_at": value["lastAttemptAt"] == null ? void 0 : value["lastAttemptAt"].toISOString(),
|
|
5657
|
-
"next_retry_at": value["nextRetryAt"] == null ? void 0 : value["nextRetryAt"].toISOString(),
|
|
5658
|
-
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
6442
|
+
"data": value["data"] == null ? void 0 : value["data"].map(WaaSApplicationToJSON)
|
|
5659
6443
|
};
|
|
5660
6444
|
}
|
|
5661
6445
|
|
|
@@ -5740,41 +6524,6 @@ function ListWaaSEventTypes200ResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5740
6524
|
};
|
|
5741
6525
|
}
|
|
5742
6526
|
|
|
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
6527
|
// src/src/models/ListWorkflowExecutions200Response.ts
|
|
5779
6528
|
function instanceOfListWorkflowExecutions200Response(value) {
|
|
5780
6529
|
return true;
|
|
@@ -5788,7 +6537,7 @@ function ListWorkflowExecutions200ResponseFromJSONTyped(json, ignoreDiscriminato
|
|
|
5788
6537
|
}
|
|
5789
6538
|
return {
|
|
5790
6539
|
"data": json["data"] == null ? void 0 : json["data"].map(WorkflowExecutionFromJSON),
|
|
5791
|
-
"meta": json["meta"] == null ? void 0 :
|
|
6540
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
5792
6541
|
};
|
|
5793
6542
|
}
|
|
5794
6543
|
function ListWorkflowExecutions200ResponseToJSON(json) {
|
|
@@ -5800,7 +6549,7 @@ function ListWorkflowExecutions200ResponseToJSONTyped(value, ignoreDiscriminator
|
|
|
5800
6549
|
}
|
|
5801
6550
|
return {
|
|
5802
6551
|
"data": value["data"] == null ? void 0 : value["data"].map(WorkflowExecutionToJSON),
|
|
5803
|
-
"meta":
|
|
6552
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
5804
6553
|
};
|
|
5805
6554
|
}
|
|
5806
6555
|
|
|
@@ -6114,6 +6863,33 @@ function MarkAllReadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6114
6863
|
};
|
|
6115
6864
|
}
|
|
6116
6865
|
|
|
6866
|
+
// src/src/models/MarkAllSubscriberNotificationsRead200Response.ts
|
|
6867
|
+
function instanceOfMarkAllSubscriberNotificationsRead200Response(value) {
|
|
6868
|
+
return true;
|
|
6869
|
+
}
|
|
6870
|
+
function MarkAllSubscriberNotificationsRead200ResponseFromJSON(json) {
|
|
6871
|
+
return MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped(json, false);
|
|
6872
|
+
}
|
|
6873
|
+
function MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6874
|
+
if (json == null) {
|
|
6875
|
+
return json;
|
|
6876
|
+
}
|
|
6877
|
+
return {
|
|
6878
|
+
"data": json["data"] == null ? void 0 : MarkAllReadDataFromJSON(json["data"])
|
|
6879
|
+
};
|
|
6880
|
+
}
|
|
6881
|
+
function MarkAllSubscriberNotificationsRead200ResponseToJSON(json) {
|
|
6882
|
+
return MarkAllSubscriberNotificationsRead200ResponseToJSONTyped(json, false);
|
|
6883
|
+
}
|
|
6884
|
+
function MarkAllSubscriberNotificationsRead200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6885
|
+
if (value == null) {
|
|
6886
|
+
return value;
|
|
6887
|
+
}
|
|
6888
|
+
return {
|
|
6889
|
+
"data": MarkAllReadDataToJSON(value["data"])
|
|
6890
|
+
};
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6117
6893
|
// src/src/models/MarkAllSubscriberNotificationsReadRequest.ts
|
|
6118
6894
|
function instanceOfMarkAllSubscriberNotificationsReadRequest(value) {
|
|
6119
6895
|
return true;
|
|
@@ -9227,6 +10003,63 @@ function RevokeSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9227
10003
|
};
|
|
9228
10004
|
}
|
|
9229
10005
|
|
|
10006
|
+
// src/src/models/RotateWaaSEndpointSecret200ResponseData.ts
|
|
10007
|
+
function instanceOfRotateWaaSEndpointSecret200ResponseData(value) {
|
|
10008
|
+
if (!("secret" in value) || value["secret"] === void 0) return false;
|
|
10009
|
+
return true;
|
|
10010
|
+
}
|
|
10011
|
+
function RotateWaaSEndpointSecret200ResponseDataFromJSON(json) {
|
|
10012
|
+
return RotateWaaSEndpointSecret200ResponseDataFromJSONTyped(json, false);
|
|
10013
|
+
}
|
|
10014
|
+
function RotateWaaSEndpointSecret200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
10015
|
+
if (json == null) {
|
|
10016
|
+
return json;
|
|
10017
|
+
}
|
|
10018
|
+
return {
|
|
10019
|
+
"secret": json["secret"]
|
|
10020
|
+
};
|
|
10021
|
+
}
|
|
10022
|
+
function RotateWaaSEndpointSecret200ResponseDataToJSON(json) {
|
|
10023
|
+
return RotateWaaSEndpointSecret200ResponseDataToJSONTyped(json, false);
|
|
10024
|
+
}
|
|
10025
|
+
function RotateWaaSEndpointSecret200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10026
|
+
if (value == null) {
|
|
10027
|
+
return value;
|
|
10028
|
+
}
|
|
10029
|
+
return {
|
|
10030
|
+
"secret": value["secret"]
|
|
10031
|
+
};
|
|
10032
|
+
}
|
|
10033
|
+
|
|
10034
|
+
// src/src/models/RotateWaaSEndpointSecret200Response.ts
|
|
10035
|
+
function instanceOfRotateWaaSEndpointSecret200Response(value) {
|
|
10036
|
+
return true;
|
|
10037
|
+
}
|
|
10038
|
+
function RotateWaaSEndpointSecret200ResponseFromJSON(json) {
|
|
10039
|
+
return RotateWaaSEndpointSecret200ResponseFromJSONTyped(json, false);
|
|
10040
|
+
}
|
|
10041
|
+
function RotateWaaSEndpointSecret200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10042
|
+
if (json == null) {
|
|
10043
|
+
return json;
|
|
10044
|
+
}
|
|
10045
|
+
return {
|
|
10046
|
+
"data": json["data"] == null ? void 0 : RotateWaaSEndpointSecret200ResponseDataFromJSON(json["data"]),
|
|
10047
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
10048
|
+
};
|
|
10049
|
+
}
|
|
10050
|
+
function RotateWaaSEndpointSecret200ResponseToJSON(json) {
|
|
10051
|
+
return RotateWaaSEndpointSecret200ResponseToJSONTyped(json, false);
|
|
10052
|
+
}
|
|
10053
|
+
function RotateWaaSEndpointSecret200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10054
|
+
if (value == null) {
|
|
10055
|
+
return value;
|
|
10056
|
+
}
|
|
10057
|
+
return {
|
|
10058
|
+
"data": RotateWaaSEndpointSecret200ResponseDataToJSON(value["data"]),
|
|
10059
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
10060
|
+
};
|
|
10061
|
+
}
|
|
10062
|
+
|
|
9230
10063
|
// src/src/models/SendBatchEmailRequest.ts
|
|
9231
10064
|
function instanceOfSendBatchEmailRequest(value) {
|
|
9232
10065
|
if (!("from" in value) || value["from"] === void 0) return false;
|
|
@@ -10395,71 +11228,176 @@ function SendSmsDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
10395
11228
|
};
|
|
10396
11229
|
}
|
|
10397
11230
|
|
|
10398
|
-
// src/src/models/SendSmsRequest.ts
|
|
10399
|
-
function instanceOfSendSmsRequest(value) {
|
|
10400
|
-
if (!("to" in value) || value["to"] === void 0) return false;
|
|
10401
|
-
if (!("body" in value) || value["body"] === void 0) return false;
|
|
11231
|
+
// src/src/models/SendSmsRequest.ts
|
|
11232
|
+
function instanceOfSendSmsRequest(value) {
|
|
11233
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
11234
|
+
if (!("body" in value) || value["body"] === void 0) return false;
|
|
11235
|
+
return true;
|
|
11236
|
+
}
|
|
11237
|
+
function SendSmsRequestFromJSON(json) {
|
|
11238
|
+
return SendSmsRequestFromJSONTyped(json, false);
|
|
11239
|
+
}
|
|
11240
|
+
function SendSmsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11241
|
+
if (json == null) {
|
|
11242
|
+
return json;
|
|
11243
|
+
}
|
|
11244
|
+
return {
|
|
11245
|
+
"to": json["to"],
|
|
11246
|
+
"from": json["from"] == null ? void 0 : json["from"],
|
|
11247
|
+
"body": json["body"],
|
|
11248
|
+
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
11249
|
+
"scheduledAt": json["scheduled_at"] == null ? void 0 : new Date(json["scheduled_at"]),
|
|
11250
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
11251
|
+
};
|
|
11252
|
+
}
|
|
11253
|
+
function SendSmsRequestToJSON(json) {
|
|
11254
|
+
return SendSmsRequestToJSONTyped(json, false);
|
|
11255
|
+
}
|
|
11256
|
+
function SendSmsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11257
|
+
if (value == null) {
|
|
11258
|
+
return value;
|
|
11259
|
+
}
|
|
11260
|
+
return {
|
|
11261
|
+
"to": value["to"],
|
|
11262
|
+
"from": value["from"],
|
|
11263
|
+
"body": value["body"],
|
|
11264
|
+
"subscriber_id": value["subscriberId"],
|
|
11265
|
+
"scheduled_at": value["scheduledAt"] == null ? void 0 : value["scheduledAt"].toISOString(),
|
|
11266
|
+
"metadata": value["metadata"]
|
|
11267
|
+
};
|
|
11268
|
+
}
|
|
11269
|
+
|
|
11270
|
+
// src/src/models/SendSmsResponse.ts
|
|
11271
|
+
function instanceOfSendSmsResponse(value) {
|
|
11272
|
+
return true;
|
|
11273
|
+
}
|
|
11274
|
+
function SendSmsResponseFromJSON(json) {
|
|
11275
|
+
return SendSmsResponseFromJSONTyped(json, false);
|
|
11276
|
+
}
|
|
11277
|
+
function SendSmsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11278
|
+
if (json == null) {
|
|
11279
|
+
return json;
|
|
11280
|
+
}
|
|
11281
|
+
return {
|
|
11282
|
+
"data": json["data"] == null ? void 0 : SendSmsDataFromJSON(json["data"]),
|
|
11283
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
11284
|
+
};
|
|
11285
|
+
}
|
|
11286
|
+
function SendSmsResponseToJSON(json) {
|
|
11287
|
+
return SendSmsResponseToJSONTyped(json, false);
|
|
11288
|
+
}
|
|
11289
|
+
function SendSmsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11290
|
+
if (value == null) {
|
|
11291
|
+
return value;
|
|
11292
|
+
}
|
|
11293
|
+
return {
|
|
11294
|
+
"data": SendSmsDataToJSON(value["data"]),
|
|
11295
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
11296
|
+
};
|
|
11297
|
+
}
|
|
11298
|
+
|
|
11299
|
+
// src/src/models/SendTemplateTestEmail202ResponseData.ts
|
|
11300
|
+
function instanceOfSendTemplateTestEmail202ResponseData(value) {
|
|
11301
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
11302
|
+
if (!("messageId" in value) || value["messageId"] === void 0) return false;
|
|
11303
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
11304
|
+
if (!("from" in value) || value["from"] === void 0) return false;
|
|
11305
|
+
if (!("subject" in value) || value["subject"] === void 0) return false;
|
|
11306
|
+
if (!("templateId" in value) || value["templateId"] === void 0) return false;
|
|
11307
|
+
if (!("templateName" in value) || value["templateName"] === void 0) return false;
|
|
11308
|
+
return true;
|
|
11309
|
+
}
|
|
11310
|
+
function SendTemplateTestEmail202ResponseDataFromJSON(json) {
|
|
11311
|
+
return SendTemplateTestEmail202ResponseDataFromJSONTyped(json, false);
|
|
11312
|
+
}
|
|
11313
|
+
function SendTemplateTestEmail202ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
11314
|
+
if (json == null) {
|
|
11315
|
+
return json;
|
|
11316
|
+
}
|
|
11317
|
+
return {
|
|
11318
|
+
"message": json["message"],
|
|
11319
|
+
"messageId": json["message_id"],
|
|
11320
|
+
"to": json["to"],
|
|
11321
|
+
"from": json["from"],
|
|
11322
|
+
"subject": json["subject"],
|
|
11323
|
+
"templateId": json["template_id"],
|
|
11324
|
+
"templateName": json["template_name"]
|
|
11325
|
+
};
|
|
11326
|
+
}
|
|
11327
|
+
function SendTemplateTestEmail202ResponseDataToJSON(json) {
|
|
11328
|
+
return SendTemplateTestEmail202ResponseDataToJSONTyped(json, false);
|
|
11329
|
+
}
|
|
11330
|
+
function SendTemplateTestEmail202ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11331
|
+
if (value == null) {
|
|
11332
|
+
return value;
|
|
11333
|
+
}
|
|
11334
|
+
return {
|
|
11335
|
+
"message": value["message"],
|
|
11336
|
+
"message_id": value["messageId"],
|
|
11337
|
+
"to": value["to"],
|
|
11338
|
+
"from": value["from"],
|
|
11339
|
+
"subject": value["subject"],
|
|
11340
|
+
"template_id": value["templateId"],
|
|
11341
|
+
"template_name": value["templateName"]
|
|
11342
|
+
};
|
|
11343
|
+
}
|
|
11344
|
+
|
|
11345
|
+
// src/src/models/SendTemplateTestEmail202ResponseMeta.ts
|
|
11346
|
+
function instanceOfSendTemplateTestEmail202ResponseMeta(value) {
|
|
11347
|
+
if (!("requestId" in value) || value["requestId"] === void 0) return false;
|
|
10402
11348
|
return true;
|
|
10403
11349
|
}
|
|
10404
|
-
function
|
|
10405
|
-
return
|
|
11350
|
+
function SendTemplateTestEmail202ResponseMetaFromJSON(json) {
|
|
11351
|
+
return SendTemplateTestEmail202ResponseMetaFromJSONTyped(json, false);
|
|
10406
11352
|
}
|
|
10407
|
-
function
|
|
11353
|
+
function SendTemplateTestEmail202ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
10408
11354
|
if (json == null) {
|
|
10409
11355
|
return json;
|
|
10410
11356
|
}
|
|
10411
11357
|
return {
|
|
10412
|
-
"
|
|
10413
|
-
"from": json["from"] == null ? void 0 : json["from"],
|
|
10414
|
-
"body": json["body"],
|
|
10415
|
-
"subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
|
|
10416
|
-
"scheduledAt": json["scheduled_at"] == null ? void 0 : new Date(json["scheduled_at"]),
|
|
10417
|
-
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
11358
|
+
"requestId": json["request_id"]
|
|
10418
11359
|
};
|
|
10419
11360
|
}
|
|
10420
|
-
function
|
|
10421
|
-
return
|
|
11361
|
+
function SendTemplateTestEmail202ResponseMetaToJSON(json) {
|
|
11362
|
+
return SendTemplateTestEmail202ResponseMetaToJSONTyped(json, false);
|
|
10422
11363
|
}
|
|
10423
|
-
function
|
|
11364
|
+
function SendTemplateTestEmail202ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10424
11365
|
if (value == null) {
|
|
10425
11366
|
return value;
|
|
10426
11367
|
}
|
|
10427
11368
|
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"]
|
|
11369
|
+
"request_id": value["requestId"]
|
|
10434
11370
|
};
|
|
10435
11371
|
}
|
|
10436
11372
|
|
|
10437
|
-
// src/src/models/
|
|
10438
|
-
function
|
|
11373
|
+
// src/src/models/SendTemplateTestEmail202Response.ts
|
|
11374
|
+
function instanceOfSendTemplateTestEmail202Response(value) {
|
|
11375
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
11376
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
10439
11377
|
return true;
|
|
10440
11378
|
}
|
|
10441
|
-
function
|
|
10442
|
-
return
|
|
11379
|
+
function SendTemplateTestEmail202ResponseFromJSON(json) {
|
|
11380
|
+
return SendTemplateTestEmail202ResponseFromJSONTyped(json, false);
|
|
10443
11381
|
}
|
|
10444
|
-
function
|
|
11382
|
+
function SendTemplateTestEmail202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10445
11383
|
if (json == null) {
|
|
10446
11384
|
return json;
|
|
10447
11385
|
}
|
|
10448
11386
|
return {
|
|
10449
|
-
"data":
|
|
10450
|
-
"meta":
|
|
11387
|
+
"data": SendTemplateTestEmail202ResponseDataFromJSON(json["data"]),
|
|
11388
|
+
"meta": SendTemplateTestEmail202ResponseMetaFromJSON(json["meta"])
|
|
10451
11389
|
};
|
|
10452
11390
|
}
|
|
10453
|
-
function
|
|
10454
|
-
return
|
|
11391
|
+
function SendTemplateTestEmail202ResponseToJSON(json) {
|
|
11392
|
+
return SendTemplateTestEmail202ResponseToJSONTyped(json, false);
|
|
10455
11393
|
}
|
|
10456
|
-
function
|
|
11394
|
+
function SendTemplateTestEmail202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10457
11395
|
if (value == null) {
|
|
10458
11396
|
return value;
|
|
10459
11397
|
}
|
|
10460
11398
|
return {
|
|
10461
|
-
"data":
|
|
10462
|
-
"meta":
|
|
11399
|
+
"data": SendTemplateTestEmail202ResponseDataToJSON(value["data"]),
|
|
11400
|
+
"meta": SendTemplateTestEmail202ResponseMetaToJSON(value["meta"])
|
|
10463
11401
|
};
|
|
10464
11402
|
}
|
|
10465
11403
|
|
|
@@ -10732,6 +11670,62 @@ function SetDomainInboundRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
10732
11670
|
};
|
|
10733
11671
|
}
|
|
10734
11672
|
|
|
11673
|
+
// src/src/models/SetEndUserClaims200ResponseData.ts
|
|
11674
|
+
function instanceOfSetEndUserClaims200ResponseData(value) {
|
|
11675
|
+
return true;
|
|
11676
|
+
}
|
|
11677
|
+
function SetEndUserClaims200ResponseDataFromJSON(json) {
|
|
11678
|
+
return SetEndUserClaims200ResponseDataFromJSONTyped(json, false);
|
|
11679
|
+
}
|
|
11680
|
+
function SetEndUserClaims200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
11681
|
+
if (json == null) {
|
|
11682
|
+
return json;
|
|
11683
|
+
}
|
|
11684
|
+
return {
|
|
11685
|
+
"claims": json["claims"] == null ? void 0 : json["claims"],
|
|
11686
|
+
"claimsVersion": json["claims_version"] == null ? void 0 : json["claims_version"]
|
|
11687
|
+
};
|
|
11688
|
+
}
|
|
11689
|
+
function SetEndUserClaims200ResponseDataToJSON(json) {
|
|
11690
|
+
return SetEndUserClaims200ResponseDataToJSONTyped(json, false);
|
|
11691
|
+
}
|
|
11692
|
+
function SetEndUserClaims200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11693
|
+
if (value == null) {
|
|
11694
|
+
return value;
|
|
11695
|
+
}
|
|
11696
|
+
return {
|
|
11697
|
+
"claims": value["claims"],
|
|
11698
|
+
"claims_version": value["claimsVersion"]
|
|
11699
|
+
};
|
|
11700
|
+
}
|
|
11701
|
+
|
|
11702
|
+
// src/src/models/SetEndUserClaims200Response.ts
|
|
11703
|
+
function instanceOfSetEndUserClaims200Response(value) {
|
|
11704
|
+
return true;
|
|
11705
|
+
}
|
|
11706
|
+
function SetEndUserClaims200ResponseFromJSON(json) {
|
|
11707
|
+
return SetEndUserClaims200ResponseFromJSONTyped(json, false);
|
|
11708
|
+
}
|
|
11709
|
+
function SetEndUserClaims200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11710
|
+
if (json == null) {
|
|
11711
|
+
return json;
|
|
11712
|
+
}
|
|
11713
|
+
return {
|
|
11714
|
+
"data": json["data"] == null ? void 0 : SetEndUserClaims200ResponseDataFromJSON(json["data"])
|
|
11715
|
+
};
|
|
11716
|
+
}
|
|
11717
|
+
function SetEndUserClaims200ResponseToJSON(json) {
|
|
11718
|
+
return SetEndUserClaims200ResponseToJSONTyped(json, false);
|
|
11719
|
+
}
|
|
11720
|
+
function SetEndUserClaims200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11721
|
+
if (value == null) {
|
|
11722
|
+
return value;
|
|
11723
|
+
}
|
|
11724
|
+
return {
|
|
11725
|
+
"data": SetEndUserClaims200ResponseDataToJSON(value["data"])
|
|
11726
|
+
};
|
|
11727
|
+
}
|
|
11728
|
+
|
|
10735
11729
|
// src/src/models/SetEndUserClaimsRequest.ts
|
|
10736
11730
|
function instanceOfSetEndUserClaimsRequest(value) {
|
|
10737
11731
|
return true;
|
|
@@ -11406,7 +12400,7 @@ function SmsListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11406
12400
|
}
|
|
11407
12401
|
return {
|
|
11408
12402
|
"data": json["data"] == null ? void 0 : json["data"].map(SmsMessageFromJSON),
|
|
11409
|
-
"meta": json["meta"] == null ? void 0 :
|
|
12403
|
+
"meta": json["meta"] == null ? void 0 : ListEndUsers200ResponseMetaFromJSON(json["meta"])
|
|
11410
12404
|
};
|
|
11411
12405
|
}
|
|
11412
12406
|
function SmsListResponseToJSON(json) {
|
|
@@ -11418,7 +12412,7 @@ function SmsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11418
12412
|
}
|
|
11419
12413
|
return {
|
|
11420
12414
|
"data": value["data"] == null ? void 0 : value["data"].map(SmsMessageToJSON),
|
|
11421
|
-
"meta":
|
|
12415
|
+
"meta": ListEndUsers200ResponseMetaToJSON(value["meta"])
|
|
11422
12416
|
};
|
|
11423
12417
|
}
|
|
11424
12418
|
|
|
@@ -12385,33 +13379,6 @@ function TriggerWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
12385
13379
|
};
|
|
12386
13380
|
}
|
|
12387
13381
|
|
|
12388
|
-
// src/src/models/UnreadCountData.ts
|
|
12389
|
-
function instanceOfUnreadCountData(value) {
|
|
12390
|
-
return true;
|
|
12391
|
-
}
|
|
12392
|
-
function UnreadCountDataFromJSON(json) {
|
|
12393
|
-
return UnreadCountDataFromJSONTyped(json, false);
|
|
12394
|
-
}
|
|
12395
|
-
function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12396
|
-
if (json == null) {
|
|
12397
|
-
return json;
|
|
12398
|
-
}
|
|
12399
|
-
return {
|
|
12400
|
-
"unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
|
|
12401
|
-
};
|
|
12402
|
-
}
|
|
12403
|
-
function UnreadCountDataToJSON(json) {
|
|
12404
|
-
return UnreadCountDataToJSONTyped(json, false);
|
|
12405
|
-
}
|
|
12406
|
-
function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12407
|
-
if (value == null) {
|
|
12408
|
-
return value;
|
|
12409
|
-
}
|
|
12410
|
-
return {
|
|
12411
|
-
"unread_count": value["unreadCount"]
|
|
12412
|
-
};
|
|
12413
|
-
}
|
|
12414
|
-
|
|
12415
13382
|
// src/src/models/UnreadCountResponse.ts
|
|
12416
13383
|
function instanceOfUnreadCountResponse(value) {
|
|
12417
13384
|
return true;
|
|
@@ -12735,6 +13702,101 @@ function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
12735
13702
|
};
|
|
12736
13703
|
}
|
|
12737
13704
|
|
|
13705
|
+
// src/src/models/UpdateSubscriberPreferences200ResponseDataPreferencesInner.ts
|
|
13706
|
+
var UpdateSubscriberPreferences200ResponseDataPreferencesInnerChannelEnum = {
|
|
13707
|
+
EMAIL: "email",
|
|
13708
|
+
PUSH: "push",
|
|
13709
|
+
SMS: "sms",
|
|
13710
|
+
IN_APP: "in_app"
|
|
13711
|
+
};
|
|
13712
|
+
function instanceOfUpdateSubscriberPreferences200ResponseDataPreferencesInner(value) {
|
|
13713
|
+
return true;
|
|
13714
|
+
}
|
|
13715
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON(json) {
|
|
13716
|
+
return UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped(json, false);
|
|
13717
|
+
}
|
|
13718
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
13719
|
+
if (json == null) {
|
|
13720
|
+
return json;
|
|
13721
|
+
}
|
|
13722
|
+
return {
|
|
13723
|
+
"categoryId": json["category_id"] == null ? void 0 : json["category_id"],
|
|
13724
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
13725
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"],
|
|
13726
|
+
"source": json["source"] == null ? void 0 : json["source"]
|
|
13727
|
+
};
|
|
13728
|
+
}
|
|
13729
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON(json) {
|
|
13730
|
+
return UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped(json, false);
|
|
13731
|
+
}
|
|
13732
|
+
function UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13733
|
+
if (value == null) {
|
|
13734
|
+
return value;
|
|
13735
|
+
}
|
|
13736
|
+
return {
|
|
13737
|
+
"category_id": value["categoryId"],
|
|
13738
|
+
"channel": value["channel"],
|
|
13739
|
+
"enabled": value["enabled"],
|
|
13740
|
+
"source": value["source"]
|
|
13741
|
+
};
|
|
13742
|
+
}
|
|
13743
|
+
|
|
13744
|
+
// src/src/models/UpdateSubscriberPreferences200ResponseData.ts
|
|
13745
|
+
function instanceOfUpdateSubscriberPreferences200ResponseData(value) {
|
|
13746
|
+
return true;
|
|
13747
|
+
}
|
|
13748
|
+
function UpdateSubscriberPreferences200ResponseDataFromJSON(json) {
|
|
13749
|
+
return UpdateSubscriberPreferences200ResponseDataFromJSONTyped(json, false);
|
|
13750
|
+
}
|
|
13751
|
+
function UpdateSubscriberPreferences200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
13752
|
+
if (json == null) {
|
|
13753
|
+
return json;
|
|
13754
|
+
}
|
|
13755
|
+
return {
|
|
13756
|
+
"updated": json["updated"] == null ? void 0 : json["updated"],
|
|
13757
|
+
"preferences": json["preferences"] == null ? void 0 : json["preferences"].map(UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON)
|
|
13758
|
+
};
|
|
13759
|
+
}
|
|
13760
|
+
function UpdateSubscriberPreferences200ResponseDataToJSON(json) {
|
|
13761
|
+
return UpdateSubscriberPreferences200ResponseDataToJSONTyped(json, false);
|
|
13762
|
+
}
|
|
13763
|
+
function UpdateSubscriberPreferences200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13764
|
+
if (value == null) {
|
|
13765
|
+
return value;
|
|
13766
|
+
}
|
|
13767
|
+
return {
|
|
13768
|
+
"updated": value["updated"],
|
|
13769
|
+
"preferences": value["preferences"] == null ? void 0 : value["preferences"].map(UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON)
|
|
13770
|
+
};
|
|
13771
|
+
}
|
|
13772
|
+
|
|
13773
|
+
// src/src/models/UpdateSubscriberPreferences200Response.ts
|
|
13774
|
+
function instanceOfUpdateSubscriberPreferences200Response(value) {
|
|
13775
|
+
return true;
|
|
13776
|
+
}
|
|
13777
|
+
function UpdateSubscriberPreferences200ResponseFromJSON(json) {
|
|
13778
|
+
return UpdateSubscriberPreferences200ResponseFromJSONTyped(json, false);
|
|
13779
|
+
}
|
|
13780
|
+
function UpdateSubscriberPreferences200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13781
|
+
if (json == null) {
|
|
13782
|
+
return json;
|
|
13783
|
+
}
|
|
13784
|
+
return {
|
|
13785
|
+
"data": json["data"] == null ? void 0 : UpdateSubscriberPreferences200ResponseDataFromJSON(json["data"])
|
|
13786
|
+
};
|
|
13787
|
+
}
|
|
13788
|
+
function UpdateSubscriberPreferences200ResponseToJSON(json) {
|
|
13789
|
+
return UpdateSubscriberPreferences200ResponseToJSONTyped(json, false);
|
|
13790
|
+
}
|
|
13791
|
+
function UpdateSubscriberPreferences200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
13792
|
+
if (value == null) {
|
|
13793
|
+
return value;
|
|
13794
|
+
}
|
|
13795
|
+
return {
|
|
13796
|
+
"data": UpdateSubscriberPreferences200ResponseDataToJSON(value["data"])
|
|
13797
|
+
};
|
|
13798
|
+
}
|
|
13799
|
+
|
|
12738
13800
|
// src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
12739
13801
|
var UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum = {
|
|
12740
13802
|
EMAIL: "email",
|
|
@@ -12947,6 +14009,35 @@ function UpdateWaaSApplicationRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
12947
14009
|
};
|
|
12948
14010
|
}
|
|
12949
14011
|
|
|
14012
|
+
// src/src/models/UpdateWaaSEndpoint200Response.ts
|
|
14013
|
+
function instanceOfUpdateWaaSEndpoint200Response(value) {
|
|
14014
|
+
return true;
|
|
14015
|
+
}
|
|
14016
|
+
function UpdateWaaSEndpoint200ResponseFromJSON(json) {
|
|
14017
|
+
return UpdateWaaSEndpoint200ResponseFromJSONTyped(json, false);
|
|
14018
|
+
}
|
|
14019
|
+
function UpdateWaaSEndpoint200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14020
|
+
if (json == null) {
|
|
14021
|
+
return json;
|
|
14022
|
+
}
|
|
14023
|
+
return {
|
|
14024
|
+
"data": json["data"] == null ? void 0 : WaaSEndpointFromJSON(json["data"]),
|
|
14025
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
14026
|
+
};
|
|
14027
|
+
}
|
|
14028
|
+
function UpdateWaaSEndpoint200ResponseToJSON(json) {
|
|
14029
|
+
return UpdateWaaSEndpoint200ResponseToJSONTyped(json, false);
|
|
14030
|
+
}
|
|
14031
|
+
function UpdateWaaSEndpoint200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14032
|
+
if (value == null) {
|
|
14033
|
+
return value;
|
|
14034
|
+
}
|
|
14035
|
+
return {
|
|
14036
|
+
"data": WaaSEndpointToJSON(value["data"]),
|
|
14037
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
14038
|
+
};
|
|
14039
|
+
}
|
|
14040
|
+
|
|
12950
14041
|
// src/src/models/UpdateWaaSEndpointRequest.ts
|
|
12951
14042
|
var UpdateWaaSEndpointRequestStatusEnum = {
|
|
12952
14043
|
ACTIVE: "active",
|
|
@@ -12983,6 +14074,35 @@ function UpdateWaaSEndpointRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
12983
14074
|
};
|
|
12984
14075
|
}
|
|
12985
14076
|
|
|
14077
|
+
// src/src/models/UpdateWaaSEventType200Response.ts
|
|
14078
|
+
function instanceOfUpdateWaaSEventType200Response(value) {
|
|
14079
|
+
return true;
|
|
14080
|
+
}
|
|
14081
|
+
function UpdateWaaSEventType200ResponseFromJSON(json) {
|
|
14082
|
+
return UpdateWaaSEventType200ResponseFromJSONTyped(json, false);
|
|
14083
|
+
}
|
|
14084
|
+
function UpdateWaaSEventType200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14085
|
+
if (json == null) {
|
|
14086
|
+
return json;
|
|
14087
|
+
}
|
|
14088
|
+
return {
|
|
14089
|
+
"data": json["data"] == null ? void 0 : WaaSEventTypeFromJSON(json["data"]),
|
|
14090
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
14091
|
+
};
|
|
14092
|
+
}
|
|
14093
|
+
function UpdateWaaSEventType200ResponseToJSON(json) {
|
|
14094
|
+
return UpdateWaaSEventType200ResponseToJSONTyped(json, false);
|
|
14095
|
+
}
|
|
14096
|
+
function UpdateWaaSEventType200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14097
|
+
if (value == null) {
|
|
14098
|
+
return value;
|
|
14099
|
+
}
|
|
14100
|
+
return {
|
|
14101
|
+
"data": WaaSEventTypeToJSON(value["data"]),
|
|
14102
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
14103
|
+
};
|
|
14104
|
+
}
|
|
14105
|
+
|
|
12986
14106
|
// src/src/models/UpdateWaaSEventTypeRequest.ts
|
|
12987
14107
|
function instanceOfUpdateWaaSEventTypeRequest(value) {
|
|
12988
14108
|
return true;
|
|
@@ -17895,14 +19015,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17895
19015
|
headers: headerParameters,
|
|
17896
19016
|
query: queryParameters
|
|
17897
19017
|
}, initOverrides);
|
|
17898
|
-
return new
|
|
19018
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
17899
19019
|
}
|
|
17900
19020
|
/**
|
|
17901
19021
|
* 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.
|
|
17902
19022
|
* Look up an end user by email (server-side admin)
|
|
17903
19023
|
*/
|
|
17904
19024
|
async getEndUserByEmail(email, initOverrides) {
|
|
17905
|
-
await this.getEndUserByEmailRaw({ email }, initOverrides);
|
|
19025
|
+
const response = await this.getEndUserByEmailRaw({ email }, initOverrides);
|
|
19026
|
+
return await response.value();
|
|
17906
19027
|
}
|
|
17907
19028
|
/**
|
|
17908
19029
|
* 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.
|
|
@@ -17929,14 +19050,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17929
19050
|
headers: headerParameters,
|
|
17930
19051
|
query: queryParameters
|
|
17931
19052
|
}, initOverrides);
|
|
17932
|
-
return new
|
|
19053
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
17933
19054
|
}
|
|
17934
19055
|
/**
|
|
17935
19056
|
* 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.
|
|
17936
19057
|
* Get an end user by id (server-side admin)
|
|
17937
19058
|
*/
|
|
17938
19059
|
async getEndUserById(userId, initOverrides) {
|
|
17939
|
-
await this.getEndUserByIdRaw({ userId }, initOverrides);
|
|
19060
|
+
const response = await this.getEndUserByIdRaw({ userId }, initOverrides);
|
|
19061
|
+
return await response.value();
|
|
17940
19062
|
}
|
|
17941
19063
|
/**
|
|
17942
19064
|
* 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.
|
|
@@ -17963,14 +19085,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17963
19085
|
headers: headerParameters,
|
|
17964
19086
|
query: queryParameters
|
|
17965
19087
|
}, initOverrides);
|
|
17966
|
-
return new
|
|
19088
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserClaims200ResponseFromJSON(jsonValue));
|
|
17967
19089
|
}
|
|
17968
19090
|
/**
|
|
17969
19091
|
* 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.
|
|
17970
19092
|
* Get an end user\'s stored custom claims (server-side admin)
|
|
17971
19093
|
*/
|
|
17972
19094
|
async getEndUserClaims(userId, initOverrides) {
|
|
17973
|
-
await this.getEndUserClaimsRaw({ userId }, initOverrides);
|
|
19095
|
+
const response = await this.getEndUserClaimsRaw({ userId }, initOverrides);
|
|
19096
|
+
return await response.value();
|
|
17974
19097
|
}
|
|
17975
19098
|
/**
|
|
17976
19099
|
* 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).
|
|
@@ -17999,14 +19122,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
17999
19122
|
query: queryParameters,
|
|
18000
19123
|
body: InviteEndUserRequestToJSON(requestParameters["inviteEndUserRequest"])
|
|
18001
19124
|
}, initOverrides);
|
|
18002
|
-
return new
|
|
19125
|
+
return new JSONApiResponse(response, (jsonValue) => InviteEndUser200ResponseFromJSON(jsonValue));
|
|
18003
19126
|
}
|
|
18004
19127
|
/**
|
|
18005
19128
|
* 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).
|
|
18006
19129
|
* Pre-provision (invite) an end user (server-side admin)
|
|
18007
19130
|
*/
|
|
18008
19131
|
async inviteEndUser(inviteEndUserRequest, initOverrides) {
|
|
18009
|
-
await this.inviteEndUserRaw({ inviteEndUserRequest }, initOverrides);
|
|
19132
|
+
const response = await this.inviteEndUserRaw({ inviteEndUserRequest }, initOverrides);
|
|
19133
|
+
return await response.value();
|
|
18010
19134
|
}
|
|
18011
19135
|
/**
|
|
18012
19136
|
* 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.
|
|
@@ -18039,17 +19163,18 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18039
19163
|
headers: headerParameters,
|
|
18040
19164
|
query: queryParameters
|
|
18041
19165
|
}, initOverrides);
|
|
18042
|
-
return new
|
|
19166
|
+
return new JSONApiResponse(response, (jsonValue) => ListEndUsers200ResponseFromJSON(jsonValue));
|
|
18043
19167
|
}
|
|
18044
19168
|
/**
|
|
18045
19169
|
* 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.
|
|
18046
19170
|
* List / search end users (server-side admin)
|
|
18047
19171
|
*/
|
|
18048
19172
|
async listEndUsers(page, perPage, search, environment, initOverrides) {
|
|
18049
|
-
await this.listEndUsersRaw({ page, perPage, search, environment }, initOverrides);
|
|
19173
|
+
const response = await this.listEndUsersRaw({ page, perPage, search, environment }, initOverrides);
|
|
19174
|
+
return await response.value();
|
|
18050
19175
|
}
|
|
18051
19176
|
/**
|
|
18052
|
-
* 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.
|
|
19177
|
+
* 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.
|
|
18053
19178
|
* Set an end user\'s stored custom claims (server-side admin)
|
|
18054
19179
|
*/
|
|
18055
19180
|
async setEndUserClaimsRaw(requestParameters, initOverrides) {
|
|
@@ -18081,14 +19206,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18081
19206
|
query: queryParameters,
|
|
18082
19207
|
body: SetEndUserClaimsRequestToJSON(requestParameters["setEndUserClaimsRequest"])
|
|
18083
19208
|
}, initOverrides);
|
|
18084
|
-
return new
|
|
19209
|
+
return new JSONApiResponse(response, (jsonValue) => SetEndUserClaims200ResponseFromJSON(jsonValue));
|
|
18085
19210
|
}
|
|
18086
19211
|
/**
|
|
18087
|
-
* 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.
|
|
19212
|
+
* 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.
|
|
18088
19213
|
* Set an end user\'s stored custom claims (server-side admin)
|
|
18089
19214
|
*/
|
|
18090
19215
|
async setEndUserClaims(userId, setEndUserClaimsRequest, initOverrides) {
|
|
18091
|
-
await this.setEndUserClaimsRaw({ userId, setEndUserClaimsRequest }, initOverrides);
|
|
19216
|
+
const response = await this.setEndUserClaimsRaw({ userId, setEndUserClaimsRequest }, initOverrides);
|
|
19217
|
+
return await response.value();
|
|
18092
19218
|
}
|
|
18093
19219
|
/**
|
|
18094
19220
|
* 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.
|
|
@@ -18123,14 +19249,15 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
18123
19249
|
query: queryParameters,
|
|
18124
19250
|
body: UpdateEndUserByApplicationRequestToJSON(requestParameters["updateEndUserByApplicationRequest"])
|
|
18125
19251
|
}, initOverrides);
|
|
18126
|
-
return new
|
|
19252
|
+
return new JSONApiResponse(response, (jsonValue) => GetEndUserById200ResponseFromJSON(jsonValue));
|
|
18127
19253
|
}
|
|
18128
19254
|
/**
|
|
18129
19255
|
* 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.
|
|
18130
19256
|
* Update an end user (server-side admin)
|
|
18131
19257
|
*/
|
|
18132
19258
|
async updateEndUserByApplication(userId, updateEndUserByApplicationRequest, initOverrides) {
|
|
18133
|
-
await this.updateEndUserByApplicationRaw({ userId, updateEndUserByApplicationRequest }, initOverrides);
|
|
19259
|
+
const response = await this.updateEndUserByApplicationRaw({ userId, updateEndUserByApplicationRequest }, initOverrides);
|
|
19260
|
+
return await response.value();
|
|
18134
19261
|
}
|
|
18135
19262
|
};
|
|
18136
19263
|
var ListEndUsersEnvironmentEnum = {
|
|
@@ -18946,14 +20073,15 @@ var DomainsApi = class extends BaseAPI {
|
|
|
18946
20073
|
query: queryParameters,
|
|
18947
20074
|
body: SetDomainInboundRequestToJSON(requestParameters["setDomainInboundRequest"])
|
|
18948
20075
|
}, initOverrides);
|
|
18949
|
-
return new
|
|
20076
|
+
return new JSONApiResponse(response, (jsonValue) => GetDomain200ResponseFromJSON(jsonValue));
|
|
18950
20077
|
}
|
|
18951
20078
|
/**
|
|
18952
20079
|
* 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+).
|
|
18953
20080
|
* Enable or disable inbound email for a domain
|
|
18954
20081
|
*/
|
|
18955
20082
|
async setDomainInbound(id, setDomainInboundRequest, initOverrides) {
|
|
18956
|
-
await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
20083
|
+
const response = await this.setDomainInboundRaw({ id, setDomainInboundRequest }, initOverrides);
|
|
20084
|
+
return await response.value();
|
|
18957
20085
|
}
|
|
18958
20086
|
/**
|
|
18959
20087
|
* 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).
|
|
@@ -19487,13 +20615,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
19487
20615
|
headers: headerParameters,
|
|
19488
20616
|
query: queryParameters
|
|
19489
20617
|
}, initOverrides);
|
|
19490
|
-
return new
|
|
20618
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
19491
20619
|
}
|
|
19492
20620
|
/**
|
|
19493
20621
|
* Archive a notification
|
|
19494
20622
|
*/
|
|
19495
20623
|
async archiveSubscriberNotification(id, initOverrides) {
|
|
19496
|
-
await this.archiveSubscriberNotificationRaw({ id }, initOverrides);
|
|
20624
|
+
const response = await this.archiveSubscriberNotificationRaw({ id }, initOverrides);
|
|
20625
|
+
return await response.value();
|
|
19497
20626
|
}
|
|
19498
20627
|
/**
|
|
19499
20628
|
* Permanently delete an in-app notification.
|
|
@@ -19566,7 +20695,7 @@ var InboxApi = class extends BaseAPI {
|
|
|
19566
20695
|
await this.deleteSubscriberNotificationRaw({ id }, initOverrides);
|
|
19567
20696
|
}
|
|
19568
20697
|
/**
|
|
19569
|
-
* Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr/inbox-react`\'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
20698
|
+
* Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr-dev/inbox-react`\'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
19570
20699
|
* Generate a subscriber token
|
|
19571
20700
|
*/
|
|
19572
20701
|
async generateSubscriberTokenRaw(requestParameters, initOverrides) {
|
|
@@ -19592,7 +20721,7 @@ var InboxApi = class extends BaseAPI {
|
|
|
19592
20721
|
return new JSONApiResponse(response, (jsonValue) => GenerateSubscriberToken200ResponseFromJSON(jsonValue));
|
|
19593
20722
|
}
|
|
19594
20723
|
/**
|
|
19595
|
-
* Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr/inbox-react`\'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
20724
|
+
* Generate a JWT token for client-side inbox authentication. This is a server-side call that requires your API key. Pass the returned token to `@zyphr-dev/inbox-react`\'s `<ZyphrProvider subscriberToken=\"...\">` or use it as `Authorization: Bearer <token>` for client-side inbox API calls and WebSocket connections. The token expires in 7 days.
|
|
19596
20725
|
* Generate a subscriber token
|
|
19597
20726
|
*/
|
|
19598
20727
|
async generateSubscriberToken(generateSubscriberTokenRequest, initOverrides) {
|
|
@@ -19657,14 +20786,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19657
20786
|
headers: headerParameters,
|
|
19658
20787
|
query: queryParameters
|
|
19659
20788
|
}, initOverrides);
|
|
19660
|
-
return new
|
|
20789
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberInboxPreferences200ResponseFromJSON(jsonValue));
|
|
19661
20790
|
}
|
|
19662
20791
|
/**
|
|
19663
20792
|
* Get notification preferences grouped by category for the authenticated subscriber.
|
|
19664
20793
|
* Get subscriber preferences
|
|
19665
20794
|
*/
|
|
19666
20795
|
async getSubscriberInboxPreferences(initOverrides) {
|
|
19667
|
-
await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
20796
|
+
const response = await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
20797
|
+
return await response.value();
|
|
19668
20798
|
}
|
|
19669
20799
|
/**
|
|
19670
20800
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
@@ -19692,14 +20822,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19692
20822
|
headers: headerParameters,
|
|
19693
20823
|
query: queryParameters
|
|
19694
20824
|
}, initOverrides);
|
|
19695
|
-
return new
|
|
20825
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
19696
20826
|
}
|
|
19697
20827
|
/**
|
|
19698
20828
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
19699
20829
|
* Get a notification
|
|
19700
20830
|
*/
|
|
19701
20831
|
async getSubscriberNotification(id, initOverrides) {
|
|
19702
|
-
await this.getSubscriberNotificationRaw({ id }, initOverrides);
|
|
20832
|
+
const response = await this.getSubscriberNotificationRaw({ id }, initOverrides);
|
|
20833
|
+
return await response.value();
|
|
19703
20834
|
}
|
|
19704
20835
|
/**
|
|
19705
20836
|
* Get the unread notification count for the authenticated subscriber.
|
|
@@ -19721,14 +20852,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19721
20852
|
headers: headerParameters,
|
|
19722
20853
|
query: queryParameters
|
|
19723
20854
|
}, initOverrides);
|
|
19724
|
-
return new
|
|
20855
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberUnreadCount200ResponseFromJSON(jsonValue));
|
|
19725
20856
|
}
|
|
19726
20857
|
/**
|
|
19727
20858
|
* Get the unread notification count for the authenticated subscriber.
|
|
19728
20859
|
* Get unread count
|
|
19729
20860
|
*/
|
|
19730
20861
|
async getSubscriberUnreadCount(initOverrides) {
|
|
19731
|
-
await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
20862
|
+
const response = await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
20863
|
+
return await response.value();
|
|
19732
20864
|
}
|
|
19733
20865
|
/**
|
|
19734
20866
|
* Get the count of unread in-app notifications for a subscriber.
|
|
@@ -19796,14 +20928,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19796
20928
|
headers: headerParameters,
|
|
19797
20929
|
query: queryParameters
|
|
19798
20930
|
}, initOverrides);
|
|
19799
|
-
return new
|
|
20931
|
+
return new JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
19800
20932
|
}
|
|
19801
20933
|
/**
|
|
19802
20934
|
* List all in-app notifications for the current project. Used by the dashboard to display all notifications without requiring a subscriber selection.
|
|
19803
20935
|
* List all project notifications
|
|
19804
20936
|
*/
|
|
19805
20937
|
async listAllInbox(subscriberId, status, category, search, limit, offset, initOverrides) {
|
|
19806
|
-
await this.listAllInboxRaw({ subscriberId, status, category, search, limit, offset }, initOverrides);
|
|
20938
|
+
const response = await this.listAllInboxRaw({ subscriberId, status, category, search, limit, offset }, initOverrides);
|
|
20939
|
+
return await response.value();
|
|
19807
20940
|
}
|
|
19808
20941
|
/**
|
|
19809
20942
|
* Retrieve in-app notifications for a subscriber. Requires subscriber_id or external_id.
|
|
@@ -19890,14 +21023,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
19890
21023
|
headers: headerParameters,
|
|
19891
21024
|
query: queryParameters
|
|
19892
21025
|
}, initOverrides);
|
|
19893
|
-
return new
|
|
21026
|
+
return new JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
19894
21027
|
}
|
|
19895
21028
|
/**
|
|
19896
21029
|
* List notifications for the authenticated subscriber. Supports cursor-based pagination.
|
|
19897
21030
|
* List subscriber notifications
|
|
19898
21031
|
*/
|
|
19899
21032
|
async listSubscriberNotifications(category, includeRead, includeArchived, limit, cursor, initOverrides) {
|
|
19900
|
-
await this.listSubscriberNotificationsRaw({ category, includeRead, includeArchived, limit, cursor }, initOverrides);
|
|
21033
|
+
const response = await this.listSubscriberNotificationsRaw({ category, includeRead, includeArchived, limit, cursor }, initOverrides);
|
|
21034
|
+
return await response.value();
|
|
19901
21035
|
}
|
|
19902
21036
|
/**
|
|
19903
21037
|
* Mark all unread in-app notifications as read for a subscriber. Optionally filter by category.
|
|
@@ -19954,13 +21088,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
19954
21088
|
query: queryParameters,
|
|
19955
21089
|
body: MarkAllSubscriberNotificationsReadRequestToJSON(requestParameters["markAllSubscriberNotificationsReadRequest"])
|
|
19956
21090
|
}, initOverrides);
|
|
19957
|
-
return new
|
|
21091
|
+
return new JSONApiResponse(response, (jsonValue) => MarkAllSubscriberNotificationsRead200ResponseFromJSON(jsonValue));
|
|
19958
21092
|
}
|
|
19959
21093
|
/**
|
|
19960
21094
|
* Mark all notifications as read
|
|
19961
21095
|
*/
|
|
19962
21096
|
async markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest, initOverrides) {
|
|
19963
|
-
await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
21097
|
+
const response = await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
21098
|
+
return await response.value();
|
|
19964
21099
|
}
|
|
19965
21100
|
/**
|
|
19966
21101
|
* Mark a specific in-app notification as read.
|
|
@@ -20021,13 +21156,14 @@ var InboxApi = class extends BaseAPI {
|
|
|
20021
21156
|
headers: headerParameters,
|
|
20022
21157
|
query: queryParameters
|
|
20023
21158
|
}, initOverrides);
|
|
20024
|
-
return new
|
|
21159
|
+
return new JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
20025
21160
|
}
|
|
20026
21161
|
/**
|
|
20027
21162
|
* Mark notification as read
|
|
20028
21163
|
*/
|
|
20029
21164
|
async markSubscriberNotificationRead(id, initOverrides) {
|
|
20030
|
-
await this.markSubscriberNotificationReadRaw({ id }, initOverrides);
|
|
21165
|
+
const response = await this.markSubscriberNotificationReadRaw({ id }, initOverrides);
|
|
21166
|
+
return await response.value();
|
|
20031
21167
|
}
|
|
20032
21168
|
/**
|
|
20033
21169
|
* Send in-app notifications to multiple subscribers in a single request (max 100).
|
|
@@ -20125,14 +21261,15 @@ var InboxApi = class extends BaseAPI {
|
|
|
20125
21261
|
query: queryParameters,
|
|
20126
21262
|
body: UpdateSubscriberPreferencesRequestToJSON(requestParameters["updateSubscriberPreferencesRequest"])
|
|
20127
21263
|
}, initOverrides);
|
|
20128
|
-
return new
|
|
21264
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateSubscriberPreferences200ResponseFromJSON(jsonValue));
|
|
20129
21265
|
}
|
|
20130
21266
|
/**
|
|
20131
21267
|
* Update notification channel preferences for specific categories or globally.
|
|
20132
21268
|
* Update subscriber preferences
|
|
20133
21269
|
*/
|
|
20134
21270
|
async updateSubscriberPreferences(updateSubscriberPreferencesRequest, initOverrides) {
|
|
20135
|
-
await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest }, initOverrides);
|
|
21271
|
+
const response = await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest }, initOverrides);
|
|
21272
|
+
return await response.value();
|
|
20136
21273
|
}
|
|
20137
21274
|
};
|
|
20138
21275
|
var ListAllInboxStatusEnum = {
|
|
@@ -21763,14 +22900,15 @@ var TemplatesApi = class extends BaseAPI {
|
|
|
21763
22900
|
query: queryParameters,
|
|
21764
22901
|
body: SendTemplateTestEmailRequestToJSON(requestParameters["sendTemplateTestEmailRequest"])
|
|
21765
22902
|
}, initOverrides);
|
|
21766
|
-
return new
|
|
22903
|
+
return new JSONApiResponse(response, (jsonValue) => SendTemplateTestEmail202ResponseFromJSON(jsonValue));
|
|
21767
22904
|
}
|
|
21768
22905
|
/**
|
|
21769
22906
|
* 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`.
|
|
21770
22907
|
* Send a test email using a template
|
|
21771
22908
|
*/
|
|
21772
22909
|
async sendTemplateTestEmail(id, sendTemplateTestEmailRequest, initOverrides) {
|
|
21773
|
-
await this.sendTemplateTestEmailRaw({ id, sendTemplateTestEmailRequest }, initOverrides);
|
|
22910
|
+
const response = await this.sendTemplateTestEmailRaw({ id, sendTemplateTestEmailRequest }, initOverrides);
|
|
22911
|
+
return await response.value();
|
|
21774
22912
|
}
|
|
21775
22913
|
/**
|
|
21776
22914
|
* Update an existing template. Only provided fields are changed.
|
|
@@ -22408,14 +23546,15 @@ var WaaSDeliveriesApi = class extends BaseAPI {
|
|
|
22408
23546
|
headers: headerParameters,
|
|
22409
23547
|
query: queryParameters
|
|
22410
23548
|
}, initOverrides);
|
|
22411
|
-
return new
|
|
23549
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
22412
23550
|
}
|
|
22413
23551
|
/**
|
|
22414
23552
|
* Get full delivery details including request/response data.
|
|
22415
23553
|
* Get delivery detail
|
|
22416
23554
|
*/
|
|
22417
23555
|
async getWaaSDelivery(appId, deliveryId, initOverrides) {
|
|
22418
|
-
await this.getWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23556
|
+
const response = await this.getWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23557
|
+
return await response.value();
|
|
22419
23558
|
}
|
|
22420
23559
|
/**
|
|
22421
23560
|
* List delivery records for a WaaS application. Filter by tenant, event type, or status.
|
|
@@ -22539,14 +23678,15 @@ var WaaSDeliveriesApi = class extends BaseAPI {
|
|
|
22539
23678
|
headers: headerParameters,
|
|
22540
23679
|
query: queryParameters
|
|
22541
23680
|
}, initOverrides);
|
|
22542
|
-
return new
|
|
23681
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
22543
23682
|
}
|
|
22544
23683
|
/**
|
|
22545
23684
|
* Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
22546
23685
|
* Retry a delivery
|
|
22547
23686
|
*/
|
|
22548
23687
|
async retryWaaSDelivery(appId, deliveryId, initOverrides) {
|
|
22549
|
-
await this.retryWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23688
|
+
const response = await this.retryWaaSDeliveryRaw({ appId, deliveryId }, initOverrides);
|
|
23689
|
+
return await response.value();
|
|
22550
23690
|
}
|
|
22551
23691
|
};
|
|
22552
23692
|
var ListWaaSDeliveriesStatusEnum = {
|
|
@@ -22588,14 +23728,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22588
23728
|
headers: headerParameters,
|
|
22589
23729
|
query: queryParameters
|
|
22590
23730
|
}, initOverrides);
|
|
22591
|
-
return new
|
|
23731
|
+
return new JSONApiResponse(response, (jsonValue) => CloseWaaSEndpointCircuit200ResponseFromJSON(jsonValue));
|
|
22592
23732
|
}
|
|
22593
23733
|
/**
|
|
22594
23734
|
* Force the circuit breaker to close, resuming deliveries to the endpoint.
|
|
22595
23735
|
* Force-close circuit breaker
|
|
22596
23736
|
*/
|
|
22597
23737
|
async closeWaaSEndpointCircuit(appId, endpointId, initOverrides) {
|
|
22598
|
-
await this.closeWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23738
|
+
const response = await this.closeWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23739
|
+
return await response.value();
|
|
22599
23740
|
}
|
|
22600
23741
|
/**
|
|
22601
23742
|
* Create a webhook endpoint for a specific tenant. The signing secret is returned only on creation.
|
|
@@ -22738,14 +23879,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22738
23879
|
headers: headerParameters,
|
|
22739
23880
|
query: queryParameters
|
|
22740
23881
|
}, initOverrides);
|
|
22741
|
-
return new
|
|
23882
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSEndpointCircuit200ResponseFromJSON(jsonValue));
|
|
22742
23883
|
}
|
|
22743
23884
|
/**
|
|
22744
23885
|
* Get the circuit breaker state for an endpoint (closed, open, or half-open).
|
|
22745
23886
|
* Get circuit breaker state
|
|
22746
23887
|
*/
|
|
22747
23888
|
async getWaaSEndpointCircuit(appId, endpointId, initOverrides) {
|
|
22748
|
-
await this.getWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23889
|
+
const response = await this.getWaaSEndpointCircuitRaw({ appId, endpointId }, initOverrides);
|
|
23890
|
+
return await response.value();
|
|
22749
23891
|
}
|
|
22750
23892
|
/**
|
|
22751
23893
|
* Get delivery success rate, latency, and health metrics for an endpoint.
|
|
@@ -22775,14 +23917,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22775
23917
|
headers: headerParameters,
|
|
22776
23918
|
query: queryParameters
|
|
22777
23919
|
}, initOverrides);
|
|
22778
|
-
return new
|
|
23920
|
+
return new JSONApiResponse(response, (jsonValue) => GetWaaSEndpointMetrics200ResponseFromJSON(jsonValue));
|
|
22779
23921
|
}
|
|
22780
23922
|
/**
|
|
22781
23923
|
* Get delivery success rate, latency, and health metrics for an endpoint.
|
|
22782
23924
|
* Get endpoint metrics
|
|
22783
23925
|
*/
|
|
22784
23926
|
async getWaaSEndpointMetrics(appId, endpointId, initOverrides) {
|
|
22785
|
-
await this.getWaaSEndpointMetricsRaw({ appId, endpointId }, initOverrides);
|
|
23927
|
+
const response = await this.getWaaSEndpointMetricsRaw({ appId, endpointId }, initOverrides);
|
|
23928
|
+
return await response.value();
|
|
22786
23929
|
}
|
|
22787
23930
|
/**
|
|
22788
23931
|
* List all endpoints for a WaaS application. Optionally filter by tenant ID or status.
|
|
@@ -22856,14 +23999,15 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22856
23999
|
headers: headerParameters,
|
|
22857
24000
|
query: queryParameters
|
|
22858
24001
|
}, initOverrides);
|
|
22859
|
-
return new
|
|
24002
|
+
return new JSONApiResponse(response, (jsonValue) => RotateWaaSEndpointSecret200ResponseFromJSON(jsonValue));
|
|
22860
24003
|
}
|
|
22861
24004
|
/**
|
|
22862
24005
|
* Rotate the signing secret for an endpoint. During rotation, deliveries are signed with both old and new secrets.
|
|
22863
24006
|
* Rotate endpoint secret
|
|
22864
24007
|
*/
|
|
22865
24008
|
async rotateWaaSEndpointSecret(appId, endpointId, initOverrides) {
|
|
22866
|
-
await this.rotateWaaSEndpointSecretRaw({ appId, endpointId }, initOverrides);
|
|
24009
|
+
const response = await this.rotateWaaSEndpointSecretRaw({ appId, endpointId }, initOverrides);
|
|
24010
|
+
return await response.value();
|
|
22867
24011
|
}
|
|
22868
24012
|
/**
|
|
22869
24013
|
* Update an endpoint
|
|
@@ -22900,13 +24044,14 @@ var WaaSEndpointsApi = class extends BaseAPI {
|
|
|
22900
24044
|
query: queryParameters,
|
|
22901
24045
|
body: UpdateWaaSEndpointRequestToJSON(requestParameters["updateWaaSEndpointRequest"])
|
|
22902
24046
|
}, initOverrides);
|
|
22903
|
-
return new
|
|
24047
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEndpoint200ResponseFromJSON(jsonValue));
|
|
22904
24048
|
}
|
|
22905
24049
|
/**
|
|
22906
24050
|
* Update an endpoint
|
|
22907
24051
|
*/
|
|
22908
24052
|
async updateWaaSEndpoint(appId, endpointId, updateWaaSEndpointRequest, initOverrides) {
|
|
22909
|
-
await this.updateWaaSEndpointRaw({ appId, endpointId, updateWaaSEndpointRequest }, initOverrides);
|
|
24053
|
+
const response = await this.updateWaaSEndpointRaw({ appId, endpointId, updateWaaSEndpointRequest }, initOverrides);
|
|
24054
|
+
return await response.value();
|
|
22910
24055
|
}
|
|
22911
24056
|
};
|
|
22912
24057
|
var ListWaaSEndpointsStatusEnum = {
|
|
@@ -23022,14 +24167,15 @@ var WaaSEventTypesApi = class extends BaseAPI {
|
|
|
23022
24167
|
headers: headerParameters,
|
|
23023
24168
|
query: queryParameters
|
|
23024
24169
|
}, initOverrides);
|
|
23025
|
-
return new
|
|
24170
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEventType200ResponseFromJSON(jsonValue));
|
|
23026
24171
|
}
|
|
23027
24172
|
/**
|
|
23028
24173
|
* Mark an event type as deprecated. Existing subscriptions continue to receive deliveries, but new subscriptions are blocked.
|
|
23029
24174
|
* Deprecate an event type
|
|
23030
24175
|
*/
|
|
23031
24176
|
async deprecateWaaSEventType(appId, eventTypeId, initOverrides) {
|
|
23032
|
-
await this.deprecateWaaSEventTypeRaw({ appId, eventTypeId }, initOverrides);
|
|
24177
|
+
const response = await this.deprecateWaaSEventTypeRaw({ appId, eventTypeId }, initOverrides);
|
|
24178
|
+
return await response.value();
|
|
23033
24179
|
}
|
|
23034
24180
|
/**
|
|
23035
24181
|
* Get an event type
|
|
@@ -23146,13 +24292,14 @@ var WaaSEventTypesApi = class extends BaseAPI {
|
|
|
23146
24292
|
query: queryParameters,
|
|
23147
24293
|
body: UpdateWaaSEventTypeRequestToJSON(requestParameters["updateWaaSEventTypeRequest"])
|
|
23148
24294
|
}, initOverrides);
|
|
23149
|
-
return new
|
|
24295
|
+
return new JSONApiResponse(response, (jsonValue) => UpdateWaaSEventType200ResponseFromJSON(jsonValue));
|
|
23150
24296
|
}
|
|
23151
24297
|
/**
|
|
23152
24298
|
* Update an event type
|
|
23153
24299
|
*/
|
|
23154
24300
|
async updateWaaSEventType(appId, eventTypeId, updateWaaSEventTypeRequest, initOverrides) {
|
|
23155
|
-
await this.updateWaaSEventTypeRaw({ appId, eventTypeId, updateWaaSEventTypeRequest }, initOverrides);
|
|
24301
|
+
const response = await this.updateWaaSEventTypeRaw({ appId, eventTypeId, updateWaaSEventTypeRequest }, initOverrides);
|
|
24302
|
+
return await response.value();
|
|
23156
24303
|
}
|
|
23157
24304
|
};
|
|
23158
24305
|
var ListWaaSEventTypesStatusEnum = {
|
|
@@ -24697,6 +25844,7 @@ var Zyphr = class {
|
|
|
24697
25844
|
phone: new AuthPhoneApi(config),
|
|
24698
25845
|
emailOtp: new AuthEmailOTPApi(config),
|
|
24699
25846
|
profile: new AuthUserProfileApi(config),
|
|
25847
|
+
userDirectory: new AuthUserDirectoryApi(config),
|
|
24700
25848
|
webauthn: new AuthWebAuthnApi(config)
|
|
24701
25849
|
};
|
|
24702
25850
|
}
|
|
@@ -25030,6 +26178,15 @@ export {
|
|
|
25030
26178
|
CategoryResponseToJSONTyped,
|
|
25031
26179
|
CategoryToJSON,
|
|
25032
26180
|
CategoryToJSONTyped,
|
|
26181
|
+
CloseWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
26182
|
+
CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
26183
|
+
CloseWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
26184
|
+
CloseWaaSEndpointCircuit200ResponseDataToJSON,
|
|
26185
|
+
CloseWaaSEndpointCircuit200ResponseDataToJSONTyped,
|
|
26186
|
+
CloseWaaSEndpointCircuit200ResponseFromJSON,
|
|
26187
|
+
CloseWaaSEndpointCircuit200ResponseFromJSONTyped,
|
|
26188
|
+
CloseWaaSEndpointCircuit200ResponseToJSON,
|
|
26189
|
+
CloseWaaSEndpointCircuit200ResponseToJSONTyped,
|
|
25033
26190
|
Configuration,
|
|
25034
26191
|
ConfirmEmailVerificationRequestFromJSON,
|
|
25035
26192
|
ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -25353,10 +26510,86 @@ export {
|
|
|
25353
26510
|
GetDomain200ResponseMetaToJSONTyped,
|
|
25354
26511
|
GetDomain200ResponseToJSON,
|
|
25355
26512
|
GetDomain200ResponseToJSONTyped,
|
|
26513
|
+
GetEndUserById200ResponseFromJSON,
|
|
26514
|
+
GetEndUserById200ResponseFromJSONTyped,
|
|
26515
|
+
GetEndUserById200ResponseToJSON,
|
|
26516
|
+
GetEndUserById200ResponseToJSONTyped,
|
|
26517
|
+
GetEndUserClaims200ResponseDataFromJSON,
|
|
26518
|
+
GetEndUserClaims200ResponseDataFromJSONTyped,
|
|
26519
|
+
GetEndUserClaims200ResponseDataToJSON,
|
|
26520
|
+
GetEndUserClaims200ResponseDataToJSONTyped,
|
|
26521
|
+
GetEndUserClaims200ResponseFromJSON,
|
|
26522
|
+
GetEndUserClaims200ResponseFromJSONTyped,
|
|
26523
|
+
GetEndUserClaims200ResponseToJSON,
|
|
26524
|
+
GetEndUserClaims200ResponseToJSONTyped,
|
|
26525
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSON,
|
|
26526
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryFromJSONTyped,
|
|
26527
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSON,
|
|
26528
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategoryToJSONTyped,
|
|
26529
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSON,
|
|
26530
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerFromJSONTyped,
|
|
26531
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSON,
|
|
26532
|
+
GetSubscriberInboxPreferences200ResponseDataCategoriesInnerToJSONTyped,
|
|
26533
|
+
GetSubscriberInboxPreferences200ResponseDataFromJSON,
|
|
26534
|
+
GetSubscriberInboxPreferences200ResponseDataFromJSONTyped,
|
|
26535
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerChannelEnum,
|
|
26536
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSON,
|
|
26537
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerFromJSONTyped,
|
|
26538
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSON,
|
|
26539
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInnerToJSONTyped,
|
|
26540
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalFromJSON,
|
|
26541
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalFromJSONTyped,
|
|
26542
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalToJSON,
|
|
26543
|
+
GetSubscriberInboxPreferences200ResponseDataGlobalToJSONTyped,
|
|
26544
|
+
GetSubscriberInboxPreferences200ResponseDataToJSON,
|
|
26545
|
+
GetSubscriberInboxPreferences200ResponseDataToJSONTyped,
|
|
26546
|
+
GetSubscriberInboxPreferences200ResponseFromJSON,
|
|
26547
|
+
GetSubscriberInboxPreferences200ResponseFromJSONTyped,
|
|
26548
|
+
GetSubscriberInboxPreferences200ResponseToJSON,
|
|
26549
|
+
GetSubscriberInboxPreferences200ResponseToJSONTyped,
|
|
26550
|
+
GetSubscriberNotification200ResponseFromJSON,
|
|
26551
|
+
GetSubscriberNotification200ResponseFromJSONTyped,
|
|
26552
|
+
GetSubscriberNotification200ResponseToJSON,
|
|
26553
|
+
GetSubscriberNotification200ResponseToJSONTyped,
|
|
26554
|
+
GetSubscriberUnreadCount200ResponseFromJSON,
|
|
26555
|
+
GetSubscriberUnreadCount200ResponseFromJSONTyped,
|
|
26556
|
+
GetSubscriberUnreadCount200ResponseToJSON,
|
|
26557
|
+
GetSubscriberUnreadCount200ResponseToJSONTyped,
|
|
26558
|
+
GetWaaSDelivery200ResponseFromJSON,
|
|
26559
|
+
GetWaaSDelivery200ResponseFromJSONTyped,
|
|
26560
|
+
GetWaaSDelivery200ResponseToJSON,
|
|
26561
|
+
GetWaaSDelivery200ResponseToJSONTyped,
|
|
25356
26562
|
GetWaaSEndpoint200ResponseFromJSON,
|
|
25357
26563
|
GetWaaSEndpoint200ResponseFromJSONTyped,
|
|
25358
26564
|
GetWaaSEndpoint200ResponseToJSON,
|
|
25359
26565
|
GetWaaSEndpoint200ResponseToJSONTyped,
|
|
26566
|
+
GetWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
26567
|
+
GetWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
26568
|
+
GetWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
26569
|
+
GetWaaSEndpointCircuit200ResponseDataToJSON,
|
|
26570
|
+
GetWaaSEndpointCircuit200ResponseDataToJSONTyped,
|
|
26571
|
+
GetWaaSEndpointCircuit200ResponseFromJSON,
|
|
26572
|
+
GetWaaSEndpointCircuit200ResponseFromJSONTyped,
|
|
26573
|
+
GetWaaSEndpointCircuit200ResponseToJSON,
|
|
26574
|
+
GetWaaSEndpointCircuit200ResponseToJSONTyped,
|
|
26575
|
+
GetWaaSEndpointMetrics200ResponseDataFromJSON,
|
|
26576
|
+
GetWaaSEndpointMetrics200ResponseDataFromJSONTyped,
|
|
26577
|
+
GetWaaSEndpointMetrics200ResponseDataHealthFromJSON,
|
|
26578
|
+
GetWaaSEndpointMetrics200ResponseDataHealthFromJSONTyped,
|
|
26579
|
+
GetWaaSEndpointMetrics200ResponseDataHealthStatusEnum,
|
|
26580
|
+
GetWaaSEndpointMetrics200ResponseDataHealthToJSON,
|
|
26581
|
+
GetWaaSEndpointMetrics200ResponseDataHealthToJSONTyped,
|
|
26582
|
+
GetWaaSEndpointMetrics200ResponseDataToJSON,
|
|
26583
|
+
GetWaaSEndpointMetrics200ResponseDataToJSONTyped,
|
|
26584
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSON,
|
|
26585
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueFromJSONTyped,
|
|
26586
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSON,
|
|
26587
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueToJSONTyped,
|
|
26588
|
+
GetWaaSEndpointMetrics200ResponseDataWindowsValueWindowEnum,
|
|
26589
|
+
GetWaaSEndpointMetrics200ResponseFromJSON,
|
|
26590
|
+
GetWaaSEndpointMetrics200ResponseFromJSONTyped,
|
|
26591
|
+
GetWaaSEndpointMetrics200ResponseToJSON,
|
|
26592
|
+
GetWaaSEndpointMetrics200ResponseToJSONTyped,
|
|
25360
26593
|
GetWaaSUsage200ResponseFromJSON,
|
|
25361
26594
|
GetWaaSUsage200ResponseFromJSONTyped,
|
|
25362
26595
|
GetWaaSUsage200ResponseToJSON,
|
|
@@ -25416,6 +26649,14 @@ export {
|
|
|
25416
26649
|
InboxNotificationResponseFromJSONTyped,
|
|
25417
26650
|
InboxNotificationResponseToJSON,
|
|
25418
26651
|
InboxNotificationResponseToJSONTyped,
|
|
26652
|
+
InviteEndUser200ResponseDataFromJSON,
|
|
26653
|
+
InviteEndUser200ResponseDataFromJSONTyped,
|
|
26654
|
+
InviteEndUser200ResponseDataToJSON,
|
|
26655
|
+
InviteEndUser200ResponseDataToJSONTyped,
|
|
26656
|
+
InviteEndUser200ResponseFromJSON,
|
|
26657
|
+
InviteEndUser200ResponseFromJSONTyped,
|
|
26658
|
+
InviteEndUser200ResponseToJSON,
|
|
26659
|
+
InviteEndUser200ResponseToJSONTyped,
|
|
25419
26660
|
InviteEndUserRequestFromJSON,
|
|
25420
26661
|
InviteEndUserRequestFromJSONTyped,
|
|
25421
26662
|
InviteEndUserRequestSendLinkEnum,
|
|
@@ -25425,6 +26666,14 @@ export {
|
|
|
25425
26666
|
ListAllInboxStatusEnum,
|
|
25426
26667
|
ListDevicesPlatformEnum,
|
|
25427
26668
|
ListEmailsStatusEnum,
|
|
26669
|
+
ListEndUsers200ResponseFromJSON,
|
|
26670
|
+
ListEndUsers200ResponseFromJSONTyped,
|
|
26671
|
+
ListEndUsers200ResponseMetaFromJSON,
|
|
26672
|
+
ListEndUsers200ResponseMetaFromJSONTyped,
|
|
26673
|
+
ListEndUsers200ResponseMetaToJSON,
|
|
26674
|
+
ListEndUsers200ResponseMetaToJSONTyped,
|
|
26675
|
+
ListEndUsers200ResponseToJSON,
|
|
26676
|
+
ListEndUsers200ResponseToJSONTyped,
|
|
25428
26677
|
ListEndUsersEnvironmentEnum,
|
|
25429
26678
|
ListInboundEmailsStatusEnum,
|
|
25430
26679
|
ListPushStatusEnum,
|
|
@@ -25454,10 +26703,6 @@ export {
|
|
|
25454
26703
|
ListWebhookDeliveriesStatusEnum,
|
|
25455
26704
|
ListWorkflowExecutions200ResponseFromJSON,
|
|
25456
26705
|
ListWorkflowExecutions200ResponseFromJSONTyped,
|
|
25457
|
-
ListWorkflowExecutions200ResponseMetaFromJSON,
|
|
25458
|
-
ListWorkflowExecutions200ResponseMetaFromJSONTyped,
|
|
25459
|
-
ListWorkflowExecutions200ResponseMetaToJSON,
|
|
25460
|
-
ListWorkflowExecutions200ResponseMetaToJSONTyped,
|
|
25461
26706
|
ListWorkflowExecutions200ResponseToJSON,
|
|
25462
26707
|
ListWorkflowExecutions200ResponseToJSONTyped,
|
|
25463
26708
|
ListWorkflows200ResponseFromJSON,
|
|
@@ -25500,6 +26745,10 @@ export {
|
|
|
25500
26745
|
MarkAllReadResponseFromJSONTyped,
|
|
25501
26746
|
MarkAllReadResponseToJSON,
|
|
25502
26747
|
MarkAllReadResponseToJSONTyped,
|
|
26748
|
+
MarkAllSubscriberNotificationsRead200ResponseFromJSON,
|
|
26749
|
+
MarkAllSubscriberNotificationsRead200ResponseFromJSONTyped,
|
|
26750
|
+
MarkAllSubscriberNotificationsRead200ResponseToJSON,
|
|
26751
|
+
MarkAllSubscriberNotificationsRead200ResponseToJSONTyped,
|
|
25503
26752
|
MarkAllSubscriberNotificationsReadRequestFromJSON,
|
|
25504
26753
|
MarkAllSubscriberNotificationsReadRequestFromJSONTyped,
|
|
25505
26754
|
MarkAllSubscriberNotificationsReadRequestToJSON,
|
|
@@ -25897,6 +27146,14 @@ export {
|
|
|
25897
27146
|
RevokeSessionRequestFromJSONTyped,
|
|
25898
27147
|
RevokeSessionRequestToJSON,
|
|
25899
27148
|
RevokeSessionRequestToJSONTyped,
|
|
27149
|
+
RotateWaaSEndpointSecret200ResponseDataFromJSON,
|
|
27150
|
+
RotateWaaSEndpointSecret200ResponseDataFromJSONTyped,
|
|
27151
|
+
RotateWaaSEndpointSecret200ResponseDataToJSON,
|
|
27152
|
+
RotateWaaSEndpointSecret200ResponseDataToJSONTyped,
|
|
27153
|
+
RotateWaaSEndpointSecret200ResponseFromJSON,
|
|
27154
|
+
RotateWaaSEndpointSecret200ResponseFromJSONTyped,
|
|
27155
|
+
RotateWaaSEndpointSecret200ResponseToJSON,
|
|
27156
|
+
RotateWaaSEndpointSecret200ResponseToJSONTyped,
|
|
25900
27157
|
SDK_VERSION,
|
|
25901
27158
|
SMSApi,
|
|
25902
27159
|
SendBatchEmailRequestFromJSON,
|
|
@@ -26029,6 +27286,18 @@ export {
|
|
|
26029
27286
|
SendSmsResponseFromJSONTyped,
|
|
26030
27287
|
SendSmsResponseToJSON,
|
|
26031
27288
|
SendSmsResponseToJSONTyped,
|
|
27289
|
+
SendTemplateTestEmail202ResponseDataFromJSON,
|
|
27290
|
+
SendTemplateTestEmail202ResponseDataFromJSONTyped,
|
|
27291
|
+
SendTemplateTestEmail202ResponseDataToJSON,
|
|
27292
|
+
SendTemplateTestEmail202ResponseDataToJSONTyped,
|
|
27293
|
+
SendTemplateTestEmail202ResponseFromJSON,
|
|
27294
|
+
SendTemplateTestEmail202ResponseFromJSONTyped,
|
|
27295
|
+
SendTemplateTestEmail202ResponseMetaFromJSON,
|
|
27296
|
+
SendTemplateTestEmail202ResponseMetaFromJSONTyped,
|
|
27297
|
+
SendTemplateTestEmail202ResponseMetaToJSON,
|
|
27298
|
+
SendTemplateTestEmail202ResponseMetaToJSONTyped,
|
|
27299
|
+
SendTemplateTestEmail202ResponseToJSON,
|
|
27300
|
+
SendTemplateTestEmail202ResponseToJSONTyped,
|
|
26032
27301
|
SendTemplateTestEmailRequestFromJSON,
|
|
26033
27302
|
SendTemplateTestEmailRequestFromJSONTyped,
|
|
26034
27303
|
SendTemplateTestEmailRequestToJSON,
|
|
@@ -26065,6 +27334,14 @@ export {
|
|
|
26065
27334
|
SetDomainInboundRequestFromJSONTyped,
|
|
26066
27335
|
SetDomainInboundRequestToJSON,
|
|
26067
27336
|
SetDomainInboundRequestToJSONTyped,
|
|
27337
|
+
SetEndUserClaims200ResponseDataFromJSON,
|
|
27338
|
+
SetEndUserClaims200ResponseDataFromJSONTyped,
|
|
27339
|
+
SetEndUserClaims200ResponseDataToJSON,
|
|
27340
|
+
SetEndUserClaims200ResponseDataToJSONTyped,
|
|
27341
|
+
SetEndUserClaims200ResponseFromJSON,
|
|
27342
|
+
SetEndUserClaims200ResponseFromJSONTyped,
|
|
27343
|
+
SetEndUserClaims200ResponseToJSON,
|
|
27344
|
+
SetEndUserClaims200ResponseToJSONTyped,
|
|
26068
27345
|
SetEndUserClaimsRequestFromJSON,
|
|
26069
27346
|
SetEndUserClaimsRequestFromJSONTyped,
|
|
26070
27347
|
SetEndUserClaimsRequestToJSON,
|
|
@@ -26342,6 +27619,19 @@ export {
|
|
|
26342
27619
|
UpdateOrganizationRequestFromJSONTyped,
|
|
26343
27620
|
UpdateOrganizationRequestToJSON,
|
|
26344
27621
|
UpdateOrganizationRequestToJSONTyped,
|
|
27622
|
+
UpdateSubscriberPreferences200ResponseDataFromJSON,
|
|
27623
|
+
UpdateSubscriberPreferences200ResponseDataFromJSONTyped,
|
|
27624
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerChannelEnum,
|
|
27625
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSON,
|
|
27626
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerFromJSONTyped,
|
|
27627
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSON,
|
|
27628
|
+
UpdateSubscriberPreferences200ResponseDataPreferencesInnerToJSONTyped,
|
|
27629
|
+
UpdateSubscriberPreferences200ResponseDataToJSON,
|
|
27630
|
+
UpdateSubscriberPreferences200ResponseDataToJSONTyped,
|
|
27631
|
+
UpdateSubscriberPreferences200ResponseFromJSON,
|
|
27632
|
+
UpdateSubscriberPreferences200ResponseFromJSONTyped,
|
|
27633
|
+
UpdateSubscriberPreferences200ResponseToJSON,
|
|
27634
|
+
UpdateSubscriberPreferences200ResponseToJSONTyped,
|
|
26345
27635
|
UpdateSubscriberPreferencesRequestFromJSON,
|
|
26346
27636
|
UpdateSubscriberPreferencesRequestFromJSONTyped,
|
|
26347
27637
|
UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
|
|
@@ -26369,11 +27659,19 @@ export {
|
|
|
26369
27659
|
UpdateWaaSApplicationRequestStatusEnum,
|
|
26370
27660
|
UpdateWaaSApplicationRequestToJSON,
|
|
26371
27661
|
UpdateWaaSApplicationRequestToJSONTyped,
|
|
27662
|
+
UpdateWaaSEndpoint200ResponseFromJSON,
|
|
27663
|
+
UpdateWaaSEndpoint200ResponseFromJSONTyped,
|
|
27664
|
+
UpdateWaaSEndpoint200ResponseToJSON,
|
|
27665
|
+
UpdateWaaSEndpoint200ResponseToJSONTyped,
|
|
26372
27666
|
UpdateWaaSEndpointRequestFromJSON,
|
|
26373
27667
|
UpdateWaaSEndpointRequestFromJSONTyped,
|
|
26374
27668
|
UpdateWaaSEndpointRequestStatusEnum,
|
|
26375
27669
|
UpdateWaaSEndpointRequestToJSON,
|
|
26376
27670
|
UpdateWaaSEndpointRequestToJSONTyped,
|
|
27671
|
+
UpdateWaaSEventType200ResponseFromJSON,
|
|
27672
|
+
UpdateWaaSEventType200ResponseFromJSONTyped,
|
|
27673
|
+
UpdateWaaSEventType200ResponseToJSON,
|
|
27674
|
+
UpdateWaaSEventType200ResponseToJSONTyped,
|
|
26377
27675
|
UpdateWaaSEventTypeRequestFromJSON,
|
|
26378
27676
|
UpdateWaaSEventTypeRequestFromJSONTyped,
|
|
26379
27677
|
UpdateWaaSEventTypeRequestToJSON,
|
|
@@ -26829,6 +28127,8 @@ export {
|
|
|
26829
28127
|
instanceOfCategory,
|
|
26830
28128
|
instanceOfCategoryListResponse,
|
|
26831
28129
|
instanceOfCategoryResponse,
|
|
28130
|
+
instanceOfCloseWaaSEndpointCircuit200Response,
|
|
28131
|
+
instanceOfCloseWaaSEndpointCircuit200ResponseData,
|
|
26832
28132
|
instanceOfConfirmEmailVerificationRequest,
|
|
26833
28133
|
instanceOfConfirmEmailVerificationResponse,
|
|
26834
28134
|
instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -26904,7 +28204,25 @@ export {
|
|
|
26904
28204
|
instanceOfGenerateWaaSPortalToken201Response,
|
|
26905
28205
|
instanceOfGetDomain200Response,
|
|
26906
28206
|
instanceOfGetDomain200ResponseMeta,
|
|
28207
|
+
instanceOfGetEndUserById200Response,
|
|
28208
|
+
instanceOfGetEndUserClaims200Response,
|
|
28209
|
+
instanceOfGetEndUserClaims200ResponseData,
|
|
28210
|
+
instanceOfGetSubscriberInboxPreferences200Response,
|
|
28211
|
+
instanceOfGetSubscriberInboxPreferences200ResponseData,
|
|
28212
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInner,
|
|
28213
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory,
|
|
28214
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataGlobal,
|
|
28215
|
+
instanceOfGetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner,
|
|
28216
|
+
instanceOfGetSubscriberNotification200Response,
|
|
28217
|
+
instanceOfGetSubscriberUnreadCount200Response,
|
|
28218
|
+
instanceOfGetWaaSDelivery200Response,
|
|
26907
28219
|
instanceOfGetWaaSEndpoint200Response,
|
|
28220
|
+
instanceOfGetWaaSEndpointCircuit200Response,
|
|
28221
|
+
instanceOfGetWaaSEndpointCircuit200ResponseData,
|
|
28222
|
+
instanceOfGetWaaSEndpointMetrics200Response,
|
|
28223
|
+
instanceOfGetWaaSEndpointMetrics200ResponseData,
|
|
28224
|
+
instanceOfGetWaaSEndpointMetrics200ResponseDataHealth,
|
|
28225
|
+
instanceOfGetWaaSEndpointMetrics200ResponseDataWindowsValue,
|
|
26908
28226
|
instanceOfGetWaaSUsage200Response,
|
|
26909
28227
|
instanceOfInAppNotification,
|
|
26910
28228
|
instanceOfInboundAttachmentUrlResponse,
|
|
@@ -26918,13 +28236,16 @@ export {
|
|
|
26918
28236
|
instanceOfInboxListMeta,
|
|
26919
28237
|
instanceOfInboxListResponse,
|
|
26920
28238
|
instanceOfInboxNotificationResponse,
|
|
28239
|
+
instanceOfInviteEndUser200Response,
|
|
28240
|
+
instanceOfInviteEndUser200ResponseData,
|
|
26921
28241
|
instanceOfInviteEndUserRequest,
|
|
28242
|
+
instanceOfListEndUsers200Response,
|
|
28243
|
+
instanceOfListEndUsers200ResponseMeta,
|
|
26922
28244
|
instanceOfListWaaSApplications200Response,
|
|
26923
28245
|
instanceOfListWaaSEndpointDeliveries200Response,
|
|
26924
28246
|
instanceOfListWaaSEndpoints200Response,
|
|
26925
28247
|
instanceOfListWaaSEventTypes200Response,
|
|
26926
28248
|
instanceOfListWorkflowExecutions200Response,
|
|
26927
|
-
instanceOfListWorkflowExecutions200ResponseMeta,
|
|
26928
28249
|
instanceOfListWorkflows200Response,
|
|
26929
28250
|
instanceOfListWorkflows200ResponseMeta,
|
|
26930
28251
|
instanceOfLoginRequest,
|
|
@@ -26935,6 +28256,7 @@ export {
|
|
|
26935
28256
|
instanceOfMarkAllInboxReadRequest,
|
|
26936
28257
|
instanceOfMarkAllReadData,
|
|
26937
28258
|
instanceOfMarkAllReadResponse,
|
|
28259
|
+
instanceOfMarkAllSubscriberNotificationsRead200Response,
|
|
26938
28260
|
instanceOfMarkAllSubscriberNotificationsReadRequest,
|
|
26939
28261
|
instanceOfMarkInboxReadRequest,
|
|
26940
28262
|
instanceOfMfaBackupCodesResponse,
|
|
@@ -27031,6 +28353,8 @@ export {
|
|
|
27031
28353
|
instanceOfRevokeAllSessionsResponse,
|
|
27032
28354
|
instanceOfRevokeAllSessionsResponseData,
|
|
27033
28355
|
instanceOfRevokeSessionRequest,
|
|
28356
|
+
instanceOfRotateWaaSEndpointSecret200Response,
|
|
28357
|
+
instanceOfRotateWaaSEndpointSecret200ResponseData,
|
|
27034
28358
|
instanceOfSendBatchEmailRequest,
|
|
27035
28359
|
instanceOfSendBatchEmailResponse,
|
|
27036
28360
|
instanceOfSendBatchEmailResult,
|
|
@@ -27063,6 +28387,9 @@ export {
|
|
|
27063
28387
|
instanceOfSendSmsData,
|
|
27064
28388
|
instanceOfSendSmsRequest,
|
|
27065
28389
|
instanceOfSendSmsResponse,
|
|
28390
|
+
instanceOfSendTemplateTestEmail202Response,
|
|
28391
|
+
instanceOfSendTemplateTestEmail202ResponseData,
|
|
28392
|
+
instanceOfSendTemplateTestEmail202ResponseMeta,
|
|
27066
28393
|
instanceOfSendTemplateTestEmailRequest,
|
|
27067
28394
|
instanceOfSendTestSmsData,
|
|
27068
28395
|
instanceOfSendTestSmsRequest,
|
|
@@ -27072,6 +28399,8 @@ export {
|
|
|
27072
28399
|
instanceOfSessionListResponseData,
|
|
27073
28400
|
instanceOfSessionListResponseDataSessionInfo,
|
|
27074
28401
|
instanceOfSetDomainInboundRequest,
|
|
28402
|
+
instanceOfSetEndUserClaims200Response,
|
|
28403
|
+
instanceOfSetEndUserClaims200ResponseData,
|
|
27075
28404
|
instanceOfSetEndUserClaimsRequest,
|
|
27076
28405
|
instanceOfSetPreferencesRequest,
|
|
27077
28406
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
@@ -27138,13 +28467,18 @@ export {
|
|
|
27138
28467
|
instanceOfUpdateEndUserRequest,
|
|
27139
28468
|
instanceOfUpdateOrganizationMemberRoleRequest,
|
|
27140
28469
|
instanceOfUpdateOrganizationRequest,
|
|
28470
|
+
instanceOfUpdateSubscriberPreferences200Response,
|
|
28471
|
+
instanceOfUpdateSubscriberPreferences200ResponseData,
|
|
28472
|
+
instanceOfUpdateSubscriberPreferences200ResponseDataPreferencesInner,
|
|
27141
28473
|
instanceOfUpdateSubscriberPreferencesRequest,
|
|
27142
28474
|
instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
|
|
27143
28475
|
instanceOfUpdateSubscriberRequest,
|
|
27144
28476
|
instanceOfUpdateTemplateRequest,
|
|
27145
28477
|
instanceOfUpdateTopicRequest,
|
|
27146
28478
|
instanceOfUpdateWaaSApplicationRequest,
|
|
28479
|
+
instanceOfUpdateWaaSEndpoint200Response,
|
|
27147
28480
|
instanceOfUpdateWaaSEndpointRequest,
|
|
28481
|
+
instanceOfUpdateWaaSEventType200Response,
|
|
27148
28482
|
instanceOfUpdateWaaSEventTypeRequest,
|
|
27149
28483
|
instanceOfUpdateWebhookRequest,
|
|
27150
28484
|
instanceOfUpdateWorkflowRequest,
|