current-cli 0.1.48__tar.gz → 0.1.50__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.48
3
+ Version: 0.1.50
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
@@ -3035,6 +3035,156 @@ paths:
3035
3035
  schema:
3036
3036
  $ref: '#/components/schemas/Supplier'
3037
3037
  description: ''
3038
+ /api/supplier-documents/workspaces/{workspace_id}/attachments/{attachment_id}/remove/:
3039
+ post:
3040
+ operationId: supplier_documents_workspaces_attachments_remove_create
3041
+ parameters:
3042
+ - in: path
3043
+ name: attachment_id
3044
+ schema:
3045
+ type: string
3046
+ format: uuid
3047
+ required: true
3048
+ - in: path
3049
+ name: workspace_id
3050
+ schema:
3051
+ type: string
3052
+ format: uuid
3053
+ required: true
3054
+ tags:
3055
+ - supplier-documents
3056
+ requestBody:
3057
+ content:
3058
+ application/json:
3059
+ schema:
3060
+ $ref: '#/components/schemas/RemovalInputRequest'
3061
+ application/x-www-form-urlencoded:
3062
+ schema:
3063
+ $ref: '#/components/schemas/RemovalInputRequest'
3064
+ multipart/form-data:
3065
+ schema:
3066
+ $ref: '#/components/schemas/RemovalInputRequest'
3067
+ required: true
3068
+ security:
3069
+ - MessagingJobTokenAuth: []
3070
+ - tokenAuth: []
3071
+ responses:
3072
+ '200':
3073
+ content:
3074
+ application/json:
3075
+ schema:
3076
+ $ref: '#/components/schemas/AttachmentResult'
3077
+ description: ''
3078
+ /api/supplier-documents/workspaces/{workspace_id}/library/:
3079
+ get:
3080
+ operationId: supplier_documents_workspaces_library_retrieve
3081
+ parameters:
3082
+ - in: query
3083
+ name: limit
3084
+ schema:
3085
+ type: integer
3086
+ - in: query
3087
+ name: offset
3088
+ schema:
3089
+ type: integer
3090
+ - in: query
3091
+ name: project
3092
+ schema:
3093
+ type: string
3094
+ - in: query
3095
+ name: q
3096
+ schema:
3097
+ type: string
3098
+ - in: query
3099
+ name: unassigned
3100
+ schema:
3101
+ type: boolean
3102
+ - in: path
3103
+ name: workspace_id
3104
+ schema:
3105
+ type: string
3106
+ format: uuid
3107
+ required: true
3108
+ tags:
3109
+ - supplier-documents
3110
+ security:
3111
+ - MessagingJobTokenAuth: []
3112
+ - tokenAuth: []
3113
+ responses:
3114
+ '200':
3115
+ content:
3116
+ application/json:
3117
+ schema:
3118
+ $ref: '#/components/schemas/LibraryPage'
3119
+ description: ''
3120
+ /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/:
3121
+ post:
3122
+ operationId: supplier_documents_workspaces_sets_attachments_create
3123
+ parameters:
3124
+ - in: path
3125
+ name: set_id
3126
+ schema:
3127
+ type: string
3128
+ format: uuid
3129
+ required: true
3130
+ - in: path
3131
+ name: workspace_id
3132
+ schema:
3133
+ type: string
3134
+ format: uuid
3135
+ required: true
3136
+ tags:
3137
+ - supplier-documents
3138
+ requestBody:
3139
+ content:
3140
+ application/json:
3141
+ schema:
3142
+ $ref: '#/components/schemas/AttachmentInputRequest'
3143
+ application/x-www-form-urlencoded:
3144
+ schema:
3145
+ $ref: '#/components/schemas/AttachmentInputRequest'
3146
+ multipart/form-data:
3147
+ schema:
3148
+ $ref: '#/components/schemas/AttachmentInputRequest'
3149
+ required: true
3150
+ security:
3151
+ - MessagingJobTokenAuth: []
3152
+ - tokenAuth: []
3153
+ responses:
3154
+ '201':
3155
+ content:
3156
+ application/json:
3157
+ schema:
3158
+ $ref: '#/components/schemas/AttachmentResult'
3159
+ description: ''
3160
+ /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/:
3161
+ get:
3162
+ operationId: supplier_documents_workspaces_sets_review_retrieve
3163
+ parameters:
3164
+ - in: path
3165
+ name: set_id
3166
+ schema:
3167
+ type: string
3168
+ format: uuid
3169
+ required: true
3170
+ - in: path
3171
+ name: workspace_id
3172
+ schema:
3173
+ type: string
3174
+ format: uuid
3175
+ required: true
3176
+ tags:
3177
+ - supplier-documents
3178
+ security:
3179
+ - MessagingJobTokenAuth: []
3180
+ - tokenAuth: []
3181
+ responses:
3182
+ '200':
3183
+ content:
3184
+ application/json:
3185
+ schema:
3186
+ $ref: '#/components/schemas/InvoiceReview'
3187
+ description: ''
3038
3188
  /api/tasks/tasks/:
3039
3189
  get:
3040
3190
  operationId: tasks_tasks_list
@@ -4547,6 +4697,35 @@ components:
4547
4697
  - extraction
4548
4698
  - reason
4549
4699
  - set
4700
+ AttachmentInputRequest:
4701
+ type: object
4702
+ properties:
4703
+ path:
4704
+ type: string
4705
+ minLength: 1
4706
+ maxLength: 1024
4707
+ sha256:
4708
+ type: string
4709
+ minLength: 1
4710
+ pattern: ^[0-9a-f]{64}$
4711
+ reason:
4712
+ type: string
4713
+ minLength: 1
4714
+ maxLength: 2048
4715
+ required:
4716
+ - path
4717
+ - reason
4718
+ - sha256
4719
+ AttachmentResult:
4720
+ type: object
4721
+ properties:
4722
+ id:
4723
+ type: string
4724
+ format: uuid
4725
+ removed:
4726
+ type: boolean
4727
+ required:
4728
+ - id
4550
4729
  AuthModeEnum:
4551
4730
  enum:
4552
4731
  - oauth
@@ -4687,6 +4866,35 @@ components:
4687
4866
  required:
4688
4867
  - summary
4689
4868
  - trigger_config
4869
+ Conflict:
4870
+ type: object
4871
+ properties:
4872
+ field:
4873
+ type: string
4874
+ candidates:
4875
+ type: array
4876
+ items:
4877
+ $ref: '#/components/schemas/ConflictCandidate'
4878
+ required:
4879
+ - candidates
4880
+ - field
4881
+ ConflictCandidate:
4882
+ type: object
4883
+ properties:
4884
+ value: {}
4885
+ document:
4886
+ type: string
4887
+ format: uuid
4888
+ extraction:
4889
+ type: string
4890
+ format: uuid
4891
+ filename:
4892
+ type: string
4893
+ required:
4894
+ - document
4895
+ - extraction
4896
+ - filename
4897
+ - value
4690
4898
  Contact:
4691
4899
  type: object
4692
4900
  properties:
@@ -4859,6 +5067,14 @@ components:
4859
5067
  - reason
4860
5068
  - state
4861
5069
  - version
5070
+ DefaultHomeViewEnum:
5071
+ enum:
5072
+ - activity
5073
+ - documents
5074
+ type: string
5075
+ description: |-
5076
+ * `activity` - Activity
5077
+ * `documents` - Documents
4862
5078
  DefinitionApplyRequest:
4863
5079
  type: object
4864
5080
  description: |-
@@ -5386,6 +5602,45 @@ components:
5386
5602
  - invited_by_email
5387
5603
  - role
5388
5604
  - workspace_name
5605
+ InvoiceReview:
5606
+ type: object
5607
+ properties:
5608
+ workspace:
5609
+ type: string
5610
+ format: uuid
5611
+ set:
5612
+ $ref: '#/components/schemas/Set'
5613
+ version:
5614
+ type: string
5615
+ sources:
5616
+ type: array
5617
+ items:
5618
+ $ref: '#/components/schemas/SourceReview'
5619
+ related_shipments:
5620
+ type: array
5621
+ items:
5622
+ $ref: '#/components/schemas/Set'
5623
+ attachments:
5624
+ type: array
5625
+ items:
5626
+ $ref: '#/components/schemas/SupportingAttachment'
5627
+ proposals:
5628
+ type: array
5629
+ items:
5630
+ $ref: '#/components/schemas/Proposal'
5631
+ conflicts:
5632
+ type: array
5633
+ items:
5634
+ $ref: '#/components/schemas/Conflict'
5635
+ required:
5636
+ - attachments
5637
+ - conflicts
5638
+ - proposals
5639
+ - related_shipments
5640
+ - set
5641
+ - sources
5642
+ - version
5643
+ - workspace
5389
5644
  KindEnum:
