@businessdash/sdk 0.9.60 → 0.9.70

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.
Files changed (233) hide show
  1. package/README.md +1012 -186
  2. package/assets/biab-sw.js +92 -0
  3. package/dist/account-core/index.d.ts +126 -0
  4. package/dist/account-core/index.d.ts.map +1 -0
  5. package/dist/account-core/index.js +191 -0
  6. package/dist/account-core/index.js.map +1 -0
  7. package/dist/account.d.ts +11 -0
  8. package/dist/account.d.ts.map +1 -0
  9. package/dist/account.js +11 -0
  10. package/dist/account.js.map +1 -0
  11. package/dist/auth-handler.d.ts +1 -1
  12. package/dist/auth-links.d.ts +33 -0
  13. package/dist/auth-links.d.ts.map +1 -0
  14. package/dist/auth-links.js +64 -0
  15. package/dist/auth-links.js.map +1 -0
  16. package/dist/blog-core/index.d.ts +112 -0
  17. package/dist/blog-core/index.d.ts.map +1 -0
  18. package/dist/blog-core/index.js +330 -0
  19. package/dist/blog-core/index.js.map +1 -0
  20. package/dist/blog.d.ts +11 -0
  21. package/dist/blog.d.ts.map +1 -0
  22. package/dist/blog.js +11 -0
  23. package/dist/blog.js.map +1 -0
  24. package/dist/chat-core/index.d.ts +97 -0
  25. package/dist/chat-core/index.d.ts.map +1 -0
  26. package/dist/chat-core/index.js +237 -0
  27. package/dist/chat-core/index.js.map +1 -0
  28. package/dist/chat.d.ts +11 -0
  29. package/dist/chat.d.ts.map +1 -0
  30. package/dist/chat.js +11 -0
  31. package/dist/chat.js.map +1 -0
  32. package/dist/checkout-core/index.d.ts +65 -0
  33. package/dist/checkout-core/index.d.ts.map +1 -0
  34. package/dist/checkout-core/index.js +159 -0
  35. package/dist/checkout-core/index.js.map +1 -0
  36. package/dist/checkout.d.ts +10 -0
  37. package/dist/checkout.d.ts.map +1 -0
  38. package/dist/checkout.js +10 -0
  39. package/dist/checkout.js.map +1 -0
  40. package/dist/cli.js +133 -25
  41. package/dist/cli.js.map +1 -1
  42. package/dist/client.d.ts +567 -1
  43. package/dist/client.d.ts.map +1 -1
  44. package/dist/client.js +807 -1
  45. package/dist/client.js.map +1 -1
  46. package/dist/contracts.d.ts +3309 -761
  47. package/dist/contracts.d.ts.map +1 -1
  48. package/dist/contracts.js +541 -4
  49. package/dist/contracts.js.map +1 -1
  50. package/dist/data-model-schema.d.ts +1 -1
  51. package/dist/data-model-schema.d.ts.map +1 -1
  52. package/dist/element.d.ts +30 -0
  53. package/dist/element.d.ts.map +1 -1
  54. package/dist/element.js +56 -0
  55. package/dist/element.js.map +1 -1
  56. package/dist/embed-protocol.d.ts +86 -0
  57. package/dist/embed-protocol.d.ts.map +1 -0
  58. package/dist/embed-protocol.js +60 -0
  59. package/dist/embed-protocol.js.map +1 -0
  60. package/dist/framework-support.d.ts +122 -0
  61. package/dist/framework-support.d.ts.map +1 -0
  62. package/dist/framework-support.js +323 -0
  63. package/dist/framework-support.js.map +1 -0
  64. package/dist/index.cjs +1244 -5
  65. package/dist/legal-core/index.cjs +115 -0
  66. package/dist/legal-core/index.d.ts +160 -0
  67. package/dist/legal-core/index.d.ts.map +1 -0
  68. package/dist/legal-core/index.js +220 -0
  69. package/dist/legal-core/index.js.map +1 -0
  70. package/dist/marketing-core/index.d.ts +66 -0
  71. package/dist/marketing-core/index.d.ts.map +1 -0
  72. package/dist/marketing-core/index.js +154 -0
  73. package/dist/marketing-core/index.js.map +1 -0
  74. package/dist/marketing.d.ts +7 -0
  75. package/dist/marketing.d.ts.map +1 -0
  76. package/dist/marketing.js +7 -0
  77. package/dist/marketing.js.map +1 -0
  78. package/dist/mcp-adapters/index.d.ts +135 -0
  79. package/dist/mcp-adapters/index.d.ts.map +1 -0
  80. package/dist/mcp-adapters/index.js +187 -0
  81. package/dist/mcp-adapters/index.js.map +1 -0
  82. package/dist/mcp-adapters.d.ts +7 -0
  83. package/dist/mcp-adapters.d.ts.map +1 -0
  84. package/dist/mcp-adapters.js +7 -0
  85. package/dist/mcp-adapters.js.map +1 -0
  86. package/dist/model3d-core/index.cjs +95 -0
  87. package/dist/model3d-core/index.d.ts +167 -0
  88. package/dist/model3d-core/index.d.ts.map +1 -0
  89. package/dist/model3d-core/index.js +158 -0
  90. package/dist/model3d-core/index.js.map +1 -0
  91. package/dist/notifications-core/index.cjs +315 -0
  92. package/dist/notifications-core/index.d.ts +229 -0
  93. package/dist/notifications-core/index.d.ts.map +1 -0
  94. package/dist/notifications-core/index.js +445 -0
  95. package/dist/notifications-core/index.js.map +1 -0
  96. package/dist/portal-core/index.d.ts +451 -0
  97. package/dist/portal-core/index.d.ts.map +1 -0
  98. package/dist/portal-core/index.js +819 -0
  99. package/dist/portal-core/index.js.map +1 -0
  100. package/dist/portal.d.ts +7 -0
  101. package/dist/portal.d.ts.map +1 -0
  102. package/dist/portal.js +7 -0
  103. package/dist/portal.js.map +1 -0
  104. package/dist/push-core/index.cjs +171 -0
  105. package/dist/push-core/index.d.ts +149 -0
  106. package/dist/push-core/index.d.ts.map +1 -0
  107. package/dist/push-core/index.js +231 -0
  108. package/dist/push-core/index.js.map +1 -0
  109. package/dist/react-marketing.d.ts +1 -17
  110. package/dist/react-marketing.d.ts.map +1 -1
  111. package/dist/react-marketing.js +4 -0
  112. package/dist/react-marketing.js.map +1 -1
  113. package/dist/react.d.ts +294 -101
  114. package/dist/react.d.ts.map +1 -1
  115. package/dist/react.js +302 -246
  116. package/dist/react.js.map +1 -1
  117. package/dist/seed-core/index.d.ts +354 -0
  118. package/dist/seed-core/index.d.ts.map +1 -0
  119. package/dist/seed-core/index.js +420 -0
  120. package/dist/seed-core/index.js.map +1 -0
  121. package/dist/seed.d.ts +7 -0
  122. package/dist/seed.d.ts.map +1 -0
  123. package/dist/seed.js +7 -0
  124. package/dist/seed.js.map +1 -0
  125. package/dist/seo-core/blog.d.ts +94 -0
  126. package/dist/seo-core/blog.d.ts.map +1 -0
  127. package/dist/seo-core/blog.js +149 -0
  128. package/dist/seo-core/blog.js.map +1 -0
  129. package/dist/seo-core/commerce.d.ts +64 -0
  130. package/dist/seo-core/commerce.d.ts.map +1 -0
  131. package/dist/seo-core/commerce.js +87 -0
  132. package/dist/seo-core/commerce.js.map +1 -0
  133. package/dist/seo-core/index.cjs +751 -0
  134. package/dist/seo-core/index.d.ts +226 -0
  135. package/dist/seo-core/index.d.ts.map +1 -0
  136. package/dist/seo-core/index.js +455 -0
  137. package/dist/seo-core/index.js.map +1 -0
  138. package/dist/seo-core/local.d.ts +181 -0
  139. package/dist/seo-core/local.d.ts.map +1 -0
  140. package/dist/seo-core/local.js +193 -0
  141. package/dist/seo-core/local.js.map +1 -0
  142. package/dist/sitemap-core/index.cjs +167 -0
  143. package/dist/sitemap-core/index.d.ts +155 -0
  144. package/dist/sitemap-core/index.d.ts.map +1 -0
  145. package/dist/sitemap-core/index.js +195 -0
  146. package/dist/sitemap-core/index.js.map +1 -0
  147. package/dist/social-core/index.d.ts +74 -0
  148. package/dist/social-core/index.d.ts.map +1 -0
  149. package/dist/social-core/index.js +72 -0
  150. package/dist/social-core/index.js.map +1 -0
  151. package/dist/social.d.ts +7 -0
  152. package/dist/social.d.ts.map +1 -0
  153. package/dist/social.js +7 -0
  154. package/dist/social.js.map +1 -0
  155. package/dist/solid-compat.d.ts +204 -0
  156. package/dist/solid-compat.d.ts.map +1 -0
  157. package/dist/solid-compat.js +221 -0
  158. package/dist/solid-compat.js.map +1 -0
  159. package/dist/store-core/index.d.ts +141 -0
  160. package/dist/store-core/index.d.ts.map +1 -0
  161. package/dist/store-core/index.js +277 -0
  162. package/dist/store-core/index.js.map +1 -0
  163. package/dist/store.d.ts +12 -0
  164. package/dist/store.d.ts.map +1 -0
  165. package/dist/store.js +12 -0
  166. package/dist/store.js.map +1 -0
  167. package/dist/vanilla.d.ts +111 -0
  168. package/dist/vanilla.d.ts.map +1 -1
  169. package/dist/vanilla.js +206 -0
  170. package/dist/vanilla.js.map +1 -1
  171. package/dist/verify-core/index.d.ts +98 -0
  172. package/dist/verify-core/index.d.ts.map +1 -0
  173. package/dist/verify-core/index.js +186 -0
  174. package/dist/verify-core/index.js.map +1 -0
  175. package/dist/verify.d.ts +8 -0
  176. package/dist/verify.d.ts.map +1 -0
  177. package/dist/verify.js +8 -0
  178. package/dist/verify.js.map +1 -0
  179. package/openapi.json +4316 -1313
  180. package/package.json +121 -9
  181. package/src/account-core/index.ts +309 -0
  182. package/src/account.ts +11 -0
  183. package/src/angular/headless.ts +519 -0
  184. package/src/angular/index.ts +3 -0
  185. package/src/auth-links.ts +76 -0
  186. package/src/blog-core/index.ts +423 -0
  187. package/src/blog.ts +11 -0
  188. package/src/chat-core/index.ts +335 -0
  189. package/src/chat.ts +11 -0
  190. package/src/checkout-core/index.ts +225 -0
  191. package/src/checkout.ts +10 -0
  192. package/src/cli.ts +184 -28
  193. package/src/client.ts +998 -0
  194. package/src/contracts.ts +730 -11
  195. package/src/data-model-schema.ts +1 -1
  196. package/src/element.ts +102 -0
  197. package/src/embed-protocol.ts +100 -0
  198. package/src/framework-support.ts +440 -0
  199. package/src/legal-core/index.ts +276 -0
  200. package/src/marketing-core/index.ts +209 -0
  201. package/src/marketing.ts +7 -0
  202. package/src/mcp-adapters/index.ts +264 -0
  203. package/src/mcp-adapters.ts +7 -0
  204. package/src/model3d-core/index.ts +248 -0
  205. package/src/notifications-core/index.ts +650 -0
  206. package/src/portal-core/index.ts +1564 -0
  207. package/src/portal.ts +7 -0
  208. package/src/push-core/index.ts +335 -0
  209. package/src/qwik.tsx +602 -2
  210. package/src/react-marketing.tsx +5 -0
  211. package/src/react.tsx +434 -319
  212. package/src/seed-core/index.ts +735 -0
  213. package/src/seed.ts +7 -0
  214. package/src/seo-core/blog.ts +216 -0
  215. package/src/seo-core/commerce.ts +138 -0
  216. package/src/seo-core/index.ts +605 -0
  217. package/src/seo-core/local.ts +333 -0
  218. package/src/sitemap-core/index.ts +296 -0
  219. package/src/social-core/index.ts +103 -0
  220. package/src/social.ts +7 -0
  221. package/src/solid-compat.tsx +347 -0
  222. package/src/solid-surfaces.tsx +1311 -0
  223. package/src/solid.tsx +82 -60
  224. package/src/store-core/index.ts +426 -0
  225. package/src/store.ts +12 -0
  226. package/src/svelte/SocialLinks.svelte +84 -0
  227. package/src/svelte/headless.ts +435 -0
  228. package/src/svelte/index.ts +9 -0
  229. package/src/vanilla.ts +367 -0
  230. package/src/verify-core/index.ts +288 -0
  231. package/src/verify.ts +8 -0
  232. package/src/vue/headless.ts +527 -0
  233. package/src/vue/index.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type AddressDetailsResponse, type AddressFormValues, type AddressSearchInput, type AddressSearchResponse, type AddressVerifyResponse, type AiVisibilityInput, type AiVisibilityResponse, type AttributionHeartbeatInput, type AttributionHeartbeatResponse, type AttributionPolicy, type AuthIntrospectResponse, type BlogCategoryListResponse, type BlogCommentListResponse, type BlogCommentPostInput, type BlogCommentPostResponse, type BlogLikeResponse, type BlogListPostsResponse, type BlogPostBySlugResponse, type BlogSessionInput, type BlogSessionResponse, type BlogTagListResponse, type CartAddItemInput, type CartCouponInput, type CartSessionResponse, type CartSnapshot, type CartUpdateItemInput, type ChatbotAppendMessageInput, type ChatbotAvailability, type ChatbotChatInput, type ChatbotChatResponse, type ChatbotConfig, type ChatbotConfigUpdateInput, type ChatbotFormDefinition, type ChatbotFormSubmitInput, type ChatbotFormSubmitResponse, type ChatbotMessagesResponse, type ChatbotPersistedSessionInput, type ChatbotPersistedSessionResponse, type ChatbotRequestHumanInput, type ChatbotRequestHumanResponse, type ChatbotSessionResponse, type CheckoutSessionInput, type CheckoutSessionResponse, type CheckoutStartInput, type CheckoutStartResponse, type CheckoutStatusResponse, type ConfirmVerificationInput, type ConfirmVerificationResponse, type CouponValidateResponse, type CreateCollectionInput, type CreateCollectionResponse, type CreateEmailTemplateInput, type CreateEmailTemplateResponse, type CreateEmailTemplateVersionInput, type CreateEmailTemplateVersionResponse, type CustomerContactCompanyInput, type CustomerContactCompanyResponse, type CustomerContractDetail, type CustomerContractSignResponse, type CustomerDownloadsResponse, type CustomerInvoiceDetail, type CustomerInvoicePayInput, type CustomerInvoicePayResponse, type CustomerInvoicePdf, type CustomerJobActivityResponse, type CustomerJobComment, type CustomerJobCommentPostInput, type CustomerJobCommentsListResponse, type CustomerJobDetail, type CustomerJobEtaResponse, type CustomerNotificationPreferencesResponse, type CustomerNotificationPreferencesUpdateInput, type CustomerNotificationPreferencesUpdateResponse, type CustomerOrderDetail, type CustomerOrderListResponse, type CustomerPortalContextResponse, type CustomerPortalOtherOrgsResponse, type CustomerPortalProfile, type CustomerPortalUpdateProfileInput, type CustomerPortalUpdateProfileResponse, type CustomerQuoteActionResponse, type CustomerQuoteDetail, type CustomerReferralHistoryResponse, type CustomerReferralPayoutsResponse, type CustomerReferralStats, type CustomerReturnRequestCreated, type CustomerReturnRequestInput, type CustomerReviewListResponse, type CustomerReviewSubmitInput, type CustomerReviewSubmitResponse, type CustomerShipmentTracking, type CustomerWorkBundle, type DashboardSessionResponse, type ExecuteActionInput, type ExecuteActionResponse, type FollowerEditInput, type FollowerEditResponse, type FollowerJoinInput, type FollowerJoinResponse, type FollowerLeaveInput, type FollowerLeaveResponse, type FollowerMeInput, type FollowerMeResponse, type GetCollectionResponse, type GetEmailTemplateResponse, type GetMarketingLocalesResponse, type GetMarketingPageBundleResponse, type GetPublishedMarketingSchemaResponse, type GetSiteMarketingPageResponse, type GoogleAddress, type JobCategoryListResponse, type JobPosting, type JobPostingListResponse, type ListCollectionsResponse, type ListDataModelRecordsInput, type ListDataModelRecordsResponse, type ListEmailTemplatesInput, type ListEmailTemplatesResponse, type ListRowsInput, type ListRowsResponse, type ListSiteMarketingPagesResponse, type NotificationPreferencesResponse, type NotificationPreferencesUpdateInput, type PageViewsInput, type PageViewsResponse, type PublishMarketingSectionsInput, type PublishMarketingSectionsResponse, type QueryRowsInput, type QueryRowsResponse, type ReviewWallListResponse, type ShippingRatesInput, type ShippingRatesResponse, type ShippingSettingsResponse, type ShippingTrackResponse, type SiteAssetInput, type SiteBranding, type StartVerificationInput, type StartVerificationResponse, type StorefrontAddonsResponse, type StorefrontCategoriesResponse, type StorefrontListProductsResponse, type StorefrontProductDetail, type StorefrontProductReviewsResponse, type StorefrontProductsWithMetaResponse, type StorefrontRelatedProductsResponse, type StorefrontSessionInput, type StorefrontSessionResponse, type StorefrontSort, type SubscriptionCheckoutInput, type SubscriptionCheckoutResponse, type SubscriptionOffering, type SubscriptionOfferingsListResponse, type TenantAuthExchangeInput, type TenantAuthExchangeResponse, type TenantAuthMeResponse, type TenantAuthPasswordResetInput, type TenantAuthPasswordResetResponse, type TenantAuthSignOutResponse, type TenantAuthStartInput, type TenantAuthStartResponse, type UploadSiteAssetResponse, type UpsertDraftMarketingSchemaInput, type UpsertDraftMarketingSchemaResponse, type UpsertRowInput, type UpsertRowResponse } from "./contracts.js";
