@polymarket/bindings 0.4.0 → 0.6.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.
@@ -1,2 +1,2 @@
1
- import {a,F,e,t,s,r}from'../chunk-GJX3FYFG.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-GJX3FYFG.js';import {z as z$2,ma,Ka,aa,Ca,ka,Ha}from'../chunk-6TO35A2S.js';export{Ha as TagIdSchema}from'../chunk-6TO35A2S.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(z$2),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:ka.nullish(),questionId:Ca.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:aa.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Ka.nullish(),createdAt:ma.nullish(),queuedAt:ma.nullish(),scheduledFor:ma.nullish(),txTimestamp:ma.nullish()}),Re=z$1.array(O);var Ie=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:ma.nullish(),updatedAt:ma.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:ma.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:ma.nullish(),viewOnlyAcknowledgedAt:ma.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ee=z$1.object({createdAt:ma.nullish(),proxyWallet:aa.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:Ha,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()}),Ue=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(t).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})),Be=z$1.array(u),Ye=z$1.array(D),Ne=z$1.array(u);var U=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(u).nullish()}),Je=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||{}),Ze=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Re as ListMarketClarificationsResponseSchema,Ne as ListRelatedTagResourcesResponseSchema,Ye as ListRelatedTagsResponseSchema,Je as ListSeriesResponseSchema,Be as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ie as PaginationEnvelopeSchema,L as ProfileSchema,Ee as PublicProfileSchema,j as PublicProfileUserSchema,Ue as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,Ze as WalletTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {a,F,e,t,s,r}from'../chunk-UDKFL2IM.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-UDKFL2IM.js';import {A as A$1,qa,Oa,ea,Ga,oa,La}from'../chunk-AY4D74DC.js';export{La as TagIdSchema}from'../chunk-AY4D74DC.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(A$1),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:oa.nullish(),questionId:Ga.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:ea.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Oa.nullish(),createdAt:qa.nullish(),queuedAt:qa.nullish(),scheduledFor:qa.nullish(),txTimestamp:qa.nullish()}),Re=z$1.array(O);var Ie=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:qa.nullish(),updatedAt:qa.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:qa.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:qa.nullish(),viewOnlyAcknowledgedAt:qa.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ee=z$1.object({createdAt:qa.nullish(),proxyWallet:ea.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:La,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()}),Ue=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(t).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})),Be=z$1.array(u),Ye=z$1.array(D),Ne=z$1.array(u);var U=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(u).nullish()}),Je=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||{}),Ze=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Re as ListMarketClarificationsResponseSchema,Ne as ListRelatedTagResourcesResponseSchema,Ye as ListRelatedTagsResponseSchema,Je as ListSeriesResponseSchema,Be as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ie as PaginationEnvelopeSchema,L as ProfileSchema,Ee as PublicProfileSchema,j as PublicProfileUserSchema,Ue as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,Ze as WalletTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -43,7 +43,9 @@ type ClobRewardId = Tagged<string, 'ClobRewardId'>;
43
43
  type CommentId = Tagged<string, 'CommentId'>;
44
44
  type ComboActivityId = Tagged<string, 'ComboActivityId'>;
45
45
  type ComboConditionId = Tagged<HexString, 'ComboConditionId'>;
46
- type CtfConditionId = Tagged<HexString, 'CtfConditionId'>;
46
+ type ConditionId = Tagged<HexString, 'ConditionId'>;
47
+ /** @deprecated Use {@link ConditionId}. */
48
+ type CtfConditionId = ConditionId;
47
49
  type CollectionId = Tagged<string, 'CollectionId'>;
48
50
  type EventCreatorId = Tagged<string, 'EventCreatorId'>;
49
51
  type EventExternalPartnerMappingId = Tagged<number, 'EventExternalPartnerMappingId'>;
@@ -83,7 +85,9 @@ declare function toChatId(value: string): ChatId;
83
85
  declare function toClobRewardId(value: string): ClobRewardId;
84
86
  declare function toCommentId(value: string): CommentId;
85
87
  declare function toComboActivityId(value: string): ComboActivityId;
86
- declare function toCtfConditionId(value: string): CtfConditionId;
88
+ declare function toConditionId(value: string): ConditionId;
89
+ /** @deprecated Use {@link toConditionId}. */
90
+ declare const toCtfConditionId: typeof toConditionId;
87
91
  declare function toComboConditionId(value: string): ComboConditionId;
88
92
  declare function toCollectionId(value: string): CollectionId;
89
93
  declare function toEventCreatorId(value: string): EventCreatorId;
@@ -122,8 +126,13 @@ declare const ClobRewardIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewa
122
126
  declare const CommentIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
123
127
  declare const ComboActivityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboActivityId, string>>;
124
128
  declare const ComboConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
125
- declare const CtfConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
126
- declare const OptionalCtfConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
129
+ declare const ConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
130
+ /** @deprecated Use {@link ConditionIdSchema}. */
131
+ declare const CtfConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
132
+ declare const OptionalConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
133
+ /** @deprecated Use {@link OptionalConditionIdSchema}. */
134
+ declare const OptionalCtfConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
135
+ declare const ConditionIdResponseSchema: z.ZodCustom<ConditionId, ConditionId>;
127
136
  declare const EvmAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
128
137
  declare const EpochMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
129
138
  declare const EpochSecondsToMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
@@ -183,4 +192,4 @@ declare function emptyStringToNull(value: unknown): unknown;
183
192
  */
184
193
  declare const OptionalDecimalStringSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
185
194
 
186
- export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type CtfConditionId, CtfConditionIdSchema, 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, OptionalCtfConditionIdSchema, 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, 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, toCtfConditionId, 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 };
195
+ export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdResponseSchema, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, 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, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, 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, 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, toCtfConditionId, 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{U as ApiKeySchema,Pa as BaseUnitsSchema,V as BuilderCodeSchema,T as CategoryIdSchema,W as ClobRewardIdSchema,Y as ComboActivityIdSchema,Z as ComboConditionIdSchema,X as CommentIdSchema,a as CommentParentEntityType,va as CommentParentEntityTypeSchema,_ as CtfConditionIdSchema,ea as DateLikeToIsoDateTimeStringSchema,La as DecimalStringSchema,Na as DecimalishSchema,Ma as E6BigIntStringToDecimalStringSchema,fa as EpochLikeToIsoDateTimeStringSchema,ba as EpochMillisecondsSchema,da as EpochMillisecondsStringSchema,ia as EpochMillisecondsToIsoDateTimeStringSchema,ca as EpochSecondsToMillisecondsSchema,ka as EventIdSchema,aa as EvmAddressSchema,qa as ISOCalendarDateSchema,pa as ISODateStringSchema,ra as ImageOptimizationIdSchema,sa as InternalUserIdSchema,na as IsoCalendarDateStringSchema,ma as IsoDateTimeStringSchema,ta as MarketIdSchema,oa as MixedDateTimeStringSchema,ua as NotificationIdSchema,$ as OptionalCtfConditionIdSchema,ga as OptionalDateLikeToIsoDateTimeStringSchema,Ra as OptionalDecimalStringSchema,ha as OptionalEpochLikeToIsoDateTimeStringSchema,ja as OptionalEpochMillisecondsToIsoDateTimeStringSchema,wa as OrderIdSchema,b as OrderSide,xa as OrderSideSchema,c as OrderType,ya as OrderTypeSchema,Aa as PaginationCursorSchema,Ba as PositionIdSchema,Oa as PositiveDecimalNumberSchema,Ca as QuestionIdSchema,Da as ResolutionRequestIdSchema,Ea as RfqIdSchema,Fa as RfqQuoteIdSchema,Ga as RfqRequestorPublicIdSchema,Ha as TagIdSchema,la as TickSizeValueSchema,Ia as TokenIdSchema,d as TradeStatus,za as TradeStatusSchema,Ja as TransactionIdSchema,Ka as TxHashSchema,Qa as emptyStringToNull,h as toApiKey,S as toBaseUnits,e as toBestLineId,f as toBuilderCode,i as toCategoryId,j as toChatId,k as toClobRewardId,p as toCollectionId,m as toComboActivityId,o as toComboConditionId,l as toCommentId,n as toCtfConditionId,R as toDecimalString,s as toEpochMilliseconds,q as toEventCreatorId,r as toEventExternalPartnerMappingId,t as toEventId,u as toImageOptimizationId,v as toInternalUserId,w as toIsoCalendarDateString,x as toIsoDateTimeString,z as toMarketId,y as toMixedDateTimeString,A as toNotificationId,B as toOrderId,D as toPaginationCursor,C as toPartnerId,E as toPositionId,F as toQuestionId,G as toResolutionRequestId,H as toRfqId,I as toRfqQuoteId,J as toRfqRequestorPublicId,K as toSeriesId,L as toSportId,M as toTagId,N as toTeamId,O as toTemplateId,Q as toTokenId,P as toTransactionId,g as toUuid}from'./chunk-6TO35A2S.js';//# sourceMappingURL=index.js.map
1
+ export{V as ApiKeySchema,Ta as BaseUnitsSchema,W as BuilderCodeSchema,U as CategoryIdSchema,X as ClobRewardIdSchema,Z as ComboActivityIdSchema,_ as ComboConditionIdSchema,Y as CommentIdSchema,a as CommentParentEntityType,za as CommentParentEntityTypeSchema,da as ConditionIdResponseSchema,$ as ConditionIdSchema,aa as CtfConditionIdSchema,ia as DateLikeToIsoDateTimeStringSchema,Pa as DecimalStringSchema,Ra as DecimalishSchema,Qa as E6BigIntStringToDecimalStringSchema,ja as EpochLikeToIsoDateTimeStringSchema,fa as EpochMillisecondsSchema,ha as EpochMillisecondsStringSchema,ma as EpochMillisecondsToIsoDateTimeStringSchema,ga as EpochSecondsToMillisecondsSchema,oa as EventIdSchema,ea as EvmAddressSchema,ua as ISOCalendarDateSchema,ta as ISODateStringSchema,va as ImageOptimizationIdSchema,wa as InternalUserIdSchema,ra as IsoCalendarDateStringSchema,qa as IsoDateTimeStringSchema,xa as MarketIdSchema,sa as MixedDateTimeStringSchema,ya as NotificationIdSchema,ba as OptionalConditionIdSchema,ca as OptionalCtfConditionIdSchema,ka as OptionalDateLikeToIsoDateTimeStringSchema,Va as OptionalDecimalStringSchema,la as OptionalEpochLikeToIsoDateTimeStringSchema,na as OptionalEpochMillisecondsToIsoDateTimeStringSchema,Aa as OrderIdSchema,b as OrderSide,Ba as OrderSideSchema,c as OrderType,Ca as OrderTypeSchema,Ea as PaginationCursorSchema,Fa as PositionIdSchema,Sa as PositiveDecimalNumberSchema,Ga as QuestionIdSchema,Ha as ResolutionRequestIdSchema,Ia as RfqIdSchema,Ja as RfqQuoteIdSchema,Ka as RfqRequestorPublicIdSchema,La as TagIdSchema,pa as TickSizeValueSchema,Ma as TokenIdSchema,d as TradeStatus,Da as TradeStatusSchema,Na as TransactionIdSchema,Oa as TxHashSchema,Ua as emptyStringToNull,h as toApiKey,T as toBaseUnits,e as toBestLineId,f as toBuilderCode,i as toCategoryId,j as toChatId,k as toClobRewardId,q as toCollectionId,m as toComboActivityId,p as toComboConditionId,l as toCommentId,n as toConditionId,o as toCtfConditionId,S as toDecimalString,t as toEpochMilliseconds,r as toEventCreatorId,s as toEventExternalPartnerMappingId,u as toEventId,v as toImageOptimizationId,w as toInternalUserId,x as toIsoCalendarDateString,y as toIsoDateTimeString,A as toMarketId,z as toMixedDateTimeString,B as toNotificationId,C as toOrderId,E as toPaginationCursor,D as toPartnerId,F as toPositionId,G as toQuestionId,H as toResolutionRequestId,I as toRfqId,J as toRfqQuoteId,K as toRfqRequestorPublicId,L as toSeriesId,M as toSportId,N as toTagId,O as toTeamId,P as toTemplateId,R as toTokenId,Q as toTransactionId,g as toUuid}from'./chunk-AY4D74DC.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -26,6 +26,10 @@ type PerpsNotificationId = Tagged<string, 'PerpsNotificationId'>;
26
26
  * @experimental This API may change in a breaking way in any release, including patch releases.
27
27
  */
28
28
  type PerpsTradeId = Tagged<number, 'PerpsTradeId'>;
29
+ /**
30
+ * @experimental This API may change in a breaking way in any release, including patch releases.
31
+ */
32
+ type PerpsFundingPaymentId = Tagged<number, 'PerpsFundingPaymentId'>;
29
33
  /**
30
34
  * @experimental This API may change in a breaking way in any release, including patch releases.
31
35
  */
@@ -62,6 +66,10 @@ declare const PerpsNotificationIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<Per
62
66
  * @experimental This API may change in a breaking way in any release, including patch releases.
63
67
  */
64
68
  declare const PerpsTradeIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
