@parra/parra-js-sdk 0.3.117 → 0.3.119
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 +38 -4
- package/dist/ParraAPI.js +11 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export interface Identity {
|
|
|
57
57
|
email_verified?: boolean | null;
|
|
58
58
|
phone_number?: string | null;
|
|
59
59
|
phone_number_verified?: boolean | null;
|
|
60
|
+
username?: string | null;
|
|
61
|
+
external_id?: string | null;
|
|
60
62
|
}
|
|
61
63
|
export interface TenantUserStub {
|
|
62
64
|
id: string;
|
|
@@ -76,6 +78,29 @@ export interface TenantUserCollectionStub {
|
|
|
76
78
|
name?: string | null;
|
|
77
79
|
avatar?: ImageAssetStub;
|
|
78
80
|
identity?: string | null;
|
|
81
|
+
username?: string | null;
|
|
82
|
+
email?: string | null;
|
|
83
|
+
email_verified?: boolean | null;
|
|
84
|
+
phone_number?: string | null;
|
|
85
|
+
phone_number_verified?: boolean | null;
|
|
86
|
+
first_name?: string | null;
|
|
87
|
+
last_name?: string | null;
|
|
88
|
+
locale?: string | null;
|
|
89
|
+
signed_up_at?: string | null;
|
|
90
|
+
last_updated_at?: string | null;
|
|
91
|
+
last_seen_at?: string | null;
|
|
92
|
+
last_login_at?: string | null;
|
|
93
|
+
}
|
|
94
|
+
export interface TenantUserDataStub {
|
|
95
|
+
id: string;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
deleted_at?: string | null;
|
|
99
|
+
tenant_id: string;
|
|
100
|
+
name?: string | null;
|
|
101
|
+
avatar?: ImageAssetStub;
|
|
102
|
+
identity?: string | null;
|
|
103
|
+
username?: string | null;
|
|
79
104
|
email?: string | null;
|
|
80
105
|
email_verified?: boolean | null;
|
|
81
106
|
phone_number?: string | null;
|
|
@@ -97,6 +122,7 @@ export interface TenantUser {
|
|
|
97
122
|
name?: string | null;
|
|
98
123
|
avatar?: ImageAssetStub;
|
|
99
124
|
identity?: string | null;
|
|
125
|
+
username?: string | null;
|
|
100
126
|
email?: string | null;
|
|
101
127
|
email_verified?: boolean | null;
|
|
102
128
|
phone_number?: string | null;
|
|
@@ -1434,9 +1460,17 @@ export interface JwtConfiguration {
|
|
|
1434
1460
|
lifetime_in_seconds: number;
|
|
1435
1461
|
secret_encoded: boolean;
|
|
1436
1462
|
}
|
|
1463
|
+
export declare enum RefreshTokenExpirationType {
|
|
1464
|
+
expiring = "expiring",
|
|
1465
|
+
infinite = "infinite"
|
|
1466
|
+
}
|
|
1467
|
+
export declare enum RefreshTokenRotationType {
|
|
1468
|
+
none = "none",
|
|
1469
|
+
rotating = "rotating"
|
|
1470
|
+
}
|
|
1437
1471
|
export interface RefreshTokenConfiguration {
|
|
1438
|
-
expiration_type:
|
|
1439
|
-
rotation_type:
|
|
1472
|
+
expiration_type: RefreshTokenExpirationType;
|
|
1473
|
+
rotation_type: RefreshTokenRotationType;
|
|
1440
1474
|
idle_token_lifetime: number;
|
|
1441
1475
|
infinite_idle_token_lifetime: boolean;
|
|
1442
1476
|
infinite_token_lifetime: boolean;
|
|
@@ -1468,13 +1502,13 @@ export interface UpdateClientRequestBody {
|
|
|
1468
1502
|
allowed_callbacks?: Array<string>;
|
|
1469
1503
|
allowed_logout_urls?: Array<string>;
|
|
1470
1504
|
grants?: Array<GrantType>;
|
|
1471
|
-
refresh_token_expiration_type?:
|
|
1505
|
+
refresh_token_expiration_type?: RefreshTokenExpirationType;
|
|
1472
1506
|
refresh_token_idle_token_lifetime?: number;
|
|
1473
1507
|
refresh_token_infinite_idle_token_lifetime?: boolean;
|
|
1474
1508
|
refresh_token_infinite_token_lifetime?: boolean;
|
|
1475
1509
|
refresh_token_leeway?: number;
|
|
1476
1510
|
refresh_token_token_lifetime?: number;
|
|
1477
|
-
refresh_token_rotation_type?:
|
|
1511
|
+
refresh_token_rotation_type?: RefreshTokenRotationType;
|
|
1478
1512
|
jwt_alg?: JwtAlgorithm;
|
|
1479
1513
|
jwt_lifetime_in_seconds?: number;
|
|
1480
1514
|
jwt_secret_encoded?: boolean;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApplicationType = exports.JwtAlgorithm = exports.GrantType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = 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 = void 0;
|
|
3
|
+
exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = 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 = void 0;
|
|
4
4
|
var IdentityType;
|
|
5
5
|
(function (IdentityType) {
|
|
6
6
|
IdentityType["username"] = "username";
|
|
@@ -182,6 +182,16 @@ var JwtAlgorithm;
|
|
|
182
182
|
(function (JwtAlgorithm) {
|
|
183
183
|
JwtAlgorithm["rs256"] = "RS256";
|
|
184
184
|
})(JwtAlgorithm || (exports.JwtAlgorithm = JwtAlgorithm = {}));
|
|
185
|
+
var RefreshTokenExpirationType;
|
|
186
|
+
(function (RefreshTokenExpirationType) {
|
|
187
|
+
RefreshTokenExpirationType["expiring"] = "expiring";
|
|
188
|
+
RefreshTokenExpirationType["infinite"] = "infinite";
|
|
189
|
+
})(RefreshTokenExpirationType || (exports.RefreshTokenExpirationType = RefreshTokenExpirationType = {}));
|
|
190
|
+
var RefreshTokenRotationType;
|
|
191
|
+
(function (RefreshTokenRotationType) {
|
|
192
|
+
RefreshTokenRotationType["none"] = "none";
|
|
193
|
+
RefreshTokenRotationType["rotating"] = "rotating";
|
|
194
|
+
})(RefreshTokenRotationType || (exports.RefreshTokenRotationType = RefreshTokenRotationType = {}));
|
|
185
195
|
var ApplicationType;
|
|
186
196
|
(function (ApplicationType) {
|
|
187
197
|
ApplicationType["ios"] = "ios";
|