current-cli 0.1.28__tar.gz → 0.1.29__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.28 → current_cli-0.1.29}/PKG-INFO +2 -2
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/schema.yml +308 -45
- {current_cli-0.1.28 → current_cli-0.1.29}/llms.txt +98 -18
- {current_cli-0.1.28 → current_cli-0.1.29}/pyproject.toml +1 -1
- {current_cli-0.1.28 → current_cli-0.1.29}/.gitignore +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/README.md +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/__init__.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/build.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/config.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/docs.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/http.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/main.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/current_cli/schema.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/scripts/bump_version.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/__init__.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/conftest.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/test_auth.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/test_bump_version.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/test_command_tree.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/test_docs.py +0 -0
- {current_cli-0.1.28 → current_cli-0.1.29}/tests/test_requests.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: current-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.29
|
|
4
4
|
Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
|
|
5
5
|
Author-email: Orin <your-email@example.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -63,10 +63,170 @@ paths:
|
|
|
63
63
|
schema:
|
|
64
64
|
$ref: '#/components/schemas/Me'
|
|
65
65
|
description: ''
|
|
66
|
+
/api/accounts/auth/mfa/admin-reset/:
|
|
67
|
+
post:
|
|
68
|
+
operationId: accounts_auth_mfa_admin_reset_create
|
|
69
|
+
description: |-
|
|
70
|
+
Superadmin-only: clear a user's TOTP enrollment so they can enroll a
|
|
71
|
+
new device, for when they've lost their authenticator app. There are no
|
|
72
|
+
recovery codes, so this is the only way back in for such a user.
|
|
73
|
+
tags:
|
|
74
|
+
- accounts
|
|
75
|
+
requestBody:
|
|
76
|
+
content:
|
|
77
|
+
application/json:
|
|
78
|
+
schema:
|
|
79
|
+
$ref: '#/components/schemas/MFAAdminResetRequestRequest'
|
|
80
|
+
application/x-www-form-urlencoded:
|
|
81
|
+
schema:
|
|
82
|
+
$ref: '#/components/schemas/MFAAdminResetRequestRequest'
|
|
83
|
+
multipart/form-data:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: '#/components/schemas/MFAAdminResetRequestRequest'
|
|
86
|
+
required: true
|
|
87
|
+
security:
|
|
88
|
+
- MessagingJobTokenAuth: []
|
|
89
|
+
- tokenAuth: []
|
|
90
|
+
responses:
|
|
91
|
+
'200':
|
|
92
|
+
content:
|
|
93
|
+
application/json:
|
|
94
|
+
schema:
|
|
95
|
+
$ref: '#/components/schemas/DetailResponse'
|
|
96
|
+
description: ''
|
|
97
|
+
/api/accounts/auth/mfa/confirm/:
|
|
98
|
+
post:
|
|
99
|
+
operationId: accounts_auth_mfa_confirm_create
|
|
100
|
+
description: |-
|
|
101
|
+
Confirm enrollment with a code from the authenticator app. Mid-login,
|
|
102
|
+
this also finishes sign-in (a confirmed device is proof of the second
|
|
103
|
+
factor); from Account Settings, it just turns MFA on.
|
|
104
|
+
tags:
|
|
105
|
+
- accounts
|
|
106
|
+
requestBody:
|
|
107
|
+
content:
|
|
108
|
+
application/json:
|
|
109
|
+
schema:
|
|
110
|
+
$ref: '#/components/schemas/MFAConfirmRequestRequest'
|
|
111
|
+
application/x-www-form-urlencoded:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/MFAConfirmRequestRequest'
|
|
114
|
+
multipart/form-data:
|
|
115
|
+
schema:
|
|
116
|
+
$ref: '#/components/schemas/MFAConfirmRequestRequest'
|
|
117
|
+
required: true
|
|
118
|
+
security:
|
|
119
|
+
- MessagingJobTokenAuth: []
|
|
120
|
+
- tokenAuth: []
|
|
121
|
+
- {}
|
|
122
|
+
responses:
|
|
123
|
+
'200':
|
|
124
|
+
content:
|
|
125
|
+
application/json:
|
|
126
|
+
schema:
|
|
127
|
+
$ref: '#/components/schemas/VerifyMagicLinkResponse'
|
|
128
|
+
description: ''
|
|
129
|
+
/api/accounts/auth/mfa/disable/:
|
|
130
|
+
post:
|
|
131
|
+
operationId: accounts_auth_mfa_disable_create
|
|
132
|
+
description: |-
|
|
133
|
+
Turn off TOTP for the current user. Refused when MFA is still
|
|
134
|
+
required for this account (platform superadmin, a workspace admin
|
|
135
|
+
anywhere, or a workspace that requires it of members) — the setting
|
|
136
|
+
would just be silently re-enforced at the next sign-in otherwise.
|
|
137
|
+
tags:
|
|
138
|
+
- accounts
|
|
139
|
+
requestBody:
|
|
140
|
+
content:
|
|
141
|
+
application/json:
|
|
142
|
+
schema:
|
|
143
|
+
$ref: '#/components/schemas/MFADisableRequestRequest'
|
|
144
|
+
application/x-www-form-urlencoded:
|
|
145
|
+
schema:
|
|
146
|
+
$ref: '#/components/schemas/MFADisableRequestRequest'
|
|
147
|
+
multipart/form-data:
|
|
148
|
+
schema:
|
|
149
|
+
$ref: '#/components/schemas/MFADisableRequestRequest'
|
|
150
|
+
required: true
|
|
151
|
+
security:
|
|
152
|
+
- MessagingJobTokenAuth: []
|
|
153
|
+
- tokenAuth: []
|
|
154
|
+
responses:
|
|
155
|
+
'200':
|
|
156
|
+
content:
|
|
157
|
+
application/json:
|
|
158
|
+
schema:
|
|
159
|
+
$ref: '#/components/schemas/DetailResponse'
|
|
160
|
+
description: ''
|
|
161
|
+
/api/accounts/auth/mfa/setup/:
|
|
162
|
+
post:
|
|
163
|
+
operationId: accounts_auth_mfa_setup_create
|
|
164
|
+
description: |-
|
|
165
|
+
Start (or restart) TOTP enrollment: mints a new secret and returns
|
|
166
|
+
the otpauth:// URI for the authenticator app's QR scanner. Callable
|
|
167
|
+
mid-login (with the pending ticket) or from Account Settings (while
|
|
168
|
+
authenticated) — the secret isn't active until ``confirm`` succeeds.
|
|
169
|
+
tags:
|
|
170
|
+
- accounts
|
|
171
|
+
requestBody:
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: '#/components/schemas/MFATicketRequestRequest'
|
|
176
|
+
application/x-www-form-urlencoded:
|
|
177
|
+
schema:
|
|
178
|
+
$ref: '#/components/schemas/MFATicketRequestRequest'
|
|
179
|
+
multipart/form-data:
|
|
180
|
+
schema:
|
|
181
|
+
$ref: '#/components/schemas/MFATicketRequestRequest'
|
|
182
|
+
security:
|
|
183
|
+
- MessagingJobTokenAuth: []
|
|
184
|
+
- tokenAuth: []
|
|
185
|
+
- {}
|
|
186
|
+
responses:
|
|
187
|
+
'200':
|
|
188
|
+
content:
|
|
189
|
+
application/json:
|
|
190
|
+
schema:
|
|
191
|
+
$ref: '#/components/schemas/MFASetupResponse'
|
|
192
|
+
description: ''
|
|
193
|
+
/api/accounts/auth/mfa/verify/:
|
|
194
|
+
post:
|
|
195
|
+
operationId: accounts_auth_mfa_verify_create
|
|
196
|
+
description: |-
|
|
197
|
+
Complete sign-in with a code from an already-enrolled authenticator
|
|
198
|
+
app, exchanging the pending-login ticket for a real auth token.
|
|
199
|
+
tags:
|
|
200
|
+
- accounts
|
|
201
|
+
requestBody:
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
$ref: '#/components/schemas/MFAVerifyRequestRequest'
|
|
206
|
+
application/x-www-form-urlencoded:
|
|
207
|
+
schema:
|
|
208
|
+
$ref: '#/components/schemas/MFAVerifyRequestRequest'
|
|
209
|
+
multipart/form-data:
|
|
210
|
+
schema:
|
|
211
|
+
$ref: '#/components/schemas/MFAVerifyRequestRequest'
|
|
212
|
+
required: true
|
|
213
|
+
security:
|
|
214
|
+
- {}
|
|
215
|
+
responses:
|
|
216
|
+
'200':
|
|
217
|
+
content:
|
|
218
|
+
application/json:
|
|
219
|
+
schema:
|
|
220
|
+
$ref: '#/components/schemas/VerifyMagicLinkResponse'
|
|
221
|
+
description: ''
|
|
66
222
|
/api/accounts/auth/verify/:
|
|
67
223
|
post:
|
|
68
224
|
operationId: accounts_auth_verify_create
|
|
69
|
-
description:
|
|
225
|
+
description: |-
|
|
226
|
+
Exchange a magic-link token for an auth token — or, when the account
|
|
227
|
+
needs a second factor, a short-lived ticket for the MFA challenge/setup
|
|
228
|
+
step instead. A real auth token is never issued before that second
|
|
229
|
+
factor is satisfied.
|
|
70
230
|
tags:
|
|
71
231
|
- accounts
|
|
72
232
|
requestBody:
|
|
@@ -305,11 +465,8 @@ paths:
|
|
|
305
465
|
delete:
|
|
306
466
|
operationId: contacts_contacts_addresses_destroy
|
|
307
467
|
description: |-
|
|
308
|
-
Remove an address.
|
|
309
|
-
|
|
310
|
-
regardless of contact, since verification is what makes an address
|
|
311
|
-
approval-capable — a member must not be able to unilaterally strip
|
|
312
|
-
that off their own directory entry.
|
|
468
|
+
Remove an address. Admin-only regardless of contact type or
|
|
469
|
+
verification state — a member can neither see nor mutate addresses.
|
|
313
470
|
parameters:
|
|
314
471
|
- in: path
|
|
315
472
|
name: address_id
|
|
@@ -1263,8 +1420,10 @@ paths:
|
|
|
1263
1420
|
/api/projects/projects/:
|
|
1264
1421
|
get:
|
|
1265
1422
|
operationId: projects_projects_list
|
|
1266
|
-
description:
|
|
1267
|
-
|
|
1423
|
+
description: |-
|
|
1424
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1425
|
+
project (including its initial field values); editing the fields of an
|
|
1426
|
+
existing project is admin-only.
|
|
1268
1427
|
parameters:
|
|
1269
1428
|
- in: query
|
|
1270
1429
|
name: workspace
|
|
@@ -1287,8 +1446,10 @@ paths:
|
|
|
1287
1446
|
description: ''
|
|
1288
1447
|
post:
|
|
1289
1448
|
operationId: projects_projects_create
|
|
1290
|
-
description:
|
|
1291
|
-
|
|
1449
|
+
description: |-
|
|
1450
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1451
|
+
project (including its initial field values); editing the fields of an
|
|
1452
|
+
existing project is admin-only.
|
|
1292
1453
|
tags:
|
|
1293
1454
|
- projects
|
|
1294
1455
|
requestBody:
|
|
@@ -1316,8 +1477,10 @@ paths:
|
|
|
1316
1477
|
/api/projects/projects/{id}/:
|
|
1317
1478
|
get:
|
|
1318
1479
|
operationId: projects_projects_retrieve
|
|
1319
|
-
description:
|
|
1320
|
-
|
|
1480
|
+
description: |-
|
|
1481
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1482
|
+
project (including its initial field values); editing the fields of an
|
|
1483
|
+
existing project is admin-only.
|
|
1321
1484
|
parameters:
|
|
1322
1485
|
- in: path
|
|
1323
1486
|
name: id
|
|
@@ -1340,8 +1503,10 @@ paths:
|
|
|
1340
1503
|
description: ''
|
|
1341
1504
|
put:
|
|
1342
1505
|
operationId: projects_projects_update
|
|
1343
|
-
description:
|
|
1344
|
-
|
|
1506
|
+
description: |-
|
|
1507
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1508
|
+
project (including its initial field values); editing the fields of an
|
|
1509
|
+
existing project is admin-only.
|
|
1345
1510
|
parameters:
|
|
1346
1511
|
- in: path
|
|
1347
1512
|
name: id
|
|
@@ -1376,8 +1541,10 @@ paths:
|
|
|
1376
1541
|
description: ''
|
|
1377
1542
|
patch:
|
|
1378
1543
|
operationId: projects_projects_partial_update
|
|
1379
|
-
description:
|
|
1380
|
-
|
|
1544
|
+
description: |-
|
|
1545
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1546
|
+
project (including its initial field values); editing the fields of an
|
|
1547
|
+
existing project is admin-only.
|
|
1381
1548
|
parameters:
|
|
1382
1549
|
- in: path
|
|
1383
1550
|
name: id
|
|
@@ -1411,8 +1578,10 @@ paths:
|
|
|
1411
1578
|
description: ''
|
|
1412
1579
|
delete:
|
|
1413
1580
|
operationId: projects_projects_destroy
|
|
1414
|
-
description:
|
|
1415
|
-
|
|
1581
|
+
description: |-
|
|
1582
|
+
Projects across the caller's workspaces. Any member can create a
|
|
1583
|
+
project (including its initial field values); editing the fields of an
|
|
1584
|
+
existing project is admin-only.
|
|
1416
1585
|
parameters:
|
|
1417
1586
|
- in: path
|
|
1418
1587
|
name: id
|
|
@@ -2311,8 +2480,10 @@ paths:
|
|
|
2311
2480
|
/api/workflows/workflows/:
|
|
2312
2481
|
get:
|
|
2313
2482
|
operationId: workflows_workflows_list
|
|
2314
|
-
description:
|
|
2315
|
-
|
|
2483
|
+
description: |-
|
|
2484
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2485
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2486
|
+
delete a binding.
|
|
2316
2487
|
parameters:
|
|
2317
2488
|
- in: query
|
|
2318
2489
|
name: workspace
|
|
@@ -2335,8 +2506,10 @@ paths:
|
|
|
2335
2506
|
description: ''
|
|
2336
2507
|
post:
|
|
2337
2508
|
operationId: workflows_workflows_create
|
|
2338
|
-
description:
|
|
2339
|
-
|
|
2509
|
+
description: |-
|
|
2510
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2511
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2512
|
+
delete a binding.
|
|
2340
2513
|
tags:
|
|
2341
2514
|
- workflows
|
|
2342
2515
|
requestBody:
|
|
@@ -2364,8 +2537,10 @@ paths:
|
|
|
2364
2537
|
/api/workflows/workflows/{id}/:
|
|
2365
2538
|
get:
|
|
2366
2539
|
operationId: workflows_workflows_retrieve
|
|
2367
|
-
description:
|
|
2368
|
-
|
|
2540
|
+
description: |-
|
|
2541
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2542
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2543
|
+
delete a binding.
|
|
2369
2544
|
parameters:
|
|
2370
2545
|
- in: path
|
|
2371
2546
|
name: id
|
|
@@ -2388,8 +2563,10 @@ paths:
|
|
|
2388
2563
|
description: ''
|
|
2389
2564
|
put:
|
|
2390
2565
|
operationId: workflows_workflows_update
|
|
2391
|
-
description:
|
|
2392
|
-
|
|
2566
|
+
description: |-
|
|
2567
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2568
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2569
|
+
delete a binding.
|
|
2393
2570
|
parameters:
|
|
2394
2571
|
- in: path
|
|
2395
2572
|
name: id
|
|
@@ -2424,8 +2601,10 @@ paths:
|
|
|
2424
2601
|
description: ''
|
|
2425
2602
|
patch:
|
|
2426
2603
|
operationId: workflows_workflows_partial_update
|
|
2427
|
-
description:
|
|
2428
|
-
|
|
2604
|
+
description: |-
|
|
2605
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2606
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2607
|
+
delete a binding.
|
|
2429
2608
|
parameters:
|
|
2430
2609
|
- in: path
|
|
2431
2610
|
name: id
|
|
@@ -2459,8 +2638,10 @@ paths:
|
|
|
2459
2638
|
description: ''
|
|
2460
2639
|
delete:
|
|
2461
2640
|
operationId: workflows_workflows_destroy
|
|
2462
|
-
description:
|
|
2463
|
-
|
|
2641
|
+
description: |-
|
|
2642
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
2643
|
+
read; only admins can create, edit (including enable/disable), or
|
|
2644
|
+
delete a binding.
|
|
2464
2645
|
parameters:
|
|
2465
2646
|
- in: path
|
|
2466
2647
|
name: id
|
|
@@ -3103,6 +3284,7 @@ components:
|
|
|
3103
3284
|
type: array
|
|
3104
3285
|
items:
|
|
3105
3286
|
$ref: '#/components/schemas/ContactAddress'
|
|
3287
|
+
nullable: true
|
|
3106
3288
|
readOnly: true
|
|
3107
3289
|
created_at:
|
|
3108
3290
|
type: string
|
|
@@ -3166,18 +3348,6 @@ components:
|
|
|
3166
3348
|
required:
|
|
3167
3349
|
- kind
|
|
3168
3350
|
- value
|
|
3169
|
-
ContactAddressRequest:
|
|
3170
|
-
type: object
|
|
3171
|
-
properties:
|
|
3172
|
-
kind:
|
|
3173
|
-
$ref: '#/components/schemas/KindEnum'
|
|
3174
|
-
value:
|
|
3175
|
-
type: string
|
|
3176
|
-
minLength: 1
|
|
3177
|
-
maxLength: 255
|
|
3178
|
-
required:
|
|
3179
|
-
- kind
|
|
3180
|
-
- value
|
|
3181
3351
|
ContactListResponse:
|
|
3182
3352
|
type: object
|
|
3183
3353
|
description: |-
|
|
@@ -3246,6 +3416,13 @@ components:
|
|
|
3246
3416
|
format: uuid
|
|
3247
3417
|
required:
|
|
3248
3418
|
- workspace
|
|
3419
|
+
DetailResponse:
|
|
3420
|
+
type: object
|
|
3421
|
+
properties:
|
|
3422
|
+
detail:
|
|
3423
|
+
type: string
|
|
3424
|
+
required:
|
|
3425
|
+
- detail
|
|
3249
3426
|
EmojiEnum:
|
|
3250
3427
|
enum:
|
|
3251
3428
|
- eyes
|
|
@@ -3588,6 +3765,67 @@ components:
|
|
|
3588
3765
|
type: string
|
|
3589
3766
|
required:
|
|
3590
3767
|
- detail
|
|
3768
|
+
MFAAdminResetRequestRequest:
|
|
3769
|
+
type: object
|
|
3770
|
+
properties:
|
|
3771
|
+
email:
|
|
3772
|
+
type: string
|
|
3773
|
+
format: email
|
|
3774
|
+
minLength: 1
|
|
3775
|
+
required:
|
|
3776
|
+
- email
|
|
3777
|
+
MFAConfirmRequestRequest:
|
|
3778
|
+
type: object
|
|
3779
|
+
properties:
|
|
3780
|
+
ticket:
|
|
3781
|
+
type: string
|
|
3782
|
+
code:
|
|
3783
|
+
type: string
|
|
3784
|
+
minLength: 1
|
|
3785
|
+
maxLength: 8
|
|
3786
|
+
required:
|
|
3787
|
+
- code
|
|
3788
|
+
MFADisableRequestRequest:
|
|
3789
|
+
type: object
|
|
3790
|
+
properties:
|
|
3791
|
+
code:
|
|
3792
|
+
type: string
|
|
3793
|
+
minLength: 1
|
|
3794
|
+
maxLength: 8
|
|
3795
|
+
required:
|
|
3796
|
+
- code
|
|
3797
|
+
MFASetupResponse:
|
|
3798
|
+
type: object
|
|
3799
|
+
properties:
|
|
3800
|
+
secret:
|
|
3801
|
+
type: string
|
|
3802
|
+
otpauth_url:
|
|
3803
|
+
type: string
|
|
3804
|
+
required:
|
|
3805
|
+
- otpauth_url
|
|
3806
|
+
- secret
|
|
3807
|
+
MFATicketRequestRequest:
|
|
3808
|
+
type: object
|
|
3809
|
+
description: |-
|
|
3810
|
+
A setup/confirm call during login carries the pending ticket instead
|
|
3811
|
+
of an auth token, since issuing a real token before the second factor is
|
|
3812
|
+
verified would defeat the point.
|
|
3813
|
+
properties:
|
|
3814
|
+
ticket:
|
|
3815
|
+
type: string
|
|
3816
|
+
MFAVerifyRequestRequest:
|
|
3817
|
+
type: object
|
|
3818
|
+
properties:
|
|
3819
|
+
ticket:
|
|
3820
|
+
type: string
|
|
3821
|
+
minLength: 1
|
|
3822
|
+
code:
|
|
3823
|
+
type: string
|
|
3824
|
+
minLength: 1
|
|
3825
|
+
maxLength: 8
|
|
3826
|
+
required:
|
|
3827
|
+
- code
|
|
3828
|
+
- ticket
|
|
3591
3829
|
ManifestEntry:
|
|
3592
3830
|
type: object
|
|
3593
3831
|
properties:
|
|
@@ -3635,6 +3873,12 @@ components:
|
|
|
3635
3873
|
is_superadmin:
|
|
3636
3874
|
type: boolean
|
|
3637
3875
|
readOnly: true
|
|
3876
|
+
mfa_enabled:
|
|
3877
|
+
type: boolean
|
|
3878
|
+
readOnly: true
|
|
3879
|
+
mfa_required:
|
|
3880
|
+
type: boolean
|
|
3881
|
+
readOnly: true
|
|
3638
3882
|
required:
|
|
3639
3883
|
- email
|
|
3640
3884
|
- first_name
|
|
@@ -3642,6 +3886,8 @@ components:
|
|
|
3642
3886
|
- is_superadmin
|
|
3643
3887
|
- last_name
|
|
3644
3888
|
- memberships
|
|
3889
|
+
- mfa_enabled
|
|
3890
|
+
- mfa_required
|
|
3645
3891
|
MeMembership:
|
|
3646
3892
|
type: object
|
|
3647
3893
|
description: Inline workspace + role for the /auth/me/ payload.
|
|
@@ -4053,6 +4299,8 @@ components:
|
|
|
4053
4299
|
type: string
|
|
4054
4300
|
minLength: 1
|
|
4055
4301
|
maxLength: 64
|
|
4302
|
+
require_mfa_for_members:
|
|
4303
|
+
type: boolean
|
|
4056
4304
|
Project:
|
|
4057
4305
|
type: object
|
|
4058
4306
|
properties:
|
|
@@ -4894,14 +5142,25 @@ components:
|
|
|
4894
5142
|
- token
|
|
4895
5143
|
VerifyMagicLinkResponse:
|
|
4896
5144
|
type: object
|
|
5145
|
+
description: |-
|
|
5146
|
+
Either a completed sign-in (``token`` + ``user``) or an MFA challenge
|
|
5147
|
+
(``mfa_required`` true, with a ``ticket`` to carry into the next call).
|
|
4897
5148
|
properties:
|
|
5149
|
+
mfa_required:
|
|
5150
|
+
type: boolean
|
|
5151
|
+
mfa_enrolled:
|
|
5152
|
+
type: boolean
|
|
5153
|
+
ticket:
|
|
5154
|
+
type: string
|
|
4898
5155
|
token:
|
|
4899
5156
|
type: string
|
|
5157
|
+
nullable: true
|
|
4900
5158
|
user:
|
|
4901
|
-
|
|
5159
|
+
allOf:
|
|
5160
|
+
- $ref: '#/components/schemas/User'
|
|
5161
|
+
nullable: true
|
|
4902
5162
|
required:
|
|
4903
|
-
-
|
|
4904
|
-
- user
|
|
5163
|
+
- mfa_required
|
|
4905
5164
|
Workflow:
|
|
4906
5165
|
type: object
|
|
4907
5166
|
properties:
|
|
@@ -5259,6 +5518,8 @@ components:
|
|
|
5259
5518
|
timezone:
|
|
5260
5519
|
type: string
|
|
5261
5520
|
maxLength: 64
|
|
5521
|
+
require_mfa_for_members:
|
|
5522
|
+
type: boolean
|
|
5262
5523
|
required:
|
|
5263
5524
|
- created_at
|
|
5264
5525
|
- id
|
|
@@ -5388,6 +5649,8 @@ components:
|
|
|
5388
5649
|
type: string
|
|
5389
5650
|
minLength: 1
|
|
5390
5651
|
maxLength: 64
|
|
5652
|
+
require_mfa_for_members:
|
|
5653
|
+
type: boolean
|
|
5391
5654
|
required:
|
|
5392
5655
|
- name
|
|
5393
5656
|
securitySchemes:
|
|
@@ -52,9 +52,68 @@ Current user with workspace memberships.
|
|
|
52
52
|
|
|
53
53
|
GET /api/accounts/auth/me/
|
|
54
54
|
|
|
55
|
+
### current accounts auth mfa admin-reset create
|
|
56
|
+
|
|
57
|
+
Superadmin-only: clear a user's TOTP enrollment so they can enroll a
|
|
58
|
+
new device, for when they've lost their authenticator app. There are no
|
|
59
|
+
recovery codes, so this is the only way back in for such a user.
|
|
60
|
+
|
|
61
|
+
POST /api/accounts/auth/mfa/admin-reset/
|
|
62
|
+
|
|
63
|
+
Options:
|
|
64
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
65
|
+
|
|
66
|
+
### current accounts auth mfa confirm create
|
|
67
|
+
|
|
68
|
+
Confirm enrollment with a code from the authenticator app. Mid-login,
|
|
69
|
+
this also finishes sign-in (a confirmed device is proof of the second
|
|
70
|
+
factor); from Account Settings, it just turns MFA on.
|
|
71
|
+
|
|
72
|
+
POST /api/accounts/auth/mfa/confirm/
|
|
73
|
+
|
|
74
|
+
Options:
|
|
75
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
76
|
+
|
|
77
|
+
### current accounts auth mfa disable create
|
|
78
|
+
|
|
79
|
+
Turn off TOTP for the current user. Refused when MFA is still
|
|
80
|
+
required for this account (platform superadmin, a workspace admin
|
|
81
|
+
anywhere, or a workspace that requires it of members) — the setting
|
|
82
|
+
would just be silently re-enforced at the next sign-in otherwise.
|
|
83
|
+
|
|
84
|
+
POST /api/accounts/auth/mfa/disable/
|
|
85
|
+
|
|
86
|
+
Options:
|
|
87
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
88
|
+
|
|
89
|
+
### current accounts auth mfa setup create
|
|
90
|
+
|
|
91
|
+
Start (or restart) TOTP enrollment: mints a new secret and returns
|
|
92
|
+
the otpauth:// URI for the authenticator app's QR scanner. Callable
|
|
93
|
+
mid-login (with the pending ticket) or from Account Settings (while
|
|
94
|
+
authenticated) — the secret isn't active until ``confirm`` succeeds.
|
|
95
|
+
|
|
96
|
+
POST /api/accounts/auth/mfa/setup/
|
|
97
|
+
|
|
98
|
+
Options:
|
|
99
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
100
|
+
|
|
101
|
+
### current accounts auth mfa verify create
|
|
102
|
+
|
|
103
|
+
Complete sign-in with a code from an already-enrolled authenticator
|
|
104
|
+
app, exchanging the pending-login ticket for a real auth token.
|
|
105
|
+
|
|
106
|
+
POST /api/accounts/auth/mfa/verify/
|
|
107
|
+
|
|
108
|
+
Options:
|
|
109
|
+
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
110
|
+
|
|
55
111
|
### current accounts auth verify create
|
|
56
112
|
|
|
57
|
-
Exchange a magic-link token for an auth token
|
|
113
|
+
Exchange a magic-link token for an auth token — or, when the account
|
|
114
|
+
needs a second factor, a short-lived ticket for the MFA challenge/setup
|
|
115
|
+
step instead. A real auth token is never issued before that second
|
|
116
|
+
factor is satisfied.
|
|
58
117
|
|
|
59
118
|
POST /api/accounts/auth/verify/
|
|
60
119
|
|
|
@@ -86,11 +145,8 @@ Options:
|
|
|
86
145
|
|
|
87
146
|
### current contacts addresses destroy <id> <address_id>
|
|
88
147
|
|
|
89
|
-
Remove an address.
|
|
90
|
-
|
|
91
|
-
regardless of contact, since verification is what makes an address
|
|
92
|
-
approval-capable — a member must not be able to unilaterally strip
|
|
93
|
-
that off their own directory entry.
|
|
148
|
+
Remove an address. Admin-only regardless of contact type or
|
|
149
|
+
verification state — a member can neither see nor mutate addresses.
|
|
94
150
|
|
|
95
151
|
DELETE /api/contacts/contacts/{id}/addresses/{address_id}/
|
|
96
152
|
|
|
@@ -427,7 +483,9 @@ GET /api/observations/observations/{id}/
|
|
|
427
483
|
|
|
428
484
|
### current projects create
|
|
429
485
|
|
|
430
|
-
Projects across the caller's workspaces. Any member can create
|
|
486
|
+
Projects across the caller's workspaces. Any member can create a
|
|
487
|
+
project (including its initial field values); editing the fields of an
|
|
488
|
+
existing project is admin-only.
|
|
431
489
|
|
|
432
490
|
POST /api/projects/projects/
|
|
433
491
|
|
|
@@ -436,7 +494,9 @@ Options:
|
|
|
436
494
|
|
|
437
495
|
### current projects destroy <id>
|
|
438
496
|
|
|
439
|
-
Projects across the caller's workspaces. Any member can create
|
|
497
|
+
Projects across the caller's workspaces. Any member can create a
|
|
498
|
+
project (including its initial field values); editing the fields of an
|
|
499
|
+
existing project is admin-only.
|
|
440
500
|
|
|
441
501
|
DELETE /api/projects/projects/{id}/
|
|
442
502
|
|
|
@@ -506,7 +566,9 @@ Options:
|
|
|
506
566
|
|
|
507
567
|
### current projects list
|
|
508
568
|
|
|
509
|
-
Projects across the caller's workspaces. Any member can create
|
|
569
|
+
Projects across the caller's workspaces. Any member can create a
|
|
570
|
+
project (including its initial field values); editing the fields of an
|
|
571
|
+
existing project is admin-only.
|
|
510
572
|
|
|
511
573
|
GET /api/projects/projects/
|
|
512
574
|
|
|
@@ -515,7 +577,9 @@ Options:
|
|
|
515
577
|
|
|
516
578
|
### current projects partial-update <id>
|
|
517
579
|
|
|
518
|
-
Projects across the caller's workspaces. Any member can create
|
|
580
|
+
Projects across the caller's workspaces. Any member can create a
|
|
581
|
+
project (including its initial field values); editing the fields of an
|
|
582
|
+
existing project is admin-only.
|
|
519
583
|
|
|
520
584
|
PATCH /api/projects/projects/{id}/
|
|
521
585
|
|
|
@@ -524,7 +588,9 @@ Options:
|
|
|
524
588
|
|
|
525
589
|
### current projects retrieve <id>
|
|
526
590
|
|
|
527
|
-
Projects across the caller's workspaces. Any member can create
|
|
591
|
+
Projects across the caller's workspaces. Any member can create a
|
|
592
|
+
project (including its initial field values); editing the fields of an
|
|
593
|
+
existing project is admin-only.
|
|
528
594
|
|
|
529
595
|
GET /api/projects/projects/{id}/
|
|
530
596
|
|
|
@@ -554,7 +620,9 @@ Options:
|
|
|
554
620
|
|
|
555
621
|
### current projects update <id>
|
|
556
622
|
|
|
557
|
-
Projects across the caller's workspaces. Any member can create
|
|
623
|
+
Projects across the caller's workspaces. Any member can create a
|
|
624
|
+
project (including its initial field values); editing the fields of an
|
|
625
|
+
existing project is admin-only.
|
|
558
626
|
|
|
559
627
|
PUT /api/projects/projects/{id}/
|
|
560
628
|
|
|
@@ -661,7 +729,9 @@ Show the current user and workspace memberships.
|
|
|
661
729
|
|
|
662
730
|
### current workflows create
|
|
663
731
|
|
|
664
|
-
Workflows across the caller's workspaces. Any member can
|
|
732
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
733
|
+
read; only admins can create, edit (including enable/disable), or
|
|
734
|
+
delete a binding.
|
|
665
735
|
|
|
666
736
|
POST /api/workflows/workflows/
|
|
667
737
|
|
|
@@ -702,13 +772,17 @@ GET /api/workflows/definitions/{id}/
|
|
|
702
772
|
|
|
703
773
|
### current workflows destroy <id>
|
|
704
774
|
|
|
705
|
-
Workflows across the caller's workspaces. Any member can
|
|
775
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
776
|
+
read; only admins can create, edit (including enable/disable), or
|
|
777
|
+
delete a binding.
|
|
706
778
|
|
|
707
779
|
DELETE /api/workflows/workflows/{id}/
|
|
708
780
|
|
|
709
781
|
### current workflows list
|
|
710
782
|
|
|
711
|
-
Workflows across the caller's workspaces. Any member can
|
|
783
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
784
|
+
read; only admins can create, edit (including enable/disable), or
|
|
785
|
+
delete a binding.
|
|
712
786
|
|
|
713
787
|
GET /api/workflows/workflows/
|
|
714
788
|
|
|
@@ -717,7 +791,9 @@ Options:
|
|
|
717
791
|
|
|
718
792
|
### current workflows partial-update <id>
|
|
719
793
|
|
|
720
|
-
Workflows across the caller's workspaces. Any member can
|
|
794
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
795
|
+
read; only admins can create, edit (including enable/disable), or
|
|
796
|
+
delete a binding.
|
|
721
797
|
|
|
722
798
|
PATCH /api/workflows/workflows/{id}/
|
|
723
799
|
|
|
@@ -726,7 +802,9 @@ Options:
|
|
|
726
802
|
|
|
727
803
|
### current workflows retrieve <id>
|
|
728
804
|
|
|
729
|
-
Workflows across the caller's workspaces. Any member can
|
|
805
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
806
|
+
read; only admins can create, edit (including enable/disable), or
|
|
807
|
+
delete a binding.
|
|
730
808
|
|
|
731
809
|
GET /api/workflows/workflows/{id}/
|
|
732
810
|
|
|
@@ -827,7 +905,9 @@ POST /api/workflows/runs/{id}/unarchive/
|
|
|
827
905
|
|
|
828
906
|
### current workflows update <id>
|
|
829
907
|
|
|
830
|
-
Workflows across the caller's workspaces. Any member can
|
|
908
|
+
Workflows (actions) across the caller's workspaces. Any member can
|
|
909
|
+
read; only admins can create, edit (including enable/disable), or
|
|
910
|
+
delete a binding.
|
|
831
911
|
|
|
832
912
|
PUT /api/workflows/workflows/{id}/
|
|
833
913
|
|
|
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
|