2
+ import { type AddressDetailsResponse, type AddressFormValues, type AddressSearchInput, type AddressSearchResponse, type AddressVerifyResponse, type AiVisibilityInput, type AiVisibilityResponse, type AttributionHeartbeatInput, type AttributionHeartbeatResponse, type AttributionPolicy, type AuthIntrospectResponse, type BlogCategoryListResponse, type BlogCommentListResponse, type BlogCommentPostInput, type BlogCommentPostResponse, type BlogLikeResponse, type BlogListPostsResponse, type BlogPostBySlugResponse, type BlogSessionInput, type BlogSessionResponse, type BlogTagListResponse, type CartAddItemInput, type CartCouponInput, type CartSessionResponse, type CartSnapshot, type CartUpdateItemInput, type ChatbotAppendMessageInput, type ChatbotAvailability, type ChatbotChatInput, type ChatbotChatResponse, type ChatbotConfig, type ChatbotConfigUpdateInput, type ChatbotFormDefinition, type ChatbotFormSubmitInput, type ChatbotFormSubmitResponse, type ChatbotMessagesResponse, type ChatbotPersistedSessionInput, type ChatbotPersistedSessionResponse, type ChatbotRequestHumanInput, type ChatbotRequestHumanResponse, type ChatbotSessionResponse, type CheckoutSessionInput, type CheckoutSessionResponse, type CheckoutStartInput, type CheckoutStartResponse, type CheckoutStatusResponse, type ConfirmVerificationInput, type ConfirmVerificationResponse, type CouponCreateInput, type CouponCreateResponse, type CouponListResponse, type CouponValidateResponse, type CreateCollectionInput, type CreateCollectionResponse, type CreateEmailTemplateInput, type CreateEmailTemplateResponse, type CreateEmailTemplateVersionInput, type CreateEmailTemplateVersionResponse, type CustomerContactCompanyInput, type CustomerContactCompanyResponse, type CustomerContractDetail, type CustomerContractListResponse, type CustomerContractSignResponse, type CustomerDownloadsResponse, type CustomerInviteResendResponse, type CustomerInvoiceDetail, type CustomerInvoiceListResponse, type CustomerInvoicePayInput, type CustomerInvoicePayResponse, type CustomerInvoicePdf, type CustomerJobActivityResponse, type CustomerJobComment, type CustomerJobCommentPostInput, type CustomerJobCommentsListResponse, type CustomerJobDetail, type CustomerJobEtaResponse, type CustomerNotificationPreferencesResponse, type CustomerNotificationPreferencesUpdateInput, type CustomerNotificationPreferencesUpdateResponse, type CustomerNotReceivedResult, type CustomerOrderDetail, type CustomerOrderListResponse, type CustomerPortalContextResponse, type CustomerPortalMessage, type CustomerPortalMessageListResponse, type CustomerPortalMessagePostInput, type CustomerPortalMessagesMarkReadResponse, type CustomerPortalOtherOrgsResponse, type CustomerPortalProfile, type CustomerPortalUpdateProfileInput, type CustomerPortalUpdateProfileResponse, type CustomerProductReviewCreated, type CustomerProductReviewList, type CustomerPushConfig, type CustomerQuoteActionResponse, type CustomerQuoteDetail, type CustomerQuoteListResponse, type CustomerReferralHistoryResponse, type CustomerReferralPayoutsResponse, type CustomerReferralStats, type CustomerReturnRequestCreated, type CustomerReturnRequestInput, type CustomerReturnRequestListResponse, type CustomerReviewListResponse, type CustomerReviewSubmitInput, type CustomerReviewSubmitResponse, type CustomerShipmentListResponse, type CustomerShipmentTracking, type CustomerSubscriberContentResponse, type CustomerSubscriptionCancelResponse, type CustomerSubscriptionResponse, type CustomerWorkBundle, type DashboardSessionResponse, type ExecuteActionInput, type ExecuteActionResponse, type FollowerEditInput, type FollowerEditResponse, type FollowerJoinInput, type FollowerJoinResponse, type FollowerLeaveInput, type FollowerLeaveResponse, type FollowerMeInput, type FollowerMeResponse, type GetCollectionResponse, type GetEmailTemplateResponse, type GetMarketingLocalesResponse, type GetMarketingPageBundleResponse, type GetPublishedMarketingSchemaResponse, type GetSiteMarketingPageResponse, type GoogleAddress, type JobCategoryListResponse, type JobPosting, type JobPostingListResponse, type LegalDocument, type LegalListResponse, type ListCollectionsResponse, type ListDataModelRecordsInput, type ListDataModelRecordsResponse, type ListEmailTemplatesInput, type ListEmailTemplatesResponse, type ListRowsInput, type ListRowsResponse, type ListSiteMarketingPagesResponse, type NotificationPreferencesResponse, type NotificationPreferencesUpdateInput, type PageViewsInput, type PageViewsResponse, type PublishMarketingSectionsInput, type PublishMarketingSectionsResponse, type QueryRowsInput, type QueryRowsResponse, type ReviewWallListResponse, type SchedulingBookingResult, type SchedulingBookingView, type SchedulingCancelResult, type SchedulingEventTypeDetail, type SchedulingEventTypeList, type SchedulingRescheduleResult, type SchedulingSlotsResponse, type ShippingRatesInput, type ShippingRatesResponse, type ShippingSettingsResponse, type ShippingTrackResponse, type SiteAssetInput, type SiteBranding, type StartVerificationInput, type StartVerificationResponse, type StorefrontAddonsResponse, type StorefrontCategoriesResponse, type StorefrontListProductsResponse, type StorefrontProductDetail, type StorefrontProductReviewsResponse, type StorefrontProductsWithMetaResponse, type StorefrontRelatedProductsResponse, type StorefrontSessionInput, type StorefrontSessionResponse, type StorefrontSort, type StorefrontSyncToStripeResponse, type SubscriptionCheckoutInput, type SubscriptionCheckoutResponse, type SubscriptionOffering, type SubscriptionOfferingsListResponse, type TenantAuthExchangeInput, type TenantAuthExchangeResponse, type TenantAuthMeResponse, type TenantAuthPasswordResetInput, type TenantAuthPasswordResetResponse, type TenantAuthSignOutResponse, type TenantAuthStartInput, type TenantAuthStartResponse, type UploadSiteAssetResponse, type UpsertDraftMarketingSchemaInput, type UpsertDraftMarketingSchemaResponse, type UpsertRowInput, type UpsertRowResponse } from "./contracts.js";
3
3
  export type FetchLike = typeof fetch;
