brand.dev-mcp 0.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +174 -0
- package/compat.d.mts +52 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +52 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +342 -0
- package/compat.js.map +1 -0
- package/compat.mjs +332 -0
- package/compat.mjs.map +1 -0
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +133 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +130 -0
- package/dynamic-tools.mjs.map +1 -0
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +86 -0
- package/index.js.map +1 -0
- package/index.mjs +83 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +11 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +11 -0
- package/options.d.ts.map +1 -0
- package/options.js +337 -0
- package/options.js.map +1 -0
- package/options.mjs +331 -0
- package/options.mjs.map +1 -0
- package/package.json +121 -0
- package/server.d.mts +38 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +38 -0
- package/server.d.ts.map +1 -0
- package/server.js +104 -0
- package/server.js.map +1 -0
- package/server.mjs +92 -0
- package/server.mjs.map +1 -0
- package/src/compat.ts +429 -0
- package/src/dynamic-tools.ts +152 -0
- package/src/index.ts +102 -0
- package/src/options.ts +361 -0
- package/src/server.ts +128 -0
- package/src/tools/brand/identify-from-transaction-brand.ts +33 -0
- package/src/tools/brand/retrieve-brand.ts +90 -0
- package/src/tools/brand/retrieve-by-ticker-brand.ts +32 -0
- package/src/tools/brand/retrieve-naics-brand.ts +33 -0
- package/src/tools/brand/search-brand.ts +32 -0
- package/src/tools/index.ts +91 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/tools/brand/identify-from-transaction-brand.d.mts +32 -0
- package/tools/brand/identify-from-transaction-brand.d.mts.map +1 -0
- package/tools/brand/identify-from-transaction-brand.d.ts +32 -0
- package/tools/brand/identify-from-transaction-brand.d.ts.map +1 -0
- package/tools/brand/identify-from-transaction-brand.js +29 -0
- package/tools/brand/identify-from-transaction-brand.js.map +1 -0
- package/tools/brand/identify-from-transaction-brand.mjs +25 -0
- package/tools/brand/identify-from-transaction-brand.mjs.map +1 -0
- package/tools/brand/retrieve-brand.d.mts +32 -0
- package/tools/brand/retrieve-brand.d.mts.map +1 -0
- package/tools/brand/retrieve-brand.d.ts +32 -0
- package/tools/brand/retrieve-brand.d.ts.map +1 -0
- package/tools/brand/retrieve-brand.js +87 -0
- package/tools/brand/retrieve-brand.js.map +1 -0
- package/tools/brand/retrieve-brand.mjs +83 -0
- package/tools/brand/retrieve-brand.mjs.map +1 -0
- package/tools/brand/retrieve-by-ticker-brand.d.mts +32 -0
- package/tools/brand/retrieve-by-ticker-brand.d.mts.map +1 -0
- package/tools/brand/retrieve-by-ticker-brand.d.ts +32 -0
- package/tools/brand/retrieve-by-ticker-brand.d.ts.map +1 -0
- package/tools/brand/retrieve-by-ticker-brand.js +29 -0
- package/tools/brand/retrieve-by-ticker-brand.js.map +1 -0
- package/tools/brand/retrieve-by-ticker-brand.mjs +25 -0
- package/tools/brand/retrieve-by-ticker-brand.mjs.map +1 -0
- package/tools/brand/retrieve-naics-brand.d.mts +32 -0
- package/tools/brand/retrieve-naics-brand.d.mts.map +1 -0
- package/tools/brand/retrieve-naics-brand.d.ts +32 -0
- package/tools/brand/retrieve-naics-brand.d.ts.map +1 -0
- package/tools/brand/retrieve-naics-brand.js +29 -0
- package/tools/brand/retrieve-naics-brand.js.map +1 -0
- package/tools/brand/retrieve-naics-brand.mjs +25 -0
- package/tools/brand/retrieve-naics-brand.mjs.map +1 -0
- package/tools/brand/search-brand.d.mts +32 -0
- package/tools/brand/search-brand.d.mts.map +1 -0
- package/tools/brand/search-brand.d.ts +32 -0
- package/tools/brand/search-brand.d.ts.map +1 -0
- package/tools/brand/search-brand.js +29 -0
- package/tools/brand/search-brand.js.map +1 -0
- package/tools/brand/search-brand.mjs +25 -0
- package/tools/brand/search-brand.mjs.map +1 -0
- package/tools/index.d.mts +21 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +21 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +62 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +55 -0
- package/tools/index.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import BrandDev from 'brand.dev';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'brand',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'search_brand',
|
|
15
|
+
description: 'Search brands by query',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
query: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Query string to search brands',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const handler = (client: BrandDev, args: Record<string, unknown> | undefined) => {
|
|
28
|
+
const body = args as any;
|
|
29
|
+
return client.brand.search(body);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
|
|
6
|
+
import retrieve_brand from './brand/retrieve-brand';
|
|
7
|
+
import identify_from_transaction_brand from './brand/identify-from-transaction-brand';
|
|
8
|
+
import retrieve_by_ticker_brand from './brand/retrieve-by-ticker-brand';
|
|
9
|
+
import retrieve_naics_brand from './brand/retrieve-naics-brand';
|
|
10
|
+
import search_brand from './brand/search-brand';
|
|
11
|
+
|
|
12
|
+
export type HandlerFunction = (client: BrandDev, args: Record<string, unknown> | undefined) => Promise<any>;
|
|
13
|
+
|
|
14
|
+
export type Metadata = {
|
|
15
|
+
resource: string;
|
|
16
|
+
operation: 'read' | 'write';
|
|
17
|
+
tags: string[];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type Endpoint = {
|
|
21
|
+
metadata: Metadata;
|
|
22
|
+
tool: Tool;
|
|
23
|
+
handler: HandlerFunction;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const endpoints: Endpoint[] = [];
|
|
27
|
+
|
|
28
|
+
function addEndpoint(endpoint: Endpoint) {
|
|
29
|
+
endpoints.push(endpoint);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
addEndpoint(retrieve_brand);
|
|
33
|
+
addEndpoint(identify_from_transaction_brand);
|
|
34
|
+
addEndpoint(retrieve_by_ticker_brand);
|
|
35
|
+
addEndpoint(retrieve_naics_brand);
|
|
36
|
+
addEndpoint(search_brand);
|
|
37
|
+
|
|
38
|
+
export type Filter = {
|
|
39
|
+
type: 'resource' | 'operation' | 'tag' | 'tool';
|
|
40
|
+
op: 'include' | 'exclude';
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
|
|
45
|
+
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
46
|
+
const unmatchedFilters = new Set(filters);
|
|
47
|
+
|
|
48
|
+
const filtered = endpoints.filter((endpoint: Endpoint) => {
|
|
49
|
+
let included = false || allExcludes;
|
|
50
|
+
|
|
51
|
+
for (const filter of filters) {
|
|
52
|
+
if (match(filter, endpoint)) {
|
|
53
|
+
unmatchedFilters.delete(filter);
|
|
54
|
+
included = filter.op === 'include';
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return included;
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// Check if any filters didn't match
|
|
62
|
+
if (unmatchedFilters.size > 0) {
|
|
63
|
+
throw new Error(
|
|
64
|
+
`The following filters did not match any endpoints: ${[...unmatchedFilters]
|
|
65
|
+
.map((f) => `${f.type}=${f.value}`)
|
|
66
|
+
.join(', ')}`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return filtered;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function match({ type, value }: Filter, endpoint: Endpoint): boolean {
|
|
74
|
+
switch (type) {
|
|
75
|
+
case 'resource': {
|
|
76
|
+
const regexStr = '^' + normalizeResource(value).replace(/\*/g, '.*') + '$';
|
|
77
|
+
const regex = new RegExp(regexStr);
|
|
78
|
+
return regex.test(normalizeResource(endpoint.metadata.resource));
|
|
79
|
+
}
|
|
80
|
+
case 'operation':
|
|
81
|
+
return endpoint.metadata.operation === value;
|
|
82
|
+
case 'tag':
|
|
83
|
+
return endpoint.metadata.tags.includes(value);
|
|
84
|
+
case 'tool':
|
|
85
|
+
return endpoint.tool.name === value;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function normalizeResource(resource: string): string {
|
|
90
|
+
return resource.toLowerCase().replace(/[^a-z.*\-_]*/g, '');
|
|
91
|
+
}
|
package/src/tools.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tools/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "es2015",
|
|
8
|
+
"lib": ["DOM"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandIdentifyFromTransactionResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandIdentifyFromTransactionResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=identify-from-transaction-brand.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify-from-transaction-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/identify-from-transaction-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAalB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,wFAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandIdentifyFromTransactionResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandIdentifyFromTransactionResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=identify-from-transaction-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify-from-transaction-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/identify-from-transaction-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAalB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,wFAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'brand',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'identify_from_transaction_brand',
|
|
12
|
+
description: 'Endpoint specially designed for platforms that want to identify transaction data by the transaction title.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
transaction_info: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Transaction information to identify the brand',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const handler = (client, args) => {
|
|
24
|
+
const body = args;
|
|
25
|
+
return client.brand.identifyFromTransaction(body);
|
|
26
|
+
};
|
|
27
|
+
exports.handler = handler;
|
|
28
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
29
|
+
//# sourceMappingURL=identify-from-transaction-brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify-from-transaction-brand.js","sourceRoot":"","sources":["../../src/tools/brand/identify-from-transaction-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,4GAA4G;IAC9G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAgB,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'brand',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'identify_from_transaction_brand',
|
|
9
|
+
description: 'Endpoint specially designed for platforms that want to identify transaction data by the transaction title.',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
transaction_info: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Transaction information to identify the brand',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export const handler = (client, args) => {
|
|
21
|
+
const body = args;
|
|
22
|
+
return client.brand.identifyFromTransaction(body);
|
|
23
|
+
};
|
|
24
|
+
export default { metadata, tool, handler };
|
|
25
|
+
//# sourceMappingURL=identify-from-transaction-brand.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify-from-transaction-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/identify-from-transaction-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,4GAA4G;IAC9G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAgB,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=retrieve-brand.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/retrieve-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,yEAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=retrieve-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/retrieve-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,yEAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'brand',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'retrieve_brand',
|
|
12
|
+
description: 'Retrieve brand data by domain',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
domain: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Domain name to retrieve brand data for',
|
|
19
|
+
},
|
|
20
|
+
force_language: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Optional parameter to force the language of the retrieved brand data',
|
|
23
|
+
enum: [
|
|
24
|
+
'albanian',
|
|
25
|
+
'arabic',
|
|
26
|
+
'azeri',
|
|
27
|
+
'bengali',
|
|
28
|
+
'bulgarian',
|
|
29
|
+
'cebuano',
|
|
30
|
+
'croatian',
|
|
31
|
+
'czech',
|
|
32
|
+
'danish',
|
|
33
|
+
'dutch',
|
|
34
|
+
'english',
|
|
35
|
+
'estonian',
|
|
36
|
+
'farsi',
|
|
37
|
+
'finnish',
|
|
38
|
+
'french',
|
|
39
|
+
'german',
|
|
40
|
+
'hausa',
|
|
41
|
+
'hawaiian',
|
|
42
|
+
'hindi',
|
|
43
|
+
'hungarian',
|
|
44
|
+
'icelandic',
|
|
45
|
+
'indonesian',
|
|
46
|
+
'italian',
|
|
47
|
+
'kazakh',
|
|
48
|
+
'kyrgyz',
|
|
49
|
+
'latin',
|
|
50
|
+
'latvian',
|
|
51
|
+
'lithuanian',
|
|
52
|
+
'macedonian',
|
|
53
|
+
'mongolian',
|
|
54
|
+
'nepali',
|
|
55
|
+
'norwegian',
|
|
56
|
+
'pashto',
|
|
57
|
+
'pidgin',
|
|
58
|
+
'polish',
|
|
59
|
+
'portuguese',
|
|
60
|
+
'romanian',
|
|
61
|
+
'russian',
|
|
62
|
+
'serbian',
|
|
63
|
+
'slovak',
|
|
64
|
+
'slovene',
|
|
65
|
+
'somali',
|
|
66
|
+
'spanish',
|
|
67
|
+
'swahili',
|
|
68
|
+
'swedish',
|
|
69
|
+
'tagalog',
|
|
70
|
+
'turkish',
|
|
71
|
+
'ukrainian',
|
|
72
|
+
'urdu',
|
|
73
|
+
'uzbek',
|
|
74
|
+
'vietnamese',
|
|
75
|
+
'welsh',
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
const handler = (client, args) => {
|
|
82
|
+
const body = args;
|
|
83
|
+
return client.brand.retrieve(body);
|
|
84
|
+
};
|
|
85
|
+
exports.handler = handler;
|
|
86
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
87
|
+
//# sourceMappingURL=retrieve-brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-brand.js","sourceRoot":"","sources":["../../src/tools/brand/retrieve-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;gBACnF,IAAI,EAAE;oBACJ,UAAU;oBACV,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,WAAW;oBACX,SAAS;oBACT,UAAU;oBACV,OAAO;oBACP,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,UAAU;oBACV,OAAO;oBACP,SAAS;oBACT,QAAQ;oBACR,QAAQ;oBACR,OAAO;oBACP,UAAU;oBACV,OAAO;oBACP,WAAW;oBACX,WAAW;oBACX,YAAY;oBACZ,SAAS;oBACT,QAAQ;oBACR,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,QAAQ;oBACR,WAAW;oBACX,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,YAAY;oBACZ,UAAU;oBACV,SAAS;oBACT,SAAS;oBACT,QAAQ;oBACR,SAAS;oBACT,QAAQ;oBACR,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,WAAW;oBACX,MAAM;oBACN,OAAO;oBACP,YAAY;oBACZ,OAAO;iBACR;aACF;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAgB,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'brand',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'retrieve_brand',
|
|
9
|
+
description: 'Retrieve brand data by domain',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
domain: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Domain name to retrieve brand data for',
|
|
16
|
+
},
|
|
17
|
+
force_language: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'Optional parameter to force the language of the retrieved brand data',
|
|
20
|
+
enum: [
|
|
21
|
+
'albanian',
|
|
22
|
+
'arabic',
|
|
23
|
+
'azeri',
|
|
24
|
+
'bengali',
|
|
25
|
+
'bulgarian',
|
|
26
|
+
'cebuano',
|
|
27
|
+
'croatian',
|
|
28
|
+
'czech',
|
|
29
|
+
'danish',
|
|
30
|
+
'dutch',
|
|
31
|
+
'english',
|
|
32
|
+
'estonian',
|
|
33
|
+
'farsi',
|
|
34
|
+
'finnish',
|
|
35
|
+
'french',
|
|
36
|
+
'german',
|
|
37
|
+
'hausa',
|
|
38
|
+
'hawaiian',
|
|
39
|
+
'hindi',
|
|
40
|
+
'hungarian',
|
|
41
|
+
'icelandic',
|
|
42
|
+
'indonesian',
|
|
43
|
+
'italian',
|
|
44
|
+
'kazakh',
|
|
45
|
+
'kyrgyz',
|
|
46
|
+
'latin',
|
|
47
|
+
'latvian',
|
|
48
|
+
'lithuanian',
|
|
49
|
+
'macedonian',
|
|
50
|
+
'mongolian',
|
|
51
|
+
'nepali',
|
|
52
|
+
'norwegian',
|
|
53
|
+
'pashto',
|
|
54
|
+
'pidgin',
|
|
55
|
+
'polish',
|
|
56
|
+
'portuguese',
|
|
57
|
+
'romanian',
|
|
58
|
+
'russian',
|
|
59
|
+
'serbian',
|
|
60
|
+
'slovak',
|
|
61
|
+
'slovene',
|
|
62
|
+
'somali',
|
|
63
|
+
'spanish',
|
|
64
|
+
'swahili',
|
|
65
|
+
'swedish',
|
|
66
|
+
'tagalog',
|
|
67
|
+
'turkish',
|
|
68
|
+
'ukrainian',
|
|
69
|
+
'urdu',
|
|
70
|
+
'uzbek',
|
|
71
|
+
'vietnamese',
|
|
72
|
+
'welsh',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
export const handler = (client, args) => {
|
|
79
|
+
const body = args;
|
|
80
|
+
return client.brand.retrieve(body);
|
|
81
|
+
};
|
|
82
|
+
export default { metadata, tool, handler };
|
|
83
|
+
//# sourceMappingURL=retrieve-brand.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-brand.mjs","sourceRoot":"","sources":["../../src/tools/brand/retrieve-brand.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;gBACnF,IAAI,EAAE;oBACJ,UAAU;oBACV,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,WAAW;oBACX,SAAS;oBACT,UAAU;oBACV,OAAO;oBACP,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,UAAU;oBACV,OAAO;oBACP,SAAS;oBACT,QAAQ;oBACR,QAAQ;oBACR,OAAO;oBACP,UAAU;oBACV,OAAO;oBACP,WAAW;oBACX,WAAW;oBACX,YAAY;oBACZ,SAAS;oBACT,QAAQ;oBACR,QAAQ;oBACR,OAAO;oBACP,SAAS;oBACT,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,QAAQ;oBACR,WAAW;oBACX,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,YAAY;oBACZ,UAAU;oBACV,SAAS;oBACT,SAAS;oBACT,QAAQ;oBACR,SAAS;oBACT,QAAQ;oBACR,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,WAAW;oBACX,MAAM;oBACN,OAAO;oBACP,YAAY;oBACZ,OAAO;iBACR;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAgB,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveByTickerResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveByTickerResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=retrieve-by-ticker-brand.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-by-ticker-brand.d.mts","sourceRoot":"","sources":["../../src/tools/brand/retrieve-by-ticker-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAYlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iFAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import BrandDev from 'brand.dev';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveByTickerResponse>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
annotations?: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
readOnlyHint?: boolean | undefined;
|
|
24
|
+
destructiveHint?: boolean | undefined;
|
|
25
|
+
idempotentHint?: boolean | undefined;
|
|
26
|
+
openWorldHint?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
handler: (client: BrandDev, args: Record<string, unknown> | undefined) => import("brand.dev").APIPromise<BrandDev.Brand.BrandRetrieveByTickerResponse>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=retrieve-by-ticker-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-by-ticker-brand.d.ts","sourceRoot":"","sources":["../../src/tools/brand/retrieve-by-ticker-brand.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,WAAW;AAEhC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAYlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iFAGlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKnF,wBAA2C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'brand',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'retrieve_by_ticker_brand',
|
|
12
|
+
description: 'Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
ticker: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const handler = (client, args) => {
|
|
24
|
+
const body = args;
|
|
25
|
+
return client.brand.retrieveByTicker(body);
|
|
26
|
+
};
|
|
27
|
+
exports.handler = handler;
|
|
28
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
29
|
+
//# sourceMappingURL=retrieve-by-ticker-brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-by-ticker-brand.js","sourceRoot":"","sources":["../../src/tools/brand/retrieve-by-ticker-brand.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,6DAA6D;IAC1E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wEAAwE;aACtF;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAgB,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|