@managoat/fountain-sdk 2.1.0 → 3.0.0
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 +11 -0
- package/dist/generated/openapi.d.ts +5 -416
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/schemas.d.ts +0 -2
- package/dist/team.d.ts +1 -3
- package/dist/team.js +0 -4
- package/dist/team.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,17 @@ server releases.
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## [3.0.0] — 2026-09-13
|
|
15
|
+
|
|
16
|
+
### Breaking changes
|
|
17
|
+
|
|
18
|
+
- `team.commsStatus()` and the `TeamCommsStatus` and `TeammateContact` types
|
|
19
|
+
are removed. Teammate email and phone (Team comms) is gone from the server:
|
|
20
|
+
`GET /api/team/comms`, the `/api/team/:agent_id/contact` operations and
|
|
21
|
+
the `contact` field on a teammate no longer exist, and the generated types
|
|
22
|
+
drop them. Nothing else moves; a caller that never used them upgrades
|
|
23
|
+
without a change.
|
|
24
|
+
|
|
14
25
|
## [2.1.0] — 2026-09-13
|
|
15
26
|
|
|
16
27
|
### Added
|
|
@@ -2110,26 +2110,6 @@ export interface paths {
|
|
|
2110
2110
|
patch?: never;
|
|
2111
2111
|
trace?: never;
|
|
2112
2112
|
};
|
|
2113
|
-
"/api/team/comms": {
|
|
2114
|
-
parameters: {
|
|
2115
|
-
query?: never;
|
|
2116
|
-
header?: never;
|
|
2117
|
-
path?: never;
|
|
2118
|
-
cookie?: never;
|
|
2119
|
-
};
|
|
2120
|
-
/**
|
|
2121
|
-
* Can teammates be given an email address and phone number?
|
|
2122
|
-
* @description The two gates for `POST /api/team/:agent_id/contact`: the caller's `team_comms` feature flag and whether this instance has the AgentMail/AgentPhone keys. A client shows the affordance when `enabled`, and explains itself when `configured` is false.
|
|
2123
|
-
*/
|
|
2124
|
-
get: operations["FountainWeb.TeamController.comms_status"];
|
|
2125
|
-
put?: never;
|
|
2126
|
-
post?: never;
|
|
2127
|
-
delete?: never;
|
|
2128
|
-
options?: never;
|
|
2129
|
-
head?: never;
|
|
2130
|
-
patch?: never;
|
|
2131
|
-
trace?: never;
|
|
2132
|
-
};
|
|
2133
2113
|
"/api/team/schedules": {
|
|
2134
2114
|
parameters: {
|
|
2135
2115
|
query?: never;
|
|
@@ -2195,34 +2175,6 @@ export interface paths {
|
|
|
2195
2175
|
patch: operations["FountainWeb.TeamController.update"];
|
|
2196
2176
|
trace?: never;
|
|
2197
2177
|
};
|
|
2198
|
-
"/api/team/{agent_id}/contact": {
|
|
2199
|
-
parameters: {
|
|
2200
|
-
query?: never;
|
|
2201
|
-
header?: never;
|
|
2202
|
-
path?: never;
|
|
2203
|
-
cookie?: never;
|
|
2204
|
-
};
|
|
2205
|
-
get?: never;
|
|
2206
|
-
put?: never;
|
|
2207
|
-
/**
|
|
2208
|
-
* Give a teammate an email address and a phone number
|
|
2209
|
-
* @description Provisions an inbox (AgentMail) and a number (AgentPhone) under Fountain's own keys and records them on the teammate; from its next turn the teammate has `email_*` and `sms_*` MCP tools served by Fountain, and knows its own address and number. All or nothing: a provider failure on either channel leaves the teammate without both. Behind the `team_comms` flag — 404 when it is off for the caller, 503 when this instance has no provider keys.
|
|
2210
|
-
*/
|
|
2211
|
-
post: operations["FountainWeb.TeamController.provision_contact"];
|
|
2212
|
-
/**
|
|
2213
|
-
* Take a teammate's email address and phone number away
|
|
2214
|
-
* @description Deletes the inbox and releases the number upstream, then forgets them. A provider failure keeps the contact (nothing is orphaned) and is reported as 424.
|
|
2215
|
-
*/
|
|
2216
|
-
delete: operations["FountainWeb.TeamController.release_contact"];
|
|
2217
|
-
options?: never;
|
|
2218
|
-
head?: never;
|
|
2219
|
-
/**
|
|
2220
|
-
* Change which number's texts reach the teammate
|
|
2221
|
-
* @description Sets `prompt_from_number` on an existing contact. Nothing is bought or released — the teammate keeps its address and number.
|
|
2222
|
-
*/
|
|
2223
|
-
patch: operations["FountainWeb.TeamController.update_contact"];
|
|
2224
|
-
trace?: never;
|
|
2225
|
-
};
|
|
2226
2178
|
"/api/team/{agent_id}/conversations": {
|
|
2227
2179
|
parameters: {
|
|
2228
2180
|
query?: never;
|
|
@@ -3168,8 +3120,10 @@ export interface components {
|
|
|
3168
3120
|
brokered?: boolean;
|
|
3169
3121
|
/** @description Null when billing is off. */
|
|
3170
3122
|
comped?: boolean | null;
|
|
3171
|
-
/** @description Whether
|
|
3123
|
+
/** @description Whether this account may add connections, providers, or credential bindings. Use connections_manageable to show existing credentials and their removal controls. */
|
|
3172
3124
|
connections_enabled?: boolean;
|
|
3125
|
+
/** @description Whether this account may list, revoke, and delete existing connections, providers, and credential bindings. Remains true when the connections rollout flag is off but the deployment still brokers credentials. */
|
|
3126
|
+
connections_manageable?: boolean;
|
|
3173
3127
|
/** Format: email */
|
|
3174
3128
|
email: string;
|
|
3175
3129
|
email_verified: boolean;
|
|
@@ -3257,7 +3211,7 @@ export interface components {
|
|
|
3257
3211
|
usage: {
|
|
3258
3212
|
/** @description Conversations that ran a turn in the month, deleted or not. */
|
|
3259
3213
|
conversations?: number;
|
|
3260
|
-
/** @description Cents the ledger took this month: turns
|
|
3214
|
+
/** @description Cents the ledger took this month: turns and platform inference. The charged number, where turn_hours is the metered one. Null with billing off. */
|
|
3261
3215
|
credit_burned_cents?: number | null;
|
|
3262
3216
|
/** @description Active sandbox minutes inside the period, parked time excluded. */
|
|
3263
3217
|
sandbox_minutes?: number;
|
|
@@ -4009,7 +3963,7 @@ export interface components {
|
|
|
4009
3963
|
/** @description How long the whole request took, request head through response body, not time to first byte. */
|
|
4010
3964
|
latency_ms?: number | null;
|
|
4011
3965
|
method: string;
|
|
4012
|
-
/** @description
|
|
3966
|
+
/** @description Always /[REDACTED]. URL paths, queries and fragments are withheld because they can contain credentials. */
|
|
4013
3967
|
path: string;
|
|
4014
3968
|
/** @description The binding that matched, and so which credential was attached. Null when none was: a passthrough host, or a host allowed under `limited` with no credential bound to it. */
|
|
4015
3969
|
service?: string | null;
|
|
@@ -5067,23 +5021,6 @@ export interface components {
|
|
|
5067
5021
|
*/
|
|
5068
5022
|
vault_id?: string | null;
|
|
5069
5023
|
};
|
|
5070
|
-
/**
|
|
5071
|
-
* TeamCommsStatus
|
|
5072
|
-
* @description Whether teammates can be given an email address and phone number here: `enabled` is the per-user feature flag (`team_comms`), `configured` whether this instance has the provider keys. Both must hold to provision.
|
|
5073
|
-
*/
|
|
5074
|
-
TeamCommsStatus: {
|
|
5075
|
-
configured: boolean;
|
|
5076
|
-
enabled: boolean;
|
|
5077
|
-
};
|
|
5078
|
-
/** TeamCommsStatusResponse */
|
|
5079
|
-
TeamCommsStatusResponse: {
|
|
5080
|
-
data: components["schemas"]["TeamCommsStatus"];
|
|
5081
|
-
};
|
|
5082
|
-
/** TeamContactRequest */
|
|
5083
|
-
TeamContactRequest: {
|
|
5084
|
-
/** @description Your phone number: texts from it to the teammate's new number become prompts in its conversation. Any common format; stored E.164. Required. */
|
|
5085
|
-
prompt_from_number: string;
|
|
5086
|
-
};
|
|
5087
5024
|
/** TeamMessageRequest */
|
|
5088
5025
|
TeamMessageRequest: {
|
|
5089
5026
|
images?: components["schemas"]["ImageInput"][] | null;
|
|
@@ -5182,8 +5119,6 @@ export interface components {
|
|
|
5182
5119
|
agent: components["schemas"]["Agent"];
|
|
5183
5120
|
/** Format: uuid */
|
|
5184
5121
|
agent_id: string;
|
|
5185
|
-
/** @description The teammate's own email address and phone number (flag `team_comms`), or null when it has none. */
|
|
5186
|
-
contact?: components["schemas"]["TeammateContact"] | null;
|
|
5187
5122
|
conversation: components["schemas"]["Conversation"];
|
|
5188
5123
|
last_turn?: {
|
|
5189
5124
|
/** Format: uuid */
|
|
@@ -5212,24 +5147,6 @@ export interface components {
|
|
|
5212
5147
|
/** @description Summed over every conversation this agent has had under the team channel, not just the current one — the per-teammate figure. */
|
|
5213
5148
|
usage_total?: components["schemas"]["UsageTotal"];
|
|
5214
5149
|
};
|
|
5215
|
-
/**
|
|
5216
|
-
* TeammateContact
|
|
5217
|
-
* @description A teammate's own email address and phone number, provisioned by Fountain (AgentMail + AgentPhone) behind the `team_comms` flag. The teammate reaches both through MCP tools Fountain serves; no provider key enters its sandbox.
|
|
5218
|
-
*/
|
|
5219
|
-
TeammateContact: {
|
|
5220
|
-
email: string | null;
|
|
5221
|
-
/** Format: date-time */
|
|
5222
|
-
inserted_at?: string;
|
|
5223
|
-
/** @description E.164 */
|
|
5224
|
-
phone: string | null;
|
|
5225
|
-
/** @description E.164. The one number whose texts to `phone` arrive as prompts in the teammate's conversation; texts from anyone else are ignored. */
|
|
5226
|
-
prompt_from_number?: string | null;
|
|
5227
|
-
/**
|
|
5228
|
-
* Format: date-time
|
|
5229
|
-
* @description Set when `prompt_from_number` texted STOP: its texts are dropped until it texts START, or until the number is changed (new consent).
|
|
5230
|
-
*/
|
|
5231
|
-
prompt_opted_out_at?: string | null;
|
|
5232
|
-
};
|
|
5233
5150
|
/**
|
|
5234
5151
|
* TeammateConversation
|
|
5235
5152
|
* @description A conversation object plus `current`: whether it is the teammate's live one.
|
|
@@ -15600,62 +15517,6 @@ export interface operations {
|
|
|
15600
15517
|
};
|
|
15601
15518
|
};
|
|
15602
15519
|
};
|
|
15603
|
-
"FountainWeb.TeamController.comms_status": {
|
|
15604
|
-
parameters: {
|
|
15605
|
-
query?: never;
|
|
15606
|
-
header?: never;
|
|
15607
|
-
path?: never;
|
|
15608
|
-
cookie?: never;
|
|
15609
|
-
};
|
|
15610
|
-
requestBody?: never;
|
|
15611
|
-
responses: {
|
|
15612
|
-
/** @description Status */
|
|
15613
|
-
200: {
|
|
15614
|
-
headers: {
|
|
15615
|
-
[name: string]: unknown;
|
|
15616
|
-
};
|
|
15617
|
-
content: {
|
|
15618
|
-
"application/json": components["schemas"]["TeamCommsStatusResponse"];
|
|
15619
|
-
};
|
|
15620
|
-
};
|
|
15621
|
-
/** @description Unauthorized */
|
|
15622
|
-
401: {
|
|
15623
|
-
headers: {
|
|
15624
|
-
[name: string]: unknown;
|
|
15625
|
-
};
|
|
15626
|
-
content: {
|
|
15627
|
-
"application/json": components["schemas"]["Error"];
|
|
15628
|
-
};
|
|
15629
|
-
};
|
|
15630
|
-
/** @description Forbidden */
|
|
15631
|
-
403: {
|
|
15632
|
-
headers: {
|
|
15633
|
-
[name: string]: unknown;
|
|
15634
|
-
};
|
|
15635
|
-
content: {
|
|
15636
|
-
"application/json": components["schemas"]["Error"];
|
|
15637
|
-
};
|
|
15638
|
-
};
|
|
15639
|
-
/** @description No acceptable representation */
|
|
15640
|
-
406: {
|
|
15641
|
-
headers: {
|
|
15642
|
-
[name: string]: unknown;
|
|
15643
|
-
};
|
|
15644
|
-
content: {
|
|
15645
|
-
"application/json": components["schemas"]["NegotiationError"];
|
|
15646
|
-
};
|
|
15647
|
-
};
|
|
15648
|
-
/** @description Too Many Requests */
|
|
15649
|
-
429: {
|
|
15650
|
-
headers: {
|
|
15651
|
-
[name: string]: unknown;
|
|
15652
|
-
};
|
|
15653
|
-
content: {
|
|
15654
|
-
"application/json": components["schemas"]["Error"];
|
|
15655
|
-
};
|
|
15656
|
-
};
|
|
15657
|
-
};
|
|
15658
|
-
};
|
|
15659
15520
|
"FountainWeb.TeamScheduleController.index_all": {
|
|
15660
15521
|
parameters: {
|
|
15661
15522
|
query?: never;
|
|
@@ -15980,278 +15841,6 @@ export interface operations {
|
|
|
15980
15841
|
};
|
|
15981
15842
|
};
|
|
15982
15843
|
};
|
|
15983
|
-
"FountainWeb.TeamController.provision_contact": {
|
|
15984
|
-
parameters: {
|
|
15985
|
-
query?: never;
|
|
15986
|
-
header?: never;
|
|
15987
|
-
path: {
|
|
15988
|
-
agent_id: string;
|
|
15989
|
-
};
|
|
15990
|
-
cookie?: never;
|
|
15991
|
-
};
|
|
15992
|
-
/** @description The number whose texts become prompts */
|
|
15993
|
-
requestBody: {
|
|
15994
|
-
content: {
|
|
15995
|
-
"application/json": components["schemas"]["TeamContactRequest"];
|
|
15996
|
-
};
|
|
15997
|
-
};
|
|
15998
|
-
responses: {
|
|
15999
|
-
/** @description Teammate, now with a contact */
|
|
16000
|
-
201: {
|
|
16001
|
-
headers: {
|
|
16002
|
-
[name: string]: unknown;
|
|
16003
|
-
};
|
|
16004
|
-
content: {
|
|
16005
|
-
"application/json": components["schemas"]["TeammateResponse"];
|
|
16006
|
-
};
|
|
16007
|
-
};
|
|
16008
|
-
/** @description Unauthorized */
|
|
16009
|
-
401: {
|
|
16010
|
-
headers: {
|
|
16011
|
-
[name: string]: unknown;
|
|
16012
|
-
};
|
|
16013
|
-
content: {
|
|
16014
|
-
"application/json": components["schemas"]["Error"];
|
|
16015
|
-
};
|
|
16016
|
-
};
|
|
16017
|
-
/** @description Forbidden */
|
|
16018
|
-
403: {
|
|
16019
|
-
headers: {
|
|
16020
|
-
[name: string]: unknown;
|
|
16021
|
-
};
|
|
16022
|
-
content: {
|
|
16023
|
-
"application/json": components["schemas"]["Error"];
|
|
16024
|
-
};
|
|
16025
|
-
};
|
|
16026
|
-
/** @description Not on the team, or the feature is off */
|
|
16027
|
-
404: {
|
|
16028
|
-
headers: {
|
|
16029
|
-
[name: string]: unknown;
|
|
16030
|
-
};
|
|
16031
|
-
content: {
|
|
16032
|
-
"application/json": components["schemas"]["Error"];
|
|
16033
|
-
};
|
|
16034
|
-
};
|
|
16035
|
-
/** @description No acceptable representation */
|
|
16036
|
-
406: {
|
|
16037
|
-
headers: {
|
|
16038
|
-
[name: string]: unknown;
|
|
16039
|
-
};
|
|
16040
|
-
content: {
|
|
16041
|
-
"application/json": components["schemas"]["NegotiationError"];
|
|
16042
|
-
};
|
|
16043
|
-
};
|
|
16044
|
-
/** @description Already has a contact */
|
|
16045
|
-
409: {
|
|
16046
|
-
headers: {
|
|
16047
|
-
[name: string]: unknown;
|
|
16048
|
-
};
|
|
16049
|
-
content: {
|
|
16050
|
-
"application/json": components["schemas"]["Error"];
|
|
16051
|
-
};
|
|
16052
|
-
};
|
|
16053
|
-
/** @description Bad prompt_from_number */
|
|
16054
|
-
422: {
|
|
16055
|
-
headers: {
|
|
16056
|
-
[name: string]: unknown;
|
|
16057
|
-
};
|
|
16058
|
-
content: {
|
|
16059
|
-
"application/json": components["schemas"]["Error"];
|
|
16060
|
-
};
|
|
16061
|
-
};
|
|
16062
|
-
/** @description Contact provider unavailable */
|
|
16063
|
-
424: {
|
|
16064
|
-
headers: {
|
|
16065
|
-
[name: string]: unknown;
|
|
16066
|
-
};
|
|
16067
|
-
content: {
|
|
16068
|
-
"application/json": components["schemas"]["Error"];
|
|
16069
|
-
};
|
|
16070
|
-
};
|
|
16071
|
-
/** @description Too Many Requests */
|
|
16072
|
-
429: {
|
|
16073
|
-
headers: {
|
|
16074
|
-
[name: string]: unknown;
|
|
16075
|
-
};
|
|
16076
|
-
content: {
|
|
16077
|
-
"application/json": components["schemas"]["Error"];
|
|
16078
|
-
};
|
|
16079
|
-
};
|
|
16080
|
-
/** @description A provider refused */
|
|
16081
|
-
502: {
|
|
16082
|
-
headers: {
|
|
16083
|
-
[name: string]: unknown;
|
|
16084
|
-
};
|
|
16085
|
-
content: {
|
|
16086
|
-
"application/json": components["schemas"]["Error"];
|
|
16087
|
-
};
|
|
16088
|
-
};
|
|
16089
|
-
/** @description No provider keys on this instance */
|
|
16090
|
-
503: {
|
|
16091
|
-
headers: {
|
|
16092
|
-
[name: string]: unknown;
|
|
16093
|
-
};
|
|
16094
|
-
content: {
|
|
16095
|
-
"application/json": components["schemas"]["Error"];
|
|
16096
|
-
};
|
|
16097
|
-
};
|
|
16098
|
-
};
|
|
16099
|
-
};
|
|
16100
|
-
"FountainWeb.TeamController.release_contact": {
|
|
16101
|
-
parameters: {
|
|
16102
|
-
query?: never;
|
|
16103
|
-
header?: never;
|
|
16104
|
-
path: {
|
|
16105
|
-
agent_id: string;
|
|
16106
|
-
};
|
|
16107
|
-
cookie?: never;
|
|
16108
|
-
};
|
|
16109
|
-
requestBody?: never;
|
|
16110
|
-
responses: {
|
|
16111
|
-
/** @description Released */
|
|
16112
|
-
204: {
|
|
16113
|
-
headers: {
|
|
16114
|
-
[name: string]: unknown;
|
|
16115
|
-
};
|
|
16116
|
-
content?: never;
|
|
16117
|
-
};
|
|
16118
|
-
/** @description Unauthorized */
|
|
16119
|
-
401: {
|
|
16120
|
-
headers: {
|
|
16121
|
-
[name: string]: unknown;
|
|
16122
|
-
};
|
|
16123
|
-
content: {
|
|
16124
|
-
"application/json": components["schemas"]["Error"];
|
|
16125
|
-
};
|
|
16126
|
-
};
|
|
16127
|
-
/** @description Forbidden */
|
|
16128
|
-
403: {
|
|
16129
|
-
headers: {
|
|
16130
|
-
[name: string]: unknown;
|
|
16131
|
-
};
|
|
16132
|
-
content: {
|
|
16133
|
-
"application/json": components["schemas"]["Error"];
|
|
16134
|
-
};
|
|
16135
|
-
};
|
|
16136
|
-
/** @description No contact, or not on the team */
|
|
16137
|
-
404: {
|
|
16138
|
-
headers: {
|
|
16139
|
-
[name: string]: unknown;
|
|
16140
|
-
};
|
|
16141
|
-
content: {
|
|
16142
|
-
"application/json": components["schemas"]["Error"];
|
|
16143
|
-
};
|
|
16144
|
-
};
|
|
16145
|
-
/** @description No acceptable representation */
|
|
16146
|
-
406: {
|
|
16147
|
-
headers: {
|
|
16148
|
-
[name: string]: unknown;
|
|
16149
|
-
};
|
|
16150
|
-
content: {
|
|
16151
|
-
"application/json": components["schemas"]["NegotiationError"];
|
|
16152
|
-
};
|
|
16153
|
-
};
|
|
16154
|
-
/** @description A provider refused */
|
|
16155
|
-
424: {
|
|
16156
|
-
headers: {
|
|
16157
|
-
[name: string]: unknown;
|
|
16158
|
-
};
|
|
16159
|
-
content: {
|
|
16160
|
-
"application/json": components["schemas"]["Error"];
|
|
16161
|
-
};
|
|
16162
|
-
};
|
|
16163
|
-
/** @description Too Many Requests */
|
|
16164
|
-
429: {
|
|
16165
|
-
headers: {
|
|
16166
|
-
[name: string]: unknown;
|
|
16167
|
-
};
|
|
16168
|
-
content: {
|
|
16169
|
-
"application/json": components["schemas"]["Error"];
|
|
16170
|
-
};
|
|
16171
|
-
};
|
|
16172
|
-
};
|
|
16173
|
-
};
|
|
16174
|
-
"FountainWeb.TeamController.update_contact": {
|
|
16175
|
-
parameters: {
|
|
16176
|
-
query?: never;
|
|
16177
|
-
header?: never;
|
|
16178
|
-
path: {
|
|
16179
|
-
agent_id: string;
|
|
16180
|
-
};
|
|
16181
|
-
cookie?: never;
|
|
16182
|
-
};
|
|
16183
|
-
/** @description The number whose texts become prompts */
|
|
16184
|
-
requestBody: {
|
|
16185
|
-
content: {
|
|
16186
|
-
"application/json": components["schemas"]["TeamContactRequest"];
|
|
16187
|
-
};
|
|
16188
|
-
};
|
|
16189
|
-
responses: {
|
|
16190
|
-
/** @description Teammate */
|
|
16191
|
-
200: {
|
|
16192
|
-
headers: {
|
|
16193
|
-
[name: string]: unknown;
|
|
16194
|
-
};
|
|
16195
|
-
content: {
|
|
16196
|
-
"application/json": components["schemas"]["TeammateResponse"];
|
|
16197
|
-
};
|
|
16198
|
-
};
|
|
16199
|
-
/** @description Unauthorized */
|
|
16200
|
-
401: {
|
|
16201
|
-
headers: {
|
|
16202
|
-
[name: string]: unknown;
|
|
16203
|
-
};
|
|
16204
|
-
content: {
|
|
16205
|
-
"application/json": components["schemas"]["Error"];
|
|
16206
|
-
};
|
|
16207
|
-
};
|
|
16208
|
-
/** @description Forbidden */
|
|
16209
|
-
403: {
|
|
16210
|
-
headers: {
|
|
16211
|
-
[name: string]: unknown;
|
|
16212
|
-
};
|
|
16213
|
-
content: {
|
|
16214
|
-
"application/json": components["schemas"]["Error"];
|
|
16215
|
-
};
|
|
16216
|
-
};
|
|
16217
|
-
/** @description No contact, or not on the team */
|
|
16218
|
-
404: {
|
|
16219
|
-
headers: {
|
|
16220
|
-
[name: string]: unknown;
|
|
16221
|
-
};
|
|
16222
|
-
content: {
|
|
16223
|
-
"application/json": components["schemas"]["Error"];
|
|
16224
|
-
};
|
|
16225
|
-
};
|
|
16226
|
-
/** @description No acceptable representation */
|
|
16227
|
-
406: {
|
|
16228
|
-
headers: {
|
|
16229
|
-
[name: string]: unknown;
|
|
16230
|
-
};
|
|
16231
|
-
content: {
|
|
16232
|
-
"application/json": components["schemas"]["NegotiationError"];
|
|
16233
|
-
};
|
|
16234
|
-
};
|
|
16235
|
-
/** @description Bad prompt_from_number */
|
|
16236
|
-
422: {
|
|
16237
|
-
headers: {
|
|
16238
|
-
[name: string]: unknown;
|
|
16239
|
-
};
|
|
16240
|
-
content: {
|
|
16241
|
-
"application/json": components["schemas"]["Error"];
|
|
16242
|
-
};
|
|
16243
|
-
};
|
|
16244
|
-
/** @description Too Many Requests */
|
|
16245
|
-
429: {
|
|
16246
|
-
headers: {
|
|
16247
|
-
[name: string]: unknown;
|
|
16248
|
-
};
|
|
16249
|
-
content: {
|
|
16250
|
-
"application/json": components["schemas"]["Error"];
|
|
16251
|
-
};
|
|
16252
|
-
};
|
|
16253
|
-
};
|
|
16254
|
-
};
|
|
16255
15844
|
"FountainWeb.TeamController.conversations": {
|
|
16256
15845
|
parameters: {
|
|
16257
15846
|
query?: {
|
package/dist/http.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface RequestOptions {
|
|
|
15
15
|
* this string is already what Fountain's request logs are keyed on. The
|
|
16
16
|
* version half is asserted against `package.json` by a test.
|
|
17
17
|
*/
|
|
18
|
-
export declare const USER_AGENT = "fountain-sdk-js/
|
|
18
|
+
export declare const USER_AGENT = "fountain-sdk-js/3.0.0";
|
|
19
19
|
export declare class HttpClient {
|
|
20
20
|
readonly config: ResolvedConfig;
|
|
21
21
|
private readonly fetchImpl;
|
package/dist/http.js
CHANGED
|
@@ -5,7 +5,7 @@ import { AuthError, ConnectionError, FountainError, errorForStatus } from "./err
|
|
|
5
5
|
* this string is already what Fountain's request logs are keyed on. The
|
|
6
6
|
* version half is asserted against `package.json` by a test.
|
|
7
7
|
*/
|
|
8
|
-
export const USER_AGENT = "fountain-sdk-js/
|
|
8
|
+
export const USER_AGENT = "fountain-sdk-js/3.0.0";
|
|
9
9
|
/**
|
|
10
10
|
* The thin layer everything else is built on: one bearer token, JSON in and
|
|
11
11
|
* out, and errors that say which call failed. `Fountain#api` exposes it
|
package/dist/schemas.d.ts
CHANGED
|
@@ -67,8 +67,6 @@ export type Schedule = S["TeamSchedule"];
|
|
|
67
67
|
*/
|
|
68
68
|
export type ScheduleInput = Optional<S["TeamScheduleCreateRequest"], "enabled" | "one_off">;
|
|
69
69
|
export type SchedulePatch = S["TeamScheduleUpdateRequest"];
|
|
70
|
-
export type TeamCommsStatus = S["TeamCommsStatus"];
|
|
71
|
-
export type TeammateContact = S["TeammateContact"];
|
|
72
70
|
/** The form vocabulary: runtimes, models, providers a client can offer. */
|
|
73
71
|
export type Catalog = S["CatalogResponse"]["data"];
|
|
74
72
|
/** One hit from full-text search across the caller's conversations. */
|
package/dist/team.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Resolver } from "./resolve.ts";
|
|
|
3
3
|
import { Conversation } from "./conversation.ts";
|
|
4
4
|
import { Run, type RunOptions } from "./run.ts";
|
|
5
5
|
import { type StreamRequest } from "./sse.ts";
|
|
6
|
-
import type { ConversationRecord, ImageInput, Schedule, ScheduleInput, SchedulePatch, Stream, TeamAddInput,
|
|
6
|
+
import type { ConversationRecord, ImageInput, Schedule, ScheduleInput, SchedulePatch, Stream, TeamAddInput, TeamEvent, Teammate } from "./types.ts";
|
|
7
7
|
export interface MessageOptions extends RunOptions {
|
|
8
8
|
images?: ImageInput[];
|
|
9
9
|
}
|
|
@@ -46,8 +46,6 @@ export declare class Team {
|
|
|
46
46
|
history(agent: string): Promise<ConversationRecord[]>;
|
|
47
47
|
/** Start a fresh thread on a new computer; the current one is retired. */
|
|
48
48
|
freshConversation(agent: string): Promise<ConversationRecord>;
|
|
49
|
-
/** Can teammates here be given an email address and a phone number? */
|
|
50
|
-
commsStatus(): Promise<TeamCommsStatus>;
|
|
51
49
|
/**
|
|
52
50
|
* The whole team's events on one connection.
|
|
53
51
|
*
|
package/dist/team.js
CHANGED
|
@@ -102,10 +102,6 @@ export class Team {
|
|
|
102
102
|
async freshConversation(agent) {
|
|
103
103
|
return this.http.data("POST", `/api/team/${await this.agentId(agent)}/conversations`);
|
|
104
104
|
}
|
|
105
|
-
/** Can teammates here be given an email address and a phone number? */
|
|
106
|
-
async commsStatus() {
|
|
107
|
-
return this.http.data("GET", "/api/team/comms");
|
|
108
|
-
}
|
|
109
105
|
/**
|
|
110
106
|
* The whole team's events on one connection.
|
|
111
107
|
*
|
package/dist/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../src/team.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAmB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../src/team.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAmB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AAiB1D;;;;;;;;;GASG;AACH,MAAM,OAAO,IAAI;IACE,IAAI,CAAa;IACjB,QAAQ,CAAW;IAEpC,uDAAuD;IAC9C,SAAS,CAAgB;IAElC,YAAY,IAAgB,EAAE,QAAkB;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,wEAAwE;IACxE,KAAK,CAAC,IAAI;Q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AK,EAAE,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,EAAU;QACpC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,aAAa,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,gDAAgD;IAChD,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,EAAU;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjG,CAAC;IAEO,KAAK,CAAC,OAAO,CAAC,KAAa;QACjC,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QAC1E,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED,4EAA4E;AAC5E,MAAM,UAAU,gBAAgB,CAC9B,OAAU;IAEV,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO;QACL,GAAG,IAAI;QACP,GAAG,CAAC,OAAO,KAAK,SAAS;YACvB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;KACvE,CAAC;AACJ,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* cannot say: that many log events fold into one *turn*, that a run can be
|
|
7
7
|
* awaited or streamed, and how a turn ended.
|
|
8
8
|
*/
|
|
9
|
-
export type { Agent, AgentInput, AgentPatch, AuthMe, Block, Catalog, Connection, ConnectionProvider, ConnectionProviderInput, ConnectionProviderPatch, ConversationRecord, ConversationTreeNode, Environment, EnvironmentInput, EnvironmentPatch, ImageInput, LogEvent, Repository, Runner, SandboxChange, SandboxDiff, SandboxEntry, SandboxFile, SandboxListing, SandboxRecord, SandboxStatus, Schedule, ScheduleInput, SchedulePatch, SearchHit, Secret, TeamAddInput,
|
|
9
|
+
export type { Agent, AgentInput, AgentPatch, AuthMe, Block, Catalog, Connection, ConnectionProvider, ConnectionProviderInput, ConnectionProviderPatch, ConversationRecord, ConversationTreeNode, Environment, EnvironmentInput, EnvironmentPatch, ImageInput, LogEvent, Repository, Runner, SandboxChange, SandboxDiff, SandboxEntry, SandboxFile, SandboxListing, SandboxRecord, SandboxStatus, Schedule, ScheduleInput, SchedulePatch, SearchHit, Secret, TeamAddInput, Teammate, Turn, Vault, VaultInput, VaultPatch, VaultSecret, VaultSecretMetadataPatch, } from "./schemas.ts";
|
|
10
10
|
import type { Agent, Block, ConversationRecord, LogEvent } from "./schemas.ts";
|
|
11
11
|
/** The agent runtimes Fountain can start. */
|
|
12
12
|
export type Runtime = NonNullable<Agent["runtime"]>;
|
package/package.json
CHANGED