@vess-id/ai-identity 0.16.0-alpha.18 → 0.16.0-alpha.19

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/dist/index.js CHANGED
@@ -5522,6 +5522,56 @@ var DummyVpVerifier = class {
5522
5522
  // src/registry/action-registry-json.ts
5523
5523
  var DRIVE_SCOPE = "https://www.googleapis.com/auth/drive";
5524
5524
  var DRIVE_APPS_READONLY_SCOPE = "https://www.googleapis.com/auth/drive.apps.readonly";
5525
+ var DOCS_SCOPE = "https://www.googleapis.com/auth/documents";
5526
+ var SHEETS_SCOPE = "https://www.googleapis.com/auth/spreadsheets";
5527
+ var SLIDES_SCOPE = "https://www.googleapis.com/auth/presentations";
5528
+ var WS_READ_RELATIONS = [
5529
+ "viewer",
5530
+ "editor",
5531
+ "admin",
5532
+ "owner"
5533
+ ];
5534
+ var WS_WRITE_RELATIONS = [
5535
+ "editor",
5536
+ "admin",
5537
+ "owner",
5538
+ "act_as"
5539
+ ];
5540
+ var P_REQUESTS = {
5541
+ type: "array",
5542
+ items: {
5543
+ type: "object"
5544
+ },
5545
+ minItems: 1
5546
+ };
5547
+ var P_VALUES = {
5548
+ type: "array",
5549
+ items: {
5550
+ type: "array"
5551
+ },
5552
+ minItems: 1
5553
+ };
5554
+ var P_VALUE_INPUT = {
5555
+ type: "string",
5556
+ enum: [
5557
+ "USER_ENTERED",
5558
+ "RAW"
5559
+ ]
5560
+ };
5561
+ var P_INSERT_DATA = {
5562
+ type: "string",
5563
+ enum: [
5564
+ "INSERT_ROWS",
5565
+ "OVERWRITE"
5566
+ ]
5567
+ };
5568
+ var P_MAJOR_DIM = {
5569
+ type: "string",
5570
+ enum: [
5571
+ "ROWS",
5572
+ "COLUMNS"
5573
+ ]
5574
+ };
5525
5575
  var DRIVE_READ_RELATIONS = [
5526
5576
  "viewer",
5527
5577
  "editor",
@@ -5571,6 +5621,10 @@ var P_STR_ARRAY = {
5571
5621
  },
5572
5622
  minItems: 1
5573
5623
  };
5624
+ var P_FIELDS = {
5625
+ type: "string",
5626
+ description: 'Optional Google API field projection to shrink the response, e.g. "slides(objectId,pageElements(shape(text(textElements(textRun(content))))))". Omit to get the full object. Presentations and documents return large styling payloads (colors, transforms, fonts) that can crowd out the text, so pass this when you only need specific parts.'
5627
+ };
5574
5628
  var P_ENCODING = {
5575
5629
  type: "string",
5576
5630
  enum: [
@@ -12146,344 +12200,935 @@ var ACTION_REGISTRY = {
12146
12200
  resource_type: "drive:file",
12147
12201
  required_relations: DRIVE_READ_RELATIONS,
12148
12202
  required_scopes: [
12149
- DRIVE_SCOPE
12203
+ DRIVE_SCOPE
12204
+ ],
12205
+ capability: "drive.read.basic",
12206
+ input_schema: {
12207
+ type: "object",
12208
+ properties: {
12209
+ fileId: P_ID,
12210
+ revisionId: P_ID,
12211
+ alt: P_MEDIA_ALT,
12212
+ offset: P_OFFSET,
12213
+ maxBytes: P_MAX_BYTES,
12214
+ fields: P_STR
12215
+ },
12216
+ required: [
12217
+ "fileId",
12218
+ "revisionId"
12219
+ ],
12220
+ additionalProperties: false
12221
+ },
12222
+ constraints: {
12223
+ rate_bucket: "drive.read"
12224
+ },
12225
+ effects: [
12226
+ "Read:Revision"
12227
+ ],
12228
+ risk: "low",
12229
+ target_bindings: {
12230
+ resource_id: {
12231
+ source: "param",
12232
+ param: "fileId"
12233
+ }
12234
+ },
12235
+ version: "1.0.0"
12236
+ },
12237
+ {
12238
+ action: "drive.revision.update",
12239
+ resource_type: "drive:file",
12240
+ required_relations: DRIVE_WRITE_RELATIONS,
12241
+ required_scopes: [
12242
+ DRIVE_SCOPE
12243
+ ],
12244
+ capability: "drive.write",
12245
+ input_schema: {
12246
+ type: "object",
12247
+ properties: {
12248
+ fileId: P_ID,
12249
+ revisionId: P_ID,
12250
+ keepForever: P_BOOL,
12251
+ published: P_BOOL,
12252
+ publishAuto: P_BOOL,
12253
+ publishedOutsideDomain: P_BOOL
12254
+ },
12255
+ required: [
12256
+ "fileId",
12257
+ "revisionId"
12258
+ ],
12259
+ additionalProperties: false
12260
+ },
12261
+ constraints: {
12262
+ rate_bucket: "drive.write"
12263
+ },
12264
+ effects: [
12265
+ "Update:Revision"
12266
+ ],
12267
+ risk: "high",
12268
+ target_bindings: {
12269
+ resource_id: {
12270
+ source: "param",
12271
+ param: "fileId"
12272
+ }
12273
+ },
12274
+ approval_salient_fields: [
12275
+ "fileId",
12276
+ "revisionId",
12277
+ "keepForever",
12278
+ "published",
12279
+ "publishAuto",
12280
+ "publishedOutsideDomain"
12281
+ ],
12282
+ version: "1.0.0"
12283
+ },
12284
+ {
12285
+ action: "drive.shareddrive.create",
12286
+ resource_type: "drive:shareddrive",
12287
+ required_relations: DRIVE_MANAGE_RELATIONS,
12288
+ required_scopes: [
12289
+ DRIVE_SCOPE
12290
+ ],
12291
+ capability: "drive.manage",
12292
+ input_schema: {
12293
+ type: "object",
12294
+ properties: {
12295
+ requestId: P_ID,
12296
+ name: P_ID,
12297
+ themeId: P_STR,
12298
+ colorRgb: P_STR,
12299
+ hidden: P_BOOL
12300
+ },
12301
+ required: [
12302
+ "requestId",
12303
+ "name"
12304
+ ],
12305
+ additionalProperties: false
12306
+ },
12307
+ constraints: {
12308
+ rate_bucket: "drive.write"
12309
+ },
12310
+ effects: [
12311
+ "Create:SharedDrive"
12312
+ ],
12313
+ risk: "high",
12314
+ target_bindings: {
12315
+ resource_id: {
12316
+ source: "param",
12317
+ param: "requestId"
12318
+ }
12319
+ },
12320
+ approval_salient_fields: [
12321
+ "requestId",
12322
+ "name"
12323
+ ],
12324
+ version: "1.0.0"
12325
+ },
12326
+ {
12327
+ action: "drive.shareddrive.delete",
12328
+ resource_type: "drive:shareddrive",
12329
+ required_relations: DRIVE_MANAGE_RELATIONS,
12330
+ required_scopes: [
12331
+ DRIVE_SCOPE
12332
+ ],
12333
+ capability: "drive.manage",
12334
+ input_schema: {
12335
+ type: "object",
12336
+ properties: {
12337
+ driveId: P_ID,
12338
+ allowItemDeletion: P_BOOL
12339
+ },
12340
+ required: [
12341
+ "driveId"
12342
+ ],
12343
+ additionalProperties: false
12344
+ },
12345
+ constraints: {
12346
+ rate_bucket: "drive.write"
12347
+ },
12348
+ effects: [
12349
+ "Delete:SharedDrive"
12350
+ ],
12351
+ risk: "critical",
12352
+ target_bindings: {
12353
+ resource_id: {
12354
+ source: "param",
12355
+ param: "driveId"
12356
+ }
12357
+ },
12358
+ approval_salient_fields: [
12359
+ "driveId",
12360
+ "allowItemDeletion"
12361
+ ],
12362
+ version: "1.0.0"
12363
+ },
12364
+ {
12365
+ action: "drive.shareddrive.hide",
12366
+ resource_type: "drive:shareddrive",
12367
+ required_relations: DRIVE_MANAGE_RELATIONS,
12368
+ required_scopes: [
12369
+ DRIVE_SCOPE
12370
+ ],
12371
+ capability: "drive.manage",
12372
+ input_schema: {
12373
+ type: "object",
12374
+ properties: {
12375
+ driveId: P_ID
12376
+ },
12377
+ required: [
12378
+ "driveId"
12379
+ ],
12380
+ additionalProperties: false
12381
+ },
12382
+ constraints: {
12383
+ rate_bucket: "drive.write"
12384
+ },
12385
+ effects: [
12386
+ "Update:SharedDrive"
12387
+ ],
12388
+ risk: "high",
12389
+ target_bindings: {
12390
+ resource_id: {
12391
+ source: "param",
12392
+ param: "driveId"
12393
+ }
12394
+ },
12395
+ approval_salient_fields: [
12396
+ "driveId"
12397
+ ],
12398
+ version: "1.0.0"
12399
+ },
12400
+ {
12401
+ action: "drive.shareddrive.list",
12402
+ resource_type: "drive:shareddrive",
12403
+ required_relations: DRIVE_READ_RELATIONS,
12404
+ required_scopes: [
12405
+ DRIVE_SCOPE
12406
+ ],
12407
+ capability: "drive.read.basic",
12408
+ input_schema: {
12409
+ type: "object",
12410
+ properties: {
12411
+ q: P_STR,
12412
+ pageSize: P_PAGE_SIZE,
12413
+ pageToken: P_STR,
12414
+ fields: P_STR
12415
+ },
12416
+ additionalProperties: false
12417
+ },
12418
+ constraints: {
12419
+ rate_bucket: "drive.read"
12420
+ },
12421
+ effects: [
12422
+ "Read:SharedDriveList"
12423
+ ],
12424
+ risk: "low",
12425
+ target_bindings: {
12426
+ resource_id: {
12427
+ source: "param",
12428
+ param: "driveId",
12429
+ required: false
12430
+ }
12431
+ },
12432
+ version: "1.0.0"
12433
+ },
12434
+ {
12435
+ action: "drive.shareddrive.read",
12436
+ resource_type: "drive:shareddrive",
12437
+ required_relations: DRIVE_READ_RELATIONS,
12438
+ required_scopes: [
12439
+ DRIVE_SCOPE
12440
+ ],
12441
+ capability: "drive.read.basic",
12442
+ input_schema: {
12443
+ type: "object",
12444
+ properties: {
12445
+ driveId: P_ID,
12446
+ fields: P_STR
12447
+ },
12448
+ required: [
12449
+ "driveId"
12450
+ ],
12451
+ additionalProperties: false
12452
+ },
12453
+ constraints: {
12454
+ rate_bucket: "drive.read"
12455
+ },
12456
+ effects: [
12457
+ "Read:SharedDrive"
12458
+ ],
12459
+ risk: "low",
12460
+ target_bindings: {
12461
+ resource_id: {
12462
+ source: "param",
12463
+ param: "driveId"
12464
+ }
12465
+ },
12466
+ version: "1.0.0"
12467
+ },
12468
+ {
12469
+ action: "drive.shareddrive.unhide",
12470
+ resource_type: "drive:shareddrive",
12471
+ required_relations: DRIVE_MANAGE_RELATIONS,
12472
+ required_scopes: [
12473
+ DRIVE_SCOPE
12474
+ ],
12475
+ capability: "drive.manage",
12476
+ input_schema: {
12477
+ type: "object",
12478
+ properties: {
12479
+ driveId: P_ID
12480
+ },
12481
+ required: [
12482
+ "driveId"
12483
+ ],
12484
+ additionalProperties: false
12485
+ },
12486
+ constraints: {
12487
+ rate_bucket: "drive.write"
12488
+ },
12489
+ effects: [
12490
+ "Update:SharedDrive"
12491
+ ],
12492
+ risk: "high",
12493
+ target_bindings: {
12494
+ resource_id: {
12495
+ source: "param",
12496
+ param: "driveId"
12497
+ }
12498
+ },
12499
+ approval_salient_fields: [
12500
+ "driveId"
12501
+ ],
12502
+ version: "1.0.0"
12503
+ },
12504
+ {
12505
+ action: "drive.shareddrive.update",
12506
+ resource_type: "drive:shareddrive",
12507
+ required_relations: DRIVE_MANAGE_RELATIONS,
12508
+ required_scopes: [
12509
+ DRIVE_SCOPE
12510
+ ],
12511
+ capability: "drive.manage",
12512
+ input_schema: {
12513
+ type: "object",
12514
+ properties: {
12515
+ driveId: P_ID,
12516
+ name: P_STR,
12517
+ themeId: P_STR,
12518
+ colorRgb: P_STR
12519
+ },
12520
+ required: [
12521
+ "driveId"
12522
+ ],
12523
+ additionalProperties: false
12524
+ },
12525
+ constraints: {
12526
+ rate_bucket: "drive.write"
12527
+ },
12528
+ effects: [
12529
+ "Update:SharedDrive"
12530
+ ],
12531
+ risk: "high",
12532
+ target_bindings: {
12533
+ resource_id: {
12534
+ source: "param",
12535
+ param: "driveId"
12536
+ }
12537
+ },
12538
+ approval_salient_fields: [
12539
+ "driveId",
12540
+ "name"
12541
+ ],
12542
+ version: "1.0.0"
12543
+ },
12544
+ // ─── #2085 Google Docs / Sheets / Slides (設計 2026-09-27) ─────────────
12545
+ // provider = google(Drive と同じ接続)。scope は sensitive 3 本で、
12546
+ // GOOGLE_WORKSPACE_DOCS_ENABLED 配下。Drive が「ファイル単位」なのに対し
12547
+ // こちらは「中身」を扱う — 重複する操作は作らない(設計 §1.3)。
12548
+ //
12549
+ // 🔴 batchUpdate は docs/slides の機能がほぼ全部集約された 1 本。中身次第で
12550
+ // 破壊的にも無害にもなるので、承認画面には requests[] のキーを数えた要約
12551
+ // (insertText ×3 など)を出す(§2.4、enricher 側で実装)。
12552
+ {
12553
+ action: "docs.document.read",
12554
+ resource_type: "docs:document",
12555
+ required_relations: WS_READ_RELATIONS,
12556
+ required_scopes: [
12557
+ DOCS_SCOPE
12558
+ ],
12559
+ capability: "docs.read.basic",
12560
+ input_schema: {
12561
+ type: "object",
12562
+ properties: {
12563
+ documentId: P_ID,
12564
+ suggestionsViewMode: P_STR,
12565
+ fields: P_FIELDS
12566
+ },
12567
+ required: [
12568
+ "documentId"
12569
+ ],
12570
+ additionalProperties: false
12571
+ },
12572
+ constraints: {
12573
+ rate_bucket: "docs.read"
12574
+ },
12575
+ effects: [
12576
+ "Read:Document"
12577
+ ],
12578
+ risk: "low",
12579
+ target_bindings: {
12580
+ resource_id: {
12581
+ source: "param",
12582
+ param: "documentId"
12583
+ }
12584
+ },
12585
+ approval_salient_fields: [
12586
+ "documentId"
12587
+ ],
12588
+ version: "1.0.0"
12589
+ },
12590
+ {
12591
+ action: "docs.document.export",
12592
+ resource_type: "docs:document",
12593
+ required_relations: WS_READ_RELATIONS,
12594
+ required_scopes: [
12595
+ DOCS_SCOPE
12596
+ ],
12597
+ capability: "docs.read.basic",
12598
+ input_schema: {
12599
+ type: "object",
12600
+ properties: {
12601
+ documentId: P_ID
12602
+ },
12603
+ required: [
12604
+ "documentId"
12605
+ ],
12606
+ additionalProperties: false
12607
+ },
12608
+ constraints: {
12609
+ rate_bucket: "docs.read"
12610
+ },
12611
+ effects: [
12612
+ "Read:Document"
12613
+ ],
12614
+ risk: "low",
12615
+ target_bindings: {
12616
+ resource_id: {
12617
+ source: "param",
12618
+ param: "documentId"
12619
+ }
12620
+ },
12621
+ approval_salient_fields: [
12622
+ "documentId"
12623
+ ],
12624
+ version: "1.0.0"
12625
+ },
12626
+ {
12627
+ action: "docs.document.create",
12628
+ resource_type: "docs:document",
12629
+ required_relations: WS_WRITE_RELATIONS,
12630
+ required_scopes: [
12631
+ DOCS_SCOPE
12632
+ ],
12633
+ capability: "docs.write",
12634
+ input_schema: {
12635
+ type: "object",
12636
+ properties: {
12637
+ title: P_ID,
12638
+ body: P_STR
12639
+ },
12640
+ required: [
12641
+ "title"
12642
+ ],
12643
+ additionalProperties: false
12644
+ },
12645
+ constraints: {
12646
+ rate_bucket: "docs.write"
12647
+ },
12648
+ effects: [
12649
+ "Create:Document"
12650
+ ],
12651
+ risk: "high",
12652
+ target_bindings: {
12653
+ resource_id: {
12654
+ source: "param",
12655
+ param: "title"
12656
+ }
12657
+ },
12658
+ approval_salient_fields: [
12659
+ "title"
12660
+ ],
12661
+ version: "1.0.0"
12662
+ },
12663
+ {
12664
+ action: "docs.document.batchUpdate",
12665
+ resource_type: "docs:document",
12666
+ required_relations: WS_WRITE_RELATIONS,
12667
+ required_scopes: [
12668
+ DOCS_SCOPE
12669
+ ],
12670
+ capability: "docs.write",
12671
+ input_schema: {
12672
+ type: "object",
12673
+ properties: {
12674
+ documentId: P_ID,
12675
+ requests: P_REQUESTS
12676
+ },
12677
+ required: [
12678
+ "documentId",
12679
+ "requests"
12680
+ ],
12681
+ additionalProperties: false
12682
+ },
12683
+ constraints: {
12684
+ rate_bucket: "docs.write"
12685
+ },
12686
+ effects: [
12687
+ "Update:Document"
12688
+ ],
12689
+ risk: "high",
12690
+ target_bindings: {
12691
+ resource_id: {
12692
+ source: "param",
12693
+ param: "documentId"
12694
+ }
12695
+ },
12696
+ approval_salient_fields: [
12697
+ "documentId",
12698
+ "requests"
12699
+ ],
12700
+ version: "1.0.0"
12701
+ },
12702
+ {
12703
+ action: "sheets.spreadsheet.read",
12704
+ resource_type: "sheets:spreadsheet",
12705
+ required_relations: WS_READ_RELATIONS,
12706
+ required_scopes: [
12707
+ SHEETS_SCOPE
12708
+ ],
12709
+ capability: "sheets.read.basic",
12710
+ input_schema: {
12711
+ type: "object",
12712
+ properties: {
12713
+ spreadsheetId: P_ID,
12714
+ includeGridData: P_BOOL,
12715
+ ranges: P_STR_ARRAY,
12716
+ fields: P_FIELDS
12717
+ },
12718
+ required: [
12719
+ "spreadsheetId"
12720
+ ],
12721
+ additionalProperties: false
12722
+ },
12723
+ constraints: {
12724
+ rate_bucket: "sheets.read"
12725
+ },
12726
+ effects: [
12727
+ "Read:Spreadsheet"
12728
+ ],
12729
+ risk: "low",
12730
+ target_bindings: {
12731
+ resource_id: {
12732
+ source: "param",
12733
+ param: "spreadsheetId"
12734
+ }
12735
+ },
12736
+ approval_salient_fields: [
12737
+ "spreadsheetId"
12738
+ ],
12739
+ version: "1.0.0"
12740
+ },
12741
+ {
12742
+ action: "sheets.values.read",
12743
+ resource_type: "sheets:spreadsheet",
12744
+ required_relations: WS_READ_RELATIONS,
12745
+ required_scopes: [
12746
+ SHEETS_SCOPE
12747
+ ],
12748
+ capability: "sheets.read.basic",
12749
+ input_schema: {
12750
+ type: "object",
12751
+ properties: {
12752
+ spreadsheetId: P_ID,
12753
+ range: P_ID,
12754
+ majorDimension: P_MAJOR_DIM,
12755
+ valueRenderOption: P_STR
12756
+ },
12757
+ required: [
12758
+ "spreadsheetId",
12759
+ "range"
12760
+ ],
12761
+ additionalProperties: false
12762
+ },
12763
+ constraints: {
12764
+ rate_bucket: "sheets.read"
12765
+ },
12766
+ effects: [
12767
+ "Read:Values"
12768
+ ],
12769
+ risk: "low",
12770
+ target_bindings: {
12771
+ resource_id: {
12772
+ source: "param",
12773
+ param: "spreadsheetId"
12774
+ }
12775
+ },
12776
+ approval_salient_fields: [
12777
+ "spreadsheetId",
12778
+ "range"
12779
+ ],
12780
+ version: "1.0.0"
12781
+ },
12782
+ {
12783
+ action: "sheets.spreadsheet.create",
12784
+ resource_type: "sheets:spreadsheet",
12785
+ required_relations: WS_WRITE_RELATIONS,
12786
+ required_scopes: [
12787
+ SHEETS_SCOPE
12150
12788
  ],
12151
- capability: "drive.read.basic",
12789
+ capability: "sheets.write",
12152
12790
  input_schema: {
12153
12791
  type: "object",
12154
12792
  properties: {
12155
- fileId: P_ID,
12156
- revisionId: P_ID,
12157
- alt: P_MEDIA_ALT,
12158
- offset: P_OFFSET,
12159
- maxBytes: P_MAX_BYTES,
12160
- fields: P_STR
12793
+ title: P_ID,
12794
+ sheetTitles: P_STR_ARRAY
12161
12795
  },
12162
12796
  required: [
12163
- "fileId",
12164
- "revisionId"
12797
+ "title"
12165
12798
  ],
12166
12799
  additionalProperties: false
12167
12800
  },
12168
12801
  constraints: {
12169
- rate_bucket: "drive.read"
12802
+ rate_bucket: "sheets.write"
12170
12803
  },
12171
12804
  effects: [
12172
- "Read:Revision"
12805
+ "Create:Spreadsheet"
12173
12806
  ],
12174
- risk: "low",
12807
+ risk: "high",
12175
12808
  target_bindings: {
12176
12809
  resource_id: {
12177
12810
  source: "param",
12178
- param: "fileId"
12811
+ param: "title"
12179
12812
  }
12180
12813
  },
12814
+ approval_salient_fields: [
12815
+ "title"
12816
+ ],
12181
12817
  version: "1.0.0"
12182
12818
  },
12183
12819
  {
12184
- action: "drive.revision.update",
12185
- resource_type: "drive:file",
12186
- required_relations: DRIVE_WRITE_RELATIONS,
12820
+ action: "sheets.values.append",
12821
+ resource_type: "sheets:spreadsheet",
12822
+ required_relations: WS_WRITE_RELATIONS,
12187
12823
  required_scopes: [
12188
- DRIVE_SCOPE
12824
+ SHEETS_SCOPE
12189
12825
  ],
12190
- capability: "drive.write",
12826
+ capability: "sheets.write",
12191
12827
  input_schema: {
12192
12828
  type: "object",
12193
12829
  properties: {
12194
- fileId: P_ID,
12195
- revisionId: P_ID,
12196
- keepForever: P_BOOL,
12197
- published: P_BOOL,
12198
- publishAuto: P_BOOL,
12199
- publishedOutsideDomain: P_BOOL
12830
+ spreadsheetId: P_ID,
12831
+ range: P_ID,
12832
+ values: P_VALUES,
12833
+ valueInputOption: P_VALUE_INPUT,
12834
+ insertDataOption: P_INSERT_DATA
12200
12835
  },
12201
12836
  required: [
12202
- "fileId",
12203
- "revisionId"
12837
+ "spreadsheetId",
12838
+ "range",
12839
+ "values"
12204
12840
  ],
12205
12841
  additionalProperties: false
12206
12842
  },
12207
12843
  constraints: {
12208
- rate_bucket: "drive.write"
12844
+ rate_bucket: "sheets.write"
12209
12845
  },
12210
12846
  effects: [
12211
- "Update:Revision"
12847
+ "Append:Values"
12212
12848
  ],
12213
12849
  risk: "high",
12214
12850
  target_bindings: {
12215
12851
  resource_id: {
12216
12852
  source: "param",
12217
- param: "fileId"
12853
+ param: "spreadsheetId"
12218
12854
  }
12219
12855
  },
12220
12856
  approval_salient_fields: [
12221
- "fileId",
12222
- "revisionId",
12223
- "keepForever",
12224
- "published",
12225
- "publishAuto",
12226
- "publishedOutsideDomain"
12857
+ "spreadsheetId",
12858
+ "range"
12227
12859
  ],
12228
12860
  version: "1.0.0"
12229
12861
  },
12230
12862
  {
12231
- action: "drive.shareddrive.create",
12232
- resource_type: "drive:shareddrive",
12233
- required_relations: DRIVE_MANAGE_RELATIONS,
12863
+ action: "sheets.values.update",
12864
+ resource_type: "sheets:spreadsheet",
12865
+ required_relations: WS_WRITE_RELATIONS,
12234
12866
  required_scopes: [
12235
- DRIVE_SCOPE
12867
+ SHEETS_SCOPE
12236
12868
  ],
12237
- capability: "drive.manage",
12869
+ capability: "sheets.write",
12238
12870
  input_schema: {
12239
12871
  type: "object",
12240
12872
  properties: {
12241
- requestId: P_ID,
12242
- name: P_ID,
12243
- themeId: P_STR,
12244
- colorRgb: P_STR,
12245
- hidden: P_BOOL
12873
+ spreadsheetId: P_ID,
12874
+ range: P_ID,
12875
+ values: P_VALUES,
12876
+ valueInputOption: P_VALUE_INPUT
12246
12877
  },
12247
12878
  required: [
12248
- "requestId",
12249
- "name"
12879
+ "spreadsheetId",
12880
+ "range",
12881
+ "values"
12250
12882
  ],
12251
12883
  additionalProperties: false
12252
12884
  },
12253
12885
  constraints: {
12254
- rate_bucket: "drive.write"
12886
+ rate_bucket: "sheets.write"
12255
12887
  },
12256
12888
  effects: [
12257
- "Create:SharedDrive"
12889
+ "Update:Values"
12258
12890
  ],
12259
12891
  risk: "high",
12260
12892
  target_bindings: {
12261
12893
  resource_id: {
12262
12894
  source: "param",
12263
- param: "requestId"
12895
+ param: "spreadsheetId"
12264
12896
  }
12265
12897
  },
12266
12898
  approval_salient_fields: [
12267
- "requestId",
12268
- "name"
12899
+ "spreadsheetId",
12900
+ "range"
12269
12901
  ],
12270
12902
  version: "1.0.0"
12271
12903
  },
12272
12904
  {
12273
- action: "drive.shareddrive.delete",
12274
- resource_type: "drive:shareddrive",
12275
- required_relations: DRIVE_MANAGE_RELATIONS,
12905
+ action: "sheets.spreadsheet.batchUpdate",
12906
+ resource_type: "sheets:spreadsheet",
12907
+ required_relations: WS_WRITE_RELATIONS,
12276
12908
  required_scopes: [
12277
- DRIVE_SCOPE
12909
+ SHEETS_SCOPE
12278
12910
  ],
12279
- capability: "drive.manage",
12911
+ capability: "sheets.write",
12280
12912
  input_schema: {
12281
12913
  type: "object",
12282
12914
  properties: {
12283
- driveId: P_ID,
12284
- allowItemDeletion: P_BOOL
12915
+ spreadsheetId: P_ID,
12916
+ requests: P_REQUESTS
12285
12917
  },
12286
12918
  required: [
12287
- "driveId"
12919
+ "spreadsheetId",
12920
+ "requests"
12288
12921
  ],
12289
12922
  additionalProperties: false
12290
12923
  },
12291
12924
  constraints: {
12292
- rate_bucket: "drive.write"
12925
+ rate_bucket: "sheets.write"
12293
12926
  },
12294
12927
  effects: [
12295
- "Delete:SharedDrive"
12928
+ "Update:Spreadsheet"
12296
12929
  ],
12297
- risk: "critical",
12930
+ risk: "high",
12298
12931
  target_bindings: {
12299
12932
  resource_id: {
12300
12933
  source: "param",
12301
- param: "driveId"
12934
+ param: "spreadsheetId"
12302
12935
  }
12303
12936
  },
12304
12937
  approval_salient_fields: [
12305
- "driveId",
12306
- "allowItemDeletion"
12938
+ "spreadsheetId",
12939
+ "requests"
12307
12940
  ],
12308
12941
  version: "1.0.0"
12309
12942
  },
12310
12943
  {
12311
- action: "drive.shareddrive.hide",
12312
- resource_type: "drive:shareddrive",
12313
- required_relations: DRIVE_MANAGE_RELATIONS,
12944
+ action: "sheets.values.clear",
12945
+ resource_type: "sheets:spreadsheet",
12946
+ required_relations: WS_WRITE_RELATIONS,
12314
12947
  required_scopes: [
12315
- DRIVE_SCOPE
12948
+ SHEETS_SCOPE
12316
12949
  ],
12317
- capability: "drive.manage",
12950
+ capability: "sheets.write",
12318
12951
  input_schema: {
12319
12952
  type: "object",
12320
12953
  properties: {
12321
- driveId: P_ID
12954
+ spreadsheetId: P_ID,
12955
+ range: P_ID
12322
12956
  },
12323
12957
  required: [
12324
- "driveId"
12958
+ "spreadsheetId",
12959
+ "range"
12325
12960
  ],
12326
12961
  additionalProperties: false
12327
12962
  },
12328
12963
  constraints: {
12329
- rate_bucket: "drive.write"
12964
+ rate_bucket: "sheets.write"
12330
12965
  },
12331
12966
  effects: [
12332
- "Update:SharedDrive"
12967
+ "Delete:Values"
12333
12968
  ],
12334
- risk: "high",
12969
+ risk: "critical",
12335
12970
  target_bindings: {
12336
12971
  resource_id: {
12337
12972
  source: "param",
12338
- param: "driveId"
12973
+ param: "spreadsheetId"
12339
12974
  }
12340
12975
  },
12341
12976
  approval_salient_fields: [
12342
- "driveId"
12977
+ "spreadsheetId",
12978
+ "range"
12343
12979
  ],
12344
12980
  version: "1.0.0"
12345
12981
  },
12346
12982
  {
12347
- action: "drive.shareddrive.list",
12348
- resource_type: "drive:shareddrive",
12349
- required_relations: DRIVE_READ_RELATIONS,
12983
+ action: "slides.presentation.read",
12984
+ resource_type: "slides:presentation",
12985
+ required_relations: WS_READ_RELATIONS,
12350
12986
  required_scopes: [
12351
- DRIVE_SCOPE
12987
+ SLIDES_SCOPE
12352
12988
  ],
12353
- capability: "drive.read.basic",
12989
+ capability: "slides.read.basic",
12354
12990
  input_schema: {
12355
12991
  type: "object",
12356
12992
  properties: {
12357
- q: P_STR,
12358
- pageSize: P_PAGE_SIZE,
12359
- pageToken: P_STR,
12360
- fields: P_STR
12993
+ presentationId: P_ID,
12994
+ fields: P_FIELDS
12361
12995
  },
12996
+ required: [
12997
+ "presentationId"
12998
+ ],
12362
12999
  additionalProperties: false
12363
13000
  },
12364
13001
  constraints: {
12365
- rate_bucket: "drive.read"
13002
+ rate_bucket: "slides.read"
12366
13003
  },
12367
13004
  effects: [
12368
- "Read:SharedDriveList"
13005
+ "Read:Presentation"
12369
13006
  ],
12370
13007
  risk: "low",
12371
13008
  target_bindings: {
12372
13009
  resource_id: {
12373
13010
  source: "param",
12374
- param: "driveId",
12375
- required: false
13011
+ param: "presentationId"
12376
13012
  }
12377
13013
  },
13014
+ approval_salient_fields: [
13015
+ "presentationId"
13016
+ ],
12378
13017
  version: "1.0.0"
12379
13018
  },
12380
13019
  {
12381
- action: "drive.shareddrive.read",
12382
- resource_type: "drive:shareddrive",
12383
- required_relations: DRIVE_READ_RELATIONS,
13020
+ action: "slides.page.read",
13021
+ resource_type: "slides:presentation",
13022
+ required_relations: WS_READ_RELATIONS,
12384
13023
  required_scopes: [
12385
- DRIVE_SCOPE
13024
+ SLIDES_SCOPE
12386
13025
  ],
12387
- capability: "drive.read.basic",
13026
+ capability: "slides.read.basic",
12388
13027
  input_schema: {
12389
13028
  type: "object",
12390
13029
  properties: {
12391
- driveId: P_ID,
12392
- fields: P_STR
13030
+ presentationId: P_ID,
13031
+ pageObjectId: P_ID,
13032
+ fields: P_FIELDS
12393
13033
  },
12394
13034
  required: [
12395
- "driveId"
13035
+ "presentationId",
13036
+ "pageObjectId"
12396
13037
  ],
12397
13038
  additionalProperties: false
12398
13039
  },
12399
13040
  constraints: {
12400
- rate_bucket: "drive.read"
13041
+ rate_bucket: "slides.read"
12401
13042
  },
12402
13043
  effects: [
12403
- "Read:SharedDrive"
13044
+ "Read:Presentation"
12404
13045
  ],
12405
13046
  risk: "low",
12406
13047
  target_bindings: {
12407
13048
  resource_id: {
12408
13049
  source: "param",
12409
- param: "driveId"
13050
+ param: "presentationId"
12410
13051
  }
12411
13052
  },
13053
+ approval_salient_fields: [
13054
+ "presentationId",
13055
+ "pageObjectId"
13056
+ ],
12412
13057
  version: "1.0.0"
12413
13058
  },
12414
13059
  {
12415
- action: "drive.shareddrive.unhide",
12416
- resource_type: "drive:shareddrive",
12417
- required_relations: DRIVE_MANAGE_RELATIONS,
13060
+ action: "slides.presentation.create",
13061
+ resource_type: "slides:presentation",
13062
+ required_relations: WS_WRITE_RELATIONS,
12418
13063
  required_scopes: [
12419
- DRIVE_SCOPE
13064
+ SLIDES_SCOPE
12420
13065
  ],
12421
- capability: "drive.manage",
13066
+ capability: "slides.write",
12422
13067
  input_schema: {
12423
13068
  type: "object",
12424
13069
  properties: {
12425
- driveId: P_ID
13070
+ title: P_ID
12426
13071
  },
12427
13072
  required: [
12428
- "driveId"
13073
+ "title"
12429
13074
  ],
12430
13075
  additionalProperties: false
12431
13076
  },
12432
13077
  constraints: {
12433
- rate_bucket: "drive.write"
13078
+ rate_bucket: "slides.write"
12434
13079
  },
12435
13080
  effects: [
12436
- "Update:SharedDrive"
13081
+ "Create:Presentation"
12437
13082
  ],
12438
13083
  risk: "high",
12439
13084
  target_bindings: {
12440
13085
  resource_id: {
12441
13086
  source: "param",
12442
- param: "driveId"
13087
+ param: "title"
12443
13088
  }
12444
13089
  },
12445
13090
  approval_salient_fields: [
12446
- "driveId"
13091
+ "title"
12447
13092
  ],
12448
13093
  version: "1.0.0"
12449
13094
  },
12450
13095
  {
12451
- action: "drive.shareddrive.update",
12452
- resource_type: "drive:shareddrive",
12453
- required_relations: DRIVE_MANAGE_RELATIONS,
13096
+ action: "slides.presentation.batchUpdate",
13097
+ resource_type: "slides:presentation",
13098
+ required_relations: WS_WRITE_RELATIONS,
12454
13099
  required_scopes: [
12455
- DRIVE_SCOPE
13100
+ SLIDES_SCOPE
12456
13101
  ],
12457
- capability: "drive.manage",
13102
+ capability: "slides.write",
12458
13103
  input_schema: {
12459
13104
  type: "object",
12460
13105
  properties: {
12461
- driveId: P_ID,
12462
- name: P_STR,
12463
- themeId: P_STR,
12464
- colorRgb: P_STR
13106
+ presentationId: P_ID,
13107
+ requests: P_REQUESTS,
13108
+ writeControl: P_STR
12465
13109
  },
12466
13110
  required: [
12467
- "driveId"
13111
+ "presentationId",
13112
+ "requests"
12468
13113
  ],
12469
13114
  additionalProperties: false
12470
13115
  },
12471
13116
  constraints: {
12472
- rate_bucket: "drive.write"
13117
+ rate_bucket: "slides.write"
12473
13118
  },
12474
13119
  effects: [
12475
- "Update:SharedDrive"
13120
+ "Update:Presentation"
12476
13121
  ],
12477
13122
  risk: "high",
12478
13123
  target_bindings: {
12479
13124
  resource_id: {
12480
13125
  source: "param",
12481
- param: "driveId"
13126
+ param: "presentationId"
12482
13127
  }
12483
13128
  },
12484
13129
  approval_salient_fields: [
12485
- "driveId",
12486
- "name"
13130
+ "presentationId",
13131
+ "requests"
12487
13132
  ],
12488
13133
  version: "1.0.0"
12489
13134
  },
@@ -27941,6 +28586,63 @@ var ACTION_REGISTRY = {
27941
28586
  }
27942
28587
  ],
27943
28588
  capabilities: [
28589
+ {
28590
+ capability: "docs.read.basic",
28591
+ description: "Read Google Docs documents and export their text",
28592
+ includes: [
28593
+ "docs.document.read",
28594
+ "docs.document.export"
28595
+ ],
28596
+ version: "1.0.0"
28597
+ },
28598
+ {
28599
+ capability: "docs.write",
28600
+ description: "Create Google Docs documents and apply batch edits",
28601
+ includes: [
28602
+ "docs.document.create",
28603
+ "docs.document.batchUpdate"
28604
+ ],
28605
+ version: "1.0.0"
28606
+ },
28607
+ {
28608
+ capability: "sheets.read.basic",
28609
+ description: "Read Google Sheets spreadsheets and cell values",
28610
+ includes: [
28611
+ "sheets.spreadsheet.read",
28612
+ "sheets.values.read"
28613
+ ],
28614
+ version: "1.0.0"
28615
+ },
28616
+ {
28617
+ capability: "sheets.write",
28618
+ description: "Create spreadsheets, write cell values, and apply batch edits",
28619
+ includes: [
28620
+ "sheets.spreadsheet.create",
28621
+ "sheets.values.append",
28622
+ "sheets.values.update",
28623
+ "sheets.spreadsheet.batchUpdate",
28624
+ "sheets.values.clear"
28625
+ ],
28626
+ version: "1.0.0"
28627
+ },
28628
+ {
28629
+ capability: "slides.read.basic",
28630
+ description: "Read Google Slides presentations",
28631
+ includes: [
28632
+ "slides.presentation.read",
28633
+ "slides.page.read"
28634
+ ],
28635
+ version: "1.0.0"
28636
+ },
28637
+ {
28638
+ capability: "slides.write",
28639
+ description: "Create presentations and apply batch edits",
28640
+ includes: [
28641
+ "slides.presentation.create",
28642
+ "slides.presentation.batchUpdate"
28643
+ ],
28644
+ version: "1.0.0"
28645
+ },
27944
28646
  {
27945
28647
  capability: "slack.messaging.basic",
27946
28648
  description: "Post, update, and delete messages in channels",
@@ -29006,7 +29708,182 @@ function driveGrantee(p) {
29006
29708
  return String(p.emailAddress ?? p.domain ?? p.permissionId ?? p.type ?? "");
29007
29709
  }
29008
29710
  __name(driveGrantee, "driveGrantee");
29711
+ function summarizeRequests(v) {
29712
+ if (!Array.isArray(v) || v.length === 0) return "";
29713
+ const counts = /* @__PURE__ */ new Map();
29714
+ for (const r of v) {
29715
+ if (!r || typeof r !== "object") continue;
29716
+ const kind = Object.keys(r)[0];
29717
+ if (!kind) continue;
29718
+ counts.set(kind, (counts.get(kind) ?? 0) + 1);
29719
+ }
29720
+ if (counts.size === 0) return "";
29721
+ return [
29722
+ ...counts.entries()
29723
+ ].map(([k, n]) => n > 1 ? `${k} \xD7${n}` : k).join(", ");
29724
+ }
29725
+ __name(summarizeRequests, "summarizeRequests");
29726
+ function workspaceDocsEntry(label, keys, fields) {
29727
+ return {
29728
+ summaryTemplate: /* @__PURE__ */ __name((p) => {
29729
+ const target = keys.map((k) => p[k]).find((v) => v !== void 0 && v !== null && v !== "");
29730
+ const head = target === void 0 ? label : `${label} ${String(target)}`;
29731
+ const ops = summarizeRequests(p.requests);
29732
+ return ops ? `${head} \u2014 ${ops}` : head;
29733
+ }, "summaryTemplate"),
29734
+ displayFields: fields.map(([key, fieldLabel]) => ({
29735
+ key,
29736
+ label: fieldLabel
29737
+ }))
29738
+ };
29739
+ }
29740
+ __name(workspaceDocsEntry, "workspaceDocsEntry");
29009
29741
  var ACTION_DISPLAY_CONFIGS = {
29742
+ // ─── #2085 Google Docs / Sheets / Slides ───
29743
+ "docs.document.read": workspaceDocsEntry("Read document", [
29744
+ "documentId"
29745
+ ], [
29746
+ [
29747
+ "documentId",
29748
+ "Document"
29749
+ ]
29750
+ ]),
29751
+ "docs.document.export": workspaceDocsEntry("Export document text", [
29752
+ "documentId"
29753
+ ], [
29754
+ [
29755
+ "documentId",
29756
+ "Document"
29757
+ ]
29758
+ ]),
29759
+ "docs.document.create": workspaceDocsEntry("Create document", [
29760
+ "title"
29761
+ ], [
29762
+ [
29763
+ "title",
29764
+ "Title"
29765
+ ]
29766
+ ]),
29767
+ "docs.document.batchUpdate": workspaceDocsEntry("Edit document", [
29768
+ "documentId"
29769
+ ], [
29770
+ [
29771
+ "documentId",
29772
+ "Document"
29773
+ ],
29774
+ [
29775
+ "requests",
29776
+ "Edits"
29777
+ ]
29778
+ ]),
29779
+ "sheets.spreadsheet.read": workspaceDocsEntry("Read spreadsheet", [
29780
+ "spreadsheetId"
29781
+ ], [
29782
+ [
29783
+ "spreadsheetId",
29784
+ "Spreadsheet"
29785
+ ]
29786
+ ]),
29787
+ "sheets.values.read": workspaceDocsEntry("Read cells", [
29788
+ "range",
29789
+ "spreadsheetId"
29790
+ ], [
29791
+ [
29792
+ "spreadsheetId",
29793
+ "Spreadsheet"
29794
+ ],
29795
+ [
29796
+ "range",
29797
+ "Range"
29798
+ ]
29799
+ ]),
29800
+ "sheets.spreadsheet.create": workspaceDocsEntry("Create spreadsheet", [
29801
+ "title"
29802
+ ], [
29803
+ [
29804
+ "title",
29805
+ "Title"
29806
+ ]
29807
+ ]),
29808
+ "sheets.values.append": workspaceDocsEntry("Append rows to", [
29809
+ "range",
29810
+ "spreadsheetId"
29811
+ ], [
29812
+ [
29813
+ "spreadsheetId",
29814
+ "Spreadsheet"
29815
+ ],
29816
+ [
29817
+ "range",
29818
+ "Range"
29819
+ ]
29820
+ ]),
29821
+ "sheets.values.update": workspaceDocsEntry("OVERWRITE cells", [
29822
+ "range",
29823
+ "spreadsheetId"
29824
+ ], [
29825
+ [
29826
+ "spreadsheetId",
29827
+ "Spreadsheet"
29828
+ ],
29829
+ [
29830
+ "range",
29831
+ "Range"
29832
+ ]
29833
+ ]),
29834
+ "sheets.spreadsheet.batchUpdate": workspaceDocsEntry("Edit spreadsheet", [
29835
+ "spreadsheetId"
29836
+ ], [
29837
+ [
29838
+ "spreadsheetId",
29839
+ "Spreadsheet"
29840
+ ],
29841
+ [
29842
+ "requests",
29843
+ "Edits"
29844
+ ]
29845
+ ]),
29846
+ "sheets.values.clear": workspaceDocsEntry("PERMANENTLY clear cells", [
29847
+ "range",
29848
+ "spreadsheetId"
29849
+ ], [
29850
+ [
29851
+ "spreadsheetId",
29852
+ "Spreadsheet"
29853
+ ],
29854
+ [
29855
+ "range",
29856
+ "Range"
29857
+ ]
29858
+ ]),
29859
+ "slides.presentation.read": workspaceDocsEntry("Read presentation", [
29860
+ "presentationId"
29861
+ ], [
29862
+ [
29863
+ "presentationId",
29864
+ "Presentation"
29865
+ ]
29866
+ ]),
29867
+ "slides.presentation.create": workspaceDocsEntry("Create presentation", [
29868
+ "title"
29869
+ ], [
29870
+ [
29871
+ "title",
29872
+ "Title"
29873
+ ]
29874
+ ]),
29875
+ "slides.presentation.batchUpdate": workspaceDocsEntry("Edit presentation", [
29876
+ "presentationId"
29877
+ ], [
29878
+ [
29879
+ "presentationId",
29880
+ "Presentation"
29881
+ ],
29882
+ [
29883
+ "requests",
29884
+ "Edits"
29885
+ ]
29886
+ ]),
29010
29887
  "slack.message.post": {
29011
29888
  summaryTemplate: /* @__PURE__ */ __name((p) => {
29012
29889
  const parts = [];