@openrouter/sdk 0.0.1-beta.12 → 0.0.1-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +15 -16
- package/REACT_QUERY.md +15 -16
- package/README.md +113 -110
- package/esm/funcs/betaResponsesSend.d.ts +2 -2
- package/esm/funcs/betaResponsesSend.js +3 -3
- package/esm/funcs/chatSend.d.ts +1 -1
- package/esm/funcs/modelsList.d.ts +2 -1
- package/esm/funcs/modelsList.js +3 -6
- package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
- package/esm/funcs/oAuthCreateAuthCode.js +82 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/event-streams.d.ts +1 -1
- package/esm/models/operations/createauthkeyscode.d.ts +145 -0
- package/esm/models/operations/createauthkeyscode.js +146 -0
- package/esm/models/operations/createresponses.d.ts +58 -0
- package/esm/models/operations/createresponses.js +80 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
- package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
- package/esm/models/operations/getmodels.d.ts +0 -26
- package/esm/models/operations/getmodels.js +0 -30
- package/esm/models/operations/index.d.ts +3 -1
- package/esm/models/operations/index.js +3 -1
- package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
- package/esm/models/operations/sendchatcompletionrequest.js +2 -1
- package/esm/react-query/betaResponsesSend.d.ts +1 -1
- package/esm/react-query/index.d.ts +2 -0
- package/esm/react-query/index.js +2 -0
- package/esm/react-query/modelsList.d.ts +2 -7
- package/esm/react-query/modelsList.js +0 -2
- package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
- package/esm/react-query/oAuthCreateAuthCode.js +42 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
- package/esm/sdk/chat.d.ts +1 -1
- package/esm/sdk/models.d.ts +1 -1
- package/esm/sdk/oauth.d.ts +46 -0
- package/esm/sdk/oauth.js +67 -0
- package/esm/sdk/responses.d.ts +2 -2
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -1
- package/vitest.config.ts +8 -1
- package/esm/models/operations/createapialpharesponses.d.ts +0 -58
- package/esm/models/operations/createapialpharesponses.js +0 -81
package/esm/funcs/modelsList.js
CHANGED
|
@@ -8,6 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
10
|
import * as errors from "../models/errors/index.js";
|
|
11
|
+
import * as models from "../models/index.js";
|
|
11
12
|
import * as operations from "../models/operations/index.js";
|
|
12
13
|
import { APIPromise } from "../types/async.js";
|
|
13
14
|
/**
|
|
@@ -27,11 +28,9 @@ async function $do(client, request, options) {
|
|
|
27
28
|
const query = encodeFormQuery({
|
|
28
29
|
"category": payload?.category,
|
|
29
30
|
"supported_parameters": payload?.supported_parameters,
|
|
30
|
-
"use_rss": payload?.use_rss,
|
|
31
|
-
"use_rss_chat_links": payload?.use_rss_chat_links,
|
|
32
31
|
});
|
|
33
32
|
const headers = new Headers(compactMap({
|
|
34
|
-
Accept: "application/json
|
|
33
|
+
Accept: "application/json",
|
|
35
34
|
}));
|
|
36
35
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
37
36
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -76,9 +75,7 @@ async function $do(client, request, options) {
|
|
|
76
75
|
const responseFields = {
|
|
77
76
|
HttpMeta: { Response: response, Request: req },
|
|
78
77
|
};
|
|
79
|
-
const [result] = await M.match(M.json(200,
|
|
80
|
-
ctype: "application/rss+xml",
|
|
81
|
-
}), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
78
|
+
const [result] = await M.match(M.json(200, models.ModelsListResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
82
79
|
if (!result.ok) {
|
|
83
80
|
return [result, { status: "complete", request: req, response }];
|
|
84
81
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OpenRouterCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { OpenRouterError } from "../models/errors/openroutererror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create authorization code
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Create an authorization code for the PKCE flow to generate a user-controlled API key
|
|
16
|
+
*/
|
|
17
|
+
export declare function oAuthCreateAuthCode(client: OpenRouterCore, request: operations.CreateAuthKeysCodeRequest, options?: RequestOptions): APIPromise<Result<operations.CreateAuthKeysCodeResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=oAuthCreateAuthCode.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
5
|
+
import * as M from "../lib/matchers.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import * as errors from "../models/errors/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { APIPromise } from "../types/async.js";
|
|
13
|
+
/**
|
|
14
|
+
* Create authorization code
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Create an authorization code for the PKCE flow to generate a user-controlled API key
|
|
18
|
+
*/
|
|
19
|
+
export function oAuthCreateAuthCode(client, request, options) {
|
|
20
|
+
return new APIPromise($do(client, request, options));
|
|
21
|
+
}
|
|
22
|
+
async function $do(client, request, options) {
|
|
23
|
+
const parsed = safeParse(request, (value) => operations.CreateAuthKeysCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
24
|
+
if (!parsed.ok) {
|
|
25
|
+
return [parsed, { status: "invalid" }];
|
|
26
|
+
}
|
|
27
|
+
const payload = parsed.value;
|
|
28
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
29
|
+
const path = pathToFunc("/auth/keys/code")();
|
|
30
|
+
const headers = new Headers(compactMap({
|
|
31
|
+
"Content-Type": "application/json",
|
|
32
|
+
Accept: "application/json",
|
|
33
|
+
}));
|
|
34
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
35
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
36
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37
|
+
const context = {
|
|
38
|
+
options: client._options,
|
|
39
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40
|
+
operationID: "createAuthKeysCode",
|
|
41
|
+
oAuth2Scopes: null,
|
|
42
|
+
resolvedSecurity: requestSecurity,
|
|
43
|
+
securitySource: client._options.apiKey,
|
|
44
|
+
retryConfig: options?.retries
|
|
45
|
+
|| client._options.retryConfig
|
|
46
|
+
|| { strategy: "none" },
|
|
47
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
48
|
+
};
|
|
49
|
+
const requestRes = client._createRequest(context, {
|
|
50
|
+
security: requestSecurity,
|
|
51
|
+
method: "POST",
|
|
52
|
+
baseURL: options?.serverURL,
|
|
53
|
+
path: path,
|
|
54
|
+
headers: headers,
|
|
55
|
+
body: body,
|
|
56
|
+
userAgent: client._options.userAgent,
|
|
57
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
58
|
+
}, options);
|
|
59
|
+
if (!requestRes.ok) {
|
|
60
|
+
return [requestRes, { status: "invalid" }];
|
|
61
|
+
}
|
|
62
|
+
const req = requestRes.value;
|
|
63
|
+
const doResult = await client._do(req, {
|
|
64
|
+
context,
|
|
65
|
+
errorCodes: ["400", "401", "4XX", "500", "5XX"],
|
|
66
|
+
retryConfig: context.retryConfig,
|
|
67
|
+
retryCodes: context.retryCodes,
|
|
68
|
+
});
|
|
69
|
+
if (!doResult.ok) {
|
|
70
|
+
return [doResult, { status: "request-error", request: req }];
|
|
71
|
+
}
|
|
72
|
+
const response = doResult.value;
|
|
73
|
+
const responseFields = {
|
|
74
|
+
HttpMeta: { Response: response, Request: req },
|
|
75
|
+
};
|
|
76
|
+
const [result] = await M.match(M.json(200, operations.CreateAuthKeysCodeResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
77
|
+
if (!result.ok) {
|
|
78
|
+
return [result, { status: "complete", request: req, response }];
|
|
79
|
+
}
|
|
80
|
+
return [result, { status: "complete", request: req, response }];
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=oAuthCreateAuthCode.js.map
|
|
@@ -9,13 +9,13 @@ declare const CreateAuthorizationurlParamsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9
9
|
codeChallenge: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
callbackUrl: string | URL;
|
|
12
|
-
codeChallengeMethod: "S256" | "plain";
|
|
13
12
|
codeChallenge: string;
|
|
13
|
+
codeChallengeMethod: "S256" | "plain";
|
|
14
14
|
limit?: number | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
callbackUrl: string | URL;
|
|
17
|
-
codeChallengeMethod: "S256" | "plain";
|
|
18
17
|
codeChallenge: string;
|
|
18
|
+
codeChallengeMethod: "S256" | "plain";
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}>, z.ZodObject<{
|
|
21
21
|
callbackUrl: z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OpenRouterCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { OpenRouterError } from "../models/errors/openroutererror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Exchange authorization code for API key
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Exchange an authorization code from the PKCE flow for a user-controlled API key
|
|
16
|
+
*/
|
|
17
|
+
export declare function oAuthExchangeAuthCodeForAPIKey(client: OpenRouterCore, request: operations.ExchangeAuthCodeForAPIKeyRequest, options?: RequestOptions): APIPromise<Result<operations.ExchangeAuthCodeForAPIKeyResponse, errors.BadRequestResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=oAuthExchangeAuthCodeForAPIKey.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
5
|
+
import * as M from "../lib/matchers.js";
|
|
6
|
+
import { compactMap } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import * as errors from "../models/errors/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { APIPromise } from "../types/async.js";
|
|
13
|
+
/**
|
|
14
|
+
* Exchange authorization code for API key
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Exchange an authorization code from the PKCE flow for a user-controlled API key
|
|
18
|
+
*/
|
|
19
|
+
export function oAuthExchangeAuthCodeForAPIKey(client, request, options) {
|
|
20
|
+
return new APIPromise($do(client, request, options));
|
|
21
|
+
}
|
|
22
|
+
async function $do(client, request, options) {
|
|
23
|
+
const parsed = safeParse(request, (value) => operations.ExchangeAuthCodeForAPIKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
24
|
+
if (!parsed.ok) {
|
|
25
|
+
return [parsed, { status: "invalid" }];
|
|
26
|
+
}
|
|
27
|
+
const payload = parsed.value;
|
|
28
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
29
|
+
const path = pathToFunc("/auth/keys")();
|
|
30
|
+
const headers = new Headers(compactMap({
|
|
31
|
+
"Content-Type": "application/json",
|
|
32
|
+
Accept: "application/json",
|
|
33
|
+
}));
|
|
34
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
35
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
36
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37
|
+
const context = {
|
|
38
|
+
options: client._options,
|
|
39
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40
|
+
operationID: "exchangeAuthCodeForAPIKey",
|
|
41
|
+
oAuth2Scopes: null,
|
|
42
|
+
resolvedSecurity: requestSecurity,
|
|
43
|
+
securitySource: client._options.apiKey,
|
|
44
|
+
retryConfig: options?.retries
|
|
45
|
+
|| client._options.retryConfig
|
|
46
|
+
|| { strategy: "none" },
|
|
47
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
48
|
+
};
|
|
49
|
+
const requestRes = client._createRequest(context, {
|
|
50
|
+
security: requestSecurity,
|
|
51
|
+
method: "POST",
|
|
52
|
+
baseURL: options?.serverURL,
|
|
53
|
+
path: path,
|
|
54
|
+
headers: headers,
|
|
55
|
+
body: body,
|
|
56
|
+
userAgent: client._options.userAgent,
|
|
57
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
58
|
+
}, options);
|
|
59
|
+
if (!requestRes.ok) {
|
|
60
|
+
return [requestRes, { status: "invalid" }];
|
|
61
|
+
}
|
|
62
|
+
const req = requestRes.value;
|
|
63
|
+
const doResult = await client._do(req, {
|
|
64
|
+
context,
|
|
65
|
+
errorCodes: ["400", "403", "4XX", "500", "5XX"],
|
|
66
|
+
retryConfig: context.retryConfig,
|
|
67
|
+
retryCodes: context.retryCodes,
|
|
68
|
+
});
|
|
69
|
+
if (!doResult.ok) {
|
|
70
|
+
return [doResult, { status: "request-error", request: req }];
|
|
71
|
+
}
|
|
72
|
+
const response = doResult.value;
|
|
73
|
+
const responseFields = {
|
|
74
|
+
HttpMeta: { Response: response, Request: req },
|
|
75
|
+
};
|
|
76
|
+
const [result] = await M.match(M.json(200, operations.ExchangeAuthCodeForAPIKeyResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(403, errors.ForbiddenResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
77
|
+
if (!result.ok) {
|
|
78
|
+
return [result, { status: "complete", request: req, response }];
|
|
79
|
+
}
|
|
80
|
+
return [result, { status: "complete", request: req, response }];
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=oAuthExchangeAuthCodeForAPIKey.js.map
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
37
37
|
export declare const SDK_METADATA: {
|
|
38
38
|
readonly language: "typescript";
|
|
39
39
|
readonly openapiDocVersion: "1.0.0";
|
|
40
|
-
readonly sdkVersion: "0.0.1-beta.
|
|
40
|
+
readonly sdkVersion: "0.0.1-beta.14";
|
|
41
41
|
readonly genVersion: "2.731.4";
|
|
42
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-beta.
|
|
42
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-beta.14 2.731.4 1.0.0 @openrouter/sdk";
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
|
|
|
25
25
|
export const SDK_METADATA = {
|
|
26
26
|
language: "typescript",
|
|
27
27
|
openapiDocVersion: "1.0.0",
|
|
28
|
-
sdkVersion: "0.0.1-beta.
|
|
28
|
+
sdkVersion: "0.0.1-beta.14",
|
|
29
29
|
genVersion: "2.731.4",
|
|
30
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-beta.
|
|
30
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-beta.14 2.731.4 1.0.0 @openrouter/sdk",
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=config.js.map
|
|
@@ -4,7 +4,7 @@ export type SseMessage<T> = {
|
|
|
4
4
|
id?: string | undefined;
|
|
5
5
|
retry?: number | undefined;
|
|
6
6
|
};
|
|
7
|
-
export declare class EventStream<T extends
|
|
7
|
+
export declare class EventStream<T> extends ReadableStream<T> {
|
|
8
8
|
constructor(responseBody: ReadableStream<Uint8Array>, parse: (x: SseMessage<string>) => IteratorResult<T, undefined>);
|
|
9
9
|
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
* The method used to generate the code challenge
|
|
7
|
+
*/
|
|
8
|
+
export declare const CreateAuthKeysCodeCodeChallengeMethod: {
|
|
9
|
+
readonly S256: "S256";
|
|
10
|
+
readonly Plain: "plain";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The method used to generate the code challenge
|
|
14
|
+
*/
|
|
15
|
+
export type CreateAuthKeysCodeCodeChallengeMethod = OpenEnum<typeof CreateAuthKeysCodeCodeChallengeMethod>;
|
|
16
|
+
export type CreateAuthKeysCodeRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed.
|
|
19
|
+
*/
|
|
20
|
+
callbackUrl: string;
|
|
21
|
+
/**
|
|
22
|
+
* PKCE code challenge for enhanced security
|
|
23
|
+
*/
|
|
24
|
+
codeChallenge?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The method used to generate the code challenge
|
|
27
|
+
*/
|
|
28
|
+
codeChallengeMethod?: CreateAuthKeysCodeCodeChallengeMethod | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Credit limit for the API key to be created
|
|
31
|
+
*/
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Auth code data
|
|
36
|
+
*/
|
|
37
|
+
export type CreateAuthKeysCodeData = {
|
|
38
|
+
/**
|
|
39
|
+
* The authorization code ID to use in the exchange request
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The application ID associated with this auth code
|
|
44
|
+
*/
|
|
45
|
+
appId: number;
|
|
46
|
+
/**
|
|
47
|
+
* ISO 8601 timestamp of when the auth code was created
|
|
48
|
+
*/
|
|
49
|
+
createdAt: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Successfully created authorization code
|
|
53
|
+
*/
|
|
54
|
+
export type CreateAuthKeysCodeResponse = {
|
|
55
|
+
/**
|
|
56
|
+
* Auth code data
|
|
57
|
+
*/
|
|
58
|
+
data: CreateAuthKeysCodeData;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const CreateAuthKeysCodeCodeChallengeMethod$inboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, unknown>;
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const CreateAuthKeysCodeCodeChallengeMethod$outboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod>;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export declare namespace CreateAuthKeysCodeCodeChallengeMethod$ {
|
|
69
|
+
/** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$inboundSchema` instead. */
|
|
70
|
+
const inboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeCodeChallengeMethod, unknown>>;
|
|
71
|
+
/** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$outboundSchema` instead. */
|
|
72
|
+
const outboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod, z.core.$ZodTypeInternals<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod>>;
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const CreateAuthKeysCodeRequest$inboundSchema: z.ZodType<CreateAuthKeysCodeRequest, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type CreateAuthKeysCodeRequest$Outbound = {
|
|
78
|
+
callback_url: string;
|
|
79
|
+
code_challenge?: string | undefined;
|
|
80
|
+
code_challenge_method?: string | undefined;
|
|
81
|
+
limit?: number | undefined;
|
|
82
|
+
};
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const CreateAuthKeysCodeRequest$outboundSchema: z.ZodType<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace CreateAuthKeysCodeRequest$ {
|
|
90
|
+
/** @deprecated use `CreateAuthKeysCodeRequest$inboundSchema` instead. */
|
|
91
|
+
const inboundSchema: z.ZodType<CreateAuthKeysCodeRequest, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeRequest, unknown>>;
|
|
92
|
+
/** @deprecated use `CreateAuthKeysCodeRequest$outboundSchema` instead. */
|
|
93
|
+
const outboundSchema: z.ZodType<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest, z.core.$ZodTypeInternals<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest>>;
|
|
94
|
+
/** @deprecated use `CreateAuthKeysCodeRequest$Outbound` instead. */
|
|
95
|
+
type Outbound = CreateAuthKeysCodeRequest$Outbound;
|
|
96
|
+
}
|
|
97
|
+
export declare function createAuthKeysCodeRequestToJSON(createAuthKeysCodeRequest: CreateAuthKeysCodeRequest): string;
|
|
98
|
+
export declare function createAuthKeysCodeRequestFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeRequest, SDKValidationError>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const CreateAuthKeysCodeData$inboundSchema: z.ZodType<CreateAuthKeysCodeData, unknown>;
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type CreateAuthKeysCodeData$Outbound = {
|
|
103
|
+
id: string;
|
|
104
|
+
app_id: number;
|
|
105
|
+
created_at: string;
|
|
106
|
+
};
|
|
107
|
+
/** @internal */
|
|
108
|
+
export declare const CreateAuthKeysCodeData$outboundSchema: z.ZodType<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData>;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
+
*/
|
|
113
|
+
export declare namespace CreateAuthKeysCodeData$ {
|
|
114
|
+
/** @deprecated use `CreateAuthKeysCodeData$inboundSchema` instead. */
|
|
115
|
+
const inboundSchema: z.ZodType<CreateAuthKeysCodeData, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeData, unknown>>;
|
|
116
|
+
/** @deprecated use `CreateAuthKeysCodeData$outboundSchema` instead. */
|
|
117
|
+
const outboundSchema: z.ZodType<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData, z.core.$ZodTypeInternals<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData>>;
|
|
118
|
+
/** @deprecated use `CreateAuthKeysCodeData$Outbound` instead. */
|
|
119
|
+
type Outbound = CreateAuthKeysCodeData$Outbound;
|
|
120
|
+
}
|
|
121
|
+
export declare function createAuthKeysCodeDataToJSON(createAuthKeysCodeData: CreateAuthKeysCodeData): string;
|
|
122
|
+
export declare function createAuthKeysCodeDataFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeData, SDKValidationError>;
|
|
123
|
+
/** @internal */
|
|
124
|
+
export declare const CreateAuthKeysCodeResponse$inboundSchema: z.ZodType<CreateAuthKeysCodeResponse, unknown>;
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type CreateAuthKeysCodeResponse$Outbound = {
|
|
127
|
+
data: CreateAuthKeysCodeData$Outbound;
|
|
128
|
+
};
|
|
129
|
+
/** @internal */
|
|
130
|
+
export declare const CreateAuthKeysCodeResponse$outboundSchema: z.ZodType<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
|
+
*/
|
|
135
|
+
export declare namespace CreateAuthKeysCodeResponse$ {
|
|
136
|
+
/** @deprecated use `CreateAuthKeysCodeResponse$inboundSchema` instead. */
|
|
137
|
+
const inboundSchema: z.ZodType<CreateAuthKeysCodeResponse, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeResponse, unknown>>;
|
|
138
|
+
/** @deprecated use `CreateAuthKeysCodeResponse$outboundSchema` instead. */
|
|
139
|
+
const outboundSchema: z.ZodType<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse, z.core.$ZodTypeInternals<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse>>;
|
|
140
|
+
/** @deprecated use `CreateAuthKeysCodeResponse$Outbound` instead. */
|
|
141
|
+
type Outbound = CreateAuthKeysCodeResponse$Outbound;
|
|
142
|
+
}
|
|
143
|
+
export declare function createAuthKeysCodeResponseToJSON(createAuthKeysCodeResponse: CreateAuthKeysCodeResponse): string;
|
|
144
|
+
export declare function createAuthKeysCodeResponseFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeResponse, SDKValidationError>;
|
|
145
|
+
//# sourceMappingURL=createauthkeyscode.d.ts.map
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { catchUnrecognizedEnum, } from "../../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* The method used to generate the code challenge
|
|
10
|
+
*/
|
|
11
|
+
export const CreateAuthKeysCodeCodeChallengeMethod = {
|
|
12
|
+
S256: "S256",
|
|
13
|
+
Plain: "plain",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateAuthKeysCodeCodeChallengeMethod$inboundSchema = z
|
|
17
|
+
.union([
|
|
18
|
+
z.enum(CreateAuthKeysCodeCodeChallengeMethod),
|
|
19
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
20
|
+
]);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreateAuthKeysCodeCodeChallengeMethod$outboundSchema = z.union([
|
|
23
|
+
z.enum(CreateAuthKeysCodeCodeChallengeMethod),
|
|
24
|
+
z.string().and(z.custom()),
|
|
25
|
+
]);
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export var CreateAuthKeysCodeCodeChallengeMethod$;
|
|
31
|
+
(function (CreateAuthKeysCodeCodeChallengeMethod$) {
|
|
32
|
+
/** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$inboundSchema` instead. */
|
|
33
|
+
CreateAuthKeysCodeCodeChallengeMethod$.inboundSchema = CreateAuthKeysCodeCodeChallengeMethod$inboundSchema;
|
|
34
|
+
/** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$outboundSchema` instead. */
|
|
35
|
+
CreateAuthKeysCodeCodeChallengeMethod$.outboundSchema = CreateAuthKeysCodeCodeChallengeMethod$outboundSchema;
|
|
36
|
+
})(CreateAuthKeysCodeCodeChallengeMethod$ || (CreateAuthKeysCodeCodeChallengeMethod$ = {}));
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CreateAuthKeysCodeRequest$inboundSchema = z.object({
|
|
39
|
+
callback_url: z.string(),
|
|
40
|
+
code_challenge: z.string().optional(),
|
|
41
|
+
code_challenge_method: CreateAuthKeysCodeCodeChallengeMethod$inboundSchema
|
|
42
|
+
.optional(),
|
|
43
|
+
limit: z.number().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"callback_url": "callbackUrl",
|
|
47
|
+
"code_challenge": "codeChallenge",
|
|
48
|
+
"code_challenge_method": "codeChallengeMethod",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const CreateAuthKeysCodeRequest$outboundSchema = z.object({
|
|
53
|
+
callbackUrl: z.string(),
|
|
54
|
+
codeChallenge: z.string().optional(),
|
|
55
|
+
codeChallengeMethod: CreateAuthKeysCodeCodeChallengeMethod$outboundSchema
|
|
56
|
+
.optional(),
|
|
57
|
+
limit: z.number().optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
callbackUrl: "callback_url",
|
|
61
|
+
codeChallenge: "code_challenge",
|
|
62
|
+
codeChallengeMethod: "code_challenge_method",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export var CreateAuthKeysCodeRequest$;
|
|
70
|
+
(function (CreateAuthKeysCodeRequest$) {
|
|
71
|
+
/** @deprecated use `CreateAuthKeysCodeRequest$inboundSchema` instead. */
|
|
72
|
+
CreateAuthKeysCodeRequest$.inboundSchema = CreateAuthKeysCodeRequest$inboundSchema;
|
|
73
|
+
/** @deprecated use `CreateAuthKeysCodeRequest$outboundSchema` instead. */
|
|
74
|
+
CreateAuthKeysCodeRequest$.outboundSchema = CreateAuthKeysCodeRequest$outboundSchema;
|
|
75
|
+
})(CreateAuthKeysCodeRequest$ || (CreateAuthKeysCodeRequest$ = {}));
|
|
76
|
+
export function createAuthKeysCodeRequestToJSON(createAuthKeysCodeRequest) {
|
|
77
|
+
return JSON.stringify(CreateAuthKeysCodeRequest$outboundSchema.parse(createAuthKeysCodeRequest));
|
|
78
|
+
}
|
|
79
|
+
export function createAuthKeysCodeRequestFromJSON(jsonString) {
|
|
80
|
+
return safeParse(jsonString, (x) => CreateAuthKeysCodeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeRequest' from JSON`);
|
|
81
|
+
}
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const CreateAuthKeysCodeData$inboundSchema = z.object({
|
|
84
|
+
id: z.string(),
|
|
85
|
+
app_id: z.number(),
|
|
86
|
+
created_at: z.string(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
"app_id": "appId",
|
|
90
|
+
"created_at": "createdAt",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const CreateAuthKeysCodeData$outboundSchema = z.object({
|
|
95
|
+
id: z.string(),
|
|
96
|
+
appId: z.number(),
|
|
97
|
+
createdAt: z.string(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
appId: "app_id",
|
|
101
|
+
createdAt: "created_at",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
+
*/
|
|
108
|
+
export var CreateAuthKeysCodeData$;
|
|
109
|
+
(function (CreateAuthKeysCodeData$) {
|
|
110
|
+
/** @deprecated use `CreateAuthKeysCodeData$inboundSchema` instead. */
|
|
111
|
+
CreateAuthKeysCodeData$.inboundSchema = CreateAuthKeysCodeData$inboundSchema;
|
|
112
|
+
/** @deprecated use `CreateAuthKeysCodeData$outboundSchema` instead. */
|
|
113
|
+
CreateAuthKeysCodeData$.outboundSchema = CreateAuthKeysCodeData$outboundSchema;
|
|
114
|
+
})(CreateAuthKeysCodeData$ || (CreateAuthKeysCodeData$ = {}));
|
|
115
|
+
export function createAuthKeysCodeDataToJSON(createAuthKeysCodeData) {
|
|
116
|
+
return JSON.stringify(CreateAuthKeysCodeData$outboundSchema.parse(createAuthKeysCodeData));
|
|
117
|
+
}
|
|
118
|
+
export function createAuthKeysCodeDataFromJSON(jsonString) {
|
|
119
|
+
return safeParse(jsonString, (x) => CreateAuthKeysCodeData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeData' from JSON`);
|
|
120
|
+
}
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const CreateAuthKeysCodeResponse$inboundSchema = z.object({
|
|
123
|
+
data: z.lazy(() => CreateAuthKeysCodeData$inboundSchema),
|
|
124
|
+
});
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const CreateAuthKeysCodeResponse$outboundSchema = z.object({
|
|
127
|
+
data: z.lazy(() => CreateAuthKeysCodeData$outboundSchema),
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export var CreateAuthKeysCodeResponse$;
|
|
134
|
+
(function (CreateAuthKeysCodeResponse$) {
|
|
135
|
+
/** @deprecated use `CreateAuthKeysCodeResponse$inboundSchema` instead. */
|
|
136
|
+
CreateAuthKeysCodeResponse$.inboundSchema = CreateAuthKeysCodeResponse$inboundSchema;
|
|
137
|
+
/** @deprecated use `CreateAuthKeysCodeResponse$outboundSchema` instead. */
|
|
138
|
+
CreateAuthKeysCodeResponse$.outboundSchema = CreateAuthKeysCodeResponse$outboundSchema;
|
|
139
|
+
})(CreateAuthKeysCodeResponse$ || (CreateAuthKeysCodeResponse$ = {}));
|
|
140
|
+
export function createAuthKeysCodeResponseToJSON(createAuthKeysCodeResponse) {
|
|
141
|
+
return JSON.stringify(CreateAuthKeysCodeResponse$outboundSchema.parse(createAuthKeysCodeResponse));
|
|
142
|
+
}
|
|
143
|
+
export function createAuthKeysCodeResponseFromJSON(jsonString) {
|
|
144
|
+
return safeParse(jsonString, (x) => CreateAuthKeysCodeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeResponse' from JSON`);
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=createauthkeyscode.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { EventStream } from "../../lib/event-streams.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import * as models from "../index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Successful response
|
|
8
|
+
*/
|
|
9
|
+
export type CreateResponsesResponseBody = {
|
|
10
|
+
/**
|
|
11
|
+
* Union of all possible event types emitted during response streaming
|
|
12
|
+
*/
|
|
13
|
+
data: models.OpenResponsesStreamEvent;
|
|
14
|
+
};
|
|
15
|
+
export type CreateResponsesResponse = models.OpenResponsesNonStreamingResponse | EventStream<models.OpenResponsesStreamEvent>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const CreateResponsesResponseBody$inboundSchema: z.ZodType<CreateResponsesResponseBody, unknown>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type CreateResponsesResponseBody$Outbound = {
|
|
20
|
+
data: models.OpenResponsesStreamEvent$Outbound;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const CreateResponsesResponseBody$outboundSchema: z.ZodType<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace CreateResponsesResponseBody$ {
|
|
29
|
+
/** @deprecated use `CreateResponsesResponseBody$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<CreateResponsesResponseBody, unknown, z.core.$ZodTypeInternals<CreateResponsesResponseBody, unknown>>;
|
|
31
|
+
/** @deprecated use `CreateResponsesResponseBody$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody, z.core.$ZodTypeInternals<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody>>;
|
|
33
|
+
/** @deprecated use `CreateResponsesResponseBody$Outbound` instead. */
|
|
34
|
+
type Outbound = CreateResponsesResponseBody$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function createResponsesResponseBodyToJSON(createResponsesResponseBody: CreateResponsesResponseBody): string;
|
|
37
|
+
export declare function createResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateResponsesResponseBody, SDKValidationError>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const CreateResponsesResponse$inboundSchema: z.ZodType<CreateResponsesResponse, unknown>;
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CreateResponsesResponse$Outbound = models.OpenResponsesNonStreamingResponse$Outbound | never;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const CreateResponsesResponse$outboundSchema: z.ZodType<CreateResponsesResponse$Outbound, CreateResponsesResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export declare namespace CreateResponsesResponse$ {
|
|
49
|
+
/** @deprecated use `CreateResponsesResponse$inboundSchema` instead. */
|
|
50
|
+
const inboundSchema: z.ZodType<CreateResponsesResponse, unknown, z.core.$ZodTypeInternals<CreateResponsesResponse, unknown>>;
|
|
51
|
+
/** @deprecated use `CreateResponsesResponse$outboundSchema` instead. */
|
|
52
|
+
const outboundSchema: z.ZodType<models.OpenResponsesNonStreamingResponse$Outbound, CreateResponsesResponse, z.core.$ZodTypeInternals<models.OpenResponsesNonStreamingResponse$Outbound, CreateResponsesResponse>>;
|
|
53
|
+
/** @deprecated use `CreateResponsesResponse$Outbound` instead. */
|
|
54
|
+
type Outbound = CreateResponsesResponse$Outbound;
|
|
55
|
+
}
|
|
56
|
+
export declare function createResponsesResponseToJSON(createResponsesResponse: CreateResponsesResponse): string;
|
|
57
|
+
export declare function createResponsesResponseFromJSON(jsonString: string): SafeParseResult<CreateResponsesResponse, SDKValidationError>;
|
|
58
|
+
//# sourceMappingURL=createresponses.d.ts.map
|