@parra/parra-js-sdk 0.3.146 → 0.3.147
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 +52 -4
- package/dist/ParraAPI.js +13 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -170,7 +170,38 @@ export interface NewInstalledVersionInfo {
|
|
|
170
170
|
export interface AppInfo {
|
|
171
171
|
version_token: string;
|
|
172
172
|
new_installed_version_info?: NewInstalledVersionInfo;
|
|
173
|
-
|
|
173
|
+
auth: AppAuthInfo;
|
|
174
|
+
legal: AppLegalInfo;
|
|
175
|
+
}
|
|
176
|
+
export interface PasswordRule {
|
|
177
|
+
regular_expression?: string;
|
|
178
|
+
error_message?: string;
|
|
179
|
+
}
|
|
180
|
+
export interface PasswordConfig {
|
|
181
|
+
ios_password_rules_descriptor?: string | null;
|
|
182
|
+
rules: Array<PasswordRule>;
|
|
183
|
+
}
|
|
184
|
+
export interface UsernameConfig {
|
|
185
|
+
}
|
|
186
|
+
export interface EmailConfig {
|
|
187
|
+
}
|
|
188
|
+
export interface PhoneNumberConfig {
|
|
189
|
+
}
|
|
190
|
+
export interface AppInfoDatabaseConfig {
|
|
191
|
+
password?: PasswordConfig | null;
|
|
192
|
+
username?: UsernameConfig | null;
|
|
193
|
+
email?: EmailConfig | null;
|
|
194
|
+
phone_number?: PhoneNumberConfig | null;
|
|
195
|
+
}
|
|
196
|
+
export interface AuthInfoPasswordlessSmsConfig {
|
|
197
|
+
otp_length: number;
|
|
198
|
+
}
|
|
199
|
+
export interface AuthInfoPasswordlessConfig {
|
|
200
|
+
sms?: AuthInfoPasswordlessSmsConfig | null;
|
|
201
|
+
}
|
|
202
|
+
export interface AppAuthInfo {
|
|
203
|
+
database?: AppInfoDatabaseConfig | null;
|
|
204
|
+
passwordless?: AuthInfoPasswordlessConfig | null;
|
|
174
205
|
}
|
|
175
206
|
export declare enum PolicyDocumentType {
|
|
176
207
|
terms = "terms",
|
|
@@ -183,9 +214,9 @@ export interface PolicyDocumentLinkStub {
|
|
|
183
214
|
title: string | null;
|
|
184
215
|
url: string;
|
|
185
216
|
}
|
|
186
|
-
export interface
|
|
217
|
+
export interface AppLegalInfo {
|
|
187
218
|
terms_of_service?: PolicyDocumentLinkStub | null;
|
|
188
|
-
privacy_policy?: PolicyDocumentLinkStub;
|
|
219
|
+
privacy_policy?: PolicyDocumentLinkStub | null;
|
|
189
220
|
}
|
|
190
221
|
export interface CheckAuthorizationRequestBody {
|
|
191
222
|
scope: string;
|
|
@@ -1492,6 +1523,7 @@ export interface PasswordlessConnection {
|
|
|
1492
1523
|
tenant_id: string;
|
|
1493
1524
|
name: string;
|
|
1494
1525
|
data: PasswordlessConnectionData;
|
|
1526
|
+
disabled: boolean;
|
|
1495
1527
|
}
|
|
1496
1528
|
export interface UpdatePasswordlessConnectionBody {
|
|
1497
1529
|
name?: string;
|
|
@@ -1501,13 +1533,15 @@ export interface UpdatePasswordlessConnectionBody {
|
|
|
1501
1533
|
sms_message?: string;
|
|
1502
1534
|
sms_from?: string | null;
|
|
1503
1535
|
signup_disabled?: boolean;
|
|
1536
|
+
disabled?: boolean;
|
|
1504
1537
|
}
|
|
1505
1538
|
export declare enum GrantType {
|
|
1506
1539
|
authorizationCode = "authorization_code",
|
|
1507
1540
|
clientCredentials = "client_credentials",
|
|
1508
1541
|
implicit = "implicit",
|
|
1509
1542
|
password = "password",
|
|
1510
|
-
refreshToken = "refresh_token"
|
|
1543
|
+
refreshToken = "refresh_token",
|
|
1544
|
+
passwordlessOtp = "passwordless_otp"
|
|
1511
1545
|
}
|
|
1512
1546
|
export interface Grant {
|
|
1513
1547
|
id: GrantType;
|
|
@@ -1652,6 +1686,18 @@ export interface TenantOnboarding {
|
|
|
1652
1686
|
goal?: TenantOnboardingGoal | null;
|
|
1653
1687
|
application_intent?: TenantOnboardingApplicationIntent | null;
|
|
1654
1688
|
}
|
|
1689
|
+
export declare enum DomainType {
|
|
1690
|
+
managed = "managed",
|
|
1691
|
+
external = "external",
|
|
1692
|
+
subdomain = "subdomain",
|
|
1693
|
+
fallback = "fallback"
|
|
1694
|
+
}
|
|
1695
|
+
export interface Domain {
|
|
1696
|
+
id: string;
|
|
1697
|
+
type: DomainType;
|
|
1698
|
+
title: string;
|
|
1699
|
+
url: string;
|
|
1700
|
+
}
|
|
1655
1701
|
export interface Entitlement {
|
|
1656
1702
|
}
|
|
1657
1703
|
export interface TenantMetrics {
|
|
@@ -1680,6 +1726,7 @@ export interface Tenant {
|
|
|
1680
1726
|
parent_tenant_id?: string | null;
|
|
1681
1727
|
onboarding?: TenantOnboarding | null;
|
|
1682
1728
|
logo?: ImageAssetStub | null;
|
|
1729
|
+
domains?: Array<Domain> | null;
|
|
1683
1730
|
entitlements?: Array<Entitlement> | null;
|
|
1684
1731
|
metrics?: TenantMetrics | null;
|
|
1685
1732
|
}
|
|
@@ -2322,6 +2369,7 @@ declare class ParraAPI {
|
|
|
2322
2369
|
createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
|
2323
2370
|
listPasswordlessConnectionsForTenant: (tenant_id: string, options?: Options) => Promise<Array<PasswordlessConnection>>;
|
|
2324
2371
|
updatePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, body?: UpdatePasswordlessConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
|
|
2372
|
+
deletePasswordlessConnectionForTenant: (tenant_id: string, passwordless_connection_id: string, options?: Options) => Promise<Response>;
|
|
2325
2373
|
getClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
|
|
2326
2374
|
createClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
|
|
2327
2375
|
updateClientForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateClientRequestBody, options?: Options) => Promise<Client>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,7 +11,7 @@ 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.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.DomainType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
15
|
var TicketType;
|
|
16
16
|
(function (TicketType) {
|
|
17
17
|
TicketType["bug"] = "bug";
|
|
@@ -200,6 +200,7 @@ var GrantType;
|
|
|
200
200
|
GrantType["implicit"] = "implicit";
|
|
201
201
|
GrantType["password"] = "password";
|
|
202
202
|
GrantType["refreshToken"] = "refresh_token";
|
|
203
|
+
GrantType["passwordlessOtp"] = "passwordless_otp";
|
|
203
204
|
})(GrantType || (exports.GrantType = GrantType = {}));
|
|
204
205
|
var JwtAlgorithm;
|
|
205
206
|
(function (JwtAlgorithm) {
|
|
@@ -224,6 +225,13 @@ var TenantOnboardingGoal;
|
|
|
224
225
|
TenantOnboardingGoal["newProject"] = "new_project";
|
|
225
226
|
TenantOnboardingGoal["existingProject"] = "existing_project";
|
|
226
227
|
})(TenantOnboardingGoal || (exports.TenantOnboardingGoal = TenantOnboardingGoal = {}));
|
|
228
|
+
var DomainType;
|
|
229
|
+
(function (DomainType) {
|
|
230
|
+
DomainType["managed"] = "managed";
|
|
231
|
+
DomainType["external"] = "external";
|
|
232
|
+
DomainType["subdomain"] = "subdomain";
|
|
233
|
+
DomainType["fallback"] = "fallback";
|
|
234
|
+
})(DomainType || (exports.DomainType = DomainType = {}));
|
|
227
235
|
var ConnectedAppType;
|
|
228
236
|
(function (ConnectedAppType) {
|
|
229
237
|
ConnectedAppType["parra"] = "parra";
|
|
@@ -799,6 +807,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
799
807
|
"content-type": "application/json",
|
|
800
808
|
} }, options));
|
|
801
809
|
};
|
|
810
|
+
this.deletePasswordlessConnectionForTenant = function (tenant_id, passwordless_connection_id, options) {
|
|
811
|
+
if (options === void 0) { options = {}; }
|
|
812
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/").concat(passwordless_connection_id), __assign({ method: "delete" }, options));
|
|
813
|
+
};
|
|
802
814
|
this.getClientForTenantApplication = function (tenant_id, application_id, options) {
|
|
803
815
|
if (options === void 0) { options = {}; }
|
|
804
816
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "get" }, options));
|