@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.
Files changed (160) hide show
  1. package/esm/funcs/generationsGetGeneration.d.ts +1 -1
  2. package/esm/funcs/generationsGetGeneration.js +2 -2
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/models/errors/index.d.ts +0 -2
  6. package/esm/models/errors/index.js +0 -2
  7. package/esm/models/index.d.ts +0 -40
  8. package/esm/models/index.js +0 -40
  9. package/esm/models/operations/index.d.ts +0 -15
  10. package/esm/models/operations/index.js +0 -15
  11. package/esm/sdk/sdk.d.ts +0 -3
  12. package/esm/sdk/sdk.js +0 -4
  13. package/jsr.json +1 -1
  14. package/package.json +5 -5
  15. package/esm/funcs/internsChat.d.ts +0 -42
  16. package/esm/funcs/internsChat.js +0 -109
  17. package/esm/funcs/internsCreateIntern.d.ts +0 -21
  18. package/esm/funcs/internsCreateIntern.js +0 -103
  19. package/esm/funcs/internsDeleteIntern.d.ts +0 -21
  20. package/esm/funcs/internsDeleteIntern.js +0 -108
  21. package/esm/funcs/internsGetIntern.d.ts +0 -21
  22. package/esm/funcs/internsGetIntern.js +0 -105
  23. package/esm/funcs/internsGetInternConnections.d.ts +0 -21
  24. package/esm/funcs/internsGetInternConnections.js +0 -105
  25. package/esm/funcs/internsGetInternDaemon.d.ts +0 -21
  26. package/esm/funcs/internsGetInternDaemon.js +0 -105
  27. package/esm/funcs/internsGetInternDaemonAccess.d.ts +0 -23
  28. package/esm/funcs/internsGetInternDaemonAccess.js +0 -107
  29. package/esm/funcs/internsGetInternIcon.d.ts +0 -20
  30. package/esm/funcs/internsGetInternIcon.js +0 -109
  31. package/esm/funcs/internsInvoke.d.ts +0 -26
  32. package/esm/funcs/internsInvoke.js +0 -119
  33. package/esm/funcs/internsListInterns.d.ts +0 -21
  34. package/esm/funcs/internsListInterns.js +0 -107
  35. package/esm/funcs/internsProvisionIntern.d.ts +0 -21
  36. package/esm/funcs/internsProvisionIntern.js +0 -105
  37. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +0 -22
  38. package/esm/funcs/internsSignInternDaemonAccessRequest.js +0 -109
  39. package/esm/funcs/internsSignInternDaemonRequest.d.ts +0 -20
  40. package/esm/funcs/internsSignInternDaemonRequest.js +0 -109
  41. package/esm/funcs/internsSuspendIntern.d.ts +0 -21
  42. package/esm/funcs/internsSuspendIntern.js +0 -105
  43. package/esm/funcs/internsUpdateIntern.d.ts +0 -21
  44. package/esm/funcs/internsUpdateIntern.js +0 -108
  45. package/esm/models/createinternrequest.d.ts +0 -43
  46. package/esm/models/createinternrequest.js +0 -24
  47. package/esm/models/deleteinternrequest.d.ts +0 -18
  48. package/esm/models/deleteinternrequest.js +0 -18
  49. package/esm/models/deleteinternresponse.d.ts +0 -10
  50. package/esm/models/deleteinternresponse.js +0 -14
  51. package/esm/models/errors/internchaterrorresponse.d.ts +0 -31
  52. package/esm/models/errors/internchaterrorresponse.js +0 -35
  53. package/esm/models/errors/internlifecycleerror.d.ts +0 -25
  54. package/esm/models/errors/internlifecycleerror.js +0 -35
  55. package/esm/models/intern.d.ts +0 -120
  56. package/esm/models/intern.js +0 -74
  57. package/esm/models/internapprovalmode.d.ts +0 -16
  58. package/esm/models/internapprovalmode.js +0 -15
  59. package/esm/models/internchatassistantmessage.d.ts +0 -24
  60. package/esm/models/internchatassistantmessage.js +0 -22
  61. package/esm/models/internchatchoice.d.ts +0 -37
  62. package/esm/models/internchatchoice.js +0 -33
  63. package/esm/models/internchatcompletionchunk.d.ts +0 -48
  64. package/esm/models/internchatcompletionchunk.js +0 -34
  65. package/esm/models/internchatcompletionrequest.d.ts +0 -40
  66. package/esm/models/internchatcompletionrequest.js +0 -25
  67. package/esm/models/internchatdelta.d.ts +0 -24
  68. package/esm/models/internchatdelta.js +0 -28
  69. package/esm/models/internchatdevelopermessage.d.ts +0 -21
  70. package/esm/models/internchatdevelopermessage.js +0 -15
  71. package/esm/models/internchatechoedtoolcall.d.ts +0 -21
  72. package/esm/models/internchatechoedtoolcall.js +0 -15
  73. package/esm/models/internchatechoedtoolcallfunction.d.ts +0 -17
  74. package/esm/models/internchatechoedtoolcallfunction.js +0 -14
  75. package/esm/models/internchaterror.d.ts +0 -22
  76. package/esm/models/internchaterror.js +0 -17
  77. package/esm/models/internchaterrormetadata.d.ts +0 -48
  78. package/esm/models/internchaterrormetadata.js +0 -39
  79. package/esm/models/internchatmessage.d.ts +0 -16
  80. package/esm/models/internchatmessage.js +0 -22
  81. package/esm/models/internchatmessagecontent.d.ts +0 -12
  82. package/esm/models/internchatmessagecontent.js +0 -12
  83. package/esm/models/internchatprompttokensdetails.d.ts +0 -13
  84. package/esm/models/internchatprompttokensdetails.js +0 -19
  85. package/esm/models/internchatsteeredresponse.d.ts +0 -33
  86. package/esm/models/internchatsteeredresponse.js +0 -28
  87. package/esm/models/internchatstreamerror.d.ts +0 -22
  88. package/esm/models/internchatstreamerror.js +0 -17
  89. package/esm/models/internchatstreamingresponse.d.ts +0 -17
  90. package/esm/models/internchatstreamingresponse.js +0 -29
  91. package/esm/models/internchatsystemmessage.d.ts +0 -21
  92. package/esm/models/internchatsystemmessage.js +0 -15
  93. package/esm/models/internchattextpart.d.ts +0 -24
  94. package/esm/models/internchattextpart.js +0 -19
  95. package/esm/models/internchattoolcall.d.ts +0 -30
  96. package/esm/models/internchattoolcall.js +0 -23
  97. package/esm/models/internchattoolcallfunction.d.ts +0 -24
  98. package/esm/models/internchattoolcallfunction.js +0 -20
  99. package/esm/models/internchattoolmessage.d.ts +0 -23
  100. package/esm/models/internchattoolmessage.js +0 -21
  101. package/esm/models/internchatusage.d.ts +0 -24
  102. package/esm/models/internchatusage.js +0 -27
  103. package/esm/models/internchatusermessage.d.ts +0 -21
  104. package/esm/models/internchatusermessage.js +0 -15
  105. package/esm/models/internconnection.d.ts +0 -118
  106. package/esm/models/internconnection.js +0 -105
  107. package/esm/models/internconnectionlist.d.ts +0 -11
  108. package/esm/models/internconnectionlist.js +0 -15
  109. package/esm/models/interndaemonaccess.d.ts +0 -24
  110. package/esm/models/interndaemonaccess.js +0 -23
  111. package/esm/models/interninvokeacceptedresponse.d.ts +0 -34
  112. package/esm/models/interninvokeacceptedresponse.js +0 -30
  113. package/esm/models/interninvokerequest.d.ts +0 -23
  114. package/esm/models/interninvokerequest.js +0 -19
  115. package/esm/models/internlifecycleerror.d.ts +0 -23
  116. package/esm/models/internlifecycleerror.js +0 -32
  117. package/esm/models/internlistresponse.d.ts +0 -22
  118. package/esm/models/internlistresponse.js +0 -23
  119. package/esm/models/operations/createintern.d.ts +0 -61
  120. package/esm/models/operations/createintern.js +0 -25
  121. package/esm/models/operations/createinternchatcompletion.d.ts +0 -77
  122. package/esm/models/operations/createinternchatcompletion.js +0 -71
  123. package/esm/models/operations/deleteintern.d.ts +0 -61
  124. package/esm/models/operations/deleteintern.js +0 -24
  125. package/esm/models/operations/getintern.d.ts +0 -58
  126. package/esm/models/operations/getintern.js +0 -21
  127. package/esm/models/operations/getinternconnections.d.ts +0 -58
  128. package/esm/models/operations/getinternconnections.js +0 -21
  129. package/esm/models/operations/getinterndaemon.d.ts +0 -58
  130. package/esm/models/operations/getinterndaemon.js +0 -21
  131. package/esm/models/operations/getinterndaemonaccess.d.ts +0 -58
  132. package/esm/models/operations/getinterndaemonaccess.js +0 -21
  133. package/esm/models/operations/getinternicon.d.ts +0 -63
  134. package/esm/models/operations/getinternicon.js +0 -22
  135. package/esm/models/operations/invokeintern.d.ts +0 -72
  136. package/esm/models/operations/invokeintern.js +0 -38
  137. package/esm/models/operations/listinterns.d.ts +0 -87
  138. package/esm/models/operations/listinterns.js +0 -40
  139. package/esm/models/operations/provisionintern.d.ts +0 -58
  140. package/esm/models/operations/provisionintern.js +0 -21
  141. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +0 -72
  142. package/esm/models/operations/signinterndaemonaccessrequest.js +0 -38
  143. package/esm/models/operations/signinterndaemonrequest.d.ts +0 -72
  144. package/esm/models/operations/signinterndaemonrequest.js +0 -38
  145. package/esm/models/operations/suspendintern.d.ts +0 -58
  146. package/esm/models/operations/suspendintern.js +0 -21
  147. package/esm/models/operations/updateintern.d.ts +0 -61
  148. package/esm/models/operations/updateintern.js +0 -24
  149. package/esm/models/provisioninternresponse.d.ts +0 -10
  150. package/esm/models/provisioninternresponse.js +0 -14
  151. package/esm/models/signinterndaemonrequest.d.ts +0 -54
  152. package/esm/models/signinterndaemonrequest.js +0 -30
  153. package/esm/models/signinterndaemonresponse.d.ts +0 -32
  154. package/esm/models/signinterndaemonresponse.js +0 -27
  155. package/esm/models/suspendinternresponse.d.ts +0 -10
  156. package/esm/models/suspendinternresponse.js +0 -14
  157. package/esm/models/updateinternrequest.d.ts +0 -33
  158. package/esm/models/updateinternrequest.js +0 -16
  159. package/esm/sdk/interns.d.ts +0 -143
  160. package/esm/sdk/interns.js +0 -163
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: fa6bfb2ce12b
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 { SignInternDaemonRequest$outboundSchema as models_SignInternDaemonRequest$outboundSchema } from "../signinterndaemonrequest.js"; import { SignInternDaemonResponse$inboundSchema as models_SignInternDaemonResponse$inboundSchema } from "../signinterndaemonresponse.js";
9
- /** @internal */
10
- export const SignInternDaemonRequestRequest$outboundSchema = z.object({
11
- httpReferer: z.string().optional(),
12
- appTitle: z.string().optional(),
13
- appCategories: z.string().optional(),
14
- internId: z.string(),
15
- signInternDaemonRequest: models_SignInternDaemonRequest$outboundSchema,
16
- }).transform((v) => {
17
- return remap$(v, {
18
- httpReferer: "HTTP-Referer",
19
- signInternDaemonRequest: "SignInternDaemonRequest",
20
- });
21
- });
22
- export function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest) {
23
- return JSON.stringify(SignInternDaemonRequestRequest$outboundSchema.parse(signInternDaemonRequestRequest));
24
- }
25
- /** @internal */
26
- export const SignInternDaemonRequestResponse$inboundSchema = z.object({
27
- Headers: z.record(z.string(), z.array(z.string())).default({}),
28
- Result: models_SignInternDaemonResponse$inboundSchema,
29
- }).transform((v) => {
30
- return remap$(v, {
31
- "Headers": "headers",
32
- "Result": "result",
33
- });
34
- });
35
- export function signInternDaemonRequestResponseFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => SignInternDaemonRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonRequestResponse' from JSON`);
37
- }
38
- //# sourceMappingURL=signinterndaemonrequest.js.map
@@ -1,58 +0,0 @@
1
- import * as z from "zod/v4";
2
- export type SuspendInternGlobals = {
3
- /**
4
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
- *
6
- * @remarks
7
- * This is used to track API usage per application.
8
- */
9
- httpReferer?: string | undefined;
10
- /**
11
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
- *
13
- * @remarks
14
- */
15
- appTitle?: string | undefined;
16
- /**
17
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
- *
19
- * @remarks
20
- */
21
- appCategories?: string | undefined;
22
- };
23
- export type SuspendInternRequest = {
24
- /**
25
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
- *
27
- * @remarks
28
- * This is used to track API usage per application.
29
- */
30
- httpReferer?: string | undefined;
31
- /**
32
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
- *
34
- * @remarks
35
- */
36
- appTitle?: string | undefined;
37
- /**
38
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
- *
40
- * @remarks
41
- */
42
- appCategories?: string | undefined;
43
- /**
44
- * ID of an intern visible to the authenticated API key.
45
- */
46
- internId: string;
47
- };
48
- /** @internal */
49
- export type SuspendInternRequest$Outbound = {
50
- "HTTP-Referer"?: string | undefined;
51
- appTitle?: string | undefined;
52
- appCategories?: string | undefined;
53
- internId: string;
54
- };
55
- /** @internal */
56
- export declare const SuspendInternRequest$outboundSchema: z.ZodType<SuspendInternRequest$Outbound, SuspendInternRequest>;
57
- export declare function suspendInternRequestToJSON(suspendInternRequest: SuspendInternRequest): string;
58
- //# sourceMappingURL=suspendintern.d.ts.map
@@ -1,21 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 189ee7e2d8bb
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- /** @internal */
8
- export const SuspendInternRequest$outboundSchema = z.object({
9
- httpReferer: z.string().optional(),
10
- appTitle: z.string().optional(),
11
- appCategories: z.string().optional(),
12
- internId: z.string(),
13
- }).transform((v) => {
14
- return remap$(v, {
15
- httpReferer: "HTTP-Referer",
16
- });
17
- });
18
- export function suspendInternRequestToJSON(suspendInternRequest) {
19
- return JSON.stringify(SuspendInternRequest$outboundSchema.parse(suspendInternRequest));
20
- }
21
- //# sourceMappingURL=suspendintern.js.map
@@ -1,61 +0,0 @@
1
- import * as z from "zod/v4";
2
- import * as models from "../index.js";
3
- export type UpdateInternGlobals = {
4
- /**
5
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
6
- *
7
- * @remarks
8
- * This is used to track API usage per application.
9
- */
10
- httpReferer?: string | undefined;
11
- /**
12
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
13
- *
14
- * @remarks
15
- */
16
- appTitle?: string | undefined;
17
- /**
18
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
19
- *
20
- * @remarks
21
- */
22
- appCategories?: string | undefined;
23
- };
24
- export type UpdateInternRequest = {
25
- /**
26
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
27
- *
28
- * @remarks
29
- * This is used to track API usage per application.
30
- */
31
- httpReferer?: string | undefined;
32
- /**
33
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
34
- *
35
- * @remarks
36
- */
37
- appTitle?: string | undefined;
38
- /**
39
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
40
- *
41
- * @remarks
42
- */
43
- appCategories?: string | undefined;
44
- /**
45
- * ID of an intern visible to the authenticated API key.
46
- */
47
- internId: string;
48
- updateInternRequest: models.UpdateInternRequest;
49
- };
50
- /** @internal */
51
- export type UpdateInternRequest$Outbound = {
52
- "HTTP-Referer"?: string | undefined;
53
- appTitle?: string | undefined;
54
- appCategories?: string | undefined;
55
- internId: string;
56
- UpdateInternRequest: models.UpdateInternRequest$Outbound;
57
- };
58
- /** @internal */
59
- export declare const UpdateInternRequest$outboundSchema: z.ZodType<UpdateInternRequest$Outbound, UpdateInternRequest>;
60
- export declare function updateInternRequestToJSON(updateInternRequest: UpdateInternRequest): string;
61
- //# sourceMappingURL=updateintern.d.ts.map
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: fb05d7710bfa
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { UpdateInternRequest$outboundSchema as models_UpdateInternRequest$outboundSchema } from "../updateinternrequest.js";
8
- /** @internal */
9
- export const UpdateInternRequest$outboundSchema = z.object({
10
- httpReferer: z.string().optional(),
11
- appTitle: z.string().optional(),
12
- appCategories: z.string().optional(),
13
- internId: z.string(),
14
- updateInternRequest: models_UpdateInternRequest$outboundSchema,
15
- }).transform((v) => {
16
- return remap$(v, {
17
- httpReferer: "HTTP-Referer",
18
- updateInternRequest: "UpdateInternRequest",
19
- });
20
- });
21
- export function updateInternRequestToJSON(updateInternRequest) {
22
- return JSON.stringify(UpdateInternRequest$outboundSchema.parse(updateInternRequest));
23
- }
24
- //# sourceMappingURL=updateintern.js.map
@@ -1,10 +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 ProvisionInternResponse = {
5
- provisioning: true;
6
- };
7
- /** @internal */
8
- export declare const ProvisionInternResponse$inboundSchema: z.ZodType<ProvisionInternResponse, unknown>;
9
- export declare function provisionInternResponseFromJSON(jsonString: string): SafeParseResult<ProvisionInternResponse, SDKValidationError>;
10
- //# sourceMappingURL=provisioninternresponse.d.ts.map
@@ -1,14 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 43ed2389f509
4
- */
5
- import * as z from "zod/v4";
6
- import { safeParse } from "../lib/schemas.js";
7
- /** @internal */
8
- export const ProvisionInternResponse$inboundSchema = z.object({
9
- provisioning: z.literal(true),
10
- });
11
- export function provisionInternResponseFromJSON(jsonString) {
12
- return safeParse(jsonString, (x) => ProvisionInternResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProvisionInternResponse' from JSON`);
13
- }
14
- //# sourceMappingURL=provisioninternresponse.js.map
@@ -1,54 +0,0 @@
1
- import * as z from "zod/v4";
2
- import { ClosedEnum } from "../types/enums.js";
3
- /**
4
- * The HTTP method of the daemon request.
5
- */
6
- export declare const SignInternDaemonRequestMethod: {
7
- readonly Post: "POST";
8
- };
9
- /**
10
- * The HTTP method of the daemon request.
11
- */
12
- export type SignInternDaemonRequestMethod = ClosedEnum<typeof SignInternDaemonRequestMethod>;
13
- /**
14
- * The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
15
- */
16
- export type Route = {
17
- /**
18
- * The HTTP method of the daemon request.
19
- */
20
- method: SignInternDaemonRequestMethod;
21
- /**
22
- * The daemon request path, percent-encoded as sent, without origin or query. The route-bound proof admits only this path.
23
- */
24
- path: string;
25
- };
26
- export type SignInternDaemonRequest = {
27
- /**
28
- * Lower-case hex SHA-256 of the exact bytes the CLI will send as the daemon request body.
29
- */
30
- bodySha256: string;
31
- /**
32
- * The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
33
- */
34
- route?: Route | undefined;
35
- };
36
- /** @internal */
37
- export declare const SignInternDaemonRequestMethod$outboundSchema: z.ZodEnum<typeof SignInternDaemonRequestMethod>;
38
- /** @internal */
39
- export type Route$Outbound = {
40
- method: string;
41
- path: string;
42
- };
43
- /** @internal */
44
- export declare const Route$outboundSchema: z.ZodType<Route$Outbound, Route>;
45
- export declare function routeToJSON(route: Route): string;
46
- /** @internal */
47
- export type SignInternDaemonRequest$Outbound = {
48
- bodySha256: string;
49
- route?: Route$Outbound | undefined;
50
- };
51
- /** @internal */
52
- export declare const SignInternDaemonRequest$outboundSchema: z.ZodType<SignInternDaemonRequest$Outbound, SignInternDaemonRequest>;
53
- export declare function signInternDaemonRequestToJSON(signInternDaemonRequest: SignInternDaemonRequest): string;
54
- //# sourceMappingURL=signinterndaemonrequest.d.ts.map
@@ -1,30 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 2a823896a299
4
- */
5
- import * as z from "zod/v4";
6
- /**
7
- * The HTTP method of the daemon request.
8
- */
9
- export const SignInternDaemonRequestMethod = {
10
- Post: "POST",
11
- };
12
- /** @internal */
13
- export const SignInternDaemonRequestMethod$outboundSchema = z.enum(SignInternDaemonRequestMethod);
14
- /** @internal */
15
- export const Route$outboundSchema = z.object({
16
- method: SignInternDaemonRequestMethod$outboundSchema,
17
- path: z.string(),
18
- });
19
- export function routeToJSON(route) {
20
- return JSON.stringify(Route$outboundSchema.parse(route));
21
- }
22
- /** @internal */
23
- export const SignInternDaemonRequest$outboundSchema = z.object({
24
- bodySha256: z.string(),
25
- route: z.lazy(() => Route$outboundSchema).optional(),
26
- });
27
- export function signInternDaemonRequestToJSON(signInternDaemonRequest) {
28
- return JSON.stringify(SignInternDaemonRequest$outboundSchema.parse(signInternDaemonRequest));
29
- }
30
- //# sourceMappingURL=signinterndaemonrequest.js.map
@@ -1,32 +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
- /**
5
- * Headers the CLI copies onto the daemon request so the sidecar can verify who is asking.
6
- */
7
- export type SignInternDaemonResponse = {
8
- /**
9
- * Present with `x-ori-invoke-signature-v2`: the single-use id that proof is bound to.
10
- */
11
- xOriInvokeNonce?: string | undefined;
12
- /**
13
- * Base64 Ed25519 signature over the intern id, timestamp, user and body digest.
14
- */
15
- xOriInvokeSignature: string;
16
- /**
17
- * Present when the request named a `route`: Base64 Ed25519 signature over the intern id, timestamp, nonce, user, method, path and body digest. The intern accepts it once.
18
- */
19
- xOriInvokeSignatureV2?: string | undefined;
20
- /**
21
- * Unix seconds at signing; the daemon refuses proofs older than its window.
22
- */
23
- xOriInvokeTimestamp: string;
24
- /**
25
- * The verified OAuth subject the proof names. Never taken from the request.
26
- */
27
- xOriInvokeUser: string;
28
- };
29
- /** @internal */
30
- export declare const SignInternDaemonResponse$inboundSchema: z.ZodType<SignInternDaemonResponse, unknown>;
31
- export declare function signInternDaemonResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonResponse, SDKValidationError>;
32
- //# sourceMappingURL=signinterndaemonresponse.d.ts.map
@@ -1,27 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 255ec3cd7651
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
- /** @internal */
9
- export const SignInternDaemonResponse$inboundSchema = z.object({
10
- "x-ori-invoke-nonce": z.string().optional(),
11
- "x-ori-invoke-signature": z.string(),
12
- "x-ori-invoke-signature-v2": z.string().optional(),
13
- "x-ori-invoke-timestamp": z.string(),
14
- "x-ori-invoke-user": z.string(),
15
- }).transform((v) => {
16
- return remap$(v, {
17
- "x-ori-invoke-nonce": "xOriInvokeNonce",
18
- "x-ori-invoke-signature": "xOriInvokeSignature",
19
- "x-ori-invoke-signature-v2": "xOriInvokeSignatureV2",
20
- "x-ori-invoke-timestamp": "xOriInvokeTimestamp",
21
- "x-ori-invoke-user": "xOriInvokeUser",
22
- });
23
- });
24
- export function signInternDaemonResponseFromJSON(jsonString) {
25
- return safeParse(jsonString, (x) => SignInternDaemonResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonResponse' from JSON`);
26
- }
27
- //# sourceMappingURL=signinterndaemonresponse.js.map
@@ -1,10 +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 SuspendInternResponse = {
5
- suspended: true;
6
- };
7
- /** @internal */
8
- export declare const SuspendInternResponse$inboundSchema: z.ZodType<SuspendInternResponse, unknown>;
9
- export declare function suspendInternResponseFromJSON(jsonString: string): SafeParseResult<SuspendInternResponse, SDKValidationError>;
10
- //# sourceMappingURL=suspendinternresponse.d.ts.map
@@ -1,14 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 1a88b3e1ceb1
4
- */
5
- import * as z from "zod/v4";
6
- import { safeParse } from "../lib/schemas.js";
7
- /** @internal */
8
- export const SuspendInternResponse$inboundSchema = z.object({
9
- suspended: z.literal(true),
10
- });
11
- export function suspendInternResponseFromJSON(jsonString) {
12
- return safeParse(jsonString, (x) => SuspendInternResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SuspendInternResponse' from JSON`);
13
- }
14
- //# sourceMappingURL=suspendinternresponse.js.map
@@ -1,33 +0,0 @@
1
- import * as z from "zod/v4";
2
- /**
3
- * Lifecycle settings to change. Omitted fields stay unchanged and null clears a field.
4
- */
5
- export type UpdateInternRequest = {
6
- /**
7
- * New free-form description. Null clears it.
8
- */
9
- description?: string | null | undefined;
10
- /**
11
- * New standing instructions. Null clears them.
12
- */
13
- instructions?: string | null | undefined;
14
- /**
15
- * New OpenRouter model slug in `author/slug` form (an optional `:variant` suffix is accepted). Other shapes are refused with 400. Null restores the workspace default. Takes effect on the next provision: until then `GET` shows this configured model while chat chunks show the model the running intern reports.
16
- */
17
- model?: string | null | undefined;
18
- /**
19
- * New intern name, unique per creator within the workspace.
20
- */
21
- name?: string | undefined;
22
- };
23
- /** @internal */
24
- export type UpdateInternRequest$Outbound = {
25
- description?: string | null | undefined;
26
- instructions?: string | null | undefined;
27
- model?: string | null | undefined;
28
- name?: string | undefined;
29
- };
30
- /** @internal */
31
- export declare const UpdateInternRequest$outboundSchema: z.ZodType<UpdateInternRequest$Outbound, UpdateInternRequest>;
32
- export declare function updateInternRequestToJSON(updateInternRequest: UpdateInternRequest): string;
33
- //# sourceMappingURL=updateinternrequest.d.ts.map
@@ -1,16 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 8e76ee00847f
4
- */
5
- import * as z from "zod/v4";
6
- /** @internal */
7
- export const UpdateInternRequest$outboundSchema = z.object({
8
- description: z.nullable(z.string()).optional(),
9
- instructions: z.nullable(z.string()).optional(),
10
- model: z.nullable(z.string()).optional(),
11
- name: z.string().optional(),
12
- });
13
- export function updateInternRequestToJSON(updateInternRequest) {
14
- return JSON.stringify(UpdateInternRequest$outboundSchema.parse(updateInternRequest));
15
- }
16
- //# sourceMappingURL=updateinternrequest.js.map
@@ -1,143 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as models from "../models/index.js";
3
- import * as operations from "../models/operations/index.js";
4
- export declare class Interns extends ClientSDK {
5
- /**
6
- * List interns
7
- *
8
- * @remarks
9
- * Lists interns visible to the authenticated key, newest first. Filter by workspace and one or more lifecycle statuses. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
10
- */
11
- listInterns(request?: operations.ListInternsRequest | undefined, options?: RequestOptions): Promise<models.InternListResponse>;
12
- /**
13
- * Create an intern
14
- *
15
- * @remarks
16
- * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
17
- */
18
- createIntern(request: operations.CreateInternRequest, options?: RequestOptions): Promise<models.Intern>;
19
- /**
20
- * Delete an intern
21
- *
22
- * @remarks
23
- * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
24
- */
25
- deleteIntern(request: operations.DeleteInternRequest, options?: RequestOptions): Promise<models.DeleteInternResponse>;
26
- /**
27
- * Get an intern
28
- *
29
- * @remarks
30
- * Returns the public lifecycle state and settings for one visible intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
31
- */
32
- getIntern(request: operations.GetInternRequest, options?: RequestOptions): Promise<models.Intern>;
33
- /**
34
- * Update an intern
35
- *
36
- * @remarks
37
- * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
38
- */
39
- updateIntern(request: operations.UpdateInternRequest, options?: RequestOptions): Promise<models.Intern>;
40
- /**
41
- * List an intern's connections
42
- *
43
- * @remarks
44
- * Returns the Slack, GitHub, Google Workspace and MCP connections one visible intern can reach, and the shared ones switched off for it or disabled for the workspace. An OAuth grant needs `vault:read`, because the list names members' personal accounts; without it the route answers 403 `insufficient_scope`. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
45
- */
46
- getInternConnections(request: operations.GetInternConnectionsRequest, options?: RequestOptions): Promise<models.InternConnectionList>;
47
- /**
48
- * Get an intern's daemon access
49
- *
50
- * @remarks
51
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: only an OAuth-token caller (`ori login --oidc`) may read it, the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. API keys get 403 `personal_identity_required`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
52
- */
53
- getInternDaemon(request: operations.GetInternDaemonRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
54
- /**
55
- * Get an intern's daemon access (deprecated alias)
56
- *
57
- * @remarks
58
- * Deprecated alias of `GET /interns/{internId}/daemon` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
59
- *
60
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
61
- */
62
- getInternDaemonAccess(request: operations.GetInternDaemonAccessRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
63
- /**
64
- * Sign a daemon request with the caller's identity (deprecated alias)
65
- *
66
- * @remarks
67
- * Deprecated alias of `POST /interns/{internId}/daemon/sign` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
68
- *
69
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
70
- */
71
- signInternDaemonAccessRequest(request: operations.SignInternDaemonAccessRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonAccessRequestResponse>;
72
- /**
73
- * Sign a daemon request with the caller's identity
74
- *
75
- * @remarks
76
- * Signs the SHA-256 digest of one request the CLI is about to send to the intern daemon, binding it to the intern and to the signed-in member so personal connections resolve. Only an OAuth session from `ori login --oidc` whose grant carries `vault:read` can sign: an API key is refused with 403 because it names no person, and an `interns`-only grant is refused with 403 because a proof releases that user's personal connections. The route is behind the same gate as chat and counts against the chat turn limiter. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
77
- */
78
- signInternDaemonRequest(request: operations.SignInternDaemonRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonRequestResponse>;
79
- /**
80
- * Get an intern's icon
81
- *
82
- * @remarks
83
- * Returns the icon image of one visible intern. Pass the intern's `icon_sha256` as `v` to receive a response that can be cached indefinitely. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
84
- */
85
- getInternIcon(request: operations.GetInternIconRequest, options?: RequestOptions): Promise<ReadableStream<Uint8Array>>;
86
- /**
87
- * Provision an intern
88
- *
89
- * @remarks
90
- * Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
91
- */
92
- provisionIntern(request: operations.ProvisionInternRequest, options?: RequestOptions): Promise<models.ProvisionInternResponse>;
93
- /**
94
- * Suspend an intern
95
- *
96
- * @remarks
97
- * Stops the intern runtime while keeping its disk and configuration for a later provision call. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
98
- */
99
- suspendIntern(request: operations.SuspendInternRequest, options?: RequestOptions): Promise<models.SuspendInternResponse>;
100
- /**
101
- * Stream a chat completion with an intern
102
- *
103
- * @remarks
104
- * Sends a prompt to one of your interns and streams the reply as OpenAI-compatible server-sent events ending with `[DONE]`. The run executes on the intern, which may pause to ask you something. It then streams one `openrouter.provide_input` tool call and finishes with `finish_reason: "tool_calls"`, and the run stays open on the intern.
105
- *
106
- * Every response, whether it ends with `stop`, `tool_calls` or `error`, is followed by a final chunk with empty `choices` that carries `session_id`, then `data: [DONE]`. That chunk carries the `usage` the intern reported for the run, after `stop` or `error`, and `null` when the intern reported none. After `tool_calls` its `usage` is `null` because the turn is not over. Read through `[DONE]`: the `session_id` you need to reply arrives after the `tool_calls` finish chunk.
107
- *
108
- * To answer, send a second request with the same `session_id`, the assistant message echoing that tool call, and a `tool` message whose `tool_call_id` is the tool call id and whose `content` is the answer. The answer is delivered to the run that asked and the stream continues from where it paused. A question stays open for its interaction deadline (5 minutes by default) and the run is cancelled when that passes. Rejected replies do not extend the deadline.
109
- *
110
- * Closing the connection after the `[DONE]` that follows `finish_reason: "tool_calls"` keeps the run alive. Disconnecting while a response is still streaming cancels the run. The stream writes a `: keepalive` comment whenever nothing else has been written for 30 seconds, so a disconnect is noticed within that interval even while the intern is silent.
111
- *
112
- * A run the intern ends while you are still connected, by cancellation or by a deadline, ends the stream with a `finish_reason: "error"` chunk carrying `410` and reason `run_ended`, then the final empty-`choices` chunk and `[DONE]`. That error reports only an ending the intern confirmed. A connection that breaks without that confirmation ends with reason `stream_severed`, and a client that has already disconnected is promised no final event.
113
- *
114
- * Set `approval_mode` to `manual` to have the intern ask before approval-bearing tools such as the shell. Omitted, the run self-drives and consents on your behalf. The mode belongs to the run started by that prompt and must be repeated on later prompts.
115
- *
116
- * Available to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`.
117
- */
118
- chat(request: operations.CreateInternChatCompletionRequest & {
119
- internChatCompletionRequest: {
120
- stream?: false | undefined;
121
- };
122
- }, options?: RequestOptions): Promise<operations.CreateInternChatCompletionResponse>;
123
- chat(request: operations.CreateInternChatCompletionRequest & {
124
- internChatCompletionRequest: {
125
- stream: true;
126
- };
127
- }, options?: RequestOptions): Promise<operations.CreateInternChatCompletionResponse>;
128
- chat(request: operations.CreateInternChatCompletionRequest, options?: RequestOptions): Promise<operations.CreateInternChatCompletionResponse>;
129
- /**
130
- * Start an intern run without waiting for it
131
- *
132
- * @remarks
133
- * Starts a run on one of your interns and answers `202` with the `session_id` as soon as the intern accepts it. The run keeps going on the intern after the response. Nothing about its progress comes back on this request; the intern reports through its own tools, such as Slack.
134
- *
135
- * Send the same `session_id` later to continue the conversation, for example to hand the intern a decision on work it started. If that session already has a run going, the prompt is delivered into it and the status is `steered`. A `session_id` is accepted only from the caller it was issued to, on the same intern; any other, including sessions started from Slack or the chat endpoint, is refused with `404`.
136
- *
137
- * Runs started here self-drive: the intern consents to its own tool approvals, and a question it asks is answered by its own fallback. A run ends when the intern finishes it or after its execution deadline (1 hour by default).
138
- *
139
- * Available to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`.
140
- */
141
- invoke(request: operations.InvokeInternRequest, options?: RequestOptions): Promise<operations.InvokeInternResponse>;
142
- }
143
- //# sourceMappingURL=interns.d.ts.map