@polyester/sdk 0.36.0-devnet-20261119010940 → 0.36.0-devnet-20261119181946
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/CHANGELOG.md +13 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +23 -52
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
- package/dist/services/auth/account-signer-auth.js +10 -2
- package/dist/services/auth/account-signer-auth.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/changelog/changelog.schemas.d.ts +23 -18
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +6 -1
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +4 -3
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +4 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +64 -64
- package/dist/services/market-overview/market-overview.js +8 -1
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +8 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +8 -8
- package/dist/services/orders/orders-identifiers.schemas.js +2 -2
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +9 -9
- package/dist/services/orders/orders-modify.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
- package/dist/services/social-verification/social-verification.schemas.d.ts +2 -2
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +13 -13
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +25 -25
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/shared/connect-error-mapping.js +17 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/errors.d.ts +4 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +4 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/utils/connect-mfa-errors.d.ts +2 -2
- package/dist/utils/connect-mfa-errors.js +2 -2
- package/dist/utils/connect-mfa-errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeAvailabilityCodec,\n ChangelogChangeCategoryCodec,\n ChangelogEnvironmentCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `liveAt` is set for `ahead` only: when the change became available there. */\nconst ChangelogChangeExceptionSchema = v.object({\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n availability: enumLabelSchema(ChangelogChangeAvailabilityCodec.protoToOutput),\n liveAt: OptionalTimestampMsSchema,\n});\n\n/** `liveAt` is when the release went live there, `undefined` while it is pending. */\nconst ChangelogEnvironmentStatusSchema = v.object({\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n liveAt: OptionalTimestampMsSchema,\n});\n\n/**\n * `id` is the public base58 identifier, stable across environments. `environmentExceptions`\n * lists every environment where the change differs from its release's status; it is empty\n * outside release posts and when the change follows its release everywhere.\n */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n environmentExceptions: v.optional(v.array(ChangelogChangeExceptionSchema), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\n/** `surface` is the product area the section covers, `\"unspecified\"` when it spans several. */\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/**\n * `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.\n * A post can be republished to correct its copy or withdraw a change: `revision` starts at 1\n * and increases with each republication, and `updatedAt` is when the current revision was\n * published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.\n * A server that predates post revisions sends `revision` 0 and no `updatedAt`.\n *\n * A release post has `releaseVersion` (for example `\"0.92.9\"`), the same slug (`\"v0.92.9\"`) and\n * content in every environment, and is listed even where the release is still pending.\n * `environments` holds the release's status in devnet, testnet and mainnet, in that order, and\n * changes without a new revision. `deploymentGroupSlug` names the deployment group that brought\n * the release here, `undefined` while it is pending here. Posts that announce no single release\n * have no `releaseVersion`, no `deploymentGroupSlug` and empty `environments`.\n */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n updatedAt: OptionalTimestampMsSchema,\n revision: v.number(),\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n releaseVersion: v.optional(v.string()),\n environments: v.optional(v.array(ChangelogEnvironmentStatusSchema), []),\n deploymentGroupSlug: v.optional(v.string()),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, first publication time and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogDeploymentGroupsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogDeploymentGroupsInput = v.InferInput<\n typeof ListChangelogDeploymentGroupsInputSchema\n>;\n\nexport const GetChangelogDeploymentGroupInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogDeploymentGroupInput = v.InferInput<\n typeof GetChangelogDeploymentGroupInputSchema\n>;\n\n/** A published release post a deployment group brought. */\nconst ChangelogDeploymentGroupPostSchema = v.object({\n slug: v.string(),\n releaseVersion: v.string(),\n title: v.string(),\n publishedAt: TimestampMsSchema,\n revision: v.number(),\n updatedAt: OptionalTimestampMsSchema,\n});\n\n/**\n * One deployment to this environment that raised its release version. `slug` is the environment\n * and the group's own release, for example `\"testnet-v0.92.9\"`, and never changes. `versions`\n * lists every release the group brought, ascending; `posts` holds the published release posts of\n * those releases, so a release without a post has none. `previousReleaseVersion` is `undefined`\n * for the first group, and `releaseTag` when unknown.\n */\nexport const ChangelogDeploymentGroupSummarySchema = v.object({\n slug: v.string(),\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n occurredAt: TimestampMsSchema,\n releaseVersion: v.string(),\n releaseTag: v.optional(v.string()),\n previousReleaseVersion: v.optional(v.string()),\n versions: v.optional(v.array(v.string()), []),\n posts: v.optional(v.array(ChangelogDeploymentGroupPostSchema), []),\n});\n\nexport type ChangelogDeploymentGroupSummary = v.InferOutput<\n typeof ChangelogDeploymentGroupSummarySchema\n>;\n\nexport const ListChangelogDeploymentGroupsResultSchema = v.object({\n groups: v.optional(v.array(ChangelogDeploymentGroupSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogDeploymentGroupsResult = v.InferOutput<\n typeof ListChangelogDeploymentGroupsResultSchema\n>;\n\nconst ChangelogDeploymentGroupAttentionSchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n releaseVersion: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\nconst ChangelogDeploymentGroupHighlightSchema = v.object({\n postSlug: v.string(),\n releaseVersion: v.string(),\n /** Inline Markdown. */\n text: v.string(),\n});\n\n/**\n * A deployment group with `attention`, its breaking and action-required changes, and the\n * `highlights` of its release posts, both in ascending release order.\n */\nexport const ChangelogDeploymentGroupSchema = v.pipe(\n v.object({\n summary: ChangelogDeploymentGroupSummarySchema,\n attention: v.optional(v.array(ChangelogDeploymentGroupAttentionSchema), []),\n highlights: v.optional(v.array(ChangelogDeploymentGroupHighlightSchema), []),\n }),\n v.transform(({ summary, ...group }) => ({ ...summary, ...group })),\n);\n\nexport type ChangelogDeploymentGroup = v.InferOutput<typeof ChangelogDeploymentGroupSchema>;\n\nexport const GetChangelogDeploymentGroupResultSchema = v.object({\n group: ChangelogDeploymentGroupSchema,\n});\n"],"mappings":";;;;;;AAqBA,MAAM,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK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AE,QAAQ,GAAG,aAAa;CAAE,GAAG;CAAQ,GAAG;AAAM,EAAE,CACnE;AAEA,MAAM,0CAA0C,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO;CACnB,gBAAgB,EAAE,OAAO;;CAEzB,MAAM,EAAE,OAAO;AACnB,CAAC;;;;;AAMD,MAAa,iCAAiC,EAAE,KAC5C,EAAE,OAAO;CACL,SAAS;CACT,WAAW,EAAE,SAAS,EAAE,MAAM,uCAAuC,GAAG,CAAC,CAAC;CAC1E,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAC/E,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,GAAG,aAAa;CAAE,GAAG;CAAS,GAAG;AAAM,EAAE,CACrE;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC5D,OAAO,+BACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeAvailabilityCodec,\n ChangelogChangeCategoryCodec,\n ChangelogEnvironmentCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `liveAt` is set for `ahead` only: when the change became available there. */\nconst ChangelogChangeExceptionSchema = v.object({\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n availability: enumLabelSchema(ChangelogChangeAvailabilityCodec.protoToOutput),\n liveAt: OptionalTimestampMsSchema,\n});\n\n/** `liveAt` is when the release went live there, `undefined` while it is pending. */\nconst ChangelogEnvironmentStatusSchema = v.object({\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n liveAt: OptionalTimestampMsSchema,\n});\n\n/**\n * `id` is the public base58 identifier, stable across environments. `environmentExceptions`\n * lists every environment where the change differs from its release's status; it is empty\n * outside release posts and when the change follows its release everywhere.\n */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n environmentExceptions: v.optional(v.array(ChangelogChangeExceptionSchema), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\n/** `surface` is the product area the section covers, `\"unspecified\"` when it spans several. */\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/**\n * `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.\n * A post can be republished to correct its copy or withdraw a change: `revision` starts at 1\n * and increases with each republication, and `updatedAt` is when the current revision was\n * published (the first publication time for revision 1). `slug` never changes.\n *\n * `publishedAt` is the first publication time for posts that announce no single release. For a\n * release post it is when the release went live in this environment, or the first publication\n * time while the release is still pending here. It can change without a new revision, so don't\n * treat it as fixed.\n * A server that predates post revisions sends `revision` 0 and no `updatedAt`.\n *\n * A release post has `releaseVersion` (for example `\"0.92.9\"`), the same slug (`\"v0.92.9\"`) and\n * content in every environment, and is listed even where the release is still pending.\n * `environments` holds the release's status in devnet, testnet and mainnet, in that order, and\n * changes without a new revision. `deploymentGroupSlug` names the deployment group that brought\n * the release here, `undefined` while it is pending here. Posts that announce no single release\n * have no `releaseVersion`, no `deploymentGroupSlug` and empty `environments`.\n */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n updatedAt: OptionalTimestampMsSchema,\n revision: v.number(),\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n releaseVersion: v.optional(v.string()),\n environments: v.optional(v.array(ChangelogEnvironmentStatusSchema), []),\n deploymentGroupSlug: v.optional(v.string()),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, `publishedAt` and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogDeploymentGroupsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogDeploymentGroupsInput = v.InferInput<\n typeof ListChangelogDeploymentGroupsInputSchema\n>;\n\nexport const GetChangelogDeploymentGroupInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogDeploymentGroupInput = v.InferInput<\n typeof GetChangelogDeploymentGroupInputSchema\n>;\n\n/** A published release post a deployment group brought. */\nconst ChangelogDeploymentGroupPostSchema = v.object({\n slug: v.string(),\n releaseVersion: v.string(),\n title: v.string(),\n publishedAt: TimestampMsSchema,\n revision: v.number(),\n updatedAt: OptionalTimestampMsSchema,\n});\n\n/**\n * One deployment to this environment that raised its release version. `slug` is the environment\n * and the group's own release, for example `\"testnet-v0.92.9\"`, and never changes. `versions`\n * lists every release the group brought, ascending; `posts` holds the published release posts of\n * those releases, so a release without a post has none. `previousReleaseVersion` is `undefined`\n * for the first group, and `releaseTag` when unknown.\n */\nexport const ChangelogDeploymentGroupSummarySchema = v.object({\n slug: v.string(),\n environment: enumLabelSchema(ChangelogEnvironmentCodec.protoToOutput),\n occurredAt: TimestampMsSchema,\n releaseVersion: v.string(),\n releaseTag: v.optional(v.string()),\n previousReleaseVersion: v.optional(v.string()),\n versions: v.optional(v.array(v.string()), []),\n posts: v.optional(v.array(ChangelogDeploymentGroupPostSchema), []),\n});\n\nexport type ChangelogDeploymentGroupSummary = v.InferOutput<\n typeof ChangelogDeploymentGroupSummarySchema\n>;\n\nexport const ListChangelogDeploymentGroupsResultSchema = v.object({\n groups: v.optional(v.array(ChangelogDeploymentGroupSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogDeploymentGroupsResult = v.InferOutput<\n typeof ListChangelogDeploymentGroupsResultSchema\n>;\n\nconst ChangelogDeploymentGroupAttentionSchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n releaseVersion: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\nconst ChangelogDeploymentGroupHighlightSchema = v.object({\n postSlug: v.string(),\n releaseVersion: v.string(),\n /** Inline Markdown. */\n text: v.string(),\n});\n\n/**\n * A deployment group with `attention`, its breaking and action-required changes, and the\n * `highlights` of its release posts, both in ascending release order.\n */\nexport const ChangelogDeploymentGroupSchema = v.pipe(\n v.object({\n summary: ChangelogDeploymentGroupSummarySchema,\n attention: v.optional(v.array(ChangelogDeploymentGroupAttentionSchema), []),\n highlights: v.optional(v.array(ChangelogDeploymentGroupHighlightSchema), []),\n }),\n v.transform(({ summary, ...group }) => ({ ...summary, ...group })),\n);\n\nexport type ChangelogDeploymentGroup = v.InferOutput<typeof ChangelogDeploymentGroupSchema>;\n\nexport const GetChangelogDeploymentGroupResultSchema = v.object({\n group: ChangelogDeploymentGroupSchema,\n});\n"],"mappings":";;;;;;AAqBA,MAAM,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;AACxE,MAAM,kBAAkB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC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CACrD,UAAU,EAAE,OAAO;CACnB,gBAAgB,EAAE,OAAO;;CAEzB,MAAM,EAAE,OAAO;AACnB,CAAC;;;;;AAMD,MAAa,iCAAiC,EAAE,KAC5C,EAAE,OAAO;CACL,SAAS;CACT,WAAW,EAAE,SAAS,EAAE,MAAM,uCAAuC,GAAG,CAAC,CAAC;CAC1E,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAC/E,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,GAAG,aAAa;CAAE,GAAG;CAAS,GAAG;AAAM,EAAE,CACrE;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC5D,OAAO,+BACX,CAAC"}
|
|
@@ -427,7 +427,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
427
427
|
readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
428
428
|
readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
|
|
429
429
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
430
|
-
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
430
|
+
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "transfers" | "deposits" | "withdrawals" | "volume" | "tools" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "season_result">]>, undefined>, readonly []>;
|
|
431
431
|
}, undefined>;
|
|
432
432
|
/**
|
|
433
433
|
* One frozen season recap of a root account and all of its subaccounts. An absent USD value
|
|
@@ -15,7 +15,7 @@ type TimestampInit = {
|
|
|
15
15
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
16
16
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
17
17
|
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
18
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 200 | 100 |
|
|
18
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 200 | 100 | 500 | 1000 | 50, DepthTier>]>;
|
|
19
19
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
20
20
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
21
21
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
@@ -228,7 +228,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
|
228
228
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
229
229
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
230
230
|
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
231
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 |
|
|
231
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000>]>;
|
|
232
232
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
234
234
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -288,7 +288,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
288
288
|
}, undefined>, v.TransformAction<{
|
|
289
289
|
symbolId: number;
|
|
290
290
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
291
|
-
depth: 1 |
|
|
291
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
292
292
|
chain?: {
|
|
293
293
|
baseKeyframe?: {
|
|
294
294
|
tsSec: number;
|
|
@@ -348,7 +348,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
348
348
|
}, {
|
|
349
349
|
symbolId: number;
|
|
350
350
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
351
|
-
depth: 1 |
|
|
351
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 200 | 100 | 500 | 1000 | 50 | 5000;
|
|
352
352
|
chain: {
|
|
353
353
|
baseKeyframe: {
|
|
354
354
|
tsSec: number;
|
|
@@ -21,9 +21,10 @@ declare class InternalTransfersService {
|
|
|
21
21
|
* step-up is used, the legs that caused it carry their `errorCode` and the rest are
|
|
22
22
|
* `"not_moved"`. `"accepted"` means every leg is credited. A batch whose outcome is not known
|
|
23
23
|
* within the request is `"processing"` and completes on its own: read it with `getBatch` by
|
|
24
|
-
* its `requestId`, or retry with the same key and legs.
|
|
25
|
-
*
|
|
26
|
-
* one fresh step-up for the
|
|
24
|
+
* its `requestId`, or retry with the same key and legs. An MFA-elevated session (an MFA
|
|
25
|
+
* challenge completed in the last 30 minutes) covers the root owner moving funds between its
|
|
26
|
+
* own accounts or to allowlisted destinations; any other leg needs one fresh step-up for the
|
|
27
|
+
* whole batch.
|
|
27
28
|
*/
|
|
28
29
|
batchCreate(input: BatchCreateInternalTransfersInput, options?: PolyesterMutationOptions): Promise<BatchCreateInternalTransfersResult>;
|
|
29
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;cAoCa;;EASL,YAAA,YAAY,mBACZ,UAAU,gCACV,QAAQ;;;;EAaN,OACF,OAAO,6BACP,UAAU,2BACX,QAAQ
|
|
1
|
+
{"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;cAoCa;;EASL,YAAA,YAAY,mBACZ,UAAU,gCACV,QAAQ;;;;EAaN,OACF,OAAO,6BACP,UAAU,2BACX,QAAQ;;;;;;;;;;;;;EAuBL,YACF,OAAO,mCACP,UAAU,2BACX,QAAQ;;;;;;;EAsBL,SACF,OAAO,+BACP,UAAU,0BACX,QAAQ;;;;;;;;;EAiBL,IACF,OAAO,0BACP,UAAU,0BACX,QAAQ"}
|
|
@@ -41,9 +41,10 @@ var InternalTransfersService = class {
|
|
|
41
41
|
* step-up is used, the legs that caused it carry their `errorCode` and the rest are
|
|
42
42
|
* `"not_moved"`. `"accepted"` means every leg is credited. A batch whose outcome is not known
|
|
43
43
|
* within the request is `"processing"` and completes on its own: read it with `getBatch` by
|
|
44
|
-
* its `requestId`, or retry with the same key and legs.
|
|
45
|
-
*
|
|
46
|
-
* one fresh step-up for the
|
|
44
|
+
* its `requestId`, or retry with the same key and legs. An MFA-elevated session (an MFA
|
|
45
|
+
* challenge completed in the last 30 minutes) covers the root owner moving funds between its
|
|
46
|
+
* own accounts or to allowlisted destinations; any other leg needs one fresh step-up for the
|
|
47
|
+
* whole batch.
|
|
47
48
|
*/
|
|
48
49
|
async batchCreate(input, options) {
|
|
49
50
|
await this.#scales.ready();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema","#batchInputSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n type SubaccountResolver,\n resolveAccountScope,\n resolveAccountScopedInput,\n} from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n BatchCreateInternalTransfersResultSchema,\n createBatchCreateInternalTransfersInputSchema,\n type BatchCreateInternalTransfersInput,\n type BatchCreateInternalTransfersResult,\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n GetInternalTransferBatchInputSchema,\n GetInternalTransferInputSchema,\n GetInternalTransferResultSchema,\n type GetInternalTransferBatchInput,\n type GetInternalTransferInput,\n type GetInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates and reads authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n #batchInputSchema: ReturnType<typeof createBatchCreateInternalTransfersInputSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n this.#batchInputSchema = createBatchCreateInternalTransfersInputSchema(scales);\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n\n /**\n * Moves up to 500 transfers together under one idempotency key and one MFA check: every leg\n * is credited, or nothing moves. Every leg passes the same checks as `create` first; if one\n * fails, or a source cannot cover its legs, the batch is `\"refused\"`: nothing moves, no\n * step-up is used, the legs that caused it carry their `errorCode` and the rest are\n * `\"not_moved\"`. `\"accepted\"` means every leg is credited. A batch whose outcome is not known\n * within the request is `\"processing\"` and completes on its own: read it with `getBatch` by\n * its `requestId`, or retry with the same key and legs.
|
|
1
|
+
{"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema","#batchInputSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n type SubaccountResolver,\n resolveAccountScope,\n resolveAccountScopedInput,\n} from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n BatchCreateInternalTransfersResultSchema,\n createBatchCreateInternalTransfersInputSchema,\n type BatchCreateInternalTransfersInput,\n type BatchCreateInternalTransfersResult,\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n GetInternalTransferBatchInputSchema,\n GetInternalTransferInputSchema,\n GetInternalTransferResultSchema,\n type GetInternalTransferBatchInput,\n type GetInternalTransferInput,\n type GetInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates and reads authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n #batchInputSchema: ReturnType<typeof createBatchCreateInternalTransfersInputSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n this.#batchInputSchema = createBatchCreateInternalTransfersInputSchema(scales);\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n\n /**\n * Moves up to 500 transfers together under one idempotency key and one MFA check: every leg\n * is credited, or nothing moves. Every leg passes the same checks as `create` first; if one\n * fails, or a source cannot cover its legs, the batch is `\"refused\"`: nothing moves, no\n * step-up is used, the legs that caused it carry their `errorCode` and the rest are\n * `\"not_moved\"`. `\"accepted\"` means every leg is credited. A batch whose outcome is not known\n * within the request is `\"processing\"` and completes on its own: read it with `getBatch` by\n * its `requestId`, or retry with the same key and legs. An MFA-elevated session (an MFA\n * challenge completed in the last 30 minutes) covers the root owner moving funds between its\n * own accounts or to allowlisted destinations; any other leg needs one fresh step-up for the\n * whole batch.\n */\n async batchCreate(\n input: BatchCreateInternalTransfersInput,\n options?: PolyesterMutationOptions,\n ): Promise<BatchCreateInternalTransfersResult> {\n await this.#scales.ready();\n const legs = Array.isArray(input?.legs)\n ? input.legs.map((leg) => ({\n ...leg,\n account: resolveAccountScope(leg?.account, this.#resolver),\n }))\n : input?.legs;\n const request = parse(this.#batchInputSchema, { ...input, legs });\n const res = await this.#client.batchCreateInternalTransfers(\n request,\n toConnectCallOptions(options),\n );\n return parse(BatchCreateInternalTransfersResultSchema, res);\n }\n\n /**\n * Reads a batch's current status and every leg's state by the `requestId` `batchCreate`\n * returned, for example to follow a `\"processing\"` batch. The caller must be allowed to read\n * the transfers of every source account of the batch; any other batch is a\n * `ResourceNotFoundError`. Does not submit or retry the batch and needs no step-up.\n */\n async getBatch(\n input: GetInternalTransferBatchInput,\n options?: PolyesterRequestOptions,\n ): Promise<BatchCreateInternalTransfersResult> {\n const request = parse(GetInternalTransferBatchInputSchema, input);\n const res = await this.#client.getInternalTransferBatch(\n request,\n toConnectCallOptions(options),\n );\n return parse(BatchCreateInternalTransfersResultSchema, res);\n }\n\n /**\n * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or\n * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it\n * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getAccountFlow`,\n * whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible\n * transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.\n * Session JWT only; API keys are refused. Moves no money and needs no step-up.\n */\n async get(\n input: GetInternalTransferInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetInternalTransferResult> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetInternalTransferInputSchema, resolvedInput);\n const res = await this.#client.getInternalTransfer(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(GetInternalTransferResultSchema, res);\n }\n}\n"],"mappings":";;;;;;;;;;;AAoCA,IAAa,2BAAb,MAAsC;CAClC;CACA;CACA;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,QACF;EACE,KAAKA,UAAU,aAAaC,yBAA+B,WAAW,OAAO;EAC7E,KAAKC,YAAY;EACjB,KAAKC,UAAU;EACf,KAAKC,eAAe,wCAAwC,MAAM;EAClE,KAAKC,gBAAgB,yCAAyC;EAC9D,KAAKC,oBAAoB,8CAA8C,MAAM;CACjF;;;;CAKA,MAAM,OACF,OACA,SACqC;EACrC,MAAM,KAAKH,QAAQ,MAAM;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKD,S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