current-cli 0.1.17__tar.gz → 0.1.18__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.17
3
+ Version: 0.1.18
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
@@ -379,8 +379,9 @@ paths:
379
379
  get:
380
380
  operationId: integrations_connections_list
381
381
  description: |-
382
- Workspace OAuth connections. Created only via the OAuth callback;
383
- any member can list, only admins can authorize or disconnect.
382
+ Workspace integration connections. Created via the OAuth callback, or
383
+ via connect-api-user for providers that support credentials; any member
384
+ can list, only admins can connect or disconnect.
384
385
  parameters:
385
386
  - in: query
386
387
  name: workspace
@@ -404,8 +405,9 @@ paths:
404
405
  delete:
405
406
  operationId: integrations_connections_destroy
406
407
  description: |-
407
- Workspace OAuth connections. Created only via the OAuth callback;
408
- any member can list, only admins can authorize or disconnect.
408
+ Workspace integration connections. Created via the OAuth callback, or
409
+ via connect-api-user for providers that support credentials; any member
410
+ can list, only admins can connect or disconnect.
409
411
  parameters:
410
412
  - in: path
411
413
  name: id
@@ -503,6 +505,70 @@ paths:
503
505
  schema:
504
506
  $ref: '#/components/schemas/AuthorizeResponse'
505
507
  description: ''
508
+ /api/integrations/connections/connect-api-user/:
509
+ post:
510
+ operationId: integrations_connections_connect_api_user_create
511
+ description: |-
512
+ Connect Salesforce as an API-only user.
513
+
514
+ These users cannot reach an OAuth consent screen, so there is no
515
+ redirect to hand the browser: the credentials arrive here, and one
516
+ live login proves them before anything is stored.
517
+ tags:
518
+ - integrations
519
+ requestBody:
520
+ content:
521
+ application/json:
522
+ schema:
523
+ $ref: '#/components/schemas/ApiUserConnectRequestRequest'
524
+ application/x-www-form-urlencoded:
525
+ schema:
526
+ $ref: '#/components/schemas/ApiUserConnectRequestRequest'
527
+ multipart/form-data:
528
+ schema:
529
+ $ref: '#/components/schemas/ApiUserConnectRequestRequest'
530
+ required: true
531
+ security:
532
+ - tokenAuth: []
533
+ responses:
534
+ '200':
535
+ content:
536
+ application/json:
537
+ schema:
538
+ $ref: '#/components/schemas/IntegrationConnection'
539
+ description: ''
540
+ /api/integrations/connections/connect-client-credentials/:
541
+ post:
542
+ operationId: integrations_connections_connect_client_credentials_create
543
+ description: |-
544
+ Connect Salesforce with a connected app from the customer's org.
545
+
546
+ A server-to-server grant: the app names a Run As user, so there is no
547
+ consent screen and no user credential. The app is not ours and not
548
+ server-wide, so its client id and secret are stored per workspace.
549
+ tags:
550
+ - integrations
551
+ requestBody:
552
+ content:
553
+ application/json:
554
+ schema:
555
+ $ref: '#/components/schemas/ClientCredentialsConnectRequestRequest'
556
+ application/x-www-form-urlencoded:
557
+ schema:
558
+ $ref: '#/components/schemas/ClientCredentialsConnectRequestRequest'
559
+ multipart/form-data:
560
+ schema:
561
+ $ref: '#/components/schemas/ClientCredentialsConnectRequestRequest'
562
+ required: true
563
+ security:
564
+ - tokenAuth: []
565
+ responses:
566
+ '200':
567
+ content:
568
+ application/json:
569
+ schema:
570
+ $ref: '#/components/schemas/IntegrationConnection'
571
+ description: ''
506
572
  /api/integrations/connections/providers/:
507
573
  get:
508
574
  operationId: integrations_connections_providers_list
@@ -2545,6 +2611,39 @@ components:
2545
2611
  - role
2546
2612
  - workspace_id
2547
2613
  - workspace_name
2614
+ ApiUserConnectRequestRequest:
2615
+ type: object
2616
+ description: |-
2617
+ Credentials for a Salesforce user that holds the API Only User
2618
+ permission. The secrets are write-only: they go into the connection and
2619
+ are never read back out.
2620
+ properties:
2621
+ workspace:
2622
+ type: string
2623
+ format: uuid
2624
+ username:
2625
+ type: string
2626
+ writeOnly: true
2627
+ minLength: 1
2628
+ password:
2629
+ type: string
2630
+ writeOnly: true
2631
+ minLength: 1
2632
+ security_token:
2633
+ type: string
2634
+ writeOnly: true
2635
+ default: ''
2636
+ login_host:
2637
+ oneOf:
2638
+ - type: string
2639
+ format: uri
2640
+ default: ''
2641
+ - type: string
2642
+ maxLength: 0
2643
+ required:
2644
+ - password
2645
+ - username
2646
+ - workspace
2548
2647
  ApprovalDecideRequestRequest:
2549
2648
  type: object
2550
2649
  properties:
@@ -2582,6 +2681,16 @@ components:
2582
2681
  - decision_state
2583
2682
  - proposal
2584
2683
  - workflow
2684
+ AuthModeEnum:
2685
+ enum:
2686
+ - oauth
2687
+ - soap_login
2688
+ - client_credentials
2689
+ type: string
2690
+ description: |-
2691
+ * `oauth` - OAuth
2692
+ * `soap_login` - SOAP login
2693
+ * `client_credentials` - Client credentials
2585
2694
  AuthorizeRequestRequest:
2586
2695
  type: object
2587
2696
  properties:
@@ -2601,6 +2710,32 @@ components:
2601
2710
  format: uri
2602
2711
  required:
2603
2712
  - authorize_url
2713
+ ClientCredentialsConnectRequestRequest:
2714
+ type: object
2715
+ description: |-
2716
+ Credentials for a connected app that lives in the customer's own
2717
+ Salesforce org. The app is per-workspace, so unlike the OAuth flow both
2718
+ halves arrive here rather than coming from this server's settings. The
2719
+ secret is write-only: it goes into the connection and is never read back.
2720
+ properties:
2721
+ workspace:
2722
+ type: string
2723
+ format: uuid
2724
+ login_host:
2725
+ type: string
2726
+ minLength: 1
2727
+ client_id:
2728
+ type: string
2729
+ minLength: 1
2730
+ client_secret:
2731
+ type: string
2732
+ writeOnly: true
2733
+ minLength: 1
2734
+ required:
2735
+ - client_id
2736
+ - client_secret
2737
+ - login_host
2738
+ - workspace
2604
2739
  Contact:
2605
2740
  type: object
2606
2741
  properties:
@@ -2916,7 +3051,8 @@ components:
2916
3051
  type: object
2917
3052
  description: |-
2918
3053
  Read-only view of a connection. Tokens are intentionally absent —
2919
- connections are created only via the OAuth callback.
3054
+ connections are created via the OAuth callback or, for integration users
3055
+ that cannot reach a consent screen, one of the credential endpoints.
2920
3056
  properties:
2921
3057
  id:
2922
3058
  type: string
@@ -2934,6 +3070,10 @@ components:
2934
3070
  allOf:
2935
3071
  - $ref: '#/components/schemas/IntegrationConnectionStatusEnum'
2936
3072
  readOnly: true
3073
+ auth_mode:
3074
+ allOf:
3075
+ - $ref: '#/components/schemas/AuthModeEnum'
3076
+ readOnly: true
2937
3077
  scopes:
2938
3078
  type: string
2939
3079
  readOnly: true
@@ -2951,6 +3091,7 @@ components:
2951
3091
  format: date-time
2952
3092
  readOnly: true
2953
3093
  required:
3094
+ - auth_mode
2954
3095
  - connected_by_email
2955
3096
  - created_at
2956
3097
  - external_account
@@ -3452,10 +3593,16 @@ components:
3452
3593
  type: string
3453
3594
  configured:
3454
3595
  type: boolean
3596
+ supports_api_user:
3597
+ type: boolean
3598
+ supports_client_credentials:
3599
+ type: boolean
3455
3600
  required:
3456
3601
  - configured
3457
3602
  - key
3458
3603
  - label
3604
+ - supports_api_user
3605
+ - supports_client_credentials
3459
3606
  QuickCapture:
3460
3607
  type: object
3461
3608
  description: |-
@@ -173,17 +173,45 @@ List public Slack channels — verifies a Slack connection works.
173
173
 
174
174
  GET /api/integrations/connections/{id}/channels/
175
175
 
176
+ ### current integrations connections connect-api-user create
177
+
178
+ Connect Salesforce as an API-only user.
179
+
180
+ These users cannot reach an OAuth consent screen, so there is no
181
+ redirect to hand the browser: the credentials arrive here, and one
182
+ live login proves them before anything is stored.
183
+
184
+ POST /api/integrations/connections/connect-api-user/
185
+
186
+ Options:
187
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
188
+
189
+ ### current integrations connections connect-client-credentials create
190
+
191
+ Connect Salesforce with a connected app from the customer's org.
192
+
193
+ A server-to-server grant: the app names a Run As user, so there is no
194
+ consent screen and no user credential. The app is not ours and not
195
+ server-wide, so its client id and secret are stored per workspace.
196
+
197
+ POST /api/integrations/connections/connect-client-credentials/
198
+
199
+ Options:
200
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
201
+
176
202
  ### current integrations connections destroy <id>
177
203
 
178
- Workspace OAuth connections. Created only via the OAuth callback;
179
- any member can list, only admins can authorize or disconnect.
204
+ Workspace integration connections. Created via the OAuth callback, or
205
+ via connect-api-user for providers that support credentials; any member
206
+ can list, only admins can connect or disconnect.
180
207
 
181
208
  DELETE /api/integrations/connections/{id}/
182
209
 
183
210
  ### current integrations connections list
184
211
 
185
- Workspace OAuth connections. Created only via the OAuth callback;
186
- any member can list, only admins can authorize or disconnect.
212
+ Workspace integration connections. Created via the OAuth callback, or
213
+ via connect-api-user for providers that support credentials; any member
214
+ can list, only admins can connect or disconnect.
187
215
 
188
216
  GET /api/integrations/connections/
189
217
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.17"
3
+ version = "0.1.18"
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