@madewithremy/admin 0.1.4 → 0.1.6

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
@@ -591,10 +591,22 @@ interface EventsPublishResult {
591
591
  * error.
592
592
  */
593
593
  delivered: number;
594
+ /**
595
+ * The platform-stamped publish id — the same id arrives on every delivered
596
+ * frame, so it correlates a test publish with `events tail` output.
597
+ */
598
+ id: string;
594
599
  scope: string;
595
600
  }
596
- /** One frame printed by `events tail` (also the subscribe stream's shape). */
601
+ /**
602
+ * One frame printed by `events tail` (also the subscribe stream's shape).
603
+ * A slow reader may also see `{ type: 'events_dropped', count, ts }` — the
604
+ * platform drops rather than buffers when a consumer falls behind, and says
605
+ * how many frames it dropped once the stream drains.
606
+ */
597
607
  interface EventsTailFrame {
608
+ /** Platform-stamped publish id (consumer dedupe key: `id` + `channel`). */
609
+ id: string;
598
610
  channel: string;
599
611
  data: unknown;
600
612
  /** Publish time, ms since epoch. */
@@ -796,7 +808,7 @@ interface CrashesStatsParams {
796
808
  * @example
797
809
  * const { errors } = await admin.crashes.list({ sort: 'frequent', limit: 10 });
798
810
  */
799
- declare function list$8(ctx: AdminContext, params?: CrashesListParams): Promise<CrashesListResult>;
811
+ declare function list$9(ctx: AdminContext, params?: CrashesListParams): Promise<CrashesListResult>;
800
812
  /**
801
813
  * Individual crash events for one fingerprint, cursor-paginated.
802
814
  *
@@ -817,7 +829,7 @@ declare function occurrences(ctx: AdminContext, fingerprint: string, params?: Cr
817
829
  * @example
818
830
  * const event = await admin.crashes.get('evt_xyz789');
819
831
  */
820
- declare function get$5(ctx: AdminContext, eventId: string): Promise<CrashesGetResult>;
832
+ declare function get$6(ctx: AdminContext, eventId: string): Promise<CrashesGetResult>;
821
833
  /**
822
834
  * Bucketed time series of total crash occurrence volume for the app.
823
835
  *
@@ -835,7 +847,7 @@ type crashes_CrashesStatsParams = CrashesStatsParams;
835
847
  declare const crashes_occurrences: typeof occurrences;
836
848
  declare const crashes_stats: typeof stats;
837
849
  declare namespace crashes {
838
- export { type crashes_CrashesListParams as CrashesListParams, type crashes_CrashesOccurrencesParams as CrashesOccurrencesParams, type crashes_CrashesStatsParams as CrashesStatsParams, get$5 as get, list$8 as list, crashes_occurrences as occurrences, crashes_stats as stats };
850
+ export { type crashes_CrashesListParams as CrashesListParams, type crashes_CrashesOccurrencesParams as CrashesOccurrencesParams, type crashes_CrashesStatsParams as CrashesStatsParams, get$6 as get, list$9 as list, crashes_occurrences as occurrences, crashes_stats as stats };
839
851
  }
840
852
 
841
853
  /**
@@ -930,7 +942,7 @@ interface CronListParams {
930
942
  * const { jobs } = await admin.cron.list({ runs: 50 });
931
943
  * const blocked = jobs.filter((j) => j.status === 'blocked');
932
944
  */
933
- declare function list$7(ctx: AdminContext, params?: CronListParams): Promise<CronOverviewResult>;
945
+ declare function list$8(ctx: AdminContext, params?: CronListParams): Promise<CronOverviewResult>;
934
946
  /**
935
947
  * Trigger a job now (does not affect its schedule).
936
948
  *
@@ -950,7 +962,7 @@ declare function run(ctx: AdminContext, route: string): Promise<CronRunResult>;
950
962
  type cron_CronListParams = CronListParams;
951
963
  declare const cron_run: typeof run;
952
964
  declare namespace cron {
953
- export { type cron_CronListParams as CronListParams, list$7 as list, cron_run as run };
965
+ export { type cron_CronListParams as CronListParams, list$8 as list, cron_run as run };
954
966
  }
955
967
 
956
968
  /**
@@ -1063,10 +1075,20 @@ declare namespace data {
1063
1075
  * Chunking settings pinned at pipeline creation.
1064
1076
  * Any change requires a revectorize, not a config update.
1065
1077
  */
1078
+ /**
1079
+ * `structural` splits on document structure (headings, blocks, paragraphs);
1080
+ * `whole` embeds each document as a single chunk, for corpora of short records
1081
+ * where the document is the retrieval unit.
1082
+ */
1083
+ type DataSourcesChunkingStrategy = 'structural' | 'whole';
1066
1084
  interface DataSourcesChunkingConfig {
1067
- strategy: 'structural';
1085
+ strategy: DataSourcesChunkingStrategy;
1068
1086
  version: number;
1069
- /** Rough char budget per chunk; structure wins over budget, never the reverse. */
1087
+ /**
1088
+ * Rough char budget per chunk; structure wins over budget, never the reverse.
1089
+ * For `whole`, the ceiling above which a document is chunked structurally
1090
+ * instead (default 24000).
1091
+ */
1070
1092
  maxChars: number;
1071
1093
  /** Below this a chunk is merged forward rather than embedded on its own. */
1072
1094
  minChars: number;
@@ -1111,6 +1133,8 @@ interface DataSourcesIngestConfig {
1111
1133
  */
1112
1134
  interface DataSourcesIngestUpdate {
1113
1135
  chunking?: {
1136
+ /** Naming a strategy pins its current version; versions are not settable. */
1137
+ strategy?: DataSourcesChunkingStrategy;
1114
1138
  maxChars?: number;
1115
1139
  minChars?: number;
1116
1140
  dropBlockTypes?: string[];
@@ -1123,8 +1147,13 @@ interface DataSourcesIngestUpdate {
1123
1147
  describe?: boolean;
1124
1148
  modelId?: string;
1125
1149
  };
1150
+ /**
1151
+ * `dimensions` must be the model's native size or one of its Matryoshka
1152
+ * sizes; omitted = native. Either half alone re-resolves the pair.
1153
+ */
1126
1154
  embedding?: {
1127
- modelId: string;
1155
+ modelId?: string;
1156
+ dimensions?: number;
1128
1157
  };
1129
1158
  extraction?: {
1130
1159
  modelId: string;
@@ -1191,13 +1220,16 @@ interface DataSourcesDocumentStatus {
1191
1220
  ingestedAt: string | null;
1192
1221
  }
1193
1222
  /**
1194
- * GET /datasources/documents — per-document ingest state for one pipeline.
1223
+ * GET /datasources/documents — one page of per-document ingest state for one
1224
+ * pipeline, oldest first.
1195
1225
  *
1196
1226
  * `pipelineVersion` is absent when the data source does not exist (returns `{ documents: [] }`).
1197
- * `candidate=true` watches a migration in progress.
1227
+ * `candidate=true` watches a migration in progress. `nextCursor` is set when
1228
+ * more pages follow; `allDocuments` walks them.
1198
1229
  */
1199
1230
  interface DataSourcesDocumentsResult {
1200
1231
  pipelineVersion?: number;
1232
+ nextCursor?: string | null;
1201
1233
  documents: DataSourcesDocumentStatus[];
1202
1234
  }
1203
1235
  /**
@@ -1230,6 +1262,17 @@ interface DataSourcesBuildProgress {
1230
1262
  processing: number;
1231
1263
  error: number;
1232
1264
  }
1265
+ /**
1266
+ * Where a source's index lives. Null is the shared pool. `phase` is the
1267
+ * resource's lifecycle phase (see types/infra.ts); anything but `active` means
1268
+ * searches on this source fail with `capacity_<phase>`.
1269
+ */
1270
+ interface DataSourcesPlacement {
1271
+ resourceId: string;
1272
+ name: string | null;
1273
+ offeringLabel: string | null;
1274
+ phase: string;
1275
+ }
1233
1276
  /** One data source in the GET /datasources listing. */
1234
1277
  interface DataSourcesListEntry {
1235
1278
  id: string;
@@ -1251,6 +1294,8 @@ interface DataSourcesListEntry {
1251
1294
  version: number;
1252
1295
  progress: DataSourcesBuildProgress;
1253
1296
  } | null;
1297
+ /** Dedicated placement, or null for the shared pool. */
1298
+ placement: DataSourcesPlacement | null;
1254
1299
  createdAt: string;
1255
1300
  }
1256
1301
  /** GET /datasources — all data sources for the app. */
@@ -1338,8 +1383,26 @@ interface DataSourcesConfigResult {
1338
1383
  /** POST /datasources/config — response after updating configuration. */
1339
1384
  interface DataSourcesConfigUpdateResult {
1340
1385
  ingestChanged: boolean;
1386
+ placementChanged: boolean;
1341
1387
  ingest: DataSourcesIngestConfig;
1342
1388
  retrieval: Partial<DataSourcesRetrievalConfig>;
1389
+ placement: DataSourcesPlacement | null;
1390
+ }
1391
+ /** POST /datasources — an empty source, on the requested placement. */
1392
+ interface DataSourcesCreateResult {
1393
+ dataSource: {
1394
+ id: string;
1395
+ slug: string;
1396
+ name: string | null;
1397
+ /** Dedicated resource id, or null for the shared pool. */
1398
+ resourceId: string | null;
1399
+ createdAt: string;
1400
+ };
1401
+ pipeline: {
1402
+ version: number;
1403
+ config: DataSourcesIngestConfig;
1404
+ };
1405
+ placement: DataSourcesPlacement | null;
1343
1406
  }
1344
1407
  /**
1345
1408
  * POST /datasources/revectorize — starts a new candidate pipeline alongside the live one.
@@ -1393,7 +1456,7 @@ interface DataSourcesDocumentDeleteResult {
1393
1456
  */
1394
1457
 
1395
1458
  /** @internal Consumed by the CLI skin; waitForIngest documents the default. */
1396
- declare const DEFAULT_WAIT_TIMEOUT_MS: number;
1459
+ declare const DEFAULT_WAIT_TIMEOUT_MS$1: number;
1397
1460
  /**
1398
1461
  * The per-document summary projection used by waitForIngest, status, and the
1399
1462
  * revectorize watch loop in the skin. Exported so the skin can reuse it for
@@ -1495,17 +1558,37 @@ interface DocumentsParams {
1495
1558
  slug: string;
1496
1559
  /** true → watch a candidate pipeline (revectorize in progress). */
1497
1560
  candidate?: boolean;
1561
+ /** Only these documents (at most DOCUMENTS_IDS_MAX per request). */
1562
+ ids?: string[];
1563
+ /** Page size, 1..1000 (server default 500). */
1564
+ limit?: number;
1565
+ /** `nextCursor` from the previous page. */
1566
+ cursor?: string;
1498
1567
  }
1568
+ /** The server's cap on `ids` per request; `allDocuments` chunks to it. */
1569
+ declare const DOCUMENTS_IDS_MAX = 200;
1499
1570
  /**
1500
- * Fetch per-document ingest state for one pipeline.
1571
+ * Fetch one page of per-document ingest state for one pipeline, oldest first.
1501
1572
  *
1502
1573
  * Returns an empty document list when the data source does not exist yet.
1503
- * Pass `candidate: true` to watch a revectorization in progress.
1574
+ * Pass `candidate: true` to watch a revectorization in progress. Follow
1575
+ * `nextCursor` for the next page, or use `allDocuments` to walk them all.
1504
1576
  *
1505
1577
  * @example
1506
- * const { documents } = await admin.dataSources.documents({ slug: 'policies' });
1578
+ * const { documents, nextCursor } = await admin.dataSources.documents({ slug: 'policies' });
1507
1579
  */
1508
1580
  declare function documents(ctx: AdminContext, params: DocumentsParams): Promise<DataSourcesDocumentsResult>;
1581
+ /**
1582
+ * Every document (or every one of `ids`), following pages to the end.
1583
+ *
1584
+ * With `ids`, requests are chunked to the server's per-request cap, so a wait
1585
+ * over hundreds of just-added files stays a handful of small calls rather than
1586
+ * a walk of the whole source.
1587
+ *
1588
+ * @example
1589
+ * const docs = await admin.dataSources.allDocuments({ slug: 'policies' });
1590
+ */
1591
+ declare function allDocuments(ctx: AdminContext, params: Omit<DocumentsParams, 'cursor' | 'limit'>): Promise<DataSourcesDocumentStatus[]>;
1509
1592
  /**
1510
1593
  * List all data sources with document counts, build progress, and active
1511
1594
  * version metadata.
@@ -1513,7 +1596,7 @@ declare function documents(ctx: AdminContext, params: DocumentsParams): Promise<
1513
1596
  * @example
1514
1597
  * const { dataSources } = await admin.dataSources.list();
1515
1598
  */
1516
- declare function list$6(ctx: AdminContext): Promise<DataSourcesListResult>;
1599
+ declare function list$7(ctx: AdminContext): Promise<DataSourcesListResult>;
1517
1600
  interface SearchParams {
1518
1601
  /** Data source slug. */
1519
1602
  slug: string;
@@ -1576,6 +1659,15 @@ interface ConfigSetParams {
1576
1659
  * required.
1577
1660
  */
1578
1661
  retrieval?: DataSourcesRetrievalUpdate;
1662
+ /**
1663
+ * Where the corpus lives: a dedicated resource (see `admin.infra`) or the
1664
+ * shared pool. Accepted only while the source has no built documents —
1665
+ * moving a populated source is refused with
1666
+ * `placement_change_requires_migration`.
1667
+ */
1668
+ placement?: {
1669
+ resourceId: string;
1670
+ } | 'shared';
1579
1671
  }
1580
1672
  /**
1581
1673
  * Update pipeline configuration.
@@ -1593,6 +1685,37 @@ interface ConfigSetParams {
1593
1685
  * });
1594
1686
  */
1595
1687
  declare function configSet(ctx: AdminContext, params: ConfigSetParams): Promise<DataSourcesConfigUpdateResult>;
1688
+ interface CreateParams {
1689
+ /** Data source slug: lowercase [a-z0-9_-], up to 64 characters. */
1690
+ slug: string;
1691
+ /** Display name. */
1692
+ name?: string;
1693
+ /** Pinned ingest settings for the new pipeline; platform defaults otherwise. */
1694
+ ingest?: DataSourcesIngestUpdate;
1695
+ /**
1696
+ * Where the corpus lives from the start: a dedicated resource (see
1697
+ * `admin.infra`) or the shared pool (the default).
1698
+ */
1699
+ placement?: {
1700
+ resourceId: string;
1701
+ } | 'shared';
1702
+ }
1703
+ /**
1704
+ * Create an empty data source, optionally on dedicated capacity.
1705
+ *
1706
+ * The one-step way to start a corpus on a resource. `add` also creates a
1707
+ * source on first use, but on the shared pool, and a source with built
1708
+ * documents cannot move, so a corpus meant for dedicated capacity starts here.
1709
+ * Calling this for a source that already exists returns it; a placement given
1710
+ * then follows `configSet`'s rule and moves it only while it is empty.
1711
+ *
1712
+ * @throws AdminApiError `invalid_data_source` (400), `data_source_limit` (422),
1713
+ * `resource_not_found` (404), `resource_destroyed` (422),
1714
+ * `placement_change_requires_migration` (422).
1715
+ * @example
1716
+ * await admin.dataSources.create({ slug: 'archive', placement: { resourceId } });
1717
+ */
1718
+ declare function create$1(ctx: AdminContext, params: CreateParams): Promise<DataSourcesCreateResult>;
1596
1719
  interface RevectorizeParams {
1597
1720
  /** Data source slug. */
1598
1721
  slug: string;
@@ -1688,7 +1811,8 @@ declare function deleteSource(ctx: AdminContext, slug: string): Promise<DataSour
1688
1811
  type dataSources_AddDocumentParams = AddDocumentParams;
1689
1812
  type dataSources_AddDocumentResult = AddDocumentResult;
1690
1813
  type dataSources_ConfigSetParams = ConfigSetParams;
1691
- declare const dataSources_DEFAULT_WAIT_TIMEOUT_MS: typeof DEFAULT_WAIT_TIMEOUT_MS;
1814
+ type dataSources_CreateParams = CreateParams;
1815
+ declare const dataSources_DOCUMENTS_IDS_MAX: typeof DOCUMENTS_IDS_MAX;
1692
1816
  type dataSources_DocumentsParams = DocumentsParams;
1693
1817
  type dataSources_DropParams = DropParams;
1694
1818
  type dataSources_PromoteParams = PromoteParams;
@@ -1699,6 +1823,7 @@ type dataSources_SummarizedDocument = SummarizedDocument;
1699
1823
  type dataSources_WaitForIngestParams = WaitForIngestParams;
1700
1824
  type dataSources_WaitForIngestResult = WaitForIngestResult;
1701
1825
  declare const dataSources_addDocument: typeof addDocument;
1826
+ declare const dataSources_allDocuments: typeof allDocuments;
1702
1827
  declare const dataSources_configGet: typeof configGet;
1703
1828
  declare const dataSources_configSet: typeof configSet;
1704
1829
  declare const dataSources_deleteSource: typeof deleteSource;
@@ -1711,7 +1836,7 @@ declare const dataSources_search: typeof search;
1711
1836
  declare const dataSources_summarize: typeof summarize;
1712
1837
  declare const dataSources_waitForIngest: typeof waitForIngest;
1713
1838
  declare namespace dataSources {
1714
- export { type dataSources_AddDocumentParams as AddDocumentParams, type dataSources_AddDocumentResult as AddDocumentResult, type dataSources_ConfigSetParams as ConfigSetParams, dataSources_DEFAULT_WAIT_TIMEOUT_MS as DEFAULT_WAIT_TIMEOUT_MS, type dataSources_DocumentsParams as DocumentsParams, type dataSources_DropParams as DropParams, type dataSources_PromoteParams as PromoteParams, type dataSources_RevectorizeParams as RevectorizeParams, type dataSources_RmParams as RmParams, type dataSources_SearchParams as SearchParams, type dataSources_SummarizedDocument as SummarizedDocument, type dataSources_WaitForIngestParams as WaitForIngestParams, type dataSources_WaitForIngestResult as WaitForIngestResult, dataSources_addDocument as addDocument, dataSources_configGet as configGet, dataSources_configSet as configSet, dataSources_deleteSource as deleteSource, dataSources_documents as documents, dataSources_drop as drop, list$6 as list, dataSources_promote as promote, dataSources_revectorize as revectorize, dataSources_rm as rm, dataSources_search as search, dataSources_summarize as summarize, dataSources_waitForIngest as waitForIngest };
1839
+ export { type dataSources_AddDocumentParams as AddDocumentParams, type dataSources_AddDocumentResult as AddDocumentResult, type dataSources_ConfigSetParams as ConfigSetParams, type dataSources_CreateParams as CreateParams, DEFAULT_WAIT_TIMEOUT_MS$1 as DEFAULT_WAIT_TIMEOUT_MS, dataSources_DOCUMENTS_IDS_MAX as DOCUMENTS_IDS_MAX, type dataSources_DocumentsParams as DocumentsParams, type dataSources_DropParams as DropParams, type dataSources_PromoteParams as PromoteParams, type dataSources_RevectorizeParams as RevectorizeParams, type dataSources_RmParams as RmParams, type dataSources_SearchParams as SearchParams, type dataSources_SummarizedDocument as SummarizedDocument, type dataSources_WaitForIngestParams as WaitForIngestParams, type dataSources_WaitForIngestResult as WaitForIngestResult, dataSources_addDocument as addDocument, dataSources_allDocuments as allDocuments, dataSources_configGet as configGet, dataSources_configSet as configSet, create$1 as create, dataSources_deleteSource as deleteSource, dataSources_documents as documents, dataSources_drop as drop, list$7 as list, dataSources_promote as promote, dataSources_revectorize as revectorize, dataSources_rm as rm, dataSources_search as search, dataSources_summarize as summarize, dataSources_waitForIngest as waitForIngest };
1715
1840
  }
1716
1841
 
1717
1842
  /**
@@ -2037,7 +2162,7 @@ interface DomainsCustomRetryResult {
2037
2162
  * @example
2038
2163
  * const { subdomain } = await admin.domains.get();
2039
2164
  */
2040
- declare function get$4(ctx: AdminContext): Promise<DomainsGetResult>;
2165
+ declare function get$5(ctx: AdminContext): Promise<DomainsGetResult>;
2041
2166
  /**
2042
2167
  * Set the app's platform subdomain.
2043
2168
  *
@@ -2138,7 +2263,7 @@ declare const domains_customRemove: typeof customRemove;
2138
2263
  declare const domains_customRetry: typeof customRetry;
2139
2264
  declare const domains_findHostname: typeof findHostname;
2140
2265
  declare namespace domains {
2141
- export { domains_check as check, domains_customAdd as customAdd, domains_customCheck as customCheck, domains_customList as customList, domains_customRemove as customRemove, domains_customRetry as customRetry, domains_findHostname as findHostname, get$4 as get, set$1 as set };
2266
+ export { domains_check as check, domains_customAdd as customAdd, domains_customCheck as customCheck, domains_customList as customList, domains_customRemove as customRemove, domains_customRetry as customRetry, domains_findHostname as findHostname, get$5 as get, set$1 as set };
2142
2267
  }
2143
2268
 
2144
2269
  /**
@@ -2895,6 +3020,237 @@ declare namespace files {
2895
3020
  export { type files_FileAccess as FileAccess, type files_FileRef as FileRef, type files_FilesLsParams as FilesLsParams, type files_FilesPutParams as FilesPutParams, files_fetchBytes as fetchBytes, files_ls as ls, files_put as put, files_remove as remove, files_sign as sign, files_stat as stat, files_summary as summary };
2896
3021
  }
2897
3022
 
3023
+ /**
3024
+ * Response types for the provisioned-infrastructure management API.
3025
+ *
3026
+ * Transcribed from youai-api:
3027
+ * src/http/routes/V2Apps/manage/provisionedResources.ts
3028
+ * src/common/Provisioning/types.ts
3029
+ * src/common/Provisioning/offerings/define.ts
3030
+ */
3031
+ /** Where a resource is in its lifecycle. Written only by the platform. */
3032
+ type InfraPhase = 'requested' | 'provisioning' | 'active' | 'hibernating' | 'hibernated' | 'resuming' | 'decommissioning' | 'destroyed' | 'failed';
3033
+ /** What the owner asked for. Written only by the owner's actions. */
3034
+ type InfraDesiredState = 'active' | 'hibernated' | 'destroyed';
3035
+ /**
3036
+ * What the platform last saw of an active resource's instance. `restoring` is
3037
+ * an instance that came back empty and is being refilled from its snapshot;
3038
+ * searches return `capacity_restoring` until it is `ready`.
3039
+ */
3040
+ type InfraHealth = 'ready' | 'not-ready' | 'missing' | 'restoring';
3041
+ /** A leasable product from the platform catalog. Prices are cogs + margin. */
3042
+ interface InfraOffering {
3043
+ id: string;
3044
+ kind: 'retrieval';
3045
+ /** User-facing size, e.g. "Small". */
3046
+ label: string;
3047
+ /** User-facing capacity, e.g. "Up to ~1M chunks". */
3048
+ description: string;
3049
+ hourlyPriceDollars: number;
3050
+ /** Hourly × 730. */
3051
+ monthlyPriceDollars: number;
3052
+ /** Retained-storage rate while hibernated. */
3053
+ hibernatedHourlyPriceDollars: number;
3054
+ hibernatedMonthlyPriceDollars: number;
3055
+ capacity: {
3056
+ maxPoints: number;
3057
+ };
3058
+ capabilities: {
3059
+ hibernate: boolean;
3060
+ };
3061
+ retired: boolean;
3062
+ }
3063
+ interface InfraResource {
3064
+ id: string;
3065
+ appId: string;
3066
+ name: string;
3067
+ kind: 'retrieval';
3068
+ offeringId: string;
3069
+ offering: InfraOffering | null;
3070
+ phase: InfraPhase;
3071
+ desiredState: InfraDesiredState;
3072
+ /** Data sources placed on this resource. Destroy is refused while > 0. */
3073
+ attachedSources: number;
3074
+ lastError: string | null;
3075
+ /** Null until the instance exists (requested, hibernated, destroyed). */
3076
+ health: InfraHealth | null;
3077
+ /**
3078
+ * What the instance is doing right now, while a transition is under way
3079
+ * ("Waiting for capacity", "Snapshotting ds_x (1/2)"); null when nothing is.
3080
+ */
3081
+ detail: string | null;
3082
+ /** When the last verified snapshot was taken; null if never. */
3083
+ lastSnapshotAt: string | null;
3084
+ activatedAt: string | null;
3085
+ hibernatedAt: string | null;
3086
+ destroyedAt: string | null;
3087
+ phaseChangedAt: string;
3088
+ createdAt: string;
3089
+ updatedAt: string;
3090
+ }
3091
+ interface InfraEvent {
3092
+ id: string;
3093
+ fromPhase: InfraPhase | null;
3094
+ toPhase: InfraPhase;
3095
+ /** `user:<id>` or `system`. */
3096
+ actor: string;
3097
+ reason: string | null;
3098
+ createdAt: string;
3099
+ }
3100
+ /** GET /infra */
3101
+ interface InfraListResult {
3102
+ resources: InfraResource[];
3103
+ offerings: InfraOffering[];
3104
+ /** False on hosts that cannot provision; `provision` will be refused. */
3105
+ provisioningAvailable: boolean;
3106
+ }
3107
+ /** GET /infra/:id */
3108
+ interface InfraGetResult {
3109
+ resource: InfraResource;
3110
+ events: InfraEvent[];
3111
+ attachedSources: {
3112
+ id: string;
3113
+ slug: string;
3114
+ name: string | null;
3115
+ }[];
3116
+ }
3117
+ /** POST /infra, /infra/:id/{hibernate,resume,destroy,rename} */
3118
+ interface InfraResourceResult {
3119
+ resource: InfraResource;
3120
+ }
3121
+
3122
+ /**
3123
+ * Provisioned-infrastructure operations: lease, park, resume and delete
3124
+ * dedicated resources (first kind: retrieval capacity for data sources).
3125
+ *
3126
+ * Ops are pure (ctx, params) → typed result. The CLI skin in
3127
+ * commands/infra.ts owns flag parsing, progress printing and exit codes.
3128
+ */
3129
+
3130
+ /** @internal Consumed by the CLI skin; waitForPhase documents the default. */
3131
+ declare const DEFAULT_WAIT_TIMEOUT_MS: number;
3132
+ interface ListParams {
3133
+ /** Include resources that have been deleted; off by default. */
3134
+ includeDestroyed?: boolean;
3135
+ }
3136
+ /**
3137
+ * The app's dedicated resources plus the offerings it can provision, with
3138
+ * their hourly and monthly prices.
3139
+ *
3140
+ * @example
3141
+ * const { resources, offerings } = await admin.infra.list();
3142
+ */
3143
+ declare function list$6(ctx: AdminContext, params?: ListParams): Promise<InfraListResult>;
3144
+ interface GetParams {
3145
+ /** Resource id. */
3146
+ id: string;
3147
+ }
3148
+ /**
3149
+ * One resource with its state timeline and the data sources placed on it.
3150
+ *
3151
+ * @throws AdminApiError `resource_not_found` (404).
3152
+ */
3153
+ declare function get$4(ctx: AdminContext, params: GetParams): Promise<InfraGetResult>;
3154
+ interface ProvisionParams {
3155
+ /** Offering id from `list().offerings`, e.g. `retrieval.small`. */
3156
+ offeringId: string;
3157
+ /** Display name; defaults to the offering label. */
3158
+ name?: string;
3159
+ }
3160
+ /**
3161
+ * Lease a new resource. Spends credits: the workspace must have a month's
3162
+ * worth available before the request is accepted; nothing is charged until
3163
+ * activation, and from then the resource bills by the hour.
3164
+ *
3165
+ * The response is the row in `requested`; the platform brings it to `active`
3166
+ * within a minute or so. Use `waitForPhase` to block on that.
3167
+ *
3168
+ * @throws AdminApiError `offering_not_found` (400), `offering_retired` (422),
3169
+ * `provisioning_unavailable` (422), `insufficient_credits` (402).
3170
+ * @example
3171
+ * const { resource } = await admin.infra.provision({ offeringId: 'retrieval.small' });
3172
+ */
3173
+ declare function provision(ctx: AdminContext, params: ProvisionParams): Promise<InfraResourceResult>;
3174
+ interface ResourceIdParams {
3175
+ /** Resource id. */
3176
+ id: string;
3177
+ }
3178
+ /**
3179
+ * Park an active resource. Data is kept; searches on its data sources return
3180
+ * `capacity_hibernating` while it parks and `capacity_hibernated` once parked,
3181
+ * until it resumes; billing drops to the retained-storage rate.
3182
+ *
3183
+ * @throws AdminApiError `resource_not_found` (404), `invalid_transition` (422).
3184
+ */
3185
+ declare function hibernate(ctx: AdminContext, params: ResourceIdParams): Promise<InfraResourceResult>;
3186
+ /**
3187
+ * Bring a hibernated (or failed) resource back to active.
3188
+ *
3189
+ * @throws AdminApiError `resource_not_found` (404), `invalid_transition` (422).
3190
+ */
3191
+ declare function resume(ctx: AdminContext, params: ResourceIdParams): Promise<InfraResourceResult>;
3192
+ /**
3193
+ * Delete a resource. Refused while any data source is placed on it — move
3194
+ * those to shared capacity (`datasources config --placement shared`) or
3195
+ * delete them first. Billing stops when the phase reaches `destroyed`.
3196
+ *
3197
+ * @throws AdminApiError `resource_not_found` (404),
3198
+ * `resource_has_attachments` (422), `invalid_transition` (422).
3199
+ */
3200
+ declare function destroy(ctx: AdminContext, params: ResourceIdParams): Promise<InfraResourceResult>;
3201
+ interface RenameParams {
3202
+ id: string;
3203
+ name: string;
3204
+ }
3205
+ /** @throws AdminApiError `resource_not_found` (404), `invalid_name` (400). */
3206
+ declare function rename(ctx: AdminContext, params: RenameParams): Promise<InfraResourceResult>;
3207
+ interface WaitForPhaseParams {
3208
+ id: string;
3209
+ /** The phase(s) that count as done. */
3210
+ phases: InfraPhase[];
3211
+ /** Default 10 minutes. */
3212
+ timeoutMs?: number;
3213
+ onProgress?: (message: string) => void;
3214
+ }
3215
+ type WaitForPhaseResult = {
3216
+ status: 'done';
3217
+ resource: InfraResource;
3218
+ } | {
3219
+ status: 'failed';
3220
+ resource: InfraResource;
3221
+ error: string;
3222
+ } | {
3223
+ status: 'timeout';
3224
+ resource: InfraResource;
3225
+ error: string;
3226
+ };
3227
+ /**
3228
+ * Poll a resource until it reaches one of `phases`, fails, or the timeout
3229
+ * elapses. A `failed` phase returns immediately with the platform's error.
3230
+ *
3231
+ * @example
3232
+ * const result = await admin.infra.waitForPhase({ id, phases: ['active'] });
3233
+ */
3234
+ declare function waitForPhase(ctx: AdminContext, params: WaitForPhaseParams): Promise<WaitForPhaseResult>;
3235
+
3236
+ declare const infra_DEFAULT_WAIT_TIMEOUT_MS: typeof DEFAULT_WAIT_TIMEOUT_MS;
3237
+ type infra_GetParams = GetParams;
3238
+ type infra_ListParams = ListParams;
3239
+ type infra_ProvisionParams = ProvisionParams;
3240
+ type infra_RenameParams = RenameParams;
3241
+ type infra_ResourceIdParams = ResourceIdParams;
3242
+ type infra_WaitForPhaseParams = WaitForPhaseParams;
3243
+ type infra_WaitForPhaseResult = WaitForPhaseResult;
3244
+ declare const infra_destroy: typeof destroy;
3245
+ declare const infra_hibernate: typeof hibernate;
3246
+ declare const infra_provision: typeof provision;
3247
+ declare const infra_rename: typeof rename;
3248
+ declare const infra_resume: typeof resume;
3249
+ declare const infra_waitForPhase: typeof waitForPhase;
3250
+ declare namespace infra {
3251
+ export { infra_DEFAULT_WAIT_TIMEOUT_MS as DEFAULT_WAIT_TIMEOUT_MS, type infra_GetParams as GetParams, type infra_ListParams as ListParams, type infra_ProvisionParams as ProvisionParams, type infra_RenameParams as RenameParams, 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_provision as provision, infra_rename as rename, infra_resume as resume, infra_waitForPhase as waitForPhase };
3252
+ }
3253
+
2898
3254
  /**
2899
3255
  * Result types for the `issues` CLI commands.
2900
3256
  *
@@ -3782,12 +4138,30 @@ interface V2BuildLogEntry {
3782
4138
  }
3783
4139
  /** Terminal and in-progress states a release moves through. */
3784
4140
  type V2ReleaseStatus = 'building' | 'compiled' | 'live' | 'preview' | 'dev' | 'failed' | 'superseded';
4141
+ /**
4142
+ * Why a failed release failed — derived server-side from the build log
4143
+ * (describeReleaseFailure() in youai-api) and present on every release
4144
+ * shape. All three are null unless `status` is 'failed'.
4145
+ *
4146
+ * `failureKind` is the field to branch on:
4147
+ * 'interrupted' — the build's orchestrator died (platform restart); the
4148
+ * platform retries once automatically. Transient.
4149
+ * 'unbuildable' — the commit couldn't be read as an app (mindstudio.json
4150
+ * missing/invalid). Fix the commit; nothing to retry.
4151
+ * 'build' — the build itself failed (compile error, deploy step).
4152
+ */
4153
+ interface ReleaseFailureFields {
4154
+ failureReason: string | null;
4155
+ /** Build stage that was running when it failed (`interfaces`, `promote`…). */
4156
+ failurePhase: string | null;
4157
+ failureKind: 'build' | 'interrupted' | 'unbuildable' | null;
4158
+ }
3785
4159
  /**
3786
4160
  * Lightweight release projection returned by the paginated list endpoint.
3787
4161
  * Heavy fields (buildLog, manifest, methods, interfaces) are dropped.
3788
4162
  * Produced by toReleaseFragment() in youai-api.
3789
4163
  */
3790
- interface ReleaseFragment {
4164
+ interface ReleaseFragment extends ReleaseFailureFields {
3791
4165
  id: string;
3792
4166
  commitSha: string;
3793
4167
  commitInfo: V2CommitInfo;
@@ -3815,7 +4189,7 @@ interface ReleasesListResult {
3815
4189
  * Includes build log, databases, signed diff/diagnostics URLs, and the
3816
4190
  * post-deploy async progress signal.
3817
4191
  */
3818
- interface ReleasesGetResult {
4192
+ interface ReleasesGetResult extends ReleaseFailureFields {
3819
4193
  id: string;
3820
4194
  appId: string;
3821
4195
  commitSha: string;
@@ -3861,7 +4235,7 @@ interface ReleasesGetResult {
3861
4235
  * Plain release row — no databases/diff enrichment — plus previewUrl.
3862
4236
  * Used by 'releases wait', which polls this endpoint in a loop.
3863
4237
  */
3864
- interface ReleasesByCommitResult {
4238
+ interface ReleasesByCommitResult extends ReleaseFailureFields {
3865
4239
  id: string;
3866
4240
  appId: string;
3867
4241
  commitSha: string;
@@ -4250,8 +4624,16 @@ interface ReleaseSummary {
4250
4624
  buildDurationMs: number | null;
4251
4625
  publishedAt: string | null;
4252
4626
  previewUrl?: string;
4253
- /** Build failure reason from the last build-log `error` phase entry; only present when status is `failed`. */
4627
+ /** Why it failed; only present when status is `failed`. */
4254
4628
  error?: string;
4629
+ /**
4630
+ * Only present when status is `failed`. 'interrupted' means a platform
4631
+ * restart killed the build and a retry is already running — not a code
4632
+ * problem. See ReleaseFailureFields.
4633
+ */
4634
+ failureKind?: 'build' | 'interrupted' | 'unbuildable';
4635
+ /** Build stage that was running when it failed; only when `failed`. */
4636
+ failurePhase?: string;
4255
4637
  }
4256
4638
  /**
4257
4639
  * Terminal outcome of a `waitForCommit` call.
@@ -5340,6 +5722,7 @@ declare function buildClient(ctx: AdminContext): {
5340
5722
  inbox: (params?: EmailInboxParams | undefined) => Promise<EmailInboxResult>;
5341
5723
  };
5342
5724
  files: BoundOps<typeof files>;
5725
+ infra: BoundOps<typeof infra>;
5343
5726
  issues: BoundOps<typeof issues>;
5344
5727
  jewels: BoundOps<typeof jewels>;
5345
5728
  methods: BoundOps<typeof methods>;
@@ -5394,4 +5777,4 @@ declare class AdminTimeoutError extends Error {
5394
5777
 
5395
5778
  declare const admin: AdminClient;
5396
5779
 
5397
- 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 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 DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesDeleteResult, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesPromoteResult, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, 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 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 IssueKind, 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 OutboundDnsInstructions, 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 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 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, admin, createAdminClient, admin as default };
5780
+ 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 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 DataSourcesBuildProgress, type DataSourcesChunkingConfig, type DataSourcesChunkingStrategy, type DataSourcesConfigResult, type DataSourcesConfigUpdateResult, type DataSourcesCreateResult, type DataSourcesDeleteResult, type DataSourcesDocument, type DataSourcesDocumentConfirmResult, type DataSourcesDocumentDeleteResult, type DataSourcesDocumentStatus, type DataSourcesDocumentsResult, type DataSourcesDropResult, type DataSourcesIngestConfig, type DataSourcesIngestUpdate, type DataSourcesListEntry, type DataSourcesListResult, type DataSourcesPlacement, type DataSourcesPromoteResult, type DataSourcesRetrievalConfig, type DataSourcesRetrievalUpdate, type DataSourcesRevectorizeResult, 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 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 IssueKind, 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 OutboundDnsInstructions, 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 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 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, admin, createAdminClient, admin as default };