@orq-ai/node 3.7.0-rc.7 → 3.7.0-rc.9
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/README.md +24 -11
- package/bin/mcp-server.js +2228 -1371
- package/bin/mcp-server.js.map +53 -38
- package/docs/sdks/contacts/README.md +354 -3
- package/funcs/contactsCreate.d.ts +3 -3
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +7 -5
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.d.ts +17 -0
- package/funcs/contactsDelete.d.ts.map +1 -0
- package/funcs/contactsDelete.js +124 -0
- package/funcs/contactsDelete.js.map +1 -0
- package/funcs/contactsList.d.ts +16 -0
- package/funcs/contactsList.d.ts.map +1 -0
- package/funcs/contactsList.js +121 -0
- package/funcs/contactsList.js.map +1 -0
- package/funcs/contactsRetrieve.d.ts +17 -0
- package/funcs/contactsRetrieve.d.ts.map +1 -0
- package/funcs/contactsRetrieve.js +123 -0
- package/funcs/contactsRetrieve.js.map +1 -0
- package/funcs/contactsUpdate.d.ts +17 -0
- package/funcs/contactsUpdate.d.ts.map +1 -0
- package/funcs/contactsUpdate.js +124 -0
- package/funcs/contactsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/contactsCreate.d.ts +1 -1
- package/mcp-server/tools/contactsCreate.js +3 -3
- package/mcp-server/tools/contactsCreate.js.map +1 -1
- package/mcp-server/tools/contactsDelete.d.ts +8 -0
- package/mcp-server/tools/contactsDelete.d.ts.map +1 -0
- package/mcp-server/tools/contactsDelete.js +63 -0
- package/mcp-server/tools/contactsDelete.js.map +1 -0
- package/mcp-server/tools/contactsList.d.ts +8 -0
- package/mcp-server/tools/contactsList.d.ts.map +1 -0
- package/mcp-server/tools/contactsList.js +64 -0
- package/mcp-server/tools/contactsList.js.map +1 -0
- package/mcp-server/tools/contactsRetrieve.d.ts +8 -0
- package/mcp-server/tools/contactsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/contactsRetrieve.js +64 -0
- package/mcp-server/tools/contactsRetrieve.js.map +1 -0
- package/mcp-server/tools/contactsUpdate.d.ts +8 -0
- package/mcp-server/tools/contactsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/contactsUpdate.js +64 -0
- package/mcp-server/tools/contactsUpdate.js.map +1 -0
- package/models/errors/deletecontact.d.ts +43 -0
- package/models/errors/deletecontact.d.ts.map +1 -0
- package/models/errors/deletecontact.js +80 -0
- package/models/errors/deletecontact.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrievecontact.d.ts +43 -0
- package/models/errors/retrievecontact.d.ts.map +1 -0
- package/models/errors/retrievecontact.js +80 -0
- package/models/errors/retrievecontact.js.map +1 -0
- package/models/errors/updatecontact.d.ts +39 -0
- package/models/errors/updatecontact.d.ts.map +1 -0
- package/models/errors/updatecontact.js +79 -0
- package/models/errors/updatecontact.js.map +1 -0
- package/models/operations/createcontact.d.ts +21 -16
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +9 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/deletecontact.d.ts +32 -0
- package/models/operations/deletecontact.d.ts.map +1 -0
- package/models/operations/deletecontact.js +69 -0
- package/models/operations/deletecontact.js.map +1 -0
- package/models/operations/deployments.d.ts +23 -23
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +31 -33
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.d.ts +249 -0
- package/models/operations/listcontacts.d.ts.map +1 -0
- package/models/operations/listcontacts.js +286 -0
- package/models/operations/listcontacts.js.map +1 -0
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.d.ts +107 -0
- package/models/operations/retrievecontact.d.ts.map +1 -0
- package/models/operations/retrievecontact.js +129 -0
- package/models/operations/retrievecontact.js.map +1 -0
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.d.ts +167 -0
- package/models/operations/updatecontact.d.ts.map +1 -0
- package/models/operations/updatecontact.js +184 -0
- package/models/operations/updatecontact.js.map +1 -0
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/sdk/contacts.d.ts +31 -3
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +42 -2
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +12 -7
- package/src/funcs/contactsDelete.ts +172 -0
- package/src/funcs/contactsList.ts +165 -0
- package/src/funcs/contactsRetrieve.ts +171 -0
- package/src/funcs/contactsUpdate.ts +172 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/contactsCreate.ts +3 -3
- package/src/mcp-server/tools/contactsDelete.ts +35 -0
- package/src/mcp-server/tools/contactsList.ts +37 -0
- package/src/mcp-server/tools/contactsRetrieve.ts +37 -0
- package/src/mcp-server/tools/contactsUpdate.ts +37 -0
- package/src/models/errors/deletecontact.ts +81 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/retrievecontact.ts +81 -0
- package/src/models/errors/updatecontact.ts +74 -0
- package/src/models/operations/createcontact.ts +30 -19
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/deletecontact.ts +69 -0
- package/src/models/operations/deployments.ts +69 -59
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listcontacts.ts +490 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +210 -0
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +325 -0
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/sdk/contacts.ts +75 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$contactsDelete = void 0;
|
|
40
|
+
const contactsDelete_js_1 = require("../../funcs/contactsDelete.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.DeleteContactRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$contactsDelete = {
|
|
47
|
+
name: "contacts-delete",
|
|
48
|
+
description: `Delete a contact
|
|
49
|
+
|
|
50
|
+
Permanently deletes a contact from your workspace. This action cannot be undone.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, contactsDelete_js_1.contactsDelete)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return (0, tools_js_1.formatResult)(void 0, apiCall);
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=contactsDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsDelete.js","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qEAA+D;AAC/D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEW,QAAA,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;iFAEkE;IAC/E,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,kCAAc,EAC5C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,OAAO,IAAA,uBAAY,EAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodOptional<import("zod").ZodType<operations.ListContactsRequest, import("zod").ZodTypeDef, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$contactsList: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=contactsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsList.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsList.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwBzD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$contactsList = void 0;
|
|
40
|
+
const contactsList_js_1 = require("../../funcs/contactsList.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.ListContactsRequest$inboundSchema.optional(),
|
|
45
|
+
};
|
|
46
|
+
exports.tool$contactsList = {
|
|
47
|
+
name: "contacts-list",
|
|
48
|
+
description: `List contacts
|
|
49
|
+
|
|
50
|
+
Retrieves a paginated list of contacts in your workspace. Use pagination parameters to navigate through large contact lists efficiently.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, contactsList_js_1.contactsList)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=contactsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsList.js","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC,CAAC,QAAQ,EAAE;CACjE,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;yIAE0H;IACvI,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.RetrieveContactRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$contactsRetrieve: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=contactsRetrieve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsRetrieve.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsRetrieve.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB7D,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$contactsRetrieve = void 0;
|
|
40
|
+
const contactsRetrieve_js_1 = require("../../funcs/contactsRetrieve.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.RetrieveContactRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$contactsRetrieve = {
|
|
47
|
+
name: "contacts-retrieve",
|
|
48
|
+
description: `Retrieve a contact
|
|
49
|
+
|
|
50
|
+
Retrieves detailed information about a specific contact using their contact ID or external ID from your system.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, contactsRetrieve_js_1.contactsRetrieve)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=contactsRetrieve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsRetrieve.js","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsRetrieve.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yEAAmE;AACnE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEW,QAAA,qBAAqB,GAAgC;IAChE,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;gHAEiG;IAC9G,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,sCAAgB,EAC9C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.UpdateContactRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$contactsUpdate: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=contactsUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsUpdate.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsUpdate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwB3D,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$contactsUpdate = void 0;
|
|
40
|
+
const contactsUpdate_js_1 = require("../../funcs/contactsUpdate.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.UpdateContactRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$contactsUpdate = {
|
|
47
|
+
name: "contacts-update",
|
|
48
|
+
description: `Update a contact
|
|
49
|
+
|
|
50
|
+
Updates specific fields of an existing contact. Only the fields provided in the request body will be updated.`,
|
|
51
|
+
args,
|
|
52
|
+
tool: async (client, args, ctx) => {
|
|
53
|
+
const [result, apiCall] = await (0, contactsUpdate_js_1.contactsUpdate)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54
|
+
if (!result.ok) {
|
|
55
|
+
return {
|
|
56
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57
|
+
isError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const value = result.value;
|
|
61
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=contactsUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsUpdate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/contactsUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qEAA+D;AAC/D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEW,QAAA,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;8GAE+F;IAC5G,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,kCAAc,EAC5C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Contact not found
|
|
4
|
+
*/
|
|
5
|
+
export type DeleteContactResponseBodyData = {
|
|
6
|
+
/**
|
|
7
|
+
* Error message
|
|
8
|
+
*/
|
|
9
|
+
error: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Contact not found
|
|
13
|
+
*/
|
|
14
|
+
export declare class DeleteContactResponseBody extends Error {
|
|
15
|
+
/**
|
|
16
|
+
* Error message
|
|
17
|
+
*/
|
|
18
|
+
error: string;
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: DeleteContactResponseBodyData;
|
|
21
|
+
constructor(err: DeleteContactResponseBodyData);
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const DeleteContactResponseBody$inboundSchema: z.ZodType<DeleteContactResponseBody, z.ZodTypeDef, unknown>;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type DeleteContactResponseBody$Outbound = {
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const DeleteContactResponseBody$outboundSchema: z.ZodType<DeleteContactResponseBody$Outbound, z.ZodTypeDef, DeleteContactResponseBody>;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export declare namespace DeleteContactResponseBody$ {
|
|
36
|
+
/** @deprecated use `DeleteContactResponseBody$inboundSchema` instead. */
|
|
37
|
+
const inboundSchema: z.ZodType<DeleteContactResponseBody, z.ZodTypeDef, unknown>;
|
|
38
|
+
/** @deprecated use `DeleteContactResponseBody$outboundSchema` instead. */
|
|
39
|
+
const outboundSchema: z.ZodType<DeleteContactResponseBody$Outbound, z.ZodTypeDef, DeleteContactResponseBody>;
|
|
40
|
+
/** @deprecated use `DeleteContactResponseBody$Outbound` instead. */
|
|
41
|
+
type Outbound = DeleteContactResponseBody$Outbound;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=deletecontact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletecontact.d.ts","sourceRoot":"","sources":["../../src/models/errors/deletecontact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,KAAK;IAClD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,gEAAgE;IAChE,KAAK,EAAE,6BAA6B,CAAC;gBAEzB,GAAG,EAAE,6BAA6B;CAW/C;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAML,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAKtB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.DeleteContactResponseBody$ = exports.DeleteContactResponseBody$outboundSchema = exports.DeleteContactResponseBody$inboundSchema = exports.DeleteContactResponseBody = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
/**
|
|
42
|
+
* Contact not found
|
|
43
|
+
*/
|
|
44
|
+
class DeleteContactResponseBody extends Error {
|
|
45
|
+
constructor(err) {
|
|
46
|
+
const message = "message" in err && typeof err.message === "string"
|
|
47
|
+
? err.message
|
|
48
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
49
|
+
super(message);
|
|
50
|
+
this.data$ = err;
|
|
51
|
+
this.error = err.error;
|
|
52
|
+
this.name = "DeleteContactResponseBody";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.DeleteContactResponseBody = DeleteContactResponseBody;
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.DeleteContactResponseBody$inboundSchema = z.object({
|
|
58
|
+
error: z.string(),
|
|
59
|
+
})
|
|
60
|
+
.transform((v) => {
|
|
61
|
+
return new DeleteContactResponseBody(v);
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.DeleteContactResponseBody$outboundSchema = z.instanceof(DeleteContactResponseBody)
|
|
65
|
+
.transform(v => v.data$)
|
|
66
|
+
.pipe(z.object({
|
|
67
|
+
error: z.string(),
|
|
68
|
+
}));
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
var DeleteContactResponseBody$;
|
|
74
|
+
(function (DeleteContactResponseBody$) {
|
|
75
|
+
/** @deprecated use `DeleteContactResponseBody$inboundSchema` instead. */
|
|
76
|
+
DeleteContactResponseBody$.inboundSchema = exports.DeleteContactResponseBody$inboundSchema;
|
|
77
|
+
/** @deprecated use `DeleteContactResponseBody$outboundSchema` instead. */
|
|
78
|
+
DeleteContactResponseBody$.outboundSchema = exports.DeleteContactResponseBody$outboundSchema;
|
|
79
|
+
})(DeleteContactResponseBody$ || (exports.DeleteContactResponseBody$ = DeleteContactResponseBody$ = {}));
|
|
80
|
+
//# sourceMappingURL=deletecontact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletecontact.js","sourceRoot":"","sources":["../../src/models/errors/deletecontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAYzB;;GAEG;AACH,MAAa,yBAA0B,SAAQ,KAAK;IASlD,YAAY,GAAkC;QAC5C,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAEvB,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;IAC1C,CAAC;CACF;AApBD,8DAoBC;AAED,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,UAAU,CAAC,yBAAyB,CAAC;KACxC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
|
package/models/errors/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./apierror.js";
|
|
2
2
|
export * from "./createeval.js";
|
|
3
|
+
export * from "./deletecontact.js";
|
|
3
4
|
export * from "./evalsageappropriate.js";
|
|
4
5
|
export * from "./evalsbleuscore.js";
|
|
5
6
|
export * from "./evalsbotdetection.js";
|
|
@@ -36,7 +37,9 @@ export * from "./evalsvalidjson.js";
|
|
|
36
37
|
export * from "./getpromptversion.js";
|
|
37
38
|
export * from "./honoapierror.js";
|
|
38
39
|
export * from "./httpclienterrors.js";
|
|
40
|
+
export * from "./retrievecontact.js";
|
|
39
41
|
export * from "./runbertscore.js";
|
|
40
42
|
export * from "./sdkvalidationerror.js";
|
|
43
|
+
export * from "./updatecontact.js";
|
|
41
44
|
export * from "./updateprompt.js";
|
|
42
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
package/models/errors/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./apierror.js"), exports);
|
|
21
21
|
__exportStar(require("./createeval.js"), exports);
|
|
22
|
+
__exportStar(require("./deletecontact.js"), exports);
|
|
22
23
|
__exportStar(require("./evalsageappropriate.js"), exports);
|
|
23
24
|
__exportStar(require("./evalsbleuscore.js"), exports);
|
|
24
25
|
__exportStar(require("./evalsbotdetection.js"), exports);
|
|
@@ -55,7 +56,9 @@ __exportStar(require("./evalsvalidjson.js"), exports);
|
|
|
55
56
|
__exportStar(require("./getpromptversion.js"), exports);
|
|
56
57
|
__exportStar(require("./honoapierror.js"), exports);
|
|
57
58
|
__exportStar(require("./httpclienterrors.js"), exports);
|
|
59
|
+
__exportStar(require("./retrievecontact.js"), exports);
|
|
58
60
|
__exportStar(require("./runbertscore.js"), exports);
|
|
59
61
|
__exportStar(require("./sdkvalidationerror.js"), exports);
|
|
62
|
+
__exportStar(require("./updatecontact.js"), exports);
|
|
60
63
|
__exportStar(require("./updateprompt.js"), exports);
|
|
61
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,kDAAgC;AAChC,2DAAyC;AACzC,sDAAoC;AACpC,yDAAuC;AACvC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC;AACxC,yDAAuC;AACvC,wDAAsC;AACtC,8DAA4C;AAC5C,qDAAmC;AACnC,uDAAqC;AACrC,sEAAoD;AACpD,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,gDAA8B;AAC9B,2DAAyC;AACzC,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,mEAAiD;AACjD,+DAA6C;AAC7C,oEAAkD;AAClD,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,sDAAoC;AACpC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,kDAAgC;AAChC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,yDAAuC;AACvC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC;AACxC,yDAAuC;AACvC,wDAAsC;AACtC,8DAA4C;AAC5C,qDAAmC;AACnC,uDAAqC;AACrC,sEAAoD;AACpD,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,gDAA8B;AAC9B,2DAAyC;AACzC,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,mEAAiD;AACjD,+DAA6C;AAC7C,oEAAkD;AAClD,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,sDAAoC;AACpC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,qDAAmC;AACnC,oDAAkC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Contact not found
|
|
4
|
+
*/
|
|
5
|
+
export type RetrieveContactResponseBodyData = {
|
|
6
|
+
/**
|
|
7
|
+
* Error message
|
|
8
|
+
*/
|
|
9
|
+
error: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Contact not found
|
|
13
|
+
*/
|
|
14
|
+
export declare class RetrieveContactResponseBody extends Error {
|
|
15
|
+
/**
|
|
16
|
+
* Error message
|
|
17
|
+
*/
|
|
18
|
+
error: string;
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: RetrieveContactResponseBodyData;
|
|
21
|
+
constructor(err: RetrieveContactResponseBodyData);
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const RetrieveContactResponseBody$inboundSchema: z.ZodType<RetrieveContactResponseBody, z.ZodTypeDef, unknown>;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type RetrieveContactResponseBody$Outbound = {
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const RetrieveContactResponseBody$outboundSchema: z.ZodType<RetrieveContactResponseBody$Outbound, z.ZodTypeDef, RetrieveContactResponseBody>;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export declare namespace RetrieveContactResponseBody$ {
|
|
36
|
+
/** @deprecated use `RetrieveContactResponseBody$inboundSchema` instead. */
|
|
37
|
+
const inboundSchema: z.ZodType<RetrieveContactResponseBody, z.ZodTypeDef, unknown>;
|
|
38
|
+
/** @deprecated use `RetrieveContactResponseBody$outboundSchema` instead. */
|
|
39
|
+
const outboundSchema: z.ZodType<RetrieveContactResponseBody$Outbound, z.ZodTypeDef, RetrieveContactResponseBody>;
|
|
40
|
+
/** @deprecated use `RetrieveContactResponseBody$Outbound` instead. */
|
|
41
|
+
type Outbound = RetrieveContactResponseBody$Outbound;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=retrievecontact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrievecontact.d.ts","sourceRoot":"","sources":["../../src/models/errors/retrievecontact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,KAAK;IACpD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,gEAAgE;IAChE,KAAK,EAAE,+BAA+B,CAAC;gBAE3B,GAAG,EAAE,+BAA+B;CAWjD;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAML,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAKxB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RetrieveContactResponseBody$ = exports.RetrieveContactResponseBody$outboundSchema = exports.RetrieveContactResponseBody$inboundSchema = exports.RetrieveContactResponseBody = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
/**
|
|
42
|
+
* Contact not found
|
|
43
|
+
*/
|
|
44
|
+
class RetrieveContactResponseBody extends Error {
|
|
45
|
+
constructor(err) {
|
|
46
|
+
const message = "message" in err && typeof err.message === "string"
|
|
47
|
+
? err.message
|
|
48
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
49
|
+
super(message);
|
|
50
|
+
this.data$ = err;
|
|
51
|
+
this.error = err.error;
|
|
52
|
+
this.name = "RetrieveContactResponseBody";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.RetrieveContactResponseBody = RetrieveContactResponseBody;
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.RetrieveContactResponseBody$inboundSchema = z.object({
|
|
58
|
+
error: z.string(),
|
|
59
|
+
})
|
|
60
|
+
.transform((v) => {
|
|
61
|
+
return new RetrieveContactResponseBody(v);
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.RetrieveContactResponseBody$outboundSchema = z.instanceof(RetrieveContactResponseBody)
|
|
65
|
+
.transform(v => v.data$)
|
|
66
|
+
.pipe(z.object({
|
|
67
|
+
error: z.string(),
|
|
68
|
+
}));
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
var RetrieveContactResponseBody$;
|
|
74
|
+
(function (RetrieveContactResponseBody$) {
|
|
75
|
+
/** @deprecated use `RetrieveContactResponseBody$inboundSchema` instead. */
|
|
76
|
+
RetrieveContactResponseBody$.inboundSchema = exports.RetrieveContactResponseBody$inboundSchema;
|
|
77
|
+
/** @deprecated use `RetrieveContactResponseBody$outboundSchema` instead. */
|
|
78
|
+
RetrieveContactResponseBody$.outboundSchema = exports.RetrieveContactResponseBody$outboundSchema;
|
|
79
|
+
})(RetrieveContactResponseBody$ || (exports.RetrieveContactResponseBody$ = RetrieveContactResponseBody$ = {}));
|
|
80
|
+
//# sourceMappingURL=retrievecontact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrievecontact.js","sourceRoot":"","sources":["../../src/models/errors/retrievecontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAYzB;;GAEG;AACH,MAAa,2BAA4B,SAAQ,KAAK;IASpD,YAAY,GAAoC;QAC9C,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAEvB,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AApBD,kEAoBC;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,2BAA2B,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1C,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|