@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
|
@@ -10,6 +10,8 @@ export declare const CreateConnectionRequestPayload: z.ZodObject<{
|
|
|
10
10
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
12
12
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
13
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
13
15
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
14
16
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
15
17
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -29,6 +31,8 @@ export declare const ConnectionRequest: z.ZodObject<{
|
|
|
29
31
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
30
32
|
connectorKey: z.ZodOptional<z.ZodString>;
|
|
31
33
|
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
34
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
externalAppKey: z.ZodOptional<z.ZodString>;
|
|
32
36
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
33
37
|
connectionKey: z.ZodOptional<z.ZodString>;
|
|
34
38
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -29,6 +29,7 @@ export declare const ConnectionClientAction: z.ZodObject<{
|
|
|
29
29
|
description: z.ZodString;
|
|
30
30
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
31
31
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
32
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
32
33
|
}, z.core.$strip>;
|
|
33
34
|
export type ConnectionClientAction = z.infer<typeof ConnectionClientAction>;
|
|
34
35
|
export declare const BaseConnection: z.ZodObject<{
|
|
@@ -68,6 +69,7 @@ export declare const BaseConnection: z.ZodObject<{
|
|
|
68
69
|
description: z.ZodString;
|
|
69
70
|
uiUrl: z.ZodOptional<z.ZodString>;
|
|
70
71
|
agentInstructions: z.ZodOptional<z.ZodString>;
|
|
72
|
+
handoffAgentInstructions: z.ZodOptional<z.ZodString>;
|
|
71
73
|
}, z.core.$strip>>;
|
|
72
74
|
userId: z.ZodString;
|
|
73
75
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -2671,7 +2671,7 @@ export declare const WritableConnectorVersionData: z.ZodObject<{
|
|
|
2671
2671
|
}, z.core.$strip>;
|
|
2672
2672
|
export type WritableConnectorVersionData = z.infer<typeof WritableConnectorVersionData>;
|
|
2673
2673
|
export declare const ConnectorVersionData: z.ZodObject<{
|
|
2674
|
-
baseUri: z.ZodString
|
|
2674
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
2675
2675
|
revision: z.ZodOptional<z.ZodString>;
|
|
2676
2676
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
2677
2677
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2889,7 +2889,7 @@ export declare const ConnectorVersionData: z.ZodObject<{
|
|
|
2889
2889
|
}, z.core.$strip>;
|
|
2890
2890
|
export type ConnectorVersionData = z.infer<typeof ConnectorVersionData>;
|
|
2891
2891
|
export declare const ConnectorVersion: z.ZodObject<{
|
|
2892
|
-
baseUri: z.ZodString
|
|
2892
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
2893
2893
|
revision: z.ZodOptional<z.ZodString>;
|
|
2894
2894
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
2895
2895
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3320,7 +3320,7 @@ export declare const WriteableConnectorFields: z.ZodObject<{
|
|
|
3320
3320
|
proxyKey: z.ZodOptional<z.ZodString>;
|
|
3321
3321
|
}, z.core.$strip>;
|
|
3322
3322
|
export declare const ConnectorExportProperties: z.ZodObject<{
|
|
3323
|
-
key: z.ZodOptional<z.ZodString
|
|
3323
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
3324
3324
|
type: z.ZodOptional<z.ZodEnum<{
|
|
3325
3325
|
proxy: "proxy";
|
|
3326
3326
|
"integration-app-token": "integration-app-token";
|
|
@@ -3330,7 +3330,7 @@ export declare const ConnectorExportProperties: z.ZodObject<{
|
|
|
3330
3330
|
"client-credentials": "client-credentials";
|
|
3331
3331
|
}>>;
|
|
3332
3332
|
name: z.ZodOptional<z.ZodString>;
|
|
3333
|
-
uuid: z.
|
|
3333
|
+
uuid: z.ZodString;
|
|
3334
3334
|
externalAppUuid: z.ZodOptional<z.ZodString>;
|
|
3335
3335
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3336
3336
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3989,7 +3989,7 @@ export declare const Connector: z.ZodObject<{
|
|
|
3989
3989
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
3990
3990
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
3991
3991
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3992
|
-
baseUri: z.ZodString
|
|
3992
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
3993
3993
|
revision: z.ZodOptional<z.ZodString>;
|
|
3994
3994
|
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
3995
3995
|
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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>;
|
|
@@ -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>>;
|
|
@@ -35,6 +35,7 @@ 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",
|
|
@@ -146,9 +147,17 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
|
|
|
146
147
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
147
148
|
}, z.core.$strip>;
|
|
148
149
|
export type BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceReadOnlyProperties>;
|
|
150
|
+
export declare const BaseExportProperties: z.ZodObject<{
|
|
151
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
152
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
153
|
+
name: z.ZodOptional<z.ZodString>;
|
|
154
|
+
description: z.ZodOptional<z.ZodString>;
|
|
155
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type BaseExportProperties = z.infer<typeof BaseExportProperties>;
|
|
149
158
|
export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.ZodObject<{
|
|
150
|
-
uuid: z.ZodOptional<z.ZodString
|
|
151
|
-
key: z.ZodOptional<z.ZodString
|
|
159
|
+
uuid: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
160
|
+
key: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
152
161
|
name: z.ZodOptional<z.ZodString>;
|
|
153
162
|
description: z.ZodOptional<z.ZodString>;
|
|
154
163
|
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;
|