@epilot/cli 0.1.45 → 0.1.47

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.
package/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.45 — CLI for epilot APIs
32
+ epilot v0.1.47 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -103,6 +103,7 @@ APIs
103
103
  query Query API
104
104
  sandbox Sandbox API
105
105
  sharing Sharing API
106
+ snapshot Snapshot API
106
107
  submission Submission API
107
108
  targeting Targeting API
108
109
  template-variables Template Variables API
@@ -359,6 +360,7 @@ Full documentation with sample calls and responses for all APIs:
359
360
  | Query API | `epilot query` | [docs](./docs/query.md) |
360
361
  | Sandbox API | `epilot sandbox` | [docs](./docs/sandbox.md) |
361
362
  | Sharing API | `epilot sharing` | [docs](./docs/sharing.md) |
363
+ | Snapshot API | `epilot snapshot` | [docs](./docs/snapshot.md) |
362
364
  | Submission API | `epilot submission` | [docs](./docs/submission.md) |
363
365
  | Targeting API | `epilot targeting` | [docs](./docs/targeting.md) |
364
366
  | Template Variables API | `epilot template-variables` | [docs](./docs/template-variables.md) |
@@ -70,6 +70,14 @@
70
70
  ]
71
71
  }
72
72
  },
73
+ "portal_preview": {
74
+ "value": {
75
+ "name": "Portal Preview Token for previewing customer portal",
76
+ "token_type": "portal_preview",
77
+ "portal_id": "portal_abc123",
78
+ "portal_user_id": "user_xyz789"
79
+ }
80
+ },
73
81
  "app": {
74
82
  "value": {
75
83
  "name": "App Access Token",
@@ -361,6 +369,63 @@
361
369
  }
362
370
  }
363
371
  },
372
+ "/v1/access-tokens/portal-preview/.well-known/jwks.json": {
373
+ "get": {
374
+ "operationId": "getPortalPreviewTokenJwks",
375
+ "summary": "getPortalPreviewTokenJwks",
376
+ "description": "Get jwks public key set to verify portal preview tokens generated by this API",
377
+ "tags": [
378
+ "Public"
379
+ ],
380
+ "security": [],
381
+ "responses": {
382
+ "200": {
383
+ "description": "Set of jwks",
384
+ "content": {
385
+ "application/json": {
386
+ "schema": {
387
+ "type": "object",
388
+ "properties": {
389
+ "keys": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "object",
393
+ "properties": {
394
+ "alg": {
395
+ "type": "string",
396
+ "example": "RS256"
397
+ },
398
+ "e": {
399
+ "type": "string",
400
+ "example": "AQAB"
401
+ },
402
+ "kid": {
403
+ "type": "string",
404
+ "example": "tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw="
405
+ },
406
+ "kty": {
407
+ "type": "string",
408
+ "example": "RSA"
409
+ },
410
+ "n": {
411
+ "type": "string",
412
+ "example": "h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ"
413
+ },
414
+ "use": {
415
+ "type": "string",
416
+ "example": "sig"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
+ }
426
+ }
427
+ }
428
+ },
364
429
  "/v1/access-tokens/public/.well-known/openid-configuration": {
365
430
  "get": {
366
431
  "operationId": "getPublicTokenOIDC",
@@ -395,6 +460,41 @@
395
460
  }
396
461
  }
397
462
  }
463
+ },
464
+ "/v1/access-tokens/portal-preview/.well-known/openid-configuration": {
465
+ "get": {
466
+ "operationId": "getPortalPreviewTokenOIDC",
467
+ "summary": "getPortalPreviewTokenOIDC",
468
+ "description": "OpenID Connect configuration for Access Token API a a portal preview identity provider\n\nNote: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to\nautomate the process of verifying JWT tokens.\n",
469
+ "tags": [
470
+ "Public"
471
+ ],
472
+ "security": [],
473
+ "responses": {
474
+ "200": {
475
+ "description": "OpenID Configuration",
476
+ "content": {
477
+ "application/json": {
478
+ "schema": {
479
+ "type": "object",
480
+ "properties": {
481
+ "issuer": {
482
+ "type": "string",
483
+ "format": "uri",
484
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview"
485
+ },
486
+ "jwks_uri": {
487
+ "type": "string",
488
+ "format": "uri",
489
+ "example": "https://access-token.sls.epilot.io/v1/access-tokens/portal-preview/.well-known/jwks.json"
490
+ }
491
+ }
492
+ }
493
+ }
494
+ }
495
+ }
496
+ }
497
+ }
398
498
  }
399
499
  },
400
500
  "components": {
@@ -434,7 +534,8 @@
434
534
  "journey",
435
535
  "portal",
436
536
  "assume",
437
- "app"
537
+ "app",
538
+ "portal_preview"
438
539
  ],
439
540
  "description": "Access token type",
440
541
  "example": "api"
@@ -447,6 +548,10 @@
447
548
  "type": "string",
448
549
  "description": "Portal ID for access token type \"portal\""
449
550
  },
551
+ "PortalUserId": {
552
+ "type": "string",
553
+ "description": "Portal User ID for access token type \"portal_preview\""
554
+ },
450
555
  "TokenParameters": {
451
556
  "anyOf": [
452
557
  {
@@ -463,6 +568,9 @@
463
568
  },
464
569
  {
465
570
  "$ref": "#/components/schemas/AppTokenParameters"
571
+ },
572
+ {
573
+ "$ref": "#/components/schemas/PortalPreviewTokenParameters"
466
574
  }
467
575
  ]
468
576
  },
@@ -484,6 +592,11 @@
484
592
  }
485
593
  ]
