@parra/parra-js-sdk 0.3.118 → 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.
@@ -78,6 +78,29 @@ export interface TenantUserCollectionStub {
78
78
  name?: string | null;
79
79
  avatar?: ImageAssetStub;
80
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;
81
104
  email?: string | null;
82
105
  email_verified?: boolean | null;
83
106
  phone_number?: string | null;
@@ -99,6 +122,7 @@ export interface TenantUser {
99
122
  name?: string | null;
100
123
  avatar?: ImageAssetStub;
101
124
  identity?: string | null;
125
+ username?: string | null;
102
126
  email?: string | null;
103
127
  email_verified?: boolean | null;
104
128
  phone_number?: string | null;
@@ -1436,9 +1460,17 @@ export interface JwtConfiguration {
1436
1460
  lifetime_in_seconds: number;
1437
1461
  secret_encoded: boolean;
1438
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
+ }
1439
1471
  export interface RefreshTokenConfiguration {
1440
- expiration_type: string;
1441
- rotation_type: string;
1472
+ expiration_type: RefreshTokenExpirationType;
1473
+ rotation_type: RefreshTokenRotationType;
1442
1474
  idle_token_lifetime: number;
1443
1475
  infinite_idle_token_lifetime: boolean;
1444
1476
  infinite_token_lifetime: boolean;
@@ -1470,13 +1502,13 @@ export interface UpdateClientRequestBody {
1470
1502
  allowed_callbacks?: Array<string>;
1471
1503
  allowed_logout_urls?: Array<string>;
1472
1504
  grants?: Array<GrantType>;
1473
- refresh_token_expiration_type?: string;
1505
+ refresh_token_expiration_type?: RefreshTokenExpirationType;
1474
1506
  refresh_token_idle_token_lifetime?: number;
1475
1507
  refresh_token_infinite_idle_token_lifetime?: boolean;
1476
1508
  refresh_token_infinite_token_lifetime?: boolean;
1477
1509
  refresh_token_leeway?: number;
1478
1510
  refresh_token_token_lifetime?: number;
1479
- refresh_token_rotation_type?: string;
1511
+ refresh_token_rotation_type?: RefreshTokenRotationType;
1480
1512
  jwt_alg?: JwtAlgorithm;
1481
1513
  jwt_lifetime_in_seconds?: number;
1482
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.118",
3
+ "version": "0.3.119",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",