@cavuno/board 1.34.0 → 1.35.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.
Files changed (42) hide show
  1. package/README.md +7 -8
  2. package/dist/bin.mjs +25 -10
  3. package/dist/{board-Id19Yg8-.d.ts → board-Z7hjKDp8.d.ts} +1 -1
  4. package/dist/{board-DgDC0T4g.d.mts → board-t_WltBBa.d.mts} +1 -1
  5. package/dist/filters.d.mts +2 -2
  6. package/dist/filters.d.ts +2 -2
  7. package/dist/filters.js +3 -6
  8. package/dist/filters.mjs +3 -6
  9. package/dist/format.d.mts +4 -4
  10. package/dist/format.d.ts +4 -4
  11. package/dist/format.js +3 -6
  12. package/dist/format.mjs +3 -6
  13. package/dist/index.d.mts +52 -43
  14. package/dist/index.d.ts +52 -43
  15. package/dist/index.js +27 -19
  16. package/dist/index.mjs +27 -19
  17. package/dist/{jobs-IIJtDgzX.d.mts → jobs-Dq2a9oPj.d.mts} +742 -61
  18. package/dist/{jobs-IIJtDgzX.d.ts → jobs-Dq2a9oPj.d.ts} +742 -61
  19. package/dist/{salaries-CL_00fNX.d.ts → salaries-CTin-18R.d.ts} +4 -4
  20. package/dist/{salaries-BfEEEOHj.d.mts → salaries-CWg82dOz.d.mts} +4 -4
  21. package/dist/seo.d.mts +4 -4
  22. package/dist/seo.d.ts +4 -4
  23. package/dist/seo.js +3 -6
  24. package/dist/seo.mjs +3 -6
  25. package/dist/server.d.mts +3 -3
  26. package/dist/server.d.ts +3 -3
  27. package/dist/sitemap.d.mts +3 -3
  28. package/dist/sitemap.d.ts +3 -3
  29. package/dist/{ui-copy-rlfoH9P3.d.mts → ui-copy-CKfFTtLk.d.mts} +0 -1
  30. package/dist/{ui-copy-rlfoH9P3.d.ts → ui-copy-CKfFTtLk.d.ts} +0 -1
  31. package/package.json +1 -1
  32. package/skills/cavuno-board-auth/SKILL.md +0 -1
  33. package/skills/cavuno-board-client/SKILL.md +1 -4
  34. package/skills/cavuno-board-filters/SKILL.md +43 -3
  35. package/skills/cavuno-board-job-alerts/SKILL.md +7 -7
  36. package/skills/cavuno-board-job-posting/SKILL.md +8 -22
  37. package/skills/cavuno-board-jobs/SKILL.md +2 -2
  38. package/skills/cavuno-board-setup/SKILL.md +6 -8
  39. package/skills/cavuno-board-smoke-test/SKILL.md +8 -7
  40. package/skills/cavuno-board-theme/SKILL.md +33 -45
  41. package/skills/flavors/tanstack-start/SKILL.md +0 -1
  42. package/skills/manifest.json +5 -5
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { b as Schemas, R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, c as components, d as JobsListQuery, e as JobCardListEnvelope, f as JobsSearchBody, g as JobCardSearchEnvelope, h as JobsSimilarQuery, i as SearchEnvelope } from './jobs-IIJtDgzX.js';
2
- export { j as CustomFieldValue, C as CustomFieldValues, k as EducationRequirement, l as JobCompany, J as JobSort, O as OfficeLocation, P as PublicJob, a as PublicJobCard, m as RelatedSearch, n as RemotePermit, o as RemoteTimezone, p as StorefrontPagination } from './jobs-IIJtDgzX.js';
3
- export { C as CustomFieldDefinition, a as CustomFieldOption, b as CustomFieldType, P as PublicBoard, c as PublicBoardAnalytics, d as PublicBoardFeatures, e as PublicBoardTheme } from './board-Id19Yg8-.js';
4
- import { b as CompaniesListQuery, c as CompanyListEnvelope, d as CompaniesSearchBody, e as CompanyJobsListQuery, f as CompanySimilarQuery, g as CompanyMarketsListQuery, h as SalaryDetailQuery, i as BlogPostsListQuery, j as BlogSimilarQuery, k as BlogSearchBody } from './salaries-CL_00fNX.js';
5
- export { B as BlogAuthorEmbed, l as BlogTagEmbed, C as CompanyCategorySalary, m as CompanyMarket, n as CompanyMarketRef, a as CompanySalary, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, q as PublicBlogAdjacentPosts, r as PublicBlogAuthor, s as PublicBlogPost, P as PublicBlogPostSummary, t as PublicBlogTag, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, D as SkillLocationsIndex, S as SkillSalaryDetail, E as TitleLocationSalary, F as TitleLocationsIndex, T as TitleSalaryDetail } from './salaries-CL_00fNX.js';
1
+ import { b as Schemas, R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, c as components, d as JobsListQuery, e as JobCardListEnvelope, f as JobsSearchBody, g as JobCardSearchEnvelope, h as JobsSimilarQuery, i as SearchEnvelope } from './jobs-Dq2a9oPj.js';
2
+ export { j as CustomFieldValue, C as CustomFieldValues, k as EducationRequirement, l as JobCatalogPagination, m as JobCompany, J as JobSort, O as OfficeLocation, n as OffsetPagination, P as PublicJob, a as PublicJobCard, o as RelatedSearch, p as RemotePermit, q as RemoteTimezone, r as StorefrontPagination } from './jobs-Dq2a9oPj.js';
3
+ export { C as CustomFieldDefinition, a as CustomFieldOption, b as CustomFieldType, P as PublicBoard, c as PublicBoardAnalytics, d as PublicBoardFeatures, e as PublicBoardTheme } from './board-Z7hjKDp8.js';
4
+ import { b as CompaniesListQuery, c as CompanyListEnvelope, d as CompaniesSearchBody, e as CompanyJobsListQuery, f as CompanySimilarQuery, g as CompanyMarketsListQuery, h as SalaryDetailQuery, i as BlogPostsListQuery, j as BlogSimilarQuery, k as BlogSearchBody } from './salaries-CTin-18R.js';
5
+ export { B as BlogAuthorEmbed, l as BlogTagEmbed, C as CompanyCategorySalary, m as CompanyMarket, n as CompanyMarketRef, a as CompanySalary, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, q as PublicBlogAdjacentPosts, r as PublicBlogAuthor, s as PublicBlogPost, P as PublicBlogPostSummary, t as PublicBlogTag, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, D as SkillLocationsIndex, S as SkillSalaryDetail, E as TitleLocationSalary, F as TitleLocationsIndex, T as TitleSalaryDetail } from './salaries-CTin-18R.js';
6
6
 
