@membranehq/sdk 0.28.3 → 0.29.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 +43 -2
- package/dist/bundle.js +1891 -1380
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connection-events-listener.d.ts +14 -0
- package/dist/dts/accessors/connection-events-listener.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +4 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/agent/worker-contracts.d.ts +2 -1
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +682 -50
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +32 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +0 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +24 -1
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +28 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-types-api.d.ts +331 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +14 -7
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +19 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.d.ts +46 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +3 -2
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +4 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +5 -5
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/external-event-types/index.d.ts +190 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -2
- package/dist/dts/workspace-elements/types.d.ts +11 -2
- package/dist/dts/workspace-tokens/index.d.ts +1 -0
- package/dist/dts/{client-tokens → workspace-tokens}/types.d.ts +35 -22
- package/dist/dts/workspaces/api.d.ts +0 -6
- package/dist/dts/workspaces/compare.d.ts +4 -1
- package/dist/index.browser.d.mts +2275 -855
- package/dist/index.browser.d.ts +2275 -855
- package/dist/index.browser.js +686 -194
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +647 -188
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +2275 -855
- package/dist/index.node.d.ts +2275 -855
- package/dist/index.node.js +686 -194
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +647 -188
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PLATFORM_USER_TOKEN_GRANT_TYPES: readonly ["cli-oauth"];
|
|
3
|
+
export declare const PlatformUserTokenGrantType: z.ZodEnum<{
|
|
4
|
+
"cli-oauth": "cli-oauth";
|
|
5
|
+
}>;
|
|
6
|
+
export type PlatformUserTokenGrantType = z.infer<typeof PlatformUserTokenGrantType>;
|
|
7
|
+
export declare const PlatformUserToken: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
platformUserId: z.ZodString;
|
|
10
|
+
grantType: z.ZodEnum<{
|
|
11
|
+
"cli-oauth": "cli-oauth";
|
|
12
|
+
}>;
|
|
13
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
grantName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
defaultWorkspaceKey: z.ZodOptional<z.ZodString>;
|
|
17
|
+
defaultTenantKey: z.ZodOptional<z.ZodString>;
|
|
18
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
lastUsedDate: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type PlatformUserToken = z.infer<typeof PlatformUserToken>;
|
|
24
|
+
export declare const PlatformUserTokenListResponse: z.ZodObject<{
|
|
25
|
+
items: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
platformUserId: z.ZodString;
|
|
28
|
+
grantType: z.ZodEnum<{
|
|
29
|
+
"cli-oauth": "cli-oauth";
|
|
30
|
+
}>;
|
|
31
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
grantName: z.ZodOptional<z.ZodString>;
|
|
33
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
defaultWorkspaceKey: z.ZodOptional<z.ZodString>;
|
|
35
|
+
defaultTenantKey: z.ZodOptional<z.ZodString>;
|
|
36
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
createdAt: z.ZodString;
|
|
39
|
+
lastUsedDate: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type PlatformUserTokenListResponse = z.infer<typeof PlatformUserTokenListResponse>;
|
|
@@ -22,44 +22,23 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
22
22
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
24
24
|
action: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
id: z.ZodString
|
|
26
|
-
uuid: z.ZodOptional<z.ZodString>;
|
|
27
|
-
key: z.ZodOptional<z.ZodString>;
|
|
28
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
30
|
-
integrationId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
25
|
+
id: z.ZodOptional<z.ZodString>;
|
|
32
26
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
parentKey: z.ZodOptional<z.ZodString>;
|
|
36
|
-
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
38
|
-
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
27
|
+
key: z.ZodOptional<z.ZodString>;
|
|
28
|
+
connectionKey: z.ZodOptional<z.ZodString>;
|
|
39
29
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
archivedAt: z.ZodOptional<z.ZodString>;
|
|
53
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
57
|
-
universalParentId: z.ZodOptional<z.ZodString>;
|
|
58
|
-
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
59
|
-
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
-
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
61
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
type: z.ZodString;
|
|
31
|
+
api: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
method: z.ZodEnum<typeof import("../../http-requests").HttpRequestMethod>;
|
|
33
|
+
path: z.ZodOptional<z.ZodString>;
|
|
34
|
+
url: z.ZodOptional<z.ZodString>;
|
|
35
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
36
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
code: z.ZodOptional<z.ZodString>;
|
|
40
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
41
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
63
42
|
}, z.core.$strip>>;
|
|
64
43
|
actionInstance: z.ZodOptional<z.ZodObject<{
|
|
65
44
|
id: z.ZodString;
|
|
@@ -184,6 +163,7 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
184
163
|
description: z.ZodString;
|
|
185
164
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
186
165
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
166
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
187
167
|
}, z.core.$strip>>;
|
|
188
168
|
userId: z.ZodString;
|
|
189
169
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -245,44 +225,23 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
245
225
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
246
226
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
247
227
|
action: z.ZodOptional<z.ZodObject<{
|
|
248
|
-
id: z.ZodString
|
|
249
|
-
uuid: z.ZodOptional<z.ZodString>;
|
|
250
|
-
key: z.ZodOptional<z.ZodString>;
|
|
251
|
-
description: z.ZodOptional<z.ZodString>;
|
|
252
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
253
|
-
integrationId: z.ZodOptional<z.ZodString>;
|
|
254
|
-
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
228
|
+
id: z.ZodOptional<z.ZodString>;
|
|
255
229
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
parentKey: z.ZodOptional<z.ZodString>;
|
|
259
|
-
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
261
|
-
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
230
|
+
key: z.ZodOptional<z.ZodString>;
|
|
231
|
+
connectionKey: z.ZodOptional<z.ZodString>;
|
|
262
232
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
archivedAt: z.ZodOptional<z.ZodString>;
|
|
276
|
-
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
-
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
280
|
-
universalParentId: z.ZodOptional<z.ZodString>;
|
|
281
|
-
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
282
|
-
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
-
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
284
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
285
|
-
tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
233
|
+
type: z.ZodString;
|
|
234
|
+
api: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
method: z.ZodEnum<typeof import("../../http-requests").HttpRequestMethod>;
|
|
236
|
+
path: z.ZodOptional<z.ZodString>;
|
|
237
|
+
url: z.ZodOptional<z.ZodString>;
|
|
238
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
239
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
240
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
code: z.ZodOptional<z.ZodString>;
|
|
243
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
244
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
286
245
|
}, z.core.$strip>>;
|
|
287
246
|
actionInstance: z.ZodOptional<z.ZodObject<{
|
|
288
247
|
id: z.ZodString;
|
|
@@ -407,6 +366,7 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
407
366
|
description: z.ZodString;
|
|
408
367
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
409
368
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
369
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
410
370
|
}, z.core.$strip>>;
|
|
411
371
|
userId: z.ZodString;
|
|
412
372
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -7,7 +7,6 @@ export declare const CheckpointApiResponse: z.ZodObject<{
|
|
|
7
7
|
checkpointNumber: z.ZodNumber;
|
|
8
8
|
snapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
9
|
createdAt: z.ZodString;
|
|
10
|
-
createdBy: z.ZodOptional<z.ZodString>;
|
|
11
10
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
export type CheckpointApiResponse = z.infer<typeof CheckpointApiResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { PaginationResponse } from '../../api';
|
|
3
|
-
import { ErrorDataSchema } from '../../errors';
|
|
3
|
+
import { ErrorDataSchema, MembraneError } from '../../errors';
|
|
4
4
|
import { HttpRequestMethod } from '../../http-requests';
|
|
5
5
|
export declare const FindConnectionsQuery: z.ZodObject<{
|
|
6
6
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -144,6 +144,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
144
144
|
description: z.ZodString;
|
|
145
145
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
146
146
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
147
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
147
148
|
}, z.core.$strip>>;
|
|
148
149
|
userId: z.ZodString;
|
|
149
150
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -249,6 +250,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
|
|
|
249
250
|
description: z.ZodString;
|
|
250
251
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
251
252
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
253
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
252
254
|
}, z.core.$strip>>;
|
|
253
255
|
userId: z.ZodString;
|
|
254
256
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -360,6 +362,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
360
362
|
description: z.ZodString;
|
|
361
363
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
362
364
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
365
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
363
366
|
}, z.core.$strip>>;
|
|
364
367
|
userId: z.ZodString;
|
|
365
368
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -436,6 +439,16 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
436
439
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
437
440
|
}, z.core.$strip>], "type">;
|
|
438
441
|
export type ConnectionMessagePayload = z.infer<typeof ConnectionMessagePayload>;
|
|
442
|
+
export declare const ConnectionEntityMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
443
|
+
type: z.ZodLiteral<"connected">;
|
|
444
|
+
connectionId: z.ZodString;
|
|
445
|
+
timestamp: z.ZodString;
|
|
446
|
+
message: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
+
type: z.ZodLiteral<"connectionPatched">;
|
|
449
|
+
connectionId: z.ZodString;
|
|
450
|
+
}, z.core.$strip>], "type">;
|
|
451
|
+
export type ConnectionEntityMessagePayload = z.infer<typeof ConnectionEntityMessagePayload>;
|
|
439
452
|
export declare const GenerateOptionsRequest: z.ZodObject<{
|
|
440
453
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
441
454
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -453,6 +466,8 @@ export declare const ConnectPayload: z.ZodObject<{
|
|
|
453
466
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
454
467
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
455
468
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
469
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
470
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
456
471
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
457
472
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
458
473
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -473,6 +488,8 @@ export declare const ConnectUIOptions: z.ZodObject<{
|
|
|
473
488
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
474
489
|
name: z.ZodOptional<z.ZodString>;
|
|
475
490
|
intent: z.ZodOptional<z.ZodString>;
|
|
491
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
492
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
476
493
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
477
494
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
478
495
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -491,7 +508,13 @@ export declare const ConnectUIOptions: z.ZodObject<{
|
|
|
491
508
|
}>>;
|
|
492
509
|
}, z.core.$strip>;
|
|
493
510
|
export type ConnectUIOptions = z.infer<typeof ConnectUIOptions>;
|
|
511
|
+
export interface LateConnectionEvents {
|
|
512
|
+
onConnection?: (connection: ConnectionApiResponse) => void;
|
|
513
|
+
onFailure?: (error: MembraneError) => void;
|
|
514
|
+
signal?: AbortSignal;
|
|
515
|
+
}
|
|
494
516
|
export type ConnectOptions = ConnectPayload & {
|
|
495
517
|
onPopupClosed?: () => void;
|
|
518
|
+
lateEvents?: LateConnectionEvents;
|
|
496
519
|
sameWindow?: boolean;
|
|
497
520
|
};
|
|
@@ -6,3 +6,13 @@ export declare const ListPublicConnectorsQuery: z.ZodObject<{
|
|
|
6
6
|
search: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type ListPublicConnectorsQuery = z.infer<typeof ListPublicConnectorsQuery>;
|
|
9
|
+
export declare const ListConnectorsQuery: z.ZodObject<{
|
|
10
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
11
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
12
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
search: z.ZodOptional<z.ZodString>;
|
|
14
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
15
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type ListConnectorsQuery = z.infer<typeof ListConnectorsQuery>;
|
|
@@ -176,6 +176,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
176
176
|
description: z.ZodString;
|
|
177
177
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
178
178
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
179
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
179
180
|
}, z.core.$strip>>;
|
|
180
181
|
userId: z.ZodString;
|
|
181
182
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -450,6 +450,7 @@ export declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
450
450
|
description: z.ZodString;
|
|
451
451
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
452
452
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
453
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
453
454
|
}, z.core.$strip>>;
|
|
454
455
|
userId: z.ZodString;
|
|
455
456
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -1056,6 +1057,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
1056
1057
|
description: z.ZodString;
|
|
1057
1058
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
1058
1059
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
1059
1061
|
}, z.core.$strip>>;
|
|
1060
1062
|
userId: z.ZodString;
|
|
1061
1063
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -80,6 +80,7 @@ export declare const ExternalApiLogApiResponse: z.ZodObject<{
|
|
|
80
80
|
description: z.ZodString;
|
|
81
81
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
82
82
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
83
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
83
84
|
}, z.core.$strip>>;
|
|
84
85
|
userId: z.ZodString;
|
|
85
86
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -8,3 +8,31 @@ export declare const ListExternalAppsQuery: z.ZodObject<{
|
|
|
8
8
|
isConnected: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type ListExternalAppsQuery = z.infer<typeof ListExternalAppsQuery>;
|
|
11
|
+
export declare const CreateExternalAppRequest: z.ZodObject<{
|
|
12
|
+
key: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
appUri: z.ZodOptional<z.ZodURL>;
|
|
15
|
+
logoUri: z.ZodOptional<z.ZodURL>;
|
|
16
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
defaultConnectorId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
basePackageId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
hasFreeTestAccount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
freeTestAccountGuide: z.ZodOptional<z.ZodString>;
|
|
21
|
+
freeTestAccountGuideVerifiedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
22
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type CreateExternalAppRequest = z.infer<typeof CreateExternalAppRequest>;
|
|
25
|
+
export declare const UpdateExternalAppRequest: z.ZodObject<{
|
|
26
|
+
key: z.ZodOptional<z.ZodString>;
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
appUri: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
|
|
29
|
+
logoUri: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
|
|
30
|
+
categories: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
31
|
+
defaultConnectorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
basePackageId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
hasFreeTestAccount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
34
|
+
freeTestAccountGuide: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
freeTestAccountGuideVerifiedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>>;
|
|
36
|
+
tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type UpdateExternalAppRequest = z.infer<typeof UpdateExternalAppRequest>;
|
|
@@ -8,6 +8,7 @@ export declare const ListExternalEventLogRecordsQuery: z.ZodObject<{
|
|
|
8
8
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
9
9
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
externalEventSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
status: z.ZodOptional<z.ZodEnum<typeof ExternalEventLogStatus>>;
|
|
12
13
|
externalAppId: z.ZodOptional<z.ZodString>;
|
|
13
14
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -23,6 +24,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
23
24
|
externalEventSubscriptionId: z.ZodString;
|
|
24
25
|
integrationId: z.ZodString;
|
|
25
26
|
connectionId: z.ZodString;
|
|
27
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
26
28
|
payload: z.ZodOptional<z.ZodAny>;
|
|
27
29
|
launchedFlowRunIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
30
|
status: z.ZodEnum<typeof ExternalEventLogStatus>;
|
|
@@ -49,6 +51,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
49
51
|
name: z.ZodOptional<z.ZodString>;
|
|
50
52
|
connectionId: z.ZodString;
|
|
51
53
|
integrationId: z.ZodString;
|
|
54
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
52
55
|
config: z.ZodOptional<z.ZodObject<{
|
|
53
56
|
type: z.ZodEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
|
|
54
57
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -79,6 +82,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
79
82
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
80
83
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
81
84
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
85
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
82
86
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
83
87
|
}, z.core.$strip>>;
|
|
84
88
|
integration: z.ZodOptional<z.ZodObject<{
|
|
@@ -164,6 +168,7 @@ export declare const ExternalEventLogRecordApiResponse: z.ZodObject<{
|
|
|
164
168
|
description: z.ZodString;
|
|
165
169
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
166
170
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
171
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
167
172
|
}, z.core.$strip>>;
|
|
168
173
|
userId: z.ZodString;
|
|
169
174
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -62,6 +62,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
62
62
|
name: z.ZodOptional<z.ZodString>;
|
|
63
63
|
connectionId: z.ZodString;
|
|
64
64
|
integrationId: z.ZodString;
|
|
65
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
65
66
|
config: z.ZodOptional<z.ZodObject<{
|
|
66
67
|
type: z.ZodEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
|
|
67
68
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -92,6 +93,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
92
93
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
93
94
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
94
95
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
96
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
95
97
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
96
98
|
}, z.core.$strip>>;
|
|
97
99
|
integration: z.ZodOptional<z.ZodObject<{
|
|
@@ -177,6 +179,7 @@ export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
|
177
179
|
description: z.ZodString;
|
|
178
180
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
179
181
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
182
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
180
183
|
}, z.core.$strip>>;
|
|
181
184
|
userId: z.ZodString;
|
|
182
185
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -9,9 +9,15 @@ export declare const ListExternalEventSubscriptionsQuery: z.ZodObject<{
|
|
|
9
9
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
externalAppId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
12
13
|
status: z.ZodOptional<z.ZodEnum<typeof ExternalEventSubscriptionStatus>>;
|
|
13
14
|
}, z.core.$strip>;
|
|
14
15
|
export type ListExternalEventSubscriptionsQuery = z.infer<typeof ListExternalEventSubscriptionsQuery>;
|
|
16
|
+
export declare const CreateExternalEventSubscriptionRequest: z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
externalEventTypeId: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type CreateExternalEventSubscriptionRequest = z.infer<typeof CreateExternalEventSubscriptionRequest>;
|
|
15
21
|
export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
16
22
|
userId: z.ZodString;
|
|
17
23
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -19,6 +25,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
19
25
|
name: z.ZodOptional<z.ZodString>;
|
|
20
26
|
connectionId: z.ZodString;
|
|
21
27
|
integrationId: z.ZodString;
|
|
28
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
22
29
|
config: z.ZodOptional<z.ZodObject<{
|
|
23
30
|
type: z.ZodEnum<typeof import("../base/external-event-subscriptions").ExternalEventSubscriptionType>;
|
|
24
31
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,6 +56,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
49
56
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
50
57
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
51
58
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
59
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
52
60
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
53
61
|
user: z.ZodOptional<z.ZodObject<{
|
|
54
62
|
id: z.ZodString;
|
|
@@ -102,6 +110,7 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
102
110
|
description: z.ZodString;
|
|
103
111
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
104
112
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
113
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
105
114
|
}, z.core.$strip>>;
|
|
106
115
|
userId: z.ZodString;
|
|
107
116
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -154,4 +163,8 @@ export declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
154
163
|
}, z.core.$strip>>;
|
|
155
164
|
}, z.core.$strip>;
|
|
156
165
|
export type ExternalEventSubscriptionApiResponse = z.infer<typeof ExternalEventSubscriptionApiResponse>;
|
|
166
|
+
export declare const PatchExternalEventSubscriptionRequest: z.ZodObject<{
|
|
167
|
+
webhookUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type PatchExternalEventSubscriptionRequest = z.infer<typeof PatchExternalEventSubscriptionRequest>;
|
|
157
170
|
export type ExternalEventSubscription = ExternalEventSubscriptionApiResponse;
|