@trackunit/iris-app 2.1.4 → 2.1.6-alpha-df0e8d549b3.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,53 +1,3 @@
1
- ## 2.1.4 (2026-06-30)
2
-
3
- ### 🧱 Updated Dependencies
4
-
5
- - Updated iris-app-build-utilities to 2.0.40
6
- - Updated iris-app-api to 2.0.38
7
- - Updated react-vite-test-setup to 0.0.47
8
- - Updated shared-utils to 1.15.46
9
-
10
- ## 2.1.3 (2026-06-29)
11
-
12
- ### 🧱 Updated Dependencies
13
-
14
- - Updated iris-app-build-utilities to 2.0.39
15
- - Updated react-vite-test-setup to 0.0.46
16
- - Updated shared-utils to 1.15.45
17
-
18
- ## 2.1.2 (2026-06-29)
19
-
20
- ### 🧱 Updated Dependencies
21
-
22
- - Updated iris-app-build-utilities to 2.0.38
23
- - Updated iris-app-api to 2.0.37
24
- - Updated react-vite-test-setup to 0.0.45
25
- - Updated shared-utils to 1.15.44
26
-
27
- ## 2.1.1 (2026-06-26)
28
-
29
- ### 🧱 Updated Dependencies
30
-
31
- - Updated iris-app-build-utilities to 2.0.37
32
- - Updated iris-app-api to 2.0.36
33
-
34
- ## 2.1.0 (2026-06-25)
35
-
36
- ### 🚀 Features
37
-
38
- - **iris-app:** support API Tokens v2 CLI auth [SF-634] ([c0e1bfe5ede](https://github.com/Trackunit/manager/commit/c0e1bfe5ede))
39
- - **iris-app:** request publish scope in CLI auth [SF-634] ([03ab39d59ac](https://github.com/Trackunit/manager/commit/03ab39d59ac))
40
-
41
- ### 🩹 Fixes
42
-
43
- - **iris-app:** rename submit scope request [SF-634] ([e4c8e81d5e8](https://github.com/Trackunit/manager/commit/e4c8e81d5e8))
44
- - **iris-app:** keep token id type required ([a3fff8bc758](https://github.com/Trackunit/manager/commit/a3fff8bc758))
45
-
46
- ### ❤️ Thank You
47
-
48
- - Cursor Agent @cursoragent
49
- - Mads Mætzke Tandrup @tandrup
50
-
51
1
  ## 2.0.38 (2026-06-25)
52
2
 
53
3
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.1.4",
3
+ "version": "2.1.6-alpha-df0e8d549b3.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -23,8 +23,8 @@
23
23
  "@nx/react": "22.7.5",
24
24
  "@npmcli/arborist": "^9.1.9",
25
25
  "win-ca": "^3.5.1",
26
- "@trackunit/shared-utils": "1.15.46",
27
- "@trackunit/iris-app-api": "2.0.38",
26
+ "@trackunit/shared-utils": "1.15.48-alpha-df0e8d549b3.0",
27
+ "@trackunit/iris-app-api": "2.0.40-alpha-df0e8d549b3.0",
28
28
  "tslib": "^2.6.2",
29
29
  "@clack/prompts": "^1.0.0",
30
30
  "@npm/types": "^1.0.2",
@@ -2,7 +2,6 @@ export interface AuthSettings {
2
2
  env: string;
3
3
  publicAuthorizationServerBaseUrl: string;
4
4
  internalAuthorizationServerBaseUrl: string;
5
- apiTokensV2BaseUrl: string;
6
5
  clientId: string;
7
6
  }
8
7
  interface OktaError {
@@ -14,8 +14,6 @@ async function getAccessToken(env) {
14
14
  const settings = getAuthSettings(env);
15
15
  const clientId = process.env[`TU_CLIENT_ID_${settings.env}`];
16
16
  const clientSecret = process.env[`TU_CLIENT_SECRET_${settings.env}`];
17
- const apiTokenClientId = process.env.TU_API_TOKEN_CLIENT_ID;
18
- const apiTokenClientSecret = process.env.TU_API_TOKEN_CLIENT_SECRET;
19
17
  // use token provided as environment variable if available
20
18
  if (process.env.TU_TOKEN) {
21
19
  return {
@@ -45,32 +43,13 @@ async function getAccessToken(env) {
45
43
  body: tokenParams,
46
44
  });
47
45
  return (await tokenResponse.json());
48
- // use API Tokens v2 client credentials for external API key based publishing
49
- }
50
- else if (apiTokenClientId !== undefined) {
51
- if (apiTokenClientId.trim() === "") {
52
- throw new Error("Missing environment value: TU_API_TOKEN_CLIENT_ID");
53
- }
54
- if (apiTokenClientSecret === undefined || apiTokenClientSecret.trim() === "") {
55
- throw new Error("Missing environment value: TU_API_TOKEN_CLIENT_SECRET");
56
- }
57
- const tokenParams = new URLSearchParams();
58
- tokenParams.append("client_id", apiTokenClientId);
59
- tokenParams.append("client_secret", apiTokenClientSecret);
60
- tokenParams.append("grant_type", "client_credentials");
61
- tokenParams.append("scope", "iris.app.submit");
62
- const tokenResponse = await fetch(`${settings.apiTokensV2BaseUrl}/token/v2`, {
63
- method: "POST",
64
- body: tokenParams,
65
- });
66
- return (await tokenResponse.json());
67
46
  // ask the user to authenticated using a browser
68
47
  // and fetch a token using the device code flow
69
48
  }
70
49
  else {
71
50
  const authorizeParams = new URLSearchParams();
72
51
  authorizeParams.append("client_id", settings.clientId);
73
- authorizeParams.append("scope", "openid profile fms assume iris.app.submit");
52
+ authorizeParams.append("scope", "openid profile fms assume");
74
53
  const authorizeResponse = await fetch(`${settings.publicAuthorizationServerBaseUrl}/v1/device/authorize`, {
75
54
  method: "POST",
76
55
  body: authorizeParams,
@@ -121,7 +100,6 @@ function getAuthSettings(env) {
121
100
  clientId: "0oamfeklvodROR2ul357",
122
101
  publicAuthorizationServerBaseUrl: "https://identity.iris.trackunit.com/oauth2/aus2u3jix1dWU7fwt356",
123
102
  internalAuthorizationServerBaseUrl: "https://identity.iris.trackunit.com/oauth2/aushbxvmpdlWrMnO6357",
124
- apiTokensV2BaseUrl: "https://auth.trackunit.com",
125
103
  env,
126
104
  };
127
105
  case "STAGE":
@@ -129,7 +107,6 @@ function getAuthSettings(env) {
129
107
  clientId: "0oa1q2vmx21NcFLOs0h8",
130
108
  publicAuthorizationServerBaseUrl: "https://identity.stage.iris.trackunit.com/oauth2/aus1owd7wny5YVsU00h8",
131
109
  internalAuthorizationServerBaseUrl: "https://identity.stage.iris.trackunit.com/oauth2/aus1o484n9xEHT7G50h8",
132
- apiTokensV2BaseUrl: "https://stage.auth.trackunit.com",
133
110
  env,
134
111
  };
135
112
  case "DEV":
@@ -137,7 +114,6 @@ function getAuthSettings(env) {
137
114
  clientId: "0oamebigau4RkaqZ6357",
138
115
  publicAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/ausj7eh9zeiFhLk4m357",
139
116
  internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
140
- apiTokensV2BaseUrl: "https://dev.auth.trackunit.com",
141
117
  env,
142
118
  };
143
119
  case "LOCAL":
@@ -145,7 +121,6 @@ function getAuthSettings(env) {
145
121
  clientId: "0oamebigau4RkaqZ6357",
146
122
  publicAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/ausj7eh9zeiFhLk4m357",
147
123
  internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
148
- apiTokensV2BaseUrl: "https://dev.auth.trackunit.com",
149
124
  env,
150
125
  };
151
126
  default: