current-cli 0.1.71__tar.gz → 0.1.73__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.5
2
2
  Name: current-cli
3
- Version: 0.1.71
3
+ Version: 0.1.73
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
@@ -5606,6 +5606,24 @@ paths:
5606
5606
  get:
5607
5607
  operationId: workspaces_models_list
5608
5608
  description: Discover and read models belonging to the caller's workspace.
5609
+ parameters:
5610
+ - in: query
5611
+ name: interaction
5612
+ schema:
5613
+ type: boolean
5614
+ description: For messaging tokens, restrict discovery to preloaded models.
5615
+ - in: query
5616
+ name: rolled_out
5617
+ schema:
5618
+ type: boolean
5619
+ description: Only models with a binding while rollout is enabled. Always enforced
5620
+ for members.
5621
+ - in: query
5622
+ name: workspace
5623
+ schema:
5624
+ type: string
5625
+ format: uuid
5626
+ description: Filter to one readable workspace.
5609
5627
  tags:
5610
5628
  - workspaces
5611
5629
  security:
@@ -5632,6 +5650,18 @@ paths:
5632
5650
  format: uuid
5633
5651
  description: A UUID string identifying this workspace model.
5634
5652
  required: true
5653
+ - in: query
5654
+ name: rolled_out
5655
+ schema:
5656
+ type: boolean
5657
+ description: Only models with a binding while rollout is enabled. Always enforced
5658
+ for members.
5659
+ - in: query
5660
+ name: workspace
5661
+ schema:
5662
+ type: string
5663
+ format: uuid
5664
+ description: Filter to one readable workspace.
5635
5665
  tags:
5636
5666
  - workspaces
5637
5667
  security:
@@ -5642,7 +5672,7 @@ paths:
5642
5672
  content:
5643
5673
  application/json:
5644
5674
  schema:
5645
- $ref: '#/components/schemas/WorkspaceModel'
5675
+ $ref: '#/components/schemas/WorkspaceModelDetail'
5646
5676
  description: ''
5647
5677
  /api/workspaces/models/{id}/records/:
5648
5678
  get:
@@ -5656,6 +5686,28 @@ paths:
5656
5686
  format: uuid
5657
5687
  description: A UUID string identifying this workspace model.
5658
5688
  required: true
5689
+ - in: query
5690
+ name: key
5691
+ schema:
5692
+ type: string
5693
+ description: Exact record key.
5694
+ - in: query
5695
+ name: offset
5696
+ schema:
5697
+ type: integer
5698
+ description: Record offset. Pages contain at most 100 records.
5699
+ - in: query
5700
+ name: rolled_out
5701
+ schema:
5702
+ type: boolean
5703
+ description: Only models with a binding while rollout is enabled. Always enforced
5704
+ for members.
5705
+ - in: query
5706
+ name: workspace
5707
+ schema:
5708
+ type: string
5709
+ format: uuid
5710
+ description: Filter to one readable workspace.
5659
5711
  tags:
5660
5712
  - workspaces
5661
5713
  security:
@@ -5666,7 +5718,7 @@ paths:
5666
5718
  content:
5667
5719
  application/json:
5668
5720
  schema:
5669
- $ref: '#/components/schemas/WorkspaceModel'
5721
+ $ref: '#/components/schemas/WorkspaceModelRecords'
5670
5722
  description: ''
5671
5723
  /api/workspaces/models/{id}/snapshot/:
5672
5724
  get:
@@ -5680,6 +5732,18 @@ paths:
5680
5732
  format: uuid
5681
5733
  description: A UUID string identifying this workspace model.
5682
5734
  required: true
5735
+ - in: query
5736
+ name: rolled_out
5737
+ schema:
5738
+ type: boolean
5739
+ description: Only models with a binding while rollout is enabled. Always enforced
5740
+ for members.
5741
+ - in: query
5742
+ name: workspace
5743
+ schema:
5744
+ type: string
5745
+ format: uuid
5746
+ description: Filter to one readable workspace.
5683
5747
  tags:
5684
5748
  - workspaces
