@membranehq/sdk 0.17.6 → 0.18.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 +17 -4
- package/dist/bundle.js +26 -5
- package/dist/bundle.js.map +1 -1
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/alerts/types.d.ts +14 -0
- package/dist/dts/client-tokens/types.d.ts +5 -5
- package/dist/dts/orgs/types.d.ts +2 -0
- 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 -2
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
- 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-apps-api.d.ts +1 -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/api/integrations-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +4 -5
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +0 -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 +1 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +0 -3
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +8 -10
- package/dist/dts/workspace-elements/types.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +7 -1
- package/dist/index.browser.d.mts +99 -49
- package/dist/index.browser.d.ts +99 -49
- package/dist/index.browser.js +214 -17
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +214 -17
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +99 -49
- package/dist/index.node.d.ts +99 -49
- package/dist/index.node.js +214 -17
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +214 -17
- 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 {
|
|
@@ -4935,6 +4941,7 @@ declare const FindIntegrationsQuery: z.ZodObject<{
|
|
|
4935
4941
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4936
4942
|
cursor: z.ZodOptional<z.ZodString>;
|
|
4937
4943
|
search: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
4938
4945
|
}, z.core.$strip>;
|
|
4939
4946
|
type FindIntegrationsQuery = z.infer<typeof FindIntegrationsQuery>;
|
|
4940
4947
|
interface OpenNewConnectionOptions extends OpenConfigurationOptions {
|
|
@@ -5244,6 +5251,7 @@ declare const FindCustomersQuery: z.ZodObject<{
|
|
|
5244
5251
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5245
5252
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5246
5253
|
search: z.ZodOptional<z.ZodString>;
|
|
5254
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
5247
5255
|
}, z.core.$strip>;
|
|
5248
5256
|
type FindCustomersQuery = z.infer<typeof FindCustomersQuery>;
|
|
5249
5257
|
declare const CustomerSelector: z.ZodObject<{
|
|
@@ -5564,9 +5572,9 @@ declare const FindFieldMappingsQuery: z.ZodObject<{
|
|
|
5564
5572
|
}>>;
|
|
5565
5573
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
5566
5574
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
5567
|
-
externalAppId: z.ZodOptional<z.ZodString>;
|
|
5568
5575
|
fieldMappingId: z.ZodOptional<z.ZodString>;
|
|
5569
5576
|
universalFieldMappingId: z.ZodOptional<z.ZodString>;
|
|
5577
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
5570
5578
|
}, z.core.$strip>;
|
|
5571
5579
|
type FindFieldMappingsQuery = z.infer<typeof FindFieldMappingsQuery>;
|
|
5572
5580
|
declare const CreateFieldMappingRequest: z.ZodObject<{
|
|
@@ -6665,10 +6673,15 @@ declare class SelfAccessor {
|
|
|
6665
6673
|
}>): Promise<CustomerApiResponse>;
|
|
6666
6674
|
}
|
|
6667
6675
|
|
|
6676
|
+
interface UNSAFE_AgentSessionUIOptions {
|
|
6677
|
+
sessionId: string;
|
|
6678
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
6679
|
+
}
|
|
6668
6680
|
declare class UI {
|
|
6669
6681
|
private client;
|
|
6670
6682
|
constructor(client: MembraneApiClient);
|
|
6671
6683
|
connect(options?: ConnectUIOptions): Promise<ConnectionApiResponse | null>;
|
|
6684
|
+
UNSAFE_agentSession(options: UNSAFE_AgentSessionUIOptions): Promise<void>;
|
|
6672
6685
|
}
|
|
6673
6686
|
|
|
6674
6687
|
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),
|
|
@@ -29097,7 +29100,7 @@
|
|
|
29097
29100
|
authType: _enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
29098
29101
|
optionsConfig: IntegrationOptions.optional(),
|
|
29099
29102
|
});
|
|
29100
|
-
BaseMembraneInterfaceEditableProperties.extend({
|
|
29103
|
+
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
29101
29104
|
logoUri: string$1().optional(),
|
|
29102
29105
|
externalAppId: string$1().optional(),
|
|
29103
29106
|
externalAppUuid: string$1().optional(),
|
|
@@ -29113,6 +29116,10 @@
|
|
|
29113
29116
|
parameters: record(string$1(), any()).optional(),
|
|
29114
29117
|
optionsConfig: IntegrationOptions.optional(),
|
|
29115
29118
|
});
|
|
29119
|
+
IntegrationEditableProperties.omit({
|
|
29120
|
+
connectorId: true,
|
|
29121
|
+
externalAppId: true,
|
|
29122
|
+
});
|
|
29116
29123
|
|
|
29117
29124
|
PaginationQuery.merge(SearchQuery)
|
|
29118
29125
|
.merge(IncludeArchivedQuery)
|
|
@@ -29134,6 +29141,12 @@
|
|
|
29134
29141
|
.meta({
|
|
29135
29142
|
filterTitle: 'Connector',
|
|
29136
29143
|
}),
|
|
29144
|
+
externalAppId: string$1()
|
|
29145
|
+
.optional()
|
|
29146
|
+
.meta({
|
|
29147
|
+
filterTitle: 'External App',
|
|
29148
|
+
referenceElementType: WorkspaceElementType.App,
|
|
29149
|
+
}),
|
|
29137
29150
|
disconnected: zodBooleanCoercion()
|
|
29138
29151
|
.optional()
|
|
29139
29152
|
.meta({
|
|
@@ -29152,10 +29165,6 @@
|
|
|
29152
29165
|
connectorVersion: string$1()
|
|
29153
29166
|
.optional()
|
|
29154
29167
|
.meta({ hidden: true }),
|
|
29155
|
-
externalAppId: string$1().optional().meta({
|
|
29156
|
-
filterTitle: 'External App',
|
|
29157
|
-
referenceElementType: WorkspaceElementType.App,
|
|
29158
|
-
}),
|
|
29159
29168
|
integrationKey: string$1()
|
|
29160
29169
|
.optional()
|
|
29161
29170
|
.meta({ hidden: true }),
|
|
@@ -29176,6 +29185,7 @@
|
|
|
29176
29185
|
credentials: true,
|
|
29177
29186
|
connectorParameters: true,
|
|
29178
29187
|
input: true,
|
|
29188
|
+
externalAppId: true,
|
|
29179
29189
|
});
|
|
29180
29190
|
object({
|
|
29181
29191
|
success: boolean$1(),
|
|
@@ -29274,6 +29284,17 @@
|
|
|
29274
29284
|
});
|
|
29275
29285
|
});
|
|
29276
29286
|
}
|
|
29287
|
+
async UNSAFE_agentSession(options) {
|
|
29288
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
29289
|
+
sessionId: options.sessionId,
|
|
29290
|
+
theme: options.theme,
|
|
29291
|
+
});
|
|
29292
|
+
return new Promise((resolve) => {
|
|
29293
|
+
return openIframeWithPost(url, postData, {
|
|
29294
|
+
onClose: () => resolve(),
|
|
29295
|
+
});
|
|
29296
|
+
});
|
|
29297
|
+
}
|
|
29277
29298
|
}
|
|
29278
29299
|
|
|
29279
29300
|
class MembraneClient extends MembraneApiClient {
|