@compose-market/sdk 0.8.34 → 0.8.36
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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/channels.d.ts +1 -4
- package/dist/resources/channels.d.ts.map +1 -1
- package/dist/resources/channels.js +0 -12
- package/dist/resources/channels.js.map +1 -1
- package/dist/resources/notifications.d.ts +28 -0
- package/dist/resources/notifications.d.ts.map +1 -0
- package/dist/resources/notifications.js +58 -0
- package/dist/resources/notifications.js.map +1 -0
- package/dist/types/index.d.ts +55 -108
- 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/lib/config.d.ts +4 -4
- package/generated/channels/esm/lib/config.js +4 -4
- package/generated/channels/esm/models/channel-link-response.d.ts +18 -1
- package/generated/channels/esm/models/channel-link-response.d.ts.map +1 -1
- package/generated/channels/esm/models/channel-link-response.js +20 -2
- package/generated/channels/esm/models/channel-link-response.js.map +1 -1
- package/generated/channels/esm/models/errors/index.d.ts +0 -1
- package/generated/channels/esm/models/errors/index.d.ts.map +1 -1
- package/generated/channels/esm/models/errors/index.js +0 -1
- package/generated/channels/esm/models/errors/index.js.map +1 -1
- package/generated/channels/esm/models/index.d.ts +0 -28
- package/generated/channels/esm/models/index.d.ts.map +1 -1
- package/generated/channels/esm/models/index.js +0 -28
- package/generated/channels/esm/models/index.js.map +1 -1
- package/generated/channels/esm/sdk/channels.d.ts +0 -4
- package/generated/channels/esm/sdk/channels.d.ts.map +1 -1
- package/generated/channels/esm/sdk/channels.js +0 -7
- package/generated/channels/esm/sdk/channels.js.map +1 -1
- package/generated/channels/package.json +2 -2
- package/generated/channels/src/lib/config.ts +4 -4
- package/generated/channels/src/models/channel-link-response.ts +39 -2
- package/generated/channels/src/models/errors/index.ts +0 -1
- package/generated/channels/src/models/index.ts +0 -28
- package/generated/channels/src/sdk/channels.ts +0 -15
- 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 +5 -5
- package/generated/channels/esm/funcs/channels-manage.d.ts +0 -15
- package/generated/channels/esm/funcs/channels-manage.d.ts.map +0 -1
- package/generated/channels/esm/funcs/channels-manage.js +0 -76
- package/generated/channels/esm/funcs/channels-manage.js.map +0 -1
- package/generated/channels/esm/models/action.d.ts +0 -15
- package/generated/channels/esm/models/action.d.ts.map +0 -1
- package/generated/channels/esm/models/action.js +0 -19
- package/generated/channels/esm/models/action.js.map +0 -1
- package/generated/channels/esm/models/availability.d.ts +0 -10
- package/generated/channels/esm/models/availability.d.ts.map +0 -1
- package/generated/channels/esm/models/availability.js +0 -11
- package/generated/channels/esm/models/availability.js.map +0 -1
- package/generated/channels/esm/models/choices.d.ts +0 -17
- package/generated/channels/esm/models/choices.d.ts.map +0 -1
- package/generated/channels/esm/models/choices.js +0 -22
- package/generated/channels/esm/models/choices.js.map +0 -1
- package/generated/channels/esm/models/condition.d.ts +0 -11
- package/generated/channels/esm/models/condition.d.ts.map +0 -1
- package/generated/channels/esm/models/condition.js +0 -12
- package/generated/channels/esm/models/condition.js.map +0 -1
- package/generated/channels/esm/models/connected.d.ts +0 -13
- package/generated/channels/esm/models/connected.d.ts.map +0 -1
- package/generated/channels/esm/models/connected.js +0 -17
- package/generated/channels/esm/models/connected.js.map +0 -1
- package/generated/channels/esm/models/connection.d.ts +0 -18
- package/generated/channels/esm/models/connection.d.ts.map +0 -1
- package/generated/channels/esm/models/connection.js +0 -23
- package/generated/channels/esm/models/connection.js.map +0 -1
- package/generated/channels/esm/models/deletion.d.ts +0 -16
- package/generated/channels/esm/models/deletion.d.ts.map +0 -1
- package/generated/channels/esm/models/deletion.js +0 -14
- package/generated/channels/esm/models/deletion.js.map +0 -1
- package/generated/channels/esm/models/destination.d.ts +0 -21
- package/generated/channels/esm/models/destination.d.ts.map +0 -1
- package/generated/channels/esm/models/destination.js +0 -26
- package/generated/channels/esm/models/destination.js.map +0 -1
- package/generated/channels/esm/models/enumeration.d.ts +0 -16
- package/generated/channels/esm/models/enumeration.d.ts.map +0 -1
- package/generated/channels/esm/models/enumeration.js +0 -14
- package/generated/channels/esm/models/enumeration.js.map +0 -1
- package/generated/channels/esm/models/errors/error.d.ts +0 -18
- package/generated/channels/esm/models/errors/error.d.ts.map +0 -1
- package/generated/channels/esm/models/errors/error.js +0 -34
- package/generated/channels/esm/models/errors/error.js.map +0 -1
- package/generated/channels/esm/models/inspection.d.ts +0 -14
- package/generated/channels/esm/models/inspection.d.ts.map +0 -1
- package/generated/channels/esm/models/inspection.js +0 -13
- package/generated/channels/esm/models/inspection.js.map +0 -1
- package/generated/channels/esm/models/kind.d.ts +0 -11
- package/generated/channels/esm/models/kind.d.ts.map +0 -1
- package/generated/channels/esm/models/kind.js +0 -13
- package/generated/channels/esm/models/kind.js.map +0 -1
- package/generated/channels/esm/models/linkage.d.ts +0 -17
- package/generated/channels/esm/models/linkage.d.ts.map +0 -1
- package/generated/channels/esm/models/linkage.js +0 -15
- package/generated/channels/esm/models/linkage.js.map +0 -1
- package/generated/channels/esm/models/lookup.d.ts +0 -19
- package/generated/channels/esm/models/lookup.d.ts.map +0 -1
- package/generated/channels/esm/models/lookup.js +0 -17
- package/generated/channels/esm/models/lookup.js.map +0 -1
- package/generated/channels/esm/models/managed.d.ts +0 -16
- package/generated/channels/esm/models/managed.d.ts.map +0 -1
- package/generated/channels/esm/models/managed.js +0 -26
- package/generated/channels/esm/models/managed.js.map +0 -1
- package/generated/channels/esm/models/management.d.ts +0 -17
- package/generated/channels/esm/models/management.d.ts.map +0 -1
- package/generated/channels/esm/models/management.js +0 -29
- package/generated/channels/esm/models/management.js.map +0 -1
- package/generated/channels/esm/models/news.d.ts +0 -23
- package/generated/channels/esm/models/news.d.ts.map +0 -1
- package/generated/channels/esm/models/news.js +0 -27
- package/generated/channels/esm/models/news.js.map +0 -1
- package/generated/channels/esm/models/preference.d.ts +0 -27
- package/generated/channels/esm/models/preference.d.ts.map +0 -1
- package/generated/channels/esm/models/preference.js +0 -24
- package/generated/channels/esm/models/preference.js.map +0 -1
- package/generated/channels/esm/models/result.d.ts +0 -10
- package/generated/channels/esm/models/result.d.ts.map +0 -1
- package/generated/channels/esm/models/result.js +0 -14
- package/generated/channels/esm/models/result.js.map +0 -1
- package/generated/channels/esm/models/selection.d.ts +0 -18
- package/generated/channels/esm/models/selection.d.ts.map +0 -1
- package/generated/channels/esm/models/selection.js +0 -15
- package/generated/channels/esm/models/selection.js.map +0 -1
- package/generated/channels/esm/models/sentiment.d.ts +0 -13
- package/generated/channels/esm/models/sentiment.d.ts.map +0 -1
- package/generated/channels/esm/models/sentiment.js +0 -14
- package/generated/channels/esm/models/sentiment.js.map +0 -1
- package/generated/channels/esm/models/signals.d.ts +0 -28
- package/generated/channels/esm/models/signals.d.ts.map +0 -1
- package/generated/channels/esm/models/signals.js +0 -32
- package/generated/channels/esm/models/signals.js.map +0 -1
- package/generated/channels/esm/models/source.d.ts +0 -12
- package/generated/channels/esm/models/source.d.ts.map +0 -1
- package/generated/channels/esm/models/source.js +0 -15
- package/generated/channels/esm/models/source.js.map +0 -1
- package/generated/channels/esm/models/status.d.ts +0 -15
- package/generated/channels/esm/models/status.d.ts.map +0 -1
- package/generated/channels/esm/models/status.js +0 -18
- package/generated/channels/esm/models/status.js.map +0 -1
- package/generated/channels/esm/models/subscribe.d.ts +0 -19
- package/generated/channels/esm/models/subscribe.d.ts.map +0 -1
- package/generated/channels/esm/models/subscribe.js +0 -16
- package/generated/channels/esm/models/subscribe.js.map +0 -1
- package/generated/channels/esm/models/subscription.d.ts +0 -26
- package/generated/channels/esm/models/subscription.d.ts.map +0 -1
- package/generated/channels/esm/models/subscription.js +0 -32
- package/generated/channels/esm/models/subscription.js.map +0 -1
- package/generated/channels/esm/models/toggle.d.ts +0 -18
- package/generated/channels/esm/models/toggle.d.ts.map +0 -1
- package/generated/channels/esm/models/toggle.js +0 -16
- package/generated/channels/esm/models/toggle.js.map +0 -1
- package/generated/channels/esm/models/type.d.ts +0 -11
- package/generated/channels/esm/models/type.d.ts.map +0 -1
- package/generated/channels/esm/models/type.js +0 -13
- package/generated/channels/esm/models/type.js.map +0 -1
- package/generated/channels/esm/models/unlink.d.ts +0 -16
- package/generated/channels/esm/models/unlink.d.ts.map +0 -1
- package/generated/channels/esm/models/unlink.js +0 -15
- package/generated/channels/esm/models/unlink.js.map +0 -1
- package/generated/channels/src/funcs/channels-manage.ts +0 -164
- package/generated/channels/src/models/action.ts +0 -37
- package/generated/channels/src/models/availability.ts +0 -17
- package/generated/channels/src/models/choices.ts +0 -49
- package/generated/channels/src/models/condition.ts +0 -18
- package/generated/channels/src/models/connected.ts +0 -32
- package/generated/channels/src/models/connection.ts +0 -43
- package/generated/channels/src/models/deletion.ts +0 -32
- package/generated/channels/src/models/destination.ts +0 -48
- package/generated/channels/src/models/enumeration.ts +0 -32
- package/generated/channels/src/models/errors/error.ts +0 -49
- package/generated/channels/src/models/inspection.ts +0 -29
- package/generated/channels/src/models/kind.ts +0 -18
- package/generated/channels/src/models/linkage.ts +0 -31
- package/generated/channels/src/models/lookup.ts +0 -34
- package/generated/channels/src/models/managed.ts +0 -46
- package/generated/channels/src/models/management.ts +0 -81
- package/generated/channels/src/models/news.ts +0 -54
- package/generated/channels/src/models/preference.ts +0 -62
- package/generated/channels/src/models/result.ts +0 -28
- package/generated/channels/src/models/selection.ts +0 -35
- package/generated/channels/src/models/sentiment.ts +0 -21
- package/generated/channels/src/models/signals.ts +0 -66
- package/generated/channels/src/models/source.ts +0 -20
- package/generated/channels/src/models/status.ts +0 -34
- package/generated/channels/src/models/subscribe.ts +0 -40
- package/generated/channels/src/models/subscription.ts +0 -69
- package/generated/channels/src/models/toggle.ts +0 -33
- package/generated/channels/src/models/type.ts +0 -18
- package/generated/channels/src/models/unlink.ts +0 -30
|
@@ -1,81 +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 {
|
|
7
|
-
Deletion,
|
|
8
|
-
Deletion$Outbound,
|
|
9
|
-
Deletion$outboundSchema,
|
|
10
|
-
} from "./deletion.js";
|
|
11
|
-
import {
|
|
12
|
-
Enumeration,
|
|
13
|
-
Enumeration$Outbound,
|
|
14
|
-
Enumeration$outboundSchema,
|
|
15
|
-
} from "./enumeration.js";
|
|
16
|
-
import {
|
|
17
|
-
Inspection,
|
|
18
|
-
Inspection$Outbound,
|
|
19
|
-
Inspection$outboundSchema,
|
|
20
|
-
} from "./inspection.js";
|
|
21
|
-
import {
|
|
22
|
-
Linkage,
|
|
23
|
-
Linkage$Outbound,
|
|
24
|
-
Linkage$outboundSchema,
|
|
25
|
-
} from "./linkage.js";
|
|
26
|
-
import { Lookup, Lookup$Outbound, Lookup$outboundSchema } from "./lookup.js";
|
|
27
|
-
import {
|
|
28
|
-
Selection,
|
|
29
|
-
Selection$Outbound,
|
|
30
|
-
Selection$outboundSchema,
|
|
31
|
-
} from "./selection.js";
|
|
32
|
-
import {
|
|
33
|
-
Subscribe,
|
|
34
|
-
Subscribe$Outbound,
|
|
35
|
-
Subscribe$outboundSchema,
|
|
36
|
-
} from "./subscribe.js";
|
|
37
|
-
import { Toggle, Toggle$Outbound, Toggle$outboundSchema } from "./toggle.js";
|
|
38
|
-
import { Unlink, Unlink$Outbound, Unlink$outboundSchema } from "./unlink.js";
|
|
39
|
-
|
|
40
|
-
export type Management =
|
|
41
|
-
| Inspection
|
|
42
|
-
| Linkage
|
|
43
|
-
| Unlink
|
|
44
|
-
| Enumeration
|
|
45
|
-
| Selection
|
|
46
|
-
| Lookup
|
|
47
|
-
| Subscribe
|
|
48
|
-
| Toggle
|
|
49
|
-
| Deletion;
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export type Management$Outbound =
|
|
53
|
-
| Inspection$Outbound
|
|
54
|
-
| Linkage$Outbound
|
|
55
|
-
| Unlink$Outbound
|
|
56
|
-
| Enumeration$Outbound
|
|
57
|
-
| Selection$Outbound
|
|
58
|
-
| Lookup$Outbound
|
|
59
|
-
| Subscribe$Outbound
|
|
60
|
-
| Toggle$Outbound
|
|
61
|
-
| Deletion$Outbound;
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const Management$outboundSchema: z.ZodMiniType<
|
|
65
|
-
Management$Outbound,
|
|
66
|
-
Management
|
|
67
|
-
> = z.union([
|
|
68
|
-
Inspection$outboundSchema,
|
|
69
|
-
Linkage$outboundSchema,
|
|
70
|
-
Unlink$outboundSchema,
|
|
71
|
-
Enumeration$outboundSchema,
|
|
72
|
-
Selection$outboundSchema,
|
|
73
|
-
Lookup$outboundSchema,
|
|
74
|
-
Subscribe$outboundSchema,
|
|
75
|
-
Toggle$outboundSchema,
|
|
76
|
-
Deletion$outboundSchema,
|
|
77
|
-
]);
|
|
78
|
-
|
|
79
|
-
export function managementToJSON(management: Management): string {
|
|
80
|
-
return JSON.stringify(Management$outboundSchema.parse(management));
|
|
81
|
-
}
|
|
@@ -1,54 +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 { 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
|
-
}
|
|
@@ -1,62 +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 { 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
|
-
}
|
|
@@ -1,28 +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 { 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
|
-
}
|
|
@@ -1,35 +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
|
-
|
|
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
|
-
}
|
|
@@ -1,21 +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 * 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);
|
|
@@ -1,66 +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 { 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
|
-
}
|
|
@@ -1,20 +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 * 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);
|
|
@@ -1,34 +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 { 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
|
-
}
|
|
@@ -1,40 +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 {
|
|
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
|
-
}
|
|
@@ -1,69 +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 { 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
|
-
}
|
|
@@ -1,33 +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
|
-
|
|
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
|
-
}
|
|
@@ -1,18 +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 * 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);
|
|
@@ -1,30 +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
|
-
|
|
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
|
-
}
|