current-cli 0.1.10__tar.gz → 0.1.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: current-cli
3
- Version: 0.1.10
3
+ Version: 0.1.12
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
@@ -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
- type: array
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
@@ -1616,7 +1665,7 @@ paths:
1616
1665
  content:
1617
1666
  application/json:
1618
1667
  schema:
1619
- $ref: '#/components/schemas/WorkflowRun'
1668
+ $ref: '#/components/schemas/WorkflowRunDetail'
1620
1669
  description: ''
1621
1670
  /api/workflows/runs/{id}/archive/:
1622
1671
  post:
@@ -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:
@@ -3438,6 +3509,47 @@ components:
3438
3509
  - steps_state
3439
3510
  - trigger
3440
3511
  - workspace
3512
+ RunTrigger:
3513
+ type: object
3514
+ description: 'Why a run exists: trigger kind plus the triggering messages.'
3515
+ properties:
3516
+ kind:
3517
+ type: string
3518
+ conversation_key:
3519
+ type: string
3520
+ note:
3521
+ type: string
3522
+ observations:
3523
+ type: array
3524
+ items:
3525
+ $ref: '#/components/schemas/RunTriggerObservation'
3526
+ required:
3527
+ - conversation_key
3528
+ - kind
3529
+ - note
3530
+ - observations
3531
+ RunTriggerObservation:
3532
+ type: object
3533
+ description: One message that triggered a run, from its trigger context.
3534
+ properties:
3535
+ id:
3536
+ type: string
3537
+ format: uuid
3538
+ source:
3539
+ type: string
3540
+ sender:
3541
+ type: string
3542
+ body:
3543
+ type: string
3544
+ occurred_at:
3545
+ type: string
3546
+ format: date-time
3547
+ required:
3548
+ - body
3549
+ - id
3550
+ - occurred_at
3551
+ - sender
3552
+ - source
3441
3553
  SlackChannel:
3442
3554
  type: object
3443
3555
  properties:
@@ -4042,6 +4154,97 @@ components:
4042
4154
  nullable: true
4043
4155
  required:
4044
4156
  - definition
4157
+ WorkflowRunDetail:
4158
+ type: object
4159
+ description: |-
4160
+ Run detail shape: the list shape plus the structured trigger. Only
4161
+ the retrieve route pays the observation lookup; lists and the SSE
4162
+ snapshot stay thin.
4163
+ properties:
4164
+ id:
4165
+ type: string
4166
+ format: uuid
4167
+ readOnly: true
4168
+ workflow:
4169
+ type: string
4170
+ format: uuid
4171
+ readOnly: true
4172
+ nullable: true
4173
+ workflow_name:
4174
+ type: string
4175
+ readOnly: true
4176
+ definition:
4177
+ type: string
4178
+ format: uuid
4179
+ readOnly: true
4180
+ nullable: true
4181
+ project:
4182
+ type: string
4183
+ format: uuid
4184
+ readOnly: true
4185
+ nullable: true
4186
+ status:
4187
+ allOf:
4188
+ - $ref: '#/components/schemas/WorkflowRunStatusEnum'
4189
+ readOnly: true
4190
+ sandbox_id:
4191
+ type: string
4192
+ readOnly: true
4193
+ dispatched_at:
4194
+ type: string
4195
+ format: date-time
4196
+ readOnly: true
4197
+ nullable: true
4198
+ started_at:
4199
+ type: string
4200
+ format: date-time
4201
+ readOnly: true
4202
+ finished_at:
4203
+ type: string
4204
+ format: date-time
4205
+ readOnly: true
4206
+ nullable: true
4207
+ summary:
4208
+ type: string
4209
+ readOnly: true
4210
+ error:
4211
+ type: string
4212
+ readOnly: true
4213
+ archived:
4214
+ type: boolean
4215
+ readOnly: true
4216
+ archived_at:
4217
+ type: string
4218
+ format: date-time
4219
+ readOnly: true
4220
+ nullable: true
4221
+ transitions:
4222
+ type: array
4223
+ items:
4224
+ $ref: '#/components/schemas/StepTransition'
4225
+ readOnly: true
4226
+ trigger:
4227
+ allOf:
4228
+ - $ref: '#/components/schemas/RunTrigger'
4229
+ nullable: true
4230
+ readOnly: true
4231
+ required:
4232
+ - archived
4233
+ - archived_at
4234
+ - definition
4235
+ - dispatched_at
4236
+ - error
4237
+ - finished_at
4238
+ - id
4239
+ - project
4240
+ - sandbox_id
4241
+ - started_at
4242
+ - status
4243
+ - summary
4244
+ - transitions
4245
+ - trigger
4246
+ - workflow
4247
+ - workflow_name
4045
4248
  WorkflowRunStatusEnum:
4046
4249
  enum:
4047
4250
  - queued
@@ -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>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.10"
3
+ version = "0.1.12"
4
4
  description = "Command line interface for the Current API, generated from its OpenAPI schema at runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes