@continuous-excellence/ze-great-dashboard-aws 0.22.3 → 0.23.1

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/cli.js CHANGED
@@ -163,8 +163,23 @@ var azureDevOpsSourceSchema = z2.looseObject({
163
163
  project: z2.string().min(1),
164
164
  /** The branch whose build health the dashboard represents. */
165
165
  branch: z2.string().min(1).optional(),
166
- /** Azure DevOps Build API access is authenticated with a read-scoped PAT. */
167
- token_env: z2.string().min(1)
166
+ /** A PAT environment variable. The adapter sends it with Basic authentication. */
167
+ token_env: z2.string().min(1).optional(),
168
+ /** An environment variable naming a local, short-lived delegated-token file. */
169
+ entra_token_file_env: z2.string().min(1).optional()
170
+ }).superRefine((source, ctx) => {
171
+ if (source.token_env && source.entra_token_file_env) {
172
+ ctx.addIssue({
173
+ code: "custom",
174
+ message: "configure token_env or entra_token_file_env, not both"
175
+ });
176
+ }
177
+ if (!source.token_env && !source.entra_token_file_env) {
178
+ ctx.addIssue({
179
+ code: "custom",
180
+ message: "configure token_env or entra_token_file_env"
181
+ });
182
+ }
168
183
  });
169
184
  var sourceSchema = z2.looseObject({ type: z2.string().min(1), ...sourceAuthenticationSchema }).superRefine(exactlyOneGithubAuthenticationMode);
170
185
  var boardSchema = z2.object({
package/dist/index.js CHANGED
@@ -844,8 +844,23 @@ var azureDevOpsSourceSchema = z2.looseObject({
844
844
  project: z2.string().min(1),
845
845
  /** The branch whose build health the dashboard represents. */
846
846
  branch: z2.string().min(1).optional(),
847
- /** Azure DevOps Build API access is authenticated with a read-scoped PAT. */
848
- token_env: z2.string().min(1)
847
+ /** A PAT environment variable. The adapter sends it with Basic authentication. */
848
+ token_env: z2.string().min(1).optional(),
849
+ /** An environment variable naming a local, short-lived delegated-token file. */
850
+ entra_token_file_env: z2.string().min(1).optional()
851
+ }).superRefine((source, ctx) => {
852
+ if (source.token_env && source.entra_token_file_env) {
853
+ ctx.addIssue({
854
+ code: "custom",
855
+ message: "configure token_env or entra_token_file_env, not both"
856
+ });
857
+ }
858
+ if (!source.token_env && !source.entra_token_file_env) {
859
+ ctx.addIssue({
860
+ code: "custom",
861
+ message: "configure token_env or entra_token_file_env"
862
+ });
863
+ }
849
864
  });
850
865
  var sourceSchema = z2.looseObject({ type: z2.string().min(1), ...sourceAuthenticationSchema }).superRefine(exactlyOneGithubAuthenticationMode);
851
866
  var boardSchema = z2.object({