@steamsets/client-ts 0.34.8 → 0.34.9
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 +24 -0
- package/funcs/accountSearch.d.ts +15 -0
- package/funcs/accountSearch.d.ts.map +1 -0
- package/funcs/accountSearch.js +144 -0
- package/funcs/accountSearch.js.map +1 -0
- package/funcs/appSearch.d.ts +15 -0
- package/funcs/appSearch.d.ts.map +1 -0
- package/funcs/appSearch.js +144 -0
- package/funcs/appSearch.js.map +1 -0
- package/funcs/badgePricingSearch.d.ts +15 -0
- package/funcs/badgePricingSearch.d.ts.map +1 -0
- package/funcs/badgePricingSearch.js +144 -0
- package/funcs/badgePricingSearch.js.map +1 -0
- package/funcs/badgeSearch.js +3 -1
- package/funcs/badgeSearch.js.map +1 -1
- package/funcs/groupSearch.d.ts +15 -0
- package/funcs/groupSearch.d.ts.map +1 -0
- package/funcs/groupSearch.js +144 -0
- package/funcs/groupSearch.js.map +1 -0
- package/funcs/locationSearch.d.ts +15 -0
- package/funcs/locationSearch.d.ts.map +1 -0
- package/funcs/locationSearch.js +136 -0
- package/funcs/locationSearch.js.map +1 -0
- package/funcs/tradingItemSearch.d.ts +15 -0
- package/funcs/tradingItemSearch.d.ts.map +1 -0
- package/funcs/tradingItemSearch.js +144 -0
- package/funcs/tradingItemSearch.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/account.d.ts +41 -0
- package/models/components/account.d.ts.map +1 -0
- package/models/components/account.js +81 -0
- package/models/components/account.js.map +1 -0
- package/models/components/accountboolfilter.d.ts +12 -0
- package/models/components/accountboolfilter.d.ts.map +1 -0
- package/models/components/{v1searchrequest.js → accountboolfilter.js} +7 -14
- package/models/components/accountboolfilter.js.map +1 -0
- package/models/components/accountfilter.d.ts +80 -0
- package/models/components/accountfilter.d.ts.map +1 -0
- package/models/components/accountfilter.js +88 -0
- package/models/components/accountfilter.js.map +1 -0
- package/models/components/accountrangefilter.d.ts +24 -0
- package/models/components/accountrangefilter.d.ts.map +1 -0
- package/models/components/accountrangefilter.js +55 -0
- package/models/components/accountrangefilter.js.map +1 -0
- package/models/components/accountsearchaccountsrequestbody.d.ts +49 -0
- package/models/components/accountsearchaccountsrequestbody.d.ts.map +1 -0
- package/models/components/accountsearchaccountsrequestbody.js +65 -0
- package/models/components/accountsearchaccountsrequestbody.js.map +1 -0
- package/models/components/accountsearchaccountsresponsebody.d.ts +19 -0
- package/models/components/accountsearchaccountsresponsebody.d.ts.map +1 -0
- package/models/components/accountsearchaccountsresponsebody.js +58 -0
- package/models/components/accountsearchaccountsresponsebody.js.map +1 -0
- package/models/components/accountstringarrayfilter.d.ts +20 -0
- package/models/components/accountstringarrayfilter.d.ts.map +1 -0
- package/models/components/accountstringarrayfilter.js +50 -0
- package/models/components/accountstringarrayfilter.js.map +1 -0
- package/models/components/accountstringfilter.d.ts +16 -0
- package/models/components/accountstringfilter.d.ts.map +1 -0
- package/models/components/accountstringfilter.js +51 -0
- package/models/components/accountstringfilter.js.map +1 -0
- package/models/components/app.d.ts +16 -0
- package/models/components/app.d.ts.map +1 -0
- package/models/components/{vectors.js → app.js} +14 -7
- package/models/components/app.js.map +1 -0
- package/models/components/appfilter.d.ts +23 -0
- package/models/components/appfilter.d.ts.map +1 -0
- package/models/components/appfilter.js +56 -0
- package/models/components/appfilter.js.map +1 -0
- package/models/components/appsearchrequestbody.d.ts +46 -0
- package/models/components/appsearchrequestbody.d.ts.map +1 -0
- package/models/components/appsearchrequestbody.js +64 -0
- package/models/components/appsearchrequestbody.js.map +1 -0
- package/models/components/appsearchresponsebody.d.ts +16 -0
- package/models/components/appsearchresponsebody.d.ts.map +1 -0
- package/models/components/appsearchresponsebody.js +58 -0
- package/models/components/appsearchresponsebody.js.map +1 -0
- package/models/components/badge.d.ts +1 -2
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +1 -7
- package/models/components/badge.js.map +1 -1
- package/models/components/badgefilter.d.ts +38 -0
- package/models/components/badgefilter.d.ts.map +1 -0
- package/models/components/badgefilter.js +64 -0
- package/models/components/badgefilter.js.map +1 -0
- package/models/components/badgepricingsearchcard.d.ts +12 -0
- package/models/components/badgepricingsearchcard.d.ts.map +1 -0
- package/models/components/badgepricingsearchcard.js +52 -0
- package/models/components/badgepricingsearchcard.js.map +1 -0
- package/models/components/badgepricingsearchfilter.d.ts +70 -0
- package/models/components/badgepricingsearchfilter.d.ts.map +1 -0
- package/models/components/badgepricingsearchfilter.js +78 -0
- package/models/components/badgepricingsearchfilter.js.map +1 -0
- package/models/components/badgepricingsearchitem.d.ts +31 -0
- package/models/components/badgepricingsearchitem.d.ts.map +1 -0
- package/models/components/badgepricingsearchitem.js +71 -0
- package/models/components/badgepricingsearchitem.js.map +1 -0
- package/models/components/badgepricingsearchlevel.d.ts +15 -0
- package/models/components/badgepricingsearchlevel.d.ts.map +1 -0
- package/models/components/badgepricingsearchlevel.js +55 -0
- package/models/components/badgepricingsearchlevel.js.map +1 -0
- package/models/components/badgepricingsearchrequestbody.d.ts +69 -0
- package/models/components/badgepricingsearchrequestbody.d.ts.map +1 -0
- package/models/components/badgepricingsearchrequestbody.js +81 -0
- package/models/components/badgepricingsearchrequestbody.js.map +1 -0
- package/models/components/badgepricingsearchresponsebody.d.ts +19 -0
- package/models/components/badgepricingsearchresponsebody.d.ts.map +1 -0
- package/models/components/badgepricingsearchresponsebody.js +58 -0
- package/models/components/badgepricingsearchresponsebody.js.map +1 -0
- package/models/components/group.d.ts +18 -0
- package/models/components/group.d.ts.map +1 -0
- package/models/components/group.js +59 -0
- package/models/components/group.js.map +1 -0
- package/models/components/groupfilter.d.ts +26 -0
- package/models/components/groupfilter.d.ts.map +1 -0
- package/models/components/groupfilter.js +57 -0
- package/models/components/groupfilter.js.map +1 -0
- package/models/components/groupsearchrequestbody.d.ts +46 -0
- package/models/components/groupsearchrequestbody.d.ts.map +1 -0
- package/models/components/groupsearchrequestbody.js +64 -0
- package/models/components/groupsearchrequestbody.js.map +1 -0
- package/models/components/groupsearchresponsebody.d.ts +16 -0
- package/models/components/groupsearchresponsebody.d.ts.map +1 -0
- package/models/components/groupsearchresponsebody.js +58 -0
- package/models/components/groupsearchresponsebody.js.map +1 -0
- package/models/components/index.d.ts +31 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +31 -2
- package/models/components/index.js.map +1 -1
- package/models/components/locationhit.d.ts +17 -0
- package/models/components/locationhit.d.ts.map +1 -0
- package/models/components/locationhit.js +57 -0
- package/models/components/locationhit.js.map +1 -0
- package/models/components/locationsearchlocationsrequestbody.d.ts +41 -0
- package/models/components/locationsearchlocationsrequestbody.d.ts.map +1 -0
- package/models/components/locationsearchlocationsrequestbody.js +62 -0
- package/models/components/locationsearchlocationsrequestbody.js.map +1 -0
- package/models/components/locationsearchlocationsresponsebody.d.ts +16 -0
- package/models/components/locationsearchlocationsresponsebody.d.ts.map +1 -0
- package/models/components/locationsearchlocationsresponsebody.js +58 -0
- package/models/components/locationsearchlocationsresponsebody.js.map +1 -0
- package/models/components/tradingitem.d.ts +25 -0
- package/models/components/tradingitem.d.ts.map +1 -0
- package/models/components/tradingitem.js +65 -0
- package/models/components/tradingitem.js.map +1 -0
- package/models/components/tradingitemfilter.d.ts +37 -0
- package/models/components/tradingitemfilter.d.ts.map +1 -0
- package/models/components/tradingitemfilter.js +63 -0
- package/models/components/tradingitemfilter.js.map +1 -0
- package/models/components/tradingitemsearchitemsrequestbody.d.ts +46 -0
- package/models/components/tradingitemsearchitemsrequestbody.d.ts.map +1 -0
- package/models/components/tradingitemsearchitemsrequestbody.js +65 -0
- package/models/components/tradingitemsearchitemsrequestbody.js.map +1 -0
- package/models/components/tradingitemsearchitemsresponsebody.d.ts +16 -0
- package/models/components/tradingitemsearchitemsresponsebody.d.ts.map +1 -0
- package/models/components/tradingitemsearchitemsresponsebody.js +58 -0
- package/models/components/tradingitemsearchitemsresponsebody.js.map +1 -0
- package/models/components/v1badgesearchbadgesrequestbody.d.ts +48 -0
- package/models/components/v1badgesearchbadgesrequestbody.d.ts.map +1 -0
- package/models/components/v1badgesearchbadgesrequestbody.js +65 -0
- package/models/components/v1badgesearchbadgesrequestbody.js.map +1 -0
- package/models/components/v1badgesearchbadgesresponsebody.d.ts +7 -4
- package/models/components/v1badgesearchbadgesresponsebody.d.ts.map +1 -1
- package/models/components/v1badgesearchbadgesresponsebody.js +1 -2
- package/models/components/v1badgesearchbadgesresponsebody.js.map +1 -1
- package/models/operations/accountsearchaccounts.d.ts +31 -0
- package/models/operations/accountsearchaccounts.d.ts.map +1 -0
- package/models/operations/accountsearchaccounts.js +77 -0
- package/models/operations/accountsearchaccounts.js.map +1 -0
- package/models/operations/appsearch.d.ts +31 -0
- package/models/operations/appsearch.d.ts.map +1 -0
- package/models/operations/appsearch.js +77 -0
- package/models/operations/appsearch.js.map +1 -0
- package/models/operations/badgepricingsearch.d.ts +31 -0
- package/models/operations/badgepricingsearch.d.ts.map +1 -0
- package/models/operations/badgepricingsearch.js +77 -0
- package/models/operations/badgepricingsearch.js.map +1 -0
- package/models/operations/badgesearchbadges.d.ts +2 -2
- package/models/operations/badgesearchbadges.d.ts.map +1 -1
- package/models/operations/badgesearchbadges.js +2 -2
- package/models/operations/badgesearchbadges.js.map +1 -1
- package/models/operations/groupsearch.d.ts +31 -0
- package/models/operations/groupsearch.d.ts.map +1 -0
- package/models/operations/groupsearch.js +77 -0
- package/models/operations/groupsearch.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/locationsearch.d.ts +27 -0
- package/models/operations/locationsearch.d.ts.map +1 -0
- package/models/operations/locationsearch.js +73 -0
- package/models/operations/locationsearch.js.map +1 -0
- package/models/operations/tradingitemsearchitems.d.ts +31 -0
- package/models/operations/tradingitemsearchitems.d.ts.map +1 -0
- package/models/operations/tradingitemsearchitems.js +77 -0
- package/models/operations/tradingitemsearchitems.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- package/sdk/app.d.ts +9 -0
- package/sdk/app.d.ts.map +1 -0
- package/sdk/app.js +19 -0
- package/sdk/app.js.map +1 -0
- package/sdk/badgepricing.d.ts +9 -0
- package/sdk/badgepricing.d.ts.map +1 -0
- package/sdk/badgepricing.js +19 -0
- package/sdk/badgepricing.js.map +1 -0
- package/sdk/group.d.ts +9 -0
- package/sdk/group.d.ts.map +1 -0
- package/sdk/group.js +19 -0
- package/sdk/group.js.map +1 -0
- package/sdk/location.d.ts +4 -0
- package/sdk/location.d.ts.map +1 -1
- package/sdk/location.js +7 -0
- package/sdk/location.js.map +1 -1
- package/sdk/sdk.d.ts +12 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +16 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/tradingitem.d.ts +9 -0
- package/sdk/tradingitem.d.ts.map +1 -0
- package/sdk/tradingitem.js +19 -0
- package/sdk/tradingitem.js.map +1 -0
- package/src/funcs/accountSearch.ts +202 -0
- package/src/funcs/appSearch.ts +201 -0
- package/src/funcs/badgePricingSearch.ts +201 -0
- package/src/funcs/badgeSearch.ts +3 -1
- package/src/funcs/groupSearch.ts +201 -0
- package/src/funcs/locationSearch.ts +193 -0
- package/src/funcs/tradingItemSearch.ts +202 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/account.ts +90 -0
- package/src/models/components/accountboolfilter.ts +31 -0
- package/src/models/components/accountfilter.ts +142 -0
- package/src/models/components/accountrangefilter.ts +49 -0
- package/src/models/components/accountsearchaccountsrequestbody.ts +82 -0
- package/src/models/components/accountsearchaccountsresponsebody.ts +47 -0
- package/src/models/components/accountstringarrayfilter.ts +40 -0
- package/src/models/components/accountstringfilter.ts +37 -0
- package/src/models/components/app.ts +40 -0
- package/src/models/components/appfilter.ts +54 -0
- package/src/models/components/appsearchrequestbody.ts +80 -0
- package/src/models/components/appsearchresponsebody.ts +44 -0
- package/src/models/components/badge.ts +2 -8
- package/src/models/components/badgefilter.ts +80 -0
- package/src/models/components/badgepricingsearchcard.ts +35 -0
- package/src/models/components/badgepricingsearchfilter.ts +105 -0
- package/src/models/components/badgepricingsearchitem.ts +77 -0
- package/src/models/components/badgepricingsearchlevel.ts +41 -0
- package/src/models/components/badgepricingsearchrequestbody.ts +109 -0
- package/src/models/components/badgepricingsearchresponsebody.ts +50 -0
- package/src/models/components/group.ts +44 -0
- package/src/models/components/groupfilter.ts +55 -0
- package/src/models/components/groupsearchrequestbody.ts +80 -0
- package/src/models/components/groupsearchresponsebody.ts +44 -0
- package/src/models/components/index.ts +31 -2
- package/src/models/components/locationhit.ts +45 -0
- package/src/models/components/locationsearchlocationsrequestbody.ts +71 -0
- package/src/models/components/locationsearchlocationsresponsebody.ts +45 -0
- package/src/models/components/tradingitem.ts +61 -0
- package/src/models/components/tradingitemfilter.ts +79 -0
- package/src/models/components/tradingitemsearchitemsrequestbody.ts +82 -0
- package/src/models/components/tradingitemsearchitemsresponsebody.ts +45 -0
- package/src/models/components/v1badgesearchbadgesrequestbody.ts +86 -0
- package/src/models/components/v1badgesearchbadgesresponsebody.ts +4 -6
- package/src/models/operations/accountsearchaccounts.ts +92 -0
- package/src/models/operations/appsearch.ts +86 -0
- package/src/models/operations/badgepricingsearch.ts +90 -0
- package/src/models/operations/badgesearchbadges.ts +6 -4
- package/src/models/operations/groupsearch.ts +86 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/locationsearch.ts +84 -0
- package/src/models/operations/tradingitemsearchitems.ts +93 -0
- package/src/sdk/account.ts +15 -0
- package/src/sdk/app.ts +24 -0
- package/src/sdk/badgepricing.ts +24 -0
- package/src/sdk/group.ts +24 -0
- package/src/sdk/location.ts +15 -0
- package/src/sdk/sdk.ts +24 -0
- package/src/sdk/tradingitem.ts +24 -0
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/models/components/v1searchrequest.d.ts +0 -38
- package/models/components/v1searchrequest.d.ts.map +0 -1
- package/models/components/v1searchrequest.js.map +0 -1
- package/models/components/vectors.d.ts +0 -10
- package/models/components/vectors.d.ts.map +0 -1
- package/models/components/vectors.js.map +0 -1
- package/src/models/components/v1searchrequest.ts +0 -62
- package/src/models/components/vectors.ts +0 -28
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
AccountBoolFilter,
|
|
8
|
+
AccountBoolFilter$Outbound,
|
|
9
|
+
AccountBoolFilter$outboundSchema,
|
|
10
|
+
} from "./accountboolfilter.js";
|
|
11
|
+
import {
|
|
12
|
+
AccountRangeFilter,
|
|
13
|
+
AccountRangeFilter$Outbound,
|
|
14
|
+
AccountRangeFilter$outboundSchema,
|
|
15
|
+
} from "./accountrangefilter.js";
|
|
16
|
+
import {
|
|
17
|
+
AccountStringArrayFilter,
|
|
18
|
+
AccountStringArrayFilter$Outbound,
|
|
19
|
+
AccountStringArrayFilter$outboundSchema,
|
|
20
|
+
} from "./accountstringarrayfilter.js";
|
|
21
|
+
import {
|
|
22
|
+
AccountStringFilter,
|
|
23
|
+
AccountStringFilter$Outbound,
|
|
24
|
+
AccountStringFilter$outboundSchema,
|
|
25
|
+
} from "./accountstringfilter.js";
|
|
26
|
+
|
|
27
|
+
export type BadgeFilter = {
|
|
28
|
+
appId?: AccountRangeFilter | undefined;
|
|
29
|
+
appName?: AccountStringFilter | undefined;
|
|
30
|
+
colors?: AccountStringArrayFilter | undefined;
|
|
31
|
+
designs?: AccountStringArrayFilter | undefined;
|
|
32
|
+
isEvent?: AccountBoolFilter | undefined;
|
|
33
|
+
isFoil?: AccountBoolFilter | undefined;
|
|
34
|
+
isNmc?: AccountBoolFilter | undefined;
|
|
35
|
+
isSale?: AccountBoolFilter | undefined;
|
|
36
|
+
level?: AccountRangeFilter | undefined;
|
|
37
|
+
scarcity?: AccountRangeFilter | undefined;
|
|
38
|
+
steamId?: AccountRangeFilter | undefined;
|
|
39
|
+
xp?: AccountRangeFilter | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type BadgeFilter$Outbound = {
|
|
44
|
+
appId?: AccountRangeFilter$Outbound | undefined;
|
|
45
|
+
appName?: AccountStringFilter$Outbound | undefined;
|
|
46
|
+
colors?: AccountStringArrayFilter$Outbound | undefined;
|
|
47
|
+
designs?: AccountStringArrayFilter$Outbound | undefined;
|
|
48
|
+
isEvent?: AccountBoolFilter$Outbound | undefined;
|
|
49
|
+
isFoil?: AccountBoolFilter$Outbound | undefined;
|
|
50
|
+
isNmc?: AccountBoolFilter$Outbound | undefined;
|
|
51
|
+
isSale?: AccountBoolFilter$Outbound | undefined;
|
|
52
|
+
level?: AccountRangeFilter$Outbound | undefined;
|
|
53
|
+
scarcity?: AccountRangeFilter$Outbound | undefined;
|
|
54
|
+
steamId?: AccountRangeFilter$Outbound | undefined;
|
|
55
|
+
xp?: AccountRangeFilter$Outbound | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const BadgeFilter$outboundSchema: z.ZodType<
|
|
60
|
+
BadgeFilter$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
BadgeFilter
|
|
63
|
+
> = z.object({
|
|
64
|
+
appId: AccountRangeFilter$outboundSchema.optional(),
|
|
65
|
+
appName: AccountStringFilter$outboundSchema.optional(),
|
|
66
|
+
colors: AccountStringArrayFilter$outboundSchema.optional(),
|
|
67
|
+
designs: AccountStringArrayFilter$outboundSchema.optional(),
|
|
68
|
+
isEvent: AccountBoolFilter$outboundSchema.optional(),
|
|
69
|
+
isFoil: AccountBoolFilter$outboundSchema.optional(),
|
|
70
|
+
isNmc: AccountBoolFilter$outboundSchema.optional(),
|
|
71
|
+
isSale: AccountBoolFilter$outboundSchema.optional(),
|
|
72
|
+
level: AccountRangeFilter$outboundSchema.optional(),
|
|
73
|
+
scarcity: AccountRangeFilter$outboundSchema.optional(),
|
|
74
|
+
steamId: AccountRangeFilter$outboundSchema.optional(),
|
|
75
|
+
xp: AccountRangeFilter$outboundSchema.optional(),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export function badgeFilterToJSON(badgeFilter: BadgeFilter): string {
|
|
79
|
+
return JSON.stringify(BadgeFilter$outboundSchema.parse(badgeFilter));
|
|
80
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type BadgePricingSearchCard = {
|
|
11
|
+
buyOrderPrice: number;
|
|
12
|
+
name: string;
|
|
13
|
+
price: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const BadgePricingSearchCard$inboundSchema: z.ZodType<
|
|
18
|
+
BadgePricingSearchCard,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
buyOrderPrice: z.number().int(),
|
|
23
|
+
name: z.string(),
|
|
24
|
+
price: z.number().int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function badgePricingSearchCardFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<BadgePricingSearchCard, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => BadgePricingSearchCard$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'BadgePricingSearchCard' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 'normal' | 'foil'. Omit for both.
|
|
10
|
+
*/
|
|
11
|
+
export const BadgeType = {
|
|
12
|
+
Normal: "normal",
|
|
13
|
+
Foil: "foil",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* 'normal' | 'foil'. Omit for both.
|
|
17
|
+
*/
|
|
18
|
+
export type BadgeType = ClosedEnum<typeof BadgeType>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 'show' (default) | 'hide' | 'only'.
|
|
22
|
+
*/
|
|
23
|
+
export const NonMarketable = {
|
|
24
|
+
Show: "show",
|
|
25
|
+
Hide: "hide",
|
|
26
|
+
Only: "only",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* 'show' (default) | 'hide' | 'only'.
|
|
30
|
+
*/
|
|
31
|
+
export type NonMarketable = ClosedEnum<typeof NonMarketable>;
|
|
32
|
+
|
|
33
|
+
export type BadgePricingSearchFilter = {
|
|
34
|
+
allCardsSelling?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* 'normal' | 'foil'. Omit for both.
|
|
37
|
+
*/
|
|
38
|
+
badgeType?: BadgeType | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* booster_price IS NOT NULL when true.
|
|
41
|
+
*/
|
|
42
|
+
boosterAvailable?: boolean | undefined;
|
|
43
|
+
cardCountIn?: Array<number> | null | undefined;
|
|
44
|
+
maxSetPrice?: number | undefined;
|
|
45
|
+
minCardCount?: number | undefined;
|
|
46
|
+
minListings?: number | undefined;
|
|
47
|
+
minSetPrice?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 'show' (default) | 'hide' | 'only'.
|
|
50
|
+
*/
|
|
51
|
+
nonMarketable?: NonMarketable | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unix ms; rows updated at >= this value.
|
|
54
|
+
*/
|
|
55
|
+
updatedSince?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const BadgeType$outboundSchema: z.ZodNativeEnum<typeof BadgeType> = z
|
|
60
|
+
.nativeEnum(BadgeType);
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const NonMarketable$outboundSchema: z.ZodNativeEnum<
|
|
64
|
+
typeof NonMarketable
|
|
65
|
+
> = z.nativeEnum(NonMarketable);
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type BadgePricingSearchFilter$Outbound = {
|
|
69
|
+
allCardsSelling?: boolean | undefined;
|
|
70
|
+
badgeType?: string | undefined;
|
|
71
|
+
boosterAvailable?: boolean | undefined;
|
|
72
|
+
cardCountIn?: Array<number> | null | undefined;
|
|
73
|
+
maxSetPrice?: number | undefined;
|
|
74
|
+
minCardCount?: number | undefined;
|
|
75
|
+
minListings?: number | undefined;
|
|
76
|
+
minSetPrice?: number | undefined;
|
|
77
|
+
nonMarketable?: string | undefined;
|
|
78
|
+
updatedSince?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const BadgePricingSearchFilter$outboundSchema: z.ZodType<
|
|
83
|
+
BadgePricingSearchFilter$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
BadgePricingSearchFilter
|
|
86
|
+
> = z.object({
|
|
87
|
+
allCardsSelling: z.boolean().optional(),
|
|
88
|
+
badgeType: BadgeType$outboundSchema.optional(),
|
|
89
|
+
boosterAvailable: z.boolean().optional(),
|
|
90
|
+
cardCountIn: z.nullable(z.array(z.number().int())).optional(),
|
|
91
|
+
maxSetPrice: z.number().int().optional(),
|
|
92
|
+
minCardCount: z.number().int().optional(),
|
|
93
|
+
minListings: z.number().int().optional(),
|
|
94
|
+
minSetPrice: z.number().int().optional(),
|
|
95
|
+
nonMarketable: NonMarketable$outboundSchema.optional(),
|
|
96
|
+
updatedSince: z.number().int().optional(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function badgePricingSearchFilterToJSON(
|
|
100
|
+
badgePricingSearchFilter: BadgePricingSearchFilter,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
BadgePricingSearchFilter$outboundSchema.parse(badgePricingSearchFilter),
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BadgePricingSearchCard,
|
|
11
|
+
BadgePricingSearchCard$inboundSchema,
|
|
12
|
+
} from "./badgepricingsearchcard.js";
|
|
13
|
+
import {
|
|
14
|
+
BadgePricingSearchLevel,
|
|
15
|
+
BadgePricingSearchLevel$inboundSchema,
|
|
16
|
+
} from "./badgepricingsearchlevel.js";
|
|
17
|
+
|
|
18
|
+
export type BadgePricingSearchItem = {
|
|
19
|
+
allCardsSelling: boolean;
|
|
20
|
+
appId: number;
|
|
21
|
+
appImage: string;
|
|
22
|
+
appName: string;
|
|
23
|
+
averageListings: number;
|
|
24
|
+
backgroundAveragePrice: number;
|
|
25
|
+
badgeType: string;
|
|
26
|
+
badges: Array<BadgePricingSearchLevel> | null;
|
|
27
|
+
boosterPrice?: number | undefined;
|
|
28
|
+
boosterValueScore: number;
|
|
29
|
+
buyOrderAveragePrice: number;
|
|
30
|
+
cardAveragePrice: number;
|
|
31
|
+
cardCount: number;
|
|
32
|
+
cards: Array<BadgePricingSearchCard> | null;
|
|
33
|
+
emoticonAveragePrice: number;
|
|
34
|
+
gems: number;
|
|
35
|
+
nonMarketable: boolean;
|
|
36
|
+
setBuyOrderPrice: number;
|
|
37
|
+
setPrice: number;
|
|
38
|
+
updatedAt: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const BadgePricingSearchItem$inboundSchema: z.ZodType<
|
|
43
|
+
BadgePricingSearchItem,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
allCardsSelling: z.boolean(),
|
|
48
|
+
appId: z.number().int(),
|
|
49
|
+
appImage: z.string(),
|
|
50
|
+
appName: z.string(),
|
|
51
|
+
averageListings: z.number().int(),
|
|
52
|
+
backgroundAveragePrice: z.number().int(),
|
|
53
|
+
badgeType: z.string(),
|
|
54
|
+
badges: z.nullable(z.array(BadgePricingSearchLevel$inboundSchema)),
|
|
55
|
+
boosterPrice: z.number().int().optional(),
|
|
56
|
+
boosterValueScore: z.number().int(),
|
|
57
|
+
buyOrderAveragePrice: z.number().int(),
|
|
58
|
+
cardAveragePrice: z.number().int(),
|
|
59
|
+
cardCount: z.number().int(),
|
|
60
|
+
cards: z.nullable(z.array(BadgePricingSearchCard$inboundSchema)),
|
|
61
|
+
emoticonAveragePrice: z.number().int(),
|
|
62
|
+
gems: z.number().int(),
|
|
63
|
+
nonMarketable: z.boolean(),
|
|
64
|
+
setBuyOrderPrice: z.number().int(),
|
|
65
|
+
setPrice: z.number().int(),
|
|
66
|
+
updatedAt: z.number().int(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function badgePricingSearchItemFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<BadgePricingSearchItem, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => BadgePricingSearchItem$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'BadgePricingSearchItem' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type BadgePricingSearchLevel = {
|
|
11
|
+
firstCompletedAt: number;
|
|
12
|
+
image: string;
|
|
13
|
+
level: number;
|
|
14
|
+
name: string;
|
|
15
|
+
scarcity: number;
|
|
16
|
+
xp: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const BadgePricingSearchLevel$inboundSchema: z.ZodType<
|
|
21
|
+
BadgePricingSearchLevel,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
firstCompletedAt: z.number().int(),
|
|
26
|
+
image: z.string(),
|
|
27
|
+
level: z.number().int(),
|
|
28
|
+
name: z.string(),
|
|
29
|
+
scarcity: z.number().int(),
|
|
30
|
+
xp: z.number().int(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function badgePricingSearchLevelFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<BadgePricingSearchLevel, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => BadgePricingSearchLevel$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'BadgePricingSearchLevel' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
BadgePricingSearchFilter,
|
|
9
|
+
BadgePricingSearchFilter$Outbound,
|
|
10
|
+
BadgePricingSearchFilter$outboundSchema,
|
|
11
|
+
} from "./badgepricingsearchfilter.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* One of: appName, setPrice, setBuyOrderPrice, cardAveragePrice, buyOrderAveragePrice, averageListings, cardCount, boosterPrice, updatedAt. Default appName.
|
|
15
|
+
*/
|
|
16
|
+
export const SortBy = {
|
|
17
|
+
AppName: "appName",
|
|
18
|
+
SetPrice: "setPrice",
|
|
19
|
+
SetBuyOrderPrice: "setBuyOrderPrice",
|
|
20
|
+
CardAveragePrice: "cardAveragePrice",
|
|
21
|
+
BuyOrderAveragePrice: "buyOrderAveragePrice",
|
|
22
|
+
AverageListings: "averageListings",
|
|
23
|
+
CardCount: "cardCount",
|
|
24
|
+
BoosterPrice: "boosterPrice",
|
|
25
|
+
UpdatedAt: "updatedAt",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* One of: appName, setPrice, setBuyOrderPrice, cardAveragePrice, buyOrderAveragePrice, averageListings, cardCount, boosterPrice, updatedAt. Default appName.
|
|
29
|
+
*/
|
|
30
|
+
export type SortBy = ClosedEnum<typeof SortBy>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* asc | desc; defaults to asc for appName, desc for everything else.
|
|
34
|
+
*/
|
|
35
|
+
export const BadgePricingSearchRequestBodySortDir = {
|
|
36
|
+
Asc: "asc",
|
|
37
|
+
Desc: "desc",
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* asc | desc; defaults to asc for appName, desc for everything else.
|
|
41
|
+
*/
|
|
42
|
+
export type BadgePricingSearchRequestBodySortDir = ClosedEnum<
|
|
43
|
+
typeof BadgePricingSearchRequestBodySortDir
|
|
44
|
+
>;
|
|
45
|
+
|
|
46
|
+
export type BadgePricingSearchRequestBody = {
|
|
47
|
+
filter?: BadgePricingSearchFilter | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Page size; capped at 200.
|
|
50
|
+
*/
|
|
51
|
+
limit?: number | undefined;
|
|
52
|
+
offset?: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Case-insensitive substring match on app name.
|
|
55
|
+
*/
|
|
56
|
+
query: string;
|
|
57
|
+
/**
|
|
58
|
+
* One of: appName, setPrice, setBuyOrderPrice, cardAveragePrice, buyOrderAveragePrice, averageListings, cardCount, boosterPrice, updatedAt. Default appName.
|
|
59
|
+
*/
|
|
60
|
+
sortBy?: SortBy | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* asc | desc; defaults to asc for appName, desc for everything else.
|
|
63
|
+
*/
|
|
64
|
+
sortDir?: BadgePricingSearchRequestBodySortDir | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const SortBy$outboundSchema: z.ZodNativeEnum<typeof SortBy> = z
|
|
69
|
+
.nativeEnum(SortBy);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const BadgePricingSearchRequestBodySortDir$outboundSchema:
|
|
73
|
+
z.ZodNativeEnum<typeof BadgePricingSearchRequestBodySortDir> = z.nativeEnum(
|
|
74
|
+
BadgePricingSearchRequestBodySortDir,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type BadgePricingSearchRequestBody$Outbound = {
|
|
79
|
+
filter?: BadgePricingSearchFilter$Outbound | undefined;
|
|
80
|
+
limit?: number | undefined;
|
|
81
|
+
offset?: number | undefined;
|
|
82
|
+
query: string;
|
|
83
|
+
sortBy?: string | undefined;
|
|
84
|
+
sortDir?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const BadgePricingSearchRequestBody$outboundSchema: z.ZodType<
|
|
89
|
+
BadgePricingSearchRequestBody$Outbound,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
BadgePricingSearchRequestBody
|
|
92
|
+
> = z.object({
|
|
93
|
+
filter: BadgePricingSearchFilter$outboundSchema.optional(),
|
|
94
|
+
limit: z.number().int().optional(),
|
|
95
|
+
offset: z.number().int().optional(),
|
|
96
|
+
query: z.string(),
|
|
97
|
+
sortBy: SortBy$outboundSchema.optional(),
|
|
98
|
+
sortDir: BadgePricingSearchRequestBodySortDir$outboundSchema.optional(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function badgePricingSearchRequestBodyToJSON(
|
|
102
|
+
badgePricingSearchRequestBody: BadgePricingSearchRequestBody,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(
|
|
105
|
+
BadgePricingSearchRequestBody$outboundSchema.parse(
|
|
106
|
+
badgePricingSearchRequestBody,
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BadgePricingSearchItem,
|
|
12
|
+
BadgePricingSearchItem$inboundSchema,
|
|
13
|
+
} from "./badgepricingsearchitem.js";
|
|
14
|
+
|
|
15
|
+
export type BadgePricingSearchResponseBody = {
|
|
16
|
+
/**
|
|
17
|
+
* A URL to the JSON Schema for this object.
|
|
18
|
+
*/
|
|
19
|
+
dollarSchema?: string | undefined;
|
|
20
|
+
items: Array<BadgePricingSearchItem> | null;
|
|
21
|
+
/**
|
|
22
|
+
* Number of rows returned in this page.
|
|
23
|
+
*/
|
|
24
|
+
results: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const BadgePricingSearchResponseBody$inboundSchema: z.ZodType<
|
|
29
|
+
BadgePricingSearchResponseBody,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
$schema: z.string().optional(),
|
|
34
|
+
items: z.nullable(z.array(BadgePricingSearchItem$inboundSchema)),
|
|
35
|
+
results: z.number().int(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"$schema": "dollarSchema",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function badgePricingSearchResponseBodyFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<BadgePricingSearchResponseBody, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => BadgePricingSearchResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'BadgePricingSearchResponseBody' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Group = {
|
|
11
|
+
avatar: string;
|
|
12
|
+
foundedAt: number;
|
|
13
|
+
id: number;
|
|
14
|
+
memberCount: number;
|
|
15
|
+
name: string;
|
|
16
|
+
ownerId: number;
|
|
17
|
+
privacy: string;
|
|
18
|
+
tag: string;
|
|
19
|
+
vanity: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Group$inboundSchema: z.ZodType<Group, z.ZodTypeDef, unknown> = z
|
|
24
|
+
.object({
|
|
25
|
+
avatar: z.string(),
|
|
26
|
+
foundedAt: z.number().int(),
|
|
27
|
+
id: z.number().int(),
|
|
28
|
+
memberCount: z.number().int(),
|
|
29
|
+
name: z.string(),
|
|
30
|
+
ownerId: z.number().int(),
|
|
31
|
+
privacy: z.string(),
|
|
32
|
+
tag: z.string(),
|
|
33
|
+
vanity: z.string(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function groupFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<Group, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => Group$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'Group' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
AccountRangeFilter,
|
|
8
|
+
AccountRangeFilter$Outbound,
|
|
9
|
+
AccountRangeFilter$outboundSchema,
|
|
10
|
+
} from "./accountrangefilter.js";
|
|
11
|
+
import {
|
|
12
|
+
AccountStringFilter,
|
|
13
|
+
AccountStringFilter$Outbound,
|
|
14
|
+
AccountStringFilter$outboundSchema,
|
|
15
|
+
} from "./accountstringfilter.js";
|
|
16
|
+
|
|
17
|
+
export type GroupFilter = {
|
|
18
|
+
foundedAt?: AccountRangeFilter | undefined;
|
|
19
|
+
id?: AccountRangeFilter | undefined;
|
|
20
|
+
memberCount?: AccountRangeFilter | undefined;
|
|
21
|
+
ownerId?: AccountRangeFilter | undefined;
|
|
22
|
+
privacy?: AccountStringFilter | undefined;
|
|
23
|
+
tag?: AccountStringFilter | undefined;
|
|
24
|
+
vanity?: AccountStringFilter | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type GroupFilter$Outbound = {
|
|
29
|
+
foundedAt?: AccountRangeFilter$Outbound | undefined;
|
|
30
|
+
id?: AccountRangeFilter$Outbound | undefined;
|
|
31
|
+
memberCount?: AccountRangeFilter$Outbound | undefined;
|
|
32
|
+
ownerId?: AccountRangeFilter$Outbound | undefined;
|
|
33
|
+
privacy?: AccountStringFilter$Outbound | undefined;
|
|
34
|
+
tag?: AccountStringFilter$Outbound | undefined;
|
|
35
|
+
vanity?: AccountStringFilter$Outbound | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const GroupFilter$outboundSchema: z.ZodType<
|
|
40
|
+
GroupFilter$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
GroupFilter
|
|
43
|
+
> = z.object({
|
|
44
|
+
foundedAt: AccountRangeFilter$outboundSchema.optional(),
|
|
45
|
+
id: AccountRangeFilter$outboundSchema.optional(),
|
|
46
|
+
memberCount: AccountRangeFilter$outboundSchema.optional(),
|
|
47
|
+
ownerId: AccountRangeFilter$outboundSchema.optional(),
|
|
48
|
+
privacy: AccountStringFilter$outboundSchema.optional(),
|
|
49
|
+
tag: AccountStringFilter$outboundSchema.optional(),
|
|
50
|
+
vanity: AccountStringFilter$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function groupFilterToJSON(groupFilter: GroupFilter): string {
|
|
54
|
+
return JSON.stringify(GroupFilter$outboundSchema.parse(groupFilter));
|
|
55
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
GroupFilter,
|
|
9
|
+
GroupFilter$Outbound,
|
|
10
|
+
GroupFilter$outboundSchema,
|
|
11
|
+
} from "./groupfilter.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* asc | desc; defaults to desc.
|
|
15
|
+
*/
|
|
16
|
+
export const GroupSearchRequestBodySortDir = {
|
|
17
|
+
Asc: "asc",
|
|
18
|
+
Desc: "desc",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* asc | desc; defaults to desc.
|
|
22
|
+
*/
|
|
23
|
+
export type GroupSearchRequestBodySortDir = ClosedEnum<
|
|
24
|
+
typeof GroupSearchRequestBodySortDir
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
export type GroupSearchRequestBody = {
|
|
28
|
+
filter?: GroupFilter | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
offset?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* BM25 text query against group name + tag + vanity.
|
|
33
|
+
*/
|
|
34
|
+
query: string;
|
|
35
|
+
/**
|
|
36
|
+
* Attribute to rank by when query is empty. Defaults to memberCount.
|
|
37
|
+
*/
|
|
38
|
+
sortBy?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* asc | desc; defaults to desc.
|
|
41
|
+
*/
|
|
42
|
+
sortDir?: GroupSearchRequestBodySortDir | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const GroupSearchRequestBodySortDir$outboundSchema: z.ZodNativeEnum<
|
|
47
|
+
typeof GroupSearchRequestBodySortDir
|
|
48
|
+
> = z.nativeEnum(GroupSearchRequestBodySortDir);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type GroupSearchRequestBody$Outbound = {
|
|
52
|
+
filter?: GroupFilter$Outbound | undefined;
|
|
53
|
+
limit?: number | undefined;
|
|
54
|
+
offset?: number | undefined;
|
|
55
|
+
query: string;
|
|
56
|
+
sortBy?: string | undefined;
|
|
57
|
+
sortDir?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const GroupSearchRequestBody$outboundSchema: z.ZodType<
|
|
62
|
+
GroupSearchRequestBody$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
GroupSearchRequestBody
|
|
65
|
+
> = z.object({
|
|
66
|
+
filter: GroupFilter$outboundSchema.optional(),
|
|
67
|
+
limit: z.number().int().optional(),
|
|
68
|
+
offset: z.number().int().optional(),
|
|
69
|
+
query: z.string(),
|
|
70
|
+
sortBy: z.string().optional(),
|
|
71
|
+
sortDir: GroupSearchRequestBodySortDir$outboundSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function groupSearchRequestBodyToJSON(
|
|
75
|
+
groupSearchRequestBody: GroupSearchRequestBody,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
GroupSearchRequestBody$outboundSchema.parse(groupSearchRequestBody),
|
|
79
|
+
);
|
|
80
|
+
}
|