current-cli 0.1.1__tar.gz → 0.1.3__tar.gz
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.
- {current_cli-0.1.1 → current_cli-0.1.3}/PKG-INFO +1 -1
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/schema.yml +572 -14
- {current_cli-0.1.1 → current_cli-0.1.3}/llms.txt +75 -5
- {current_cli-0.1.1 → current_cli-0.1.3}/pyproject.toml +1 -1
- {current_cli-0.1.1 → current_cli-0.1.3}/.gitignore +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/README.md +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/__init__.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/build.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/config.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/docs.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/http.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/main.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/current_cli/schema.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/scripts/bump_version.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/__init__.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/conftest.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/test_auth.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/test_bump_version.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/test_command_tree.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/test_docs.py +0 -0
- {current_cli-0.1.1 → current_cli-0.1.3}/tests/test_requests.py +0 -0
|
@@ -88,6 +88,216 @@ paths:
|
|
|
88
88
|
schema:
|
|
89
89
|
$ref: '#/components/schemas/VerifyMagicLinkResponse'
|
|
90
90
|
description: ''
|
|
91
|
+
/api/contacts/contacts/:
|
|
92
|
+
get:
|
|
93
|
+
operationId: contacts_contacts_list
|
|
94
|
+
tags:
|
|
95
|
+
- contacts
|
|
96
|
+
security:
|
|
97
|
+
- tokenAuth: []
|
|
98
|
+
responses:
|
|
99
|
+
'200':
|
|
100
|
+
content:
|
|
101
|
+
application/json:
|
|
102
|
+
schema:
|
|
103
|
+
type: array
|
|
104
|
+
items:
|
|
105
|
+
$ref: '#/components/schemas/Contact'
|
|
106
|
+
description: ''
|
|
107
|
+
post:
|
|
108
|
+
operationId: contacts_contacts_create
|
|
109
|
+
tags:
|
|
110
|
+
- contacts
|
|
111
|
+
requestBody:
|
|
112
|
+
content:
|
|
113
|
+
application/json:
|
|
114
|
+
schema:
|
|
115
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
116
|
+
application/x-www-form-urlencoded:
|
|
117
|
+
schema:
|
|
118
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
119
|
+
multipart/form-data:
|
|
120
|
+
schema:
|
|
121
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
122
|
+
required: true
|
|
123
|
+
security:
|
|
124
|
+
- tokenAuth: []
|
|
125
|
+
responses:
|
|
126
|
+
'201':
|
|
127
|
+
content:
|
|
128
|
+
application/json:
|
|
129
|
+
schema:
|
|
130
|
+
$ref: '#/components/schemas/Contact'
|
|
131
|
+
description: ''
|
|
132
|
+
/api/contacts/contacts/{id}/:
|
|
133
|
+
get:
|
|
134
|
+
operationId: contacts_contacts_retrieve
|
|
135
|
+
parameters:
|
|
136
|
+
- in: path
|
|
137
|
+
name: id
|
|
138
|
+
schema:
|
|
139
|
+
type: string
|
|
140
|
+
format: uuid
|
|
141
|
+
description: A UUID string identifying this contact.
|
|
142
|
+
required: true
|
|
143
|
+
tags:
|
|
144
|
+
- contacts
|
|
145
|
+
security:
|
|
146
|
+
- tokenAuth: []
|
|
147
|
+
responses:
|
|
148
|
+
'200':
|
|
149
|
+
content:
|
|
150
|
+
application/json:
|
|
151
|
+
schema:
|
|
152
|
+
$ref: '#/components/schemas/Contact'
|
|
153
|
+
description: ''
|
|
154
|
+
put:
|
|
155
|
+
operationId: contacts_contacts_update
|
|
156
|
+
parameters:
|
|
157
|
+
- in: path
|
|
158
|
+
name: id
|
|
159
|
+
schema:
|
|
160
|
+
type: string
|
|
161
|
+
format: uuid
|
|
162
|
+
description: A UUID string identifying this contact.
|
|
163
|
+
required: true
|
|
164
|
+
tags:
|
|
165
|
+
- contacts
|
|
166
|
+
requestBody:
|
|
167
|
+
content:
|
|
168
|
+
application/json:
|
|
169
|
+
schema:
|
|
170
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
171
|
+
application/x-www-form-urlencoded:
|
|
172
|
+
schema:
|
|
173
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
174
|
+
multipart/form-data:
|
|
175
|
+
schema:
|
|
176
|
+
$ref: '#/components/schemas/ContactRequest'
|
|
177
|
+
required: true
|
|
178
|
+
security:
|
|
179
|
+
- tokenAuth: []
|
|
180
|
+
responses:
|
|
181
|
+
'200':
|
|
182
|
+
content:
|
|
183
|
+
application/json:
|
|
184
|
+
schema:
|
|
185
|
+
$ref: '#/components/schemas/Contact'
|
|
186
|
+
description: ''
|
|
187
|
+
patch:
|
|
188
|
+
operationId: contacts_contacts_partial_update
|
|
189
|
+
parameters:
|
|
190
|
+
- in: path
|
|
191
|
+
name: id
|
|
192
|
+
schema:
|
|
193
|
+
type: string
|
|
194
|
+
format: uuid
|
|
195
|
+
description: A UUID string identifying this contact.
|
|
196
|
+
required: true
|
|
197
|
+
tags:
|
|
198
|
+
- contacts
|
|
199
|
+
requestBody:
|
|
200
|
+
content:
|
|
201
|
+
application/json:
|
|
202
|
+
schema:
|
|
203
|
+
$ref: '#/components/schemas/PatchedContactRequest'
|
|
204
|
+
application/x-www-form-urlencoded:
|
|
205
|
+
schema:
|
|
206
|
+
$ref: '#/components/schemas/PatchedContactRequest'
|
|
207
|
+
multipart/form-data:
|
|
208
|
+
schema:
|
|
209
|
+
$ref: '#/components/schemas/PatchedContactRequest'
|
|
210
|
+
security:
|
|
211
|
+
- tokenAuth: []
|
|
212
|
+
responses:
|
|
213
|
+
'200':
|
|
214
|
+
content:
|
|
215
|
+
application/json:
|
|
216
|
+
schema:
|
|
217
|
+
$ref: '#/components/schemas/Contact'
|
|
218
|
+
description: ''
|
|
219
|
+
delete:
|
|
220
|
+
operationId: contacts_contacts_destroy
|
|
221
|
+
parameters:
|
|
222
|
+
- in: path
|
|
223
|
+
name: id
|
|
224
|
+
schema:
|
|
225
|
+
type: string
|
|
226
|
+
format: uuid
|
|
227
|
+
description: A UUID string identifying this contact.
|
|
228
|
+
required: true
|
|
229
|
+
tags:
|
|
230
|
+
- contacts
|
|
231
|
+
security:
|
|
232
|
+
- tokenAuth: []
|
|
233
|
+
responses:
|
|
234
|
+
'204':
|
|
235
|
+
description: No response body
|
|
236
|
+
/api/contacts/contacts/{id}/add_address/:
|
|
237
|
+
post:
|
|
238
|
+
operationId: contacts_contacts_add_address_create
|
|
239
|
+
parameters:
|
|
240
|
+
- in: path
|
|
241
|
+
name: id
|
|
242
|
+
schema:
|
|
243
|
+
type: string
|
|
244
|
+
format: uuid
|
|
245
|
+
description: A UUID string identifying this contact.
|
|
246
|
+
required: true
|
|
247
|
+
tags:
|
|
248
|
+
- contacts
|
|
249
|
+
requestBody:
|
|
250
|
+
content:
|
|
251
|
+
application/json:
|
|
252
|
+
schema:
|
|
253
|
+
$ref: '#/components/schemas/ContactAddressCreateRequest'
|
|
254
|
+
application/x-www-form-urlencoded:
|
|
255
|
+
schema:
|
|
256
|
+
$ref: '#/components/schemas/ContactAddressCreateRequest'
|
|
257
|
+
multipart/form-data:
|
|
258
|
+
schema:
|
|
259
|
+
$ref: '#/components/schemas/ContactAddressCreateRequest'
|
|
260
|
+
required: true
|
|
261
|
+
security:
|
|
262
|
+
- tokenAuth: []
|
|
263
|
+
responses:
|
|
264
|
+
'201':
|
|
265
|
+
content:
|
|
266
|
+
application/json:
|
|
267
|
+
schema:
|
|
268
|
+
$ref: '#/components/schemas/ContactAddress'
|
|
269
|
+
description: ''
|
|
270
|
+
/api/contacts/contacts/{id}/addresses/{address_id}/verify/:
|
|
271
|
+
post:
|
|
272
|
+
operationId: contacts_contacts_addresses_verify_create
|
|
273
|
+
description: |-
|
|
274
|
+
Admin-only: mark an address as platform-verified. Verification is
|
|
275
|
+
what makes a membership-linked address approval-capable.
|
|
276
|
+
parameters:
|
|
277
|
+
- in: path
|
|
278
|
+
name: address_id
|
|
279
|
+
schema:
|
|
280
|
+
type: string
|
|
281
|
+
pattern: ^[^/]+$
|
|
282
|
+
required: true
|
|
283
|
+
- in: path
|
|
284
|
+
name: id
|
|
285
|
+
schema:
|
|
286
|
+
type: string
|
|
287
|
+
format: uuid
|
|
288
|
+
description: A UUID string identifying this contact.
|
|
289
|
+
required: true
|
|
290
|
+
tags:
|
|
291
|
+
- contacts
|
|
292
|
+
security:
|
|
293
|
+
- tokenAuth: []
|
|
294
|
+
responses:
|
|
295
|
+
'200':
|
|
296
|
+
content:
|
|
297
|
+
application/json:
|
|
298
|
+
schema:
|
|
299
|
+
$ref: '#/components/schemas/ContactAddress'
|
|
300
|
+
description: ''
|
|
91
301
|
/api/inbox/inbox/:
|
|
92
302
|
get:
|
|
93
303
|
operationId: inbox_retrieve
|
|
@@ -1030,6 +1240,62 @@ paths:
|
|
|
1030
1240
|
responses:
|
|
1031
1241
|
'204':
|
|
1032
1242
|
description: No response body
|
|
1243
|
+
/api/workflows/approvals/{token}/:
|
|
1244
|
+
get:
|
|
1245
|
+
operationId: workflows_approvals_retrieve
|
|
1246
|
+
description: |-
|
|
1247
|
+
GET: the proposal as the approver must see it — summary plus the
|
|
1248
|
+
exact payload that will execute on approval.
|
|
1249
|
+
parameters:
|
|
1250
|
+
- in: path
|
|
1251
|
+
name: token
|
|
1252
|
+
schema:
|
|
1253
|
+
type: string
|
|
1254
|
+
required: true
|
|
1255
|
+
tags:
|
|
1256
|
+
- workflows
|
|
1257
|
+
security:
|
|
1258
|
+
- {}
|
|
1259
|
+
responses:
|
|
1260
|
+
'200':
|
|
1261
|
+
content:
|
|
1262
|
+
application/json:
|
|
1263
|
+
schema:
|
|
1264
|
+
$ref: '#/components/schemas/ApprovalGrantResponse'
|
|
1265
|
+
description: ''
|
|
1266
|
+
/api/workflows/approvals/{token}/decide/:
|
|
1267
|
+
post:
|
|
1268
|
+
operationId: workflows_approvals_decide_create
|
|
1269
|
+
description: 'POST {state, note?}: decide via the capability link.'
|
|
1270
|
+
parameters:
|
|
1271
|
+
- in: path
|
|
1272
|
+
name: token
|
|
1273
|
+
schema:
|
|
1274
|
+
type: string
|
|
1275
|
+
required: true
|
|
1276
|
+
tags:
|
|
1277
|
+
- workflows
|
|
1278
|
+
requestBody:
|
|
1279
|
+
content:
|
|
1280
|
+
application/json:
|
|
1281
|
+
schema:
|
|
1282
|
+
$ref: '#/components/schemas/ApprovalDecideRequestRequest'
|
|
1283
|
+
application/x-www-form-urlencoded:
|
|
1284
|
+
schema:
|
|
1285
|
+
$ref: '#/components/schemas/ApprovalDecideRequestRequest'
|
|
1286
|
+
multipart/form-data:
|
|
1287
|
+
schema:
|
|
1288
|
+
$ref: '#/components/schemas/ApprovalDecideRequestRequest'
|
|
1289
|
+
required: true
|
|
1290
|
+
security:
|
|
1291
|
+
- {}
|
|
1292
|
+
responses:
|
|
1293
|
+
'201':
|
|
1294
|
+
content:
|
|
1295
|
+
application/json:
|
|
1296
|
+
schema:
|
|
1297
|
+
$ref: '#/components/schemas/ApprovalDecideResponse'
|
|
1298
|
+
description: ''
|
|
1033
1299
|
/api/workflows/definitions/apply/:
|
|
1034
1300
|
post:
|
|
1035
1301
|
operationId: workflows_definitions_apply_create
|
|
@@ -1060,13 +1326,13 @@ paths:
|
|
|
1060
1326
|
schema:
|
|
1061
1327
|
$ref: '#/components/schemas/WorkflowDefinition'
|
|
1062
1328
|
description: ''
|
|
1063
|
-
/api/workflows/proposals/{record_id}/
|
|
1329
|
+
/api/workflows/proposals/{record_id}/approval/:
|
|
1064
1330
|
post:
|
|
1065
|
-
operationId:
|
|
1331
|
+
operationId: workflows_proposals_approval_create
|
|
1066
1332
|
description: |-
|
|
1067
1333
|
Approve or reject an agent_proposal record. Creates an
|
|
1068
|
-
|
|
1069
|
-
the gate. One
|
|
1334
|
+
approval record and re-dispatches the run if it was parked on
|
|
1335
|
+
the gate. One approval per proposal — 409 on the second.
|
|
1070
1336
|
parameters:
|
|
1071
1337
|
- in: path
|
|
1072
1338
|
name: record_id
|
|
@@ -1080,13 +1346,13 @@ paths:
|
|
|
1080
1346
|
content:
|
|
1081
1347
|
application/json:
|
|
1082
1348
|
schema:
|
|
1083
|
-
$ref: '#/components/schemas/
|
|
1349
|
+
$ref: '#/components/schemas/ProposalApprovalRequest'
|
|
1084
1350
|
application/x-www-form-urlencoded:
|
|
1085
1351
|
schema:
|
|
1086
|
-
$ref: '#/components/schemas/
|
|
1352
|
+
$ref: '#/components/schemas/ProposalApprovalRequest'
|
|
1087
1353
|
multipart/form-data:
|
|
1088
1354
|
schema:
|
|
1089
|
-
$ref: '#/components/schemas/
|
|
1355
|
+
$ref: '#/components/schemas/ProposalApprovalRequest'
|
|
1090
1356
|
required: true
|
|
1091
1357
|
security:
|
|
1092
1358
|
- tokenAuth: []
|
|
@@ -1261,7 +1527,7 @@ paths:
|
|
|
1261
1527
|
description: |-
|
|
1262
1528
|
Machine endpoint: the harness fetches its work order — the rendered
|
|
1263
1529
|
definition plus the journal state it needs to resume (step states and
|
|
1264
|
-
gate
|
|
1530
|
+
gate approvals).
|
|
1265
1531
|
parameters:
|
|
1266
1532
|
- in: path
|
|
1267
1533
|
name: run_id
|
|
@@ -1317,6 +1583,43 @@ paths:
|
|
|
1317
1583
|
schema:
|
|
1318
1584
|
$ref: '#/components/schemas/RecordCreatedResponse'
|
|
1319
1585
|
description: ''
|
|
1586
|
+
/api/workflows/runs/{run_id}/tools/{tool_name}/invoke/:
|
|
1587
|
+
post:
|
|
1588
|
+
operationId: workflows_runs_tools_invoke_create
|
|
1589
|
+
parameters:
|
|
1590
|
+
- in: path
|
|
1591
|
+
name: run_id
|
|
1592
|
+
schema:
|
|
1593
|
+
type: string
|
|
1594
|
+
format: uuid
|
|
1595
|
+
required: true
|
|
1596
|
+
- in: path
|
|
1597
|
+
name: tool_name
|
|
1598
|
+
schema:
|
|
1599
|
+
type: string
|
|
1600
|
+
required: true
|
|
1601
|
+
tags:
|
|
1602
|
+
- workflows
|
|
1603
|
+
requestBody:
|
|
1604
|
+
content:
|
|
1605
|
+
application/json:
|
|
1606
|
+
schema:
|
|
1607
|
+
$ref: '#/components/schemas/ToolInvokeRequestRequest'
|
|
1608
|
+
application/x-www-form-urlencoded:
|
|
1609
|
+
schema:
|
|
1610
|
+
$ref: '#/components/schemas/ToolInvokeRequestRequest'
|
|
1611
|
+
multipart/form-data:
|
|
1612
|
+
schema:
|
|
1613
|
+
$ref: '#/components/schemas/ToolInvokeRequestRequest'
|
|
1614
|
+
security:
|
|
1615
|
+
- RunTokenAuth: []
|
|
1616
|
+
responses:
|
|
1617
|
+
'200':
|
|
1618
|
+
content:
|
|
1619
|
+
application/json:
|
|
1620
|
+
schema:
|
|
1621
|
+
$ref: '#/components/schemas/ToolInvokeResponse'
|
|
1622
|
+
description: ''
|
|
1320
1623
|
/api/workflows/runs/{run_id}/transitions/:
|
|
1321
1624
|
post:
|
|
1322
1625
|
operationId: workflows_runs_transitions_create
|
|
@@ -1983,6 +2286,43 @@ components:
|
|
|
1983
2286
|
- role
|
|
1984
2287
|
- workspace_id
|
|
1985
2288
|
- workspace_name
|
|
2289
|
+
ApprovalDecideRequestRequest:
|
|
2290
|
+
type: object
|
|
2291
|
+
properties:
|
|
2292
|
+
state:
|
|
2293
|
+
$ref: '#/components/schemas/StateEnum'
|
|
2294
|
+
note:
|
|
2295
|
+
type: string
|
|
2296
|
+
required:
|
|
2297
|
+
- state
|
|
2298
|
+
ApprovalDecideResponse:
|
|
2299
|
+
type: object
|
|
2300
|
+
properties:
|
|
2301
|
+
state:
|
|
2302
|
+
type: string
|
|
2303
|
+
required:
|
|
2304
|
+
- state
|
|
2305
|
+
ApprovalGrantResponse:
|
|
2306
|
+
type: object
|
|
2307
|
+
properties:
|
|
2308
|
+
proposal:
|
|
2309
|
+
type: object
|
|
2310
|
+
additionalProperties: {}
|
|
2311
|
+
workflow:
|
|
2312
|
+
type: string
|
|
2313
|
+
approver:
|
|
2314
|
+
type: string
|
|
2315
|
+
decided:
|
|
2316
|
+
type: boolean
|
|
2317
|
+
decision_state:
|
|
2318
|
+
type: string
|
|
2319
|
+
nullable: true
|
|
2320
|
+
required:
|
|
2321
|
+
- approver
|
|
2322
|
+
- decided
|
|
2323
|
+
- decision_state
|
|
2324
|
+
- proposal
|
|
2325
|
+
- workflow
|
|
1986
2326
|
AuthorizeRequestRequest:
|
|
1987
2327
|
type: object
|
|
1988
2328
|
properties:
|
|
@@ -2002,18 +2342,143 @@ components:
|
|
|
2002
2342
|
format: uri
|
|
2003
2343
|
required:
|
|
2004
2344
|
- authorize_url
|
|
2345
|
+
Contact:
|
|
2346
|
+
type: object
|
|
2347
|
+
properties:
|
|
2348
|
+
id:
|
|
2349
|
+
type: string
|
|
2350
|
+
format: uuid
|
|
2351
|
+
readOnly: true
|
|
2352
|
+
workspace:
|
|
2353
|
+
type: string
|
|
2354
|
+
format: uuid
|
|
2355
|
+
name:
|
|
2356
|
+
type: string
|
|
2357
|
+
maxLength: 255
|
|
2358
|
+
company:
|
|
2359
|
+
type: string
|
|
2360
|
+
maxLength: 255
|
|
2361
|
+
membership:
|
|
2362
|
+
type: string
|
|
2363
|
+
format: uuid
|
|
2364
|
+
readOnly: true
|
|
2365
|
+
nullable: true
|
|
2366
|
+
is_internal:
|
|
2367
|
+
type: boolean
|
|
2368
|
+
readOnly: true
|
|
2369
|
+
source:
|
|
2370
|
+
allOf:
|
|
2371
|
+
- $ref: '#/components/schemas/SourceEnum'
|
|
2372
|
+
readOnly: true
|
|
2373
|
+
addresses:
|
|
2374
|
+
type: array
|
|
2375
|
+
items:
|
|
2376
|
+
$ref: '#/components/schemas/ContactAddress'
|
|
2377
|
+
readOnly: true
|
|
2378
|
+
created_at:
|
|
2379
|
+
type: string
|
|
2380
|
+
format: date-time
|
|
2381
|
+
readOnly: true
|
|
2382
|
+
updated_at:
|
|
2383
|
+
type: string
|
|
2384
|
+
format: date-time
|
|
2385
|
+
readOnly: true
|
|
2386
|
+
required:
|
|
2387
|
+
- addresses
|
|
2388
|
+
- created_at
|
|
2389
|
+
- id
|
|
2390
|
+
- is_internal
|
|
2391
|
+
- membership
|
|
2392
|
+
- name
|
|
2393
|
+
- source
|
|
2394
|
+
- updated_at
|
|
2395
|
+
- workspace
|
|
2396
|
+
ContactAddress:
|
|
2397
|
+
type: object
|
|
2398
|
+
properties:
|
|
2399
|
+
id:
|
|
2400
|
+
type: string
|
|
2401
|
+
format: uuid
|
|
2402
|
+
readOnly: true
|
|
2403
|
+
kind:
|
|
2404
|
+
$ref: '#/components/schemas/KindEnum'
|
|
2405
|
+
value:
|
|
2406
|
+
type: string
|
|
2407
|
+
maxLength: 255
|
|
2408
|
+
verified_at:
|
|
2409
|
+
type: string
|
|
2410
|
+
format: date-time
|
|
2411
|
+
readOnly: true
|
|
2412
|
+
nullable: true
|
|
2413
|
+
source:
|
|
2414
|
+
allOf:
|
|
2415
|
+
- $ref: '#/components/schemas/SourceEnum'
|
|
2416
|
+
readOnly: true
|
|
2417
|
+
created_at:
|
|
2418
|
+
type: string
|
|
2419
|
+
format: date-time
|
|
2420
|
+
readOnly: true
|
|
2421
|
+
required:
|
|
2422
|
+
- created_at
|
|
2423
|
+
- id
|
|
2424
|
+
- kind
|
|
2425
|
+
- source
|
|
2426
|
+
- value
|
|
2427
|
+
- verified_at
|
|
2428
|
+
ContactAddressCreateRequest:
|
|
2429
|
+
type: object
|
|
2430
|
+
properties:
|
|
2431
|
+
kind:
|
|
2432
|
+
$ref: '#/components/schemas/KindEnum'
|
|
2433
|
+
value:
|
|
2434
|
+
type: string
|
|
2435
|
+
minLength: 1
|
|
2436
|
+
maxLength: 255
|
|
2437
|
+
required:
|
|
2438
|
+
- kind
|
|
2439
|
+
- value
|
|
2440
|
+
ContactAddressRequest:
|
|
2441
|
+
type: object
|
|
2442
|
+
properties:
|
|
2443
|
+
kind:
|
|
2444
|
+
$ref: '#/components/schemas/KindEnum'
|
|
2445
|
+
value:
|
|
2446
|
+
type: string
|
|
2447
|
+
minLength: 1
|
|
2448
|
+
maxLength: 255
|
|
2449
|
+
required:
|
|
2450
|
+
- kind
|
|
2451
|
+
- value
|
|
2452
|
+
ContactRequest:
|
|
2453
|
+
type: object
|
|
2454
|
+
properties:
|
|
2455
|
+
workspace:
|
|
2456
|
+
type: string
|
|
2457
|
+
format: uuid
|
|
2458
|
+
name:
|
|
2459
|
+
type: string
|
|
2460
|
+
minLength: 1
|
|
2461
|
+
maxLength: 255
|
|
2462
|
+
company:
|
|
2463
|
+
type: string
|
|
2464
|
+
maxLength: 255
|
|
2465
|
+
required:
|
|
2466
|
+
- name
|
|
2467
|
+
- workspace
|
|
2005
2468
|
DataTypeEnum:
|
|
2006
2469
|
enum:
|
|
2007
2470
|
- text
|
|
2008
2471
|
- number
|
|
2009
2472
|
- boolean
|
|
2010
2473
|
- date
|
|
2474
|
+
- url
|
|
2011
2475
|
type: string
|
|
2012
2476
|
description: |-
|
|
2013
2477
|
* `text` - Text
|
|
2014
2478
|
* `number` - Number
|
|
2015
2479
|
* `boolean` - Boolean
|
|
2016
2480
|
* `date` - Date
|
|
2481
|
+
* `url` - URL
|
|
2017
2482
|
DefinitionApplyRequest:
|
|
2018
2483
|
type: object
|
|
2019
2484
|
description: |-
|
|
@@ -2211,6 +2676,18 @@ components:
|
|
|
2211
2676
|
- invited_by_email
|
|
2212
2677
|
- role
|
|
2213
2678
|
- workspace_name
|
|
2679
|
+
KindEnum:
|
|
2680
|
+
enum:
|
|
2681
|
+
- email
|
|
2682
|
+
- slack
|
|
2683
|
+
- phone
|
|
2684
|
+
- teams
|
|
2685
|
+
type: string
|
|
2686
|
+
description: |-
|
|
2687
|
+
* `email` - Email
|
|
2688
|
+
* `slack` - Slack
|
|
2689
|
+
* `phone` - Phone
|
|
2690
|
+
* `teams` - Teams
|
|
2214
2691
|
LogoutResponse:
|
|
2215
2692
|
type: object
|
|
2216
2693
|
properties:
|
|
@@ -2326,6 +2803,19 @@ components:
|
|
|
2326
2803
|
description: |-
|
|
2327
2804
|
* `pending` - Pending
|
|
2328
2805
|
* `ingested` - Ingested
|
|
2806
|
+
PatchedContactRequest:
|
|
2807
|
+
type: object
|
|
2808
|
+
properties:
|
|
2809
|
+
workspace:
|
|
2810
|
+
type: string
|
|
2811
|
+
format: uuid
|
|
2812
|
+
name:
|
|
2813
|
+
type: string
|
|
2814
|
+
minLength: 1
|
|
2815
|
+
maxLength: 255
|
|
2816
|
+
company:
|
|
2817
|
+
type: string
|
|
2818
|
+
maxLength: 255
|
|
2329
2819
|
PatchedProjectFieldDefinitionRequest:
|
|
2330
2820
|
type: object
|
|
2331
2821
|
properties:
|
|
@@ -2430,6 +2920,11 @@ components:
|
|
|
2430
2920
|
type: boolean
|
|
2431
2921
|
trigger:
|
|
2432
2922
|
$ref: '#/components/schemas/TriggerEnum'
|
|
2923
|
+
trigger_config: {}
|
|
2924
|
+
definition:
|
|
2925
|
+
type: string
|
|
2926
|
+
format: uuid
|
|
2927
|
+
nullable: true
|
|
2433
2928
|
PatchedWorkspaceMembershipRequest:
|
|
2434
2929
|
type: object
|
|
2435
2930
|
properties:
|
|
@@ -2554,7 +3049,7 @@ components:
|
|
|
2554
3049
|
fields: {}
|
|
2555
3050
|
required:
|
|
2556
3051
|
- workspace
|
|
2557
|
-
|
|
3052
|
+
ProposalApprovalRequest:
|
|
2558
3053
|
type: object
|
|
2559
3054
|
properties:
|
|
2560
3055
|
state:
|
|
@@ -2670,6 +3165,12 @@ components:
|
|
|
2670
3165
|
description: |-
|
|
2671
3166
|
Body of the machine records endpoint. Schema validation of ``data``
|
|
2672
3167
|
happens in the view against the workspace RecordType.
|
|
3168
|
+
|
|
3169
|
+
``step_id`` accepts an explicit JSON null and normalizes it to "":
|
|
3170
|
+
older harness clients sent ``"step_id": null`` for the terminal
|
|
3171
|
+
run_report record, which isn't tied to one step (newer ones omit the
|
|
3172
|
+
key) — the model field is a plain non-nullable CharField, so null
|
|
3173
|
+
folds to "" instead of a 400.
|
|
2673
3174
|
properties:
|
|
2674
3175
|
record_type:
|
|
2675
3176
|
type: string
|
|
@@ -2681,6 +3182,7 @@ components:
|
|
|
2681
3182
|
nullable: true
|
|
2682
3183
|
step_id:
|
|
2683
3184
|
type: string
|
|
3185
|
+
nullable: true
|
|
2684
3186
|
default: ''
|
|
2685
3187
|
maxLength: 128
|
|
2686
3188
|
data: {}
|
|
@@ -2734,7 +3236,7 @@ components:
|
|
|
2734
3236
|
description: |-
|
|
2735
3237
|
* `admin` - Admin
|
|
2736
3238
|
* `member` - Member
|
|
2737
|
-
|
|
3239
|
+
RunApproval:
|
|
2738
3240
|
type: object
|
|
2739
3241
|
properties:
|
|
2740
3242
|
gate_step_id:
|
|
@@ -2743,6 +3245,7 @@ components:
|
|
|
2743
3245
|
type: string
|
|
2744
3246
|
state:
|
|
2745
3247
|
type: string
|
|
3248
|
+
proposal: {}
|
|
2746
3249
|
required:
|
|
2747
3250
|
- gate_step_id
|
|
2748
3251
|
- proposal_record_id
|
|
@@ -2766,16 +3269,19 @@ components:
|
|
|
2766
3269
|
type: array
|
|
2767
3270
|
items:
|
|
2768
3271
|
$ref: '#/components/schemas/StepState'
|
|
2769
|
-
|
|
3272
|
+
approvals:
|
|
2770
3273
|
type: array
|
|
2771
3274
|
items:
|
|
2772
|
-
$ref: '#/components/schemas/
|
|
3275
|
+
$ref: '#/components/schemas/RunApproval'
|
|
3276
|
+
trigger:
|
|
3277
|
+
nullable: true
|
|
2773
3278
|
required:
|
|
2774
|
-
-
|
|
3279
|
+
- approvals
|
|
2775
3280
|
- definition
|
|
2776
3281
|
- project
|
|
2777
3282
|
- run_id
|
|
2778
3283
|
- steps_state
|
|
3284
|
+
- trigger
|
|
2779
3285
|
- workspace
|
|
2780
3286
|
SlackChannel:
|
|
2781
3287
|
type: object
|
|
@@ -2787,6 +3293,16 @@ components:
|
|
|
2787
3293
|
required:
|
|
2788
3294
|
- id
|
|
2789
3295
|
- name
|
|
3296
|
+
SourceEnum:
|
|
3297
|
+
enum:
|
|
3298
|
+
- ui
|
|
3299
|
+
- agent
|
|
3300
|
+
- system
|
|
3301
|
+
type: string
|
|
3302
|
+
description: |-
|
|
3303
|
+
* `ui` - UI
|
|
3304
|
+
* `agent` - Agent
|
|
3305
|
+
* `system` - System
|
|
2790
3306
|
StateEnum:
|
|
2791
3307
|
enum:
|
|
2792
3308
|
- approved
|
|
@@ -2847,7 +3363,12 @@ components:
|
|
|
2847
3363
|
- step_id
|
|
2848
3364
|
StepTransitionCreateRequest:
|
|
2849
3365
|
type: object
|
|
2850
|
-
description:
|
|
3366
|
+
description: |-
|
|
3367
|
+
Body of the machine transitions endpoint. ``error`` accepts an
|
|
3368
|
+
explicit JSON null and normalizes it to "": older harness clients sent
|
|
3369
|
+
``"error": null`` for non-error transitions (newer ones omit the key),
|
|
3370
|
+
and rejecting null with a 400 stranded live runs — the model field is
|
|
3371
|
+
a plain non-nullable TextField, so null folds to "" instead.
|
|
2851
3372
|
properties:
|
|
2852
3373
|
step_id:
|
|
2853
3374
|
type: string
|
|
@@ -2861,6 +3382,8 @@ components:
|
|
|
2861
3382
|
default: 1
|
|
2862
3383
|
error:
|
|
2863
3384
|
type: string
|
|
3385
|
+
nullable: true
|
|
3386
|
+
default: ''
|
|
2864
3387
|
required:
|
|
2865
3388
|
- status
|
|
2866
3389
|
- step_id
|
|
@@ -2930,18 +3453,43 @@ components:
|
|
|
2930
3453
|
nullable: true
|
|
2931
3454
|
required:
|
|
2932
3455
|
- title
|
|
3456
|
+
ToolInvokeRequestRequest:
|
|
3457
|
+
type: object
|
|
3458
|
+
properties:
|
|
3459
|
+
args:
|
|
3460
|
+
type: object
|
|
3461
|
+
additionalProperties: {}
|
|
3462
|
+
agent_id:
|
|
3463
|
+
type: string
|
|
3464
|
+
minLength: 1
|
|
3465
|
+
run_id:
|
|
3466
|
+
type: string
|
|
3467
|
+
minLength: 1
|
|
3468
|
+
ToolInvokeResponse:
|
|
3469
|
+
type: object
|
|
3470
|
+
properties:
|
|
3471
|
+
text:
|
|
3472
|
+
type: string
|
|
3473
|
+
required:
|
|
3474
|
+
- text
|
|
2933
3475
|
TriggerEnum:
|
|
2934
3476
|
enum:
|
|
2935
3477
|
- manual
|
|
2936
3478
|
- schedule
|
|
2937
3479
|
- project_created
|
|
2938
3480
|
- project_status_changed
|
|
3481
|
+
- slack_message
|
|
3482
|
+
- teams_message
|
|
3483
|
+
- email_received
|
|
2939
3484
|
type: string
|
|
2940
3485
|
description: |-
|
|
2941
3486
|
* `manual` - Manual
|
|
2942
3487
|
* `schedule` - Schedule
|
|
2943
3488
|
* `project_created` - Project created
|
|
2944
3489
|
* `project_status_changed` - Project status changed
|
|
3490
|
+
* `slack_message` - Slack message
|
|
3491
|
+
* `teams_message` - Teams message
|
|
3492
|
+
* `email_received` - Email received
|
|
2945
3493
|
User:
|
|
2946
3494
|
type: object
|
|
2947
3495
|
properties:
|
|
@@ -3114,6 +3662,11 @@ components:
|
|
|
3114
3662
|
type: boolean
|
|
3115
3663
|
trigger:
|
|
3116
3664
|
$ref: '#/components/schemas/TriggerEnum'
|
|
3665
|
+
trigger_config: {}
|
|
3666
|
+
definition:
|
|
3667
|
+
type: string
|
|
3668
|
+
format: uuid
|
|
3669
|
+
nullable: true
|
|
3117
3670
|
last_run:
|
|
3118
3671
|
allOf:
|
|
3119
3672
|
- $ref: '#/components/schemas/WorkflowRun'
|
|
@@ -3187,6 +3740,11 @@ components:
|
|
|
3187
3740
|
type: boolean
|
|
3188
3741
|
trigger:
|
|
3189
3742
|
$ref: '#/components/schemas/TriggerEnum'
|
|
3743
|
+
trigger_config: {}
|
|
3744
|
+
definition:
|
|
3745
|
+
type: string
|
|
3746
|
+
format: uuid
|
|
3747
|
+
nullable: true
|
|
3190
3748
|
required:
|
|
3191
3749
|
- name
|
|
3192
3750
|
- trigger
|
|
@@ -77,6 +77,53 @@ Set one configuration value.
|
|
|
77
77
|
|
|
78
78
|
Remove one configuration value.
|
|
79
79
|
|
|
80
|
+
### current contacts add_address create <id>
|
|
81
|
+
|
|
82
|
+
POST /api/contacts/contacts/{id}/add_address/
|
|
83
|
+
|
|
84
|
+
Options:
|
|
85
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
86
|
+
|
|
87
|
+
### current contacts addresses verify create <id> <address_id>
|
|
88
|
+
|
|
89
|
+
Admin-only: mark an address as platform-verified. Verification is
|
|
90
|
+
what makes a membership-linked address approval-capable.
|
|
91
|
+
|
|
92
|
+
POST /api/contacts/contacts/{id}/addresses/{address_id}/verify/
|
|
93
|
+
|
|
94
|
+
### current contacts create
|
|
95
|
+
|
|
96
|
+
POST /api/contacts/contacts/
|
|
97
|
+
|
|
98
|
+
Options:
|
|
99
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
100
|
+
|
|
101
|
+
### current contacts destroy <id>
|
|
102
|
+
|
|
103
|
+
DELETE /api/contacts/contacts/{id}/
|
|
104
|
+
|
|
105
|
+
### current contacts list
|
|
106
|
+
|
|
107
|
+
GET /api/contacts/contacts/
|
|
108
|
+
|
|
109
|
+
### current contacts partial-update <id>
|
|
110
|
+
|
|
111
|
+
PATCH /api/contacts/contacts/{id}/
|
|
112
|
+
|
|
113
|
+
Options:
|
|
114
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
115
|
+
|
|
116
|
+
### current contacts retrieve <id>
|
|
117
|
+
|
|
118
|
+
GET /api/contacts/contacts/{id}/
|
|
119
|
+
|
|
120
|
+
### current contacts update <id>
|
|
121
|
+
|
|
122
|
+
PUT /api/contacts/contacts/{id}/
|
|
123
|
+
|
|
124
|
+
Options:
|
|
125
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
126
|
+
|
|
80
127
|
### current docs
|
|
81
128
|
|
|
82
129
|
Print a markdown reference of every command, for LLMs and humans.
|
|
@@ -381,6 +428,22 @@ Options:
|
|
|
381
428
|
|
|
382
429
|
Show the current user and workspace memberships.
|
|
383
430
|
|
|
431
|
+
### current workflows approvals decide create <token>
|
|
432
|
+
|
|
433
|
+
POST {state, note?}: decide via the capability link.
|
|
434
|
+
|
|
435
|
+
POST /api/workflows/approvals/{token}/decide/
|
|
436
|
+
|
|
437
|
+
Options:
|
|
438
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
439
|
+
|
|
440
|
+
### current workflows approvals retrieve <token>
|
|
441
|
+
|
|
442
|
+
GET: the proposal as the approver must see it — summary plus the
|
|
443
|
+
exact payload that will execute on approval.
|
|
444
|
+
|
|
445
|
+
GET /api/workflows/approvals/{token}/
|
|
446
|
+
|
|
384
447
|
### current workflows create
|
|
385
448
|
|
|
386
449
|
Workflows across the caller's workspaces. Any member can create and edit.
|
|
@@ -425,13 +488,13 @@ PATCH /api/workflows/workflows/{id}/
|
|
|
425
488
|
Options:
|
|
426
489
|
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
427
490
|
|
|
428
|
-
### current workflows proposals
|
|
491
|
+
### current workflows proposals approval create <record_id>
|
|
429
492
|
|
|
430
493
|
Approve or reject an agent_proposal record. Creates an
|
|
431
|
-
|
|
432
|
-
the gate. One
|
|
494
|
+
approval record and re-dispatches the run if it was parked on
|
|
495
|
+
the gate. One approval per proposal — 409 on the second.
|
|
433
496
|
|
|
434
|
-
POST /api/workflows/proposals/{record_id}/
|
|
497
|
+
POST /api/workflows/proposals/{record_id}/approval/
|
|
435
498
|
|
|
436
499
|
Options:
|
|
437
500
|
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
@@ -479,7 +542,7 @@ Options:
|
|
|
479
542
|
|
|
480
543
|
Machine endpoint: the harness fetches its work order — the rendered
|
|
481
544
|
definition plus the journal state it needs to resume (step states and
|
|
482
|
-
gate
|
|
545
|
+
gate approvals).
|
|
483
546
|
|
|
484
547
|
GET /api/workflows/runs/{run_id}/definition/
|
|
485
548
|
|
|
@@ -515,6 +578,13 @@ dispatches it (or queues it behind the per-project write queue).
|
|
|
515
578
|
|
|
516
579
|
GET /api/workflows/runs/{id}/
|
|
517
580
|
|
|
581
|
+
### current workflows runs tools invoke create <run_id> <tool_name>
|
|
582
|
+
|
|
583
|
+
POST /api/workflows/runs/{run_id}/tools/{tool_name}/invoke/
|
|
584
|
+
|
|
585
|
+
Options:
|
|
586
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
587
|
+
|
|
518
588
|
### current workflows runs transitions create <run_id>
|
|
519
589
|
|
|
520
590
|
Machine endpoint: the harness journals step state changes. Idempotent —
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|