@parra/parra-js-sdk 0.3.381 → 0.3.382
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/ParraAPI.d.ts +17 -0
- package/dist/ParraAPI.js +18 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -2955,6 +2955,21 @@ export interface UpdateAuthDatabaseConnection {
|
|
|
2955
2955
|
passkeys_allow_progressive_enrollment?: boolean;
|
|
2956
2956
|
passkeys_allow_local_enrollment?: boolean;
|
|
2957
2957
|
}
|
|
2958
|
+
export declare enum SsoProvider {
|
|
2959
|
+
apple = "apple",
|
|
2960
|
+
google = "google",
|
|
2961
|
+
facebook = "facebook"
|
|
2962
|
+
}
|
|
2963
|
+
export interface SsoConnection {
|
|
2964
|
+
id: string;
|
|
2965
|
+
created_at: string;
|
|
2966
|
+
updated_at: string;
|
|
2967
|
+
deleted_at?: string | null;
|
|
2968
|
+
provider: SsoProvider;
|
|
2969
|
+
}
|
|
2970
|
+
export interface CreateSsoConnectionRequestBody {
|
|
2971
|
+
provider: SsoProvider;
|
|
2972
|
+
}
|
|
2958
2973
|
export interface PasswordlessSmsConnectionData {
|
|
2959
2974
|
connected_app_connection_id: string;
|
|
2960
2975
|
otp_length: number;
|
|
@@ -4490,6 +4505,8 @@ declare class ParraAPI {
|
|
|
4490
4505
|
logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<AuthLogoutResponseBody>;
|
|
4491
4506
|
getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
4492
4507
|
updateAuthDatabaseConnectionForTenant: (tenant_id: string, body?: UpdateAuthDatabaseConnection, options?: Options) => Promise<AuthDatabaseConnection>;
|
|
4508
|
+
listSsoConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<SsoConnection>>;
|
|
4509
|
+
createSsoConnectionForTenant: (tenant_id: string, body: CreateSsoConnectionRequestBody, options?: Options) => Promise<SsoConnection>;
|
|
4493
4510
|
createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
|
4494
4511
|
listPasswordlessConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<PasswordlessConnection>>;
|
|
4495
4512
|
updatePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, body?: UpdatePasswordlessConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = void 0;
|
|
14
|
+
exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.ReactionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.FeedbackFormFieldType = exports.BillingSourceType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = void 0;
|
|
16
16
|
var TicketType;
|
|
17
17
|
(function (TicketType) {
|
|
18
18
|
TicketType["bug"] = "bug";
|
|
@@ -274,6 +274,12 @@ var SettingsItemType;
|
|
|
274
274
|
SettingsItemType["boolean"] = "boolean";
|
|
275
275
|
SettingsItemType["integer"] = "integer";
|
|
276
276
|
})(SettingsItemType || (exports.SettingsItemType = SettingsItemType = {}));
|
|
277
|
+
var SsoProvider;
|
|
278
|
+
(function (SsoProvider) {
|
|
279
|
+
SsoProvider["apple"] = "apple";
|
|
280
|
+
SsoProvider["google"] = "google";
|
|
281
|
+
SsoProvider["facebook"] = "facebook";
|
|
282
|
+
})(SsoProvider || (exports.SsoProvider = SsoProvider = {}));
|
|
277
283
|
var PasswordlessStrategy;
|
|
278
284
|
(function (PasswordlessStrategy) {
|
|
279
285
|
PasswordlessStrategy["email"] = "email";
|
|
@@ -1507,6 +1513,16 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1507
1513
|
"content-type": "application/json",
|
|
1508
1514
|
} }, options));
|
|
1509
1515
|
};
|
|
1516
|
+
this.listSsoConnectionsForTenant = function (tenant_id, options) {
|
|
1517
|
+
if (options === void 0) { options = {}; }
|
|
1518
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), __assign({ method: "get" }, options));
|
|
1519
|
+
};
|
|
1520
|
+
this.createSsoConnectionForTenant = function (tenant_id, body, options) {
|
|
1521
|
+
if (options === void 0) { options = {}; }
|
|
1522
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
1523
|
+
"content-type": "application/json",
|
|
1524
|
+
} }, options));
|
|
1525
|
+
};
|
|
1510
1526
|
this.createPasswordlessSmsConnectionForTenant = function (tenant_id, body, options) {
|
|
1511
1527
|
if (options === void 0) { options = {}; }
|
|
1512
1528
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/sms"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|