@openrouter/sdk 1.5.6 → 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 (158) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/errors/index.d.ts +0 -2
  4. package/esm/models/errors/index.js +0 -2
  5. package/esm/models/index.d.ts +0 -40
  6. package/esm/models/index.js +0 -40
  7. package/esm/models/operations/index.d.ts +0 -15
  8. package/esm/models/operations/index.js +0 -15
  9. package/esm/sdk/sdk.d.ts +0 -3
  10. package/esm/sdk/sdk.js +0 -4
  11. package/jsr.json +1 -1
  12. package/package.json +9 -9
  13. package/esm/funcs/internsChat.d.ts +0 -42
  14. package/esm/funcs/internsChat.js +0 -109
  15. package/esm/funcs/internsCreateIntern.d.ts +0 -21
  16. package/esm/funcs/internsCreateIntern.js +0 -103
  17. package/esm/funcs/internsDeleteIntern.d.ts +0 -21
  18. package/esm/funcs/internsDeleteIntern.js +0 -108
  19. package/esm/funcs/internsGetIntern.d.ts +0 -21
  20. package/esm/funcs/internsGetIntern.js +0 -105
  21. package/esm/funcs/internsGetInternConnections.d.ts +0 -21
  22. package/esm/funcs/internsGetInternConnections.js +0 -105
  23. package/esm/funcs/internsGetInternDaemon.d.ts +0 -21
  24. package/esm/funcs/internsGetInternDaemon.js +0 -105
  25. package/esm/funcs/internsGetInternDaemonAccess.d.ts +0 -23
  26. package/esm/funcs/internsGetInternDaemonAccess.js +0 -107
  27. package/esm/funcs/internsGetInternIcon.d.ts +0 -20
  28. package/esm/funcs/internsGetInternIcon.js +0 -109
  29. package/esm/funcs/internsInvoke.d.ts +0 -26
  30. package/esm/funcs/internsInvoke.js +0 -119
  31. package/esm/funcs/internsListInterns.d.ts +0 -21
  32. package/esm/funcs/internsListInterns.js +0 -107
  33. package/esm/funcs/internsProvisionIntern.d.ts +0 -21
  34. package/esm/funcs/internsProvisionIntern.js +0 -105
  35. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +0 -22
  36. package/esm/funcs/internsSignInternDaemonAccessRequest.js +0 -109
  37. package/esm/funcs/internsSignInternDaemonRequest.d.ts +0 -20
  38. package/esm/funcs/internsSignInternDaemonRequest.js +0 -109
  39. package/esm/funcs/internsSuspendIntern.d.ts +0 -21
  40. package/esm/funcs/internsSuspendIntern.js +0 -105
  41. package/esm/funcs/internsUpdateIntern.d.ts +0 -21
  42. package/esm/funcs/internsUpdateIntern.js +0 -108
  43. package/esm/models/createinternrequest.d.ts +0 -43
  44. package/esm/models/createinternrequest.js +0 -24
  45. package/esm/models/deleteinternrequest.d.ts +0 -18
  46. package/esm/models/deleteinternrequest.js +0 -18
  47. package/esm/models/deleteinternresponse.d.ts +0 -10
  48. package/esm/models/deleteinternresponse.js +0 -14
  49. package/esm/models/errors/internchaterrorresponse.d.ts +0 -31
  50. package/esm/models/errors/internchaterrorresponse.js +0 -35
  51. package/esm/models/errors/internlifecycleerror.d.ts +0 -25
  52. package/esm/models/errors/internlifecycleerror.js +0 -35
  53. package/esm/models/intern.d.ts +0 -120
  54. package/esm/models/intern.js +0 -74
  55. package/esm/models/internapprovalmode.d.ts +0 -16
  56. package/esm/models/internapprovalmode.js +0 -15
  57. package/esm/models/internchatassistantmessage.d.ts +0 -24
  58. package/esm/models/internchatassistantmessage.js +0 -22
  59. package/esm/models/internchatchoice.d.ts +0 -37
  60. package/esm/models/internchatchoice.js +0 -33
  61. package/esm/models/internchatcompletionchunk.d.ts +0 -48
  62. package/esm/models/internchatcompletionchunk.js +0 -34
  63. package/esm/models/internchatcompletionrequest.d.ts +0 -40
  64. package/esm/models/internchatcompletionrequest.js +0 -25
  65. package/esm/models/internchatdelta.d.ts +0 -24
  66. package/esm/models/internchatdelta.js +0 -28
  67. package/esm/models/internchatdevelopermessage.d.ts +0 -21
  68. package/esm/models/internchatdevelopermessage.js +0 -15
  69. package/esm/models/internchatechoedtoolcall.d.ts +0 -21
  70. package/esm/models/internchatechoedtoolcall.js +0 -15
  71. package/esm/models/internchatechoedtoolcallfunction.d.ts +0 -17
  72. package/esm/models/internchatechoedtoolcallfunction.js +0 -14
  73. package/esm/models/internchaterror.d.ts +0 -22
  74. package/esm/models/internchaterror.js +0 -17
  75. package/esm/models/internchaterrormetadata.d.ts +0 -48
  76. package/esm/models/internchaterrormetadata.js +0 -39
  77. package/esm/models/internchatmessage.d.ts +0 -16
  78. package/esm/models/internchatmessage.js +0 -22
  79. package/esm/models/internchatmessagecontent.d.ts +0 -12
  80. package/esm/models/internchatmessagecontent.js +0 -12
  81. package/esm/models/internchatprompttokensdetails.d.ts +0 -13
  82. package/esm/models/internchatprompttokensdetails.js +0 -19
  83. package/esm/models/internchatsteeredresponse.d.ts +0 -33
  84. package/esm/models/internchatsteeredresponse.js +0 -28
  85. package/esm/models/internchatstreamerror.d.ts +0 -22
  86. package/esm/models/internchatstreamerror.js +0 -17
  87. package/esm/models/internchatstreamingresponse.d.ts +0 -17
  88. package/esm/models/internchatstreamingresponse.js +0 -29
  89. package/esm/models/internchatsystemmessage.d.ts +0 -21
  90. package/esm/models/internchatsystemmessage.js +0 -15
  91. package/esm/models/internchattextpart.d.ts +0 -24
  92. package/esm/models/internchattextpart.js +0 -19
  93. package/esm/models/internchattoolcall.d.ts +0 -30
  94. package/esm/models/internchattoolcall.js +0 -23
  95. package/esm/models/internchattoolcallfunction.d.ts +0 -24
  96. package/esm/models/internchattoolcallfunction.js +0 -20
  97. package/esm/models/internchattoolmessage.d.ts +0 -23
  98. package/esm/models/internchattoolmessage.js +0 -21
  99. package/esm/models/internchatusage.d.ts +0 -24
  100. package/esm/models/internchatusage.js +0 -27
  101. package/esm/models/internchatusermessage.d.ts +0 -21
  102. package/esm/models/internchatusermessage.js +0 -15
  103. package/esm/models/internconnection.d.ts +0 -118
  104. package/esm/models/internconnection.js +0 -105
  105. package/esm/models/internconnectionlist.d.ts +0 -11
  106. package/esm/models/internconnectionlist.js +0 -15
  107. package/esm/models/interndaemonaccess.d.ts +0 -24
  108. package/esm/models/interndaemonaccess.js +0 -23
  109. package/esm/models/interninvokeacceptedresponse.d.ts +0 -34
  110. package/esm/models/interninvokeacceptedresponse.js +0 -30
  111. package/esm/models/interninvokerequest.d.ts +0 -23
  112. package/esm/models/interninvokerequest.js +0 -19
  113. package/esm/models/internlifecycleerror.d.ts +0 -23
  114. package/esm/models/internlifecycleerror.js +0 -32
  115. package/esm/models/internlistresponse.d.ts +0 -22
  116. package/esm/models/internlistresponse.js +0 -23
  117. package/esm/models/operations/createintern.d.ts +0 -61
  118. package/esm/models/operations/createintern.js +0 -25
  119. package/esm/models/operations/createinternchatcompletion.d.ts +0 -77
  120. package/esm/models/operations/createinternchatcompletion.js +0 -71
  121. package/esm/models/operations/deleteintern.d.ts +0 -61
  122. package/esm/models/operations/deleteintern.js +0 -24
  123. package/esm/models/operations/getintern.d.ts +0 -58
  124. package/esm/models/operations/getintern.js +0 -21
  125. package/esm/models/operations/getinternconnections.d.ts +0 -58
  126. package/esm/models/operations/getinternconnections.js +0 -21
  127. package/esm/models/operations/getinterndaemon.d.ts +0 -58
  128. package/esm/models/operations/getinterndaemon.js +0 -21
  129. package/esm/models/operations/getinterndaemonaccess.d.ts +0 -58
  130. package/esm/models/operations/getinterndaemonaccess.js +0 -21
  131. package/esm/models/operations/getinternicon.d.ts +0 -63
  132. package/esm/models/operations/getinternicon.js +0 -22
  133. package/esm/models/operations/invokeintern.d.ts +0 -72
  134. package/esm/models/operations/invokeintern.js +0 -38
  135. package/esm/models/operations/listinterns.d.ts +0 -87
  136. package/esm/models/operations/listinterns.js +0 -40
  137. package/esm/models/operations/provisionintern.d.ts +0 -58
  138. package/esm/models/operations/provisionintern.js +0 -21
  139. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +0 -72
  140. package/esm/models/operations/signinterndaemonaccessrequest.js +0 -38
  141. package/esm/models/operations/signinterndaemonrequest.d.ts +0 -72
  142. package/esm/models/operations/signinterndaemonrequest.js +0 -38
  143. package/esm/models/operations/suspendintern.d.ts +0 -58
  144. package/esm/models/operations/suspendintern.js +0 -21
  145. package/esm/models/operations/updateintern.d.ts +0 -61
  146. package/esm/models/operations/updateintern.js +0 -24
  147. package/esm/models/provisioninternresponse.d.ts +0 -10
  148. package/esm/models/provisioninternresponse.js +0 -14
  149. package/esm/models/signinterndaemonrequest.d.ts +0 -54
  150. package/esm/models/signinterndaemonrequest.js +0 -30
  151. package/esm/models/signinterndaemonresponse.d.ts +0 -32
  152. package/esm/models/signinterndaemonresponse.js +0 -27
  153. package/esm/models/suspendinternresponse.d.ts +0 -10
  154. package/esm/models/suspendinternresponse.js +0 -14
  155. package/esm/models/updateinternrequest.d.ts +0 -33
  156. package/esm/models/updateinternrequest.js +0 -16
  157. package/esm/sdk/interns.d.ts +0 -143
  158. package/esm/sdk/interns.js +0 -163