69
+ /**
70
+ * @experimental This API may change in a breaking way in any release, including patch releases.
71
+ */
72
+ declare const PerpsFundingPaymentIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
65
73
  /**
66
74
  * @experimental This API may change in a breaking way in any release, including patch releases.
67
75
  */
@@ -1728,4 +1736,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
1728
1736
  coid?: string | undefined;
1729
1737
  }>>;
1730
1738
 
1731
- export { type PerpsNotification as $, type PerpsCredentials as A, PerpsDataResponseSchema as B, type PerpsDecimal as C, type PerpsDecimalInput as D, PerpsDecimalInputSchema as E, FetchPerpsOpenOrdersResponseSchema as F, type PerpsDepositAmount as G, PerpsDepositStatusSchema as H, PerpsEntityIdSchema as I, type PerpsFundingInterval as J, PerpsFundingIntervalSchema as K, ListPerpsFillsResponseSchema as L, MarkPerpsNotificationsReadResponseSchema as M, PerpsInstrumentCategorySchema as N, PerpsInstrumentIdSchema as O, type PerpsInstrumentId as P, PerpsInstrumentTypeSchema as Q, PerpsInternalTransferDirectionSchema as R, PerpsInternalTransferIdSchema as S, PerpsKlineInterval as T, PerpsKlineIntervalSchema as U, type PerpsLimitOrderCanceledNotification as V, PerpsLimitOrderCanceledNotificationSchema as W, type PerpsLiquidationWarningNotification as X, PerpsLiquidationWarningNotificationSchema as Y, PerpsMarginType as Z, PerpsMarginTypeSchema as _, type PerpsEntityId as a, type PerpsNotificationEntry as a0, PerpsNotificationEntrySchema as a1, type PerpsNotificationId as a2, PerpsNotificationIdSchema as a3, PerpsNotificationOrderType as a4, PerpsNotificationOrderTypeSchema as a5, PerpsNotificationSchema as a6, PerpsNotificationType as a7, PerpsNotificationTypeSchema as a8, type PerpsOrder as a9, PerpsTpSlScopeSchema as aA, PerpsTradeIdSchema as aB, type PerpsTxHash as aC, PerpsTxHashSchema as aD, type PerpsUpdateLeverageResult as aE, PerpsUpdateLeverageResultSchema as aF, type PerpsWithdrawalAmount as aG, PerpsWithdrawalIdSchema as aH, type PerpsWithdrawalStatus as aI, PerpsWithdrawalStatusSchema as aJ, decimalString as aK, perpsBaseUnits as aL, perpsDecimal as aM, type PerpsOrderId as aa, PerpsOrderIdSchema as ab, PerpsOrderSchema as ac, PerpsOrderStatus as ad, PerpsOrderStatusSchema as ae, PerpsOrderUpdateSchema as af, PerpsPnlInterval as ag, PerpsPnlIntervalSchema as ah, type PerpsPositionChangeNotification as ai, PerpsPositionChangeNotificationSchema as aj, type PerpsPositionClosedNotification as ak, PerpsPositionClosedNotificationSchema as al, type PerpsPositionLiquidatedNotification as am, PerpsPositionLiquidatedNotificationSchema as an, type PerpsPostOrderAck as ao, PerpsPostOrderAckSchema as ap, PerpsSideSchema as aq, PerpsSortDirection as ar, PerpsSortDirectionSchema as as, PerpsTimeInForce as at, PerpsTimeInForceSchema as au, PerpsTpSlKind as av, PerpsTpSlKindSchema as aw, type PerpsTpSlOrderFields as ax, PerpsTpSlOrderFieldsSchema as ay, PerpsTpSlScope as az, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsKnownWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, FetchPerpsUnreadNotificationsCountResponseSchema as l, ListPerpsNotificationsResponseSchema as m, type PerpsAccountFill as n, PerpsAccountFillSchema as o, PerpsAccountFillUpdateSchema as p, PerpsAssetSchema as q, type PerpsCancelAllOrdersResponse as r, PerpsCancelAllOrdersResponseSchema as s, type PerpsCancelOrderResult as t, PerpsCancelOrderResultSchema as u, type PerpsClientOrderId as v, PerpsClientOrderIdSchema as w, type PerpsCommandAck as x, PerpsCommandAckSchema as y, PerpsCommandStatusSchema as z };
1739
+ export { PerpsMarginType as $, PerpsCommandStatusSchema as A, type PerpsCredentials as B, PerpsDataResponseSchema as C, type PerpsDecimal as D, type PerpsDecimalInput as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsDecimalInputSchema as G, type PerpsDepositAmount as H, PerpsDepositStatusSchema as I, PerpsEntityIdSchema as J, type PerpsFundingInterval as K, ListPerpsFillsResponseSchema as L, MarkPerpsNotificationsReadResponseSchema as M, PerpsFundingIntervalSchema as N, PerpsFundingPaymentIdSchema as O, type PerpsInstrumentId as P, PerpsInstrumentCategorySchema as Q, PerpsInstrumentIdSchema as R, PerpsInstrumentTypeSchema as S, PerpsInternalTransferDirectionSchema as T, PerpsInternalTransferIdSchema as U, PerpsKlineInterval as V, PerpsKlineIntervalSchema as W, type PerpsLimitOrderCanceledNotification as X, PerpsLimitOrderCanceledNotificationSchema as Y, type PerpsLiquidationWarningNotification as Z, PerpsLiquidationWarningNotificationSchema as _, type PerpsEntityId as a, PerpsMarginTypeSchema as a0, type PerpsNotification as a1, type PerpsNotificationEntry as a2, PerpsNotificationEntrySchema as a3, type PerpsNotificationId as a4, PerpsNotificationIdSchema as a5, PerpsNotificationOrderType as a6, PerpsNotificationOrderTypeSchema as a7, PerpsNotificationSchema as a8, PerpsNotificationType as a9, PerpsTpSlOrderFieldsSchema as aA, PerpsTpSlScope as aB, PerpsTpSlScopeSchema as aC, PerpsTradeIdSchema as aD, type PerpsTxHash as aE, PerpsTxHashSchema as aF, type PerpsUpdateLeverageResult as aG, PerpsUpdateLeverageResultSchema as aH, type PerpsWithdrawalAmount as aI, PerpsWithdrawalIdSchema as aJ, type PerpsWithdrawalStatus as aK, PerpsWithdrawalStatusSchema as aL, decimalString as aM, perpsBaseUnits as aN, perpsDecimal as aO, PerpsNotificationTypeSchema as aa, type PerpsOrder as ab, type PerpsOrderId as ac, PerpsOrderIdSchema as ad, PerpsOrderSchema as ae, PerpsOrderStatus as af, PerpsOrderStatusSchema as ag, PerpsOrderUpdateSchema as ah, PerpsPnlInterval as ai, PerpsPnlIntervalSchema as aj, type PerpsPositionChangeNotification as ak, PerpsPositionChangeNotificationSchema as al, type PerpsPositionClosedNotification as am, PerpsPositionClosedNotificationSchema as an, type PerpsPositionLiquidatedNotification as ao, PerpsPositionLiquidatedNotificationSchema as ap, type PerpsPostOrderAck as aq, PerpsPostOrderAckSchema as ar, PerpsSideSchema as as, PerpsSortDirection as at, PerpsSortDirectionSchema as au, PerpsTimeInForce as av, PerpsTimeInForceSchema as aw, PerpsTpSlKind as ax, PerpsTpSlKindSchema as ay, type PerpsTpSlOrderFields as az, type PerpsFundingPaymentId as b, PerpsDepositStatus as c, type PerpsWithdrawalId as d, PerpsKnownWithdrawalStatus as e, type PerpsInternalTransferId as f, PerpsInternalTransferDirection as g, PerpsInstrumentType as h, PerpsInstrumentCategory as i, type PerpsTradeId as j, PerpsSide as k, FetchPerpsOrdersResponseSchema as l, FetchPerpsUnreadNotificationsCountResponseSchema as m, ListPerpsNotificationsResponseSchema as n, type PerpsAccountFill as o, PerpsAccountFillSchema as p, PerpsAccountFillUpdateSchema as q, PerpsAssetSchema as r, type PerpsCancelAllOrdersResponse as s, PerpsCancelAllOrdersResponseSchema as t, type PerpsCancelOrderResult as u, PerpsCancelOrderResultSchema as v, type PerpsClientOrderId as w, PerpsClientOrderIdSchema as x, type PerpsCommandAck as y, PerpsCommandAckSchema as z };
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
- import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-CTqTKxTR.js';
3
- export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, l as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsFillsResponseSchema, m as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, n as PerpsAccountFill, o as PerpsAccountFillSchema, p as PerpsAccountFillUpdateSchema, q as PerpsAssetSchema, r as PerpsCancelAllOrdersResponse, s as PerpsCancelAllOrdersResponseSchema, t as PerpsCancelOrderResult, u as PerpsCancelOrderResultSchema, v as PerpsClientOrderId, w as PerpsClientOrderIdSchema, x as PerpsCommandAck, y as PerpsCommandAckSchema, z as PerpsCommandStatusSchema, A as PerpsCredentials, B as PerpsDataResponseSchema, C as PerpsDecimal, D as PerpsDecimalInput, E as PerpsDecimalInputSchema, G as PerpsDepositAmount, H as PerpsDepositStatusSchema, I as PerpsEntityIdSchema, J as PerpsFundingInterval, K as PerpsFundingIntervalSchema, N as PerpsInstrumentCategorySchema, O as PerpsInstrumentIdSchema, Q as PerpsInstrumentTypeSchema, R as PerpsInternalTransferDirectionSchema, S as PerpsInternalTransferIdSchema, T as PerpsKlineInterval, U as PerpsKlineIntervalSchema, V as PerpsLimitOrderCanceledNotification, W as PerpsLimitOrderCanceledNotificationSchema, X as PerpsLiquidationWarningNotification, Y as PerpsLiquidationWarningNotificationSchema, Z as PerpsMarginType, _ as PerpsMarginTypeSchema, $ as PerpsNotification, a0 as PerpsNotificationEntry, a1 as PerpsNotificationEntrySchema, a2 as PerpsNotificationId, a3 as PerpsNotificationIdSchema, a4 as PerpsNotificationOrderType, a5 as PerpsNotificationOrderTypeSchema, a6 as PerpsNotificationSchema, a7 as PerpsNotificationType, a8 as PerpsNotificationTypeSchema, a9 as PerpsOrder, aa as PerpsOrderId, ab as PerpsOrderIdSchema, ac as PerpsOrderSchema, ad as PerpsOrderStatus, ae as PerpsOrderStatusSchema, af as PerpsOrderUpdateSchema, ag as PerpsPnlInterval, ah as PerpsPnlIntervalSchema, ai as PerpsPositionChangeNotification, aj as PerpsPositionChangeNotificationSchema, ak as PerpsPositionClosedNotification, al as PerpsPositionClosedNotificationSchema, am as PerpsPositionLiquidatedNotification, an as PerpsPositionLiquidatedNotificationSchema, ao as PerpsPostOrderAck, ap as PerpsPostOrderAckSchema, aq as PerpsSideSchema, ar as PerpsSortDirection, as as PerpsSortDirectionSchema, at as PerpsTimeInForce, au as PerpsTimeInForceSchema, av as PerpsTpSlKind, aw as PerpsTpSlKindSchema, ax as PerpsTpSlOrderFields, ay as PerpsTpSlOrderFieldsSchema, az as PerpsTpSlScope, aA as PerpsTpSlScopeSchema, aB as PerpsTradeIdSchema, aC as PerpsTxHash, aD as PerpsTxHashSchema, aE as PerpsUpdateLeverageResult, aF as PerpsUpdateLeverageResultSchema, aG as PerpsWithdrawalAmount, aH as PerpsWithdrawalIdSchema, aI as PerpsWithdrawalStatus, aJ as PerpsWithdrawalStatusSchema, aK as decimalString, aL as perpsBaseUnits, aM as perpsDecimal } from '../orders-CTqTKxTR.js';
2
+ import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsFundingPaymentId, c as PerpsDepositStatus, d as PerpsWithdrawalId, e as PerpsKnownWithdrawalStatus, f as PerpsInternalTransferId, g as PerpsInternalTransferDirection, h as PerpsInstrumentType, i as PerpsInstrumentCategory, j as PerpsTradeId, k as PerpsSide } from '../orders-BDfNkzav.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, l as FetchPerpsOrdersResponseSchema, m as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsFillsResponseSchema, n as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, o as PerpsAccountFill, p as PerpsAccountFillSchema, q as PerpsAccountFillUpdateSchema, r as PerpsAssetSchema, s as PerpsCancelAllOrdersResponse, t as PerpsCancelAllOrdersResponseSchema, u as PerpsCancelOrderResult, v as PerpsCancelOrderResultSchema, w as PerpsClientOrderId, x as PerpsClientOrderIdSchema, y as PerpsCommandAck, z as PerpsCommandAckSchema, A as PerpsCommandStatusSchema, B as PerpsCredentials, C as PerpsDataResponseSchema, D as PerpsDecimal, E as PerpsDecimalInput, G as PerpsDecimalInputSchema, H as PerpsDepositAmount, I as PerpsDepositStatusSchema, J as PerpsEntityIdSchema, K as PerpsFundingInterval, N as PerpsFundingIntervalSchema, O as PerpsFundingPaymentIdSchema, Q as PerpsInstrumentCategorySchema, R as PerpsInstrumentIdSchema, S as PerpsInstrumentTypeSchema, T as PerpsInternalTransferDirectionSchema, U as PerpsInternalTransferIdSchema, V as PerpsKlineInterval, W as PerpsKlineIntervalSchema, X as PerpsLimitOrderCanceledNotification, Y as PerpsLimitOrderCanceledNotificationSchema, Z as PerpsLiquidationWarningNotification, _ as PerpsLiquidationWarningNotificationSchema, $ as PerpsMarginType, a0 as PerpsMarginTypeSchema, a1 as PerpsNotification, a2 as PerpsNotificationEntry, a3 as PerpsNotificationEntrySchema, a4 as PerpsNotificationId, a5 as PerpsNotificationIdSchema, a6 as PerpsNotificationOrderType, a7 as PerpsNotificationOrderTypeSchema, a8 as PerpsNotificationSchema, a9 as PerpsNotificationType, aa as PerpsNotificationTypeSchema, ab as PerpsOrder, ac as PerpsOrderId, ad as PerpsOrderIdSchema, ae as PerpsOrderSchema, af as PerpsOrderStatus, ag as PerpsOrderStatusSchema, ah as PerpsOrderUpdateSchema, ai as PerpsPnlInterval, aj as PerpsPnlIntervalSchema, ak as PerpsPositionChangeNotification, al as PerpsPositionChangeNotificationSchema, am as PerpsPositionClosedNotification, an as PerpsPositionClosedNotificationSchema, ao as PerpsPositionLiquidatedNotification, ap as PerpsPositionLiquidatedNotificationSchema, aq as PerpsPostOrderAck, ar as PerpsPostOrderAckSchema, as as PerpsSideSchema, at as PerpsSortDirection, au as PerpsSortDirectionSchema, av as PerpsTimeInForce, aw as PerpsTimeInForceSchema, ax as PerpsTpSlKind, ay as PerpsTpSlKindSchema, az as PerpsTpSlOrderFields, aA as PerpsTpSlOrderFieldsSchema, aB as PerpsTpSlScope, aC as PerpsTpSlScopeSchema, aD as PerpsTradeIdSchema, aE as PerpsTxHash, aF as PerpsTxHashSchema, aG as PerpsUpdateLeverageResult, aH as PerpsUpdateLeverageResultSchema, aI as PerpsWithdrawalAmount, aJ as PerpsWithdrawalIdSchema, aK as PerpsWithdrawalStatus, aL as PerpsWithdrawalStatusSchema, aM as decimalString, aN as perpsBaseUnits, aO as perpsDecimal } from '../orders-BDfNkzav.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
@@ -389,6 +389,7 @@ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
389
389
  * @experimental This API may change in a breaking way in any release, including patch releases.
