@pipeshub-ai/mcp 2.0.1 → 2.2.0
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 +90 -2
- package/bin/mcp-server.js +1156 -213
- package/bin/mcp-server.js.map +30 -16
- package/esm/funcs/agentsListAgents.d.ts +10 -0
- package/esm/funcs/agentsListAgents.d.ts.map +1 -0
- package/esm/funcs/agentsListAgents.js +83 -0
- package/esm/funcs/agentsListAgents.js.map +1 -0
- package/esm/funcs/agentsStreamConversation.d.ts +10 -0
- package/esm/funcs/agentsStreamConversation.d.ts.map +1 -0
- package/esm/funcs/agentsStreamConversation.js +83 -0
- package/esm/funcs/agentsStreamConversation.js.map +1 -0
- package/esm/funcs/agentsStreamMessage.d.ts +10 -0
- package/esm/funcs/agentsStreamMessage.d.ts.map +1 -0
- package/esm/funcs/agentsStreamMessage.js +86 -0
- package/esm/funcs/agentsStreamMessage.js.map +1 -0
- package/esm/funcs/connectorGetRecordContent.d.ts +43 -0
- package/esm/funcs/connectorGetRecordContent.d.ts.map +1 -0
- package/esm/funcs/connectorGetRecordContent.js +114 -0
- package/esm/funcs/connectorGetRecordContent.js.map +1 -0
- package/esm/funcs/conversationsStreamConversation.d.ts.map +1 -1
- package/esm/funcs/conversationsStreamConversation.js +2 -4
- package/esm/funcs/conversationsStreamConversation.js.map +1 -1
- package/esm/funcs/conversationsStreamMessage.d.ts.map +1 -1
- package/esm/funcs/conversationsStreamMessage.js +0 -7
- package/esm/funcs/conversationsStreamMessage.js.map +1 -1
- package/esm/funcs/userGroupsGetAllUserGroups.js +1 -1
- package/esm/funcs/userGroupsGetAllUserGroups.js.map +1 -1
- package/esm/hooks/registration.d.ts.map +1 -1
- package/esm/hooks/registration.js +2 -1
- package/esm/hooks/registration.js.map +1 -1
- package/esm/hooks/request-context.d.ts +10 -0
- package/esm/hooks/request-context.d.ts.map +1 -0
- package/esm/hooks/request-context.js +38 -0
- package/esm/hooks/request-context.js.map +1 -0
- package/esm/hooks/requestid.d.ts +5 -0
- package/esm/hooks/requestid.d.ts.map +1 -0
- package/esm/hooks/requestid.js +58 -0
- package/esm/hooks/requestid.js.map +1 -0
- package/esm/mcp-server/instructions.d.ts +2 -0
- package/esm/mcp-server/instructions.d.ts.map +1 -0
- package/esm/mcp-server/instructions.js +106 -0
- package/esm/mcp-server/instructions.js.map +1 -0
- package/esm/mcp-server/prompts/pipeshubAssistant.d.ts +8 -0
- package/esm/mcp-server/prompts/pipeshubAssistant.d.ts.map +1 -0
- package/esm/mcp-server/prompts/pipeshubAssistant.js +31 -0
- package/esm/mcp-server/prompts/pipeshubAssistant.js.map +1 -0
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +16 -62
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/_helpers.d.ts +78 -0
- package/esm/mcp-server/tools/_helpers.d.ts.map +1 -1
- package/esm/mcp-server/tools/_helpers.js +155 -1
- package/esm/mcp-server/tools/_helpers.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubAgents.d.ts +8 -0
- package/esm/mcp-server/tools/pipeshubAgents.d.ts.map +1 -0
- package/esm/mcp-server/tools/pipeshubAgents.js +62 -0
- package/esm/mcp-server/tools/pipeshubAgents.js.map +1 -0
- package/esm/mcp-server/tools/pipeshubChat.d.ts +6 -1
- package/esm/mcp-server/tools/pipeshubChat.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubChat.js +79 -23
- package/esm/mcp-server/tools/pipeshubChat.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubDirectory.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubDirectory.js +0 -1
- package/esm/mcp-server/tools/pipeshubDirectory.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubDownloadRecord.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubDownloadRecord.js +0 -3
- package/esm/mcp-server/tools/pipeshubDownloadRecord.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts +8 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts.map +1 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.js +63 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.js.map +1 -0
- package/esm/mcp-server/tools/pipeshubSearch.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubSearch.js +8 -7
- package/esm/mcp-server/tools/pipeshubSearch.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubSources.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubSources.js +0 -4
- package/esm/mcp-server/tools/pipeshubSources.js.map +1 -1
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +13 -1
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/agentops.d.ts +119 -0
- package/esm/models/agentops.d.ts.map +1 -0
- package/esm/models/agentops.js +97 -0
- package/esm/models/agentops.js.map +1 -0
- package/esm/models/getrecordcontentop.d.ts +6 -0
- package/esm/models/getrecordcontentop.d.ts.map +1 -0
- package/esm/models/getrecordcontentop.js +5 -0
- package/esm/models/getrecordcontentop.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +10 -2
- package/esm/tool-names.js.map +1 -1
- package/package.json +3 -2
- package/src/funcs/agentsListAgents.ts +141 -0
- package/src/funcs/agentsStreamConversation.ts +144 -0
- package/src/funcs/agentsStreamMessage.ts +147 -0
- package/src/funcs/connectorGetRecordContent.ts +179 -0
- package/src/funcs/conversationsStreamConversation.ts +2 -4
- package/src/funcs/conversationsStreamMessage.ts +0 -8
- package/src/funcs/userGroupsGetAllUserGroups.ts +1 -1
- package/src/hooks/registration.ts +2 -1
- package/src/hooks/request-context.ts +47 -0
- package/src/hooks/requestid.ts +62 -0
- package/src/mcp-server/instructions.ts +106 -0
- package/src/mcp-server/prompts/pipeshubAssistant.ts +37 -0
- package/src/mcp-server/server.ts +18 -64
- package/src/mcp-server/tools/_helpers.ts +216 -1
- package/src/mcp-server/tools/pipeshubAgents.ts +68 -0
- package/src/mcp-server/tools/pipeshubChat.ts +78 -23
- package/src/mcp-server/tools/pipeshubDirectory.ts +0 -1
- package/src/mcp-server/tools/pipeshubDownloadRecord.ts +0 -4
- package/src/mcp-server/tools/pipeshubGetRecordContent.ts +67 -0
- package/src/mcp-server/tools/pipeshubSearch.ts +8 -7
- package/src/mcp-server/tools/pipeshubSources.ts +0 -5
- package/src/mcp-server/tools.ts +14 -1
- package/src/models/agentops.ts +160 -0
- package/src/models/getrecordcontentop.ts +11 -0
- package/src/tool-names.ts +10 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeshubCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ListAgentsRequest } from "../models/agentops.js";
|
|
4
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
export declare function agentsListAgents(client$: PipeshubCore, request?: ListAgentsRequest | undefined, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
+
//# sourceMappingURL=agentsListAgents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsListAgents.d.ts","sourceRoot":"","sources":["../../src/funcs/agentsListAgents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,YAAY,EACrB,OAAO,CAAC,EAAE,iBAAiB,GAAG,SAAS,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAEA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Mirrors `usersGetAllUsers.ts`
|
|
2
|
+
// but hits `GET /agents` (operationId `listAgents`). Returns the raw JSON
|
|
3
|
+
// `Response`; the caller parses the `{ success, agents, pagination }` envelope.
|
|
4
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
5
|
+
import { compactMap } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
8
|
+
import { pathToFunc } from "../lib/url.js";
|
|
9
|
+
import { ListAgentsRequest$zodSchema, } from "../models/agentops.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
export function agentsListAgents(client$, request, options) {
|
|
12
|
+
return new APIPromise($do(client$, request, options));
|
|
13
|
+
}
|
|
14
|
+
async function $do(client$, request, options) {
|
|
15
|
+
const parsed$ = safeParse(request, (value$) => ListAgentsRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
16
|
+
if (!parsed$.ok) {
|
|
17
|
+
return [parsed$, { status: "invalid" }];
|
|
18
|
+
}
|
|
19
|
+
const payload$ = parsed$.value;
|
|
20
|
+
const body$ = null;
|
|
21
|
+
const path$ = pathToFunc("/agents")();
|
|
22
|
+
const query$ = encodeFormQuery({
|
|
23
|
+
"page": payload$?.page,
|
|
24
|
+
"limit": payload$?.limit,
|
|
25
|
+
"search": payload$?.search,
|
|
26
|
+
"sort_by": payload$?.sortBy,
|
|
27
|
+
"sort_order": payload$?.sortOrder,
|
|
28
|
+
});
|
|
29
|
+
const headers$ = new Headers(compactMap({
|
|
30
|
+
Accept: "application/json",
|
|
31
|
+
}));
|
|
32
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
33
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
34
|
+
const context = {
|
|
35
|
+
options: client$._options,
|
|
36
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
37
|
+
operationID: "listAgents",
|
|
38
|
+
oAuth2Scopes: ["agent:read"],
|
|
39
|
+
resolvedSecurity: requestSecurity,
|
|
40
|
+
securitySource: client$._options.security,
|
|
41
|
+
retryConfig: options?.retries
|
|
42
|
+
|| client$._options.retryConfig
|
|
43
|
+
|| { strategy: "none" },
|
|
44
|
+
retryCodes: options?.retryCodes || [
|
|
45
|
+
"429",
|
|
46
|
+
"500",
|
|
47
|
+
"502",
|
|
48
|
+
"503",
|
|
49
|
+
"504",
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
const requestRes = client$._createRequest(context, {
|
|
53
|
+
security: requestSecurity,
|
|
54
|
+
method: "GET",
|
|
55
|
+
baseURL: options?.serverURL,
|
|
56
|
+
path: path$,
|
|
57
|
+
headers: headers$,
|
|
58
|
+
query: query$,
|
|
59
|
+
body: body$,
|
|
60
|
+
userAgent: client$._options.userAgent,
|
|
61
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
62
|
+
|| -1,
|
|
63
|
+
}, options);
|
|
64
|
+
if (!requestRes.ok) {
|
|
65
|
+
return [requestRes, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const req$ = requestRes.value;
|
|
68
|
+
const doResult = await client$._do(req$, {
|
|
69
|
+
context,
|
|
70
|
+
errorCodes: [],
|
|
71
|
+
retryConfig: context.retryConfig,
|
|
72
|
+
retryCodes: context.retryCodes,
|
|
73
|
+
});
|
|
74
|
+
if (!doResult.ok) {
|
|
75
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
76
|
+
}
|
|
77
|
+
return [doResult, {
|
|
78
|
+
status: "complete",
|
|
79
|
+
"request": req$,
|
|
80
|
+
response: doResult.value,
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=agentsListAgents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsListAgents.js","sourceRoot":"","sources":["../../src/funcs/agentsListAgents.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,0EAA0E;AAC1E,gFAAgF;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,UAAU,gBAAgB,CAC9B,OAAqB,EACrB,OAAuC,EACvC,OAAwB;IAaxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,OAAqB,EACrB,OAAuC,EACvC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YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeshubCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { AgentStreamCreateConversationRequest } from "../models/agentops.js";
|
|
4
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
export declare function agentsStreamConversation(client$: PipeshubCore, request: AgentStreamCreateConversationRequest, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
+
//# sourceMappingURL=agentsStreamConversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsStreamConversation.d.ts","sourceRoot":"","sources":["../../src/funcs/agentsStreamConversation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,oCAAoC,EAErC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,oCAAoC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAEA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// POST `/agents/{agentKey}/conversations/stream` (operationId
|
|
2
|
+
// `streamAgentConversation`) to start a conversation with a specific agent.
|
|
3
|
+
// Returns the raw streaming `Response`; the caller parses `text/event-stream`
|
|
4
|
+
// line-by-line.
|
|
5
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import { AgentStreamCreateConversationRequest$zodSchema, } from "../models/agentops.js";
|
|
11
|
+
import { APIPromise } from "../types/async.js";
|
|
12
|
+
export function agentsStreamConversation(client$, request, options) {
|
|
13
|
+
return new APIPromise($do(client$, request, options));
|
|
14
|
+
}
|
|
15
|
+
async function $do(client$, request, options) {
|
|
16
|
+
const parsed$ = safeParse(request, (value$) => AgentStreamCreateConversationRequest$zodSchema.parse(value$), "Input validation failed");
|
|
17
|
+
if (!parsed$.ok) {
|
|
18
|
+
return [parsed$, { status: "invalid" }];
|
|
19
|
+
}
|
|
20
|
+
const payload$ = parsed$.value;
|
|
21
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
22
|
+
const pathParams$ = {
|
|
23
|
+
agentKey: encodeSimple("agentKey", payload$.agentKey, {
|
|
24
|
+
explode: false,
|
|
25
|
+
charEncoding: "percent",
|
|
26
|
+
}),
|
|
27
|
+
};
|
|
28
|
+
const path$ = pathToFunc("/agents/{agentKey}/conversations/stream")(pathParams$);
|
|
29
|
+
const headers$ = new Headers(compactMap({
|
|
30
|
+
"Content-Type": "application/json",
|
|
31
|
+
Accept: "text/event-stream",
|
|
32
|
+
}));
|
|
33
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
34
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
35
|
+
const context = {
|
|
36
|
+
options: client$._options,
|
|
37
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
38
|
+
operationID: "streamAgentConversation",
|
|
39
|
+
oAuth2Scopes: ["agent:execute"],
|
|
40
|
+
resolvedSecurity: requestSecurity,
|
|
41
|
+
securitySource: client$._options.security,
|
|
42
|
+
retryConfig: options?.retries
|
|
43
|
+
|| client$._options.retryConfig
|
|
44
|
+
|| { strategy: "none" },
|
|
45
|
+
retryCodes: options?.retryCodes || [
|
|
46
|
+
"429",
|
|
47
|
+
"500",
|
|
48
|
+
"502",
|
|
49
|
+
"503",
|
|
50
|
+
"504",
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
const requestRes = client$._createRequest(context, {
|
|
54
|
+
security: requestSecurity,
|
|
55
|
+
method: "POST",
|
|
56
|
+
baseURL: options?.serverURL,
|
|
57
|
+
path: path$,
|
|
58
|
+
headers: headers$,
|
|
59
|
+
body: body$,
|
|
60
|
+
userAgent: client$._options.userAgent,
|
|
61
|
+
// SSE streams are long-lived; let the caller's AbortSignal cap it.
|
|
62
|
+
timeoutMs: options?.timeoutMs || -1,
|
|
63
|
+
}, options);
|
|
64
|
+
if (!requestRes.ok) {
|
|
65
|
+
return [requestRes, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const req$ = requestRes.value;
|
|
68
|
+
const doResult = await client$._do(req$, {
|
|
69
|
+
context,
|
|
70
|
+
errorCodes: [],
|
|
71
|
+
retryConfig: context.retryConfig,
|
|
72
|
+
retryCodes: context.retryCodes,
|
|
73
|
+
});
|
|
74
|
+
if (!doResult.ok) {
|
|
75
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
76
|
+
}
|
|
77
|
+
return [doResult, {
|
|
78
|
+
status: "complete",
|
|
79
|
+
"request": req$,
|
|
80
|
+
response: doResult.value,
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=agentsStreamConversation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsStreamConversation.js","sourceRoot":"","sources":["../../src/funcs/agentsStreamConversation.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,4EAA4E;AAC5E,8EAA8E;AAC9E,gBAAgB;AAGhB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,8CAA8C,GAC/C,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,UAAU,wBAAwB,CACtC,OAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAaxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,OAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAgBxB,MAAM,OAAO,GAAG,SAAS,CACvB,OAAO,EACP,CAAC,MAAM,EAAE,EAAE,CAAC,8CAA8C,CAAC,KAAK,CAAC,MAAM,CAAC,EACxE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,EAAE,E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L,KAAK;YACL,KAAK;YACL,KAAK;SACN;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE;QACjD,QAAQ,EAAE,eAAe;QACzB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO,EAAE,SAAS;QAC3B,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,KAAK;QACX,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;QACrC,mEAAmE;QACnE,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC;KACpC,EAAE,OAAO,CAAC,CAAC;IACZ,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;QACnB,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;QACvC,OAAO;QACP,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeshubCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { AgentAddMessageStreamRequest } from "../models/agentops.js";
|
|
4
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
export declare function agentsStreamMessage(client$: PipeshubCore, request: AgentAddMessageStreamRequest, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
+
//# sourceMappingURL=agentsStreamMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsStreamMessage.d.ts","sourceRoot":"","sources":["../../src/funcs/agentsStreamMessage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAEA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// POSTs to `/agents/{agentKey}/conversations/{conversationId}/messages/stream`
|
|
2
|
+
// (operationId `streamAgentConversationMessage`) to append a follow-up turn
|
|
3
|
+
// to an existing agent conversation. Returns the raw streaming `Response`.
|
|
4
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { compactMap } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
8
|
+
import { pathToFunc } from "../lib/url.js";
|
|
9
|
+
import { AgentAddMessageStreamRequest$zodSchema, } from "../models/agentops.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
export function agentsStreamMessage(client$, request, options) {
|
|
12
|
+
return new APIPromise($do(client$, request, options));
|
|
13
|
+
}
|
|
14
|
+
async function $do(client$, request, options) {
|
|
15
|
+
const parsed$ = safeParse(request, (value$) => AgentAddMessageStreamRequest$zodSchema.parse(value$), "Input validation failed");
|
|
16
|
+
if (!parsed$.ok) {
|
|
17
|
+
return [parsed$, { status: "invalid" }];
|
|
18
|
+
}
|
|
19
|
+
const payload$ = parsed$.value;
|
|
20
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
21
|
+
const pathParams$ = {
|
|
22
|
+
agentKey: encodeSimple("agentKey", payload$.agentKey, {
|
|
23
|
+
explode: false,
|
|
24
|
+
charEncoding: "percent",
|
|
25
|
+
}),
|
|
26
|
+
conversationId: encodeSimple("conversationId", payload$.conversationId, {
|
|
27
|
+
explode: false,
|
|
28
|
+
charEncoding: "percent",
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
const path$ = pathToFunc("/agents/{agentKey}/conversations/{conversationId}/messages/stream")(pathParams$);
|
|
32
|
+
const headers$ = new Headers(compactMap({
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
Accept: "text/event-stream",
|
|
35
|
+
}));
|
|
36
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
37
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38
|
+
const context = {
|
|
39
|
+
options: client$._options,
|
|
40
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
41
|
+
operationID: "streamAgentConversationMessage",
|
|
42
|
+
oAuth2Scopes: ["agent:execute"],
|
|
43
|
+
resolvedSecurity: requestSecurity,
|
|
44
|
+
securitySource: client$._options.security,
|
|
45
|
+
retryConfig: options?.retries
|
|
46
|
+
|| client$._options.retryConfig
|
|
47
|
+
|| { strategy: "none" },
|
|
48
|
+
retryCodes: options?.retryCodes || [
|
|
49
|
+
"429",
|
|
50
|
+
"500",
|
|
51
|
+
"502",
|
|
52
|
+
"503",
|
|
53
|
+
"504",
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
const requestRes = client$._createRequest(context, {
|
|
57
|
+
security: requestSecurity,
|
|
58
|
+
method: "POST",
|
|
59
|
+
baseURL: options?.serverURL,
|
|
60
|
+
path: path$,
|
|
61
|
+
headers: headers$,
|
|
62
|
+
body: body$,
|
|
63
|
+
userAgent: client$._options.userAgent,
|
|
64
|
+
// SSE streams are long-lived; let the caller's AbortSignal cap it.
|
|
65
|
+
timeoutMs: options?.timeoutMs || -1,
|
|
66
|
+
}, options);
|
|
67
|
+
if (!requestRes.ok) {
|
|
68
|
+
return [requestRes, { status: "invalid" }];
|
|
69
|
+
}
|
|
70
|
+
const req$ = requestRes.value;
|
|
71
|
+
const doResult = await client$._do(req$, {
|
|
72
|
+
context,
|
|
73
|
+
errorCodes: [],
|
|
74
|
+
retryConfig: context.retryConfig,
|
|
75
|
+
retryCodes: context.retryCodes,
|
|
76
|
+
});
|
|
77
|
+
if (!doResult.ok) {
|
|
78
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
79
|
+
}
|
|
80
|
+
return [doResult, {
|
|
81
|
+
status: "complete",
|
|
82
|
+
"request": req$,
|
|
83
|
+
response: doResult.value,
|
|
84
|
+
}];
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=agentsStreamMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentsStreamMessage.js","sourceRoot":"","sources":["../../src/funcs/agentsStreamMessage.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,4EAA4E;AAC5E,2EAA2E;AAG3E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,UAAU,mBAAmB,CACjC,OAAqB,EACrB,OAAqC,EACrC,OAAwB;IAaxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,OAAqB,EACrB,OAAqC,EACrC,OAAwB;IAgBxB,MAAM,OAAO,GAAG,SAAS,CACvB,OAAO,EACP,CAAC,MAAM,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,MAAM,CAAC,EAChE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QAChB,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO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YACL,KAAK;YACL,KAAK;YACL,KAAK;SACN;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE;QACjD,QAAQ,EAAE,eAAe;QACzB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO,EAAE,SAAS;QAC3B,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,KAAK;QACX,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;QACrC,mEAAmE;QACnE,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC;KACpC,EAAE,OAAO,CAAC,CAAC;IACZ,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;QACnB,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;QACvC,OAAO;QACP,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PipeshubCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
6
|
+
import { GetRecordContentRequest } from "../models/getrecordcontentop.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Get a record's full parsed content and metadata
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Retrieve the full parsed content and metadata of a single record —
|
|
14
|
+
* the same content PipesHub's own RAG/chat pipeline uses to answer
|
|
15
|
+
* questions, returned directly instead of via chat.
|
|
16
|
+
*
|
|
17
|
+
* **When to use this vs. the other record endpoints:**
|
|
18
|
+
* - `GET /knowledgeBase/record/{recordId}` returns metadata only
|
|
19
|
+
* (name, type, indexing status, size) — no content.
|
|
20
|
+
* - `GET /knowledgeBase/stream/record/{recordId}` returns the original,
|
|
21
|
+
* unparsed file bytes — use it to download/open the source file.
|
|
22
|
+
* - **This endpoint** returns the record's full parsed content as a
|
|
23
|
+
* single plain-text `content` string (a metadata header, then the
|
|
24
|
+
* block/table text in reading order) — use it when you need the
|
|
25
|
+
* record's actual textual/tabular content without downloading and
|
|
26
|
+
* re-parsing the original file yourself.
|
|
27
|
+
*
|
|
28
|
+
* **Typical flow:** obtain a `recordId` from a `pipeshub_search` hit or
|
|
29
|
+
* a chat citation's `recordId`, then call this endpoint to read the
|
|
30
|
+
* full content when the search snippet or citation excerpt isn't
|
|
31
|
+
* enough to answer the question.
|
|
32
|
+
*
|
|
33
|
+
* **Permission scoping:**
|
|
34
|
+
*
|
|
35
|
+
* The requesting user/token must have access to the record; access is
|
|
36
|
+
* verified via the knowledge graph before content is returned — a
|
|
37
|
+
* caller with a valid scope but no access to this specific record gets
|
|
38
|
+
* a `403`.
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use either {@link Security.bearerAuth} or {@link Security.oauth2} from the global security.
|
|
41
|
+
*/
|
|
42
|
+
export declare function connectorGetRecordContent(client$: PipeshubCore, request: GetRecordContentRequest, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
43
|
+
//# sourceMappingURL=connectorGetRecordContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorGetRecordContent.d.ts","sourceRoot":"","sources":["../../src/funcs/connectorGetRecordContent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,uBAAuB,EAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Adapted from Speakeasy-generated connectorGetRecordContent.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { compactMap } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
8
|
+
import { pathToFunc } from "../lib/url.js";
|
|
9
|
+
import { GetRecordContentRequest$zodSchema, } from "../models/getrecordcontentop.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
/**
|
|
12
|
+
* Get a record's full parsed content and metadata
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieve the full parsed content and metadata of a single record —
|
|
16
|
+
* the same content PipesHub's own RAG/chat pipeline uses to answer
|
|
17
|
+
* questions, returned directly instead of via chat.
|
|
18
|
+
*
|
|
19
|
+
* **When to use this vs. the other record endpoints:**
|
|
20
|
+
* - `GET /knowledgeBase/record/{recordId}` returns metadata only
|
|
21
|
+
* (name, type, indexing status, size) — no content.
|
|
22
|
+
* - `GET /knowledgeBase/stream/record/{recordId}` returns the original,
|
|
23
|
+
* unparsed file bytes — use it to download/open the source file.
|
|
24
|
+
* - **This endpoint** returns the record's full parsed content as a
|
|
25
|
+
* single plain-text `content` string (a metadata header, then the
|
|
26
|
+
* block/table text in reading order) — use it when you need the
|
|
27
|
+
* record's actual textual/tabular content without downloading and
|
|
28
|
+
* re-parsing the original file yourself.
|
|
29
|
+
*
|
|
30
|
+
* **Typical flow:** obtain a `recordId` from a `pipeshub_search` hit or
|
|
31
|
+
* a chat citation's `recordId`, then call this endpoint to read the
|
|
32
|
+
* full content when the search snippet or citation excerpt isn't
|
|
33
|
+
* enough to answer the question.
|
|
34
|
+
*
|
|
35
|
+
* **Permission scoping:**
|
|
36
|
+
*
|
|
37
|
+
* The requesting user/token must have access to the record; access is
|
|
38
|
+
* verified via the knowledge graph before content is returned — a
|
|
39
|
+
* caller with a valid scope but no access to this specific record gets
|
|
40
|
+
* a `403`.
|
|
41
|
+
*
|
|
42
|
+
* If set, this operation will use either {@link Security.bearerAuth} or {@link Security.oauth2} from the global security.
|
|
43
|
+
*/
|
|
44
|
+
export function connectorGetRecordContent(client$, request, options) {
|
|
45
|
+
return new APIPromise($do(client$, request, options));
|
|
46
|
+
}
|
|
47
|
+
async function $do(client$, request, options) {
|
|
48
|
+
const parsed$ = safeParse(request, (value$) => GetRecordContentRequest$zodSchema.parse(value$), "Input validation failed");
|
|
49
|
+
if (!parsed$.ok) {
|
|
50
|
+
return [parsed$, { status: "invalid" }];
|
|
51
|
+
}
|
|
52
|
+
const payload$ = parsed$.value;
|
|
53
|
+
const body$ = null;
|
|
54
|
+
const pathParams$ = {
|
|
55
|
+
recordId: encodeSimple("recordId", payload$.recordId, {
|
|
56
|
+
explode: false,
|
|
57
|
+
charEncoding: "percent",
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
const path$ = pathToFunc("/connectors/record/{recordId}/content")(pathParams$);
|
|
61
|
+
const headers$ = new Headers(compactMap({
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
}));
|
|
64
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
const context = {
|
|
67
|
+
options: client$._options,
|
|
68
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
69
|
+
operationID: "getRecordContent",
|
|
70
|
+
oAuth2Scopes: ["connector:read"],
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
securitySource: client$._options.security,
|
|
73
|
+
retryConfig: options?.retries
|
|
74
|
+
|| client$._options.retryConfig
|
|
75
|
+
|| { strategy: "none" },
|
|
76
|
+
retryCodes: options?.retryCodes || [
|
|
77
|
+
"429",
|
|
78
|
+
"500",
|
|
79
|
+
"502",
|
|
80
|
+
"503",
|
|
81
|
+
"504",
|
|
82
|
+
],
|
|
83
|
+
};
|
|
84
|
+
const requestRes = client$._createRequest(context, {
|
|
85
|
+
security: requestSecurity,
|
|
86
|
+
method: "GET",
|
|
87
|
+
baseURL: options?.serverURL,
|
|
88
|
+
path: path$,
|
|
89
|
+
headers: headers$,
|
|
90
|
+
body: body$,
|
|
91
|
+
userAgent: client$._options.userAgent,
|
|
92
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
93
|
+
|| -1,
|
|
94
|
+
}, options);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return [requestRes, { status: "invalid" }];
|
|
97
|
+
}
|
|
98
|
+
const req$ = requestRes.value;
|
|
99
|
+
const doResult = await client$._do(req$, {
|
|
100
|
+
context,
|
|
101
|
+
errorCodes: [],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
104
|
+
});
|
|
105
|
+
if (!doResult.ok) {
|
|
106
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
107
|
+
}
|
|
108
|
+
return [doResult, {
|
|
109
|
+
status: "complete",
|
|
110
|
+
"request": req$,
|
|
111
|
+
response: doResult.value,
|
|
112
|
+
}];
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=connectorGetRecordContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorGetRecordContent.js","sourceRoot":"","sources":["../../src/funcs/connectorGetRecordContent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,EAEL,iCAAiC,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;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,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationsStreamConversation.d.ts","sourceRoot":"","sources":["../../src/funcs/conversationsStreamConversation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversationsStreamConversation.d.ts","sourceRoot":"","sources":["../../src/funcs/conversationsStreamConversation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,yBAAyB,EAE1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,yBAAyB,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAEA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
// `conversationsCreateConversation.ts` but POSTs to `/conversations/stream`
|
|
3
|
-
// and asks for an SSE response. The body shape is identical to the
|
|
1
|
+
// POSTs to `/conversations/stream` and asks for an SSE response. The body shape is identical to the
|
|
4
2
|
// non-streaming sibling, so we reuse `CreateConversationRequest`'s zod
|
|
5
3
|
// schema. Returns the raw streaming `Response`; the caller is expected to
|
|
6
4
|
// parse `text/event-stream` line-by-line.
|
|
@@ -32,7 +30,7 @@ async function $do(client$, request, options) {
|
|
|
32
30
|
options: client$._options,
|
|
33
31
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
34
32
|
operationID: "streamConversation",
|
|
35
|
-
oAuth2Scopes: ["conversation:
|
|
33
|
+
oAuth2Scopes: ["conversation:chat"],
|
|
36
34
|
resolvedSecurity: requestSecurity,
|
|
37
35
|
securitySource: client$._options.security,
|
|
38
36
|
retryConfig: options?.retries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationsStreamConversation.js","sourceRoot":"","sources":["../../src/funcs/conversationsStreamConversation.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"conversationsStreamConversation.js","sourceRoot":"","sources":["../../src/funcs/conversationsStreamConversation.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,uEAAuE;AACvE,0EAA0E;AAC1E,0CAA0C;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,mCAAmC,GACpC,MAAM,wCAAwC,CAAC;AAUhD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,UAAU,+BAA+B,CAC7C,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AE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationsStreamMessage.d.ts","sourceRoot":"","sources":["../../src/funcs/conversationsStreamMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversationsStreamMessage.d.ts","sourceRoot":"","sources":["../../src/funcs/conversationsStreamMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,wBAAwB,EAEzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAEA"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
// Hand-written supplement (NOT generated). Mirrors
|
|
2
|
-
// `conversationsAddMessage.ts` but POSTs to
|
|
3
|
-
// `/conversations/{conversationId}/messages/stream` and asks for an SSE
|
|
4
|
-
// response. The body shape is identical to the non-streaming sibling, so
|
|
5
|
-
// we reuse `AddMessageRequestRequest`'s zod schema. Returns the raw
|
|
6
|
-
// streaming `Response`; the caller is expected to parse `text/event-stream`
|
|
7
|
-
// line-by-line.
|
|
8
1
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
9
2
|
import { compactMap } from "../lib/primitives.js";
|
|
10
3
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationsStreamMessage.js","sourceRoot":"","sources":["../../src/funcs/conversationsStreamMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversationsStreamMessage.js","sourceRoot":"","sources":["../../src/funcs/conversationsStreamMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AAUnC,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,UAAU,0BAA0B,CACxC,OAAqB,EACrB,OAAiC,EACjC,OAAwB;IAaxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,OAAqB,EACrB,OAAiC,EACjC,OAAwB;IAgBxB,MAAM,OAAO,GAAG,SAAS,CACvB,OAAO,EACP,CAAC,MAAM,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,MAAM,CAAC,EAC5D,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QAChB,OAAO,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L,KAAK;SACN;KACF,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE;QACjD,QAAQ,EAAE,eAAe;QACzB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO,EAAE,SAAS;QAC3B,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,KAAK;QACX,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;QACrC,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC;KACpC,EAAE,OAAO,CAAC,CAAC;IACZ,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;QACnB,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;QACvC,OAAO;QACP,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -53,7 +53,7 @@ async function $do(client$, request, options) {
|
|
|
53
53
|
options: client$._options,
|
|
54
54
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55
55
|
operationID: "getAllUserGroups",
|
|
56
|
-
oAuth2Scopes: [],
|
|
56
|
+
oAuth2Scopes: ["usergroup:read"],
|
|
57
57
|
resolvedSecurity: requestSecurity,
|
|
58
58
|
securitySource: client$._options.security,
|
|
59
59
|
retryConfig: options?.retries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userGroupsGetAllUserGroups.js","sourceRoot":"","sources":["../../src/funcs/userGroupsGetAllUserGroups.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,EAEL,iCAAiC,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAaxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,OAAO,EACP,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,OAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAgBxB,MAAM,OAAO,GAAG,SAAS,CACvB,OAAO,EACP,CAAC,MAAM,EAAE,EAAE,CAAC,iCAAiC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EACtE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QAChB,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1C,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CA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AAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/hooks/registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/hooks/registration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAQnC,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,QAKrC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { RequestIDHook } from "./requestid.js";
|
|
1
2
|
/*
|
|
2
3
|
* This file is only ever generated once on the first generation and then is free to be modified.
|
|
3
4
|
* Any hooks you wish to add should be registered in the initHooks function. Feel free to define them
|
|
4
5
|
* in this file or in separate files in the hooks folder.
|
|
5
6
|
*/
|
|
6
|
-
// @ts-expect-error remove this line when you add your first hook and hooks is used
|
|
7
7
|
export function initHooks(hooks) {
|
|
8
8
|
// Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
9
9
|
// with an instance of a hook that implements that specific Hook interface
|
|
10
10
|
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
11
|
+
hooks.registerBeforeRequestHook(new RequestIDHook());
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=registration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.js","sourceRoot":"","sources":["../../src/hooks/registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registration.js","sourceRoot":"","sources":["../../src/hooks/registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C;;;;GAIG;AAEH,MAAM,UAAU,SAAS,CAAC,KAAY;IACpC,gHAAgH;IAChH,0EAA0E;IAC1E,4FAA4F;IAC5F,KAAK,CAAC,yBAAyB,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;AACvD,CAAC"}
|