@membranehq/sdk 0.9.5 → 0.9.7
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 +1080 -187
- package/dist/dts/agent/session.d.ts +12 -0
- package/dist/dts/config/index.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +10 -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 +5131 -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/workspaces/compare.d.ts +4 -1
- package/dist/dts/workspaces/types.d.ts +24 -2
- package/dist/index.browser.d.mts +7169 -456
- package/dist/index.browser.d.ts +7169 -456
- package/dist/index.browser.js +257 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +226 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +7170 -456
- package/dist/index.node.d.ts +7170 -456
- package/dist/index.node.js +264 -5
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +233 -6
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
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;
|
|
@@ -3859,7 +3917,7 @@ const ConnectorAuthMethodTypes = {
|
|
|
3859
3917
|
isRequired: false,
|
|
3860
3918
|
},
|
|
3861
3919
|
getCredentialsFromConnectionParameters: {
|
|
3862
|
-
authTypes: ['client-credentials'],
|
|
3920
|
+
authTypes: ['client-credentials', 'oauth2'],
|
|
3863
3921
|
getInputSchema: getDefaultAuthInputSchema,
|
|
3864
3922
|
getOutputSchema: ({ connectorSpec, authOptionKey }) => {
|
|
3865
3923
|
var _a;
|
|
@@ -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,88 @@ 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 WritableConnectorVersionData = z.z.object({
|
|
4221
|
+
auth: ConnectorAuth.optional(),
|
|
4222
|
+
parametersSchema: DataSchema.optional(),
|
|
4223
|
+
});
|
|
4224
|
+
const ConnectorVersionData = z.z
|
|
4225
|
+
.object({
|
|
4226
|
+
baseUri: z.z.string(),
|
|
4227
|
+
revision: z.z.string().optional(),
|
|
4228
|
+
dataCollectionsCount: z.z.number().optional(),
|
|
4229
|
+
operationsCount: z.z.number().optional(),
|
|
4230
|
+
eventsCount: z.z.number().optional(),
|
|
4231
|
+
udms: z.z.array(z.z.string()).optional(),
|
|
4232
|
+
hasTest: z.z.boolean().optional(),
|
|
4233
|
+
hasAuthTest: z.z.boolean().optional(),
|
|
4234
|
+
hasOperations: z.z.boolean().optional(),
|
|
4235
|
+
hasData: z.z.boolean().optional(),
|
|
4236
|
+
isReadOnly: z.z.boolean().optional(),
|
|
4237
|
+
version: z.z.string(),
|
|
4238
|
+
})
|
|
4239
|
+
.extend(WritableConnectorVersionData.shape);
|
|
4240
|
+
const ConnectorVersion = ConnectorVersionData.extend({
|
|
4241
|
+
id: z.z.string(),
|
|
4242
|
+
connectorId: z.z.string(),
|
|
4243
|
+
changelog: z.z.string(),
|
|
4244
|
+
});
|
|
4245
|
+
const BaseConnector = z.z.object({
|
|
4246
|
+
id: z.z.string(),
|
|
4247
|
+
key: z.z.string(),
|
|
4248
|
+
uuid: z.z.string(),
|
|
4249
|
+
name: z.z.string(),
|
|
4250
|
+
logoUri: z.z.string(),
|
|
4251
|
+
appUri: z.z.string(),
|
|
4252
|
+
apiDocsUri: z.z.string(),
|
|
4253
|
+
hasReadme: z.z.boolean(),
|
|
4254
|
+
status: z.z.string().optional(),
|
|
4255
|
+
categories: z.z.array(z.z.string()).optional(),
|
|
4256
|
+
isPublic: z.z.boolean().optional(),
|
|
4257
|
+
popularity: z.z.number().optional(),
|
|
4258
|
+
appUuid: z.z.string().optional(),
|
|
4259
|
+
});
|
|
4260
|
+
const Connector = z.z
|
|
4261
|
+
.object({})
|
|
4262
|
+
.extend(ConnectorSpec.shape)
|
|
4263
|
+
.extend(BaseConnector.shape)
|
|
4264
|
+
.extend(ConnectorVersionData.shape);
|
|
4083
4265
|
const MinimalConnector = z.z.object({
|
|
4084
4266
|
id: z.z.string(),
|
|
4085
4267
|
key: z.z.string(),
|
|
@@ -8302,6 +8484,10 @@ const DataCollectionSpec = z.z.object({
|
|
|
8302
8484
|
udm: DataCollectionUdmsSpec.optional(),
|
|
8303
8485
|
find: DataCollectionFindSpec.optional(),
|
|
8304
8486
|
});
|
|
8487
|
+
const DataLocationPointer = z.z.object({
|
|
8488
|
+
key: z.z.string(),
|
|
8489
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8490
|
+
});
|
|
8305
8491
|
const DataCollectionMethodRequest = z.z.object({
|
|
8306
8492
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8307
8493
|
});
|
|
@@ -8369,6 +8555,18 @@ const ConnectorDataLocationTypes = {
|
|
|
8369
8555
|
collection: DataLocationTypeCollection,
|
|
8370
8556
|
};
|
|
8371
8557
|
|
|
8558
|
+
const ConnectorUdmListItem = z.z.object({
|
|
8559
|
+
key: z.z.string(),
|
|
8560
|
+
});
|
|
8561
|
+
const ConnectorUdmCollectionMapping = DataLocationPointer.extend({
|
|
8562
|
+
fieldsToCollection: z.z.any().optional(),
|
|
8563
|
+
fieldsFromCollection: z.z.any().optional(),
|
|
8564
|
+
});
|
|
8565
|
+
const ConnectorUdmSpec = z.z.object({
|
|
8566
|
+
defaultCollection: DataLocationPointer.optional(),
|
|
8567
|
+
rootDirectory: DataLocationPointer.optional(),
|
|
8568
|
+
collectionMappings: z.z.array(ConnectorUdmCollectionMapping),
|
|
8569
|
+
});
|
|
8372
8570
|
function findUdmCollectionMapping(udm, collectionKey, parameters) {
|
|
8373
8571
|
if (!Array.isArray(udm === null || udm === void 0 ? void 0 : udm.collectionMappings)) {
|
|
8374
8572
|
return undefined;
|
|
@@ -10193,6 +10391,7 @@ function getMembraneElementPath(elementType, elementKey, integrationKey) {
|
|
|
10193
10391
|
return `${integrationTypePath}/${integrationKey}/${elementTypePath}/${elementKey}/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}`;
|
|
10194
10392
|
}
|
|
10195
10393
|
function parseMembraneElementPath(relativePath) {
|
|
10394
|
+
const normalizedPath = relativePath.split(/[\\/]/).join('/');
|
|
10196
10395
|
const typeByApiPath = new Map();
|
|
10197
10396
|
for (const spec of Object.values(WorkspaceElementSpecs)) {
|
|
10198
10397
|
typeByApiPath.set(spec.apiPath, spec.type);
|
|
@@ -10201,7 +10400,7 @@ function parseMembraneElementPath(relativePath) {
|
|
|
10201
10400
|
.map((spec) => spec.apiPath)
|
|
10202
10401
|
.join('|');
|
|
10203
10402
|
const universalPattern = new RegExp(`^(?<elementType>${elementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10204
|
-
const universalMatch =
|
|
10403
|
+
const universalMatch = normalizedPath.match(universalPattern);
|
|
10205
10404
|
if (universalMatch === null || universalMatch === void 0 ? void 0 : universalMatch.groups) {
|
|
10206
10405
|
const { elementType: elementTypePath, elementKey } = universalMatch.groups;
|
|
10207
10406
|
const elementType = typeByApiPath.get(elementTypePath);
|
|
@@ -10209,8 +10408,12 @@ function parseMembraneElementPath(relativePath) {
|
|
|
10209
10408
|
return { type: elementType, key: elementKey };
|
|
10210
10409
|
}
|
|
10211
10410
|
}
|
|
10212
|
-
const
|
|
10213
|
-
|
|
10411
|
+
const integrationLevelElementTypes = Object.values(WorkspaceElementSpecs)
|
|
10412
|
+
.filter((spec) => spec.isIntegrationLevel)
|
|
10413
|
+
.map((spec) => spec.apiPath)
|
|
10414
|
+
.join('|');
|
|
10415
|
+
const integrationLevelPattern = new RegExp(`^integrations/(?<integrationKey>[^/]+)/(?<elementType>${integrationLevelElementTypes})/(?<elementKey>[^/]+)/${MEMBRANE_ELEMENT_CONFIG_FILE_NAME}$`);
|
|
10416
|
+
const integrationLevelMatch = normalizedPath.match(integrationLevelPattern);
|
|
10214
10417
|
if (integrationLevelMatch === null || integrationLevelMatch === void 0 ? void 0 : integrationLevelMatch.groups) {
|
|
10215
10418
|
const { integrationKey, elementType: elementTypePath, elementKey } = integrationLevelMatch.groups;
|
|
10216
10419
|
const elementType = typeByApiPath.get(elementTypePath);
|
|
@@ -10655,6 +10858,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10655
10858
|
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10656
10859
|
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10657
10860
|
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10861
|
+
parallelInstantTasksActiveJobs: WorkspaceLimit.optional(),
|
|
10658
10862
|
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10659
10863
|
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10660
10864
|
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10667,6 +10871,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
10667
10871
|
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10668
10872
|
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10669
10873
|
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10874
|
+
instantTasksQueueSize: WorkspaceLimit.optional(),
|
|
10670
10875
|
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10671
10876
|
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10672
10877
|
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
@@ -10783,7 +10988,7 @@ exports.WorkspaceElementChangeType = void 0;
|
|
|
10783
10988
|
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10784
10989
|
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10785
10990
|
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10786
|
-
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10991
|
+
function compareWorkspaceExports(baseExport, targetExport, options = { includeDeletions: true }) {
|
|
10787
10992
|
const changes = [];
|
|
10788
10993
|
const comparison = {
|
|
10789
10994
|
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
@@ -10823,6 +11028,9 @@ function compareWorkspaceExports(baseExport, targetExport) {
|
|
|
10823
11028
|
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
10824
11029
|
}
|
|
10825
11030
|
const change = compareElementExports(baseElement, targetElement);
|
|
11031
|
+
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === exports.WorkspaceElementChangeType.DELETE) {
|
|
11032
|
+
continue;
|
|
11033
|
+
}
|
|
10826
11034
|
if (change) {
|
|
10827
11035
|
changes.push(change);
|
|
10828
11036
|
}
|
|
@@ -12725,6 +12933,11 @@ exports.AgentSessionStatus = void 0;
|
|
|
12725
12933
|
AgentSessionStatus["FAILED"] = "failed";
|
|
12726
12934
|
AgentSessionStatus["CANCELLED"] = "cancelled";
|
|
12727
12935
|
})(exports.AgentSessionStatus || (exports.AgentSessionStatus = {}));
|
|
12936
|
+
exports.AgentSessionState = void 0;
|
|
12937
|
+
(function (AgentSessionState) {
|
|
12938
|
+
AgentSessionState["BUSY"] = "busy";
|
|
12939
|
+
AgentSessionState["IDLE"] = "idle";
|
|
12940
|
+
})(exports.AgentSessionState || (exports.AgentSessionState = {}));
|
|
12728
12941
|
const AgentSession = z.z.object({
|
|
12729
12942
|
id: z.z.string(),
|
|
12730
12943
|
workspaceId: z.z.string(),
|
|
@@ -12745,6 +12958,7 @@ const AgentSession = z.z.object({
|
|
|
12745
12958
|
logs: z.z.array(z.z.any()).optional(),
|
|
12746
12959
|
usage: z.z.number().optional(),
|
|
12747
12960
|
summary: z.z.string().optional(),
|
|
12961
|
+
state: z.z.enum(exports.AgentSessionState).default(exports.AgentSessionState.IDLE),
|
|
12748
12962
|
});
|
|
12749
12963
|
const CreateAgentSession = z.z.object({
|
|
12750
12964
|
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
@@ -12756,6 +12970,12 @@ const AgentSessionInputSchema = z.z.object({
|
|
|
12756
12970
|
input: z.z.string().min(1),
|
|
12757
12971
|
synthetic: z.z.boolean().optional(),
|
|
12758
12972
|
});
|
|
12973
|
+
const PatchAgentSessionSchema = z.z.object({
|
|
12974
|
+
state: z.z.enum(exports.AgentSessionState).optional(),
|
|
12975
|
+
lastActivityAt: z.z.iso.datetime().optional(),
|
|
12976
|
+
summary: z.z.string().optional(),
|
|
12977
|
+
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
12978
|
+
});
|
|
12759
12979
|
|
|
12760
12980
|
const API_VERSIONS = {
|
|
12761
12981
|
LEGACY: 'legacy',
|
|
@@ -13114,6 +13334,7 @@ exports.BaseAppDataSchemaInstance = BaseAppDataSchemaInstance;
|
|
|
13114
13334
|
exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
13115
13335
|
exports.BaseAppEventType = BaseAppEventType;
|
|
13116
13336
|
exports.BaseConnection = BaseConnection;
|
|
13337
|
+
exports.BaseConnector = BaseConnector;
|
|
13117
13338
|
exports.BaseCustomer = BaseCustomer;
|
|
13118
13339
|
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
13119
13340
|
exports.BaseDataLinkTableInstance = BaseDataLinkTableInstance;
|
|
@@ -13147,6 +13368,8 @@ exports.CONNECTOR_EVENTS_DIR = CONNECTOR_EVENTS_DIR;
|
|
|
13147
13368
|
exports.CONNECTOR_GLOBAL_WEBHOOKS_DIR = CONNECTOR_GLOBAL_WEBHOOKS_DIR;
|
|
13148
13369
|
exports.CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES = CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES;
|
|
13149
13370
|
exports.CONNECTOR_OPERATIONS_DIR = CONNECTOR_OPERATIONS_DIR;
|
|
13371
|
+
exports.CONNECTOR_VERSION_DEVELOPMENT = CONNECTOR_VERSION_DEVELOPMENT;
|
|
13372
|
+
exports.CONNECTOR_VERSION_LATEST = CONNECTOR_VERSION_LATEST;
|
|
13150
13373
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
13151
13374
|
exports.CommonIntegrationOrConnectionQuery = CommonIntegrationOrConnectionQuery;
|
|
13152
13375
|
exports.CommonListElementsQuery = CommonListElementsQuery;
|
|
@@ -13172,12 +13395,38 @@ exports.ConnectionRequest = ConnectionRequest;
|
|
|
13172
13395
|
exports.ConnectionSelector = ConnectionSelector;
|
|
13173
13396
|
exports.ConnectionSpec = ConnectionSpec;
|
|
13174
13397
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
13398
|
+
exports.Connector = Connector;
|
|
13399
|
+
exports.ConnectorAuth = ConnectorAuth;
|
|
13400
|
+
exports.ConnectorAuthClientCredentials = ConnectorAuthClientCredentials;
|
|
13401
|
+
exports.ConnectorAuthHandlerBase = ConnectorAuthHandlerBase;
|
|
13402
|
+
exports.ConnectorAuthIntegrationAppToken = ConnectorAuthIntegrationAppToken;
|
|
13403
|
+
exports.ConnectorAuthMembraneToken = ConnectorAuthMembraneToken;
|
|
13175
13404
|
exports.ConnectorAuthMethodTypes = ConnectorAuthMethodTypes;
|
|
13405
|
+
exports.ConnectorAuthOAuth1 = ConnectorAuthOAuth1;
|
|
13406
|
+
exports.ConnectorAuthOAuth2 = ConnectorAuthOAuth2;
|
|
13407
|
+
exports.ConnectorAuthProxy = ConnectorAuthProxy;
|
|
13408
|
+
exports.ConnectorAuthSpec = ConnectorAuthSpec;
|
|
13176
13409
|
exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollectionEventImplementationType;
|
|
13177
13410
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
13178
13411
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
13179
13412
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
13413
|
+
exports.ConnectorMethodImplementation = ConnectorMethodImplementation;
|
|
13414
|
+
exports.ConnectorMethodImplementationBase = ConnectorMethodImplementationBase;
|
|
13415
|
+
exports.ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationGraphqlApiMapping;
|
|
13416
|
+
exports.ConnectorMethodImplementationJavascript = ConnectorMethodImplementationJavascript;
|
|
13417
|
+
exports.ConnectorMethodImplementationMapping = ConnectorMethodImplementationMapping;
|
|
13418
|
+
exports.ConnectorMethodImplementationNotSupported = ConnectorMethodImplementationNotSupported;
|
|
13419
|
+
exports.ConnectorMethodImplementationOperationMapping = ConnectorMethodImplementationOperationMapping;
|
|
13420
|
+
exports.ConnectorMethodImplementationRestApiMapping = ConnectorMethodImplementationRestApiMapping;
|
|
13180
13421
|
exports.ConnectorOperationMethodImplementationTypes = ConnectorOperationMethodImplementationTypes;
|
|
13422
|
+
exports.ConnectorSpec = ConnectorSpec;
|
|
13423
|
+
exports.ConnectorStatusValues = ConnectorStatusValues;
|
|
13424
|
+
exports.ConnectorUdmCollectionMapping = ConnectorUdmCollectionMapping;
|
|
13425
|
+
exports.ConnectorUdmListItem = ConnectorUdmListItem;
|
|
13426
|
+
exports.ConnectorUdmSpec = ConnectorUdmSpec;
|
|
13427
|
+
exports.ConnectorUiSpec = ConnectorUiSpec;
|
|
13428
|
+
exports.ConnectorVersion = ConnectorVersion;
|
|
13429
|
+
exports.ConnectorVersionData = ConnectorVersionData;
|
|
13181
13430
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
13182
13431
|
exports.CreateActionRequest = CreateActionRequest;
|
|
13183
13432
|
exports.CreateAgentSession = CreateAgentSession;
|
|
@@ -13245,6 +13494,7 @@ exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
|
13245
13494
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
13246
13495
|
exports.DataLinkTablesAccessor = DataLinkTablesAccessor;
|
|
13247
13496
|
exports.DataLocationMethodImplementationTypes = DataLocationMethodImplementationTypes;
|
|
13497
|
+
exports.DataLocationPointer = DataLocationPointer;
|
|
13248
13498
|
exports.DataLocationTypeCollection = DataLocationTypeCollection;
|
|
13249
13499
|
exports.DataLocatorStep = DataLocatorStep;
|
|
13250
13500
|
exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
@@ -13395,6 +13645,7 @@ exports.PackageExportProperties = PackageExportProperties;
|
|
|
13395
13645
|
exports.PackagesAccessor = PackagesAccessor;
|
|
13396
13646
|
exports.PaginationQuery = PaginationQuery;
|
|
13397
13647
|
exports.PaginationResponse = PaginationResponse;
|
|
13648
|
+
exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
|
|
13398
13649
|
exports.PlatformUserSchema = PlatformUserSchema;
|
|
13399
13650
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
13400
13651
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
@@ -13431,6 +13682,7 @@ exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
|
13431
13682
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
13432
13683
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
13433
13684
|
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
13685
|
+
exports.WritableConnectorVersionData = WritableConnectorVersionData;
|
|
13434
13686
|
exports.__resolveValue = __resolveValue;
|
|
13435
13687
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
13436
13688
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|