@madewithremy/admin 0.1.37 → 0.1.39

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
@@ -30,10 +30,10 @@ interface AdminContext {
30
30
  /**
31
31
  * Response types for the v2 agent-chat thread log.
32
32
  *
33
- * Transcribed from youai-api:
34
- * src/http/routes/V2Apps/manage/agentThreads.ts — routes
35
- * src/http/routes/V2Apps/manage/_helpers/projectAgentMessages.ts — transcript shape
36
- * src/common/Db/v2Apps/V2AgentThreadsDao.ts — list row shape
33
+ * Transcribed from the api (apps/api/src/):
34
+ * roles/http/routes/Apps/manage/agentThreads.ts — routes
35
+ * customerApps/AppChatAgents/transcript.ts — transcript shape
36
+ * customerApps/AppChatAgents/dao/AgentThreadsDao.ts — list row shape
37
37
  */
38
38
  /** One tool the assistant asked for, with the arguments it chose. */
39
39
  interface AgentToolCall {
@@ -169,9 +169,9 @@ declare namespace agent {
169
169
  /**
170
170
  * Response types for the v2 task log.
171
171
  *
172
- * Transcribed from youai-api:
173
- * apps/api/src/roles/http/routes/Apps/manage/taskTraces.ts — routes
174
- * apps/api/src/customerApps/AppTaskAgents/traces.ts — summary and transcript shapes
172
+ * Transcribed from the api (apps/api/src/):
173
+ * roles/http/routes/Apps/manage/taskTraces.ts — routes
174
+ * customerApps/AppTaskAgents/traces.ts — summary and transcript shapes
175
175
  */
176
176
 
177
177
  /**
@@ -319,12 +319,12 @@ declare namespace tasks {
319
319
  /**
320
320
  * Response types for the v2 analytics (insights) endpoints.
321
321
  *
322
- * Transcribed from youai-api:
323
- * src/common/AnalyticsQuery/types.ts — query/batch shapes
324
- * src/http/routes/V2Apps/manage/analytics.ts — per-endpoint responses
325
- * src/common/Db/v2Apps/AnalyticsEventsDao.ts — sources/map/ai-sources DAO
326
- * src/common/Db/v2Apps/PresenceDao.ts — live DAO
327
- * src/common/Db/v2Apps/CrawlerHitsDao.ts — crawlers DAO
322
+ * Transcribed from the api (apps/api/src/):
323
+ * customerApps/AppAnalytics/types.ts — query/batch shapes
324
+ * roles/http/routes/Apps/manage/analytics.ts — per-endpoint responses
325
+ * customerApps/AppAnalytics/dao/AnalyticsEventsDao.ts — sources/map/ai-sources DAO
326
+ * customerApps/AppAnalytics/live/PresenceStore.ts — live DAO
327
+ * customerApps/AppAnalytics/dao/CrawlerHitsDao.ts — crawlers DAO
328
328
  */
329
329
  /** The four measurable quantities the query engine can return per row. */
330
330
  type AnalyticsMetric = 'pageviews' | 'visitors' | 'visits' | 'events';
@@ -723,10 +723,10 @@ declare namespace analytics {
723
723
  /**
724
724
  * Response types for the v2 app-events observability endpoints.
725
725
  *
726
- * Transcribed from youai-api:
727
- * src/http/routes/V2Apps/manage/appEvents.ts — routes
728
- * src/http/routes/V2Apps/serve/events/registry.ts — ChannelActivityRow
729
- * src/http/routes/V2Apps/serve/events/publish.ts — delivered semantics
726
+ * Transcribed from the api (apps/api/src/):
727
+ * roles/http/routes/Apps/manage/appEvents.ts — routes
728
+ * customerApps/AppEvents/activity.ts — ChannelActivityRow
729
+ * customerApps/AppEvents/publish.ts — delivered semantics
730
730
  */
731
731
  /** One channel's recent activity, from the channels view. */
732
732
  interface EventChannelActivity {
@@ -1017,12 +1017,12 @@ declare namespace crashes {
1017
1017
  }
1018
1018
 
1019
1019
  /**
1020
- * Response shapes for the cron command group — transcribed from youai-api.
1020
+ * Response shapes for the cron command group — transcribed from the api.
1021
1021
  *
1022
- * Sources:
1023
- * src/http/routes/V2Apps/manage/cron.ts
1024
- * src/common/Db/v2Apps/AppCronJobsDao.ts (AppCronJobSummary ~line 61, decorateJob ~line 383)
1025
- * src/common/Db/v2Apps/AppCronRunsDao.ts (CronRunSummary ~line 50)
1022
+ * Sources (apps/api/src/):
1023
+ * roles/http/routes/Apps/manage/cron.ts
1024
+ * customerApps/AppCrons/dao/AppCronJobsDao.ts (AppCronJobSummary ~line 61, decorateJob ~line 383)
1025
+ * customerApps/AppCrons/dao/AppCronRunsDao.ts (CronRunSummary ~line 50)
1026
1026
  */
1027
1027
  /** Lifecycle state of a single cron run row. */
1028
1028
  type AppCronRunState = 'queued' | 'running' | 'succeeded' | 'failed' | 'interrupted';
@@ -1133,9 +1133,9 @@ declare namespace cron {
1133
1133
  /**
1134
1134
  * Response types for the data command group.
1135
1135
  *
1136
- * Sources in youai-api:
1137
- * POST /manage/lift-dev-to-live → src/http/routes/V2Apps/manage/liftDevToLive.ts
1138
- * POST /manage/lift-live-to-dev → src/http/routes/V2Apps/manage/liftLiveToDev.ts
1136
+ * Sources in the api (apps/api/src/):
1137
+ * POST /manage/lift-dev-to-live → roles/http/routes/Apps/manage/liftDevToLive.ts
1138
+ * POST /manage/lift-live-to-dev → roles/http/routes/Apps/manage/liftLiveToDev.ts
1139
1139
  */
1140
1140
  /** Minimal database descriptor returned inside lift results. */
1141
1141
  interface LiftedDatabase {
@@ -1251,7 +1251,7 @@ declare namespace data {
1251
1251
  * measured by the platform from the operation's own record, so the CLI, the
1252
1252
  * dashboard and a search's refusal message quote the same numbers.
1253
1253
  *
1254
- * Transcribed from youai-api: src/common/DataSources/progress.ts
1254
+ * Transcribed from the api: apps/api/src/core/Progress/progress.ts
1255
1255
  */
1256
1256
  interface OperationProgress {
1257
1257
  /** The operation's own phase word: `running`, `copying`, `building`, `provisioning`… */
@@ -1280,9 +1280,9 @@ interface OperationProgress {
1280
1280
  /**
1281
1281
  * Response types for bulk ingestion jobs.
1282
1282
  *
1283
- * Transcribed from youai-api:
1284
- * src/http/routes/V2Apps/manage/dataSourceJobs.ts (jobView)
1285
- * src/common/DataSources/jobs/types.ts
1283
+ * Transcribed from the api (apps/api/src/):
1284
+ * roles/http/routes/Apps/manage/dataSources/jobs.ts (jobView)
1285
+ * customerApps/AppDataSources/jobs/types.ts
1286
1286
  */
1287
1287
 
1288
1288
  /**
@@ -1564,9 +1564,9 @@ interface DataSourceJobManifestTokenResult {
1564
1564
  /**
1565
1565
  * Response types for S3 connectors on data sources.
1566
1566
  *
1567
- * Transcribed from youai-api:
1568
- * src/http/routes/V2Apps/manage/dataSourceConnectors.ts (connectorView)
1569
- * src/common/Db/v2Apps/V2DataSourceConnectorsDao.ts
1567
+ * Transcribed from the api (apps/api/src/):
1568
+ * roles/http/routes/Apps/manage/dataSources/connectors.ts (connectorView)
1569
+ * customerApps/AppDataSources/jobs/connectors/dao/ConnectorsDao.ts
1570
1570
  */
1571
1571
 
1572
1572
  /**
@@ -1624,9 +1624,9 @@ interface DataSourceSyncResult {
1624
1624
  /**
1625
1625
  * Response types for warming, sampling and retrieval evals.
1626
1626
  *
1627
- * Transcribed from youai-api:
1628
- * src/http/routes/V2Apps/manage/dataSourceEvals.ts (setView, runView)
1629
- * src/common/DataSources/evals/types.ts
1627
+ * Transcribed from the api (apps/api/src/):
1628
+ * roles/http/routes/Apps/manage/dataSources/evals.ts (setView, runView)
1629
+ * customerApps/AppDataSources/evals/types.ts
1630
1630
  */
1631
1631
 
1632
1632
  /**
@@ -1850,9 +1850,9 @@ interface EvalCompareResult {
1850
1850
  * Response types for data-source mappers: inspecting raw objects, testing a
1851
1851
  * mapper, remapping, and a job's quarantine.
1852
1852
  *
1853
- * Transcribed from youai-api:
1854
- * src/http/routes/V2Apps/manage/dataSourceMappers.ts
1855
- * src/common/DataSources/mapping.ts (mapperView, buildInspectReport)
1853
+ * Transcribed from the api (apps/api/src/):
1854
+ * roles/http/routes/Apps/manage/dataSources/mappers.ts
1855
+ * customerApps/AppDataSources/mapping.ts (mapperView, buildInspectReport)
1856
1856
  */
1857
1857
 
1858
1858
  /**
@@ -2054,10 +2054,10 @@ interface DataSourceQuarantineResult {
2054
2054
  /**
2055
2055
  * Response types for data-source readers.
2056
2056
  *
2057
- * Transcribed from youai-api:
2058
- * src/roles/http/routes/Apps/manage/dataSources/readers.ts
2059
- * src/customerApps/AppDataSources/reading.ts (liveReaderView)
2060
- * src/customerApps/AppDataSources/dao/DeliveriesDao.ts (summary)
2057
+ * Transcribed from the api (apps/api/src/):
2058
+ * roles/http/routes/Apps/manage/dataSources/readers.ts
2059
+ * customerApps/AppDataSources/reading.ts (liveReaderView)
2060
+ * customerApps/AppDataSources/dao/DeliveriesDao.ts (summary)
2061
2061
  */
2062
2062
 
2063
2063
  /** The reader the live release declares for a source. */
@@ -2157,11 +2157,11 @@ interface DataSourceRereadResult {
2157
2157
  /**
2158
2158
  * Response types for the data-sources management API.
2159
2159
  *
2160
- * Transcribed from youai-api:
2161
- * src/http/routes/V2Apps/manage/dataSources.ts
2162
- * src/common/DataSources/pipeline.ts
2163
- * src/common/DataSources/searchDataSource.ts
2164
- * src/common/Db/v2Apps/V2DataSourcesDao.ts
2160
+ * Transcribed from the api (apps/api/src/):
2161
+ * roles/http/routes/Apps/manage/dataSources/index.ts
2162
+ * customerApps/AppDataSources/pipeline.ts
2163
+ * customerApps/AppDataSources/searchDataSource.ts
2164
+ * customerApps/AppDataSources/dao/DataSourcesDao.ts
2165
2165
  *
2166
2166
  * 204/empty responses surface as `{ ok: true; status: number }` (readBody in api.ts).
2167
2167
  */
@@ -3031,7 +3031,7 @@ interface SearchParams {
3031
3031
  * query: 'what are the payment terms?',
3032
3032
  * });
3033
3033
  */
3034
- declare function search(ctx: AdminContext, params: SearchParams): Promise<DataSourcesSearchResult>;
3034
+ declare function search$1(ctx: AdminContext, params: SearchParams): Promise<DataSourcesSearchResult>;
3035
3035
  interface CountParams {
3036
3036
  /** Data source slug. */
3037
3037
  slug: string;
@@ -3466,14 +3466,13 @@ declare const dataSources_revectorize: typeof revectorize;
3466
3466
  declare const dataSources_rm: typeof rm;
3467
3467
  declare const dataSources_rmWhere: typeof rmWhere;
3468
3468
  declare const dataSources_rmWhereAll: typeof rmWhereAll;
3469
- declare const dataSources_search: typeof search;
3470
3469
  declare const dataSources_stopMove: typeof stopMove;
3471
3470
  declare const dataSources_summarize: typeof summarize;
3472
3471
  declare const dataSources_waitForCandidate: typeof waitForCandidate;
3473
3472
  declare const dataSources_waitForIngest: typeof waitForIngest;
3474
3473
  declare const dataSources_waitForMove: typeof waitForMove;
3475
3474
  declare namespace dataSources {
3476
- 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, dataSources_search 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$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 };
3477
3476
  }
3478
3477
 
3479
3478
  /**
@@ -4104,8 +4103,8 @@ declare namespace dataSourceMappers {
4104
4103
  /**
4105
4104
  * Response types for the db command group.
4106
4105
  *
4107
- * Sources in youai-api:
4108
- * POST /db/query → apps/api/src/roles/http/routes/Apps/manage/dbQuery.ts
4106
+ * Sources in the api (apps/api/src/):
4107
+ * POST /db/query → roles/http/routes/Apps/manage/dbQuery.ts
4109
4108
  * AppDatabasesDao.executeSqlBatch returns
4110
4109
  * Array<{ rows: any[]; changes: number }>
4111
4110
  */
@@ -4317,9 +4316,9 @@ declare namespace diagnostics {
4317
4316
  /**
4318
4317
  * Response types for the v2 custom domains and subdomain endpoints.
4319
4318
  *
4320
- * Transcribed from youai-api:
4321
- * src/http/routes/V2Apps/manage/settings.ts — custom-subdomain routes
4322
- * src/http/routes/V2Apps/manage/customDomains.ts — custom-domains routes
4319
+ * Transcribed from the api (apps/api/src/):
4320
+ * roles/http/routes/Apps/manage/settings.ts — custom-subdomain routes
4321
+ * roles/http/routes/Apps/manage/customDomains.ts — custom-domains routes
4323
4322
  * (local HostnameView + DnsInstructions interfaces in customDomains.ts)
4324
4323
  */
4325
4324
  /**
@@ -4386,7 +4385,10 @@ interface DomainsCheckResult {
4386
4385
  }
4387
4386
  /** GET /_internal/v2/apps/:appId/settings/custom-domains */
4388
4387
  interface DomainsCustomListResult {
4389
- hostnames: DomainsCustomHostnameView[];
4388
+ hostnames: Array<DomainsCustomHostnameView & {
4389
+ /** The domain the workspace bought that this hostname is on, whose records the platform writes. */
4390
+ boughtDomain: BoughtDomain | null;
4391
+ }>;
4390
4392
  }
4391
4393
  /**
4392
4394
  * POST /_internal/v2/apps/:appId/settings/custom-domains — register a hostname.
@@ -4394,6 +4396,8 @@ interface DomainsCustomListResult {
4394
4396
  */
4395
4397
  interface DomainsCustomAddResult {
4396
4398
  hostnames: DomainsCustomHostnameView[];
4399
+ /** Set when the hostname is on a domain the workspace bought: the records the platform wrote for it. */
4400
+ registeredDomain: RegisteredDomainRecords | null;
4397
4401
  }
4398
4402
  /** POST /_internal/v2/apps/:appId/settings/custom-domains/check-domain */
4399
4403
  interface DomainsCustomCheckResult {
@@ -4412,9 +4416,178 @@ interface DomainsCustomRemoveResult {
4412
4416
  interface DomainsCustomRetryResult {
4413
4417
  hostname: DomainsCustomHostnameView;
4414
4418
  }
4419
+ /** A domain the workspace bought, as a connection's list names it. */
4420
+ interface BoughtDomain {
4421
+ id: string;
4422
+ name: string;
4423
+ }
4424
+ /** What the platform wrote on a bought domain for a connection (web, sending or inbound). */
4425
+ interface RegisteredDomainRecords {
4426
+ domain: string;
4427
+ /** How many records were written. */
4428
+ written: number;
4429
+ /** Records the connection needs that would break the zone, left unwritten. */
4430
+ conflicts: Array<{
4431
+ host: string;
4432
+ type: string;
4433
+ answer: string;
4434
+ existing: {
4435
+ type: string;
4436
+ answer: string;
4437
+ };
4438
+ }>;
4439
+ /** Set when Name.com couldn't be reached: add the records by hand, or retry. */
4440
+ error?: 'records_not_written';
4441
+ }
4442
+ type RegisteredDomainStatus = 'pending' | 'active' | 'expired' | 'failed' | 'ended';
4443
+ /** Where one of the workspace's apps uses a bought domain. */
4444
+ interface RegisteredDomainConnection {
4445
+ kind: 'web' | 'sending' | 'receiving';
4446
+ /** Null for the workspace's own sending domain. */
4447
+ appId: string | null;
4448
+ appName: string | null;
4449
+ /** The app's icon, when it has one. */
4450
+ appIconUrl: string | null;
4451
+ hostname: string;
4452
+ }
4453
+ /** One of the workspace's bought domains. Money is USD. */
4454
+ interface RegisteredDomainView {
4455
+ id: string;
4456
+ /** ASCII (punycode). */
4457
+ name: string;
4458
+ status: RegisteredDomainStatus;
4459
+ /** The registration term, in years. */
4460
+ years: number;
4461
+ premium: boolean;
4462
+ /** What the registration cost. */
4463
+ price: number;
4464
+ /** Why a purchase failed: `registrar_payment`, `throttled`, `refused`, `never_registered`. */
4465
+ failure: string | null;
4466
+ registeredAt: string | null;
4467
+ expiresAt: string | null;
4468
+ autoRenew: boolean;
4469
+ locked: boolean;
4470
+ privacy: boolean;
4471
+ /** New registrations can't transfer away until then. */
4472
+ transferLockExpiresAt: string | null;
4473
+ /** Name.com's locks on the domain, `clientHold` among them. */
4474
+ locks: string[];
4475
+ renewalPrice: number | null;
4476
+ /** The status code of a renewal the registrar refused, until one succeeds. */
4477
+ renewalFailure: string | null;
4478
+ transferOutRequestedAt: string | null;
4479
+ endedReason: 'lapsed' | 'transferred' | 'removed' | null;
4480
+ endedAt: string | null;
4481
+ /** Set while ICANN's email verification of the registrant is owed: the domain stops resolving after it. */
4482
+ verifyBy: string | null;
4483
+ createdAt: string;
4484
+ connections: RegisteredDomainConnection[];
4485
+ }
4486
+ /** A search suggestion. */
4487
+ interface RegisteredDomainOffer {
4488
+ name: string;
4489
+ purchasable: boolean;
4490
+ /** Purchasable, and in a TLD Remy sells. */
4491
+ sellable: boolean;
4492
+ premium: boolean;
4493
+ purchaseType: string | null;
4494
+ /** The minimum term's price. */
4495
+ price: number | null;
4496
+ renewalPrice: number | null;
4497
+ reason: string | null;
4498
+ }
4499
+ /** The definitive answer for one name. */
4500
+ interface RegisteredDomainQuote {
4501
+ name: string;
4502
+ /** Null when the name can be bought. */
4503
+ refusal: 'unavailable' | 'tld_not_supported' | 'trademark_claim' | null;
4504
+ /** The registration term: the TLD's minimum (1 year for most, 2 for `.ai`). */
4505
+ years: number;
4506
+ premium: boolean;
4507
+ /** The price for the term: what `buy --price` must match. */
4508
+ price: number | null;
4509
+ /** What renewing for the same term costs. */
4510
+ renewalPrice: number | null;
4511
+ }
4512
+ /** The registrant: the domain's legal owner, whom ICANN emails. */
4513
+ interface RegistrantContact {
4514
+ firstName: string;
4515
+ lastName: string;
4516
+ /** Filled in, the organization owns the domains. Blank for a person. */
4517
+ companyName?: string;
4518
+ address1: string;
4519
+ address2?: string;
4520
+ city: string;
4521
+ state: string;
4522
+ zip: string;
4523
+ /** ISO 3166-1 alpha-2, like `US`. */
4524
+ country: string;
4525
+ email: string;
4526
+ /** E.164, like `+14155550123`. */
4527
+ phone: string;
4528
+ }
4529
+ interface WorkspaceRegistrantContact extends RegistrantContact {
4530
+ id: string;
4531
+ organizationId: string;
4532
+ updatedAt: string;
4533
+ }
4534
+ type RegisteredDomainRecordType = 'A' | 'AAAA' | 'ANAME' | 'CNAME' | 'MX' | 'NS' | 'SRV' | 'TXT';
4535
+ /** A record on a bought domain's zone. */
4536
+ interface RegisteredDomainZoneRecord {
4537
+ id: number;
4538
+ /** Relative to the zone, and empty for the apex. */
4539
+ host: string;
4540
+ type: RegisteredDomainRecordType;
4541
+ answer: string;
4542
+ ttl: number;
4543
+ /** MX and SRV only. */
4544
+ priority: number | null;
4545
+ /** What the platform wrote it for (locked), or null when it's the owner's. */
4546
+ managed: string | null;
4547
+ }
4548
+ /** GET /_internal/v2/apps/:appId/settings/registered-domains */
4549
+ interface RegisteredDomainsListResult {
4550
+ /** Empty where this deployment doesn't sell domains. */
4551
+ domains: RegisteredDomainView[];
4552
+ }
4553
+ /** POST …/registered-domains/search */
4554
+ interface RegisteredDomainsSearchResult {
4555
+ offers: RegisteredDomainOffer[];
4556
+ }
4557
+ /** POST …/registered-domains/quote */
4558
+ interface RegisteredDomainsQuoteResult {
4559
+ quote: RegisteredDomainQuote;
4560
+ }
4561
+ /** POST …/registered-domains/purchase */
4562
+ interface RegisteredDomainsBuyResult {
4563
+ domain: RegisteredDomainView;
4564
+ }
4565
+ /** GET …/registered-domains/contact */
4566
+ interface RegisteredDomainsContactResult {
4567
+ contact: WorkspaceRegistrantContact | null;
4568
+ }
4569
+ /** POST …/registered-domains/contact */
4570
+ interface RegisteredDomainsContactSetResult {
4571
+ contact: WorkspaceRegistrantContact;
4572
+ /** Held domains Name.com wouldn't take the new contact on. */
4573
+ notUpdated: string[];
4574
+ }
4575
+ /** GET …/registered-domains/:domainId/records */
4576
+ interface RegisteredDomainsZoneResult {
4577
+ records: RegisteredDomainZoneRecord[];
4578
+ }
4579
+ /** POST …/registered-domains/:domainId/records[/:recordId] */
4580
+ interface RegisteredDomainsRecordResult {
4581
+ record: Omit<RegisteredDomainZoneRecord, 'managed'>;
4582
+ }
4583
+ /** POST …/registered-domains/:domainId/records/:recordId/delete */
4584
+ interface RegisteredDomainsRecordDeleteResult {
4585
+ deleted: true;
4586
+ }
4415
4587
 
4416
4588
  /**
4417
- * App domain operations: platform subdomain + custom hostnames.
4589
+ * App domain operations: platform subdomain, custom hostnames, and the
4590
+ * domains the workspace buys through Remy.
4418
4591
  *
4419
4592
  * `findHostname` resolves a user-supplied hostname to its row id and full
4420
4593
  * entry (list → match → id). It throws a plain Error with the exact
@@ -4467,7 +4640,9 @@ declare function customList(ctx: AdminContext): Promise<DomainsCustomListResult>
4467
4640
  *
4468
4641
  * Apex input (e.g. `acme.com`) auto-creates the `www.acme.com` pair and
4469
4642
  * returns both entries. `dnsInstructions` on each returned entry contains
4470
- * the DNS records the customer must add to their provider.
4643
+ * the DNS records the customer must add to their provider, except on a domain
4644
+ * the workspace bought through Remy, where `registeredDomain` says which
4645
+ * records the platform wrote itself and any it couldn't.
4471
4646
  *
4472
4647
  * @throws AdminApiError `invalid_hostname` (400) — the hostname failed format
4473
4648
  * validation; `hostname_in_use` (400) — the hostname (or its auto-paired
@@ -4525,16 +4700,162 @@ declare function customRemove(ctx: AdminContext, hostname: string): Promise<Doma
4525
4700
  * const { hostname: updated } = await admin.domains.customRetry('app.acme.com');
4526
4701
  */
4527
4702
  declare function customRetry(ctx: AdminContext, hostname: string): Promise<DomainsCustomRetryResult>;
4703
+ /**
4704
+ * Suggest domains for a keyword or a whole name, each with its price and
4705
+ * renewal price. Only `sellable` ones can be bought; the others say why.
4706
+ *
4707
+ * @throws AdminApiError `invalid_query` (400); `namecom_not_configured` (400)
4708
+ * — this deployment doesn't sell domains.
4709
+ * @example
4710
+ * const { offers } = await admin.domains.search('acme bakery');
4711
+ */
4712
+ declare function search(ctx: AdminContext, query: string): Promise<RegisteredDomainsSearchResult>;
4713
+ /**
4714
+ * The definitive answer for one name: whether it can be bought, its term,
4715
+ * its price and its renewal price. The price is what `buy` must be given.
4716
+ *
4717
+ * @throws AdminApiError `invalid_domain` (400) — not a whole registrable
4718
+ * domain; `namecom_not_configured` (400).
4719
+ * @example
4720
+ * const { quote } = await admin.domains.quote('acmebakery.com');
4721
+ */
4722
+ declare function quote(ctx: AdminContext, name: string): Promise<RegisteredDomainsQuoteResult>;
4723
+ interface BuyParams {
4724
+ /** The whole domain, like `acmebakery.com`. */
4725
+ name: string;
4726
+ /** The price the user confirmed: `quote`'s. A price that has moved is refused. */
4727
+ price: number;
4728
+ }
4729
+ /**
4730
+ * Buy a domain for the workspace, registered to its registrant contact, at
4731
+ * the confirmed price, which is charged at once and isn't refundable. It
4732
+ * renews yearly at its renewal price while auto-renew is on. Only call this
4733
+ * after the user has explicitly confirmed the name, the price and the renewal
4734
+ * price. The domain is usually `active` on return; a `pending` one settles
4735
+ * within minutes (poll `owned`). It connects to nothing by itself.
4736
+ *
4737
+ * @throws AdminApiError `registrant_contact_required` (400) — set the contact
4738
+ * first; `price_changed` (409) — the message has the new price, to confirm
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);
4743
+ * `domain_unavailable`, `tld_not_supported`, `trademark_claim` (400);
4744
+ * `registrar_busy` (429); `registrar_payment` — temporarily unavailable;
4745
+ * `namecom_not_configured` (400).
4746
+ * @example
4747
+ * const { domain } = await admin.domains.buy({ name: 'acmebakery.com', price: 11.99 });
4748
+ */
4749
+ declare function buy(ctx: AdminContext, params: BuyParams): Promise<RegisteredDomainsBuyResult>;
4750
+ /**
4751
+ * The workspace's bought domains, newest first: status, expiry, auto-renew,
4752
+ * whether ICANN's verification is owed, and the apps connected to each.
4753
+ * Empty where the deployment doesn't sell domains.
4754
+ *
4755
+ * @example
4756
+ * const { domains } = await admin.domains.owned();
4757
+ */
4758
+ declare function owned(ctx: AdminContext): Promise<RegisteredDomainsListResult>;
4759
+ /**
4760
+ * Resolve one of the workspace's domains by name (lists and matches).
4761
+ *
4762
+ * @throws Error `No domain "${name}" in this workspace` when it holds none by
4763
+ * that name.
4764
+ * @internal
4765
+ */
4766
+ declare function findOwned(ctx: AdminContext, name: string): Promise<RegisteredDomainView>;
4767
+ /**
4768
+ * The workspace's registrant contact, which every domain it buys is
4769
+ * registered to, or null before the first purchase.
4770
+ *
4771
+ * @example
4772
+ * const { contact } = await admin.domains.contactGet();
4773
+ */
4774
+ declare function contactGet(ctx: AdminContext): Promise<RegisteredDomainsContactResult>;
4775
+ /**
4776
+ * Set the registrant contact: the legal owner of the workspace's domains
4777
+ * (the organization when `companyName` is set, the person otherwise), whom
4778
+ * ICANN emails to verify. It's put on every domain the workspace holds;
4779
+ * `notUpdated` lists any Name.com wouldn't take it on.
4780
+ *
4781
+ * @throws AdminApiError `invalid_contact` (400) — the message names what's
4782
+ * missing or malformed; `namecom_not_configured` (400).
4783
+ * @example
4784
+ * await admin.domains.contactSet({
4785
+ * firstName: 'Ada', lastName: 'Lovelace', address1: '1 Main St', city: 'Austin',
4786
+ * state: 'TX', zip: '78701', country: 'US', email: 'ada@acme.com', phone: '+15125550123',
4787
+ * });
4788
+ */
4789
+ declare function contactSet(ctx: AdminContext, contact: RegistrantContact): Promise<RegisteredDomainsContactSetResult>;
4790
+ interface ZoneRecordParams {
4791
+ /** Relative to the zone: `www`, `_dmarc`, or `` for the apex. */
4792
+ host: string;
4793
+ type: RegisteredDomainRecordType;
4794
+ answer: string;
4795
+ /** Seconds, at least 300. */
4796
+ ttl?: number;
4797
+ /** MX and SRV only. */
4798
+ priority?: number;
4799
+ }
4800
+ /**
4801
+ * Every DNS record on a bought domain's zone. The ones the platform wrote for
4802
+ * a connection carry `managed` (what they're for) and can't be changed here;
4803
+ * the rest are the owner's.
4804
+ *
4805
+ * @throws Error `No domain "${name}" in this workspace`; AdminApiError
4806
+ * `domain_not_found` (404) — not active.
4807
+ * @example
4808
+ * const { records } = await admin.domains.zone('acmebakery.com');
4809
+ */
4810
+ declare function zone(ctx: AdminContext, name: string): Promise<RegisteredDomainsZoneResult>;
4811
+ /**
4812
+ * Add a record to a bought domain's zone, like a site verification TXT.
4813
+ *
4814
+ * @throws AdminApiError `invalid_record` (400); `domain_not_found` (404).
4815
+ * @example
4816
+ * await admin.domains.zoneAdd('acmebakery.com', { host: '', type: 'TXT', answer: 'google-site-verification=abc' });
4817
+ */
4818
+ declare function zoneAdd(ctx: AdminContext, name: string, record: ZoneRecordParams): Promise<RegisteredDomainsRecordResult>;
4819
+ /**
4820
+ * Replace one of the owner's records (by the id `zone` lists).
4821
+ *
4822
+ * @throws AdminApiError `record_managed` (409) — the platform wrote it for a
4823
+ * connection; `invalid_record` (400); `domain_not_found` (404).
4824
+ * @example
4825
+ * await admin.domains.zoneUpdate('acmebakery.com', 123, { host: 'www', type: 'CNAME', answer: 'acme.example.net' });
4826
+ */
4827
+ declare function zoneUpdate(ctx: AdminContext, name: string, recordId: number, record: ZoneRecordParams): Promise<RegisteredDomainsRecordResult>;
4828
+ /**
4829
+ * Delete one of the owner's records.
4830
+ *
4831
+ * @throws AdminApiError `record_managed` (409); `domain_not_found` (404).
4832
+ * @example
4833
+ * await admin.domains.zoneDelete('acmebakery.com', 123);
4834
+ */
4835
+ declare function zoneDelete(ctx: AdminContext, name: string, recordId: number): Promise<RegisteredDomainsRecordDeleteResult>;
4528
4836
 
4837
+ type domains_BuyParams = BuyParams;
4838
+ type domains_ZoneRecordParams = ZoneRecordParams;
4839
+ declare const domains_buy: typeof buy;
4529
4840
  declare const domains_check: typeof check;
4841
+ declare const domains_contactGet: typeof contactGet;
4842
+ declare const domains_contactSet: typeof contactSet;
4530
4843
  declare const domains_customAdd: typeof customAdd;
4531
4844
  declare const domains_customCheck: typeof customCheck;
4532
4845
  declare const domains_customList: typeof customList;
4533
4846
  declare const domains_customRemove: typeof customRemove;
4534
4847
  declare const domains_customRetry: typeof customRetry;
4535
4848
  declare const domains_findHostname: typeof findHostname;
4849
+ declare const domains_findOwned: typeof findOwned;
4850
+ declare const domains_owned: typeof owned;
4851
+ declare const domains_quote: typeof quote;
4852
+ declare const domains_search: typeof search;
4853
+ declare const domains_zone: typeof zone;
4854
+ declare const domains_zoneAdd: typeof zoneAdd;
4855
+ declare const domains_zoneDelete: typeof zoneDelete;
4856
+ declare const domains_zoneUpdate: typeof zoneUpdate;
4536
4857
  declare namespace domains {
4537
- 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 };
4858
+ export { type domains_BuyParams as BuyParams, type domains_ZoneRecordParams as ZoneRecordParams, domains_buy as buy, domains_check as check, domains_contactGet as contactGet, domains_contactSet as contactSet, domains_customAdd as customAdd, domains_customCheck as customCheck, domains_customList as customList, domains_customRemove as customRemove, domains_customRetry as customRetry, domains_findHostname as findHostname, domains_findOwned as findOwned, get$5 as get, domains_owned as owned, domains_quote as quote, domains_search as search, set$1 as set, domains_zone as zone, domains_zoneAdd as zoneAdd, domains_zoneDelete as zoneDelete, domains_zoneUpdate as zoneUpdate };
4538
4859
  }
4539
4860
 
4540
4861
  /**
@@ -4554,6 +4875,7 @@ declare namespace domains {
4554
4875
  * customerApps/AppOutboundEmail/batchView.ts
4555
4876
  * core/EmailTransport/drivers/index.ts
4556
4877
  */
4878
+
4557
4879
  /** Per-recipient outbound delivery status. */
4558
4880
  type EmailMessageStatus = 'suppressed' | 'failed' | 'sent' | 'delivered' | 'blocked' | 'bounced' | 'complained' | 'delayed' | 'rejected';
4559
4881
  /** Origin of the outbound message. */
@@ -4866,7 +5188,10 @@ interface EmailInboxResult {
4866
5188
  }
4867
5189
  /** email domains list → GET /settings/outbound-email-domains */
4868
5190
  interface OutboundEmailDomainsListResult {
4869
- domains: OutboundEmailDomainView[];
5191
+ /** `boughtDomain`: the domain the workspace bought that this one is on, whose records the platform writes. */
5192
+ domains: Array<OutboundEmailDomainView & {
5193
+ boughtDomain: BoughtDomain | null;
5194
+ }>;
4870
5195
  /** Null where the deployment sends no email (`emailConfigured` false). */
4871
5196
  effectiveSender: EmailEffectiveSender | null;
4872
5197
  emailConfigured: boolean;
@@ -4881,6 +5206,8 @@ interface OutboundEmailDomainCheckResult {
4881
5206
  /** email domains add → POST /settings/outbound-email-domains */
4882
5207
  interface OutboundEmailDomainAddResult {
4883
5208
  domain: OutboundEmailDomainView;
5209
+ /** Set on add when the domain is one the workspace bought: the records the platform wrote. */
5210
+ registeredDomain?: RegisteredDomainRecords | null;
4884
5211
  }
4885
5212
  /** email domains verify → POST /settings/outbound-email-domains/:id/retry */
4886
5213
  type OutboundEmailDomainVerifyResult = OutboundEmailDomainAddResult;
@@ -4890,7 +5217,10 @@ interface OutboundEmailDomainDeleteResult {
4890
5217
  }
4891
5218
  /** email inbound-domains list → GET /settings/email-domains */
4892
5219
  interface InboundEmailDomainsListResult {
4893
- domains: InboundEmailDomainView[];
5220
+ /** `boughtDomain`: the domain the workspace bought that this one is on, whose records the platform writes. */
5221
+ domains: Array<InboundEmailDomainView & {
5222
+ boughtDomain: BoughtDomain | null;
5223
+ }>;
4894
5224
  }
4895
5225
  /**
4896
5226
  * email inbound-domains check → POST /settings/email-domains/check-domain
@@ -4905,6 +5235,8 @@ interface InboundEmailDomainCheckResult {
4905
5235
  /** email inbound-domains add → POST /settings/email-domains */
4906
5236
  interface InboundEmailDomainAddResult {
4907
5237
  domain: InboundEmailDomainView;
5238
+ /** Set on add when the domain is one the workspace bought: the records the platform wrote. */
5239
+ registeredDomain?: RegisteredDomainRecords | null;
4908
5240
  }
4909
5241
  /** email inbound-domains verify → POST /settings/email-domains/:id/retry */
4910
5242
  type InboundEmailDomainVerifyResult = InboundEmailDomainAddResult;
@@ -4988,9 +5320,9 @@ type ForDirection<D extends DomainDirection, Sending, Inbound> = [
4988
5320
  /**
4989
5321
  * Response types for the file-storage management API.
4990
5322
  *
4991
- * Transcribed from youai-api:
4992
- * src/http/routes/V2Apps/manage/files.ts
4993
- * src/common/Storage/AppFilesService.ts
5323
+ * Transcribed from the api (apps/api/src/):
5324
+ * roles/http/routes/Apps/manage/files.ts
5325
+ * platform/Storage/AppFilesService.ts
4994
5326
  *
4995
5327
  * 204/empty responses surface as `{ ok: true; status: number }` (readBody in api.ts).
4996
5328
  */
@@ -5316,10 +5648,10 @@ declare namespace files {
5316
5648
  /**
5317
5649
  * Response types for the provisioned-infrastructure management API.
5318
5650
  *
5319
- * Transcribed from youai-api:
5320
- * src/http/routes/V2Apps/manage/provisionedResources.ts
5321
- * src/common/Provisioning/types.ts
5322
- * src/common/Provisioning/offerings/define.ts
5651
+ * Transcribed from the api (apps/api/src/):
5652
+ * roles/http/routes/Apps/manage/provisionedResources.ts
5653
+ * customerApps/AppDedicatedResources/types.ts
5654
+ * customerApps/AppDedicatedResources/offerings/define.ts
5323
5655
  */
5324
5656
 
5325
5657
  /** Where a resource is in its lifecycle. Written only by the platform. */
@@ -5690,10 +6022,10 @@ declare namespace infra {
5690
6022
  /**
5691
6023
  * Result types for the `issues` CLI commands.
5692
6024
  *
5693
- * Transcribed from:
5694
- * youai-api/src/http/routes/V2Apps/manage/issues.ts
5695
- * youai-api/src/common/Db/v2Apps/V2AppIssuesDao.ts
5696
- * youai-api/src/common/Db/v2Apps/V2AppIssueCommentsDao.ts
6025
+ * Transcribed from the api (apps/api/src/):
6026
+ * roles/http/routes/Apps/manage/issues.ts
6027
+ * customerApps/AppIssues/dao/AppIssuesDao.ts
6028
+ * customerApps/AppIssues/dao/AppIssueCommentsDao.ts
5697
6029
  */
5698
6030
  type IssueStatus = 'open' | 'closed';
5699
6031
  /**
@@ -5970,15 +6302,15 @@ declare namespace issues {
5970
6302
  /**
5971
6303
  * Result types for the `jewels` CLI commands.
5972
6304
  *
5973
- * Transcribed from:
5974
- * youai-api/src/http/routes/V2Apps/manage/jewels.ts
5975
- * youai-api/src/common/Db/v2Apps/jewels/V2JewelPairsDao.ts
5976
- * youai-api/src/common/Db/v2Apps/jewels/V2TrainingRunsDao.ts
5977
- * youai-api/src/common/Db/v2Apps/jewels/V2JewelProposalsDao.ts
5978
- * youai-api/src/common/Db/v2Apps/jewels/resolveQueueItem.ts
5979
- * youai-api/src/common/Db/v2Apps/jewels/training.ts
5980
- * youai-api/src/common/Db/v2Apps/jewels/gradeTrainingRun.ts
5981
- * youai-api/src/common/Db/v2Apps/jewels/datasetExport.ts
6305
+ * Transcribed from the api (apps/api/src/):
6306
+ * roles/http/routes/Apps/manage/jewels.ts
6307
+ * customerApps/AppJewels/dao/JewelPairsDao.ts
6308
+ * customerApps/AppModelTraining/dao/TrainingRunsDao.ts
6309
+ * customerApps/AppJewels/dao/JewelProposalsDao.ts
6310
+ * customerApps/AppJewels/resolveQueueItem.ts
6311
+ * customerApps/AppModelTraining/training.ts
6312
+ * customerApps/AppModelTraining/gradeTrainingRun.ts
6313
+ * customerApps/AppModelTraining/datasetExport.ts
5982
6314
  */
5983
6315
  /**
5984
6316
  * `expired` is platform-assigned only: a pending arrival proposal whose
@@ -6582,11 +6914,11 @@ declare namespace jewels {
6582
6914
  /**
6583
6915
  * Response types for the releases command group.
6584
6916
  *
6585
- * Sources in youai-api:
6586
- * GET /releases → src/http/routes/V2Apps/manage/releases.ts
6587
- * GET /releases/:releaseId → src/http/routes/V2Apps/manage/dashboard.ts
6588
- * GET /releases/by-commit/:sha → src/http/routes/V2Apps/manage/dashboard.ts
6589
- * GET /dashboard → src/http/routes/V2Apps/manage/dashboard.ts
6917
+ * Sources in the api (apps/api/src/):
6918
+ * GET /releases → roles/http/routes/Apps/manage/releases.ts
6919
+ * GET /releases/:releaseId → roles/http/routes/Apps/manage/dashboard.ts
6920
+ * GET /releases/by-commit/:sha → roles/http/routes/Apps/manage/dashboard.ts
6921
+ * GET /dashboard → roles/http/routes/Apps/manage/dashboard.ts
6590
6922
  */
6591
6923
  interface V2CommitInfo {
6592
6924
  authorName: string;
@@ -6610,7 +6942,7 @@ interface V2BuildLogEntry {
6610
6942
  type V2ReleaseStatus = 'building' | 'compiled' | 'live' | 'preview' | 'dev' | 'failed' | 'superseded';
6611
6943
  /**
6612
6944
  * Why a failed release failed — derived server-side from the build log
6613
- * (describeReleaseFailure() in youai-api) and present on every release
6945
+ * (describeReleaseFailure() in the api) and present on every release
6614
6946
  * shape. All three are null unless `status` is 'failed'.
6615
6947
  *
6616
6948
  * `failureKind` is the field to branch on:
@@ -6629,7 +6961,7 @@ interface ReleaseFailureFields {
6629
6961
  /**
6630
6962
  * Lightweight release projection returned by the paginated list endpoint.
6631
6963
  * Heavy fields (buildLog, manifest, methods, interfaces) are dropped.
6632
- * Produced by toReleaseFragment() in youai-api.
6964
+ * Produced by toReleaseFragment() in the api.
6633
6965
  */
6634
6966
  interface ReleaseFragment extends ReleaseFailureFields {
6635
6967
  id: string;
@@ -6816,11 +7148,11 @@ interface DashboardResult {
6816
7148
  * 'methods list' uses DashboardResult from ./releases.ts (both commands call
6817
7149
  * GET /dashboard and read liveRelease).
6818
7150
  *
6819
- * Sources in youai-api:
7151
+ * Sources in the api (apps/api/src/):
6820
7152
  * POST /methods/:methodId/invoke
6821
- * → src/http/routes/V2Apps/serve/methods/handleInvoke.ts
7153
+ * → roles/http/routes/Apps/serve/methods/handleInvoke.ts
6822
7154
  * POST /methods/:methodId/invoke-as
6823
- * → src/http/routes/V2Apps/manage/invokeMethodAs.ts
7155
+ * → roles/http/routes/Apps/manage/invokeMethodAs.ts
6824
7156
  */
6825
7157
  /**
6826
7158
  * Non-streaming response from POST .../methods/:methodId/invoke and
@@ -7042,9 +7374,9 @@ declare namespace prerender {
7042
7374
  *
7043
7375
  * Chunks are ordinary private files in the app's `qa-recordings` store, keyed
7044
7376
  * `{sessionId}/{runId}/{seq}.json`, so `ls` here is a grouped view over
7045
- * `files.ls` rather than its own endpoint. Transcribed from youai-api:
7046
- * src/http/routes/V2Apps/develop/recordings.ts
7047
- * src/common/Recordings/sessions.ts
7377
+ * `files.ls` rather than its own endpoint. Transcribed from the api (apps/api/src/):
7378
+ * roles/http/routes/Apps/develop/recordings.ts
7379
+ * customerApps/AppDevBoxes/recordings/sessions.ts
7048
7380
  *
7049
7381
  * Export is the exception — it renders on the dev box (see ../ops/recordings).
7050
7382
  */
@@ -7553,12 +7885,12 @@ declare namespace requests {
7553
7885
  /**
7554
7886
  * Response types for the secrets command group.
7555
7887
  *
7556
- * Sources in youai-api:
7557
- * GET /secrets → src/http/routes/V2Apps/manage/secrets.ts
7558
- * GET /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7559
- * PUT /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7560
- * DELETE /secrets/:key → src/http/routes/V2Apps/manage/secrets.ts
7561
- * AppSecretsDao → src/common/Db/v2Apps/AppSecretsDao.ts
7888
+ * Sources in the api (apps/api/src/):
7889
+ * GET /secrets → roles/http/routes/Apps/manage/secrets.ts
7890
+ * GET /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7891
+ * PUT /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7892
+ * DELETE /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
7893
+ * AppSecretsDao → customerApps/AppSecrets/dao/AppSecretsDao.ts
7562
7894
  */
7563
7895
  /**
7564
7896
  * A secret metadata row (no decrypted values).
@@ -7683,14 +8015,14 @@ declare namespace secrets {
7683
8015
  /**
7684
8016
  * Response types for the settings command group.
7685
8017
  *
7686
- * Sources in youai-api:
7687
- * GET /settings/v2 → src/http/routes/V2Apps/manage/settings.ts
7688
- * POST /settings/v2 → src/http/routes/V2Apps/manage/settings.ts
7689
- * V2AppSettings → src/common/Db/AppsDao/_helpers/v2AppSettings.ts
8018
+ * Sources in the api (apps/api/src/):
8019
+ * GET /settings/v2 → roles/http/routes/Apps/manage/settings.ts
8020
+ * POST /settings/v2 → roles/http/routes/Apps/manage/settings.ts
8021
+ * V2AppSettings → customerApps/AppRecord/settings.ts
7690
8022
  */
7691
8023
  /**
7692
8024
  * Mutable app toggles stored in apps.v2_settings. Faithfully transcribed from
7693
- * V2AppSettings in youai-api; this is the authoritative type for both the GET
8025
+ * V2AppSettings in the api; this is the authoritative type for both the GET
7694
8026
  * and POST /settings/v2 responses.
7695
8027
  */
7696
8028
  interface V2AppSettings {
@@ -7804,9 +8136,9 @@ declare namespace settings {
7804
8136
  /**
7805
8137
  * Response types for the v2 app users endpoints.
7806
8138
  *
7807
- * Transcribed from youai-api:
7808
- * src/http/routes/V2Apps/manage/appUsers.ts — per-endpoint responses
7809
- * src/common/Db/v2Apps/V2AppManagedUsersDao.ts — V2AppManagedUser shape
8139
+ * Transcribed from the api (apps/api/src/):
8140
+ * roles/http/routes/Apps/manage/appUsers.ts — per-endpoint responses
8141
+ * customerApps/AppUsers/dao/ManagedUsersDao.ts — V2AppManagedUser shape
7810
8142
  */
7811
8143
  /**
7812
8144
  * How a managed user authenticates, derived server-side from the user row's
@@ -7934,15 +8266,15 @@ declare namespace users {
7934
8266
  /**
7935
8267
  * Response types for the v2 voice endpoints (sessions, settings, phone numbers).
7936
8268
  *
7937
- * Transcribed from youai-api:
7938
- * src/http/routes/V2Apps/manage/voiceSessions.ts — sessions + settings routes
7939
- * src/http/routes/V2Apps/manage/voicePhoneNumbers.ts — phone-number routes
7940
- * src/common/Db/v2Apps/V2VoiceSessionsDao.ts — session shapes
7941
- * src/common/Db/v2Apps/V2VoiceSettingsDao.ts — V2VoiceSettings
7942
- * src/common/Db/v2Apps/voiceUsageBilling.ts — cost breakdown types
7943
- * src/common/Db/v2Apps/V2VoicePhoneNumbersDao.ts — VoicePhoneNumber
7944
- * src/common/Telnyx/TelnyxNumbersService.ts — availableNumberToView
7945
- * src/http/routes/V2Apps/serve/voice/_helpers/policy.ts — ResolvedVoicePolicy
8269
+ * Transcribed from the api (apps/api/src/):
8270
+ * roles/http/routes/Apps/manage/voiceSessions.ts — sessions + settings routes
8271
+ * roles/http/routes/Apps/manage/voicePhoneNumbers.ts — phone-number routes
8272
+ * customerApps/AppVoiceAgents/dao/VoiceSessionsDao.ts — session shapes
8273
+ * customerApps/AppVoiceAgents/dao/VoiceSettingsDao.ts — V2VoiceSettings
8274
+ * customerApps/AppVoiceAgents/usageBilling.ts — cost breakdown types
8275
+ * customerApps/AppVoiceAgents/dao/VoicePhoneNumbersDao.ts — VoicePhoneNumber
8276
+ * customerApps/AppVoiceAgents/telephony/TelnyxNumbersService.ts — availableNumberToView
8277
+ * customerApps/AppVoiceAgents/policy.ts — ResolvedVoicePolicy
7946
8278
  */
7947
8279
  type VoicePhoneNumberStatus = 'pending' | 'active' | 'failed' | 'released';
7948
8280
  /** One dedicated phone number as returned by the phone-number endpoints. */
@@ -8422,4 +8754,4 @@ declare class AdminTimeoutError extends Error {
8422
8754
 
8423
8755
  declare const admin: AdminClient;
8424
8756
 
8425
- 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 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 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, admin, createAdminClient, admin as default };
8757
+ 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 };