390
390
  */
391
391
  declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
392
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
392
393
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
393
394
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
394
395
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -396,6 +397,7 @@ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
396
397
  funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
397
398
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
398
399
  }, z.core.$strip>, z.ZodTransform<{
400
+ id: PerpsFundingPaymentId;
399
401
  instrumentId: PerpsInstrumentId;
400
402
  size: DecimalString;
401
403
  fundingRate: DecimalString;
@@ -403,6 +405,7 @@ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
403
405
  funding: DecimalString;
404
406
  timestamp: EpochMilliseconds;
405
407
  }, {
408
+ id: PerpsFundingPaymentId;
406
409
  instrument_id: PerpsInstrumentId;
407
410
  size: DecimalString;
408
411
  funding_rate: DecimalString;
@@ -419,6 +422,7 @@ type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchem
419
422
  */
420
423
  declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
421
424
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
425
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
422
426
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
423
427
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
424
428
  funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -426,6 +430,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
426
430
  funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
427
431
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
428
432
  }, z.core.$strip>, z.ZodTransform<{
433
+ id: PerpsFundingPaymentId;
429
434
  instrumentId: PerpsInstrumentId;
430
435
  size: DecimalString;
431
436
  fundingRate: DecimalString;
@@ -433,6 +438,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
433
438
  funding: DecimalString;
434
439
  timestamp: EpochMilliseconds;
435
440
  }, {
441
+ id: PerpsFundingPaymentId;
436
442
  instrument_id: PerpsInstrumentId;
437
443
  size: DecimalString;
438
444
  funding_rate: DecimalString;
@@ -446,6 +452,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
446
452
  * @experimental This API may change in a breaking way in any release, including patch releases.
447
453
  */
448
454
  declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
455
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
449
456
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
450
457
  sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
451
458
  fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -453,6 +460,7 @@ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
453
460
  fua: z.ZodString;
454
461
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
455
462
  }, z.core.$strip>, z.ZodTransform<{
463
+ id: PerpsFundingPaymentId;
456
464
  instrumentId: PerpsInstrumentId;
457
465
  size: DecimalString;
458
466
  fundingRate: DecimalString;
@@ -460,6 +468,7 @@ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
460
468
  funding: DecimalString;
461
469
  timestamp: EpochMilliseconds;
462
470
  }, {
471
+ id: PerpsFundingPaymentId;
463
472
  iid: PerpsInstrumentId;
464
473
  sz: DecimalString;
465
474
  fr: DecimalString;
@@ -615,6 +624,67 @@ declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
615
624
  error: z.ZodOptional<z.ZodString>;
616
625
  }, z.core.$strip>;
