@parra/parra-js-sdk 0.3.220 → 0.3.222

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.
@@ -254,10 +254,11 @@ export interface TenantAppInfoStub {
254
254
  is_test: boolean;
255
255
  parent_tenant_id?: string | null;
256
256
  logo?: ImageAssetStub | null;
257
- issuer?: string;
258
- domains?: Array<Domain> | null;
259
- urls?: Array<string> | null;
260
- entitlements?: Array<Entitlement> | null;
257
+ issuer: string;
258
+ domains: Array<Domain> | null;
259
+ urls: Array<string> | null;
260
+ entitlements: Array<Entitlement> | null;
261
+ hide_branding: boolean;
261
262
  }
262
263
  export interface PasswordRule {
263
264
  regular_expression?: string;
@@ -468,7 +469,11 @@ export interface UserInfoResponse {
468
469
  tenant_user?: TenantUser | null;
469
470
  }
470
471
  export interface AuthToken {
472
+ token_type: string;
471
473
  access_token: string;
474
+ expires_in?: number;
475
+ refresh_token?: string;
476
+ scope?: string;
472
477
  }
473
478
  export interface UploadImageRequestBody {
474
479
  image: File;
@@ -492,14 +497,13 @@ export interface ImageAsset {
492
497
  }
493
498
  export interface CreateCheckoutSessionRequestBody {
494
499
  plan_id: string;
500
+ return_url?: string | null;
501
+ success_url?: string | null;
502
+ cancel_url?: string | null;
495
503
  }
496
504
  export interface CheckoutSession {
497
505
  url: string;
498
506
  }
499
- export declare enum Interval {
500
- monthly = "monthly",
501
- annual = "annual"
502
- }
503
507
  export declare enum Currency {
504
508
  usd = "usd"
505
509
  }
@@ -507,6 +511,10 @@ export interface Price {
507
511
  currency: Currency;
508
512
  amount: number;
509
513
  }
514
+ export declare enum Interval {
515
+ monthly = "monthly",
516
+ annual = "annual"
517
+ }
510
518
  export interface UnitPrice {
511
519
  currency: Currency;
512
520
  amount: number;
@@ -519,7 +527,7 @@ export interface Plan {
519
527
  deleted_at?: string | null;
520
528
  tier: string;
521
529
  interval: string;
522
- price: UnitPrice;
530
+ price: Price;
523
531
  discounted_price?: Price;
524
532
  unit_price: UnitPrice;
525
533
  context?: string | null;
@@ -1643,6 +1651,10 @@ export interface TenantUserInfo {
1643
1651
  scopes: Array<string>;
1644
1652
  user: TenantUser;
1645
1653
  }
1654
+ export interface AuthLogoutResponseBody {
1655
+ anonymous_token?: AuthToken;
1656
+ guest_token?: AuthToken;
1657
+ }
1646
1658
  export interface AccountConfig {
1647
1659
  account_created_mail_template_id?: string | null;
1648
1660
  }
@@ -1694,7 +1706,7 @@ export interface AuthDatabaseConnection {
1694
1706
  email: EmailConfig;
1695
1707
  phone_number: PhoneNumberConfig;
1696
1708
  passkeys: PasskeysConfig;
1697
- anonymous_auth?: AnonymousAuthConfig;
1709
+ anonymous_auth: AnonymousAuthConfig;
1698
1710
  }
1699
1711
  export interface UpdateAuthDatabaseConnection {
1700
1712
  disabled?: boolean;
@@ -2062,10 +2074,11 @@ export interface Tenant {
2062
2074
  is_test: boolean;
2063
2075
  parent_tenant_id?: string | null;
2064
2076
  logo?: ImageAssetStub | null;
2065
- issuer?: string;
2066
- domains?: Array<Domain> | null;
2067
- urls?: Array<string> | null;
2068
- entitlements?: Array<Entitlement> | null;
2077
+ issuer: string;
2078
+ domains: Array<Domain> | null;
2079
+ urls: Array<string> | null;
2080
+ entitlements: Array<Entitlement> | null;
2081
+ hide_branding: boolean;
2069
2082
  onboarding?: TenantOnboarding | null;
2070
2083
  metrics?: TenantMetrics | null;
2071
2084
  }
@@ -2977,7 +2990,7 @@ declare class ParraAPI {
2977
2990
  checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
2978
2991
  loginUserForTenant: (tenant_id: string, body?: LoginTenantUserRequestBody, options?: Options) => Promise<TenantUserInfo>;
2979
2992
  getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
2980
- logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<Response>;
2993
+ logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<AuthLogoutResponseBody>;
2981
2994
  getAuthDatabaseConnectionForTenant: (tenant_id: string, options?: Options) => Promise<AuthDatabaseConnection>;
2982
2995
  updateAuthDatabaseConnectionForTenant: (tenant_id: string, body?: UpdateAuthDatabaseConnection, options?: Options) => Promise<AuthDatabaseConnection>;
2983
2996
  createPasswordlessSmsConnectionForTenant: (tenant_id: string, body: CreatePasswordlessSmsConnectionBody, options?: Options) => Promise<PasswordlessConnection>;
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.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = 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.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
14
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = 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.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
15
  var TicketType;
16
16
  (function (TicketType) {
17
17
  TicketType["bug"] = "bug";
@@ -85,15 +85,15 @@ var IdentityType;
85
85
  IdentityType["phoneNumber"] = "phone_number";
86
86
  IdentityType["externalId"] = "external_id";
87
87
  })(IdentityType || (exports.IdentityType = IdentityType = {}));
88
+ var Currency;
89
+ (function (Currency) {
90
+ Currency["usd"] = "usd";
91
+ })(Currency || (exports.Currency = Currency = {}));
88
92
  var Interval;
89
93
  (function (Interval) {
90
94
  Interval["monthly"] = "monthly";
91
95
  Interval["annual"] = "annual";
92
96
  })(Interval || (exports.Interval = Interval = {}));
93
- var Currency;
94
- (function (Currency) {
95
- Currency["usd"] = "usd";
96
- })(Currency || (exports.Currency = Currency = {}));
97
97
  var SubscriptionStatus;
98
98
  (function (SubscriptionStatus) {
99
99
  SubscriptionStatus["incomplete"] = "incomplete";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.220",
3
+ "version": "0.3.222",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",