perspectapi-ts-sdk 2.8.3 → 3.0.1

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/index.d.mts CHANGED
@@ -106,21 +106,6 @@ interface PaginatedResponse<T> extends ApiResponse<T[]> {
106
106
  totalPages: number;
107
107
  };
108
108
  }
109
- interface SignUpRequest {
110
- email: string;
111
- password: string;
112
- firstName?: string;
113
- lastName?: string;
114
- }
115
- interface SignInRequest {
116
- email: string;
117
- password: string;
118
- }
119
- interface AuthResponse {
120
- message: string;
121
- user?: User;
122
- token?: string;
123
- }
124
109
  interface User {
125
110
  id: string;
126
111
  email: string;
@@ -486,6 +471,7 @@ interface CreateCheckoutSessionRequest {
486
471
  line_items?: Array<{
487
472
  price?: string;
488
473
  quantity: number;
474
+ sku_id?: number;
489
475
  price_data?: {
490
476
  currency: string;
491
477
  product_data: {
@@ -502,6 +488,7 @@ interface CreateCheckoutSessionRequest {
502
488
  cancelUrl?: string;
503
489
  customer_email?: string;
504
490
  customerEmail?: string;
491
+ site_user_id?: string;
505
492
  currency?: string;
506
493
  metadata?: CheckoutMetadata;
507
494
  mode?: 'payment' | 'subscription' | 'setup';
@@ -812,6 +799,9 @@ declare abstract class BaseClient {
812
799
 
813
800
  /**
814
801
  * Authentication client for PerspectAPI SDK
802
+ *
803
+ * Admin and site user authentication is OTP-based.
804
+ * Site user OTP methods are on SiteUsersClient.
815
805
  */
816
806
 
817
807
  declare class AuthClient extends BaseClient {
@@ -822,35 +812,6 @@ declare class AuthClient extends BaseClient {
822
812
  getCsrfToken(): Promise<ApiResponse<{
823
813
  token: string;
824
814
  }>>;
825
- /**
826
- * Sign up a new user
827
- */
828
- signUp(data: SignUpRequest): Promise<ApiResponse<{
829
- message: string;
830
- userId: string;
831
- }>>;
832
- /**
833
- * Sign in user
834
- */
835
- signIn(data: SignInRequest): Promise<ApiResponse<AuthResponse>>;
836
- /**
837
- * Activate user account
838
- */
839
- activateAccount(activationKey: string): Promise<ApiResponse<{
840
- message: string;
841
- }>>;
842
- /**
843
- * Request password reset
844
- */
845
- forgotPassword(email: string): Promise<ApiResponse<{
846
- message: string;
847
- }>>;
848
- /**
849
- * Reset password with token
850
- */
851
- resetPassword(resetToken: string, password: string): Promise<ApiResponse<{
852
- message: string;
853
- }>>;
854
815
  /**
855
816
  * Get current user profile
856
817
  */
@@ -1411,95 +1372,66 @@ declare class ProductsClient extends BaseClient {
1411
1372
  declare class CategoriesClient extends BaseClient {
1412
1373
  constructor(http: any, cache?: CacheManager);
1413
1374
  /**
1414
- * Get all categories
1415
- */
1416
- getCategories(params?: {
1417
- page?: number;
1418
- limit?: number;
1419
- parentId?: number;
1420
- organizationId?: number;
1421
- }): Promise<PaginatedResponse<Category>>;
1422
- /**
1423
- * Get category by ID
1424
- */
1425
- getCategoryById(id: number): Promise<ApiResponse<Category>>;
1426
- /**
1427
- * Get category by slug
1428
- */
1429
- getCategoryBySlug(slug: string): Promise<ApiResponse<Category>>;
1430
- /**
1431
- * Get product category by slug (for products)
1375
+ * Get all categories for a site
1432
1376
  */
1433
- getProductCategoryBySlug(siteName: string, slug: string, cachePolicy?: CachePolicy): Promise<ApiResponse<Category>>;
1377
+ getCategories(siteName: string, params?: {
1378
+ category_type?: 'post' | 'product';
1379
+ parent_id?: string;
1380
+ include_subcategories?: 'true' | 'false';
1381
+ }, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1382
+ categories: Category[];
1383
+ }>>;
1434
1384
  /**
1435
- * Create new category
1385
+ * Get category by ID (validates it belongs to the site)
1436
1386
  */
1437
- createCategory(data: CreateCategoryRequest): Promise<ApiResponse<Category>>;
1387
+ getCategoryById(siteName: string, id: number, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1388
+ category: Category;
1389
+ }>>;
1438
1390
  /**
1439
- * Update category
1391
+ * Get product categories for a site
1440
1392
  */
1441
- updateCategory(id: number, data: Partial<CreateCategoryRequest>): Promise<ApiResponse<Category>>;
1393
+ getProductCategories(siteName: string, params?: {
1394
+ parent_id?: string;
1395
+ include_subcategories?: 'true' | 'false';
1396
+ }, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1397
+ categories: Category[];
1398
+ }>>;
1442
1399
  /**
1443
- * Delete category
1400
+ * Create new category for a site
1444
1401
  */
1445
- deleteCategory(id: number): Promise<ApiResponse<{
1402
+ createCategory(siteName: string, data: CreateCategoryRequest, csrfToken?: string): Promise<ApiResponse<{
1446
1403
  message: string;
1404
+ category_id: number;
1447
1405
  }>>;
1448
1406
  /**
1449
- * Get category tree (hierarchical structure)
1450
- */
1451
- getCategoryTree(rootId?: number): Promise<ApiResponse<Array<Category & {
1452
- children: Category[];
1453
- }>>>;
1454
- /**
1455
- * Get category children
1456
- */
1457
- getCategoryChildren(id: number): Promise<ApiResponse<Category[]>>;
1458
- /**
1459
- * Get category parent
1460
- */
1461
- getCategoryParent(id: number): Promise<ApiResponse<Category | null>>;
1462
- /**
1463
- * Move category to new parent
1464
- */
1465
- moveCategoryToParent(id: number, parentId: number | null): Promise<ApiResponse<Category>>;
1466
- /**
1467
- * Get category breadcrumb path
1407
+ * Create new product category for a site
1468
1408
  */
1469
- getCategoryBreadcrumb(id: number): Promise<ApiResponse<Array<{
1470
- id: number;
1471
- name: string;
1472
- slug: string;
1473
- }>>>;
1409
+ createProductCategory(siteName: string, data: Omit<CreateCategoryRequest, 'category_type'>, csrfToken?: string): Promise<ApiResponse<{
1410
+ message: string;
1411
+ category_id: number;
1412
+ }>>;
1474
1413
  /**
1475
- * Get category content/products
1414
+ * Update category (validates it belongs to the site)
1476
1415
  */
1477
- getCategoryContent(id: number, params?: {
1478
- page?: number;
1479
- limit?: number;
1480
- type?: 'content' | 'products' | 'all';
1481
- }): Promise<ApiResponse<{
1482
- content: any[];
1483
- products: any[];
1484
- total: number;
1416
+ updateCategory(siteName: string, id: number, data: Partial<CreateCategoryRequest>, csrfToken?: string): Promise<ApiResponse<{
1417
+ message: string;
1485
1418
  }>>;
1486
1419
  /**
1487
- * Bulk update category order
1420
+ * Delete category (validates it belongs to the site)
1488
1421
  */
1489
- updateCategoryOrder(updates: Array<{
1490
- id: number;
1491
- order: number;
1492
- parentId?: number;
1493
- }>): Promise<ApiResponse<{
1422
+ deleteCategory(siteName: string, id: number, csrfToken?: string): Promise<ApiResponse<{
1494
1423
  message: string;
1495
1424
  }>>;
1496
1425
  /**
1497
- * Search categories
1426
+ * Associate pages or products with categories
1498
1427
  */
1499
- searchCategories(query: string, params?: {
1500
- limit?: number;
1501
- organizationId?: number;
1502
- }): Promise<ApiResponse<Category[]>>;
1428
+ associateCategories(siteName: string, data: {
1429
+ entity_id: number;
1430
+ entity_type: 'page' | 'product';
1431
+ category_ids: number[];
1432
+ }, csrfToken?: string): Promise<ApiResponse<{
1433
+ message: string;
1434
+ }>>;
1503
1435
  private buildCategoryTags;
1504
1436
  }
1505
1437
 
@@ -2823,4 +2755,4 @@ declare function createCheckoutSession(options: CheckoutSessionOptions): Promise
2823
2755
  error: string;
2824
2756
  }>;
2825
2757
 
2826
- export { type ApiError, type ApiKey, ApiKeysClient, type ApiResponse, AuthClient, type AuthResponse, BaseClient, type BlogPost, type CacheConfig, CacheManager, CategoriesClient, type Category, type CategorySummary, type CheckoutAddress, CheckoutClient, type CheckoutMetadata, type CheckoutMetadataValue, type CheckoutSession, type CheckoutSessionOptions, type CheckoutSessionTax, type CheckoutTaxBreakdownItem, type CheckoutTaxCustomerExemptionRequest, type CheckoutTaxExemptionStatus, type CheckoutTaxRequest, type CheckoutTaxStrategy, ContactClient, type ContactStatusResponse, type ContactSubmission, type ContactSubmitResponse, type Content, type ContentCategoryResponse, ContentClient, type ContentQueryParams, type ContentStatus, type ContentType, type CreateApiKeyRequest, type CreateCategoryRequest, type CreateCheckoutSessionRequest, type CreateContactRequest, type CreateContentRequest, type CreateNewsletterSubscriptionRequest, type CreateOrganizationRequest, type CreatePaymentGatewayRequest, type CreateProductRequest, type CreateSiteRequest, type CreateWebhookRequest, DEFAULT_IMAGE_SIZES, HttpClient, type HttpMethod, type ImageTransformOptions, InMemoryCacheAdapter, type LoadContentBySlugOptions, type LoadContentOptions, type LoadProductBySlugOptions, type LoadProductsOptions, type LoaderLogger, type LoaderOptions, type MediaItem, NewsletterClient, type NewsletterConfirmResponse, type NewsletterList, type NewsletterPreferences, type NewsletterStatusResponse, type NewsletterSubscribeResponse, type NewsletterSubscription, type NewsletterUnsubscribeRequest, type NewsletterUnsubscribeResponse, NoopCacheAdapter, type Organization, OrganizationsClient, type PaginatedResponse, type PaginationParams, type PaymentGateway, PerspectApiClient, type PerspectApiConfig, type Product, type ProductQueryParams, ProductsClient, type RequestOptions, type RequestOtpRequest, type ResponsiveImageSizes, type SetProfileValueRequest, type SignInRequest, type SignUpRequest, type Site, type SiteUser, type SiteUserOrder, type SiteUserProfile, type SiteUserSubscription, SiteUsersClient, SitesClient, type UpdateApiKeyRequest, type UpdateContentRequest, type UpdateSiteUserRequest, type User, type VerifyOtpRequest, type VerifyOtpResponse, type Webhook, WebhooksClient, buildImageUrl, createApiError, createCheckoutSession, createPerspectApiClient, PerspectApiClient as default, generateResponsiveImageHtml, generateResponsiveUrls, generateSizesAttribute, generateSrcSet, loadAllContent, loadContentBySlug, loadPages, loadPosts, loadProductBySlug, loadProducts, transformContent, transformMediaItem, transformProduct };
2758
+ export { type ApiError, type ApiKey, ApiKeysClient, type ApiResponse, AuthClient, BaseClient, type BlogPost, type CacheConfig, CacheManager, CategoriesClient, type Category, type CategorySummary, type CheckoutAddress, CheckoutClient, type CheckoutMetadata, type CheckoutMetadataValue, type CheckoutSession, type CheckoutSessionOptions, type CheckoutSessionTax, type CheckoutTaxBreakdownItem, type CheckoutTaxCustomerExemptionRequest, type CheckoutTaxExemptionStatus, type CheckoutTaxRequest, type CheckoutTaxStrategy, ContactClient, type ContactStatusResponse, type ContactSubmission, type ContactSubmitResponse, type Content, type ContentCategoryResponse, ContentClient, type ContentQueryParams, type ContentStatus, type ContentType, type CreateApiKeyRequest, type CreateCategoryRequest, type CreateCheckoutSessionRequest, type CreateContactRequest, type CreateContentRequest, type CreateNewsletterSubscriptionRequest, type CreateOrganizationRequest, type CreatePaymentGatewayRequest, type CreateProductRequest, type CreateSiteRequest, type CreateWebhookRequest, DEFAULT_IMAGE_SIZES, HttpClient, type HttpMethod, type ImageTransformOptions, InMemoryCacheAdapter, type LoadContentBySlugOptions, type LoadContentOptions, type LoadProductBySlugOptions, type LoadProductsOptions, type LoaderLogger, type LoaderOptions, type MediaItem, NewsletterClient, type NewsletterConfirmResponse, type NewsletterList, type NewsletterPreferences, type NewsletterStatusResponse, type NewsletterSubscribeResponse, type NewsletterSubscription, type NewsletterUnsubscribeRequest, type NewsletterUnsubscribeResponse, NoopCacheAdapter, type Organization, OrganizationsClient, type PaginatedResponse, type PaginationParams, type PaymentGateway, PerspectApiClient, type PerspectApiConfig, type Product, type ProductQueryParams, ProductsClient, type RequestOptions, type RequestOtpRequest, type ResponsiveImageSizes, type SetProfileValueRequest, type Site, type SiteUser, type SiteUserOrder, type SiteUserProfile, type SiteUserSubscription, SiteUsersClient, SitesClient, type UpdateApiKeyRequest, type UpdateContentRequest, type UpdateSiteUserRequest, type User, type VerifyOtpRequest, type VerifyOtpResponse, type Webhook, WebhooksClient, buildImageUrl, createApiError, createCheckoutSession, createPerspectApiClient, PerspectApiClient as default, generateResponsiveImageHtml, generateResponsiveUrls, generateSizesAttribute, generateSrcSet, loadAllContent, loadContentBySlug, loadPages, loadPosts, loadProductBySlug, loadProducts, transformContent, transformMediaItem, transformProduct };
package/dist/index.d.ts CHANGED
@@ -106,21 +106,6 @@ interface PaginatedResponse<T> extends ApiResponse<T[]> {
106
106
  totalPages: number;
107
107
  };
108
108
  }
109
- interface SignUpRequest {
110
- email: string;
111
- password: string;
112
- firstName?: string;
113
- lastName?: string;
114
- }
115
- interface SignInRequest {
116
- email: string;
117
- password: string;
118
- }
119
- interface AuthResponse {
120
- message: string;
121
- user?: User;
122
- token?: string;
123
- }
124
109
  interface User {
125
110
  id: string;
126
111
  email: string;
@@ -486,6 +471,7 @@ interface CreateCheckoutSessionRequest {
486
471
  line_items?: Array<{
487
472
  price?: string;
488
473
  quantity: number;
474
+ sku_id?: number;
489
475
  price_data?: {
490
476
  currency: string;
491
477
  product_data: {
@@ -502,6 +488,7 @@ interface CreateCheckoutSessionRequest {
502
488
  cancelUrl?: string;
503
489
  customer_email?: string;
504
490
  customerEmail?: string;
491
+ site_user_id?: string;
505
492
  currency?: string;
506
493
  metadata?: CheckoutMetadata;
507
494
  mode?: 'payment' | 'subscription' | 'setup';
@@ -812,6 +799,9 @@ declare abstract class BaseClient {
812
799
 
813
800
  /**
814
801
  * Authentication client for PerspectAPI SDK
802
+ *
803
+ * Admin and site user authentication is OTP-based.
804
+ * Site user OTP methods are on SiteUsersClient.
815
805
  */
816
806
 
817
807
  declare class AuthClient extends BaseClient {
@@ -822,35 +812,6 @@ declare class AuthClient extends BaseClient {
822
812
  getCsrfToken(): Promise<ApiResponse<{
823
813
  token: string;
824
814
  }>>;
825
- /**
826
- * Sign up a new user
827
- */
828
- signUp(data: SignUpRequest): Promise<ApiResponse<{
829
- message: string;
830
- userId: string;
831
- }>>;
832
- /**
833
- * Sign in user
834
- */
835
- signIn(data: SignInRequest): Promise<ApiResponse<AuthResponse>>;
836
- /**
837
- * Activate user account
838
- */
839
- activateAccount(activationKey: string): Promise<ApiResponse<{
840
- message: string;
841
- }>>;
842
- /**
843
- * Request password reset
844
- */
845
- forgotPassword(email: string): Promise<ApiResponse<{
846
- message: string;
847
- }>>;
848
- /**
849
- * Reset password with token
850
- */
851
- resetPassword(resetToken: string, password: string): Promise<ApiResponse<{
852
- message: string;
853
- }>>;
854
815
  /**
855
816
  * Get current user profile
856
817
  */
@@ -1411,95 +1372,66 @@ declare class ProductsClient extends BaseClient {
1411
1372
  declare class CategoriesClient extends BaseClient {
1412
1373
  constructor(http: any, cache?: CacheManager);
1413
1374
  /**
1414
- * Get all categories
1415
- */
1416
- getCategories(params?: {
1417
- page?: number;
1418
- limit?: number;
1419
- parentId?: number;
1420
- organizationId?: number;
1421
- }): Promise<PaginatedResponse<Category>>;
1422
- /**
1423
- * Get category by ID
1424
- */
1425
- getCategoryById(id: number): Promise<ApiResponse<Category>>;
1426
- /**
1427
- * Get category by slug
1428
- */
1429
- getCategoryBySlug(slug: string): Promise<ApiResponse<Category>>;
1430
- /**
1431
- * Get product category by slug (for products)
1375
+ * Get all categories for a site
1432
1376
  */
1433
- getProductCategoryBySlug(siteName: string, slug: string, cachePolicy?: CachePolicy): Promise<ApiResponse<Category>>;
1377
+ getCategories(siteName: string, params?: {
1378
+ category_type?: 'post' | 'product';
1379
+ parent_id?: string;
1380
+ include_subcategories?: 'true' | 'false';
1381
+ }, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1382
+ categories: Category[];
1383
+ }>>;
1434
1384
  /**
1435
- * Create new category
1385
+ * Get category by ID (validates it belongs to the site)
1436
1386
  */
1437
- createCategory(data: CreateCategoryRequest): Promise<ApiResponse<Category>>;
1387
+ getCategoryById(siteName: string, id: number, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1388
+ category: Category;
1389
+ }>>;
1438
1390
  /**
1439
- * Update category
1391
+ * Get product categories for a site
1440
1392
  */
1441
- updateCategory(id: number, data: Partial<CreateCategoryRequest>): Promise<ApiResponse<Category>>;
1393
+ getProductCategories(siteName: string, params?: {
1394
+ parent_id?: string;
1395
+ include_subcategories?: 'true' | 'false';
1396
+ }, cachePolicy?: CachePolicy): Promise<ApiResponse<{
1397
+ categories: Category[];
1398
+ }>>;
1442
1399
  /**
1443
- * Delete category
1400
+ * Create new category for a site
1444
1401
  */
1445
- deleteCategory(id: number): Promise<ApiResponse<{
1402
+ createCategory(siteName: string, data: CreateCategoryRequest, csrfToken?: string): Promise<ApiResponse<{
1446
1403
  message: string;
1404
+ category_id: number;
1447
1405
  }>>;
1448
1406
  /**
1449
- * Get category tree (hierarchical structure)
1450
- */
1451
- getCategoryTree(rootId?: number): Promise<ApiResponse<Array<Category & {
1452
- children: Category[];
1453
- }>>>;
1454
- /**
1455
- * Get category children
1456
- */
1457
- getCategoryChildren(id: number): Promise<ApiResponse<Category[]>>;
1458
- /**
1459
- * Get category parent
1460
- */
1461
- getCategoryParent(id: number): Promise<ApiResponse<Category | null>>;
1462
- /**
1463
- * Move category to new parent
1464
- */
1465
- moveCategoryToParent(id: number, parentId: number | null): Promise<ApiResponse<Category>>;
1466
- /**
1467
- * Get category breadcrumb path
1407
+ * Create new product category for a site
1468
1408
  */
1469
- getCategoryBreadcrumb(id: number): Promise<ApiResponse<Array<{
1470
- id: number;
1471
- name: string;
1472
- slug: string;
1473
- }>>>;
1409
+ createProductCategory(siteName: string, data: Omit<CreateCategoryRequest, 'category_type'>, csrfToken?: string): Promise<ApiResponse<{
1410
+ message: string;
1411
+ category_id: number;
1412
+ }>>;
1474
1413
  /**
1475
- * Get category content/products
1414
+ * Update category (validates it belongs to the site)
1476
1415
  */
1477
- getCategoryContent(id: number, params?: {
1478
- page?: number;
1479
- limit?: number;
1480
- type?: 'content' | 'products' | 'all';
1481
- }): Promise<ApiResponse<{
1482
- content: any[];
1483
- products: any[];
1484
- total: number;
1416
+ updateCategory(siteName: string, id: number, data: Partial<CreateCategoryRequest>, csrfToken?: string): Promise<ApiResponse<{
1417
+ message: string;
1485
1418
  }>>;
1486
1419
  /**
1487
- * Bulk update category order
1420
+ * Delete category (validates it belongs to the site)
1488
1421
  */
1489
- updateCategoryOrder(updates: Array<{
1490
- id: number;
1491
- order: number;
1492
- parentId?: number;
1493
- }>): Promise<ApiResponse<{
1422
+ deleteCategory(siteName: string, id: number, csrfToken?: string): Promise<ApiResponse<{
1494
1423
  message: string;
1495
1424
  }>>;
1496
1425
  /**
1497
- * Search categories
1426
+ * Associate pages or products with categories
1498
1427
  */
1499
- searchCategories(query: string, params?: {
1500
- limit?: number;
1501
- organizationId?: number;
1502
- }): Promise<ApiResponse<Category[]>>;
1428
+ associateCategories(siteName: string, data: {
1429
+ entity_id: number;
1430
+ entity_type: 'page' | 'product';
1431
+ category_ids: number[];
1432
+ }, csrfToken?: string): Promise<ApiResponse<{
1433
+ message: string;
1434
+ }>>;
1503
1435
  private buildCategoryTags;
1504
1436
  }
1505
1437
 
@@ -2823,4 +2755,4 @@ declare function createCheckoutSession(options: CheckoutSessionOptions): Promise
2823
2755
  error: string;
2824
2756
  }>;
2825
2757
 
2826
- export { type ApiError, type ApiKey, ApiKeysClient, type ApiResponse, AuthClient, type AuthResponse, BaseClient, type BlogPost, type CacheConfig, CacheManager, CategoriesClient, type Category, type CategorySummary, type CheckoutAddress, CheckoutClient, type CheckoutMetadata, type CheckoutMetadataValue, type CheckoutSession, type CheckoutSessionOptions, type CheckoutSessionTax, type CheckoutTaxBreakdownItem, type CheckoutTaxCustomerExemptionRequest, type CheckoutTaxExemptionStatus, type CheckoutTaxRequest, type CheckoutTaxStrategy, ContactClient, type ContactStatusResponse, type ContactSubmission, type ContactSubmitResponse, type Content, type ContentCategoryResponse, ContentClient, type ContentQueryParams, type ContentStatus, type ContentType, type CreateApiKeyRequest, type CreateCategoryRequest, type CreateCheckoutSessionRequest, type CreateContactRequest, type CreateContentRequest, type CreateNewsletterSubscriptionRequest, type CreateOrganizationRequest, type CreatePaymentGatewayRequest, type CreateProductRequest, type CreateSiteRequest, type CreateWebhookRequest, DEFAULT_IMAGE_SIZES, HttpClient, type HttpMethod, type ImageTransformOptions, InMemoryCacheAdapter, type LoadContentBySlugOptions, type LoadContentOptions, type LoadProductBySlugOptions, type LoadProductsOptions, type LoaderLogger, type LoaderOptions, type MediaItem, NewsletterClient, type NewsletterConfirmResponse, type NewsletterList, type NewsletterPreferences, type NewsletterStatusResponse, type NewsletterSubscribeResponse, type NewsletterSubscription, type NewsletterUnsubscribeRequest, type NewsletterUnsubscribeResponse, NoopCacheAdapter, type Organization, OrganizationsClient, type PaginatedResponse, type PaginationParams, type PaymentGateway, PerspectApiClient, type PerspectApiConfig, type Product, type ProductQueryParams, ProductsClient, type RequestOptions, type RequestOtpRequest, type ResponsiveImageSizes, type SetProfileValueRequest, type SignInRequest, type SignUpRequest, type Site, type SiteUser, type SiteUserOrder, type SiteUserProfile, type SiteUserSubscription, SiteUsersClient, SitesClient, type UpdateApiKeyRequest, type UpdateContentRequest, type UpdateSiteUserRequest, type User, type VerifyOtpRequest, type VerifyOtpResponse, type Webhook, WebhooksClient, buildImageUrl, createApiError, createCheckoutSession, createPerspectApiClient, PerspectApiClient as default, generateResponsiveImageHtml, generateResponsiveUrls, generateSizesAttribute, generateSrcSet, loadAllContent, loadContentBySlug, loadPages, loadPosts, loadProductBySlug, loadProducts, transformContent, transformMediaItem, transformProduct };
2758
+ export { type ApiError, type ApiKey, ApiKeysClient, type ApiResponse, AuthClient, BaseClient, type BlogPost, type CacheConfig, CacheManager, CategoriesClient, type Category, type CategorySummary, type CheckoutAddress, CheckoutClient, type CheckoutMetadata, type CheckoutMetadataValue, type CheckoutSession, type CheckoutSessionOptions, type CheckoutSessionTax, type CheckoutTaxBreakdownItem, type CheckoutTaxCustomerExemptionRequest, type CheckoutTaxExemptionStatus, type CheckoutTaxRequest, type CheckoutTaxStrategy, ContactClient, type ContactStatusResponse, type ContactSubmission, type ContactSubmitResponse, type Content, type ContentCategoryResponse, ContentClient, type ContentQueryParams, type ContentStatus, type ContentType, type CreateApiKeyRequest, type CreateCategoryRequest, type CreateCheckoutSessionRequest, type CreateContactRequest, type CreateContentRequest, type CreateNewsletterSubscriptionRequest, type CreateOrganizationRequest, type CreatePaymentGatewayRequest, type CreateProductRequest, type CreateSiteRequest, type CreateWebhookRequest, DEFAULT_IMAGE_SIZES, HttpClient, type HttpMethod, type ImageTransformOptions, InMemoryCacheAdapter, type LoadContentBySlugOptions, type LoadContentOptions, type LoadProductBySlugOptions, type LoadProductsOptions, type LoaderLogger, type LoaderOptions, type MediaItem, NewsletterClient, type NewsletterConfirmResponse, type NewsletterList, type NewsletterPreferences, type NewsletterStatusResponse, type NewsletterSubscribeResponse, type NewsletterSubscription, type NewsletterUnsubscribeRequest, type NewsletterUnsubscribeResponse, NoopCacheAdapter, type Organization, OrganizationsClient, type PaginatedResponse, type PaginationParams, type PaymentGateway, PerspectApiClient, type PerspectApiConfig, type Product, type ProductQueryParams, ProductsClient, type RequestOptions, type RequestOtpRequest, type ResponsiveImageSizes, type SetProfileValueRequest, type Site, type SiteUser, type SiteUserOrder, type SiteUserProfile, type SiteUserSubscription, SiteUsersClient, SitesClient, type UpdateApiKeyRequest, type UpdateContentRequest, type UpdateSiteUserRequest, type User, type VerifyOtpRequest, type VerifyOtpResponse, type Webhook, WebhooksClient, buildImageUrl, createApiError, createCheckoutSession, createPerspectApiClient, PerspectApiClient as default, generateResponsiveImageHtml, generateResponsiveUrls, generateSizesAttribute, generateSrcSet, loadAllContent, loadContentBySlug, loadPages, loadPosts, loadProductBySlug, loadProducts, transformContent, transformMediaItem, transformProduct };