swapApi: {
"/v1/swap/{id}": {
get: {
description: "Retrieves details associated with a specific swap.";
params: TObject<{ id: TString }>;
response: {
"200": TUnion<
[
TIntersect<
[
TObject<{ identityId: TString }>,
TIntersect<[TObject<(...)>, TObject<(...)>]>,
],
>,
TIntersect<
[
TObject<{ organizationId: TString }>,
TIntersect<[TObject<(...)>, TObject<(...)>]>,
],
>,
],
>;
"400": TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
"404": TObject<
{
code: TLiteral<"notFound">;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
};
summary: "Get Swap";
tags: readonly ["Swap"];
};
};
} = ...
Type Declaration
Readonly/v1/swap/{id}: {
get: {
description: "Retrieves details associated with a specific swap.";
params: TObject<{ id: TString }>;
response: {
"200": TUnion<
[
TIntersect<
[
TObject<{ identityId: TString }>,
TIntersect<[TObject<(...)>, TObject<(...)>]>,
],
>,
TIntersect<
[
TObject<{ organizationId: TString }>,
TIntersect<[TObject<(...)>, TObject<(...)>]>,
],
>,
],
>;
"400": TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
"404": TObject<
{
code: TLiteral<"notFound">;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
};
summary: "Get Swap";
tags: readonly ["Swap"];
};
}