@polymarket/bindings 0.8.0 → 0.9.0
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/chunk-NILFT6EF.js +2 -0
- package/dist/chunk-NILFT6EF.js.map +1 -0
- package/dist/{chunk-2WODFBG4.js → chunk-RGWF46B7.js} +2 -2
- package/dist/{chunk-2WODFBG4.js.map → chunk-RGWF46B7.js.map} +1 -1
- package/dist/{chunk-ZLKBCIHA.js → chunk-V3FFOW6W.js} +2 -2
- package/dist/{chunk-ZLKBCIHA.js.map → chunk-V3FFOW6W.js.map} +1 -1
- package/dist/clob/index.js +1 -1
- package/dist/combos/index.js +1 -1
- package/dist/data/index.js +1 -1
- package/dist/gamma/index.d.ts +102 -319
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-E3SBSYCF.js +0 -2
- package/dist/chunk-E3SBSYCF.js.map +0 -1
package/dist/gamma/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a,
|
|
1
|
+
import {a,I,e,v,u as u$1,t}from'../chunk-NILFT6EF.js';export{A as BestLineSchema,d as CategoryReferenceSchema,w as ChatSchema,g as ClobRewardsSchema,t as CollectionReferenceSchema,i as ComboKnownStatus,R as CommentMediaSchema,M as CommentPositionSchema,N as CommentProfileSchema,S as CommentSchema,x as EventCreatorSchema,z as EventExternalPartnerMappingSchema,c as EventReferenceSchema,I as EventSchema,b as FeeScheduleSchema,L as FetchEventTagsResponseSchema,p as FetchMarketTagsResponseSchema,H as GammaEventSchema,l as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,T as ListCommentsResponseSchema,K as ListEventsKeysetResponseSchema,J as ListEventsResponseSchema,o as ListMarketsKeysetResponseSchema,n as ListMarketsResponseSchema,F as ListSportsMetadataResponseSchema,E as ListTeamsResponseSchema,m as MarketSchema,y as PartnerSchema,j as ProtocolVersion,Q as ReactionSchema,O as ReactionType,P as ReactionTypeSchema,f as RelatedMarketSchema,s as SeriesIdSchema,u as SeriesReferenceSchema,G as SportsMarketTypesResponseSchema,D as SportsMetadataSchema,e as TagReferenceSchema,B as TeamOrdering,C as TeamSchema,v as TemplateReferenceSchema,k as UmaResolutionStatus,r as hasBinaryOutcomes,q as normalizeMarket}from'../chunk-NILFT6EF.js';import {B,oa,Na,ca,Fa,ma,Ka}from'../chunk-RGWF46B7.js';export{Ka as TagIdSchema}from'../chunk-RGWF46B7.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(B),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:ma.nullish(),questionId:Fa.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:ca.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Na.nullish(),createdAt:oa.nullish(),queuedAt:oa.nullish(),scheduledFor:oa.nullish(),txTimestamp:oa.nullish()}),Ie=z$1.array(O);var Ae=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:oa.nullish(),updatedAt:oa.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:oa.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:oa.nullish(),viewOnlyAcknowledgedAt:oa.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),ke=z$1.object({createdAt:oa.nullish(),proxyWallet:ca.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:Ka,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),qe=z$1.object({events:z$1.array(I).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(v).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),Ge=z$1.array(u),He=z$1.array(D),Qe=z$1.array(u);var U=u$1.extend({events:z$1.array(I).nullish(),collections:z$1.array(t).nullish(),tags:z$1.array(u).nullish()}),Ze=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),er=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Ie as ListMarketClarificationsResponseSchema,Qe as ListRelatedTagResourcesResponseSchema,He as ListRelatedTagsResponseSchema,Ze as ListSeriesResponseSchema,Ge as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ae as PaginationEnvelopeSchema,L as ProfileSchema,ke as PublicProfileSchema,j as PublicProfileUserSchema,qe as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,er as WalletTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/gamma/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","Coll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,IAAM,CAAA,CAAA,CAAN,KAAA,CACAA,IAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"23CAWYA,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAA,QAAU,SAAA,CACVA,CAAAA,CAAA,MAAA,CAAS,QAAA,CACTA,EAAA,OAAA,CAAU,SAAA,CACVA,EAAA,MAAA,CAAS,QAAA,CACTA,EAAA,SAAA,CAAY,WAAA,CALFA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAUNC,EAAyBC,GAAAA,CAC5B,KAAA,CAAM,CAACA,GAAAA,CAAE,MAAA,GAAUA,GAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,UAAU,MAAM,CAAC,CAAC,CAAA,CACtD,SAAA,CAAUC,CAAU,CAAA,CAEVC,CAAAA,CAA4BF,GAAAA,CAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,GAAAA,CAAE,QAAO,CAAE,GAAA,GACf,QAAA,CAAUD,CAAAA,CAAuB,SAAQ,CACzC,OAAA,CAASI,GAAc,OAAA,EAAQ,CAC/B,WAAYC,EAAAA,CAAiB,OAAA,GAC7B,OAAA,CAASJ,GAAAA,CAAE,MAAA,EAAO,CAAE,SAAQ,CAC5B,KAAA,CA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AAgC7B,IAAE,KAAA,CAAMyB,CAAgB,EACxDK,EAAAA,CAAwC9B,GAAAA,CAAE,MAAMsB,CAAS,MChBzDS,CAAAA,CAAeC,GAAAA,CAAsB,OAAO,CACvD,MAAA,CAAQhC,IAAE,KAAA,CAAMqB,CAAW,CAAA,CAAE,OAAA,GAC7B,WAAA,CAAarB,GAAAA,CAAE,MAAMiC,CAAyB,CAAA,CAAE,SAAQ,CACxD,IAAA,CAAMjC,IAAE,KAAA,CAAMsB,CAAS,EAAE,OAAA,EAC3B,CAAC,CAAA,CAEYY,EAAAA,CAA2BlC,IAAE,KAAA,CAAM+B,CAAY,MCZhDI,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAAA,CAAAA,CAAA,IAAM,CAAA,CAAA,CAAN,KAAA,CACAA,IAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ type TeamId = Tagged<number, 'TeamId'>;
|
|
|
90
90
|
type TemplateId = Tagged<string, 'TemplateId'>;
|
|
91
91
|
type TransactionId = Tagged<string, 'TransactionId'>;
|
|
92
92
|
type TokenId = Tagged<string, 'TokenId'>;
|
|
93
|
+
/** Identifier accepted by CLOB asset fields. */
|
|
94
|
+
type ClobAssetId = PositionId | TokenId;
|
|
93
95
|
type DecimalString = Tagged<string, 'DecimalString'>;
|
|
94
96
|
type BaseUnits = Tagged<string, 'BaseUnits'>;
|
|
95
97
|
declare function toBestLineId(value: string): BestLineId;
|
|
@@ -206,4 +208,4 @@ declare function emptyStringToNull(value: unknown): unknown;
|
|
|
206
208
|
*/
|
|
207
209
|
declare const OptionalDecimalStringSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
208
210
|
|
|
209
|
-
export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, ClobAssetIdSchema, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdResponseSchema, ConditionIdSchema, type CtfConditionId, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, SessionSignerKnownScope, type SessionSignerScope, SessionSignerScopeSchema, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, TradeStatus, TradeStatusSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
|
|
211
|
+
export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobAssetId, ClobAssetIdSchema, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdResponseSchema, ConditionIdSchema, type CtfConditionId, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, SessionSignerKnownScope, type SessionSignerScope, SessionSignerScopeSchema, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, TradeStatus, TradeStatusSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{W as ApiKeySchema,Sa as BaseUnitsSchema,X as BuilderCodeSchema,V as CategoryIdSchema,Ea as ClobAssetIdSchema,Y as ClobRewardIdSchema,_ as ComboActivityIdSchema,$ as ComboConditionIdSchema,Z as CommentIdSchema,a as CommentParentEntityType,xa as CommentParentEntityTypeSchema,ba as ConditionIdResponseSchema,aa as ConditionIdSchema,ga as DateLikeToIsoDateTimeStringSchema,Oa as DecimalStringSchema,Qa as DecimalishSchema,Pa as E6BigIntStringToDecimalStringSchema,ha as EpochLikeToIsoDateTimeStringSchema,da as EpochMillisecondsSchema,fa as EpochMillisecondsStringSchema,ka as EpochMillisecondsToIsoDateTimeStringSchema,ea as EpochSecondsToMillisecondsSchema,ma as EventIdSchema,ca as EvmAddressSchema,sa as ISOCalendarDateSchema,ra as ISODateStringSchema,ta as ImageOptimizationIdSchema,ua as InternalUserIdSchema,pa as IsoCalendarDateStringSchema,oa as IsoDateTimeStringSchema,va as MarketIdSchema,qa as MixedDateTimeStringSchema,wa as NotificationIdSchema,ia as OptionalDateLikeToIsoDateTimeStringSchema,Ua as OptionalDecimalStringSchema,ja as OptionalEpochLikeToIsoDateTimeStringSchema,la as OptionalEpochMillisecondsToIsoDateTimeStringSchema,ya as OrderIdSchema,b as OrderSide,za as OrderSideSchema,c as OrderType,Aa as OrderTypeSchema,Ca as PaginationCursorSchema,Da as PositionIdSchema,Ra as PositiveDecimalNumberSchema,Fa as QuestionIdSchema,Ga as ResolutionRequestIdSchema,Ha as RfqIdSchema,Ia as RfqQuoteIdSchema,Ja as RfqRequestorPublicIdSchema,e as SessionSignerKnownScope,f as SessionSignerScopeSchema,Ka as TagIdSchema,na as TickSizeValueSchema,La as TokenIdSchema,d as TradeStatus,Ba as TradeStatusSchema,Ma as TransactionIdSchema,Na as TxHashSchema,Ta as emptyStringToNull,j as toApiKey,U as toBaseUnits,g as toBestLineId,h as toBuilderCode,k as toCategoryId,l as toChatId,m as toClobRewardId,r as toCollectionId,o as toComboActivityId,q as toComboConditionId,n as toCommentId,p as toConditionId,T as toDecimalString,u as toEpochMilliseconds,s as toEventCreatorId,t as toEventExternalPartnerMappingId,v as toEventId,w as toImageOptimizationId,x as toInternalUserId,y as toIsoCalendarDateString,z as toIsoDateTimeString,B as toMarketId,A as toMixedDateTimeString,C as toNotificationId,D as toOrderId,F as toPaginationCursor,E as toPartnerId,G as toPositionId,H as toQuestionId,I as toResolutionRequestId,J as toRfqId,K as toRfqQuoteId,L as toRfqRequestorPublicId,M as toSeriesId,N as toSportId,O as toTagId,P as toTeamId,Q as toTemplateId,S as toTokenId,R as toTransactionId,i as toUuid}from'./chunk-
|
|
1
|
+
export{W as ApiKeySchema,Sa as BaseUnitsSchema,X as BuilderCodeSchema,V as CategoryIdSchema,Ea as ClobAssetIdSchema,Y as ClobRewardIdSchema,_ as ComboActivityIdSchema,$ as ComboConditionIdSchema,Z as CommentIdSchema,a as CommentParentEntityType,xa as CommentParentEntityTypeSchema,ba as ConditionIdResponseSchema,aa as ConditionIdSchema,ga as DateLikeToIsoDateTimeStringSchema,Oa as DecimalStringSchema,Qa as DecimalishSchema,Pa as E6BigIntStringToDecimalStringSchema,ha as EpochLikeToIsoDateTimeStringSchema,da as EpochMillisecondsSchema,fa as EpochMillisecondsStringSchema,ka as EpochMillisecondsToIsoDateTimeStringSchema,ea as EpochSecondsToMillisecondsSchema,ma as EventIdSchema,ca as EvmAddressSchema,sa as ISOCalendarDateSchema,ra as ISODateStringSchema,ta as ImageOptimizationIdSchema,ua as InternalUserIdSchema,pa as IsoCalendarDateStringSchema,oa as IsoDateTimeStringSchema,va as MarketIdSchema,qa as MixedDateTimeStringSchema,wa as NotificationIdSchema,ia as OptionalDateLikeToIsoDateTimeStringSchema,Ua as OptionalDecimalStringSchema,ja as OptionalEpochLikeToIsoDateTimeStringSchema,la as OptionalEpochMillisecondsToIsoDateTimeStringSchema,ya as OrderIdSchema,b as OrderSide,za as OrderSideSchema,c as OrderType,Aa as OrderTypeSchema,Ca as PaginationCursorSchema,Da as PositionIdSchema,Ra as PositiveDecimalNumberSchema,Fa as QuestionIdSchema,Ga as ResolutionRequestIdSchema,Ha as RfqIdSchema,Ia as RfqQuoteIdSchema,Ja as RfqRequestorPublicIdSchema,e as SessionSignerKnownScope,f as SessionSignerScopeSchema,Ka as TagIdSchema,na as TickSizeValueSchema,La as TokenIdSchema,d as TradeStatus,Ba as TradeStatusSchema,Ma as TransactionIdSchema,Na as TxHashSchema,Ta as emptyStringToNull,j as toApiKey,U as toBaseUnits,g as toBestLineId,h as toBuilderCode,k as toCategoryId,l as toChatId,m as toClobRewardId,r as toCollectionId,o as toComboActivityId,q as toComboConditionId,n as toCommentId,p as toConditionId,T as toDecimalString,u as toEpochMilliseconds,s as toEventCreatorId,t as toEventExternalPartnerMappingId,v as toEventId,w as toImageOptimizationId,x as toInternalUserId,y as toIsoCalendarDateString,z as toIsoDateTimeString,B as toMarketId,A as toMixedDateTimeString,C as toNotificationId,D as toOrderId,F as toPaginationCursor,E as toPartnerId,G as toPositionId,H as toQuestionId,I as toResolutionRequestId,J as toRfqId,K as toRfqQuoteId,L as toRfqRequestorPublicId,M as toSeriesId,N as toSportId,O as toTagId,P as toTeamId,Q as toTemplateId,S as toTokenId,R as toTransactionId,i as toUuid}from'./chunk-RGWF46B7.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/perps/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{$ as FetchPerpsAccountConfigResponseSchema,S as FetchPerpsAccountStatsResponseSchema,Q as FetchPerpsBalancesResponseSchema,Oa as FetchPerpsCandlesResponseSchema,Na as FetchPerpsFeesResponseSchema,Ja as FetchPerpsFundingHistoryResponseSchema,sa as FetchPerpsInstrumentsResponseSchema,ob as FetchPerpsOpenOrdersResponseSchema,nb as FetchPerpsOrdersResponseSchema,W as FetchPerpsPortfolioResponseSchema,ya as FetchPerpsStatisticsResponseSchema,ua as FetchPerpsTickersResponseSchema,Ha as FetchPerpsTradesResponseSchema,bb as FetchPerpsUnreadNotificationsCountResponseSchema,ja as ListPerpsDepositsResponseSchema,ba as ListPerpsEquityHistoryResponseSchema,rb as ListPerpsFillsResponseSchema,Y as ListPerpsFundingPaymentsResponseSchema,ab as ListPerpsNotificationsResponseSchema,da as ListPerpsPnlHistoryResponseSchema,ma as ListPerpsWithdrawalsResponseSchema,cb as MarkPerpsNotificationsReadResponseSchema,_ as PerpsAccountConfigSchema,qb as PerpsAccountFillSchema,sb as PerpsAccountFillUpdateSchema,Z as PerpsAccountFundingPaymentEntrySchema,X as PerpsAccountFundingPaymentSchema,R as PerpsAccountStatsSchema,J as PerpsAssetSchema,P as PerpsBalanceSchema,Da as PerpsBboSchema,Ea as PerpsBboUpdateSchema,Aa as PerpsBookLevelSchema,Ba as PerpsBookSchema,Ca as PerpsBookUpdateSchema,kb as PerpsCancelAllOrdersResponseSchema,jb as PerpsCancelOrderResultSchema,wa as PerpsCandleSchema,c as PerpsClientOrderIdSchema,hb as PerpsCommandAckSchema,gb as PerpsCommandStatusSchema,ga as PerpsCreateProxyResponseSchema,fa as PerpsCredentialsResponseSchema,L as PerpsDataResponseSchema,k as PerpsDecimalInputSchema,ha as PerpsDeleteProxyResponseSchema,ia as PerpsDepositSchema,r as PerpsDepositStatus,D as PerpsDepositStatusSchema,ka as PerpsDepositUpdateSchema,i as PerpsEntityIdSchema,aa as PerpsEquityPointSchema,La as PerpsFeeScheduleEntrySchema,Ka as PerpsFeeTierSchema,Ma as PerpsFeesInfoSchema,j as PerpsFundingIntervalSchema,f as PerpsFundingPaymentIdSchema,Ia as PerpsFundingRateSchema,m as PerpsInstrumentCategory,y as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,ra as PerpsInstrumentSchema,l as PerpsInstrumentType,x as PerpsInstrumentTypeSchema,t as PerpsInternalTransferDirection,F as PerpsInternalTransferDirectionSchema,h as PerpsInternalTransferIdSchema,pa as PerpsInternalTransferSchema,u as PerpsKlineInterval,G as PerpsKlineIntervalSchema,s as PerpsKnownWithdrawalStatus,Xa as PerpsLimitOrderCanceledNotificationSchema,Ya as PerpsLiquidationWarningNotificationSchema,U as PerpsMarginSummarySchema,Ta as PerpsMarginType,Ua as PerpsMarginTypeSchema,$a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Ra as PerpsNotificationOrderType,Sa as PerpsNotificationOrderTypeSchema,_a as PerpsNotificationSchema,Pa as PerpsNotificationType,Qa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,mb as PerpsOrderSchema,db as PerpsOrderStatus,fb as PerpsOrderStatusSchema,pb as PerpsOrderUpdateSchema,v as PerpsPnlInterval,H as PerpsPnlIntervalSchema,ca as PerpsPnlPointSchema,T as PerpsPortfolioPositionSchema,V as PerpsPortfolioSchema,Va as PerpsPositionChangeNotificationSchema,Wa as PerpsPositionClosedNotificationSchema,Za as PerpsPositionLiquidatedNotificationSchema,ib as PerpsPostOrderAckSchema,ea as PerpsProxyKeySchema,Fa as PerpsPublicTradeSchema,Ga as PerpsPublicTradeUpdateSchema,qa as PerpsRiskTierSchema,n as PerpsSide,z as PerpsSideSchema,w as PerpsSortDirection,I as PerpsSortDirectionSchema,xa as PerpsStatisticSchema,za as PerpsStatisticUpdateSchema,va as PerpsTickerEntrySchema,ta as PerpsTickerSchema,o as PerpsTimeInForce,A as PerpsTimeInForceSchema,p as PerpsTpSlKind,B as PerpsTpSlKindSchema,eb as PerpsTpSlOrderFieldsSchema,q as PerpsTpSlScope,C as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,K as PerpsTxHashSchema,lb as PerpsUpdateLeverageResultSchema,na as PerpsWithdrawResponseSchema,g as PerpsWithdrawalIdSchema,la as PerpsWithdrawalSchema,E as PerpsWithdrawalStatusSchema,oa as PerpsWithdrawalUpdateSchema,O as decimalString,N as perpsBaseUnits,M as perpsDecimal}from'../chunk-
|
|
1
|
+
export{$ as FetchPerpsAccountConfigResponseSchema,S as FetchPerpsAccountStatsResponseSchema,Q as FetchPerpsBalancesResponseSchema,Oa as FetchPerpsCandlesResponseSchema,Na as FetchPerpsFeesResponseSchema,Ja as FetchPerpsFundingHistoryResponseSchema,sa as FetchPerpsInstrumentsResponseSchema,ob as FetchPerpsOpenOrdersResponseSchema,nb as FetchPerpsOrdersResponseSchema,W as FetchPerpsPortfolioResponseSchema,ya as FetchPerpsStatisticsResponseSchema,ua as FetchPerpsTickersResponseSchema,Ha as FetchPerpsTradesResponseSchema,bb as FetchPerpsUnreadNotificationsCountResponseSchema,ja as ListPerpsDepositsResponseSchema,ba as ListPerpsEquityHistoryResponseSchema,rb as ListPerpsFillsResponseSchema,Y as ListPerpsFundingPaymentsResponseSchema,ab as ListPerpsNotificationsResponseSchema,da as ListPerpsPnlHistoryResponseSchema,ma as ListPerpsWithdrawalsResponseSchema,cb as MarkPerpsNotificationsReadResponseSchema,_ as PerpsAccountConfigSchema,qb as PerpsAccountFillSchema,sb as PerpsAccountFillUpdateSchema,Z as PerpsAccountFundingPaymentEntrySchema,X as PerpsAccountFundingPaymentSchema,R as PerpsAccountStatsSchema,J as PerpsAssetSchema,P as PerpsBalanceSchema,Da as PerpsBboSchema,Ea as PerpsBboUpdateSchema,Aa as PerpsBookLevelSchema,Ba as PerpsBookSchema,Ca as PerpsBookUpdateSchema,kb as PerpsCancelAllOrdersResponseSchema,jb as PerpsCancelOrderResultSchema,wa as PerpsCandleSchema,c as PerpsClientOrderIdSchema,hb as PerpsCommandAckSchema,gb as PerpsCommandStatusSchema,ga as PerpsCreateProxyResponseSchema,fa as PerpsCredentialsResponseSchema,L as PerpsDataResponseSchema,k as PerpsDecimalInputSchema,ha as PerpsDeleteProxyResponseSchema,ia as PerpsDepositSchema,r as PerpsDepositStatus,D as PerpsDepositStatusSchema,ka as PerpsDepositUpdateSchema,i as PerpsEntityIdSchema,aa as PerpsEquityPointSchema,La as PerpsFeeScheduleEntrySchema,Ka as PerpsFeeTierSchema,Ma as PerpsFeesInfoSchema,j as PerpsFundingIntervalSchema,f as PerpsFundingPaymentIdSchema,Ia as PerpsFundingRateSchema,m as PerpsInstrumentCategory,y as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,ra as PerpsInstrumentSchema,l as PerpsInstrumentType,x as PerpsInstrumentTypeSchema,t as PerpsInternalTransferDirection,F as PerpsInternalTransferDirectionSchema,h as PerpsInternalTransferIdSchema,pa as PerpsInternalTransferSchema,u as PerpsKlineInterval,G as PerpsKlineIntervalSchema,s as PerpsKnownWithdrawalStatus,Xa as PerpsLimitOrderCanceledNotificationSchema,Ya as PerpsLiquidationWarningNotificationSchema,U as PerpsMarginSummarySchema,Ta as PerpsMarginType,Ua as PerpsMarginTypeSchema,$a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Ra as PerpsNotificationOrderType,Sa as PerpsNotificationOrderTypeSchema,_a as PerpsNotificationSchema,Pa as PerpsNotificationType,Qa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,mb as PerpsOrderSchema,db as PerpsOrderStatus,fb as PerpsOrderStatusSchema,pb as PerpsOrderUpdateSchema,v as PerpsPnlInterval,H as PerpsPnlIntervalSchema,ca as PerpsPnlPointSchema,T as PerpsPortfolioPositionSchema,V as PerpsPortfolioSchema,Va as PerpsPositionChangeNotificationSchema,Wa as PerpsPositionClosedNotificationSchema,Za as PerpsPositionLiquidatedNotificationSchema,ib as PerpsPostOrderAckSchema,ea as PerpsProxyKeySchema,Fa as PerpsPublicTradeSchema,Ga as PerpsPublicTradeUpdateSchema,qa as PerpsRiskTierSchema,n as PerpsSide,z as PerpsSideSchema,w as PerpsSortDirection,I as PerpsSortDirectionSchema,xa as PerpsStatisticSchema,za as PerpsStatisticUpdateSchema,va as PerpsTickerEntrySchema,ta as PerpsTickerSchema,o as PerpsTimeInForce,A as PerpsTimeInForceSchema,p as PerpsTpSlKind,B as PerpsTpSlKindSchema,eb as PerpsTpSlOrderFieldsSchema,q as PerpsTpSlScope,C as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,K as PerpsTxHashSchema,lb as PerpsUpdateLeverageResultSchema,na as PerpsWithdrawResponseSchema,g as PerpsWithdrawalIdSchema,la as PerpsWithdrawalSchema,E as PerpsWithdrawalStatusSchema,oa as PerpsWithdrawalUpdateSchema,O as decimalString,N as perpsBaseUnits,M as perpsDecimal}from'../chunk-V3FFOW6W.js';import {u,da}from'../chunk-RGWF46B7.js';import {z}from'zod';var n=z.number().int().transform(e=>e===0?null:u(e)),jt=z.object({status:z.literal("ok"),deadline:n}),i=z.object({deadline:n,triggered:z.number().int().nonnegative(),daily_limit:z.number().int().nonnegative(),next_reset:da}).transform(e=>({deadline:e.deadline,triggered:e.triggered,dailyLimit:e.daily_limit,nextReset:e.next_reset})),Et=i;export{Et as FetchPerpsAutoCancelStatusResponseSchema,jt as PerpsAutoCancelResponseSchema,i as PerpsAutoCancelStatusSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/relayer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Ma,Na,ca}from'../chunk-
|
|
1
|
+
import {Ma,Na,ca}from'../chunk-RGWF46B7.js';import {z}from'zod';var E=(t=>(t.SUBMITTED="SUBMITTED",t.REGISTRY_PENDING="REGISTRY_PENDING",t.REGISTERED="REGISTERED",t.FAILED="FAILED",t.SUPERSEDED="SUPERSEDED",t.REPAIR_REQUIRED="REPAIR_REQUIRED",t))(E||{}),f=z.object({status:z.enum(E),transactionHash:Na.nullish().transform(o=>o??null),transactionId:Ma}),c=(t=>(t.PENDING="PENDING",t.FENCED="FENCED",t.SWEPT="SWEPT",t.CHAIN_SUBMITTED="CHAIN_SUBMITTED",t.CONFIRMED="CONFIRMED",t.FAILED="FAILED",t))(c||{}),L=z.object({status:z.enum(c),transactionId:Ma});var m=(s=>(s.SAFE="SAFE",s.PROXY="PROXY",s.SAFE_CREATE="SAFE-CREATE",s.WALLET="WALLET",s.WALLET_CREATE="WALLET-CREATE",s))(m||{}),C=z.enum(m),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),R=(t=>(t.STATE_NEW="STATE_NEW",t.STATE_EXECUTED="STATE_EXECUTED",t.STATE_MINED="STATE_MINED",t.STATE_CONFIRMED="STATE_CONFIRMED",t.STATE_INVALID="STATE_INVALID",t.STATE_FAILED="STATE_FAILED",t))(R||{}),T=z.enum(R),x=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:ca.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:ca.optional(),paymentToken:ca.optional(),refundReceiver:ca.optional(),relay:ca.optional(),relayHub:ca.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),N=z.object({address:ca,nonce:z.string().min(1)}),D=z.object({data:z.string().min(1),from:ca,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:ca,signature:z.string().min(1),signatureParams:x,to:ca,type:u,value:z.string().optional()}),I=z.object({data:z.string().min(1),target:ca,value:z.string().min(1)}),h=z.object({calls:z.array(I).min(1),deadline:z.string().min(1),depositWallet:ca}),A=z.object({depositWalletParams:h,from:ca,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:ca,type:z.literal("WALLET")}),S=z.object({from:ca,metadata:z.string().optional(),to:ca,type:z.literal("WALLET-CREATE")}),F=z.union([D,A,S]),b=z.object({state:T,transactionHash:Na.nullish().transform(o=>o??null),transactionID:Ma}).transform(({transactionHash:o,transactionID:l,...i})=>({...i,transactionHash:o??null,transactionId:l})),G=z.object({deployed:z.boolean()}),j=z.object({error_msg:z.string().nullish(),state:T,transaction_hash:z.union([z.literal(""),Na]).transform(o=>o===""?null:o),transaction_id:Ma}).transform(({error_msg:o,transaction_hash:l,transaction_id:i,...y})=>({...y,errorMsg:o??null,transactionHash:l??null,transactionId:i}));export{I as DepositWalletCallSchema,h as DepositWalletParamsSchema,j as GaslessTransactionSchema,f as RelayerAuthorizeSessionSignerResponseSchema,E as RelayerAuthorizeSessionSignerStatus,G as RelayerDeployedResponseSchema,S as RelayerDepositWalletCreateRequestSchema,A as RelayerDepositWalletExecuteRequestSchema,N as RelayerExecuteParamsSchema,F as RelayerExecuteRequestSchema,b as RelayerExecuteResponseSchema,D as RelayerLegacyExecuteRequestSchema,L as RelayerRevokeSessionSignerResponseSchema,c as RelayerRevokeSessionSignerStatus,R as RelayerTransactionState,m as RelayerTransactionType,C as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {N,K,O,P}from'../chunk-E3SBSYCF.js';import {Ga,Ea as Ea$1,Ca,va,za as za$1,wa,sb,b as b$1,a,P as P$1,V,pb,Z,ka as ka$1,oa,_a}from'../chunk-ZLKBCIHA.js';import {za,Oa,z as z$1,Ua,Ea,aa,fa,ka,Aa,Ba,da,xa,Qa,T}from'../chunk-2WODFBG4.js';export{d as TradeStatus}from'../chunk-2WODFBG4.js';import {z}from'zod';var x=z.preprocess(t=>typeof t=="string"?t.toUpperCase():t,za),ie=(s=>(s.Live="LIVE",s.Matched="MATCHED",s.Delayed="DELAYED",s.Unmatched="UNMATCHED",s.Canceled="CANCELED",s))(ie||{}),Ie=z.enum(ie),ne=z.object({price:Oa,size:Oa}),b=z.string().regex(/^\d+$/).transform(t=>z$1(new Date(Number(t)*1e3).toISOString())),Ce=z.string().regex(/^\d+$/).transform(t=>t==="0"?void 0:z$1(new Date(Number(t)*1e3).toISOString())),re=z.object({event_type:z.literal("book"),market:aa,asset_id:Ea,bids:z.array(ne),asks:z.array(ne),hash:z.string().nullish(),timestamp:fa.nullish(),min_order_size:Ua,tick_size:Ua,neg_risk:z.boolean().nullish(),last_trade_price:Ua}).transform(({event_type:t,asset_id:i,min_order_size:r,tick_size:a,neg_risk:o,last_trade_price:s,...u})=>({topic:"market",type:t,payload:{...u,conditionId:u.market,market:u.market,assetId:i,tokenId:i,minOrderSize:r,tickSize:a,negRisk:o,lastTradePrice:s}})),xe=z.object({asset_id:Ea,price:Oa,size:Oa,side:x,hash:z.string().nullish(),best_bid:Ua,best_ask:Ua}).transform(({asset_id:t,best_bid:i,best_ask:r,...a})=>({...a,assetId:t,tokenId:t,bestBid:i,bestAsk:r})),ae=z.object({event_type:z.literal("price_change"),market:aa,price_changes:z.array(xe),timestamp:fa.nullish()}).transform(({event_type:t,price_changes:i,...r})=>({topic:"market",type:t,payload:{...r,conditionId:r.market,market:r.market,priceChanges:i}})),oe=z.object({event_type:z.literal("last_trade_price"),market:aa,asset_id:Ea,price:Oa,size:Ua,fee_rate_bps:Ua,side:x,timestamp:fa.nullish(),transaction_hash:z.string().nullish()}).transform(({event_type:t,asset_id:i,fee_rate_bps:r,transaction_hash:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,feeRateBps:r,transactionHash:a}})),se=z.object({event_type:z.literal("tick_size_change"),market:aa,asset_id:Ea,old_tick_size:Ua,new_tick_size:Oa,timestamp:fa.nullish()}).transform(({event_type:t,asset_id:i,old_tick_size:r,new_tick_size:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,oldTickSize:r,newTickSize:a}})),ce=z.object({event_type:z.literal("best_bid_ask"),market:aa,asset_id:Ea,best_bid:Ua,best_ask:Ua,spread:Ua,timestamp:fa.nullish()}).transform(({event_type:t,asset_id:i,best_bid:r,best_ask:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,bestBid:r,bestAsk:a}})),pe=z.object({id:z.string(),ticker:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),description:z.string().nullish()}),de=z.object({event_type:z.literal("new_market"),id:z.string(),question:z.string().nullish(),market:z.string(),slug:z.string().nullish(),description:z.string().nullish(),assets_ids:z.array(Ea).nullish(),outcomes:z.array(z.string()).nullish(),event_message:pe.nullish(),timestamp:fa.nullish(),tags:z.array(z.string()).nullish(),condition_id:aa.nullish(),active:z.boolean().nullish(),clob_token_ids:z.array(z.string()).nullish(),sports_market_type:z.string().nullish(),line:Ua,game_start_time:ka.nullish(),order_price_min_tick_size:Ua,group_item_title:z.string().nullish(),taker_base_fee:Ua,fees_enabled:z.boolean().nullish(),fee_schedule:z.unknown().nullish()}).transform(({event_type:t,assets_ids:i,event_message:r,condition_id:a,clob_token_ids:o,sports_market_type:s,game_start_time:u,order_price_min_tick_size:P,group_item_title:E,taker_base_fee:v,fees_enabled:T,fee_schedule:g,...z})=>({topic:"market",type:t,payload:{...z,assetIds:i,tokenIds:i,eventMessage:r,conditionId:a,clobTokenIds:o,sportsMarketType:s,gameStartTime:u,orderPriceMinTickSize:P,groupItemTitle:E,takerBaseFee:v,feesEnabled:T,feeSchedule:g}})),le=z.object({event_type:z.literal("market_resolved"),id:z.string(),market:aa,assets_ids:z.array(Ea).nullish(),winning_asset_id:Ea.nullish(),winning_outcome:z.string().nullish(),event_message:pe.nullish(),timestamp:fa.nullish(),tags:z.array(z.string()).nullish()}).transform(({event_type:t,assets_ids:i,winning_asset_id:r,winning_outcome:a,event_message:o,...s})=>({topic:"market",type:t,payload:{...s,conditionId:s.market,market:s.market,assetIds:i,tokenIds:i,winningAssetId:r,winningTokenId:r,winningOutcome:a,eventMessage:o}})),me=(a=>(a.Placement="PLACEMENT",a.Update="UPDATE",a.Cancellation="CANCELLATION",a))(me||{}),_e=z.enum(me),be=z.object({event_type:z.literal("order"),id:z.string(),owner:z.string(),market:aa,asset_id:Ea,side:x,order_owner:z.string().nullish(),original_size:Oa,size_matched:Oa,price:Oa,associate_trades:z.array(z.string()).nullish(),outcome:z.string().nullish(),type:_e,created_at:b.nullish(),expiration:Ce.nullish(),order_type:Aa.nullish(),status:Ie.nullish(),maker_address:z.string().nullish(),timestamp:fa}).transform(({event_type:t,type:i,asset_id:r,order_owner:a,original_size:o,size_matched:s,associate_trades:u,created_at:P,expiration:E,order_type:v,maker_address:T,...g})=>({topic:"user",type:t,payload:{...g,conditionId:g.market,market:g.market,orderEventType:i,assetId:r,tokenId:r,orderOwner:a,originalSize:o,sizeMatched:s,associateTrades:u,createdAt:P,expiresAt:E,orderType:v,makerAddress:T}})),ze=z.object({order_id:z.string(),owner:z.string(),maker_address:z.string().nullish(),matched_amount:Oa,price:Oa,fee_rate_bps:Ua,asset_id:Ea,outcome:z.string().nullish(),outcome_index:z.number().int().nullish(),side:x}).transform(({order_id:t,maker_address:i,matched_amount:r,fee_rate_bps:a,asset_id:o,outcome_index:s,...u})=>({...u,orderId:t,makerAddress:i,matchedAmount:r,feeRateBps:a,assetId:o,tokenId:o,outcomeIndex:s})),Me=z.object({event_type:z.literal("trade"),type:z.literal("TRADE"),id:z.string(),taker_order_id:z.string(),market:aa,asset_id:Ea,side:x,size:Oa,fee_rate_bps:Ua,price:Oa,status:Ba,match_time:b.nullish(),matchtime:b.nullish(),last_update:b.nullish(),outcome:z.string().nullish(),owner:z.string(),trade_owner:z.string().nullish(),maker_address:z.string().nullish(),transaction_hash:z.string().nullish(),bucket_index:z.number().int().nullish(),maker_orders:z.array(ze).nullish(),trader_side:z.union([z.literal("TAKER"),z.literal("MAKER")]).nullish(),timestamp:fa}).transform(({event_type:t,type:i,taker_order_id:r,asset_id:a,fee_rate_bps:o,match_time:s,matchtime:u,last_update:P,trade_owner:E,maker_address:v,transaction_hash:T,bucket_index:g,maker_orders:z,trader_side:ve,...M})=>({topic:"user",type:t,payload:{...M,conditionId:M.market,market:M.market,takerOrderId:r,assetId:a,tokenId:a,feeRateBps:o,matchedAt:s??u,updatedAt:P,tradeOwner:E,makerAddress:v,transactionHash:T,bucketIndex:g,makerOrders:z,traderSide:ve}})),Ot=z.discriminatedUnion("event_type",[re,ae,oe,se]),Bt=z.discriminatedUnion("event_type",[ce,de,le]),qt=z.discriminatedUnion("event_type",[re,ae,oe,se,ce,de,le]),jt=z.discriminatedUnion("event_type",[be,Me]);var he=z.number().int().nonnegative(),we=z.string().regex(/^trades::\d+$/),Ue=z.string().regex(/^bbo::\d+$/),Ae=z.string().regex(/^book::\d+$/),De=z.string().regex(/^tickers::(all|\d+)$/),Re=z.string().regex(/^statistics::(all|\d+)$/),Oe=z.string().regex(/^klines::\d+::(1m|5m|15m|1h|4h|1d|1w)$/),Be=z.string().regex(/^tpsl::\d+$/),qe=z.enum(["balances","portfolio","orders","fills","funding","deposits","withdrawals","notifications"]),k=z.object({ts:da,sq:he}),je=k.extend({ch:we,data:z.array(Ga)}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.trades",type:"trade",channel:t,timestamp:i,sequence:r,payload:a})),Ne=k.extend({ch:Ue,data:Ea$1}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.bbo",type:"bbo",channel:t,timestamp:i,sequence:r,payload:a})),Le=k.extend({ch:Ae,data:Ca}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.book",type:"book",channel:t,timestamp:i,sequence:r,payload:{instrumentId:ue(t),...a}})),Ze=k.extend({ch:De,data:va}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.tickers",type:"ticker",channel:t,timestamp:i,sequence:r,payload:a})),Fe=k.extend({ch:Re,data:za$1}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.statistics",type:"statistic",channel:t,timestamp:i,sequence:r,payload:a})),$e=k.extend({ch:Oe,data:z.array(wa)}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.candles",type:"candle",channel:t,timestamp:i,sequence:r,payload:{instrumentId:ue(t),interval:nt(t),candles:a}})),Qt=z.union([je,Ne,Le,Ze,Fe,$e]),Ke=k.extend({ch:qe});function f(t,i,r){return Ke.extend({ch:z.literal(i),data:r}).transform(a=>{let o=a;return {type:t,channel:o.ch,timestamp:o.ts,sequence:o.sq,payload:o.data}})}var He=f("balance","balances",P$1),We=f("portfolio","portfolio",V),Ye=f("order","orders",pb),Ve=f("fill","fills",z.array(sb)),Qe=f("funding","funding",Z),Ge=f("deposit","deposits",ka$1),Je=f("withdrawal","withdrawals",oa),Xe=f("notification","notifications",_a),Gt=z.object({ch:z.literal("notifications"),ts:da,sq:he,type:z.literal("resync")}).transform(({ch:t,ts:i,sq:r})=>({type:"resync",channel:t,timestamp:i,sequence:r})),et=z.object({oid:b$1,st:z.enum(["untriggered","armed","cancelled","expired"]),reason:z.string().optional()}),tt=k.extend({ch:Be,data:et.transform(t=>({orderId:t.oid,status:t.st,reason:t.reason}))}).transform(({ch:t,ts:i,sq:r,data:a})=>({type:"tpsl",channel:t,timestamp:i,sequence:r,payload:a})),Jt=z.union([He,We,Ye,Ve,Qe,Ge,Je,Xe,tt]);function ue(t){let[,i]=t.split("::");return a.parse(Number(i))}function nt(t){let[,,i]=t.split("::");return i}var it=z.object({id:z.string(),body:z.string().nullish(),parentEntityType:xa.nullish(),parentEntityID:z.number().int().nullish(),parentCommentID:z.string().nullish(),userAddress:z.string().nullish(),replyAddress:z.string().nullish(),createdAt:z.string().nullish(),updatedAt:z.string().nullish(),media:z.array(O).nullish(),profile:K.nullish(),reactions:z.array(N).nullish(),reportCount:z.number().int().nullish(),reactionCount:z.number().int().nullish(),tradeAsset:z.string().nullish()}),rt=z.object({topic:z.literal("comments"),type:z.literal("comment_created"),timestamp:da,payload:P}),at=z.object({topic:z.literal("comments"),type:z.literal("comment_removed"),timestamp:da,payload:it}),ot=z.object({topic:z.literal("comments"),type:z.literal("reaction_created"),timestamp:da,payload:N}),st=z.object({topic:z.literal("comments"),type:z.literal("reaction_removed"),timestamp:da,payload:N}),Se=z.object({symbol:z.string(),timestamp:da,value:Qa}),ct="prices.crypto.binance",pt="prices.crypto.chainlink",ke="prices.crypto.chainlink.twap",dt=z.literal("crypto_prices"),lt=z.literal("crypto_prices_chainlink"),mt=z.literal("crypto_prices_twap_thirty"),ht=z.literal("crypto_prices_twap_sixty"),ut=dt.transform(()=>ct),yt=lt.transform(()=>pt),St=mt.transform(()=>ke),kt=ht.transform(()=>ke),ft=z.object({topic:ut,type:z.literal("update"),timestamp:da,payload:Se}),gt=z.object({topic:yt,type:z.literal("update"),timestamp:da,payload:Se}),ye=1000000000000000000n;function Pt(t){let i=BigInt(t),r=i<0n,a=r?-i:i,o=a/ye,s=(a%ye).toString().padStart(18,"0").replace(/0+$/,"");return T(`${r?"-":""}${o}${s===""?"":`.${s}`}`)}var Et=z.string().regex(/^-?\d+$/).transform(Pt),vt=z.object({symbol:z.string(),value:Qa,full_accuracy_value:Et,timestamp:da});function fe(t){return vt.extend({window_s:z.literal(t)}).transform(i=>({symbol:i.symbol,timestamp:i.timestamp,value:i.full_accuracy_value,windowSeconds:i.window_s}))}var ge=z.object({topic:St,type:z.literal("update"),timestamp:da,payload:fe(30)}),Pe=z.object({topic:kt,type:z.literal("update"),timestamp:da,payload:fe(60)}),rn=z.union([ge,Pe]),Tt=z.discriminatedUnion("topic",[ft,gt,ge,Pe]),It=z.object({symbol:z.string(),value:Qa,full_accuracy_value:Oa.nullish(),timestamp:da,received_at:da.nullish(),is_carried_forward:z.boolean().nullish()}).transform(({full_accuracy_value:t,received_at:i,is_carried_forward:r,value:a,...o})=>({...o,value:t??a,receivedAt:i,isCarriedForward:r})),Ct=z.object({timestamp:z.number(),value:Qa}),xt=z.object({symbol:z.string(),data:z.array(Ct)}),_t=z.literal("equity_prices"),bt="prices.equity.pyth",Ee=_t.transform(()=>bt),zt=z.object({topic:Ee,type:z.literal("update"),timestamp:da,payload:It}),Mt=z.object({topic:Ee,type:z.literal("subscribe"),timestamp:da,payload:xt}),wt=z.discriminatedUnion("type",[zt,Mt]),Ut=z.discriminatedUnion("type",[rt,at,ot,st]),an=z.discriminatedUnion("topic",[Ut,Tt,wt]);var At=z.object({gameId:z.number().int(),sportradarGameId:z.string().nullish(),slug:z.string().nullish(),leagueAbbreviation:z.string(),homeTeam:z.string().nullish(),awayTeam:z.string().nullish(),status:z.string(),live:z.boolean(),ended:z.boolean(),score:z.string(),period:z.string().nullish(),elapsed:z.string().nullish(),finishedTimestamp:ka.nullish(),finished_timestamp:ka.nullish(),turn:z.string().nullish()}).transform(({finishedTimestamp:t,finished_timestamp:i,...r})=>({...r,finishedAt:t??i})),pn=At.transform(t=>({topic:"sports",type:"sport_result",payload:t}));export{rt as CommentCreatedEventSchema,at as CommentRemovedEventSchema,Ut as CommentsEventSchema,ft as CryptoPricesBinanceEventSchema,gt as CryptoPricesChainlinkEventSchema,rn as CryptoPricesChainlinkTwapEventSchema,Pe as CryptoPricesChainlinkTwapSixtyEventSchema,ge as CryptoPricesChainlinkTwapThirtyEventSchema,Tt as CryptoPricesEventSchema,Bt as CustomMarketEventSchema,wt as EquityPricesEventSchema,Mt as EquityPricesSubscribeEventSchema,zt as EquityPricesUpdateEventSchema,ce as MarketBestBidAskEventSchema,re as MarketBookEventSchema,qt as MarketEventSchema,oe as MarketLastTradePriceEventSchema,ae as MarketPriceChangeEventSchema,le as MarketResolvedEventSchema,se as MarketTickSizeChangeEventSchema,de as NewMarketEventSchema,He as PerpsBalanceUpdateEventSchema,Ne as PerpsBboEventSchema,Le as PerpsBookEventSchema,$e as PerpsCandleEventSchema,Ge as PerpsDepositUpdateEventSchema,Ve as PerpsFillUpdateEventSchema,Qe as PerpsFundingUpdateEventSchema,Qt as PerpsMarketDataEventSchema,Xe as PerpsNotificationUpdateEventSchema,Gt as PerpsNotificationsResyncFrameSchema,Ye as PerpsOrderUpdateEventSchema,We as PerpsPortfolioUpdateEventSchema,Jt as PerpsSessionUpdateEventSchema,Fe as PerpsStatisticEventSchema,Ze as PerpsTickerEventSchema,tt as PerpsTpSlUpdateEventSchema,je as PerpsTradeEventSchema,Je as PerpsWithdrawalUpdateEventSchema,ot as ReactionCreatedEventSchema,st as ReactionRemovedEventSchema,an as RealtimeEventSchema,pn as SportsResultEventSchema,Ot as StandardMarketEventSchema,jt as UserEventSchema,be as UserOrderEventSchema,me as UserOrderEventType,ie as UserOrderStatus,Me as UserTradeEventSchema};//# sourceMappingURL=index.js.map
|
|
1
|
+
import {Q,N,R,S}from'../chunk-NILFT6EF.js';import {Ga,Ea as Ea$1,Ca,va,za as za$1,wa,sb,b as b$1,a,P,V,pb,Z,ka as ka$1,oa,_a}from'../chunk-V3FFOW6W.js';import {za,Oa,z as z$1,Ua,Ea,aa,fa,ka,Aa,Ba,da,xa,Qa,T}from'../chunk-RGWF46B7.js';export{d as TradeStatus}from'../chunk-RGWF46B7.js';import {z}from'zod';var x=z.preprocess(t=>typeof t=="string"?t.toUpperCase():t,za),ie=(s=>(s.Live="LIVE",s.Matched="MATCHED",s.Delayed="DELAYED",s.Unmatched="UNMATCHED",s.Canceled="CANCELED",s))(ie||{}),Ie=z.enum(ie),ne=z.object({price:Oa,size:Oa}),b=z.string().regex(/^\d+$/).transform(t=>z$1(new Date(Number(t)*1e3).toISOString())),Ce=z.string().regex(/^\d+$/).transform(t=>t==="0"?void 0:z$1(new Date(Number(t)*1e3).toISOString())),re=z.object({event_type:z.literal("book"),market:aa,asset_id:Ea,bids:z.array(ne),asks:z.array(ne),hash:z.string().nullish(),timestamp:fa.nullish(),min_order_size:Ua,tick_size:Ua,neg_risk:z.boolean().nullish(),last_trade_price:Ua}).transform(({event_type:t,asset_id:i,min_order_size:r,tick_size:a,neg_risk:o,last_trade_price:s,...u})=>({topic:"market",type:t,payload:{...u,conditionId:u.market,market:u.market,assetId:i,tokenId:i,minOrderSize:r,tickSize:a,negRisk:o,lastTradePrice:s}})),xe=z.object({asset_id:Ea,price:Oa,size:Oa,side:x,hash:z.string().nullish(),best_bid:Ua,best_ask:Ua}).transform(({asset_id:t,best_bid:i,best_ask:r,...a})=>({...a,assetId:t,tokenId:t,bestBid:i,bestAsk:r})),ae=z.object({event_type:z.literal("price_change"),market:aa,price_changes:z.array(xe),timestamp:fa.nullish()}).transform(({event_type:t,price_changes:i,...r})=>({topic:"market",type:t,payload:{...r,conditionId:r.market,market:r.market,priceChanges:i}})),oe=z.object({event_type:z.literal("last_trade_price"),market:aa,asset_id:Ea,price:Oa,size:Ua,fee_rate_bps:Ua,side:x,timestamp:fa.nullish(),transaction_hash:z.string().nullish()}).transform(({event_type:t,asset_id:i,fee_rate_bps:r,transaction_hash:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,feeRateBps:r,transactionHash:a}})),se=z.object({event_type:z.literal("tick_size_change"),market:aa,asset_id:Ea,old_tick_size:Ua,new_tick_size:Oa,timestamp:fa.nullish()}).transform(({event_type:t,asset_id:i,old_tick_size:r,new_tick_size:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,oldTickSize:r,newTickSize:a}})),ce=z.object({event_type:z.literal("best_bid_ask"),market:aa,asset_id:Ea,best_bid:Ua,best_ask:Ua,spread:Ua,timestamp:fa.nullish()}).transform(({event_type:t,asset_id:i,best_bid:r,best_ask:a,...o})=>({topic:"market",type:t,payload:{...o,conditionId:o.market,market:o.market,assetId:i,tokenId:i,bestBid:r,bestAsk:a}})),pe=z.object({id:z.string(),ticker:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),description:z.string().nullish()}),de=z.object({event_type:z.literal("new_market"),id:z.string(),question:z.string().nullish(),market:z.string(),slug:z.string().nullish(),description:z.string().nullish(),assets_ids:z.array(Ea).nullish(),outcomes:z.array(z.string()).nullish(),event_message:pe.nullish(),timestamp:fa.nullish(),tags:z.array(z.string()).nullish(),condition_id:aa.nullish(),active:z.boolean().nullish(),clob_token_ids:z.array(z.string()).nullish(),sports_market_type:z.string().nullish(),line:Ua,game_start_time:ka.nullish(),order_price_min_tick_size:Ua,group_item_title:z.string().nullish(),taker_base_fee:Ua,fees_enabled:z.boolean().nullish(),fee_schedule:z.unknown().nullish()}).transform(({event_type:t,assets_ids:i,event_message:r,condition_id:a,clob_token_ids:o,sports_market_type:s,game_start_time:u,order_price_min_tick_size:P,group_item_title:E,taker_base_fee:v,fees_enabled:T,fee_schedule:g,...z})=>({topic:"market",type:t,payload:{...z,assetIds:i,tokenIds:i,eventMessage:r,conditionId:a,clobTokenIds:o,sportsMarketType:s,gameStartTime:u,orderPriceMinTickSize:P,groupItemTitle:E,takerBaseFee:v,feesEnabled:T,feeSchedule:g}})),le=z.object({event_type:z.literal("market_resolved"),id:z.string(),market:aa,assets_ids:z.array(Ea).nullish(),winning_asset_id:Ea.nullish(),winning_outcome:z.string().nullish(),event_message:pe.nullish(),timestamp:fa.nullish(),tags:z.array(z.string()).nullish()}).transform(({event_type:t,assets_ids:i,winning_asset_id:r,winning_outcome:a,event_message:o,...s})=>({topic:"market",type:t,payload:{...s,conditionId:s.market,market:s.market,assetIds:i,tokenIds:i,winningAssetId:r,winningTokenId:r,winningOutcome:a,eventMessage:o}})),me=(a=>(a.Placement="PLACEMENT",a.Update="UPDATE",a.Cancellation="CANCELLATION",a))(me||{}),_e=z.enum(me),be=z.object({event_type:z.literal("order"),id:z.string(),owner:z.string(),market:aa,asset_id:Ea,side:x,order_owner:z.string().nullish(),original_size:Oa,size_matched:Oa,price:Oa,associate_trades:z.array(z.string()).nullish(),outcome:z.string().nullish(),type:_e,created_at:b.nullish(),expiration:Ce.nullish(),order_type:Aa.nullish(),status:Ie.nullish(),maker_address:z.string().nullish(),timestamp:fa}).transform(({event_type:t,type:i,asset_id:r,order_owner:a,original_size:o,size_matched:s,associate_trades:u,created_at:P,expiration:E,order_type:v,maker_address:T,...g})=>({topic:"user",type:t,payload:{...g,conditionId:g.market,market:g.market,orderEventType:i,assetId:r,tokenId:r,orderOwner:a,originalSize:o,sizeMatched:s,associateTrades:u,createdAt:P,expiresAt:E,orderType:v,makerAddress:T}})),ze=z.object({order_id:z.string(),owner:z.string(),maker_address:z.string().nullish(),matched_amount:Oa,price:Oa,fee_rate_bps:Ua,asset_id:Ea,outcome:z.string().nullish(),outcome_index:z.number().int().nullish(),side:x}).transform(({order_id:t,maker_address:i,matched_amount:r,fee_rate_bps:a,asset_id:o,outcome_index:s,...u})=>({...u,orderId:t,makerAddress:i,matchedAmount:r,feeRateBps:a,assetId:o,tokenId:o,outcomeIndex:s})),Me=z.object({event_type:z.literal("trade"),type:z.literal("TRADE"),id:z.string(),taker_order_id:z.string(),market:aa,asset_id:Ea,side:x,size:Oa,fee_rate_bps:Ua,price:Oa,status:Ba,match_time:b.nullish(),matchtime:b.nullish(),last_update:b.nullish(),outcome:z.string().nullish(),owner:z.string(),trade_owner:z.string().nullish(),maker_address:z.string().nullish(),transaction_hash:z.string().nullish(),bucket_index:z.number().int().nullish(),maker_orders:z.array(ze).nullish(),trader_side:z.union([z.literal("TAKER"),z.literal("MAKER")]).nullish(),timestamp:fa}).transform(({event_type:t,type:i,taker_order_id:r,asset_id:a,fee_rate_bps:o,match_time:s,matchtime:u,last_update:P,trade_owner:E,maker_address:v,transaction_hash:T,bucket_index:g,maker_orders:z,trader_side:ve,...M})=>({topic:"user",type:t,payload:{...M,conditionId:M.market,market:M.market,takerOrderId:r,assetId:a,tokenId:a,feeRateBps:o,matchedAt:s??u,updatedAt:P,tradeOwner:E,makerAddress:v,transactionHash:T,bucketIndex:g,makerOrders:z,traderSide:ve}})),Ot=z.discriminatedUnion("event_type",[re,ae,oe,se]),Bt=z.discriminatedUnion("event_type",[ce,de,le]),qt=z.discriminatedUnion("event_type",[re,ae,oe,se,ce,de,le]),jt=z.discriminatedUnion("event_type",[be,Me]);var he=z.number().int().nonnegative(),we=z.string().regex(/^trades::\d+$/),Ue=z.string().regex(/^bbo::\d+$/),Ae=z.string().regex(/^book::\d+$/),De=z.string().regex(/^tickers::(all|\d+)$/),Re=z.string().regex(/^statistics::(all|\d+)$/),Oe=z.string().regex(/^klines::\d+::(1m|5m|15m|1h|4h|1d|1w)$/),Be=z.string().regex(/^tpsl::\d+$/),qe=z.enum(["balances","portfolio","orders","fills","funding","deposits","withdrawals","notifications"]),k=z.object({ts:da,sq:he}),je=k.extend({ch:we,data:z.array(Ga)}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.trades",type:"trade",channel:t,timestamp:i,sequence:r,payload:a})),Ne=k.extend({ch:Ue,data:Ea$1}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.bbo",type:"bbo",channel:t,timestamp:i,sequence:r,payload:a})),Le=k.extend({ch:Ae,data:Ca}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.book",type:"book",channel:t,timestamp:i,sequence:r,payload:{instrumentId:ue(t),...a}})),Ze=k.extend({ch:De,data:va}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.tickers",type:"ticker",channel:t,timestamp:i,sequence:r,payload:a})),Fe=k.extend({ch:Re,data:za$1}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.statistics",type:"statistic",channel:t,timestamp:i,sequence:r,payload:a})),$e=k.extend({ch:Oe,data:z.array(wa)}).transform(({ch:t,ts:i,sq:r,data:a})=>({topic:"perps.candles",type:"candle",channel:t,timestamp:i,sequence:r,payload:{instrumentId:ue(t),interval:nt(t),candles:a}})),Qt=z.union([je,Ne,Le,Ze,Fe,$e]),Ke=k.extend({ch:qe});function f(t,i,r){return Ke.extend({ch:z.literal(i),data:r}).transform(a=>{let o=a;return {type:t,channel:o.ch,timestamp:o.ts,sequence:o.sq,payload:o.data}})}var He=f("balance","balances",P),We=f("portfolio","portfolio",V),Ye=f("order","orders",pb),Ve=f("fill","fills",z.array(sb)),Qe=f("funding","funding",Z),Ge=f("deposit","deposits",ka$1),Je=f("withdrawal","withdrawals",oa),Xe=f("notification","notifications",_a),Gt=z.object({ch:z.literal("notifications"),ts:da,sq:he,type:z.literal("resync")}).transform(({ch:t,ts:i,sq:r})=>({type:"resync",channel:t,timestamp:i,sequence:r})),et=z.object({oid:b$1,st:z.enum(["untriggered","armed","cancelled","expired"]),reason:z.string().optional()}),tt=k.extend({ch:Be,data:et.transform(t=>({orderId:t.oid,status:t.st,reason:t.reason}))}).transform(({ch:t,ts:i,sq:r,data:a})=>({type:"tpsl",channel:t,timestamp:i,sequence:r,payload:a})),Jt=z.union([He,We,Ye,Ve,Qe,Ge,Je,Xe,tt]);function ue(t){let[,i]=t.split("::");return a.parse(Number(i))}function nt(t){let[,,i]=t.split("::");return i}var it=z.object({id:z.string(),body:z.string().nullish(),parentEntityType:xa.nullish(),parentEntityID:z.number().int().nullish(),parentCommentID:z.string().nullish(),userAddress:z.string().nullish(),replyAddress:z.string().nullish(),createdAt:z.string().nullish(),updatedAt:z.string().nullish(),media:z.array(R).nullish(),profile:N.nullish(),reactions:z.array(Q).nullish(),reportCount:z.number().int().nullish(),reactionCount:z.number().int().nullish(),tradeAsset:z.string().nullish()}),rt=z.object({topic:z.literal("comments"),type:z.literal("comment_created"),timestamp:da,payload:S}),at=z.object({topic:z.literal("comments"),type:z.literal("comment_removed"),timestamp:da,payload:it}),ot=z.object({topic:z.literal("comments"),type:z.literal("reaction_created"),timestamp:da,payload:Q}),st=z.object({topic:z.literal("comments"),type:z.literal("reaction_removed"),timestamp:da,payload:Q}),Se=z.object({symbol:z.string(),timestamp:da,value:Qa}),ct="prices.crypto.binance",pt="prices.crypto.chainlink",ke="prices.crypto.chainlink.twap",dt=z.literal("crypto_prices"),lt=z.literal("crypto_prices_chainlink"),mt=z.literal("crypto_prices_twap_thirty"),ht=z.literal("crypto_prices_twap_sixty"),ut=dt.transform(()=>ct),yt=lt.transform(()=>pt),St=mt.transform(()=>ke),kt=ht.transform(()=>ke),ft=z.object({topic:ut,type:z.literal("update"),timestamp:da,payload:Se}),gt=z.object({topic:yt,type:z.literal("update"),timestamp:da,payload:Se}),ye=1000000000000000000n;function Pt(t){let i=BigInt(t),r=i<0n,a=r?-i:i,o=a/ye,s=(a%ye).toString().padStart(18,"0").replace(/0+$/,"");return T(`${r?"-":""}${o}${s===""?"":`.${s}`}`)}var Et=z.string().regex(/^-?\d+$/).transform(Pt),vt=z.object({symbol:z.string(),value:Qa,full_accuracy_value:Et,timestamp:da});function fe(t){return vt.extend({window_s:z.literal(t)}).transform(i=>({symbol:i.symbol,timestamp:i.timestamp,value:i.full_accuracy_value,windowSeconds:i.window_s}))}var ge=z.object({topic:St,type:z.literal("update"),timestamp:da,payload:fe(30)}),Pe=z.object({topic:kt,type:z.literal("update"),timestamp:da,payload:fe(60)}),rn=z.union([ge,Pe]),Tt=z.discriminatedUnion("topic",[ft,gt,ge,Pe]),It=z.object({symbol:z.string(),value:Qa,full_accuracy_value:Oa.nullish(),timestamp:da,received_at:da.nullish(),is_carried_forward:z.boolean().nullish()}).transform(({full_accuracy_value:t,received_at:i,is_carried_forward:r,value:a,...o})=>({...o,value:t??a,receivedAt:i,isCarriedForward:r})),Ct=z.object({timestamp:z.number(),value:Qa}),xt=z.object({symbol:z.string(),data:z.array(Ct)}),_t=z.literal("equity_prices"),bt="prices.equity.pyth",Ee=_t.transform(()=>bt),zt=z.object({topic:Ee,type:z.literal("update"),timestamp:da,payload:It}),Mt=z.object({topic:Ee,type:z.literal("subscribe"),timestamp:da,payload:xt}),wt=z.discriminatedUnion("type",[zt,Mt]),Ut=z.discriminatedUnion("type",[rt,at,ot,st]),an=z.discriminatedUnion("topic",[Ut,Tt,wt]);var At=z.object({gameId:z.number().int(),sportradarGameId:z.string().nullish(),slug:z.string().nullish(),leagueAbbreviation:z.string(),homeTeam:z.string().nullish(),awayTeam:z.string().nullish(),status:z.string(),live:z.boolean(),ended:z.boolean(),score:z.string(),period:z.string().nullish(),elapsed:z.string().nullish(),finishedTimestamp:ka.nullish(),finished_timestamp:ka.nullish(),turn:z.string().nullish()}).transform(({finishedTimestamp:t,finished_timestamp:i,...r})=>({...r,finishedAt:t??i})),pn=At.transform(t=>({topic:"sports",type:"sport_result",payload:t}));export{rt as CommentCreatedEventSchema,at as CommentRemovedEventSchema,Ut as CommentsEventSchema,ft as CryptoPricesBinanceEventSchema,gt as CryptoPricesChainlinkEventSchema,rn as CryptoPricesChainlinkTwapEventSchema,Pe as CryptoPricesChainlinkTwapSixtyEventSchema,ge as CryptoPricesChainlinkTwapThirtyEventSchema,Tt as CryptoPricesEventSchema,Bt as CustomMarketEventSchema,wt as EquityPricesEventSchema,Mt as EquityPricesSubscribeEventSchema,zt as EquityPricesUpdateEventSchema,ce as MarketBestBidAskEventSchema,re as MarketBookEventSchema,qt as MarketEventSchema,oe as MarketLastTradePriceEventSchema,ae as MarketPriceChangeEventSchema,le as MarketResolvedEventSchema,se as MarketTickSizeChangeEventSchema,de as NewMarketEventSchema,He as PerpsBalanceUpdateEventSchema,Ne as PerpsBboEventSchema,Le as PerpsBookEventSchema,$e as PerpsCandleEventSchema,Ge as PerpsDepositUpdateEventSchema,Ve as PerpsFillUpdateEventSchema,Qe as PerpsFundingUpdateEventSchema,Qt as PerpsMarketDataEventSchema,Xe as PerpsNotificationUpdateEventSchema,Gt as PerpsNotificationsResyncFrameSchema,Ye as PerpsOrderUpdateEventSchema,We as PerpsPortfolioUpdateEventSchema,Jt as PerpsSessionUpdateEventSchema,Fe as PerpsStatisticEventSchema,Ze as PerpsTickerEventSchema,tt as PerpsTpSlUpdateEventSchema,je as PerpsTradeEventSchema,Je as PerpsWithdrawalUpdateEventSchema,ot as ReactionCreatedEventSchema,st as ReactionRemovedEventSchema,an as RealtimeEventSchema,pn as SportsResultEventSchema,Ot as StandardMarketEventSchema,jt as UserEventSchema,be as UserOrderEventSchema,me as UserOrderEventType,ie as UserOrderStatus,Me as UserTradeEventSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|