@membranehq/sdk 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +97 -2
- package/dist/bundle.js +1055 -274
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +5 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -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 +5 -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 +2 -0
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/orgs/types.d.ts +528 -1
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +47 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +9 -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 +10 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +18 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +23 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +208 -0
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +14 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +50 -0
- package/dist/dts/workspace-elements/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +4 -1
- package/dist/dts/workspaces/api.d.ts +1 -0
- package/dist/index.browser.d.mts +1555 -150
- package/dist/index.browser.d.ts +1555 -150
- package/dist/index.browser.js +452 -19
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +416 -20
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1555 -150
- package/dist/index.node.d.ts +1555 -150
- package/dist/index.node.js +452 -19
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +416 -20
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/bundle.d.ts
CHANGED
|
@@ -154,7 +154,10 @@ declare enum WorkspaceElementType {
|
|
|
154
154
|
ActionRunLogRecord = "action-run-log-record",
|
|
155
155
|
ExternalApiLogRecord = "external-api-log-record",
|
|
156
156
|
IncomingWebhookLogRecord = "incoming-webhook-log-record",
|
|
157
|
-
ConnectedProduct = "connected-product"
|
|
157
|
+
ConnectedProduct = "connected-product",
|
|
158
|
+
AgentHarness = "agent-harness",
|
|
159
|
+
AgentSkill = "agent-skill",
|
|
160
|
+
AgentInstruction = "agent-instruction"
|
|
158
161
|
}
|
|
159
162
|
declare enum WorkspaceElementState {
|
|
160
163
|
BUILDING = "BUILDING",
|
|
@@ -314,7 +317,7 @@ interface DataSchema {
|
|
|
314
317
|
};
|
|
315
318
|
items?: DataSchema;
|
|
316
319
|
additionalProperties?: boolean | DataSchema;
|
|
317
|
-
enum?: string[];
|
|
320
|
+
enum?: (string | number)[];
|
|
318
321
|
referenceRecords?: any[];
|
|
319
322
|
referenceCollection?: {
|
|
320
323
|
key?: any;
|
|
@@ -400,6 +403,10 @@ declare const FindConnectionsQuery: z.ZodObject<{
|
|
|
400
403
|
}, z.core.$strip>;
|
|
401
404
|
type FindConnectionsQuery = z.infer<typeof FindConnectionsQuery>;
|
|
402
405
|
declare const CreateConnectionRequest: z.ZodObject<{
|
|
406
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
connector: "connector";
|
|
408
|
+
mcp: "mcp";
|
|
409
|
+
}>>;
|
|
403
410
|
name: z.ZodOptional<z.ZodString>;
|
|
404
411
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
405
412
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -420,6 +427,10 @@ declare const CreateConnectionRequest: z.ZodObject<{
|
|
|
420
427
|
}, z.core.$strip>;
|
|
421
428
|
type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
|
|
422
429
|
declare const UpdateConnectionRequest: z.ZodObject<{
|
|
430
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
431
|
+
connector: "connector";
|
|
432
|
+
mcp: "mcp";
|
|
433
|
+
}>>;
|
|
423
434
|
name: z.ZodOptional<z.ZodString>;
|
|
424
435
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
425
436
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
@@ -449,6 +460,10 @@ declare const ConnectionSelector: z.ZodObject<{
|
|
|
449
460
|
type ConnectionSelector = z.infer<typeof ConnectionSelector>;
|
|
450
461
|
declare const ConnectionApiResponse: z.ZodObject<{
|
|
451
462
|
id: z.ZodString;
|
|
463
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
464
|
+
connector: "connector";
|
|
465
|
+
mcp: "mcp";
|
|
466
|
+
}>>;
|
|
452
467
|
name: z.ZodString;
|
|
453
468
|
key: z.ZodOptional<z.ZodString>;
|
|
454
469
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -485,6 +500,11 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
485
500
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
486
501
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
487
502
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
503
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
"provide-input": "provide-input";
|
|
505
|
+
authenticate: "authenticate";
|
|
506
|
+
reauthenticate: "reauthenticate";
|
|
507
|
+
}>>;
|
|
488
508
|
}, z.core.$strip>>;
|
|
489
509
|
userId: z.ZodString;
|
|
490
510
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -554,6 +574,10 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
554
574
|
}, z.core.$strip>;
|
|
555
575
|
type ConnectionApiResponse = z.infer<typeof ConnectionApiResponse>;
|
|
556
576
|
declare const ConnectPayload: z.ZodObject<{
|
|
577
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
578
|
+
connector: "connector";
|
|
579
|
+
mcp: "mcp";
|
|
580
|
+
}>>;
|
|
557
581
|
requestId: z.ZodOptional<z.ZodString>;
|
|
558
582
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
559
583
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
@@ -577,6 +601,10 @@ declare const ConnectPayload: z.ZodObject<{
|
|
|
577
601
|
}, z.core.$strip>;
|
|
578
602
|
type ConnectPayload = z.infer<typeof ConnectPayload>;
|
|
579
603
|
declare const ConnectUIOptions: z.ZodObject<{
|
|
604
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
605
|
+
connector: "connector";
|
|
606
|
+
mcp: "mcp";
|
|
607
|
+
}>>;
|
|
580
608
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
581
609
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
582
610
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -3686,6 +3714,10 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3686
3714
|
}, z.core.$strip>>;
|
|
3687
3715
|
connection: z.ZodOptional<z.ZodObject<{
|
|
3688
3716
|
id: z.ZodString;
|
|
3717
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3718
|
+
connector: "connector";
|
|
3719
|
+
mcp: "mcp";
|
|
3720
|
+
}>>;
|
|
3689
3721
|
name: z.ZodString;
|
|
3690
3722
|
key: z.ZodOptional<z.ZodString>;
|
|
3691
3723
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3722,6 +3754,11 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3722
3754
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3723
3755
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3724
3756
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3757
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3758
|
+
"provide-input": "provide-input";
|
|
3759
|
+
authenticate: "authenticate";
|
|
3760
|
+
reauthenticate: "reauthenticate";
|
|
3761
|
+
}>>;
|
|
3725
3762
|
}, z.core.$strip>>;
|
|
3726
3763
|
userId: z.ZodString;
|
|
3727
3764
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -3892,6 +3929,10 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3892
3929
|
}, z.core.$strip>>;
|
|
3893
3930
|
connection: z.ZodOptional<z.ZodObject<{
|
|
3894
3931
|
id: z.ZodString;
|
|
3932
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3933
|
+
connector: "connector";
|
|
3934
|
+
mcp: "mcp";
|
|
3935
|
+
}>>;
|
|
3895
3936
|
name: z.ZodString;
|
|
3896
3937
|
key: z.ZodOptional<z.ZodString>;
|
|
3897
3938
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3928,6 +3969,11 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3928
3969
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3929
3970
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3930
3971
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3973
|
+
"provide-input": "provide-input";
|
|
3974
|
+
authenticate: "authenticate";
|
|
3975
|
+
reauthenticate: "reauthenticate";
|
|
3976
|
+
}>>;
|
|
3931
3977
|
}, z.core.$strip>>;
|
|
3932
3978
|
userId: z.ZodString;
|
|
3933
3979
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4248,6 +4294,10 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
4248
4294
|
}, z.core.$strip>>;
|
|
4249
4295
|
connection: z.ZodOptional<z.ZodObject<{
|
|
4250
4296
|
id: z.ZodString;
|
|
4297
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4298
|
+
connector: "connector";
|
|
4299
|
+
mcp: "mcp";
|
|
4300
|
+
}>>;
|
|
4251
4301
|
name: z.ZodString;
|
|
4252
4302
|
key: z.ZodOptional<z.ZodString>;
|
|
4253
4303
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4284,6 +4334,11 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
4284
4334
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4285
4335
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
4286
4336
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
4337
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
4338
|
+
"provide-input": "provide-input";
|
|
4339
|
+
authenticate: "authenticate";
|
|
4340
|
+
reauthenticate: "reauthenticate";
|
|
4341
|
+
}>>;
|
|
4287
4342
|
}, z.core.$strip>>;
|
|
4288
4343
|
userId: z.ZodString;
|
|
4289
4344
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4935,6 +4990,10 @@ declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
4935
4990
|
}, z.core.$strip>>;
|
|
4936
4991
|
connection: z.ZodOptional<z.ZodObject<{
|
|
4937
4992
|
id: z.ZodString;
|
|
4993
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4994
|
+
connector: "connector";
|
|
4995
|
+
mcp: "mcp";
|
|
4996
|
+
}>>;
|
|
4938
4997
|
name: z.ZodString;
|
|
4939
4998
|
key: z.ZodOptional<z.ZodString>;
|
|
4940
4999
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4971,6 +5030,11 @@ declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
4971
5030
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4972
5031
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
4973
5032
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5033
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5034
|
+
"provide-input": "provide-input";
|
|
5035
|
+
authenticate: "authenticate";
|
|
5036
|
+
reauthenticate: "reauthenticate";
|
|
5037
|
+
}>>;
|
|
4974
5038
|
}, z.core.$strip>>;
|
|
4975
5039
|
userId: z.ZodString;
|
|
4976
5040
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5363,6 +5427,10 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5363
5427
|
}, z.core.$strip>>>;
|
|
5364
5428
|
connection: z.ZodOptional<z.ZodObject<{
|
|
5365
5429
|
id: z.ZodString;
|
|
5430
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5431
|
+
connector: "connector";
|
|
5432
|
+
mcp: "mcp";
|
|
5433
|
+
}>>;
|
|
5366
5434
|
name: z.ZodString;
|
|
5367
5435
|
key: z.ZodOptional<z.ZodString>;
|
|
5368
5436
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5399,6 +5467,11 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5399
5467
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5400
5468
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5401
5469
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5470
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5471
|
+
"provide-input": "provide-input";
|
|
5472
|
+
authenticate: "authenticate";
|
|
5473
|
+
reauthenticate: "reauthenticate";
|
|
5474
|
+
}>>;
|
|
5402
5475
|
}, z.core.$strip>>;
|
|
5403
5476
|
userId: z.ZodString;
|
|
5404
5477
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5880,6 +5953,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
5880
5953
|
}, z.core.$strip>>;
|
|
5881
5954
|
connection: z.ZodOptional<z.ZodObject<{
|
|
5882
5955
|
id: z.ZodString;
|
|
5956
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5957
|
+
connector: "connector";
|
|
5958
|
+
mcp: "mcp";
|
|
5959
|
+
}>>;
|
|
5883
5960
|
name: z.ZodString;
|
|
5884
5961
|
key: z.ZodOptional<z.ZodString>;
|
|
5885
5962
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5916,6 +5993,11 @@ declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
5916
5993
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5917
5994
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5918
5995
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5996
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
5997
|
+
"provide-input": "provide-input";
|
|
5998
|
+
authenticate: "authenticate";
|
|
5999
|
+
reauthenticate: "reauthenticate";
|
|
6000
|
+
}>>;
|
|
5919
6001
|
}, z.core.$strip>>;
|
|
5920
6002
|
userId: z.ZodString;
|
|
5921
6003
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6447,6 +6529,10 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6447
6529
|
}, z.core.$strip>>;
|
|
6448
6530
|
connection: z.ZodOptional<z.ZodObject<{
|
|
6449
6531
|
id: z.ZodString;
|
|
6532
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
6533
|
+
connector: "connector";
|
|
6534
|
+
mcp: "mcp";
|
|
6535
|
+
}>>;
|
|
6450
6536
|
name: z.ZodString;
|
|
6451
6537
|
key: z.ZodOptional<z.ZodString>;
|
|
6452
6538
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6483,6 +6569,11 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6483
6569
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
6484
6570
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
6485
6571
|
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
6572
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
6573
|
+
"provide-input": "provide-input";
|
|
6574
|
+
authenticate: "authenticate";
|
|
6575
|
+
reauthenticate: "reauthenticate";
|
|
6576
|
+
}>>;
|
|
6486
6577
|
}, z.core.$strip>>;
|
|
6487
6578
|
userId: z.ZodString;
|
|
6488
6579
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6702,6 +6793,7 @@ declare class ConnectionAccessor {
|
|
|
6702
6793
|
createdAt: string;
|
|
6703
6794
|
updatedAt: string;
|
|
6704
6795
|
userId: string;
|
|
6796
|
+
type?: "connector" | "mcp" | undefined;
|
|
6705
6797
|
key?: string | undefined;
|
|
6706
6798
|
isTest?: boolean | undefined;
|
|
6707
6799
|
connected?: boolean | undefined;
|
|
@@ -6732,6 +6824,7 @@ declare class ConnectionAccessor {
|
|
|
6732
6824
|
uiUrl?: string | undefined;
|
|
6733
6825
|
agentInstructions?: string | undefined;
|
|
6734
6826
|
handoffAgentInstructions?: string | undefined;
|
|
6827
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
6735
6828
|
} | undefined;
|
|
6736
6829
|
tenantId?: string | undefined;
|
|
6737
6830
|
user?: {
|
|
@@ -6943,6 +7036,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
|
|
|
6943
7036
|
createdAt: string;
|
|
6944
7037
|
updatedAt: string;
|
|
6945
7038
|
userId: string;
|
|
7039
|
+
type?: "connector" | "mcp" | undefined;
|
|
6946
7040
|
key?: string | undefined;
|
|
6947
7041
|
isTest?: boolean | undefined;
|
|
6948
7042
|
connected?: boolean | undefined;
|
|
@@ -6973,6 +7067,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
|
|
|
6973
7067
|
uiUrl?: string | undefined;
|
|
6974
7068
|
agentInstructions?: string | undefined;
|
|
6975
7069
|
handoffAgentInstructions?: string | undefined;
|
|
7070
|
+
reason?: "provide-input" | "authenticate" | "reauthenticate" | undefined;
|
|
6976
7071
|
} | undefined;
|
|
6977
7072
|
tenantId?: string | undefined;
|
|
6978
7073
|
user?: {
|