@talqing/mcp 0.12.0 → 0.12.1
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/SKILL.md +6 -4
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tools.json +336 -0
package/SKILL.md
CHANGED
|
@@ -1075,7 +1075,8 @@ as it finishes.
|
|
|
1075
1075
|
|
|
1076
1076
|
**Retries.** A background run is tried again — at most 3 tries — when its
|
|
1077
1077
|
worker stopped under it, or when the model provider failed transiently before
|
|
1078
|
-
any tool ran, so a side-effecting tool
|
|
1078
|
+
any tool ran. A worker stop retries from the start, so a side-effecting tool
|
|
1079
|
+
can repeat. Everything else settles
|
|
1079
1080
|
on the first try. `tries` says how many there were; cost adds up across them.
|
|
1080
1081
|
|
|
1081
1082
|
`cancel_task_run` stops a queued run at once and a running background one
|
|
@@ -1454,8 +1455,8 @@ a ramp.
|
|
|
1454
1455
|
messaged. Cold outreach breaks WhatsApp's policy and risks their number.
|
|
1455
1456
|
- **US numbers never receive marketing templates**, and Meta caps the marketing
|
|
1456
1457
|
templates any one person receives.
|
|
1457
|
-
-
|
|
1458
|
-
a
|
|
1458
|
+
- **`send_whatsapp_batch` messages every row and cannot be undone.** Send, or
|
|
1459
|
+
resume a paused batch, only on an explicit yes for this batch.
|
|
1459
1460
|
- **`add_whatsapp_batch_recipients` on a sending or completed batch messages
|
|
1460
1461
|
the new rows at once**, with nobody pressing anything. Get an explicit yes.
|
|
1461
1462
|
|
|
@@ -1466,7 +1467,8 @@ first message — so write that agent's prompt against the CSV's column names.
|
|
|
1466
1467
|
|
|
1467
1468
|
A tapped quick-reply button reaches the agent as its text; the item's `content`
|
|
1468
1469
|
keeps the button's `payload` (never shown to the agent) and `replied_to`, the
|
|
1469
|
-
template it answers. Photos reach an
|
|
1470
|
+
`provider_message_id` of the template message it answers. Photos reach an
|
|
1471
|
+
agent whose model has `vision: true`; any
|
|
1470
1472
|
other agent is told to ask for a description, so pick a vision model for a
|
|
1471
1473
|
number people send photos to. Voice notes, video and documents are not read.
|
|
1472
1474
|
|
package/dist/index.js
CHANGED
|
@@ -97,13 +97,19 @@ async function call(name, args) {
|
|
|
97
97
|
return failure(`unknown function: ${name}`);
|
|
98
98
|
let response;
|
|
99
99
|
try {
|
|
100
|
-
|
|
100
|
+
// Not followed: the recordings redirect to the media itself, which is no
|
|
101
|
+
// use as a tool result. The model gets the short-lived link instead.
|
|
102
|
+
response = await fetch(requestFor(fn, args), { redirect: "manual" });
|
|
101
103
|
}
|
|
102
104
|
catch (error) {
|
|
103
105
|
// A bad argument (missing path parameter) and an unreachable API both land
|
|
104
106
|
// here; either way the model gets a readable error in the API's own shape.
|
|
105
107
|
return failure(error instanceof Error ? error.message : String(error));
|
|
106
108
|
}
|
|
109
|
+
const location = response.headers.get("location");
|
|
110
|
+
if (response.status >= 300 && response.status < 400 && location) {
|
|
111
|
+
return { content: [{ type: "text", text: JSON.stringify({ url: location }) }] };
|
|
112
|
+
}
|
|
107
113
|
const text = await response.text();
|
|
108
114
|
if (!response.ok) {
|
|
109
115
|
// Errors already carry {detail: {message, errors}} — pass them through so
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,oCAAoC,CAAC;AAc5C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,C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I,oBAAoB,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
package/tools.json
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
"api_prefix": "/v1",
|
|
3
3
|
"api_version": "1.0.0",
|
|
4
4
|
"tools": [
|
|
5
|
+
{
|
|
6
|
+
"description": "Liveness probe: `200` once this process is serving. Unauthenticated.",
|
|
7
|
+
"method": "GET",
|
|
8
|
+
"name": "health",
|
|
9
|
+
"parameters": {
|
|
10
|
+
"additionalProperties": true,
|
|
11
|
+
"description": "Arguments not inlined: call describe_function('health').",
|
|
12
|
+
"properties": {},
|
|
13
|
+
"type": "object"
|
|
14
|
+
},
|
|
15
|
+
"path": "/health",
|
|
16
|
+
"read_only": true,
|
|
17
|
+
"role": "public"
|
|
18
|
+
},
|
|
5
19
|
{
|
|
6
20
|
"description": "List the workspace's agents, newest edit first.",
|
|
7
21
|
"method": "GET",
|
|
@@ -1192,6 +1206,20 @@
|
|
|
1192
1206
|
"read_only": false,
|
|
1193
1207
|
"role": "write"
|
|
1194
1208
|
},
|
|
1209
|
+
{
|
|
1210
|
+
"description": "Delete a finished batch and its recipient list for good. Its calls stay.",
|
|
1211
|
+
"method": "DELETE",
|
|
1212
|
+
"name": "delete_call_batch",
|
|
1213
|
+
"parameters": {
|
|
1214
|
+
"additionalProperties": true,
|
|
1215
|
+
"description": "Arguments not inlined: call describe_function('delete_call_batch').",
|
|
1216
|
+
"properties": {},
|
|
1217
|
+
"type": "object"
|
|
1218
|
+
},
|
|
1219
|
+
"path": "/v1/calls/batches/{batch_id}",
|
|
1220
|
+
"read_only": false,
|
|
1221
|
+
"role": "write"
|
|
1222
|
+
},
|
|
1195
1223
|
{
|
|
1196
1224
|
"description": "The domains a connected email account may send from, right now.",
|
|
1197
1225
|
"method": "GET",
|
|
@@ -1304,6 +1332,20 @@
|
|
|
1304
1332
|
"read_only": false,
|
|
1305
1333
|
"role": "write"
|
|
1306
1334
|
},
|
|
1335
|
+
{
|
|
1336
|
+
"description": "Delete a batch, its rows and its sends for good. **The record of what was sent goes too.**",
|
|
1337
|
+
"method": "DELETE",
|
|
1338
|
+
"name": "delete_email_batch",
|
|
1339
|
+
"parameters": {
|
|
1340
|
+
"additionalProperties": true,
|
|
1341
|
+
"description": "Arguments not inlined: call describe_function('delete_email_batch').",
|
|
1342
|
+
"properties": {},
|
|
1343
|
+
"type": "object"
|
|
1344
|
+
},
|
|
1345
|
+
"path": "/v1/email/batches/{batch_id}",
|
|
1346
|
+
"read_only": false,
|
|
1347
|
+
"role": "write"
|
|
1348
|
+
},
|
|
1307
1349
|
{
|
|
1308
1350
|
"description": "One batch's rows, in the order they were uploaded.",
|
|
1309
1351
|
"method": "GET",
|
|
@@ -1486,6 +1528,20 @@
|
|
|
1486
1528
|
"read_only": true,
|
|
1487
1529
|
"role": "read"
|
|
1488
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
"description": "List the WhatsApp senders on a Twilio account, before connecting one. Stores nothing.",
|
|
1533
|
+
"method": "POST",
|
|
1534
|
+
"name": "list_twilio_whatsapp_senders",
|
|
1535
|
+
"parameters": {
|
|
1536
|
+
"additionalProperties": true,
|
|
1537
|
+
"description": "Arguments not inlined: call describe_function('list_twilio_whatsapp_senders').",
|
|
1538
|
+
"properties": {},
|
|
1539
|
+
"type": "object"
|
|
1540
|
+
},
|
|
1541
|
+
"path": "/v1/whatsapp/twilio-senders",
|
|
1542
|
+
"read_only": false,
|
|
1543
|
+
"role": "write"
|
|
1544
|
+
},
|
|
1489
1545
|
{
|
|
1490
1546
|
"description": "Create a WhatsApp batch: one approved template, sent once per CSV row. Sends nothing yet.",
|
|
1491
1547
|
"method": "POST",
|
|
@@ -1542,6 +1598,20 @@
|
|
|
1542
1598
|
"read_only": false,
|
|
1543
1599
|
"role": "write"
|
|
1544
1600
|
},
|
|
1601
|
+
{
|
|
1602
|
+
"description": "Send every ready row. **This messages real people and cannot be undone.**",
|
|
1603
|
+
"method": "POST",
|
|
1604
|
+
"name": "send_whatsapp_batch",
|
|
1605
|
+
"parameters": {
|
|
1606
|
+
"additionalProperties": true,
|
|
1607
|
+
"description": "Arguments not inlined: call describe_function('send_whatsapp_batch').",
|
|
1608
|
+
"properties": {},
|
|
1609
|
+
"type": "object"
|
|
1610
|
+
},
|
|
1611
|
+
"path": "/v1/whatsapp/batches/{batch_id}/send",
|
|
1612
|
+
"read_only": false,
|
|
1613
|
+
"role": "write"
|
|
1614
|
+
},
|
|
1545
1615
|
{
|
|
1546
1616
|
"description": "Stop sending before the next message. Nothing is lost.",
|
|
1547
1617
|
"method": "POST",
|
|
@@ -1556,6 +1626,20 @@
|
|
|
1556
1626
|
"read_only": false,
|
|
1557
1627
|
"role": "write"
|
|
1558
1628
|
},
|
|
1629
|
+
{
|
|
1630
|
+
"description": "Carry on sending from where the batch stopped.",
|
|
1631
|
+
"method": "POST",
|
|
1632
|
+
"name": "resume_whatsapp_batch",
|
|
1633
|
+
"parameters": {
|
|
1634
|
+
"additionalProperties": true,
|
|
1635
|
+
"description": "Arguments not inlined: call describe_function('resume_whatsapp_batch').",
|
|
1636
|
+
"properties": {},
|
|
1637
|
+
"type": "object"
|
|
1638
|
+
},
|
|
1639
|
+
"path": "/v1/whatsapp/batches/{batch_id}/resume",
|
|
1640
|
+
"read_only": false,
|
|
1641
|
+
"role": "write"
|
|
1642
|
+
},
|
|
1559
1643
|
{
|
|
1560
1644
|
"description": "Stop for good. Messages already sent stay sent, and replies are still answered.",
|
|
1561
1645
|
"method": "POST",
|
|
@@ -1570,6 +1654,20 @@
|
|
|
1570
1654
|
"read_only": false,
|
|
1571
1655
|
"role": "write"
|
|
1572
1656
|
},
|
|
1657
|
+
{
|
|
1658
|
+
"description": "Delete a batch and its rows for good. A live batch must be canceled first.",
|
|
1659
|
+
"method": "DELETE",
|
|
1660
|
+
"name": "delete_whatsapp_batch",
|
|
1661
|
+
"parameters": {
|
|
1662
|
+
"additionalProperties": true,
|
|
1663
|
+
"description": "Arguments not inlined: call describe_function('delete_whatsapp_batch').",
|
|
1664
|
+
"properties": {},
|
|
1665
|
+
"type": "object"
|
|
1666
|
+
},
|
|
1667
|
+
"path": "/v1/whatsapp/batches/{batch_id}",
|
|
1668
|
+
"read_only": false,
|
|
1669
|
+
"role": "write"
|
|
1670
|
+
},
|
|
1573
1671
|
{
|
|
1574
1672
|
"description": "A batch's rows in upload order, each with its rendered message.",
|
|
1575
1673
|
"method": "GET",
|
|
@@ -1780,6 +1878,34 @@
|
|
|
1780
1878
|
"read_only": false,
|
|
1781
1879
|
"role": "write"
|
|
1782
1880
|
},
|
|
1881
|
+
{
|
|
1882
|
+
"description": "Mint a one-hour browser token for this chat. Mint another to refresh.",
|
|
1883
|
+
"method": "POST",
|
|
1884
|
+
"name": "create_chat_token",
|
|
1885
|
+
"parameters": {
|
|
1886
|
+
"additionalProperties": true,
|
|
1887
|
+
"description": "Arguments not inlined: call describe_function('create_chat_token').",
|
|
1888
|
+
"properties": {},
|
|
1889
|
+
"type": "object"
|
|
1890
|
+
},
|
|
1891
|
+
"path": "/v1/chats/{chat_id}/token",
|
|
1892
|
+
"read_only": false,
|
|
1893
|
+
"role": "write"
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"description": "Erase an ended chat's content; the chat and its cost stay. Cannot be undone.",
|
|
1897
|
+
"method": "DELETE",
|
|
1898
|
+
"name": "delete_chat",
|
|
1899
|
+
"parameters": {
|
|
1900
|
+
"additionalProperties": true,
|
|
1901
|
+
"description": "Arguments not inlined: call describe_function('delete_chat').",
|
|
1902
|
+
"properties": {},
|
|
1903
|
+
"type": "object"
|
|
1904
|
+
},
|
|
1905
|
+
"path": "/v1/chats/{chat_id}",
|
|
1906
|
+
"read_only": false,
|
|
1907
|
+
"role": "write"
|
|
1908
|
+
},
|
|
1783
1909
|
{
|
|
1784
1910
|
"description": "List voice and video calls, newest first, with status, duration and cost.",
|
|
1785
1911
|
"method": "GET",
|
|
@@ -1822,6 +1948,62 @@
|
|
|
1822
1948
|
"read_only": true,
|
|
1823
1949
|
"role": "read"
|
|
1824
1950
|
},
|
|
1951
|
+
{
|
|
1952
|
+
"description": "Erase this call's content. The call itself stays, with its cost.",
|
|
1953
|
+
"method": "DELETE",
|
|
1954
|
+
"name": "delete_call",
|
|
1955
|
+
"parameters": {
|
|
1956
|
+
"additionalProperties": true,
|
|
1957
|
+
"description": "Arguments not inlined: call describe_function('delete_call').",
|
|
1958
|
+
"properties": {},
|
|
1959
|
+
"type": "object"
|
|
1960
|
+
},
|
|
1961
|
+
"path": "/v1/calls/{session_id}",
|
|
1962
|
+
"read_only": false,
|
|
1963
|
+
"role": "write"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"description": "Redirect to the call's audio: one stereo Ogg/Opus file.",
|
|
1967
|
+
"method": "GET",
|
|
1968
|
+
"name": "get_call_recording",
|
|
1969
|
+
"parameters": {
|
|
1970
|
+
"additionalProperties": true,
|
|
1971
|
+
"description": "Arguments not inlined: call describe_function('get_call_recording').",
|
|
1972
|
+
"properties": {},
|
|
1973
|
+
"type": "object"
|
|
1974
|
+
},
|
|
1975
|
+
"path": "/v1/calls/{session_id}/recording",
|
|
1976
|
+
"read_only": true,
|
|
1977
|
+
"role": "read"
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"description": "Redirect to the screen the person shared: one 1 fps H.264 file.",
|
|
1981
|
+
"method": "GET",
|
|
1982
|
+
"name": "get_call_screen_recording",
|
|
1983
|
+
"parameters": {
|
|
1984
|
+
"additionalProperties": true,
|
|
1985
|
+
"description": "Arguments not inlined: call describe_function('get_call_screen_recording').",
|
|
1986
|
+
"properties": {},
|
|
1987
|
+
"type": "object"
|
|
1988
|
+
},
|
|
1989
|
+
"path": "/v1/calls/{session_id}/screen-recording",
|
|
1990
|
+
"read_only": true,
|
|
1991
|
+
"role": "read"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"description": "Delete the call's recorded media, keeping the call itself.",
|
|
1995
|
+
"method": "DELETE",
|
|
1996
|
+
"name": "delete_call_recording",
|
|
1997
|
+
"parameters": {
|
|
1998
|
+
"additionalProperties": true,
|
|
1999
|
+
"description": "Arguments not inlined: call describe_function('delete_call_recording').",
|
|
2000
|
+
"properties": {},
|
|
2001
|
+
"type": "object"
|
|
2002
|
+
},
|
|
2003
|
+
"path": "/v1/calls/{session_id}/recording",
|
|
2004
|
+
"read_only": false,
|
|
2005
|
+
"role": "write"
|
|
2006
|
+
},
|
|
1825
2007
|
{
|
|
1826
2008
|
"description": "Try an analysis definition against one past call and see what it finds.",
|
|
1827
2009
|
"method": "POST",
|
|
@@ -1920,6 +2102,20 @@
|
|
|
1920
2102
|
"read_only": true,
|
|
1921
2103
|
"role": "read"
|
|
1922
2104
|
},
|
|
2105
|
+
{
|
|
2106
|
+
"description": "What the platform did during this conversation's sessions, oldest first.",
|
|
2107
|
+
"method": "GET",
|
|
2108
|
+
"name": "list_conversation_trace",
|
|
2109
|
+
"parameters": {
|
|
2110
|
+
"additionalProperties": true,
|
|
2111
|
+
"description": "Arguments not inlined: call describe_function('list_conversation_trace').",
|
|
2112
|
+
"properties": {},
|
|
2113
|
+
"type": "object"
|
|
2114
|
+
},
|
|
2115
|
+
"path": "/v1/conversations/{conversation_id}/trace",
|
|
2116
|
+
"read_only": true,
|
|
2117
|
+
"role": "read"
|
|
2118
|
+
},
|
|
1923
2119
|
{
|
|
1924
2120
|
"description": "Edit a conversation's summary, userdata or metadata.",
|
|
1925
2121
|
"method": "PATCH",
|
|
@@ -1934,6 +2130,20 @@
|
|
|
1934
2130
|
"read_only": false,
|
|
1935
2131
|
"role": "write"
|
|
1936
2132
|
},
|
|
2133
|
+
{
|
|
2134
|
+
"description": "Erase a conversation: every session's content, its items, and the contact once it has no other conversations. Cannot be undone.",
|
|
2135
|
+
"method": "DELETE",
|
|
2136
|
+
"name": "delete_conversation",
|
|
2137
|
+
"parameters": {
|
|
2138
|
+
"additionalProperties": true,
|
|
2139
|
+
"description": "Arguments not inlined: call describe_function('delete_conversation').",
|
|
2140
|
+
"properties": {},
|
|
2141
|
+
"type": "object"
|
|
2142
|
+
},
|
|
2143
|
+
"path": "/v1/conversations/{conversation_id}",
|
|
2144
|
+
"read_only": false,
|
|
2145
|
+
"role": "write"
|
|
2146
|
+
},
|
|
1937
2147
|
{
|
|
1938
2148
|
"description": "Post a template, agent text, note or instruction into a conversation, or start one with a person.",
|
|
1939
2149
|
"method": "POST",
|
|
@@ -1948,6 +2158,48 @@
|
|
|
1948
2158
|
"read_only": false,
|
|
1949
2159
|
"role": "write"
|
|
1950
2160
|
},
|
|
2161
|
+
{
|
|
2162
|
+
"description": "Say something to AgentCoPilot. The reply arrives on the stream, not here.",
|
|
2163
|
+
"method": "POST",
|
|
2164
|
+
"name": "agent_copilot_send_message",
|
|
2165
|
+
"parameters": {
|
|
2166
|
+
"additionalProperties": true,
|
|
2167
|
+
"description": "Arguments not inlined: call describe_function('agent_copilot_send_message').",
|
|
2168
|
+
"properties": {},
|
|
2169
|
+
"type": "object"
|
|
2170
|
+
},
|
|
2171
|
+
"path": "/v1/copilot/agents/{agent_id}/messages",
|
|
2172
|
+
"read_only": false,
|
|
2173
|
+
"role": "write"
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
"description": "Say something to ToolCoPilot. The reply arrives on the stream, not here.",
|
|
2177
|
+
"method": "POST",
|
|
2178
|
+
"name": "tool_copilot_send_message",
|
|
2179
|
+
"parameters": {
|
|
2180
|
+
"additionalProperties": true,
|
|
2181
|
+
"description": "Arguments not inlined: call describe_function('tool_copilot_send_message').",
|
|
2182
|
+
"properties": {},
|
|
2183
|
+
"type": "object"
|
|
2184
|
+
},
|
|
2185
|
+
"path": "/v1/copilot/tools/{tool_id}/messages",
|
|
2186
|
+
"read_only": false,
|
|
2187
|
+
"role": "write"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"description": "Say something to TaskCoPilot. The reply arrives on the stream, not here.",
|
|
2191
|
+
"method": "POST",
|
|
2192
|
+
"name": "task_copilot_send_message",
|
|
2193
|
+
"parameters": {
|
|
2194
|
+
"additionalProperties": true,
|
|
2195
|
+
"description": "Arguments not inlined: call describe_function('task_copilot_send_message').",
|
|
2196
|
+
"properties": {},
|
|
2197
|
+
"type": "object"
|
|
2198
|
+
},
|
|
2199
|
+
"path": "/v1/copilot/tasks/{task_id}/messages",
|
|
2200
|
+
"read_only": false,
|
|
2201
|
+
"role": "write"
|
|
2202
|
+
},
|
|
1951
2203
|
{
|
|
1952
2204
|
"description": "Workspace analytics: volume, endings, recordings, response time and spend. One snapshot of a date range, up to 7 days.",
|
|
1953
2205
|
"method": "GET",
|
|
@@ -1962,6 +2214,90 @@
|
|
|
1962
2214
|
"read_only": true,
|
|
1963
2215
|
"role": "read"
|
|
1964
2216
|
},
|
|
2217
|
+
{
|
|
2218
|
+
"description": "This workspace's credit balance, what it buys, and what a top-up costs.",
|
|
2219
|
+
"method": "GET",
|
|
2220
|
+
"name": "get_credits",
|
|
2221
|
+
"parameters": {
|
|
2222
|
+
"additionalProperties": true,
|
|
2223
|
+
"description": "Arguments not inlined: call describe_function('get_credits').",
|
|
2224
|
+
"properties": {},
|
|
2225
|
+
"type": "object"
|
|
2226
|
+
},
|
|
2227
|
+
"path": "/v1/billing/credits",
|
|
2228
|
+
"read_only": true,
|
|
2229
|
+
"role": "read"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"description": "Every movement of this workspace's balance, newest first, with what caused each.",
|
|
2233
|
+
"method": "GET",
|
|
2234
|
+
"name": "list_credit_ledger",
|
|
2235
|
+
"parameters": {
|
|
2236
|
+
"additionalProperties": true,
|
|
2237
|
+
"description": "Arguments not inlined: call describe_function('list_credit_ledger').",
|
|
2238
|
+
"properties": {},
|
|
2239
|
+
"type": "object"
|
|
2240
|
+
},
|
|
2241
|
+
"path": "/v1/billing/credits/ledger",
|
|
2242
|
+
"read_only": true,
|
|
2243
|
+
"role": "read"
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"description": "Start a credit purchase and return the hosted checkout URL to open.",
|
|
2247
|
+
"method": "POST",
|
|
2248
|
+
"name": "create_credit_checkout",
|
|
2249
|
+
"parameters": {
|
|
2250
|
+
"additionalProperties": true,
|
|
2251
|
+
"description": "Arguments not inlined: call describe_function('create_credit_checkout').",
|
|
2252
|
+
"properties": {},
|
|
2253
|
+
"type": "object"
|
|
2254
|
+
},
|
|
2255
|
+
"path": "/v1/billing/credits/checkout",
|
|
2256
|
+
"read_only": false,
|
|
2257
|
+
"role": "admin"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"description": "List personal access tokens: your own, or every one in the organization if you are an admin.",
|
|
2261
|
+
"method": "GET",
|
|
2262
|
+
"name": "list_tokens",
|
|
2263
|
+
"parameters": {
|
|
2264
|
+
"additionalProperties": true,
|
|
2265
|
+
"description": "Arguments not inlined: call describe_function('list_tokens').",
|
|
2266
|
+
"properties": {},
|
|
2267
|
+
"type": "object"
|
|
2268
|
+
},
|
|
2269
|
+
"path": "/v1/tokens",
|
|
2270
|
+
"read_only": true,
|
|
2271
|
+
"role": "read"
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"description": "Create a personal access token for driving this API without the dashboard.",
|
|
2275
|
+
"method": "POST",
|
|
2276
|
+
"name": "create_token",
|
|
2277
|
+
"parameters": {
|
|
2278
|
+
"additionalProperties": true,
|
|
2279
|
+
"description": "Arguments not inlined: call describe_function('create_token').",
|
|
2280
|
+
"properties": {},
|
|
2281
|
+
"type": "object"
|
|
2282
|
+
},
|
|
2283
|
+
"path": "/v1/tokens",
|
|
2284
|
+
"read_only": false,
|
|
2285
|
+
"role": "read"
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
"description": "Revoke a token immediately and permanently.",
|
|
2289
|
+
"method": "DELETE",
|
|
2290
|
+
"name": "delete_token",
|
|
2291
|
+
"parameters": {
|
|
2292
|
+
"additionalProperties": true,
|
|
2293
|
+
"description": "Arguments not inlined: call describe_function('delete_token').",
|
|
2294
|
+
"properties": {},
|
|
2295
|
+
"type": "object"
|
|
2296
|
+
},
|
|
2297
|
+
"path": "/v1/tokens/{token_id}",
|
|
2298
|
+
"read_only": false,
|
|
2299
|
+
"role": "read"
|
|
2300
|
+
},
|
|
1965
2301
|
{
|
|
1966
2302
|
"description": "List the workspace's secrets by name, with a masked hint of each value.",
|
|
1967
2303
|
"method": "GET",
|