617
626
 
627
+ /**
628
+ * Acknowledgement for a Perps auto-cancel update. `deadline` echoes the armed
629
+ * cancellation time in Unix milliseconds, or `null` when the schedule was
630
+ * disarmed.
631
+ *
632
+ * @experimental This API may change in a breaking way in any release, including patch releases.
633
+ */
634
+ declare const PerpsAutoCancelResponseSchema: z.ZodObject<{
635
+ status: z.ZodLiteral<"ok">;
636
+ deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
637
+ }, z.core.$strip>;
638
+ /**
639
+ * @experimental This API may change in a breaking way in any release, including patch releases.
640
+ */
641
+ type PerpsAutoCancelResponse = z.infer<typeof PerpsAutoCancelResponseSchema>;
642
+ /**
643
+ * Current auto-cancel state for an account. `deadline` is `null` when no
644
+ * schedule is armed.
645
+ *
646
+ * @experimental This API may change in a breaking way in any release, including patch releases.
647
+ */
648
+ declare const PerpsAutoCancelStatusSchema: z.ZodPipe<z.ZodObject<{
649
+ deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
650
+ triggered: z.ZodNumber;
651
+ daily_limit: z.ZodNumber;
652
+ next_reset: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
653
+ }, z.core.$strip>, z.ZodTransform<{
654
+ deadline: EpochMilliseconds | null;
655
+ triggered: number;
656
+ dailyLimit: number;
657
+ nextReset: EpochMilliseconds;
658
+ }, {
659
+ deadline: EpochMilliseconds | null;
660
+ triggered: number;
661
+ daily_limit: number;
662
+ next_reset: EpochMilliseconds;
663
+ }>>;
664
+ /**
665
+ * @experimental This API may change in a breaking way in any release, including patch releases.
666
+ */
667
+ type PerpsAutoCancelStatus = z.infer<typeof PerpsAutoCancelStatusSchema>;
668
+ /**
669
+ * @experimental This API may change in a breaking way in any release, including patch releases.
670
+ */
671
+ declare const FetchPerpsAutoCancelStatusResponseSchema: z.ZodPipe<z.ZodObject<{
672
+ deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
673
+ triggered: z.ZodNumber;
674
+ daily_limit: z.ZodNumber;
675
+ next_reset: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
676
+ }, z.core.$strip>, z.ZodTransform<{
677
+ deadline: EpochMilliseconds | null;
678
+ triggered: number;
679
+ dailyLimit: number;
680
+ nextReset: EpochMilliseconds;
681
+ }, {
682
+ deadline: EpochMilliseconds | null;
683
+ triggered: number;
684
+ daily_limit: number;
685
+ next_reset: EpochMilliseconds;
686
+ }>>;
687
+
618
688
  /**
619
689
  * @experimental This API may change in a breaking way in any release, including patch releases.
620
690
  */
