current-cli 0.1.12__tar.gz → 0.1.13__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.13
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
@@ -2736,6 +2759,12 @@ components:
2736
2759
  format: uuid
2737
2760
  written_by_email:
2738
2761
  type: string
2762
+ written_by_name:
2763
+ type: string
2764
+ workflow_name:
2765
+ type: string
2766
+ workflow_id:
2767
+ type: string
2739
2768
  created_at:
2740
2769
  type: string
2741
2770
  format: date-time
@@ -2748,8 +2777,11 @@ components:
2748
2777
  - reason
2749
2778
  - source
2750
2779
  - value
2780
+ - workflow_id
2781
+ - workflow_name
2751
2782
  - write_id
2752
2783
  - written_by_email
2784
+ - written_by_name
2753
2785
  FeedResponse:
2754
2786
  type: object
2755
2787
  properties:
@@ -2802,6 +2834,31 @@ components:
2802
2834
  required:
2803
2835
  - label
2804
2836
  - value
2837
+ FieldProvenance:
2838
+ type: object
2839
+ properties:
2840
+ source:
2841
+ type: string
2842
+ written_by_email:
2843
+ type: string
2844
+ written_by_name:
2845
+ type: string
2846
+ workflow_name:
2847
+ type: string
2848
+ workflow_id:
2849
+ type: string
2850
+ run_id:
2851
+ type: string
2852
+ reason:
2853
+ type: string
2854
+ required:
2855
+ - reason
2856
+ - run_id
2857
+ - source
2858
+ - workflow_id
2859
+ - workflow_name
2860
+ - written_by_email
2861
+ - written_by_name
2805
2862
  IntegrationConnection:
2806
2863
  type: object
2807
2864
  description: |-
@@ -3023,6 +3080,39 @@ components:
3023
3080
  description: |-
3024
3081
  * `pending` - Pending
3025
3082
  * `ingested` - Ingested
3083
+ OptionMigration:
3084
+ type: object
3085
+ properties:
3086
+ from_option_id:
3087
+ type: string
3088
+ format: uuid
3089
+ to_option_id:
3090
+ type: string
3091
+ format: uuid
3092
+ required:
3093
+ - from_option_id
3094
+ - to_option_id
3095
+ OptionMigrationRequest:
3096
+ type: object
3097
+ properties:
3098
+ from_option_id:
3099
+ type: string
3100
+ format: uuid
3101
+ to_option_id:
3102
+ type: string
3103
+ format: uuid
3104
+ required:
3105
+ - from_option_id
3106
+ - to_option_id
3107
+ OptionUsage:
3108
+ type: object
3109
+ properties:
3110
+ counts:
3111
+ type: object
3112
+ additionalProperties:
3113
+ type: integer
3114
+ required:
3115
+ - counts
3026
3116
  PatchedContactRequest:
3027
3117
  type: object
3028
3118
  properties:
@@ -3064,6 +3154,11 @@ components:
3064
3154
  type: array
3065
3155
  items:
3066
3156
  $ref: '#/components/schemas/FieldOptionRequest'
3157
+ option_migrations:
3158
+ type: array
3159
+ items:
3160
+ $ref: '#/components/schemas/OptionMigrationRequest'
3161
+ writeOnly: true
3067
3162
  PatchedProjectRequest:
3068
3163
  type: object
3069
3164
  properties:
@@ -3180,6 +3275,11 @@ components:
3180
3275
  type: string
3181
3276
  format: date-time
3182
3277
  readOnly: true
3278
+ field_provenance:
3279
+ type: object
3280
+ additionalProperties:
3281
+ $ref: '#/components/schemas/FieldProvenance'
3282
+ readOnly: true
3183
3283
  created_at:
3184
3284
  type: string
3185
3285
  format: date-time
@@ -3191,6 +3291,7 @@ components:
3191
3291
  required:
3192
3292
  - created_at
3193
3293
  - field_freshness
3294
+ - field_provenance
3194
3295
  - id
3195
3296
  - updated_at
3196
3297
  - workspace
@@ -3261,6 +3362,11 @@ components:
3261
3362
  type: array
3262
3363
  items:
3263
3364
  $ref: '#/components/schemas/FieldOptionRequest'
3365
+ option_migrations:
3366
+ type: array
3367
+ items:
3368
+ $ref: '#/components/schemas/OptionMigrationRequest'
3369
+ writeOnly: true
3264
3370
  required:
3265
3371
  - data_type
3266
3372
  - 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.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.12"
3
+ version = "0.1.13"
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