@vibiz/sdk 0.3.17 → 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/dist/client.d.ts +13 -1
- package/dist/index.js +16 -1
- package/dist/one-key.d.ts +1 -1
- package/dist/types.d.ts +67 -0
- package/package.json +1 -1
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.
|
|
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.
|
|
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 {};
|