@@ -1754,4 +1824,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1754
1824
  more: z.ZodBoolean;
1755
1825
  }, z.core.$strip>;
1756
1826
 
1757
- export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalUpdateSchema };
1827
+ export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsAutoCancelStatusResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsAutoCancelResponse, PerpsAutoCancelResponseSchema, type PerpsAutoCancelStatus, PerpsAutoCancelStatusSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, PerpsFundingPaymentId, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalUpdateSchema };
@@ -1,2 +1,2 @@
1
- export{_ as FetchPerpsAccountConfigResponseSchema,R as FetchPerpsAccountStatsResponseSchema,P as FetchPerpsBalancesResponseSchema,Na as FetchPerpsCandlesResponseSchema,Ma as FetchPerpsFeesResponseSchema,Ia as FetchPerpsFundingHistoryResponseSchema,ra as FetchPerpsInstrumentsResponseSchema,nb as FetchPerpsOpenOrdersResponseSchema,mb as FetchPerpsOrdersResponseSchema,V as FetchPerpsPortfolioResponseSchema,xa as FetchPerpsStatisticsResponseSchema,ta as FetchPerpsTickersResponseSchema,Ga as FetchPerpsTradesResponseSchema,ab as FetchPerpsUnreadNotificationsCountResponseSchema,ia as ListPerpsDepositsResponseSchema,aa as ListPerpsEquityHistoryResponseSchema,qb as ListPerpsFillsResponseSchema,X as ListPerpsFundingPaymentsResponseSchema,$a as ListPerpsNotificationsResponseSchema,ca as ListPerpsPnlHistoryResponseSchema,la as ListPerpsWithdrawalsResponseSchema,bb as MarkPerpsNotificationsReadResponseSchema,Z as PerpsAccountConfigSchema,pb as PerpsAccountFillSchema,rb as PerpsAccountFillUpdateSchema,Y as PerpsAccountFundingPaymentEntrySchema,W as PerpsAccountFundingPaymentSchema,Q as PerpsAccountStatsSchema,I as PerpsAssetSchema,O as PerpsBalanceSchema,Ca as PerpsBboSchema,Da as PerpsBboUpdateSchema,za as PerpsBookLevelSchema,Aa as PerpsBookSchema,Ba as PerpsBookUpdateSchema,jb as PerpsCancelAllOrdersResponseSchema,ib as PerpsCancelOrderResultSchema,va as PerpsCandleSchema,c as PerpsClientOrderIdSchema,gb as PerpsCommandAckSchema,fb as PerpsCommandStatusSchema,fa as PerpsCreateProxyResponseSchema,ea as PerpsCredentialsResponseSchema,K as PerpsDataResponseSchema,j as PerpsDecimalInputSchema,ga as PerpsDeleteProxyResponseSchema,ha as PerpsDepositSchema,q as PerpsDepositStatus,C as PerpsDepositStatusSchema,ja as PerpsDepositUpdateSchema,h as PerpsEntityIdSchema,$ as PerpsEquityPointSchema,Ka as PerpsFeeScheduleEntrySchema,Ja as PerpsFeeTierSchema,La as PerpsFeesInfoSchema,i as PerpsFundingIntervalSchema,Ha as PerpsFundingRateSchema,l as PerpsInstrumentCategory,x as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,qa as PerpsInstrumentSchema,k as PerpsInstrumentType,w as PerpsInstrumentTypeSchema,s as PerpsInternalTransferDirection,E as PerpsInternalTransferDirectionSchema,g as PerpsInternalTransferIdSchema,oa as PerpsInternalTransferSchema,t as PerpsKlineInterval,F as PerpsKlineIntervalSchema,r as PerpsKnownWithdrawalStatus,Wa as PerpsLimitOrderCanceledNotificationSchema,Xa as PerpsLiquidationWarningNotificationSchema,T as PerpsMarginSummarySchema,Sa as PerpsMarginType,Ta as PerpsMarginTypeSchema,_a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Qa as PerpsNotificationOrderType,Ra as PerpsNotificationOrderTypeSchema,Za as PerpsNotificationSchema,Oa as PerpsNotificationType,Pa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,lb as PerpsOrderSchema,cb as PerpsOrderStatus,eb as PerpsOrderStatusSchema,ob as PerpsOrderUpdateSchema,u as PerpsPnlInterval,G as PerpsPnlIntervalSchema,ba as PerpsPnlPointSchema,S as PerpsPortfolioPositionSchema,U as PerpsPortfolioSchema,Ua as PerpsPositionChangeNotificationSchema,Va as PerpsPositionClosedNotificationSchema,Ya as PerpsPositionLiquidatedNotificationSchema,hb as PerpsPostOrderAckSchema,da as PerpsProxyKeySchema,Ea as PerpsPublicTradeSchema,Fa as PerpsPublicTradeUpdateSchema,pa as PerpsRiskTierSchema,m as PerpsSide,y as PerpsSideSchema,v as PerpsSortDirection,H as PerpsSortDirectionSchema,wa as PerpsStatisticSchema,ya as PerpsStatisticUpdateSchema,ua as PerpsTickerEntrySchema,sa as PerpsTickerSchema,n as PerpsTimeInForce,z as PerpsTimeInForceSchema,o as PerpsTpSlKind,A as PerpsTpSlKindSchema,db as PerpsTpSlOrderFieldsSchema,p as PerpsTpSlScope,B as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,J as PerpsTxHashSchema,kb as PerpsUpdateLeverageResultSchema,ma as PerpsWithdrawResponseSchema,f as PerpsWithdrawalIdSchema,ka as PerpsWithdrawalSchema,D as PerpsWithdrawalStatusSchema,na as PerpsWithdrawalUpdateSchema,N as decimalString,M as perpsBaseUnits,L as perpsDecimal}from'../chunk-BVFKAX4O.js';import'../chunk-6TO35A2S.js';//# sourceMappingURL=index.js.map
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-QX4CCP47.js';import {t,fa}from'../chunk-AY4D74DC.js';import {z}from'zod';var n=z.number().int().transform(e=>e===0?null:t(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:fa}).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
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"sources":["../../src/perps/auto-cancel.ts"],"names":["AutoCancelDeadlineSchema","z","value","toEpochMilliseconds","PerpsAutoCancelResponseSchema","PerpsAutoCancelStatusSchema","EpochMillisecondsSchema","status","FetchPerpsAutoCancelStatusResponseSchema"],"mappings":"8gIAIA,IAAMA,EAA2BC,CAAAA,CAC9B,MAAA,EAAO,CACP,GAAA,GACA,SAAA,CAAWC,CAAAA,EAAWA,CAAAA,GAAU,CAAA,CAAI,KAAOC,CAAAA,CAAoBD,CAAK,CAAE,CAAA,CAS5DE,GAAgCH,CAAAA,CAAE,MAAA,CAAO,CACpD,MAAA,CAAQA,EAAE,OAAA,CAAQ,IAAI,CAAA,CACtB,QAAA,CAAUD,CACZ,CAAC,CAAA,CAeYK,CAAAA,CAA8BJ,CAAAA,CACxC,OAAO,CACN,QAAA,CAAUD,CAAAA,CACV,SAAA,CAAWC,EAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,aAAY,CACxC,WAAA,CAAaA,CAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,WAAA,EAAY,CAC1C,WAAYK,EACd,CAAC,CAAA,CACA,SAAA,CAAWC,IAAY,CACtB,QAAA,CAAUA,CAAAA,CAAO,QAAA,CACjB,UAAWA,CAAAA,CAAO,SAAA,CAClB,UAAA,CAAYA,CAAAA,CAAO,YACnB,SAAA,CAAWA,CAAAA,CAAO,UACpB,CAAA,CAAE,EAUSC,EAAAA,CACXH","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport { EpochMillisecondsSchema, toEpochMilliseconds } from '../shared';\n\n// The API reports an unarmed schedule as `deadline: 0`.\nconst AutoCancelDeadlineSchema = z\n .number()\n .int()\n .transform((value) => (value === 0 ? null : toEpochMilliseconds(value)));\n\n/**\n * Acknowledgement for a Perps auto-cancel update. `deadline` echoes the armed\n * cancellation time in Unix milliseconds, or `null` when the schedule was\n * disarmed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelResponseSchema = z.object({\n status: z.literal('ok'),\n deadline: AutoCancelDeadlineSchema,\n});\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelResponse = z.infer<\n typeof PerpsAutoCancelResponseSchema\n>;\n\n/**\n * Current auto-cancel state for an account. `deadline` is `null` when no\n * schedule is armed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelStatusSchema = z\n .object({\n deadline: AutoCancelDeadlineSchema,\n triggered: z.number().int().nonnegative(),\n daily_limit: z.number().int().nonnegative(),\n next_reset: EpochMillisecondsSchema,\n })\n .transform((status) => ({\n deadline: status.deadline,\n triggered: status.triggered,\n dailyLimit: status.daily_limit,\n nextReset: status.next_reset,\n }));\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelStatus = z.infer<typeof PerpsAutoCancelStatusSchema>;\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const FetchPerpsAutoCancelStatusResponseSchema =\n PerpsAutoCancelStatusSchema;\n"]}
@@ -1,2 +1,2 @@
1
- import {aa,Ja,Ka}from'../chunk-6TO35A2S.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:aa.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:aa.optional(),paymentToken:aa.optional(),refundReceiver:aa.optional(),relay:aa.optional(),relayHub:aa.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:aa,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:aa,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:aa,signature:z.string().min(1),signatureParams:y,to:aa,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:aa,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:aa}),S=z.object({depositWalletParams:x,from:aa,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:aa,type:z.literal("WALLET")}),g=z.object({from:aa,metadata:z.string().optional(),to:aa,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Ka.nullish().transform(a=>a??null),transactionID:Ja}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Ka]).transform(a=>a===""?null:a),transaction_id:Ja}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {ea,Na,Oa}from'../chunk-AY4D74DC.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:ea.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:ea.optional(),paymentToken:ea.optional(),refundReceiver:ea.optional(),relay:ea.optional(),relayHub:ea.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:ea,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:ea,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:ea,signature:z.string().min(1),signatureParams:y,to:ea,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:ea,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:ea}),S=z.object({depositWalletParams:x,from:ea,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:ea,type:z.literal("WALLET")}),g=z.object({from:ea,metadata:z.string().optional(),to:ea,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Oa.nullish().transform(a=>a??null),transactionID:Na}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Oa]).transform(a=>a===""?null:a),transaction_id:Na}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
1
+ import { TokenId, DecimalString, EpochMilliseconds, ConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
2
2
  import { z } from 'zod';
3
- import { P as PerpsInstrumentId, T as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, aa as PerpsOrderId, j as PerpsSide, a2 as PerpsNotificationId, a7 as PerpsNotificationType, a4 as PerpsNotificationOrderType, Z as PerpsMarginType, at as PerpsTimeInForce, ad as PerpsOrderStatus, av as PerpsTpSlKind, az as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus } from '../orders-CTqTKxTR.js';
3
+ import { P as PerpsInstrumentId, V as PerpsKlineInterval, c as PerpsDepositStatus, j as PerpsTradeId, ac as PerpsOrderId, k as PerpsSide, b as PerpsFundingPaymentId, a4 as PerpsNotificationId, a9 as PerpsNotificationType, a6 as PerpsNotificationOrderType, $ as PerpsMarginType, av as PerpsTimeInForce, af as PerpsOrderStatus, ax as PerpsTpSlKind, aB as PerpsTpSlScope, d as PerpsWithdrawalId, e as PerpsKnownWithdrawalStatus } from '../orders-BDfNkzav.js';
4
4
  import * as _polymarket_types from '@polymarket/types';
5
5
  import { R as ReactionType } from '../comment-C-jBbhp7.js';
6
6
 
@@ -277,7 +277,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
277
277
  }, z.core.$strip>>>;