5685
5749
  security:
@@ -5690,7 +5754,7 @@ paths:
5690
5754
  content:
5691
5755
  application/json:
5692
5756
  schema:
5693
- $ref: '#/components/schemas/WorkspaceModel'
5757
+ $ref: '#/components/schemas/WorkspaceModelSnapshot'
5694
5758
  description: ''
5695
5759
  /api/workspaces/workspaces/:
5696
5760
  get:
@@ -6452,6 +6516,16 @@ components:
6452
6516
  absent — a row that says the review is unreadable is more use than a
6453
6517
  row that quietly disappears.
6454
6518
  properties:
6519
+ schema_version:
6520
+ type: integer
6521
+ integrity_warning_count:
6522
+ type: integer
6523
+ family_counts:
6524
+ type: object
6525
+ additionalProperties:
6526
+ type: object
6527
+ additionalProperties:
6528
+ type: integer
6455
6529
  outcome:
6456
6530
  type: string
6457
6531
  nullable: true
@@ -11104,6 +11178,20 @@ components:
11104
11178
  - first_name
11105
11179
  - id
11106
11180
  - last_name
11181
+ ValueTypeEnum:
11182
+ enum:
11183
+ - text
11184
+ - decimal
11185
+ - boolean
11186
+ - date
11187
+ - json
11188
+ type: string
11189
+ description: |-
11190
+ * `text` - Text
11191
+ * `decimal` - Decimal
11192
+ * `boolean` - Boolean
11193
+ * `date` - Date
11194
+ * `json` - JSON
11107
11195
  Vendor:
11108
11196
  type: object
11109
11197
  properties:
@@ -11853,14 +11941,154 @@ components:
11853
11941
  preloaded:
11854
11942
  type: boolean
11855
11943
  readOnly: true
11944
+ bindings:
11945
+ type: array
11946
+ items:
11947
+ $ref: '#/components/schemas/WorkspaceModelBinding'
11948
+ rollout_enabled:
11949
+ type: boolean
11950
+ required:
11951
+ - description
11952
+ - id
11953
+ - key
11954
+ - label
11955
+ - preloaded
11956
+ - revision
11957
+ - workspace
11958
+ WorkspaceModelBinding:
11959
+ type: object
11960
+ properties:
11961
+ consumer:
11962
+ type: string
11963
+ role:
11964
+ type: string
11965
+ preload:
11966
+ type: boolean
11967
+ required:
11968
+ - consumer
11969
+ - preload
11970
+ - role
11971
+ WorkspaceModelDetail:
11972
+ type: object
11973
+ properties:
11974
+ id:
11975
+ type: string
11976
+ format: uuid
11977
+ readOnly: true
11978
+ workspace:
11979
+ type: string
11980
+ format: uuid
11981
+ readOnly: true
11982
+ key:
11983
+ type: string
11984
+ readOnly: true
11985
+ pattern: ^[-a-zA-Z0-9_]+$
11986
+ label:
11987
+ type: string
11988
+ readOnly: true
11989
+ description:
11990
+ type: string
11991
+ readOnly: true
11992
+ revision:
11993
+ type: string
11994
+ format: uuid
11995
+ readOnly: true
11996
+ preloaded:
11997
+ type: boolean
11998
+ readOnly: true
11999
+ bindings:
12000
+ type: array
12001
+ items:
12002
+ $ref: '#/components/schemas/WorkspaceModelBinding'
12003
+ rollout_enabled:
12004
+ type: boolean
12005
+ fields:
12006
+ type: array
12007
+ items:
12008
+ $ref: '#/components/schemas/WorkspaceModelField'
12009
+ readOnly: true
11856
12010
  required:
11857
12011
  - description
12012
+ - fields
11858
12013
  - id
11859
12014
  - key
11860
12015
  - label
11861
12016
  - preloaded
11862
12017
  - revision
11863
12018
  - workspace
