@madewithremy/admin 0.1.46 → 0.1.48
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/CHANGELOG.md +18 -0
- package/dist/index.d.ts +137 -5
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/dist/prod.js +207 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ What changed in `@madewithremy/admin`, newest first, each version under its own
|
|
|
4
4
|
|
|
5
5
|
Versions before 0.1.44 aren't recorded here.
|
|
6
6
|
|
|
7
|
+
## 0.1.48
|
|
8
|
+
|
|
9
|
+
### New
|
|
10
|
+
|
|
11
|
+
- `remy-admin feedback draft <message>` (`admin.feedback.draft`): opens Send Feedback in the user's editor with the message filled in, for them to review and send. Nothing is sent until they do; a sent report carries the conversation, the sandbox's logs and the editor's state. A deployment that takes no feedback refuses it with `feedback_not_configured`.
|
|
12
|
+
|
|
13
|
+
## 0.1.47
|
|
14
|
+
|
|
15
|
+
### New
|
|
16
|
+
|
|
17
|
+
- `remy-admin db history` (`admin.db.history`): the app's releases that were ever live, newest first, each with `liveFrom` and `liveUntil` and its databases. A deploy keeps the release it replaces, database and all, as it stood at that moment, so each is a copy of live as of its `liveUntil`.
|
|
18
|
+
- `remy-admin db history query <releaseId> <sql>` (`admin.db.historyQuery`): read-only SQL against a past release's database, which nothing can change.
|
|
19
|
+
- `remy-admin db history attach <releaseId> <sql>` (`admin.db.historyAttach`): SQL against live with a past release's database attached as the schema `history`, so a repair from it is one statement on live. `remy-admin db --help` says how a recovery from a past copy goes.
|
|
20
|
+
|
|
21
|
+
### Changed behavior
|
|
22
|
+
|
|
23
|
+
- `remy-admin files sign` (`admin.files.sign`): a private object's link lasts three hours at most where it's a storage presign rather than the deployment's private CDN, however long a `--ttl` asks for, and `expiresAt` says when it actually expires. A presign carries the credentials that signed it, which on the cloud's pod identity last no longer, so a longer one stopped working early whatever it said. Check: a handoff that sends a link to be opened more than three hours later.
|
|
24
|
+
|
|
7
25
|
## 0.1.46
|
|
8
26
|
|
|
9
27
|
### Changed behavior
|
package/dist/index.d.ts
CHANGED
|
@@ -1130,6 +1130,47 @@ declare namespace cron {
|
|
|
1130
1130
|
export { type cron_CronListParams as CronListParams, list$a as list, run$1 as run };
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
|
+
/**
|
|
1134
|
+
* Response shapes for the feedback command group — transcribed from the api.
|
|
1135
|
+
*
|
|
1136
|
+
* Sources (apps/api/src/):
|
|
1137
|
+
* roles/http/routes/Apps/develop/feedback.ts
|
|
1138
|
+
*/
|
|
1139
|
+
/** POST /_internal/v2/apps/:appId/feedback-draft */
|
|
1140
|
+
interface FeedbackDraftResult {
|
|
1141
|
+
/** The draft went to the person's open editors on this app. */
|
|
1142
|
+
status: 'sent_to_editor';
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Feedback operations: a report about Remy itself, to the Remy team.
|
|
1147
|
+
*
|
|
1148
|
+
* Ops are pure: (ctx, params) → typed result, throwing AdminApiError /
|
|
1149
|
+
* AdminTimeoutError. No printing, no process coupling — the CLI skin in
|
|
1150
|
+
* commands/feedback.ts and the importable client both call these.
|
|
1151
|
+
*/
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Open Send Feedback in the person's editor with this message filled in.
|
|
1155
|
+
*
|
|
1156
|
+
* Nothing is sent from here. The person reviews the draft, edits it if they
|
|
1157
|
+
* like, and sends it; the report then carries Remy's conversation, the
|
|
1158
|
+
* sandbox's logs and the editor's state. Only the person's own editors on this
|
|
1159
|
+
* app open it, and only ones open at the time.
|
|
1160
|
+
*
|
|
1161
|
+
* @throws AdminApiError `feedback_not_configured` (404) — this deployment
|
|
1162
|
+
* doesn't take feedback; `missing_message` (400); `message_too_long` (400) —
|
|
1163
|
+
* over 20,000 characters.
|
|
1164
|
+
* @example
|
|
1165
|
+
* await admin.feedback.draft('The preview stopped reloading after every save.');
|
|
1166
|
+
*/
|
|
1167
|
+
declare function draft(ctx: AdminContext, message: string): Promise<FeedbackDraftResult>;
|
|
1168
|
+
|
|
1169
|
+
declare const feedback_draft: typeof draft;
|
|
1170
|
+
declare namespace feedback {
|
|
1171
|
+
export { feedback_draft as draft };
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1133
1174
|
/**
|
|
1134
1175
|
* Response types for the data command group.
|
|
1135
1176
|
*
|
|
@@ -4107,7 +4148,39 @@ declare namespace dataSourceMappers {
|
|
|
4107
4148
|
* POST /db/query → roles/http/routes/Apps/manage/dbQuery.ts
|
|
4108
4149
|
* AppDatabasesDao.executeSqlBatch returns
|
|
4109
4150
|
* Array<{ rows: any[]; changes: number }>
|
|
4110
|
-
|
|
4151
|
+
* GET /db/history → the same file, over ReleasesDao.listPublishedReleases
|
|
4152
|
+
* (PublishedRelease, AppReleases/types/release.ts)
|
|
4153
|
+
* POST /db/history/query, /db/history/attach → the same file; answered as
|
|
4154
|
+
* /db/query is
|
|
4155
|
+
*/
|
|
4156
|
+
/**
|
|
4157
|
+
* Response from GET /_internal/v2/apps/:appId/db/history: the app's releases
|
|
4158
|
+
* that were ever live, newest first, with the window each was live for.
|
|
4159
|
+
*/
|
|
4160
|
+
interface DbHistoryResult {
|
|
4161
|
+
copies: Array<{
|
|
4162
|
+
releaseId: string;
|
|
4163
|
+
commitSha: string;
|
|
4164
|
+
/** First line of the release's commit message. */
|
|
4165
|
+
subject: string;
|
|
4166
|
+
/** When the release went live (ISO). */
|
|
4167
|
+
liveFrom: string;
|
|
4168
|
+
/**
|
|
4169
|
+
* When the next release replaced it (ISO): its database holds live as it
|
|
4170
|
+
* stood at that moment. Null for the release live now.
|
|
4171
|
+
*/
|
|
4172
|
+
liveUntil: string | null;
|
|
4173
|
+
/** The release live now, whose database is live: query it with `db query`. */
|
|
4174
|
+
current: boolean;
|
|
4175
|
+
/** The release's databases; history commands use the one named as live's default. */
|
|
4176
|
+
databases: Array<{
|
|
4177
|
+
id: string;
|
|
4178
|
+
name: string;
|
|
4179
|
+
}>;
|
|
4180
|
+
}>;
|
|
4181
|
+
/** Pass back as `cursor` for the next page; null on the last one. */
|
|
4182
|
+
nextCursor: string | null;
|
|
4183
|
+
}
|
|
4111
4184
|
/**
|
|
4112
4185
|
* Response from POST /_internal/v2/apps/:appId/db/query.
|
|
4113
4186
|
* Used by both 'db query' and 'db tables'. Row values are database-specific
|
|
@@ -4161,10 +4234,65 @@ interface DbQueryResult {
|
|
|
4161
4234
|
* const { results } = await admin.db.query('SELECT * FROM users LIMIT 10');
|
|
4162
4235
|
*/
|
|
4163
4236
|
declare function query(ctx: AdminContext, sql: string): Promise<DbQueryResult>;
|
|
4237
|
+
interface DbHistoryParams {
|
|
4238
|
+
/** Max releases to return per page (default 20, clamped 1–100). */
|
|
4239
|
+
limit?: number;
|
|
4240
|
+
/** `nextCursor` from the previous page. */
|
|
4241
|
+
cursor?: string;
|
|
4242
|
+
}
|
|
4243
|
+
/**
|
|
4244
|
+
* The app's releases that were ever live, newest first, each with the window
|
|
4245
|
+
* it was live for and its databases.
|
|
4246
|
+
*
|
|
4247
|
+
* A deploy copies live into the new release and keeps the release it
|
|
4248
|
+
* replaces, database and all, as it stood at that moment. So each entry's
|
|
4249
|
+
* database is live as of its `liveUntil`; the release live now heads the list
|
|
4250
|
+
* with `current: true`. Nothing between two deploys is kept.
|
|
4251
|
+
*
|
|
4252
|
+
* @throws AdminApiError `invalid_request` (400) — `limit` isn't an integer.
|
|
4253
|
+
* @example
|
|
4254
|
+
* const { copies } = await admin.db.history({ limit: 10 });
|
|
4255
|
+
*/
|
|
4256
|
+
declare function history(ctx: AdminContext, params?: DbHistoryParams): Promise<DbHistoryResult>;
|
|
4257
|
+
/**
|
|
4258
|
+
* Run one SQL statement, read-only, against a past release's database (the
|
|
4259
|
+
* one named as live's default), as it stood when that release was replaced.
|
|
4260
|
+
* Nothing can change it: a write is refused with `sql_error`.
|
|
4261
|
+
*
|
|
4262
|
+
* @param releaseId A release from `history()` that isn't `current`.
|
|
4263
|
+
* @throws AdminApiError `release_not_found` (404) — no release of this app
|
|
4264
|
+
* that was ever live has that id; `release_is_live` (400) — it's the live
|
|
4265
|
+
* release, so use `query`; `no_database` (404) — that release has no
|
|
4266
|
+
* database of live's name; `no_live_release` (404) — the app isn't
|
|
4267
|
+
* deployed; `sql_error` (400) — the database refused the statement,
|
|
4268
|
+
* a write included.
|
|
4269
|
+
* @example
|
|
4270
|
+
* const { results } = await admin.db.historyQuery(releaseId, 'SELECT count(*) AS n FROM orders');
|
|
4271
|
+
*/
|
|
4272
|
+
declare function historyQuery(ctx: AdminContext, releaseId: string, sql: string): Promise<DbQueryResult>;
|
|
4273
|
+
/**
|
|
4274
|
+
* Run one SQL statement against live with a past release's database attached
|
|
4275
|
+
* as the schema `history`: `history.<table>` is the past table, and an
|
|
4276
|
+
* unqualified name is live's. Writes to live are real, as with `query`, and
|
|
4277
|
+
* run in one transaction; the attached copy is private to the call, so
|
|
4278
|
+
* nothing written into it lasts.
|
|
4279
|
+
*
|
|
4280
|
+
* @param releaseId A release from `history()` that isn't `current`.
|
|
4281
|
+
* @throws AdminApiError the same as `historyQuery`; a `sql_error` is the
|
|
4282
|
+
* database refusing the statement, and nothing in it was applied.
|
|
4283
|
+
* @example
|
|
4284
|
+
* await admin.db.historyAttach(releaseId,
|
|
4285
|
+
* 'UPDATE orders SET note = h.note FROM history.orders h WHERE h.id = orders.id AND orders.note IS NULL');
|
|
4286
|
+
*/
|
|
4287
|
+
declare function historyAttach(ctx: AdminContext, releaseId: string, sql: string): Promise<DbQueryResult>;
|
|
4164
4288
|
|
|
4289
|
+
type db_DbHistoryParams = DbHistoryParams;
|
|
4290
|
+
declare const db_history: typeof history;
|
|
4291
|
+
declare const db_historyAttach: typeof historyAttach;
|
|
4292
|
+
declare const db_historyQuery: typeof historyQuery;
|
|
4165
4293
|
declare const db_query: typeof query;
|
|
4166
4294
|
declare namespace db {
|
|
4167
|
-
export { db_query as query };
|
|
4295
|
+
export { type db_DbHistoryParams as DbHistoryParams, db_history as history, db_historyAttach as historyAttach, db_historyQuery as historyQuery, db_query as query };
|
|
4168
4296
|
}
|
|
4169
4297
|
|
|
4170
4298
|
/**
|
|
@@ -5352,7 +5480,8 @@ interface FilesUploadUrlResult {
|
|
|
5352
5480
|
/**
|
|
5353
5481
|
* GET /file-storage/url — read link for one object.
|
|
5354
5482
|
*
|
|
5355
|
-
* Private → short-lived
|
|
5483
|
+
* Private → short-lived signed URL with `expiresAt` (ttl clamped to [60s, 7d];
|
|
5484
|
+
* a storage presign, off the private CDN, lasts three hours at most).
|
|
5356
5485
|
* Public → permanent on-domain URL, no expiry field.
|
|
5357
5486
|
*/
|
|
5358
5487
|
interface FilesUrlResult {
|
|
@@ -5531,7 +5660,9 @@ declare function put(ctx: AdminContext, params: FilesPutParams): Promise<{
|
|
|
5531
5660
|
* Mint a read link for one object.
|
|
5532
5661
|
*
|
|
5533
5662
|
* Private objects return a signed, expiring URL with `expiresAt` (ttl clamped
|
|
5534
|
-
* server-side to [60s, 7d], default 300s).
|
|
5663
|
+
* server-side to [60s, 7d], default 300s). Where the link is a storage presign
|
|
5664
|
+
* rather than the deployment's private CDN, it lasts three hours at most;
|
|
5665
|
+
* `expiresAt` is when it actually expires. Public objects return a permanent
|
|
5535
5666
|
* on-domain URL with no expiry. Use a private store plus `sign` as the
|
|
5536
5667
|
* sensitive-file handoff channel — links are unguessable and the object stays
|
|
5537
5668
|
* deletable.
|
|
@@ -8776,6 +8907,7 @@ declare function buildClient(ctx: AdminContext): {
|
|
|
8776
8907
|
events: BoundOps<typeof appEvents>;
|
|
8777
8908
|
crashes: BoundOps<typeof crashes>;
|
|
8778
8909
|
cron: BoundOps<typeof cron>;
|
|
8910
|
+
feedback: BoundOps<typeof feedback>;
|
|
8779
8911
|
data: BoundOps<typeof data>;
|
|
8780
8912
|
dataSources: BoundOps<typeof dataSources>;
|
|
8781
8913
|
dataSourceJobs: BoundOps<typeof dataSourceJobs>;
|
|
@@ -8860,4 +8992,4 @@ declare class AdminTimeoutError extends Error {
|
|
|
8860
8992
|
|
|
8861
8993
|
declare const admin: AdminClient;
|
|
8862
8994
|
|
|
8863
|
-
export { AdminApiError, type AdminClient, type AdminClientOptions, type AdminContext, AdminTimeoutError, type AgentThreadDetail, type AgentThreadListItem, type AgentThreadsGetResult, type AgentThreadsListResult, type AgentToolCall, type AgentTranscriptMessage, type AgentTurnError, type AnalyticsAiHostRow, type AnalyticsAiSourcesResult, type AnalyticsAiVendorRow, type AnalyticsBatchResult, type AnalyticsCrawlersOverviewResult, type AnalyticsCrawlersRecentResult, type AnalyticsCrawlersRecentRow, type AnalyticsCrawlersResult, type AnalyticsCrawlersTimeseriesBucket, type AnalyticsCrawlersTimeseriesResult, type AnalyticsLiveResult, type AnalyticsMapPoint, type AnalyticsMapResult, type AnalyticsMetric, type AnalyticsQueryResult, type AnalyticsQueryResultRow, type AnalyticsSourceRow, type AnalyticsSourcesResult, type AppCronJobStatus, type AppCronJobStatusReason, type AppCronRunState, type AppEmailSuppression, type AppSecretRow, type BoughtDomain, type CrashGroup, type CrashOccurrenceRow, type CrashesGetResult, type CrashesListResult, type CrashesOccurrencesResult, type CrashesStatsBucket, type CrashesStatsResult, type CronJobDecorated, type CronOverviewResult, type CronRunResult, type CronRunSummary, type DashboardLiveRelease, type DashboardReleaseMethod, type DashboardResult, type DataLiftFromDevResult, type DataLiftFromLiveResult, type DataSourceConnector, type DataSourceConnectorCredentials, type DataSourceConnectorDeletions, type DataSourceConnectorGetResult, type DataSourceConnectorPolicy, type DataSourceConnectorResult, type DataSourceInspectReport, type DataSourceInspectResult, type DataSourceJob, type DataSourceJobGetResult, type DataSourceJobManifestTokenResult, type DataSourceJobPlan, type DataSourceJobResult, type DataSourceJobSource, type DataSourceJobState, type DataSourceJobsListResult, type DataSourceMapDeployResult, type DataSourceMapTestDocument, type DataSourceMapTestOutcome, type DataSourceMapTestResult, type DataSourceMapper, type DataSourceObjectSelection, type DataSourceQuarantineResult, type DataSourceQuarantinedObject, type DataSourceReader, type DataSourceReaderDeliveries, type DataSourceReaderRetryResult, type DataSourceReaderStatusResult, type DataSourceReaderTestDocument, type DataSourceReaderTestResult, type DataSourceRemapResult, type DataSourceRereadResult, type DataSourceSyncResult, type DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesChunkingStrategy, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesCountResult, type DataSourcesCreateResult, type DataSourcesDeleteResult, type DataSourcesDictionaryPushResult, type DataSourcesDictionaryReport, type DataSourcesDictionaryStatus, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteManyResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentSelector, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesEntitiesResult, type DataSourcesHydrateResult, type DataSourcesHydration, type DataSourcesIndex, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesLinkResult, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesMigration, type DataSourcesMoveResult, type DataSourcesPassage, type DataSourcesPassagesResult, type DataSourcesPlacement, type DataSourcesPromoteResult, type DataSourcesRelink, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, type DataSourcesSampleResult, type DataSourcesSearchCitation, type DataSourcesSearchResult, type DataSourcesSearchResultItem, type DataSourcesUploadTokenResult, type DatasetFile, type DbQueryResult, type DiagnosticsAuditEnvironment, type DiagnosticsDashboardResult, type DiagnosticsFinding, type DiagnosticsLighthouseScores, type DiagnosticsPayload, type DiagnosticsReleaseResult, type DiagnosticsRuntimeFindings, type DomainsCheckResult, type DomainsCustomAddResult, type DomainsCustomCheckResult, type DomainsCustomHostnameUiStatus, type DomainsCustomHostnameView, type DomainsCustomListResult, type DomainsCustomRemoveResult, type DomainsCustomRetryResult, type DomainsDnsInstructions, type DomainsGetResult, type DomainsSetResult, type EmailBatchLifecycle, type EmailBatchResult, type EmailBatchSummary, type EmailBatchesResult, type EmailDomainBase, type EmailEffectiveSender, type EmailInboxResult, type EmailListResult, type EmailMessageKind, type EmailMessageResult, type EmailMessageStatus, type EmailSenderTier, type EmailSendingStatusResult, type EmailStatsResult, type EmailSummary, type EmailSuppressResult, type EmailSuppressionsResult, type EmailUnsuppressResult, type EvalAggregates, type EvalCompareResult, type EvalExpectation, type EvalQueriesAddResult, type EvalQueriesListResult, type EvalQuery, type EvalQueryResult, type EvalQueryStyle, type EvalRetrieval, type EvalRun, type EvalRunResult, type EvalRunState, type EvalRunsListResult, type EvalSet, type EvalSetGetResult, type EvalSetResult, type EvalSetState, type EvalSetsListResult, type EventChannelActivity, type EventsChannelsListResult, type EventsPublishResult, type EventsTailFrame, type FilesDeleteResult, type FilesFileMeta, type FilesListEntry, type FilesListResult, type FilesLsResult, type FilesScanBadge, type FilesScanFlagged, type FilesScanStore, type FilesStatResult, type FilesStoreSummaryEntry, type FilesUploadUrlResult, type FilesUrlResult, type FrontendErrorType, type InboundDnsInstructions, type InboundEmailDomainAddResult, type InboundEmailDomainCheckResult, type InboundEmailDomainDeleteResult, type InboundEmailDomainUiStatus, type InboundEmailDomainVerifyResult, type InboundEmailDomainView, type InboundEmailDomainsListResult, type InboxEmailPreview, type IssueAuthorKind, type IssueCommentRow, type IssueEventType, type IssueRow, type IssueStatus, type IssuesCommentResult, type IssuesCreateResult, type IssuesDeleteResult, type IssuesGetResult, type IssuesListResult, type IssuesUpdateResult, type JewelPairRow, type JewelPairSummaryRow, type JewelVerdict, type JewelsDatasetSummary, type JewelsDryrunResult, type JewelsExportResult, type JewelsGradeResult, type JewelsGrading, type JewelsOverviewResult, type JewelsPairResult, type JewelsPairsResult, type JewelsQueueResult, type JewelsResolveResult, type JewelsRunResult, type JewelsRunsResult, type JewelsTimeseriesBucket, type JewelsTimeseriesResult, type JewelsTrainResult, type LiftedDatabase, type MethodsInvokeResult, type OperationProgress, type OutboundDnsInstructions, type OutboundDnsRecord, type OutboundEmailDomainAddResult, type OutboundEmailDomainCheckResult, type OutboundEmailDomainDeleteResult, type OutboundEmailDomainUiStatus, type OutboundEmailDomainVerifyResult, type OutboundEmailDomainView, type OutboundEmailDomainsListResult, type PlatformSuppression, type PrerenderGetResult, type PrerenderInvalidateResult, type PrerenderPage, type PrerenderPagesResult, type PrerenderViewResult, type PreviewShareLink, type PreviewShareListResult, type PreviewShareResult, type PreviewShareRevokeResult, type RegisteredDomainConnection, type RegisteredDomainOffer, type RegisteredDomainQuote, type RegisteredDomainRecordType, type RegisteredDomainRecords, type RegisteredDomainStatus, type RegisteredDomainView, type RegisteredDomainZoneRecord, type RegisteredDomainsBuyResult, type RegisteredDomainsContactResult, type RegisteredDomainsContactSetResult, type RegisteredDomainsListResult, type RegisteredDomainsQuoteResult, type RegisteredDomainsRecordDeleteResult, type RegisteredDomainsRecordResult, type RegisteredDomainsSearchResult, type RegisteredDomainsZoneResult, type RegistrantContact, type ReleaseFailureFields, type ReleaseFragment, type ReleasesByCommitResult, type ReleasesGetResult, type ReleasesListResult, type RequestsGetResult, type RequestsListResult, type RequestsListRow, type RequestsStatsMethodBucket, type RequestsStatsMethodResult, type RequestsStatsSummaryBucket, type RequestsStatsSummaryResult, type SecretsDeleteResult, type SecretsGetResult, type SecretsListResult, type SecretsSetResult, type SettingsResult, type SuppressionSource, type TaskTraceOutcome, type TaskTraceSummary, type TaskTranscriptMessage, type TaskTurnError, type TasksGetResult, type TasksListResult, type TrainingLogEntry, type TrainingRunRow, type TrainingRunStatus, type UserAuthProvider, type UserListItem, type UserRecord, type UsersCreateApiKeyResult, type UsersListResult, type UsersRevokeApiKeyResult, type UsersSetRoleResult, type V2AppSettings, type V2BuildLogEntry, type V2BuildStats, type V2CommitInfo, type V2EmailMessage, type V2ReleaseStatus, type VoiceAvailableNumber, type VoiceNumbersBuyResult, type VoiceNumbersListResult, type VoiceNumbersReleaseResult, type VoiceNumbersSearchResult, type VoiceNumbersSetNameResult, type VoicePhoneNumberStatus, type VoicePhoneNumberView, type VoiceResolvedPolicy, type VoiceSessionChannel, type VoiceSessionCost, type VoiceSessionCostLine, type VoiceSessionDetail, type VoiceSessionGetResult, type VoiceSessionListItem, type VoiceSessionSip, type VoiceSessionSpeechEntry, type VoiceSessionStatus, type VoiceSessionToolEntry, type VoiceSessionTranscriptEntry, type VoiceSessionsListResult, type VoiceSettingsCeilings, type VoiceSettingsGetResult, type VoiceSettingsOverrides, type VoiceSettingsSetResult, type WorkspaceRegistrantContact, admin, createAdminClient, admin as default };
|
|
8995
|
+
export { AdminApiError, type AdminClient, type AdminClientOptions, type AdminContext, AdminTimeoutError, type AgentThreadDetail, type AgentThreadListItem, type AgentThreadsGetResult, type AgentThreadsListResult, type AgentToolCall, type AgentTranscriptMessage, type AgentTurnError, type AnalyticsAiHostRow, type AnalyticsAiSourcesResult, type AnalyticsAiVendorRow, type AnalyticsBatchResult, type AnalyticsCrawlersOverviewResult, type AnalyticsCrawlersRecentResult, type AnalyticsCrawlersRecentRow, type AnalyticsCrawlersResult, type AnalyticsCrawlersTimeseriesBucket, type AnalyticsCrawlersTimeseriesResult, type AnalyticsLiveResult, type AnalyticsMapPoint, type AnalyticsMapResult, type AnalyticsMetric, type AnalyticsQueryResult, type AnalyticsQueryResultRow, type AnalyticsSourceRow, type AnalyticsSourcesResult, type AppCronJobStatus, type AppCronJobStatusReason, type AppCronRunState, type AppEmailSuppression, type AppSecretRow, type BoughtDomain, type CrashGroup, type CrashOccurrenceRow, type CrashesGetResult, type CrashesListResult, type CrashesOccurrencesResult, type CrashesStatsBucket, type CrashesStatsResult, type CronJobDecorated, type CronOverviewResult, type CronRunResult, type CronRunSummary, type DashboardLiveRelease, type DashboardReleaseMethod, type DashboardResult, type DataLiftFromDevResult, type DataLiftFromLiveResult, type DataSourceConnector, type DataSourceConnectorCredentials, type DataSourceConnectorDeletions, type DataSourceConnectorGetResult, type DataSourceConnectorPolicy, type DataSourceConnectorResult, type DataSourceInspectReport, type DataSourceInspectResult, type DataSourceJob, type DataSourceJobGetResult, type DataSourceJobManifestTokenResult, type DataSourceJobPlan, type DataSourceJobResult, type DataSourceJobSource, type DataSourceJobState, type DataSourceJobsListResult, type DataSourceMapDeployResult, type DataSourceMapTestDocument, type DataSourceMapTestOutcome, type DataSourceMapTestResult, type DataSourceMapper, type DataSourceObjectSelection, type DataSourceQuarantineResult, type DataSourceQuarantinedObject, type DataSourceReader, type DataSourceReaderDeliveries, type DataSourceReaderRetryResult, type DataSourceReaderStatusResult, type DataSourceReaderTestDocument, type DataSourceReaderTestResult, type DataSourceRemapResult, type DataSourceRereadResult, type DataSourceSyncResult, type DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesChunkingStrategy, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesCountResult, type DataSourcesCreateResult, type DataSourcesDeleteResult, type DataSourcesDictionaryPushResult, type DataSourcesDictionaryReport, type DataSourcesDictionaryStatus, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteManyResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentSelector, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesEntitiesResult, type DataSourcesHydrateResult, type DataSourcesHydration, type DataSourcesIndex, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesLinkResult, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesMigration, type DataSourcesMoveResult, type DataSourcesPassage, type DataSourcesPassagesResult, type DataSourcesPlacement, type DataSourcesPromoteResult, type DataSourcesRelink, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, type DataSourcesSampleResult, type DataSourcesSearchCitation, type DataSourcesSearchResult, type DataSourcesSearchResultItem, type DataSourcesUploadTokenResult, type DatasetFile, type DbHistoryResult, type DbQueryResult, type DiagnosticsAuditEnvironment, type DiagnosticsDashboardResult, type DiagnosticsFinding, type DiagnosticsLighthouseScores, type DiagnosticsPayload, type DiagnosticsReleaseResult, type DiagnosticsRuntimeFindings, type DomainsCheckResult, type DomainsCustomAddResult, type DomainsCustomCheckResult, type DomainsCustomHostnameUiStatus, type DomainsCustomHostnameView, type DomainsCustomListResult, type DomainsCustomRemoveResult, type DomainsCustomRetryResult, type DomainsDnsInstructions, type DomainsGetResult, type DomainsSetResult, type EmailBatchLifecycle, type EmailBatchResult, type EmailBatchSummary, type EmailBatchesResult, type EmailDomainBase, type EmailEffectiveSender, type EmailInboxResult, type EmailListResult, type EmailMessageKind, type EmailMessageResult, type EmailMessageStatus, type EmailSenderTier, type EmailSendingStatusResult, type EmailStatsResult, type EmailSummary, type EmailSuppressResult, type EmailSuppressionsResult, type EmailUnsuppressResult, type EvalAggregates, type EvalCompareResult, type EvalExpectation, type EvalQueriesAddResult, type EvalQueriesListResult, type EvalQuery, type EvalQueryResult, type EvalQueryStyle, type EvalRetrieval, type EvalRun, type EvalRunResult, type EvalRunState, type EvalRunsListResult, type EvalSet, type EvalSetGetResult, type EvalSetResult, type EvalSetState, type EvalSetsListResult, type EventChannelActivity, type EventsChannelsListResult, type EventsPublishResult, type EventsTailFrame, type FilesDeleteResult, type FilesFileMeta, type FilesListEntry, type FilesListResult, type FilesLsResult, type FilesScanBadge, type FilesScanFlagged, type FilesScanStore, type FilesStatResult, type FilesStoreSummaryEntry, type FilesUploadUrlResult, type FilesUrlResult, type FrontendErrorType, type InboundDnsInstructions, type InboundEmailDomainAddResult, type InboundEmailDomainCheckResult, type InboundEmailDomainDeleteResult, type InboundEmailDomainUiStatus, type InboundEmailDomainVerifyResult, type InboundEmailDomainView, type InboundEmailDomainsListResult, type InboxEmailPreview, type IssueAuthorKind, type IssueCommentRow, type IssueEventType, type IssueRow, type IssueStatus, type IssuesCommentResult, type IssuesCreateResult, type IssuesDeleteResult, type IssuesGetResult, type IssuesListResult, type IssuesUpdateResult, type JewelPairRow, type JewelPairSummaryRow, type JewelVerdict, type JewelsDatasetSummary, type JewelsDryrunResult, type JewelsExportResult, type JewelsGradeResult, type JewelsGrading, type JewelsOverviewResult, type JewelsPairResult, type JewelsPairsResult, type JewelsQueueResult, type JewelsResolveResult, type JewelsRunResult, type JewelsRunsResult, type JewelsTimeseriesBucket, type JewelsTimeseriesResult, type JewelsTrainResult, type LiftedDatabase, type MethodsInvokeResult, type OperationProgress, type OutboundDnsInstructions, type OutboundDnsRecord, type OutboundEmailDomainAddResult, type OutboundEmailDomainCheckResult, type OutboundEmailDomainDeleteResult, type OutboundEmailDomainUiStatus, type OutboundEmailDomainVerifyResult, type OutboundEmailDomainView, type OutboundEmailDomainsListResult, type PlatformSuppression, type PrerenderGetResult, type PrerenderInvalidateResult, type PrerenderPage, type PrerenderPagesResult, type PrerenderViewResult, type PreviewShareLink, type PreviewShareListResult, type PreviewShareResult, type PreviewShareRevokeResult, type RegisteredDomainConnection, type RegisteredDomainOffer, type RegisteredDomainQuote, type RegisteredDomainRecordType, type RegisteredDomainRecords, type RegisteredDomainStatus, type RegisteredDomainView, type RegisteredDomainZoneRecord, type RegisteredDomainsBuyResult, type RegisteredDomainsContactResult, type RegisteredDomainsContactSetResult, type RegisteredDomainsListResult, type RegisteredDomainsQuoteResult, type RegisteredDomainsRecordDeleteResult, type RegisteredDomainsRecordResult, type RegisteredDomainsSearchResult, type RegisteredDomainsZoneResult, type RegistrantContact, type ReleaseFailureFields, type ReleaseFragment, type ReleasesByCommitResult, type ReleasesGetResult, type ReleasesListResult, type RequestsGetResult, type RequestsListResult, type RequestsListRow, type RequestsStatsMethodBucket, type RequestsStatsMethodResult, type RequestsStatsSummaryBucket, type RequestsStatsSummaryResult, type SecretsDeleteResult, type SecretsGetResult, type SecretsListResult, type SecretsSetResult, type SettingsResult, type SuppressionSource, type TaskTraceOutcome, type TaskTraceSummary, type TaskTranscriptMessage, type TaskTurnError, type TasksGetResult, type TasksListResult, type TrainingLogEntry, type TrainingRunRow, type TrainingRunStatus, type UserAuthProvider, type UserListItem, type UserRecord, type UsersCreateApiKeyResult, type UsersListResult, type UsersRevokeApiKeyResult, type UsersSetRoleResult, type V2AppSettings, type V2BuildLogEntry, type V2BuildStats, type V2CommitInfo, type V2EmailMessage, type V2ReleaseStatus, type VoiceAvailableNumber, type VoiceNumbersBuyResult, type VoiceNumbersListResult, type VoiceNumbersReleaseResult, type VoiceNumbersSearchResult, type VoiceNumbersSetNameResult, type VoicePhoneNumberStatus, type VoicePhoneNumberView, type VoiceResolvedPolicy, type VoiceSessionChannel, type VoiceSessionCost, type VoiceSessionCostLine, type VoiceSessionDetail, type VoiceSessionGetResult, type VoiceSessionListItem, type VoiceSessionSip, type VoiceSessionSpeechEntry, type VoiceSessionStatus, type VoiceSessionToolEntry, type VoiceSessionTranscriptEntry, type VoiceSessionsListResult, type VoiceSettingsCeilings, type VoiceSettingsGetResult, type VoiceSettingsOverrides, type VoiceSettingsSetResult, type WorkspaceRegistrantContact, admin, createAdminClient, admin as default };
|
package/dist/index.js
CHANGED
|
@@ -361,6 +361,20 @@ function run(ctx, route) {
|
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
// src/ops/feedback.ts
|
|
365
|
+
var feedback_exports = {};
|
|
366
|
+
__export(feedback_exports, {
|
|
367
|
+
draft: () => draft
|
|
368
|
+
});
|
|
369
|
+
function draft(ctx, message) {
|
|
370
|
+
return call(
|
|
371
|
+
ctx,
|
|
372
|
+
"POST",
|
|
373
|
+
`/_internal/v2/apps/${ctx.appId}/feedback-draft`,
|
|
374
|
+
{ message }
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
364
378
|
// src/ops/data.ts
|
|
365
379
|
var data_exports = {};
|
|
366
380
|
__export(data_exports, {
|
|
@@ -1600,6 +1614,9 @@ function replay(ctx, params) {
|
|
|
1600
1614
|
// src/ops/db.ts
|
|
1601
1615
|
var db_exports = {};
|
|
1602
1616
|
__export(db_exports, {
|
|
1617
|
+
history: () => history,
|
|
1618
|
+
historyAttach: () => historyAttach,
|
|
1619
|
+
historyQuery: () => historyQuery,
|
|
1603
1620
|
query: () => query2
|
|
1604
1621
|
});
|
|
1605
1622
|
function query2(ctx, sql) {
|
|
@@ -1610,6 +1627,29 @@ function query2(ctx, sql) {
|
|
|
1610
1627
|
{ queries: [{ sql }] }
|
|
1611
1628
|
);
|
|
1612
1629
|
}
|
|
1630
|
+
function history(ctx, params = {}) {
|
|
1631
|
+
return call(
|
|
1632
|
+
ctx,
|
|
1633
|
+
"GET",
|
|
1634
|
+
`/_internal/v2/apps/${ctx.appId}/db/history${qs({ limit: params.limit, cursor: params.cursor })}`
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1637
|
+
function historyQuery(ctx, releaseId, sql) {
|
|
1638
|
+
return call(
|
|
1639
|
+
ctx,
|
|
1640
|
+
"POST",
|
|
1641
|
+
`/_internal/v2/apps/${ctx.appId}/db/history/query`,
|
|
1642
|
+
{ releaseId, queries: [{ sql }] }
|
|
1643
|
+
);
|
|
1644
|
+
}
|
|
1645
|
+
function historyAttach(ctx, releaseId, sql) {
|
|
1646
|
+
return call(
|
|
1647
|
+
ctx,
|
|
1648
|
+
"POST",
|
|
1649
|
+
`/_internal/v2/apps/${ctx.appId}/db/history/attach`,
|
|
1650
|
+
{ releaseId, queries: [{ sql }] }
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1613
1653
|
|
|
1614
1654
|
// src/ops/diagnostics.ts
|
|
1615
1655
|
var diagnostics_exports = {};
|
|
@@ -3155,6 +3195,7 @@ function buildClient(ctx) {
|
|
|
3155
3195
|
events: bindOps(events_exports, ctx),
|
|
3156
3196
|
crashes: bindOps(crashes_exports, ctx),
|
|
3157
3197
|
cron: bindOps(cron_exports, ctx),
|
|
3198
|
+
feedback: bindOps(feedback_exports, ctx),
|
|
3158
3199
|
data: bindOps(data_exports, ctx),
|
|
3159
3200
|
dataSources: bindOps(dataSources_exports, ctx),
|
|
3160
3201
|
dataSourceJobs: bindOps(dataSourceJobs_exports, ctx),
|