@shuffl/cli 0.7.31 → 0.7.32

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.
@@ -1581,6 +1581,10 @@ export const commands = [
1581
1581
  const: 'connections_program',
1582
1582
  type: 'string',
1583
1583
  },
1584
+ {
1585
+ const: 'devices_admin',
1586
+ type: 'string',
1587
+ },
1584
1588
  {
1585
1589
  const: 'free_time',
1586
1590
  type: 'string',
@@ -1633,6 +1637,10 @@ export const commands = [
1633
1637
  const: 'my_benefits',
1634
1638
  type: 'string',
1635
1639
  },
1640
+ {
1641
+ const: 'my_laptop',
1642
+ type: 'string',
1643
+ },
1636
1644
  {
1637
1645
  const: 'my_reports',
1638
1646
  type: 'string',
@@ -1802,6 +1810,10 @@ export const commands = [
1802
1810
  const: 'connections_program',
1803
1811
  type: 'string',
1804
1812
  },
1813
+ {
1814
+ const: 'devices_admin',
1815
+ type: 'string',
1816
+ },
1805
1817
  {
1806
1818
  const: 'free_time',
1807
1819
  type: 'string',
@@ -1854,6 +1866,10 @@ export const commands = [
1854
1866
  const: 'my_benefits',
1855
1867
  type: 'string',
1856
1868
  },
1869
+ {
1870
+ const: 'my_laptop',
1871
+ type: 'string',
1872
+ },
1857
1873
  {
1858
1874
  const: 'my_reports',
1859
1875
  type: 'string',
@@ -3772,6 +3788,54 @@ export const commands = [
3772
3788
  const: 'credentials.api.revoke',
3773
3789
  type: 'string',
3774
3790
  },
3791
+ {
3792
+ const: 'devices.catalog',
3793
+ type: 'string',
3794
+ },
3795
+ {
3796
+ const: 'devices.connections',
3797
+ type: 'string',
3798
+ },
3799
+ {
3800
+ const: 'devices.disconnect',
3801
+ type: 'string',
3802
+ },
3803
+ {
3804
+ const: 'devices.forPerson',
3805
+ type: 'string',
3806
+ },
3807
+ {
3808
+ const: 'devices.list',
3809
+ type: 'string',
3810
+ },
3811
+ {
3812
+ const: 'devices.lock',
3813
+ type: 'string',
3814
+ },
3815
+ {
3816
+ const: 'devices.match',
3817
+ type: 'string',
3818
+ },
3819
+ {
3820
+ const: 'devices.mine',
3821
+ type: 'string',
3822
+ },
3823
+ {
3824
+ const: 'devices.order',
3825
+ type: 'string',
3826
+ },
3827
+ {
3828
+ const: 'devices.return',
3829
+ type: 'string',
3830
+ },
3831
+ {
3832
+ const: 'devices.sync',
3833
+ type: 'string',
3834
+ },
3835
+ {
3836
+ const: 'devices.wipe',
3837
+ type: 'string',
3838
+ },
3775
3839
  {
3776
3840
  const: 'digest.actOnNudge',
3777
3841
  type: 'string',
@@ -5402,6 +5466,320 @@ export const commands = [
5402
5466
  scope: 'credentials:write',
5403
5467
  summary: 'Revoke an API key',
5404
5468
  },
5469
+ {
5470
+ access: 'read',
5471
+ command: ['devices', 'catalog'],
5472
+ input: {
5473
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5474
+ additionalProperties: false,
5475
+ properties: {},
5476
+ type: 'object',
5477
+ },
5478
+ path: ['devices', 'catalog'],
5479
+ permission: 'devices.catalog',
5480
+ scope: 'devices:read',
5481
+ summary: 'List the laptops the connected shipping partner can send',
5482
+ },
5483
+ {
5484
+ access: 'read',
5485
+ command: ['devices', 'connections'],
5486
+ input: {
5487
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5488
+ additionalProperties: false,
5489
+ properties: {},
5490
+ type: 'object',
5491
+ },
5492
+ path: ['devices', 'connections'],
5493
+ permission: 'devices.connections',
5494
+ scope: 'devices:read',
5495
+ summary: 'List the connected device management and shipping partner',
5496
+ },
5497
+ {
5498
+ access: 'write',
5499
+ command: ['devices', 'disconnect'],
5500
+ input: {
5501
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5502
+ additionalProperties: false,
5503
+ properties: {
5504
+ confirm: {
5505
+ const: 'devices.disconnect',
5506
+ type: 'string',
5507
+ },
5508
+ connectionId: {
5509
+ type: 'string',
5510
+ },
5511
+ requestKey: {
5512
+ maxLength: 128,
5513
+ minLength: 1,
5514
+ type: 'string',
5515
+ },
5516
+ },
5517
+ required: ['connectionId', 'confirm', 'requestKey'],
5518
+ type: 'object',
5519
+ },
5520
+ path: ['devices', 'disconnect'],
5521
+ permission: 'devices.disconnect',
5522
+ scope: 'devices:write',
5523
+ summary: 'Disconnect device management or the shipping partner; shipments keep their status',
5524
+ },
5525
+ {
5526
+ access: 'read',
5527
+ command: ['devices', 'for-person'],
5528
+ input: {
5529
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5530
+ additionalProperties: false,
5531
+ properties: {
5532
+ personId: {
5533
+ type: 'string',
5534
+ },
5535
+ },
5536
+ required: ['personId'],
5537
+ type: 'object',
5538
+ },
5539
+ path: ['devices', 'forPerson'],
5540
+ permission: 'devices.forPerson',
5541
+ scope: 'devices:read',
5542
+ summary: 'Read one person’s devices, laptop orders and return kits',
5543
+ },
5544
+ {
5545
+ access: 'read',
5546
+ command: ['devices', 'list'],
5547
+ input: {
5548
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5549
+ additionalProperties: false,
5550
+ properties: {
5551
+ issues: {
5552
+ anyOf: [
5553
+ {
5554
+ const: false,
5555
+ type: 'boolean',
5556
+ },
5557
+ {
5558
+ const: true,
5559
+ type: 'boolean',
5560
+ },
5561
+ ],
5562
+ },
5563
+ limit: {
5564
+ type: 'number',
5565
+ },
5566
+ query: {
5567
+ type: 'string',
5568
+ },
5569
+ unmatched: {
5570
+ anyOf: [
5571
+ {
5572
+ const: false,
5573
+ type: 'boolean',
5574
+ },
5575
+ {
5576
+ const: true,
5577
+ type: 'boolean',
5578
+ },
5579
+ ],
5580
+ },
5581
+ },
5582
+ type: 'object',
5583
+ },
5584
+ path: ['devices', 'list'],
5585
+ permission: 'devices.list',
5586
+ scope: 'devices:read',
5587
+ summary: 'List the devices device management reports, what each needs and who has it',
5588
+ },
5589
+ {
5590
+ access: 'write',
5591
+ command: ['devices', 'lock'],
5592
+ input: {
5593
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5594
+ additionalProperties: false,
5595
+ properties: {
5596
+ confirm: {
5597
+ const: 'devices.lock',
5598
+ type: 'string',
5599
+ },
5600
+ deviceId: {
5601
+ type: 'string',
5602
+ },
5603
+ message: {
5604
+ type: 'string',
5605
+ },
5606
+ requestKey: {
5607
+ maxLength: 128,
5608
+ minLength: 1,
5609
+ type: 'string',
5610
+ },
5611
+ },
5612
+ required: ['deviceId', 'requestKey', 'confirm'],
5613
+ type: 'object',
5614
+ },
5615
+ path: ['devices', 'lock'],
5616
+ permission: 'devices.lock',
5617
+ scope: 'devices:write',
5618
+ summary: 'Lock a device through device management',
5619
+ },
5620
+ {
5621
+ access: 'write',
5622
+ command: ['devices', 'match'],
5623
+ input: {
5624
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5625
+ additionalProperties: false,
5626
+ properties: {
5627
+ confirm: {
5628
+ const: 'devices.match',
5629
+ type: 'string',
5630
+ },
5631
+ deviceId: {
5632
+ type: 'string',
5633
+ },
5634
+ personId: {
5635
+ type: ['null', 'string'],
5636
+ },
5637
+ requestKey: {
5638
+ maxLength: 128,
5639
+ minLength: 1,
5640
+ type: 'string',
5641
+ },
5642
+ },
5643
+ required: ['deviceId', 'personId', 'confirm', 'requestKey'],
5644
+ type: 'object',
5645
+ },
5646
+ path: ['devices', 'match'],
5647
+ permission: 'devices.match',
5648
+ scope: 'devices:write',
5649
+ summary: 'Match a device to a person in People, or clear the match',
5650
+ },
5651
+ {
5652
+ access: 'read',
5653
+ command: ['devices', 'mine'],
5654
+ input: {
5655
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5656
+ additionalProperties: false,
5657
+ properties: {},
5658
+ type: 'object',
5659
+ },
5660
+ path: ['devices', 'mine'],
5661
+ permission: 'devices.mine',
5662
+ scope: 'self:read',
5663
+ summary: 'List your own laptops and devices, what each needs, and where your laptop or return kit is',
5664
+ },
5665
+ {
5666
+ access: 'write',
5667
+ command: ['devices', 'order'],
5668
+ input: {
5669
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5670
+ additionalProperties: false,
5671
+ properties: {
5672
+ confirm: {
5673
+ const: 'devices.order',
5674
+ type: 'string',
5675
+ },
5676
+ personId: {
5677
+ type: 'string',
5678
+ },
5679
+ requestKey: {
5680
+ maxLength: 128,
5681
+ minLength: 1,
5682
+ type: 'string',
5683
+ },
5684
+ skuId: {
5685
+ type: 'string',
5686
+ },
5687
+ },
5688
+ required: ['personId', 'requestKey', 'confirm'],
5689
+ type: 'object',
5690
+ },
5691
+ path: ['devices', 'order'],
5692
+ permission: 'devices.order',
5693
+ scope: 'devices:write',
5694
+ summary: 'Order a person’s laptop through the shipping partner',
5695
+ },
5696
+ {
5697
+ access: 'write',
5698
+ command: ['devices', 'return'],
5699
+ input: {
5700
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5701
+ additionalProperties: false,
5702
+ properties: {
5703
+ confirm: {
5704
+ const: 'devices.return',
5705
+ type: 'string',
5706
+ },
5707
+ personId: {
5708
+ type: 'string',
5709
+ },
5710
+ requestKey: {
5711
+ maxLength: 128,
5712
+ minLength: 1,
5713
+ type: 'string',
5714
+ },
5715
+ },
5716
+ required: ['personId', 'requestKey', 'confirm'],
5717
+ type: 'object',
5718
+ },
5719
+ path: ['devices', 'return'],
5720
+ permission: 'devices.return',
5721
+ scope: 'devices:write',
5722
+ summary: 'Send a person a return kit for the laptops device management lists for them',
5723
+ },
5724
+ {
5725
+ access: 'write',
5726
+ command: ['devices', 'sync'],
5727
+ input: {
5728
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5729
+ additionalProperties: false,
5730
+ properties: {
5731
+ confirm: {
5732
+ const: 'devices.sync',
5733
+ type: 'string',
5734
+ },
5735
+ connectionId: {
5736
+ type: 'string',
5737
+ },
5738
+ requestKey: {
5739
+ maxLength: 128,
5740
+ minLength: 1,
5741
+ type: 'string',
5742
+ },
5743
+ },
5744
+ required: ['connectionId', 'confirm', 'requestKey'],
5745
+ type: 'object',
5746
+ },
5747
+ path: ['devices', 'sync'],
5748
+ permission: 'devices.sync',
5749
+ scope: 'devices:write',
5750
+ summary: 'Read the fleet from device management now',
5751
+ },
5752
+ {
5753
+ access: 'write',
5754
+ command: ['devices', 'wipe'],
5755
+ input: {
5756
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5757
+ additionalProperties: false,
5758
+ properties: {
5759
+ confirm: {
5760
+ const: 'devices.wipe',
5761
+ type: 'string',
5762
+ },
5763
+ confirmSerial: {
5764
+ type: 'string',
5765
+ },
5766
+ deviceId: {
5767
+ type: 'string',
5768
+ },
5769
+ requestKey: {
5770
+ maxLength: 128,
5771
+ minLength: 1,
5772
+ type: 'string',
5773
+ },
5774
+ },
5775
+ required: ['confirmSerial', 'deviceId', 'requestKey', 'confirm'],
5776
+ type: 'object',
5777
+ },
5778
+ path: ['devices', 'wipe'],
5779
+ permission: 'devices.wipe',
5780
+ scope: 'devices:write',
5781
+ summary: 'Wipe a device through device management, confirmed with the last four characters of its serial',
5782
+ },
5405
5783
  {
5406
5784
  access: 'write',
5407
5785
  command: ['digest', 'act-on-nudge'],
@@ -12080,6 +12458,34 @@ export const commands = [
12080
12458
  minLength: 1,
12081
12459
  type: 'string',
12082
12460
  },
12461
+ shippingAddress: {
12462
+ additionalProperties: false,
12463
+ properties: {
12464
+ city: {
12465
+ type: 'string',
12466
+ },
12467
+ country: {
12468
+ type: 'string',
12469
+ },
12470
+ line1: {
12471
+ type: 'string',
12472
+ },
12473
+ line2: {
12474
+ type: 'string',
12475
+ },
12476
+ phone: {
12477
+ type: 'string',
12478
+ },
12479
+ postalCode: {
12480
+ type: 'string',
12481
+ },
12482
+ region: {
12483
+ type: 'string',
12484
+ },
12485
+ },
12486
+ required: ['city', 'country', 'line1', 'postalCode'],
12487
+ type: 'object',
12488
+ },
12083
12489
  stepId: {
12084
12490
  type: 'string',
12085
12491
  },
@@ -13042,6 +13448,31 @@ export const commands = [
13042
13448
  },
13043
13449
  ],
13044
13450
  },
13451
+ device: {
13452
+ additionalProperties: false,
13453
+ properties: {
13454
+ model: {
13455
+ type: ['null', 'string'],
13456
+ },
13457
+ operation: {
13458
+ anyOf: [
13459
+ {
13460
+ const: 'order',
13461
+ type: 'string',
13462
+ },
13463
+ {
13464
+ const: 'return',
13465
+ type: 'string',
13466
+ },
13467
+ ],
13468
+ },
13469
+ skuId: {
13470
+ type: ['null', 'string'],
13471
+ },
13472
+ },
13473
+ required: ['operation'],
13474
+ type: 'object',
13475
+ },
13045
13476
  formFields: {
13046
13477
  items: {
13047
13478
  anyOf: [
@@ -13065,6 +13496,10 @@ export const commands = [
13065
13496
  const: 'pronouns',
13066
13497
  type: 'string',
13067
13498
  },
13499
+ {
13500
+ const: 'shippingAddress',
13501
+ type: 'string',
13502
+ },
13068
13503
  ],
13069
13504
  },
13070
13505
  type: 'array',
@@ -13082,6 +13517,10 @@ export const commands = [
13082
13517
  const: 'checkpoint',
13083
13518
  type: 'string',
13084
13519
  },
13520
+ {
13521
+ const: 'device',
13522
+ type: 'string',
13523
+ },
13085
13524
  {
13086
13525
  const: 'form',
13087
13526
  type: 'string',
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@orpc/client": "1.15.3",
4
- "@shuffl/api-contracts": "0.7.31",
5
- "@shuffl/sdk": "0.7.31"
4
+ "@shuffl/api-contracts": "0.7.32",
5
+ "@shuffl/sdk": "0.7.32"
6
6
  },
7
7
  "description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
8
8
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
35
  "types": "./dist/index.d.ts",
36
- "version": "0.7.31",
36
+ "version": "0.7.32",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }