@openrouter/sdk 1.2.133 → 1.2.135

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 (64) hide show
  1. package/esm/funcs/internsCreateIntern.d.ts +21 -0
  2. package/esm/funcs/internsCreateIntern.js +103 -0
  3. package/esm/funcs/internsDeleteIntern.d.ts +21 -0
  4. package/esm/funcs/internsDeleteIntern.js +105 -0
  5. package/esm/funcs/internsGetIntern.d.ts +21 -0
  6. package/esm/funcs/internsGetIntern.js +105 -0
  7. package/esm/funcs/internsListInterns.d.ts +21 -0
  8. package/esm/funcs/internsListInterns.js +106 -0
  9. package/esm/funcs/internsProvisionIntern.d.ts +21 -0
  10. package/esm/funcs/internsProvisionIntern.js +105 -0
  11. package/esm/funcs/internsSuspendIntern.d.ts +21 -0
  12. package/esm/funcs/internsSuspendIntern.js +105 -0
  13. package/esm/funcs/internsUpdateIntern.d.ts +21 -0
  14. package/esm/funcs/internsUpdateIntern.js +108 -0
  15. package/esm/lib/config.d.ts +2 -2
  16. package/esm/lib/config.js +2 -2
  17. package/esm/models/anthropicimageblockparam.d.ts +5 -4
  18. package/esm/models/anthropicimageblockparam.js +3 -0
  19. package/esm/models/createinternrequest.d.ts +43 -0
  20. package/esm/models/createinternrequest.js +24 -0
  21. package/esm/models/deleteinternresponse.d.ts +10 -0
  22. package/esm/models/deleteinternresponse.js +14 -0
  23. package/esm/models/errors/index.d.ts +1 -0
  24. package/esm/models/errors/index.js +1 -0
  25. package/esm/models/errors/internlifecycleerror.d.ts +25 -0
  26. package/esm/models/errors/internlifecycleerror.js +35 -0
  27. package/esm/models/index.d.ts +8 -0
  28. package/esm/models/index.js +8 -0
  29. package/esm/models/intern.d.ts +108 -0
  30. package/esm/models/intern.js +58 -0
  31. package/esm/models/internlifecycleerror.d.ts +15 -0
  32. package/esm/models/internlifecycleerror.js +23 -0
  33. package/esm/models/internlistresponse.d.ts +18 -0
  34. package/esm/models/internlistresponse.js +21 -0
  35. package/esm/models/operations/createintern.d.ts +61 -0
  36. package/esm/models/operations/createintern.js +25 -0
  37. package/esm/models/operations/deleteintern.d.ts +58 -0
  38. package/esm/models/operations/deleteintern.js +21 -0
  39. package/esm/models/operations/getintern.d.ts +58 -0
  40. package/esm/models/operations/getintern.js +21 -0
  41. package/esm/models/operations/index.d.ts +7 -0
  42. package/esm/models/operations/index.js +7 -0
  43. package/esm/models/operations/listinterns.d.ts +82 -0
  44. package/esm/models/operations/listinterns.js +38 -0
  45. package/esm/models/operations/provisionintern.d.ts +58 -0
  46. package/esm/models/operations/provisionintern.js +21 -0
  47. package/esm/models/operations/suspendintern.d.ts +58 -0
  48. package/esm/models/operations/suspendintern.js +21 -0
  49. package/esm/models/operations/updateintern.d.ts +61 -0
  50. package/esm/models/operations/updateintern.js +24 -0
  51. package/esm/models/provisioninternresponse.d.ts +10 -0
  52. package/esm/models/provisioninternresponse.js +14 -0
  53. package/esm/models/responseserrorfield.d.ts +4 -4
  54. package/esm/models/responseserrorfield.js +4 -4
  55. package/esm/models/suspendinternresponse.d.ts +10 -0
  56. package/esm/models/suspendinternresponse.js +14 -0
  57. package/esm/models/updateinternrequest.d.ts +33 -0
  58. package/esm/models/updateinternrequest.js +16 -0
  59. package/esm/sdk/interns.d.ts +55 -0
  60. package/esm/sdk/interns.js +79 -0
  61. package/esm/sdk/sdk.d.ts +3 -0
  62. package/esm/sdk/sdk.js +4 -0
  63. package/jsr.json +1 -1
  64. package/package.json +5 -5
