current-cli 0.1.12__tar.gz → 0.1.14__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.12
3
+ Version: 0.1.14
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
@@ -768,6 +768,29 @@ paths:
768
768
  responses:
769
769
  '204':
770
770
  description: No response body
771
+ /api/projects/field-definitions/{id}/option_usage/:
772
+ get:
773
+ operationId: projects_field_definitions_option_usage_retrieve
774
+ description: Count projects whose current value uses each option on this field.
775
+ parameters:
776
+ - in: path
777
+ name: id
778
+ schema:
779
+ type: string
780
+ format: uuid
781
+ description: A UUID string identifying this project field definition.
782
+ required: true
783
+ tags:
784
+ - projects
785
+ security:
786
+ - tokenAuth: []
787
+ responses:
788
+ '200':
789
+ content:
790
+ application/json:
791
+ schema:
792
+ $ref: '#/components/schemas/OptionUsage'
793
+ description: ''
771
794
  /api/projects/projects/:
772
795
  get:
773
796
  operationId: projects_projects_list
@@ -1670,7 +1693,10 @@ paths:
1670
1693
  /api/workflows/runs/{id}/archive/:
1671
1694
  post:
1672
1695
  operationId: workflows_runs_archive_create
1673
- description: Hide the run from the default Actions list.
1696
+ description: |-
1697
+ Hide the run from the default Actions list. Only finished (terminal-status)
1698
+ runs may be archived — archiving a run that's still in flight would hide it
1699
+ while dispatch keeps working on it.
1674
1700
  parameters:
1675
1701
  - in: path
1676
1702
  name: id
@@ -2736,6 +2762,12 @@ components:
2736
2762
  format: uuid
2737
2763
  written_by_email:
2738
2764
  type: string
2765
+ written_by_name:
2766
+ type: string
2767
+ workflow_name:
2768
+ type: string
2769
+ workflow_id:
2770
+ type: string
2739
2771
  created_at:
2740
2772
  type: string
2741
2773
  format: date-time
@@ -2748,8 +2780,11 @@ components:
2748
2780
  - reason
2749
2781
  - source
2750
2782
  - value
2783
+ - workflow_id
2784
+ - workflow_name
2751
2785
  - write_id
2752
2786
  - written_by_email
2787
+ - written_by_name
2753
2788
  FeedResponse:
2754
2789
  type: object
2755
2790
  properties:
@@ -2802,6 +2837,31 @@ components:
2802
2837
  required:
2803
2838
  - label
2804
2839
  - value
2840
+ FieldProvenance:
2841
+ type: object
2842
+ properties:
2843
+ source:
2844
+ type: string
2845
+ written_by_email:
2846
+ type: string
2847
+ written_by_name:
2848
+ type: string
2849
+ workflow_name:
2850
+ type: string
2851
+ workflow_id:
2852
+ type: string
2853
+ run_id:
2854
+ type: string
2855
+ reason:
2856
+ type: string
2857
+ required:
2858
+ - reason
2859
+ - run_id
2860
+ - source
2861
+ - workflow_id
2862
+ - workflow_name
2863
+ - written_by_email
2864
+ - written_by_name
2805
2865
  IntegrationConnection:
2806
2866
  type: object
2807
2867
  description: |-
@@ -3023,6 +3083,39 @@ components:
3023
3083
  description: |-
3024
3084
  * `pending` - Pending
3025
3085
  * `ingested` - Ingested
3086
+ OptionMigration:
3087
+ type: object
3088
+ properties:
3089
+ from_option_id:
3090
+ type: string
3091
+ format: uuid
3092
+ to_option_id:
3093
+ type: string
3094
+ format: uuid
3095
+ required:
3096
+ - from_option_id
3097
+ - to_option_id
3098
+ OptionMigrationRequest:
3099
+ type: object
3100
+ properties:
3101
+ from_option_id:
3102
+ type: string
3103
+ format: uuid
3104
+ to_option_id:
3105
+ type: string
3106
+ format: uuid
3107
+ required:
3108
+ - from_option_id
3109
+ - to_option_id
3110
+ OptionUsage:
3111
+ type: object
3112
+ properties:
3113
+ counts:
3114
+ type: object
3115
+ additionalProperties:
3116
+ type: integer
3117
+ required:
3118
+ - counts
3026
3119
  PatchedContactRequest:
3027
3120
  type: object
3028
3121
  properties:
@@ -3064,6 +3157,11 @@ components:
3064
3157
  type: array
3065
3158
  items:
3066
3159
  $ref: '#/components/schemas/FieldOptionRequest'
3160
+ option_migrations:
3161
+ type: array
3162
+ items:
3163
+ $ref: '#/components/schemas/OptionMigrationRequest'
3164
+ writeOnly: true
3067
3165
  PatchedProjectRequest:
3068
3166
  type: object
3069
3167
  properties:
@@ -3180,6 +3278,11 @@ components:
3180
3278
  type: string
3181
3279
  format: date-time
3182
3280
  readOnly: true
3281
+ field_provenance:
3282
+ type: object
3283
+ additionalProperties:
3284
+ $ref: '#/components/schemas/FieldProvenance'
3285
+ readOnly: true
3183
3286
  created_at:
3184
3287
  type: string
3185
3288
  format: date-time
@@ -3191,6 +3294,7 @@ components:
3191
3294
  required:
3192
3295
  - created_at
3193
3296
  - field_freshness
3297
+ - field_provenance
3194
3298
  - id
3195
3299
  - updated_at
3196
3300
  - workspace
@@ -3261,6 +3365,11 @@ components:
3261
3365
  type: array
3262
3366
  items:
3263
3367
  $ref: '#/components/schemas/FieldOptionRequest'
3368
+ option_migrations:
3369
+ type: array
3370
+ items:
3371
+ $ref: '#/components/schemas/OptionMigrationRequest'
3372
+ writeOnly: true
3264
3373
  required:
3265
3374
  - data_type
3266
3375
  - key
@@ -294,6 +294,12 @@ GET /api/projects/field-definitions/
294
294
  Options:
295
295
  - `--workspace` - Filter by workspace UUID
296
296
 
297
+ ### current projects field-definitions option_usage retrieve <id>
298
+
299
+ Count projects whose current value uses each option on this field.
300
+
301
+ GET /api/projects/field-definitions/{id}/option_usage/
302
+
297
303
  ### current projects field-definitions partial-update <id>
298
304
 
299
305
  Workspace-level custom field definitions. Only admins can mutate.
@@ -578,7 +584,9 @@ GET /api/workflows/workflows/{id}/
578
584
 
579
585
  ### current workflows runs archive create <id>
580
586
 
581
- Hide the run from the default Actions list.
587
+ Hide the run from the default Actions list. Only finished (terminal-status)
588
+ runs may be archived — archiving a run that's still in flight would hide it
589
+ while dispatch keeps working on it.
582
590
 
583
591
  POST /api/workflows/runs/{id}/archive/
584
592
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.12"
3
+ version = "0.1.14"
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