@madewithremy/admin 0.1.57 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/client.d.ts +199 -0
- package/dist/config.d.ts +8 -0
- package/dist/ctx.d.ts +36 -0
- package/dist/errors.d.ts +68 -0
- package/dist/http.d.ts +68 -0
- package/dist/index.d.ts +7 -9442
- package/dist/index.js +6 -14
- package/dist/index.js.map +7 -1
- package/dist/ops/agent.d.ts +44 -0
- package/dist/ops/analytics.d.ts +285 -0
- package/dist/ops/apps.d.ts +33 -0
- package/dist/ops/crashes.d.ts +86 -0
- package/dist/ops/cron.d.ts +40 -0
- package/dist/ops/data.d.ts +68 -0
- package/dist/ops/dataSourceConnectors.d.ts +80 -0
- package/dist/ops/dataSourceEvals.d.ts +208 -0
- package/dist/ops/dataSourceJobs.d.ts +141 -0
- package/dist/ops/dataSourceMappers.d.ts +125 -0
- package/dist/ops/dataSources.d.ts +654 -0
- package/dist/ops/db.d.ts +81 -0
- package/dist/ops/diagnostics.d.ts +42 -0
- package/dist/ops/domains.d.ts +250 -0
- package/dist/ops/email.d.ts +305 -0
- package/dist/ops/events.d.ts +56 -0
- package/dist/ops/feedback.d.ts +24 -0
- package/dist/ops/files.d.ts +166 -0
- package/dist/ops/infra.d.ts +163 -0
- package/dist/ops/issues.d.ts +160 -0
- package/dist/ops/jewels.d.ts +249 -0
- package/dist/ops/methods.d.ts +60 -0
- package/dist/ops/prerender.d.ts +74 -0
- package/dist/ops/previews.d.ts +52 -0
- package/dist/ops/qaRecordings.d.ts +68 -0
- package/dist/ops/releases.d.ts +193 -0
- package/dist/ops/requests.d.ts +73 -0
- package/dist/ops/secrets.d.ts +61 -0
- package/dist/ops/settings.d.ts +45 -0
- package/dist/ops/tasks.d.ts +47 -0
- package/dist/ops/usage.d.ts +40 -0
- package/dist/ops/users.d.ts +59 -0
- package/dist/ops/voice.d.ts +178 -0
- package/dist/output.d.ts +19 -0
- package/dist/parseJsonConfig.d.ts +41 -0
- package/dist/poll.d.ts +38 -0
- package/dist/prod.js +39 -55
- package/dist/runningMethod.d.ts +25 -0
- package/dist/sleep.d.ts +12 -0
- package/dist/types/agent.d.ts +95 -0
- package/dist/types/analytics.d.ts +225 -0
- package/dist/types/apps.d.ts +39 -0
- package/dist/types/crashes.d.ts +81 -0
- package/dist/types/cron.d.ts +68 -0
- package/dist/types/data.d.ts +38 -0
- package/dist/types/dataSourceConnectors.d.ts +59 -0
- package/dist/types/dataSourceEvals.d.ts +225 -0
- package/dist/types/dataSourceJobs.d.ts +283 -0
- package/dist/types/dataSourceMappers.d.ts +204 -0
- package/dist/types/dataSourceReaders.d.ts +102 -0
- package/dist/types/dataSources.d.ts +627 -0
- package/dist/types/db.d.ts +63 -0
- package/dist/types/diagnostics.d.ts +96 -0
- package/dist/types/domains.d.ts +277 -0
- package/dist/types/email.d.ts +400 -0
- package/dist/types/events.d.ts +54 -0
- package/dist/types/feedback.d.ts +11 -0
- package/dist/types/files.d.ts +150 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/infra.d.ts +188 -0
- package/dist/types/issues.d.ts +106 -0
- package/dist/types/jewels.d.ts +336 -0
- package/dist/types/methods.d.ts +34 -0
- package/dist/types/prerender.d.ts +59 -0
- package/dist/types/previews.d.ts +39 -0
- package/dist/types/progress.d.ts +31 -0
- package/dist/types/qaRecordings.d.ts +51 -0
- package/dist/types/releases.d.ts +233 -0
- package/dist/types/requests.d.ts +114 -0
- package/dist/types/secrets.d.ts +42 -0
- package/dist/types/settings.d.ts +79 -0
- package/dist/types/tasks.d.ts +99 -0
- package/dist/types/usage.d.ts +29 -0
- package/dist/types/users.d.ts +61 -0
- package/dist/types/voice.d.ts +197 -0
- package/dist/upload.d.ts +11 -0
- package/package.json +7 -10
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response types for the v2 task log.
|
|
3
|
+
*
|
|
4
|
+
* Transcribed from the api (apps/api/src/):
|
|
5
|
+
* roles/http/routes/Apps/manage/taskTraces.ts — routes
|
|
6
|
+
* customerApps/AppTaskAgents/traces.ts — summary and transcript shapes
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentToolCall } from './agent.js';
|
|
9
|
+
/**
|
|
10
|
+
* How a task ended, as far as the platform can tell (it never sees the loop
|
|
11
|
+
* decide it's done):
|
|
12
|
+
* - `answered`: the last turn ended in a reply.
|
|
13
|
+
* - `in_progress`: the last turn asked for tools and the loop is still going.
|
|
14
|
+
* - `stopped`: the last turn asked for tools and nothing followed.
|
|
15
|
+
* - `error`: the last model call failed.
|
|
16
|
+
*/
|
|
17
|
+
export type TaskTraceOutcome = 'answered' | 'in_progress' | 'stopped' | 'error';
|
|
18
|
+
/** One task run, as the list shows it. */
|
|
19
|
+
export interface TaskTraceSummary {
|
|
20
|
+
traceId: string;
|
|
21
|
+
/** The method execution that started the task — `requests get` opens it. */
|
|
22
|
+
requestId: string | null;
|
|
23
|
+
methodId: string | null;
|
|
24
|
+
source: string | null;
|
|
25
|
+
environment: string;
|
|
26
|
+
/** True = a builder's dev-tunnel run, not live traffic. */
|
|
27
|
+
devSession: boolean;
|
|
28
|
+
model: string;
|
|
29
|
+
outcome: TaskTraceOutcome;
|
|
30
|
+
lastStopReason: string | null;
|
|
31
|
+
turns: number;
|
|
32
|
+
/** More than `turns` means some turns were retried. */
|
|
33
|
+
modelCalls: number;
|
|
34
|
+
toolCallCount: number;
|
|
35
|
+
toolErrorCount: number;
|
|
36
|
+
/** Some turn's last attempt failed; see `turnError` in the transcript. */
|
|
37
|
+
hasTurnError: boolean;
|
|
38
|
+
inputTokens: number;
|
|
39
|
+
outputTokens: number;
|
|
40
|
+
/** Nanodollars (1/1,000,000,000th of a US dollar), retried calls included. */
|
|
41
|
+
billingCost: number;
|
|
42
|
+
/** ISO 8601. */
|
|
43
|
+
startedAt: string;
|
|
44
|
+
/** ISO 8601. */
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
}
|
|
47
|
+
/** A model call that failed rather than replying. */
|
|
48
|
+
export interface TaskTurnError {
|
|
49
|
+
message: string;
|
|
50
|
+
status?: number;
|
|
51
|
+
/** Milliseconds since epoch. */
|
|
52
|
+
at: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* One message in a task transcript. The first is the task's input (a `user`
|
|
56
|
+
* message holding the JSON input); `assistant` messages are the model's
|
|
57
|
+
* turns; `user` messages carrying `toolCallId` are tool results.
|
|
58
|
+
*/
|
|
59
|
+
export interface TaskTranscriptMessage {
|
|
60
|
+
role: string;
|
|
61
|
+
content: string;
|
|
62
|
+
/** Present on an assistant message that requested tools. */
|
|
63
|
+
toolCalls?: AgentToolCall[];
|
|
64
|
+
/** Present on a tool result — matches the `toolCalls[].id` it answers. */
|
|
65
|
+
toolCallId?: string;
|
|
66
|
+
/** The tool reported a failure. */
|
|
67
|
+
isToolError?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* On a method tool's result: the `v2_request_log` id of that call — pass it
|
|
70
|
+
* to `requests get` for input, output, stdout and error. Absent on SDK
|
|
71
|
+
* action and function tools, and on tasks from SDKs older than this field.
|
|
72
|
+
*/
|
|
73
|
+
requestId?: string;
|
|
74
|
+
/** On an assistant message: the turn that produced it. */
|
|
75
|
+
turn?: number;
|
|
76
|
+
stopReason?: string | null;
|
|
77
|
+
/** The model's reasoning for the turn, when it gave any. */
|
|
78
|
+
thinking?: string;
|
|
79
|
+
turnError?: TaskTurnError;
|
|
80
|
+
}
|
|
81
|
+
/** GET /_internal/v2/apps/:appId/task-traces */
|
|
82
|
+
export interface TasksListResult {
|
|
83
|
+
traces: TaskTraceSummary[];
|
|
84
|
+
nextCursor: string | null;
|
|
85
|
+
}
|
|
86
|
+
/** GET /_internal/v2/apps/:appId/task-traces/:traceId */
|
|
87
|
+
export interface TasksGetResult extends TaskTraceSummary {
|
|
88
|
+
/** The task's prompt as the model saw it (the output contract included). */
|
|
89
|
+
system: string | null;
|
|
90
|
+
tools: {
|
|
91
|
+
name: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
}[];
|
|
94
|
+
messages: TaskTranscriptMessage[];
|
|
95
|
+
/** Turns whose record couldn't be read; the transcript has a hole there. */
|
|
96
|
+
missingTurns: number[];
|
|
97
|
+
/** Turns whose content was never kept, because the app had payload logging off (logPayloads). */
|
|
98
|
+
notKeptTurns: number[];
|
|
99
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response types for an app's runtime cost.
|
|
3
|
+
*
|
|
4
|
+
* Transcribed from the api (apps/api/src/):
|
|
5
|
+
* roles/http/routes/Apps/manage/usage.ts — the route and its shape
|
|
6
|
+
*/
|
|
7
|
+
/** How the spend is broken down. */
|
|
8
|
+
export type UsageGroupBy = 'method' | 'model' | 'step';
|
|
9
|
+
/** One row of the breakdown. */
|
|
10
|
+
export interface UsageGroup {
|
|
11
|
+
/** The method's id, the model's id, or the step type. */
|
|
12
|
+
key: string;
|
|
13
|
+
/** What it cost over the window, in dollars. */
|
|
14
|
+
costDollars: number;
|
|
15
|
+
requests: number;
|
|
16
|
+
/** Failed requests; absent for a model row. */
|
|
17
|
+
errors?: number;
|
|
18
|
+
/** For a model row, its type (`text`, `image`, …). */
|
|
19
|
+
modelType?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UsageSummaryResult {
|
|
22
|
+
groupBy: UsageGroupBy;
|
|
23
|
+
startTime: string;
|
|
24
|
+
endTime: string;
|
|
25
|
+
/** The window's total, in dollars. */
|
|
26
|
+
totalCostDollars: number;
|
|
27
|
+
/** Most expensive first. */
|
|
28
|
+
groups: UsageGroup[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response types for the v2 app users endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Transcribed from the api (apps/api/src/):
|
|
5
|
+
* roles/http/routes/Apps/manage/appUsers.ts — per-endpoint responses
|
|
6
|
+
* customerApps/AppUsers/dao/ManagedUsersDao.ts — V2AppManagedUser shape
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* How a managed user authenticates, derived server-side from the user row's
|
|
10
|
+
* `provider` + contact fields. Open enum: known values are 'email' | 'phone'
|
|
11
|
+
* | 'remy' | 'unknown'; new provider values may arrive as the platform grows.
|
|
12
|
+
*/
|
|
13
|
+
export type UserAuthProvider = 'email' | 'phone' | 'remy' | 'unknown' | (string & {});
|
|
14
|
+
/** One app-managed user as returned by the list endpoint. */
|
|
15
|
+
export interface UserListItem {
|
|
16
|
+
id: string;
|
|
17
|
+
email: string | null;
|
|
18
|
+
phone: string | null;
|
|
19
|
+
/** Derived auth method. */
|
|
20
|
+
authProvider: UserAuthProvider;
|
|
21
|
+
roles: string[];
|
|
22
|
+
/** Masked API key for display (e.g. `ms_abcd...xyz`); null if none generated. */
|
|
23
|
+
apiKeyMasked: string | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
lastLoginAt: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Full managed-user row minus the `apiKeyHash` secret, returned after a role
|
|
29
|
+
* update. Matches `Omit<V2AppManagedUser, 'apiKeyHash'>` from the DAO.
|
|
30
|
+
*/
|
|
31
|
+
export interface UserRecord {
|
|
32
|
+
id: string;
|
|
33
|
+
appId: string;
|
|
34
|
+
email: string | null;
|
|
35
|
+
phone: string | null;
|
|
36
|
+
roles: string[];
|
|
37
|
+
/** Raw provider field; null for code-verified (email-code / sms-code) rows. */
|
|
38
|
+
provider: string | null;
|
|
39
|
+
apiKeyMasked: string | null;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
lastLoginAt: string | null;
|
|
42
|
+
}
|
|
43
|
+
/** GET /_internal/v2/apps/:appId/users */
|
|
44
|
+
export interface UsersListResult {
|
|
45
|
+
users: UserListItem[];
|
|
46
|
+
}
|
|
47
|
+
/** POST /_internal/v2/apps/:appId/users/:userId/roles */
|
|
48
|
+
export interface UsersSetRoleResult {
|
|
49
|
+
user: UserRecord | null;
|
|
50
|
+
}
|
|
51
|
+
/** POST /_internal/v2/apps/:appId/users/:userId/api-key — full key returned once. */
|
|
52
|
+
export interface UsersCreateApiKeyResult {
|
|
53
|
+
/** The full plaintext API key — only returned at creation time, never again. */
|
|
54
|
+
key: string;
|
|
55
|
+
/** The masked form stored for display (e.g. `ms_abcd...xyz`). */
|
|
56
|
+
apiKey: string;
|
|
57
|
+
}
|
|
58
|
+
/** DELETE /_internal/v2/apps/:appId/users/:userId/api-key */
|
|
59
|
+
export interface UsersRevokeApiKeyResult {
|
|
60
|
+
success: true;
|
|
61
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response types for the v2 voice endpoints (sessions, settings, phone numbers).
|
|
3
|
+
*
|
|
4
|
+
* Transcribed from the api (apps/api/src/):
|
|
5
|
+
* roles/http/routes/Apps/manage/voiceSessions.ts — sessions + settings routes
|
|
6
|
+
* roles/http/routes/Apps/manage/voicePhoneNumbers.ts — phone-number routes
|
|
7
|
+
* customerApps/AppVoiceAgents/dao/VoiceSessionsDao.ts — session shapes
|
|
8
|
+
* customerApps/AppVoiceAgents/dao/VoiceSettingsDao.ts — V2VoiceSettings
|
|
9
|
+
* customerApps/AppVoiceAgents/usageBilling.ts — cost breakdown types
|
|
10
|
+
* customerApps/AppVoiceAgents/dao/VoicePhoneNumbersDao.ts — VoicePhoneNumber
|
|
11
|
+
* customerApps/AppVoiceAgents/telephony/TelnyxNumbersService.ts — availableNumberToView
|
|
12
|
+
* customerApps/AppVoiceAgents/policy.ts — ResolvedVoicePolicy
|
|
13
|
+
*/
|
|
14
|
+
export type VoicePhoneNumberStatus = 'pending' | 'active' | 'failed' | 'released';
|
|
15
|
+
/** One dedicated phone number as returned by the phone-number endpoints. */
|
|
16
|
+
export interface VoicePhoneNumberView {
|
|
17
|
+
id: string;
|
|
18
|
+
/** E.164 number, e.g. `+13105551234`. */
|
|
19
|
+
e164: string;
|
|
20
|
+
status: VoicePhoneNumberStatus;
|
|
21
|
+
locality: string | null;
|
|
22
|
+
administrativeArea: string | null;
|
|
23
|
+
/** Outbound CNAM caller-ID name last pushed to Telnyx; null = unlisted. */
|
|
24
|
+
cnamListing: string | null;
|
|
25
|
+
/** Monthly cost from the carrier as a decimal string (e.g. `"1.00000"`). */
|
|
26
|
+
carrierMonthlyCost: string | null;
|
|
27
|
+
/** Platform rental price in USD/month billed to the workspace. */
|
|
28
|
+
monthlyPriceDollars: number;
|
|
29
|
+
/** ISO timestamp. */
|
|
30
|
+
createdAt: string;
|
|
31
|
+
}
|
|
32
|
+
/** One available number returned by a Telnyx availability search. */
|
|
33
|
+
export interface VoiceAvailableNumber {
|
|
34
|
+
phoneNumber: string;
|
|
35
|
+
locality: string | null;
|
|
36
|
+
administrativeArea: string | null;
|
|
37
|
+
/** Telnyx monthly cost as a decimal string; null if not provided. */
|
|
38
|
+
monthlyCost: string | null;
|
|
39
|
+
upfrontCost: string | null;
|
|
40
|
+
/** Currency code, typically 'USD'. */
|
|
41
|
+
currency: string;
|
|
42
|
+
}
|
|
43
|
+
export type VoiceSessionStatus = 'active' | 'ended' | 'failed';
|
|
44
|
+
export type VoiceSessionChannel = 'web' | 'phone-out' | 'phone-in';
|
|
45
|
+
/** Telephony call-endpoint snapshot for phone-in / phone-out sessions. */
|
|
46
|
+
export interface VoiceSessionSip {
|
|
47
|
+
to: string;
|
|
48
|
+
fromNumber: string;
|
|
49
|
+
}
|
|
50
|
+
/** A spoken turn committed from the worker's conversation events. */
|
|
51
|
+
export interface VoiceSessionSpeechEntry {
|
|
52
|
+
role: 'user' | 'assistant';
|
|
53
|
+
text: string;
|
|
54
|
+
interrupted?: boolean;
|
|
55
|
+
/** Milliseconds since epoch. */
|
|
56
|
+
at: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A tool round on the transcript timeline. Fast/slow tools emit one entry on
|
|
60
|
+
* completion; background tools emit two: 'dispatched' + 'done'/'failed'.
|
|
61
|
+
*/
|
|
62
|
+
export interface VoiceSessionToolEntry {
|
|
63
|
+
kind: 'tool';
|
|
64
|
+
method: string;
|
|
65
|
+
latency: 'fast' | 'slow' | 'background' | 'client';
|
|
66
|
+
status: 'dispatched' | 'done' | 'failed';
|
|
67
|
+
at: number;
|
|
68
|
+
durationMs?: number;
|
|
69
|
+
argsPreview?: string;
|
|
70
|
+
resultPreview?: string;
|
|
71
|
+
}
|
|
72
|
+
export type VoiceSessionTranscriptEntry = VoiceSessionSpeechEntry | VoiceSessionToolEntry;
|
|
73
|
+
/** One item in the sessions list (transcript excluded for performance). */
|
|
74
|
+
export interface VoiceSessionListItem {
|
|
75
|
+
id: string;
|
|
76
|
+
status: VoiceSessionStatus;
|
|
77
|
+
channel: VoiceSessionChannel;
|
|
78
|
+
sip: VoiceSessionSip | null;
|
|
79
|
+
/** ISO timestamp. */
|
|
80
|
+
startedAt: string;
|
|
81
|
+
endedAt: string | null;
|
|
82
|
+
durationSecs: number | null;
|
|
83
|
+
endedReason: string | null;
|
|
84
|
+
userId: string | null;
|
|
85
|
+
visitorId: string;
|
|
86
|
+
/** Non-null identifies a builder test call through the dev tunnel. */
|
|
87
|
+
devSessionId: string | null;
|
|
88
|
+
userName: string | null;
|
|
89
|
+
userEmail: string | null;
|
|
90
|
+
}
|
|
91
|
+
/** One line in the session cost breakdown. */
|
|
92
|
+
export interface VoiceSessionCostLine {
|
|
93
|
+
eventType: string;
|
|
94
|
+
label: string;
|
|
95
|
+
numUnits: number;
|
|
96
|
+
unit: 'tokens' | 'seconds' | 'minutes' | 'characters' | 'units';
|
|
97
|
+
/** Nano-dollar credits (same units as the ledger's billedAmount). */
|
|
98
|
+
credits: number;
|
|
99
|
+
}
|
|
100
|
+
/** Cost breakdown appended by the route to a finished session; null while active. */
|
|
101
|
+
export interface VoiceSessionCost {
|
|
102
|
+
lines: VoiceSessionCostLine[];
|
|
103
|
+
totalCredits: number;
|
|
104
|
+
}
|
|
105
|
+
/** Full session with transcript and cost breakdown (single-session GET). */
|
|
106
|
+
export interface VoiceSessionDetail {
|
|
107
|
+
id: string;
|
|
108
|
+
appId: string;
|
|
109
|
+
userId: string | null;
|
|
110
|
+
organizationId: string;
|
|
111
|
+
visitorId: string;
|
|
112
|
+
releaseId: string | null;
|
|
113
|
+
devSessionId: string | null;
|
|
114
|
+
roomName: string;
|
|
115
|
+
status: VoiceSessionStatus;
|
|
116
|
+
channel: VoiceSessionChannel;
|
|
117
|
+
sip: VoiceSessionSip | null;
|
|
118
|
+
/** ISO timestamp. */
|
|
119
|
+
startedAt: string;
|
|
120
|
+
lastActiveAt: string;
|
|
121
|
+
endedAt: string | null;
|
|
122
|
+
endedReason: string | null;
|
|
123
|
+
durationSecs: number | null;
|
|
124
|
+
/** Engine config the session ran with (verbatim from the release manifest). */
|
|
125
|
+
model: Record<string, unknown>;
|
|
126
|
+
transcript: VoiceSessionTranscriptEntry[];
|
|
127
|
+
/** Per-provider model usage snapshot from the worker (billing input). */
|
|
128
|
+
usage: Record<string, unknown>;
|
|
129
|
+
billedAt: string | null;
|
|
130
|
+
userName: string | null;
|
|
131
|
+
userEmail: string | null;
|
|
132
|
+
dateCreated: string;
|
|
133
|
+
dateUpdated: string;
|
|
134
|
+
/** Cost breakdown; null for sessions that are still active. */
|
|
135
|
+
cost: VoiceSessionCost | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Owner-set policy overrides. All fields are optional — absent = use the
|
|
139
|
+
* platform default. Values are clamped to the platform ceilings at session mint.
|
|
140
|
+
*/
|
|
141
|
+
export interface VoiceSettingsOverrides {
|
|
142
|
+
maxConcurrentSessions?: number;
|
|
143
|
+
maxConcurrentSessionsPerVisitor?: number;
|
|
144
|
+
maxSessionDurationSecs?: number;
|
|
145
|
+
}
|
|
146
|
+
/** Effective (default-filled + ceiling-clamped) session policy. */
|
|
147
|
+
export interface VoiceResolvedPolicy {
|
|
148
|
+
maxConcurrentSessions: number;
|
|
149
|
+
maxConcurrentSessionsPerVisitor: number;
|
|
150
|
+
maxSessionDurationSecs: number;
|
|
151
|
+
}
|
|
152
|
+
/** Platform ceiling values — app overrides are clamped to these at mint. */
|
|
153
|
+
export interface VoiceSettingsCeilings {
|
|
154
|
+
maxConcurrentSessions: number;
|
|
155
|
+
maxConcurrentSessionsPerVisitor: number;
|
|
156
|
+
maxSessionDurationSecs: number;
|
|
157
|
+
}
|
|
158
|
+
/** GET /_internal/v2/apps/:appId/settings/voice-phone-numbers */
|
|
159
|
+
export interface VoiceNumbersListResult {
|
|
160
|
+
numbers: VoicePhoneNumberView[];
|
|
161
|
+
/** Platform rental price in USD/month (same for all numbers). */
|
|
162
|
+
monthlyPriceDollars: number;
|
|
163
|
+
}
|
|
164
|
+
/** POST /_internal/v2/apps/:appId/settings/voice-phone-numbers/search */
|
|
165
|
+
export interface VoiceNumbersSearchResult {
|
|
166
|
+
results: VoiceAvailableNumber[];
|
|
167
|
+
}
|
|
168
|
+
/** POST /_internal/v2/apps/:appId/settings/voice-phone-numbers — buy */
|
|
169
|
+
export interface VoiceNumbersBuyResult {
|
|
170
|
+
number: VoicePhoneNumberView;
|
|
171
|
+
}
|
|
172
|
+
/** POST /_internal/v2/apps/:appId/settings/voice-phone-numbers/:id/release */
|
|
173
|
+
export interface VoiceNumbersReleaseResult {
|
|
174
|
+
number: VoicePhoneNumberView;
|
|
175
|
+
}
|
|
176
|
+
/** POST /_internal/v2/apps/:appId/settings/voice-phone-numbers/:id/display-name */
|
|
177
|
+
export interface VoiceNumbersSetNameResult {
|
|
178
|
+
number: VoicePhoneNumberView;
|
|
179
|
+
}
|
|
180
|
+
/** GET /_internal/v2/apps/:appId/voice-sessions */
|
|
181
|
+
export interface VoiceSessionsListResult {
|
|
182
|
+
sessions: VoiceSessionListItem[];
|
|
183
|
+
nextCursor: string | null;
|
|
184
|
+
}
|
|
185
|
+
/** GET /_internal/v2/apps/:appId/voice-sessions/:sessionId */
|
|
186
|
+
export type VoiceSessionGetResult = VoiceSessionDetail;
|
|
187
|
+
/** GET /_internal/v2/apps/:appId/voice-settings */
|
|
188
|
+
export interface VoiceSettingsGetResult {
|
|
189
|
+
settings: VoiceSettingsOverrides;
|
|
190
|
+
effective: VoiceResolvedPolicy;
|
|
191
|
+
ceilings: VoiceSettingsCeilings;
|
|
192
|
+
}
|
|
193
|
+
/** PUT /_internal/v2/apps/:appId/voice-settings */
|
|
194
|
+
export interface VoiceSettingsSetResult {
|
|
195
|
+
settings: VoiceSettingsOverrides;
|
|
196
|
+
effective: VoiceResolvedPolicy;
|
|
197
|
+
}
|
package/dist/upload.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Presigned-POST upload — bytes go straight to storage, never through the API,
|
|
3
|
+
* so size isn't bounded by the API's JSON body limit. Shared by `files put`
|
|
4
|
+
* and `datasources add`; the server mints `{ uploadUrl, uploadFields }` scoped
|
|
5
|
+
* to one key, and this submits the multipart form (no auth headers — the
|
|
6
|
+
* signature is in the fields).
|
|
7
|
+
*/
|
|
8
|
+
export declare function uploadDirect(upload: {
|
|
9
|
+
uploadUrl: string;
|
|
10
|
+
uploadFields: Record<string, string>;
|
|
11
|
+
}, bytes: Buffer, filename: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madewithremy/admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"description": "Admin SDK + CLI for managing production Remy apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,12 +20,10 @@
|
|
|
20
20
|
"CHANGELOG.md"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "
|
|
24
|
-
"dev": "
|
|
25
|
-
"typecheck": "
|
|
26
|
-
"prepublishOnly": "npm run build"
|
|
27
|
-
"tsc": "node node_modules/@typescript/native/bin/tsc",
|
|
28
|
-
"//tsc": "The native TypeScript 7 compiler by explicit path. It (typescript@7 under the @typescript/native alias) and the JS compiler API behind the `typescript` alias — which tsup's dts step needs — both declare a `tsc` bin, so node_modules/.bin/tsc is whichever npm linked last."
|
|
23
|
+
"build": "node scripts/build.ts",
|
|
24
|
+
"dev": "node scripts/build.ts --watch",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
29
27
|
},
|
|
30
28
|
"engines": {
|
|
31
29
|
"node": ">=22.0.0"
|
|
@@ -63,8 +61,7 @@
|
|
|
63
61
|
},
|
|
64
62
|
"devDependencies": {
|
|
65
63
|
"@types/node": "^26.6.5",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
64
|
+
"esbuild": "^0.28.2",
|
|
65
|
+
"typescript": "^7.0.2"
|
|
69
66
|
}
|
|
70
67
|
}
|