@intuned/runtime-dev 1.3.8-deploy.0 → 1.3.8-deploy.2

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.
@@ -155,12 +155,12 @@ const checkIntunedProjectDeployStatus = async (workspaceId, projectName, apiKey)
155
155
  };
156
156
  {}
157
157
  async function handleFirstRunExperience() {
158
- let testAuthSessionInput = null;
158
+ let testAuthSessionInput = undefined;
159
159
  const settings = await (0, _helpers.loadIntunedJson)();
160
160
  const shouldPromptForTestAuthSession = settings.authSessions.enabled && settings.authSessions.type === "API";
161
161
  let shouldPromptForDefaultJob = true;
162
162
  if (shouldPromptForTestAuthSession) {
163
- testAuthSessionInput = getFirstRunExperienceTestAuthSessionParameters({
163
+ testAuthSessionInput = await getFirstRunExperienceTestAuthSessionParameters({
164
164
  shouldPromptForDefaultJob
165
165
  });
166
166
  if (!testAuthSessionInput) {
@@ -24,43 +24,85 @@ export declare const intunedJsonSchema: z.ZodObject<{
24
24
  }>]>;
25
25
  projectName: z.ZodOptional<z.ZodString>;
26
26
  workspaceId: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- authSessions: {
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
+ authSessions: z.ZodUnion<[z.ZodObject<{
29
+ enabled: z.ZodLiteral<false>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ enabled: false;
32
+ }, {
29
33
  enabled: false;
30
- } | {
34
+ }>, z.ZodObject<{
35
+ enabled: z.ZodLiteral<true>;
36
+ type: z.ZodEnum<["MANUAL", "API"]>;
37
+ startUrl: z.ZodOptional<z.ZodString>;
38
+ finishUrl: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ type: "API" | "MANUAL";
41
+ enabled: true;
42
+ startUrl?: string | undefined;
43
+ finishUrl?: string | undefined;
44
+ }, {
31
45
  type: "API" | "MANUAL";
32
46
  enabled: true;
33
47
  startUrl?: string | undefined;
34
48
  finishUrl?: string | undefined;
35
- };
36
- projectName?: string | undefined;
37
- workspaceId?: string | undefined;
38
- }, {
39
- authSessions: {
49
+ }>]>;
50
+ projectName: z.ZodOptional<z.ZodString>;
51
+ workspaceId: z.ZodOptional<z.ZodString>;
52
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
53
+ authSessions: z.ZodUnion<[z.ZodObject<{
54
+ enabled: z.ZodLiteral<false>;
55
+ }, "strip", z.ZodTypeAny, {
40
56
  enabled: false;
41
- } | {
57
+ }, {
58
+ enabled: false;
59
+ }>, z.ZodObject<{
60
+ enabled: z.ZodLiteral<true>;
61
+ type: z.ZodEnum<["MANUAL", "API"]>;
62
+ startUrl: z.ZodOptional<z.ZodString>;
63
+ finishUrl: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
42
65
  type: "API" | "MANUAL";
43
66
  enabled: true;
44
67
  startUrl?: string | undefined;
45
68
  finishUrl?: string | undefined;
46
- };
47
- projectName?: string | undefined;
48
- workspaceId?: string | undefined;
49
- }>;
69
+ }, {
70
+ type: "API" | "MANUAL";
71
+ enabled: true;
72
+ startUrl?: string | undefined;
73
+ finishUrl?: string | undefined;
74
+ }>]>;
75
+ projectName: z.ZodOptional<z.ZodString>;
76
+ workspaceId: z.ZodOptional<z.ZodString>;
77
+ }, z.ZodTypeAny, "passthrough">>;
50
78
  export type IntunedJson = z.infer<typeof intunedJsonSchema>;
51
79
  export declare const intunedSettingsFileNames: readonly ["Intuned.json", "Intuned.jsonc", "Intuned.yaml", "Intuned.yml", "Intuned.toml"];
52
- export declare function loadIntunedJson(): Promise<{
53
- authSessions: {
80
+ export declare function loadIntunedJson(): Promise<z.objectOutputType<{
81
+ authSessions: z.ZodUnion<[z.ZodObject<{
82
+ enabled: z.ZodLiteral<false>;
83
+ }, "strip", z.ZodTypeAny, {
54
84
  enabled: false;
55
- } | {
85
+ }, {
86
+ enabled: false;
87
+ }>, z.ZodObject<{
88
+ enabled: z.ZodLiteral<true>;
89
+ type: z.ZodEnum<["MANUAL", "API"]>;
90
+ startUrl: z.ZodOptional<z.ZodString>;
91
+ finishUrl: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
56
93
  type: "API" | "MANUAL";
57
94
  enabled: true;
58
95
  startUrl?: string | undefined;
59
96
  finishUrl?: string | undefined;
60
- };
61
- projectName?: string | undefined;
62
- workspaceId?: string | undefined;
63
- }>;
97
+ }, {
98
+ type: "API" | "MANUAL";
99
+ enabled: true;
100
+ startUrl?: string | undefined;
101
+ finishUrl?: string | undefined;
102
+ }>]>;
103
+ projectName: z.ZodOptional<z.ZodString>;
104
+ workspaceId: z.ZodOptional<z.ZodString>;
105
+ }, z.ZodTypeAny, "passthrough">>;
64
106
  export declare function getIntunedSettingsFile(): Promise<{
65
107
  name: typeof intunedSettingsFileNames[number];
66
108
  path: string;
@@ -28,7 +28,7 @@ const intunedJsonSchema = exports.intunedJsonSchema = _zod.z.object({
28
28
  })]),
29
29
  projectName: _zod.z.string().optional(),
30
30
  workspaceId: _zod.z.string().optional()
31
- });
31
+ }).passthrough();
32
32
  const intunedSettingsFileNames = exports.intunedSettingsFileNames = ["Intuned.json", "Intuned.jsonc", "Intuned.yaml", "Intuned.yml", "Intuned.toml"];
33
33
  async function loadIntunedJson() {
34
34
  const settingsFile = await getIntunedSettingsFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.3.8-deploy.0",
3
+ "version": "1.3.8-deploy.2",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",