@zyphr-dev/node-sdk 0.1.44 → 0.1.45
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 +236 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +197 -9
- package/dist/index.d.ts +197 -9
- package/dist/index.js +220 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +3 -0
- package/src/src/apis/AuthApplicationApi.ts +69 -0
- package/src/src/apis/AuthUserProfileApi.ts +76 -0
- package/src/src/models/ApplicationSelf.ts +9 -0
- package/src/src/models/ChangePasswordRequest.ts +75 -0
- package/src/src/models/SetSelfApplicationTestRecipientsRequest.ts +66 -0
- package/src/src/models/WebhookDelivery.ts +12 -4
- package/src/src/models/WebhookDeliveryDetail.ts +12 -4
- package/src/src/models/WebhookEventType.ts +79 -0
- package/src/src/models/WebhookEventTypesResponseData.ts +12 -4
- package/src/src/models/WebhookTestEventResponseData.ts +14 -4
- package/src/src/models/index.ts +3 -0
package/dist/index.cjs
CHANGED
|
@@ -240,6 +240,10 @@ __export(index_exports, {
|
|
|
240
240
|
CategoryResponseToJSONTyped: () => CategoryResponseToJSONTyped,
|
|
241
241
|
CategoryToJSON: () => CategoryToJSON,
|
|
242
242
|
CategoryToJSONTyped: () => CategoryToJSONTyped,
|
|
243
|
+
ChangePasswordRequestFromJSON: () => ChangePasswordRequestFromJSON,
|
|
244
|
+
ChangePasswordRequestFromJSONTyped: () => ChangePasswordRequestFromJSONTyped,
|
|
245
|
+
ChangePasswordRequestToJSON: () => ChangePasswordRequestToJSON,
|
|
246
|
+
ChangePasswordRequestToJSONTyped: () => ChangePasswordRequestToJSONTyped,
|
|
243
247
|
CloseWaaSEndpointCircuit200ResponseDataFromJSON: () => CloseWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
244
248
|
CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped: () => CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
245
249
|
CloseWaaSEndpointCircuit200ResponseDataStateEnum: () => CloseWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
@@ -1420,6 +1424,10 @@ __export(index_exports, {
|
|
|
1420
1424
|
SetPreferencesRequestPreferencesInnerToJSONTyped: () => SetPreferencesRequestPreferencesInnerToJSONTyped,
|
|
1421
1425
|
SetPreferencesRequestToJSON: () => SetPreferencesRequestToJSON,
|
|
1422
1426
|
SetPreferencesRequestToJSONTyped: () => SetPreferencesRequestToJSONTyped,
|
|
1427
|
+
SetSelfApplicationTestRecipientsRequestFromJSON: () => SetSelfApplicationTestRecipientsRequestFromJSON,
|
|
1428
|
+
SetSelfApplicationTestRecipientsRequestFromJSONTyped: () => SetSelfApplicationTestRecipientsRequestFromJSONTyped,
|
|
1429
|
+
SetSelfApplicationTestRecipientsRequestToJSON: () => SetSelfApplicationTestRecipientsRequestToJSON,
|
|
1430
|
+
SetSelfApplicationTestRecipientsRequestToJSONTyped: () => SetSelfApplicationTestRecipientsRequestToJSONTyped,
|
|
1423
1431
|
SignInAnonymouslyRequestFromJSON: () => SignInAnonymouslyRequestFromJSON,
|
|
1424
1432
|
SignInAnonymouslyRequestFromJSONTyped: () => SignInAnonymouslyRequestFromJSONTyped,
|
|
1425
1433
|
SignInAnonymouslyRequestToJSON: () => SignInAnonymouslyRequestToJSON,
|
|
@@ -2002,6 +2010,11 @@ __export(index_exports, {
|
|
|
2002
2010
|
WebhookDeliveryStatusEnum: () => WebhookDeliveryStatusEnum,
|
|
2003
2011
|
WebhookDeliveryToJSON: () => WebhookDeliveryToJSON,
|
|
2004
2012
|
WebhookDeliveryToJSONTyped: () => WebhookDeliveryToJSONTyped,
|
|
2013
|
+
WebhookEventType: () => WebhookEventType,
|
|
2014
|
+
WebhookEventTypeFromJSON: () => WebhookEventTypeFromJSON,
|
|
2015
|
+
WebhookEventTypeFromJSONTyped: () => WebhookEventTypeFromJSONTyped,
|
|
2016
|
+
WebhookEventTypeToJSON: () => WebhookEventTypeToJSON,
|
|
2017
|
+
WebhookEventTypeToJSONTyped: () => WebhookEventTypeToJSONTyped,
|
|
2005
2018
|
WebhookEventTypesResponseDataFromJSON: () => WebhookEventTypesResponseDataFromJSON,
|
|
2006
2019
|
WebhookEventTypesResponseDataFromJSONTyped: () => WebhookEventTypesResponseDataFromJSONTyped,
|
|
2007
2020
|
WebhookEventTypesResponseDataToJSON: () => WebhookEventTypesResponseDataToJSON,
|
|
@@ -2196,6 +2209,7 @@ __export(index_exports, {
|
|
|
2196
2209
|
instanceOfCategory: () => instanceOfCategory,
|
|
2197
2210
|
instanceOfCategoryListResponse: () => instanceOfCategoryListResponse,
|
|
2198
2211
|
instanceOfCategoryResponse: () => instanceOfCategoryResponse,
|
|
2212
|
+
instanceOfChangePasswordRequest: () => instanceOfChangePasswordRequest,
|
|
2199
2213
|
instanceOfCloseWaaSEndpointCircuit200Response: () => instanceOfCloseWaaSEndpointCircuit200Response,
|
|
2200
2214
|
instanceOfCloseWaaSEndpointCircuit200ResponseData: () => instanceOfCloseWaaSEndpointCircuit200ResponseData,
|
|
2201
2215
|
instanceOfConfirmEmailVerificationRequest: () => instanceOfConfirmEmailVerificationRequest,
|
|
@@ -2474,6 +2488,7 @@ __export(index_exports, {
|
|
|
2474
2488
|
instanceOfSetEndUserClaimsRequest: () => instanceOfSetEndUserClaimsRequest,
|
|
2475
2489
|
instanceOfSetPreferencesRequest: () => instanceOfSetPreferencesRequest,
|
|
2476
2490
|
instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
|
|
2491
|
+
instanceOfSetSelfApplicationTestRecipientsRequest: () => instanceOfSetSelfApplicationTestRecipientsRequest,
|
|
2477
2492
|
instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
|
|
2478
2493
|
instanceOfSignInWithGameCenterRequest: () => instanceOfSignInWithGameCenterRequest,
|
|
2479
2494
|
instanceOfSignInWithGooglePlayGamesRequest: () => instanceOfSignInWithGooglePlayGamesRequest,
|
|
@@ -2611,6 +2626,7 @@ __export(index_exports, {
|
|
|
2611
2626
|
instanceOfWebhookDeliveryResponse: () => instanceOfWebhookDeliveryResponse,
|
|
2612
2627
|
instanceOfWebhookDeliveryRetryResponse: () => instanceOfWebhookDeliveryRetryResponse,
|
|
2613
2628
|
instanceOfWebhookDeliveryRetryResponseData: () => instanceOfWebhookDeliveryRetryResponseData,
|
|
2629
|
+
instanceOfWebhookEventType: () => instanceOfWebhookEventType,
|
|
2614
2630
|
instanceOfWebhookEventTypesResponse: () => instanceOfWebhookEventTypesResponse,
|
|
2615
2631
|
instanceOfWebhookEventTypesResponseData: () => instanceOfWebhookEventTypesResponseData,
|
|
2616
2632
|
instanceOfWebhookIpsResponse: () => instanceOfWebhookIpsResponse,
|
|
@@ -3514,6 +3530,7 @@ function instanceOfApplicationSelf(value) {
|
|
|
3514
3530
|
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3515
3531
|
if (!("environment" in value) || value["environment"] === void 0) return false;
|
|
3516
3532
|
if (!("signingAlgorithm" in value) || value["signingAlgorithm"] === void 0) return false;
|
|
3533
|
+
if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
|
|
3517
3534
|
return true;
|
|
3518
3535
|
}
|
|
3519
3536
|
function ApplicationSelfFromJSON(json) {
|
|
@@ -3527,7 +3544,8 @@ function ApplicationSelfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
3527
3544
|
"id": json["id"],
|
|
3528
3545
|
"name": json["name"],
|
|
3529
3546
|
"environment": json["environment"],
|
|
3530
|
-
"signingAlgorithm": json["signing_algorithm"]
|
|
3547
|
+
"signingAlgorithm": json["signing_algorithm"],
|
|
3548
|
+
"testRecipients": json["test_recipients"]
|
|
3531
3549
|
};
|
|
3532
3550
|
}
|
|
3533
3551
|
function ApplicationSelfToJSON(json) {
|
|
@@ -3541,7 +3559,8 @@ function ApplicationSelfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
3541
3559
|
"id": value["id"],
|
|
3542
3560
|
"name": value["name"],
|
|
3543
3561
|
"environment": value["environment"],
|
|
3544
|
-
"signing_algorithm": value["signingAlgorithm"]
|
|
3562
|
+
"signing_algorithm": value["signingAlgorithm"],
|
|
3563
|
+
"test_recipients": value["testRecipients"]
|
|
3545
3564
|
};
|
|
3546
3565
|
}
|
|
3547
3566
|
|
|
@@ -4854,6 +4873,37 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4854
4873
|
};
|
|
4855
4874
|
}
|
|
4856
4875
|
|
|
4876
|
+
// src/src/models/ChangePasswordRequest.ts
|
|
4877
|
+
function instanceOfChangePasswordRequest(value) {
|
|
4878
|
+
if (!("currentPassword" in value) || value["currentPassword"] === void 0) return false;
|
|
4879
|
+
if (!("newPassword" in value) || value["newPassword"] === void 0) return false;
|
|
4880
|
+
return true;
|
|
4881
|
+
}
|
|
4882
|
+
function ChangePasswordRequestFromJSON(json) {
|
|
4883
|
+
return ChangePasswordRequestFromJSONTyped(json, false);
|
|
4884
|
+
}
|
|
4885
|
+
function ChangePasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
4886
|
+
if (json == null) {
|
|
4887
|
+
return json;
|
|
4888
|
+
}
|
|
4889
|
+
return {
|
|
4890
|
+
"currentPassword": json["current_password"],
|
|
4891
|
+
"newPassword": json["new_password"]
|
|
4892
|
+
};
|
|
4893
|
+
}
|
|
4894
|
+
function ChangePasswordRequestToJSON(json) {
|
|
4895
|
+
return ChangePasswordRequestToJSONTyped(json, false);
|
|
4896
|
+
}
|
|
4897
|
+
function ChangePasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4898
|
+
if (value == null) {
|
|
4899
|
+
return value;
|
|
4900
|
+
}
|
|
4901
|
+
return {
|
|
4902
|
+
"current_password": value["currentPassword"],
|
|
4903
|
+
"new_password": value["newPassword"]
|
|
4904
|
+
};
|
|
4905
|
+
}
|
|
4906
|
+
|
|
4857
4907
|
// src/src/models/GetDomain200ResponseMeta.ts
|
|
4858
4908
|
function instanceOfGetDomain200ResponseMeta(value) {
|
|
4859
4909
|
return true;
|
|
@@ -14608,6 +14658,34 @@ function SetPreferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
14608
14658
|
};
|
|
14609
14659
|
}
|
|
14610
14660
|
|
|
14661
|
+
// src/src/models/SetSelfApplicationTestRecipientsRequest.ts
|
|
14662
|
+
function instanceOfSetSelfApplicationTestRecipientsRequest(value) {
|
|
14663
|
+
if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
|
|
14664
|
+
return true;
|
|
14665
|
+
}
|
|
14666
|
+
function SetSelfApplicationTestRecipientsRequestFromJSON(json) {
|
|
14667
|
+
return SetSelfApplicationTestRecipientsRequestFromJSONTyped(json, false);
|
|
14668
|
+
}
|
|
14669
|
+
function SetSelfApplicationTestRecipientsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14670
|
+
if (json == null) {
|
|
14671
|
+
return json;
|
|
14672
|
+
}
|
|
14673
|
+
return {
|
|
14674
|
+
"testRecipients": json["test_recipients"]
|
|
14675
|
+
};
|
|
14676
|
+
}
|
|
14677
|
+
function SetSelfApplicationTestRecipientsRequestToJSON(json) {
|
|
14678
|
+
return SetSelfApplicationTestRecipientsRequestToJSONTyped(json, false);
|
|
14679
|
+
}
|
|
14680
|
+
function SetSelfApplicationTestRecipientsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14681
|
+
if (value == null) {
|
|
14682
|
+
return value;
|
|
14683
|
+
}
|
|
14684
|
+
return {
|
|
14685
|
+
"test_recipients": value["testRecipients"]
|
|
14686
|
+
};
|
|
14687
|
+
}
|
|
14688
|
+
|
|
14611
14689
|
// src/src/models/SignInAnonymouslyRequest.ts
|
|
14612
14690
|
function instanceOfSignInAnonymouslyRequest(value) {
|
|
14613
14691
|
if (!("deviceId" in value) || value["deviceId"] === void 0) return false;
|
|
@@ -18440,6 +18518,60 @@ function WebhookDeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
18440
18518
|
};
|
|
18441
18519
|
}
|
|
18442
18520
|
|
|
18521
|
+
// src/src/models/WebhookEventType.ts
|
|
18522
|
+
var WebhookEventType = {
|
|
18523
|
+
EMAIL_QUEUED: "email.queued",
|
|
18524
|
+
EMAIL_SENT: "email.sent",
|
|
18525
|
+
EMAIL_DELIVERED: "email.delivered",
|
|
18526
|
+
EMAIL_BOUNCED: "email.bounced",
|
|
18527
|
+
EMAIL_SOFT_BOUNCED: "email.soft_bounced",
|
|
18528
|
+
EMAIL_COMPLAINED: "email.complained",
|
|
18529
|
+
EMAIL_OPENED: "email.opened",
|
|
18530
|
+
EMAIL_CLICKED: "email.clicked",
|
|
18531
|
+
EMAIL_FAILED: "email.failed",
|
|
18532
|
+
EMAIL_RECEIVED: "email.received",
|
|
18533
|
+
PUSH_SENT: "push.sent",
|
|
18534
|
+
PUSH_DELIVERED: "push.delivered",
|
|
18535
|
+
PUSH_FAILED: "push.failed",
|
|
18536
|
+
PUSH_EXPIRED: "push.expired",
|
|
18537
|
+
USER_CREATED: "user.created",
|
|
18538
|
+
USER_LOGIN: "user.login",
|
|
18539
|
+
USER_LOGOUT: "user.logout",
|
|
18540
|
+
USER_PASSWORD_CHANGED: "user.password_changed",
|
|
18541
|
+
USER_PASSWORD_RESET_REQUESTED: "user.password_reset_requested",
|
|
18542
|
+
USER_EMAIL_VERIFIED: "user.email_verified",
|
|
18543
|
+
USER_PHONE_VERIFIED: "user.phone_verified",
|
|
18544
|
+
USER_DELETED: "user.deleted",
|
|
18545
|
+
USER_SESSION_REVOKED: "user.session_revoked",
|
|
18546
|
+
USER_MFA_ENABLED: "user.mfa_enabled",
|
|
18547
|
+
USER_MFA_DISABLED: "user.mfa_disabled",
|
|
18548
|
+
USER_IMPERSONATED: "user.impersonated",
|
|
18549
|
+
DOMAIN_VERIFIED: "domain.verified",
|
|
18550
|
+
DOMAIN_VERIFICATION_FAILED: "domain.verification_failed"
|
|
18551
|
+
};
|
|
18552
|
+
function instanceOfWebhookEventType(value) {
|
|
18553
|
+
for (const key in WebhookEventType) {
|
|
18554
|
+
if (Object.prototype.hasOwnProperty.call(WebhookEventType, key)) {
|
|
18555
|
+
if (WebhookEventType[key] === value) {
|
|
18556
|
+
return true;
|
|
18557
|
+
}
|
|
18558
|
+
}
|
|
18559
|
+
}
|
|
18560
|
+
return false;
|
|
18561
|
+
}
|
|
18562
|
+
function WebhookEventTypeFromJSON(json) {
|
|
18563
|
+
return WebhookEventTypeFromJSONTyped(json, false);
|
|
18564
|
+
}
|
|
18565
|
+
function WebhookEventTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18566
|
+
return json;
|
|
18567
|
+
}
|
|
18568
|
+
function WebhookEventTypeToJSON(value) {
|
|
18569
|
+
return value;
|
|
18570
|
+
}
|
|
18571
|
+
function WebhookEventTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
18572
|
+
return value;
|
|
18573
|
+
}
|
|
18574
|
+
|
|
18443
18575
|
// src/src/models/WebhookDelivery.ts
|
|
18444
18576
|
var WebhookDeliveryStatusEnum = {
|
|
18445
18577
|
PENDING: "pending",
|
|
@@ -18462,7 +18594,7 @@ function WebhookDeliveryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18462
18594
|
"id": json["id"] == null ? void 0 : json["id"],
|
|
18463
18595
|
"msgId": json["msg_id"] == null ? void 0 : json["msg_id"],
|
|
18464
18596
|
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
18465
|
-
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
18597
|
+
"eventType": json["event_type"] == null ? void 0 : WebhookEventTypeFromJSON(json["event_type"]),
|
|
18466
18598
|
"status": json["status"] == null ? void 0 : json["status"],
|
|
18467
18599
|
"attempts": json["attempts"] == null ? void 0 : json["attempts"],
|
|
18468
18600
|
"maxAttempts": json["max_attempts"] == null ? void 0 : json["max_attempts"],
|
|
@@ -18488,7 +18620,7 @@ function WebhookDeliveryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
18488
18620
|
"id": value["id"],
|
|
18489
18621
|
"msg_id": value["msgId"],
|
|
18490
18622
|
"event_id": value["eventId"],
|
|
18491
|
-
"event_type": value["eventType"],
|
|
18623
|
+
"event_type": WebhookEventTypeToJSON(value["eventType"]),
|
|
18492
18624
|
"status": value["status"],
|
|
18493
18625
|
"attempts": value["attempts"],
|
|
18494
18626
|
"max_attempts": value["maxAttempts"],
|
|
@@ -18526,7 +18658,7 @@ function WebhookDeliveryDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18526
18658
|
"id": json["id"] == null ? void 0 : json["id"],
|
|
18527
18659
|
"msgId": json["msg_id"] == null ? void 0 : json["msg_id"],
|
|
18528
18660
|
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
18529
|
-
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
18661
|
+
"eventType": json["event_type"] == null ? void 0 : WebhookEventTypeFromJSON(json["event_type"]),
|
|
18530
18662
|
"status": json["status"] == null ? void 0 : json["status"],
|
|
18531
18663
|
"attempts": json["attempts"] == null ? void 0 : json["attempts"],
|
|
18532
18664
|
"maxAttempts": json["max_attempts"] == null ? void 0 : json["max_attempts"],
|
|
@@ -18556,7 +18688,7 @@ function WebhookDeliveryDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
18556
18688
|
"id": value["id"],
|
|
18557
18689
|
"msg_id": value["msgId"],
|
|
18558
18690
|
"event_id": value["eventId"],
|
|
18559
|
-
"event_type": value["eventType"],
|
|
18691
|
+
"event_type": WebhookEventTypeToJSON(value["eventType"]),
|
|
18560
18692
|
"status": value["status"],
|
|
18561
18693
|
"attempts": value["attempts"],
|
|
18562
18694
|
"max_attempts": value["maxAttempts"],
|
|
@@ -18706,7 +18838,7 @@ function WebhookEventTypesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18706
18838
|
return json;
|
|
18707
18839
|
}
|
|
18708
18840
|
return {
|
|
18709
|
-
"eventTypes": json["event_types"] == null ? void 0 : json["event_types"],
|
|
18841
|
+
"eventTypes": json["event_types"] == null ? void 0 : json["event_types"].map(WebhookEventTypeFromJSON),
|
|
18710
18842
|
"registry": json["registry"] == null ? void 0 : json["registry"],
|
|
18711
18843
|
"categories": json["categories"] == null ? void 0 : json["categories"],
|
|
18712
18844
|
"apiVersion": json["api_version"] == null ? void 0 : json["api_version"]
|
|
@@ -18720,7 +18852,7 @@ function WebhookEventTypesResponseDataToJSONTyped(value, ignoreDiscriminator = f
|
|
|
18720
18852
|
return value;
|
|
18721
18853
|
}
|
|
18722
18854
|
return {
|
|
18723
|
-
"event_types": value["eventTypes"],
|
|
18855
|
+
"event_types": value["eventTypes"] == null ? void 0 : value["eventTypes"].map(WebhookEventTypeToJSON),
|
|
18724
18856
|
"registry": value["registry"],
|
|
18725
18857
|
"categories": value["categories"],
|
|
18726
18858
|
"api_version": value["apiVersion"]
|
|
@@ -19121,7 +19253,7 @@ function WebhookTestEventResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19121
19253
|
}
|
|
19122
19254
|
return {
|
|
19123
19255
|
"deliveryId": json["delivery_id"] == null ? void 0 : json["delivery_id"],
|
|
19124
|
-
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
19256
|
+
"eventType": json["event_type"] == null ? void 0 : WebhookEventTypeFromJSON(json["event_type"]),
|
|
19125
19257
|
"payload": json["payload"] == null ? void 0 : json["payload"],
|
|
19126
19258
|
"status": json["status"] == null ? void 0 : json["status"]
|
|
19127
19259
|
};
|
|
@@ -19135,7 +19267,7 @@ function WebhookTestEventResponseDataToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
19135
19267
|
}
|
|
19136
19268
|
return {
|
|
19137
19269
|
"delivery_id": value["deliveryId"],
|
|
19138
|
-
"event_type": value["eventType"],
|
|
19270
|
+
"event_type": WebhookEventTypeToJSON(value["eventType"]),
|
|
19139
19271
|
"payload": value["payload"],
|
|
19140
19272
|
"status": value["status"]
|
|
19141
19273
|
};
|
|
@@ -19385,6 +19517,43 @@ var AuthApplicationApi = class extends BaseAPI {
|
|
|
19385
19517
|
const response = await this.getSelfApplicationRaw(initOverrides);
|
|
19386
19518
|
return await response.value();
|
|
19387
19519
|
}
|
|
19520
|
+
/**
|
|
19521
|
+
* Set `test_recipients` — the per-application auth-email allowlist — on the application whose credentials authenticated this request. When non-empty, this allowlist gates ALL auth emails (only listed addresses receive them); an EMPTY array clears it and disables the gate. Lets an integrator manage the allowlist from their own infrastructure config instead of the dashboard. Application-SECRET scoped (server-side write): requires X-Application-Key AND X-Application-Secret. Mutates ONLY the authenticating application — it never takes an application id from the request, so there is no cross-tenant write path. The response mirrors GET /auth/application exactly (never returns secrets).
|
|
19522
|
+
* Set the authenticating application\'s auth-email test allowlist
|
|
19523
|
+
*/
|
|
19524
|
+
async setSelfApplicationTestRecipientsRaw(requestParameters, initOverrides) {
|
|
19525
|
+
if (requestParameters["setSelfApplicationTestRecipientsRequest"] == null) {
|
|
19526
|
+
throw new RequiredError(
|
|
19527
|
+
"setSelfApplicationTestRecipientsRequest",
|
|
19528
|
+
'Required parameter "setSelfApplicationTestRecipientsRequest" was null or undefined when calling setSelfApplicationTestRecipients().'
|
|
19529
|
+
);
|
|
19530
|
+
}
|
|
19531
|
+
const queryParameters = {};
|
|
19532
|
+
const headerParameters = {};
|
|
19533
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19534
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19535
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19536
|
+
}
|
|
19537
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19538
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19539
|
+
}
|
|
19540
|
+
const response = await this.request({
|
|
19541
|
+
path: `/auth/application`,
|
|
19542
|
+
method: "PATCH",
|
|
19543
|
+
headers: headerParameters,
|
|
19544
|
+
query: queryParameters,
|
|
19545
|
+
body: SetSelfApplicationTestRecipientsRequestToJSON(requestParameters["setSelfApplicationTestRecipientsRequest"])
|
|
19546
|
+
}, initOverrides);
|
|
19547
|
+
return new JSONApiResponse(response, (jsonValue) => ApplicationSelfResponseFromJSON(jsonValue));
|
|
19548
|
+
}
|
|
19549
|
+
/**
|
|
19550
|
+
* Set `test_recipients` — the per-application auth-email allowlist — on the application whose credentials authenticated this request. When non-empty, this allowlist gates ALL auth emails (only listed addresses receive them); an EMPTY array clears it and disables the gate. Lets an integrator manage the allowlist from their own infrastructure config instead of the dashboard. Application-SECRET scoped (server-side write): requires X-Application-Key AND X-Application-Secret. Mutates ONLY the authenticating application — it never takes an application id from the request, so there is no cross-tenant write path. The response mirrors GET /auth/application exactly (never returns secrets).
|
|
19551
|
+
* Set the authenticating application\'s auth-email test allowlist
|
|
19552
|
+
*/
|
|
19553
|
+
async setSelfApplicationTestRecipients(setSelfApplicationTestRecipientsRequest, initOverrides) {
|
|
19554
|
+
const response = await this.setSelfApplicationTestRecipientsRaw({ setSelfApplicationTestRecipientsRequest }, initOverrides);
|
|
19555
|
+
return await response.value();
|
|
19556
|
+
}
|
|
19388
19557
|
};
|
|
19389
19558
|
|
|
19390
19559
|
// src/src/apis/AuthEmailOTPApi.ts
|
|
@@ -22131,6 +22300,47 @@ var ListEndUsersEnvironmentEnum = {
|
|
|
22131
22300
|
|
|
22132
22301
|
// src/src/apis/AuthUserProfileApi.ts
|
|
22133
22302
|
var AuthUserProfileApi = class extends BaseAPI {
|
|
22303
|
+
/**
|
|
22304
|
+
* Change the currently authenticated end user\'s password from a logged-in session. The caller must prove possession of the CURRENT password (`current_password`); the user is identified from the end-user token, not the request body, so a user can only change their own password. On success, all existing sessions are revoked and a fresh token pair is returned so the current session stays authenticated. Emits the `user.password_changed` webhook.
|
|
22305
|
+
* Change password (authenticated session)
|
|
22306
|
+
*/
|
|
22307
|
+
async changeEndUserPasswordRaw(requestParameters, initOverrides) {
|
|
22308
|
+
if (requestParameters["changePasswordRequest"] == null) {
|
|
22309
|
+
throw new RequiredError(
|
|
22310
|
+
"changePasswordRequest",
|
|
22311
|
+
'Required parameter "changePasswordRequest" was null or undefined when calling changeEndUserPassword().'
|
|
22312
|
+
);
|
|
22313
|
+
}
|
|
22314
|
+
const queryParameters = {};
|
|
22315
|
+
const headerParameters = {};
|
|
22316
|
+
headerParameters["Content-Type"] = "application/json";
|
|
22317
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
22318
|
+
const token = this.configuration.accessToken;
|
|
22319
|
+
const tokenString = await token("EndUserToken", []);
|
|
22320
|
+
if (tokenString) {
|
|
22321
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
22322
|
+
}
|
|
22323
|
+
}
|
|
22324
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
22325
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
22326
|
+
}
|
|
22327
|
+
const response = await this.request({
|
|
22328
|
+
path: `/auth/users/change-password`,
|
|
22329
|
+
method: "POST",
|
|
22330
|
+
headers: headerParameters,
|
|
22331
|
+
query: queryParameters,
|
|
22332
|
+
body: ChangePasswordRequestToJSON(requestParameters["changePasswordRequest"])
|
|
22333
|
+
}, initOverrides);
|
|
22334
|
+
return new JSONApiResponse(response, (jsonValue) => RefreshTokenResponseFromJSON(jsonValue));
|
|
22335
|
+
}
|
|
22336
|
+
/**
|
|
22337
|
+
* Change the currently authenticated end user\'s password from a logged-in session. The caller must prove possession of the CURRENT password (`current_password`); the user is identified from the end-user token, not the request body, so a user can only change their own password. On success, all existing sessions are revoked and a fresh token pair is returned so the current session stays authenticated. Emits the `user.password_changed` webhook.
|
|
22338
|
+
* Change password (authenticated session)
|
|
22339
|
+
*/
|
|
22340
|
+
async changeEndUserPassword(changePasswordRequest, initOverrides) {
|
|
22341
|
+
const response = await this.changeEndUserPasswordRaw({ changePasswordRequest }, initOverrides);
|
|
22342
|
+
return await response.value();
|
|
22343
|
+
}
|
|
22134
22344
|
/**
|
|
22135
22345
|
* Delete the current end user account (GDPR right to erasure). This is a soft delete — the account is marked as deleted but data is retained for a period to allow for recovery or legal requirements.
|
|
22136
22346
|
* Delete current end user account
|
|
@@ -29066,6 +29276,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
29066
29276
|
CategoryResponseToJSONTyped,
|
|
29067
29277
|
CategoryToJSON,
|
|
29068
29278
|
CategoryToJSONTyped,
|
|
29279
|
+
ChangePasswordRequestFromJSON,
|
|
29280
|
+
ChangePasswordRequestFromJSONTyped,
|
|
29281
|
+
ChangePasswordRequestToJSON,
|
|
29282
|
+
ChangePasswordRequestToJSONTyped,
|
|
29069
29283
|
CloseWaaSEndpointCircuit200ResponseDataFromJSON,
|
|
29070
29284
|
CloseWaaSEndpointCircuit200ResponseDataFromJSONTyped,
|
|
29071
29285
|
CloseWaaSEndpointCircuit200ResponseDataStateEnum,
|
|
@@ -30246,6 +30460,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
30246
30460
|
SetPreferencesRequestPreferencesInnerToJSONTyped,
|
|
30247
30461
|
SetPreferencesRequestToJSON,
|
|
30248
30462
|
SetPreferencesRequestToJSONTyped,
|
|
30463
|
+
SetSelfApplicationTestRecipientsRequestFromJSON,
|
|
30464
|
+
SetSelfApplicationTestRecipientsRequestFromJSONTyped,
|
|
30465
|
+
SetSelfApplicationTestRecipientsRequestToJSON,
|
|
30466
|
+
SetSelfApplicationTestRecipientsRequestToJSONTyped,
|
|
30249
30467
|
SignInAnonymouslyRequestFromJSON,
|
|
30250
30468
|
SignInAnonymouslyRequestFromJSONTyped,
|
|
30251
30469
|
SignInAnonymouslyRequestToJSON,
|
|
@@ -30828,6 +31046,11 @@ var SDK_VERSION = "0.1.0";
|
|
|
30828
31046
|
WebhookDeliveryStatusEnum,
|
|
30829
31047
|
WebhookDeliveryToJSON,
|
|
30830
31048
|
WebhookDeliveryToJSONTyped,
|
|
31049
|
+
WebhookEventType,
|
|
31050
|
+
WebhookEventTypeFromJSON,
|
|
31051
|
+
WebhookEventTypeFromJSONTyped,
|
|
31052
|
+
WebhookEventTypeToJSON,
|
|
31053
|
+
WebhookEventTypeToJSONTyped,
|
|
30831
31054
|
WebhookEventTypesResponseDataFromJSON,
|
|
30832
31055
|
WebhookEventTypesResponseDataFromJSONTyped,
|
|
30833
31056
|
WebhookEventTypesResponseDataToJSON,
|
|
@@ -31022,6 +31245,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
31022
31245
|
instanceOfCategory,
|
|
31023
31246
|
instanceOfCategoryListResponse,
|
|
31024
31247
|
instanceOfCategoryResponse,
|
|
31248
|
+
instanceOfChangePasswordRequest,
|
|
31025
31249
|
instanceOfCloseWaaSEndpointCircuit200Response,
|
|
31026
31250
|
instanceOfCloseWaaSEndpointCircuit200ResponseData,
|
|
31027
31251
|
instanceOfConfirmEmailVerificationRequest,
|
|
@@ -31300,6 +31524,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
31300
31524
|
instanceOfSetEndUserClaimsRequest,
|
|
31301
31525
|
instanceOfSetPreferencesRequest,
|
|
31302
31526
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
31527
|
+
instanceOfSetSelfApplicationTestRecipientsRequest,
|
|
31303
31528
|
instanceOfSignInAnonymouslyRequest,
|
|
31304
31529
|
instanceOfSignInWithGameCenterRequest,
|
|
31305
31530
|
instanceOfSignInWithGooglePlayGamesRequest,
|
|
@@ -31437,6 +31662,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
31437
31662
|
instanceOfWebhookDeliveryResponse,
|
|
31438
31663
|
instanceOfWebhookDeliveryRetryResponse,
|
|
31439
31664
|
instanceOfWebhookDeliveryRetryResponseData,
|
|
31665
|
+
instanceOfWebhookEventType,
|
|
31440
31666
|
instanceOfWebhookEventTypesResponse,
|
|
31441
31667
|
instanceOfWebhookEventTypesResponseData,
|
|
31442
31668
|
instanceOfWebhookIpsResponse,
|