current-cli 0.1.10__tar.gz → 0.1.11__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.10 → current_cli-0.1.11}/PKG-INFO +1 -1
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/schema.yml +74 -3
- {current_cli-0.1.10 → current_cli-0.1.11}/llms.txt +18 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/pyproject.toml +1 -1
- {current_cli-0.1.10 → current_cli-0.1.11}/.gitignore +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/README.md +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/__init__.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/build.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/config.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/docs.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/http.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/main.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/current_cli/schema.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/scripts/bump_version.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/__init__.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/conftest.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/test_auth.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/test_bump_version.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/test_command_tree.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/test_docs.py +0 -0
- {current_cli-0.1.10 → current_cli-0.1.11}/tests/test_requests.py +0 -0
|
@@ -91,7 +91,28 @@ paths:
|
|
|
91
91
|
/api/contacts/contacts/:
|
|
92
92
|
get:
|
|
93
93
|
operationId: contacts_contacts_list
|
|
94
|
+
description: |-
|
|
95
|
+
Offset/limit page, ordered by name (the model's own
|
|
96
|
+
``Meta.ordering``) so offsets stay stable across pages — a real
|
|
97
|
+
workspace directory can hold far more contacts than fit in one
|
|
98
|
+
response.
|
|
94
99
|
parameters:
|
|
100
|
+
- in: query
|
|
101
|
+
name: limit
|
|
102
|
+
schema:
|
|
103
|
+
type: integer
|
|
104
|
+
description: Max contacts per page (default 25, cap 100)
|
|
105
|
+
- in: query
|
|
106
|
+
name: offset
|
|
107
|
+
schema:
|
|
108
|
+
type: integer
|
|
109
|
+
description: Page offset (default 0)
|
|
110
|
+
- in: query
|
|
111
|
+
name: search
|
|
112
|
+
schema:
|
|
113
|
+
type: string
|
|
114
|
+
description: Case-insensitive match against name, company, role, or any address
|
|
115
|
+
value
|
|
95
116
|
- in: query
|
|
96
117
|
name: workspace
|
|
97
118
|
schema:
|
|
@@ -106,9 +127,7 @@ paths:
|
|
|
106
127
|
content:
|
|
107
128
|
application/json:
|
|
108
129
|
schema:
|
|
109
|
-
|
|
110
|
-
items:
|
|
111
|
-
$ref: '#/components/schemas/Contact'
|
|
130
|
+
$ref: '#/components/schemas/ContactListResponse'
|
|
112
131
|
description: ''
|
|
113
132
|
post:
|
|
114
133
|
operationId: contacts_contacts_create
|
|
@@ -273,6 +292,36 @@ paths:
|
|
|
273
292
|
schema:
|
|
274
293
|
$ref: '#/components/schemas/ContactAddress'
|
|
275
294
|
description: ''
|
|
295
|
+
/api/contacts/contacts/{id}/addresses/{address_id}/:
|
|
296
|
+
delete:
|
|
297
|
+
operationId: contacts_contacts_addresses_destroy
|
|
298
|
+
description: |-
|
|
299
|
+
Remove an address. Editing a member contact is admin-only (same
|
|
300
|
+
as ``add_address``); removing a *verified* address is admin-only
|
|
301
|
+
regardless of contact, since verification is what makes an address
|
|
302
|
+
approval-capable — a member must not be able to unilaterally strip
|
|
303
|
+
that off their own directory entry.
|
|
304
|
+
parameters:
|
|
305
|
+
- in: path
|
|
306
|
+
name: address_id
|
|
307
|
+
schema:
|
|
308
|
+
type: string
|
|
309
|
+
pattern: ^[^/]+$
|
|
310
|
+
required: true
|
|
311
|
+
- in: path
|
|
312
|
+
name: id
|
|
313
|
+
schema:
|
|
314
|
+
type: string
|
|
315
|
+
format: uuid
|
|
316
|
+
description: A UUID string identifying this contact.
|
|
317
|
+
required: true
|
|
318
|
+
tags:
|
|
319
|
+
- contacts
|
|
320
|
+
security:
|
|
321
|
+
- tokenAuth: []
|
|
322
|
+
responses:
|
|
323
|
+
'204':
|
|
324
|
+
description: No response body
|
|
276
325
|
/api/contacts/contacts/{id}/addresses/{address_id}/verify/:
|
|
277
326
|
post:
|
|
278
327
|
operationId: contacts_contacts_addresses_verify_create
|
|
@@ -2595,6 +2644,28 @@ components:
|
|
|
2595
2644
|
required:
|
|
2596
2645
|
- kind
|
|
2597
2646
|
- value
|
|
2647
|
+
ContactListResponse:
|
|
2648
|
+
type: object
|
|
2649
|
+
description: |-
|
|
2650
|
+
Offset/limit envelope for the contacts list: ordered by name (the
|
|
2651
|
+
model's own ``Meta.ordering``), so offsets stay stable across pages.
|
|
2652
|
+
|
|
2653
|
+
``many=False`` above stops drf-spectacular's list-view heuristic from
|
|
2654
|
+
wrapping this envelope in an extra array, since it's a single object.
|
|
2655
|
+
properties:
|
|
2656
|
+
items:
|
|
2657
|
+
type: array
|
|
2658
|
+
items:
|
|
2659
|
+
$ref: '#/components/schemas/Contact'
|
|
2660
|
+
total:
|
|
2661
|
+
type: integer
|
|
2662
|
+
next_offset:
|
|
2663
|
+
type: integer
|
|
2664
|
+
nullable: true
|
|
2665
|
+
required:
|
|
2666
|
+
- items
|
|
2667
|
+
- next_offset
|
|
2668
|
+
- total
|
|
2598
2669
|
ContactRequest:
|
|
2599
2670
|
type: object
|
|
2600
2671
|
properties:
|
|
@@ -84,6 +84,16 @@ POST /api/contacts/contacts/{id}/add_address/
|
|
|
84
84
|
Options:
|
|
85
85
|
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
86
86
|
|
|
87
|
+
### current contacts addresses destroy <id> <address_id>
|
|
88
|
+
|
|
89
|
+
Remove an address. Editing a member contact is admin-only (same
|
|
90
|
+
as ``add_address``); removing a *verified* address is admin-only
|
|
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.
|
|
94
|
+
|
|
95
|
+
DELETE /api/contacts/contacts/{id}/addresses/{address_id}/
|
|
96
|
+
|
|
87
97
|
### current contacts addresses verify create <id> <address_id>
|
|
88
98
|
|
|
89
99
|
Admin-only: mark an address as platform-verified. Verification is
|
|
@@ -104,9 +114,17 @@ DELETE /api/contacts/contacts/{id}/
|
|
|
104
114
|
|
|
105
115
|
### current contacts list
|
|
106
116
|
|
|
117
|
+
Offset/limit page, ordered by name (the model's own
|
|
118
|
+
``Meta.ordering``) so offsets stay stable across pages — a real
|
|
119
|
+
workspace directory can hold far more contacts than fit in one
|
|
120
|
+
response.
|
|
121
|
+
|
|
107
122
|
GET /api/contacts/contacts/
|
|
108
123
|
|
|
109
124
|
Options:
|
|
125
|
+
- `--limit` - Max contacts per page (default 25, cap 100)
|
|
126
|
+
- `--offset` - Page offset (default 0)
|
|
127
|
+
- `--search` - Case-insensitive match against name, company, role, or any address value
|
|
110
128
|
- `--workspace` - Filter by workspace UUID
|
|
111
129
|
|
|
112
130
|
### current contacts partial-update <id>
|
|
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
|