5390
5645
  enum:
5391
5646
  - email
@@ -5398,6 +5653,29 @@ components:
5398
5653
  * `slack` - Slack
5399
5654
  * `phone` - Phone
5400
5655
  * `teams` - Teams
5656
+ LibraryPage:
5657
+ type: object
5658
+ properties:
5659
+ count:
5660
+ type: integer
5661
+ next:
5662
+ type: string
5663
+ format: uri
5664
+ nullable: true
5665
+ previous:
5666
+ type: string
5667
+ format: uri
5668
+ nullable: true
5669
+ results:
5670
+ type: array
5671
+ items:
5672
+ type: object
5673
+ additionalProperties: {}
5674
+ required:
5675
+ - count
5676
+ - next
5677
+ - previous
5678
+ - results
5401
5679
  Link:
5402
5680
  type: object
5403
5681
  properties:
@@ -6195,6 +6473,8 @@ components:
6195
6473
  maxLength: 64
6196
6474
  require_mfa_for_members:
6197
6475
  type: boolean
6476
+ default_home_view:
6477
+ $ref: '#/components/schemas/DefaultHomeViewEnum'
6198
6478
  Project:
6199
6479
  type: object
6200
6480
  properties:
@@ -6489,6 +6769,26 @@ components:
6489
6769
  required:
6490
6770
  - path
6491
6771
  - url
6772
+ Proposal:
6773
+ type: object
6774
+ properties:
6775
+ id:
6776
+ type: string
6777
+ format: uuid
6778
+ type:
6779
+ $ref: '#/components/schemas/TypeEnum'
6780
+ version:
6781
+ type: integer
6782
+ label:
6783
+ type: string
6784
+ reason:
6785
+ type: string
6786
+ required:
6787
+ - id
6788
+ - label
6789
+ - reason
6790
+ - type
6791
+ - version
6492
6792
  ProviderInfo:
6493
6793
  type: object
6494
6794
  properties:
@@ -6741,6 +7041,15 @@ components:
6741
7041
  - invoice
6742
7042
  - reason
6743
7043
  - shipment
7044
+ RemovalInputRequest:
7045
+ type: object
7046
+ properties:
7047
+ reason:
7048
+ type: string
7049
+ minLength: 1
7050
+ maxLength: 2048
7051
+ required:
7052
+ - reason
6744
7053
  RequestMagicLinkRequest:
6745
7054
  type: object
6746
7055
  properties:
@@ -6941,15 +7250,48 @@ components:
6941
7250
  type: string
6942
7251
  note:
6943
7252
  type: string
7253
+ files:
7254
+ type: array
7255
+ items:
7256
+ type: string
7257
+ batch:
7258
+ allOf:
7259
+ - $ref: '#/components/schemas/RunTriggerBatch'
7260
+ nullable: true
6944
7261
  observations:
6945
7262
  type: array
6946
7263
  items:
6947
7264
  $ref: '#/components/schemas/RunTriggerObservation'
6948
7265
  required:
7266
+ - batch
6949
7267
  - conversation_key
7268
+ - files
6950
7269
  - kind
6951
7270
  - note
6952
7271
  - observations
7272
+ RunTriggerBatch:
7273
+ type: object
7274
+ description: |-
7275
+ The document batch an email intake staged for a run (see
7276
+ ``workflows.intake``). The staged paths are the trigger's ``files``.
7277
+ properties:
7278
+ id:
7279
+ type: string
7280
+ message_id:
7281
+ type: string
7282
+ subject:
7283
+ type: string
7284
+ skipped:
7285
+ type: array
7286
+ items:
7287
+ type: string
7288
+ from:
7289
+ type: string
7290
+ required:
7291
+ - from
7292
+ - id
7293
+ - message_id
7294
+ - subject
6953
7295
  RunTriggerObservation:
6954
7296
  type: object