4
4
  /** Options for {@link BiabDevClient} / {@link createBiabDevClient}. */
5
5
  export type BiabDevClientOptions = {
@@ -49,12 +49,22 @@ export declare class BiabDevClient {
49
49
  get coupons(): BiabDevCouponsClient;
50
50
  get subscriptions(): BiabDevSubscriptionsClient;
51
51
  get shipping(): BiabDevShippingClient;
52
+ /** Customer-portal invitations — currently resend. */
53
+ get customerInvites(): BiabDevCustomerInvitesClient;
52
54
  get notifications(): BiabDevNotificationsClient;
53
55
  get address(): BiabDevAddressClient;
54
56
  get blog(): BiabDevBlogClient;
55
57
  get reviews(): BiabDevReviewsClient;
56
58
  /** Public job postings — build a careers page on your own domain. */
57
59
  get hiring(): BiabDevHiringClient;
60
+ /**
61
+ * The org's published legal pages — privacy, terms, refund policy, whatever
62
+ * they authored in the dashboard.
63
+ *
64
+ * Pair with `@businessdash/sdk/legal` to render them without writing a page
65
+ * per document.
66
+ */
67
+ get legal(): BiabDevLegalClient;
58
68
  get chatbot(): BiabDevChatbotClient;
59
69
  get auth(): BiabDevAuthClient;
60
70
  /**
@@ -102,6 +112,14 @@ export declare class BiabDevSiteClient {
102
112
  */
103
113
  readonly marketing: BiabDevMarketingClient;
104
114
  readonly parallelPages: BiabDevParallelPagesClient;
115
+ /**
116
+ * Booking and conference calls.
117
+ *
118
+ * Previously reachable only through `sdk.ts`'s separate scheduling
119
+ * resource, which is why the OpenAPI generator — which reads this file —
120
+ * never saw it, and why no non-JS starter had scheduling at all.
121
+ */
122
+ readonly scheduling: BiabDevSchedulingClient;
105
123
  constructor(client: BiabDevClient, siteId: string);
106
124
  /**
107
125
  * The org's storefront branding — logo + favicon (site static media) plus
@@ -114,6 +132,23 @@ export declare class BiabDevSiteClient {
114
132
  * <img src={b.logoUrl ?? b.orgIcon ?? ""} alt={b.orgName ?? ""} />
115
133
  * ```
116
134
  */
135
+ /**
136
+ * Every URL the PLATFORM owns the shape of, as JSON.
137
+ *
138
+ * Published site-builder pages, published legal documents, and every
139
+ * materialised programmatic-page URL. Blog posts and products are not here
140
+ * — the platform does not know where your site renders them. Merge those in
141
+ * with `@businessdash/sdk/sitemap`, which handles the whole job.
142
+ *
143
+ * Paths are relative, so you join them against your own origin rather than
144
+ * the org's primary verified domain.
145
+ */
146
+ sitemapEntries(): Promise<{
147
+ entries: Array<{
148
+ loc: string;
149
+ lastmod?: string | undefined;
150
+ }>;
151
+ }>;
117
152
  branding(): Promise<SiteBranding>;
118
153
  }
119
154
  export declare const parallelPagesListResponseSchema: z.ZodObject<{
@@ -691,6 +726,37 @@ export declare class BiabDevStorefrontClient {
691
726
  * own native product catalog using BIAB as the data layer.
692
727
  */
693
728
  createSession(input?: StorefrontSessionInput): Promise<StorefrontSessionResponse>;
729
+ /**
730
+ * Push your catalog into YOUR OWN Stripe account.
731
+ *
732
+ * Products and their variant combinations become Stripe Products and
733
+ * Prices on the Stripe account connected to your workspace, so you can
734
+ * manage the catalog here and let Stripe be the system of record for
735
+ * money. Safe to re-run: an unchanged product is left alone, and a new
736
+ * Price is minted only when the amount actually changed (Stripe Prices
737
+ * are immutable on amount).
738
+ *
739
+ * Requires a SECRET key holding `storefront:write` — never a publishable
740
+ * token, because this spends against Stripe on your behalf.
741
+ *
742
+ * Pass `productId` to sync one product. Omit it to sync everything not yet
743
+ * pushed, in bounded batches: check `remaining` and call again until it
744
+ * reaches 0.
745
+ *
746
+ * ```ts
747
+ * let remaining = 1;
748
+ * while (remaining > 0) {
749
+ * const res = await biab.storefront.syncToStripe();
750
+ * remaining = res.remaining;
751
+ * }
752
+ * ```
753
+ *
754
+ * Per-product failures are returned in `failed` rather than throwing, so
755
+ * one bad product doesn't abandon the batch.
756
+ */
757
+ syncToStripe(input?: {
758
+ productId?: string;
759
+ }): Promise<StorefrontSyncToStripeResponse>;
694
760
  /**
695
761
  * Paginated list of live products for the calling org's storefront.
696
762
  * Cursor is an opaque integer offset — pass back the response's
@@ -727,6 +793,33 @@ export declare class BiabDevStorefrontClient {
727
793
  * via `BiabApiError` if the product isn't live or doesn't belong
728
794
  * to the org bound to the API key.
729
795
  */
796
+ /**
797
+ * The CAD file for a product — STEP, IGES, or a native part file.
798
+ *
799
+ * ## Call this from YOUR server, then proxy it
800
+ *
801
+ * The API key is a server secret, so a browser cannot reach this directly.
802
+ * Expose your own route (`/api/products/:id/cad`), call this behind it, and
803
+ * redirect the visitor to the URL it returns.
804
+ *
805
+ * The platform withholds the raw URL from every product payload on purpose:
806
+ * CAD files are the largest thing it serves and are the org's intellectual
807
+ * property, so a catalog of naked URLs is a design library published to
808
+ * anyone willing to write a loop. This endpoint requires a `biab_cad` cookie
809
+ * on the incoming request, rate-limits per IP, and re-checks the
810
+ * `ecommerce.product_3d` entitlement before answering.
811
+ *
812
+ * `cacheSeconds` is what to put on your own response — CAD at a content URL
813
+ * does not change, so caching hard is where the bandwidth saving comes from.
814
+ *
815
+ * Rejects 404 when the product is a draft, has no CAD file, or the org lacks
816
+ * the add-on. Those are deliberately one answer.
817
+ */
818
+ getCadDownload(productId: string): Promise<{
819
+ url: string;
820
+ fileName: string | null;
821
+ cacheSeconds: number;
822
+ }>;
730
823
  getProduct(productId: string): Promise<StorefrontProductDetail>;
731
824
  /** Approved reviews for a product + aggregate (`avgRating`, `totalCount`).
732
825
  * Cursor-paginated — pass back `nextCursor` for the next page. */
@@ -926,6 +1019,34 @@ export declare class BiabDevCouponsClient {
926
1019
  * else toast.error(result.message);
927
1020
  * ```
928
1021
  */
1022
+ /**
1023
+ * Create a coupon and make it live in YOUR OWN Stripe account in one call —
1024
+ * a Stripe Coupon plus a Promotion Code, so the same string works on your
1025
+ * storefront and on Stripe-hosted Checkout.
1026
+ *
1027
+ * Creation and the Stripe sync are one operation deliberately: a coupon
1028
+ * that exists locally but not in Stripe is the failure worth designing out,
1029
+ * where a customer types a code your storefront accepts and Stripe rejects.
1030
+ * If the sync fails the coupon is still created and `stripeSynced` comes
1031
+ * back `false` with the reason, rather than pretending it is live.
1032
+ *
1033
+ * Requires a SECRET key holding `storefront:write`.
1034
+ *
1035
+ * ```ts
1036
+ * const { coupon, stripeSynced } = await biab.coupons.create({
1037
+ * code: 'WELCOME10',
1038
+ * discountType: 'percent',
1039
+ * value: 10,
1040
+ * })
1041
+ * ```
1042
+ *
1043
+ * Buy-X-get-Y and bundle-gift coupons aren't available here — Stripe has no
1044
+ * native BXGY, so those run through our own cart math and need the offer
1045
+ * rows the dashboard collects.
1046
+ */
1047
+ create(input: CouponCreateInput): Promise<CouponCreateResponse>;
1048
+ /** Every coupon on the workspace, newest first. Requires `storefront:write`. */
1049
+ list(): Promise<CouponListResponse>;
929
1050
  validate(code: string): Promise<CouponValidateResponse>;
930
1051
  }
931
1052
  /**
@@ -1176,6 +1297,39 @@ export declare class BiabDevHiringClient {
1176
1297
  */
1177
1298
  categories(): Promise<JobCategoryListResponse>;
1178
1299
  }
1300
+ /**
1301
+ * The org's published legal pages.
1302
+ *
1303
+ * Everything here is content the org deliberately put on the public internet;
1304
+ * drafts are filtered server-side and unreachable. Requires `legal:read`, which
1305
+ * is publishable — a browser token is the expected caller.
1306
+ *
1307
+ * @example
1308
+ * ```ts
1309
+ * const { items, presentation } = await client.legal.list();
1310
+ * const privacy = await client.legal.get("privacy");
1311
+ * ```
1312
+ */
1313
+ export declare class BiabDevLegalClient {
1314
+ private readonly client;
1315
+ constructor(client: BiabDevClient);
1316
+ /**
1317
+ * Every published document, plus the header/footer presentation.
1318
+ *
1319
+ * Both in one response because the common use — a footer link list — needs
1320
+ * the titles and the presentation together, and a second round trip for the
1321
+ * latter is one a site either makes on every page or skips entirely.
1322
+ */
1323
+ list(): Promise<LegalListResponse>;
1324
+ /**
1325
+ * One document by slug, body included.
1326
+ *
1327
+ * Rejects with a 404 when the slug is unpublished or absent — the two are
1328
+ * deliberately indistinguishable, since "exists but hidden" would leak that
1329
+ * an org is drafting a policy and is not something a caller can act on.
1330
+ */
1331
+ get(slug: string): Promise<LegalDocument>;
1332
+ }
1179
1333
  export declare class BiabDevChatbotClient {
1180
1334
  private readonly client;
1181
1335
  constructor(client: BiabDevClient);
@@ -1501,6 +1655,68 @@ export declare class BiabDevCustomerPortalClient {
1501
1655
  }): Promise<CustomerReferralHistoryResponse>;
1502
1656
  /** The customer's referral payout history + upcoming rows (newest first). */
1503
1657
  myReferralPayouts(): Promise<CustomerReferralPayoutsResponse>;
1658
+ /**
1659
+ * The return requests on one order, newest first.
1660
+ *
1661
+ * `resolutionNote` carries staff's answer — when a return is denied that IS
1662
+ * the answer, and hiding it just moves the question to email.
1663
+ */
1664
+ listReturnRequests(orderId: string): Promise<CustomerReturnRequestListResponse>;
1665
+ /**
1666
+ * The customer's message thread with the org's staff, newest first.
1667
+ *
1668
+ * Automated rows — the review-ask and similar — are excluded server-side, so
1669
+ * this is only what a person wrote.
1670
+ */
1671
+ listMessages(opts?: {
1672
+ limit?: number;
1673
+ jobId?: string;
1674
+ }): Promise<CustomerPortalMessageListResponse>;
1675
+ /** Send a message to the org's staff. Lands in the CRM timeline. */
1676
+ postMessage(input: CustomerPortalMessagePostInput): Promise<CustomerPortalMessage>;
1677
+ /**
1678
+ * Mark the staff messages read up to now.
1679
+ *
1680
+ * One-way: it never clears a stamp. A portal that could un-read a message
1681
+ * would let a customer hide from staff that they had seen something.
1682
+ */
1683
+ markMessagesRead(): Promise<CustomerPortalMessagesMarkReadResponse>;
1684
+ /**
1685
+ * The customer's invoices, newest first.
1686
+ *
1687
+ * `unpaid: true` filters on the computed BALANCE rather than on the status
1688
+ * string, because a partially-paid invoice still owes money whatever it is
1689
+ * called. This is the call behind "show me everything I owe" — which had no
1690
+ * endpoint at all before 0.9.61.
1691
+ */
1692
+ listInvoices(opts?: {
1693
+ limit?: number;
1694
+ status?: string;
1695
+ unpaid?: boolean;
1696
+ }): Promise<CustomerInvoiceListResponse>;
1697
+ /** The customer's quotes. `status: "sent"` is the set still awaiting them. */
1698
+ listQuotes(opts?: {
1699
+ limit?: number;
1700
+ status?: string;
1701
+ }): Promise<CustomerQuoteListResponse>;
1702
+ /** The customer's contracts. `status: "sent"` still awaits a signature. */
1703
+ listContracts(opts?: {
1704
+ limit?: number;
1705
+ status?: string;
1706
+ }): Promise<CustomerContractListResponse>;
1707
+ /**
1708
+ * Every shipment across the customer's orders. `active: true` narrows to
1709
+ * parcels still moving.
1710
+ *
1711
+ * STORED status only — no live carrier poll. `trackShipment(id)` spends a
1712
+ * Shippo request because it is one parcel the customer opened; doing that
1713
+ * per row here would mean a carrier call for every parcel in their history
1714
+ * on every page load.
1715
+ */
1716
+ listShipments(opts?: {
1717
+ limit?: number;
1718
+ active?: boolean;
1719
+ }): Promise<CustomerShipmentListResponse>;
1504
1720
  /**
1505
1721
  * The signed-in customer's orders (newest first), each with a shipment
1506
1722
  * roll-up (`overallStatus`, `anyInTransit`, `latestEstimatedDelivery`) for
@@ -1552,6 +1768,180 @@ export declare class BiabDevCustomerPortalClient {
1552
1768
  * ```
1553
1769
  */
1554
1770
  submitReturnRequest(orderId: string, input?: CustomerReturnRequestInput): Promise<CustomerReturnRequestCreated>;
1771
+ /**
1772
+ * Ask for a replacement instead of a refund.
1773
+ *
1774
+ * Sugar over `submitReturnRequest` with `kind: "exchange"`, because an
1775
+ * exchange reads as its own action to the person writing the UI, and burying
1776
+ * it in an options bag is how it stays undiscovered. `variantId` is the one
1777
+ * they want instead — omit it when that still needs a conversation.
1778
+ *
1779
+ * @example
1780
+ * ```ts
1781
+ * await portal.submitExchangeRequest(orderId, {
1782
+ * exchangeForVariantId: largeVariantId,
1783
+ * reason: "wrong size",
1784
+ * });
1785
+ * ```
1786
+ */
1787
+ submitExchangeRequest(orderId: string, input?: Omit<CustomerReturnRequestInput, "kind">): Promise<CustomerReturnRequestCreated>;
1788
+ /**
1789
+ * Report that a parcel never arrived.
1790
+ *
1791
+ * This does NOT change the shipment's carrier status, and deliberately so:
1792
+ * when the carrier says delivered and the customer says otherwise, both
1793
+ * facts matter — the carrier's scan is what the org files a claim against.
1794
+ * The result carries `carrierStatus` alongside the report so a UI can show
1795
+ * both: *"Carrier says delivered Aug 14 · You reported not received Aug 16."*
1796
+ *
1797
+ * `contested: true` means exactly that disagreement. Re-reporting an open
1798
+ * claim returns it with `alreadyOpen: true` rather than erroring — a
1799
+ * customer tapping twice is anxious, not hostile.
1800
+ *
1801
+ * @example
1802
+ * ```ts
1803
+ * const r = await portal.reportNotReceived(shipmentId, {
1804
+ * note: "Nothing on the porch, checked with neighbours.",
1805
+ * });
1806
+ * if (r.contested) showCarrierDisputeHelp();
1807
+ * ```
1808
+ */
1809
+ reportNotReceived(shipmentId: string, input?: {
1810
+ note?: string;
1811
+ }): Promise<CustomerNotReceivedResult>;
1812
+ /**
1813
+ * The product reviews this customer has written for this org.
1814
+ *
1815
+ * Distinct from `listReviews()`, which is reviews of the ORG. Both exist
1816
+ * because "are these people good to deal with" and "is this thing any good"
1817
+ * are different questions, stored in different tables, and shown in
1818
+ * different places.
1819
+ *
1820
+ * `isApproved: false` means QUEUED, not rejected — render it as "awaiting
1821
+ * review" or the customer will assume it was lost and write it again.
1822
+ */
1823
+ /**
1824
+ * The customer's subscription with this org, and what the org offers.
1825
+ *
1826
+ * One subscription per org — `user_subscriptions` is unique on
1827
+ * (user, org) — so there is no id to pass. The org's live offerings come
1828
+ * back alongside, because a portal that reports "not subscribed" and
1829
+ * nothing else is a dead end.
1830
+ *
1831
+ * **Render entitlement from `subscription.hasAccess`, not from `status`.**
1832
+ * A lifetime purchase has no period to expire and a cancelled subscription
1833
+ * keeps access until the period already paid for ends; `hasAccess` is
1834
+ * computed by the same function the content gates use, so the portal and
1835
+ * the gate cannot disagree.
1836
+ */
1837
+ getSubscription(): Promise<CustomerSubscriptionResponse>;
1838
+ /**
1839
+ * Cancel the subscription at the end of the paid period.
1840
+ *
1841
+ * Cancelling ends the RENEWAL, not the access: the customer has paid for
1842
+ * the period they are in and keeps everything until `accessUntil`. Ending
1843
+ * access on the click would take back something they already bought, which
1844
+ * is the most common way a subscription flow feels like a trap.
1845
+ *
1846
+ * Read `accessUntil` back to them — "active until 14 March" is the true
1847
+ * statement, not "cancelled".
1848
+ */
1849
+ cancelSubscription(): Promise<CustomerSubscriptionCancelResponse>;
1850
+ /**
1851
+ * Clear a pending cancellation.
1852
+ *
1853
+ * Between cancelling and the period ending nothing has actually been lost,
1854
+ * so changing your mind should cost one call rather than a re-purchase.
1855
+ * After the period ends there is nothing to resume and they subscribe again
1856
+ * like anyone else.
1857
+ */
1858
+ resumeSubscription(): Promise<CustomerSubscriptionCancelResponse>;
1859
+ /**
1860
+ * The content this subscription entitles them to — the answer to "what am
1861
+ * I actually getting for this?", which is the question asked right before
1862
+ * someone cancels.
1863
+ *
1864
+ * When `entitled` is false these are LOCKED previews, not an empty
1865
+ * entitlement: titles, excerpts and images, no bodies. Show them beside the
1866
+ * offer. Rendering an empty list would hide the pitch at exactly the moment
1867
+ * it is most relevant.
1868
+ */
1869
+ getSubscriberContent(opts?: {
1870
+ limit?: number;
1871
+ }): Promise<CustomerSubscriberContentResponse>;
1872
+ /**
1873
+ * Push config and the browsers this customer has registered.
1874
+ *
1875
+ * Returns `vapidPublicKey` too, because a page cannot subscribe without it.
1876
+ */
1877
+ getPushConfig(): Promise<CustomerPushConfig>;
1878
+ /**
1879
+ * Register this browser.
1880
+ *
1881
+ * Pair with `subscribeToPush()` from `@businessdash/sdk/push-core`, which
1882
+ * handles the service worker, the permission prompt and the key encoding
1883
+ * and hands back exactly this payload.
1884
+ *
1885
+ * Upserted on the endpoint, so re-subscribing from the same browser
1886
+ * refreshes the row rather than creating a second one.
1887
+ */
1888
+ subscribePush(input: {
1889
+ endpoint: string;
1890
+ p256dh: string;
1891
+ auth: string;
1892
+ userAgent?: string | null;
1893
+ label?: string | null;
1894
+ categories?: string[] | null;
1895
+ }): Promise<{
1896
+ id: string;
1897
+ created: boolean;
1898
+ }>;
1899
+ /**
1900
+ * Rename a device, or narrow what it receives.
1901
+ *
1902
+ * `categories: []` means "nothing for now" and keeps the subscription
1903
+ * warm — browsers make re-granting a revoked permission deliberately
1904
+ * awkward, so an "off" that discards the subscription is hard to undo.
1905
+ */
1906
+ updatePushDevice(input: {
1907
+ id: string;
1908
+ label?: string | null;
1909
+ categories?: string[] | null;
1910
+ }): Promise<{
1911
+ ok: boolean;
1912
+ }>;
1913
+ /**
1914
+ * Forget a device. Takes an id or the endpoint.
1915
+ *
1916
+ * A browser tearing its own subscription down knows its endpoint, not our
1917
+ * row id — so pass what `unsubscribeFromPush()` returns.
1918
+ */
1919
+ unsubscribePush(input: {
1920
+ id?: string;
1921
+ endpoint?: string;
1922
+ }): Promise<{
1923
+ ok: boolean;
1924
+ deletedId: string | null;
1925
+ }>;
1926
+ listProductReviews(): Promise<CustomerProductReviewList>;
1927
+ /**
1928
+ * Review a product this customer BOUGHT.
1929
+ *
1930
+ * The portal requires a matching order — it is standing inside the
1931
+ * customer's purchase history, which is the one thing the public storefront
1932
+ * does not know. That makes these verified-buyer reviews, and it stops a
1933
+ * competitor one-starring a catalogue they never bought.
1934
+ *
1935
+ * Rejects with `not_purchased` (403) when no order matches, and
1936
+ * `already_reviewed` (409) on a second review of the same product.
1937
+ * Moderation follows the ORG's policy, so the result may be
1938
+ * `awaitingModeration`.
1939
+ */
1940
+ submitProductReview(input: {
1941
+ productId: string;
1942
+ rating: number;
1943
+ content: string;
1944
+ }): Promise<CustomerProductReviewCreated>;
1555
1945
  /**
1556
1946
  * List the digital downloads the customer is entitled to for a paid order
1557
1947
  * (P10d). Each item is a ready-to-use URL — a short-lived presigned link for
@@ -1602,7 +1992,31 @@ export declare class BiabDevCustomerPortalClient {
1602
1992
  * dispatch travel-time recompute layer ships, at which point the
1603
1993
  * `eta` field switches sources without breaking this shape.
1604
1994
  */
1995
+ /**
1996
+ * Where the job and its technicians are in the dispatch lifecycle.
1997
+ *
1998
+ * Named for ETA historically; it is the DISPATCH STATUS surface, which is
1999
+ * why `getDispatchStatus` below is the same call under the name people
2000
+ * look for.
2001
+ *
2002
+ * Read `dispatchStatus` (job-level) for "is anyone on the way" and
2003
+ * `assignments[].dispatchStatus` for per-technician detail. They differ on
2004
+ * purpose: the job is `completed` only once the LAST assignee finishes.
2005
+ *
2006
+ * Nothing about the dispatch CASCADE is exposed — who was offered the job,
2007
+ * who declined, how many people were asked before someone accepted. That
2008
+ * is staff-internal, and a customer learning they were the fourth choice
2009
+ * helps nobody.
2010
+ */
1605
2011
  getJobEta(jobId: string): Promise<CustomerJobEtaResponse>;
2012
+ /**
2013
+ * Dispatch status for a job — the same call as `getJobEta`, under the name
2014
+ * developers actually search for.
2015
+ *
2016
+ * An alias rather than a second route: two endpoints returning the same
2017
+ * thing is how they drift.
2018
+ */
2019
+ getDispatchStatus(jobId: string): Promise<CustomerJobEtaResponse>;
1606
2020
  /**
1607
2021
  * Unified job activity feed: structured events (status changes,
1608
2022
  * dispatch lifecycle, media uploads, quote/contract/invoice
@@ -1677,5 +2091,157 @@ export declare class BiabDevAuthClient {
1677
2091
  */
1678
2092
  requestPasswordReset(input: TenantAuthPasswordResetInput): Promise<TenantAuthPasswordResetResponse>;
1679
2093
  }
2094
+ /**
2095
+ * Booking, rescheduling, cancelling — and the conference call attached to it.
2096
+ *
2097
+ * ## Both sides of every flow
2098
+ *
2099
+ * An invitee acts with a signed TOKEN from their confirmation email; staff act
2100
+ * with the API key. Both reach the same service, so the same notifications fire
2101
+ * to the invitee AND every host either way, and the booking records which of
2102
+ * them made the change.
2103
+ *
2104
+ * ## Three tokens, not one
2105
+ *
2106
+ * A confirmed booking yields `manageToken`, `rescheduleToken` and `cancelToken`
2107
+ * separately. A cancel link in an email must not also be able to reschedule,
2108
+ * and neither should be able to read the whole booking. One token for all three
2109
+ * would make every emailed link as powerful as the strongest thing it enables.
2110
+ *
2111
+ * ## The conference link is re-minted on reschedule
2112
+ *
2113
+ * Moving a booking can issue a new meeting URL. Read `conferenceLink` back from
2114
+ * the reschedule result rather than reusing the one from confirmation —
2115
+ * otherwise the calendar invite you send points at a dead room.
2116
+ */
2117
+ /**
2118
+ * Customer-portal invitations.
2119
+ *
2120
+ * For an org running its own admin tooling rather than the dashboard.
2121
+ */
2122
+ export declare class BiabDevCustomerInvitesClient {
2123
+ private readonly client;
2124
+ constructor(client: BiabDevClient);
2125
+ /**
2126
+ * Hand an invite link out again.
2127
+ *
2128
+ * **Rotates the token** — the previous link stops working. That is the
2129
+ * point rather than a side effect: if the reason for resending was "it went
2130
+ * to the wrong address", rotating IS the fix, and reusing the token would
2131
+ * leave the wrong recipient holding a working invitation. The cost is that
2132
+ * someone who finds the original email later gets a dead link, which is a
2133
+ * support message rather than an account.
2134
+ *
2135
+ * Rate limited to one send a minute per invitation, answering **429** with
2136
+ * a retry hint. Resend mails an address the caller chose, so an unbounded
2137
+ * one is a mail-bombing tool. Staff clicking the button in the dashboard
2138
+ * skip the wait; an API key does not, because an API key is the automated
2139
+ * caller the limit exists for.
2140
+ *
2141
+ * Refuses a **revoked** invitation (resending would quietly un-revoke it)
2142
+ * and a **fully-redeemed** one (it did its job; a new invitation should be
2143
+ * created as one, so the list keeps showing what happened).
2144
+ */
2145
+ resend(inviteId: string, opts?: {
2146
+ expiresInDays?: number | null;
2147
+ }): Promise<CustomerInviteResendResponse>;
2148
+ }
2149
+ export declare class BiabDevSchedulingClient {
2150
+ private readonly client;
2151
+ private readonly siteId;
2152
+ constructor(client: BiabDevClient, siteId: string);
2153
+ private path;
2154
+ /** What the org offers to book. */
2155
+ listEventTypes(): Promise<SchedulingEventTypeList>;
2156
+ /** One event type, plus the questions asked when booking it. */
2157
+ getEventType(slug: string): Promise<SchedulingEventTypeDetail>;
2158
+ /**
2159
+ * Free slots in a window.
2160
+ *
2161
+ * Ask for the window you are about to render, not the whole month: slot
2162
+ * computation walks every host's calendar and busy times, so a wide range
2163
+ * is a slow one.
2164
+ */
2165
+ getAvailableSlots(slug: string, params: {
2166
+ from: Date | string;
2167
+ to: Date | string;
2168
+ }): Promise<SchedulingSlotsResponse>;
2169
+ /**
2170
+ * Book a slot.
2171
+ *
2172
+ * Returns `pending` rather than `confirmed` when the event type requires
2173
+ * approval — say "requested" in the UI for that case, because telling
2174
+ * someone their meeting is booked when staff still have to accept it is the
2175
+ * kind of thing they plan a day around.
2176
+ */
2177
+ confirmBooking(input: {
2178
+ eventTypeSlug: string;
2179
+ startAt: Date | string;
2180
+ invitee: {
2181
+ email: string;
2182
+ name: string;
2183
+ phone?: string | null;
2184
+ timezone: string;
2185
+ };
2186
+ answers?: Array<{
2187
+ questionId: string;
2188
+ value: string;
2189
+ }>;
2190
+ notes?: string | null;
2191
+ schedulingLinkId?: string;
2192
+ holderKey?: string | null;
2193
+ }): Promise<SchedulingBookingResult>;
2194
+ /**
2195
+ * Read a booking with one of its signed tokens.
2196
+ *
2197
+ * `type` must match the token you hold — a cancel token will not open the
2198
+ * manage view. That is the point of issuing three.
2199
+ */
2200
+ getBooking(token: string, type?: "manage" | "cancel" | "reschedule"): Promise<SchedulingBookingView>;
2201
+ /**
2202
+ * Move a booking — the INVITEE side, with their reschedule token.
2203
+ *
2204
+ * Notifies the invitee and every host, and cancels the reminder jobs queued
2205
+ * against the old time so nobody gets "your meeting starts in 15 minutes"
2206
+ * for a slot that moved.
2207
+ */
2208
+ rescheduleBooking(input: {
2209
+ token: string;
2210
+ newStartAt: Date | string;
2211
+ reason?: string | null;
2212
+ }): Promise<SchedulingRescheduleResult>;
2213
+ /**
2214
+ * Move a booking as STAFF, with the API key rather than an invitee token.
2215
+ *
2216
+ * Same service as the token path, so the invitee AND every host are
2217
+ * notified either way, and the reminder jobs for the old time are
2218
+ * cancelled either way. `actorUserId` records WHO moved it, which is what
2219
+ * lets a customer's history say "they rescheduled" rather than leaving an
2220
+ * unexplained change.
2221
+ */
2222
+ rescheduleBookingAsStaff(input: {
2223
+ bookingId: string;
2224
+ newStartAt: Date | string;
2225
+ reason?: string | null;
2226
+ actorUserId?: string | null;
2227
+ }): Promise<SchedulingRescheduleResult>;
2228
+ /** Cancel a booking as STAFF. Notifies the invitee and every host. */
2229
+ cancelBookingAsStaff(input: {
2230
+ bookingId: string;
2231
+ reason?: string | null;
2232
+ actorUserId?: string | null;
2233
+ }): Promise<SchedulingCancelResult>;
2234
+ /**
2235
+ * Cancel a booking — the INVITEE side, with their cancel token.
2236
+ *
2237
+ * `reason` is passed to the hosts. Worth collecting: "something came up" and
2238
+ * "I booked the wrong service" lead to different follow-ups, and the second
2239
+ * is recoverable revenue.
2240
+ */
2241
+ cancelBooking(input: {
2242
+ token: string;
2243
+ reason?: string | null;
2244
+ }): Promise<SchedulingCancelResult>;
2245
+ }
1680
2246
  export {};
1681
2247
  //# sourceMappingURL=client.d.ts.map