@membranehq/sdk 0.28.3 → 0.29.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 +140 -4
- package/dist/bundle.js +1917 -1394
- 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 +9 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -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 +6 -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 +4 -1
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +3 -1
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +1183 -33
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +50 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +71 -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 +10 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +10 -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 +14 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +22 -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 +20 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +32 -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 +6 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +25 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +213 -5
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- 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-pulls/index.d.ts +50 -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/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +15 -3
- 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 +3654 -858
- package/dist/index.browser.d.ts +3654 -858
- package/dist/index.browser.js +1105 -213
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +1032 -207
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +3654 -858
- package/dist/index.node.d.ts +3654 -858
- package/dist/index.node.js +1105 -213
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +1032 -207
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
|
@@ -16,11 +16,11 @@ export declare const DataLinkTableEditableProperties: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type DataLinkTableEditableProperties = z.infer<typeof DataLinkTableEditableProperties>;
|
|
18
18
|
export declare const DataLinkTableExportProperties: z.ZodObject<{
|
|
19
|
-
key: z.ZodOptional<z.ZodString
|
|
19
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
20
20
|
description: z.ZodOptional<z.ZodString>;
|
|
21
21
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
22
22
|
name: z.ZodOptional<z.ZodString>;
|
|
23
|
-
uuid: z.ZodOptional<z.ZodString
|
|
23
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
24
24
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
export type DataLinkTableExportProperties = z.infer<typeof DataLinkTableExportProperties>;
|
|
@@ -59,12 +59,12 @@ export declare const BackwardCompatibleDataSourceEditableProperties: z.ZodObject
|
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
export type BackwardCompatibleDataSourceEditableProperties = z.infer<typeof BackwardCompatibleDataSourceEditableProperties>;
|
|
61
61
|
export declare const DataSourceExportProperties: z.ZodObject<{
|
|
62
|
-
key: z.ZodOptional<z.ZodString
|
|
62
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
63
63
|
path: z.ZodOptional<z.ZodString>;
|
|
64
64
|
description: z.ZodOptional<z.ZodString>;
|
|
65
65
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
66
66
|
name: z.ZodOptional<z.ZodString>;
|
|
67
|
-
uuid: z.ZodOptional<z.ZodString
|
|
67
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
68
68
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
69
69
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
70
70
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
@@ -14,6 +14,7 @@ export declare const BaseExternalEventLogRecord: z.ZodObject<{
|
|
|
14
14
|
externalEventSubscriptionId: z.ZodString;
|
|
15
15
|
integrationId: z.ZodString;
|
|
16
16
|
connectionId: z.ZodString;
|
|
17
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
17
18
|
payload: z.ZodOptional<z.ZodAny>;
|
|
18
19
|
launchedFlowRunIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
20
|
status: z.ZodEnum<typeof ExternalEventLogStatus>;
|
|
@@ -20,6 +20,56 @@ export declare const BaseExternalEventPull: z.ZodObject<{
|
|
|
20
20
|
isFullScan: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
status: z.ZodEnum<typeof ExternalEventPullStatus>;
|
|
22
22
|
collectedEventIds: z.ZodArray<z.ZodString>;
|
|
23
|
+
telemetryUri: z.ZodOptional<z.ZodString>;
|
|
23
24
|
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
24
25
|
}, z.core.$strip>;
|
|
25
26
|
export type BaseExternalEventPull = z.infer<typeof BaseExternalEventPull>;
|
|
27
|
+
export declare const ExternalEventPullTelemetry: z.ZodObject<{
|
|
28
|
+
pullId: z.ZodString;
|
|
29
|
+
subscriptionId: z.ZodString;
|
|
30
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
strategy: z.ZodEnum<{
|
|
32
|
+
unknown: "unknown";
|
|
33
|
+
"custom-pull": "custom-pull";
|
|
34
|
+
"full-scan": "full-scan";
|
|
35
|
+
"pull-latest-records": "pull-latest-records";
|
|
36
|
+
skipped: "skipped";
|
|
37
|
+
}>;
|
|
38
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
39
|
+
collectionKey: z.ZodOptional<z.ZodString>;
|
|
40
|
+
startedAt: z.ZodString;
|
|
41
|
+
finishedAt: z.ZodString;
|
|
42
|
+
emittedEventCount: z.ZodNumber;
|
|
43
|
+
emittedEvents: z.ZodArray<z.ZodObject<{
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
recordId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
notes: z.ZodArray<z.ZodString>;
|
|
48
|
+
fullScan: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
totalRecords: z.ZodNumber;
|
|
50
|
+
totalPages: z.ZodNumber;
|
|
51
|
+
previousSnapshotId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
previousSnapshotRecordCount: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
previousSnapshotMissing: z.ZodBoolean;
|
|
54
|
+
newSnapshotId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
isBaseline: z.ZodBoolean;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
pullLatest: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
stateBefore: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
id: z.ZodOptional<z.ZodString>;
|
|
60
|
+
datetime: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
stateAfter: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
id: z.ZodOptional<z.ZodString>;
|
|
64
|
+
datetime: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
pagesScanned: z.ZodNumber;
|
|
67
|
+
scannedRecords: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
datetime: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
newRecordIds: z.ZodArray<z.ZodString>;
|
|
72
|
+
isBaseline: z.ZodBoolean;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type ExternalEventPullTelemetry = z.infer<typeof ExternalEventPullTelemetry>;
|
|
@@ -34,6 +34,7 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
34
34
|
name: z.ZodOptional<z.ZodString>;
|
|
35
35
|
connectionId: z.ZodString;
|
|
36
36
|
integrationId: z.ZodString;
|
|
37
|
+
externalEventTypeId: z.ZodOptional<z.ZodString>;
|
|
37
38
|
config: z.ZodOptional<z.ZodObject<{
|
|
38
39
|
type: z.ZodEnum<typeof ExternalEventSubscriptionType>;
|
|
39
40
|
dataSource: z.ZodOptional<z.ZodObject<{
|
|
@@ -64,6 +65,7 @@ export declare const BaseExternalEventSubscription: z.ZodObject<{
|
|
|
64
65
|
nextRefreshTimestamp: z.ZodOptional<z.ZodNumber>;
|
|
65
66
|
globalWebhookKey: z.ZodOptional<z.ZodString>;
|
|
66
67
|
globalWebhookEventSelector: z.ZodOptional<z.ZodString>;
|
|
68
|
+
incomingWebhookUri: z.ZodOptional<z.ZodString>;
|
|
67
69
|
webhookUri: z.ZodOptional<z.ZodString>;
|
|
68
70
|
}, z.core.$strip>;
|
|
69
71
|
export type BaseExternalEventSubscription = z.infer<typeof BaseExternalEventSubscription>;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DataSchema } from '../../../data-schema';
|
|
3
|
+
export declare enum ExternalEventTypeImplementationType {
|
|
4
|
+
Webhook = "webhook"
|
|
5
|
+
}
|
|
6
|
+
export declare const EXTERNAL_EVENT_TYPE_FUNCTION_KEYS: readonly ["subscribe", "unsubscribe", "handle", "refresh"];
|
|
7
|
+
export type ExternalEventTypeFunctionKey = (typeof EXTERNAL_EVENT_TYPE_FUNCTION_KEYS)[number];
|
|
8
|
+
export declare const ExternalEventTypeEditableProperties: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
10
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
14
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
16
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
17
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
20
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
22
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
25
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
26
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
27
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
28
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
type: z.ZodOptional<z.ZodEnum<typeof ExternalEventTypeImplementationType>>;
|
|
30
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
mapping: "mapping";
|
|
33
|
+
"operation-mapping": "operation-mapping";
|
|
34
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
35
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
36
|
+
javascript: "javascript";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
mapping: "mapping";
|
|
42
|
+
"operation-mapping": "operation-mapping";
|
|
43
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
44
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
45
|
+
javascript: "javascript";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
mapping: "mapping";
|
|
51
|
+
"operation-mapping": "operation-mapping";
|
|
52
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
53
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
54
|
+
javascript: "javascript";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
mapping: "mapping";
|
|
60
|
+
"operation-mapping": "operation-mapping";
|
|
61
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
62
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
63
|
+
javascript: "javascript";
|
|
64
|
+
}>>;
|
|
65
|
+
}, z.core.$loose>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type ExternalEventTypeEditableProperties = z.infer<typeof ExternalEventTypeEditableProperties>;
|
|
68
|
+
export declare const ExternalEventTypeExportProperties: z.ZodObject<{
|
|
69
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
name: z.ZodOptional<z.ZodString>;
|
|
72
|
+
description: z.ZodOptional<z.ZodString>;
|
|
73
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
74
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
75
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
76
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
77
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
80
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
81
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
82
|
+
type: z.ZodOptional<z.ZodEnum<typeof ExternalEventTypeImplementationType>>;
|
|
83
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
mapping: "mapping";
|
|
86
|
+
"operation-mapping": "operation-mapping";
|
|
87
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
88
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
89
|
+
javascript: "javascript";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$loose>>;
|
|
92
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
mapping: "mapping";
|
|
95
|
+
"operation-mapping": "operation-mapping";
|
|
96
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
97
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
98
|
+
javascript: "javascript";
|
|
99
|
+
}>>;
|
|
100
|
+
}, z.core.$loose>>;
|
|
101
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
mapping: "mapping";
|
|
104
|
+
"operation-mapping": "operation-mapping";
|
|
105
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
106
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
107
|
+
javascript: "javascript";
|
|
108
|
+
}>>;
|
|
109
|
+
}, z.core.$loose>>;
|
|
110
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
mapping: "mapping";
|
|
113
|
+
"operation-mapping": "operation-mapping";
|
|
114
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
115
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
116
|
+
javascript: "javascript";
|
|
117
|
+
}>>;
|
|
118
|
+
}, z.core.$loose>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type ExternalEventTypeExportProperties = z.infer<typeof ExternalEventTypeExportProperties>;
|
|
121
|
+
export declare const BaseExternalEventType: z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
124
|
+
key: z.ZodOptional<z.ZodString>;
|
|
125
|
+
description: z.ZodOptional<z.ZodString>;
|
|
126
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
127
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
129
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
130
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
131
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
132
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
133
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
135
|
+
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
138
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
141
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../../errors").ErrorDataSchema, unknown>>>>;
|
|
142
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
143
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
144
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
145
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
146
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
150
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
151
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
152
|
+
type: z.ZodOptional<z.ZodEnum<typeof ExternalEventTypeImplementationType>>;
|
|
153
|
+
subscribe: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
mapping: "mapping";
|
|
156
|
+
"operation-mapping": "operation-mapping";
|
|
157
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
158
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
159
|
+
javascript: "javascript";
|
|
160
|
+
}>>;
|
|
161
|
+
}, z.core.$loose>>;
|
|
162
|
+
unsubscribe: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
mapping: "mapping";
|
|
165
|
+
"operation-mapping": "operation-mapping";
|
|
166
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
167
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
168
|
+
javascript: "javascript";
|
|
169
|
+
}>>;
|
|
170
|
+
}, z.core.$loose>>;
|
|
171
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
173
|
+
mapping: "mapping";
|
|
174
|
+
"operation-mapping": "operation-mapping";
|
|
175
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
176
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
177
|
+
javascript: "javascript";
|
|
178
|
+
}>>;
|
|
179
|
+
}, z.core.$loose>>;
|
|
180
|
+
refresh: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
mapping: "mapping";
|
|
183
|
+
"operation-mapping": "operation-mapping";
|
|
184
|
+
"rest-api-mapping": "rest-api-mapping";
|
|
185
|
+
"graphql-api-mapping": "graphql-api-mapping";
|
|
186
|
+
javascript: "javascript";
|
|
187
|
+
}>>;
|
|
188
|
+
}, z.core.$loose>>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type BaseExternalEventType = z.infer<typeof BaseExternalEventType>;
|
|
@@ -44,11 +44,11 @@ export declare const FieldMappingEditableProperties: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
export type FieldMappingEditableProperties = z.infer<typeof FieldMappingEditableProperties>;
|
|
46
46
|
export declare const FieldMappingExportProperties: z.ZodObject<{
|
|
47
|
-
key: z.ZodOptional<z.ZodString
|
|
47
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
48
48
|
description: z.ZodOptional<z.ZodString>;
|
|
49
49
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
50
50
|
name: z.ZodOptional<z.ZodString>;
|
|
51
|
-
uuid: z.ZodOptional<z.ZodString
|
|
51
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
52
52
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
53
53
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
54
54
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
@@ -55,11 +55,11 @@ export declare const FlowEditableProperties: z.ZodObject<{
|
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
export type FlowEditableProperties = z.infer<typeof FlowEditableProperties>;
|
|
57
57
|
export declare const FlowExportProperties: z.ZodObject<{
|
|
58
|
-
key: z.ZodOptional<z.ZodString
|
|
58
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
59
59
|
description: z.ZodOptional<z.ZodString>;
|
|
60
60
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
61
61
|
name: z.ZodOptional<z.ZodString>;
|
|
62
|
-
uuid: z.ZodOptional<z.ZodString
|
|
62
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
63
63
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
64
64
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
65
65
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
@@ -19,6 +19,7 @@ export * from './app-data-schemas';
|
|
|
19
19
|
export * from './external-event-subscriptions';
|
|
20
20
|
export * from './external-event-log-records';
|
|
21
21
|
export * from './external-event-pulls';
|
|
22
|
+
export * from './external-event-types';
|
|
22
23
|
export * from './action-run-log-records';
|
|
23
24
|
export * from './connected-products';
|
|
24
25
|
export * from './connection-attempt-logs';
|
|
@@ -81,10 +81,10 @@ export declare const IntegrationEditableProperties: z.ZodObject<{
|
|
|
81
81
|
}, z.core.$strip>;
|
|
82
82
|
export type IntegrationEditableProperties = z.infer<typeof IntegrationEditableProperties>;
|
|
83
83
|
export declare const IntegrationExportProperties: z.ZodObject<{
|
|
84
|
-
key: z.ZodOptional<z.ZodString
|
|
84
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
85
85
|
description: z.ZodOptional<z.ZodString>;
|
|
86
86
|
name: z.ZodOptional<z.ZodString>;
|
|
87
|
-
uuid: z.ZodOptional<z.ZodString
|
|
87
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
88
88
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
89
89
|
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
90
90
|
logoUri: z.ZodOptional<z.ZodString>;
|
|
@@ -41,8 +41,8 @@ export declare const PackageEditableProperties: z.ZodObject<{
|
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export type PackageEditableProperties = z.infer<typeof PackageEditableProperties>;
|
|
43
43
|
export declare const PackageExportProperties: z.ZodObject<{
|
|
44
|
-
uuid: z.ZodOptional<z.ZodString
|
|
45
|
-
key: z.ZodOptional<z.ZodString
|
|
44
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
46
46
|
name: z.ZodOptional<z.ZodString>;
|
|
47
47
|
description: z.ZodOptional<z.ZodString>;
|
|
48
48
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -8,3 +8,4 @@ export declare function parseMembraneElementPath(relativePath: string): {
|
|
|
8
8
|
} | undefined;
|
|
9
9
|
export declare function getConnectorSpecPath(connectorUuid: string): string;
|
|
10
10
|
export declare function getConnectorVersionPath(connectorUuid: string, version: string): string;
|
|
11
|
+
export declare function getConnectorVersionSpecPath(connectorUuid: string, version: string): string;
|
|
@@ -35,11 +35,15 @@ export declare enum WorkspaceElementType {
|
|
|
35
35
|
ExternalEventSubscription = "external-event-subscription",
|
|
36
36
|
ExternalEventLogRecord = "external-event-log-record",
|
|
37
37
|
ExternalEventPull = "external-event-pull",
|
|
38
|
+
ExternalEventType = "external-event-type",
|
|
38
39
|
Screen = "screen",
|
|
39
40
|
ActionRunLogRecord = "action-run-log-record",
|
|
40
41
|
ExternalApiLogRecord = "external-api-log-record",
|
|
41
42
|
IncomingWebhookLogRecord = "incoming-webhook-log-record",
|
|
42
|
-
ConnectedProduct = "connected-product"
|
|
43
|
+
ConnectedProduct = "connected-product",
|
|
44
|
+
AgentHarness = "agent-harness",
|
|
45
|
+
AgentSkill = "agent-skill",
|
|
46
|
+
AgentInstruction = "agent-instruction"
|
|
43
47
|
}
|
|
44
48
|
export declare enum WorkspaceEventType {
|
|
45
49
|
ConnectionCreated = "connection.created",
|
|
@@ -146,9 +150,17 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
|
|
|
146
150
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
147
151
|
}, z.core.$strip>;
|
|
148
152
|
export type BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceReadOnlyProperties>;
|
|
153
|
+
export declare const BaseExportProperties: z.ZodObject<{
|
|
154
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
158
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type BaseExportProperties = z.infer<typeof BaseExportProperties>;
|
|
149
161
|
export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.ZodObject<{
|
|
150
|
-
uuid: z.ZodOptional<z.ZodString
|
|
151
|
-
key: z.ZodOptional<z.ZodString
|
|
162
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
152
164
|
name: z.ZodOptional<z.ZodString>;
|
|
153
165
|
description: z.ZodOptional<z.ZodString>;
|
|
154
166
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -1,76 +1,89 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const WORKSPACE_TOKEN_GRANT_TYPES: readonly ["mcp-oauth", "agent-session", "api"];
|
|
3
|
+
export declare const WorkspaceTokenGrantType: z.ZodEnum<{
|
|
4
4
|
api: "api";
|
|
5
5
|
"agent-session": "agent-session";
|
|
6
6
|
"mcp-oauth": "mcp-oauth";
|
|
7
|
-
"cli-oauth": "cli-oauth";
|
|
8
7
|
}>;
|
|
9
|
-
export type
|
|
10
|
-
export declare const
|
|
8
|
+
export type WorkspaceTokenGrantType = z.infer<typeof WorkspaceTokenGrantType>;
|
|
9
|
+
export declare const WorkspaceToken: z.ZodObject<{
|
|
11
10
|
id: z.ZodString;
|
|
12
|
-
workspaceId: z.
|
|
13
|
-
platformUserId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
workspaceId: z.ZodString;
|
|
14
12
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
15
14
|
grantType: z.ZodEnum<{
|
|
16
15
|
api: "api";
|
|
17
16
|
"agent-session": "agent-session";
|
|
18
17
|
"mcp-oauth": "mcp-oauth";
|
|
19
|
-
"cli-oauth": "cli-oauth";
|
|
20
18
|
}>;
|
|
21
19
|
grantId: z.ZodOptional<z.ZodString>;
|
|
22
20
|
grantName: z.ZodOptional<z.ZodString>;
|
|
23
21
|
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
defaultWorkspaceKey: z.ZodOptional<z.ZodString>;
|
|
24
|
+
defaultTenantKey: z.ZodOptional<z.ZodString>;
|
|
25
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
24
27
|
createdAt: z.ZodString;
|
|
28
|
+
lastUsedDate: z.ZodOptional<z.ZodString>;
|
|
25
29
|
}, z.core.$strip>;
|
|
26
|
-
export type
|
|
27
|
-
export declare const
|
|
30
|
+
export type WorkspaceToken = z.infer<typeof WorkspaceToken>;
|
|
31
|
+
export declare const CreateWorkspaceTokenResponse: z.ZodObject<{
|
|
28
32
|
id: z.ZodString;
|
|
29
|
-
workspaceId: z.
|
|
30
|
-
platformUserId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
workspaceId: z.ZodString;
|
|
31
34
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
32
36
|
grantType: z.ZodEnum<{
|
|
33
37
|
api: "api";
|
|
34
38
|
"agent-session": "agent-session";
|
|
35
39
|
"mcp-oauth": "mcp-oauth";
|
|
36
|
-
"cli-oauth": "cli-oauth";
|
|
37
40
|
}>;
|
|
38
41
|
grantId: z.ZodOptional<z.ZodString>;
|
|
39
42
|
grantName: z.ZodOptional<z.ZodString>;
|
|
40
43
|
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
defaultWorkspaceKey: z.ZodOptional<z.ZodString>;
|
|
46
|
+
defaultTenantKey: z.ZodOptional<z.ZodString>;
|
|
47
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
41
49
|
createdAt: z.ZodString;
|
|
50
|
+
lastUsedDate: z.ZodOptional<z.ZodString>;
|
|
42
51
|
accessToken: z.ZodString;
|
|
43
52
|
}, z.core.$strip>;
|
|
44
|
-
export type
|
|
45
|
-
export declare const
|
|
53
|
+
export type CreateWorkspaceTokenResponse = z.infer<typeof CreateWorkspaceTokenResponse>;
|
|
54
|
+
export declare const CreateWorkspaceTokenRequest: z.ZodObject<{
|
|
46
55
|
grantType: z.ZodEnum<{
|
|
47
56
|
api: "api";
|
|
48
57
|
"agent-session": "agent-session";
|
|
49
58
|
"mcp-oauth": "mcp-oauth";
|
|
50
|
-
"cli-oauth": "cli-oauth";
|
|
51
59
|
}>;
|
|
52
60
|
grantId: z.ZodString;
|
|
53
61
|
grantName: z.ZodString;
|
|
54
62
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
55
63
|
clientKey: z.ZodOptional<z.ZodString>;
|
|
56
64
|
}, z.core.$strip>;
|
|
57
|
-
export type
|
|
58
|
-
export declare const
|
|
65
|
+
export type CreateWorkspaceTokenRequest = z.infer<typeof CreateWorkspaceTokenRequest>;
|
|
66
|
+
export declare const WorkspaceTokenListResponse: z.ZodObject<{
|
|
59
67
|
items: z.ZodArray<z.ZodObject<{
|
|
60
68
|
id: z.ZodString;
|
|
61
|
-
workspaceId: z.
|
|
62
|
-
platformUserId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
workspaceId: z.ZodString;
|
|
63
70
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
64
72
|
grantType: z.ZodEnum<{
|
|
65
73
|
api: "api";
|
|
66
74
|
"agent-session": "agent-session";
|
|
67
75
|
"mcp-oauth": "mcp-oauth";
|
|
68
|
-
"cli-oauth": "cli-oauth";
|
|
69
76
|
}>;
|
|
70
77
|
grantId: z.ZodOptional<z.ZodString>;
|
|
71
78
|
grantName: z.ZodOptional<z.ZodString>;
|
|
72
79
|
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
defaultWorkspaceKey: z.ZodOptional<z.ZodString>;
|
|
82
|
+
defaultTenantKey: z.ZodOptional<z.ZodString>;
|
|
83
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
73
85
|
createdAt: z.ZodString;
|
|
86
|
+
lastUsedDate: z.ZodOptional<z.ZodString>;
|
|
74
87
|
}, z.core.$strip>>;
|
|
75
88
|
}, z.core.$strip>;
|
|
76
|
-
export type
|
|
89
|
+
export type WorkspaceTokenListResponse = z.infer<typeof WorkspaceTokenListResponse>;
|
|
@@ -313,12 +313,6 @@ export declare const GenerateWorkspaceAccessTokenResponse: z.ZodObject<{
|
|
|
313
313
|
token: z.ZodString;
|
|
314
314
|
}, z.core.$strip>;
|
|
315
315
|
export type GenerateWorkspaceAccessTokenResponse = z.infer<typeof GenerateWorkspaceAccessTokenResponse>;
|
|
316
|
-
export declare const ListWorkspacesQuery: z.ZodObject<{
|
|
317
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
318
|
-
workspaceKey: z.ZodOptional<z.ZodString>;
|
|
319
|
-
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
320
|
-
}, z.core.$strip>;
|
|
321
|
-
export type ListWorkspacesQuery = z.infer<typeof ListWorkspacesQuery>;
|
|
322
316
|
export declare const GetWorkspaceQuery: z.ZodObject<{
|
|
323
317
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
324
318
|
}, z.core.$strip>;
|
|
@@ -21,7 +21,7 @@ export interface WorkspaceElementChangeInfo {
|
|
|
21
21
|
export interface WorkspaceExportComparisonResult {
|
|
22
22
|
comparison: WorkspaceExportComparison;
|
|
23
23
|
changes: Record<string, WorkspaceElementChangeInfo>;
|
|
24
|
-
|
|
24
|
+
sourceUuidByTargetUuid: Map<string, string>;
|
|
25
25
|
diff?: string;
|
|
26
26
|
}
|
|
27
27
|
export interface WorkspaceExportComparisonOptions {
|
|
@@ -29,4 +29,7 @@ export interface WorkspaceExportComparisonOptions {
|
|
|
29
29
|
includeDiff?: boolean;
|
|
30
30
|
}
|
|
31
31
|
export declare function compareWorkspaceExports(baseExport: Partial<WorkspaceExport>, targetExport: Partial<WorkspaceExport>, options?: WorkspaceExportComparisonOptions): WorkspaceExportComparisonResult;
|
|
32
|
+
export declare function emptyComparisonResult(): WorkspaceExportComparisonResult;
|
|
33
|
+
export declare function mergeComparisons(dest: WorkspaceExportComparisonResult, src: WorkspaceExportComparisonResult): WorkspaceExportComparisonResult;
|
|
34
|
+
export declare function compareElementMaps(baseElements: Map<string, any>, targetElements: Map<string, any>, type: WorkspaceElementType, options?: WorkspaceExportComparisonOptions): WorkspaceExportComparisonResult;
|
|
32
35
|
export declare function getElementSelector(type: WorkspaceElementType, key: string, integrationIdentifier?: string): string;
|