486
594
  },
595
+ "ReadOnly": {
596
+ "type": "boolean",
597
+ "description": "When true, the issued token may only perform read-only actions. Any action guarded by permissions that is not read-only (i.e. not a view/export/download action) is denied, regardless of the roles the token carries.",
598
+ "example": true
599
+ },
487
600
  "AccessTokenParameters": {
488
601
  "type": "object",
489
602
  "additionalProperties": false,
@@ -502,6 +615,9 @@
502
615
  },
503
616
  "expires_in": {
504
617
  "$ref": "#/components/schemas/ExpiresIn"
618
+ },
619
+ "read_only": {
620
+ "$ref": "#/components/schemas/ReadOnly"
505
621
  }
506
622
  },
507
623
  "required": [
@@ -573,6 +689,9 @@
573
689
  },
574
690
  "assignments": {
575
691
  "$ref": "#/components/schemas/Assignments"
692
+ },
693
+ "read_only": {
694
+ "$ref": "#/components/schemas/ReadOnly"
576
695
  }
577
696
  },
578
697
  "required": [
@@ -597,12 +716,41 @@
597
716
  },
598
717
  "expires_in": {
599
718
  "$ref": "#/components/schemas/ExpiresIn"
719
+ },
720
+ "read_only": {
721
+ "$ref": "#/components/schemas/ReadOnly"
600
722
  }
601
723
  },
602
724
  "required": [
603
725
  "name"
604
726
  ]
605
727
  },
728
+ "PortalPreviewTokenParameters": {
729
+ "type": "object",
730
+ "additionalProperties": false,
731
+ "properties": {
732
+ "name": {
733
+ "$ref": "#/components/schemas/AccessTokenName"
734
+ },
735
+ "token_type": {
736
+ "type": "string",
737
+ "enum": [
738
+ "portal_preview"
739
+ ]
740
+ },
741
+ "portal_id": {
742
+ "$ref": "#/components/schemas/PortalId"
743
+ },
744
+ "portal_user_id": {
745
+ "$ref": "#/components/schemas/PortalUserId"
746
+ }
747
+ },
748
+ "required": [
749
+ "name",
750
+ "portal_id",
751
+ "portal_user_id"
752
+ ]
753
+ },
606
754
  "AccessTokenItem": {
607
755
  "type": "object",
608
756
  "properties": {
@@ -625,9 +773,15 @@
625
773
  "portal_id": {
626
774
  "$ref": "#/components/schemas/PortalId"
627
775
  },
776
+ "portal_user_id": {
777
+ "$ref": "#/components/schemas/PortalUserId"
778
+ },
628
779
  "assignments": {
629
780
  "$ref": "#/components/schemas/Assignments"
630
781
  },
782
+ "read_only": {
783
+ "$ref": "#/components/schemas/ReadOnly"
784
+ },
631
785
  "last_used": {
632
786
  "type": "string",
633
787
  "format": "date",