@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
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,6 +149,7 @@ 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",
|
|
@@ -470,6 +484,7 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
470
484
|
description: z.ZodString;
|
|
471
485
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
472
486
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
487
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
473
488
|
}, z.core.$strip>>;
|
|
474
489
|
userId: z.ZodString;
|
|
475
490
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -545,6 +560,8 @@ declare const ConnectPayload: z.ZodObject<{
|
|
|
545
560
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
546
561
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
547
562
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
563
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
564
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
548
565
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
549
566
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
550
567
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -565,6 +582,8 @@ declare const ConnectUIOptions: z.ZodObject<{
|
|
|
565
582
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
566
583
|
name: z.ZodOptional<z.ZodString>;
|
|
567
584
|
intent: z.ZodOptional<z.ZodString>;
|
|
585
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
586
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
568
587
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
569
588
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
570
589
|
connectorParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -583,8 +602,14 @@ declare const ConnectUIOptions: z.ZodObject<{
|
|
|
583
602
|
}>>;
|
|
584
603
|
}, z.core.$strip>;
|
|
585
604
|
type ConnectUIOptions = z.infer<typeof ConnectUIOptions>;
|
|
605
|
+
interface LateConnectionEvents {
|
|
606
|
+
onConnection?: (connection: ConnectionApiResponse) => void;
|
|
607
|
+
onFailure?: (error: MembraneError) => void;
|
|
608
|
+
signal?: AbortSignal;
|
|
609
|
+
}
|
|
586
610
|
type ConnectOptions = ConnectPayload & {
|
|
587
611
|
onPopupClosed?: () => void;
|
|
612
|
+
lateEvents?: LateConnectionEvents;
|
|
588
613
|
sameWindow?: boolean;
|
|
589
614
|
};
|
|
590
615
|
|
|
@@ -3696,6 +3721,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3696
3721
|
description: z.ZodString;
|
|
3697
3722
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3698
3723
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3724
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3699
3725
|
}, z.core.$strip>>;
|
|
3700
3726
|
userId: z.ZodString;
|
|
3701
3727
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -3901,6 +3927,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3901
3927
|
description: z.ZodString;
|
|
3902
3928
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
3903
3929
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
3930
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
3904
3931
|
}, z.core.$strip>>;
|
|
3905
3932
|
userId: z.ZodString;
|
|
3906
3933
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4256,6 +4283,7 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
4256
4283
|
description: z.ZodString;
|
|
4257
4284
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4258
4285
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
4286
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
4259
4287
|
}, z.core.$strip>>;
|
|
4260
4288
|
userId: z.ZodString;
|
|
4261
4289
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -4942,6 +4970,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
|
|
|
4942
4970
|
description: z.ZodString;
|
|
4943
4971
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
4944
4972
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
4973
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
4945
4974
|
}, z.core.$strip>>;
|
|
4946
4975
|
userId: z.ZodString;
|
|
4947
4976
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5246,6 +5275,7 @@ declare const CreateIntegrationRequest: z.ZodObject<{
|
|
|
5246
5275
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5247
5276
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5248
5277
|
}, z.core.$strip>>>;
|
|
5278
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
5249
5279
|
}, z.core.$strip>;
|
|
5250
5280
|
type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
|
|
5251
5281
|
declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
@@ -5276,6 +5306,7 @@ declare const FindIntegrationsQuery: z.ZodObject<{
|
|
|
5276
5306
|
connectors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5277
5307
|
externalApps: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5278
5308
|
websearch: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5309
|
+
all: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5279
5310
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5280
5311
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5281
5312
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -5288,7 +5319,6 @@ interface OpenNewConnectionOptions extends OpenConfigurationOptions {
|
|
|
5288
5319
|
connectorParameters?: any;
|
|
5289
5320
|
}
|
|
5290
5321
|
declare const IntegrationApiResponse: z.ZodObject<{
|
|
5291
|
-
id: z.ZodString;
|
|
5292
5322
|
uuid: z.ZodOptional<z.ZodString>;
|
|
5293
5323
|
key: z.ZodOptional<z.ZodString>;
|
|
5294
5324
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5300,7 +5330,6 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5300
5330
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
5301
5331
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
5302
5332
|
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
5303
|
-
logoUri: z.ZodString;
|
|
5304
5333
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
5305
5334
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
5306
5335
|
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
@@ -5369,6 +5398,7 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5369
5398
|
description: z.ZodString;
|
|
5370
5399
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5371
5400
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5401
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5372
5402
|
}, z.core.$strip>>;
|
|
5373
5403
|
userId: z.ZodString;
|
|
5374
5404
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -5392,6 +5422,10 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
5392
5422
|
helpUri: z.ZodOptional<z.ZodString>;
|
|
5393
5423
|
}, z.core.$strip>>;
|
|
5394
5424
|
}, z.core.$strip>>>;
|
|
5425
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5426
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
5427
|
+
appUri: z.ZodOptional<z.ZodString>;
|
|
5428
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
5395
5429
|
}, z.core.$strip>;
|
|
5396
5430
|
type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
|
|
5397
5431
|
|
|
@@ -5881,6 +5915,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
|
|
|
5881
5915
|
description: z.ZodString;
|
|
5882
5916
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
5883
5917
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
5918
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
5884
5919
|
}, z.core.$strip>>;
|
|
5885
5920
|
userId: z.ZodString;
|
|
5886
5921
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6362,6 +6397,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6362
6397
|
name: z.ZodOptional<z.ZodString>;
|
|
6363
6398
|
connectionId: z.ZodString;
|
|
6364
6399
|
integrationId: z.ZodString;
|
|
6400
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
6365
6401
|
config: z.ZodOptional<z.ZodObject<{
|
|
6366
6402
|
type: z.ZodEnum<typeof ExternalEventSubscriptionType>;
|
|
6367
6403
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -6392,6 +6428,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6392
6428
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
6393
6429
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
6394
6430
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
6431
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
6395
6432
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
6396
6433
|
user: z.ZodOptional<z.ZodObject<{
|
|
6397
6434
|
id: z.ZodString;
|
|
@@ -6445,6 +6482,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
6445
6482
|
description: z.ZodString;
|
|
6446
6483
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
6447
6484
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
6485
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
6448
6486
|
}, z.core.$strip>>;
|
|
6449
6487
|
userId: z.ZodString;
|
|
6450
6488
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -6648,6 +6686,7 @@ declare class ConnectionAccessor {
|
|
|
6648
6686
|
patch(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
6649
6687
|
put(data: UpdateConnectionRequest): Promise<ConnectionApiResponse>;
|
|
6650
6688
|
archive(): Promise<void>;
|
|
6689
|
+
restore(): Promise<ConnectionApiResponse>;
|
|
6651
6690
|
request(path: string, data?: any): Promise<any>;
|
|
6652
6691
|
get proxy(): ConnectionProxy;
|
|
6653
6692
|
operation(key: string): ConnectionOperationAccessor;
|
|
@@ -6692,6 +6731,7 @@ declare class ConnectionAccessor {
|
|
|
6692
6731
|
description: string;
|
|
6693
6732
|
uiUrl?: string | undefined;
|
|
6694
6733
|
agentInstructions?: string | undefined;
|
|
6734
|
+
handoffAgentInstructions?: string | undefined;
|
|
6695
6735
|
} | undefined;
|
|
6696
6736
|
tenantId?: string | undefined;
|
|
6697
6737
|
user?: {
|
|
@@ -6932,6 +6972,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
|
|
|
6932
6972
|
description: string;
|
|
6933
6973
|
uiUrl?: string | undefined;
|
|
6934
6974
|
agentInstructions?: string | undefined;
|
|
6975
|
+
handoffAgentInstructions?: string | undefined;
|
|
6935
6976
|
} | undefined;
|
|
6936
6977
|
tenantId?: string | undefined;
|
|
6937
6978
|
user?: {
|