Skip to content

Commit

Permalink
Adds code scnaning scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfarrell76 committed Dec 11, 2023
1 parent 65b31a5 commit a0f93bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/privacy-types",
"description": "Core enums and types that can be useful when interacting with Transcend's public APIs.",
"version": "4.59.1",
"version": "4.60.0",
"homepage": "https://github.com/transcend-io/privacy-types",
"repository": {
"type": "git",
Expand Down
16 changes: 16 additions & 0 deletions src/scopes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export enum ScopeName {
ApprovePrompts = 'approvePrompts',
ManageAuditor = 'manageAuditor',
ExecuteAuditor = 'executeAuditor',
ViewCodeScanning = 'viewCodeScanning',
ManageCodeScanning = 'manageCodeScanning',
ViewPathfinder = 'viewPathfinder',
ManagePathfinder = 'managePathfinder',
ViewContractScanning = 'viewContractScanning',
Expand Down Expand Up @@ -732,6 +734,20 @@ const SCOPES_WITHOUT_VIEW_ONLY: {
type: ScopeType.Modify,
products: [TranscendProduct.PromptManager],
},
[ScopeName.ViewCodeScanning]: {
title: 'View Code Scanning',
dependencies: [],
description: 'View the code scanning tables.',
type: ScopeType.View,
products: [TranscendProduct.DataMapping],
},
[ScopeName.ManageCodeScanning]: {
title: 'Manage Code Scanning',
dependencies: [ScopeName.ViewCodeScanning],
description: 'Manage, edit and create records in code scanning',
type: ScopeType.Modify,
products: [TranscendProduct.DataMapping],
},
[ScopeName.ExecutePrompt]: {
title: 'Execute Prompt',
dependencies: [ScopeName.ViewPromptRuns, ScopeName.ViewPrompts],
Expand Down

0 comments on commit a0f93bd

Please sign in to comment.