278
278
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
279
279
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
280
- condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
280
+ condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
281
281
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
282
282
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
283
283
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -300,7 +300,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
300
300
  title?: string | null | undefined;
301
301
  description?: string | null | undefined;
302
302
  } | null | undefined;
303
- conditionId: CtfConditionId | null | undefined;
303
+ conditionId: ConditionId | null | undefined;
304
304
  clobTokenIds: string[] | null | undefined;
305
305
  sportsMarketType: string | null | undefined;
306
306
  gameStartTime: IsoDateTimeString | null | undefined;
@@ -338,7 +338,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
338
338
  } | null | undefined;
339
339
  timestamp?: EpochMilliseconds | null | undefined;
340
340
  tags?: string[] | null | undefined;
341
- condition_id?: CtfConditionId | null | undefined;
341
+ condition_id?: ConditionId | null | undefined;
342
342
  active?: boolean | null | undefined;
343
343
  clob_token_ids?: string[] | null | undefined;
344
344
  sports_market_type?: string | null | undefined;
@@ -858,7 +858,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
858
858
  }, z.core.$strip>>>;
859
859
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
860
860
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
861
- condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
861
+ condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
862
862
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
863
863
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
864
864
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -881,7 +881,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
881
881
  title?: string | null | undefined;
882
882
  description?: string | null | undefined;
883
883
  } | null | undefined;
884
- conditionId: CtfConditionId | null | undefined;
884
+ conditionId: ConditionId | null | undefined;
885
885
  clobTokenIds: string[] | null | undefined;
886
886
  sportsMarketType: string | null | undefined;
887
887
  gameStartTime: IsoDateTimeString | null | undefined;
@@ -919,7 +919,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
919
919
  } | null | undefined;
920
920
  timestamp?: EpochMilliseconds | null | undefined;
921
921
  tags?: string[] | null | undefined;
922
- condition_id?: CtfConditionId | null | undefined;
922
+ condition_id?: ConditionId | null | undefined;
923
923
  active?: boolean | null | undefined;
924
924
  clob_token_ids?: string[] | null | undefined;
925
925
  sports_market_type?: string | null | undefined;
@@ -1200,7 +1200,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1200
1200
  }, z.core.$strip>>>;
1201
1201
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1202
1202
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1203
- condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
1203
+ condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
1204
1204
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1205
1205
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1206
1206
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1223,7 +1223,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1223
1223
  title?: string | null | undefined;
1224
1224
  description?: string | null | undefined;
1225
1225
  } | null | undefined;
1226
- conditionId: CtfConditionId | null | undefined;
1226
+ conditionId: ConditionId | null | undefined;
1227
1227
  clobTokenIds: string[] | null | undefined;
1228
1228
  sportsMarketType: string | null | undefined;
1229
1229
  gameStartTime: IsoDateTimeString | null | undefined;
@@ -1261,7 +1261,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1261
1261
  } | null | undefined;
1262
1262
  timestamp?: EpochMilliseconds | null | undefined;
1263
1263
  tags?: string[] | null | undefined;
1264
- condition_id?: CtfConditionId | null | undefined;
1264
+ condition_id?: ConditionId | null | undefined;
1265
1265
  active?: boolean | null | undefined;
1266
1266
  clob_token_ids?: string[] | null | undefined;
1267
1267
  sports_market_type?: string | null | undefined;
@@ -2775,6 +2775,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2775
2775
  sq: z.ZodNumber;
2776
2776
  ch: z.ZodLiteral<"funding">;
2777
2777
  data: z.ZodPipe<z.ZodObject<{
2778
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
2778
2779
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
2779
2780
  sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2780
2781
  fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -2782,6 +2783,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2782
2783
  fua: z.ZodString;
2783
2784
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2784
2785
  }, z.core.$strip>, z.ZodTransform<{
2786
+ id: PerpsFundingPaymentId;
2785
2787
  instrumentId: PerpsInstrumentId;
2786
2788
  size: DecimalString;
2787
2789
  fundingRate: DecimalString;
@@ -2789,6 +2791,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2789
2791
  funding: DecimalString;
2790
2792
  timestamp: EpochMilliseconds;
2791
2793
  }, {
2794
+ id: PerpsFundingPaymentId;
2792
2795
  iid: PerpsInstrumentId;
2793
2796
  sz: DecimalString;
2794
2797
  fr: DecimalString;
@@ -2802,6 +2805,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2802
2805
  timestamp: number;
2803
2806
  sequence: number;
2804
2807
  payload: {
2808
+ id: PerpsFundingPaymentId;
2805
2809
  instrumentId: PerpsInstrumentId;
2806
2810
  size: DecimalString;
2807
2811
  fundingRate: DecimalString;
@@ -2814,6 +2818,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2814
2818
  sq: number;
2815
2819
  ch: "funding";
2816
2820
  data: {
2821
+ id: PerpsFundingPaymentId;
2817
2822
  instrumentId: PerpsInstrumentId;
2818
2823
  size: DecimalString;
2819
2824
  fundingRate: DecimalString;
@@ -3732,6 +3737,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3732
3737
  sq: z.ZodNumber;
3733
3738
  ch: z.ZodLiteral<"funding">;
3734
3739
  data: z.ZodPipe<z.ZodObject<{
3740
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
3735
3741
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
3736
3742
  sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3737
3743
  fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -3739,6 +3745,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3739
3745
  fua: z.ZodString;
3740
3746
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3741
3747
  }, z.core.$strip>, z.ZodTransform<{
3748
+ id: PerpsFundingPaymentId;
3742
3749
  instrumentId: PerpsInstrumentId;
3743
3750
  size: DecimalString;
3744
3751
  fundingRate: DecimalString;
@@ -3746,6 +3753,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3746
3753
  funding: DecimalString;
3747
3754
  timestamp: EpochMilliseconds;
3748
3755
  }, {
3756
+ id: PerpsFundingPaymentId;
3749
3757
  iid: PerpsInstrumentId;
3750
3758
  sz: DecimalString;
3751
3759
  fr: DecimalString;
@@ -3759,6 +3767,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3759
3767
  timestamp: number;
3760
3768
  sequence: number;
3761
3769
  payload: {
3770
+ id: PerpsFundingPaymentId;
3762
3771
  instrumentId: PerpsInstrumentId;
3763
3772
  size: DecimalString;
3764
3773
  fundingRate: DecimalString;
@@ -3771,6 +3780,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3771
3780
  sq: number;
3772
3781
  ch: "funding";
3773
3782
  data: {
3783
+ id: PerpsFundingPaymentId;
3774
3784
  instrumentId: PerpsInstrumentId;
3775
3785
  size: DecimalString;
3776
3786
  fundingRate: DecimalString;