6955
7297
  description: One message that triggered a run, from its trigger context.
@@ -7046,6 +7388,29 @@ components:
7046
7388
  * `ui` - UI
7047
7389
  * `agent` - Agent
7048
7390
  * `system` - System
7391
+ SourceReview:
7392
+ type: object
7393
+ properties:
7394
+ document:
7395
+ type: string
7396
+ format: uuid
7397
+ extraction:
7398
+ type: string
7399
+ format: uuid
7400
+ filename:
7401
+ type: string
7402
+ prefix:
7403
+ type: string
7404
+ source_path:
7405
+ type: string
7406
+ record: {}
7407
+ required:
7408
+ - document
7409
+ - extraction
7410
+ - filename
7411
+ - prefix
7412
+ - record
7413
+ - source_path
7049
7414
  StepState:
7050
7415
  type: object
7051
7416
  properties:
@@ -7182,6 +7547,31 @@ components:
7182
7547
  - vendor
7183
7548
  - version
7184
7549
  - workspace
7550
+ SupportingAttachment:
7551
+ type: object
7552
+ properties:
7553
+ id:
7554
+ type: string
7555
+ format: uuid
7556
+ document:
7557
+ type: string
7558
+ format: uuid
7559
+ filename:
7560
+ type: string
7561
+ source_path:
7562
+ type: string
7563
+ reason:
7564
+ type: string
7565
+ set:
7566
+ type: string
7567
+ format: uuid
7568
+ required:
7569
+ - document
7570
+ - filename
7571
+ - id
7572
+ - reason
7573
+ - set
7574
+ - source_path
7185
7575
  Task:
7186
7576
  type: object
7187
7577
  properties:
@@ -7280,6 +7670,14 @@ components:
7280
7670
  * `project_status_changed` - Project status changed
7281
7671
  * `project_field` - Project field
7282
7672
  * `email_received` - Email received
7673
+ TypeEnum:
7674
+ enum:
7675
+ - link
7676
+ - relationship
7677
+ type: string
7678
+ description: |-
7679
+ * `link` - link
7680
+ * `relationship` - relationship
7283
7681
  User:
7284
7682
  type: object
7285
7683
  properties:
@@ -7835,6 +8233,8 @@ components:
7835
8233
  maxLength: 64
7836
8234
  require_mfa_for_members:
7837
8235
  type: boolean
8236
+ default_home_view:
8237
+ $ref: '#/components/schemas/DefaultHomeViewEnum'
7838
8238
  required:
7839
8239
  - created_at
7840
8240
  - id
@@ -7972,6 +8372,8 @@ components:
7972
8372
  maxLength: 64
7973
8373
  require_mfa_for_members:
7974
8374
  type: boolean
8375
+ default_home_view:
8376
+ $ref: '#/components/schemas/DefaultHomeViewEnum'
7975
8377
  required:
7976
8378
  - name
7977
8379
  securitySchemes:
@@ -1052,6 +1052,35 @@ Options:
1052
1052
 
1053
1053
  GET /api/supplier-documents/suppliers/{id}/
1054
1054
 
1055
+ ### current supplier-documents workspaces attachments remove create <workspace_id> <attachment_id>
1056
+
1057
+ POST /api/supplier-documents/workspaces/{workspace_id}/attachments/{attachment_id}/remove/
1058
+
1059
+ Options:
1060
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1061
+
1062
+ ### current supplier-documents workspaces library retrieve <workspace_id>
1063
+
1064
+ GET /api/supplier-documents/workspaces/{workspace_id}/library/
1065
+
1066
+ Options:
1067
+ - `--limit`
1068
+ - `--offset`
1069
+ - `--project`
1070
+ - `--q`
1071
+ - `--unassigned`
1072
+
1073
+ ### current supplier-documents workspaces sets attachments create <workspace_id> <set_id>
1074
+
1075
+ POST /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/
1076
+
1077
+ Options:
1078
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1079
+
1080
+ ### current supplier-documents workspaces sets review retrieve <workspace_id> <set_id>
1081
+
1082
+ GET /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/
1083
+
1055
1084
  ### current tasks create
1056
1085
 
1057
1086
  The caller's personal todos. Incomplete tasks sort before completed ones.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.48"
3
+ version = "0.1.50"
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