@membranehq/sdk 0.17.6 → 0.18.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 -4
- package/dist/bundle.js +20 -4
- package/dist/bundle.js.map +1 -1
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/client-tokens/types.d.ts +5 -5
- package/dist/dts/stats/index.d.ts +8 -5
- package/dist/dts/ui.d.ts +5 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +2 -1
- package/dist/dts/workspace-elements/api/connections-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 +2 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- 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 +1 -0
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/index.browser.d.mts +54 -17
- package/dist/index.browser.d.ts +54 -17
- package/dist/index.browser.js +182 -11
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +182 -11
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +54 -17
- package/dist/index.node.d.ts +54 -17
- package/dist/index.node.js +182 -11
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +182 -11
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -120,6 +120,8 @@ declare enum WorkspaceElementType {
|
|
|
120
120
|
ExternalEventPull = "external-event-pull",
|
|
121
121
|
Screen = "screen",
|
|
122
122
|
ActionRunLogRecord = "action-run-log-record",
|
|
123
|
+
ExternalApiLogRecord = "external-api-log-record",
|
|
124
|
+
IncomingWebhookLogRecord = "incoming-webhook-log-record",
|
|
123
125
|
ConnectedProduct = "connected-product"
|
|
124
126
|
}
|
|
125
127
|
declare enum WorkspaceElementState {
|
|
@@ -352,11 +354,11 @@ declare const FindConnectionsQuery: z.ZodObject<{
|
|
|
352
354
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
353
355
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
354
356
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
355
358
|
disconnected: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
356
359
|
isTest: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
357
360
|
userId: z.ZodOptional<z.ZodString>;
|
|
358
361
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
359
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
360
362
|
integrationKey: z.ZodOptional<z.ZodString>;
|
|
361
363
|
includeSecrets: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
362
364
|
}, z.core.$strip>;
|
|
@@ -3315,6 +3317,7 @@ declare const FindFlowRunsQuery: z.ZodObject<{
|
|
|
3315
3317
|
state: z.ZodOptional<z.ZodEnum<typeof FlowRunState>>;
|
|
3316
3318
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
3317
3319
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
3320
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
3318
3321
|
from: z.ZodOptional<z.ZodString>;
|
|
3319
3322
|
to: z.ZodOptional<z.ZodString>;
|
|
3320
3323
|
}, z.core.$strip>;
|
|
@@ -3325,6 +3328,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
3325
3328
|
id: z.ZodString;
|
|
3326
3329
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
3327
3330
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
3331
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
3328
3332
|
name: z.ZodOptional<z.ZodString>;
|
|
3329
3333
|
connectionFlowId: z.ZodString;
|
|
3330
3334
|
integrationFlowId: z.ZodOptional<z.ZodString>;
|
|
@@ -3511,6 +3515,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
3511
3515
|
id: z.ZodString;
|
|
3512
3516
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
3513
3517
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
3518
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
3514
3519
|
name: z.ZodOptional<z.ZodString>;
|
|
3515
3520
|
connectionFlowId: z.ZodString;
|
|
3516
3521
|
integrationFlowId: z.ZodOptional<z.ZodString>;
|
|
@@ -4048,9 +4053,9 @@ declare const FindFlowsQuery: z.ZodObject<{
|
|
|
4048
4053
|
}>>;
|
|
4049
4054
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
4050
4055
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
4051
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
4052
4056
|
flowId: z.ZodOptional<z.ZodString>;
|
|
4053
4057
|
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
4054
4059
|
}, z.core.$strip>;
|
|
4055
4060
|
type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
|
|
4056
4061
|
declare const CreateFlowRequest: z.ZodObject<{
|
|
@@ -4786,9 +4791,9 @@ declare const FindDataSourcesQuery: z.ZodObject<{
|
|
|
4786
4791
|
}>>;
|
|
4787
4792
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
4788
4793
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
4789
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
4790
4794
|
dataSourceId: z.ZodOptional<z.ZodString>;
|
|
4791
4795
|
universalDataSourceId: z.ZodOptional<z.ZodString>;
|
|
4796
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
4792
4797
|
}, z.core.$strip>;
|
|
4793
4798
|
type FindDataSourcesQuery = z.infer<typeof FindDataSourcesQuery>;
|
|
4794
4799
|
declare const CreateDataSourceRequest: z.ZodObject<{
|
|
@@ -4877,6 +4882,7 @@ interface FindExternalEventSubscriptionsQuery extends PaginationQuery {
|
|
|
4877
4882
|
userId?: string;
|
|
4878
4883
|
connectionId?: string;
|
|
4879
4884
|
integrationId?: string;
|
|
4885
|
+
externalAppId?: string;
|
|
4880
4886
|
}
|
|
4881
4887
|
|
|
4882
4888
|
interface OpenConfigurationOptions {
|
|
@@ -5564,9 +5570,9 @@ declare const FindFieldMappingsQuery: z.ZodObject<{
|
|
|
5564
5570
|
}>>;
|
|
5565
5571
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
5566
5572
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
5567
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
5568
5573
|
fieldMappingId: z.ZodOptional<z.ZodString>;
|
|
5569
5574
|
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
5575
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
5570
5576
|
}, z.core.$strip>;
|
|
5571
5577
|
type FindFieldMappingsQuery = z.infer<typeof FindFieldMappingsQuery>;
|
|
5572
5578
|
declare const CreateFieldMappingRequest: z.ZodObject<{
|
|
@@ -6665,10 +6671,15 @@ declare class SelfAccessor {
|
|
|
6665
6671
|
}>): Promise<CustomerApiResponse>;
|
|
6666
6672
|
}
|
|
6667
6673
|
|
|
6674
|
+
interface UNSAFE_AgentSessionUIOptions {
|
|
6675
|
+
sessionId: string;
|
|
6676
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
6677
|
+
}
|
|
6668
6678
|
declare class UI {
|
|
6669
6679
|
private client;
|
|
6670
6680
|
constructor(client: MembraneApiClient);
|
|
6671
6681
|
connect(options?: ConnectUIOptions): Promise<ConnectionApiResponse | null>;
|
|
6682
|
+
UNSAFE_agentSession(options: UNSAFE_AgentSessionUIOptions): Promise<void>;
|
|
6672
6683
|
}
|
|
6673
6684
|
|
|
6674
6685
|
interface OpenMembraneConfigurationOptions extends OpenConfigurationOptions {
|
package/dist/bundle.js
CHANGED
|
@@ -22198,6 +22198,8 @@
|
|
|
22198
22198
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
22199
22199
|
WorkspaceElementType["Screen"] = "screen";
|
|
22200
22200
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
22201
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
22202
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
22201
22203
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
22202
22204
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
22203
22205
|
var WorkspaceEventType;
|
|
@@ -22372,6 +22374,7 @@
|
|
|
22372
22374
|
id: string$1(),
|
|
22373
22375
|
integrationId: string$1().optional(),
|
|
22374
22376
|
connectionId: string$1().optional(),
|
|
22377
|
+
externalAppId: string$1().optional(),
|
|
22375
22378
|
});
|
|
22376
22379
|
object({
|
|
22377
22380
|
q: string$1().min(1).max(200),
|
|
@@ -29134,6 +29137,12 @@
|
|
|
29134
29137
|
.meta({
|
|
29135
29138
|
filterTitle: 'Connector',
|
|
29136
29139
|
}),
|
|
29140
|
+
externalAppId: string$1()
|
|
29141
|
+
.optional()
|
|
29142
|
+
.meta({
|
|
29143
|
+
filterTitle: 'External App',
|
|
29144
|
+
referenceElementType: WorkspaceElementType.App,
|
|
29145
|
+
}),
|
|
29137
29146
|
disconnected: zodBooleanCoercion()
|
|
29138
29147
|
.optional()
|
|
29139
29148
|
.meta({
|
|
@@ -29152,10 +29161,6 @@
|
|
|
29152
29161
|
connectorVersion: string$1()
|
|
29153
29162
|
.optional()
|
|
29154
29163
|
.meta({ hidden: true }),
|
|
29155
|
-
externalAppId: string$1().optional().meta({
|
|
29156
|
-
filterTitle: 'External App',
|
|
29157
|
-
referenceElementType: WorkspaceElementType.App,
|
|
29158
|
-
}),
|
|
29159
29164
|
integrationKey: string$1()
|
|
29160
29165
|
.optional()
|
|
29161
29166
|
.meta({ hidden: true }),
|
|
@@ -29274,6 +29279,17 @@
|
|
|
29274
29279
|
});
|
|
29275
29280
|
});
|
|
29276
29281
|
}
|
|
29282
|
+
async UNSAFE_agentSession(options) {
|
|
29283
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
29284
|
+
sessionId: options.sessionId,
|
|
29285
|
+
theme: options.theme,
|
|
29286
|
+
});
|
|
29287
|
+
return new Promise((resolve) => {
|
|
29288
|
+
return openIframeWithPost(url, postData, {
|
|
29289
|
+
onClose: () => resolve(),
|
|
29290
|
+
});
|
|
29291
|
+
});
|
|
29292
|
+
}
|
|
29277
29293
|
}
|
|
29278
29294
|
|
|
29279
29295
|
class MembraneClient extends MembraneApiClient {
|