@shuffl/cli 0.7.31 → 0.7.33

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',
@@ -1693,6 +1701,10 @@ export const commands = [
1693
1701
  const: 'pulse_mine',
1694
1702
  type: 'string',
1695
1703
  },
1704
+ {
1705
+ const: 'spend_cards',
1706
+ type: 'string',
1707
+ },
1696
1708
  {
1697
1709
  const: 'spend_limits',
1698
1710
  type: 'string',
@@ -1802,6 +1814,10 @@ export const commands = [
1802
1814
  const: 'connections_program',
1803
1815
  type: 'string',
1804
1816
  },
1817
+ {
1818
+ const: 'devices_admin',
1819
+ type: 'string',
1820
+ },
1805
1821
  {
1806
1822
  const: 'free_time',
1807
1823
  type: 'string',
@@ -1854,6 +1870,10 @@ export const commands = [
1854
1870
  const: 'my_benefits',
1855
1871
  type: 'string',
1856
1872
  },
1873
+ {
1874
+ const: 'my_laptop',
1875
+ type: 'string',
1876
+ },
1857
1877
  {
1858
1878
  const: 'my_reports',
1859
1879
  type: 'string',
@@ -1914,6 +1934,10 @@ export const commands = [
1914
1934
  const: 'pulse_mine',
1915
1935
  type: 'string',
1916
1936
  },
1937
+ {
1938
+ const: 'spend_cards',
1939
+ type: 'string',
1940
+ },
1917
1941
  {
1918
1942
  const: 'spend_limits',
1919
1943
  type: 'string',
@@ -3772,6 +3796,54 @@ export const commands = [
3772
3796
  const: 'credentials.api.revoke',
3773
3797
  type: 'string',
3774
3798
  },
3799
+ {
3800
+ const: 'devices.catalog',
3801
+ type: 'string',
3802
+ },
3803
+ {
3804
+ const: 'devices.connections',
3805
+ type: 'string',
3806
+ },
3807
+ {
3808
+ const: 'devices.disconnect',
3809
+ type: 'string',
3810
+ },
3811
+ {
3812
+ const: 'devices.forPerson',
3813
+ type: 'string',
3814
+ },
3815
+ {
3816
+ const: 'devices.list',
3817
+ type: 'string',
3818
+ },
3819
+ {
3820
+ const: 'devices.lock',
3821
+ type: 'string',
3822
+ },
3823
+ {
3824
+ const: 'devices.match',
3825
+ type: 'string',
3826
+ },
3827
+ {
3828
+ const: 'devices.mine',
3829
+ type: 'string',
3830
+ },
3831
+ {
3832
+ const: 'devices.order',
3833
+ type: 'string',
3834
+ },
3835
+ {
3836
+ const: 'devices.return',
3837
+ type: 'string',
3838
+ },
3839
+ {
3840
+ const: 'devices.sync',
3841
+ type: 'string',
3842
+ },
3843
+ {
3844
+ const: 'devices.wipe',
3845
+ type: 'string',
3846
+ },
3775
3847
  {
3776
3848
  const: 'digest.actOnNudge',
3777
3849
  type: 'string',
@@ -5020,6 +5092,30 @@ export const commands = [
5020
5092
  const: 'runs.stopKnownFailures',
5021
5093
  type: 'string',
5022
5094
  },
5095
+ {
5096
+ const: 'spend.cards.changes',
5097
+ type: 'string',
5098
+ },
5099
+ {
5100
+ const: 'spend.cards.dismissChange',
5101
+ type: 'string',
5102
+ },
5103
+ {
5104
+ const: 'spend.cards.forPerson',
5105
+ type: 'string',
5106
+ },
5107
+ {
5108
+ const: 'spend.cards.issue',
5109
+ type: 'string',
5110
+ },
5111
+ {
5112
+ const: 'spend.cards.lock',
5113
+ type: 'string',
5114
+ },
5115
+ {
5116
+ const: 'spend.cards.updateLimit',
5117
+ type: 'string',
5118
+ },
5023
5119
  {
5024
5120
  const: 'spend.current',
5025
5121
  type: 'string',
@@ -5040,6 +5136,10 @@ export const commands = [
5040
5136
  const: 'spend.programs',
5041
5137
  type: 'string',
5042
5138
  },
5139
+ {
5140
+ const: 'spend.setCardLimits',
5141
+ type: 'string',
5142
+ },
5043
5143
  {
5044
5144
  const: 'spend.setWrites',
5045
5145
  type: 'string',
@@ -5350,42 +5450,356 @@ export const commands = [
5350
5450
  type: 'string',
5351
5451
  },
5352
5452
  },
5353
- required: [
5354
- 'acknowledgeExternalAccess',
5355
- 'name',
5356
- 'permissions',
5357
- 'confirm',
5358
- 'requestKey',
5359
- ],
5453
+ required: [
5454
+ 'acknowledgeExternalAccess',
5455
+ 'name',
5456
+ 'permissions',
5457
+ 'confirm',
5458
+ 'requestKey',
5459
+ ],
5460
+ type: 'object',
5461
+ },
5462
+ path: ['credentials', 'api', 'create'],
5463
+ permission: 'credentials.api.create',
5464
+ scope: 'credentials:write',
5465
+ summary: 'Delegate a subset of this credential with bounded expiry and inherited revocation',
5466
+ },
5467
+ {
5468
+ access: 'read',
5469
+ command: ['credentials', 'api', 'list'],
5470
+ input: {
5471
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5472
+ additionalProperties: false,
5473
+ properties: {},
5474
+ type: 'object',
5475
+ },
5476
+ path: ['credentials', 'api', 'list'],
5477
+ permission: 'credentials.api.list',
5478
+ scope: 'credentials:read',
5479
+ summary: "List the workspace's API keys and what each can do",
5480
+ },
5481
+ {
5482
+ access: 'write',
5483
+ command: ['credentials', 'api', 'revoke'],
5484
+ input: {
5485
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5486
+ additionalProperties: false,
5487
+ properties: {
5488
+ id: {
5489
+ type: 'string',
5490
+ },
5491
+ requestKey: {
5492
+ maxLength: 128,
5493
+ minLength: 1,
5494
+ type: 'string',
5495
+ },
5496
+ },
5497
+ required: ['id', 'requestKey'],
5498
+ type: 'object',
5499
+ },
5500
+ path: ['credentials', 'api', 'revoke'],
5501
+ permission: 'credentials.api.revoke',
5502
+ scope: 'credentials:write',
5503
+ summary: 'Revoke an API key',
5504
+ },
5505
+ {
5506
+ access: 'read',
5507
+ command: ['devices', 'catalog'],
5508
+ input: {
5509
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5510
+ additionalProperties: false,
5511
+ properties: {},
5512
+ type: 'object',
5513
+ },
5514
+ path: ['devices', 'catalog'],
5515
+ permission: 'devices.catalog',
5516
+ scope: 'devices:read',
5517
+ summary: 'List the laptops the connected shipping partner can send',
5518
+ },
5519
+ {
5520
+ access: 'read',
5521
+ command: ['devices', 'connections'],
5522
+ input: {
5523
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5524
+ additionalProperties: false,
5525
+ properties: {},
5526
+ type: 'object',
5527
+ },
5528
+ path: ['devices', 'connections'],
5529
+ permission: 'devices.connections',
5530
+ scope: 'devices:read',
5531
+ summary: 'List the connected device management and shipping partner',
5532
+ },
5533
+ {
5534
+ access: 'write',
5535
+ command: ['devices', 'disconnect'],
5536
+ input: {
5537
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5538
+ additionalProperties: false,
5539
+ properties: {
5540
+ confirm: {
5541
+ const: 'devices.disconnect',
5542
+ type: 'string',
5543
+ },
5544
+ connectionId: {
5545
+ type: 'string',
5546
+ },
5547
+ requestKey: {
5548
+ maxLength: 128,
5549
+ minLength: 1,
5550
+ type: 'string',
5551
+ },
5552
+ },
5553
+ required: ['connectionId', 'confirm', 'requestKey'],
5554
+ type: 'object',
5555
+ },
5556
+ path: ['devices', 'disconnect'],
5557
+ permission: 'devices.disconnect',
5558
+ scope: 'devices:write',
5559
+ summary: 'Disconnect device management or the shipping partner; shipments keep their status',
5560
+ },
5561
+ {
5562
+ access: 'read',
5563
+ command: ['devices', 'for-person'],
5564
+ input: {
5565
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5566
+ additionalProperties: false,
5567
+ properties: {
5568
+ personId: {
5569
+ type: 'string',
5570
+ },
5571
+ },
5572
+ required: ['personId'],
5573
+ type: 'object',
5574
+ },
5575
+ path: ['devices', 'forPerson'],
5576
+ permission: 'devices.forPerson',
5577
+ scope: 'devices:read',
5578
+ summary: 'Read one person’s devices, laptop orders and return kits',
5579
+ },
5580
+ {
5581
+ access: 'read',
5582
+ command: ['devices', 'list'],
5583
+ input: {
5584
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5585
+ additionalProperties: false,
5586
+ properties: {
5587
+ issues: {
5588
+ anyOf: [
5589
+ {
5590
+ const: false,
5591
+ type: 'boolean',
5592
+ },
5593
+ {
5594
+ const: true,
5595
+ type: 'boolean',
5596
+ },
5597
+ ],
5598
+ },
5599
+ limit: {
5600
+ type: 'number',
5601
+ },
5602
+ query: {
5603
+ type: 'string',
5604
+ },
5605
+ unmatched: {
5606
+ anyOf: [
5607
+ {
5608
+ const: false,
5609
+ type: 'boolean',
5610
+ },
5611
+ {
5612
+ const: true,
5613
+ type: 'boolean',
5614
+ },
5615
+ ],
5616
+ },
5617
+ },
5618
+ type: 'object',
5619
+ },
5620
+ path: ['devices', 'list'],
5621
+ permission: 'devices.list',
5622
+ scope: 'devices:read',
5623
+ summary: 'List the devices device management reports, what each needs and who has it',
5624
+ },
5625
+ {
5626
+ access: 'write',
5627
+ command: ['devices', 'lock'],
5628
+ input: {
5629
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5630
+ additionalProperties: false,
5631
+ properties: {
5632
+ confirm: {
5633
+ const: 'devices.lock',
5634
+ type: 'string',
5635
+ },
5636
+ deviceId: {
5637
+ type: 'string',
5638
+ },
5639
+ message: {
5640
+ type: 'string',
5641
+ },
5642
+ requestKey: {
5643
+ maxLength: 128,
5644
+ minLength: 1,
5645
+ type: 'string',
5646
+ },
5647
+ },
5648
+ required: ['deviceId', 'requestKey', 'confirm'],
5649
+ type: 'object',
5650
+ },
5651
+ path: ['devices', 'lock'],
5652
+ permission: 'devices.lock',
5653
+ scope: 'devices:write',
5654
+ summary: 'Lock a device through device management',
5655
+ },
5656
+ {
5657
+ access: 'write',
5658
+ command: ['devices', 'match'],
5659
+ input: {
5660
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5661
+ additionalProperties: false,
5662
+ properties: {
5663
+ confirm: {
5664
+ const: 'devices.match',
5665
+ type: 'string',
5666
+ },
5667
+ deviceId: {
5668
+ type: 'string',
5669
+ },
5670
+ personId: {
5671
+ type: ['null', 'string'],
5672
+ },
5673
+ requestKey: {
5674
+ maxLength: 128,
5675
+ minLength: 1,
5676
+ type: 'string',
5677
+ },
5678
+ },
5679
+ required: ['deviceId', 'personId', 'confirm', 'requestKey'],
5680
+ type: 'object',
5681
+ },
5682
+ path: ['devices', 'match'],
5683
+ permission: 'devices.match',
5684
+ scope: 'devices:write',
5685
+ summary: 'Match a device to a person in People, or clear the match',
5686
+ },
5687
+ {
5688
+ access: 'read',
5689
+ command: ['devices', 'mine'],
5690
+ input: {
5691
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5692
+ additionalProperties: false,
5693
+ properties: {},
5694
+ type: 'object',
5695
+ },
5696
+ path: ['devices', 'mine'],
5697
+ permission: 'devices.mine',
5698
+ scope: 'self:read',
5699
+ summary: 'List your own laptops and devices, what each needs, and where your laptop or return kit is',
5700
+ },
5701
+ {
5702
+ access: 'write',
5703
+ command: ['devices', 'order'],
5704
+ input: {
5705
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5706
+ additionalProperties: false,
5707
+ properties: {
5708
+ confirm: {
5709
+ const: 'devices.order',
5710
+ type: 'string',
5711
+ },
5712
+ personId: {
5713
+ type: 'string',
5714
+ },
5715
+ requestKey: {
5716
+ maxLength: 128,
5717
+ minLength: 1,
5718
+ type: 'string',
5719
+ },
5720
+ skuId: {
5721
+ type: 'string',
5722
+ },
5723
+ },
5724
+ required: ['personId', 'requestKey', 'confirm'],
5725
+ type: 'object',
5726
+ },
5727
+ path: ['devices', 'order'],
5728
+ permission: 'devices.order',
5729
+ scope: 'devices:write',
5730
+ summary: 'Order a person’s laptop through the shipping partner',
5731
+ },
5732
+ {
5733
+ access: 'write',
5734
+ command: ['devices', 'return'],
5735
+ input: {
5736
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
5737
+ additionalProperties: false,
5738
+ properties: {
5739
+ confirm: {
5740
+ const: 'devices.return',
5741
+ type: 'string',
5742
+ },
5743
+ personId: {
5744
+ type: 'string',
5745
+ },
5746
+ requestKey: {
5747
+ maxLength: 128,
5748
+ minLength: 1,
5749
+ type: 'string',
5750
+ },
5751
+ },
5752
+ required: ['personId', 'requestKey', 'confirm'],
5360
5753
  type: 'object',
5361
5754
  },
5362
- path: ['credentials', 'api', 'create'],
5363
- permission: 'credentials.api.create',
5364
- scope: 'credentials:write',
5365
- summary: 'Delegate a subset of this credential with bounded expiry and inherited revocation',
5755
+ path: ['devices', 'return'],
5756
+ permission: 'devices.return',
5757
+ scope: 'devices:write',
5758
+ summary: 'Send a person a return kit for the laptops device management lists for them',
5366
5759
  },
5367
5760
  {
5368
- access: 'read',
5369
- command: ['credentials', 'api', 'list'],
5761
+ access: 'write',
5762
+ command: ['devices', 'sync'],
5370
5763
  input: {
5371
5764
  $schema: 'https://json-schema.org/draft/2020-12/schema',
5372
5765
  additionalProperties: false,
5373
- properties: {},
5766
+ properties: {
5767
+ confirm: {
5768
+ const: 'devices.sync',
5769
+ type: 'string',
5770
+ },
5771
+ connectionId: {
5772
+ type: 'string',
5773
+ },
5774
+ requestKey: {
5775
+ maxLength: 128,
5776
+ minLength: 1,
5777
+ type: 'string',
5778
+ },
5779
+ },
5780
+ required: ['connectionId', 'confirm', 'requestKey'],
5374
5781
  type: 'object',
5375
5782
  },
5376
- path: ['credentials', 'api', 'list'],
5377
- permission: 'credentials.api.list',
5378
- scope: 'credentials:read',
5379
- summary: "List the workspace's API keys and what each can do",
5783
+ path: ['devices', 'sync'],
5784
+ permission: 'devices.sync',
5785
+ scope: 'devices:write',
5786
+ summary: 'Read the fleet from device management now',
5380
5787
  },
5381
5788
  {
5382
5789
  access: 'write',
5383
- command: ['credentials', 'api', 'revoke'],
5790
+ command: ['devices', 'wipe'],
5384
5791
  input: {
5385
5792
  $schema: 'https://json-schema.org/draft/2020-12/schema',
5386
5793
  additionalProperties: false,
5387
5794
  properties: {
5388
- id: {
5795
+ confirm: {
5796
+ const: 'devices.wipe',
5797
+ type: 'string',
5798
+ },
5799
+ confirmSerial: {
5800
+ type: 'string',
5801
+ },
5802
+ deviceId: {
5389
5803
  type: 'string',
5390
5804
  },
5391
5805
  requestKey: {
@@ -5394,13 +5808,13 @@ export const commands = [
5394
5808
  type: 'string',
5395
5809
  },
5396
5810
  },
5397
- required: ['id', 'requestKey'],
5811
+ required: ['confirmSerial', 'deviceId', 'requestKey', 'confirm'],
5398
5812
  type: 'object',
5399
5813
  },
5400
- path: ['credentials', 'api', 'revoke'],
5401
- permission: 'credentials.api.revoke',
5402
- scope: 'credentials:write',
5403
- summary: 'Revoke an API key',
5814
+ path: ['devices', 'wipe'],
5815
+ permission: 'devices.wipe',
5816
+ scope: 'devices:write',
5817
+ summary: 'Wipe a device through device management, confirmed with the last four characters of its serial',
5404
5818
  },
5405
5819
  {
5406
5820
  access: 'write',
@@ -12080,6 +12494,34 @@ export const commands = [
12080
12494
  minLength: 1,
12081
12495
  type: 'string',
12082
12496
  },
12497
+ shippingAddress: {
12498
+ additionalProperties: false,
12499
+ properties: {
12500
+ city: {
12501
+ type: 'string',
12502
+ },
12503
+ country: {
12504
+ type: 'string',
12505
+ },
12506
+ line1: {
12507
+ type: 'string',
12508
+ },
12509
+ line2: {
12510
+ type: 'string',
12511
+ },
12512
+ phone: {
12513
+ type: 'string',
12514
+ },
12515
+ postalCode: {
12516
+ type: 'string',
12517
+ },
12518
+ region: {
12519
+ type: 'string',
12520
+ },
12521
+ },
12522
+ required: ['city', 'country', 'line1', 'postalCode'],
12523
+ type: 'object',
12524
+ },
12083
12525
  stepId: {
12084
12526
  type: 'string',
12085
12527
  },
@@ -13042,6 +13484,31 @@ export const commands = [
13042
13484
  },
13043
13485
  ],
13044
13486
  },
13487
+ device: {
13488
+ additionalProperties: false,
13489
+ properties: {
13490
+ model: {
13491
+ type: ['null', 'string'],
13492
+ },
13493
+ operation: {
13494
+ anyOf: [
13495
+ {
13496
+ const: 'order',
13497
+ type: 'string',
13498
+ },
13499
+ {
13500
+ const: 'return',
13501
+ type: 'string',
13502
+ },
13503
+ ],
13504
+ },
13505
+ skuId: {
13506
+ type: ['null', 'string'],
13507
+ },
13508
+ },
13509
+ required: ['operation'],
13510
+ type: 'object',
13511
+ },
13045
13512
  formFields: {
13046
13513
  items: {
13047
13514
  anyOf: [
@@ -13065,6 +13532,10 @@ export const commands = [
13065
13532
  const: 'pronouns',
13066
13533
  type: 'string',
13067
13534
  },
13535
+ {
13536
+ const: 'shippingAddress',
13537
+ type: 'string',
13538
+ },
13068
13539
  ],
13069
13540
  },
13070
13541
  type: 'array',
@@ -13082,6 +13553,10 @@ export const commands = [
13082
13553
  const: 'checkpoint',
13083
13554
  type: 'string',
13084
13555
  },
13556
+ {
13557
+ const: 'device',
13558
+ type: 'string',
13559
+ },
13085
13560
  {
13086
13561
  const: 'form',
13087
13562
  type: 'string',
@@ -17860,6 +18335,163 @@ export const commands = [
17860
18335
  scope: 'runs:write',
17861
18336
  summary: 'Queue introductions using a preview and idempotent request key',
17862
18337
  },
18338
+ {
18339
+ access: 'read',
18340
+ command: ['spend', 'cards', 'changes'],
18341
+ input: {
18342
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18343
+ additionalProperties: false,
18344
+ properties: {},
18345
+ type: 'object',
18346
+ },
18347
+ path: ['spend', 'cards', 'changes'],
18348
+ permission: 'spend.cards.changes',
18349
+ scope: 'integrations:read',
18350
+ summary: 'List card changes waiting for HR after someone moved in People',
18351
+ },
18352
+ {
18353
+ access: 'write',
18354
+ command: ['spend', 'cards', 'dismiss-change'],
18355
+ input: {
18356
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18357
+ additionalProperties: false,
18358
+ properties: {
18359
+ actionId: {
18360
+ type: 'string',
18361
+ },
18362
+ confirm: {
18363
+ const: 'spend.cards.dismissChange',
18364
+ type: 'string',
18365
+ },
18366
+ requestKey: {
18367
+ maxLength: 128,
18368
+ minLength: 1,
18369
+ type: 'string',
18370
+ },
18371
+ },
18372
+ required: ['actionId', 'confirm', 'requestKey'],
18373
+ type: 'object',
18374
+ },
18375
+ path: ['spend', 'cards', 'dismissChange'],
18376
+ permission: 'spend.cards.dismissChange',
18377
+ scope: 'integrations:write',
18378
+ summary: 'Dismiss a card change waiting after a move; nothing changes in the spend platform',
18379
+ },
18380
+ {
18381
+ access: 'read',
18382
+ command: ['spend', 'cards', 'for-person'],
18383
+ input: {
18384
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18385
+ additionalProperties: false,
18386
+ properties: {
18387
+ personId: {
18388
+ type: 'string',
18389
+ },
18390
+ },
18391
+ required: ['personId'],
18392
+ type: 'object',
18393
+ },
18394
+ path: ['spend', 'cards', 'forPerson'],
18395
+ permission: 'spend.cards.forPerson',
18396
+ scope: 'integrations:read',
18397
+ summary: 'Read one person’s company cards, the limit their groups map to and what Shuffl changed',
18398
+ },
18399
+ {
18400
+ access: 'write',
18401
+ command: ['spend', 'cards', 'issue'],
18402
+ input: {
18403
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18404
+ additionalProperties: false,
18405
+ properties: {
18406
+ cardLimit: {
18407
+ type: 'number',
18408
+ },
18409
+ confirm: {
18410
+ const: 'spend.cards.issue',
18411
+ type: 'string',
18412
+ },
18413
+ personId: {
18414
+ type: 'string',
18415
+ },
18416
+ requestKey: {
18417
+ maxLength: 128,
18418
+ minLength: 1,
18419
+ type: 'string',
18420
+ },
18421
+ },
18422
+ required: ['personId', 'requestKey', 'confirm'],
18423
+ type: 'object',
18424
+ },
18425
+ path: ['spend', 'cards', 'issue'],
18426
+ permission: 'spend.cards.issue',
18427
+ scope: 'integrations:write',
18428
+ summary: 'Issue someone a virtual company card with the limit their groups map to',
18429
+ },
18430
+ {
18431
+ access: 'write',
18432
+ command: ['spend', 'cards', 'lock'],
18433
+ input: {
18434
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18435
+ additionalProperties: false,
18436
+ properties: {
18437
+ confirm: {
18438
+ const: 'spend.cards.lock',
18439
+ type: 'string',
18440
+ },
18441
+ personId: {
18442
+ type: 'string',
18443
+ },
18444
+ requestKey: {
18445
+ maxLength: 128,
18446
+ minLength: 1,
18447
+ type: 'string',
18448
+ },
18449
+ },
18450
+ required: ['personId', 'requestKey', 'confirm'],
18451
+ type: 'object',
18452
+ },
18453
+ path: ['spend', 'cards', 'lock'],
18454
+ permission: 'spend.cards.lock',
18455
+ scope: 'integrations:write',
18456
+ summary: 'Lock every company card a person holds and read each one back',
18457
+ },
18458
+ {
18459
+ access: 'write',
18460
+ command: ['spend', 'cards', 'update-limit'],
18461
+ input: {
18462
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18463
+ additionalProperties: false,
18464
+ properties: {
18465
+ actionId: {
18466
+ type: 'string',
18467
+ },
18468
+ cardId: {
18469
+ type: 'string',
18470
+ },
18471
+ cardLimit: {
18472
+ type: 'number',
18473
+ },
18474
+ confirm: {
18475
+ const: 'spend.cards.updateLimit',
18476
+ type: 'string',
18477
+ },
18478
+ personId: {
18479
+ type: 'string',
18480
+ },
18481
+ requestKey: {
18482
+ maxLength: 128,
18483
+ minLength: 1,
18484
+ type: 'string',
18485
+ },
18486
+ },
18487
+ required: ['personId', 'requestKey', 'confirm'],
18488
+ type: 'object',
18489
+ },
18490
+ path: ['spend', 'cards', 'updateLimit'],
18491
+ permission: 'spend.cards.updateLimit',
18492
+ scope: 'integrations:write',
18493
+ summary: 'Change a company card’s limit and make the person’s manager its approver',
18494
+ },
17863
18495
  {
17864
18496
  access: 'read',
17865
18497
  command: ['spend', 'current'],
@@ -17963,6 +18595,83 @@ export const commands = [
17963
18595
  scope: 'integrations:read',
17964
18596
  summary: 'Read the spend programs as the spend platform holds them now',
17965
18597
  },
18598
+ {
18599
+ access: 'write',
18600
+ command: ['spend', 'set-card-limits'],
18601
+ input: {
18602
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
18603
+ additionalProperties: false,
18604
+ properties: {
18605
+ confirm: {
18606
+ const: 'spend.setCardLimits',
18607
+ type: 'string',
18608
+ },
18609
+ connectionId: {
18610
+ type: 'string',
18611
+ },
18612
+ limits: {
18613
+ additionalProperties: false,
18614
+ properties: {
18615
+ currency: {
18616
+ type: 'string',
18617
+ },
18618
+ defaultCardLimit: {
18619
+ type: ['null', 'number'],
18620
+ },
18621
+ groups: {
18622
+ items: {
18623
+ additionalProperties: false,
18624
+ properties: {
18625
+ cardLimit: {
18626
+ type: 'number',
18627
+ },
18628
+ groupId: {
18629
+ type: 'string',
18630
+ },
18631
+ },
18632
+ required: ['cardLimit', 'groupId'],
18633
+ type: 'object',
18634
+ },
18635
+ type: 'array',
18636
+ },
18637
+ interval: {
18638
+ anyOf: [
18639
+ {
18640
+ const: 'monthly',
18641
+ type: 'string',
18642
+ },
18643
+ {
18644
+ const: 'quarterly',
18645
+ type: 'string',
18646
+ },
18647
+ {
18648
+ const: 'total',
18649
+ type: 'string',
18650
+ },
18651
+ {
18652
+ const: 'yearly',
18653
+ type: 'string',
18654
+ },
18655
+ ],
18656
+ },
18657
+ },
18658
+ required: ['defaultCardLimit', 'groups'],
18659
+ type: 'object',
18660
+ },
18661
+ requestKey: {
18662
+ maxLength: 128,
18663
+ minLength: 1,
18664
+ type: 'string',
18665
+ },
18666
+ },
18667
+ required: ['connectionId', 'limits', 'confirm', 'requestKey'],
18668
+ type: 'object',
18669
+ },
18670
+ path: ['spend', 'setCardLimits'],
18671
+ permission: 'spend.setCardLimits',
18672
+ scope: 'integrations:write',
18673
+ summary: 'Set the limit new company cards get for each group, and the default',
18674
+ },
17966
18675
  {
17967
18676
  access: 'write',
17968
18677
  command: ['spend', 'set-writes'],
@@ -17992,7 +18701,7 @@ export const commands = [
17992
18701
  path: ['spend', 'setWrites'],
17993
18702
  permission: 'spend.setWrites',
17994
18703
  scope: 'integrations:write',
17995
- summary: 'Let Mello file reimbursements in the spend platform, or stop it',
18704
+ summary: 'Let Shuffl file reimbursements and change company cards in the spend platform, or stop it',
17996
18705
  },
17997
18706
  {
17998
18707
  access: 'write',
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.33",
5
+ "@shuffl/sdk": "0.7.33"
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.33",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }