@membranehq/sdk 0.8.4 → 0.8.5
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 +305 -290
- package/dist/bundle.js +121 -103
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -16
- package/dist/dts/accessors/actions-accessors.d.ts +26 -7
- package/dist/dts/accessors/actions-accessors.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +5 -5
- package/dist/dts/accessors/integrations-accessors.d.ts +5 -5
- package/dist/dts/alerts/types.d.ts +2 -1
- package/dist/dts/entity-repository.d.ts +0 -1
- package/dist/dts/formulas/dataSchemaRef.d.ts +3 -3
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/orgs/types.d.ts +5 -4
- package/dist/dts/usage/types.d.ts +4 -2
- package/dist/dts/validation/types.d.ts +2 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +11 -11
- package/dist/dts/workspace-elements/api/actions-api.d.ts +57 -55
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +5 -5
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +10 -6
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +7 -6
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +8 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +20 -19
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flows-api.d.ts +39 -27
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/packages-api.d.ts +30 -18
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/actions/index.d.ts +30 -14
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -2
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +3 -3
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +22 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +23 -3
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/flows/index.d.ts +45 -3
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -4
- package/dist/dts/workspace-elements/base/packages/index.d.ts +35 -8
- package/dist/dts/workspace-elements/paths.d.ts +8 -0
- package/dist/dts/workspace-elements/paths.test.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +21 -9
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/dts/workspaces/types.d.ts +0 -1
- package/dist/index.browser.d.mts +8742 -8687
- package/dist/index.browser.d.ts +8742 -8687
- package/dist/index.browser.js +234 -265
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +224 -265
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +8766 -8711
- package/dist/index.node.d.ts +8766 -8711
- package/dist/index.node.js +234 -265
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +224 -265
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/dts/connector-copilot/types.d.ts +0 -160
- package/dist/dts/index.d.ts +0 -34
- /package/dist/dts/{connector-copilot → validation}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { ErrorData } from '../errors';
|
|
2
|
-
export declare enum ConnectorCopilotSuggestionType {
|
|
3
|
-
AuthType = "auth-type",
|
|
4
|
-
AuthImplementation = "auth-implementation",
|
|
5
|
-
AuthConnectionParameters = "auth-connection-parameters",
|
|
6
|
-
AuthApiClient = "auth-api-client",
|
|
7
|
-
DataCollection = "data-collection",
|
|
8
|
-
DataCollectionOperationApiRequests = "data-location-operation-api-requests",
|
|
9
|
-
DataCollectionOperationApiRequestMapping = "data-location-operation-api-request-mapping",
|
|
10
|
-
DataCollectionFieldsSchema = "data-location-fields-schema",
|
|
11
|
-
UdmList = "udm-list",
|
|
12
|
-
UdmFieldsMapping = "udm-fields-mapping",
|
|
13
|
-
UdmFieldsMappingToCollection = "udm-fields-mapping-to-collection",
|
|
14
|
-
UdmFieldsMappingFromCollection = "udm-fields-mapping-from-collection"
|
|
15
|
-
}
|
|
16
|
-
export interface ConnectorCopilotSuggestion {
|
|
17
|
-
id?: string;
|
|
18
|
-
type: ConnectorCopilotSuggestionType;
|
|
19
|
-
dataCollectionKey?: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
parameters?: Record<string, any>;
|
|
23
|
-
hash?: string;
|
|
24
|
-
action?: ConnectorCopilotSuggestionAction;
|
|
25
|
-
actions?: ConnectorCopilotSuggestionAction[];
|
|
26
|
-
}
|
|
27
|
-
type ConnectorCopilotSuggestionActionType = 'patch' | 'put' | 'patch-data-schema' | 'patch-field-mapping';
|
|
28
|
-
export interface ConnectorCopilotSuggestionAction {
|
|
29
|
-
type: ConnectorCopilotSuggestionActionType;
|
|
30
|
-
path: string;
|
|
31
|
-
locator?: string;
|
|
32
|
-
data: any;
|
|
33
|
-
format?: 'value' | 'fields' | 'schema';
|
|
34
|
-
schema?: any;
|
|
35
|
-
variablesSchema?: any;
|
|
36
|
-
parameters?: any;
|
|
37
|
-
}
|
|
38
|
-
export declare enum ConnectorCopilotFileChunkTopicKey {
|
|
39
|
-
AuthType = "auth-type",
|
|
40
|
-
AuthImplementation = "auth-implementation",
|
|
41
|
-
AuthConnectionParameters = "auth-connection-parameters",
|
|
42
|
-
AuthApiClient = "auth-api-client"
|
|
43
|
-
}
|
|
44
|
-
export declare enum CopilotTaskType {
|
|
45
|
-
GenerateAuthType = "generate-auth-type",
|
|
46
|
-
GenerateOAuthConfiguration = "generate-oauth-configuration",
|
|
47
|
-
GenerateAuthConnectionParameters = "generate-auth-connection-parameters",
|
|
48
|
-
GenerateAuthApiClient = "generate-auth-api-client",
|
|
49
|
-
GenerateDataCollections = "generate-data-collections",
|
|
50
|
-
GenerateDataCollectionRecordFromFields = "generate-data-collection-record-from-fields",
|
|
51
|
-
GenerateDataCollectionOperationApiRequests = "generate-data-collection-operation-api-requests",
|
|
52
|
-
GenerateDataCollectionOperationApiRequestMapping = "generate-data-collection-operation-api-request-mapping",
|
|
53
|
-
GenerateDataCollectionFieldsSchema = "generate-data-collection-fields-schema",
|
|
54
|
-
GenerateUdmList = "generate-udm-list",
|
|
55
|
-
GenerateUdmFieldsMapping = "generate-udm-fields-mapping"
|
|
56
|
-
}
|
|
57
|
-
export declare enum CopilotTaskStatus {
|
|
58
|
-
Pending = "pending",
|
|
59
|
-
Running = "running",
|
|
60
|
-
Completed = "completed",
|
|
61
|
-
Failed = "failed"
|
|
62
|
-
}
|
|
63
|
-
export interface CopilotTask<ParameterClass = unknown> {
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
type: CopilotTaskType;
|
|
67
|
-
parameters: ParameterClass;
|
|
68
|
-
status: CopilotTaskStatus;
|
|
69
|
-
startedTimestamp: number;
|
|
70
|
-
endedTimestamp: number;
|
|
71
|
-
error: ErrorData;
|
|
72
|
-
}
|
|
73
|
-
export declare enum CopilotActionType {
|
|
74
|
-
PatchConnectorFile = "patch",
|
|
75
|
-
PutConnectorFile = "put",
|
|
76
|
-
PatchConnectorDataSchema = "patch-data-schema",
|
|
77
|
-
PatchConnectorFieldMapping = "patch-field-mapping",
|
|
78
|
-
SetConnectorAuthType = "set-connector-auth-type"
|
|
79
|
-
}
|
|
80
|
-
export declare enum CopilotActionStatus {
|
|
81
|
-
Suggested = "suggested",
|
|
82
|
-
Executed = "executed",
|
|
83
|
-
Rejected = "rejected"
|
|
84
|
-
}
|
|
85
|
-
export interface CopilotAction {
|
|
86
|
-
id: string;
|
|
87
|
-
copilotTaskId: string;
|
|
88
|
-
type: CopilotActionType;
|
|
89
|
-
status: CopilotActionStatus;
|
|
90
|
-
name: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
parameters?: unknown;
|
|
93
|
-
hash?: string;
|
|
94
|
-
references?: CopilotActionReference[];
|
|
95
|
-
}
|
|
96
|
-
export declare enum CopilotActivityType {
|
|
97
|
-
Task = "task"
|
|
98
|
-
}
|
|
99
|
-
export interface CopilotActivityDataTask {
|
|
100
|
-
taskId: string;
|
|
101
|
-
}
|
|
102
|
-
export interface CopilotActivity<DataClass = unknown> {
|
|
103
|
-
type: CopilotActivityType;
|
|
104
|
-
text: string;
|
|
105
|
-
data: DataClass;
|
|
106
|
-
scopes: string[];
|
|
107
|
-
timestamp: number;
|
|
108
|
-
}
|
|
109
|
-
export interface CopilotActionReference {
|
|
110
|
-
id: string;
|
|
111
|
-
snippet: string;
|
|
112
|
-
quotes?: string[];
|
|
113
|
-
file: {
|
|
114
|
-
name: string;
|
|
115
|
-
sourceUri?: string;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export declare const CopilotActivityScope: {
|
|
119
|
-
connector: (connectorId: string) => CopilotActivityScopeConnector;
|
|
120
|
-
};
|
|
121
|
-
declare class CopilotActivityScopeConnector {
|
|
122
|
-
private connectorId;
|
|
123
|
-
constructor(connectorId: string);
|
|
124
|
-
auth: () => CopilotActivityScopeConnectorAuth;
|
|
125
|
-
data: (key?: string) => CopilotActivityScopeConnectorData;
|
|
126
|
-
udm: (key?: string) => CopilotActivityScopeConnectorUdm;
|
|
127
|
-
toString(): string;
|
|
128
|
-
}
|
|
129
|
-
declare class CopilotActivityScopeConnectorAuth {
|
|
130
|
-
private connectorScope;
|
|
131
|
-
constructor(connectorScope: CopilotActivityScopeConnector);
|
|
132
|
-
toString(): string;
|
|
133
|
-
}
|
|
134
|
-
declare class CopilotActivityScopeConnectorData {
|
|
135
|
-
private connectorScope;
|
|
136
|
-
private dataCollectionKey;
|
|
137
|
-
constructor(connectorScope: CopilotActivityScopeConnector, dataCollectionKey: string | undefined);
|
|
138
|
-
method: (key: string) => CopilotActivityScopeConnectorDataMethod;
|
|
139
|
-
toString(): string;
|
|
140
|
-
}
|
|
141
|
-
declare class CopilotActivityScopeConnectorDataMethod {
|
|
142
|
-
private collectionScope;
|
|
143
|
-
private methodKey;
|
|
144
|
-
constructor(collectionScope: CopilotActivityScopeConnectorData, methodKey: string);
|
|
145
|
-
toString(): string;
|
|
146
|
-
}
|
|
147
|
-
declare class CopilotActivityScopeConnectorUdm {
|
|
148
|
-
private connectorScope;
|
|
149
|
-
private key?;
|
|
150
|
-
constructor(connectorScope: CopilotActivityScopeConnector, key?: string | undefined);
|
|
151
|
-
collection: (key: string) => CopilotActivityScopeConnectorUdmCollection;
|
|
152
|
-
toString(): string;
|
|
153
|
-
}
|
|
154
|
-
declare class CopilotActivityScopeConnectorUdmCollection {
|
|
155
|
-
private udmScope;
|
|
156
|
-
private key;
|
|
157
|
-
constructor(udmScope: CopilotActivityScopeConnectorUdm, key: string);
|
|
158
|
-
toString(): string;
|
|
159
|
-
}
|
|
160
|
-
export {};
|
package/dist/dts/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './errors';
|
|
2
|
-
export * from './workspace-elements';
|
|
3
|
-
export * from './workspace-elements-catalog';
|
|
4
|
-
export * from './auth';
|
|
5
|
-
export * from './connector-copilot';
|
|
6
|
-
export * from './data-builder';
|
|
7
|
-
export * from './data-filter';
|
|
8
|
-
export * from './formulas';
|
|
9
|
-
export * from './locators';
|
|
10
|
-
export * from './error-tools';
|
|
11
|
-
export * from './data-form';
|
|
12
|
-
export * from './data-schema';
|
|
13
|
-
export * from './data-schema-utils';
|
|
14
|
-
export * from './date-time';
|
|
15
|
-
export * from './entity-repository';
|
|
16
|
-
export * from './http-requests';
|
|
17
|
-
export * from './integration-elements';
|
|
18
|
-
export * from './logging';
|
|
19
|
-
export * from './usage';
|
|
20
|
-
export * from './variables';
|
|
21
|
-
export * from './workspaces';
|
|
22
|
-
export * from './apps';
|
|
23
|
-
export * from './workspace-updates';
|
|
24
|
-
export * from './orgs';
|
|
25
|
-
export * from './webhooks';
|
|
26
|
-
export * from './alerts';
|
|
27
|
-
export * from './accessors';
|
|
28
|
-
export * from './sse';
|
|
29
|
-
export * from './scenario-templates';
|
|
30
|
-
export * from './config';
|
|
31
|
-
export * from './agent/session';
|
|
32
|
-
export { axios as MembraneAxiosInstance } from './api-client';
|
|
33
|
-
export { MembraneClient as IntegrationAppClient } from './client';
|
|
34
|
-
export { MembraneClient as MembraneClient } from './client';
|
|
File without changes
|