@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.node.js
CHANGED
|
@@ -3803,6 +3803,45 @@ const CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = {
|
|
|
3803
3803
|
[exports.ConnectorMethodImplementationType.javascript]: ['.js', '.ts'],
|
|
3804
3804
|
[exports.ConnectorMethodImplementationType.mapping]: ['.map.yml', '.yml'],
|
|
3805
3805
|
};
|
|
3806
|
+
const ConnectorMethodImplementationBase = z.z.object({
|
|
3807
|
+
implementationType: z.z.nativeEnum(exports.ConnectorMethodImplementationType).optional(),
|
|
3808
|
+
filePath: z.z.string().optional(),
|
|
3809
|
+
inheritedFromPath: z.z.array(z.z.string()).optional(),
|
|
3810
|
+
isIncomplete: z.z.boolean().optional(),
|
|
3811
|
+
parametersSchema: DataSchema.optional(),
|
|
3812
|
+
});
|
|
3813
|
+
const ConnectorMethodImplementationMapping = ConnectorMethodImplementationBase.extend({
|
|
3814
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.mapping),
|
|
3815
|
+
mapping: z.z.any(),
|
|
3816
|
+
});
|
|
3817
|
+
const ConnectorMethodImplementationOperationMapping = ConnectorMethodImplementationBase.extend({
|
|
3818
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.operationMapping),
|
|
3819
|
+
mapping: z.z.any(),
|
|
3820
|
+
});
|
|
3821
|
+
const ConnectorMethodImplementationRestApiMapping = ConnectorMethodImplementationBase.extend({
|
|
3822
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.restApiMapping),
|
|
3823
|
+
mapping: z.z.any(),
|
|
3824
|
+
});
|
|
3825
|
+
const ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationBase.extend({
|
|
3826
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.graphqlApiMapping),
|
|
3827
|
+
mapping: z.z.any(),
|
|
3828
|
+
});
|
|
3829
|
+
const ConnectorMethodImplementationJavascript = ConnectorMethodImplementationBase.extend({
|
|
3830
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.javascript),
|
|
3831
|
+
code: z.z.string(),
|
|
3832
|
+
});
|
|
3833
|
+
const ConnectorMethodImplementationNotSupported = ConnectorMethodImplementationBase.extend({
|
|
3834
|
+
implementationType: z.z.literal(exports.ConnectorMethodImplementationType.notSupported),
|
|
3835
|
+
});
|
|
3836
|
+
const ConnectorMethodImplementation = z.z.union([
|
|
3837
|
+
ConnectorMethodImplementationBase,
|
|
3838
|
+
ConnectorMethodImplementationMapping,
|
|
3839
|
+
ConnectorMethodImplementationOperationMapping,
|
|
3840
|
+
ConnectorMethodImplementationRestApiMapping,
|
|
3841
|
+
ConnectorMethodImplementationGraphqlApiMapping,
|
|
3842
|
+
ConnectorMethodImplementationJavascript,
|
|
3843
|
+
ConnectorMethodImplementationNotSupported,
|
|
3844
|
+
]);
|
|
3806
3845
|
|
|
3807
3846
|
const CONNECTOR_AUTH_TYPES = [
|
|
3808
3847
|
'integration-app-token',
|
|
@@ -3812,6 +3851,25 @@ const CONNECTOR_AUTH_TYPES = [
|
|
|
3812
3851
|
'client-credentials',
|
|
3813
3852
|
'proxy',
|
|
3814
3853
|
];
|
|
3854
|
+
const ConnectorAuthSpec = z.z.object({
|
|
3855
|
+
title: z.z.string().optional(),
|
|
3856
|
+
description: z.z.string().optional(),
|
|
3857
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
3858
|
+
ui: z.z
|
|
3859
|
+
.object({
|
|
3860
|
+
schema: DataSchema.optional(),
|
|
3861
|
+
helpUri: z.z.string().optional(),
|
|
3862
|
+
})
|
|
3863
|
+
.optional(),
|
|
3864
|
+
});
|
|
3865
|
+
const ConnectorAuthHandlerBase = ConnectorAuthSpec.extend({
|
|
3866
|
+
credentialsSchema: DataSchema.optional(),
|
|
3867
|
+
customCredentialsSchema: DataSchema.optional(),
|
|
3868
|
+
makeApiClient: ConnectorMethodImplementationBase.optional(),
|
|
3869
|
+
refreshCredentials: ConnectorMethodImplementationBase.optional(),
|
|
3870
|
+
test: ConnectorMethodImplementationBase.optional(),
|
|
3871
|
+
enabled: z.z.any().optional(),
|
|
3872
|
+
});
|
|
3815
3873
|
function getAuthSpec(spec, authOptionKey) {
|
|
3816
3874
|
var _a, _b;
|
|
3817
3875
|
let authSpec;
|
|
@@ -3941,6 +3999,52 @@ const ConnectorAuthMethodTypes = {
|
|
|
3941
3999
|
isRequired: true,
|
|
3942
4000
|
},
|
|
3943
4001
|
};
|
|
4002
|
+
const ConnectorAuthOAuth2 = ConnectorAuthHandlerBase.extend({
|
|
4003
|
+
type: z.z.literal('oauth2'),
|
|
4004
|
+
getOAuthConfig: ConnectorMethodImplementation.optional(),
|
|
4005
|
+
getTokenData: ConnectorMethodImplementation.optional(),
|
|
4006
|
+
getCredentialsFromAccessTokenResponse: ConnectorMethodImplementation.optional(),
|
|
4007
|
+
getCredentialsFromRefreshTokenResponse: ConnectorMethodImplementation.optional(),
|
|
4008
|
+
oAuthConfig: ConnectorMethodImplementation.optional(),
|
|
4009
|
+
});
|
|
4010
|
+
const ConnectorAuthOAuth1 = ConnectorAuthHandlerBase.extend({
|
|
4011
|
+
type: z.z.literal('oauth1'),
|
|
4012
|
+
getOAuthConfig: ConnectorMethodImplementation.optional(),
|
|
4013
|
+
});
|
|
4014
|
+
const ConnectorAuthClientCredentials = ConnectorAuthHandlerBase.extend({
|
|
4015
|
+
type: z.z.literal('client-credentials'),
|
|
4016
|
+
getCredentialsFromConnectionParameters: ConnectorMethodImplementationBase.optional(),
|
|
4017
|
+
});
|
|
4018
|
+
const ConnectorAuthProxy = ConnectorAuthHandlerBase.extend({
|
|
4019
|
+
type: z.z.literal('proxy'),
|
|
4020
|
+
proxyKey: z.z.string(),
|
|
4021
|
+
});
|
|
4022
|
+
const ConnectorAuthIntegrationAppToken = ConnectorAuthHandlerBase.extend({
|
|
4023
|
+
type: z.z.literal('integration-app-token'),
|
|
4024
|
+
});
|
|
4025
|
+
const ConnectorAuthMembraneToken = ConnectorAuthHandlerBase.extend({
|
|
4026
|
+
type: z.z.literal('membrane-token'),
|
|
4027
|
+
});
|
|
4028
|
+
const ConnectorAuthVariant = z.z.union([
|
|
4029
|
+
ConnectorAuthOAuth2,
|
|
4030
|
+
ConnectorAuthOAuth1,
|
|
4031
|
+
ConnectorAuthClientCredentials,
|
|
4032
|
+
ConnectorAuthIntegrationAppToken,
|
|
4033
|
+
ConnectorAuthMembraneToken,
|
|
4034
|
+
ConnectorAuthProxy,
|
|
4035
|
+
]);
|
|
4036
|
+
const ConnectorAuth = ConnectorAuthVariant.and(z.z.object({
|
|
4037
|
+
options: z.z
|
|
4038
|
+
.record(z.z.string(), z.z.union([
|
|
4039
|
+
ConnectorAuthOAuth2,
|
|
4040
|
+
ConnectorAuthOAuth1,
|
|
4041
|
+
ConnectorAuthClientCredentials,
|
|
4042
|
+
ConnectorAuthIntegrationAppToken,
|
|
4043
|
+
ConnectorAuthMembraneToken,
|
|
4044
|
+
ConnectorAuthProxy,
|
|
4045
|
+
]))
|
|
4046
|
+
.optional(),
|
|
4047
|
+
}));
|
|
3944
4048
|
const OAUTH_CONFIG_SCHEMA = {
|
|
3945
4049
|
type: 'object',
|
|
3946
4050
|
properties: {
|
|
@@ -4077,6 +4181,8 @@ const ConnectorOperationMethodImplementationTypes = [
|
|
|
4077
4181
|
exports.ConnectorMethodImplementationType.javascript,
|
|
4078
4182
|
];
|
|
4079
4183
|
|
|
4184
|
+
const CONNECTOR_VERSION_DEVELOPMENT = 'dev';
|
|
4185
|
+
const CONNECTOR_VERSION_LATEST = 'latest';
|
|
4080
4186
|
const CONNECTOR_CATEGORIES = [
|
|
4081
4187
|
'Accounting',
|
|
4082
4188
|
'Ads',
|
|
@@ -4098,12 +4204,82 @@ const CONNECTOR_CATEGORIES = [
|
|
|
4098
4204
|
'Sales',
|
|
4099
4205
|
'Ticketing',
|
|
4100
4206
|
];
|
|
4207
|
+
const ConnectorStatusValues = ['production', 'beta', 'planned'];
|
|
4208
|
+
const ConnectorUiSpec = z.z.object({
|
|
4209
|
+
schema: DataSchema.optional(),
|
|
4210
|
+
description: z.z.string().optional(),
|
|
4211
|
+
helpUri: z.z.string().optional(),
|
|
4212
|
+
test: z.z.boolean().optional(),
|
|
4213
|
+
});
|
|
4214
|
+
const ConnectorSpec = z.z.object({
|
|
4215
|
+
key: z.z.string().optional(),
|
|
4216
|
+
name: z.z.string().optional(),
|
|
4217
|
+
appUri: z.z.string().optional(),
|
|
4218
|
+
logoUri: z.z.string().optional(),
|
|
4219
|
+
apiDocsUri: z.z.string().optional(),
|
|
4220
|
+
api: z.z
|
|
4221
|
+
.object({
|
|
4222
|
+
type: z.z.enum(['openapi', 'graphql']),
|
|
4223
|
+
})
|
|
4224
|
+
.optional(),
|
|
4225
|
+
ui: ConnectorUiSpec.optional(),
|
|
4226
|
+
auth: ConnectorAuth.optional(),
|
|
4227
|
+
parametersSchema: DataSchema.optional(),
|
|
4228
|
+
udms: z.z.array(z.z.string()).optional(),
|
|
4229
|
+
udm: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4230
|
+
operations: z.z.array(z.z.any()).optional(),
|
|
4231
|
+
test: ConnectorMethodImplementation.optional(),
|
|
4232
|
+
hasReadme: z.z.boolean().optional(),
|
|
4233
|
+
appUuid: z.z.string().optional(),
|
|
4234
|
+
knowledgeBaseUuid: z.z.string().optional(),
|
|
4235
|
+
workspaceId: z.z.string().optional(),
|
|
4236
|
+
data: z.z.any().optional(),
|
|
4237
|
+
});
|
|
4101
4238
|
exports.ConnectorStatus = void 0;
|
|
4102
4239
|
(function (ConnectorStatus) {
|
|
4103
4240
|
ConnectorStatus["production"] = "production";
|
|
4104
4241
|
ConnectorStatus["beta"] = "beta";
|
|
4105
4242
|
ConnectorStatus["planned"] = "planned";
|
|
4106
4243
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
4244
|
+
const ConnectorVersionData = z.z.object({
|
|
4245
|
+
baseUri: z.z.string(),
|
|
4246
|
+
revision: z.z.string().optional(),
|
|
4247
|
+
dataCollectionsCount: z.z.number().optional(),
|
|
4248
|
+
operationsCount: z.z.number().optional(),
|
|
4249
|
+
eventsCount: z.z.number().optional(),
|
|
4250
|
+
udms: z.z.array(z.z.string()).optional(),
|
|
4251
|
+
hasTest: z.z.boolean().optional(),
|
|
4252
|
+
hasAuthTest: z.z.boolean().optional(),
|
|
4253
|
+
hasOperations: z.z.boolean().optional(),
|
|
4254
|
+
hasData: z.z.boolean().optional(),
|
|
4255
|
+
isReadOnly: z.z.boolean().optional(),
|
|
4256
|
+
version: z.z.string(),
|
|
4257
|
+
});
|
|
4258
|
+
const ConnectorVersion = ConnectorVersionData.extend({
|
|
4259
|
+
id: z.z.string(),
|
|
4260
|
+
connectorId: z.z.string(),
|
|
4261
|
+
changelog: z.z.string(),
|
|
4262
|
+
});
|
|
4263
|
+
const BaseConnector = z.z.object({
|
|
4264
|
+
id: z.z.string(),
|
|
4265
|
+
key: z.z.string(),
|
|
4266
|
+
uuid: z.z.string(),
|
|
4267
|
+
name: z.z.string(),
|
|
4268
|
+
logoUri: z.z.string(),
|
|
4269
|
+
appUri: z.z.string(),
|
|
4270
|
+
apiDocsUri: z.z.string(),
|
|
4271
|
+
hasReadme: z.z.boolean(),
|
|
4272
|
+
status: z.z.string().optional(),
|
|
4273
|
+
categories: z.z.array(z.z.string()).optional(),
|
|
4274
|
+
isPublic: z.z.boolean().optional(),
|
|
4275
|
+
popularity: z.z.number().optional(),
|
|
4276
|
+
appUuid: z.z.string().optional(),
|
|
4277
|
+
});
|
|
4278
|
+
const Connector = z.z
|
|
4279
|
+
.object({})
|
|
4280
|
+
.extend(ConnectorSpec.shape)
|
|
4281
|
+
.extend(BaseConnector.shape)
|
|
4282
|
+
.extend(ConnectorVersionData.shape);
|
|
4107
4283
|
const MinimalConnector = z.z.object({
|
|
4108
4284
|
id: z.z.string(),
|
|
4109
4285
|
key: z.z.string(),
|
|
@@ -8326,6 +8502,10 @@ const DataCollectionSpec = z.z.object({
|
|
|
8326
8502
|
udm: DataCollectionUdmsSpec.optional(),
|
|
8327
8503
|
find: DataCollectionFindSpec.optional(),
|
|
8328
8504
|
});
|
|
8505
|
+
const DataLocationPointer = z.z.object({
|
|
8506
|
+
key: z.z.string(),
|
|
8507
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8508
|
+
});
|
|
8329
8509
|
const DataCollectionMethodRequest = z.z.object({
|
|
8330
8510
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8331
8511
|
});
|
|
@@ -8393,6 +8573,18 @@ const ConnectorDataLocationTypes = {
|
|
|
8393
8573
|
collection: DataLocationTypeCollection,
|
|
8394
8574
|
};
|
|
8395
8575
|
|
|
8576
|
+
const ConnectorUdmListItem = z.z.object({
|
|
8577
|
+
key: z.z.string(),
|
|
8578
|
+
});
|
|
8579
|
+
const ConnectorUdmCollectionMapping = DataLocationPointer.extend({
|
|
8580
|
+
fieldsToCollection: z.z.any().optional(),
|
|
8581
|
+
fieldsFromCollection: z.z.any().optional(),
|
|
8582
|
+
});
|
|
8583
|
+
const ConnectorUdmSpec = z.z.object({
|
|
8584
|
+
defaultCollection: DataLocationPointer.optional(),
|
|
8585
|
+
rootDirectory: DataLocationPointer.optional(),
|
|
8586
|
+
collectionMappings: z.z.array(ConnectorUdmCollectionMapping),
|
|
8587
|
+
});
|
|
8396
8588
|
function findUdmCollectionMapping(udm, collectionKey, parameters) {
|
|
8397
8589
|
if (!Array.isArray(udm === null || udm === void 0 ? void 0 : udm.collectionMappings)) {
|
|
8398
8590
|
return undefined;
|
|
@@ -9370,6 +9562,7 @@ const BaseExternalEventSubscription = z.z.object({
|
|
|
9370
9562
|
nextRefreshTimestamp: z.z.number().optional(),
|
|
9371
9563
|
globalWebhookKey: z.z.string().optional(),
|
|
9372
9564
|
globalWebhookEventSelector: z.z.string().optional(),
|
|
9565
|
+
webhookUri: z.z.string().optional(),
|
|
9373
9566
|
});
|
|
9374
9567
|
|
|
9375
9568
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9785,10 +9978,12 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9785
9978
|
});
|
|
9786
9979
|
|
|
9787
9980
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9981
|
+
userId: z.z.string().optional(),
|
|
9788
9982
|
connectionId: z.z.string().optional(),
|
|
9789
9983
|
integrationId: z.z.string().optional(),
|
|
9790
9984
|
externalEventSubscriptionId: z.z.string().optional(),
|
|
9791
9985
|
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9986
|
+
startedAfter: z.z.string().optional(),
|
|
9792
9987
|
});
|
|
9793
9988
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9794
9989
|
user: BaseCustomer.optional(),
|
|
@@ -9810,6 +10005,11 @@ const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
|
9810
10005
|
connection: BaseConnection.optional(),
|
|
9811
10006
|
});
|
|
9812
10007
|
|
|
10008
|
+
const ListExternalEventSubscriptionsQuery = CommonListElementsQuery.extend({
|
|
10009
|
+
userId: z.z.string().optional(),
|
|
10010
|
+
connectionId: z.z.string().optional(),
|
|
10011
|
+
integrationId: z.z.string().optional(),
|
|
10012
|
+
});
|
|
9813
10013
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
9814
10014
|
user: BaseCustomer.optional(),
|
|
9815
10015
|
connection: BaseConnection.optional(),
|
|
@@ -10671,6 +10871,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10671
10871
|
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10672
10872
|
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10673
10873
|
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10874
|
+
parallelInstantTasksActiveJobs: WorkspaceLimit.optional(),
|
|
10674
10875
|
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10675
10876
|
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10676
10877
|
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10683,6 +10884,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10683
10884
|
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10684
10885
|
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10685
10886
|
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10887
|
+
instantTasksQueueSize: WorkspaceLimit.optional(),
|
|
10686
10888
|
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10687
10889
|
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10688
10890
|
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10799,13 +11001,14 @@ exports.WorkspaceElementChangeType = void 0;
|
|
|
10799
11001
|
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10800
11002
|
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10801
11003
|
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10802
|
-
function compareWorkspaceExports(baseExport, targetExport) {
|
|
11004
|
+
function compareWorkspaceExports(baseExport, targetExport, options = { includeDeletions: true }) {
|
|
10803
11005
|
const changes = [];
|
|
10804
|
-
const
|
|
11006
|
+
const comparison = {
|
|
10805
11007
|
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10806
11008
|
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10807
11009
|
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10808
11010
|
};
|
|
11011
|
+
const sourceUuidByTargetUuid = new Map();
|
|
10809
11012
|
const integrationMap = buildIntegrationsMap([
|
|
10810
11013
|
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10811
11014
|
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
@@ -10834,15 +11037,21 @@ function compareWorkspaceExports(baseExport, targetExport) {
|
|
|
10834
11037
|
for (const selector of allSelectors) {
|
|
10835
11038
|
const baseElement = baseMap.get(selector);
|
|
10836
11039
|
const targetElement = targetMap.get(selector);
|
|
11040
|
+
if (baseElement && targetElement && baseElement.uuid !== targetElement.uuid) {
|
|
11041
|
+
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
11042
|
+
}
|
|
10837
11043
|
const change = compareElementExports(baseElement, targetElement);
|
|
11044
|
+
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === exports.WorkspaceElementChangeType.DELETE) {
|
|
11045
|
+
continue;
|
|
11046
|
+
}
|
|
10838
11047
|
if (change) {
|
|
10839
11048
|
changes.push(change);
|
|
10840
11049
|
}
|
|
10841
11050
|
}
|
|
10842
11051
|
changes.forEach((change) => {
|
|
10843
|
-
|
|
11052
|
+
comparison[change.type].add(change.uuid);
|
|
10844
11053
|
});
|
|
10845
|
-
return
|
|
11054
|
+
return { comparison, sourceUuidByTargetUuid };
|
|
10846
11055
|
}
|
|
10847
11056
|
function compareElementExports(baseElement, targetElement) {
|
|
10848
11057
|
if (baseElement && !targetElement) {
|
|
@@ -10965,7 +11174,7 @@ const OrgSchema = z.z.object({
|
|
|
10965
11174
|
todayUsagePercent: z.z.number().optional(),
|
|
10966
11175
|
domains: z.z.array(z.z.string()).optional(),
|
|
10967
11176
|
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10968
|
-
|
|
11177
|
+
freeAiCredits: z.z.number().optional(),
|
|
10969
11178
|
paidAiCredits: z.z.number().optional(),
|
|
10970
11179
|
stripeCustomerId: z.z.string().optional(),
|
|
10971
11180
|
autoChargeEnabled: z.z.boolean().optional(),
|
|
@@ -12756,6 +12965,7 @@ const AgentSession = z.z.object({
|
|
|
12756
12965
|
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12757
12966
|
logs: z.z.array(z.z.any()).optional(),
|
|
12758
12967
|
usage: z.z.number().optional(),
|
|
12968
|
+
summary: z.z.string().optional(),
|
|
12759
12969
|
});
|
|
12760
12970
|
const CreateAgentSession = z.z.object({
|
|
12761
12971
|
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
@@ -13291,6 +13501,7 @@ exports.BaseAppDataSchemaInstance = BaseAppDataSchemaInstance;
|
|
|
13291
13501
|
exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
13292
13502
|
exports.BaseAppEventType = BaseAppEventType;
|
|
13293
13503
|
exports.BaseConnection = BaseConnection;
|
|
13504
|
+
exports.BaseConnector = BaseConnector;
|
|
13294
13505
|
exports.BaseCustomer = BaseCustomer;
|
|
13295
13506
|
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
13296
13507
|
exports.BaseDataLinkTableInstance = BaseDataLinkTableInstance;
|
|
@@ -13325,6 +13536,8 @@ exports.CONNECTOR_EVENTS_DIR = CONNECTOR_EVENTS_DIR;
|
|
|
13325
13536
|
exports.CONNECTOR_GLOBAL_WEBHOOKS_DIR = CONNECTOR_GLOBAL_WEBHOOKS_DIR;
|
|
13326
13537
|
exports.CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES;
|
|
13327
13538
|
exports.CONNECTOR_OPERATIONS_DIR = CONNECTOR_OPERATIONS_DIR;
|
|
13539
|
+
exports.CONNECTOR_VERSION_DEVELOPMENT = CONNECTOR_VERSION_DEVELOPMENT;
|
|
13540
|
+
exports.CONNECTOR_VERSION_LATEST = CONNECTOR_VERSION_LATEST;
|
|
13328
13541
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
13329
13542
|
exports.CommonIntegrationOrConnectionQuery = CommonIntegrationOrConnectionQuery;
|
|
13330
13543
|
exports.CommonListElementsQuery = CommonListElementsQuery;
|
|
@@ -13350,12 +13563,38 @@ exports.ConnectionRequest = ConnectionRequest;
|
|
|
13350
13563
|
exports.ConnectionSelector = ConnectionSelector;
|
|
13351
13564
|
exports.ConnectionSpec = ConnectionSpec;
|
|
13352
13565
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
13566
|
+
exports.Connector = Connector;
|
|
13567
|
+
exports.ConnectorAuth = ConnectorAuth;
|
|
13568
|
+
exports.ConnectorAuthClientCredentials = ConnectorAuthClientCredentials;
|
|
13569
|
+
exports.ConnectorAuthHandlerBase = ConnectorAuthHandlerBase;
|
|
13570
|
+
exports.ConnectorAuthIntegrationAppToken = ConnectorAuthIntegrationAppToken;
|
|
13571
|
+
exports.ConnectorAuthMembraneToken = ConnectorAuthMembraneToken;
|
|
13353
13572
|
exports.ConnectorAuthMethodTypes = ConnectorAuthMethodTypes;
|
|
13573
|
+
exports.ConnectorAuthOAuth1 = ConnectorAuthOAuth1;
|
|
13574
|
+
exports.ConnectorAuthOAuth2 = ConnectorAuthOAuth2;
|
|
13575
|
+
exports.ConnectorAuthProxy = ConnectorAuthProxy;
|
|
13576
|
+
exports.ConnectorAuthSpec = ConnectorAuthSpec;
|
|
13354
13577
|
exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollectionEventImplementationType;
|
|
13355
13578
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
13356
13579
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
13357
13580
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
13581
|
+
exports.ConnectorMethodImplementation = ConnectorMethodImplementation;
|
|
13582
|
+
exports.ConnectorMethodImplementationBase = ConnectorMethodImplementationBase;
|
|
13583
|
+
exports.ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationGraphqlApiMapping;
|
|
13584
|
+
exports.ConnectorMethodImplementationJavascript = ConnectorMethodImplementationJavascript;
|
|
13585
|
+
exports.ConnectorMethodImplementationMapping = ConnectorMethodImplementationMapping;
|
|
13586
|
+
exports.ConnectorMethodImplementationNotSupported = ConnectorMethodImplementationNotSupported;
|
|
13587
|
+
exports.ConnectorMethodImplementationOperationMapping = ConnectorMethodImplementationOperationMapping;
|
|
13588
|
+
exports.ConnectorMethodImplementationRestApiMapping = ConnectorMethodImplementationRestApiMapping;
|
|
13358
13589
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
13590
|
+
exports.ConnectorSpec = ConnectorSpec;
|
|
13591
|
+
exports.ConnectorStatusValues = ConnectorStatusValues;
|
|
13592
|
+
exports.ConnectorUdmCollectionMapping = ConnectorUdmCollectionMapping;
|
|
13593
|
+
exports.ConnectorUdmListItem = ConnectorUdmListItem;
|
|
13594
|
+
exports.ConnectorUdmSpec = ConnectorUdmSpec;
|
|
13595
|
+
exports.ConnectorUiSpec = ConnectorUiSpec;
|
|
13596
|
+
exports.ConnectorVersion = ConnectorVersion;
|
|
13597
|
+
exports.ConnectorVersionData = ConnectorVersionData;
|
|
13359
13598
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
13360
13599
|
exports.CreateActionRequest = CreateActionRequest;
|
|
13361
13600
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -13423,6 +13662,7 @@ exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
|
13423
13662
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
13424
13663
|
exports.DataLinkTablesAccessor = DataLinkTablesAccessor;
|
|
13425
13664
|
exports.DataLocationMethodImplementationTypes = DataLocationMethodImplementationTypes;
|
|
13665
|
+
exports.DataLocationPointer = DataLocationPointer;
|
|
13426
13666
|
exports.DataLocationTypeCollection = DataLocationTypeCollection;
|
|
13427
13667
|
exports.DataLocatorStep = DataLocatorStep;
|
|
13428
13668
|
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
@@ -13543,6 +13783,7 @@ exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnection
|
|
|
13543
13783
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
13544
13784
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13545
13785
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13786
|
+
exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuery;
|
|
13546
13787
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13547
13788
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13548
13789
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|