@vibiz/sdk 0.3.16 → 0.3.18

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @vibiz/sdk
2
2
 
3
- The typed client for the [thelastapi](https://app.vibiz.app/docs) API: projects, hosting and
3
+ The typed client for the [thelastapi](https://thelastapi.dev/docs) API: projects, hosting and
4
4
  deploys, databases, sign-in, email, AI, usage, payments and more, with the same calls the `vibiz`
5
5
  CLI makes.
6
6
 
@@ -11,7 +11,7 @@ npm install @vibiz/sdk
11
11
  ```ts
12
12
  import { Vibiz } from '@vibiz/sdk';
13
13
 
14
- const vibiz = new Vibiz({ apiKey: process.env.VIBIZ_API_KEY!, baseUrl: 'https://app.vibiz.app' });
14
+ const vibiz = new Vibiz({ apiKey: process.env.VIBIZ_API_KEY!, baseUrl: 'https://thelastapi.dev' });
15
15
 
16
16
  const { project } = await vibiz.projects.create({ name: 'Acme Bakery' });
17
17
  const projects = await vibiz.projects.list();
@@ -22,4 +22,4 @@ ESM with TypeScript types, Node 20+. The account key (`vz_sk_…`) is a secret:
22
22
  in scripts and in CI, never in a browser. For code that runs inside your app, use
23
23
  [`@vibiz/app`](https://www.npmjs.com/package/@vibiz/app).
24
24
 
25
- Docs: https://app.vibiz.app/docs
25
+ Docs: https://thelastapi.dev/docs
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ActionInfo, ActionResult, ActionRun, ActionRunList, ActionRunsQuery, ActionUsage, AdminMetrics, AiJob, AiKeyProvider, AiModelInfo, AiProviderKey, AiProviderKeyInput, AiProviderKeyList, AiSettings, AnalyticsPeriod, AnalyticsReport, ApiKey, AppKeyInfo, AppStoreAccount, AppStoreConnectLink, AppStoreSetup, AppStoreSetupInput, AppStoreState, AuthEnvironment, AuthProviderId, AuthProviderInput, AuthSettings, AuthSettingsPatch, Automation, AutomationEnrollment, AutomationInput, AutomationTrigger, Billing, BillingCharge, BillingCheckout, BillingEntry, BillingEntryKind, BillingList, BillingUpdate, Broadcast, BroadcastInput, BroadcastRecipient, BroadcastReview, BroadcastStatus, ChatChunk, ChatCompletion, ChatRequest, Checkout, CheckoutBrandPatch, CheckoutInput, Company, CompanyAddressFields, CompanyCatalog, CompanyDraft, CompanyEnvironment, CompanyLink, Connector, ConnectorApproval, ConnectorCall, ConnectorCallInput, ConnectorCheck, ConnectorEnvironment, ConnectorImport, ConnectorInput, ConnectorPatch, ConnectorResponse, ContactPropertyValue, ContactStatus, DashboardLink, DeployFile, Deployment, DeploymentFiles, DesignSectionRead, DesignSpec, DevEnvironment, DnsRecord, DnsRecordInput, DnsRecordList, Domain, DomainBuyInput, DomainList, DomainOwnerContact, DomainOwnerDetails, DomainQuote, DomainSearch, DomainUse, DomainUseInput, EmailContact, EmailContactInput, EmailContactList, EmailContactPatch, EmailForwarding, EmailForwardingLog, EmailForwardingRule, EmailImportInput, EmailImportReport, EmailList, EmailMarketing, EmailMarketingPatch, EmailPage, EmailPreview, EmailSegment, EmailTestResult, EnvTargetInfo, EnvVarInfo, ExportInput, FileEnvironment, FileList, FileListOptions, FileUploadOptions, HealthList, HealthRun, HealthStatus, HostKind, ImageRequest, ImageResult, InboxSettings, KeyAccess, KeyPermission, KeyPresetChoice, LedgerEntry, Mailbox, MailboxInput, MailDomain, MailFolder, MailReplyInput, MailSendInput, MailThreadDetail, MailThreadList, MailView, MediaModelInfo, MetricsReport, MissionControl, MissionControlLayout, Operation, OwnAccountLink, OwnedDomain, OwnedDomainList, OwnerStripe, OwnerStripeApply, OwnerStripeDisconnect, OwnerStripeLink, Payment, PaymentPrice, PaymentPriceInput, PaymentProduct, PaymentSubscription, PaymentsAccount, PaymentsEnvironment, PaymentsList, PaymentsSimulation, PhoneAnsweringInput, PhoneCall, PhoneCallInput, PhoneCallList, PhoneMessage, PhoneMessageList, PhoneNumber, PhoneNumberList, PhoneQuote, PhoneRegistrationInput, PhoneRegistrationRequirements, PhoneSearch, PhoneSendInput, PhoneThreadList, Project, ProjectExport, ProjectHealth, ProjectSearch, ReplayDetail, ReplayFrames, ReplayFramesOptions, ReplayInsights, ReplayListOptions, ReplayPeriod, ReplayStatus, ReplaySummary, Resource, ResourceType, SearchConnectionList, SearchPageList, SecretLink, SegmentFilter, SendEmailInput, SendEmailOutput, SocialAccount, SocialAccountAnalytics, SocialAdCampaign, SocialAdChange, SocialAdChangeInput, SocialCampaignCreateInput, SocialConnectLink, SocialEnvironment, SocialMedia, SocialOverview, SocialPost, SocialPostAnalytics, SocialPostInput, SpeechRequest, Transcription, UsageOptions, UsagePeriod, UsageReport, VersionDiff, VersionList, VersionRestore, VibizFile, WebDesignInput, WebhookDelivery, WebhookEventType, Withdrawal } from './types.js';
1
+ import type { ActionInfo, ActionResult, ActionRun, ActionRunList, ActionRunsQuery, ActionUsage, AdminMetrics, AiJob, AiKeyProvider, AiModelInfo, AiProviderKey, AiProviderKeyInput, AiProviderKeyList, AiSettings, AnalyticsPeriod, AnalyticsReport, ApiKey, AppKeyInfo, AppStoreAccount, AppStoreConnectLink, AppStoreSetup, AppStoreSetupInput, AppStoreState, AuthEnvironment, AuthProviderId, AuthProviderInput, AuthSettings, AuthSettingsPatch, Automation, AutomationEnrollment, AutomationInput, AutomationTrigger, Billing, BillingCharge, BillingCheckout, BillingEntry, BillingEntryKind, BillingList, BillingUpdate, Broadcast, BroadcastInput, BroadcastRecipient, BroadcastReview, BroadcastStatus, ChatChunk, ChatCompletion, ChatRequest, Checkout, CheckoutBrandPatch, CheckoutInput, Company, CompanyAddressFields, CompanyCatalog, CompanyDraft, CompanyEnvironment, CompanyLink, Connector, ConnectorApproval, ConnectorCall, ConnectorCallInput, ConnectorCheck, ConnectorEnvironment, ConnectorImport, ConnectorInput, ConnectorPatch, ConnectorResponse, ContactPropertyValue, ContactStatus, DashboardLink, DeployFile, Deployment, DeploymentFiles, DesignSectionRead, DesignSpec, DevEnvironment, DnsRecord, DnsRecordInput, DnsRecordList, Domain, DomainBuyInput, DomainList, DomainOwnerContact, DomainOwnerDetails, DomainQuote, DomainSearch, DomainUse, DomainUseInput, EmailContact, EmailContactInput, EmailContactList, EmailContactPatch, EmailForwarding, EmailForwardingLog, EmailForwardingRule, EmailImportInput, EmailImportReport, EmailList, EmailMarketing, EmailMarketingPatch, EmailPage, EmailPreview, EmailSegment, EmailTestResult, EnvTargetInfo, EnvVarInfo, ExportInput, FileEnvironment, FileList, FileListOptions, FileUploadOptions, HealthList, HealthRun, HealthStatus, HostKind, ImageRequest, ImageResult, InboxSettings, KeyAccess, KeyPermission, KeyPresetChoice, LedgerEntry, Mailbox, MailboxInput, MailDomain, MailFolder, MailReplyInput, MailSendInput, MailThreadDetail, MailThreadList, MailView, MediaModelInfo, MetricsReport, MissionControl, MissionControlLayout, Operation, OwnAccountLink, OwnedDomain, OwnedDomainList, OwnerStripe, OwnerStripeApply, OwnerStripeDisconnect, OwnerStripeLink, Payment, PaymentPrice, PaymentPriceInput, PaymentProduct, PaymentSubscription, PaymentsAccount, PaymentsEnvironment, PaymentsList, PaymentsSimulation, PhoneAnsweringInput, PhoneCall, PhoneCallInput, PhoneCallList, PhoneMessage, PhoneMessageList, PhoneNumber, PhoneNumberList, PhoneQuote, PhoneRegistrationInput, PhoneRegistrationRequirements, PhoneSearch, PhoneSendInput, PhoneThreadList, Profile, ProfileBusiness, ProfileBusinessUpdate, ProfileUpdate, Project, ProjectExport, ProjectHealth, ProjectSearch, ReplayDetail, ReplayFrames, ReplayFramesOptions, ReplayInsights, ReplayListOptions, ReplayPeriod, ReplayStatus, ReplaySummary, Resource, ResourceType, SearchConnectionList, SearchPageList, SecretLink, SegmentFilter, SendEmailInput, SendEmailOutput, SocialAccount, SocialAccountAnalytics, SocialAdCampaign, SocialAdChange, SocialAdChangeInput, SocialCampaignCreateInput, SocialConnectLink, SocialEnvironment, SocialMedia, SocialOverview, SocialPost, SocialPostAnalytics, SocialPostInput, SpeechRequest, Transcription, UsageOptions, UsagePeriod, UsageReport, UsernameCheck, VersionDiff, VersionList, VersionRestore, VibizFile, WebDesignInput, WebhookDelivery, WebhookEventType, Withdrawal } from './types.js';
2
2
  /**
3
3
  * An error status with no Vibiz error body: a proxy, a load balancer or the
4
4
  * network answered instead of the API. Say so, and what to do.
@@ -1392,6 +1392,18 @@ export declare class Vibiz {
1392
1392
  }) => Promise<InboxSettings>;
1393
1393
  };
1394
1394
  };
1395
+ /**
1396
+ * The account's public founder profile (docs: profiles) at thelastapi.dev/<username>.
1397
+ * Private by default: public only once turned on, then only listed businesses and
1398
+ * only the metrics turned on for each. Changing it takes a full-access key.
1399
+ */
1400
+ readonly profile: {
1401
+ get: () => Promise<Profile>;
1402
+ update: (input: ProfileUpdate) => Promise<Profile>;
1403
+ checkUsername: (username: string) => Promise<UsernameCheck>;
1404
+ /** What one business shows: listed, tagline, logo, founded, and each metric. */
1405
+ business: (projectId: string, input: ProfileBusinessUpdate) => Promise<ProfileBusiness>;
1406
+ };
1395
1407
  /**
1396
1408
  * The account's own credits (docs/BILLING.md): the balance, the card,
1397
1409
  * auto-recharge and history. A top-up is a hosted page a person pays on.
package/dist/index.js CHANGED
@@ -1506,6 +1506,21 @@ var Vibiz = class {
1506
1506
  update: (input) => this.request("/inbox/settings", { method: "PATCH", body: input })
1507
1507
  }
1508
1508
  };
1509
+ /**
1510
+ * The account's public founder profile (docs: profiles) at thelastapi.dev/<username>.
1511
+ * Private by default: public only once turned on, then only listed businesses and
1512
+ * only the metrics turned on for each. Changing it takes a full-access key.
1513
+ */
1514
+ profile = {
1515
+ get: () => this.request("/profile"),
1516
+ update: (input) => this.request("/profile", { method: "PATCH", body: input }),
1517
+ checkUsername: (username) => this.request(`/profile/username${qs({ u: username })}`),
1518
+ /** What one business shows: listed, tagline, logo, founded, and each metric. */
1519
+ business: (projectId, input) => this.request(`/projects/${encodeURIComponent(projectId)}/profile`, {
1520
+ method: "PATCH",
1521
+ body: input
1522
+ })
1523
+ };
1509
1524
  /**
1510
1525
  * The account's own credits (docs/BILLING.md): the balance, the card,
1511
1526
  * auto-recharge and history. A top-up is a hosted page a person pays on.
@@ -2005,7 +2020,7 @@ function formatMinor(minor, currency) {
2005
2020
  }
2006
2021
 
2007
2022
  // packages/sdk/src/one-key.ts
2008
- var APP_SDK_VERSION = "0.3.16";
2023
+ var APP_SDK_VERSION = "0.3.18";
2009
2024
  var ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
2010
2025
  function oneKeyMessage(url, host) {
2011
2026
  const where = host ?? "your host";
package/dist/one-key.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * (`npm install --save-exact @vibiz/app@<this>`). A test keeps it, the skills
11
11
  * and the docs equal to packages/app/package.json.
12
12
  */
13
- export declare const APP_SDK_VERSION = "0.3.16";
13
+ export declare const APP_SDK_VERSION = "0.3.18";
14
14
  /** Everything one app key reaches. */
15
15
  export declare const ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
16
16
  /**
package/dist/types.d.ts CHANGED
@@ -4554,4 +4554,71 @@ export interface SearchConnectionList {
4554
4554
  google_push: boolean;
4555
4555
  console_url?: string;
4556
4556
  }
4557
+ /** One business's switches on the owner's public profile: everything off until turned on. */
4558
+ export interface ProfileBusiness {
4559
+ object: 'profile_business';
4560
+ project_id: string;
4561
+ name: string;
4562
+ slug: string;
4563
+ listed: boolean;
4564
+ tagline: string | null;
4565
+ description: string | null;
4566
+ logo_url: string | null;
4567
+ /** YYYY-MM-DD; the project's creation day unless set. */
4568
+ founded: string;
4569
+ founded_is_default: boolean;
4570
+ show_revenue: boolean;
4571
+ show_mrr: boolean;
4572
+ show_visitors: boolean;
4573
+ /** After an update: whether the profile itself is public, and this business's page. */
4574
+ profile_public?: boolean;
4575
+ url?: string | null;
4576
+ console_url?: string;
4577
+ }
4578
+ /** The account's public founder profile at thelastapi.dev/<username>. Private by default. */
4579
+ export interface Profile {
4580
+ object: 'profile';
4581
+ username: string | null;
4582
+ display_name: string | null;
4583
+ bio: string | null;
4584
+ avatar_url: string | null;
4585
+ x: string | null;
4586
+ website: string | null;
4587
+ country: string | null;
4588
+ public: boolean;
4589
+ show_activity: boolean;
4590
+ show_activity_stats: boolean;
4591
+ url: string | null;
4592
+ businesses: ProfileBusiness[];
4593
+ console_url: string;
4594
+ }
4595
+ export interface ProfileUpdate {
4596
+ username?: string;
4597
+ display_name?: string | null;
4598
+ bio?: string | null;
4599
+ avatar_url?: string | null;
4600
+ x?: string | null;
4601
+ website?: string | null;
4602
+ country?: string | null;
4603
+ public?: boolean;
4604
+ show_activity?: boolean;
4605
+ show_activity_stats?: boolean;
4606
+ }
4607
+ export interface ProfileBusinessUpdate {
4608
+ listed?: boolean;
4609
+ tagline?: string | null;
4610
+ description?: string | null;
4611
+ logo_url?: string | null;
4612
+ /** YYYY-MM or YYYY-MM-DD; null: the project's creation day. */
4613
+ founded?: string | null;
4614
+ show_revenue?: boolean;
4615
+ show_mrr?: boolean;
4616
+ show_visitors?: boolean;
4617
+ }
4618
+ export interface UsernameCheck {
4619
+ object: 'username_check';
4620
+ username: string;
4621
+ available: boolean;
4622
+ reason: string | null;
4623
+ }
4557
4624
  export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@vibiz/sdk",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Typed client for the thelastapi API: projects, hosting, databases, sign-in, email, AI, payments and more.",
5
5
  "keywords": [
6
6
  "vibiz",
7
7
  "sdk",
8
8
  "api-client"
9
9
  ],
10
- "homepage": "https://app.vibiz.app/docs",
10
+ "homepage": "https://thelastapi.dev/docs",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/Vibiz-ai/vibiz-stack.git",