@madewithremy/admin 0.1.42 → 0.1.44

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/index.d.ts CHANGED
@@ -292,7 +292,7 @@ interface TasksListParams {
292
292
  * const { traces } = await admin.tasks.list({ limit: 10 });
293
293
  * const broken = traces.filter((t) => t.outcome !== 'answered' || t.toolErrorCount > 0);
294
294
  */
295
- declare function list$b(ctx: AdminContext, params?: TasksListParams): Promise<TasksListResult>;
295
+ declare function list$c(ctx: AdminContext, params?: TasksListParams): Promise<TasksListResult>;
296
296
  /**
297
297
  * One task with its full transcript: the prompt and tools it was given, its
298
298
  * input, each turn's reply and reasoning, and every tool call with what came
@@ -313,7 +313,7 @@ declare function get$9(ctx: AdminContext, traceId: string): Promise<TasksGetResu
313
313
 
314
314
  type tasks_TasksListParams = TasksListParams;
315
315
  declare namespace tasks {
316
- export { type tasks_TasksListParams as TasksListParams, get$9 as get, list$b as list };
316
+ export { type tasks_TasksListParams as TasksListParams, get$9 as get, list$c as list };
317
317
  }
318
318
 
319
319
  /**
@@ -974,7 +974,7 @@ interface CrashesStatsParams {
974
974
  * @example
975
975
  * const { errors } = await admin.crashes.list({ sort: 'frequent', limit: 10 });
976
976
  */
977
- declare function list$a(ctx: AdminContext, params?: CrashesListParams): Promise<CrashesListResult>;
977
+ declare function list$b(ctx: AdminContext, params?: CrashesListParams): Promise<CrashesListResult>;
978
978
  /**
979
979
  * Individual crash events for one fingerprint, cursor-paginated.
980
980
  *
@@ -1013,7 +1013,7 @@ type crashes_CrashesStatsParams = CrashesStatsParams;
1013
1013
  declare const crashes_occurrences: typeof occurrences;
1014
1014
  declare const crashes_stats: typeof stats;
1015
1015
  declare namespace crashes {
1016
- export { type crashes_CrashesListParams as CrashesListParams, type crashes_CrashesOccurrencesParams as CrashesOccurrencesParams, type crashes_CrashesStatsParams as CrashesStatsParams, get$8 as get, list$a as list, crashes_occurrences as occurrences, crashes_stats as stats };
1016
+ export { type crashes_CrashesListParams as CrashesListParams, type crashes_CrashesOccurrencesParams as CrashesOccurrencesParams, type crashes_CrashesStatsParams as CrashesStatsParams, get$8 as get, list$b as list, crashes_occurrences as occurrences, crashes_stats as stats };
1017
1017
  }
1018
1018
 
1019
1019
  /**
@@ -1108,7 +1108,7 @@ interface CronListParams {
1108
1108
  * const { jobs } = await admin.cron.list({ runs: 50 });
1109
1109
  * const blocked = jobs.filter((j) => j.status === 'blocked');
1110
1110
  */
1111
- declare function list$9(ctx: AdminContext, params?: CronListParams): Promise<CronOverviewResult>;
1111
+ declare function list$a(ctx: AdminContext, params?: CronListParams): Promise<CronOverviewResult>;
1112
1112
  /**
1113
1113
  * Trigger a job now (does not affect its schedule).
1114
1114
  *
@@ -1127,7 +1127,7 @@ declare function run$1(ctx: AdminContext, route: string): Promise<CronRunResult>
1127
1127
 
1128
1128
  type cron_CronListParams = CronListParams;
1129
1129
  declare namespace cron {
1130
- export { type cron_CronListParams as CronListParams, list$9 as list, run$1 as run };
1130
+ export { type cron_CronListParams as CronListParams, list$a as list, run$1 as run };
1131
1131
  }
1132
1132
 
1133
1133
  /**
@@ -2993,7 +2993,7 @@ declare function allDocuments(ctx: AdminContext, params: Omit<DocumentsParams, '
2993
2993
  * @example
2994
2994
  * const { dataSources } = await admin.dataSources.list();
2995
2995
  */
2996
- declare function list$8(ctx: AdminContext): Promise<DataSourcesListResult>;
2996
+ declare function list$9(ctx: AdminContext): Promise<DataSourcesListResult>;
2997
2997
  interface SearchParams {
2998
2998
  /** Data source slug. */
2999
2999
  slug: string;
@@ -3472,7 +3472,7 @@ declare const dataSources_waitForCandidate: typeof waitForCandidate;
3472
3472
  declare const dataSources_waitForIngest: typeof waitForIngest;
3473
3473
  declare const dataSources_waitForMove: typeof waitForMove;
3474
3474
  declare namespace dataSources {
3475
- export { type dataSources_AddDocumentParams as AddDocumentParams, type dataSources_AddDocumentResult as AddDocumentResult, type dataSources_ConfigSetParams as ConfigSetParams, type dataSources_CountParams as CountParams, type dataSources_CreateParams as CreateParams, DEFAULT_WAIT_TIMEOUT_MS$3 as DEFAULT_WAIT_TIMEOUT_MS, dataSources_DOCUMENTS_IDS_MAX as DOCUMENTS_IDS_MAX, type dataSources_DictionaryEntryInput as DictionaryEntryInput, type dataSources_DocumentsParams as DocumentsParams, type dataSources_DropParams as DropParams, type dataSources_EntitiesParams as EntitiesParams, dataSources_FAILURES_PAGE as FAILURES_PAGE, type dataSources_MoveParams as MoveParams, type dataSources_PassagesParams as PassagesParams, type dataSources_PromoteParams as PromoteParams, type dataSources_RevectorizeParams as RevectorizeParams, type dataSources_RmParams as RmParams, type dataSources_RmWhereParams as RmWhereParams, type dataSources_SearchParams as SearchParams, type dataSources_SummarizedDocument as SummarizedDocument, type dataSources_WaitForCandidateParams as WaitForCandidateParams, type dataSources_WaitForCandidateResult as WaitForCandidateResult, type dataSources_WaitForIngestParams as WaitForIngestParams, type dataSources_WaitForIngestResult as WaitForIngestResult, type dataSources_WaitForMoveParams as WaitForMoveParams, type dataSources_WaitForMoveResult as WaitForMoveResult, dataSources_addDocument as addDocument, dataSources_allDocuments as allDocuments, dataSources_configGet as configGet, dataSources_configSet as configSet, dataSources_count as count, create$1 as create, dataSources_deleteSource as deleteSource, dataSources_dictionary as dictionary, dataSources_documents as documents, dataSources_drop as drop, dataSources_entities as entities, dataSources_link as link, list$8 as list, dataSources_move as move, dataSources_passages as passages, dataSources_promote as promote, dataSources_pushDictionary as pushDictionary, dataSources_revectorize as revectorize, dataSources_rm as rm, dataSources_rmWhere as rmWhere, dataSources_rmWhereAll as rmWhereAll, search$1 as search, dataSources_stopMove as stopMove, dataSources_summarize as summarize, dataSources_waitForCandidate as waitForCandidate, dataSources_waitForIngest as waitForIngest, dataSources_waitForMove as waitForMove };
3475
+ export { type dataSources_AddDocumentParams as AddDocumentParams, type dataSources_AddDocumentResult as AddDocumentResult, type dataSources_ConfigSetParams as ConfigSetParams, type dataSources_CountParams as CountParams, type dataSources_CreateParams as CreateParams, DEFAULT_WAIT_TIMEOUT_MS$3 as DEFAULT_WAIT_TIMEOUT_MS, dataSources_DOCUMENTS_IDS_MAX as DOCUMENTS_IDS_MAX, type dataSources_DictionaryEntryInput as DictionaryEntryInput, type dataSources_DocumentsParams as DocumentsParams, type dataSources_DropParams as DropParams, type dataSources_EntitiesParams as EntitiesParams, dataSources_FAILURES_PAGE as FAILURES_PAGE, type dataSources_MoveParams as MoveParams, type dataSources_PassagesParams as PassagesParams, type dataSources_PromoteParams as PromoteParams, type dataSources_RevectorizeParams as RevectorizeParams, type dataSources_RmParams as RmParams, type dataSources_RmWhereParams as RmWhereParams, type dataSources_SearchParams as SearchParams, type dataSources_SummarizedDocument as SummarizedDocument, type dataSources_WaitForCandidateParams as WaitForCandidateParams, type dataSources_WaitForCandidateResult as WaitForCandidateResult, type dataSources_WaitForIngestParams as WaitForIngestParams, type dataSources_WaitForIngestResult as WaitForIngestResult, type dataSources_WaitForMoveParams as WaitForMoveParams, type dataSources_WaitForMoveResult as WaitForMoveResult, dataSources_addDocument as addDocument, dataSources_allDocuments as allDocuments, dataSources_configGet as configGet, dataSources_configSet as configSet, dataSources_count as count, create$1 as create, dataSources_deleteSource as deleteSource, dataSources_dictionary as dictionary, dataSources_documents as documents, dataSources_drop as drop, dataSources_entities as entities, dataSources_link as link, list$9 as list, dataSources_move as move, dataSources_passages as passages, dataSources_promote as promote, dataSources_pushDictionary as pushDictionary, dataSources_revectorize as revectorize, dataSources_rm as rm, dataSources_rmWhere as rmWhere, dataSources_rmWhereAll as rmWhereAll, search$1 as search, dataSources_stopMove as stopMove, dataSources_summarize as summarize, dataSources_waitForCandidate as waitForCandidate, dataSources_waitForIngest as waitForIngest, dataSources_waitForMove as waitForMove };
3476
3476
  }
3477
3477
 
3478
3478
  /**
@@ -3534,7 +3534,7 @@ interface ListParams$1 {
3534
3534
  /** Only this source's jobs; omit for every job on the app. */
3535
3535
  slug?: string;
3536
3536
  }
3537
- declare function list$7(ctx: AdminContext, params?: ListParams$1): Promise<DataSourceJobsListResult>;
3537
+ declare function list$8(ctx: AdminContext, params?: ListParams$1): Promise<DataSourceJobsListResult>;
3538
3538
  interface JobIdParams {
3539
3539
  id: string;
3540
3540
  }
@@ -3630,7 +3630,7 @@ declare const dataSourceJobs_uploadManifest: typeof uploadManifest;
3630
3630
  declare const dataSourceJobs_waitForJob: typeof waitForJob;
3631
3631
  declare const dataSourceJobs_waitForPlan: typeof waitForPlan;
3632
3632
  declare namespace dataSourceJobs {
3633
- export { DEFAULT_WAIT_TIMEOUT_MS$2 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceJobs_JobIdParams as JobIdParams, type ListParams$1 as ListParams, type dataSourceJobs_StartParams as StartParams, type dataSourceJobs_UploadManifestParams as UploadManifestParams, type WaitParams$1 as WaitParams, type dataSourceJobs_WaitResult as WaitResult, dataSourceJobs_approve as approve, dataSourceJobs_cancel as cancel, dataSourceJobs_describeProgress as describeProgress, get$7 as get, list$7 as list, dataSourceJobs_pause as pause, resume$1 as resume, dataSourceJobs_retry as retry, dataSourceJobs_start as start, dataSourceJobs_uploadManifest as uploadManifest, dataSourceJobs_waitForJob as waitForJob, dataSourceJobs_waitForPlan as waitForPlan };
3633
+ export { DEFAULT_WAIT_TIMEOUT_MS$2 as DEFAULT_WAIT_TIMEOUT_MS, type dataSourceJobs_JobIdParams as JobIdParams, type ListParams$1 as ListParams, type dataSourceJobs_StartParams as StartParams, type dataSourceJobs_UploadManifestParams as UploadManifestParams, type WaitParams$1 as WaitParams, type dataSourceJobs_WaitResult as WaitResult, dataSourceJobs_approve as approve, dataSourceJobs_cancel as cancel, dataSourceJobs_describeProgress as describeProgress, get$7 as get, list$8 as list, dataSourceJobs_pause as pause, resume$1 as resume, dataSourceJobs_retry as retry, dataSourceJobs_start as start, dataSourceJobs_uploadManifest as uploadManifest, dataSourceJobs_waitForJob as waitForJob, dataSourceJobs_waitForPlan as waitForPlan };
3634
3634
  }
3635
3635
 
3636
3636
  /**
@@ -4737,9 +4737,10 @@ interface BuyParams {
4737
4737
  * @throws AdminApiError `registrant_contact_required` (400) — set the contact
4738
4738
  * first; `price_changed` (409) — the message has the new price, to confirm
4739
4739
  * again; `insufficient_credits/*` (402);
4740
- * `entitlement_required:registered_domains` (422) — the workspace's plan
4741
- * holds no more domains, with what would unlock more in `details`;
4742
- * `domain_registration_rate` (429);
4740
+ * `entitlement_required:remy_build` (422) — the workspace doesn't build in
4741
+ * Remy, with what would unlock it in `details`; `domain_limit_reached`
4742
+ * (422) — it holds as many domains as it may (20 unless support raised
4743
+ * it); `domain_registration_rate` (429);
4743
4744
  * `domain_unavailable`, `tld_not_supported`, `trademark_claim` (400);
4744
4745
  * `registrar_busy` (429); `registrar_payment` — temporarily unavailable;
4745
4746
  * `namecom_not_configured` (400).
@@ -5855,7 +5856,7 @@ interface ListParams {
5855
5856
  * @example
5856
5857
  * const { resources, offerings } = await admin.infra.list();
5857
5858
  */
5858
- declare function list$6(ctx: AdminContext, params?: ListParams): Promise<InfraListResult>;
5859
+ declare function list$7(ctx: AdminContext, params?: ListParams): Promise<InfraListResult>;
5859
5860
  interface GetParams {
5860
5861
  /** Resource id. */
5861
5862
  id: string;
@@ -6016,7 +6017,7 @@ declare const infra_resize: typeof resize;
6016
6017
  declare const infra_resume: typeof resume;
6017
6018
  declare const infra_waitForPhase: typeof waitForPhase;
6018
6019
  declare namespace infra {
6019
- export { infra_DEFAULT_WAIT_TIMEOUT_MS as DEFAULT_WAIT_TIMEOUT_MS, type infra_GetParams as GetParams, type infra_ListParams as ListParams, type infra_LogsParams as LogsParams, type infra_ProvisionParams as ProvisionParams, type infra_RenameParams as RenameParams, type infra_ResizeParams as ResizeParams, type infra_ResourceIdParams as ResourceIdParams, type infra_WaitForPhaseParams as WaitForPhaseParams, type infra_WaitForPhaseResult as WaitForPhaseResult, infra_destroy as destroy, get$4 as get, infra_hibernate as hibernate, list$6 as list, infra_logs as logs, infra_provision as provision, infra_rename as rename, infra_resize as resize, infra_resume as resume, infra_waitForPhase as waitForPhase };
6020
+ export { infra_DEFAULT_WAIT_TIMEOUT_MS as DEFAULT_WAIT_TIMEOUT_MS, type infra_GetParams as GetParams, type infra_ListParams as ListParams, type infra_LogsParams as LogsParams, type infra_ProvisionParams as ProvisionParams, type infra_RenameParams as RenameParams, type infra_ResizeParams as ResizeParams, type infra_ResourceIdParams as ResourceIdParams, type infra_WaitForPhaseParams as WaitForPhaseParams, type infra_WaitForPhaseResult as WaitForPhaseResult, infra_destroy as destroy, get$4 as get, infra_hibernate as hibernate, list$7 as list, infra_logs as logs, infra_provision as provision, infra_rename as rename, infra_resize as resize, infra_resume as resume, infra_waitForPhase as waitForPhase };
6020
6021
  }
6021
6022
 
6022
6023
  /**
@@ -6156,7 +6157,7 @@ interface IssuesListParams {
6156
6157
  * @example
6157
6158
  * const { issues } = await admin.issues.list({ status: 'open', labels: ['bug'] });
6158
6159
  */
6159
- declare function list$5(ctx: AdminContext, params?: IssuesListParams): Promise<IssuesListResult>;
6160
+ declare function list$6(ctx: AdminContext, params?: IssuesListParams): Promise<IssuesListResult>;
6160
6161
  /**
6161
6162
  * List the issues this app filed INTO other apps, newest-first.
6162
6163
  *
@@ -6296,7 +6297,7 @@ declare const issues_edit: typeof edit;
6296
6297
  declare const issues_filed: typeof filed;
6297
6298
  declare const issues_reopen: typeof reopen;
6298
6299
  declare namespace issues {
6299
- export { type issues_IssuesCreateParams as IssuesCreateParams, type issues_IssuesEditParams as IssuesEditParams, type issues_IssuesListParams as IssuesListParams, issues_close as close, issues_comment as comment, issues_create as create, del$1 as del, issues_edit as edit, issues_filed as filed, get$3 as get, list$5 as list, issues_reopen as reopen };
6300
+ export { type issues_IssuesCreateParams as IssuesCreateParams, type issues_IssuesEditParams as IssuesEditParams, type issues_IssuesListParams as IssuesListParams, issues_close as close, issues_comment as comment, issues_create as create, del$1 as del, issues_edit as edit, issues_filed as filed, get$3 as get, list$6 as list, issues_reopen as reopen };
6300
6301
  }
6301
6302
 
6302
6303
  /**
@@ -7216,7 +7217,7 @@ interface MethodsInvokeParams {
7216
7217
  * const methods = await admin.methods.list();
7217
7218
  * const target = methods.find((m) => m.id === 'mth_abc123');
7218
7219
  */
7219
- declare function list$4(ctx: AdminContext): Promise<DashboardReleaseMethod[]>;
7220
+ declare function list$5(ctx: AdminContext): Promise<DashboardReleaseMethod[]>;
7220
7221
  /**
7221
7222
  * Invoke a method and return its output (non-streaming).
7222
7223
  *
@@ -7240,7 +7241,7 @@ declare const methods_METHOD_RUN_TIMEOUT_MS: typeof METHOD_RUN_TIMEOUT_MS;
7240
7241
  type methods_MethodsInvokeParams = MethodsInvokeParams;
7241
7242
  declare const methods_invoke: typeof invoke;
7242
7243
  declare namespace methods {
7243
- export { methods_METHOD_RUN_TIMEOUT_MS as METHOD_RUN_TIMEOUT_MS, type methods_MethodsInvokeParams as MethodsInvokeParams, methods_invoke as invoke, list$4 as list };
7244
+ export { methods_METHOD_RUN_TIMEOUT_MS as METHOD_RUN_TIMEOUT_MS, type methods_MethodsInvokeParams as MethodsInvokeParams, methods_invoke as invoke, list$5 as list };
7244
7245
  }
7245
7246
 
7246
7247
  /**
@@ -7369,6 +7370,105 @@ declare namespace prerender {
7369
7370
  export { type prerender_PrerenderInvalidateParams as PrerenderInvalidateParams, type prerender_PrerenderPagesParams as PrerenderPagesParams, type prerender_PrerenderViewParams as PrerenderViewParams, prerender_invalidate as invalidate, prerender_pages as pages, prerender_view as view };
7370
7371
  }
7371
7372
 
7373
+ /**
7374
+ * Response shapes for the previews command group — transcribed from the api.
7375
+ *
7376
+ * Sources (apps/api/src/):
7377
+ * roles/http/routes/Apps/manage/preview.ts (the share routes)
7378
+ * customerApps/AppReleases/dao/PreviewShareLinksDao.ts (PreviewShareLink ~line 24)
7379
+ */
7380
+ /** A share link to a branch's preview: branch-scoped, revocable, always expiring. */
7381
+ interface PreviewShareLink {
7382
+ id: string;
7383
+ appId: string;
7384
+ branch: string;
7385
+ label: string | null;
7386
+ createdBy: string | null;
7387
+ createdAt: string;
7388
+ expiresAt: string;
7389
+ revokedAt: string | null;
7390
+ lastAccessedAt: string | null;
7391
+ accessCount: number;
7392
+ }
7393
+ /** A new share link. `url` and `token` are shown once and can't be recovered. */
7394
+ interface PreviewShareResult {
7395
+ link: PreviewShareLink;
7396
+ /** For a person: opening it sets the preview's cookie, then shows the app. */
7397
+ url: string;
7398
+ /**
7399
+ * For a client with no cookie jar (curl, git, CI): sent as the
7400
+ * `X-Remy-Preview` header on requests to `previewUrl`.
7401
+ */
7402
+ token: string;
7403
+ /** The branch's preview host, which follows the branch as it's pushed. */
7404
+ previewUrl: string;
7405
+ }
7406
+ interface PreviewShareListResult {
7407
+ links: PreviewShareLink[];
7408
+ }
7409
+ interface PreviewShareRevokeResult {
7410
+ link: PreviewShareLink;
7411
+ }
7412
+
7413
+ /**
7414
+ * Branch preview share-link operations.
7415
+ *
7416
+ * Ops are pure: (ctx, params) → typed result, throwing AdminApiError /
7417
+ * AdminTimeoutError. No printing, no process coupling — the CLI skin in
7418
+ * commands/previews.ts and the importable client both call these.
7419
+ */
7420
+
7421
+ interface PreviewShareParams {
7422
+ /** The branch whose preview the link opens. It must have a preview build. */
7423
+ branch: string;
7424
+ /** Days until the link expires (default 14, max 30). */
7425
+ days?: number;
7426
+ /** Who the link is for, shown in the dashboard's list of the branch's links. */
7427
+ label?: string;
7428
+ }
7429
+ /**
7430
+ * Make a share link to a branch's preview.
7431
+ *
7432
+ * A person opens `url`. A client with no cookie jar (curl, git, CI, a test
7433
+ * run) sends `token` as the `X-Remy-Preview` header on requests to
7434
+ * `previewUrl`, beside the app's own `Authorization` where the app needs one.
7435
+ * The link follows the branch, so it shows each new preview as it's pushed.
7436
+ * `url` and `token` are returned once and can't be recovered; revoking the
7437
+ * link shuts out both at once.
7438
+ *
7439
+ * @throws AdminApiError `missing_branch` (400); `no_preview_for_branch` (404) —
7440
+ * the branch has no preview build yet.
7441
+ * @example
7442
+ * const { previewUrl, token } = await admin.previews.share({ branch: 'feature-x' });
7443
+ * await fetch(`${previewUrl}/_/api/health`, { headers: { 'X-Remy-Preview': token } });
7444
+ */
7445
+ declare function share(ctx: AdminContext, params: PreviewShareParams): Promise<PreviewShareResult>;
7446
+ /**
7447
+ * A branch's share links, revoked and expired ones included. Never their
7448
+ * tokens, which aren't kept.
7449
+ *
7450
+ * @throws AdminApiError `missing_branch` (400).
7451
+ * @example
7452
+ * const { links } = await admin.previews.list('feature-x');
7453
+ */
7454
+ declare function list$4(ctx: AdminContext, branch: string): Promise<PreviewShareListResult>;
7455
+ /**
7456
+ * Revoke a share link: its cookie and its token stop opening the preview at
7457
+ * once. Revoking one already revoked keeps its first revocation.
7458
+ *
7459
+ * @throws AdminApiError `share_link_not_found` (404).
7460
+ * @example
7461
+ * await admin.previews.revoke(link.id);
7462
+ */
7463
+ declare function revoke(ctx: AdminContext, shareId: string): Promise<PreviewShareRevokeResult>;
7464
+
7465
+ type previews_PreviewShareParams = PreviewShareParams;
7466
+ declare const previews_revoke: typeof revoke;
7467
+ declare const previews_share: typeof share;
7468
+ declare namespace previews {
7469
+ export { type previews_PreviewShareParams as PreviewShareParams, list$4 as list, previews_revoke as revoke, previews_share as share };
7470
+ }
7471
+
7372
7472
  /**
7373
7473
  * Response types for browser-QA replay recordings.
7374
7474
  *
@@ -7728,7 +7828,10 @@ interface RequestsGetResult {
7728
7828
  interface: string;
7729
7829
  /** Raw method input payload (jsonb). */
7730
7830
  input: unknown;
7731
- /** Raw method output payload (jsonb). */
7831
+ /**
7832
+ * Raw method output payload (jsonb). One past 256 KB of JSON is
7833
+ * `{ truncated: true, bytes, sha256, preview }`, its first 16 KB.
7834
+ */
7732
7835
  output: unknown;
7733
7836
  /** Error object written by the executor (jsonb). */
7734
7837
  error: unknown;
@@ -8709,6 +8812,7 @@ declare function buildClient(ctx: AdminContext): {
8709
8812
  jewels: BoundOps<typeof jewels>;
8710
8813
  methods: BoundOps<typeof methods>;
8711
8814
  prerender: BoundOps<typeof prerender>;
8815
+ previews: BoundOps<typeof previews>;
8712
8816
  qaRecordings: BoundOps<typeof qaRecordings>;
8713
8817
  releases: BoundOps<typeof releases>;
8714
8818
  requests: BoundOps<typeof requests>;
@@ -8760,4 +8864,4 @@ declare class AdminTimeoutError extends Error {
8760
8864
 
8761
8865
  declare const admin: AdminClient;
8762
8866
 
8763
- 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 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 };
8867
+ 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 };
package/dist/index.js CHANGED
@@ -2660,6 +2660,36 @@ function invalidate(ctx, params = {}) {
2660
2660
  );
2661
2661
  }
2662
2662
 
2663
+ // src/ops/previews.ts
2664
+ var previews_exports = {};
2665
+ __export(previews_exports, {
2666
+ list: () => list11,
2667
+ revoke: () => revoke,
2668
+ share: () => share
2669
+ });
2670
+ function share(ctx, params) {
2671
+ return call(
2672
+ ctx,
2673
+ "POST",
2674
+ `/_internal/v2/apps/${ctx.appId}/preview/shares`,
2675
+ { branch: params.branch, days: params.days, label: params.label }
2676
+ );
2677
+ }
2678
+ function list11(ctx, branch) {
2679
+ return call(
2680
+ ctx,
2681
+ "GET",
2682
+ `/_internal/v2/apps/${ctx.appId}/preview/shares${qs({ branch })}`
2683
+ );
2684
+ }
2685
+ function revoke(ctx, shareId) {
2686
+ return call(
2687
+ ctx,
2688
+ "POST",
2689
+ `/_internal/v2/apps/${ctx.appId}/preview/shares/${seg(shareId)}/revoke`
2690
+ );
2691
+ }
2692
+
2663
2693
  // src/ops/qaRecordings.ts
2664
2694
  var qaRecordings_exports = {};
2665
2695
  __export(qaRecordings_exports, {
@@ -2821,11 +2851,11 @@ async function exportVideo(_ctx, params) {
2821
2851
  var requests_exports = {};
2822
2852
  __export(requests_exports, {
2823
2853
  get: () => get10,
2824
- list: () => list11,
2854
+ list: () => list12,
2825
2855
  statsForMethod: () => statsForMethod,
2826
2856
  statsSummary: () => statsSummary
2827
2857
  });
2828
- function list11(ctx, params = {}) {
2858
+ function list12(ctx, params = {}) {
2829
2859
  return call(
2830
2860
  ctx,
2831
2861
  "GET",
@@ -2859,10 +2889,10 @@ var secrets_exports = {};
2859
2889
  __export(secrets_exports, {
2860
2890
  del: () => del2,
2861
2891
  get: () => get11,
2862
- list: () => list12,
2892
+ list: () => list13,
2863
2893
  set: () => set2
2864
2894
  });
2865
- function list12(ctx) {
2895
+ function list13(ctx) {
2866
2896
  return call(
2867
2897
  ctx,
2868
2898
  "GET",
@@ -2925,11 +2955,11 @@ function updateSettings(ctx, partial) {
2925
2955
  var users_exports = {};
2926
2956
  __export(users_exports, {
2927
2957
  createApiKey: () => createApiKey,
2928
- list: () => list13,
2958
+ list: () => list14,
2929
2959
  revokeApiKey: () => revokeApiKey,
2930
2960
  setRole: () => setRole
2931
2961
  });
2932
- function list13(ctx, params = {}) {
2962
+ function list14(ctx, params = {}) {
2933
2963
  return call(
2934
2964
  ctx,
2935
2965
  "GET",
@@ -3151,6 +3181,7 @@ function buildClient(ctx) {
3151
3181
  jewels: bindOps(jewels_exports, ctx),
3152
3182
  methods: bindOps(methods_exports, ctx),
3153
3183
  prerender: bindOps(prerender_exports, ctx),
3184
+ previews: bindOps(previews_exports, ctx),
3154
3185
  qaRecordings: bindOps(qaRecordings_exports, ctx),
3155
3186
  releases: bindOps(releases_exports, ctx),
3156
3187
  requests: bindOps(requests_exports, ctx),