@vibiz/sdk 0.3.23 → 0.3.24
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 +97 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +59 -3
- package/dist/one-key.d.ts +1 -1
- package/dist/types.d.ts +84 -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, Dashboard, DashboardCatalogue, DashboardData, DashboardDataQuery, DashboardLink, DashboardRange, DashboardWidget, DashboardWidgetInput, DashboardWidgetResult, 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, MarketplaceList, MarketplaceOffer, MarketplaceQuery, 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, ProfileBusinessesUpdate, ProfileBusinessUpdate, ProfileUpdate, Project, ProjectExport, ProjectHealth, ProjectSale, 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, SocialMessage, SocialOverview, SocialPost, SocialPostAnalytics, SocialPostInput, SocialReplyInput, SocialThread, SocialThreadDetail, SocialThreadKind, SpeechRequest, Transcription, UsageOptions, UsagePeriod, UsageReport, UsernameCheck, VerifyEmailOutput, 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, Dashboard, DashboardCatalogue, DashboardData, DashboardDataQuery, DashboardLink, DashboardRange, DashboardWidget, DashboardWidgetInput, DashboardWidgetResult, 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, LibraryDeleted, LibraryEntry, LibraryExport, LibraryImport, LibraryList, Mailbox, MailboxInput, MailDomain, MailFolder, MailReplyInput, MailSendInput, MailThreadDetail, MailThreadList, MailView, MarketplaceList, MarketplaceOffer, MarketplaceQuery, 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, ProfileBusinessesUpdate, ProfileBusinessUpdate, ProfileUpdate, Project, ProjectExport, ProjectHealth, ProjectSale, 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, SocialMessage, SocialOverview, SocialPost, SocialPostAnalytics, SocialPostInput, SocialReplyInput, SocialThread, SocialThreadDetail, SocialThreadKind, SpeechRequest, Transcription, UsageOptions, UsagePeriod, UsageReport, UsernameCheck, VerifyEmailOutput, 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.
|
|
@@ -31,6 +31,13 @@ export interface VibizOptions {
|
|
|
31
31
|
user?: string;
|
|
32
32
|
/** Who is calling, sent as `X-Vibiz-Client` (the CLI: `vibiz-cli/<version>`), so the API can ask an old one to update. */
|
|
33
33
|
client?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Extra headers on every call, or a function read on each call. The CLI and
|
|
36
|
+
* the MCP server send `X-Vibiz-Session` (one id per run) and `X-Vibiz-Tool`
|
|
37
|
+
* (the command or tool), so a failing step can be found without any content.
|
|
38
|
+
* They never replace the key or the body's headers.
|
|
39
|
+
*/
|
|
40
|
+
headers?: Record<string, string> | (() => Record<string, string> | undefined);
|
|
34
41
|
}
|
|
35
42
|
/**
|
|
36
43
|
* The typed client for the Vibiz Stack API. Used by the CLI, by Principia's
|
|
@@ -1670,6 +1677,67 @@ export declare class Vibiz {
|
|
|
1670
1677
|
object: "dashboard_widget_data";
|
|
1671
1678
|
}>;
|
|
1672
1679
|
};
|
|
1680
|
+
/**
|
|
1681
|
+
* The Library (docs: library): the account's (no `project_id`) or a
|
|
1682
|
+
* project's folders and text files (scripts, agent skills, notes). Stored
|
|
1683
|
+
* only: nothing in it runs or is public. Writing a file makes its folders.
|
|
1684
|
+
*/
|
|
1685
|
+
readonly library: {
|
|
1686
|
+
/** One folder's entries (`recursive`: everything below it), with sizes, no text. */
|
|
1687
|
+
list: (opts?: {
|
|
1688
|
+
project_id?: string | null;
|
|
1689
|
+
path?: string;
|
|
1690
|
+
recursive?: boolean;
|
|
1691
|
+
}) => Promise<LibraryList>;
|
|
1692
|
+
/** One file, with its `content`. */
|
|
1693
|
+
read: (path: string, opts?: {
|
|
1694
|
+
project_id?: string | null;
|
|
1695
|
+
}) => Promise<LibraryEntry>;
|
|
1696
|
+
/** Creates or overwrites a file (`create_only`: refuse an existing one). */
|
|
1697
|
+
write: (body: {
|
|
1698
|
+
path: string;
|
|
1699
|
+
content: string;
|
|
1700
|
+
project_id?: string | null;
|
|
1701
|
+
create_only?: boolean;
|
|
1702
|
+
}) => Promise<LibraryEntry & {
|
|
1703
|
+
created: boolean;
|
|
1704
|
+
}>;
|
|
1705
|
+
/** Makes a folder and the ones above it; an existing folder is fine. */
|
|
1706
|
+
mkdir: (path: string, opts?: {
|
|
1707
|
+
project_id?: string | null;
|
|
1708
|
+
}) => Promise<LibraryEntry & {
|
|
1709
|
+
created: boolean;
|
|
1710
|
+
}>;
|
|
1711
|
+
/** Moves or renames (a folder takes what is in it); `overwrite` replaces what is at `to`. */
|
|
1712
|
+
move: (body: {
|
|
1713
|
+
from: string;
|
|
1714
|
+
to: string;
|
|
1715
|
+
project_id?: string | null;
|
|
1716
|
+
overwrite?: boolean;
|
|
1717
|
+
}) => Promise<LibraryEntry & {
|
|
1718
|
+
moved: number;
|
|
1719
|
+
}>;
|
|
1720
|
+
/** Deletes a file or folder; a folder that isn't empty needs `recursive`. */
|
|
1721
|
+
delete: (path: string, opts?: {
|
|
1722
|
+
project_id?: string | null;
|
|
1723
|
+
recursive?: boolean;
|
|
1724
|
+
}) => Promise<LibraryDeleted>;
|
|
1725
|
+
/** Many files into one folder at once (a skill's folder); replaces existing files unless `overwrite: false`. */
|
|
1726
|
+
import: (body: {
|
|
1727
|
+
path?: string;
|
|
1728
|
+
files: {
|
|
1729
|
+
path: string;
|
|
1730
|
+
content: string;
|
|
1731
|
+
}[];
|
|
1732
|
+
folders?: string[];
|
|
1733
|
+
project_id?: string | null;
|
|
1734
|
+
overwrite?: boolean;
|
|
1735
|
+
}) => Promise<LibraryImport>;
|
|
1736
|
+
/** A folder (or one file) back as files, paths relative to it. */
|
|
1737
|
+
export: (path?: string, opts?: {
|
|
1738
|
+
project_id?: string | null;
|
|
1739
|
+
}) => Promise<LibraryExport>;
|
|
1740
|
+
};
|
|
1673
1741
|
/** A short-lived link to the hosted usage dashboard (admin scope needs an admin key). */
|
|
1674
1742
|
readonly dashboard: {
|
|
1675
1743
|
link: (opts?: {
|
|
@@ -1708,6 +1776,12 @@ export declare class Vibiz {
|
|
|
1708
1776
|
note: string;
|
|
1709
1777
|
};
|
|
1710
1778
|
}>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Tell the thelastapi team something: a capability that's missing, an error
|
|
1781
|
+
* that didn't say how to fix it, docs that were wrong. The team reads every
|
|
1782
|
+
* report. `user_quote` only with the person's agreement.
|
|
1783
|
+
*/
|
|
1784
|
+
feedback(input: FeedbackInput): Promise<FeedbackReceipt>;
|
|
1711
1785
|
/** The account and key this client acts as. */
|
|
1712
1786
|
whoami(): Promise<WhoAmI>;
|
|
1713
1787
|
/** Revoke the key this client uses (`vibiz logout` for a key made by a browser login). */
|
|
@@ -1717,6 +1791,28 @@ export declare class Vibiz {
|
|
|
1717
1791
|
revoked: true;
|
|
1718
1792
|
}>;
|
|
1719
1793
|
}
|
|
1794
|
+
export declare const FEEDBACK_KINDS: readonly ["bug", "missing", "confusing_error", "docs", "other"];
|
|
1795
|
+
export type FeedbackKind = (typeof FEEDBACK_KINDS)[number];
|
|
1796
|
+
export interface FeedbackInput {
|
|
1797
|
+
kind: FeedbackKind;
|
|
1798
|
+
/** One or two sentences: what was needed or what went wrong. */
|
|
1799
|
+
summary: string;
|
|
1800
|
+
tried?: string;
|
|
1801
|
+
happened?: string;
|
|
1802
|
+
expected?: string;
|
|
1803
|
+
/** The tool or command involved (`vibiz_deploy`, `env set`). */
|
|
1804
|
+
tool?: string;
|
|
1805
|
+
error_code?: string;
|
|
1806
|
+
project_id?: string;
|
|
1807
|
+
/** The person's own words: only when they agreed to share them. */
|
|
1808
|
+
user_quote?: string;
|
|
1809
|
+
}
|
|
1810
|
+
export interface FeedbackReceipt {
|
|
1811
|
+
object: 'feedback';
|
|
1812
|
+
id: string;
|
|
1813
|
+
received: true;
|
|
1814
|
+
message: string;
|
|
1815
|
+
}
|
|
1720
1816
|
export interface WhoAmI {
|
|
1721
1817
|
object: 'whoami';
|
|
1722
1818
|
account: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { endUserHeader, Vibiz, VibizApiError, type VibizOptions, type WhoAmI } from './client.js';
|
|
1
|
+
export { endUserHeader, FEEDBACK_KINDS, type FeedbackInput, type FeedbackKind, type FeedbackReceipt, Vibiz, VibizApiError, type VibizOptions, type WhoAmI, } from './client.js';
|
|
2
2
|
export { assertDeployableRoot, collectFiles, type DeployBase, type DeployFilesResult, deployDirectory, deployFiles, deployPathProblem, INLINE_LIMITS, type InlineFile, type LocalFile, normalizeDeployPath, } from './deploy.js';
|
|
3
3
|
export { mergeEnvFile, writeEnvFile } from './env.js';
|
|
4
4
|
export { formatMinor, formatUnits, formatUsd } from './format.js';
|
package/dist/index.js
CHANGED
|
@@ -50,13 +50,17 @@ var Vibiz = class {
|
|
|
50
50
|
baseUrl;
|
|
51
51
|
fetchImpl;
|
|
52
52
|
async send(path, init = {}) {
|
|
53
|
-
const
|
|
53
|
+
const extra = this.options.headers;
|
|
54
|
+
const headers = {
|
|
55
|
+
...typeof extra === "function" ? extra() : extra,
|
|
56
|
+
authorization: `Bearer ${this.options.apiKey}`
|
|
57
|
+
};
|
|
54
58
|
if (init.body !== void 0) headers["content-type"] = "application/json";
|
|
55
59
|
if (init.raw) headers["content-type"] = init.contentType ?? "application/octet-stream";
|
|
56
60
|
if (init.idempotencyKey) headers["idempotency-key"] = init.idempotencyKey;
|
|
57
61
|
if (init.project) headers["x-vibiz-project"] = init.project;
|
|
58
62
|
if (this.options.user) headers["x-vibiz-user"] = endUserHeader(this.options.user);
|
|
59
|
-
|
|
63
|
+
headers["x-vibiz-client"] = this.options.client ?? "vibiz-sdk";
|
|
60
64
|
return this.fetchImpl(`${this.baseUrl}/v1${path}`, {
|
|
61
65
|
method: init.method ?? "GET",
|
|
62
66
|
headers,
|
|
@@ -1764,6 +1768,48 @@ var Vibiz = class {
|
|
|
1764
1768
|
{ method: "POST", body }
|
|
1765
1769
|
)
|
|
1766
1770
|
};
|
|
1771
|
+
/**
|
|
1772
|
+
* The Library (docs: library): the account's (no `project_id`) or a
|
|
1773
|
+
* project's folders and text files (scripts, agent skills, notes). Stored
|
|
1774
|
+
* only: nothing in it runs or is public. Writing a file makes its folders.
|
|
1775
|
+
*/
|
|
1776
|
+
library = {
|
|
1777
|
+
/** One folder's entries (`recursive`: everything below it), with sizes, no text. */
|
|
1778
|
+
list: (opts = {}) => this.request(
|
|
1779
|
+
`/library${qs({
|
|
1780
|
+
project_id: opts.project_id,
|
|
1781
|
+
path: opts.path,
|
|
1782
|
+
recursive: opts.recursive ? "1" : void 0
|
|
1783
|
+
})}`
|
|
1784
|
+
),
|
|
1785
|
+
/** One file, with its `content`. */
|
|
1786
|
+
read: (path, opts = {}) => this.request(`/library/file${qs({ project_id: opts.project_id, path })}`),
|
|
1787
|
+
/** Creates or overwrites a file (`create_only`: refuse an existing one). */
|
|
1788
|
+
write: (body) => this.request("/library/file", {
|
|
1789
|
+
method: "PUT",
|
|
1790
|
+
body
|
|
1791
|
+
}),
|
|
1792
|
+
/** Makes a folder and the ones above it; an existing folder is fine. */
|
|
1793
|
+
mkdir: (path, opts = {}) => this.request("/library/folders", {
|
|
1794
|
+
method: "POST",
|
|
1795
|
+
body: { path, ...opts.project_id ? { project_id: opts.project_id } : {} }
|
|
1796
|
+
}),
|
|
1797
|
+
/** Moves or renames (a folder takes what is in it); `overwrite` replaces what is at `to`. */
|
|
1798
|
+
move: (body) => this.request("/library/move", { method: "POST", body }),
|
|
1799
|
+
/** Deletes a file or folder; a folder that isn't empty needs `recursive`. */
|
|
1800
|
+
delete: (path, opts = {}) => this.request(
|
|
1801
|
+
`/library${qs({
|
|
1802
|
+
project_id: opts.project_id,
|
|
1803
|
+
path,
|
|
1804
|
+
recursive: opts.recursive ? "1" : void 0
|
|
1805
|
+
})}`,
|
|
1806
|
+
{ method: "DELETE" }
|
|
1807
|
+
),
|
|
1808
|
+
/** Many files into one folder at once (a skill's folder); replaces existing files unless `overwrite: false`. */
|
|
1809
|
+
import: (body) => this.request("/library/import", { method: "POST", body }),
|
|
1810
|
+
/** A folder (or one file) back as files, paths relative to it. */
|
|
1811
|
+
export: (path = "", opts = {}) => this.request(`/library/export${qs({ project_id: opts.project_id, path })}`)
|
|
1812
|
+
};
|
|
1767
1813
|
/** A short-lived link to the hosted usage dashboard (admin scope needs an admin key). */
|
|
1768
1814
|
dashboard = {
|
|
1769
1815
|
link: (opts = {}) => this.request("/dashboard/link", { method: "POST", body: opts })
|
|
@@ -1785,6 +1831,14 @@ var Vibiz = class {
|
|
|
1785
1831
|
capabilities() {
|
|
1786
1832
|
return this.request("/capabilities");
|
|
1787
1833
|
}
|
|
1834
|
+
/**
|
|
1835
|
+
* Tell the thelastapi team something: a capability that's missing, an error
|
|
1836
|
+
* that didn't say how to fix it, docs that were wrong. The team reads every
|
|
1837
|
+
* report. `user_quote` only with the person's agreement.
|
|
1838
|
+
*/
|
|
1839
|
+
feedback(input) {
|
|
1840
|
+
return this.request("/feedback", { method: "POST", body: input });
|
|
1841
|
+
}
|
|
1788
1842
|
/** The account and key this client acts as. */
|
|
1789
1843
|
whoami() {
|
|
1790
1844
|
return this.request("/whoami");
|
|
@@ -1796,6 +1850,7 @@ var Vibiz = class {
|
|
|
1796
1850
|
});
|
|
1797
1851
|
}
|
|
1798
1852
|
};
|
|
1853
|
+
var FEEDBACK_KINDS = ["bug", "missing", "confusing_error", "docs", "other"];
|
|
1799
1854
|
var mkt = (projectId) => `/projects/${encodeURIComponent(projectId)}/email`;
|
|
1800
1855
|
var envQuery = (env) => env ? `?env=${env}` : "";
|
|
1801
1856
|
var qs = (q) => {
|
|
@@ -2172,7 +2227,7 @@ function formatMinor(minor, currency) {
|
|
|
2172
2227
|
}
|
|
2173
2228
|
|
|
2174
2229
|
// packages/sdk/src/one-key.ts
|
|
2175
|
-
var APP_SDK_VERSION = "0.3.
|
|
2230
|
+
var APP_SDK_VERSION = "0.3.24";
|
|
2176
2231
|
var ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
|
|
2177
2232
|
function oneKeyMessage(url, host) {
|
|
2178
2233
|
const where = host ?? "your host";
|
|
@@ -2183,6 +2238,7 @@ function connectHostMessage(kind, host) {
|
|
|
2183
2238
|
}
|
|
2184
2239
|
export {
|
|
2185
2240
|
APP_SDK_VERSION,
|
|
2241
|
+
FEEDBACK_KINDS,
|
|
2186
2242
|
INLINE_LIMITS,
|
|
2187
2243
|
ONE_KEY_GIVES,
|
|
2188
2244
|
Vibiz,
|
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.24";
|
|
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
|
@@ -5020,4 +5020,88 @@ export interface MarketplaceOffer {
|
|
|
5020
5020
|
/** The buyer's, once accepted. */
|
|
5021
5021
|
transfer?: MarketplaceTransfer;
|
|
5022
5022
|
}
|
|
5023
|
+
/** A folder or text file in the account's or a project's Library. Stored only, never run. */
|
|
5024
|
+
export interface LibraryEntry {
|
|
5025
|
+
object: 'library_entry';
|
|
5026
|
+
id: string;
|
|
5027
|
+
kind: 'folder' | 'file';
|
|
5028
|
+
/** From the top of the Library, no leading slash: `skills/seo/SKILL.md`. */
|
|
5029
|
+
path: string;
|
|
5030
|
+
name: string;
|
|
5031
|
+
/** The folder it is in ('' at the top). */
|
|
5032
|
+
parent: string;
|
|
5033
|
+
scope: 'account' | 'project';
|
|
5034
|
+
project_id: string | null;
|
|
5035
|
+
/** A file's bytes; a folder's, everything below it. */
|
|
5036
|
+
size_bytes: number;
|
|
5037
|
+
/** A folder's entries directly inside it. */
|
|
5038
|
+
items?: number;
|
|
5039
|
+
created_at: string;
|
|
5040
|
+
updated_at: string;
|
|
5041
|
+
/** The key that made the last change. */
|
|
5042
|
+
updated_by: string | null;
|
|
5043
|
+
/** The file's text: only when read. */
|
|
5044
|
+
content?: string;
|
|
5045
|
+
console_url: string;
|
|
5046
|
+
}
|
|
5047
|
+
export interface LibraryList {
|
|
5048
|
+
object: 'list';
|
|
5049
|
+
scope: 'account' | 'project';
|
|
5050
|
+
project_id: string | null;
|
|
5051
|
+
path: string;
|
|
5052
|
+
recursive: boolean;
|
|
5053
|
+
/** The folder listed (null at the top). */
|
|
5054
|
+
folder: LibraryEntry | null;
|
|
5055
|
+
data: LibraryEntry[];
|
|
5056
|
+
size_bytes: number;
|
|
5057
|
+
usage: {
|
|
5058
|
+
entries: number;
|
|
5059
|
+
bytes: number;
|
|
5060
|
+
max_entries: number;
|
|
5061
|
+
max_bytes: number;
|
|
5062
|
+
max_file_bytes: number;
|
|
5063
|
+
};
|
|
5064
|
+
console_url: string;
|
|
5065
|
+
}
|
|
5066
|
+
export interface LibraryImport {
|
|
5067
|
+
object: 'library_import';
|
|
5068
|
+
scope: 'account' | 'project';
|
|
5069
|
+
project_id: string | null;
|
|
5070
|
+
path: string;
|
|
5071
|
+
created: number;
|
|
5072
|
+
updated: number;
|
|
5073
|
+
folders_created: number;
|
|
5074
|
+
data: LibraryEntry[];
|
|
5075
|
+
console_url: string;
|
|
5076
|
+
}
|
|
5077
|
+
export interface LibraryExport {
|
|
5078
|
+
object: 'library_export';
|
|
5079
|
+
scope: 'account' | 'project';
|
|
5080
|
+
project_id: string | null;
|
|
5081
|
+
path: string;
|
|
5082
|
+
kind: 'folder' | 'file';
|
|
5083
|
+
/** Relative to `path`, empty ones included. */
|
|
5084
|
+
folders: string[];
|
|
5085
|
+
/** Relative to `path` (a single file: its own name). */
|
|
5086
|
+
files: {
|
|
5087
|
+
path: string;
|
|
5088
|
+
content: string;
|
|
5089
|
+
size_bytes: number;
|
|
5090
|
+
updated_at: string;
|
|
5091
|
+
console_url: string;
|
|
5092
|
+
}[];
|
|
5093
|
+
size_bytes: number;
|
|
5094
|
+
console_url: string;
|
|
5095
|
+
}
|
|
5096
|
+
export interface LibraryDeleted {
|
|
5097
|
+
object: 'library_entry';
|
|
5098
|
+
id: string;
|
|
5099
|
+
kind: 'folder' | 'file';
|
|
5100
|
+
path: string;
|
|
5101
|
+
scope: 'account' | 'project';
|
|
5102
|
+
project_id: string | null;
|
|
5103
|
+
deleted: true;
|
|
5104
|
+
deleted_count: number;
|
|
5105
|
+
console_url: string;
|
|
5106
|
+
}
|
|
5023
5107
|
export {};
|