@madewithremy/admin 0.1.36 → 0.1.38
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/README.md +1 -1
- package/dist/index.d.ts +119 -109
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/prod.js +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Configuration is read from the environment and the workspace — there are no co
|
|
|
25
25
|
| Source | Meaning |
|
|
26
26
|
|---|---|
|
|
27
27
|
| `MINDSTUDIO_API_KEY` | Org-scoped `sk_` API key (required) |
|
|
28
|
-
| `MINDSTUDIO_BASE_URL` | API origin (default `https://
|
|
28
|
+
| `MINDSTUDIO_BASE_URL` | API origin (default `https://v1.mindstudio-api.com`) |
|
|
29
29
|
| `WORKSPACE_DIR` | Workspace root (default `/home/vercel-sandbox/workspace`) |
|
|
30
30
|
| `${WORKSPACE_DIR}/mindstudio.json` | `appId` — which app the CLI manages |
|
|
31
31
|
| `REMY_SIDECAR_URL` | Sandbox sidecar for `qa-recordings export` (default `http://127.0.0.1:4388`) |
|
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
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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
|
|
173
|
-
*
|
|
174
|
-
*
|
|
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
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
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
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
*
|
|
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
|
|
1020
|
+
* Response shapes for the cron command group — transcribed from the api.
|
|
1021
1021
|
*
|
|
1022
|
-
* Sources:
|
|
1023
|
-
*
|
|
1024
|
-
*
|
|
1025
|
-
*
|
|
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
|
|
1137
|
-
* POST /manage/lift-dev-to-live →
|
|
1138
|
-
* POST /manage/lift-live-to-dev →
|
|
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
|
|
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
|
|
1284
|
-
*
|
|
1285
|
-
*
|
|
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
|
|
1568
|
-
*
|
|
1569
|
-
*
|
|
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
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
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
|
|
1854
|
-
*
|
|
1855
|
-
*
|
|
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
|
|
2058
|
-
*
|
|
2059
|
-
*
|
|
2060
|
-
*
|
|
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
|
|
2161
|
-
*
|
|
2162
|
-
*
|
|
2163
|
-
*
|
|
2164
|
-
*
|
|
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
|
*/
|
|
@@ -4104,8 +4104,8 @@ declare namespace dataSourceMappers {
|
|
|
4104
4104
|
/**
|
|
4105
4105
|
* Response types for the db command group.
|
|
4106
4106
|
*
|
|
4107
|
-
* Sources in
|
|
4108
|
-
* POST /db/query →
|
|
4107
|
+
* Sources in the api (apps/api/src/):
|
|
4108
|
+
* POST /db/query → roles/http/routes/Apps/manage/dbQuery.ts
|
|
4109
4109
|
* AppDatabasesDao.executeSqlBatch returns
|
|
4110
4110
|
* Array<{ rows: any[]; changes: number }>
|
|
4111
4111
|
*/
|
|
@@ -4317,9 +4317,9 @@ declare namespace diagnostics {
|
|
|
4317
4317
|
/**
|
|
4318
4318
|
* Response types for the v2 custom domains and subdomain endpoints.
|
|
4319
4319
|
*
|
|
4320
|
-
* Transcribed from
|
|
4321
|
-
*
|
|
4322
|
-
*
|
|
4320
|
+
* Transcribed from the api (apps/api/src/):
|
|
4321
|
+
* roles/http/routes/Apps/manage/settings.ts — custom-subdomain routes
|
|
4322
|
+
* roles/http/routes/Apps/manage/customDomains.ts — custom-domains routes
|
|
4323
4323
|
* (local HostnameView + DnsInstructions interfaces in customDomains.ts)
|
|
4324
4324
|
*/
|
|
4325
4325
|
/**
|
|
@@ -4988,9 +4988,9 @@ type ForDirection<D extends DomainDirection, Sending, Inbound> = [
|
|
|
4988
4988
|
/**
|
|
4989
4989
|
* Response types for the file-storage management API.
|
|
4990
4990
|
*
|
|
4991
|
-
* Transcribed from
|
|
4992
|
-
*
|
|
4993
|
-
*
|
|
4991
|
+
* Transcribed from the api (apps/api/src/):
|
|
4992
|
+
* roles/http/routes/Apps/manage/files.ts
|
|
4993
|
+
* platform/Storage/AppFilesService.ts
|
|
4994
4994
|
*
|
|
4995
4995
|
* 204/empty responses surface as `{ ok: true; status: number }` (readBody in api.ts).
|
|
4996
4996
|
*/
|
|
@@ -5316,10 +5316,10 @@ declare namespace files {
|
|
|
5316
5316
|
/**
|
|
5317
5317
|
* Response types for the provisioned-infrastructure management API.
|
|
5318
5318
|
*
|
|
5319
|
-
* Transcribed from
|
|
5320
|
-
*
|
|
5321
|
-
*
|
|
5322
|
-
*
|
|
5319
|
+
* Transcribed from the api (apps/api/src/):
|
|
5320
|
+
* roles/http/routes/Apps/manage/provisionedResources.ts
|
|
5321
|
+
* customerApps/AppDedicatedResources/types.ts
|
|
5322
|
+
* customerApps/AppDedicatedResources/offerings/define.ts
|
|
5323
5323
|
*/
|
|
5324
5324
|
|
|
5325
5325
|
/** Where a resource is in its lifecycle. Written only by the platform. */
|
|
@@ -5690,10 +5690,10 @@ declare namespace infra {
|
|
|
5690
5690
|
/**
|
|
5691
5691
|
* Result types for the `issues` CLI commands.
|
|
5692
5692
|
*
|
|
5693
|
-
* Transcribed from:
|
|
5694
|
-
*
|
|
5695
|
-
*
|
|
5696
|
-
*
|
|
5693
|
+
* Transcribed from the api (apps/api/src/):
|
|
5694
|
+
* roles/http/routes/Apps/manage/issues.ts
|
|
5695
|
+
* customerApps/AppIssues/dao/AppIssuesDao.ts
|
|
5696
|
+
* customerApps/AppIssues/dao/AppIssueCommentsDao.ts
|
|
5697
5697
|
*/
|
|
5698
5698
|
type IssueStatus = 'open' | 'closed';
|
|
5699
5699
|
/**
|
|
@@ -5970,15 +5970,15 @@ declare namespace issues {
|
|
|
5970
5970
|
/**
|
|
5971
5971
|
* Result types for the `jewels` CLI commands.
|
|
5972
5972
|
*
|
|
5973
|
-
* Transcribed from:
|
|
5974
|
-
*
|
|
5975
|
-
*
|
|
5976
|
-
*
|
|
5977
|
-
*
|
|
5978
|
-
*
|
|
5979
|
-
*
|
|
5980
|
-
*
|
|
5981
|
-
*
|
|
5973
|
+
* Transcribed from the api (apps/api/src/):
|
|
5974
|
+
* roles/http/routes/Apps/manage/jewels.ts
|
|
5975
|
+
* customerApps/AppJewels/dao/JewelPairsDao.ts
|
|
5976
|
+
* customerApps/AppModelTraining/dao/TrainingRunsDao.ts
|
|
5977
|
+
* customerApps/AppJewels/dao/JewelProposalsDao.ts
|
|
5978
|
+
* customerApps/AppJewels/resolveQueueItem.ts
|
|
5979
|
+
* customerApps/AppModelTraining/training.ts
|
|
5980
|
+
* customerApps/AppModelTraining/gradeTrainingRun.ts
|
|
5981
|
+
* customerApps/AppModelTraining/datasetExport.ts
|
|
5982
5982
|
*/
|
|
5983
5983
|
/**
|
|
5984
5984
|
* `expired` is platform-assigned only: a pending arrival proposal whose
|
|
@@ -6582,11 +6582,11 @@ declare namespace jewels {
|
|
|
6582
6582
|
/**
|
|
6583
6583
|
* Response types for the releases command group.
|
|
6584
6584
|
*
|
|
6585
|
-
* Sources in
|
|
6586
|
-
* GET /releases →
|
|
6587
|
-
* GET /releases/:releaseId →
|
|
6588
|
-
* GET /releases/by-commit/:sha →
|
|
6589
|
-
* GET /dashboard →
|
|
6585
|
+
* Sources in the api (apps/api/src/):
|
|
6586
|
+
* GET /releases → roles/http/routes/Apps/manage/releases.ts
|
|
6587
|
+
* GET /releases/:releaseId → roles/http/routes/Apps/manage/dashboard.ts
|
|
6588
|
+
* GET /releases/by-commit/:sha → roles/http/routes/Apps/manage/dashboard.ts
|
|
6589
|
+
* GET /dashboard → roles/http/routes/Apps/manage/dashboard.ts
|
|
6590
6590
|
*/
|
|
6591
6591
|
interface V2CommitInfo {
|
|
6592
6592
|
authorName: string;
|
|
@@ -6610,7 +6610,7 @@ interface V2BuildLogEntry {
|
|
|
6610
6610
|
type V2ReleaseStatus = 'building' | 'compiled' | 'live' | 'preview' | 'dev' | 'failed' | 'superseded';
|
|
6611
6611
|
/**
|
|
6612
6612
|
* Why a failed release failed — derived server-side from the build log
|
|
6613
|
-
* (describeReleaseFailure() in
|
|
6613
|
+
* (describeReleaseFailure() in the api) and present on every release
|
|
6614
6614
|
* shape. All three are null unless `status` is 'failed'.
|
|
6615
6615
|
*
|
|
6616
6616
|
* `failureKind` is the field to branch on:
|
|
@@ -6629,7 +6629,7 @@ interface ReleaseFailureFields {
|
|
|
6629
6629
|
/**
|
|
6630
6630
|
* Lightweight release projection returned by the paginated list endpoint.
|
|
6631
6631
|
* Heavy fields (buildLog, manifest, methods, interfaces) are dropped.
|
|
6632
|
-
* Produced by toReleaseFragment() in
|
|
6632
|
+
* Produced by toReleaseFragment() in the api.
|
|
6633
6633
|
*/
|
|
6634
6634
|
interface ReleaseFragment extends ReleaseFailureFields {
|
|
6635
6635
|
id: string;
|
|
@@ -6816,11 +6816,11 @@ interface DashboardResult {
|
|
|
6816
6816
|
* 'methods list' uses DashboardResult from ./releases.ts (both commands call
|
|
6817
6817
|
* GET /dashboard and read liveRelease).
|
|
6818
6818
|
*
|
|
6819
|
-
* Sources in
|
|
6819
|
+
* Sources in the api (apps/api/src/):
|
|
6820
6820
|
* POST /methods/:methodId/invoke
|
|
6821
|
-
* →
|
|
6821
|
+
* → roles/http/routes/Apps/serve/methods/handleInvoke.ts
|
|
6822
6822
|
* POST /methods/:methodId/invoke-as
|
|
6823
|
-
* →
|
|
6823
|
+
* → roles/http/routes/Apps/manage/invokeMethodAs.ts
|
|
6824
6824
|
*/
|
|
6825
6825
|
/**
|
|
6826
6826
|
* Non-streaming response from POST .../methods/:methodId/invoke and
|
|
@@ -7042,9 +7042,9 @@ declare namespace prerender {
|
|
|
7042
7042
|
*
|
|
7043
7043
|
* Chunks are ordinary private files in the app's `qa-recordings` store, keyed
|
|
7044
7044
|
* `{sessionId}/{runId}/{seq}.json`, so `ls` here is a grouped view over
|
|
7045
|
-
* `files.ls` rather than its own endpoint. Transcribed from
|
|
7046
|
-
*
|
|
7047
|
-
*
|
|
7045
|
+
* `files.ls` rather than its own endpoint. Transcribed from the api (apps/api/src/):
|
|
7046
|
+
* roles/http/routes/Apps/develop/recordings.ts
|
|
7047
|
+
* customerApps/AppDevBoxes/recordings/sessions.ts
|
|
7048
7048
|
*
|
|
7049
7049
|
* Export is the exception — it renders on the dev box (see ../ops/recordings).
|
|
7050
7050
|
*/
|
|
@@ -7225,6 +7225,15 @@ declare function byCommit(ctx: AdminContext, commitSha: string): Promise<{
|
|
|
7225
7225
|
* if (live) console.log(live.commitSha, live.publishedAt);
|
|
7226
7226
|
*/
|
|
7227
7227
|
declare function dashboardLive(ctx: AdminContext): Promise<DashboardLiveRelease | null>;
|
|
7228
|
+
/**
|
|
7229
|
+
* The URL the app is served on, as the platform resolves it: its live custom
|
|
7230
|
+
* domain, then its platform subdomain, then its id's own host. Ends in a slash.
|
|
7231
|
+
* Fetched from the dashboard endpoint.
|
|
7232
|
+
*
|
|
7233
|
+
* @example
|
|
7234
|
+
* const url = await admin.releases.primaryUrl();
|
|
7235
|
+
*/
|
|
7236
|
+
declare function primaryUrl(ctx: AdminContext): Promise<string>;
|
|
7228
7237
|
/**
|
|
7229
7238
|
* Compact, stable projection of a release for the wait result.
|
|
7230
7239
|
*
|
|
@@ -7342,9 +7351,10 @@ type releases_WaitForCommitResult = WaitForCommitResult;
|
|
|
7342
7351
|
type releases_WaitOutcome = WaitOutcome;
|
|
7343
7352
|
declare const releases_byCommit: typeof byCommit;
|
|
7344
7353
|
declare const releases_dashboardLive: typeof dashboardLive;
|
|
7354
|
+
declare const releases_primaryUrl: typeof primaryUrl;
|
|
7345
7355
|
declare const releases_waitForCommit: typeof waitForCommit;
|
|
7346
7356
|
declare namespace releases {
|
|
7347
|
-
export { type releases_ReleaseSummary as ReleaseSummary, type releases_ReleasesListParams as ReleasesListParams, type releases_WaitForCommitParams as WaitForCommitParams, type releases_WaitForCommitResult as WaitForCommitResult, type releases_WaitOutcome as WaitOutcome, releases_byCommit as byCommit, releases_dashboardLive as dashboardLive, get$2 as get, list$3 as list, releases_waitForCommit as waitForCommit };
|
|
7357
|
+
export { type releases_ReleaseSummary as ReleaseSummary, type releases_ReleasesListParams as ReleasesListParams, type releases_WaitForCommitParams as WaitForCommitParams, type releases_WaitForCommitResult as WaitForCommitResult, type releases_WaitOutcome as WaitOutcome, releases_byCommit as byCommit, releases_dashboardLive as dashboardLive, get$2 as get, list$3 as list, releases_primaryUrl as primaryUrl, releases_waitForCommit as waitForCommit };
|
|
7348
7358
|
}
|
|
7349
7359
|
|
|
7350
7360
|
/**
|
|
@@ -7543,12 +7553,12 @@ declare namespace requests {
|
|
|
7543
7553
|
/**
|
|
7544
7554
|
* Response types for the secrets command group.
|
|
7545
7555
|
*
|
|
7546
|
-
* Sources in
|
|
7547
|
-
* GET /secrets →
|
|
7548
|
-
* GET /secrets/:key →
|
|
7549
|
-
* PUT /secrets/:key →
|
|
7550
|
-
* DELETE /secrets/:key →
|
|
7551
|
-
* AppSecretsDao →
|
|
7556
|
+
* Sources in the api (apps/api/src/):
|
|
7557
|
+
* GET /secrets → roles/http/routes/Apps/manage/secrets.ts
|
|
7558
|
+
* GET /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
|
|
7559
|
+
* PUT /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
|
|
7560
|
+
* DELETE /secrets/:key → roles/http/routes/Apps/manage/secrets.ts
|
|
7561
|
+
* AppSecretsDao → customerApps/AppSecrets/dao/AppSecretsDao.ts
|
|
7552
7562
|
*/
|
|
7553
7563
|
/**
|
|
7554
7564
|
* A secret metadata row (no decrypted values).
|
|
@@ -7673,14 +7683,14 @@ declare namespace secrets {
|
|
|
7673
7683
|
/**
|
|
7674
7684
|
* Response types for the settings command group.
|
|
7675
7685
|
*
|
|
7676
|
-
* Sources in
|
|
7677
|
-
* GET /settings/v2 →
|
|
7678
|
-
* POST /settings/v2 →
|
|
7679
|
-
* V2AppSettings →
|
|
7686
|
+
* Sources in the api (apps/api/src/):
|
|
7687
|
+
* GET /settings/v2 → roles/http/routes/Apps/manage/settings.ts
|
|
7688
|
+
* POST /settings/v2 → roles/http/routes/Apps/manage/settings.ts
|
|
7689
|
+
* V2AppSettings → customerApps/AppRecord/settings.ts
|
|
7680
7690
|
*/
|
|
7681
7691
|
/**
|
|
7682
7692
|
* Mutable app toggles stored in apps.v2_settings. Faithfully transcribed from
|
|
7683
|
-
* V2AppSettings in
|
|
7693
|
+
* V2AppSettings in the api; this is the authoritative type for both the GET
|
|
7684
7694
|
* and POST /settings/v2 responses.
|
|
7685
7695
|
*/
|
|
7686
7696
|
interface V2AppSettings {
|
|
@@ -7794,9 +7804,9 @@ declare namespace settings {
|
|
|
7794
7804
|
/**
|
|
7795
7805
|
* Response types for the v2 app users endpoints.
|
|
7796
7806
|
*
|
|
7797
|
-
* Transcribed from
|
|
7798
|
-
*
|
|
7799
|
-
*
|
|
7807
|
+
* Transcribed from the api (apps/api/src/):
|
|
7808
|
+
* roles/http/routes/Apps/manage/appUsers.ts — per-endpoint responses
|
|
7809
|
+
* customerApps/AppUsers/dao/ManagedUsersDao.ts — V2AppManagedUser shape
|
|
7800
7810
|
*/
|
|
7801
7811
|
/**
|
|
7802
7812
|
* How a managed user authenticates, derived server-side from the user row's
|
|
@@ -7924,15 +7934,15 @@ declare namespace users {
|
|
|
7924
7934
|
/**
|
|
7925
7935
|
* Response types for the v2 voice endpoints (sessions, settings, phone numbers).
|
|
7926
7936
|
*
|
|
7927
|
-
* Transcribed from
|
|
7928
|
-
*
|
|
7929
|
-
*
|
|
7930
|
-
*
|
|
7931
|
-
*
|
|
7932
|
-
*
|
|
7933
|
-
*
|
|
7934
|
-
*
|
|
7935
|
-
*
|
|
7937
|
+
* Transcribed from the api (apps/api/src/):
|
|
7938
|
+
* roles/http/routes/Apps/manage/voiceSessions.ts — sessions + settings routes
|
|
7939
|
+
* roles/http/routes/Apps/manage/voicePhoneNumbers.ts — phone-number routes
|
|
7940
|
+
* customerApps/AppVoiceAgents/dao/VoiceSessionsDao.ts — session shapes
|
|
7941
|
+
* customerApps/AppVoiceAgents/dao/VoiceSettingsDao.ts — V2VoiceSettings
|
|
7942
|
+
* customerApps/AppVoiceAgents/usageBilling.ts — cost breakdown types
|
|
7943
|
+
* customerApps/AppVoiceAgents/dao/VoicePhoneNumbersDao.ts — VoicePhoneNumber
|
|
7944
|
+
* customerApps/AppVoiceAgents/telephony/TelnyxNumbersService.ts — availableNumberToView
|
|
7945
|
+
* customerApps/AppVoiceAgents/policy.ts — ResolvedVoicePolicy
|
|
7936
7946
|
*/
|
|
7937
7947
|
type VoicePhoneNumberStatus = 'pending' | 'active' | 'failed' | 'released';
|
|
7938
7948
|
/** One dedicated phone number as returned by the phone-number endpoints. */
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ function parseJsonConfig(raw) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// src/ctx.ts
|
|
40
|
-
var DEFAULT_BASE_URL = "https://
|
|
40
|
+
var DEFAULT_BASE_URL = "https://v1.mindstudio-api.com";
|
|
41
41
|
function loadWorkspaceAppId(workspaceDir = WORKSPACE_DIR) {
|
|
42
42
|
const manifestPath = path.join(workspaceDir, "mindstudio.json");
|
|
43
43
|
let raw;
|
|
@@ -1626,6 +1626,7 @@ __export(releases_exports, {
|
|
|
1626
1626
|
dashboardLive: () => dashboardLive,
|
|
1627
1627
|
get: () => get5,
|
|
1628
1628
|
list: () => list6,
|
|
1629
|
+
primaryUrl: () => primaryUrl,
|
|
1629
1630
|
waitForCommit: () => waitForCommit
|
|
1630
1631
|
});
|
|
1631
1632
|
function list6(ctx, params = {}) {
|
|
@@ -1657,6 +1658,14 @@ async function dashboardLive(ctx) {
|
|
|
1657
1658
|
);
|
|
1658
1659
|
return dashboard.liveRelease;
|
|
1659
1660
|
}
|
|
1661
|
+
async function primaryUrl(ctx) {
|
|
1662
|
+
const dashboard = await call(
|
|
1663
|
+
ctx,
|
|
1664
|
+
"GET",
|
|
1665
|
+
`/_internal/v2/apps/${ctx.appId}/dashboard`
|
|
1666
|
+
);
|
|
1667
|
+
return dashboard.primaryUrl;
|
|
1668
|
+
}
|
|
1660
1669
|
function summarizeRelease(release) {
|
|
1661
1670
|
const summary2 = {
|
|
1662
1671
|
releaseId: release.id,
|