12019
+ WorkspaceModelField:
12020
+ type: object
12021
+ properties:
12022
+ key:
12023
+ type: string
12024
+ label:
12025
+ type: string
12026
+ value_type:
12027
+ $ref: '#/components/schemas/ValueTypeEnum'
12028
+ required:
12029
+ type: boolean
12030
+ required:
12031
+ - key
12032
+ - label
12033
+ - required
12034
+ - value_type
12035
+ WorkspaceModelRecord:
12036
+ type: object
12037
+ properties:
12038
+ key:
12039
+ type: string
12040
+ values:
12041
+ type: object
12042
+ additionalProperties: {}
12043
+ required:
12044
+ - key
12045
+ - values
12046
+ WorkspaceModelRecords:
12047
+ type: object
12048
+ properties:
12049
+ model:
12050
+ type: string
12051
+ revision:
12052
+ type: string
12053
+ format: uuid
12054
+ total:
12055
+ type: integer
12056
+ minimum: 0
12057
+ next_offset:
12058
+ type: integer
12059
+ minimum: 0
12060
+ nullable: true
12061
+ records:
12062
+ type: array
12063
+ items:
12064
+ $ref: '#/components/schemas/WorkspaceModelRecord'
12065
+ required:
12066
+ - model
12067
+ - next_offset
12068
+ - records
12069
+ - revision
12070
+ - total
12071
+ WorkspaceModelSnapshot:
12072
+ type: object
12073
+ properties:
12074
+ model:
12075
+ type: string
12076
+ revision:
12077
+ type: string
12078
+ format: uuid
12079
+ fields:
12080
+ type: array
12081
+ items:
12082
+ $ref: '#/components/schemas/WorkspaceModelField'
12083
+ records:
12084
+ type: array
12085
+ items:
12086
+ $ref: '#/components/schemas/WorkspaceModelRecord'
12087
+ required:
12088
+ - fields
12089
+ - model
12090
+ - records
12091
+ - revision
11864
12092
  WorkspaceRef:
11865
12093
  type: object
11866
12094
  properties:
@@ -1817,24 +1817,43 @@ Discover and read models belonging to the caller's workspace.
1817
1817
 
1818
1818
  GET /api/workspaces/models/
1819
1819
 
1820
+ Options:
1821
+ - `--interaction` - For messaging tokens, restrict discovery to preloaded models.
1822
+ - `--rolled-out` - Only models with a binding while rollout is enabled. Always enforced for members.
1823
+ - `--workspace` - Filter to one readable workspace.
1824
+
1820
1825
  ### current workspaces models records retrieve <id>
1821
1826
 
1822
1827
  Discover and read models belonging to the caller's workspace.
1823
1828
 
1824
1829
  GET /api/workspaces/models/{id}/records/
1825
1830
 
1831
+ Options:
1832
+ - `--key` - Exact record key.
1833
+ - `--offset` - Record offset. Pages contain at most 100 records.
1834
+ - `--rolled-out` - Only models with a binding while rollout is enabled. Always enforced for members.
1835
+ - `--workspace` - Filter to one readable workspace.
1836
+
1826
1837
  ### current workspaces models retrieve <id>
1827
1838
 
1828
1839
  Discover and read models belonging to the caller's workspace.
1829
1840
 
1830
1841
  GET /api/workspaces/models/{id}/
1831
1842
 
1843
+ Options:
1844
+ - `--rolled-out` - Only models with a binding while rollout is enabled. Always enforced for members.
1845
+ - `--workspace` - Filter to one readable workspace.
1846
+
1832
1847
  ### current workspaces models snapshot retrieve <id>
1833
1848
 
1834
1849
  Discover and read models belonging to the caller's workspace.
1835
1850
 
1836
1851
  GET /api/workspaces/models/{id}/snapshot/
1837
1852
 
1853
+ Options:
1854
+ - `--rolled-out` - Only models with a binding while rollout is enabled. Always enforced for members.
1855
+ - `--workspace` - Filter to one readable workspace.
1856
+
1838
1857
  ### current workspaces partial-update <id>
1839
1858
 
1840
1859
  Workspaces the current user belongs to. Creating one makes you its admin.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.71"
3
+ version = "0.1.73"
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