@oomol-lab/open-connector 1.6.4 → 1.6.5
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/assets/open-connector/catalog/apps/aisa.json +568 -0
- package/assets/open-connector/catalog/apps/bilibili.json +2586 -0
- package/assets/open-connector/catalog/apps/bitwarden.json +1423 -0
- package/assets/open-connector/catalog/apps/cronfree.json +303 -0
- package/assets/open-connector/catalog/apps/cufinder.json +368 -0
- package/assets/open-connector/catalog/apps/gmail.json +73 -0
- package/assets/open-connector/catalog/apps/investoday_mcp.json +22228 -197
- package/assets/open-connector/catalog/apps/ixspy.json +2274 -0
- package/assets/open-connector/catalog/apps/osv.json +663 -0
- package/assets/open-connector/catalog/apps/pdf_vector.json +329 -0
- package/assets/open-connector/catalog/apps/pulsetic.json +406 -0
- package/assets/open-connector/catalog/apps/shopee.json +1785 -0
- package/assets/open-connector/catalog/apps/slack.json +81 -0
- package/assets/open-connector/catalog/apps/slackbot.json +81 -0
- package/assets/open-connector/catalog/apps/speak_ai.json +360 -0
- package/assets/open-connector/catalog/apps/zyhub.json +1585 -0
- package/assets/open-connector/catalog/apps-index.json +1 -1
- package/package.json +1 -1
- package/src/core/json-schema.d.ts +5 -1
- package/src/core/json-schema.js +14 -2
- package/src/core/types.d.ts +9 -0
- package/src/oauth/oauth-credential-refresh-service.js +3 -1
- package/src/oauth/oauth-flow-service.js +17 -2
- package/src/oauth/oauth-token.d.ts +13 -0
- package/src/providers/action-contracts.generated.d.ts +16 -4
- package/src/providers/aisa/executors.d.ts +4 -0
- package/src/providers/aisa/executors.js +176 -0
- package/src/providers/bilibili/articles.d.ts +3 -0
- package/src/providers/bilibili/articles.js +369 -0
- package/src/providers/bilibili/executors.d.ts +8 -0
- package/src/providers/bilibili/executors.js +262 -0
- package/src/providers/bilibili/runtime.d.ts +95 -0
- package/src/providers/bilibili/runtime.js +238 -0
- package/src/providers/bilibili/upload.d.ts +14 -0
- package/src/providers/bilibili/upload.js +105 -0
- package/src/providers/bitwarden/executors.d.ts +3 -0
- package/src/providers/bitwarden/executors.js +146 -0
- package/src/providers/cronfree/executors.d.ts +4 -0
- package/src/providers/cronfree/executors.js +89 -0
- package/src/providers/cufinder/executors.d.ts +4 -0
- package/src/providers/cufinder/executors.js +105 -0
- package/src/providers/elevenreader/runtime.js +6 -5
- package/src/providers/gmail/attachment-stream.d.ts +2 -0
- package/src/providers/gmail/attachment-stream.js +162 -0
- package/src/providers/gmail/executors.d.ts +3 -1
- package/src/providers/gmail/executors.js +53 -25
- package/src/providers/investoday_mcp/official-actions.js +19 -372
- package/src/providers/investoday_mcp/official-tool-types.d.ts +10 -0
- package/src/providers/investoday_mcp/official-tool-types.js +4 -0
- package/src/providers/investoday_mcp/official-tools/charts.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/charts.js +32 -0
- package/src/providers/investoday_mcp/official-tools/fixed-income.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/fixed-income.js +326 -0
- package/src/providers/investoday_mcp/official-tools/funds.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/funds.js +1085 -0
- package/src/providers/investoday_mcp/official-tools/hong-kong.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/hong-kong.js +275 -0
- package/src/providers/investoday_mcp/official-tools/indices-industries.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/indices-industries.js +642 -0
- package/src/providers/investoday_mcp/official-tools/macro-calendar.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/macro-calendar.js +398 -0
- package/src/providers/investoday_mcp/official-tools/other.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/other.js +131 -0
- package/src/providers/investoday_mcp/official-tools/research-news.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/research-news.js +302 -0
- package/src/providers/investoday_mcp/official-tools/stocks.d.ts +2 -0
- package/src/providers/investoday_mcp/official-tools/stocks.js +2829 -0
- package/src/providers/ixspy/executors.d.ts +3 -0
- package/src/providers/ixspy/executors.js +220 -0
- package/src/providers/osv/executors.d.ts +2 -0
- package/src/providers/osv/executors.js +11 -0
- package/src/providers/osv/runtime.d.ts +9 -0
- package/src/providers/osv/runtime.js +66 -0
- package/src/providers/pdf_vector/executors.d.ts +4 -0
- package/src/providers/pdf_vector/executors.js +108 -0
- package/src/providers/provider-runtime.d.ts +3 -0
- package/src/providers/provider-runtime.js +4 -1
- package/src/providers/pulsetic/executors.d.ts +4 -0
- package/src/providers/pulsetic/executors.js +126 -0
- package/src/providers/registry.generated.js +12 -0
- package/src/providers/shopee/actions.d.ts +2 -0
- package/src/providers/shopee/actions.js +474 -0
- package/src/providers/shopee/executors.d.ts +3 -0
- package/src/providers/shopee/executors.js +85 -0
- package/src/providers/shopee/runtime.d.ts +79 -0
- package/src/providers/shopee/runtime.js +693 -0
- package/src/providers/slack/actions.js +17 -0
- package/src/providers/slack/runtime.js +60 -2
- package/src/providers/speak_ai/executors.d.ts +3 -0
- package/src/providers/speak_ai/executors.js +187 -0
- package/src/providers/tushare/runtime.js +22 -9
- package/src/providers/zyhub/executors.d.ts +3 -0
- package/src/providers/zyhub/executors.js +240 -0
- package/src/server/files/transit-files.d.ts +3 -2
- package/src/server/files/transit-files.js +31 -35
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { OAuthClientConfig } from "../../oauth/oauth-client-config-service.ts";
|
|
2
|
+
interface ShopeeEntityToken {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
refreshToken: string;
|
|
5
|
+
expiresAt: string;
|
|
6
|
+
}
|
|
7
|
+
interface ShopeeTokenInventory {
|
|
8
|
+
shops: Record<string, ShopeeEntityToken>;
|
|
9
|
+
merchants: Record<string, ShopeeEntityToken>;
|
|
10
|
+
}
|
|
11
|
+
interface ShopeeActionContext {
|
|
12
|
+
clientConfig: OAuthClientConfig;
|
|
13
|
+
providerSecret?: Record<string, unknown>;
|
|
14
|
+
fetcher: typeof fetch;
|
|
15
|
+
}
|
|
16
|
+
interface ShopeeNormalizedResponse {
|
|
17
|
+
requestId?: string;
|
|
18
|
+
data: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface ShopeeTokenPayload {
|
|
21
|
+
access_token?: unknown;
|
|
22
|
+
refresh_token?: unknown;
|
|
23
|
+
expire_in?: unknown;
|
|
24
|
+
shop_id?: unknown;
|
|
25
|
+
merchant_id?: unknown;
|
|
26
|
+
shop_id_list?: unknown;
|
|
27
|
+
merchant_id_list?: unknown;
|
|
28
|
+
request_id?: unknown;
|
|
29
|
+
error?: unknown;
|
|
30
|
+
message?: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface ShopeeParsedToken {
|
|
33
|
+
accessToken: string;
|
|
34
|
+
refreshToken: string;
|
|
35
|
+
expiresAt: string;
|
|
36
|
+
shopIds: number[];
|
|
37
|
+
merchantIds: number[];
|
|
38
|
+
requestId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ShopeeRefreshInventoryResult {
|
|
41
|
+
inventory: ShopeeTokenInventory;
|
|
42
|
+
representative: ShopeeEntityToken;
|
|
43
|
+
}
|
|
44
|
+
export declare function resolveShopeeApiBaseUrl(clientConfig: OAuthClientConfig): string;
|
|
45
|
+
export declare function parseShopeePartnerId(clientConfig: OAuthClientConfig): number;
|
|
46
|
+
export declare function createShopeeSignature(input: {
|
|
47
|
+
partnerId: number;
|
|
48
|
+
partnerKey: string;
|
|
49
|
+
path: string;
|
|
50
|
+
timestamp: number;
|
|
51
|
+
accessToken?: string;
|
|
52
|
+
entityId?: number;
|
|
53
|
+
}): string;
|
|
54
|
+
export declare function parseShopeeToken(payload: ShopeeTokenPayload, now?: Date): ShopeeParsedToken;
|
|
55
|
+
export declare function createInitialShopeeTokenInventory(token: ShopeeParsedToken): ShopeeTokenInventory;
|
|
56
|
+
export declare function readShopeeTokenInventory(providerSecret: Record<string, unknown> | undefined): ShopeeTokenInventory;
|
|
57
|
+
export declare function refreshShopeeTokenInventory(input: {
|
|
58
|
+
clientConfig: OAuthClientConfig;
|
|
59
|
+
providerSecret?: Record<string, unknown>;
|
|
60
|
+
fallbackRefreshToken: string;
|
|
61
|
+
fetcher: typeof fetch;
|
|
62
|
+
now?: Date;
|
|
63
|
+
}): Promise<ShopeeRefreshInventoryResult>;
|
|
64
|
+
export declare function requestShopeeToken(input: {
|
|
65
|
+
clientConfig: OAuthClientConfig;
|
|
66
|
+
body: Record<string, unknown>;
|
|
67
|
+
path: "/api/v2/auth/token/get" | "/api/v2/auth/access_token/get";
|
|
68
|
+
fetcher: typeof fetch;
|
|
69
|
+
now?: Date;
|
|
70
|
+
}): Promise<ShopeeParsedToken>;
|
|
71
|
+
export declare function executeShopeeAction(actionName: string, input: Record<string, unknown>, context: ShopeeActionContext): Promise<ShopeeNormalizedResponse>;
|
|
72
|
+
export declare function fetchShopeeEntityInfo(input: {
|
|
73
|
+
entityType: "shop" | "merchant";
|
|
74
|
+
entityId: number;
|
|
75
|
+
accessToken: string;
|
|
76
|
+
clientConfig: OAuthClientConfig;
|
|
77
|
+
fetcher: typeof fetch;
|
|
78
|
+
}): Promise<Record<string, unknown>>;
|
|
79
|
+
export {};
|