@@ -0,0 +1,108 @@
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
+ * Active provisioning step, or null once provisioning has settled.
7
+ */
8
+ export type Progress = {
9
+ /**
10
+ * Human-readable label of the active provisioning step.
11
+ */
12
+ stepLabel: string;
13
+ /**
14
+ * One-based index of the active step.
15
+ */
16
+ stepNumber: number;
17
+ /**
18
+ * Number of provisioning steps.
19
+ */
20
+ totalSteps: number;
21
+ };
22
+ /**
23
+ * Lifecycle status.
24
+ */
25
+ export declare const InternStatus: {
26
+ readonly AwaitingSlackInstall: "awaiting_slack_install";
27
+ readonly Queued: "queued";
28
+ readonly Provisioning: "provisioning";
29
+ readonly Running: "running";
30
+ readonly Failed: "failed";
31
+ readonly Stopped: "stopped";
32
+ readonly Destroying: "destroying";
33
+ readonly DestroyFailed: "destroy_failed";
34
+ };
35
+ /**
36
+ * Lifecycle status.
37
+ */
38
+ export type InternStatus = OpenEnum<typeof InternStatus>;
39
+ /**
40
+ * Public lifecycle state and settings for one intern.
41
+ */
42
+ export type Intern = {
43
+ /**
44
+ * Vault the intern borrows from another intern, or null when it borrows none.
45
+ */
46
+ attachedVaultId: string | null;
47
+ /**
48
+ * ISO 8601 creation time.
49
+ */
50
+ createdAt: string;
51
+ /**
52
+ * Free-form description.
53
+ */
54
+ description: string | null;
55
+ /**
56
+ * Public hostname the intern is reachable at, or null until provisioning has assigned one.
57
+ */
58
+ hostname: string | null;
59
+ /**
60
+ * Intern id.
61
+ */
62
+ id: string;
63
+ /**
64
+ * Standing instructions the intern boots with.
65
+ */
66
+ instructions: string | null;
67
+ /**
68
+ * Why the last provisioning attempt failed, when status is failed.
69
+ */
70
+ lastFailureMessage: string | null;
71
+ /**
72
+ * OpenRouter model slug the intern runs, or null for the workspace default.
73
+ */
74
+ model: string | null;
75
+ /**
76
+ * Intern name, unique per creator within a workspace.
77
+ */
78
+ name: string;
79
+ /**
80
+ * Active provisioning step, or null once provisioning has settled.
81
+ */
82
+ progress: Progress | null;
83
+ /**
84
+ * Lifecycle status.
85
+ */
86
+ status: InternStatus;
87
+ /**
88
+ * ISO 8601 last update time.
89
+ */
90
+ updatedAt: string;
91
+ /**
92
+ * Vault the intern owns, or null before it has been created.
93
+ */
94
+ vaultId: string | null;
95
+ /**
96
+ * Workspace that owns the intern and scopes its secrets.
97
+ */
98
+ workspaceId: string;
99
+ };
100
+ /** @internal */
101
+ export declare const Progress$inboundSchema: z.ZodType<Progress, unknown>;
102
+ export declare function progressFromJSON(jsonString: string): SafeParseResult<Progress, SDKValidationError>;
103
+ /** @internal */
104
+ export declare const InternStatus$inboundSchema: z.ZodType<InternStatus, unknown>;
105
+ /** @internal */
106
+ export declare const Intern$inboundSchema: z.ZodType<Intern, unknown>;
107
+ export declare function internFromJSON(jsonString: string): SafeParseResult<Intern, SDKValidationError>;
108
+ //# sourceMappingURL=intern.d.ts.map
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 88580bab3ce4
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
+ * Lifecycle status.
11
+ */
12
+ export const InternStatus = {
13
+ AwaitingSlackInstall: "awaiting_slack_install",
14
+ Queued: "queued",
15
+ Provisioning: "provisioning",
16
+ Running: "running",
17
+ Failed: "failed",
18
+ Stopped: "stopped",
19
+ Destroying: "destroying",
20
+ DestroyFailed: "destroy_failed",
21
+ };
22
+ /** @internal */
23
+ export const Progress$inboundSchema = z.object({
24
+ stepLabel: z.string(),
25
+ stepNumber: z.int(),
26
+ totalSteps: z.int(),
27
+ });
28
+ export function progressFromJSON(jsonString) {
29
+ return safeParse(jsonString, (x) => Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
30
+ }
31
+ /** @internal */
32
+ export const InternStatus$inboundSchema = openEnums.inboundSchema(InternStatus);
33
+ /** @internal */
34
+ export const Intern$inboundSchema = z.object({
35
+ attached_vault_id: z.nullable(z.string()),
36
+ createdAt: z.string(),
37
+ description: z.nullable(z.string()),
38
+ hostname: z.nullable(z.string()),
39
+ id: z.string(),
40
+ instructions: z.nullable(z.string()),
41
+ lastFailureMessage: z.nullable(z.string()),
42
+ model: z.nullable(z.string()),
43
+ name: z.string(),
44
+ progress: z.nullable(z.lazy(() => Progress$inboundSchema)),
45
+ status: InternStatus$inboundSchema,
46
+ updatedAt: z.string(),
47
+ vault_id: z.nullable(z.string()),
48
+ workspaceId: z.string(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ "attached_vault_id": "attachedVaultId",
52
+ "vault_id": "vaultId",
53
+ });
54
+ });
55
+ export function internFromJSON(jsonString) {
56
+ return safeParse(jsonString, (x) => Intern$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Intern' from JSON`);
57
+ }
58
+ //# sourceMappingURL=intern.js.map
@@ -0,0 +1,15 @@
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 Code = string | number;
5
+ export type InternLifecycleErrorError = {
6
+ code: string | number;
7
+ message: string;
8
+ };
9
+ /** @internal */
10
+ export declare const Code$inboundSchema: z.ZodType<Code, unknown>;
11
+ export declare function codeFromJSON(jsonString: string): SafeParseResult<Code, SDKValidationError>;
12
+ /** @internal */
13
+ export declare const InternLifecycleErrorError$inboundSchema: z.ZodType<InternLifecycleErrorError, unknown>;
14
+ export declare function internLifecycleErrorErrorFromJSON(jsonString: string): SafeParseResult<InternLifecycleErrorError, SDKValidationError>;
15
+ //# sourceMappingURL=internlifecycleerror.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9d7cc6ac0062
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const Code$inboundSchema = z.union([
9
+ z.string(),
10
+ z.int(),
11
+ ]);
12
+ export function codeFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => Code$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Code' from JSON`);
14
+ }
15
+ /** @internal */
16
+ export const InternLifecycleErrorError$inboundSchema = z.object({
17
+ code: z.union([z.string(), z.int()]),
18
+ message: z.string(),
19
+ });
20
+ export function internLifecycleErrorErrorFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => InternLifecycleErrorError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternLifecycleErrorError' from JSON`);
22
+ }
23
+ //# sourceMappingURL=internlifecycleerror.js.map
@@ -0,0 +1,18 @@
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 { Intern } from "./intern.js";
5
+ /**
6
+ * Interns visible to the authenticated API key.
7
+ */
8
+ export type InternListResponse = {
9
+ data: Array<Intern>;
10
+ /**
11
+ * True when more interns match the current filters.
12
+ */
13
+ hasMore: boolean;
14
+ };
15
+ /** @internal */
16
+ export declare const InternListResponse$inboundSchema: z.ZodType<InternListResponse, unknown>;
17
+ export declare function internListResponseFromJSON(jsonString: string): SafeParseResult<InternListResponse, SDKValidationError>;
18
+ //# sourceMappingURL=internlistresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cd6ace7e64c6
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 { Intern$inboundSchema } from "./intern.js";
9
+ /** @internal */
10
+ export const InternListResponse$inboundSchema = z.object({
11
+ data: z.array(Intern$inboundSchema),
12
+ has_more: z.boolean(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "has_more": "hasMore",
16
+ });
17
+ });
18
+ export function internListResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => InternListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternListResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=internlistresponse.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type CreateInternGlobals = {
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 CreateInternRequest = {
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
+ * Key that makes retries resume the same create operation. Without one, the server derives a stable key from the request body.
46
+ */
47
+ idempotencyKey?: string | undefined;
48
+ createInternRequest: models.CreateInternRequest;
49
+ };
50
+ /** @internal */
51
+ export type CreateInternRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ "Idempotency-Key"?: string | undefined;
56
+ CreateInternRequest: models.CreateInternRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const CreateInternRequest$outboundSchema: z.ZodType<CreateInternRequest$Outbound, CreateInternRequest>;
60
+ export declare function createInternRequestToJSON(createInternRequest: CreateInternRequest): string;
61
+ //# sourceMappingURL=createintern.d.ts.map
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 49d763cf1338
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const CreateInternRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ idempotencyKey: z.string().optional(),
14
+ createInternRequest: models.CreateInternRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ idempotencyKey: "Idempotency-Key",
19
+ createInternRequest: "CreateInternRequest",
20
+ });
21
+ });
22
+ export function createInternRequestToJSON(createInternRequest) {
23
+ return JSON.stringify(CreateInternRequest$outboundSchema.parse(createInternRequest));
24
+ }
25
+ //# sourceMappingURL=createintern.js.map
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type DeleteInternGlobals = {
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 DeleteInternRequest = {
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 DeleteInternRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ internId: string;
54
+ };
55
+ /** @internal */
56
+ export declare const DeleteInternRequest$outboundSchema: z.ZodType<DeleteInternRequest$Outbound, DeleteInternRequest>;
57
+ export declare function deleteInternRequestToJSON(deleteInternRequest: DeleteInternRequest): string;
58
+ //# sourceMappingURL=deleteintern.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3d76bcc84f78
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeleteInternRequest$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 deleteInternRequestToJSON(deleteInternRequest) {
19
+ return JSON.stringify(DeleteInternRequest$outboundSchema.parse(deleteInternRequest));
20
+ }
21
+ //# sourceMappingURL=deleteintern.js.map
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type GetInternGlobals = {
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 GetInternRequest = {
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 GetInternRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ internId: string;
54
+ };
55
+ /** @internal */
56
+ export declare const GetInternRequest$outboundSchema: z.ZodType<GetInternRequest$Outbound, GetInternRequest>;
57
+ export declare function getInternRequestToJSON(getInternRequest: GetInternRequest): string;
58
+ //# sourceMappingURL=getintern.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f7646f94d5c3
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetInternRequest$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 getInternRequestToJSON(getInternRequest) {
19
+ return JSON.stringify(GetInternRequest$outboundSchema.parse(getInternRequest));
20
+ }
21
+ //# sourceMappingURL=getintern.js.map
@@ -13,6 +13,7 @@ export * from "./createbyokkey.js";
13
13
  export * from "./createembeddings.js";
14
14
  export * from "./createguardrail.js";
15
15
  export * from "./createimages.js";
16
+ export * from "./createintern.js";
16
17
  export * from "./createkeys.js";
17
18
  export * from "./createoauthtoken.js";
18
19
  export * from "./createobservabilitydestination.js";
@@ -28,6 +29,7 @@ export * from "./createworkspace.js";
28
29
  export * from "./deletebyokkey.js";
29
30
  export * from "./deletefile.js";
30
31
  export * from "./deleteguardrail.js";
32
+ export * from "./deleteintern.js";
31
33
  export * from "./deleteinternvaultsecret.js";
32
34
  export * from "./deletekeys.js";
33
35
  export * from "./deleteobservabilitydestination.js";
@@ -48,6 +50,7 @@ export * from "./getcurrentkey.js";
48
50
  export * from "./getfilemetadata.js";
49
51
  export * from "./getgeneration.js";
50
52
  export * from "./getguardrail.js";
53
+ export * from "./getintern.js";
51
54
  export * from "./getkey.js";
52
55
  export * from "./getmodel.js";
53
56
  export * from "./getmodels.js";
@@ -76,6 +79,7 @@ export * from "./listguardrailmemberassignments.js";
76
79
  export * from "./listguardrails.js";
77
80
  export * from "./listimagemodelendpoints.js";
78
81
  export * from "./listimagemodels.js";
82
+ export * from "./listinterns.js";
79
83
  export * from "./listinternvaultsecrets.js";
80
84
  export * from "./listkeyassignments.js";
81
85
  export * from "./listmemberassignments.js";
@@ -96,13 +100,16 @@ export * from "./listworkspacebudgets.js";
96
100
  export * from "./listworkspacemembers.js";
97
101
  export * from "./listworkspaces.js";
98
102
  export * from "./promotecontainerfile.js";
103
+ export * from "./provisionintern.js";
99
104
  export * from "./queryanalytics.js";
100
105
  export * from "./sendchatcompletionrequest.js";
101
106
  export * from "./storeinternvaultsecret.js";
102
107
  export * from "./storevaultsecret.js";
103
108
  export * from "./submitgenerationfeedback.js";
109
+ export * from "./suspendintern.js";
104
110
  export * from "./updatebyokkey.js";
105
111
  export * from "./updateguardrail.js";
112
+ export * from "./updateintern.js";
106
113
  export * from "./updatekeys.js";
107
114
  export * from "./updateobservabilitydestination.js";
108
115
  export * from "./updatescimgroupmapping.js";
@@ -17,6 +17,7 @@ export * from "./createbyokkey.js";
17
17
  export * from "./createembeddings.js";
18
18
  export * from "./createguardrail.js";
19
19
  export * from "./createimages.js";
20
+ export * from "./createintern.js";
20
21
  export * from "./createkeys.js";
21
22
  export * from "./createoauthtoken.js";
22
23
  export * from "./createobservabilitydestination.js";
@@ -32,6 +33,7 @@ export * from "./createworkspace.js";
32
33
  export * from "./deletebyokkey.js";
33
34
  export * from "./deletefile.js";
34
35
  export * from "./deleteguardrail.js";
36
+ export * from "./deleteintern.js";
35
37
  export * from "./deleteinternvaultsecret.js";
36
38
  export * from "./deletekeys.js";
37
39
  export * from "./deleteobservabilitydestination.js";
@@ -52,6 +54,7 @@ export * from "./getcurrentkey.js";
52
54
  export * from "./getfilemetadata.js";
53
55
  export * from "./getgeneration.js";
54
56
  export * from "./getguardrail.js";
57
+ export * from "./getintern.js";
55
58
  export * from "./getkey.js";
56
59
  export * from "./getmodel.js";
57
60
  export * from "./getmodels.js";
@@ -80,6 +83,7 @@ export * from "./listguardrailmemberassignments.js";
80
83
  export * from "./listguardrails.js";
81
84
  export * from "./listimagemodelendpoints.js";
82
85
  export * from "./listimagemodels.js";
86
+ export * from "./listinterns.js";
83
87
  export * from "./listinternvaultsecrets.js";
84
88
  export * from "./listkeyassignments.js";
85
89
  export * from "./listmemberassignments.js";
@@ -100,13 +104,16 @@ export * from "./listworkspacebudgets.js";
100
104
  export * from "./listworkspacemembers.js";
101
105
  export * from "./listworkspaces.js";
102
106
  export * from "./promotecontainerfile.js";
107
+ export * from "./provisionintern.js";
103
108
  export * from "./queryanalytics.js";
104
109
  export * from "./sendchatcompletionrequest.js";
105
110
  export * from "./storeinternvaultsecret.js";
106
111
  export * from "./storevaultsecret.js";
107
112
  export * from "./submitgenerationfeedback.js";
113
+ export * from "./suspendintern.js";
108
114
  export * from "./updatebyokkey.js";
109
115
  export * from "./updateguardrail.js";
116
+ export * from "./updateintern.js";
110
117
  export * from "./updatekeys.js";
111
118
  export * from "./updateobservabilitydestination.js";
112
119
  export * from "./updatescimgroupmapping.js";
@@ -0,0 +1,82 @@
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.
61
+ */
62
+ status?: Array<Status> | undefined;
63
+ /**
64
+ * Only return interns in this workspace. It must match the API key workspace.
65
+ */
66
+ workspaceId?: string | undefined;
67
+ };
68
+ /** @internal */
69
+ export declare const Status$outboundSchema: z.ZodType<string, Status>;
70
+ /** @internal */
71
+ export type ListInternsRequest$Outbound = {
72
+ "HTTP-Referer"?: string | undefined;
73
+ appTitle?: string | undefined;
74
+ appCategories?: string | undefined;
75
+ limit?: number | undefined;
76
+ status?: Array<string> | undefined;
77
+ workspace_id?: string | undefined;
78
+ };
79
+ /** @internal */
80
+ export declare const ListInternsRequest$outboundSchema: z.ZodType<ListInternsRequest$Outbound, ListInternsRequest>;
81
+ export declare function listInternsRequestToJSON(listInternsRequest: ListInternsRequest): string;
82
+ //# sourceMappingURL=listinterns.d.ts.map