current-cli 0.1.71__tar.gz → 0.1.72__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.72
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:
@@ -11104,6 +11168,20 @@ components:
11104
11168
  - first_name
11105
11169
  - id
11106
11170
  - last_name
11171
+ ValueTypeEnum:
11172
+ enum:
11173
+ - text
11174
+ - decimal
11175
+ - boolean
11176
+ - date
11177
+ - json
11178
+ type: string
11179
+ description: |-
11180
+ * `text` - Text
11181
+ * `decimal` - Decimal
11182
+ * `boolean` - Boolean
11183
+ * `date` - Date
11184
+ * `json` - JSON
11107
11185
  Vendor:
11108
11186
  type: object
11109
11187
  properties:
@@ -11853,6 +11931,12 @@ components:
11853
11931
  preloaded:
11854
11932
  type: boolean
11855
11933
  readOnly: true
11934
+ bindings:
11935
+ type: array
11936
+ items:
11937
+ $ref: '#/components/schemas/WorkspaceModelBinding'
11938
+ rollout_enabled:
11939
+ type: boolean
11856
11940
  required:
11857
11941
  - description
11858
11942
  - id
@@ -11861,6 +11945,140 @@ components:
11861
11945
  - preloaded
11862
11946
  - revision
11863
11947
  - workspace
11948
+ WorkspaceModelBinding:
11949
+ type: object
11950
+ properties:
11951
+ consumer:
11952
+ type: string
11953
+ role:
11954
+ type: string
11955
+ preload:
11956
+ type: boolean
11957
+ required:
11958
+ - consumer
11959
+ - preload
11960
+ - role
11961
+ WorkspaceModelDetail:
11962
+ type: object
11963
+ properties:
11964
+ id:
11965
+ type: string
11966
+ format: uuid
11967
+ readOnly: true
11968
+ workspace:
11969
+ type: string
11970
+ format: uuid
11971
+ readOnly: true
11972
+ key:
11973
+ type: string
11974
+ readOnly: true
11975
+ pattern: ^[-a-zA-Z0-9_]+$
11976
+ label:
11977
+ type: string
11978
+ readOnly: true
11979
+ description:
11980
+ type: string
11981
+ readOnly: true
11982
+ revision:
11983
+ type: string
11984
+ format: uuid
11985
+ readOnly: true
11986
+ preloaded:
11987
+ type: boolean
11988
+ readOnly: true
11989
+ bindings:
11990
+ type: array
11991
+ items:
11992
+ $ref: '#/components/schemas/WorkspaceModelBinding'
11993
+ rollout_enabled:
11994
+ type: boolean
11995
+ fields:
11996
+ type: array
11997
+ items:
11998
+ $ref: '#/components/schemas/WorkspaceModelField'
11999
+ readOnly: true
12000
+ required:
12001
+ - description
12002
+ - fields
12003
+ - id
12004
+ - key
12005
+ - label
12006
+ - preloaded
12007
+ - revision
12008
+ - workspace
12009
+ WorkspaceModelField:
12010
+ type: object
12011
+ properties:
12012
+ key:
12013
+ type: string
12014
+ label:
12015
+ type: string
12016
+ value_type:
12017
+ $ref: '#/components/schemas/ValueTypeEnum'
12018
+ required:
12019
+ type: boolean
12020
+ required:
12021
+ - key
12022
+ - label
12023
+ - required
12024
+ - value_type
12025
+ WorkspaceModelRecord:
12026
+ type: object
12027
+ properties:
12028
+ key:
12029
+ type: string
12030
+ values:
12031
+ type: object
12032
+ additionalProperties: {}
12033
+ required:
12034
+ - key
12035
+ - values
12036
+ WorkspaceModelRecords:
12037
+ type: object
12038
+ properties:
12039
+ model:
12040
+ type: string
12041
+ revision:
12042
+ type: string
12043
+ format: uuid
12044
+ total:
12045
+ type: integer
12046
+ minimum: 0
12047
+ next_offset:
12048
+ type: integer
12049
+ minimum: 0
12050
+ nullable: true
12051
+ records:
12052
+ type: array
12053
+ items:
12054
+ $ref: '#/components/schemas/WorkspaceModelRecord'
12055
+ required:
12056
+ - model
12057
+ - next_offset
12058
+ - records
12059
+ - revision
12060
+ - total
12061
+ WorkspaceModelSnapshot:
12062
+ type: object
12063
+ properties:
12064
+ model:
12065
+ type: string
12066
+ revision:
12067
+ type: string
12068
+ format: uuid
12069
+ fields:
12070
+ type: array
12071
+ items:
12072
+ $ref: '#/components/schemas/WorkspaceModelField'
12073
+ records:
12074
+ type: array
12075
+ items:
12076
+ $ref: '#/components/schemas/WorkspaceModelRecord'
12077
+ required:
12078
+ - fields
12079
+ - model
12080
+ - records
12081
+ - revision
11864
12082
  WorkspaceRef:
11865
12083
  type: object
11866
12084
  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.72"
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