@@ -1,58 +0,0 @@
1
- import * as z from "zod/v4";
2
- export type GetInternDaemonAccessGlobals = {
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 GetInternDaemonAccessRequest = {
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 GetInternDaemonAccessRequest$Outbound = {
50
- "HTTP-Referer"?: string | undefined;
51
- appTitle?: string | undefined;
52
- appCategories?: string | undefined;
53
- internId: string;
54
- };
55
- /** @internal */
56
- export declare const GetInternDaemonAccessRequest$outboundSchema: z.ZodType<GetInternDaemonAccessRequest$Outbound, GetInternDaemonAccessRequest>;
57
- export declare function getInternDaemonAccessRequestToJSON(getInternDaemonAccessRequest: GetInternDaemonAccessRequest): string;
58
- //# sourceMappingURL=getinterndaemonaccess.d.ts.map
@@ -1,21 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 2320374f9c4b
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- /** @internal */
8
- export const GetInternDaemonAccessRequest$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 getInternDaemonAccessRequestToJSON(getInternDaemonAccessRequest) {
19
- return JSON.stringify(GetInternDaemonAccessRequest$outboundSchema.parse(getInternDaemonAccessRequest));
20
- }
21
- //# sourceMappingURL=getinterndaemonaccess.js.map
@@ -1,63 +0,0 @@
1
- import * as z from "zod/v4";
2
- export type GetInternIconGlobals = {
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 GetInternIconRequest = {
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
- * The `icon_sha256` the caller expects.
49
- */
50
- v?: string | undefined;
51
- };
52
- /** @internal */
53
- export type GetInternIconRequest$Outbound = {
54
- "HTTP-Referer"?: string | undefined;
55
- appTitle?: string | undefined;
56
- appCategories?: string | undefined;
57
- internId: string;
58
- v?: string | undefined;
59
- };
60
- /** @internal */
61
- export declare const GetInternIconRequest$outboundSchema: z.ZodType<GetInternIconRequest$Outbound, GetInternIconRequest>;
62
- export declare function getInternIconRequestToJSON(getInternIconRequest: GetInternIconRequest): string;
63
- //# sourceMappingURL=getinternicon.d.ts.map
@@ -1,22 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: a41b9b092844
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- /** @internal */
8
- export const GetInternIconRequest$outboundSchema = z.object({
9
- httpReferer: z.string().optional(),
10
- appTitle: z.string().optional(),
11
- appCategories: z.string().optional(),
12
- internId: z.string(),
13
- v: z.string().optional(),
14
- }).transform((v) => {
15
- return remap$(v, {
16
- httpReferer: "HTTP-Referer",
17
- });
18
- });
19
- export function getInternIconRequestToJSON(getInternIconRequest) {
20
- return JSON.stringify(GetInternIconRequest$outboundSchema.parse(getInternIconRequest));
21
- }
22
- //# sourceMappingURL=getinternicon.js.map
@@ -1,72 +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 * as models from "../index.js";
5
- export type InvokeInternGlobals = {
6
- /**
7
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
- *
9
- * @remarks
10
- * This is used to track API usage per application.
11
- */
12
- httpReferer?: string | undefined;
13
- /**
14
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
- *
16
- * @remarks
17
- */
18
- appTitle?: string | undefined;
19
- /**
20
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
- *
22
- * @remarks
23
- */
24
- appCategories?: string | undefined;
25
- };
26
- export type InvokeInternRequest = {
27
- /**
28
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
- *
30
- * @remarks
31
- * This is used to track API usage per application.
32
- */
33
- httpReferer?: string | undefined;
34
- /**
35
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
- *
37
- * @remarks
38
- */
39
- appTitle?: string | undefined;
40
- /**
41
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
- *
43
- * @remarks
44
- */
45
- appCategories?: string | undefined;
46
- /**
47
- * The intern to run.
48
- */
49
- internId: string;
50
- internInvokeRequest: models.InternInvokeRequest;
51
- };
52
- export type InvokeInternResponse = {
53
- headers: {
54
- [k: string]: Array<string>;
55
- };
56
- result: models.InternInvokeAcceptedResponse;
57
- };
58
- /** @internal */
59
- export type InvokeInternRequest$Outbound = {
60
- "HTTP-Referer"?: string | undefined;
61
- appTitle?: string | undefined;
62
- appCategories?: string | undefined;
63
- internId: string;
64
- InternInvokeRequest: models.InternInvokeRequest$Outbound;
65
- };
66
- /** @internal */
67
- export declare const InvokeInternRequest$outboundSchema: z.ZodType<InvokeInternRequest$Outbound, InvokeInternRequest>;
68
- export declare function invokeInternRequestToJSON(invokeInternRequest: InvokeInternRequest): string;
69
- /** @internal */
70
- export declare const InvokeInternResponse$inboundSchema: z.ZodType<InvokeInternResponse, unknown>;
71
- export declare function invokeInternResponseFromJSON(jsonString: string): SafeParseResult<InvokeInternResponse, SDKValidationError>;
72
- //# sourceMappingURL=invokeintern.d.ts.map
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: f2b19fbd8a96
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 { InternInvokeAcceptedResponse$inboundSchema as models_InternInvokeAcceptedResponse$inboundSchema } from "../interninvokeacceptedresponse.js"; import { InternInvokeRequest$outboundSchema as models_InternInvokeRequest$outboundSchema } from "../interninvokerequest.js";
9
- /** @internal */
10
- export const InvokeInternRequest$outboundSchema = z.object({
11
- httpReferer: z.string().optional(),
12
- appTitle: z.string().optional(),
13
- appCategories: z.string().optional(),
14
- internId: z.string(),
15
- internInvokeRequest: models_InternInvokeRequest$outboundSchema,
16
- }).transform((v) => {
17
- return remap$(v, {
18
- httpReferer: "HTTP-Referer",
19
- internInvokeRequest: "InternInvokeRequest",
20
- });
21
- });
22
- export function invokeInternRequestToJSON(invokeInternRequest) {
23
- return JSON.stringify(InvokeInternRequest$outboundSchema.parse(invokeInternRequest));
24
- }
25
- /** @internal */
26
- export const InvokeInternResponse$inboundSchema = z.object({
27
- Headers: z.record(z.string(), z.array(z.string())).default({}),
28
- Result: models_InternInvokeAcceptedResponse$inboundSchema,
29
- }).transform((v) => {
30
- return remap$(v, {
31
- "Headers": "headers",
32
- "Result": "result",
33
- });
34
- });
35
- export function invokeInternResponseFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => InvokeInternResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvokeInternResponse' from JSON`);
37
- }
38
- //# sourceMappingURL=invokeintern.js.map
@@ -1,87 +0,0 @@
1
- import * as z from "zod/v4";
2
- import { OpenEnum } from "../../types/enums.js";
3
- export type ListInternsGlobals = {
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 declare const Status: {
25
- readonly AwaitingSlackInstall: "awaiting_slack_install";
26
- readonly Queued: "queued";
27
- readonly Provisioning: "provisioning";
28
- readonly Running: "running";
29
- readonly Failed: "failed";
30
- readonly Stopped: "stopped";
31
- readonly Destroying: "destroying";
32
- readonly DestroyFailed: "destroy_failed";
33
- };
34
- export type Status = OpenEnum<typeof Status>;
35
- export type ListInternsRequest = {
36
- /**
37
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
38
- *
39
- * @remarks
40
- * This is used to track API usage per application.
41
- */
42
- httpReferer?: string | undefined;
43
- /**
44
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
45
- *
46
- * @remarks
47
- */
48
- appTitle?: string | undefined;
49
- /**
50
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
51
- *
52
- * @remarks
53
- */
54
- appCategories?: string | undefined;
55
- /**
56
- * Maximum number of interns to return, from 1 through 500.
57
- */
58
- limit?: number | undefined;
59
- /**
60
- * Comma-separated lifecycle statuses to include, at most 8. Repeats are collapsed.
61
- */
62
- status?: Array<Status> | undefined;
63
- /**
64
- * The opaque `next_cursor` of the previous page. Returns the interns that come after it in the newest-first order. A malformed cursor is a 400.
65
- */
66
- startingAfter?: string | undefined;
67
- /**
68
- * Only return interns in this workspace. It must match the API key workspace.
69
- */
70
- workspaceId?: string | undefined;
71
- };
72
- /** @internal */
73
- export declare const Status$outboundSchema: z.ZodType<string, Status>;
74
- /** @internal */
75
- export type ListInternsRequest$Outbound = {
76
- "HTTP-Referer"?: string | undefined;
77
- appTitle?: string | undefined;
78
- appCategories?: string | undefined;
79
- limit?: number | undefined;
80
- status?: Array<string> | undefined;
81
- starting_after?: string | undefined;
82
- workspace_id?: string | undefined;
83
- };
84
- /** @internal */
85
- export declare const ListInternsRequest$outboundSchema: z.ZodType<ListInternsRequest$Outbound, ListInternsRequest>;
86
- export declare function listInternsRequestToJSON(listInternsRequest: ListInternsRequest): string;
87
- //# sourceMappingURL=listinterns.d.ts.map
@@ -1,40 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 3fe8f2b8da99
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import * as openEnums from "../../types/enums.js";
8
- export const Status = {
9
- AwaitingSlackInstall: "awaiting_slack_install",
10
- Queued: "queued",
11
- Provisioning: "provisioning",
12
- Running: "running",
13
- Failed: "failed",
14
- Stopped: "stopped",
15
- Destroying: "destroying",
16
- DestroyFailed: "destroy_failed",
17
- };
18
- /** @internal */
19
- export const Status$outboundSchema = openEnums
20
- .outboundSchema(Status);
21
- /** @internal */
22
- export const ListInternsRequest$outboundSchema = z.object({
23
- httpReferer: z.string().optional(),
24
- appTitle: z.string().optional(),
25
- appCategories: z.string().optional(),
26
- limit: z.int().optional(),
27
- status: z.array(Status$outboundSchema).optional(),
28
- startingAfter: z.string().optional(),
29
- workspaceId: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- httpReferer: "HTTP-Referer",
33
- startingAfter: "starting_after",
34
- workspaceId: "workspace_id",
35
- });
36
- });
37
- export function listInternsRequestToJSON(listInternsRequest) {
38
- return JSON.stringify(ListInternsRequest$outboundSchema.parse(listInternsRequest));
39
- }
40
- //# sourceMappingURL=listinterns.js.map
@@ -1,58 +0,0 @@
1
- import * as z from "zod/v4";
2
- export type ProvisionInternGlobals = {
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 ProvisionInternRequest = {
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 ProvisionInternRequest$Outbound = {
50
- "HTTP-Referer"?: string | undefined;
51
- appTitle?: string | undefined;
52
- appCategories?: string | undefined;
53
- internId: string;
54
- };
55
- /** @internal */
56
- export declare const ProvisionInternRequest$outboundSchema: z.ZodType<ProvisionInternRequest$Outbound, ProvisionInternRequest>;
57
- export declare function provisionInternRequestToJSON(provisionInternRequest: ProvisionInternRequest): string;
58
- //# sourceMappingURL=provisionintern.d.ts.map
@@ -1,21 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 10202b36a7cd
4
- */
5
- import * as z from "zod/v4";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- /** @internal */
8
- export const ProvisionInternRequest$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 provisionInternRequestToJSON(provisionInternRequest) {
19
- return JSON.stringify(ProvisionInternRequest$outboundSchema.parse(provisionInternRequest));
20
- }
21
- //# sourceMappingURL=provisionintern.js.map
@@ -1,72 +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 * as models from "../index.js";
5
- export type SignInternDaemonAccessRequestGlobals = {
6
- /**
7
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
- *
9
- * @remarks
10
- * This is used to track API usage per application.
11
- */
12
- httpReferer?: string | undefined;
13
- /**
14
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
- *
16
- * @remarks
17
- */
18
- appTitle?: string | undefined;
19
- /**
20
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
- *
22
- * @remarks
23
- */
24
- appCategories?: string | undefined;
25
- };
26
- export type SignInternDaemonAccessRequestRequest = {
27
- /**
28
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
- *
30
- * @remarks
31
- * This is used to track API usage per application.
32
- */
33
- httpReferer?: string | undefined;
34
- /**
35
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
- *
37
- * @remarks
38
- */
39
- appTitle?: string | undefined;
40
- /**
41
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
- *
43
- * @remarks
44
- */
45
- appCategories?: string | undefined;
46
- /**
47
- * ID of an intern visible to the authenticated API key.
48
- */
49
- internId: string;
50
- signInternDaemonRequest: models.SignInternDaemonRequest;
51
- };
52
- export type SignInternDaemonAccessRequestResponse = {
53
- headers: {
54
- [k: string]: Array<string>;
55
- };
56
- result: models.SignInternDaemonResponse;
57
- };
58
- /** @internal */
59
- export type SignInternDaemonAccessRequestRequest$Outbound = {
60
- "HTTP-Referer"?: string | undefined;
61
- appTitle?: string | undefined;
62
- appCategories?: string | undefined;
63
- internId: string;
64
- SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
65
- };
66
- /** @internal */
67
- export declare const SignInternDaemonAccessRequestRequest$outboundSchema: z.ZodType<SignInternDaemonAccessRequestRequest$Outbound, SignInternDaemonAccessRequestRequest>;
68
- export declare function signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest: SignInternDaemonAccessRequestRequest): string;
69
- /** @internal */
70
- export declare const SignInternDaemonAccessRequestResponse$inboundSchema: z.ZodType<SignInternDaemonAccessRequestResponse, unknown>;
71
- export declare function signInternDaemonAccessRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonAccessRequestResponse, SDKValidationError>;
72
- //# sourceMappingURL=signinterndaemonaccessrequest.d.ts.map
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 5b44549b1bcd
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 SignInternDaemonAccessRequestRequest$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 signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest) {
23
- return JSON.stringify(SignInternDaemonAccessRequestRequest$outboundSchema.parse(signInternDaemonAccessRequestRequest));
24
- }
25
- /** @internal */
26
- export const SignInternDaemonAccessRequestResponse$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 signInternDaemonAccessRequestResponseFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => SignInternDaemonAccessRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonAccessRequestResponse' from JSON`);
37
- }
38
- //# sourceMappingURL=signinterndaemonaccessrequest.js.map
@@ -1,72 +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 * as models from "../index.js";
5
- export type SignInternDaemonRequestGlobals = {
6
- /**
7
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
- *
9
- * @remarks
10
- * This is used to track API usage per application.
11
- */
12
- httpReferer?: string | undefined;
13
- /**
14
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
- *
16
- * @remarks
17
- */
18
- appTitle?: string | undefined;
19
- /**
20
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
- *
22
- * @remarks
23
- */
24
- appCategories?: string | undefined;
25
- };
26
- export type SignInternDaemonRequestRequest = {
27
- /**
28
- * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
- *
30
- * @remarks
31
- * This is used to track API usage per application.
32
- */
33
- httpReferer?: string | undefined;
34
- /**
35
- * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
- *
37
- * @remarks
38
- */
39
- appTitle?: string | undefined;
40
- /**
41
- * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
- *
43
- * @remarks
44
- */
45
- appCategories?: string | undefined;
46
- /**
47
- * ID of an intern visible to the authenticated API key.
48
- */
49
- internId: string;
50
- signInternDaemonRequest: models.SignInternDaemonRequest;
51
- };
52
- export type SignInternDaemonRequestResponse = {
53
- headers: {
54
- [k: string]: Array<string>;
55
- };
56
- result: models.SignInternDaemonResponse;
57
- };
58
- /** @internal */
59
- export type SignInternDaemonRequestRequest$Outbound = {
60
- "HTTP-Referer"?: string | undefined;
61
- appTitle?: string | undefined;
62
- appCategories?: string | undefined;
63
- internId: string;
64
- SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
65
- };
66
- /** @internal */
67
- export declare const SignInternDaemonRequestRequest$outboundSchema: z.ZodType<SignInternDaemonRequestRequest$Outbound, SignInternDaemonRequestRequest>;
68
- export declare function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest: SignInternDaemonRequestRequest): string;
69
- /** @internal */
70
- export declare const SignInternDaemonRequestResponse$inboundSchema: z.ZodType<SignInternDaemonRequestResponse, unknown>;
71
- export declare function signInternDaemonRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonRequestResponse, SDKValidationError>;
72
- //# sourceMappingURL=signinterndaemonrequest.d.ts.map