@compose-market/sdk 0.8.33 → 0.8.34
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/dist/resources/channels.d.ts +4 -1
- package/dist/resources/channels.d.ts.map +1 -1
- package/dist/resources/channels.js +12 -0
- package/dist/resources/channels.js.map +1 -1
- package/dist/types/index.d.ts +108 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/generated/channels/esm/funcs/channels-manage.d.ts +15 -0
- package/generated/channels/esm/funcs/channels-manage.d.ts.map +1 -0
- package/generated/channels/esm/funcs/channels-manage.js +76 -0
- package/generated/channels/esm/funcs/channels-manage.js.map +1 -0
- package/generated/channels/esm/lib/config.d.ts +4 -4
- package/generated/channels/esm/lib/config.js +4 -4
- package/generated/channels/esm/models/action.d.ts +15 -0
- package/generated/channels/esm/models/action.d.ts.map +1 -0
- package/generated/channels/esm/models/action.js +19 -0
- package/generated/channels/esm/models/action.js.map +1 -0
- package/generated/channels/esm/models/availability.d.ts +10 -0
- package/generated/channels/esm/models/availability.d.ts.map +1 -0
- package/generated/channels/esm/models/availability.js +11 -0
- package/generated/channels/esm/models/availability.js.map +1 -0
- package/generated/channels/esm/models/channel-link-response.d.ts +1 -18
- package/generated/channels/esm/models/channel-link-response.d.ts.map +1 -1
- package/generated/channels/esm/models/channel-link-response.js +2 -20
- package/generated/channels/esm/models/channel-link-response.js.map +1 -1
- package/generated/channels/esm/models/choices.d.ts +17 -0
- package/generated/channels/esm/models/choices.d.ts.map +1 -0
- package/generated/channels/esm/models/choices.js +22 -0
- package/generated/channels/esm/models/choices.js.map +1 -0
- package/generated/channels/esm/models/condition.d.ts +11 -0
- package/generated/channels/esm/models/condition.d.ts.map +1 -0
- package/generated/channels/esm/models/condition.js +12 -0
- package/generated/channels/esm/models/condition.js.map +1 -0
- package/generated/channels/esm/models/connected.d.ts +13 -0
- package/generated/channels/esm/models/connected.d.ts.map +1 -0
- package/generated/channels/esm/models/connected.js +17 -0
- package/generated/channels/esm/models/connected.js.map +1 -0
- package/generated/channels/esm/models/connection.d.ts +18 -0
- package/generated/channels/esm/models/connection.d.ts.map +1 -0
- package/generated/channels/esm/models/connection.js +23 -0
- package/generated/channels/esm/models/connection.js.map +1 -0
- package/generated/channels/esm/models/deletion.d.ts +16 -0
- package/generated/channels/esm/models/deletion.d.ts.map +1 -0
- package/generated/channels/esm/models/deletion.js +14 -0
- package/generated/channels/esm/models/deletion.js.map +1 -0
- package/generated/channels/esm/models/destination.d.ts +21 -0
- package/generated/channels/esm/models/destination.d.ts.map +1 -0
- package/generated/channels/esm/models/destination.js +26 -0
- package/generated/channels/esm/models/destination.js.map +1 -0
- package/generated/channels/esm/models/enumeration.d.ts +16 -0
- package/generated/channels/esm/models/enumeration.d.ts.map +1 -0
- package/generated/channels/esm/models/enumeration.js +14 -0
- package/generated/channels/esm/models/enumeration.js.map +1 -0
- package/generated/channels/esm/models/errors/error.d.ts +18 -0
- package/generated/channels/esm/models/errors/error.d.ts.map +1 -0
- package/generated/channels/esm/models/errors/error.js +34 -0
- package/generated/channels/esm/models/errors/error.js.map +1 -0
- package/generated/channels/esm/models/errors/index.d.ts +1 -0
- package/generated/channels/esm/models/errors/index.d.ts.map +1 -1
- package/generated/channels/esm/models/errors/index.js +1 -0
- package/generated/channels/esm/models/errors/index.js.map +1 -1
- package/generated/channels/esm/models/index.d.ts +28 -0
- package/generated/channels/esm/models/index.d.ts.map +1 -1
- package/generated/channels/esm/models/index.js +28 -0
- package/generated/channels/esm/models/index.js.map +1 -1
- package/generated/channels/esm/models/inspection.d.ts +14 -0
- package/generated/channels/esm/models/inspection.d.ts.map +1 -0
- package/generated/channels/esm/models/inspection.js +13 -0
- package/generated/channels/esm/models/inspection.js.map +1 -0
- package/generated/channels/esm/models/kind.d.ts +11 -0
- package/generated/channels/esm/models/kind.d.ts.map +1 -0
- package/generated/channels/esm/models/kind.js +13 -0
- package/generated/channels/esm/models/kind.js.map +1 -0
- package/generated/channels/esm/models/linkage.d.ts +17 -0
- package/generated/channels/esm/models/linkage.d.ts.map +1 -0
- package/generated/channels/esm/models/linkage.js +15 -0
- package/generated/channels/esm/models/linkage.js.map +1 -0
- package/generated/channels/esm/models/lookup.d.ts +19 -0
- package/generated/channels/esm/models/lookup.d.ts.map +1 -0
- package/generated/channels/esm/models/lookup.js +17 -0
- package/generated/channels/esm/models/lookup.js.map +1 -0
- package/generated/channels/esm/models/managed.d.ts +16 -0
- package/generated/channels/esm/models/managed.d.ts.map +1 -0
- package/generated/channels/esm/models/managed.js +26 -0
- package/generated/channels/esm/models/managed.js.map +1 -0
- package/generated/channels/esm/models/management.d.ts +17 -0
- package/generated/channels/esm/models/management.d.ts.map +1 -0
- package/generated/channels/esm/models/management.js +29 -0
- package/generated/channels/esm/models/management.js.map +1 -0
- package/generated/channels/esm/models/news.d.ts +23 -0
- package/generated/channels/esm/models/news.d.ts.map +1 -0
- package/generated/channels/esm/models/news.js +27 -0
- package/generated/channels/esm/models/news.js.map +1 -0
- package/generated/channels/esm/models/preference.d.ts +27 -0
- package/generated/channels/esm/models/preference.d.ts.map +1 -0
- package/generated/channels/esm/models/preference.js +24 -0
- package/generated/channels/esm/models/preference.js.map +1 -0
- package/generated/channels/esm/models/result.d.ts +10 -0
- package/generated/channels/esm/models/result.d.ts.map +1 -0
- package/generated/channels/esm/models/result.js +14 -0
- package/generated/channels/esm/models/result.js.map +1 -0
- package/generated/channels/esm/models/selection.d.ts +18 -0
- package/generated/channels/esm/models/selection.d.ts.map +1 -0
- package/generated/channels/esm/models/selection.js +15 -0
- package/generated/channels/esm/models/selection.js.map +1 -0
- package/generated/channels/esm/models/sentiment.d.ts +13 -0
- package/generated/channels/esm/models/sentiment.d.ts.map +1 -0
- package/generated/channels/esm/models/sentiment.js +14 -0
- package/generated/channels/esm/models/sentiment.js.map +1 -0
- package/generated/channels/esm/models/signals.d.ts +28 -0
- package/generated/channels/esm/models/signals.d.ts.map +1 -0
- package/generated/channels/esm/models/signals.js +32 -0
- package/generated/channels/esm/models/signals.js.map +1 -0
- package/generated/channels/esm/models/source.d.ts +12 -0
- package/generated/channels/esm/models/source.d.ts.map +1 -0
- package/generated/channels/esm/models/source.js +15 -0
- package/generated/channels/esm/models/source.js.map +1 -0
- package/generated/channels/esm/models/status.d.ts +15 -0
- package/generated/channels/esm/models/status.d.ts.map +1 -0
- package/generated/channels/esm/models/status.js +18 -0
- package/generated/channels/esm/models/status.js.map +1 -0
- package/generated/channels/esm/models/subscribe.d.ts +19 -0
- package/generated/channels/esm/models/subscribe.d.ts.map +1 -0
- package/generated/channels/esm/models/subscribe.js +16 -0
- package/generated/channels/esm/models/subscribe.js.map +1 -0
- package/generated/channels/esm/models/subscription.d.ts +26 -0
- package/generated/channels/esm/models/subscription.d.ts.map +1 -0
- package/generated/channels/esm/models/subscription.js +32 -0
- package/generated/channels/esm/models/subscription.js.map +1 -0
- package/generated/channels/esm/models/toggle.d.ts +18 -0
- package/generated/channels/esm/models/toggle.d.ts.map +1 -0
- package/generated/channels/esm/models/toggle.js +16 -0
- package/generated/channels/esm/models/toggle.js.map +1 -0
- package/generated/channels/esm/models/type.d.ts +11 -0
- package/generated/channels/esm/models/type.d.ts.map +1 -0
- package/generated/channels/esm/models/type.js +13 -0
- package/generated/channels/esm/models/type.js.map +1 -0
- package/generated/channels/esm/models/unlink.d.ts +16 -0
- package/generated/channels/esm/models/unlink.d.ts.map +1 -0
- package/generated/channels/esm/models/unlink.js +15 -0
- package/generated/channels/esm/models/unlink.js.map +1 -0
- package/generated/channels/esm/sdk/channels.d.ts +4 -0
- package/generated/channels/esm/sdk/channels.d.ts.map +1 -1
- package/generated/channels/esm/sdk/channels.js +7 -0
- package/generated/channels/esm/sdk/channels.js.map +1 -1
- package/generated/channels/package.json +2 -2
- package/generated/channels/src/funcs/channels-manage.ts +164 -0
- package/generated/channels/src/lib/config.ts +4 -4
- package/generated/channels/src/models/action.ts +37 -0
- package/generated/channels/src/models/availability.ts +17 -0
- package/generated/channels/src/models/channel-link-response.ts +2 -39
- package/generated/channels/src/models/choices.ts +49 -0
- package/generated/channels/src/models/condition.ts +18 -0
- package/generated/channels/src/models/connected.ts +32 -0
- package/generated/channels/src/models/connection.ts +43 -0
- package/generated/channels/src/models/deletion.ts +32 -0
- package/generated/channels/src/models/destination.ts +48 -0
- package/generated/channels/src/models/enumeration.ts +32 -0
- package/generated/channels/src/models/errors/error.ts +49 -0
- package/generated/channels/src/models/errors/index.ts +1 -0
- package/generated/channels/src/models/index.ts +28 -0
- package/generated/channels/src/models/inspection.ts +29 -0
- package/generated/channels/src/models/kind.ts +18 -0
- package/generated/channels/src/models/linkage.ts +31 -0
- package/generated/channels/src/models/lookup.ts +34 -0
- package/generated/channels/src/models/managed.ts +46 -0
- package/generated/channels/src/models/management.ts +81 -0
- package/generated/channels/src/models/news.ts +54 -0
- package/generated/channels/src/models/preference.ts +62 -0
- package/generated/channels/src/models/result.ts +28 -0
- package/generated/channels/src/models/selection.ts +35 -0
- package/generated/channels/src/models/sentiment.ts +21 -0
- package/generated/channels/src/models/signals.ts +66 -0
- package/generated/channels/src/models/source.ts +20 -0
- package/generated/channels/src/models/status.ts +34 -0
- package/generated/channels/src/models/subscribe.ts +40 -0
- package/generated/channels/src/models/subscription.ts +69 -0
- package/generated/channels/src/models/toggle.ts +33 -0
- package/generated/channels/src/models/type.ts +18 -0
- package/generated/channels/src/models/unlink.ts +30 -0
- package/generated/channels/src/sdk/channels.ts +15 -0
- package/generated/inference/esm/lib/config.d.ts +3 -3
- package/generated/inference/esm/lib/config.js +3 -3
- package/generated/inference/package.json +1 -1
- package/generated/inference/src/lib/config.ts +3 -3
- package/generated/manowar/esm/lib/config.d.ts +3 -3
- package/generated/manowar/esm/lib/config.js +3 -3
- package/generated/manowar/package.json +1 -1
- package/generated/manowar/src/lib/config.ts +3 -3
- package/generated/memory/esm/lib/config.d.ts +3 -3
- package/generated/memory/esm/lib/config.js +3 -3
- package/generated/memory/package.json +1 -1
- package/generated/memory/src/lib/config.ts +3 -3
- package/generated/x402/esm/lib/config.d.ts +3 -3
- package/generated/x402/esm/lib/config.js +3 -3
- package/generated/x402/package.json +1 -1
- package/generated/x402/src/lib/config.ts +3 -3
- package/package.json +9 -9
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type News = {
|
|
12
|
+
categoryId?: Array<number> | undefined;
|
|
13
|
+
subCategoryId?: Array<number> | undefined;
|
|
14
|
+
tokenId?: Array<number> | undefined;
|
|
15
|
+
searchQuery?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const News$inboundSchema: z.ZodMiniType<News, unknown> = z.object({
|
|
20
|
+
categoryId: types.optional(z.array(types.number())),
|
|
21
|
+
subCategoryId: types.optional(z.array(types.number())),
|
|
22
|
+
tokenId: types.optional(z.array(types.number())),
|
|
23
|
+
searchQuery: types.optional(types.string()),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type News$Outbound = {
|
|
27
|
+
categoryId?: Array<number> | undefined;
|
|
28
|
+
subCategoryId?: Array<number> | undefined;
|
|
29
|
+
tokenId?: Array<number> | undefined;
|
|
30
|
+
searchQuery?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const News$outboundSchema: z.ZodMiniType<News$Outbound, News> = z.object(
|
|
35
|
+
{
|
|
36
|
+
categoryId: z.optional(z.array(z.int())),
|
|
37
|
+
subCategoryId: z.optional(z.array(z.int())),
|
|
38
|
+
tokenId: z.optional(z.array(z.int())),
|
|
39
|
+
searchQuery: z.optional(z.string()),
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export function newsToJSON(news: News): string {
|
|
44
|
+
return JSON.stringify(News$outboundSchema.parse(news));
|
|
45
|
+
}
|
|
46
|
+
export function newsFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<News, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => News$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'News' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
7
|
+
import { News, News$Outbound, News$outboundSchema } from "./news.js";
|
|
8
|
+
import {
|
|
9
|
+
Signals,
|
|
10
|
+
Signals$Outbound,
|
|
11
|
+
Signals$outboundSchema,
|
|
12
|
+
} from "./signals.js";
|
|
13
|
+
import { Source, Source$outboundSchema } from "./source.js";
|
|
14
|
+
|
|
15
|
+
export type PreferenceFilters = Signals | News;
|
|
16
|
+
|
|
17
|
+
export type Preference = {
|
|
18
|
+
destinationId: string;
|
|
19
|
+
source: Source;
|
|
20
|
+
filters: Signals | News;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type PreferenceFilters$Outbound = Signals$Outbound | News$Outbound;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PreferenceFilters$outboundSchema: z.ZodMiniType<
|
|
29
|
+
PreferenceFilters$Outbound,
|
|
30
|
+
PreferenceFilters
|
|
31
|
+
> = smartUnion([Signals$outboundSchema, News$outboundSchema]);
|
|
32
|
+
|
|
33
|
+
export function preferenceFiltersToJSON(
|
|
34
|
+
preferenceFilters: PreferenceFilters,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
PreferenceFilters$outboundSchema.parse(preferenceFilters),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type Preference$Outbound = {
|
|
43
|
+
destinationId: string;
|
|
44
|
+
source: string;
|
|
45
|
+
filters: Signals$Outbound | News$Outbound;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Preference$outboundSchema: z.ZodMiniType<
|
|
51
|
+
Preference$Outbound,
|
|
52
|
+
Preference
|
|
53
|
+
> = z.object({
|
|
54
|
+
destinationId: z.string(),
|
|
55
|
+
source: Source$outboundSchema,
|
|
56
|
+
filters: smartUnion([Signals$outboundSchema, News$outboundSchema]),
|
|
57
|
+
enabled: z.boolean(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function preferenceToJSON(preference: Preference): string {
|
|
61
|
+
return JSON.stringify(Preference$outboundSchema.parse(preference));
|
|
62
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type Result = {
|
|
12
|
+
ok: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const Result$inboundSchema: z.ZodMiniType<Result, unknown> = z.object({
|
|
17
|
+
ok: types.boolean(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export function resultFromJSON(
|
|
21
|
+
jsonString: string,
|
|
22
|
+
): SafeParseResult<Result, SDKValidationError> {
|
|
23
|
+
return safeParse(
|
|
24
|
+
jsonString,
|
|
25
|
+
(x) => Result$inboundSchema.parse(JSON.parse(x)),
|
|
26
|
+
`Failed to parse 'Result' from JSON`,
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type Selection = {
|
|
8
|
+
userAddress: string;
|
|
9
|
+
operation: "destination";
|
|
10
|
+
connectionId: string;
|
|
11
|
+
nativeId: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type Selection$Outbound = {
|
|
16
|
+
userAddress: string;
|
|
17
|
+
operation: "destination";
|
|
18
|
+
connectionId: string;
|
|
19
|
+
nativeId: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Selection$outboundSchema: z.ZodMiniType<
|
|
24
|
+
Selection$Outbound,
|
|
25
|
+
Selection
|
|
26
|
+
> = z.object({
|
|
27
|
+
userAddress: z.string(),
|
|
28
|
+
operation: z.literal("destination"),
|
|
29
|
+
connectionId: z.string(),
|
|
30
|
+
nativeId: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function selectionToJSON(selection: Selection): string {
|
|
34
|
+
return JSON.stringify(Selection$outboundSchema.parse(selection));
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const Sentiment = {
|
|
10
|
+
Bullish: "bullish",
|
|
11
|
+
Bearish: "bearish",
|
|
12
|
+
Neutral: "neutral",
|
|
13
|
+
} as const;
|
|
14
|
+
export type Sentiment = OpenEnum<typeof Sentiment>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Sentiment$inboundSchema: z.ZodMiniType<Sentiment, unknown> =
|
|
18
|
+
openEnums.inboundSchema(Sentiment);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Sentiment$outboundSchema: z.ZodMiniType<string, Sentiment> =
|
|
21
|
+
openEnums.outboundSchema(Sentiment);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
Sentiment,
|
|
12
|
+
Sentiment$inboundSchema,
|
|
13
|
+
Sentiment$outboundSchema,
|
|
14
|
+
} from "./sentiment.js";
|
|
15
|
+
|
|
16
|
+
export type Signals = {
|
|
17
|
+
chain?: Array<string> | undefined;
|
|
18
|
+
tag?: Array<string> | undefined;
|
|
19
|
+
narrative?: Array<number> | undefined;
|
|
20
|
+
cmcId?: number | undefined;
|
|
21
|
+
sentiment?: Array<Sentiment> | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Signals$inboundSchema: z.ZodMiniType<Signals, unknown> = z.object({
|
|
27
|
+
chain: types.optional(z.array(types.string())),
|
|
28
|
+
tag: types.optional(z.array(types.string())),
|
|
29
|
+
narrative: types.optional(z.array(types.number())),
|
|
30
|
+
cmcId: types.optional(types.number()),
|
|
31
|
+
sentiment: types.optional(z.array(Sentiment$inboundSchema)),
|
|
32
|
+
search: types.optional(types.string()),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type Signals$Outbound = {
|
|
36
|
+
chain?: Array<string> | undefined;
|
|
37
|
+
tag?: Array<string> | undefined;
|
|
38
|
+
narrative?: Array<number> | undefined;
|
|
39
|
+
cmcId?: number | undefined;
|
|
40
|
+
sentiment?: Array<string> | undefined;
|
|
41
|
+
search?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const Signals$outboundSchema: z.ZodMiniType<Signals$Outbound, Signals> =
|
|
46
|
+
z.object({
|
|
47
|
+
chain: z.optional(z.array(z.string())),
|
|
48
|
+
tag: z.optional(z.array(z.string())),
|
|
49
|
+
narrative: z.optional(z.array(z.int())),
|
|
50
|
+
cmcId: z.optional(z.int()),
|
|
51
|
+
sentiment: z.optional(z.array(Sentiment$outboundSchema)),
|
|
52
|
+
search: z.optional(z.string()),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function signalsToJSON(signals: Signals): string {
|
|
56
|
+
return JSON.stringify(Signals$outboundSchema.parse(signals));
|
|
57
|
+
}
|
|
58
|
+
export function signalsFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<Signals, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => Signals$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'Signals' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const Source = {
|
|
10
|
+
Signals: "signals",
|
|
11
|
+
News: "news",
|
|
12
|
+
} as const;
|
|
13
|
+
export type Source = OpenEnum<typeof Source>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const Source$inboundSchema: z.ZodMiniType<Source, unknown> = openEnums
|
|
17
|
+
.inboundSchema(Source);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const Source$outboundSchema: z.ZodMiniType<string, Source> = openEnums
|
|
20
|
+
.outboundSchema(Source);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { Connection, Connection$inboundSchema } from "./connection.js";
|
|
9
|
+
import { Destination, Destination$inboundSchema } from "./destination.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
import { Subscription, Subscription$inboundSchema } from "./subscription.js";
|
|
12
|
+
|
|
13
|
+
export type Status = {
|
|
14
|
+
connections: Array<Connection>;
|
|
15
|
+
destinations: Array<Destination>;
|
|
16
|
+
subscriptions: Array<Subscription>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Status$inboundSchema: z.ZodMiniType<Status, unknown> = z.object({
|
|
21
|
+
connections: z.array(Connection$inboundSchema),
|
|
22
|
+
destinations: z.array(Destination$inboundSchema),
|
|
23
|
+
subscriptions: z.array(Subscription$inboundSchema),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function statusFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<Status, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => Status$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'Status' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import {
|
|
7
|
+
Preference,
|
|
8
|
+
Preference$Outbound,
|
|
9
|
+
Preference$outboundSchema,
|
|
10
|
+
} from "./preference.js";
|
|
11
|
+
|
|
12
|
+
export type Subscribe = {
|
|
13
|
+
userAddress: string;
|
|
14
|
+
operation: "subscribe";
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
subscription: Preference;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type Subscribe$Outbound = {
|
|
21
|
+
userAddress: string;
|
|
22
|
+
operation: "subscribe";
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
subscription: Preference$Outbound;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const Subscribe$outboundSchema: z.ZodMiniType<
|
|
29
|
+
Subscribe$Outbound,
|
|
30
|
+
Subscribe
|
|
31
|
+
> = z.object({
|
|
32
|
+
userAddress: z.string(),
|
|
33
|
+
operation: z.literal("subscribe"),
|
|
34
|
+
id: z.optional(z.string()),
|
|
35
|
+
subscription: Preference$outboundSchema,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function subscribeToJSON(subscribe: Subscribe): string {
|
|
39
|
+
return JSON.stringify(Subscribe$outboundSchema.parse(subscribe));
|
|
40
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
import { News, News$inboundSchema } from "./news.js";
|
|
12
|
+
import { Signals, Signals$inboundSchema } from "./signals.js";
|
|
13
|
+
import { Source, Source$inboundSchema } from "./source.js";
|
|
14
|
+
|
|
15
|
+
export type SubscriptionFilters = Signals | News;
|
|
16
|
+
|
|
17
|
+
export type Subscription = {
|
|
18
|
+
destinationId: string;
|
|
19
|
+
source: Source;
|
|
20
|
+
filters: Signals | News;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
id: string;
|
|
23
|
+
userAddress: string;
|
|
24
|
+
revision: number;
|
|
25
|
+
cursor: number;
|
|
26
|
+
createdAt: number;
|
|
27
|
+
revisedAt: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const SubscriptionFilters$inboundSchema: z.ZodMiniType<
|
|
32
|
+
SubscriptionFilters,
|
|
33
|
+
unknown
|
|
34
|
+
> = smartUnion([Signals$inboundSchema, News$inboundSchema]);
|
|
35
|
+
|
|
36
|
+
export function subscriptionFiltersFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<SubscriptionFilters, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => SubscriptionFilters$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'SubscriptionFilters' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Subscription$inboundSchema: z.ZodMiniType<Subscription, unknown> =
|
|
48
|
+
z.object({
|
|
49
|
+
destinationId: types.string(),
|
|
50
|
+
source: Source$inboundSchema,
|
|
51
|
+
filters: smartUnion([Signals$inboundSchema, News$inboundSchema]),
|
|
52
|
+
enabled: types.boolean(),
|
|
53
|
+
id: types.string(),
|
|
54
|
+
userAddress: types.string(),
|
|
55
|
+
revision: types.number(),
|
|
56
|
+
cursor: types.number(),
|
|
57
|
+
createdAt: types.number(),
|
|
58
|
+
revisedAt: types.number(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function subscriptionFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<Subscription, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => Subscription$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'Subscription' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type Toggle = {
|
|
8
|
+
userAddress: string;
|
|
9
|
+
operation: "pause";
|
|
10
|
+
id: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type Toggle$Outbound = {
|
|
16
|
+
userAddress: string;
|
|
17
|
+
operation: "pause";
|
|
18
|
+
id: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Toggle$outboundSchema: z.ZodMiniType<Toggle$Outbound, Toggle> = z
|
|
24
|
+
.object({
|
|
25
|
+
userAddress: z.string(),
|
|
26
|
+
operation: z.literal("pause"),
|
|
27
|
+
id: z.string(),
|
|
28
|
+
enabled: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function toggleToJSON(toggle: Toggle): string {
|
|
32
|
+
return JSON.stringify(Toggle$outboundSchema.parse(toggle));
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const Type = {
|
|
10
|
+
Redirect: "redirect",
|
|
11
|
+
Websocket: "websocket",
|
|
12
|
+
Oauth: "oauth",
|
|
13
|
+
} as const;
|
|
14
|
+
export type Type = OpenEnum<typeof Type>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Type$inboundSchema: z.ZodMiniType<Type, unknown> = openEnums
|
|
18
|
+
.inboundSchema(Type);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type Unlink = {
|
|
8
|
+
userAddress: string;
|
|
9
|
+
operation: "disconnect";
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type Unlink$Outbound = {
|
|
15
|
+
userAddress: string;
|
|
16
|
+
operation: "disconnect";
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Unlink$outboundSchema: z.ZodMiniType<Unlink$Outbound, Unlink> = z
|
|
22
|
+
.object({
|
|
23
|
+
userAddress: z.string(),
|
|
24
|
+
operation: z.literal("disconnect"),
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function unlinkToJSON(unlink: Unlink): string {
|
|
29
|
+
return JSON.stringify(Unlink$outboundSchema.parse(unlink));
|
|
30
|
+
}
|
|
@@ -6,6 +6,7 @@ import { channelsDisconnect } from "../funcs/channels-disconnect.js";
|
|
|
6
6
|
import { channelsGet } from "../funcs/channels-get.js";
|
|
7
7
|
import { channelsLink } from "../funcs/channels-link.js";
|
|
8
8
|
import { channelsList } from "../funcs/channels-list.js";
|
|
9
|
+
import { channelsManage } from "../funcs/channels-manage.js";
|
|
9
10
|
import { channelsSlackManifest } from "../funcs/channels-slack-manifest.js";
|
|
10
11
|
import { channelsStatus } from "../funcs/channels-status.js";
|
|
11
12
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -14,6 +15,20 @@ import * as operations from "../models/operations/index.js";
|
|
|
14
15
|
import { unwrapAsync } from "../types/fp.js";
|
|
15
16
|
|
|
16
17
|
export class Channels extends ClientSDK {
|
|
18
|
+
/**
|
|
19
|
+
* Manage user-owned channels and notifications without agents
|
|
20
|
+
*/
|
|
21
|
+
async manage(
|
|
22
|
+
request: models.Management,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<models.Managed> {
|
|
25
|
+
return unwrapAsync(channelsManage(
|
|
26
|
+
this,
|
|
27
|
+
request,
|
|
28
|
+
options,
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
|
|
17
32
|
/**
|
|
18
33
|
* List available channels
|
|
19
34
|
*/
|
|
@@ -41,9 +41,9 @@ export type SDKOptions = {
|
|
|
41
41
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
42
42
|
export declare const SDK_METADATA: {
|
|
43
43
|
readonly language: "typescript";
|
|
44
|
-
readonly openapiDocVersion: "0.8.
|
|
45
|
-
readonly sdkVersion: "0.8.
|
|
44
|
+
readonly openapiDocVersion: "0.8.34";
|
|
45
|
+
readonly sdkVersion: "0.8.34";
|
|
46
46
|
readonly genVersion: "2.924.0";
|
|
47
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
47
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.34 2.924.0 0.8.22 openapi";
|
|
48
48
|
};
|
|
49
49
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -29,9 +29,9 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
}
|
|
30
30
|
export const SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
|
-
openapiDocVersion: "0.8.
|
|
33
|
-
sdkVersion: "0.8.
|
|
32
|
+
openapiDocVersion: "0.8.34",
|
|
33
|
+
sdkVersion: "0.8.34",
|
|
34
34
|
genVersion: "2.924.0",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.8.34 2.924.0 0.8.22 openapi",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -63,8 +63,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
63
63
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
|
-
openapiDocVersion: "0.8.
|
|
67
|
-
sdkVersion: "0.8.
|
|
66
|
+
openapiDocVersion: "0.8.34",
|
|
67
|
+
sdkVersion: "0.8.34",
|
|
68
68
|
genVersion: "2.924.0",
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.8.34 2.924.0 0.8.22 openapi",
|
|
70
70
|
} as const;
|
|
@@ -45,9 +45,9 @@ export type SDKOptions = {
|
|
|
45
45
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
|
-
readonly openapiDocVersion: "0.8.
|
|
49
|
-
readonly sdkVersion: "0.8.
|
|
48
|
+
readonly openapiDocVersion: "0.8.34";
|
|
49
|
+
readonly sdkVersion: "0.8.34";
|
|
50
50
|
readonly genVersion: "2.932.9";
|
|
51
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
51
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.34 2.932.9 0.8.30 openapi";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -34,9 +34,9 @@ export function serverURLFromOptions(options) {
|
|
|
34
34
|
}
|
|
35
35
|
export const SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
|
-
openapiDocVersion: "0.8.
|
|
38
|
-
sdkVersion: "0.8.
|
|
37
|
+
openapiDocVersion: "0.8.34",
|
|
38
|
+
sdkVersion: "0.8.34",
|
|
39
39
|
genVersion: "2.932.9",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.8.34 2.932.9 0.8.30 openapi",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -66,8 +66,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
66
66
|
|
|
67
67
|
export const SDK_METADATA = {
|
|
68
68
|
language: "typescript",
|
|
69
|
-
openapiDocVersion: "0.8.
|
|
70
|
-
sdkVersion: "0.8.
|
|
69
|
+
openapiDocVersion: "0.8.34",
|
|
70
|
+
sdkVersion: "0.8.34",
|
|
71
71
|
genVersion: "2.932.9",
|
|
72
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
72
|
+
userAgent: "speakeasy-sdk/typescript 0.8.34 2.932.9 0.8.30 openapi",
|
|
73
73
|
} as const;
|
|
@@ -45,9 +45,9 @@ export type SDKOptions = {
|
|
|
45
45
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
46
46
|
export declare const SDK_METADATA: {
|
|
47
47
|
readonly language: "typescript";
|
|
48
|
-
readonly openapiDocVersion: "0.8.
|
|
49
|
-
readonly sdkVersion: "0.8.
|
|
48
|
+
readonly openapiDocVersion: "0.8.34";
|
|
49
|
+
readonly sdkVersion: "0.8.34";
|
|
50
50
|
readonly genVersion: "2.918.3";
|
|
51
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
51
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.34 2.918.3 0.8.19 openapi";
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=config.d.ts.map
|