@membranehq/sdk 0.9.4 → 0.9.6
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/bundle.d.ts +1081 -187
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +13 -3
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +1540 -51
- package/dist/dts/workspace-elements/base/connectors/methods.d.ts +111 -34
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2188 -53
- package/dist/dts/workspace-elements/base/connectors/udm.d.ts +29 -13
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +5 -4
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspaces/compare.d.ts +8 -1
- package/dist/dts/workspaces/types.d.ts +24 -2
- package/dist/index.browser.d.mts +4236 -457
- package/dist/index.browser.d.ts +4236 -457
- package/dist/index.browser.js +246 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +216 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +4236 -457
- package/dist/index.node.d.ts +4236 -457
- package/dist/index.node.js +246 -5
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +216 -6
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.browser.js
CHANGED
|
@@ -3779,6 +3779,45 @@ const CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = {
|
|
|
3779
3779
|
[exports.ConnectorMethodImplementationType.javascript]: ['.js', '.ts'],
|
|
3780
3780
|
[exports.ConnectorMethodImplementationType.mapping]: ['.map.yml', '.yml'],
|
|
3781
3781
|
};
|
|
3782
|
+
const ConnectorMethodImplementationBase = z.z.object({
|
|
3783
|
+
implementationType: z.z.nativeEnum(exports.ConnectorMethodImplementationType).optional(),
|
|
3784
|
+
filePath: z.z.string().optional(),
|
|
3785
|
+
inheritedFromPath: z.z.array(z.z.string()).optional(),
|
|
3786
|
+
isIncomplete: z.z.boolean().optional(),
|
|
3787
|
+
parametersSchema: DataSchema.optional(),
|
|
3788
|
+
});
|
|
3789
|
+
const ConnectorMethodImplementationMapping = ConnectorMethodImplementationBase.extend({
|
|
3790
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.mapping),
|
|
3791
|
+
mapping: z.z.any(),
|
|
3792
|
+
});
|
|
3793
|
+
const ConnectorMethodImplementationOperationMapping = ConnectorMethodImplementationBase.extend({
|
|
3794
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.operationMapping),
|
|
3795
|
+
mapping: z.z.any(),
|
|
3796
|
+
});
|
|
3797
|
+
const ConnectorMethodImplementationRestApiMapping = ConnectorMethodImplementationBase.extend({
|
|
3798
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.restApiMapping),
|
|
3799
|
+
mapping: z.z.any(),
|
|
3800
|
+
});
|
|
3801
|
+
const ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationBase.extend({
|
|
3802
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.graphqlApiMapping),
|
|
3803
|
+
mapping: z.z.any(),
|
|
3804
|
+
});
|
|
3805
|
+
const ConnectorMethodImplementationJavascript = ConnectorMethodImplementationBase.extend({
|
|
3806
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.javascript),
|
|
3807
|
+
code: z.z.string(),
|
|
3808
|
+
});
|
|
3809
|
+
const ConnectorMethodImplementationNotSupported = ConnectorMethodImplementationBase.extend({
|
|
3810
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.notSupported),
|
|
3811
|
+
});
|
|
3812
|
+
const ConnectorMethodImplementation = z.z.union([
|
|
3813
|
+
ConnectorMethodImplementationBase,
|
|
3814
|
+
ConnectorMethodImplementationMapping,
|
|
3815
|
+
ConnectorMethodImplementationOperationMapping,
|
|
3816
|
+
ConnectorMethodImplementationRestApiMapping,
|
|
3817
|
+
ConnectorMethodImplementationGraphqlApiMapping,
|
|
3818
|
+
ConnectorMethodImplementationJavascript,
|
|
3819
|
+
ConnectorMethodImplementationNotSupported,
|
|
3820
|
+
]);
|
|
3782
3821
|
|
|
3783
3822
|
const CONNECTOR_AUTH_TYPES = [
|
|
3784
3823
|
'integration-app-token',
|
|
@@ -3788,6 +3827,25 @@ const CONNECTOR_AUTH_TYPES = [
|
|
|
3788
3827
|
'client-credentials',
|
|
3789
3828
|
'proxy',
|
|
3790
3829
|
];
|
|
3830
|
+
const ConnectorAuthSpec = z.z.object({
|
|
3831
|
+
title: z.z.string().optional(),
|
|
3832
|
+
description: z.z.string().optional(),
|
|
3833
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
3834
|
+
ui: z.z
|
|
3835
|
+
.object({
|
|
3836
|
+
schema: DataSchema.optional(),
|
|
3837
|
+
helpUri: z.z.string().optional(),
|
|
3838
|
+
})
|
|
3839
|
+
.optional(),
|
|
3840
|
+
});
|
|
3841
|
+
const ConnectorAuthHandlerBase = ConnectorAuthSpec.extend({
|
|
3842
|
+
credentialsSchema: DataSchema.optional(),
|
|
3843
|
+
customCredentialsSchema: DataSchema.optional(),
|
|
3844
|
+
makeApiClient: ConnectorMethodImplementationBase.optional(),
|
|
3845
|
+
refreshCredentials: ConnectorMethodImplementationBase.optional(),
|
|
3846
|
+
test: ConnectorMethodImplementationBase.optional(),
|
|
3847
|
+
enabled: z.z.any().optional(),
|
|
3848
|
+
});
|
|
3791
3849
|
function getAuthSpec(spec, authOptionKey) {
|
|
3792
3850
|
var _a, _b;
|
|
3793
3851
|
let authSpec;
|
|
@@ -3917,6 +3975,52 @@ const ConnectorAuthMethodTypes = {
|
|
|
3917
3975
|
isRequired: true,
|
|
3918
3976
|
},
|
|
3919
3977
|
};
|
|
3978
|
+
const ConnectorAuthOAuth2 = ConnectorAuthHandlerBase.extend({
|
|
3979
|
+
type: z.z.literal('oauth2'),
|
|
3980
|
+
getOAuthConfig: ConnectorMethodImplementation.optional(),
|
|
3981
|
+
getTokenData: ConnectorMethodImplementation.optional(),
|
|
3982
|
+
getCredentialsFromAccessTokenResponse: ConnectorMethodImplementation.optional(),
|
|
3983
|
+
getCredentialsFromRefreshTokenResponse: ConnectorMethodImplementation.optional(),
|
|
3984
|
+
oAuthConfig: ConnectorMethodImplementation.optional(),
|
|
3985
|
+
});
|
|
3986
|
+
const ConnectorAuthOAuth1 = ConnectorAuthHandlerBase.extend({
|
|
3987
|
+
type: z.z.literal('oauth1'),
|
|
3988
|
+
getOAuthConfig: ConnectorMethodImplementation.optional(),
|
|
3989
|
+
});
|
|
3990
|
+
const ConnectorAuthClientCredentials = ConnectorAuthHandlerBase.extend({
|
|
3991
|
+
type: z.z.literal('client-credentials'),
|
|
3992
|
+
getCredentialsFromConnectionParameters: ConnectorMethodImplementationBase.optional(),
|
|
3993
|
+
});
|
|
3994
|
+
const ConnectorAuthProxy = ConnectorAuthHandlerBase.extend({
|
|
3995
|
+
type: z.z.literal('proxy'),
|
|
3996
|
+
proxyKey: z.z.string(),
|
|
3997
|
+
});
|
|
3998
|
+
const ConnectorAuthIntegrationAppToken = ConnectorAuthHandlerBase.extend({
|
|
3999
|
+
type: z.z.literal('integration-app-token'),
|
|
4000
|
+
});
|
|
4001
|
+
const ConnectorAuthMembraneToken = ConnectorAuthHandlerBase.extend({
|
|
4002
|
+
type: z.z.literal('membrane-token'),
|
|
4003
|
+
});
|
|
4004
|
+
const ConnectorAuthVariant = z.z.union([
|
|
4005
|
+
ConnectorAuthOAuth2,
|
|
4006
|
+
ConnectorAuthOAuth1,
|
|
4007
|
+
ConnectorAuthClientCredentials,
|
|
4008
|
+
ConnectorAuthIntegrationAppToken,
|
|
4009
|
+
ConnectorAuthMembraneToken,
|
|
4010
|
+
ConnectorAuthProxy,
|
|
4011
|
+
]);
|
|
4012
|
+
const ConnectorAuth = ConnectorAuthVariant.and(z.z.object({
|
|
4013
|
+
options: z.z
|
|
4014
|
+
.record(z.z.string(), z.z.union([
|
|
4015
|
+
ConnectorAuthOAuth2,
|
|
4016
|
+
ConnectorAuthOAuth1,
|
|
4017
|
+
ConnectorAuthClientCredentials,
|
|
4018
|
+
ConnectorAuthIntegrationAppToken,
|
|
4019
|
+
ConnectorAuthMembraneToken,
|
|
4020
|
+
ConnectorAuthProxy,
|
|
4021
|
+
]))
|
|
4022
|
+
.optional(),
|
|
4023
|
+
}));
|
|
3920
4024
|
const OAUTH_CONFIG_SCHEMA = {
|
|
3921
4025
|
type: 'object',
|
|
3922
4026
|
properties: {
|
|
@@ -4053,6 +4157,8 @@ const ConnectorOperationMethodImplementationTypes = [
|
|
|
4053
4157
|
exports.ConnectorMethodImplementationType.javascript,
|
|
4054
4158
|
];
|
|
4055
4159
|
|
|
4160
|
+
const CONNECTOR_VERSION_DEVELOPMENT = 'dev';
|
|
4161
|
+
const CONNECTOR_VERSION_LATEST = 'latest';
|
|
4056
4162
|
const CONNECTOR_CATEGORIES = [
|
|
4057
4163
|
'Accounting',
|
|
4058
4164
|
'Ads',
|
|
@@ -4074,12 +4180,82 @@ const CONNECTOR_CATEGORIES = [
|
|
|
4074
4180
|
'Sales',
|
|
4075
4181
|
'Ticketing',
|
|
4076
4182
|
];
|
|
4183
|
+
const ConnectorStatusValues = ['production', 'beta', 'planned'];
|
|
4184
|
+
const ConnectorUiSpec = z.z.object({
|
|
4185
|
+
schema: DataSchema.optional(),
|
|
4186
|
+
description: z.z.string().optional(),
|
|
4187
|
+
helpUri: z.z.string().optional(),
|
|
4188
|
+
test: z.z.boolean().optional(),
|
|
4189
|
+
});
|
|
4190
|
+
const ConnectorSpec = z.z.object({
|
|
4191
|
+
key: z.z.string().optional(),
|
|
4192
|
+
name: z.z.string().optional(),
|
|
4193
|
+
appUri: z.z.string().optional(),
|
|
4194
|
+
logoUri: z.z.string().optional(),
|
|
4195
|
+
apiDocsUri: z.z.string().optional(),
|
|
4196
|
+
api: z.z
|
|
4197
|
+
.object({
|
|
4198
|
+
type: z.z.enum(['openapi', 'graphql']),
|
|
4199
|
+
})
|
|
4200
|
+
.optional(),
|
|
4201
|
+
ui: ConnectorUiSpec.optional(),
|
|
4202
|
+
auth: ConnectorAuth.optional(),
|
|
4203
|
+
parametersSchema: DataSchema.optional(),
|
|
4204
|
+
udms: z.z.array(z.z.string()).optional(),
|
|
4205
|
+
udm: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4206
|
+
operations: z.z.array(z.z.any()).optional(),
|
|
4207
|
+
test: ConnectorMethodImplementation.optional(),
|
|
4208
|
+
hasReadme: z.z.boolean().optional(),
|
|
4209
|
+
appUuid: z.z.string().optional(),
|
|
4210
|
+
knowledgeBaseUuid: z.z.string().optional(),
|
|
4211
|
+
workspaceId: z.z.string().optional(),
|
|
4212
|
+
data: z.z.any().optional(),
|
|
4213
|
+
});
|
|
4077
4214
|
exports.ConnectorStatus = void 0;
|
|
4078
4215
|
(function (ConnectorStatus) {
|
|
4079
4216
|
ConnectorStatus["production"] = "production";
|
|
4080
4217
|
ConnectorStatus["beta"] = "beta";
|
|
4081
4218
|
ConnectorStatus["planned"] = "planned";
|
|
4082
4219
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
4220
|
+
const ConnectorVersionData = z.z.object({
|
|
4221
|
+
baseUri: z.z.string(),
|
|
4222
|
+
revision: z.z.string().optional(),
|
|
4223
|
+
dataCollectionsCount: z.z.number().optional(),
|
|
4224
|
+
operationsCount: z.z.number().optional(),
|
|
4225
|
+
eventsCount: z.z.number().optional(),
|
|
4226
|
+
udms: z.z.array(z.z.string()).optional(),
|
|
4227
|
+
hasTest: z.z.boolean().optional(),
|
|
4228
|
+
hasAuthTest: z.z.boolean().optional(),
|
|
4229
|
+
hasOperations: z.z.boolean().optional(),
|
|
4230
|
+
hasData: z.z.boolean().optional(),
|
|
4231
|
+
isReadOnly: z.z.boolean().optional(),
|
|
4232
|
+
version: z.z.string(),
|
|
4233
|
+
});
|
|
4234
|
+
const ConnectorVersion = ConnectorVersionData.extend({
|
|
4235
|
+
id: z.z.string(),
|
|
4236
|
+
connectorId: z.z.string(),
|
|
4237
|
+
changelog: z.z.string(),
|
|
4238
|
+
});
|
|
4239
|
+
const BaseConnector = z.z.object({
|
|
4240
|
+
id: z.z.string(),
|
|
4241
|
+
key: z.z.string(),
|
|
4242
|
+
uuid: z.z.string(),
|
|
4243
|
+
name: z.z.string(),
|
|
4244
|
+
logoUri: z.z.string(),
|
|
4245
|
+
appUri: z.z.string(),
|
|
4246
|
+
apiDocsUri: z.z.string(),
|
|
4247
|
+
hasReadme: z.z.boolean(),
|
|
4248
|
+
status: z.z.string().optional(),
|
|
4249
|
+
categories: z.z.array(z.z.string()).optional(),
|
|
4250
|
+
isPublic: z.z.boolean().optional(),
|
|
4251
|
+
popularity: z.z.number().optional(),
|
|
4252
|
+
appUuid: z.z.string().optional(),
|
|
4253
|
+
});
|
|
4254
|
+
const Connector = z.z
|
|
4255
|
+
.object({})
|
|
4256
|
+
.extend(ConnectorSpec.shape)
|
|
4257
|
+
.extend(BaseConnector.shape)
|
|
4258
|
+
.extend(ConnectorVersionData.shape);
|
|
4083
4259
|
const MinimalConnector = z.z.object({
|
|
4084
4260
|
id: z.z.string(),
|
|
4085
4261
|
key: z.z.string(),
|
|
@@ -8302,6 +8478,10 @@ const DataCollectionSpec = z.z.object({
|
|
|
8302
8478
|
udm: DataCollectionUdmsSpec.optional(),
|
|
8303
8479
|
find: DataCollectionFindSpec.optional(),
|
|
8304
8480
|
});
|
|
8481
|
+
const DataLocationPointer = z.z.object({
|
|
8482
|
+
key: z.z.string(),
|
|
8483
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8484
|
+
});
|
|
8305
8485
|
const DataCollectionMethodRequest = z.z.object({
|
|
8306
8486
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8307
8487
|
});
|
|
@@ -8369,6 +8549,18 @@ const ConnectorDataLocationTypes = {
|
|
|
8369
8549
|
collection: DataLocationTypeCollection,
|
|
8370
8550
|
};
|
|
8371
8551
|
|
|
8552
|
+
const ConnectorUdmListItem = z.z.object({
|
|
8553
|
+
key: z.z.string(),
|
|
8554
|
+
});
|
|
8555
|
+
const ConnectorUdmCollectionMapping = DataLocationPointer.extend({
|
|
8556
|
+
fieldsToCollection: z.z.any().optional(),
|
|
8557
|
+
fieldsFromCollection: z.z.any().optional(),
|
|
8558
|
+
});
|
|
8559
|
+
const ConnectorUdmSpec = z.z.object({
|
|
8560
|
+
defaultCollection: DataLocationPointer.optional(),
|
|
8561
|
+
rootDirectory: DataLocationPointer.optional(),
|
|
8562
|
+
collectionMappings: z.z.array(ConnectorUdmCollectionMapping),
|
|
8563
|
+
});
|
|
8372
8564
|
function findUdmCollectionMapping(udm, collectionKey, parameters) {
|
|
8373
8565
|
if (!Array.isArray(udm === null || udm === void 0 ? void 0 : udm.collectionMappings)) {
|
|
8374
8566
|
return undefined;
|
|
@@ -9346,6 +9538,7 @@ const BaseExternalEventSubscription = z.z.object({
|
|
|
9346
9538
|
nextRefreshTimestamp: z.z.number().optional(),
|
|
9347
9539
|
globalWebhookKey: z.z.string().optional(),
|
|
9348
9540
|
globalWebhookEventSelector: z.z.string().optional(),
|
|
9541
|
+
webhookUri: z.z.string().optional(),
|
|
9349
9542
|
});
|
|
9350
9543
|
|
|
9351
9544
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9761,10 +9954,12 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9761
9954
|
});
|
|
9762
9955
|
|
|
9763
9956
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9957
|
+
userId: z.z.string().optional(),
|
|
9764
9958
|
connectionId: z.z.string().optional(),
|
|
9765
9959
|
integrationId: z.z.string().optional(),
|
|
9766
9960
|
externalEventSubscriptionId: z.z.string().optional(),
|
|
9767
9961
|
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9962
|
+
startedAfter: z.z.string().optional(),
|
|
9768
9963
|
});
|
|
9769
9964
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9770
9965
|
user: BaseCustomer.optional(),
|
|
@@ -9786,6 +9981,11 @@ const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
|
9786
9981
|
connection: BaseConnection.optional(),
|
|
9787
9982
|
});
|
|
9788
9983
|
|
|
9984
|
+
const ListExternalEventSubscriptionsQuery = CommonListElementsQuery.extend({
|
|
9985
|
+
userId: z.z.string().optional(),
|
|
9986
|
+
connectionId: z.z.string().optional(),
|
|
9987
|
+
integrationId: z.z.string().optional(),
|
|
9988
|
+
});
|
|
9789
9989
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
9790
9990
|
user: BaseCustomer.optional(),
|
|
9791
9991
|
connection: BaseConnection.optional(),
|
|
@@ -10647,6 +10847,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10647
10847
|
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10648
10848
|
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10649
10849
|
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10850
|
+
parallelInstantTasksActiveJobs: WorkspaceLimit.optional(),
|
|
10650
10851
|
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10651
10852
|
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10652
10853
|
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10659,6 +10860,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10659
10860
|
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10660
10861
|
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10661
10862
|
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10863
|
+
instantTasksQueueSize: WorkspaceLimit.optional(),
|
|
10662
10864
|
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10663
10865
|
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10664
10866
|
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10775,13 +10977,14 @@ exports.WorkspaceElementChangeType = void 0;
|
|
|
10775
10977
|
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10776
10978
|
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10777
10979
|
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10778
|
-
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10980
|
+
function compareWorkspaceExports(baseExport, targetExport, options = { includeDeletions: true }) {
|
|
10779
10981
|
const changes = [];
|
|
10780
|
-
const
|
|
10982
|
+
const comparison = {
|
|
10781
10983
|
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10782
10984
|
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10783
10985
|
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10784
10986
|
};
|
|
10987
|
+
const sourceUuidByTargetUuid = new Map();
|
|
10785
10988
|
const integrationMap = buildIntegrationsMap([
|
|
10786
10989
|
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10787
10990
|
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
@@ -10810,15 +11013,21 @@ function compareWorkspaceExports(baseExport, targetExport) {
|
|
|
10810
11013
|
for (const selector of allSelectors) {
|
|
10811
11014
|
const baseElement = baseMap.get(selector);
|
|
10812
11015
|
const targetElement = targetMap.get(selector);
|
|
11016
|
+
if (baseElement && targetElement && baseElement.uuid !== targetElement.uuid) {
|
|
11017
|
+
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
11018
|
+
}
|
|
10813
11019
|
const change = compareElementExports(baseElement, targetElement);
|
|
11020
|
+
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === exports.WorkspaceElementChangeType.DELETE) {
|
|
11021
|
+
continue;
|
|
11022
|
+
}
|
|
10814
11023
|
if (change) {
|
|
10815
11024
|
changes.push(change);
|
|
10816
11025
|
}
|
|
10817
11026
|
}
|
|
10818
11027
|
changes.forEach((change) => {
|
|
10819
|
-
|
|
11028
|
+
comparison[change.type].add(change.uuid);
|
|
10820
11029
|
});
|
|
10821
|
-
return
|
|
11030
|
+
return { comparison, sourceUuidByTargetUuid };
|
|
10822
11031
|
}
|
|
10823
11032
|
function compareElementExports(baseElement, targetElement) {
|
|
10824
11033
|
if (baseElement && !targetElement) {
|
|
@@ -10941,7 +11150,7 @@ const OrgSchema = z.z.object({
|
|
|
10941
11150
|
todayUsagePercent: z.z.number().optional(),
|
|
10942
11151
|
domains: z.z.array(z.z.string()).optional(),
|
|
10943
11152
|
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10944
|
-
|
|
11153
|
+
freeAiCredits: z.z.number().optional(),
|
|
10945
11154
|
paidAiCredits: z.z.number().optional(),
|
|
10946
11155
|
stripeCustomerId: z.z.string().optional(),
|
|
10947
11156
|
autoChargeEnabled: z.z.boolean().optional(),
|
|
@@ -12732,6 +12941,7 @@ const AgentSession = z.z.object({
|
|
|
12732
12941
|
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12733
12942
|
logs: z.z.array(z.z.any()).optional(),
|
|
12734
12943
|
usage: z.z.number().optional(),
|
|
12944
|
+
summary: z.z.string().optional(),
|
|
12735
12945
|
});
|
|
12736
12946
|
const CreateAgentSession = z.z.object({
|
|
12737
12947
|
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
@@ -13101,6 +13311,7 @@ exports.BaseAppDataSchemaInstance = BaseAppDataSchemaInstance;
|
|
|
13101
13311
|
exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
13102
13312
|
exports.BaseAppEventType = BaseAppEventType;
|
|
13103
13313
|
exports.BaseConnection = BaseConnection;
|
|
13314
|
+
exports.BaseConnector = BaseConnector;
|
|
13104
13315
|
exports.BaseCustomer = BaseCustomer;
|
|
13105
13316
|
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
13106
13317
|
exports.BaseDataLinkTableInstance = BaseDataLinkTableInstance;
|
|
@@ -13134,6 +13345,8 @@ exports.CONNECTOR_EVENTS_DIR = CONNECTOR_EVENTS_DIR;
|
|
|
13134
13345
|
exports.CONNECTOR_GLOBAL_WEBHOOKS_DIR = CONNECTOR_GLOBAL_WEBHOOKS_DIR;
|
|
13135
13346
|
exports.CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES;
|
|
13136
13347
|
exports.CONNECTOR_OPERATIONS_DIR = CONNECTOR_OPERATIONS_DIR;
|
|
13348
|
+
exports.CONNECTOR_VERSION_DEVELOPMENT = CONNECTOR_VERSION_DEVELOPMENT;
|
|
13349
|
+
exports.CONNECTOR_VERSION_LATEST = CONNECTOR_VERSION_LATEST;
|
|
13137
13350
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
13138
13351
|
exports.CommonIntegrationOrConnectionQuery = CommonIntegrationOrConnectionQuery;
|
|
13139
13352
|
exports.CommonListElementsQuery = CommonListElementsQuery;
|
|
@@ -13159,12 +13372,38 @@ exports.ConnectionRequest = ConnectionRequest;
|
|
|
13159
13372
|
exports.ConnectionSelector = ConnectionSelector;
|
|
13160
13373
|
exports.ConnectionSpec = ConnectionSpec;
|
|
13161
13374
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
13375
|
+
exports.Connector = Connector;
|
|
13376
|
+
exports.ConnectorAuth = ConnectorAuth;
|
|
13377
|
+
exports.ConnectorAuthClientCredentials = ConnectorAuthClientCredentials;
|
|
13378
|
+
exports.ConnectorAuthHandlerBase = ConnectorAuthHandlerBase;
|
|
13379
|
+
exports.ConnectorAuthIntegrationAppToken = ConnectorAuthIntegrationAppToken;
|
|
13380
|
+
exports.ConnectorAuthMembraneToken = ConnectorAuthMembraneToken;
|
|
13162
13381
|
exports.ConnectorAuthMethodTypes = ConnectorAuthMethodTypes;
|
|
13382
|
+
exports.ConnectorAuthOAuth1 = ConnectorAuthOAuth1;
|
|
13383
|
+
exports.ConnectorAuthOAuth2 = ConnectorAuthOAuth2;
|
|
13384
|
+
exports.ConnectorAuthProxy = ConnectorAuthProxy;
|
|
13385
|
+
exports.ConnectorAuthSpec = ConnectorAuthSpec;
|
|
13163
13386
|
exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollectionEventImplementationType;
|
|
13164
13387
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
13165
13388
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
13166
13389
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
13390
|
+
exports.ConnectorMethodImplementation = ConnectorMethodImplementation;
|
|
13391
|
+
exports.ConnectorMethodImplementationBase = ConnectorMethodImplementationBase;
|
|
13392
|
+
exports.ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationGraphqlApiMapping;
|
|
13393
|
+
exports.ConnectorMethodImplementationJavascript = ConnectorMethodImplementationJavascript;
|
|
13394
|
+
exports.ConnectorMethodImplementationMapping = ConnectorMethodImplementationMapping;
|
|
13395
|
+
exports.ConnectorMethodImplementationNotSupported = ConnectorMethodImplementationNotSupported;
|
|
13396
|
+
exports.ConnectorMethodImplementationOperationMapping = ConnectorMethodImplementationOperationMapping;
|
|
13397
|
+
exports.ConnectorMethodImplementationRestApiMapping = ConnectorMethodImplementationRestApiMapping;
|
|
13167
13398
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
13399
|
+
exports.ConnectorSpec = ConnectorSpec;
|
|
13400
|
+
exports.ConnectorStatusValues = ConnectorStatusValues;
|
|
13401
|
+
exports.ConnectorUdmCollectionMapping = ConnectorUdmCollectionMapping;
|
|
13402
|
+
exports.ConnectorUdmListItem = ConnectorUdmListItem;
|
|
13403
|
+
exports.ConnectorUdmSpec = ConnectorUdmSpec;
|
|
13404
|
+
exports.ConnectorUiSpec = ConnectorUiSpec;
|
|
13405
|
+
exports.ConnectorVersion = ConnectorVersion;
|
|
13406
|
+
exports.ConnectorVersionData = ConnectorVersionData;
|
|
13168
13407
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
13169
13408
|
exports.CreateActionRequest = CreateActionRequest;
|
|
13170
13409
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -13232,6 +13471,7 @@ exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
|
13232
13471
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
13233
13472
|
exports.DataLinkTablesAccessor = DataLinkTablesAccessor;
|
|
13234
13473
|
exports.DataLocationMethodImplementationTypes = DataLocationMethodImplementationTypes;
|
|
13474
|
+
exports.DataLocationPointer = DataLocationPointer;
|
|
13235
13475
|
exports.DataLocationTypeCollection = DataLocationTypeCollection;
|
|
13236
13476
|
exports.DataLocatorStep = DataLocatorStep;
|
|
13237
13477
|
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
@@ -13352,6 +13592,7 @@ exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnection
|
|
|
13352
13592
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
13353
13593
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13354
13594
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13595
|
+
exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuery;
|
|
13355
13596
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13356
13597
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13357
13598
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|