7
7
  type Awaitable<T> = T | Promise<T>;
8
8
  /**
@@ -176,7 +176,7 @@ interface Paginator<P extends PageShape> extends AsyncIterable<ItemOf<P>> {
176
176
  * an explicit sort/query — see the jobs skill.
177
177
  *
178
178
  * `offset` is honored for the FIRST page only and dropped afterwards: on
179
- * storefront reads `offset` takes precedence over `cursor`, so carrying it
179
+ * job catalog reads let `offset` take precedence over `cursor`, so carrying it
180
180
  * forward would re-serve the same page forever.
181
181
  *
182
182
  * @example
@@ -204,7 +204,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
204
204
  * constant because the package is platform-neutral and cannot read
205
205
  * package.json at runtime.
206
206
  */
207
- declare const SDK_VERSION = "1.34.0";
207
+ declare const SDK_VERSION = "1.35.1";
208
208
 
209
209
  type SavedJob = Schemas['SavedJob'];
210
210
  type SavedJobsListQuery = {
@@ -456,7 +456,7 @@ type EmbedJobsQuery = {
456
456
  cursor?: string;
457
457
  /** Default 8; values above the embed ceiling of 50 are clamped to 50. */
458
458
  limit?: number;
459
- /** Storefront page offset; takes precedence over `cursor`. `offset + limit` ≤ 10,000. */
459
+ /** Job catalog page offset; takes precedence over `cursor`. `offset + limit` ≤ 10,000. */
460
460
  offset?: number;
461
461
  /** Repeated param (up to 10) — OR-matched. Repeat `companyId` per value. */
462
462
  companyId?: string[];
@@ -547,7 +547,7 @@ type AccessCheckoutBody = Schemas['AccessCheckoutBody'];
547
547
  type AccessPortalBody = Schemas['AccessPortalBody'];
548
548
  type PaywallOfferListEnvelope = ListEnvelope<PaywallOffer>;
549
549
 
550
- type JobAlertFrequency = 'daily' | 'weekly';
550
+ type JobAlertFrequency = 'weekly';
551
551
  type JobAlertRemoteOption = 'on_site' | 'hybrid' | 'remote';
552
552
  /**
553
553
  * Alert filters a consumer can capture. Only `jobFunctions` (→ job categories),
@@ -625,14 +625,19 @@ type JobPostingResult = Schemas['JobPostingResult'];
625
625
  * `publicUrl` you pass back as the top-level `logoUrl` on `create(...)`.
626
626
  */
627
627
  type JobPostingLogoResult = Schemas['JobPostingLogo'];
628
- type JobPostingBillingCheck = Schemas['JobPostingBillingCheck'];
629
628
  type JobPostingBillingVerification = Schemas['JobPostingBillingVerification'];
630
629
  type JobPostingBillingOptions = Schemas['JobPostingBillingOptions'];
631
- type JobPostingSubscriptionEntitlements = Schemas['JobPostingSubscriptionEntitlements'];
632
630
 
633
631
  type TaxonomyGeo = Schemas['TaxonomyGeo'];
634
632
  type TaxonomyResolution = Schemas['PublicTaxonomyResolution'];
633
+ type PublicTaxonomyTerm = Schemas['PublicTaxonomyTerm'];
635
634
  type PublicPlace = Schemas['PublicPlace'];
635
+ type TaxonomyListQuery = {
636
+ q?: string;
637
+ cursor?: string;
638
+ limit?: number;
639
+ };
640
+ type SuggestionsListQuery = Omit<TaxonomyListQuery, 'cursor'>;
636
641
  /**
637
642
  * Query for `taxonomy.places.list()`. Omit it (or `q`) for the full
638
643
  * locations directory; pass `q` (≥2 chars) for location autocomplete — the
@@ -646,7 +651,8 @@ type PlacesListQuery = {
646
651
  };
647
652
 
648
653
  interface CreateBoardClientOptions {
649
- baseUrl: string;
654
+ /** Cavuno API origin. Defaults to the production service. */
655
+ baseUrl?: string;
650
656
  /** Board identifier: `pk_…` key (provisioned default) | `boards_…` ID | slug. */
651
657
  board: string;
652
658
  auth?: {
@@ -669,7 +675,6 @@ interface CreateBoardClientOptions {
669
675
  * import { createBoardClient } from '@cavuno/board';
670
676
  *
671
677
  * const board = createBoardClient({
672
- * baseUrl: 'https://api.cavuno.com',
673
678
  * board: 'pk_a8f3…',
674
679
  * });
675
680
  * const { data } = await board.jobs.list({ limit: 20 });
@@ -1902,7 +1907,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
1902
1907
  id: string;
1903
1908
  object: "alert";
1904
1909
  label: string | null;
1905
- frequency: "daily" | "weekly";
1910
+ frequency: "weekly";
1906
1911
  isActive: boolean;
1907
1912
  filters: {
1908
1913
  jobFunctions: string[];
@@ -1919,7 +1924,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
1919
1924
  id: string;
1920
1925
  object: "alert";
1921
1926
  label: string | null;
1922
- frequency: "daily" | "weekly";
1927
+ frequency: "weekly";
1923
1928
  isActive: boolean;
1924
1929
  filters: {
1925
1930
  jobFunctions: string[];
@@ -1936,7 +1941,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
1936
1941
  id: string;
1937
1942
  object: "alert";
1938
1943
  label: string | null;
1939
- frequency: "daily" | "weekly";
1944
+ frequency: "weekly";
1940
1945
  isActive: boolean;
1941
1946
  filters: {
1942
1947
  jobFunctions: string[];
@@ -1953,7 +1958,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
1953
1958
  id: string;
1954
1959
  object: "alert";
1955
1960
  label: string | null;
1956
- frequency: "daily" | "weekly";
1961
+ frequency: "weekly";
1957
1962
  isActive: boolean;
1958
1963
  filters: {
1959
1964
  jobFunctions: string[];
@@ -2260,6 +2265,14 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2260
2265
  };
2261
2266
  taxonomy: {
2262
2267
  categories: {
2268
+ list(query?: TaxonomyListQuery, options?: FetchOptions): Promise<ListEnvelope<{
2269
+ object: "taxonomy_term";
2270
+ id: string;
2271
+ type: "category" | "skill";
2272
+ sourceSlug: string;
2273
+ canonicalSlug: string;
2274
+ displayName: string;
2275
+ }>>;
2263
2276
  resolve(slug: string, options?: FetchOptions): Promise<{
2264
2277
  object: "taxonomy_resolution";
2265
2278
  type: "category" | "skill" | "place" | "market";
@@ -2271,6 +2284,14 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2271
2284
  }>;
2272
2285
  };
2273
2286
  skills: {
2287
+ list(query?: TaxonomyListQuery, options?: FetchOptions): Promise<ListEnvelope<{
2288
+ object: "taxonomy_term";
2289
+ id: string;
2290
+ type: "category" | "skill";
2291
+ sourceSlug: string;
2292
+ canonicalSlug: string;
2293
+ displayName: string;
2294
+ }>>;
2274
2295
  resolve(slug: string, options?: FetchOptions): Promise<{
2275
2296
  object: "taxonomy_resolution";
2276
2297
  type: "category" | "skill" | "place" | "market";
@@ -2281,6 +2302,16 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2281
2302
  geo: components["schemas"]["TaxonomyGeo"];
2282
2303
  }>;
2283
2304
  };
2305
+ suggestions: {
2306
+ list(query?: SuggestionsListQuery, options?: FetchOptions): Promise<ListEnvelope<{
2307
+ object: "taxonomy_term";
2308
+ id: string;
2309
+ type: "category" | "skill";
2310
+ sourceSlug: string;
2311
+ canonicalSlug: string;
2312
+ displayName: string;
2313
+ }>>;
2314
+ };
2284
2315
  places: {
2285
2316
  list(query?: PlacesListQuery, options?: FetchOptions): Promise<ListEnvelope<{
2286
2317
  object: "place";
@@ -2314,9 +2345,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2314
2345
  jobAlerts: {
2315
2346
  subscribe(input: JobAlertSubscribeInput, options?: FetchOptions): Promise<{
2316
2347
  object: "job_alert_subscription";
2317
- status: "created" | "duplicate";
2318
- requiresConfirmation: boolean;
2319
- confirmed: boolean;
2348
+ status: "submitted";
2320
2349
  }>;
2321
2350
  confirm(input: {
2322
2351
  token: string;
@@ -2328,7 +2357,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2328
2357
  email: string;
2329
2358
  }, options?: FetchOptions): Promise<{
2330
2359
  object: "job_alert_confirmation_resend";
2331
- status: "sent" | "not_found" | "already_confirmed" | "throttled" | "send_failed";
2360
+ status: "submitted";
2332
2361
  }>;
2333
2362
  manage(query: JobAlertManageQuery, options?: FetchOptions): Promise<{
2334
2363
  object: "job_alert_manage_state";
@@ -2338,7 +2367,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2338
2367
  preferences: {
2339
2368
  id: string;
2340
2369
  label: string | null;
2341
- frequency: string;
2370
+ frequency: "weekly";
2342
2371
  isActive: boolean;
2343
2372
  filters: {
2344
2373
  jobFunctions?: string[];
@@ -2422,12 +2451,6 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2422
2451
  object: "job_posting_logo";
2423
2452
  publicUrl: string;
2424
2453
  }>;
2425
- checkBilling(input: {
2426
- email: string;
2427
- }, options?: FetchOptions): Promise<{
2428
- object: "job_posting_billing_check";
2429
- hasActiveBilling: boolean;
2430
- }>;
2431
2454
  sendBillingVerification(input: {
2432
2455
  email: string;
2433
2456
  }, options?: FetchOptions): Promise<{
@@ -2457,20 +2480,6 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2457
2480
  renewsAt: string | null;
2458
2481
  }[];
2459
2482
  }>;
2460
- checkSubscriptionEntitlements(input: {
2461
- email: string;
2462
- planId: string;
2463
- }, options?: FetchOptions): Promise<{
2464
- object: "job_posting_subscription_entitlements";
2465
- hasSubscription: boolean;
2466
- subscriptionId: string | null;
2467
- canFeature: boolean | null;
2468
- featuredSlotsRemaining: number | null;
2469
- featuredSlotsTotal: number | null;
2470
- maxActiveRemaining: number | null;
2471
- maxActiveTotal: number | null;
2472
- featureSelectionMode: string | null;
2473
- }>;
2474
2483
  };
2475
2484
  salaries: {
2476
2485
  companies: {
@@ -2956,4 +2965,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2956
2965
  };
2957
2966
  type BoardSdk = ReturnType<typeof createBoardClient>;
2958
2967
 
2959
- export { ACCESS_TOKEN_KEY, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyBody, type Awaitable, BOARD_ACCESS_GRANT_KEY, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMembership, CompanySimilarQuery, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type CreateBoardClientOptions, type CreateCompanyBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type CustomStorage, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, EmploymentType, type FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingCheck, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, type JobPostingSubscriptionEntitlements, JobsListQuery, JobsSearchBody, JobsSimilarQuery, type LegalEntity, type LegalPageType, ListEnvelope, type Logger, type LoginBody, type LogoutBody, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicLegalPage, type PublicPlace, REFRESH_TOKEN_KEY, type ReadReceipt, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, type SendWorkEmailBody, Seniority, type StartAboutApplicationBody, type StartConversationBody, type StorageMode, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, type TaxonomyGeo, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction };
2968
+ export { ACCESS_TOKEN_KEY, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyBody, type Awaitable, BOARD_ACCESS_GRANT_KEY, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMembership, CompanySimilarQuery, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type CreateBoardClientOptions, type CreateCompanyBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type CustomStorage, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, EmploymentType, type FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, JobsListQuery, JobsSearchBody, JobsSimilarQuery, type LegalEntity, type LegalPageType, ListEnvelope, type Logger, type LoginBody, type LogoutBody, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicLegalPage, type PublicPlace, type PublicTaxonomyTerm, REFRESH_TOKEN_KEY, type ReadReceipt, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, type SendWorkEmailBody, Seniority, type StartAboutApplicationBody, type StartConversationBody, type StorageMode, type SuggestionsListQuery, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction };
package/dist/index.js CHANGED
@@ -312,7 +312,7 @@ async function clearSession(storage) {
312
312
  }
313
313
 
314
314
  // src/version.ts
315
- var SDK_VERSION = "1.34.0";
315
+ var SDK_VERSION = "1.35.1";
316
316
 
317
317
  // src/client.ts
318
318
  function isRawBody(body) {
@@ -403,6 +403,9 @@ var BoardClient = class {
403
403
  }
404
404
  };
405
405
 
406
+ // src/constants.ts
407
+ var DEFAULT_CAVUNO_API_URL = "https://api.cavuno.com";
408
+
406
409
  // src/namespaces/auth.ts
407
410
  function authNamespace(client) {
408
411
  async function persist(session) {
@@ -970,13 +973,6 @@ function jobPostingNamespace(client) {
970
973
  query: { domain }
971
974
  });
972
975
  },
973
- /** Does this email already have billing credit on the board? */
974
- checkBilling(input, options) {
975
- return client.fetch(
976
- "/job-postings/check-billing",
977
- { ...options, method: "POST", body: input }
978
- );
979
- },
980
976
  /** Email a billing-verification token (then pass it to `getBillingOptions`). */
981
977
  sendBillingVerification(input, options) {
982
978
  return client.fetch(
@@ -990,13 +986,6 @@ function jobPostingNamespace(client) {
990
986
  "/job-postings/billing-options",
991
987
  { ...options, method: "POST", body: input }
992
988
  );
993
- },
994
- /** The featured/active entitlements a verified email's subscription grants. */
995
- checkSubscriptionEntitlements(input, options) {
996
- return client.fetch(
997
- "/job-postings/subscription-entitlements",
998
- { ...options, method: "POST", body: input }
999
- );
1000
989
  }
1001
990
  };
1002
991
  }
@@ -1798,7 +1787,7 @@ function meNamespace(client) {
1798
1787
  *
1799
1788
  * @example
1800
1789
  * await board.me.alerts.update(alertId, {
1801
- * frequency: 'daily',
1790
+ * frequency: 'weekly',
1802
1791
  * placeIds: ['ChIJ…'],
1803
1792
  * });
1804
1793
  */
@@ -2542,10 +2531,29 @@ function taxonomyResolver(client, kind) {
2542
2531
  }
2543
2532
  };
2544
2533
  }
2534
+ function taxonomyCollection(client, kind) {
2535
+ return {
2536
+ ...taxonomyResolver(client, kind),
2537
+ list(query, options) {
2538
+ return client.fetch(`/${kind}`, {
2539
+ ...options,
2540
+ query
2541
+ });
2542
+ }
2543
+ };
2544
+ }
2545
2545
  function taxonomyNamespace(client) {
2546
2546
  return {
2547
- categories: taxonomyResolver(client, "categories"),
2548
- skills: taxonomyResolver(client, "skills"),
2547
+ categories: taxonomyCollection(client, "categories"),
2548
+ skills: taxonomyCollection(client, "skills"),
2549
+ suggestions: {
2550
+ list(query, options) {
2551
+ return client.fetch("/suggestions", {
2552
+ ...options,
2553
+ query
2554
+ });
2555
+ }
2556
+ },
2549
2557
  places: {
2550
2558
  ...taxonomyResolver(client, "places"),
2551
2559
  /**
@@ -2633,7 +2641,7 @@ function resolveApplyAction(state) {
2633
2641
  // src/index.ts
2634
2642
  function createBoardClient(options) {
2635
2643
  const client = new BoardClient({
2636
- baseUrl: options.baseUrl,
2644
+ baseUrl: options.baseUrl ?? DEFAULT_CAVUNO_API_URL,
2637
2645
  board: options.board,
2638
2646
  storage: resolveStorage(options.auth?.storage, options.board),
2639
2647
  globalHeaders: options.globalHeaders,
package/dist/index.mjs CHANGED
@@ -265,7 +265,7 @@ async function clearSession(storage) {
265
265
  }
266
266
 
267
267
  // src/version.ts
268
- var SDK_VERSION = "1.34.0";
268
+ var SDK_VERSION = "1.35.1";
269
269
 
270
270
  // src/client.ts
271
271
  function isRawBody(body) {
@@ -356,6 +356,9 @@ var BoardClient = class {
356
356
  }
357
357
  };
358
358
 
359
+ // src/constants.ts
360
+ var DEFAULT_CAVUNO_API_URL = "https://api.cavuno.com";
361
+
359
362
  // src/namespaces/auth.ts
360
363
  function authNamespace(client) {
361
364
  async function persist(session) {
@@ -923,13 +926,6 @@ function jobPostingNamespace(client) {
923
926
  query: { domain }
924
927
  });
925
928
  },
926
- /** Does this email already have billing credit on the board? */
927
- checkBilling(input, options) {
928
- return client.fetch(
929
- "/job-postings/check-billing",
930
- { ...options, method: "POST", body: input }
931
- );
932
- },
933
929
  /** Email a billing-verification token (then pass it to `getBillingOptions`). */
934
930
  sendBillingVerification(input, options) {
935
931
  return client.fetch(
@@ -943,13 +939,6 @@ function jobPostingNamespace(client) {
943
939
  "/job-postings/billing-options",
944
940
  { ...options, method: "POST", body: input }
945
941
  );
946
- },
947
- /** The featured/active entitlements a verified email's subscription grants. */
948
- checkSubscriptionEntitlements(input, options) {
949
- return client.fetch(
950
- "/job-postings/subscription-entitlements",
951
- { ...options, method: "POST", body: input }
952
- );
953
942
  }
954
943
  };
955
944
  }
@@ -1751,7 +1740,7 @@ function meNamespace(client) {
1751
1740
  *
1752
1741
  * @example
1753
1742
  * await board.me.alerts.update(alertId, {
1754
- * frequency: 'daily',
1743
+ * frequency: 'weekly',
1755
1744
  * placeIds: ['ChIJ…'],
1756
1745
  * });
1757
1746
  */
@@ -2495,10 +2484,29 @@ function taxonomyResolver(client, kind) {
2495
2484
  }
2496
2485
  };
2497
2486
  }
2487
+ function taxonomyCollection(client, kind) {
2488
+ return {
2489
+ ...taxonomyResolver(client, kind),
2490
+ list(query, options) {
2491
+ return client.fetch(`/${kind}`, {
2492
+ ...options,
2493
+ query
2494
+ });
2495
+ }
2496
+ };
2497
+ }
2498
2498
  function taxonomyNamespace(client) {
2499
2499
  return {
2500
- categories: taxonomyResolver(client, "categories"),
2501
- skills: taxonomyResolver(client, "skills"),
2500
+ categories: taxonomyCollection(client, "categories"),
2501
+ skills: taxonomyCollection(client, "skills"),
2502
+ suggestions: {
2503
+ list(query, options) {
2504
+ return client.fetch("/suggestions", {
2505
+ ...options,
2506
+ query
2507
+ });
2508
+ }
2509
+ },
2502
2510
  places: {
2503
2511
  ...taxonomyResolver(client, "places"),
2504
2512
  /**
@@ -2586,7 +2594,7 @@ function resolveApplyAction(state) {
2586
2594
  // src/index.ts
2587
2595
  function createBoardClient(options) {
2588
2596
  const client = new BoardClient({
2589
- baseUrl: options.baseUrl,
2597
+ baseUrl: options.baseUrl ?? DEFAULT_CAVUNO_API_URL,
2590
2598
  board: options.board,
2591
2599
  storage: resolveStorage(options.auth?.storage, options.board),
2592
2600
  globalHeaders: options.globalHeaders,