@membranehq/sdk 0.19.0 → 0.20.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/dist/bundle.d.ts +15 -10
- package/dist/bundle.js +14 -2
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +1 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -1
- package/dist/dts/agent/session.d.ts +9 -0
- package/dist/dts/functions/base.d.ts +1 -0
- package/dist/dts/functions/function-types/index.d.ts +2 -2
- package/dist/dts/functions/function-types/rest-api-mapping.d.ts +6 -6
- package/dist/dts/orgs/types.d.ts +1 -0
- package/dist/dts/ui.d.ts +5 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +8 -1
- package/dist/dts/workspace-elements/base/connections/index.d.ts +1 -1
- package/dist/dts/workspaces/types.d.ts +2 -0
- package/dist/index.browser.d.mts +58 -33
- package/dist/index.browser.d.ts +58 -33
- package/dist/index.browser.js +62 -6
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +59 -7
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +58 -33
- package/dist/index.node.d.ts +58 -33
- package/dist/index.node.js +62 -6
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +59 -7
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ export declare class ConnectionAccessor {
|
|
|
65
65
|
archivedAt?: string | undefined;
|
|
66
66
|
isDeactivated?: boolean | undefined;
|
|
67
67
|
meta?: Record<string, any> | undefined;
|
|
68
|
-
|
|
68
|
+
buildingAgentSessionId?: string | undefined;
|
|
69
69
|
clientAction?: {
|
|
70
70
|
type: "connect" | "provide-input";
|
|
71
71
|
description: string;
|
|
@@ -72,7 +72,7 @@ export declare class IntegrationAccessor extends ElementAccessor<IntegrationApiR
|
|
|
72
72
|
archivedAt?: string | undefined;
|
|
73
73
|
isDeactivated?: boolean | undefined;
|
|
74
74
|
meta?: Record<string, any> | undefined;
|
|
75
|
-
|
|
75
|
+
buildingAgentSessionId?: string | undefined;
|
|
76
76
|
clientAction?: {
|
|
77
77
|
type: "connect" | "provide-input";
|
|
78
78
|
description: string;
|
|
@@ -57,9 +57,18 @@ export declare const CreateAgentSession: z.ZodObject<{
|
|
|
57
57
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export type CreateAgentSession = z.infer<typeof CreateAgentSession>;
|
|
60
|
+
export declare const AgentSessionAttachment: z.ZodObject<{
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
data: z.ZodUnknown;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type AgentSessionAttachment = z.infer<typeof AgentSessionAttachment>;
|
|
60
65
|
export declare const AgentSessionInputSchema: z.ZodObject<{
|
|
61
66
|
input: z.ZodString;
|
|
62
67
|
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
title: z.ZodString;
|
|
70
|
+
data: z.ZodUnknown;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
63
72
|
}, z.core.$strip>;
|
|
64
73
|
export type AgentSessionInput = z.infer<typeof AgentSessionInputSchema>;
|
|
65
74
|
export declare const PatchAgentSessionSchema: z.ZodObject<{
|
|
@@ -26,3 +26,4 @@ export declare const GenericFunctionDefinition: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
}, z.core.$loose>;
|
|
28
28
|
export type GenericFunctionDefinition = z.infer<typeof GenericFunctionDefinition>;
|
|
29
|
+
export declare function validateFunctionDefinitions(functions: Record<string, GenericFunctionDefinition>, schema: z.ZodType): void;
|
|
@@ -19,12 +19,12 @@ export declare const FunctionDefinition: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
19
19
|
mapping: z.ZodObject<{
|
|
20
20
|
path: z.ZodString;
|
|
21
21
|
method: z.ZodString;
|
|
22
|
-
requestMapping: z.ZodObject<{
|
|
22
|
+
requestMapping: z.ZodOptional<z.ZodObject<{
|
|
23
23
|
pathParameters: z.ZodOptional<z.ZodAny>;
|
|
24
24
|
query: z.ZodOptional<z.ZodAny>;
|
|
25
25
|
data: z.ZodOptional<z.ZodAny>;
|
|
26
26
|
headers: z.ZodOptional<z.ZodAny>;
|
|
27
|
-
}, z.core.$strip
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
28
|
responseMapping: z.ZodOptional<z.ZodAny>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -10,24 +10,24 @@ export type RequestMappingSchema = z.infer<typeof RequestMappingSchema>;
|
|
|
10
10
|
export declare const RestApiMappingSchema: z.ZodObject<{
|
|
11
11
|
path: z.ZodString;
|
|
12
12
|
method: z.ZodString;
|
|
13
|
-
requestMapping: z.ZodObject<{
|
|
13
|
+
requestMapping: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
pathParameters: z.ZodOptional<z.ZodAny>;
|
|
15
15
|
query: z.ZodOptional<z.ZodAny>;
|
|
16
16
|
data: z.ZodOptional<z.ZodAny>;
|
|
17
17
|
headers: z.ZodOptional<z.ZodAny>;
|
|
18
|
-
}, z.core.$strip
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
19
|
responseMapping: z.ZodOptional<z.ZodAny>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type RestApiMappingSchema = z.infer<typeof RestApiMappingSchema>;
|
|
22
22
|
export declare const OpenapiMappingSchema: z.ZodObject<{
|
|
23
23
|
path: z.ZodString;
|
|
24
24
|
method: z.ZodString;
|
|
25
|
-
requestMapping: z.ZodObject<{
|
|
25
|
+
requestMapping: z.ZodOptional<z.ZodObject<{
|
|
26
26
|
pathParameters: z.ZodOptional<z.ZodAny>;
|
|
27
27
|
query: z.ZodOptional<z.ZodAny>;
|
|
28
28
|
data: z.ZodOptional<z.ZodAny>;
|
|
29
29
|
headers: z.ZodOptional<z.ZodAny>;
|
|
30
|
-
}, z.core.$strip
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
31
|
responseMapping: z.ZodOptional<z.ZodAny>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type OpenapiMappingSchema = z.infer<typeof OpenapiMappingSchema>;
|
|
@@ -36,12 +36,12 @@ export declare const RestApiMappingFunction: z.ZodObject<{
|
|
|
36
36
|
mapping: z.ZodObject<{
|
|
37
37
|
path: z.ZodString;
|
|
38
38
|
method: z.ZodString;
|
|
39
|
-
requestMapping: z.ZodObject<{
|
|
39
|
+
requestMapping: z.ZodOptional<z.ZodObject<{
|
|
40
40
|
pathParameters: z.ZodOptional<z.ZodAny>;
|
|
41
41
|
query: z.ZodOptional<z.ZodAny>;
|
|
42
42
|
data: z.ZodOptional<z.ZodAny>;
|
|
43
43
|
headers: z.ZodOptional<z.ZodAny>;
|
|
44
|
-
}, z.core.$strip
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
45
|
responseMapping: z.ZodOptional<z.ZodAny>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
}, z.core.$strip>;
|
package/dist/dts/orgs/types.d.ts
CHANGED
|
@@ -650,6 +650,7 @@ export declare const AccountResponse: z.ZodObject<{
|
|
|
650
650
|
isThrottled: z.ZodOptional<z.ZodBoolean>;
|
|
651
651
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
652
652
|
isBackgroundJobsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
653
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
653
654
|
lastExternalApiRequestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
655
|
}, z.core.$strip>>;
|
|
655
656
|
superAdminToken: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MembraneApiClient } from './api-client';
|
|
2
2
|
import { ConnectionApiResponse, ConnectUIOptions } from './workspace-elements/api/connections-api';
|
|
3
3
|
export { ConnectUIOptions };
|
|
4
|
+
export interface ConnectionUIOptions {
|
|
5
|
+
connectionId: string;
|
|
6
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
7
|
+
}
|
|
4
8
|
export interface UNSAFE_AgentSessionUIOptions {
|
|
5
9
|
sessionId: string;
|
|
6
10
|
theme?: 'light' | 'dark' | 'auto';
|
|
@@ -9,5 +13,6 @@ export declare class UI {
|
|
|
9
13
|
private client;
|
|
10
14
|
constructor(client: MembraneApiClient);
|
|
11
15
|
connect(options?: ConnectUIOptions): Promise<ConnectionApiResponse | null>;
|
|
16
|
+
connection(options: ConnectionUIOptions): Promise<ConnectionApiResponse | null>;
|
|
12
17
|
UNSAFE_agentSession(options: UNSAFE_AgentSessionUIOptions): Promise<void>;
|
|
13
18
|
}
|
|
@@ -171,7 +171,7 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
171
171
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
172
172
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
173
173
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
174
|
-
|
|
174
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
175
175
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
176
176
|
type: z.ZodEnum<{
|
|
177
177
|
connect: "connect";
|
|
@@ -389,7 +389,7 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
389
389
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
390
390
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
391
391
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
392
|
-
|
|
392
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
393
393
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
394
394
|
type: z.ZodEnum<{
|
|
395
395
|
connect: "connect";
|
|
@@ -126,7 +126,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
126
126
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
127
127
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
128
128
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
129
|
-
|
|
129
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
130
130
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
131
131
|
type: z.ZodEnum<{
|
|
132
132
|
connect: "connect";
|
|
@@ -224,7 +224,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
|
|
|
224
224
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
225
225
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
226
226
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
227
|
-
|
|
227
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
228
228
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
229
229
|
type: z.ZodEnum<{
|
|
230
230
|
connect: "connect";
|
|
@@ -330,7 +330,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
330
330
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
331
331
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
332
332
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
333
|
-
|
|
333
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
334
334
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
335
335
|
type: z.ZodEnum<{
|
|
336
336
|
connect: "connect";
|
|
@@ -162,7 +162,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
162
162
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
163
163
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
164
164
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
165
|
-
|
|
165
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
166
166
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
type: z.ZodEnum<{
|
|
168
168
|
connect: "connect";
|
|
@@ -436,7 +436,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
436
436
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
437
437
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
438
438
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
439
|
-
|
|
439
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
440
440
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
441
441
|
type: z.ZodEnum<{
|
|
442
442
|
connect: "connect";
|
|
@@ -1037,7 +1037,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
1037
1037
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
1038
1038
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
1039
1039
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1040
|
-
|
|
1040
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
1041
1041
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
1042
1042
|
type: z.ZodEnum<{
|
|
1043
1043
|
connect: "connect";
|
|
@@ -66,7 +66,7 @@ export declare const ExternalApiLogApiResponse: z.ZodObject<{
|
|
|
66
66
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
67
67
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
68
68
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
69
|
-
|
|
69
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
70
70
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
71
71
|
type: z.ZodEnum<{
|
|
72
72
|
connect: "connect";
|
|
@@ -149,7 +149,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
149
149
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
150
150
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
151
151
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
152
|
-
|
|
152
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
153
153
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
154
154
|
type: z.ZodEnum<{
|
|
155
155
|
connect: "connect";
|
|
@@ -162,7 +162,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
162
162
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
163
163
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
164
164
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
165
|
-
|
|
165
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
166
166
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
type: z.ZodEnum<{
|
|
168
168
|
connect: "connect";
|
|
@@ -85,7 +85,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
85
85
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
86
86
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
87
87
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
88
|
-
|
|
88
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
89
89
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
type: z.ZodEnum<{
|
|
91
91
|
connect: "connect";
|
|
@@ -236,7 +236,7 @@ export declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
236
236
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
237
237
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
238
238
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
239
|
-
|
|
239
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
240
240
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
241
241
|
type: z.ZodEnum<{
|
|
242
242
|
connect: "connect";
|
|
@@ -536,7 +536,7 @@ export declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
536
536
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
537
537
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
538
538
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
539
|
-
|
|
539
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
540
540
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
541
541
|
type: z.ZodEnum<{
|
|
542
542
|
connect: "connect";
|
|
@@ -154,7 +154,7 @@ export declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
154
154
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
155
155
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
157
|
-
|
|
157
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
158
158
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
159
159
|
type: z.ZodEnum<{
|
|
160
160
|
connect: "connect";
|
|
@@ -354,7 +354,7 @@ export declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
354
354
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
355
355
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
356
356
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
357
|
-
|
|
357
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
358
358
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
359
359
|
type: z.ZodEnum<{
|
|
360
360
|
connect: "connect";
|
|
@@ -273,7 +273,7 @@ export declare const FlowApiResponse: z.ZodObject<{
|
|
|
273
273
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
274
274
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
275
275
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
276
|
-
|
|
276
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
277
277
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
278
278
|
type: z.ZodEnum<{
|
|
279
279
|
connect: "connect";
|
|
@@ -629,7 +629,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
629
629
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
630
630
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
631
631
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
632
|
-
|
|
632
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
633
633
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
634
634
|
type: z.ZodEnum<{
|
|
635
635
|
connect: "connect";
|
|
@@ -64,7 +64,7 @@ export declare const IncomingWebhookApiResponse: z.ZodObject<{
|
|
|
64
64
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
65
65
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
66
66
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
67
|
-
|
|
67
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
68
68
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
69
69
|
type: z.ZodEnum<{
|
|
70
70
|
connect: "connect";
|
|
@@ -156,7 +156,7 @@ export declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
156
156
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
157
157
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
158
158
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
159
|
-
|
|
159
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
160
160
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
161
161
|
type: z.ZodEnum<{
|
|
162
162
|
connect: "connect";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ErrorDataSchema } from '../../../errors';
|
|
3
3
|
export declare const CONNECTION_REQUEST_SCREEN_PATH = "screens/connect";
|
|
4
|
+
export declare const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = "screens/connections";
|
|
4
5
|
export declare const CONNECTION_REQUEST_ID_PARAM = "connectionRequestId";
|
|
5
|
-
export declare function getConnectionRequestUrl(baseUri: string, requestId: string
|
|
6
|
+
export declare function getConnectionRequestUrl(baseUri: string, requestId: string, options?: {
|
|
7
|
+
prompt?: string;
|
|
8
|
+
}): string;
|
|
6
9
|
export declare const CreateConnectionRequestPayload: z.ZodObject<{
|
|
7
10
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
8
11
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -14,8 +17,11 @@ export declare const CreateConnectionRequestPayload: z.ZodObject<{
|
|
|
14
17
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
15
18
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
19
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
20
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
17
21
|
}, z.core.$strip>;
|
|
18
22
|
export type CreateConnectionRequestPayload = z.infer<typeof CreateConnectionRequestPayload>;
|
|
23
|
+
export declare const PatchConnectionRequestPayload: z.ZodObject<{}, z.core.$strip>;
|
|
24
|
+
export type PatchConnectionRequestPayload = z.infer<typeof PatchConnectionRequestPayload>;
|
|
19
25
|
export declare const ConnectionRequest: z.ZodObject<{
|
|
20
26
|
requestId: z.ZodString;
|
|
21
27
|
tenantId: z.ZodString;
|
|
@@ -29,6 +35,7 @@ export declare const ConnectionRequest: z.ZodObject<{
|
|
|
29
35
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
30
36
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
37
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
38
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
32
39
|
status: z.ZodEnum<{
|
|
33
40
|
success: "success";
|
|
34
41
|
error: "error";
|
|
@@ -54,7 +54,7 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
54
54
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
55
55
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
57
|
-
|
|
57
|
+
buildingAgentSessionId: z.ZodOptional<z.ZodString>;
|
|
58
58
|
clientAction: z.ZodOptional<z.ZodObject<{
|
|
59
59
|
type: z.ZodEnum<{
|
|
60
60
|
connect: "connect";
|
|
@@ -568,6 +568,7 @@ export declare const Workspace: z.ZodObject<{
|
|
|
568
568
|
isThrottled: z.ZodOptional<z.ZodBoolean>;
|
|
569
569
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
570
570
|
isBackgroundJobsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
571
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
571
572
|
lastExternalApiRequestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
572
573
|
}, z.core.$strip>;
|
|
573
574
|
export declare const AppSchema: z.ZodObject<{
|
|
@@ -836,6 +837,7 @@ export declare const AppSchema: z.ZodObject<{
|
|
|
836
837
|
isThrottled: z.ZodOptional<z.ZodBoolean>;
|
|
837
838
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
838
839
|
isBackgroundJobsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
840
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
839
841
|
lastExternalApiRequestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
842
|
}, z.core.$strip>;
|
|
841
843
|
export type Workspace = z.infer<typeof Workspace>;
|