@flowrunner/cli 0.1.13 → 0.1.15
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/ai-docs/instructions/service-code-format/02-zod-types.md +3 -1
- package/ai-docs/instructions/service-code-format/04-http-requests.md +9 -0
- package/ai-docs/instructions/service-code-format/05-dictionaries.md +59 -1
- package/ai-docs/instructions/service-code-format/06-oauth2.md +68 -9
- package/ai-docs/instructions/service-code-format/07-actions.md +1 -1
- package/ai-docs/instructions/service-code-format/08-polling-triggers.md +13 -0
- package/ai-docs/instructions/service-code-format/09-realtime-triggers.md +110 -4
- package/ai-docs/instructions/service-code-format/11-output-model.md +6 -0
- package/ai-docs/instructions/service-code-format/16-gotchas.md +24 -0
- package/ai-docs/instructions/service-code-format/18-test-recipes.md +16 -0
- package/ai-docs/instructions/service-code-format/19-security.md +121 -0
- package/ai-docs/instructions/service-code-format/README.md +3 -2
- package/ai-docs/providers/claude/agents/flowrunner-service-code-engineer.md +1 -1
- package/dist/cli.js +10605 -73
- package/dist/cli.js.map +4 -4
- package/dist/index.js +10574 -66
- package/dist/index.js.map +4 -4
- package/dist/types/flow-extension-runner/src/v2/dictionaries/dictionary-method.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/model/field-mapper.d.ts +4 -2
- package/dist/types/flow-extension-runner/src/v2/model/params-model.d.ts +2 -2
- package/dist/types/flow-extension-runner/src/v2/oauth/types.d.ts +9 -7
- package/dist/types/flow-extension-runner/src/v2/params/index.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/encode.d.ts +7 -1
- package/dist/types/flow-extension-runner/src/v2/params/schema/dictionary-binding.d.ts +37 -0
- package/dist/types/flow-extension-runner/src/v2/params/zod.d.ts +7 -5
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +2 -1
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +1 -0
- package/dist/types/shared/src/constants/activity-log.d.ts +77 -0
- package/dist/types/shared/src/constants/app.d.ts +0 -1
- package/dist/types/shared/src/constants/error-codes.d.ts +3 -0
- package/dist/types/shared/src/constants/index.d.ts +1 -0
- package/dist/types/shared/src/constants/notification-types.d.ts +176 -6
- package/dist/types/shared/src/constants/oauth-connection-error.d.ts +3 -0
- package/dist/types/shared/src/errors/api.d.ts +11 -0
- package/dist/types/shared/src/errors/index.d.ts +1 -0
- package/dist/types/shared/src/errors/oauth-connection.d.ts +4 -0
- package/dist/types/shared/src/scheme/account/dto.d.ts +3 -0
- package/dist/types/shared/src/scheme/crm/dto.d.ts +6 -0
- package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +26 -0
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +68 -14
- package/dist/types/shared/src/scheme/notifications/dto.d.ts +4 -0
- package/dist/types/shared/src/scheme/notifications/rest.d.ts +8 -0
- package/dist/types/shared/src/scheme/onboarding/dto.d.ts +29 -0
- package/dist/types/shared/src/scheme/onboarding/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +52 -11
- package/dist/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +2 -2
- package/package.json +1 -4
- package/runtime/index.js +10563 -45
- package/runtime/index.js.map +4 -4
- package/runtime/types/flow-extension-runner/src/v2/dictionaries/dictionary-method.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/model/field-mapper.d.ts +4 -2
- package/runtime/types/flow-extension-runner/src/v2/model/params-model.d.ts +2 -2
- package/runtime/types/flow-extension-runner/src/v2/oauth/types.d.ts +9 -7
- package/runtime/types/flow-extension-runner/src/v2/params/index.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/encode.d.ts +7 -1
- package/runtime/types/flow-extension-runner/src/v2/params/schema/dictionary-binding.d.ts +37 -0
- package/runtime/types/flow-extension-runner/src/v2/params/zod.d.ts +7 -5
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +2 -1
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +1 -0
- package/runtime/types/shared/src/constants/activity-log.d.ts +77 -0
- package/runtime/types/shared/src/constants/app.d.ts +0 -1
- package/runtime/types/shared/src/constants/error-codes.d.ts +3 -0
- package/runtime/types/shared/src/constants/index.d.ts +1 -0
- package/runtime/types/shared/src/constants/notification-types.d.ts +176 -6
- package/runtime/types/shared/src/constants/oauth-connection-error.d.ts +3 -0
- package/runtime/types/shared/src/errors/api.d.ts +11 -0
- package/runtime/types/shared/src/errors/index.d.ts +1 -0
- package/runtime/types/shared/src/errors/oauth-connection.d.ts +4 -0
- package/runtime/types/shared/src/scheme/account/dto.d.ts +3 -0
- package/runtime/types/shared/src/scheme/crm/dto.d.ts +6 -0
- package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +26 -0
- package/runtime/types/shared/src/scheme/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +68 -14
- package/runtime/types/shared/src/scheme/notifications/dto.d.ts +4 -0
- package/runtime/types/shared/src/scheme/notifications/rest.d.ts +8 -0
- package/runtime/types/shared/src/scheme/onboarding/dto.d.ts +29 -0
- package/runtime/types/shared/src/scheme/onboarding/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +52 -11
- package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +2 -2
|
@@ -10,6 +10,7 @@ export declare const AccountDocSchema: z.ZodObject<{
|
|
|
10
10
|
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
12
|
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
13
|
+
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
14
15
|
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
16
|
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -36,6 +37,7 @@ export declare const AccountDTOSchema: z.ZodObject<{
|
|
|
36
37
|
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
37
38
|
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
39
|
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
40
|
+
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
39
41
|
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
40
42
|
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
43
|
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -48,6 +50,7 @@ export declare const AccountJavaDTOSchema: z.ZodObject<{
|
|
|
48
50
|
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
49
51
|
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
52
|
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
53
|
+
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
51
54
|
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
52
55
|
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
56
|
id: z.ZodString;
|
|
@@ -11,6 +11,7 @@ declare const DeveloperInWorkspaceDTOSchema: z.ZodObject<{
|
|
|
11
11
|
system: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
12
12
|
billingCustomerId: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
13
13
|
registrationDate: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
14
|
+
usedTrial: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
14
15
|
lastLogin: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
15
16
|
lastReadNotificationsAt: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
16
17
|
id: z.ZodString;
|
|
@@ -36,6 +37,7 @@ export declare const WorkspaceDTOSchema: z.ZodObject<{
|
|
|
36
37
|
system: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
37
38
|
billingCustomerId: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
38
39
|
registrationDate: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
40
|
+
usedTrial: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
39
41
|
lastLogin: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
40
42
|
lastReadNotificationsAt: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
41
43
|
id: z.ZodString;
|
|
@@ -58,6 +60,7 @@ export declare const DeveloperSearchResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
58
60
|
system: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
59
61
|
billingCustomerId: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
60
62
|
registrationDate: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
63
|
+
usedTrial: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
61
64
|
lastLogin: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
62
65
|
lastReadNotificationsAt: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
63
66
|
id: z.ZodString;
|
|
@@ -70,6 +73,7 @@ export declare const CrmDeveloperDTOSchema: z.ZodObject<{
|
|
|
70
73
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
71
74
|
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
72
75
|
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
76
|
+
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
73
77
|
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
74
78
|
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
75
79
|
id: z.ZodString;
|
|
@@ -108,6 +112,7 @@ export declare const CrmDevelopersResponseSchema: z.ZodObject<{
|
|
|
108
112
|
system: z.ZodOptional<z.ZodBoolean>;
|
|
109
113
|
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
110
114
|
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
115
|
+
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
111
116
|
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
112
117
|
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
113
118
|
id: z.ZodString;
|
|
@@ -189,6 +194,7 @@ export declare const CrmWorkspacesResponseSchema: z.ZodObject<{
|
|
|
189
194
|
system: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
190
195
|
billingCustomerId: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
191
196
|
registrationDate: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
197
|
+
usedTrial: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
192
198
|
lastLogin: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
193
199
|
lastReadNotificationsAt: z.ZodNonOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
194
200
|
id: z.ZodString;
|
|
@@ -157,6 +157,7 @@ export interface FlowVersionJavaDto {
|
|
|
157
157
|
version: number;
|
|
158
158
|
serverFields: {
|
|
159
159
|
hasResult: boolean;
|
|
160
|
+
configId?: string | null;
|
|
160
161
|
};
|
|
161
162
|
metaInfo: {
|
|
162
163
|
errorMessage: string | null;
|
|
@@ -626,4 +627,29 @@ export interface ExpressionJavaDto {
|
|
|
626
627
|
parseJsonString: boolean;
|
|
627
628
|
resultType?: DataTypesJavaDto | null;
|
|
628
629
|
}
|
|
630
|
+
export interface FlowLogMessageJavaDto {
|
|
631
|
+
id: string;
|
|
632
|
+
executionId: string;
|
|
633
|
+
executionName: string | null;
|
|
634
|
+
elementId: string | null;
|
|
635
|
+
elementName: string | null;
|
|
636
|
+
level: string;
|
|
637
|
+
text: string;
|
|
638
|
+
timestamp: number;
|
|
639
|
+
}
|
|
640
|
+
export interface FlowLogsQueryJavaDto {
|
|
641
|
+
executionId?: string;
|
|
642
|
+
elementId?: string;
|
|
643
|
+
level?: string;
|
|
644
|
+
textFilter?: string;
|
|
645
|
+
forDebugSession?: boolean;
|
|
646
|
+
range?: {
|
|
647
|
+
fromInMillis?: number | null;
|
|
648
|
+
toInMillis?: number | null;
|
|
649
|
+
};
|
|
650
|
+
page?: {
|
|
651
|
+
size?: number;
|
|
652
|
+
offset?: number;
|
|
653
|
+
};
|
|
654
|
+
}
|
|
629
655
|
export {};
|
|
@@ -14,6 +14,7 @@ export * from './integration-connection';
|
|
|
14
14
|
export * from './knowledge-base';
|
|
15
15
|
export * from './mcp-oauth';
|
|
16
16
|
export * from './notifications';
|
|
17
|
+
export * from './onboarding';
|
|
17
18
|
export * from './properties';
|
|
18
19
|
export * from './remote-mcp-server';
|
|
19
20
|
export * from './shared-extensions';
|
|
@@ -4,9 +4,11 @@ export declare const ConnectionInfoSchema: z.ZodObject<{
|
|
|
4
4
|
expirationInSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
5
|
refreshToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
serviceId: z.ZodString;
|
|
7
|
-
serviceName: z.ZodString
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
serviceName: z.ZodOptional<z.ZodString>;
|
|
8
|
+
hostType: z.ZodEnum<{
|
|
9
|
+
APP: "APP";
|
|
10
|
+
SHARED: "SHARED";
|
|
11
|
+
}>;
|
|
10
12
|
packageId: z.ZodOptional<z.ZodString>;
|
|
11
13
|
connectionIdentityName: z.ZodOptional<z.ZodString>;
|
|
12
14
|
connectionIdentityImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,26 +22,48 @@ export declare const ConnectionInfoDTOSchema: z.ZodObject<{
|
|
|
20
22
|
expirationInSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
23
|
connectionIdentityName: z.ZodOptional<z.ZodString>;
|
|
22
24
|
connectionIdentityImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
serviceName: z.ZodString
|
|
25
|
+
serviceName: z.ZodOptional<z.ZodString>;
|
|
26
|
+
hostType: z.ZodEnum<{
|
|
27
|
+
APP: "APP";
|
|
28
|
+
SHARED: "SHARED";
|
|
29
|
+
}>;
|
|
24
30
|
packageId: z.ZodOptional<z.ZodString>;
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const OAuthConnectionErrorTypeSchema: z.ZodEnum<{
|
|
33
|
+
readonly TOKEN_REFRESH: "token_refresh";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const OAuthConnectionErrorSchema: z.ZodObject<{
|
|
36
|
+
type: z.ZodEnum<{
|
|
37
|
+
readonly TOKEN_REFRESH: "token_refresh";
|
|
38
|
+
}>;
|
|
39
|
+
code: z.ZodString;
|
|
40
|
+
failedAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
notifiedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const OAuthConnectionErrorDTOSchema: z.ZodObject<{
|
|
44
|
+
type: z.ZodEnum<{
|
|
45
|
+
readonly TOKEN_REFRESH: "token_refresh";
|
|
46
|
+
}>;
|
|
47
|
+
code: z.ZodString;
|
|
48
|
+
failedAt: z.ZodCoercedDate<unknown>;
|
|
27
49
|
}, z.core.$strip>;
|
|
28
50
|
export declare const OAuthConnectionDTOSchema: z.ZodObject<{
|
|
29
51
|
_id: z.ZodUUID;
|
|
30
52
|
name: z.ZodString;
|
|
31
|
-
connectionInfo: z.
|
|
53
|
+
connectionInfo: z.ZodObject<{
|
|
32
54
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
33
55
|
serviceId: z.ZodString;
|
|
34
56
|
userData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
57
|
expirationInSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
58
|
connectionIdentityName: z.ZodOptional<z.ZodString>;
|
|
37
59
|
connectionIdentityImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
serviceName: z.ZodString
|
|
60
|
+
serviceName: z.ZodOptional<z.ZodString>;
|
|
61
|
+
hostType: z.ZodEnum<{
|
|
62
|
+
APP: "APP";
|
|
63
|
+
SHARED: "SHARED";
|
|
64
|
+
}>;
|
|
39
65
|
packageId: z.ZodOptional<z.ZodString>;
|
|
40
|
-
|
|
41
|
-
modelName: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
43
67
|
created: z.ZodCoercedDate<unknown>;
|
|
44
68
|
updated: z.ZodCoercedDate<unknown>;
|
|
45
69
|
}, z.core.$strip>;
|
|
@@ -47,24 +71,41 @@ export declare const ConnectionInfoListDTOSchema: z.ZodObject<{
|
|
|
47
71
|
serviceId: z.ZodString;
|
|
48
72
|
userData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
73
|
connectionIdentityImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
hostType: z.ZodEnum<{
|
|
75
|
+
APP: "APP";
|
|
76
|
+
SHARED: "SHARED";
|
|
77
|
+
}>;
|
|
50
78
|
packageId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
hostType: z.ZodOptional<z.ZodString>;
|
|
52
79
|
}, z.core.$strip>;
|
|
53
80
|
export declare const OAuthConnectionListDTOSchema: z.ZodObject<{
|
|
54
81
|
name: z.ZodString;
|
|
55
82
|
_id: z.ZodUUID;
|
|
56
|
-
connectionInfo: z.
|
|
83
|
+
connectionInfo: z.ZodObject<{
|
|
57
84
|
serviceId: z.ZodString;
|
|
58
85
|
userData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
86
|
connectionIdentityImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
hostType: z.ZodEnum<{
|
|
88
|
+
APP: "APP";
|
|
89
|
+
SHARED: "SHARED";
|
|
90
|
+
}>;
|
|
60
91
|
packageId: z.ZodOptional<z.ZodString>;
|
|
61
|
-
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
created: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
94
|
+
expiresAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
95
|
+
renewsAutomatically: z.ZodBoolean;
|
|
96
|
+
connectionError: z.ZodNullable<z.ZodObject<{
|
|
97
|
+
type: z.ZodEnum<{
|
|
98
|
+
readonly TOKEN_REFRESH: "token_refresh";
|
|
99
|
+
}>;
|
|
100
|
+
code: z.ZodString;
|
|
101
|
+
failedAt: z.ZodCoercedDate<unknown>;
|
|
62
102
|
}, z.core.$strip>>;
|
|
63
103
|
}, z.core.$strip>;
|
|
64
104
|
export declare const OAuthConnectionUsageDTOSchema: z.ZodObject<{
|
|
65
105
|
connectionId: z.ZodUUID;
|
|
66
106
|
flowVersions: z.ZodArray<z.ZodObject<{
|
|
67
107
|
id: z.ZodUUID;
|
|
108
|
+
flowId: z.ZodString;
|
|
68
109
|
name: z.ZodString;
|
|
69
110
|
version: z.ZodNumber;
|
|
70
111
|
status: z.ZodString;
|
|
@@ -73,9 +114,22 @@ export declare const OAuthConnectionUsageDTOSchema: z.ZodObject<{
|
|
|
73
114
|
export declare const UpdateIntegrationConnectionNameBodySchema: z.ZodObject<{
|
|
74
115
|
updatedName: z.ZodString;
|
|
75
116
|
}, z.core.$strip>;
|
|
117
|
+
export declare const IntegrationConnectionOAuthUrlQuerySchema: z.ZodObject<{
|
|
118
|
+
hostType: z.ZodEnum<{
|
|
119
|
+
APP: "APP";
|
|
120
|
+
SHARED: "SHARED";
|
|
121
|
+
}>;
|
|
122
|
+
packageId: z.ZodString;
|
|
123
|
+
serviceId: z.ZodString;
|
|
124
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type OAuthConnectionErrorType = z.infer<typeof OAuthConnectionErrorTypeSchema>;
|
|
127
|
+
export type OAuthConnectionError = z.infer<typeof OAuthConnectionErrorSchema>;
|
|
128
|
+
export type OAuthConnectionErrorDTO = z.infer<typeof OAuthConnectionErrorDTOSchema>;
|
|
76
129
|
export type OAuthConnectionDTO = z.infer<typeof OAuthConnectionDTOSchema>;
|
|
77
130
|
export type OAuthConnectionListDTO = z.infer<typeof OAuthConnectionListDTOSchema>;
|
|
78
131
|
export type OAuthConnectionUsageDTO = z.infer<typeof OAuthConnectionUsageDTOSchema>;
|
|
79
132
|
export type ConnectionInfoDTO = z.infer<typeof ConnectionInfoDTOSchema>;
|
|
133
|
+
export type IntegrationConnectionOAuthUrlQuery = z.infer<typeof IntegrationConnectionOAuthUrlQuerySchema>;
|
|
80
134
|
export type ConnectionInfoListDTO = z.infer<typeof ConnectionInfoListDTOSchema>;
|
|
81
135
|
export type UpdateIntegrationConnectionNameBodyDTO = z.infer<typeof UpdateIntegrationConnectionNameBodySchema>;
|
|
@@ -49,6 +49,9 @@ export declare const AccountNotificationDTOSchema: z.ZodObject<{
|
|
|
49
49
|
FLOW_INSTANCES_EXPORT_COMPLETED: "FLOW_INSTANCES_EXPORT_COMPLETED";
|
|
50
50
|
FLOW_INSTANCES_EXPORT_FAILED: "FLOW_INSTANCES_EXPORT_FAILED";
|
|
51
51
|
PASSWORD_RESTORE_REQUESTED: "PASSWORD_RESTORE_REQUESTED";
|
|
52
|
+
ACTIVATED_BY_SSO: "ACTIVATED_BY_SSO";
|
|
53
|
+
SSO_RELINK_PERMITTED: "SSO_RELINK_PERMITTED";
|
|
54
|
+
SSO_SIGN_IN_LINKS_REQUESTED: "SSO_SIGN_IN_LINKS_REQUESTED";
|
|
52
55
|
WORKSPACE_DEV_INVITATION: "WORKSPACE_DEV_INVITATION";
|
|
53
56
|
ACCOUNT_STATUS_CHANGED: "ACCOUNT_STATUS_CHANGED";
|
|
54
57
|
LOGIN_OTP_ISSUED: "LOGIN_OTP_ISSUED";
|
|
@@ -88,6 +91,7 @@ export declare const WorkspaceNotificationDTOSchema: z.ZodObject<{
|
|
|
88
91
|
WORKSPACE_UNBLOCKED: "WORKSPACE_UNBLOCKED";
|
|
89
92
|
FLOW_INSTANCE_TERMINATED: "FLOW_INSTANCE_TERMINATED";
|
|
90
93
|
FLOW_EXTENSION_POLLING_TRIGGER_FAILED: "FLOW_EXTENSION_POLLING_TRIGGER_FAILED";
|
|
94
|
+
OAUTH_CONNECTION_REFRESH_TOKEN_FAILED: "OAUTH_CONNECTION_REFRESH_TOKEN_FAILED";
|
|
91
95
|
FLOW_EXTENSION_REALTIME_TRIGGER_FAILED: "FLOW_EXTENSION_REALTIME_TRIGGER_FAILED";
|
|
92
96
|
WORKSPACE_CLONING_COMPLETED: "WORKSPACE_CLONING_COMPLETED";
|
|
93
97
|
WORKSPACE_CLONING_FAILED: "WORKSPACE_CLONING_FAILED";
|
|
@@ -11,6 +11,9 @@ export declare const AccountNotificationRequestBodySchema: z.ZodObject<{
|
|
|
11
11
|
FLOW_INSTANCES_EXPORT_COMPLETED: "FLOW_INSTANCES_EXPORT_COMPLETED";
|
|
12
12
|
FLOW_INSTANCES_EXPORT_FAILED: "FLOW_INSTANCES_EXPORT_FAILED";
|
|
13
13
|
PASSWORD_RESTORE_REQUESTED: "PASSWORD_RESTORE_REQUESTED";
|
|
14
|
+
ACTIVATED_BY_SSO: "ACTIVATED_BY_SSO";
|
|
15
|
+
SSO_RELINK_PERMITTED: "SSO_RELINK_PERMITTED";
|
|
16
|
+
SSO_SIGN_IN_LINKS_REQUESTED: "SSO_SIGN_IN_LINKS_REQUESTED";
|
|
14
17
|
WORKSPACE_DEV_INVITATION: "WORKSPACE_DEV_INVITATION";
|
|
15
18
|
ACCOUNT_STATUS_CHANGED: "ACCOUNT_STATUS_CHANGED";
|
|
16
19
|
LOGIN_OTP_ISSUED: "LOGIN_OTP_ISSUED";
|
|
@@ -34,6 +37,7 @@ export declare const WorkspaceNotificationRequestBodySchema: z.ZodObject<{
|
|
|
34
37
|
WORKSPACE_UNBLOCKED: "WORKSPACE_UNBLOCKED";
|
|
35
38
|
FLOW_INSTANCE_TERMINATED: "FLOW_INSTANCE_TERMINATED";
|
|
36
39
|
FLOW_EXTENSION_POLLING_TRIGGER_FAILED: "FLOW_EXTENSION_POLLING_TRIGGER_FAILED";
|
|
40
|
+
OAUTH_CONNECTION_REFRESH_TOKEN_FAILED: "OAUTH_CONNECTION_REFRESH_TOKEN_FAILED";
|
|
37
41
|
FLOW_EXTENSION_REALTIME_TRIGGER_FAILED: "FLOW_EXTENSION_REALTIME_TRIGGER_FAILED";
|
|
38
42
|
WORKSPACE_CLONING_COMPLETED: "WORKSPACE_CLONING_COMPLETED";
|
|
39
43
|
WORKSPACE_CLONING_FAILED: "WORKSPACE_CLONING_FAILED";
|
|
@@ -83,6 +87,9 @@ export declare const AccountNotificationsResponseSchema: z.ZodObject<{
|
|
|
83
87
|
FLOW_INSTANCES_EXPORT_COMPLETED: "FLOW_INSTANCES_EXPORT_COMPLETED";
|
|
84
88
|
FLOW_INSTANCES_EXPORT_FAILED: "FLOW_INSTANCES_EXPORT_FAILED";
|
|
85
89
|
PASSWORD_RESTORE_REQUESTED: "PASSWORD_RESTORE_REQUESTED";
|
|
90
|
+
ACTIVATED_BY_SSO: "ACTIVATED_BY_SSO";
|
|
91
|
+
SSO_RELINK_PERMITTED: "SSO_RELINK_PERMITTED";
|
|
92
|
+
SSO_SIGN_IN_LINKS_REQUESTED: "SSO_SIGN_IN_LINKS_REQUESTED";
|
|
86
93
|
WORKSPACE_DEV_INVITATION: "WORKSPACE_DEV_INVITATION";
|
|
87
94
|
ACCOUNT_STATUS_CHANGED: "ACCOUNT_STATUS_CHANGED";
|
|
88
95
|
LOGIN_OTP_ISSUED: "LOGIN_OTP_ISSUED";
|
|
@@ -127,6 +134,7 @@ export declare const WorkspaceNotificationsResponseSchema: z.ZodObject<{
|
|
|
127
134
|
WORKSPACE_UNBLOCKED: "WORKSPACE_UNBLOCKED";
|
|
128
135
|
FLOW_INSTANCE_TERMINATED: "FLOW_INSTANCE_TERMINATED";
|
|
129
136
|
FLOW_EXTENSION_POLLING_TRIGGER_FAILED: "FLOW_EXTENSION_POLLING_TRIGGER_FAILED";
|
|
137
|
+
OAUTH_CONNECTION_REFRESH_TOKEN_FAILED: "OAUTH_CONNECTION_REFRESH_TOKEN_FAILED";
|
|
130
138
|
FLOW_EXTENSION_REALTIME_TRIGGER_FAILED: "FLOW_EXTENSION_REALTIME_TRIGGER_FAILED";
|
|
131
139
|
WORKSPACE_CLONING_COMPLETED: "WORKSPACE_CLONING_COMPLETED";
|
|
132
140
|
WORKSPACE_CLONING_FAILED: "WORKSPACE_CLONING_FAILED";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Onboarding DTO Schemas
|
|
3
|
+
*
|
|
4
|
+
* Per-(account, workspace) onboarding/guidance state, stored in a Console-owned main-DB collection.
|
|
5
|
+
* Generic keyed maps so new tours and dismissible hints are added by key, with no schema change:
|
|
6
|
+
* - `completedTours`: tourKey -> when the user completed/skipped that tour in this workspace.
|
|
7
|
+
* - `dismissedHints`: hintKey -> when the user dismissed that hint/invite in this workspace.
|
|
8
|
+
* All state is per user, per workspace.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
export declare const OnboardingStateDTOSchema: z.ZodObject<{
|
|
12
|
+
_id: z.ZodString;
|
|
13
|
+
accountId: z.ZodString;
|
|
14
|
+
workspaceId: z.ZodString;
|
|
15
|
+
completedTours: z.ZodRecord<z.ZodString, z.ZodCoercedDate<unknown>>;
|
|
16
|
+
dismissedHints: z.ZodRecord<z.ZodString, z.ZodCoercedDate<unknown>>;
|
|
17
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
18
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type OnboardingStateDTO = z.infer<typeof OnboardingStateDTOSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* Client-facing onboarding state: just the two keyed maps. Returned by the onboarding read/write
|
|
23
|
+
* endpoints. Both maps are always present (empty when nothing has happened yet).
|
|
24
|
+
*/
|
|
25
|
+
export declare const OnboardingStateViewSchema: z.ZodObject<{
|
|
26
|
+
completedTours: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodCoercedDate<unknown>>>;
|
|
27
|
+
dismissedHints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodCoercedDate<unknown>>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type OnboardingStateView = z.infer<typeof OnboardingStateViewSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dto';
|
|
@@ -13,11 +13,25 @@ export declare const SharedExtensionConfigStatusSchema: z.ZodEnum<{
|
|
|
13
13
|
export declare const InstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
14
14
|
name: "name";
|
|
15
15
|
serviceId: "serviceId";
|
|
16
|
+
enabled: "enabled";
|
|
16
17
|
status: "status";
|
|
17
18
|
updatedAt: "updatedAt";
|
|
18
19
|
runnerVersion: "runnerVersion";
|
|
19
20
|
}>;
|
|
20
21
|
export declare const InstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
22
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
name: "name";
|
|
24
|
+
serviceId: "serviceId";
|
|
25
|
+
enabled: "enabled";
|
|
26
|
+
status: "status";
|
|
27
|
+
updatedAt: "updatedAt";
|
|
28
|
+
runnerVersion: "runnerVersion";
|
|
29
|
+
}>>;
|
|
30
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
31
|
+
asc: "asc";
|
|
32
|
+
desc: "desc";
|
|
33
|
+
}>>;
|
|
34
|
+
search: z.ZodOptional<z.ZodString>;
|
|
21
35
|
runnerVersion: z.ZodOptional<z.ZodEnum<{
|
|
22
36
|
v1: "v1";
|
|
23
37
|
v2: "v2";
|
|
@@ -35,18 +49,10 @@ export declare const InstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
|
35
49
|
configured: "configured";
|
|
36
50
|
missing: "missing";
|
|
37
51
|
}>>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
status: "status";
|
|
42
|
-
updatedAt: "updatedAt";
|
|
43
|
-
runnerVersion: "runnerVersion";
|
|
44
|
-
}>>;
|
|
45
|
-
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
46
|
-
asc: "asc";
|
|
47
|
-
desc: "desc";
|
|
52
|
+
enabled: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
true: "true";
|
|
54
|
+
false: "false";
|
|
48
55
|
}>>;
|
|
49
|
-
search: z.ZodOptional<z.ZodString>;
|
|
50
56
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
51
57
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
52
58
|
}, z.core.$strip>;
|
|
@@ -97,6 +103,11 @@ export declare const InstalledSharedExtensionsCountsSchema: z.ZodObject<{
|
|
|
97
103
|
configured: z.ZodNumber;
|
|
98
104
|
missing: z.ZodNumber;
|
|
99
105
|
}, z.core.$strip>;
|
|
106
|
+
enabled: z.ZodObject<{
|
|
107
|
+
any: z.ZodNumber;
|
|
108
|
+
enabled: z.ZodNumber;
|
|
109
|
+
disabled: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
100
111
|
}, z.core.$strip>;
|
|
101
112
|
export declare const InstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
102
113
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -149,6 +160,11 @@ export declare const InstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
|
149
160
|
configured: z.ZodNumber;
|
|
150
161
|
missing: z.ZodNumber;
|
|
151
162
|
}, z.core.$strip>;
|
|
163
|
+
enabled: z.ZodObject<{
|
|
164
|
+
any: z.ZodNumber;
|
|
165
|
+
enabled: z.ZodNumber;
|
|
166
|
+
disabled: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>;
|
|
152
168
|
}, z.core.$strip>;
|
|
153
169
|
}, z.core.$strip>;
|
|
154
170
|
export declare const NotInstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
@@ -178,6 +194,30 @@ export declare const NotInstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
|
178
194
|
page: z.ZodNumber;
|
|
179
195
|
limit: z.ZodNumber;
|
|
180
196
|
}, z.core.$strip>;
|
|
197
|
+
export declare const SharedExtensionBulkTargetsQuerySchema: z.ZodObject<{
|
|
198
|
+
search: z.ZodOptional<z.ZodString>;
|
|
199
|
+
runnerVersion: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
v1: "v1";
|
|
201
|
+
v2: "v2";
|
|
202
|
+
}>>;
|
|
203
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
204
|
+
up_to_date: "up_to_date";
|
|
205
|
+
update_available: "update_available";
|
|
206
|
+
legacy: "legacy";
|
|
207
|
+
}>>;
|
|
208
|
+
oauth: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
true: "true";
|
|
210
|
+
false: "false";
|
|
211
|
+
}>>;
|
|
212
|
+
config: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
configured: "configured";
|
|
214
|
+
missing: "missing";
|
|
215
|
+
}>>;
|
|
216
|
+
enabled: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
true: "true";
|
|
218
|
+
false: "false";
|
|
219
|
+
}>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
181
221
|
export declare const SharedExtensionBulkTargetSchema: z.ZodObject<{
|
|
182
222
|
serviceId: z.ZodString;
|
|
183
223
|
enabled: z.ZodBoolean;
|
|
@@ -207,3 +247,4 @@ export type NotInstalledSharedExtensionsQueryInput = z.input<typeof NotInstalled
|
|
|
207
247
|
export type NotInstalledSharedExtensionsPage = z.infer<typeof NotInstalledSharedExtensionsPageSchema>;
|
|
208
248
|
export type SharedExtensionBulkTarget = z.infer<typeof SharedExtensionBulkTargetSchema>;
|
|
209
249
|
export type SharedExtensionBulkTargets = z.infer<typeof SharedExtensionBulkTargetsSchema>;
|
|
250
|
+
export type SharedExtensionBulkTargetsQuery = z.infer<typeof SharedExtensionBulkTargetsQuerySchema>;
|
|
@@ -23,18 +23,18 @@ export declare const WorkspaceStackUsagesJavaDTOSchema: z.ZodArray<z.ZodObject<{
|
|
|
23
23
|
export declare const WorkspaceStackUsageDTOSchema: z.ZodObject<{
|
|
24
24
|
serviceId: z.ZodString;
|
|
25
25
|
serviceName: z.ZodString;
|
|
26
|
+
packageId: z.ZodString;
|
|
26
27
|
integrationName: z.ZodString;
|
|
27
28
|
integrationIcon: z.ZodNullable<z.ZodString>;
|
|
28
29
|
sourceHash: z.ZodString;
|
|
29
|
-
packageId: z.ZodString;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
export declare const WorkspaceStackUsagesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
32
32
|
serviceId: z.ZodString;
|
|
33
33
|
serviceName: z.ZodString;
|
|
34
|
+
packageId: z.ZodString;
|
|
34
35
|
integrationName: z.ZodString;
|
|
35
36
|
integrationIcon: z.ZodNullable<z.ZodString>;
|
|
36
37
|
sourceHash: z.ZodString;
|
|
37
|
-
packageId: z.ZodString;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
39
|
export type WorkspaceStackExtensionDTO = z.infer<typeof WorkspaceStackExtensionDTOSchema>;
|
|
40
40
|
export type WorkspaceStackResponse = z.infer<typeof WorkspaceStackResponseSchema>;
|