@membranehq/sdk 0.28.3 → 0.29.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/bundle.d.ts +140 -4
- package/dist/bundle.js +1917 -1394
- 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 +9 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -0
- package/dist/dts/agent/harness-snapshot.d.ts +65 -0
- package/dist/dts/agent/harness.d.ts +107 -0
- package/dist/dts/agent/index.d.ts +6 -0
- package/dist/dts/agent/instruction.d.ts +32 -0
- package/dist/dts/agent/session.d.ts +6 -2
- package/dist/dts/agent/skill.d.ts +50 -0
- package/dist/dts/agent/tool.d.ts +8 -0
- package/dist/dts/agent/worker-contracts.d.ts +4 -1
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +3 -1
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +1183 -33
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +50 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +71 -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 +10 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +10 -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 +14 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +22 -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 +20 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +32 -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 +6 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +25 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +213 -5
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- 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-pulls/index.d.ts +50 -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/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +15 -3
- 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 +3654 -858
- package/dist/index.browser.d.ts +3654 -858
- package/dist/index.browser.js +1105 -213
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +1032 -207
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +3654 -858
- package/dist/index.node.d.ts +3654 -858
- package/dist/index.node.js +1105 -213
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +1032 -207
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
package/dist/bundle.d.ts
CHANGED
|
@@ -109,6 +109,19 @@ interface ErrorDataSchema {
|
|
|
109
109
|
logs?: any[];
|
|
110
110
|
}
|
|
111
111
|
declare const ErrorDataSchema: z.ZodType<ErrorDataSchema>;
|
|
112
|
+
interface ErrorDataFields extends z.infer<typeof ErrorDataSchema> {
|
|
113
|
+
}
|
|
114
|
+
type ErrorConstructorArg = string | ErrorDataFields | Error;
|
|
115
|
+
declare class ErrorData implements ErrorDataFields {
|
|
116
|
+
constructor(arg: ErrorConstructorArg);
|
|
117
|
+
}
|
|
118
|
+
interface ErrorData extends ErrorDataFields {
|
|
119
|
+
}
|
|
120
|
+
declare class MembraneError extends Error {
|
|
121
|
+
isMembraneError: true;
|
|
122
|
+
data: ErrorData;
|
|
123
|
+
constructor(arg: ErrorConstructorArg);
|
|
124
|
+
}
|
|
112
125
|
|
|
113
126
|
declare enum WorkspaceElementType {
|
|
114
127
|
Customer = "customer",
|
|
@@ -136,11 +149,15 @@ declare enum WorkspaceElementType {
|
|
|
136
149
|
ExternalEventSubscription = "external-event-subscription",
|
|
137
150
|
ExternalEventLogRecord = "external-event-log-record",
|
|
138
151
|
ExternalEventPull = "external-event-pull",
|
|
152
|
+
ExternalEventType = "external-event-type",
|
|
139
153
|
Screen = "screen",
|
|
140
154
|
ActionRunLogRecord = "action-run-log-record",
|
|
141
155
|
ExternalApiLogRecord = "external-api-log-record",
|
|
142
156
|
IncomingWebhookLogRecord = "incoming-webhook-log-record",
|
|
143
|
-
ConnectedProduct = "connected-product"
|
|
157
|
+
ConnectedProduct = "connected-product",
|
|
158
|
+
AgentHarness = "agent-harness",
|
|
159
|
+
AgentSkill = "agent-skill",
|
|
160
|
+
AgentInstruction = "agent-instruction"
|
|
144
161
|
}
|
|
145
162
|
declare enum WorkspaceElementState {
|
|
146
163
|
BUILDING = "BUILDING",
|
|
@@ -300,7 +317,7 @@ interface DataSchema {
|
|
|
300
317
|
};
|
|
301
318
|
items?: DataSchema;
|
|
302
319
|
additionalProperties?: boolean | DataSchema;
|
|
303
|
-
enum?: string[];
|
|
320
|
+
enum?: (string | number)[];
|
|
304
321
|
referenceRecords?: any[];
|
|
305
322
|
referenceCollection?: {
|
|
306
323
|
key?: any;
|
|
@@ -386,6 +403,10 @@ declare const FindConnectionsQuery: z.ZodObject<{
|
|
|
386
403
|
}, z.core.$strip>;
|
|
387
404
|
type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
|
|
388
405
|
declare const CreateConnectionRequest: z.ZodObject<{
|
|
406
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
connector: "connector";
|
|
408
|
+
mcp: "mcp";
|
|
409
|
+
}>>;
|
|
389
410
|
name: z.ZodOptional<z.ZodString>;
|
|
390
411
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
391
412
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -406,6 +427,10 @@ declare const CreateConnectionRequest: z.ZodObject<{
|
|
|
406
427
|
}, z.core.$strip>;
|
|
407
428
|
type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
|
|
408
429
|
declare const UpdateConnectionRequest: z.ZodObject<{
|
|
430
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
431
|
+
connector: "connector";
|
|
432
|
+
mcp: "mcp";
|
|
433
|
+
}>>;
|
|
409
434
|
name: z.ZodOptional<z.ZodString>;
|
|
410
435
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
411
436
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -435,6 +460,10 @@ declare const ConnectionSelector: z.ZodObject<{
|
|
|
435
460
|
type ConnectionSelector = z.infer<typeof ConnectionSelector>;
|
|
436
461
|
declare const ConnectionApiResponse: z.ZodObject<{
|
|
437
462
|
id: z.ZodString;
|
|
463
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
464
|
+
connector: "connector";
|
|
465
|
+
mcp: "mcp";
|
|
466
|
+
}>>;
|
|
438
467
|
name: z.ZodString;
|
|
439
468
|
key: z.ZodOptional<z.ZodString>;
|
|
440
469
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -470,6 +499,12 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
470
499
|
description: z.ZodString;
|
|
471
500
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
472
501
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
502
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
503
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
"provide-input": "provide-input";
|
|
505
|
+
authenticate: "authenticate";
|
|
506
|
+
reauthenticate: "reauthenticate";
|
|
507
|
+
}>>;
|
|
473
508
|
}, z.core.$strip>>;
|
|
474
509
|
userId: z.ZodString;
|
|
475
510
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -539,12 +574,18 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
539
574
|
}, z.core.$strip>;
|
|
540
575
|
type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
|
|
541
576
|
declare const ConnectPayload: z.ZodObject<{
|
|
577
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
578
|
+
connector: "connector";
|
|
579
|
+
mcp: "mcp";
|
|
580
|
+
}>>;
|
|
542
581
|
requestId: z.ZodOptional<z.ZodString>;
|
|
543
582
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
544
583
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
545
584
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
546
585
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
547
586
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
587
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
588
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
548
589
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
549
590
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
550
591
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -560,11 +601,17 @@ declare const ConnectPayload: z.ZodObject<{
|
|
|
560
601
|
}, z.core.$strip>;
|
|
561
602
|
type ConnectPayload = z.infer<typeof ConnectPayload>;
|
|
562
603
|
declare const ConnectUIOptions: z.ZodObject<{
|
|
604
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
605
|
+
connector: "connector";
|
|
606
|
+
mcp: "mcp";
|
|
607
|
+
}>>;
|
|
563
608
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
564
609
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
565
610
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
566
611
|
name: z.ZodOptional<z.ZodString>;
|
|
567
612
|
intent: z.ZodOptional<z.ZodString>;
|
|
613
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
614
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
568
615
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
569
616
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
570
617
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -583,8 +630,14 @@ declare const ConnectUIOptions: z.ZodObject<{
|
|
|
583
630
|
}>>;
|
|
584
631
|
}, z.core.$strip>;
|
|
585
632
|
type ConnectUIOptions = z.infer<typeof ConnectUIOptions>;
|
|
633
|
+
interface LateConnectionEvents {
|
|
634
|
+
onConnection?: (connection: ConnectionApiResponse) => void;
|
|
635
|
+
onFailure?: (error: MembraneError) => void;
|
|
636
|
+
signal?: AbortSignal;
|
|
637
|
+
}
|
|
586
638
|
type ConnectOptions = ConnectPayload & {
|
|
587
639
|
onPopupClosed?: () => void;
|
|
640
|
+
lateEvents?: LateConnectionEvents;
|
|
588
641
|
sameWindow?: boolean;
|
|
589
642
|
};
|
|
590
643
|
|
|
@@ -3661,6 +3714,10 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3661
3714
|
}, z.core.$strip>>;
|
|
3662
3715
|
connection: z.ZodOptional<z.ZodObject<{
|
|
3663
3716
|
id: z.ZodString;
|
|
3717
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3718
|
+
connector: "connector";
|
|
3719
|
+
mcp: "mcp";
|
|
3720
|
+
}>>;
|
|
3664
3721
|
name: z.ZodString;
|
|
3665
3722
|
key: z.ZodOptional<z.ZodString>;
|
|
3666
3723
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3696,6 +3753,12 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3696
3753
|
description: z.ZodString;
|
|
3697
3754
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3698
3755
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3756
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3757
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3758
|
+
"provide-input": "provide-input";
|
|
3759
|
+
authenticate: "authenticate";
|
|
3760
|
+
reauthenticate: "reauthenticate";
|
|
3761
|
+
}>>;
|
|
3699
3762
|
}, z.core.$strip>>;
|
|
3700
3763
|
userId: z.ZodString;
|
|
3701
3764
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -3866,6 +3929,10 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3866
3929
|
}, z.core.$strip>>;
|
|
3867
3930
|
connection: z.ZodOptional<z.ZodObject<{
|
|
3868
3931
|
id: z.ZodString;
|
|
3932
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3933
|
+
connector: "connector";
|
|
3934
|
+
mcp: "mcp";
|
|
3935
|
+
}>>;
|
|
3869
3936
|
name: z.ZodString;
|
|
3870
3937
|
key: z.ZodOptional<z.ZodString>;
|
|
3871
3938
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3901,6 +3968,12 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3901
3968
|
description: z.ZodString;
|
|
3902
3969
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3903
3970
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3971
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3973
|
+
"provide-input": "provide-input";
|
|
3974
|
+
authenticate: "authenticate";
|
|
3975
|
+
reauthenticate: "reauthenticate";
|
|
3976
|
+
}>>;
|
|
3904
3977
|
}, z.core.$strip>>;
|
|
3905
3978
|
userId: z.ZodString;
|
|
3906
3979
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4221,6 +4294,10 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
4221
4294
|
}, z.core.$strip>>;
|
|
4222
4295
|
connection: z.ZodOptional<z.ZodObject<{
|
|
4223
4296
|
id: z.ZodString;
|
|
4297
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4298
|
+
connector: "connector";
|
|
4299
|
+
mcp: "mcp";
|
|
4300
|
+
}>>;
|
|
4224
4301
|
name: z.ZodString;
|
|
4225
4302
|
key: z.ZodOptional<z.ZodString>;
|
|
4226
4303
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4256,6 +4333,12 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
4256
4333
|
description: z.ZodString;
|
|
4257
4334
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4258
4335
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
4336
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
4337
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
4338
|
+
"provide-input": "provide-input";
|
|
4339
|
+
authenticate: "authenticate";
|
|
4340
|
+
reauthenticate: "reauthenticate";
|
|
4341
|
+
}>>;
|
|
4259
4342
|
}, z.core.$strip>>;
|
|
4260
4343
|
userId: z.ZodString;
|
|
4261
4344
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4907,6 +4990,10 @@ declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
4907
4990
|
}, z.core.$strip>>;
|
|
4908
4991
|
connection: z.ZodOptional<z.ZodObject<{
|
|
4909
4992
|
id: z.ZodString;
|
|
4993
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4994
|
+
connector: "connector";
|
|
4995
|
+
mcp: "mcp";
|
|
4996
|
+
}>>;
|
|
4910
4997
|
name: z.ZodString;
|
|
4911
4998
|
key: z.ZodOptional<z.ZodString>;
|
|
4912
4999
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4942,6 +5029,12 @@ declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
4942
5029
|
description: z.ZodString;
|
|
4943
5030
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4944
5031
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5032
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5033
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5034
|
+
"provide-input": "provide-input";
|
|
5035
|
+
authenticate: "authenticate";
|
|
5036
|
+
reauthenticate: "reauthenticate";
|
|
5037
|
+
}>>;
|
|
4945
5038
|
}, z.core.$strip>>;
|
|
4946
5039
|
userId: z.ZodString;
|
|
4947
5040
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5246,6 +5339,7 @@ declare const CreateIntegrationRequest: z.ZodObject<{
|
|
|
5246
5339
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5247
5340
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5248
5341
|
}, z.core.$strip>>>;
|
|
5342
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
5249
5343
|
}, z.core.$strip>;
|
|
5250
5344
|
type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
|
|
5251
5345
|
declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
@@ -5276,6 +5370,7 @@ declare const FindIntegrationsQuery: z.ZodObject<{
|
|
|
5276
5370
|
connectors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5277
5371
|
externalApps: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5278
5372
|
websearch: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5373
|
+
all: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5279
5374
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5280
5375
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5281
5376
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -5288,7 +5383,6 @@ interface OpenNewConnectionOptions extends OpenConfigurationOptions {
|
|
|
5288
5383
|
connectorParameters?: any;
|
|
5289
5384
|
}
|
|
5290
5385
|
declare const IntegrationApiResponse: z.ZodObject<{
|
|
5291
|
-
id: z.ZodString;
|
|
5292
5386
|
uuid: z.ZodOptional<z.ZodString>;
|
|
5293
5387
|
key: z.ZodOptional<z.ZodString>;
|
|
5294
5388
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5300,7 +5394,6 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5300
5394
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
5301
5395
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
5302
5396
|
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5303
|
-
logoUri: z.ZodString;
|
|
5304
5397
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
5305
5398
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
5306
5399
|
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
@@ -5334,6 +5427,10 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5334
5427
|
}, z.core.$strip>>>;
|
|
5335
5428
|
connection: z.ZodOptional<z.ZodObject<{
|
|
5336
5429
|
id: z.ZodString;
|
|
5430
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5431
|
+
connector: "connector";
|
|
5432
|
+
mcp: "mcp";
|
|
5433
|
+
}>>;
|
|
5337
5434
|
name: z.ZodString;
|
|
5338
5435
|
key: z.ZodOptional<z.ZodString>;
|
|
5339
5436
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5369,6 +5466,12 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5369
5466
|
description: z.ZodString;
|
|
5370
5467
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5371
5468
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5469
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5470
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5471
|
+
"provide-input": "provide-input";
|
|
5472
|
+
authenticate: "authenticate";
|
|
5473
|
+
reauthenticate: "reauthenticate";
|
|
5474
|
+
}>>;
|
|
5372
5475
|
}, z.core.$strip>>;
|
|
5373
5476
|
userId: z.ZodString;
|
|
5374
5477
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5392,6 +5495,10 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5392
5495
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
5393
5496
|
}, z.core.$strip>>;
|
|
5394
5497
|
}, z.core.$strip>>>;
|
|
5498
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5499
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
5500
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
5501
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
5395
5502
|
}, z.core.$strip>;
|
|
5396
5503
|
type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
|
|
5397
5504
|
|
|
@@ -5846,6 +5953,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
5846
5953
|
}, z.core.$strip>>;
|
|
5847
5954
|
connection: z.ZodOptional<z.ZodObject<{
|
|
5848
5955
|
id: z.ZodString;
|
|
5956
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5957
|
+
connector: "connector";
|
|
5958
|
+
mcp: "mcp";
|
|
5959
|
+
}>>;
|
|
5849
5960
|
name: z.ZodString;
|
|
5850
5961
|
key: z.ZodOptional<z.ZodString>;
|
|
5851
5962
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5881,6 +5992,12 @@ declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
5881
5992
|
description: z.ZodString;
|
|
5882
5993
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5883
5994
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5995
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5996
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5997
|
+
"provide-input": "provide-input";
|
|
5998
|
+
authenticate: "authenticate";
|
|
5999
|
+
reauthenticate: "reauthenticate";
|
|
6000
|
+
}>>;
|
|
5884
6001
|
}, z.core.$strip>>;
|
|
5885
6002
|
userId: z.ZodString;
|
|
5886
6003
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6362,6 +6479,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6362
6479
|
name: z.ZodOptional<z.ZodString>;
|
|
6363
6480
|
connectionId: z.ZodString;
|
|
6364
6481
|
integrationId: z.ZodString;
|
|
6482
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
6365
6483
|
config: z.ZodOptional<z.ZodObject<{
|
|
6366
6484
|
type: z.ZodEnum<typeof ExternalEventSubscriptionType>;
|
|
6367
6485
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -6392,6 +6510,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6392
6510
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
6393
6511
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
6394
6512
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
6513
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
6395
6514
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
6396
6515
|
user: z.ZodOptional<z.ZodObject<{
|
|
6397
6516
|
id: z.ZodString;
|
|
@@ -6410,6 +6529,10 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6410
6529
|
}, z.core.$strip>>;
|
|
6411
6530
|
connection: z.ZodOptional<z.ZodObject<{
|
|
6412
6531
|
id: z.ZodString;
|
|
6532
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
6533
|
+
connector: "connector";
|
|
6534
|
+
mcp: "mcp";
|
|
6535
|
+
}>>;
|
|
6413
6536
|
name: z.ZodString;
|
|
6414
6537
|
key: z.ZodOptional<z.ZodString>;
|
|
6415
6538
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6445,6 +6568,12 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6445
6568
|
description: z.ZodString;
|
|
6446
6569
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
6447
6570
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
6571
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
6572
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
6573
|
+
"provide-input": "provide-input";
|
|
6574
|
+
authenticate: "authenticate";
|
|
6575
|
+
reauthenticate: "reauthenticate";
|
|
6576
|
+
}>>;
|
|
6448
6577
|
}, z.core.$strip>>;
|
|
6449
6578
|
userId: z.ZodString;
|
|
6450
6579
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6648,6 +6777,7 @@ declare class ConnectionAccessor {
|
|
|
6648
6777
|
patch(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
6649
6778
|
put(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
6650
6779
|
archive(): Promise<void>;
|
|
6780
|
+
restore(): Promise<ConnectionApiResponse>;
|
|
6651
6781
|
request(path: string, data?: any): Promise<any>;
|
|
6652
6782
|
get proxy(): ConnectionProxy;
|
|
6653
6783
|
operation(key: string): ConnectionOperationAccessor;
|
|
@@ -6663,6 +6793,7 @@ declare class ConnectionAccessor {
|
|
|
6663
6793
|
createdAt: string;
|
|
6664
6794
|
updatedAt: string;
|
|
6665
6795
|
userId: string;
|
|
6796
|
+
type?: "connector" | "mcp" | undefined;
|
|
6666
6797
|
key?: string | undefined;
|
|
6667
6798
|
isTest?: boolean | undefined;
|
|
6668
6799
|
connected?: boolean | undefined;
|
|
@@ -6692,6 +6823,8 @@ declare class ConnectionAccessor {
|
|
|
6692
6823
|
description: string;
|
|
6693
6824
|
uiUrl?: string | undefined;
|
|
6694
6825
|
agentInstructions?: string | undefined;
|
|
6826
|
+
handoffAgentInstructions?: string | undefined;
|
|
6827
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
6695
6828
|
} | undefined;
|
|
6696
6829
|
tenantId?: string | undefined;
|
|
6697
6830
|
user?: {
|
|
@@ -6903,6 +7036,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
|
|
|
6903
7036
|
createdAt: string;
|
|
6904
7037
|
updatedAt: string;
|
|
6905
7038
|
userId: string;
|
|
7039
|
+
type?: "connector" | "mcp" | undefined;
|
|
6906
7040
|
key?: string | undefined;
|
|
6907
7041
|
isTest?: boolean | undefined;
|
|
6908
7042
|
connected?: boolean | undefined;
|
|
@@ -6932,6 +7066,8 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
|
|
|
6932
7066
|
description: string;
|
|
6933
7067
|
uiUrl?: string | undefined;
|
|
6934
7068
|
agentInstructions?: string | undefined;
|
|
7069
|
+
handoffAgentInstructions?: string | undefined;
|
|
7070
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
6935
7071
|
} | undefined;
|
|
6936
7072
|
tenantId?: string | undefined;
|
|
6937
7073
|
user?: {
|