@openrouter/sdk 1.5.5 → 1.5.7
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/esm/funcs/generationsGetGeneration.d.ts +1 -1
- package/esm/funcs/generationsGetGeneration.js +2 -2
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/errors/index.d.ts +0 -2
- package/esm/models/errors/index.js +0 -2
- package/esm/models/index.d.ts +0 -40
- package/esm/models/index.js +0 -40
- package/esm/models/operations/index.d.ts +0 -15
- package/esm/models/operations/index.js +0 -15
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.js +0 -4
- package/jsr.json +1 -1
- package/package.json +5 -5
- package/esm/funcs/internsChat.d.ts +0 -42
- package/esm/funcs/internsChat.js +0 -109
- package/esm/funcs/internsCreateIntern.d.ts +0 -21
- package/esm/funcs/internsCreateIntern.js +0 -103
- package/esm/funcs/internsDeleteIntern.d.ts +0 -21
- package/esm/funcs/internsDeleteIntern.js +0 -108
- package/esm/funcs/internsGetIntern.d.ts +0 -21
- package/esm/funcs/internsGetIntern.js +0 -105
- package/esm/funcs/internsGetInternConnections.d.ts +0 -21
- package/esm/funcs/internsGetInternConnections.js +0 -105
- package/esm/funcs/internsGetInternDaemon.d.ts +0 -21
- package/esm/funcs/internsGetInternDaemon.js +0 -105
- package/esm/funcs/internsGetInternDaemonAccess.d.ts +0 -23
- package/esm/funcs/internsGetInternDaemonAccess.js +0 -107
- package/esm/funcs/internsGetInternIcon.d.ts +0 -20
- package/esm/funcs/internsGetInternIcon.js +0 -109
- package/esm/funcs/internsInvoke.d.ts +0 -26
- package/esm/funcs/internsInvoke.js +0 -119
- package/esm/funcs/internsListInterns.d.ts +0 -21
- package/esm/funcs/internsListInterns.js +0 -107
- package/esm/funcs/internsProvisionIntern.d.ts +0 -21
- package/esm/funcs/internsProvisionIntern.js +0 -105
- package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +0 -22
- package/esm/funcs/internsSignInternDaemonAccessRequest.js +0 -109
- package/esm/funcs/internsSignInternDaemonRequest.d.ts +0 -20
- package/esm/funcs/internsSignInternDaemonRequest.js +0 -109
- package/esm/funcs/internsSuspendIntern.d.ts +0 -21
- package/esm/funcs/internsSuspendIntern.js +0 -105
- package/esm/funcs/internsUpdateIntern.d.ts +0 -21
- package/esm/funcs/internsUpdateIntern.js +0 -108
- package/esm/models/createinternrequest.d.ts +0 -43
- package/esm/models/createinternrequest.js +0 -24
- package/esm/models/deleteinternrequest.d.ts +0 -18
- package/esm/models/deleteinternrequest.js +0 -18
- package/esm/models/deleteinternresponse.d.ts +0 -10
- package/esm/models/deleteinternresponse.js +0 -14
- package/esm/models/errors/internchaterrorresponse.d.ts +0 -31
- package/esm/models/errors/internchaterrorresponse.js +0 -35
- package/esm/models/errors/internlifecycleerror.d.ts +0 -25
- package/esm/models/errors/internlifecycleerror.js +0 -35
- package/esm/models/intern.d.ts +0 -120
- package/esm/models/intern.js +0 -74
- package/esm/models/internapprovalmode.d.ts +0 -16
- package/esm/models/internapprovalmode.js +0 -15
- package/esm/models/internchatassistantmessage.d.ts +0 -24
- package/esm/models/internchatassistantmessage.js +0 -22
- package/esm/models/internchatchoice.d.ts +0 -37
- package/esm/models/internchatchoice.js +0 -33
- package/esm/models/internchatcompletionchunk.d.ts +0 -48
- package/esm/models/internchatcompletionchunk.js +0 -34
- package/esm/models/internchatcompletionrequest.d.ts +0 -40
- package/esm/models/internchatcompletionrequest.js +0 -25
- package/esm/models/internchatdelta.d.ts +0 -24
- package/esm/models/internchatdelta.js +0 -28
- package/esm/models/internchatdevelopermessage.d.ts +0 -21
- package/esm/models/internchatdevelopermessage.js +0 -15
- package/esm/models/internchatechoedtoolcall.d.ts +0 -21
- package/esm/models/internchatechoedtoolcall.js +0 -15
- package/esm/models/internchatechoedtoolcallfunction.d.ts +0 -17
- package/esm/models/internchatechoedtoolcallfunction.js +0 -14
- package/esm/models/internchaterror.d.ts +0 -22
- package/esm/models/internchaterror.js +0 -17
- package/esm/models/internchaterrormetadata.d.ts +0 -48
- package/esm/models/internchaterrormetadata.js +0 -39
- package/esm/models/internchatmessage.d.ts +0 -16
- package/esm/models/internchatmessage.js +0 -22
- package/esm/models/internchatmessagecontent.d.ts +0 -12
- package/esm/models/internchatmessagecontent.js +0 -12
- package/esm/models/internchatprompttokensdetails.d.ts +0 -13
- package/esm/models/internchatprompttokensdetails.js +0 -19
- package/esm/models/internchatsteeredresponse.d.ts +0 -33
- package/esm/models/internchatsteeredresponse.js +0 -28
- package/esm/models/internchatstreamerror.d.ts +0 -22
- package/esm/models/internchatstreamerror.js +0 -17
- package/esm/models/internchatstreamingresponse.d.ts +0 -17
- package/esm/models/internchatstreamingresponse.js +0 -29
- package/esm/models/internchatsystemmessage.d.ts +0 -21
- package/esm/models/internchatsystemmessage.js +0 -15
- package/esm/models/internchattextpart.d.ts +0 -24
- package/esm/models/internchattextpart.js +0 -19
- package/esm/models/internchattoolcall.d.ts +0 -30
- package/esm/models/internchattoolcall.js +0 -23
- package/esm/models/internchattoolcallfunction.d.ts +0 -24
- package/esm/models/internchattoolcallfunction.js +0 -20
- package/esm/models/internchattoolmessage.d.ts +0 -23
- package/esm/models/internchattoolmessage.js +0 -21
- package/esm/models/internchatusage.d.ts +0 -24
- package/esm/models/internchatusage.js +0 -27
- package/esm/models/internchatusermessage.d.ts +0 -21
- package/esm/models/internchatusermessage.js +0 -15
- package/esm/models/internconnection.d.ts +0 -118
- package/esm/models/internconnection.js +0 -105
- package/esm/models/internconnectionlist.d.ts +0 -11
- package/esm/models/internconnectionlist.js +0 -15
- package/esm/models/interndaemonaccess.d.ts +0 -24
- package/esm/models/interndaemonaccess.js +0 -23
- package/esm/models/interninvokeacceptedresponse.d.ts +0 -34
- package/esm/models/interninvokeacceptedresponse.js +0 -30
- package/esm/models/interninvokerequest.d.ts +0 -23
- package/esm/models/interninvokerequest.js +0 -19
- package/esm/models/internlifecycleerror.d.ts +0 -23
- package/esm/models/internlifecycleerror.js +0 -32
- package/esm/models/internlistresponse.d.ts +0 -22
- package/esm/models/internlistresponse.js +0 -23
- package/esm/models/operations/createintern.d.ts +0 -61
- package/esm/models/operations/createintern.js +0 -25
- package/esm/models/operations/createinternchatcompletion.d.ts +0 -77
- package/esm/models/operations/createinternchatcompletion.js +0 -71
- package/esm/models/operations/deleteintern.d.ts +0 -61
- package/esm/models/operations/deleteintern.js +0 -24
- package/esm/models/operations/getintern.d.ts +0 -58
- package/esm/models/operations/getintern.js +0 -21
- package/esm/models/operations/getinternconnections.d.ts +0 -58
- package/esm/models/operations/getinternconnections.js +0 -21
- package/esm/models/operations/getinterndaemon.d.ts +0 -58
- package/esm/models/operations/getinterndaemon.js +0 -21
- package/esm/models/operations/getinterndaemonaccess.d.ts +0 -58
- package/esm/models/operations/getinterndaemonaccess.js +0 -21
- package/esm/models/operations/getinternicon.d.ts +0 -63
- package/esm/models/operations/getinternicon.js +0 -22
- package/esm/models/operations/invokeintern.d.ts +0 -72
- package/esm/models/operations/invokeintern.js +0 -38
- package/esm/models/operations/listinterns.d.ts +0 -87
- package/esm/models/operations/listinterns.js +0 -40
- package/esm/models/operations/provisionintern.d.ts +0 -58
- package/esm/models/operations/provisionintern.js +0 -21
- package/esm/models/operations/signinterndaemonaccessrequest.d.ts +0 -72
- package/esm/models/operations/signinterndaemonaccessrequest.js +0 -38
- package/esm/models/operations/signinterndaemonrequest.d.ts +0 -72
- package/esm/models/operations/signinterndaemonrequest.js +0 -38
- package/esm/models/operations/suspendintern.d.ts +0 -58
- package/esm/models/operations/suspendintern.js +0 -21
- package/esm/models/operations/updateintern.d.ts +0 -61
- package/esm/models/operations/updateintern.js +0 -24
- package/esm/models/provisioninternresponse.d.ts +0 -10
- package/esm/models/provisioninternresponse.js +0 -14
- package/esm/models/signinterndaemonrequest.d.ts +0 -54
- package/esm/models/signinterndaemonrequest.js +0 -30
- package/esm/models/signinterndaemonresponse.d.ts +0 -32
- package/esm/models/signinterndaemonresponse.js +0 -27
- package/esm/models/suspendinternresponse.d.ts +0 -10
- package/esm/models/suspendinternresponse.js +0 -14
- package/esm/models/updateinternrequest.d.ts +0 -33
- package/esm/models/updateinternrequest.js +0 -16
- package/esm/sdk/interns.d.ts +0 -143
- package/esm/sdk/interns.js +0 -163
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
import { InternChatToolCallFunction } from "./internchattoolcallfunction.js";
|
|
6
|
-
export declare const InternChatToolCallType: {
|
|
7
|
-
readonly Function: "function";
|
|
8
|
-
};
|
|
9
|
-
export type InternChatToolCallType = ClosedEnum<typeof InternChatToolCallType>;
|
|
10
|
-
/**
|
|
11
|
-
* An `openrouter.provide_input` request. The run pauses on the daemon until a `tool` message answers it, the caller cancels it, or its interaction deadline passes.
|
|
12
|
-
*/
|
|
13
|
-
export type InternChatToolCall = {
|
|
14
|
-
/**
|
|
15
|
-
* The single tool this endpoint calls, asking the caller for input.
|
|
16
|
-
*/
|
|
17
|
-
function: InternChatToolCallFunction;
|
|
18
|
-
/**
|
|
19
|
-
* The interaction id. Send it back as `tool_call_id` on the `tool` message that answers it.
|
|
20
|
-
*/
|
|
21
|
-
id: string;
|
|
22
|
-
index: number;
|
|
23
|
-
type: InternChatToolCallType;
|
|
24
|
-
};
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const InternChatToolCallType$inboundSchema: z.ZodEnum<typeof InternChatToolCallType>;
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const InternChatToolCall$inboundSchema: z.ZodType<InternChatToolCall, unknown>;
|
|
29
|
-
export declare function internChatToolCallFromJSON(jsonString: string): SafeParseResult<InternChatToolCall, SDKValidationError>;
|
|
30
|
-
//# sourceMappingURL=internchattoolcall.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: ab9593cbcfd4
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { InternChatToolCallFunction$inboundSchema, } from "./internchattoolcallfunction.js";
|
|
8
|
-
export const InternChatToolCallType = {
|
|
9
|
-
Function: "function",
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const InternChatToolCallType$inboundSchema = z.enum(InternChatToolCallType);
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const InternChatToolCall$inboundSchema = z.object({
|
|
15
|
-
function: InternChatToolCallFunction$inboundSchema,
|
|
16
|
-
id: z.string(),
|
|
17
|
-
index: z.int(),
|
|
18
|
-
type: InternChatToolCallType$inboundSchema,
|
|
19
|
-
});
|
|
20
|
-
export function internChatToolCallFromJSON(jsonString) {
|
|
21
|
-
return safeParse(jsonString, (x) => InternChatToolCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternChatToolCall' from JSON`);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=internchattoolcall.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const InternChatToolCallFunctionName: {
|
|
6
|
-
readonly OpenrouterProvideInput: "openrouter.provide_input";
|
|
7
|
-
};
|
|
8
|
-
export type InternChatToolCallFunctionName = ClosedEnum<typeof InternChatToolCallFunctionName>;
|
|
9
|
-
/**
|
|
10
|
-
* The single tool this endpoint calls, asking the caller for input.
|
|
11
|
-
*/
|
|
12
|
-
export type InternChatToolCallFunction = {
|
|
13
|
-
/**
|
|
14
|
-
* A JSON object string describing the interaction. A permission request is `{"kind":"permission","operation":<tool name or null>,"options":[<permission option kinds>]}`. A question is `{"kind":"elicitation","message":<question>,"fields":[<field descriptors>]}`.
|
|
15
|
-
*/
|
|
16
|
-
arguments: string;
|
|
17
|
-
name: InternChatToolCallFunctionName;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const InternChatToolCallFunctionName$inboundSchema: z.ZodEnum<typeof InternChatToolCallFunctionName>;
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const InternChatToolCallFunction$inboundSchema: z.ZodType<InternChatToolCallFunction, unknown>;
|
|
23
|
-
export declare function internChatToolCallFunctionFromJSON(jsonString: string): SafeParseResult<InternChatToolCallFunction, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=internchattoolcallfunction.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 5a9b88a1d80e
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
export const InternChatToolCallFunctionName = {
|
|
8
|
-
OpenrouterProvideInput: "openrouter.provide_input",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const InternChatToolCallFunctionName$inboundSchema = z.enum(InternChatToolCallFunctionName);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const InternChatToolCallFunction$inboundSchema = z.object({
|
|
14
|
-
arguments: z.string(),
|
|
15
|
-
name: InternChatToolCallFunctionName$inboundSchema,
|
|
16
|
-
});
|
|
17
|
-
export function internChatToolCallFunctionFromJSON(jsonString) {
|
|
18
|
-
return safeParse(jsonString, (x) => InternChatToolCallFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternChatToolCallFunction' from JSON`);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=internchattoolcallfunction.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { InternChatMessageContent, InternChatMessageContent$Outbound } from "./internchatmessagecontent.js";
|
|
3
|
-
/**
|
|
4
|
-
* The answer to an `openrouter.provide_input` tool call. `tool_call_id` is the streamed tool call id and `session_id` must name the same session. For a permission, `content` is one of the offered option kinds (`allow_once`, `allow_always`, `reject_once`, `reject_always`) or `cancel`. For a question (elicitation), `content` is a JSON object string with `action` (`accept`, `decline` or `cancel`) and, for `accept`, `content` holding the field values. The answer is delivered to the run that asked. It never starts a new run.
|
|
5
|
-
*/
|
|
6
|
-
export type InternChatToolMessage = {
|
|
7
|
-
/**
|
|
8
|
-
* Message text as a string or a list of text parts. Assistant history may carry null. Only the last message is read; earlier messages are accepted so ordinary clients can resend history.
|
|
9
|
-
*/
|
|
10
|
-
content: InternChatMessageContent | null;
|
|
11
|
-
role: "tool";
|
|
12
|
-
toolCallId: string;
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type InternChatToolMessage$Outbound = {
|
|
16
|
-
content: InternChatMessageContent$Outbound | null;
|
|
17
|
-
role: "tool";
|
|
18
|
-
tool_call_id: string;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const InternChatToolMessage$outboundSchema: z.ZodType<InternChatToolMessage$Outbound, InternChatToolMessage>;
|
|
22
|
-
export declare function internChatToolMessageToJSON(internChatToolMessage: InternChatToolMessage): string;
|
|
23
|
-
//# sourceMappingURL=internchattoolmessage.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 8ef92162c037
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { InternChatMessageContent$outboundSchema, } from "./internchatmessagecontent.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const InternChatToolMessage$outboundSchema = z.object({
|
|
10
|
-
content: z.nullable(InternChatMessageContent$outboundSchema),
|
|
11
|
-
role: z.literal("tool"),
|
|
12
|
-
toolCallId: z.string(),
|
|
13
|
-
}).transform((v) => {
|
|
14
|
-
return remap$(v, {
|
|
15
|
-
toolCallId: "tool_call_id",
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
export function internChatToolMessageToJSON(internChatToolMessage) {
|
|
19
|
-
return JSON.stringify(InternChatToolMessage$outboundSchema.parse(internChatToolMessage));
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=internchattoolmessage.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
import { InternChatPromptTokensDetails } from "./internchatprompttokensdetails.js";
|
|
5
|
-
/**
|
|
6
|
-
* Token usage for the run as the daemon reported it, on the final chunk before `[DONE]`. `null` when the daemon reported none, and always `null` after `tool_calls` because the turn is not over.
|
|
7
|
-
*/
|
|
8
|
-
export type InternChatUsage = {
|
|
9
|
-
completionTokens: number;
|
|
10
|
-
/**
|
|
11
|
-
* The cost of the run in USD, when the daemon reported one.
|
|
12
|
-
*/
|
|
13
|
-
cost?: number | undefined;
|
|
14
|
-
promptTokens: number;
|
|
15
|
-
/**
|
|
16
|
-
* Prompt tokens served from cache, when the daemon reported them.
|
|
17
|
-
*/
|
|
18
|
-
promptTokensDetails?: InternChatPromptTokensDetails | undefined;
|
|
19
|
-
totalTokens: number;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const InternChatUsage$inboundSchema: z.ZodType<InternChatUsage, unknown>;
|
|
23
|
-
export declare function internChatUsageFromJSON(jsonString: string): SafeParseResult<InternChatUsage, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=internchatusage.d.ts.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 49d346597315
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { InternChatPromptTokensDetails$inboundSchema, } from "./internchatprompttokensdetails.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const InternChatUsage$inboundSchema = z.object({
|
|
11
|
-
completion_tokens: z.int(),
|
|
12
|
-
cost: z.number().optional(),
|
|
13
|
-
prompt_tokens: z.int(),
|
|
14
|
-
prompt_tokens_details: InternChatPromptTokensDetails$inboundSchema.optional(),
|
|
15
|
-
total_tokens: z.int(),
|
|
16
|
-
}).transform((v) => {
|
|
17
|
-
return remap$(v, {
|
|
18
|
-
"completion_tokens": "completionTokens",
|
|
19
|
-
"prompt_tokens": "promptTokens",
|
|
20
|
-
"prompt_tokens_details": "promptTokensDetails",
|
|
21
|
-
"total_tokens": "totalTokens",
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
export function internChatUsageFromJSON(jsonString) {
|
|
25
|
-
return safeParse(jsonString, (x) => InternChatUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternChatUsage' from JSON`);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=internchatusage.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { InternChatMessageContent, InternChatMessageContent$Outbound } from "./internchatmessagecontent.js";
|
|
3
|
-
/**
|
|
4
|
-
* A user message. When it is the last message its text is the prompt for a new run, at most 32000 characters.
|
|
5
|
-
*/
|
|
6
|
-
export type InternChatUserMessage = {
|
|
7
|
-
/**
|
|
8
|
-
* Message text as a string or a list of text parts. Assistant history may carry null. Only the last message is read; earlier messages are accepted so ordinary clients can resend history.
|
|
9
|
-
*/
|
|
10
|
-
content: InternChatMessageContent | null;
|
|
11
|
-
role: "user";
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type InternChatUserMessage$Outbound = {
|
|
15
|
-
content: InternChatMessageContent$Outbound | null;
|
|
16
|
-
role: "user";
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const InternChatUserMessage$outboundSchema: z.ZodType<InternChatUserMessage$Outbound, InternChatUserMessage>;
|
|
20
|
-
export declare function internChatUserMessageToJSON(internChatUserMessage: InternChatUserMessage): string;
|
|
21
|
-
//# sourceMappingURL=internchatusermessage.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 6d3909ea9433
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { InternChatMessageContent$outboundSchema, } from "./internchatmessagecontent.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const InternChatUserMessage$outboundSchema = z.object({
|
|
9
|
-
content: z.nullable(InternChatMessageContent$outboundSchema),
|
|
10
|
-
role: z.literal("user"),
|
|
11
|
-
});
|
|
12
|
-
export function internChatUserMessageToJSON(internChatUserMessage) {
|
|
13
|
-
return JSON.stringify(InternChatUserMessage$outboundSchema.parse(internChatUserMessage));
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=internchatusermessage.js.map
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
7
|
-
*/
|
|
8
|
-
export declare const InternConnectionScope: {
|
|
9
|
-
readonly Workspace: "workspace";
|
|
10
|
-
readonly Yours: "yours";
|
|
11
|
-
readonly Shared: "shared";
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
15
|
-
*/
|
|
16
|
-
export type InternConnectionScope = OpenEnum<typeof InternConnectionScope>;
|
|
17
|
-
export type Account = {
|
|
18
|
-
/**
|
|
19
|
-
* Whose account it acts as, when known.
|
|
20
|
-
*/
|
|
21
|
-
actsAs: string | null;
|
|
22
|
-
isYourAccountLinked: boolean | null;
|
|
23
|
-
note: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
26
|
-
*/
|
|
27
|
-
scope: InternConnectionScope;
|
|
28
|
-
};
|
|
29
|
-
export declare const Kind: {
|
|
30
|
-
readonly Slack: "slack";
|
|
31
|
-
readonly Github: "github";
|
|
32
|
-
readonly Google: "google";
|
|
33
|
-
readonly Mcp: "mcp";
|
|
34
|
-
};
|
|
35
|
-
export type Kind = OpenEnum<typeof Kind>;
|
|
36
|
-
/**
|
|
37
|
-
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
38
|
-
*/
|
|
39
|
-
export declare const OffReason: {
|
|
40
|
-
readonly SwitchedOff: "switched_off";
|
|
41
|
-
readonly Disabled: "disabled";
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
45
|
-
*/
|
|
46
|
-
export type OffReason = OpenEnum<typeof OffReason>;
|
|
47
|
-
export type Server = {
|
|
48
|
-
host: string | null;
|
|
49
|
-
surface: string;
|
|
50
|
-
transport: string;
|
|
51
|
-
url: string | null;
|
|
52
|
-
};
|
|
53
|
-
export declare const StateEnum: {
|
|
54
|
-
readonly Connected: "connected";
|
|
55
|
-
readonly NeedsReconnect: "needs_reconnect";
|
|
56
|
-
readonly NotTested: "not_tested";
|
|
57
|
-
readonly Error: "error";
|
|
58
|
-
};
|
|
59
|
-
export type StateEnum = OpenEnum<typeof StateEnum>;
|
|
60
|
-
export type InternConnectionStatus = {
|
|
61
|
-
reason: string | null;
|
|
62
|
-
state: StateEnum;
|
|
63
|
-
};
|
|
64
|
-
export type InternConnection = {
|
|
65
|
-
account: Account;
|
|
66
|
-
/**
|
|
67
|
-
* Stable id: the credential id of an MCP server, else the kind (`slack`, `github`, `google`).
|
|
68
|
-
*/
|
|
69
|
-
id: string;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the intern reaches it now.
|
|
72
|
-
*/
|
|
73
|
-
isEnabled: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Scoped to this intern rather than shared by the workspace.
|
|
76
|
-
*/
|
|
77
|
-
isInternOnly: boolean;
|
|
78
|
-
kind: Kind;
|
|
79
|
-
/**
|
|
80
|
-
* The name the intern's MCP config keys the server by; null when it is not an MCP server or is off.
|
|
81
|
-
*/
|
|
82
|
-
mcpServerName: string | null;
|
|
83
|
-
/**
|
|
84
|
-
* Display name.
|
|
85
|
-
*/
|
|
86
|
-
name: string;
|
|
87
|
-
/**
|
|
88
|
-
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
89
|
-
*/
|
|
90
|
-
offReason: OffReason | null;
|
|
91
|
-
server: Server | null;
|
|
92
|
-
status: InternConnectionStatus;
|
|
93
|
-
/**
|
|
94
|
-
* Tools found by the last successful test.
|
|
95
|
-
*/
|
|
96
|
-
toolCount: number | null;
|
|
97
|
-
};
|
|
98
|
-
/** @internal */
|
|
99
|
-
export declare const InternConnectionScope$inboundSchema: z.ZodType<InternConnectionScope, unknown>;
|
|
100
|
-
/** @internal */
|
|
101
|
-
export declare const Account$inboundSchema: z.ZodType<Account, unknown>;
|
|
102
|
-
export declare function accountFromJSON(jsonString: string): SafeParseResult<Account, SDKValidationError>;
|
|
103
|
-
/** @internal */
|
|
104
|
-
export declare const Kind$inboundSchema: z.ZodType<Kind, unknown>;
|
|
105
|
-
/** @internal */
|
|
106
|
-
export declare const OffReason$inboundSchema: z.ZodType<OffReason, unknown>;
|
|
107
|
-
/** @internal */
|
|
108
|
-
export declare const Server$inboundSchema: z.ZodType<Server, unknown>;
|
|
109
|
-
export declare function serverFromJSON(jsonString: string): SafeParseResult<Server, SDKValidationError>;
|
|
110
|
-
/** @internal */
|
|
111
|
-
export declare const StateEnum$inboundSchema: z.ZodType<StateEnum, unknown>;
|
|
112
|
-
/** @internal */
|
|
113
|
-
export declare const InternConnectionStatus$inboundSchema: z.ZodType<InternConnectionStatus, unknown>;
|
|
114
|
-
export declare function internConnectionStatusFromJSON(jsonString: string): SafeParseResult<InternConnectionStatus, SDKValidationError>;
|
|
115
|
-
/** @internal */
|
|
116
|
-
export declare const InternConnection$inboundSchema: z.ZodType<InternConnection, unknown>;
|
|
117
|
-
export declare function internConnectionFromJSON(jsonString: string): SafeParseResult<InternConnection, SDKValidationError>;
|
|
118
|
-
//# sourceMappingURL=internconnection.d.ts.map
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: c1d0989d7937
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import * as openEnums from "../types/enums.js";
|
|
9
|
-
/**
|
|
10
|
-
* `workspace` for a shared connection, `yours` for the key user's personal account, `shared` for a teammate's.
|
|
11
|
-
*/
|
|
12
|
-
export const InternConnectionScope = {
|
|
13
|
-
Workspace: "workspace",
|
|
14
|
-
Yours: "yours",
|
|
15
|
-
Shared: "shared",
|
|
16
|
-
};
|
|
17
|
-
export const Kind = {
|
|
18
|
-
Slack: "slack",
|
|
19
|
-
Github: "github",
|
|
20
|
-
Google: "google",
|
|
21
|
-
Mcp: "mcp",
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* `switched_off` for this intern, `disabled` for the whole workspace; null while on.
|
|
25
|
-
*/
|
|
26
|
-
export const OffReason = {
|
|
27
|
-
SwitchedOff: "switched_off",
|
|
28
|
-
Disabled: "disabled",
|
|
29
|
-
};
|
|
30
|
-
export const StateEnum = {
|
|
31
|
-
Connected: "connected",
|
|
32
|
-
NeedsReconnect: "needs_reconnect",
|
|
33
|
-
NotTested: "not_tested",
|
|
34
|
-
Error: "error",
|
|
35
|
-
};
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const InternConnectionScope$inboundSchema = openEnums.inboundSchema(InternConnectionScope);
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const Account$inboundSchema = z.object({
|
|
40
|
-
acts_as: z.nullable(z.string()),
|
|
41
|
-
is_your_account_linked: z.nullable(z.boolean()),
|
|
42
|
-
note: z.nullable(z.string()),
|
|
43
|
-
scope: InternConnectionScope$inboundSchema,
|
|
44
|
-
}).transform((v) => {
|
|
45
|
-
return remap$(v, {
|
|
46
|
-
"acts_as": "actsAs",
|
|
47
|
-
"is_your_account_linked": "isYourAccountLinked",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
export function accountFromJSON(jsonString) {
|
|
51
|
-
return safeParse(jsonString, (x) => Account$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Account' from JSON`);
|
|
52
|
-
}
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const Kind$inboundSchema = openEnums
|
|
55
|
-
.inboundSchema(Kind);
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const OffReason$inboundSchema = openEnums
|
|
58
|
-
.inboundSchema(OffReason);
|
|
59
|
-
/** @internal */
|
|
60
|
-
export const Server$inboundSchema = z.object({
|
|
61
|
-
host: z.nullable(z.string()),
|
|
62
|
-
surface: z.string(),
|
|
63
|
-
transport: z.string(),
|
|
64
|
-
url: z.nullable(z.string()),
|
|
65
|
-
});
|
|
66
|
-
export function serverFromJSON(jsonString) {
|
|
67
|
-
return safeParse(jsonString, (x) => Server$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Server' from JSON`);
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const StateEnum$inboundSchema = openEnums
|
|
71
|
-
.inboundSchema(StateEnum);
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const InternConnectionStatus$inboundSchema = z.object({
|
|
74
|
-
reason: z.nullable(z.string()),
|
|
75
|
-
state: StateEnum$inboundSchema,
|
|
76
|
-
});
|
|
77
|
-
export function internConnectionStatusFromJSON(jsonString) {
|
|
78
|
-
return safeParse(jsonString, (x) => InternConnectionStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnectionStatus' from JSON`);
|
|
79
|
-
}
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const InternConnection$inboundSchema = z.object({
|
|
82
|
-
account: z.lazy(() => Account$inboundSchema),
|
|
83
|
-
id: z.string(),
|
|
84
|
-
is_enabled: z.boolean(),
|
|
85
|
-
is_intern_only: z.boolean(),
|
|
86
|
-
kind: Kind$inboundSchema,
|
|
87
|
-
mcp_server_name: z.nullable(z.string()),
|
|
88
|
-
name: z.string(),
|
|
89
|
-
off_reason: z.nullable(OffReason$inboundSchema),
|
|
90
|
-
server: z.nullable(z.lazy(() => Server$inboundSchema)),
|
|
91
|
-
status: z.lazy(() => InternConnectionStatus$inboundSchema),
|
|
92
|
-
tool_count: z.nullable(z.int()),
|
|
93
|
-
}).transform((v) => {
|
|
94
|
-
return remap$(v, {
|
|
95
|
-
"is_enabled": "isEnabled",
|
|
96
|
-
"is_intern_only": "isInternOnly",
|
|
97
|
-
"mcp_server_name": "mcpServerName",
|
|
98
|
-
"off_reason": "offReason",
|
|
99
|
-
"tool_count": "toolCount",
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
export function internConnectionFromJSON(jsonString) {
|
|
103
|
-
return safeParse(jsonString, (x) => InternConnection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnection' from JSON`);
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=internconnection.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
import { InternConnection } from "./internconnection.js";
|
|
5
|
-
export type InternConnectionList = {
|
|
6
|
-
data: Array<InternConnection>;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const InternConnectionList$inboundSchema: z.ZodType<InternConnectionList, unknown>;
|
|
10
|
-
export declare function internConnectionListFromJSON(jsonString: string): SafeParseResult<InternConnectionList, SDKValidationError>;
|
|
11
|
-
//# sourceMappingURL=internconnectionlist.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: e3ed2abef547
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { InternConnection$inboundSchema, } from "./internconnection.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const InternConnectionList$inboundSchema = z.object({
|
|
10
|
-
data: z.array(InternConnection$inboundSchema),
|
|
11
|
-
});
|
|
12
|
-
export function internConnectionListFromJSON(jsonString) {
|
|
13
|
-
return safeParse(jsonString, (x) => InternConnectionList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternConnectionList' from JSON`);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=internconnectionlist.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
export type Viewer = {
|
|
5
|
-
/**
|
|
6
|
-
* The caller's Ori principals on this intern: `clerk:<user>`, and, when the grant carries `vault:read`, `slack:<team>:<user>` for each Slack account they linked to it. A session started by one of them in a one-to-one Slack DM is the caller's to see.
|
|
7
|
-
*/
|
|
8
|
-
principals: Array<string>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* The intern daemon's origin, the bearer `ori tui --host` sends to it as `ORI_DAEMON_TOKEN`, and who the caller is on the intern.
|
|
12
|
-
*/
|
|
13
|
-
export type InternDaemonAccess = {
|
|
14
|
-
origin: string;
|
|
15
|
-
token: string;
|
|
16
|
-
viewer: Viewer;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const Viewer$inboundSchema: z.ZodType<Viewer, unknown>;
|
|
20
|
-
export declare function viewerFromJSON(jsonString: string): SafeParseResult<Viewer, SDKValidationError>;
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const InternDaemonAccess$inboundSchema: z.ZodType<InternDaemonAccess, unknown>;
|
|
23
|
-
export declare function internDaemonAccessFromJSON(jsonString: string): SafeParseResult<InternDaemonAccess, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=interndaemonaccess.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 3e1c71908a89
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const Viewer$inboundSchema = z.object({
|
|
9
|
-
principals: z.array(z.string()),
|
|
10
|
-
});
|
|
11
|
-
export function viewerFromJSON(jsonString) {
|
|
12
|
-
return safeParse(jsonString, (x) => Viewer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Viewer' from JSON`);
|
|
13
|
-
}
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const InternDaemonAccess$inboundSchema = z.object({
|
|
16
|
-
origin: z.string(),
|
|
17
|
-
token: z.string(),
|
|
18
|
-
viewer: z.lazy(() => Viewer$inboundSchema),
|
|
19
|
-
});
|
|
20
|
-
export function internDaemonAccessFromJSON(jsonString) {
|
|
21
|
-
return safeParse(jsonString, (x) => InternDaemonAccess$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternDaemonAccess' from JSON`);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=interndaemonaccess.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* `started` when a new run began. `steered` when the session already had a run going and the prompt was delivered into it instead.
|
|
7
|
-
*/
|
|
8
|
-
export declare const InternInvokeAcceptedResponseStatus: {
|
|
9
|
-
readonly Started: "started";
|
|
10
|
-
readonly Steered: "steered";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* `started` when a new run began. `steered` when the session already had a run going and the prompt was delivered into it instead.
|
|
14
|
-
*/
|
|
15
|
-
export type InternInvokeAcceptedResponseStatus = OpenEnum<typeof InternInvokeAcceptedResponseStatus>;
|
|
16
|
-
/**
|
|
17
|
-
* The intern admitted the prompt. The run continues on the intern.
|
|
18
|
-
*/
|
|
19
|
-
export type InternInvokeAcceptedResponse = {
|
|
20
|
-
/**
|
|
21
|
-
* The session the run belongs to. Send it back to continue the conversation.
|
|
22
|
-
*/
|
|
23
|
-
sessionId: string;
|
|
24
|
-
/**
|
|
25
|
-
* `started` when a new run began. `steered` when the session already had a run going and the prompt was delivered into it instead.
|
|
26
|
-
*/
|
|
27
|
-
status: InternInvokeAcceptedResponseStatus;
|
|
28
|
-
};
|
|
29
|
-
/** @internal */
|
|
30
|
-
export declare const InternInvokeAcceptedResponseStatus$inboundSchema: z.ZodType<InternInvokeAcceptedResponseStatus, unknown>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const InternInvokeAcceptedResponse$inboundSchema: z.ZodType<InternInvokeAcceptedResponse, unknown>;
|
|
33
|
-
export declare function internInvokeAcceptedResponseFromJSON(jsonString: string): SafeParseResult<InternInvokeAcceptedResponse, SDKValidationError>;
|
|
34
|
-
//# sourceMappingURL=interninvokeacceptedresponse.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 4684252ebfd9
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import * as openEnums from "../types/enums.js";
|
|
9
|
-
/**
|
|
10
|
-
* `started` when a new run began. `steered` when the session already had a run going and the prompt was delivered into it instead.
|
|
11
|
-
*/
|
|
12
|
-
export const InternInvokeAcceptedResponseStatus = {
|
|
13
|
-
Started: "started",
|
|
14
|
-
Steered: "steered",
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const InternInvokeAcceptedResponseStatus$inboundSchema = openEnums.inboundSchema(InternInvokeAcceptedResponseStatus);
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const InternInvokeAcceptedResponse$inboundSchema = z.object({
|
|
20
|
-
session_id: z.string(),
|
|
21
|
-
status: InternInvokeAcceptedResponseStatus$inboundSchema,
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
"session_id": "sessionId",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
export function internInvokeAcceptedResponseFromJSON(jsonString) {
|
|
28
|
-
return safeParse(jsonString, (x) => InternInvokeAcceptedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternInvokeAcceptedResponse' from JSON`);
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=interninvokeacceptedresponse.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
/**
|
|
3
|
-
* A prompt to run on the intern without holding a connection open.
|
|
4
|
-
*/
|
|
5
|
-
export type InternInvokeRequest = {
|
|
6
|
-
/**
|
|
7
|
-
* The prompt for the run, at most 32000 characters.
|
|
8
|
-
*/
|
|
9
|
-
input: string;
|
|
10
|
-
/**
|
|
11
|
-
* The session to run in. Send the `session_id` from an earlier `202` to continue that conversation, for example to hand the intern a decision on a case it is working. Omit it to start a new session. Only a `session_id` this endpoint issued to the same caller on the same intern is accepted; any other is refused with `404`.
|
|
12
|
-
*/
|
|
13
|
-
sessionId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type InternInvokeRequest$Outbound = {
|
|
17
|
-
input: string;
|
|
18
|
-
session_id?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const InternInvokeRequest$outboundSchema: z.ZodType<InternInvokeRequest$Outbound, InternInvokeRequest>;
|
|
22
|
-
export declare function internInvokeRequestToJSON(internInvokeRequest: InternInvokeRequest): string;
|
|
23
|
-
//# sourceMappingURL=interninvokerequest.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 087aea86ca9d
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const InternInvokeRequest$outboundSchema = z.object({
|
|
9
|
-
input: z.string(),
|
|
10
|
-
sessionId: z.string().optional(),
|
|
11
|
-
}).transform((v) => {
|
|
12
|
-
return remap$(v, {
|
|
13
|
-
sessionId: "session_id",
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
export function internInvokeRequestToJSON(internInvokeRequest) {
|
|
17
|
-
return JSON.stringify(InternInvokeRequest$outboundSchema.parse(internInvokeRequest));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=interninvokerequest.js.map
|