@clossir-tech/ts-sdk 0.10.5 → 0.10.6
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/README.md +13 -12
- package/esm/funcs/assets-get-assets-by-asset-id.d.ts +2 -2
- package/esm/funcs/assets-get-assets-by-asset-id.js +3 -3
- package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/assets-get-assets.d.ts +2 -2
- package/esm/funcs/assets-get-assets.js +3 -3
- package/esm/funcs/assets-get-assets.js.map +1 -1
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +2 -4
- package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
- package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
- package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
- package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
- package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
- package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
- package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
- package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
- package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.d.ts +1 -1
- package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
- package/esm/funcs/o-auth-post-oauth-token.js +3 -1
- package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
- package/esm/funcs/transfers-get-transfers.d.ts +1 -1
- package/esm/funcs/transfers-get-transfers.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
- package/esm/models/errors/get-oauth-authorize.js +3 -3
- package/esm/models/errors/get-oauth-userinfo.d.ts +4 -4
- package/esm/models/errors/get-oauth-userinfo.js +2 -2
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
- package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
- package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
- package/esm/models/errors/post-oauth-par.js.map +1 -0
- package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
- package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
- package/esm/models/errors/post-oauth-revoke.js +9 -9
- package/esm/models/errors/post-oauth-revoke.js.map +1 -1
- package/esm/models/errors/post-oauth-token.d.ts +6 -6
- package/esm/models/errors/post-oauth-token.js +3 -3
- package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
- package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-assets-by-asset-id.js +35 -0
- package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-assets.d.ts +55 -2
- package/esm/models/operations/get-assets.d.ts.map +1 -1
- package/esm/models/operations/get-assets.js +35 -0
- package/esm/models/operations/get-assets.js.map +1 -1
- package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
- package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
- package/esm/models/operations/get-oauth-authorize.js +2 -0
- package/esm/models/operations/get-oauth-authorize.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
- package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
- package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
- package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
- package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
- package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
- package/esm/models/operations/post-oauth-par.d.ts +98 -0
- package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
- package/esm/models/operations/post-oauth-par.js +53 -0
- package/esm/models/operations/post-oauth-par.js.map +1 -0
- package/esm/sdk/assets.d.ts +5 -5
- package/esm/sdk/assets.js +5 -5
- package/esm/sdk/bridge.d.ts +1 -1
- package/esm/sdk/bridge.js +1 -1
- package/esm/sdk/o-auth.d.ts +5 -5
- package/esm/sdk/o-auth.d.ts.map +1 -1
- package/esm/sdk/o-auth.js +7 -7
- package/esm/sdk/o-auth.js.map +1 -1
- package/esm/sdk/organizations.d.ts +13 -4
- package/esm/sdk/organizations.d.ts.map +1 -1
- package/esm/sdk/organizations.js +13 -4
- package/esm/sdk/organizations.js.map +1 -1
- package/esm/sdk/transfers.d.ts +1 -1
- package/esm/sdk/transfers.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
- package/src/funcs/assets-get-assets.ts +3 -3
- package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
- package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
- package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
- package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → o-auth-post-oauth-par.ts} +44 -47
- package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
- package/src/funcs/o-auth-post-oauth-token.ts +6 -0
- package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
- package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
- package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
- package/src/funcs/transfers-get-transfers.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/errors/get-oauth-authorize.ts +6 -6
- package/src/models/errors/get-oauth-userinfo.ts +4 -4
- package/src/models/errors/index.ts +1 -1
- package/src/models/errors/post-oauth-par.ts +493 -0
- package/src/models/errors/post-oauth-revoke.ts +40 -42
- package/src/models/errors/post-oauth-token.ts +6 -6
- package/src/models/operations/get-assets-by-asset-id.ts +95 -0
- package/src/models/operations/get-assets.ts +93 -2
- package/src/models/operations/get-oauth-authorize.ts +8 -1
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
- package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
- package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
- package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
- package/src/models/operations/post-oauth-par.ts +172 -0
- package/src/sdk/assets.ts +5 -5
- package/src/sdk/bridge.ts +1 -1
- package/src/sdk/o-auth.ts +9 -9
- package/src/sdk/organizations.ts +13 -4
- package/src/sdk/transfers.ts +1 -1
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
- package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
- package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
- package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
- package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
- package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
- package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
export type PostOauthAuthorizeCallbackRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* Client ID
|
|
7
|
-
*/
|
|
8
|
-
clientId: string;
|
|
9
|
-
/**
|
|
10
|
-
* Redirect URI
|
|
11
|
-
*/
|
|
12
|
-
redirectUri: string;
|
|
13
|
-
/**
|
|
14
|
-
* Approved scopes
|
|
15
|
-
*/
|
|
16
|
-
scope: string;
|
|
17
|
-
/**
|
|
18
|
-
* State parameter
|
|
19
|
-
*/
|
|
20
|
-
state: string;
|
|
21
|
-
codeChallenge?: string | undefined;
|
|
22
|
-
codeChallengeMethod?: string | undefined;
|
|
23
|
-
nonce?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Response
|
|
27
|
-
*/
|
|
28
|
-
export type PostOauthAuthorizeCallbackResponse = {
|
|
29
|
-
/**
|
|
30
|
-
* URL to redirect user with authorization code
|
|
31
|
-
*/
|
|
32
|
-
redirectUrl: string;
|
|
33
|
-
};
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type PostOauthAuthorizeCallbackRequest$Outbound = {
|
|
36
|
-
client_id: string;
|
|
37
|
-
redirect_uri: string;
|
|
38
|
-
scope: string;
|
|
39
|
-
state: string;
|
|
40
|
-
code_challenge?: string | undefined;
|
|
41
|
-
code_challenge_method?: string | undefined;
|
|
42
|
-
nonce?: string | undefined;
|
|
43
|
-
};
|
|
44
|
-
/** @internal */
|
|
45
|
-
export declare const PostOauthAuthorizeCallbackRequest$outboundSchema: z.ZodMiniType<PostOauthAuthorizeCallbackRequest$Outbound, PostOauthAuthorizeCallbackRequest>;
|
|
46
|
-
export declare function postOauthAuthorizeCallbackRequestToJSON(postOauthAuthorizeCallbackRequest: PostOauthAuthorizeCallbackRequest): string;
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const PostOauthAuthorizeCallbackResponse$inboundSchema: z.ZodMiniType<PostOauthAuthorizeCallbackResponse, unknown>;
|
|
49
|
-
export declare function postOauthAuthorizeCallbackResponseFromJSON(jsonString: string): SafeParseResult<PostOauthAuthorizeCallbackResponse, SDKValidationError>;
|
|
50
|
-
//# sourceMappingURL=post-oauth-authorize-callback.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-oauth-authorize-callback.d.ts","sourceRoot":"","sources":["../../../src/models/operations/post-oauth-authorize-callback.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,WAAW,CAC1E,0CAA0C,EAC1C,iCAAiC,CAmBlC,CAAC;AAEF,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,WAAW,CAC1E,kCAAkC,EAClC,OAAO,CAUR,CAAC;AAEF,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const PostOauthAuthorizeCallbackRequest$outboundSchema = z.pipe(z.object({
|
|
10
|
-
clientId: z.string(),
|
|
11
|
-
redirectUri: z.string(),
|
|
12
|
-
scope: z.string(),
|
|
13
|
-
state: z.string(),
|
|
14
|
-
codeChallenge: z.optional(z.string()),
|
|
15
|
-
codeChallengeMethod: z.optional(z.string()),
|
|
16
|
-
nonce: z.optional(z.string()),
|
|
17
|
-
}), z.transform((v) => {
|
|
18
|
-
return remap$(v, {
|
|
19
|
-
clientId: "client_id",
|
|
20
|
-
redirectUri: "redirect_uri",
|
|
21
|
-
codeChallenge: "code_challenge",
|
|
22
|
-
codeChallengeMethod: "code_challenge_method",
|
|
23
|
-
});
|
|
24
|
-
}));
|
|
25
|
-
export function postOauthAuthorizeCallbackRequestToJSON(postOauthAuthorizeCallbackRequest) {
|
|
26
|
-
return JSON.stringify(PostOauthAuthorizeCallbackRequest$outboundSchema.parse(postOauthAuthorizeCallbackRequest));
|
|
27
|
-
}
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const PostOauthAuthorizeCallbackResponse$inboundSchema = z.pipe(z.object({
|
|
30
|
-
redirect_url: types.string(),
|
|
31
|
-
}), z.transform((v) => {
|
|
32
|
-
return remap$(v, {
|
|
33
|
-
"redirect_url": "redirectUrl",
|
|
34
|
-
});
|
|
35
|
-
}));
|
|
36
|
-
export function postOauthAuthorizeCallbackResponseFromJSON(jsonString) {
|
|
37
|
-
return safeParse(jsonString, (x) => PostOauthAuthorizeCallbackResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostOauthAuthorizeCallbackResponse' from JSON`);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=post-oauth-authorize-callback.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-oauth-authorize-callback.js","sourceRoot":"","sources":["../../../src/models/operations/post-oauth-authorize-callback.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AA8CnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gDAAgD,GAGzD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC9B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,gBAAgB;QAC/B,mBAAmB,EAAE,uBAAuB;KAC7C,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,uCAAuC,CACrD,iCAAoE,EAC5D;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AAAA,CACH;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,gDAAgD,GAGzD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;CAC7B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,0CAA0C,CACxD,UAAkB,EACuD;IACzE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,gDAAgD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,gEAAgE,CACjE,CAAC;AAAA,CACH"}
|
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import { SDKError } from "./sdk-error.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Response
|
|
12
|
-
*/
|
|
13
|
-
export type PostOauthAuthorizeCallbackInternalServerErrorData = {
|
|
14
|
-
/**
|
|
15
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
16
|
-
*/
|
|
17
|
-
error: string;
|
|
18
|
-
/**
|
|
19
|
-
* Human-readable error description
|
|
20
|
-
*/
|
|
21
|
-
errorDescription?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* URI for more information
|
|
24
|
-
*/
|
|
25
|
-
errorUri?: string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
28
|
-
*/
|
|
29
|
-
message?: string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Seconds until retry (set on 429 responses)
|
|
32
|
-
*/
|
|
33
|
-
retryAfter?: number | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Response
|
|
38
|
-
*/
|
|
39
|
-
export class PostOauthAuthorizeCallbackInternalServerError extends SDKError {
|
|
40
|
-
/**
|
|
41
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
42
|
-
*/
|
|
43
|
-
error: string;
|
|
44
|
-
/**
|
|
45
|
-
* Human-readable error description
|
|
46
|
-
*/
|
|
47
|
-
errorDescription?: string | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* URI for more information
|
|
50
|
-
*/
|
|
51
|
-
errorUri?: string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Seconds until retry (set on 429 responses)
|
|
54
|
-
*/
|
|
55
|
-
retryAfter?: number | undefined;
|
|
56
|
-
|
|
57
|
-
/** The original data that was passed to this error instance. */
|
|
58
|
-
data$: PostOauthAuthorizeCallbackInternalServerErrorData;
|
|
59
|
-
|
|
60
|
-
constructor(
|
|
61
|
-
err: PostOauthAuthorizeCallbackInternalServerErrorData,
|
|
62
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
63
|
-
) {
|
|
64
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
65
|
-
super(message, httpMeta);
|
|
66
|
-
this.data$ = err;
|
|
67
|
-
this.error = err.error;
|
|
68
|
-
if (err.errorDescription != null) {
|
|
69
|
-
this.errorDescription = err.errorDescription;
|
|
70
|
-
}
|
|
71
|
-
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
72
|
-
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
73
|
-
|
|
74
|
-
this.name = "PostOauthAuthorizeCallbackInternalServerError";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Response
|
|
80
|
-
*/
|
|
81
|
-
export type PostOauthAuthorizeCallbackTooManyRequestsErrorData = {
|
|
82
|
-
/**
|
|
83
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
84
|
-
*/
|
|
85
|
-
error: string;
|
|
86
|
-
/**
|
|
87
|
-
* Human-readable error description
|
|
88
|
-
*/
|
|
89
|
-
errorDescription?: string | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* URI for more information
|
|
92
|
-
*/
|
|
93
|
-
errorUri?: string | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
96
|
-
*/
|
|
97
|
-
message?: string | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Seconds until retry (set on 429 responses)
|
|
100
|
-
*/
|
|
101
|
-
retryAfter?: number | undefined;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Response
|
|
106
|
-
*/
|
|
107
|
-
export class PostOauthAuthorizeCallbackTooManyRequestsError extends SDKError {
|
|
108
|
-
/**
|
|
109
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
110
|
-
*/
|
|
111
|
-
error: string;
|
|
112
|
-
/**
|
|
113
|
-
* Human-readable error description
|
|
114
|
-
*/
|
|
115
|
-
errorDescription?: string | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* URI for more information
|
|
118
|
-
*/
|
|
119
|
-
errorUri?: string | undefined;
|
|
120
|
-
/**
|
|
121
|
-
* Seconds until retry (set on 429 responses)
|
|
122
|
-
*/
|
|
123
|
-
retryAfter?: number | undefined;
|
|
124
|
-
|
|
125
|
-
/** The original data that was passed to this error instance. */
|
|
126
|
-
data$: PostOauthAuthorizeCallbackTooManyRequestsErrorData;
|
|
127
|
-
|
|
128
|
-
constructor(
|
|
129
|
-
err: PostOauthAuthorizeCallbackTooManyRequestsErrorData,
|
|
130
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
131
|
-
) {
|
|
132
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
133
|
-
super(message, httpMeta);
|
|
134
|
-
this.data$ = err;
|
|
135
|
-
this.error = err.error;
|
|
136
|
-
if (err.errorDescription != null) {
|
|
137
|
-
this.errorDescription = err.errorDescription;
|
|
138
|
-
}
|
|
139
|
-
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
140
|
-
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
141
|
-
|
|
142
|
-
this.name = "PostOauthAuthorizeCallbackTooManyRequestsError";
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Response
|
|
148
|
-
*/
|
|
149
|
-
export type PostOauthAuthorizeCallbackUnauthorizedErrorData = {
|
|
150
|
-
/**
|
|
151
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
152
|
-
*/
|
|
153
|
-
error: string;
|
|
154
|
-
/**
|
|
155
|
-
* Human-readable error description
|
|
156
|
-
*/
|
|
157
|
-
errorDescription?: string | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* URI for more information
|
|
160
|
-
*/
|
|
161
|
-
errorUri?: string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
164
|
-
*/
|
|
165
|
-
message?: string | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* Seconds until retry (set on 429 responses)
|
|
168
|
-
*/
|
|
169
|
-
retryAfter?: number | undefined;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Response
|
|
174
|
-
*/
|
|
175
|
-
export class PostOauthAuthorizeCallbackUnauthorizedError extends SDKError {
|
|
176
|
-
/**
|
|
177
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
178
|
-
*/
|
|
179
|
-
error: string;
|
|
180
|
-
/**
|
|
181
|
-
* Human-readable error description
|
|
182
|
-
*/
|
|
183
|
-
errorDescription?: string | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* URI for more information
|
|
186
|
-
*/
|
|
187
|
-
errorUri?: string | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* Seconds until retry (set on 429 responses)
|
|
190
|
-
*/
|
|
191
|
-
retryAfter?: number | undefined;
|
|
192
|
-
|
|
193
|
-
/** The original data that was passed to this error instance. */
|
|
194
|
-
data$: PostOauthAuthorizeCallbackUnauthorizedErrorData;
|
|
195
|
-
|
|
196
|
-
constructor(
|
|
197
|
-
err: PostOauthAuthorizeCallbackUnauthorizedErrorData,
|
|
198
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
199
|
-
) {
|
|
200
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
201
|
-
super(message, httpMeta);
|
|
202
|
-
this.data$ = err;
|
|
203
|
-
this.error = err.error;
|
|
204
|
-
if (err.errorDescription != null) {
|
|
205
|
-
this.errorDescription = err.errorDescription;
|
|
206
|
-
}
|
|
207
|
-
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
208
|
-
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
209
|
-
|
|
210
|
-
this.name = "PostOauthAuthorizeCallbackUnauthorizedError";
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Response
|
|
216
|
-
*/
|
|
217
|
-
export type PostOauthAuthorizeCallbackBadRequestErrorData = {
|
|
218
|
-
/**
|
|
219
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
220
|
-
*/
|
|
221
|
-
error: string;
|
|
222
|
-
/**
|
|
223
|
-
* Human-readable error description
|
|
224
|
-
*/
|
|
225
|
-
errorDescription?: string | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* URI for more information
|
|
228
|
-
*/
|
|
229
|
-
errorUri?: string | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* Legacy 'rate_limited' message (deprecated — prefer error_description)
|
|
232
|
-
*/
|
|
233
|
-
message?: string | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Seconds until retry (set on 429 responses)
|
|
236
|
-
*/
|
|
237
|
-
retryAfter?: number | undefined;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Response
|
|
242
|
-
*/
|
|
243
|
-
export class PostOauthAuthorizeCallbackBadRequestError extends SDKError {
|
|
244
|
-
/**
|
|
245
|
-
* One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, or "rate_limited" (Signum-wide rate-limit middleware)
|
|
246
|
-
*/
|
|
247
|
-
error: string;
|
|
248
|
-
/**
|
|
249
|
-
* Human-readable error description
|
|
250
|
-
*/
|
|
251
|
-
errorDescription?: string | undefined;
|
|
252
|
-
/**
|
|
253
|
-
* URI for more information
|
|
254
|
-
*/
|
|
255
|
-
errorUri?: string | undefined;
|
|
256
|
-
/**
|
|
257
|
-
* Seconds until retry (set on 429 responses)
|
|
258
|
-
*/
|
|
259
|
-
retryAfter?: number | undefined;
|
|
260
|
-
|
|
261
|
-
/** The original data that was passed to this error instance. */
|
|
262
|
-
data$: PostOauthAuthorizeCallbackBadRequestErrorData;
|
|
263
|
-
|
|
264
|
-
constructor(
|
|
265
|
-
err: PostOauthAuthorizeCallbackBadRequestErrorData,
|
|
266
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
267
|
-
) {
|
|
268
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
269
|
-
super(message, httpMeta);
|
|
270
|
-
this.data$ = err;
|
|
271
|
-
this.error = err.error;
|
|
272
|
-
if (err.errorDescription != null) {
|
|
273
|
-
this.errorDescription = err.errorDescription;
|
|
274
|
-
}
|
|
275
|
-
if (err.errorUri != null) this.errorUri = err.errorUri;
|
|
276
|
-
if (err.retryAfter != null) this.retryAfter = err.retryAfter;
|
|
277
|
-
|
|
278
|
-
this.name = "PostOauthAuthorizeCallbackBadRequestError";
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/** @internal */
|
|
283
|
-
export const PostOauthAuthorizeCallbackInternalServerError$inboundSchema:
|
|
284
|
-
z.ZodMiniType<PostOauthAuthorizeCallbackInternalServerError, unknown> = z
|
|
285
|
-
.pipe(
|
|
286
|
-
z.object({
|
|
287
|
-
error: types.string(),
|
|
288
|
-
error_description: types.optional(types.string()),
|
|
289
|
-
error_uri: types.optional(types.string()),
|
|
290
|
-
message: types.optional(types.string()),
|
|
291
|
-
retryAfter: types.optional(types.number()),
|
|
292
|
-
request$: z.custom<Request>(x => x instanceof Request),
|
|
293
|
-
response$: z.custom<Response>(x => x instanceof Response),
|
|
294
|
-
body$: z.string(),
|
|
295
|
-
}),
|
|
296
|
-
z.transform((v) => {
|
|
297
|
-
const remapped = remap$(v, {
|
|
298
|
-
"error_description": "errorDescription",
|
|
299
|
-
"error_uri": "errorUri",
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
return new PostOauthAuthorizeCallbackInternalServerError(remapped, {
|
|
303
|
-
request: v.request$,
|
|
304
|
-
response: v.response$,
|
|
305
|
-
body: v.body$,
|
|
306
|
-
});
|
|
307
|
-
}),
|
|
308
|
-
);
|
|
309
|
-
|
|
310
|
-
/** @internal */
|
|
311
|
-
export const PostOauthAuthorizeCallbackTooManyRequestsError$inboundSchema:
|
|
312
|
-
z.ZodMiniType<PostOauthAuthorizeCallbackTooManyRequestsError, unknown> = z
|
|
313
|
-
.pipe(
|
|
314
|
-
z.object({
|
|
315
|
-
error: types.string(),
|
|
316
|
-
error_description: types.optional(types.string()),
|
|
317
|
-
error_uri: types.optional(types.string()),
|
|
318
|
-
message: types.optional(types.string()),
|
|
319
|
-
retryAfter: types.optional(types.number()),
|
|
320
|
-
request$: z.custom<Request>(x => x instanceof Request),
|
|
321
|
-
response$: z.custom<Response>(x => x instanceof Response),
|
|
322
|
-
body$: z.string(),
|
|
323
|
-
}),
|
|
324
|
-
z.transform((v) => {
|
|
325
|
-
const remapped = remap$(v, {
|
|
326
|
-
"error_description": "errorDescription",
|
|
327
|
-
"error_uri": "errorUri",
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
return new PostOauthAuthorizeCallbackTooManyRequestsError(remapped, {
|
|
331
|
-
request: v.request$,
|
|
332
|
-
response: v.response$,
|
|
333
|
-
body: v.body$,
|
|
334
|
-
});
|
|
335
|
-
}),
|
|
336
|
-
);
|
|
337
|
-
|
|
338
|
-
/** @internal */
|
|
339
|
-
export const PostOauthAuthorizeCallbackUnauthorizedError$inboundSchema:
|
|
340
|
-
z.ZodMiniType<PostOauthAuthorizeCallbackUnauthorizedError, unknown> = z.pipe(
|
|
341
|
-
z.object({
|
|
342
|
-
error: types.string(),
|
|
343
|
-
error_description: types.optional(types.string()),
|
|
344
|
-
error_uri: types.optional(types.string()),
|
|
345
|
-
message: types.optional(types.string()),
|
|
346
|
-
retryAfter: types.optional(types.number()),
|
|
347
|
-
request$: z.custom<Request>(x => x instanceof Request),
|
|
348
|
-
response$: z.custom<Response>(x => x instanceof Response),
|
|
349
|
-
body$: z.string(),
|
|
350
|
-
}),
|
|
351
|
-
z.transform((v) => {
|
|
352
|
-
const remapped = remap$(v, {
|
|
353
|
-
"error_description": "errorDescription",
|
|
354
|
-
"error_uri": "errorUri",
|
|
355
|
-
});
|
|
356
|
-
|
|
357
|
-
return new PostOauthAuthorizeCallbackUnauthorizedError(remapped, {
|
|
358
|
-
request: v.request$,
|
|
359
|
-
response: v.response$,
|
|
360
|
-
body: v.body$,
|
|
361
|
-
});
|
|
362
|
-
}),
|
|
363
|
-
);
|
|
364
|
-
|
|
365
|
-
/** @internal */
|
|
366
|
-
export const PostOauthAuthorizeCallbackBadRequestError$inboundSchema:
|
|
367
|
-
z.ZodMiniType<PostOauthAuthorizeCallbackBadRequestError, unknown> = z.pipe(
|
|
368
|
-
z.object({
|
|
369
|
-
error: types.string(),
|
|
370
|
-
error_description: types.optional(types.string()),
|
|
371
|
-
error_uri: types.optional(types.string()),
|
|
372
|
-
message: types.optional(types.string()),
|
|
373
|
-
retryAfter: types.optional(types.number()),
|
|
374
|
-
request$: z.custom<Request>(x => x instanceof Request),
|
|
375
|
-
response$: z.custom<Response>(x => x instanceof Response),
|
|
376
|
-
body$: z.string(),
|
|
377
|
-
}),
|
|
378
|
-
z.transform((v) => {
|
|
379
|
-
const remapped = remap$(v, {
|
|
380
|
-
"error_description": "errorDescription",
|
|
381
|
-
"error_uri": "errorUri",
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
return new PostOauthAuthorizeCallbackBadRequestError(remapped, {
|
|
385
|
-
request: v.request$,
|
|
386
|
-
response: v.response$,
|
|
387
|
-
body: v.body$,
|
|
388
|
-
});
|
|
389
|
-
}),
|
|
390
|
-
);
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as types from "../../types/primitives.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
-
|
|
12
|
-
export type PostOauthAuthorizeCallbackRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Client ID
|
|
15
|
-
*/
|
|
16
|
-
clientId: string;
|
|
17
|
-
/**
|
|
18
|
-
* Redirect URI
|
|
19
|
-
*/
|
|
20
|
-
redirectUri: string;
|
|
21
|
-
/**
|
|
22
|
-
* Approved scopes
|
|
23
|
-
*/
|
|
24
|
-
scope: string;
|
|
25
|
-
/**
|
|
26
|
-
* State parameter
|
|
27
|
-
*/
|
|
28
|
-
state: string;
|
|
29
|
-
codeChallenge?: string | undefined;
|
|
30
|
-
codeChallengeMethod?: string | undefined;
|
|
31
|
-
nonce?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Response
|
|
36
|
-
*/
|
|
37
|
-
export type PostOauthAuthorizeCallbackResponse = {
|
|
38
|
-
/**
|
|
39
|
-
* URL to redirect user with authorization code
|
|
40
|
-
*/
|
|
41
|
-
redirectUrl: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type PostOauthAuthorizeCallbackRequest$Outbound = {
|
|
46
|
-
client_id: string;
|
|
47
|
-
redirect_uri: string;
|
|
48
|
-
scope: string;
|
|
49
|
-
state: string;
|
|
50
|
-
code_challenge?: string | undefined;
|
|
51
|
-
code_challenge_method?: string | undefined;
|
|
52
|
-
nonce?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const PostOauthAuthorizeCallbackRequest$outboundSchema: z.ZodMiniType<
|
|
57
|
-
PostOauthAuthorizeCallbackRequest$Outbound,
|
|
58
|
-
PostOauthAuthorizeCallbackRequest
|
|
59
|
-
> = z.pipe(
|
|
60
|
-
z.object({
|
|
61
|
-
clientId: z.string(),
|
|
62
|
-
redirectUri: z.string(),
|
|
63
|
-
scope: z.string(),
|
|
64
|
-
state: z.string(),
|
|
65
|
-
codeChallenge: z.optional(z.string()),
|
|
66
|
-
codeChallengeMethod: z.optional(z.string()),
|
|
67
|
-
nonce: z.optional(z.string()),
|
|
68
|
-
}),
|
|
69
|
-
z.transform((v) => {
|
|
70
|
-
return remap$(v, {
|
|
71
|
-
clientId: "client_id",
|
|
72
|
-
redirectUri: "redirect_uri",
|
|
73
|
-
codeChallenge: "code_challenge",
|
|
74
|
-
codeChallengeMethod: "code_challenge_method",
|
|
75
|
-
});
|
|
76
|
-
}),
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
export function postOauthAuthorizeCallbackRequestToJSON(
|
|
80
|
-
postOauthAuthorizeCallbackRequest: PostOauthAuthorizeCallbackRequest,
|
|
81
|
-
): string {
|
|
82
|
-
return JSON.stringify(
|
|
83
|
-
PostOauthAuthorizeCallbackRequest$outboundSchema.parse(
|
|
84
|
-
postOauthAuthorizeCallbackRequest,
|
|
85
|
-
),
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** @internal */
|
|
90
|
-
export const PostOauthAuthorizeCallbackResponse$inboundSchema: z.ZodMiniType<
|
|
91
|
-
PostOauthAuthorizeCallbackResponse,
|
|
92
|
-
unknown
|
|
93
|
-
> = z.pipe(
|
|
94
|
-
z.object({
|
|
95
|
-
redirect_url: types.string(),
|
|
96
|
-
}),
|
|
97
|
-
z.transform((v) => {
|
|
98
|
-
return remap$(v, {
|
|
99
|
-
"redirect_url": "redirectUrl",
|
|
100
|
-
});
|
|
101
|
-
}),
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
export function postOauthAuthorizeCallbackResponseFromJSON(
|
|
105
|
-
jsonString: string,
|
|
106
|
-
): SafeParseResult<PostOauthAuthorizeCallbackResponse, SDKValidationError> {
|
|
107
|
-
return safeParse(
|
|
108
|
-
jsonString,
|
|
109
|
-
(x) =>
|
|
110
|
-
PostOauthAuthorizeCallbackResponse$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
-
`Failed to parse 'PostOauthAuthorizeCallbackResponse' from JSON`,
|
|
112
|
-
);
|
|
113
|
-
}
|