@hasna/connectors 1.3.21 → 1.3.23
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/bin/index.js +274 -71
- package/bin/mcp.js +458 -197
- package/bin/serve.js +77 -33
- package/connectors/connect-dropbox/src/api/bulk.ts +285 -0
- package/connectors/connect-dropbox/src/api/index.ts +4 -0
- package/connectors/connect-dropbox/src/cli/index.ts +151 -0
- package/connectors/connect-github/src/api/bulk.ts +328 -0
- package/connectors/connect-github/src/api/index.ts +4 -0
- package/connectors/connect-github/src/cli/index.ts +145 -0
- package/connectors/connect-gmail/src/api/history.ts +82 -0
- package/connectors/connect-gmail/src/api/index.ts +12 -0
- package/connectors/connect-gmail/src/api/settings.ts +280 -0
- package/connectors/connect-gmail/src/api/watch.ts +40 -0
- package/connectors/connect-gmail/src/cli/index.ts +237 -0
- package/connectors/connect-googleads/src/api/bulk.ts +354 -0
- package/connectors/connect-googleads/src/api/index.ts +4 -0
- package/connectors/connect-googleads/src/cli/index.ts +192 -0
- package/connectors/connect-googlecalendar/src/api/acl.ts +66 -0
- package/connectors/connect-googlecalendar/src/api/bulk.ts +452 -0
- package/connectors/connect-googlecalendar/src/api/freebusy.ts +35 -0
- package/connectors/connect-googlecalendar/src/api/index.ts +9 -0
- package/connectors/connect-googlecalendar/src/cli/index.ts +522 -0
- package/connectors/connect-googlecalendar/src/types/index.ts +90 -0
- package/connectors/connect-googlecontacts/src/api/bulk.ts +365 -0
- package/connectors/connect-googlecontacts/src/api/groups.ts +164 -0
- package/connectors/connect-googlecontacts/src/api/index.ts +8 -0
- package/connectors/connect-googlecontacts/src/cli/index.ts +340 -0
- package/connectors/connect-googledocs/src/api/bulk.ts +301 -0
- package/connectors/connect-googledocs/src/api/index.ts +4 -0
- package/connectors/connect-googledocs/src/cli/index.ts +187 -0
- package/connectors/connect-googledrive/src/api/bulk.ts +505 -0
- package/connectors/connect-googledrive/src/api/changes.ts +139 -0
- package/connectors/connect-googledrive/src/api/client.ts +34 -0
- package/connectors/connect-googledrive/src/api/index.ts +12 -0
- package/connectors/connect-googledrive/src/api/revisions.ts +132 -0
- package/connectors/connect-googledrive/src/cli/index.ts +624 -0
- package/connectors/connect-googledrive/src/index.ts +2 -0
- package/connectors/connect-googlephotos/src/api/bulk.ts +455 -0
- package/connectors/connect-googlephotos/src/api/index.ts +8 -0
- package/connectors/connect-googlephotos/src/cli/index.ts +185 -0
- package/connectors/connect-googletasks/src/api/bulk.ts +359 -0
- package/connectors/connect-googletasks/src/api/index.ts +1 -0
- package/connectors/connect-googletasks/src/cli/index.ts +178 -0
- package/connectors/connect-linear/src/api/bulk.ts +219 -0
- package/connectors/connect-linear/src/api/index.ts +4 -0
- package/connectors/connect-linear/src/cli/index.ts +116 -0
- package/connectors/connect-shopify/src/api/bulk.ts +288 -0
- package/connectors/connect-shopify/src/api/index.ts +4 -0
- package/connectors/connect-shopify/src/cli/index.ts +108 -0
- package/connectors/connect-slack/src/api/bulk.ts +237 -0
- package/connectors/connect-slack/src/api/index.ts +4 -0
- package/connectors/connect-slack/src/cli/index.ts +157 -0
- package/connectors/connect-stripe/src/api/bulk.ts +488 -0
- package/connectors/connect-stripe/src/api/index.ts +4 -0
- package/connectors/connect-stripe/src/cli/index.ts +206 -0
- package/dist/index.js +75 -33
- package/dist/lib/runner.d.ts +15 -5
- package/dist/server/auth.d.ts +4 -0
- package/package.json +2 -2
- package/connectors/connect-cloudflare/bun.lock +0 -32
- package/connectors/connect-gmail/bin/index.js +0 -7027
- package/connectors/connect-gmail/dist/cli/index.js +0 -7035
- package/connectors/connect-gmail/dist/index.js +0 -2174
- package/dist/server/server.test.d.ts +0 -1
package/bin/mcp.js
CHANGED
|
@@ -46,7 +46,7 @@ var __export = (target, all) => {
|
|
|
46
46
|
};
|
|
47
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
48
48
|
|
|
49
|
-
// node_modules/zod/v3/helpers/util.js
|
|
49
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/helpers/util.js
|
|
50
50
|
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
51
51
|
const t = typeof data;
|
|
52
52
|
switch (t) {
|
|
@@ -177,7 +177,7 @@ var init_util = __esm(() => {
|
|
|
177
177
|
]);
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
// node_modules/zod/v3/ZodError.js
|
|
180
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/ZodError.js
|
|
181
181
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
182
182
|
const json = JSON.stringify(obj, null, 2);
|
|
183
183
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -298,7 +298,7 @@ var init_ZodError = __esm(() => {
|
|
|
298
298
|
};
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
-
// node_modules/zod/v3/locales/en.js
|
|
301
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/locales/en.js
|
|
302
302
|
var errorMap = (issue, _ctx) => {
|
|
303
303
|
let message;
|
|
304
304
|
switch (issue.code) {
|
|
@@ -405,7 +405,7 @@ var init_en = __esm(() => {
|
|
|
405
405
|
en_default = errorMap;
|
|
406
406
|
});
|
|
407
407
|
|
|
408
|
-
// node_modules/zod/v3/errors.js
|
|
408
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/errors.js
|
|
409
409
|
function setErrorMap(map) {
|
|
410
410
|
overrideErrorMap = map;
|
|
411
411
|
}
|
|
@@ -418,7 +418,7 @@ var init_errors = __esm(() => {
|
|
|
418
418
|
overrideErrorMap = en_default;
|
|
419
419
|
});
|
|
420
420
|
|
|
421
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
421
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/helpers/parseUtil.js
|
|
422
422
|
function addIssueToContext(ctx, issueData) {
|
|
423
423
|
const overrideMap = getErrorMap();
|
|
424
424
|
const issue = makeIssue({
|
|
@@ -523,10 +523,10 @@ var init_parseUtil = __esm(() => {
|
|
|
523
523
|
});
|
|
524
524
|
});
|
|
525
525
|
|
|
526
|
-
// node_modules/zod/v3/helpers/typeAliases.js
|
|
526
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/helpers/typeAliases.js
|
|
527
527
|
var init_typeAliases = () => {};
|
|
528
528
|
|
|
529
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
529
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/helpers/errorUtil.js
|
|
530
530
|
var errorUtil;
|
|
531
531
|
var init_errorUtil = __esm(() => {
|
|
532
532
|
(function(errorUtil2) {
|
|
@@ -535,7 +535,7 @@ var init_errorUtil = __esm(() => {
|
|
|
535
535
|
})(errorUtil || (errorUtil = {}));
|
|
536
536
|
});
|
|
537
537
|
|
|
538
|
-
// node_modules/zod/v3/types.js
|
|
538
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/types.js
|
|
539
539
|
class ParseInputLazyPath {
|
|
540
540
|
constructor(parent, value, path, key) {
|
|
541
541
|
this._cachedPath = [];
|
|
@@ -3886,7 +3886,7 @@ var init_types = __esm(() => {
|
|
|
3886
3886
|
NEVER = INVALID;
|
|
3887
3887
|
});
|
|
3888
3888
|
|
|
3889
|
-
// node_modules/zod/v3/external.js
|
|
3889
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v3/external.js
|
|
3890
3890
|
var exports_external = {};
|
|
3891
3891
|
__export(exports_external, {
|
|
3892
3892
|
void: () => voidType,
|
|
@@ -4006,7 +4006,7 @@ var init_external = __esm(() => {
|
|
|
4006
4006
|
init_ZodError();
|
|
4007
4007
|
});
|
|
4008
4008
|
|
|
4009
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
4009
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/codegen/code.js
|
|
4010
4010
|
var require_code = __commonJS((exports) => {
|
|
4011
4011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4012
4012
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
|
|
@@ -4160,7 +4160,7 @@ var require_code = __commonJS((exports) => {
|
|
|
4160
4160
|
exports.regexpCode = regexpCode;
|
|
4161
4161
|
});
|
|
4162
4162
|
|
|
4163
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
4163
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/codegen/scope.js
|
|
4164
4164
|
var require_scope = __commonJS((exports) => {
|
|
4165
4165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4166
4166
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -4306,7 +4306,7 @@ var require_scope = __commonJS((exports) => {
|
|
|
4306
4306
|
exports.ValueScope = ValueScope;
|
|
4307
4307
|
});
|
|
4308
4308
|
|
|
4309
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
4309
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/codegen/index.js
|
|
4310
4310
|
var require_codegen = __commonJS((exports) => {
|
|
4311
4311
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4312
4312
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
|
|
@@ -5016,7 +5016,7 @@ var require_codegen = __commonJS((exports) => {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
});
|
|
5018
5018
|
|
|
5019
|
-
// node_modules/ajv/dist/compile/util.js
|
|
5019
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/util.js
|
|
5020
5020
|
var require_util = __commonJS((exports) => {
|
|
5021
5021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5022
5022
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
|
|
@@ -5180,7 +5180,7 @@ var require_util = __commonJS((exports) => {
|
|
|
5180
5180
|
exports.checkStrictMode = checkStrictMode;
|
|
5181
5181
|
});
|
|
5182
5182
|
|
|
5183
|
-
// node_modules/ajv/dist/compile/names.js
|
|
5183
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/names.js
|
|
5184
5184
|
var require_names = __commonJS((exports) => {
|
|
5185
5185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5186
5186
|
var codegen_1 = require_codegen();
|
|
@@ -5205,7 +5205,7 @@ var require_names = __commonJS((exports) => {
|
|
|
5205
5205
|
exports.default = names;
|
|
5206
5206
|
});
|
|
5207
5207
|
|
|
5208
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
5208
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/errors.js
|
|
5209
5209
|
var require_errors = __commonJS((exports) => {
|
|
5210
5210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5211
5211
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -5323,7 +5323,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
});
|
|
5325
5325
|
|
|
5326
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
5326
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
5327
5327
|
var require_boolSchema = __commonJS((exports) => {
|
|
5328
5328
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5329
5329
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -5371,7 +5371,7 @@ var require_boolSchema = __commonJS((exports) => {
|
|
|
5371
5371
|
}
|
|
5372
5372
|
});
|
|
5373
5373
|
|
|
5374
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
5374
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/rules.js
|
|
5375
5375
|
var require_rules = __commonJS((exports) => {
|
|
5376
5376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5377
5377
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -5399,7 +5399,7 @@ var require_rules = __commonJS((exports) => {
|
|
|
5399
5399
|
exports.getRules = getRules;
|
|
5400
5400
|
});
|
|
5401
5401
|
|
|
5402
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
5402
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/applicability.js
|
|
5403
5403
|
var require_applicability = __commonJS((exports) => {
|
|
5404
5404
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5405
5405
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -5419,7 +5419,7 @@ var require_applicability = __commonJS((exports) => {
|
|
|
5419
5419
|
exports.shouldUseRule = shouldUseRule;
|
|
5420
5420
|
});
|
|
5421
5421
|
|
|
5422
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
5422
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/dataType.js
|
|
5423
5423
|
var require_dataType = __commonJS((exports) => {
|
|
5424
5424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5425
5425
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -5600,7 +5600,7 @@ var require_dataType = __commonJS((exports) => {
|
|
|
5600
5600
|
}
|
|
5601
5601
|
});
|
|
5602
5602
|
|
|
5603
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
5603
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/defaults.js
|
|
5604
5604
|
var require_defaults = __commonJS((exports) => {
|
|
5605
5605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5606
5606
|
exports.assignDefaults = undefined;
|
|
@@ -5634,7 +5634,7 @@ var require_defaults = __commonJS((exports) => {
|
|
|
5634
5634
|
}
|
|
5635
5635
|
});
|
|
5636
5636
|
|
|
5637
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
5637
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/code.js
|
|
5638
5638
|
var require_code2 = __commonJS((exports) => {
|
|
5639
5639
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5640
5640
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
|
|
@@ -5763,7 +5763,7 @@ var require_code2 = __commonJS((exports) => {
|
|
|
5763
5763
|
exports.validateUnion = validateUnion;
|
|
5764
5764
|
});
|
|
5765
5765
|
|
|
5766
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
5766
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/keyword.js
|
|
5767
5767
|
var require_keyword = __commonJS((exports) => {
|
|
5768
5768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5769
5769
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -5878,7 +5878,7 @@ var require_keyword = __commonJS((exports) => {
|
|
|
5878
5878
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
5879
5879
|
});
|
|
5880
5880
|
|
|
5881
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
5881
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/subschema.js
|
|
5882
5882
|
var require_subschema = __commonJS((exports) => {
|
|
5883
5883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5884
5884
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -5958,7 +5958,7 @@ var require_subschema = __commonJS((exports) => {
|
|
|
5958
5958
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
5959
5959
|
});
|
|
5960
5960
|
|
|
5961
|
-
// node_modules/fast-deep-equal/index.js
|
|
5961
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/fast-deep-equal/index.js
|
|
5962
5962
|
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
5963
5963
|
module.exports = function equal(a, b) {
|
|
5964
5964
|
if (a === b)
|
|
@@ -6000,7 +6000,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
6000
6000
|
};
|
|
6001
6001
|
});
|
|
6002
6002
|
|
|
6003
|
-
// node_modules/json-schema-traverse/index.js
|
|
6003
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/json-schema-traverse/index.js
|
|
6004
6004
|
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
6005
6005
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
6006
6006
|
if (typeof opts == "function") {
|
|
@@ -6083,7 +6083,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
});
|
|
6085
6085
|
|
|
6086
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
6086
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/resolve.js
|
|
6087
6087
|
var require_resolve = __commonJS((exports) => {
|
|
6088
6088
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6089
6089
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -6236,7 +6236,7 @@ var require_resolve = __commonJS((exports) => {
|
|
|
6236
6236
|
exports.getSchemaRefs = getSchemaRefs;
|
|
6237
6237
|
});
|
|
6238
6238
|
|
|
6239
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
6239
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/validate/index.js
|
|
6240
6240
|
var require_validate = __commonJS((exports) => {
|
|
6241
6241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6242
6242
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -6741,7 +6741,7 @@ var require_validate = __commonJS((exports) => {
|
|
|
6741
6741
|
exports.getData = getData;
|
|
6742
6742
|
});
|
|
6743
6743
|
|
|
6744
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
6744
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/runtime/validation_error.js
|
|
6745
6745
|
var require_validation_error = __commonJS((exports) => {
|
|
6746
6746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6747
6747
|
|
|
@@ -6755,7 +6755,7 @@ var require_validation_error = __commonJS((exports) => {
|
|
|
6755
6755
|
exports.default = ValidationError;
|
|
6756
6756
|
});
|
|
6757
6757
|
|
|
6758
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
6758
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/ref_error.js
|
|
6759
6759
|
var require_ref_error = __commonJS((exports) => {
|
|
6760
6760
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6761
6761
|
var resolve_1 = require_resolve();
|
|
@@ -6770,7 +6770,7 @@ var require_ref_error = __commonJS((exports) => {
|
|
|
6770
6770
|
exports.default = MissingRefError;
|
|
6771
6771
|
});
|
|
6772
6772
|
|
|
6773
|
-
// node_modules/ajv/dist/compile/index.js
|
|
6773
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/compile/index.js
|
|
6774
6774
|
var require_compile = __commonJS((exports) => {
|
|
6775
6775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6776
6776
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -6991,7 +6991,7 @@ var require_compile = __commonJS((exports) => {
|
|
|
6991
6991
|
}
|
|
6992
6992
|
});
|
|
6993
6993
|
|
|
6994
|
-
// node_modules/ajv/dist/refs/data.json
|
|
6994
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/refs/data.json
|
|
6995
6995
|
var require_data = __commonJS((exports, module) => {
|
|
6996
6996
|
module.exports = {
|
|
6997
6997
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -7008,7 +7008,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
7008
7008
|
};
|
|
7009
7009
|
});
|
|
7010
7010
|
|
|
7011
|
-
// node_modules/fast-uri/lib/utils.js
|
|
7011
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/fast-uri/lib/utils.js
|
|
7012
7012
|
var require_utils = __commonJS((exports, module) => {
|
|
7013
7013
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
7014
7014
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -7263,7 +7263,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
7263
7263
|
};
|
|
7264
7264
|
});
|
|
7265
7265
|
|
|
7266
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
7266
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/fast-uri/lib/schemes.js
|
|
7267
7267
|
var require_schemes = __commonJS((exports, module) => {
|
|
7268
7268
|
var { isUUID } = require_utils();
|
|
7269
7269
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -7437,7 +7437,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
7437
7437
|
};
|
|
7438
7438
|
});
|
|
7439
7439
|
|
|
7440
|
-
// node_modules/fast-uri/index.js
|
|
7440
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/fast-uri/index.js
|
|
7441
7441
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
7442
7442
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
7443
7443
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -7688,7 +7688,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
7688
7688
|
module.exports.fastUri = fastUri;
|
|
7689
7689
|
});
|
|
7690
7690
|
|
|
7691
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
7691
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/runtime/uri.js
|
|
7692
7692
|
var require_uri = __commonJS((exports) => {
|
|
7693
7693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7694
7694
|
var uri = require_fast_uri();
|
|
@@ -7696,7 +7696,7 @@ var require_uri = __commonJS((exports) => {
|
|
|
7696
7696
|
exports.default = uri;
|
|
7697
7697
|
});
|
|
7698
7698
|
|
|
7699
|
-
// node_modules/ajv/dist/core.js
|
|
7699
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/core.js
|
|
7700
7700
|
var require_core = __commonJS((exports) => {
|
|
7701
7701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7702
7702
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -8289,7 +8289,7 @@ var require_core = __commonJS((exports) => {
|
|
|
8289
8289
|
}
|
|
8290
8290
|
});
|
|
8291
8291
|
|
|
8292
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
8292
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/core/id.js
|
|
8293
8293
|
var require_id = __commonJS((exports) => {
|
|
8294
8294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8295
8295
|
var def = {
|
|
@@ -8301,7 +8301,7 @@ var require_id = __commonJS((exports) => {
|
|
|
8301
8301
|
exports.default = def;
|
|
8302
8302
|
});
|
|
8303
8303
|
|
|
8304
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
8304
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
8305
8305
|
var require_ref = __commonJS((exports) => {
|
|
8306
8306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8307
8307
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -8420,7 +8420,7 @@ var require_ref = __commonJS((exports) => {
|
|
|
8420
8420
|
exports.default = def;
|
|
8421
8421
|
});
|
|
8422
8422
|
|
|
8423
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
8423
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/core/index.js
|
|
8424
8424
|
var require_core2 = __commonJS((exports) => {
|
|
8425
8425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8426
8426
|
var id_1 = require_id();
|
|
@@ -8438,7 +8438,7 @@ var require_core2 = __commonJS((exports) => {
|
|
|
8438
8438
|
exports.default = core2;
|
|
8439
8439
|
});
|
|
8440
8440
|
|
|
8441
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
8441
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
8442
8442
|
var require_limitNumber = __commonJS((exports) => {
|
|
8443
8443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8444
8444
|
var codegen_1 = require_codegen();
|
|
@@ -8467,7 +8467,7 @@ var require_limitNumber = __commonJS((exports) => {
|
|
|
8467
8467
|
exports.default = def;
|
|
8468
8468
|
});
|
|
8469
8469
|
|
|
8470
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
8470
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
8471
8471
|
var require_multipleOf = __commonJS((exports) => {
|
|
8472
8472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8473
8473
|
var codegen_1 = require_codegen();
|
|
@@ -8492,7 +8492,7 @@ var require_multipleOf = __commonJS((exports) => {
|
|
|
8492
8492
|
exports.default = def;
|
|
8493
8493
|
});
|
|
8494
8494
|
|
|
8495
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
8495
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/runtime/ucs2length.js
|
|
8496
8496
|
var require_ucs2length = __commonJS((exports) => {
|
|
8497
8497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8498
8498
|
function ucs2length(str) {
|
|
@@ -8515,7 +8515,7 @@ var require_ucs2length = __commonJS((exports) => {
|
|
|
8515
8515
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
8516
8516
|
});
|
|
8517
8517
|
|
|
8518
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
8518
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
8519
8519
|
var require_limitLength = __commonJS((exports) => {
|
|
8520
8520
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8521
8521
|
var codegen_1 = require_codegen();
|
|
@@ -8544,7 +8544,7 @@ var require_limitLength = __commonJS((exports) => {
|
|
|
8544
8544
|
exports.default = def;
|
|
8545
8545
|
});
|
|
8546
8546
|
|
|
8547
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
8547
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
8548
8548
|
var require_pattern = __commonJS((exports) => {
|
|
8549
8549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8550
8550
|
var code_1 = require_code2();
|
|
@@ -8578,7 +8578,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
8578
8578
|
exports.default = def;
|
|
8579
8579
|
});
|
|
8580
8580
|
|
|
8581
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
8581
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
8582
8582
|
var require_limitProperties = __commonJS((exports) => {
|
|
8583
8583
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8584
8584
|
var codegen_1 = require_codegen();
|
|
@@ -8604,7 +8604,7 @@ var require_limitProperties = __commonJS((exports) => {
|
|
|
8604
8604
|
exports.default = def;
|
|
8605
8605
|
});
|
|
8606
8606
|
|
|
8607
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
8607
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
8608
8608
|
var require_required = __commonJS((exports) => {
|
|
8609
8609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8610
8610
|
var code_1 = require_code2();
|
|
@@ -8683,7 +8683,7 @@ var require_required = __commonJS((exports) => {
|
|
|
8683
8683
|
exports.default = def;
|
|
8684
8684
|
});
|
|
8685
8685
|
|
|
8686
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
8686
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
8687
8687
|
var require_limitItems = __commonJS((exports) => {
|
|
8688
8688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8689
8689
|
var codegen_1 = require_codegen();
|
|
@@ -8709,7 +8709,7 @@ var require_limitItems = __commonJS((exports) => {
|
|
|
8709
8709
|
exports.default = def;
|
|
8710
8710
|
});
|
|
8711
8711
|
|
|
8712
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
8712
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/runtime/equal.js
|
|
8713
8713
|
var require_equal = __commonJS((exports) => {
|
|
8714
8714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8715
8715
|
var equal = require_fast_deep_equal();
|
|
@@ -8717,7 +8717,7 @@ var require_equal = __commonJS((exports) => {
|
|
|
8717
8717
|
exports.default = equal;
|
|
8718
8718
|
});
|
|
8719
8719
|
|
|
8720
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
8720
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
8721
8721
|
var require_uniqueItems = __commonJS((exports) => {
|
|
8722
8722
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8723
8723
|
var dataType_1 = require_dataType();
|
|
@@ -8781,7 +8781,7 @@ var require_uniqueItems = __commonJS((exports) => {
|
|
|
8781
8781
|
exports.default = def;
|
|
8782
8782
|
});
|
|
8783
8783
|
|
|
8784
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
8784
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
8785
8785
|
var require_const = __commonJS((exports) => {
|
|
8786
8786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8787
8787
|
var codegen_1 = require_codegen();
|
|
@@ -8807,7 +8807,7 @@ var require_const = __commonJS((exports) => {
|
|
|
8807
8807
|
exports.default = def;
|
|
8808
8808
|
});
|
|
8809
8809
|
|
|
8810
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
8810
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
8811
8811
|
var require_enum = __commonJS((exports) => {
|
|
8812
8812
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8813
8813
|
var codegen_1 = require_codegen();
|
|
@@ -8853,7 +8853,7 @@ var require_enum = __commonJS((exports) => {
|
|
|
8853
8853
|
exports.default = def;
|
|
8854
8854
|
});
|
|
8855
8855
|
|
|
8856
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
8856
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
8857
8857
|
var require_validation = __commonJS((exports) => {
|
|
8858
8858
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8859
8859
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -8883,7 +8883,7 @@ var require_validation = __commonJS((exports) => {
|
|
|
8883
8883
|
exports.default = validation;
|
|
8884
8884
|
});
|
|
8885
8885
|
|
|
8886
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
8886
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
8887
8887
|
var require_additionalItems = __commonJS((exports) => {
|
|
8888
8888
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8889
8889
|
exports.validateAdditionalItems = undefined;
|
|
@@ -8933,7 +8933,7 @@ var require_additionalItems = __commonJS((exports) => {
|
|
|
8933
8933
|
exports.default = def;
|
|
8934
8934
|
});
|
|
8935
8935
|
|
|
8936
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
8936
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
8937
8937
|
var require_items = __commonJS((exports) => {
|
|
8938
8938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8939
8939
|
exports.validateTuple = undefined;
|
|
@@ -8987,7 +8987,7 @@ var require_items = __commonJS((exports) => {
|
|
|
8987
8987
|
exports.default = def;
|
|
8988
8988
|
});
|
|
8989
8989
|
|
|
8990
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
8990
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
8991
8991
|
var require_prefixItems = __commonJS((exports) => {
|
|
8992
8992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8993
8993
|
var items_1 = require_items();
|
|
@@ -9001,7 +9001,7 @@ var require_prefixItems = __commonJS((exports) => {
|
|
|
9001
9001
|
exports.default = def;
|
|
9002
9002
|
});
|
|
9003
9003
|
|
|
9004
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
9004
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
9005
9005
|
var require_items2020 = __commonJS((exports) => {
|
|
9006
9006
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9007
9007
|
var codegen_1 = require_codegen();
|
|
@@ -9033,7 +9033,7 @@ var require_items2020 = __commonJS((exports) => {
|
|
|
9033
9033
|
exports.default = def;
|
|
9034
9034
|
});
|
|
9035
9035
|
|
|
9036
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
9036
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
9037
9037
|
var require_contains = __commonJS((exports) => {
|
|
9038
9038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9039
9039
|
var codegen_1 = require_codegen();
|
|
@@ -9124,7 +9124,7 @@ var require_contains = __commonJS((exports) => {
|
|
|
9124
9124
|
exports.default = def;
|
|
9125
9125
|
});
|
|
9126
9126
|
|
|
9127
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
9127
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
9128
9128
|
var require_dependencies = __commonJS((exports) => {
|
|
9129
9129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9130
9130
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -9209,7 +9209,7 @@ var require_dependencies = __commonJS((exports) => {
|
|
|
9209
9209
|
exports.default = def;
|
|
9210
9210
|
});
|
|
9211
9211
|
|
|
9212
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
9212
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
9213
9213
|
var require_propertyNames = __commonJS((exports) => {
|
|
9214
9214
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9215
9215
|
var codegen_1 = require_codegen();
|
|
@@ -9249,7 +9249,7 @@ var require_propertyNames = __commonJS((exports) => {
|
|
|
9249
9249
|
exports.default = def;
|
|
9250
9250
|
});
|
|
9251
9251
|
|
|
9252
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
9252
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
9253
9253
|
var require_additionalProperties = __commonJS((exports) => {
|
|
9254
9254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9255
9255
|
var code_1 = require_code2();
|
|
@@ -9352,7 +9352,7 @@ var require_additionalProperties = __commonJS((exports) => {
|
|
|
9352
9352
|
exports.default = def;
|
|
9353
9353
|
});
|
|
9354
9354
|
|
|
9355
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
9355
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
9356
9356
|
var require_properties = __commonJS((exports) => {
|
|
9357
9357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9358
9358
|
var validate_1 = require_validate();
|
|
@@ -9407,7 +9407,7 @@ var require_properties = __commonJS((exports) => {
|
|
|
9407
9407
|
exports.default = def;
|
|
9408
9408
|
});
|
|
9409
9409
|
|
|
9410
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
9410
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
9411
9411
|
var require_patternProperties = __commonJS((exports) => {
|
|
9412
9412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9413
9413
|
var code_1 = require_code2();
|
|
@@ -9478,7 +9478,7 @@ var require_patternProperties = __commonJS((exports) => {
|
|
|
9478
9478
|
exports.default = def;
|
|
9479
9479
|
});
|
|
9480
9480
|
|
|
9481
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
9481
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
9482
9482
|
var require_not = __commonJS((exports) => {
|
|
9483
9483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9484
9484
|
var util_1 = require_util();
|
|
@@ -9506,7 +9506,7 @@ var require_not = __commonJS((exports) => {
|
|
|
9506
9506
|
exports.default = def;
|
|
9507
9507
|
});
|
|
9508
9508
|
|
|
9509
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
9509
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
9510
9510
|
var require_anyOf = __commonJS((exports) => {
|
|
9511
9511
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9512
9512
|
var code_1 = require_code2();
|
|
@@ -9520,7 +9520,7 @@ var require_anyOf = __commonJS((exports) => {
|
|
|
9520
9520
|
exports.default = def;
|
|
9521
9521
|
});
|
|
9522
9522
|
|
|
9523
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
9523
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
9524
9524
|
var require_oneOf = __commonJS((exports) => {
|
|
9525
9525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9526
9526
|
var codegen_1 = require_codegen();
|
|
@@ -9575,7 +9575,7 @@ var require_oneOf = __commonJS((exports) => {
|
|
|
9575
9575
|
exports.default = def;
|
|
9576
9576
|
});
|
|
9577
9577
|
|
|
9578
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
9578
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
9579
9579
|
var require_allOf = __commonJS((exports) => {
|
|
9580
9580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9581
9581
|
var util_1 = require_util();
|
|
@@ -9599,7 +9599,7 @@ var require_allOf = __commonJS((exports) => {
|
|
|
9599
9599
|
exports.default = def;
|
|
9600
9600
|
});
|
|
9601
9601
|
|
|
9602
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
9602
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
9603
9603
|
var require_if = __commonJS((exports) => {
|
|
9604
9604
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9605
9605
|
var codegen_1 = require_codegen();
|
|
@@ -9665,7 +9665,7 @@ var require_if = __commonJS((exports) => {
|
|
|
9665
9665
|
exports.default = def;
|
|
9666
9666
|
});
|
|
9667
9667
|
|
|
9668
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
9668
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
9669
9669
|
var require_thenElse = __commonJS((exports) => {
|
|
9670
9670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9671
9671
|
var util_1 = require_util();
|
|
@@ -9680,7 +9680,7 @@ var require_thenElse = __commonJS((exports) => {
|
|
|
9680
9680
|
exports.default = def;
|
|
9681
9681
|
});
|
|
9682
9682
|
|
|
9683
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
9683
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
9684
9684
|
var require_applicator = __commonJS((exports) => {
|
|
9685
9685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9686
9686
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -9723,7 +9723,7 @@ var require_applicator = __commonJS((exports) => {
|
|
|
9723
9723
|
exports.default = getApplicator;
|
|
9724
9724
|
});
|
|
9725
9725
|
|
|
9726
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
9726
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/format/format.js
|
|
9727
9727
|
var require_format = __commonJS((exports) => {
|
|
9728
9728
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9729
9729
|
var codegen_1 = require_codegen();
|
|
@@ -9810,7 +9810,7 @@ var require_format = __commonJS((exports) => {
|
|
|
9810
9810
|
exports.default = def;
|
|
9811
9811
|
});
|
|
9812
9812
|
|
|
9813
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
9813
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/format/index.js
|
|
9814
9814
|
var require_format2 = __commonJS((exports) => {
|
|
9815
9815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9816
9816
|
var format_1 = require_format();
|
|
@@ -9818,7 +9818,7 @@ var require_format2 = __commonJS((exports) => {
|
|
|
9818
9818
|
exports.default = format;
|
|
9819
9819
|
});
|
|
9820
9820
|
|
|
9821
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
9821
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/metadata.js
|
|
9822
9822
|
var require_metadata = __commonJS((exports) => {
|
|
9823
9823
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9824
9824
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -9838,7 +9838,7 @@ var require_metadata = __commonJS((exports) => {
|
|
|
9838
9838
|
];
|
|
9839
9839
|
});
|
|
9840
9840
|
|
|
9841
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
9841
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/draft7.js
|
|
9842
9842
|
var require_draft7 = __commonJS((exports) => {
|
|
9843
9843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9844
9844
|
var core_1 = require_core2();
|
|
@@ -9857,7 +9857,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
9857
9857
|
exports.default = draft7Vocabularies;
|
|
9858
9858
|
});
|
|
9859
9859
|
|
|
9860
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
9860
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
9861
9861
|
var require_types = __commonJS((exports) => {
|
|
9862
9862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9863
9863
|
exports.DiscrError = undefined;
|
|
@@ -9868,7 +9868,7 @@ var require_types = __commonJS((exports) => {
|
|
|
9868
9868
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
9869
9869
|
});
|
|
9870
9870
|
|
|
9871
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
9871
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
9872
9872
|
var require_discriminator = __commonJS((exports) => {
|
|
9873
9873
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9874
9874
|
var codegen_1 = require_codegen();
|
|
@@ -9970,7 +9970,7 @@ var require_discriminator = __commonJS((exports) => {
|
|
|
9970
9970
|
exports.default = def;
|
|
9971
9971
|
});
|
|
9972
9972
|
|
|
9973
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
9973
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
9974
9974
|
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
9975
9975
|
module.exports = {
|
|
9976
9976
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -10125,7 +10125,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
10125
10125
|
};
|
|
10126
10126
|
});
|
|
10127
10127
|
|
|
10128
|
-
// node_modules/ajv/dist/ajv.js
|
|
10128
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv/dist/ajv.js
|
|
10129
10129
|
var require_ajv = __commonJS((exports, module) => {
|
|
10130
10130
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10131
10131
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -10193,7 +10193,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
10193
10193
|
} });
|
|
10194
10194
|
});
|
|
10195
10195
|
|
|
10196
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
10196
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv-formats/dist/formats.js
|
|
10197
10197
|
var require_formats = __commonJS((exports) => {
|
|
10198
10198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10199
10199
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -10370,7 +10370,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
10370
10370
|
}
|
|
10371
10371
|
});
|
|
10372
10372
|
|
|
10373
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
10373
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv-formats/dist/limit.js
|
|
10374
10374
|
var require_limit = __commonJS((exports) => {
|
|
10375
10375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10376
10376
|
exports.formatLimitDefinition = undefined;
|
|
@@ -10439,7 +10439,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
10439
10439
|
exports.default = formatLimitPlugin;
|
|
10440
10440
|
});
|
|
10441
10441
|
|
|
10442
|
-
// node_modules/ajv-formats/dist/index.js
|
|
10442
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/ajv-formats/dist/index.js
|
|
10443
10443
|
var require_dist = __commonJS((exports, module) => {
|
|
10444
10444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10445
10445
|
var formats_1 = require_formats();
|
|
@@ -10478,7 +10478,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
10478
10478
|
exports.default = formatsPlugin;
|
|
10479
10479
|
});
|
|
10480
10480
|
|
|
10481
|
-
// node_modules/zod/index.js
|
|
10481
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/index.js
|
|
10482
10482
|
var init_zod = __esm(() => {
|
|
10483
10483
|
init_external();
|
|
10484
10484
|
init_external();
|
|
@@ -11443,7 +11443,7 @@ var package_default;
|
|
|
11443
11443
|
var init_package = __esm(() => {
|
|
11444
11444
|
package_default = {
|
|
11445
11445
|
name: "@hasna/connectors",
|
|
11446
|
-
version: "1.3.
|
|
11446
|
+
version: "1.3.23",
|
|
11447
11447
|
description: "Open source connector library - Install API connectors with a single command",
|
|
11448
11448
|
type: "module",
|
|
11449
11449
|
bin: {
|
|
@@ -11474,7 +11474,7 @@ var init_package = __esm(() => {
|
|
|
11474
11474
|
typecheck: "tsc --noEmit",
|
|
11475
11475
|
test: "bun test",
|
|
11476
11476
|
"sdk:build": "cd sdk && bun run build",
|
|
11477
|
-
prepublishOnly: "bun
|
|
11477
|
+
prepublishOnly: "bun run build && bun test"
|
|
11478
11478
|
},
|
|
11479
11479
|
keywords: [
|
|
11480
11480
|
"connectors",
|
|
@@ -11530,7 +11530,7 @@ var init_package = __esm(() => {
|
|
|
11530
11530
|
};
|
|
11531
11531
|
});
|
|
11532
11532
|
|
|
11533
|
-
// node_modules/@hasna/cloud/dist/index.js
|
|
11533
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@hasna/cloud/dist/index.js
|
|
11534
11534
|
import { createRequire } from "module";
|
|
11535
11535
|
import { Database } from "bun:sqlite";
|
|
11536
11536
|
import {
|
|
@@ -24159,6 +24159,7 @@ var init_usage = __esm(() => {
|
|
|
24159
24159
|
var exports_runner = {};
|
|
24160
24160
|
__export(exports_runner, {
|
|
24161
24161
|
runConnectorCommand: () => runConnectorCommand,
|
|
24162
|
+
parseCommanderHelpOperations: () => parseCommanderHelpOperations,
|
|
24162
24163
|
hasConnectorCommandSurface: () => hasConnectorCommandSurface,
|
|
24163
24164
|
getConnectorsWithCli: () => getConnectorsWithCli,
|
|
24164
24165
|
getConnectorOperations: () => getConnectorOperations,
|
|
@@ -24166,16 +24167,16 @@ __export(exports_runner, {
|
|
|
24166
24167
|
getConnectorCliPath: () => getConnectorCliPath,
|
|
24167
24168
|
buildEnvWithCredentials: () => buildEnvWithCredentials
|
|
24168
24169
|
});
|
|
24169
|
-
import { existsSync as
|
|
24170
|
-
import { join as
|
|
24170
|
+
import { existsSync as existsSync14, readdirSync as readdirSync8 } from "fs";
|
|
24171
|
+
import { join as join15, dirname as dirname7 } from "path";
|
|
24171
24172
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
24172
|
-
import { spawn } from "child_process";
|
|
24173
|
+
import { spawn as spawn2 } from "child_process";
|
|
24173
24174
|
function resolveConnectorsDir2() {
|
|
24174
|
-
const fromBin =
|
|
24175
|
-
if (
|
|
24175
|
+
const fromBin = join15(__dirname5, "..", "connectors");
|
|
24176
|
+
if (existsSync14(fromBin))
|
|
24176
24177
|
return fromBin;
|
|
24177
|
-
const fromSrc =
|
|
24178
|
-
if (
|
|
24178
|
+
const fromSrc = join15(__dirname5, "..", "..", "connectors");
|
|
24179
|
+
if (existsSync14(fromSrc))
|
|
24179
24180
|
return fromSrc;
|
|
24180
24181
|
return fromBin;
|
|
24181
24182
|
}
|
|
@@ -24222,15 +24223,62 @@ function buildEnvWithCredentials(connectorName, baseEnv) {
|
|
|
24222
24223
|
}
|
|
24223
24224
|
function getConnectorCliPath(name) {
|
|
24224
24225
|
const safeName = name.replace(/[^a-z0-9-]/g, "");
|
|
24225
|
-
const connectorDir =
|
|
24226
|
-
const cliPath =
|
|
24227
|
-
if (
|
|
24226
|
+
const connectorDir = join15(CONNECTORS_DIR2, `connect-${safeName}`);
|
|
24227
|
+
const cliPath = join15(connectorDir, "src", "cli", "index.ts");
|
|
24228
|
+
if (existsSync14(cliPath))
|
|
24228
24229
|
return cliPath;
|
|
24229
24230
|
return null;
|
|
24230
24231
|
}
|
|
24231
24232
|
function hasConnectorCommandSurface(name) {
|
|
24232
24233
|
return Boolean(getInternalCommandRuntime(name)?.commands.length || getConnectorCliPath(name));
|
|
24233
24234
|
}
|
|
24235
|
+
function normalizeCommanderUsage(usage) {
|
|
24236
|
+
const commandToken = usage.trim().split(/\s+/)[0];
|
|
24237
|
+
if (!commandToken || commandToken === "help")
|
|
24238
|
+
return null;
|
|
24239
|
+
const aliases = commandToken.split("|").filter(Boolean);
|
|
24240
|
+
const [name, ...rest] = aliases;
|
|
24241
|
+
if (!name)
|
|
24242
|
+
return null;
|
|
24243
|
+
return {
|
|
24244
|
+
name,
|
|
24245
|
+
aliases: rest,
|
|
24246
|
+
usage: usage.trim()
|
|
24247
|
+
};
|
|
24248
|
+
}
|
|
24249
|
+
function parseCommanderHelpOperations(helpText) {
|
|
24250
|
+
const operations = [];
|
|
24251
|
+
const lines = helpText.split(`
|
|
24252
|
+
`);
|
|
24253
|
+
let inCommands = false;
|
|
24254
|
+
for (const line of lines) {
|
|
24255
|
+
if (line.trim().startsWith("Commands:")) {
|
|
24256
|
+
inCommands = true;
|
|
24257
|
+
continue;
|
|
24258
|
+
}
|
|
24259
|
+
if (!inCommands)
|
|
24260
|
+
continue;
|
|
24261
|
+
if (line.trim() === "") {
|
|
24262
|
+
if (operations.length > 0)
|
|
24263
|
+
inCommands = false;
|
|
24264
|
+
continue;
|
|
24265
|
+
}
|
|
24266
|
+
const row = line.match(/^ {2}(\S.*?)(?: {2,}(.+))?$/);
|
|
24267
|
+
if (!row)
|
|
24268
|
+
continue;
|
|
24269
|
+
const usage = row[1].trim();
|
|
24270
|
+
const summary = (row[2] ?? "").trim();
|
|
24271
|
+
const normalized = normalizeCommanderUsage(usage);
|
|
24272
|
+
if (!normalized)
|
|
24273
|
+
continue;
|
|
24274
|
+
operations.push({
|
|
24275
|
+
...normalized,
|
|
24276
|
+
summary,
|
|
24277
|
+
source: "cli"
|
|
24278
|
+
});
|
|
24279
|
+
}
|
|
24280
|
+
return operations;
|
|
24281
|
+
}
|
|
24234
24282
|
function runConnectorCommand(name, args, timeoutMs = 30000) {
|
|
24235
24283
|
getConnectorsHome();
|
|
24236
24284
|
const internalRuntime = getInternalCommandRuntime(name);
|
|
@@ -24263,7 +24311,7 @@ function runLegacyConnectorCommand(name, args, timeoutMs = 30000) {
|
|
|
24263
24311
|
});
|
|
24264
24312
|
}
|
|
24265
24313
|
return new Promise((resolve) => {
|
|
24266
|
-
const proc =
|
|
24314
|
+
const proc = spawn2("bun", ["run", cliPath, ...args], {
|
|
24267
24315
|
timeout: timeoutMs,
|
|
24268
24316
|
env: buildEnvWithCredentials(name, process.env),
|
|
24269
24317
|
stdio: ["pipe", "pipe", "pipe"]
|
|
@@ -24297,38 +24345,33 @@ function runLegacyConnectorCommand(name, args, timeoutMs = 30000) {
|
|
|
24297
24345
|
async function getConnectorOperations(name) {
|
|
24298
24346
|
const internalRuntime = getInternalCommandRuntime(name);
|
|
24299
24347
|
if (internalRuntime?.commands.length) {
|
|
24348
|
+
const operations2 = internalRuntime.commands.map((command) => ({
|
|
24349
|
+
name: command.name,
|
|
24350
|
+
aliases: [],
|
|
24351
|
+
usage: command.name,
|
|
24352
|
+
summary: command.summary,
|
|
24353
|
+
source: "internal"
|
|
24354
|
+
}));
|
|
24300
24355
|
return {
|
|
24301
|
-
commands:
|
|
24356
|
+
commands: operations2.map((operation) => operation.name),
|
|
24357
|
+
operations: operations2,
|
|
24302
24358
|
helpText: internalRuntime.helpText ?? buildInternalHelpText(name, internalRuntime.commands),
|
|
24303
24359
|
hasCli: true
|
|
24304
24360
|
};
|
|
24305
24361
|
}
|
|
24306
24362
|
const cliPath = getConnectorCliPath(name);
|
|
24307
24363
|
if (!cliPath) {
|
|
24308
|
-
return { commands: [], helpText: "", hasCli: false };
|
|
24364
|
+
return { commands: [], operations: [], helpText: "", hasCli: false };
|
|
24309
24365
|
}
|
|
24310
24366
|
const result = await runConnectorCommand(name, ["--help"]);
|
|
24311
24367
|
const helpText = result.stdout || result.stderr;
|
|
24312
|
-
const
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
continue;
|
|
24320
|
-
}
|
|
24321
|
-
if (inCommands) {
|
|
24322
|
-
const match = line.match(/^\s{2,}(\S+)/);
|
|
24323
|
-
if (match && match[1] !== "help") {
|
|
24324
|
-
commands.push(match[1]);
|
|
24325
|
-
}
|
|
24326
|
-
if (line.trim() === "" && commands.length > 0) {
|
|
24327
|
-
inCommands = false;
|
|
24328
|
-
}
|
|
24329
|
-
}
|
|
24330
|
-
}
|
|
24331
|
-
return { commands, helpText, hasCli: true };
|
|
24368
|
+
const operations = parseCommanderHelpOperations(helpText);
|
|
24369
|
+
return {
|
|
24370
|
+
commands: operations.map((operation) => operation.name),
|
|
24371
|
+
operations,
|
|
24372
|
+
helpText,
|
|
24373
|
+
hasCli: true
|
|
24374
|
+
};
|
|
24332
24375
|
}
|
|
24333
24376
|
async function getConnectorCommandHelp(name, command) {
|
|
24334
24377
|
const internalRuntime = getInternalCommandRuntime(name);
|
|
@@ -24380,7 +24423,7 @@ var init_runner = __esm(() => {
|
|
|
24380
24423
|
};
|
|
24381
24424
|
});
|
|
24382
24425
|
|
|
24383
|
-
// node_modules/zod/v4/core/core.js
|
|
24426
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/core.js
|
|
24384
24427
|
var NEVER2 = Object.freeze({
|
|
24385
24428
|
status: "aborted"
|
|
24386
24429
|
});
|
|
@@ -24440,7 +24483,7 @@ function config(newConfig) {
|
|
|
24440
24483
|
Object.assign(globalConfig, newConfig);
|
|
24441
24484
|
return globalConfig;
|
|
24442
24485
|
}
|
|
24443
|
-
// node_modules/zod/v4/core/util.js
|
|
24486
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/util.js
|
|
24444
24487
|
var exports_util = {};
|
|
24445
24488
|
__export(exports_util, {
|
|
24446
24489
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -24954,7 +24997,7 @@ class Class {
|
|
|
24954
24997
|
constructor(..._args) {}
|
|
24955
24998
|
}
|
|
24956
24999
|
|
|
24957
|
-
// node_modules/zod/v4/core/errors.js
|
|
25000
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/errors.js
|
|
24958
25001
|
var initializer = (inst, def) => {
|
|
24959
25002
|
inst.name = "$ZodError";
|
|
24960
25003
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -25028,7 +25071,7 @@ function formatError(error, _mapper) {
|
|
|
25028
25071
|
return fieldErrors;
|
|
25029
25072
|
}
|
|
25030
25073
|
|
|
25031
|
-
// node_modules/zod/v4/core/parse.js
|
|
25074
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/parse.js
|
|
25032
25075
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
25033
25076
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
25034
25077
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -25079,7 +25122,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
25079
25122
|
} : { success: true, data: result.value };
|
|
25080
25123
|
};
|
|
25081
25124
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
25082
|
-
// node_modules/zod/v4/core/regexes.js
|
|
25125
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/regexes.js
|
|
25083
25126
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
25084
25127
|
var cuid2 = /^[0-9a-z]+$/;
|
|
25085
25128
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -25137,7 +25180,7 @@ var _null = /null/i;
|
|
|
25137
25180
|
var lowercase = /^[^A-Z]*$/;
|
|
25138
25181
|
var uppercase = /^[^a-z]*$/;
|
|
25139
25182
|
|
|
25140
|
-
// node_modules/zod/v4/core/checks.js
|
|
25183
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/checks.js
|
|
25141
25184
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
25142
25185
|
var _a;
|
|
25143
25186
|
inst._zod ?? (inst._zod = {});
|
|
@@ -25521,7 +25564,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
25521
25564
|
};
|
|
25522
25565
|
});
|
|
25523
25566
|
|
|
25524
|
-
// node_modules/zod/v4/core/doc.js
|
|
25567
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/doc.js
|
|
25525
25568
|
class Doc {
|
|
25526
25569
|
constructor(args = []) {
|
|
25527
25570
|
this.content = [];
|
|
@@ -25559,14 +25602,14 @@ class Doc {
|
|
|
25559
25602
|
}
|
|
25560
25603
|
}
|
|
25561
25604
|
|
|
25562
|
-
// node_modules/zod/v4/core/versions.js
|
|
25605
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/versions.js
|
|
25563
25606
|
var version = {
|
|
25564
25607
|
major: 4,
|
|
25565
25608
|
minor: 0,
|
|
25566
25609
|
patch: 0
|
|
25567
25610
|
};
|
|
25568
25611
|
|
|
25569
|
-
// node_modules/zod/v4/core/schemas.js
|
|
25612
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/schemas.js
|
|
25570
25613
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
25571
25614
|
var _a;
|
|
25572
25615
|
inst ?? (inst = {});
|
|
@@ -26797,7 +26840,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
26797
26840
|
payload.issues.push(issue(_iss));
|
|
26798
26841
|
}
|
|
26799
26842
|
}
|
|
26800
|
-
// node_modules/zod/v4/locales/en.js
|
|
26843
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/locales/en.js
|
|
26801
26844
|
var parsedType = (data) => {
|
|
26802
26845
|
const t = typeof data;
|
|
26803
26846
|
switch (t) {
|
|
@@ -26914,7 +26957,7 @@ function en_default2() {
|
|
|
26914
26957
|
localeError: error()
|
|
26915
26958
|
};
|
|
26916
26959
|
}
|
|
26917
|
-
// node_modules/zod/v4/core/registries.js
|
|
26960
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/registries.js
|
|
26918
26961
|
var $output = Symbol("ZodOutput");
|
|
26919
26962
|
var $input = Symbol("ZodInput");
|
|
26920
26963
|
|
|
@@ -26964,7 +27007,7 @@ function registry() {
|
|
|
26964
27007
|
return new $ZodRegistry;
|
|
26965
27008
|
}
|
|
26966
27009
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
26967
|
-
// node_modules/zod/v4/core/api.js
|
|
27010
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/api.js
|
|
26968
27011
|
function _string(Class2, params) {
|
|
26969
27012
|
return new Class2({
|
|
26970
27013
|
type: "string",
|
|
@@ -27399,7 +27442,7 @@ function _refine(Class2, fn, _params) {
|
|
|
27399
27442
|
});
|
|
27400
27443
|
return schema;
|
|
27401
27444
|
}
|
|
27402
|
-
// node_modules/zod/v4/core/to-json-schema.js
|
|
27445
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/core/to-json-schema.js
|
|
27403
27446
|
class JSONSchemaGenerator {
|
|
27404
27447
|
constructor(params) {
|
|
27405
27448
|
this.counter = 0;
|
|
@@ -28151,7 +28194,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
28151
28194
|
}
|
|
28152
28195
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
28153
28196
|
}
|
|
28154
|
-
// node_modules/zod/v4/mini/schemas.js
|
|
28197
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/mini/schemas.js
|
|
28155
28198
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
28156
28199
|
if (!inst._zod)
|
|
28157
28200
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -28193,7 +28236,7 @@ function object(shape, params) {
|
|
|
28193
28236
|
};
|
|
28194
28237
|
return new ZodMiniObject(def);
|
|
28195
28238
|
}
|
|
28196
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
28239
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
28197
28240
|
function isZ4Schema(s) {
|
|
28198
28241
|
const schema = s;
|
|
28199
28242
|
return !!schema._zod;
|
|
@@ -28336,7 +28379,7 @@ function getLiteralValue(schema) {
|
|
|
28336
28379
|
return directValue;
|
|
28337
28380
|
return;
|
|
28338
28381
|
}
|
|
28339
|
-
// node_modules/zod/v4/classic/iso.js
|
|
28382
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/classic/iso.js
|
|
28340
28383
|
var exports_iso2 = {};
|
|
28341
28384
|
__export(exports_iso2, {
|
|
28342
28385
|
time: () => time2,
|
|
@@ -28377,7 +28420,7 @@ function duration2(params) {
|
|
|
28377
28420
|
return _isoDuration(ZodISODuration, params);
|
|
28378
28421
|
}
|
|
28379
28422
|
|
|
28380
|
-
// node_modules/zod/v4/classic/errors.js
|
|
28423
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/classic/errors.js
|
|
28381
28424
|
var initializer2 = (inst, issues) => {
|
|
28382
28425
|
$ZodError.init(inst, issues);
|
|
28383
28426
|
inst.name = "ZodError";
|
|
@@ -28406,13 +28449,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
28406
28449
|
Parent: Error
|
|
28407
28450
|
});
|
|
28408
28451
|
|
|
28409
|
-
// node_modules/zod/v4/classic/parse.js
|
|
28452
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/classic/parse.js
|
|
28410
28453
|
var parse4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
28411
28454
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
28412
28455
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
28413
28456
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
28414
28457
|
|
|
28415
|
-
// node_modules/zod/v4/classic/schemas.js
|
|
28458
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/classic/schemas.js
|
|
28416
28459
|
var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
28417
28460
|
$ZodType.init(inst, def);
|
|
28418
28461
|
inst.def = def;
|
|
@@ -29017,10 +29060,10 @@ function superRefine(fn) {
|
|
|
29017
29060
|
function preprocess(fn, schema) {
|
|
29018
29061
|
return pipe(transform(fn), schema);
|
|
29019
29062
|
}
|
|
29020
|
-
// node_modules/zod/v4/classic/external.js
|
|
29063
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod/v4/classic/external.js
|
|
29021
29064
|
config(en_default2());
|
|
29022
29065
|
|
|
29023
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
29066
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
29024
29067
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
29025
29068
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
29026
29069
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -29862,12 +29905,12 @@ class UrlElicitationRequiredError extends McpError {
|
|
|
29862
29905
|
}
|
|
29863
29906
|
}
|
|
29864
29907
|
|
|
29865
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
29908
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
29866
29909
|
function isTerminal(status) {
|
|
29867
29910
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
29868
29911
|
}
|
|
29869
29912
|
|
|
29870
|
-
// node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
29913
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
29871
29914
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
29872
29915
|
var defaultOptions = {
|
|
29873
29916
|
name: undefined,
|
|
@@ -29900,7 +29943,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
29900
29943
|
...defaultOptions,
|
|
29901
29944
|
...options
|
|
29902
29945
|
};
|
|
29903
|
-
// node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
29946
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
29904
29947
|
var getRefs = (options) => {
|
|
29905
29948
|
const _options = getDefaultOptions(options);
|
|
29906
29949
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -29919,7 +29962,7 @@ var getRefs = (options) => {
|
|
|
29919
29962
|
]))
|
|
29920
29963
|
};
|
|
29921
29964
|
};
|
|
29922
|
-
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
29965
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
29923
29966
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
29924
29967
|
if (!refs?.errorMessages)
|
|
29925
29968
|
return;
|
|
@@ -29934,7 +29977,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
29934
29977
|
res[key] = value;
|
|
29935
29978
|
addErrorMessage(res, key, errorMessage, refs);
|
|
29936
29979
|
}
|
|
29937
|
-
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
29980
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
29938
29981
|
var getRelativePath = (pathA, pathB) => {
|
|
29939
29982
|
let i = 0;
|
|
29940
29983
|
for (;i < pathA.length && i < pathB.length; i++) {
|
|
@@ -29943,7 +29986,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
29943
29986
|
}
|
|
29944
29987
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
29945
29988
|
};
|
|
29946
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
29989
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
29947
29990
|
function parseAnyDef(refs) {
|
|
29948
29991
|
if (refs.target !== "openAi") {
|
|
29949
29992
|
return {};
|
|
@@ -29959,7 +30002,7 @@ function parseAnyDef(refs) {
|
|
|
29959
30002
|
};
|
|
29960
30003
|
}
|
|
29961
30004
|
|
|
29962
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
30005
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
29963
30006
|
function parseArrayDef(def, refs) {
|
|
29964
30007
|
const res = {
|
|
29965
30008
|
type: "array"
|
|
@@ -29983,7 +30026,7 @@ function parseArrayDef(def, refs) {
|
|
|
29983
30026
|
return res;
|
|
29984
30027
|
}
|
|
29985
30028
|
|
|
29986
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
30029
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
29987
30030
|
function parseBigintDef(def, refs) {
|
|
29988
30031
|
const res = {
|
|
29989
30032
|
type: "integer",
|
|
@@ -30029,24 +30072,24 @@ function parseBigintDef(def, refs) {
|
|
|
30029
30072
|
return res;
|
|
30030
30073
|
}
|
|
30031
30074
|
|
|
30032
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
30075
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
30033
30076
|
function parseBooleanDef() {
|
|
30034
30077
|
return {
|
|
30035
30078
|
type: "boolean"
|
|
30036
30079
|
};
|
|
30037
30080
|
}
|
|
30038
30081
|
|
|
30039
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
30082
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
30040
30083
|
function parseBrandedDef(_def, refs) {
|
|
30041
30084
|
return parseDef(_def.type._def, refs);
|
|
30042
30085
|
}
|
|
30043
30086
|
|
|
30044
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
30087
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
30045
30088
|
var parseCatchDef = (def, refs) => {
|
|
30046
30089
|
return parseDef(def.innerType._def, refs);
|
|
30047
30090
|
};
|
|
30048
30091
|
|
|
30049
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
30092
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
30050
30093
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
30051
30094
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
30052
30095
|
if (Array.isArray(strategy)) {
|
|
@@ -30091,7 +30134,7 @@ var integerDateParser = (def, refs) => {
|
|
|
30091
30134
|
return res;
|
|
30092
30135
|
};
|
|
30093
30136
|
|
|
30094
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
30137
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
30095
30138
|
function parseDefaultDef(_def, refs) {
|
|
30096
30139
|
return {
|
|
30097
30140
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -30099,12 +30142,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
30099
30142
|
};
|
|
30100
30143
|
}
|
|
30101
30144
|
|
|
30102
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
30145
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
30103
30146
|
function parseEffectsDef(_def, refs) {
|
|
30104
30147
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
30105
30148
|
}
|
|
30106
30149
|
|
|
30107
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
30150
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
30108
30151
|
function parseEnumDef(def) {
|
|
30109
30152
|
return {
|
|
30110
30153
|
type: "string",
|
|
@@ -30112,7 +30155,7 @@ function parseEnumDef(def) {
|
|
|
30112
30155
|
};
|
|
30113
30156
|
}
|
|
30114
30157
|
|
|
30115
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
30158
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
30116
30159
|
var isJsonSchema7AllOfType = (type) => {
|
|
30117
30160
|
if ("type" in type && type.type === "string")
|
|
30118
30161
|
return false;
|
|
@@ -30154,7 +30197,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
30154
30197
|
} : undefined;
|
|
30155
30198
|
}
|
|
30156
30199
|
|
|
30157
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
30200
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
30158
30201
|
function parseLiteralDef(def, refs) {
|
|
30159
30202
|
const parsedType2 = typeof def.value;
|
|
30160
30203
|
if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
|
|
@@ -30174,7 +30217,7 @@ function parseLiteralDef(def, refs) {
|
|
|
30174
30217
|
};
|
|
30175
30218
|
}
|
|
30176
30219
|
|
|
30177
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
30220
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
30178
30221
|
var emojiRegex2 = undefined;
|
|
30179
30222
|
var zodPatterns = {
|
|
30180
30223
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -30471,7 +30514,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
30471
30514
|
return pattern;
|
|
30472
30515
|
}
|
|
30473
30516
|
|
|
30474
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
30517
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
30475
30518
|
function parseRecordDef(def, refs) {
|
|
30476
30519
|
if (refs.target === "openAi") {
|
|
30477
30520
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -30523,7 +30566,7 @@ function parseRecordDef(def, refs) {
|
|
|
30523
30566
|
return schema;
|
|
30524
30567
|
}
|
|
30525
30568
|
|
|
30526
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
30569
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
30527
30570
|
function parseMapDef(def, refs) {
|
|
30528
30571
|
if (refs.mapStrategy === "record") {
|
|
30529
30572
|
return parseRecordDef(def, refs);
|
|
@@ -30548,7 +30591,7 @@ function parseMapDef(def, refs) {
|
|
|
30548
30591
|
};
|
|
30549
30592
|
}
|
|
30550
30593
|
|
|
30551
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
30594
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
30552
30595
|
function parseNativeEnumDef(def) {
|
|
30553
30596
|
const object3 = def.values;
|
|
30554
30597
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -30562,7 +30605,7 @@ function parseNativeEnumDef(def) {
|
|
|
30562
30605
|
};
|
|
30563
30606
|
}
|
|
30564
30607
|
|
|
30565
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
30608
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
30566
30609
|
function parseNeverDef(refs) {
|
|
30567
30610
|
return refs.target === "openAi" ? undefined : {
|
|
30568
30611
|
not: parseAnyDef({
|
|
@@ -30572,7 +30615,7 @@ function parseNeverDef(refs) {
|
|
|
30572
30615
|
};
|
|
30573
30616
|
}
|
|
30574
30617
|
|
|
30575
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
30618
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
30576
30619
|
function parseNullDef(refs) {
|
|
30577
30620
|
return refs.target === "openApi3" ? {
|
|
30578
30621
|
enum: ["null"],
|
|
@@ -30582,7 +30625,7 @@ function parseNullDef(refs) {
|
|
|
30582
30625
|
};
|
|
30583
30626
|
}
|
|
30584
30627
|
|
|
30585
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
30628
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
30586
30629
|
var primitiveMappings = {
|
|
30587
30630
|
ZodString: "string",
|
|
30588
30631
|
ZodNumber: "number",
|
|
@@ -30650,7 +30693,7 @@ var asAnyOf = (def, refs) => {
|
|
|
30650
30693
|
return anyOf.length ? { anyOf } : undefined;
|
|
30651
30694
|
};
|
|
30652
30695
|
|
|
30653
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
30696
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
30654
30697
|
function parseNullableDef(def, refs) {
|
|
30655
30698
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
30656
30699
|
if (refs.target === "openApi3") {
|
|
@@ -30682,7 +30725,7 @@ function parseNullableDef(def, refs) {
|
|
|
30682
30725
|
return base && { anyOf: [base, { type: "null" }] };
|
|
30683
30726
|
}
|
|
30684
30727
|
|
|
30685
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
30728
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
30686
30729
|
function parseNumberDef(def, refs) {
|
|
30687
30730
|
const res = {
|
|
30688
30731
|
type: "number"
|
|
@@ -30731,7 +30774,7 @@ function parseNumberDef(def, refs) {
|
|
|
30731
30774
|
return res;
|
|
30732
30775
|
}
|
|
30733
30776
|
|
|
30734
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
30777
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
30735
30778
|
function parseObjectDef(def, refs) {
|
|
30736
30779
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
30737
30780
|
const result = {
|
|
@@ -30801,7 +30844,7 @@ function safeIsOptional(schema) {
|
|
|
30801
30844
|
}
|
|
30802
30845
|
}
|
|
30803
30846
|
|
|
30804
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
30847
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
30805
30848
|
var parseOptionalDef = (def, refs) => {
|
|
30806
30849
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
30807
30850
|
return parseDef(def.innerType._def, refs);
|
|
@@ -30820,7 +30863,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
30820
30863
|
} : parseAnyDef(refs);
|
|
30821
30864
|
};
|
|
30822
30865
|
|
|
30823
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
30866
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
30824
30867
|
var parsePipelineDef = (def, refs) => {
|
|
30825
30868
|
if (refs.pipeStrategy === "input") {
|
|
30826
30869
|
return parseDef(def.in._def, refs);
|
|
@@ -30840,12 +30883,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
30840
30883
|
};
|
|
30841
30884
|
};
|
|
30842
30885
|
|
|
30843
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
30886
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
30844
30887
|
function parsePromiseDef(def, refs) {
|
|
30845
30888
|
return parseDef(def.type._def, refs);
|
|
30846
30889
|
}
|
|
30847
30890
|
|
|
30848
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
30891
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
30849
30892
|
function parseSetDef(def, refs) {
|
|
30850
30893
|
const items = parseDef(def.valueType._def, {
|
|
30851
30894
|
...refs,
|
|
@@ -30865,7 +30908,7 @@ function parseSetDef(def, refs) {
|
|
|
30865
30908
|
return schema;
|
|
30866
30909
|
}
|
|
30867
30910
|
|
|
30868
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
30911
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
30869
30912
|
function parseTupleDef(def, refs) {
|
|
30870
30913
|
if (def.rest) {
|
|
30871
30914
|
return {
|
|
@@ -30893,24 +30936,24 @@ function parseTupleDef(def, refs) {
|
|
|
30893
30936
|
}
|
|
30894
30937
|
}
|
|
30895
30938
|
|
|
30896
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
30939
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
30897
30940
|
function parseUndefinedDef(refs) {
|
|
30898
30941
|
return {
|
|
30899
30942
|
not: parseAnyDef(refs)
|
|
30900
30943
|
};
|
|
30901
30944
|
}
|
|
30902
30945
|
|
|
30903
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
30946
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
30904
30947
|
function parseUnknownDef(refs) {
|
|
30905
30948
|
return parseAnyDef(refs);
|
|
30906
30949
|
}
|
|
30907
30950
|
|
|
30908
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
30951
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
30909
30952
|
var parseReadonlyDef = (def, refs) => {
|
|
30910
30953
|
return parseDef(def.innerType._def, refs);
|
|
30911
30954
|
};
|
|
30912
30955
|
|
|
30913
|
-
// node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
30956
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
30914
30957
|
var selectParser = (def, typeName, refs) => {
|
|
30915
30958
|
switch (typeName) {
|
|
30916
30959
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -30988,7 +31031,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
30988
31031
|
}
|
|
30989
31032
|
};
|
|
30990
31033
|
|
|
30991
|
-
// node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
31034
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
30992
31035
|
function parseDef(def, refs, forceResolution = false) {
|
|
30993
31036
|
const seenItem = refs.seen.get(def);
|
|
30994
31037
|
if (refs.override) {
|
|
@@ -31043,7 +31086,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
31043
31086
|
}
|
|
31044
31087
|
return jsonSchema;
|
|
31045
31088
|
};
|
|
31046
|
-
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
31089
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
31047
31090
|
var zodToJsonSchema = (schema, options) => {
|
|
31048
31091
|
const refs = getRefs(options);
|
|
31049
31092
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -31103,7 +31146,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
31103
31146
|
}
|
|
31104
31147
|
return combined;
|
|
31105
31148
|
};
|
|
31106
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
31149
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
31107
31150
|
function mapMiniTarget(t) {
|
|
31108
31151
|
if (!t)
|
|
31109
31152
|
return "draft-7";
|
|
@@ -31145,7 +31188,7 @@ function parseWithCompat(schema, data) {
|
|
|
31145
31188
|
return result.data;
|
|
31146
31189
|
}
|
|
31147
31190
|
|
|
31148
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
31191
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
31149
31192
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
31150
31193
|
|
|
31151
31194
|
class Protocol {
|
|
@@ -31986,7 +32029,7 @@ function mergeCapabilities(base, additional) {
|
|
|
31986
32029
|
return result;
|
|
31987
32030
|
}
|
|
31988
32031
|
|
|
31989
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
32032
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
31990
32033
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
31991
32034
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
31992
32035
|
function createDefaultAjvInstance() {
|
|
@@ -32026,7 +32069,7 @@ class AjvJsonSchemaValidator {
|
|
|
32026
32069
|
}
|
|
32027
32070
|
}
|
|
32028
32071
|
|
|
32029
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
32072
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
32030
32073
|
class ExperimentalServerTasks {
|
|
32031
32074
|
constructor(_server) {
|
|
32032
32075
|
this._server = _server;
|
|
@@ -32104,7 +32147,7 @@ class ExperimentalServerTasks {
|
|
|
32104
32147
|
}
|
|
32105
32148
|
}
|
|
32106
32149
|
|
|
32107
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
32150
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
32108
32151
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
32109
32152
|
if (!requests) {
|
|
32110
32153
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -32139,7 +32182,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
32139
32182
|
}
|
|
32140
32183
|
}
|
|
32141
32184
|
|
|
32142
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32185
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32143
32186
|
class Server extends Protocol {
|
|
32144
32187
|
constructor(_serverInfo, options) {
|
|
32145
32188
|
super(options);
|
|
@@ -32472,7 +32515,7 @@ class Server extends Protocol {
|
|
|
32472
32515
|
}
|
|
32473
32516
|
}
|
|
32474
32517
|
|
|
32475
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
32518
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
32476
32519
|
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
32477
32520
|
function isCompletable(schema) {
|
|
32478
32521
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -32486,7 +32529,7 @@ var McpZodTypeKind;
|
|
|
32486
32529
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
32487
32530
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
32488
32531
|
|
|
32489
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
32532
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
32490
32533
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
32491
32534
|
function validateToolName(name) {
|
|
32492
32535
|
const warnings = [];
|
|
@@ -32544,7 +32587,7 @@ function validateAndWarnToolName(name) {
|
|
|
32544
32587
|
return result.isValid;
|
|
32545
32588
|
}
|
|
32546
32589
|
|
|
32547
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
32590
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
32548
32591
|
class ExperimentalMcpServerTasks {
|
|
32549
32592
|
constructor(_mcpServer) {
|
|
32550
32593
|
this._mcpServer = _mcpServer;
|
|
@@ -32559,7 +32602,7 @@ class ExperimentalMcpServerTasks {
|
|
|
32559
32602
|
}
|
|
32560
32603
|
}
|
|
32561
32604
|
|
|
32562
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
32605
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
32563
32606
|
init_zod();
|
|
32564
32607
|
|
|
32565
32608
|
class McpServer {
|
|
@@ -33287,10 +33330,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
33287
33330
|
}
|
|
33288
33331
|
};
|
|
33289
33332
|
|
|
33290
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
33333
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
33291
33334
|
import process2 from "process";
|
|
33292
33335
|
|
|
33293
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
33336
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
33294
33337
|
class ReadBuffer {
|
|
33295
33338
|
append(chunk) {
|
|
33296
33339
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -33320,7 +33363,7 @@ function serializeMessage(message) {
|
|
|
33320
33363
|
`;
|
|
33321
33364
|
}
|
|
33322
33365
|
|
|
33323
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
33366
|
+
// ../../../home/hasna/workspace/hasna/opensource/open-connectors/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
33324
33367
|
class StdioServerTransport {
|
|
33325
33368
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
33326
33369
|
this._stdin = _stdin;
|
|
@@ -39916,7 +39959,9 @@ async function withWriteLock(connector, fn) {
|
|
|
39916
39959
|
|
|
39917
39960
|
// src/server/auth.ts
|
|
39918
39961
|
init_database();
|
|
39962
|
+
var FETCH_TIMEOUT = 1e4;
|
|
39919
39963
|
var oauthStateStore = new Map;
|
|
39964
|
+
var GOOGLE_TOKEN_URL = "https://oauth2.googleapis.com/token";
|
|
39920
39965
|
var GOOGLE_SCOPES = {
|
|
39921
39966
|
gmail: [
|
|
39922
39967
|
"https://www.googleapis.com/auth/gmail.readonly",
|
|
@@ -40125,6 +40170,67 @@ function guessKeyField(name) {
|
|
|
40125
40170
|
}
|
|
40126
40171
|
return "apiKey";
|
|
40127
40172
|
}
|
|
40173
|
+
function getOAuthConfig(name) {
|
|
40174
|
+
const configDir = getConnectorConfigDir(name);
|
|
40175
|
+
const credentialsFile = join13(configDir, "credentials.json");
|
|
40176
|
+
if (existsSync12(credentialsFile)) {
|
|
40177
|
+
try {
|
|
40178
|
+
const creds = JSON.parse(readFileSync6(credentialsFile, "utf-8"));
|
|
40179
|
+
return { clientId: creds.clientId, clientSecret: creds.clientSecret };
|
|
40180
|
+
} catch {}
|
|
40181
|
+
}
|
|
40182
|
+
const config2 = loadProfileConfig(name);
|
|
40183
|
+
return {
|
|
40184
|
+
clientId: config2.clientId,
|
|
40185
|
+
clientSecret: config2.clientSecret
|
|
40186
|
+
};
|
|
40187
|
+
}
|
|
40188
|
+
function saveOAuthTokens(name, tokens) {
|
|
40189
|
+
const configDir = getConnectorConfigDir(name);
|
|
40190
|
+
const profile = getCurrentProfile2(name);
|
|
40191
|
+
const profileDir = join13(configDir, "profiles", profile);
|
|
40192
|
+
mkdirSync9(profileDir, { recursive: true });
|
|
40193
|
+
const tokensFile = join13(profileDir, "tokens.json");
|
|
40194
|
+
writeFileSync5(tokensFile, JSON.stringify(tokens, null, 2), { mode: 384 });
|
|
40195
|
+
}
|
|
40196
|
+
async function refreshOAuthToken(name) {
|
|
40197
|
+
return withWriteLock(name, () => _refreshOAuthToken(name));
|
|
40198
|
+
}
|
|
40199
|
+
async function _refreshOAuthToken(name) {
|
|
40200
|
+
const oauthConfig = getOAuthConfig(name);
|
|
40201
|
+
const currentTokens = loadTokens(name);
|
|
40202
|
+
if (!oauthConfig.clientId || !oauthConfig.clientSecret) {
|
|
40203
|
+
throw new Error("OAuth credentials not configured for " + name);
|
|
40204
|
+
}
|
|
40205
|
+
if (!currentTokens?.refreshToken) {
|
|
40206
|
+
throw new Error("No refresh token available. Please re-authenticate.");
|
|
40207
|
+
}
|
|
40208
|
+
const response = await fetch(GOOGLE_TOKEN_URL, {
|
|
40209
|
+
method: "POST",
|
|
40210
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
40211
|
+
body: new URLSearchParams({
|
|
40212
|
+
client_id: oauthConfig.clientId,
|
|
40213
|
+
client_secret: oauthConfig.clientSecret,
|
|
40214
|
+
refresh_token: currentTokens.refreshToken,
|
|
40215
|
+
grant_type: "refresh_token"
|
|
40216
|
+
}),
|
|
40217
|
+
signal: AbortSignal.timeout(FETCH_TIMEOUT)
|
|
40218
|
+
});
|
|
40219
|
+
if (!response.ok) {
|
|
40220
|
+
const error2 = await response.json().catch(() => ({ error: response.statusText }));
|
|
40221
|
+
throw new Error(`Token refresh failed: ${error2.error_description || error2.error}`);
|
|
40222
|
+
}
|
|
40223
|
+
const data = await response.json();
|
|
40224
|
+
const tokens = {
|
|
40225
|
+
accessToken: data.access_token,
|
|
40226
|
+
refreshToken: currentTokens.refreshToken,
|
|
40227
|
+
expiresAt: Date.now() + data.expires_in * 1000,
|
|
40228
|
+
tokenType: data.token_type,
|
|
40229
|
+
scope: data.scope || currentTokens.scope
|
|
40230
|
+
};
|
|
40231
|
+
saveOAuthTokens(name, tokens);
|
|
40232
|
+
return tokens;
|
|
40233
|
+
}
|
|
40128
40234
|
|
|
40129
40235
|
// src/mcp/tools/management.ts
|
|
40130
40236
|
function registerManagementTools(server, stripped) {
|
|
@@ -40269,6 +40375,10 @@ function registerManagementTools(server, stripped) {
|
|
|
40269
40375
|
}
|
|
40270
40376
|
// src/mcp/tools/auth.ts
|
|
40271
40377
|
init_zod();
|
|
40378
|
+
init_database();
|
|
40379
|
+
import { existsSync as existsSync13, readFileSync as readFileSync7 } from "fs";
|
|
40380
|
+
import { join as join14 } from "path";
|
|
40381
|
+
import { spawn } from "child_process";
|
|
40272
40382
|
function registerAuthTools(server, stripped) {
|
|
40273
40383
|
server.registerTool("connector_auth_status", {
|
|
40274
40384
|
title: "Connector Auth Status",
|
|
@@ -40343,6 +40453,146 @@ function registerAuthTools(server, stripped) {
|
|
|
40343
40453
|
};
|
|
40344
40454
|
}
|
|
40345
40455
|
});
|
|
40456
|
+
server.registerTool("connector_oauth", {
|
|
40457
|
+
title: "Connector OAuth Flow",
|
|
40458
|
+
description: "Start an OAuth authentication flow for a connector. Returns an authorization URL to open in a browser. For non-interactive/agent use, pass noBrowser: true to start a temporary server and wait for tokens automatically.",
|
|
40459
|
+
inputSchema: {
|
|
40460
|
+
name: exports_external.string(),
|
|
40461
|
+
noBrowser: exports_external.boolean().optional().describe("If true, starts a temporary OAuth server and waits for tokens. If false/omitted, returns the URL for browser-based auth."),
|
|
40462
|
+
port: exports_external.number().optional().describe("OAuth server port (default: 9876)"),
|
|
40463
|
+
refresh: exports_external.boolean().optional().describe("If true, attempt to refresh existing OAuth tokens instead of starting a new flow.")
|
|
40464
|
+
}
|
|
40465
|
+
}, async ({ name, noBrowser, port, refresh }) => {
|
|
40466
|
+
const meta = getConnector(name);
|
|
40467
|
+
if (!meta) {
|
|
40468
|
+
return {
|
|
40469
|
+
content: [{ type: "text", text: `Connector '${name}' not found. Use search_connectors or list_connectors to find available connectors.` }],
|
|
40470
|
+
isError: true
|
|
40471
|
+
};
|
|
40472
|
+
}
|
|
40473
|
+
const authType = getAuthType(name);
|
|
40474
|
+
if (authType !== "oauth") {
|
|
40475
|
+
return {
|
|
40476
|
+
content: [{ type: "text", text: `${meta.displayName} does not use OAuth. Use configure_auth instead to set an API key.` }],
|
|
40477
|
+
isError: true
|
|
40478
|
+
};
|
|
40479
|
+
}
|
|
40480
|
+
if (refresh) {
|
|
40481
|
+
try {
|
|
40482
|
+
const tokens2 = await refreshOAuthToken(name);
|
|
40483
|
+
return {
|
|
40484
|
+
content: [{
|
|
40485
|
+
type: "text",
|
|
40486
|
+
text: JSON.stringify({ success: true, connector: name, action: "refreshed", expiresAt: tokens2.expiresAt, scope: tokens2.scope }, null, 2)
|
|
40487
|
+
}]
|
|
40488
|
+
};
|
|
40489
|
+
} catch (err) {
|
|
40490
|
+
return {
|
|
40491
|
+
content: [{
|
|
40492
|
+
type: "text",
|
|
40493
|
+
text: `Refresh failed: ${err instanceof Error ? err.message : String(err)}. You may need to re-authenticate with a new OAuth flow.`
|
|
40494
|
+
}],
|
|
40495
|
+
isError: true
|
|
40496
|
+
};
|
|
40497
|
+
}
|
|
40498
|
+
}
|
|
40499
|
+
const tokens = loadTokens(name);
|
|
40500
|
+
if (tokens?.accessToken && tokens?.refreshToken) {
|
|
40501
|
+
if (tokens.expiresAt && Date.now() < tokens.expiresAt - 60000) {
|
|
40502
|
+
const mins = Math.floor((tokens.expiresAt - Date.now()) / 60000);
|
|
40503
|
+
const expiresIn = mins < 60 ? `${mins}m` : `${Math.floor(mins / 60)}h ${mins % 60}m`;
|
|
40504
|
+
return {
|
|
40505
|
+
content: [{
|
|
40506
|
+
type: "text",
|
|
40507
|
+
text: JSON.stringify({ connector: name, status: "already_authenticated", expiresIn, message: "Tokens are valid. Use refresh: true to renew or re-authenticate to get new tokens." }, null, 2)
|
|
40508
|
+
}]
|
|
40509
|
+
};
|
|
40510
|
+
}
|
|
40511
|
+
}
|
|
40512
|
+
const serverPort = port || 9876;
|
|
40513
|
+
const oauthUrl = `http://localhost:${serverPort}/oauth/${name}/start`;
|
|
40514
|
+
if (noBrowser) {
|
|
40515
|
+
const connectorsHome = getConnectorsHome();
|
|
40516
|
+
const connectorDirName = name.startsWith("connect-") ? name : `connect-${name}`;
|
|
40517
|
+
const tokensPath = join14(connectorsHome, connectorDirName, "profiles", "default", "tokens.json");
|
|
40518
|
+
let serverRunning = false;
|
|
40519
|
+
try {
|
|
40520
|
+
await fetch(`http://localhost:${serverPort}/api/connectors`);
|
|
40521
|
+
serverRunning = true;
|
|
40522
|
+
} catch {}
|
|
40523
|
+
if (!serverRunning) {
|
|
40524
|
+
const scriptPath = process.argv[1];
|
|
40525
|
+
const serverProc = spawn("node", [scriptPath, "serve", "--port", String(serverPort)], {
|
|
40526
|
+
detached: true,
|
|
40527
|
+
stdio: "ignore"
|
|
40528
|
+
});
|
|
40529
|
+
serverProc.unref();
|
|
40530
|
+
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
40531
|
+
}
|
|
40532
|
+
let attempts = 0;
|
|
40533
|
+
const maxAttempts = 120;
|
|
40534
|
+
while (attempts < maxAttempts) {
|
|
40535
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
40536
|
+
if (existsSync13(tokensPath)) {
|
|
40537
|
+
break;
|
|
40538
|
+
}
|
|
40539
|
+
attempts++;
|
|
40540
|
+
}
|
|
40541
|
+
if (attempts >= maxAttempts) {
|
|
40542
|
+
return {
|
|
40543
|
+
content: [{
|
|
40544
|
+
type: "text",
|
|
40545
|
+
text: JSON.stringify({
|
|
40546
|
+
connector: name,
|
|
40547
|
+
status: "waiting",
|
|
40548
|
+
oauthUrl,
|
|
40549
|
+
message: `OAuth server is running on port ${serverPort}. Open the URL to authenticate. Tokens will be saved to ${tokensPath}.`
|
|
40550
|
+
}, null, 2)
|
|
40551
|
+
}]
|
|
40552
|
+
};
|
|
40553
|
+
}
|
|
40554
|
+
try {
|
|
40555
|
+
const tokenData = JSON.parse(readFileSync7(tokensPath, "utf-8"));
|
|
40556
|
+
return {
|
|
40557
|
+
content: [{
|
|
40558
|
+
type: "text",
|
|
40559
|
+
text: JSON.stringify({
|
|
40560
|
+
success: true,
|
|
40561
|
+
connector: name,
|
|
40562
|
+
status: "authenticated",
|
|
40563
|
+
tokenType: tokenData.tokenType || "Bearer",
|
|
40564
|
+
scope: tokenData.scope
|
|
40565
|
+
}, null, 2)
|
|
40566
|
+
}]
|
|
40567
|
+
};
|
|
40568
|
+
} catch {
|
|
40569
|
+
return {
|
|
40570
|
+
content: [{
|
|
40571
|
+
type: "text",
|
|
40572
|
+
text: JSON.stringify({
|
|
40573
|
+
connector: name,
|
|
40574
|
+
status: "tokens_file_found",
|
|
40575
|
+
message: "Token file was created but could not be parsed."
|
|
40576
|
+
}, null, 2)
|
|
40577
|
+
}],
|
|
40578
|
+
isError: true
|
|
40579
|
+
};
|
|
40580
|
+
}
|
|
40581
|
+
} else {
|
|
40582
|
+
return {
|
|
40583
|
+
content: [{
|
|
40584
|
+
type: "text",
|
|
40585
|
+
text: JSON.stringify({
|
|
40586
|
+
connector: name,
|
|
40587
|
+
status: "auth_required",
|
|
40588
|
+
authType: "oauth",
|
|
40589
|
+
oauthUrl,
|
|
40590
|
+
message: `Open this URL in a browser to authenticate. After completing the OAuth flow, tokens will be saved automatically.`
|
|
40591
|
+
}, null, 2)
|
|
40592
|
+
}]
|
|
40593
|
+
};
|
|
40594
|
+
}
|
|
40595
|
+
});
|
|
40346
40596
|
}
|
|
40347
40597
|
// src/mcp/tools/operations.ts
|
|
40348
40598
|
init_zod();
|
|
@@ -40386,6 +40636,7 @@ function registerOperationsTools(server, stripped) {
|
|
|
40386
40636
|
};
|
|
40387
40637
|
}
|
|
40388
40638
|
const ops = await getConnectorOperations(name);
|
|
40639
|
+
const auth = getAuthStatus(name);
|
|
40389
40640
|
return {
|
|
40390
40641
|
content: [
|
|
40391
40642
|
{
|
|
@@ -40393,7 +40644,9 @@ function registerOperationsTools(server, stripped) {
|
|
|
40393
40644
|
text: JSON.stringify({
|
|
40394
40645
|
connector: name,
|
|
40395
40646
|
displayName: meta.displayName,
|
|
40647
|
+
auth,
|
|
40396
40648
|
commands: ops.commands,
|
|
40649
|
+
operations: ops.operations,
|
|
40397
40650
|
helpText: ops.helpText
|
|
40398
40651
|
}, null, 2)
|
|
40399
40652
|
}
|
|
@@ -40480,12 +40733,20 @@ function registerSearchTools(server, stripped) {
|
|
|
40480
40733
|
try {
|
|
40481
40734
|
const ops = await getConnectorOperations(name);
|
|
40482
40735
|
const meta = getConnector(name);
|
|
40483
|
-
for (const
|
|
40484
|
-
|
|
40736
|
+
for (const operation of ops.operations || []) {
|
|
40737
|
+
const searchable = [
|
|
40738
|
+
operation.name,
|
|
40739
|
+
operation.aliases.join(" "),
|
|
40740
|
+
operation.usage,
|
|
40741
|
+
operation.summary,
|
|
40742
|
+
ops.helpText
|
|
40743
|
+
].join(`
|
|
40744
|
+
`).toLowerCase();
|
|
40745
|
+
if (searchable.includes(query.toLowerCase())) {
|
|
40485
40746
|
results.push({
|
|
40486
40747
|
connector: name,
|
|
40487
|
-
operation:
|
|
40488
|
-
description: ops.helpText || ""
|
|
40748
|
+
operation: operation.name,
|
|
40749
|
+
description: operation.summary || ops.helpText || ""
|
|
40489
40750
|
});
|
|
40490
40751
|
}
|
|
40491
40752
|
}
|
|
@@ -40621,7 +40882,7 @@ function listWorkflows(db) {
|
|
|
40621
40882
|
}
|
|
40622
40883
|
|
|
40623
40884
|
// src/lib/workflow-runner.ts
|
|
40624
|
-
import { spawn as
|
|
40885
|
+
import { spawn as spawn3 } from "child_process";
|
|
40625
40886
|
async function runStep(step, previousOutput) {
|
|
40626
40887
|
return new Promise((resolve) => {
|
|
40627
40888
|
const args = [...step.args ?? []];
|
|
@@ -40629,7 +40890,7 @@ async function runStep(step, previousOutput) {
|
|
|
40629
40890
|
args.push("--input", previousOutput.trim().slice(0, 4096));
|
|
40630
40891
|
}
|
|
40631
40892
|
const cmdArgs = ["run", step.connector, step.command, ...args, "--format", "json"];
|
|
40632
|
-
const proc =
|
|
40893
|
+
const proc = spawn3("connectors", cmdArgs, { shell: false });
|
|
40633
40894
|
let output = "";
|
|
40634
40895
|
proc.stdout.on("data", (d) => {
|
|
40635
40896
|
output += d.toString();
|
|
@@ -40671,11 +40932,11 @@ async function runWorkflow(workflow) {
|
|
|
40671
40932
|
}
|
|
40672
40933
|
|
|
40673
40934
|
// src/lib/scheduler.ts
|
|
40674
|
-
import { spawn as
|
|
40935
|
+
import { spawn as spawn4 } from "child_process";
|
|
40675
40936
|
async function runConnectorCommand2(connector, command, args) {
|
|
40676
40937
|
return new Promise((resolve) => {
|
|
40677
40938
|
const cmdArgs = [connector, command, ...args, "--format", "json"];
|
|
40678
|
-
const proc =
|
|
40939
|
+
const proc = spawn4("connectors", ["run", ...cmdArgs], { shell: false });
|
|
40679
40940
|
let output = "";
|
|
40680
40941
|
proc.stdout.on("data", (d) => {
|
|
40681
40942
|
output += d.toString();
|