@trackunit/iris-app-api 2.5.0 → 2.6.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 2.6.0 (2026-09-16)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **iris-app-api:** register account.event.view public scope (TRIO-1149) ([8e3a7729ed2](https://github.com/Trackunit/manager/commit/8e3a7729ed2))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Claude Opus 4.8 (1M context)
10
+ - Paweł Kozioł
11
+
1
12
  ## 2.5.0 (2026-09-15)
2
13
 
3
14
  ### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-api",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -12,6 +12,7 @@ export declare const accountScope: {
12
12
  readonly ACCOUNT_EQUIPMENT_POOLING_VIEW: "account.equipment-pooling.view";
13
13
  readonly ACCOUNT_EVENT_MANAGE: "account.event.manage";
14
14
  readonly ACCOUNT_EVENT_REPORT_ISSUE: "account.event.report-issue";
15
+ readonly ACCOUNT_EVENT_VIEW: "account.event.view";
15
16
  readonly ACCOUNT_GROUP_MANAGE: "account.group.manage";
16
17
  readonly ACCOUNT_GROUP_VIEW: "account.group.view";
17
18
  readonly ACCOUNT_MANAGE: "account.manage";
@@ -87,6 +88,7 @@ export declare const allScopes: {
87
88
  ACCOUNT_EQUIPMENT_POOLING_VIEW: "account.equipment-pooling.view";
88
89
  ACCOUNT_EVENT_MANAGE: "account.event.manage";
89
90
  ACCOUNT_EVENT_REPORT_ISSUE: "account.event.report-issue";
91
+ ACCOUNT_EVENT_VIEW: "account.event.view";
90
92
  ACCOUNT_GROUP_MANAGE: "account.group.manage";
91
93
  ACCOUNT_GROUP_VIEW: "account.group.view";
92
94
  ACCOUNT_MANAGE: "account.manage";
@@ -34,6 +34,7 @@ exports.accountScope = {
34
34
  ACCOUNT_EQUIPMENT_POOLING_VIEW: "account.equipment-pooling.view",
35
35
  ACCOUNT_EVENT_MANAGE: "account.event.manage",
36
36
  ACCOUNT_EVENT_REPORT_ISSUE: "account.event.report-issue",
37
+ ACCOUNT_EVENT_VIEW: "account.event.view",
37
38
  ACCOUNT_GROUP_MANAGE: "account.group.manage",
38
39
  ACCOUNT_GROUP_VIEW: "account.group.view",
39
40
  ACCOUNT_MANAGE: "account.manage",
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/scopes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAEU,QAAA,YAAY,GAAG;IAC1B,gCAAgC,EAAE,kCAAkC;IACpE,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,4BAA4B,EAAE,8BAA8B;IAC5D,cAAc,EAAE,gBAAgB;IAChC,gCAAgC,EAAE,kCAAkC;IACpE,8BAA8B,EAAE,gCAAgC;IAChE,oBAAoB,EAAE,sBAAsB;IAC5C,0BAA0B,EAAE,4BAA4B;IACxD,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,qBAAqB,EAAE,uBAAuB;IAC9C,+BAA+B,EAAE,iCAAiC;IAClE,mBAAmB,EAAE,qBAAqB;IAC1C,yCAAyC,EAAE,2CAA2C;IACtF,uCAAuC,EAAE,yCAAyC;IAClF,yDAAyD,EACvD,2DAA2D;IAC7D,yDAAyD,EACvD,2DAA2D;IAC7D,gFAAgF,EAC9E,kFAAkF;IACpF,4EAA4E,EAC1E,8EAA8E;IAChF,uDAAuD,EAAE,yDAAyD;IAClH,8CAA8C,EAAE,gDAAgD;IAChG,4CAA4C,EAAE,8CAA8C;IAC5F,mBAAmB,EAAE,qBAAqB;IAC1C,uBAAuB,EAAE,yBAAyB;IAClD,oCAAoC,EAAE,sCAAsC;IAC5E,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,6BAA6B,EAAE,+BAA+B;IAC9D,oBAAoB,EAAE,sBAAsB;IAC5C,uBAAuB,EAAE,yBAAyB;IAClD,yCAAyC,EAAE,iDAAiD;IAC5F,sBAAsB,EAAE,wBAAwB;IAChD,yCAAyC,EAAE,2CAA2C;IACtF,4BAA4B,EAAE,8BAA8B;IAC5D,+BAA+B,EAAE,iCAAiC;IAClE,0BAA0B,EAAE,4BAA4B;IACxD,6BAA6B,EAAE,+BAA+B;IAC9D,iCAAiC,EAAE,mCAAmC;IACtE,sBAAsB,EAAE,wBAAwB;IAChD,2BAA2B,EAAE,6BAA6B;IAC1D,uCAAuC,EAAE,yCAAyC;IAClF,+BAA+B,EAAE,iCAAiC;IAClE,mCAAmC,EAAE,qCAAqC;IAC1E,wBAAwB,EAAE,0BAA0B;IACpD,sBAAsB,EAAE,wBAAwB;IAChD,2BAA2B,EAAE,6BAA6B;IAC1D,mCAAmC,EAAE,qCAAqC;IAC1E,sCAAsC,EAAE,wCAAwC;IAChF,8BAA8B,EAAE,gCAAgC;IAChE,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE,WAAW;CACd,CAAC;AAKE,QAAA,SAAS,GAAG,EAAE,GAAG,oBAAY,EAAE,GAAG,kBAAU,EAAE,GAAG,iBAAS,EAAE,CAAC","sourcesContent":["/*\n * Public scopes are typically derived from the TAS permission name together with the\n * securable type prefix, for example:\n * - ACCOUNT + group.manage -> account.group.manage\n * - ACCOUNT + manage -> account.manage\n * - ASSET + view -> asset.view\n *\n * When adding a new public scope here, keep the public definitions aligned with TAS,\n * the Okta scope definitions in `trackunit-terraform/app/okta/`, and the published scope\n * table in\n * `developers-trackunit-com/docs/apps-and-extensions/overview/iris-app-sdk-reference/app-manifest.md`.\n *\n * New scopes are registered unprefixed — `license.view`, not `account.license.view` — matching\n * the Okta public scope naming convention. They resolve through `scopeActionRegistry` rather\n * than the `account.`-prefixed TAS permission list.\n *\n * For more information see:\n * https://trackunit.atlassian.net/wiki/spaces/EN/pages/4364599297/Adding+Permissions+to+TAS\n */\n\nexport const accountScope = {\n ACCOUNT_ACCESS_MANAGEMENT_MANAGE: \"account.access-management.manage\",\n ACCOUNT_ALERT_MANAGE: \"account.alert.manage\",\n ACCOUNT_ALERT_VIEW: \"account.alert.view\",\n ACCOUNT_API_KEY_MANAGE: \"account.api-key.manage\",\n ACCOUNT_ASSET_MANAGE: \"account.asset.manage\",\n ACCOUNT_AUDIT_LOG_VIEW: \"account.audit-log.view\",\n ACCOUNT_BILLING_MANAGE: \"account.billing.manage\",\n ACCOUNT_CUSTOM_FIELDS_MANAGE: \"account.custom-fields.manage\",\n ACCOUNT_DELETE: \"account.delete\",\n ACCOUNT_EQUIPMENT_POOLING_MANAGE: \"account.equipment-pooling.manage\",\n ACCOUNT_EQUIPMENT_POOLING_VIEW: \"account.equipment-pooling.view\",\n ACCOUNT_EVENT_MANAGE: \"account.event.manage\",\n ACCOUNT_EVENT_REPORT_ISSUE: \"account.event.report-issue\",\n ACCOUNT_GROUP_MANAGE: \"account.group.manage\",\n ACCOUNT_GROUP_VIEW: \"account.group.view\",\n ACCOUNT_MANAGE: \"account.manage\",\n ACCOUNT_OPERATOR_VIEW: \"account.operator.view\",\n ACCOUNT_MARKETPLACE_APP_INSTALL: \"account.marketplace.app.install\",\n ACCOUNT_RENTAL_VIEW: \"account.rental.view\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_MANAGE: \"account.service-management.network.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_VIEW: \"account.service-management.network.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_MANAGE:\n \"account.service-management.service-plan.assignment.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_REPORT:\n \"account.service-management.service-plan.assignment.report\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_REGISTER:\n \"account.service-management.service-plan.assignment.service-registration.register\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_VIEW:\n \"account.service-management.service-plan.assignment.service-registration.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_VIEW: \"account.service-management.service-plan.assignment.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_MANAGE: \"account.service-management.service-plan.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_VIEW: \"account.service-management.service-plan.view\",\n ACCOUNT_SITE_MANAGE: \"account.site.manage\",\n ACCOUNT_CUSTOMER_MANAGE: \"account.customer.manage\",\n ACCOUNT_SUPPORT_ACCESS_APPROVAL_FLOW: \"account.support-access.approval-flow\",\n ACCOUNT_USER_MANAGE: \"account.user.manage\",\n ACCOUNT_USER_VIEW: \"account.user.view\",\n ACCOUNT_VIEW: \"account.view\",\n ACCOUNT_IRIS_APP_STORE_SECRET: \"account.iris.app.store-secret\",\n ACCOUNT_IRISX_MANAGE: \"account.irisx.manage\",\n ACCOUNT_BRANDING_MANAGE: \"account.branding.manage\",\n ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW: \"account.remote-commands.configuration-tool.view\",\n ACCOUNT_SUPPORT_ACCESS: \"account.support-access\",\n ACCOUNT_SITE_EMISSIONS_ASSET_HISTORY_VIEW: \"account.site-emissions.asset-history.view\",\n ACCOUNT_SHOW_HISTORICAL_DATA: \"account.show-historical-data\",\n ACCOUNT_MARKETPLACE_APP_APPROVE: \"account.marketplace.app.approve\",\n ACCOUNT_IRIS_APP_DEVELOPER: \"account.iris.app.developer\",\n ACCOUNT_IRISX_ANALYTICS_ADMIN: \"account.irisx.analytics.admin\",\n ACCOUNT_IRISX_ANALYTICS_READ_ONLY: \"account.irisx.analytics.read_only\",\n ACCOUNT_MY_HOME_MANAGE: \"account.my-home.manage\",\n ACCOUNT_MY_HOME_CANVAS_EDIT: \"account.my-home.canvas.edit\",\n ACCOUNT_INTERNAL_TOOLS_PACKAGE_OVERVIEW: \"account.internal-tools.package-overview\",\n ACCOUNT_INTERNAL_TOOLS_BRANDING: \"account.internal-tools.branding\",\n ACCOUNT_SUBSCRIPTION_PACKAGE_MANAGE: \"account.subscription.package-manage\",\n ACCOUNT_TOP_LEVEL_CREATE: \"account.top-level.create\",\n ACCOUNT_PARTNER_MANAGE: \"account.partner.manage\",\n ACCOUNT_ORGANIZATION_MANAGE: \"account.organization.manage\",\n ACCOUNT_SUPPORT_ACCESS_PRE_APPROVED: \"account.support-access.pre-approved\",\n ACCOUNT_SUPPORT_ACCESS_EXTENDED_PERIOD: \"account.support-access.extended-period\",\n ACCOUNT_CLASSIC_MANAGER_ACCESS: \"account.classic-manager.access\",\n LICENSE_VIEW: \"license.view\",\n PARTNER_VIEW: \"partner.view\",\n PARTNER_MANAGE: \"partner.manage\",\n CONNECTION_VIEW: \"connection.view\",\n CONNECTION_MANAGE: \"connection.manage\",\n} as const;\nexport type AccountScope = (typeof accountScope)[keyof typeof accountScope];\n\nexport const assetScope = {\n ASSET_VIEW: \"asset.view\",\n} as const;\nexport type AssetScope = (typeof assetScope)[keyof typeof assetScope];\n\nexport const siteScope = {\n SITE_VIEW: \"site.view\",\n} as const;\nexport type SiteScope = (typeof siteScope)[keyof typeof siteScope];\n\nexport type Scope = AccountScope | AssetScope | SiteScope;\n\nexport const allScopes = { ...accountScope, ...assetScope, ...siteScope };\n"]}
1
+ {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/scopes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAEU,QAAA,YAAY,GAAG;IAC1B,gCAAgC,EAAE,kCAAkC;IACpE,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,4BAA4B,EAAE,8BAA8B;IAC5D,cAAc,EAAE,gBAAgB;IAChC,gCAAgC,EAAE,kCAAkC;IACpE,8BAA8B,EAAE,gCAAgC;IAChE,oBAAoB,EAAE,sBAAsB;IAC5C,0BAA0B,EAAE,4BAA4B;IACxD,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,qBAAqB,EAAE,uBAAuB;IAC9C,+BAA+B,EAAE,iCAAiC;IAClE,mBAAmB,EAAE,qBAAqB;IAC1C,yCAAyC,EAAE,2CAA2C;IACtF,uCAAuC,EAAE,yCAAyC;IAClF,yDAAyD,EACvD,2DAA2D;IAC7D,yDAAyD,EACvD,2DAA2D;IAC7D,gFAAgF,EAC9E,kFAAkF;IACpF,4EAA4E,EAC1E,8EAA8E;IAChF,uDAAuD,EAAE,yDAAyD;IAClH,8CAA8C,EAAE,gDAAgD;IAChG,4CAA4C,EAAE,8CAA8C;IAC5F,mBAAmB,EAAE,qBAAqB;IAC1C,uBAAuB,EAAE,yBAAyB;IAClD,oCAAoC,EAAE,sCAAsC;IAC5E,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,6BAA6B,EAAE,+BAA+B;IAC9D,oBAAoB,EAAE,sBAAsB;IAC5C,uBAAuB,EAAE,yBAAyB;IAClD,yCAAyC,EAAE,iDAAiD;IAC5F,sBAAsB,EAAE,wBAAwB;IAChD,yCAAyC,EAAE,2CAA2C;IACtF,4BAA4B,EAAE,8BAA8B;IAC5D,+BAA+B,EAAE,iCAAiC;IAClE,0BAA0B,EAAE,4BAA4B;IACxD,6BAA6B,EAAE,+BAA+B;IAC9D,iCAAiC,EAAE,mCAAmC;IACtE,sBAAsB,EAAE,wBAAwB;IAChD,2BAA2B,EAAE,6BAA6B;IAC1D,uCAAuC,EAAE,yCAAyC;IAClF,+BAA+B,EAAE,iCAAiC;IAClE,mCAAmC,EAAE,qCAAqC;IAC1E,wBAAwB,EAAE,0BAA0B;IACpD,sBAAsB,EAAE,wBAAwB;IAChD,2BAA2B,EAAE,6BAA6B;IAC1D,mCAAmC,EAAE,qCAAqC;IAC1E,sCAAsC,EAAE,wCAAwC;IAChF,8BAA8B,EAAE,gCAAgC;IAChE,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE,WAAW;CACd,CAAC;AAKE,QAAA,SAAS,GAAG,EAAE,GAAG,oBAAY,EAAE,GAAG,kBAAU,EAAE,GAAG,iBAAS,EAAE,CAAC","sourcesContent":["/*\n * Public scopes are typically derived from the TAS permission name together with the\n * securable type prefix, for example:\n * - ACCOUNT + group.manage -> account.group.manage\n * - ACCOUNT + manage -> account.manage\n * - ASSET + view -> asset.view\n *\n * When adding a new public scope here, keep the public definitions aligned with TAS,\n * the Okta scope definitions in `trackunit-terraform/app/okta/`, and the published scope\n * table in\n * `developers-trackunit-com/docs/apps-and-extensions/overview/iris-app-sdk-reference/app-manifest.md`.\n *\n * New scopes are registered unprefixed — `license.view`, not `account.license.view` — matching\n * the Okta public scope naming convention. They resolve through `scopeActionRegistry` rather\n * than the `account.`-prefixed TAS permission list.\n *\n * For more information see:\n * https://trackunit.atlassian.net/wiki/spaces/EN/pages/4364599297/Adding+Permissions+to+TAS\n */\n\nexport const accountScope = {\n ACCOUNT_ACCESS_MANAGEMENT_MANAGE: \"account.access-management.manage\",\n ACCOUNT_ALERT_MANAGE: \"account.alert.manage\",\n ACCOUNT_ALERT_VIEW: \"account.alert.view\",\n ACCOUNT_API_KEY_MANAGE: \"account.api-key.manage\",\n ACCOUNT_ASSET_MANAGE: \"account.asset.manage\",\n ACCOUNT_AUDIT_LOG_VIEW: \"account.audit-log.view\",\n ACCOUNT_BILLING_MANAGE: \"account.billing.manage\",\n ACCOUNT_CUSTOM_FIELDS_MANAGE: \"account.custom-fields.manage\",\n ACCOUNT_DELETE: \"account.delete\",\n ACCOUNT_EQUIPMENT_POOLING_MANAGE: \"account.equipment-pooling.manage\",\n ACCOUNT_EQUIPMENT_POOLING_VIEW: \"account.equipment-pooling.view\",\n ACCOUNT_EVENT_MANAGE: \"account.event.manage\",\n ACCOUNT_EVENT_REPORT_ISSUE: \"account.event.report-issue\",\n ACCOUNT_EVENT_VIEW: \"account.event.view\",\n ACCOUNT_GROUP_MANAGE: \"account.group.manage\",\n ACCOUNT_GROUP_VIEW: \"account.group.view\",\n ACCOUNT_MANAGE: \"account.manage\",\n ACCOUNT_OPERATOR_VIEW: \"account.operator.view\",\n ACCOUNT_MARKETPLACE_APP_INSTALL: \"account.marketplace.app.install\",\n ACCOUNT_RENTAL_VIEW: \"account.rental.view\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_MANAGE: \"account.service-management.network.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_VIEW: \"account.service-management.network.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_MANAGE:\n \"account.service-management.service-plan.assignment.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_REPORT:\n \"account.service-management.service-plan.assignment.report\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_REGISTER:\n \"account.service-management.service-plan.assignment.service-registration.register\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_VIEW:\n \"account.service-management.service-plan.assignment.service-registration.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_VIEW: \"account.service-management.service-plan.assignment.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_MANAGE: \"account.service-management.service-plan.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_VIEW: \"account.service-management.service-plan.view\",\n ACCOUNT_SITE_MANAGE: \"account.site.manage\",\n ACCOUNT_CUSTOMER_MANAGE: \"account.customer.manage\",\n ACCOUNT_SUPPORT_ACCESS_APPROVAL_FLOW: \"account.support-access.approval-flow\",\n ACCOUNT_USER_MANAGE: \"account.user.manage\",\n ACCOUNT_USER_VIEW: \"account.user.view\",\n ACCOUNT_VIEW: \"account.view\",\n ACCOUNT_IRIS_APP_STORE_SECRET: \"account.iris.app.store-secret\",\n ACCOUNT_IRISX_MANAGE: \"account.irisx.manage\",\n ACCOUNT_BRANDING_MANAGE: \"account.branding.manage\",\n ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW: \"account.remote-commands.configuration-tool.view\",\n ACCOUNT_SUPPORT_ACCESS: \"account.support-access\",\n ACCOUNT_SITE_EMISSIONS_ASSET_HISTORY_VIEW: \"account.site-emissions.asset-history.view\",\n ACCOUNT_SHOW_HISTORICAL_DATA: \"account.show-historical-data\",\n ACCOUNT_MARKETPLACE_APP_APPROVE: \"account.marketplace.app.approve\",\n ACCOUNT_IRIS_APP_DEVELOPER: \"account.iris.app.developer\",\n ACCOUNT_IRISX_ANALYTICS_ADMIN: \"account.irisx.analytics.admin\",\n ACCOUNT_IRISX_ANALYTICS_READ_ONLY: \"account.irisx.analytics.read_only\",\n ACCOUNT_MY_HOME_MANAGE: \"account.my-home.manage\",\n ACCOUNT_MY_HOME_CANVAS_EDIT: \"account.my-home.canvas.edit\",\n ACCOUNT_INTERNAL_TOOLS_PACKAGE_OVERVIEW: \"account.internal-tools.package-overview\",\n ACCOUNT_INTERNAL_TOOLS_BRANDING: \"account.internal-tools.branding\",\n ACCOUNT_SUBSCRIPTION_PACKAGE_MANAGE: \"account.subscription.package-manage\",\n ACCOUNT_TOP_LEVEL_CREATE: \"account.top-level.create\",\n ACCOUNT_PARTNER_MANAGE: \"account.partner.manage\",\n ACCOUNT_ORGANIZATION_MANAGE: \"account.organization.manage\",\n ACCOUNT_SUPPORT_ACCESS_PRE_APPROVED: \"account.support-access.pre-approved\",\n ACCOUNT_SUPPORT_ACCESS_EXTENDED_PERIOD: \"account.support-access.extended-period\",\n ACCOUNT_CLASSIC_MANAGER_ACCESS: \"account.classic-manager.access\",\n LICENSE_VIEW: \"license.view\",\n PARTNER_VIEW: \"partner.view\",\n PARTNER_MANAGE: \"partner.manage\",\n CONNECTION_VIEW: \"connection.view\",\n CONNECTION_MANAGE: \"connection.manage\",\n} as const;\nexport type AccountScope = (typeof accountScope)[keyof typeof accountScope];\n\nexport const assetScope = {\n ASSET_VIEW: \"asset.view\",\n} as const;\nexport type AssetScope = (typeof assetScope)[keyof typeof assetScope];\n\nexport const siteScope = {\n SITE_VIEW: \"site.view\",\n} as const;\nexport type SiteScope = (typeof siteScope)[keyof typeof siteScope];\n\nexport type Scope = AccountScope | AssetScope | SiteScope;\n\nexport const allScopes = { ...accountScope, ...assetScope, ...siteScope };\n"]}