@databricks/sdk-instancepools 0.34.0 → 0.36.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 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v2/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB;;;;GAIG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,0BAA0B;IAC1B,IAAI,EAAE,MAAM;IACZ,+BAA+B;IAC/B,SAAS,EAAE,WAAW;IACtB;;;OAGG;IACH,kBAAkB,EAAE,oBAAoB;CAChC,CAAC;AAKX;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,UAAU,EAAE,YAAY;IACxB,+BAA+B;IAC/B,eAAe,EAAE,iBAAiB;IAClC;;;OAGG;IACH,wBAAwB,EAAE,0BAA0B;CAC5C,CAAC;AAKX;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,4CAA4C;IAC5C,WAAW,EAAE,aAAa;IAC1B,6CAA6C;IAC7C,YAAY,EAAE,cAAc;CACpB,CAAC;AAKX;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,mBAAmB,EAAE,qBAAqB;IAC1C,qDAAqD;IACrD,wBAAwB,EAAE,0BAA0B;CAC5C,CAAC;AAKX;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,6BAA6B,EAAE,+BAA+B;CACtD,CAAC;AAKX;;;;;;;GAOG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B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,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,uBAAuB,EAAE,CAAC,CAAC,oBAAoB;CAChD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/v2/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {z} from 'zod';\n\n/**\n * Availability type used for all subsequent nodes past the `first_on_demand` ones.\n *\n * Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AwsAvailability = {\n /** Use spot instances. */\n SPOT: 'SPOT',\n /** Use on-demand instances. */\n ON_DEMAND: 'ON_DEMAND',\n /**\n * Preferably use spot instances, but fall back to on-demand instances if spot instances cannot\n * be acquired (e.g., if AWS spot prices are too high).\n */\n SPOT_WITH_FALLBACK: 'SPOT_WITH_FALLBACK',\n} as const;\nexport type AwsAvailability =\n | (typeof AwsAvailability)[keyof typeof AwsAvailability]\n | (string & {});\n\n/**\n * Availability type used for all subsequent nodes past the `first_on_demand` ones.\n * Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AzureAvailability = {\n /** Use spot instances. */\n SPOT_AZURE: 'SPOT_AZURE',\n /** Use on-demand instances. */\n ON_DEMAND_AZURE: 'ON_DEMAND_AZURE',\n /**\n * Preferably use spot instances, but fall back to on-demand instances if spot instances cannot\n * be acquired (e.g., if Azure is out of Quota).\n */\n SPOT_WITH_FALLBACK_AZURE: 'SPOT_WITH_FALLBACK_AZURE',\n} as const;\nexport type AzureAvailability =\n | (typeof AzureAvailability)[keyof typeof AzureAvailability]\n | (string & {});\n\n/**\n * All Azure Disk types that <Databricks> supports.\n * See https://docs.microsoft.com/en-us/azure/storage/storage-about-disks-and-vhds-linux#types-of-disks\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AzureDiskVolumeType = {\n /** Premium storage tier, backed by SSDs. */\n PREMIUM_LRS: 'PREMIUM_LRS',\n /** Standard storage tier, backed by HDDs. */\n STANDARD_LRS: 'STANDARD_LRS',\n} as const;\nexport type AzureDiskVolumeType =\n | (typeof AzureDiskVolumeType)[keyof typeof AzureDiskVolumeType]\n | (string & {});\n\n/**\n * All EBS volume types that <Databricks> supports.\n * See https://aws.amazon.com/ebs/details/ for details.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const EbsVolumeType = {\n /** Provision extra storage using AWS gp2 EBS volumes. */\n GENERAL_PURPOSE_SSD: 'GENERAL_PURPOSE_SSD',\n /** Provision extra storage using AWS st1 volumes. */\n THROUGHPUT_OPTIMIZED_HDD: 'THROUGHPUT_OPTIMIZED_HDD',\n} as const;\nexport type EbsVolumeType =\n | (typeof EbsVolumeType)[keyof typeof EbsVolumeType]\n | (string & {});\n\n/**\n * This field determines whether the instance pool will contain preemptible\n * VMs, on-demand VMs, or preemptible VMs with a fallback to on-demand VMs if the former is unavailable.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const GcpAvailability = {\n PREEMPTIBLE_GCP: 'PREEMPTIBLE_GCP',\n ON_DEMAND_GCP: 'ON_DEMAND_GCP',\n PREEMPTIBLE_WITH_FALLBACK_GCP: 'PREEMPTIBLE_WITH_FALLBACK_GCP',\n} as const;\nexport type GcpAvailability =\n | (typeof GcpAvailability)[keyof typeof GcpAvailability]\n | (string & {});\n\n/**\n * The state of a Cluster. The current allowable state transitions are as follows:\n *\n * - ``ACTIVE`` -> ``STOPPED``\n * - ``ACTIVE`` -> ``DELETED``\n * - ``STOPPED`` -> ``ACTIVE``\n * - ``STOPPED`` -> ``DELETED``\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const InstancePoolState = {\n /** Indicates an instance pool is active for use. */\n ACTIVE: 'ACTIVE',\n /**\n * Indicates an instance pool has been stopped so no more clusters should be able to get instances\n * from the pool.\n */\n STOPPED: 'STOPPED',\n /** Indicates the instance pool has been deleted and should no longer exist. */\n DELETED: 'DELETED',\n} as const;\nexport type InstancePoolState =\n | (typeof InstancePoolState)[keyof typeof InstancePoolState]\n | (string & {});\n\nexport interface CreateInstancePoolRequest {\n /**\n * Pool name requested by the user. Pool name must be unique. Length must be between 1 and 100\n * characters.\n */\n instancePoolName?: string | undefined;\n /** Minimum number of idle instances to keep in the instance pool */\n minIdleInstances?: number | undefined;\n /**\n * Maximum number of outstanding instances to keep in the pool, including both instances used by\n * clusters and idle instances. Clusters that require further instance provisioning will fail during\n * upsize requests.\n */\n maxCapacity?: number | undefined;\n /**\n * Attributes related to instance pools running on Amazon Web Services.\n * If not specified at pool creation, a set of default values will be used.\n */\n awsAttributes?: InstancePoolAwsAttributes | undefined;\n /**\n * This field encodes, through a single value, the resources available to each of\n * the Spark nodes in this cluster. For example, the Spark nodes can be provisioned\n * and optimized for memory or compute intensive workloads. A list of available node\n * types can be retrieved by using the [clusters/listNodeTypes](https://docs.databricks.com/api/workspace/clusters/listnodetypes) API call.\n */\n nodeTypeId?: string | undefined;\n /**\n * Additional tags for pool resources. <Databricks> will tag all pool resources (e.g., AWS\n * instances and EBS volumes) with these tags in addition to `default_tags`. Notes:\n *\n * - Currently, <Databricks> allows at most 45 custom tags\n */\n customTags?: Record<string, string> | undefined;\n /**\n * Automatically terminates the extra instances in the pool cache after they are inactive for this\n * time in minutes if min_idle_instances requirement is already met. If not set, the extra pool\n * instances will be automatically terminated after a default timeout. If specified, the\n * threshold must be between 0 and 10000 minutes.\n * Users can also set this value to 0 to instantly remove idle instances from the cache if\n * min cache size could still hold.\n */\n idleInstanceAutoterminationMinutes?: number | undefined;\n /**\n * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire\n * additional disk space when its Spark workers are running low on disk space. In AWS, this\n * feature requires specific AWS permissions to function correctly - refer to the User Guide for\n * more details.\n */\n enableElasticDisk?: boolean | undefined;\n /** Defines the specification of the disks that will be attached to all spark containers. */\n diskSpec?: DiskSpec | undefined;\n /** Custom Docker Image BYOC */\n preloadedDockerImages?: DockerImage[] | undefined;\n /**\n * A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters started\n * with the preloaded Spark version will start faster. A list of available Spark versions\n * can be retrieved by using the [clusters/sparkVersions](https://docs.databricks.com/api/workspace/clusters/sparkversions) API call.\n */\n preloadedSparkVersions?: string[] | undefined;\n /**\n * Attributes related to instance pools running on Azure.\n * If not specified at pool creation, a set of default values will be used.\n */\n azureAttributes?: InstancePoolAzureAttributes | undefined;\n /**\n * Attributes related to instance pools running on Google Cloud Platform.\n * If not specified at pool creation, a set of default values will be used.\n */\n gcpAttributes?: InstancePoolGcpAttributes | undefined;\n /** Flexible node type configuration for the pool. */\n nodeTypeFlexibility?: NodeTypeFlexibility | undefined;\n /** If set, what the configurable throughput (in Mb/s) for the remote disk is. Currently only supported for GCP HYPERDISK_BALANCED types. */\n remoteDiskThroughput?: number | undefined;\n /** If set, what the total initial volume size (in GB) of the remote disks should be. Currently only supported for GCP HYPERDISK_BALANCED types. */\n totalInitialRemoteDiskSize?: number | undefined;\n}\n\nexport interface CreateInstancePoolResponse {\n /** The ID of the created instance pool. */\n instancePoolId?: string | undefined;\n}\n\nexport interface DeleteInstancePoolRequest {\n /** The instance pool to be terminated. */\n instancePoolId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteInstancePoolResponse {}\n\n/**\n * Describes the disks that are launched for each instance in the spark cluster.\n * For example, if the cluster has 3 instances, each instance is configured to launch\n * 2 disks, 100 GiB each, then <Databricks> will launch a total of 6 disks,\n * 100 GiB each, for this cluster.\n */\nexport interface DiskSpec {\n /** The type of disks that will be launched with this cluster. */\n diskType?: DiskType | undefined;\n /**\n * The number of disks launched for each instance:\n * - This feature is only enabled for supported node types.\n * - Users can choose up to the limit of the disks supported by the node type.\n * - For node types with no OS disk, at least one disk must be specified;\n * otherwise, cluster creation will fail.\n *\n * If disks are attached, <Databricks> will configure Spark to use only the disks for\n * scratch storage, because heterogenously sized scratch devices can lead to inefficient disk\n * utilization. If no disks are attached, <Databricks> will configure Spark to use\n * instance store disks.\n *\n * Note: If disks are specified, then the Spark configuration\n * `spark.local.dir` will be overridden.\n *\n * Disks will be mounted at:\n * - For AWS: `/ebs0`, `/ebs1`, and etc.\n * - For Azure: `/remote_volume0`, `/remote_volume1`, and etc.\n */\n diskCount?: number | undefined;\n /**\n * The size of each disk (in GiB) launched for each instance.\n * Values must fall into the supported range for a particular instance type.\n *\n * For AWS:\n * - General Purpose SSD: 100 - 4096 GiB\n * - Throughput Optimized HDD: 500 - 4096 GiB\n *\n * For Azure:\n * - Premium LRS (SSD): 1 - 1023 GiB\n * - Standard LRS (HDD): 1- 1023 GiB\n */\n diskSize?: number | undefined;\n diskIops?: number | undefined;\n diskThroughput?: number | undefined;\n}\n\n/** Describes the disk type. */\nexport interface DiskType {\n remoteVolumeType?:\n | {$case: 'ebsVolumeType'; ebsVolumeType: EbsVolumeType}\n | {$case: 'azureDiskVolumeType'; azureDiskVolumeType: AzureDiskVolumeType}\n | undefined;\n}\n\nexport interface DockerBasicAuth {\n /** Name of the user */\n username?: string | undefined;\n /** Password of the user */\n password?: string | undefined;\n}\n\nexport interface DockerImage {\n /** URL of the docker image. */\n url?: string | undefined;\n credsOneof?:\n | {\n $case: 'basicAuth';\n /** Basic auth with username and password */\n basicAuth: DockerBasicAuth;\n }\n | undefined;\n}\n\nexport interface EditInstancePoolRequest {\n /** Instance pool ID */\n instancePoolId?: string | undefined;\n /**\n * Pool name requested by the user. Pool name must be unique. Length must be between 1 and 100\n * characters.\n */\n instancePoolName?: string | undefined;\n /** Minimum number of idle instances to keep in the instance pool */\n minIdleInstances?: number | undefined;\n /**\n * Maximum number of outstanding instances to keep in the pool, including both instances used by\n * clusters and idle instances. Clusters that require further instance provisioning will fail during\n * upsize requests.\n */\n maxCapacity?: number | undefined;\n /**\n * Attributes related to instance pools running on Amazon Web Services.\n * If not specified at pool creation, a set of default values will be used.\n */\n awsAttributes?: InstancePoolAwsAttributes | undefined;\n /**\n * This field encodes, through a single value, the resources available to each of\n * the Spark nodes in this cluster. For example, the Spark nodes can be provisioned\n * and optimized for memory or compute intensive workloads. A list of available node\n * types can be retrieved by using the [clusters/listNodeTypes](https://docs.databricks.com/api/workspace/clusters/listnodetypes) API call.\n */\n nodeTypeId?: string | undefined;\n /**\n * Additional tags for pool resources. <Databricks> will tag all pool resources (e.g., AWS\n * instances and EBS volumes) with these tags in addition to `default_tags`. Notes:\n *\n * - Currently, <Databricks> allows at most 45 custom tags\n */\n customTags?: Record<string, string> | undefined;\n /**\n * Automatically terminates the extra instances in the pool cache after they are inactive for this\n * time in minutes if min_idle_instances requirement is already met. If not set, the extra pool\n * instances will be automatically terminated after a default timeout. If specified, the\n * threshold must be between 0 and 10000 minutes.\n * Users can also set this value to 0 to instantly remove idle instances from the cache if\n * min cache size could still hold.\n */\n idleInstanceAutoterminationMinutes?: number | undefined;\n /**\n * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire\n * additional disk space when its Spark workers are running low on disk space. In AWS, this\n * feature requires specific AWS permissions to function correctly - refer to the User Guide for\n * more details.\n */\n enableElasticDisk?: boolean | undefined;\n /** Defines the specification of the disks that will be attached to all spark containers. */\n diskSpec?: DiskSpec | undefined;\n /** Custom Docker Image BYOC */\n preloadedDockerImages?: DockerImage[] | undefined;\n /**\n * A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters started\n * with the preloaded Spark version will start faster. A list of available Spark versions\n * can be retrieved by using the [clusters/sparkVersions](https://docs.databricks.com/api/workspace/clusters/sparkversions) API call.\n */\n preloadedSparkVersions?: string[] | undefined;\n /**\n * Attributes related to instance pools running on Azure.\n * If not specified at pool creation, a set of default values will be used.\n */\n azureAttributes?: InstancePoolAzureAttributes | undefined;\n /**\n * Attributes related to instance pools running on Google Cloud Platform.\n * If not specified at pool creation, a set of default values will be used.\n */\n gcpAttributes?: InstancePoolGcpAttributes | undefined;\n /** Flexible node type configuration for the pool. */\n nodeTypeFlexibility?: NodeTypeFlexibility | undefined;\n /** If set, what the configurable throughput (in Mb/s) for the remote disk is. Currently only supported for GCP HYPERDISK_BALANCED types. */\n remoteDiskThroughput?: number | undefined;\n /** If set, what the total initial volume size (in GB) of the remote disks should be. Currently only supported for GCP HYPERDISK_BALANCED types. */\n totalInitialRemoteDiskSize?: number | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface EditInstancePoolResponse {}\n\nexport interface GetInstancePoolRequest {\n /** The canonical unique identifier for the instance pool. */\n instancePoolId?: string | undefined;\n}\n\nexport interface GetInstancePoolResponse {\n /** Usage statistics about the instance pool. */\n stats?: InstancePoolStats | undefined;\n /** Status of failed pending instances in the pool. */\n status?: InstancePoolStatus | undefined;\n /** Canonical unique identifier for the pool. */\n instancePoolId?: string | undefined;\n /**\n * Tags that are added by <Databricks> regardless of any ``custom_tags``, including:\n *\n * - Vendor: <Databricks>\n *\n * - InstancePoolCreator: <user_id_of_creator>\n *\n * - InstancePoolName: <name_of_pool>\n *\n * - InstancePoolId: <id_of_pool>\n */\n defaultTags?: Record<string, string> | undefined;\n /** Current state of the instance pool. */\n state?: InstancePoolState | undefined;\n /**\n * Pool name requested by the user. Pool name must be unique. Length must be between 1 and 100\n * characters.\n */\n instancePoolName?: string | undefined;\n /** Minimum number of idle instances to keep in the instance pool */\n minIdleInstances?: number | undefined;\n /**\n * Maximum number of outstanding instances to keep in the pool, including both instances used by\n * clusters and idle instances. Clusters that require further instance provisioning will fail during\n * upsize requests.\n */\n maxCapacity?: number | undefined;\n /**\n * Attributes related to instance pools running on Amazon Web Services.\n * If not specified at pool creation, a set of default values will be used.\n */\n awsAttributes?: InstancePoolAwsAttributes | undefined;\n /**\n * This field encodes, through a single value, the resources available to each of\n * the Spark nodes in this cluster. For example, the Spark nodes can be provisioned\n * and optimized for memory or compute intensive workloads. A list of available node\n * types can be retrieved by using the [clusters/listNodeTypes](https://docs.databricks.com/api/workspace/clusters/listnodetypes) API call.\n */\n nodeTypeId?: string | undefined;\n /**\n * Additional tags for pool resources. <Databricks> will tag all pool resources (e.g., AWS\n * instances and EBS volumes) with these tags in addition to `default_tags`. Notes:\n *\n * - Currently, <Databricks> allows at most 45 custom tags\n */\n customTags?: Record<string, string> | undefined;\n /**\n * Automatically terminates the extra instances in the pool cache after they are inactive for this\n * time in minutes if min_idle_instances requirement is already met. If not set, the extra pool\n * instances will be automatically terminated after a default timeout. If specified, the\n * threshold must be between 0 and 10000 minutes.\n * Users can also set this value to 0 to instantly remove idle instances from the cache if\n * min cache size could still hold.\n */\n idleInstanceAutoterminationMinutes?: number | undefined;\n /**\n * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire\n * additional disk space when its Spark workers are running low on disk space. In AWS, this\n * feature requires specific AWS permissions to function correctly - refer to the User Guide for\n * more details.\n */\n enableElasticDisk?: boolean | undefined;\n /** Defines the specification of the disks that will be attached to all spark containers. */\n diskSpec?: DiskSpec | undefined;\n /** Custom Docker Image BYOC */\n preloadedDockerImages?: DockerImage[] | undefined;\n /**\n * A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters started\n * with the preloaded Spark version will start faster. A list of available Spark versions\n * can be retrieved by using the [clusters/sparkVersions](https://docs.databricks.com/api/workspace/clusters/sparkversions) API call.\n */\n preloadedSparkVersions?: string[] | undefined;\n /**\n * Attributes related to instance pools running on Azure.\n * If not specified at pool creation, a set of default values will be used.\n */\n azureAttributes?: InstancePoolAzureAttributes | undefined;\n /**\n * Attributes related to instance pools running on Google Cloud Platform.\n * If not specified at pool creation, a set of default values will be used.\n */\n gcpAttributes?: InstancePoolGcpAttributes | undefined;\n /** Flexible node type configuration for the pool. */\n nodeTypeFlexibility?: NodeTypeFlexibility | undefined;\n /** If set, what the configurable throughput (in Mb/s) for the remote disk is. Currently only supported for GCP HYPERDISK_BALANCED types. */\n remoteDiskThroughput?: number | undefined;\n /** If set, what the total initial volume size (in GB) of the remote disks should be. Currently only supported for GCP HYPERDISK_BALANCED types. */\n totalInitialRemoteDiskSize?: number | undefined;\n}\n\nexport interface InstancePoolAndStats {\n /** Usage statistics about the instance pool. */\n stats?: InstancePoolStats | undefined;\n /** Status of failed pending instances in the pool. */\n status?: InstancePoolStatus | undefined;\n /** Canonical unique identifier for the pool. */\n instancePoolId?: string | undefined;\n /**\n * Tags that are added by <Databricks> regardless of any ``custom_tags``, including:\n *\n * - Vendor: <Databricks>\n *\n * - InstancePoolCreator: <user_id_of_creator>\n *\n * - InstancePoolName: <name_of_pool>\n *\n * - InstancePoolId: <id_of_pool>\n */\n defaultTags?: Record<string, string> | undefined;\n /** Current state of the instance pool. */\n state?: InstancePoolState | undefined;\n /**\n * Pool name requested by the user. Pool name must be unique. Length must be between 1 and 100\n * characters.\n */\n instancePoolName?: string | undefined;\n /** Minimum number of idle instances to keep in the instance pool */\n minIdleInstances?: number | undefined;\n /**\n * Maximum number of outstanding instances to keep in the pool, including both instances used by\n * clusters and idle instances. Clusters that require further instance provisioning will fail during\n * upsize requests.\n */\n maxCapacity?: number | undefined;\n /**\n * Attributes related to instance pools running on Amazon Web Services.\n * If not specified at pool creation, a set of default values will be used.\n */\n awsAttributes?: InstancePoolAwsAttributes | undefined;\n /**\n * This field encodes, through a single value, the resources available to each of\n * the Spark nodes in this cluster. For example, the Spark nodes can be provisioned\n * and optimized for memory or compute intensive workloads. A list of available node\n * types can be retrieved by using the [clusters/listNodeTypes](https://docs.databricks.com/api/workspace/clusters/listnodetypes) API call.\n */\n nodeTypeId?: string | undefined;\n /**\n * Additional tags for pool resources. <Databricks> will tag all pool resources (e.g., AWS\n * instances and EBS volumes) with these tags in addition to `default_tags`. Notes:\n *\n * - Currently, <Databricks> allows at most 45 custom tags\n */\n customTags?: Record<string, string> | undefined;\n /**\n * Automatically terminates the extra instances in the pool cache after they are inactive for this\n * time in minutes if min_idle_instances requirement is already met. If not set, the extra pool\n * instances will be automatically terminated after a default timeout. If specified, the\n * threshold must be between 0 and 10000 minutes.\n * Users can also set this value to 0 to instantly remove idle instances from the cache if\n * min cache size could still hold.\n */\n idleInstanceAutoterminationMinutes?: number | undefined;\n /**\n * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire\n * additional disk space when its Spark workers are running low on disk space. In AWS, this\n * feature requires specific AWS permissions to function correctly - refer to the User Guide for\n * more details.\n */\n enableElasticDisk?: boolean | undefined;\n /** Defines the specification of the disks that will be attached to all spark containers. */\n diskSpec?: DiskSpec | undefined;\n /** Custom Docker Image BYOC */\n preloadedDockerImages?: DockerImage[] | undefined;\n /**\n * A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters started\n * with the preloaded Spark version will start faster. A list of available Spark versions\n * can be retrieved by using the [clusters/sparkVersions](https://docs.databricks.com/api/workspace/clusters/sparkversions) API call.\n */\n preloadedSparkVersions?: string[] | undefined;\n /**\n * Attributes related to instance pools running on Azure.\n * If not specified at pool creation, a set of default values will be used.\n */\n azureAttributes?: InstancePoolAzureAttributes | undefined;\n /**\n * Attributes related to instance pools running on Google Cloud Platform.\n * If not specified at pool creation, a set of default values will be used.\n */\n gcpAttributes?: InstancePoolGcpAttributes | undefined;\n /** Flexible node type configuration for the pool. */\n nodeTypeFlexibility?: NodeTypeFlexibility | undefined;\n /** If set, what the configurable throughput (in Mb/s) for the remote disk is. Currently only supported for GCP HYPERDISK_BALANCED types. */\n remoteDiskThroughput?: number | undefined;\n /** If set, what the total initial volume size (in GB) of the remote disks should be. Currently only supported for GCP HYPERDISK_BALANCED types. */\n totalInitialRemoteDiskSize?: number | undefined;\n}\n\n/** Attributes set during instance pool creation which are related to Amazon Web Services. */\nexport interface InstancePoolAwsAttributes {\n /** Availability type used for the spot nodes. */\n availability?: AwsAvailability | undefined;\n /**\n * Identifier for the availability zone/datacenter in which the cluster resides.\n * This string will be of a form like \"us-west-2a\". The provided availability\n * zone must be in the same region as the <Databricks> deployment. For example, \"us-west-2a\"\n * is not a valid zone id if the <Databricks> deployment resides in the \"us-east-1\" region.\n * This is an optional field at cluster creation, and if not specified, a default zone will be used.\n * The list of available zones as well as the default value can be found by using the\n * `List Zones` method.\n */\n zoneId?: string | undefined;\n /**\n * Calculates the bid price for AWS spot instances, as a percentage of the corresponding instance type's\n * on-demand price.\n * For example, if this field is set to 50, and the cluster needs a new `r3.xlarge` spot\n * instance, then the bid price is half of the price of\n * on-demand `r3.xlarge` instances. Similarly, if this field is set to 200, the bid price is twice\n * the price of on-demand `r3.xlarge` instances. If not specified, the default value is 100.\n * When spot instances are requested for this cluster, only spot instances whose bid price\n * percentage matches this field will be considered.\n * Note that, for safety, we enforce this field to be no more than 10000.\n */\n spotBidPricePercent?: number | undefined;\n /**\n * All AWS instances belonging to the instance pool will have this instance profile. If omitted, instances\n * will initially be launched with the workspace's default instance profile. If defined, clusters that use the\n * pool will inherit the instance profile, and must not specify their own instance profile on cluster creation or\n * update. If the pool does not specify an instance profile, clusters using the pool may specify any instance profile.\n * The instance profile must have previously been added to the <Databricks> environment by an account administrator.\n *\n * This feature may only be available to certain customer plans.\n */\n instanceProfileArn?: string | undefined;\n}\n\n/** Attributes set during instance pool creation which are related to Azure. */\nexport interface InstancePoolAzureAttributes {\n /** Availability type used for the spot nodes. */\n availability?: AzureAvailability | undefined;\n /**\n * With variable pricing, you have option to set a max price, in US dollars (USD)\n * For example, the value 2 would be a max price of $2.00 USD per hour.\n * If you set the max price to be -1, the VM won't be evicted based on price.\n * The price for the VM will be the current price for spot or the price for a standard VM,\n * which ever is less, as long as there is capacity and quota available.\n */\n spotBidMaxPrice?: number | undefined;\n /**\n * The Azure capacity reservation group resource ID to use for launching VMs in this pool.\n * When specified, VMs will be launched using the provided capacity reservation.\n *\n * NOTE: Omitting this field will clear any existing configured capacity reservation group on the pool.\n *\n * Capacity reservations can only be specified when the workspace uses injected vnet (i.e. customer defined vnet not\n * managed by databricks). Ensure the databricks-login-prod Enterprise Application is granted the following four permissions:\n * 1. Microsoft.Compute/capacityReservationGroups/read\n * 2. Microsoft.Compute/capacityReservationGroups/deploy/action\n * 3. Microsoft.Compute/capacityReservationGroups/capacityReservations/read\n * 4. Microsoft.Compute/capacityReservationGroups/capacityReservations/deploy/action\n *\n * Format: `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}`\n */\n capacityReservationGroup?: string | undefined;\n}\n\n/** Attributes set during instance pool creation which are related to GCP. */\nexport interface InstancePoolGcpAttributes {\n gcpAvailability?: GcpAvailability | undefined;\n /**\n * If provided, each node in the instance pool will have this number of local SSDs attached.\n * Each local SSD is 375GB in size. Refer to [GCP documentation](https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds)\n * for the supported number of local SSDs for each instance type.\n */\n localSsdCount?: number | undefined;\n /**\n * Identifier for the availability zone/datacenter in which the cluster resides.\n * This string will be of a form like \"us-west1-a\". The provided availability\n * zone must be in the same region as the <Databricks> workspace. For example, \"us-west1-a\"\n * is not a valid zone id if the <Databricks> workspace resides in the \"us-east1\" region.\n * This is an optional field at instance pool creation, and if not specified, a default zone will be used.\n *\n * This field can be one of the following:\n * - \"HA\" => High availability, spread nodes across availability zones for a <Databricks> deployment region\n * - A GCP availability zone => Pick One of the available zones for (machine type + region) from https://cloud.google.com/compute/docs/regions-zones (e.g. \"us-west1-a\").\n *\n * If empty, <Databricks> picks an availability zone to schedule the cluster on.\n */\n zoneId?: string | undefined;\n}\n\nexport interface InstancePoolStats {\n /** Number of active instances in the pool that are part of a cluster. */\n usedCount?: number | undefined;\n /** Number of active instances in the pool that are NOT part of a cluster. */\n idleCount?: number | undefined;\n /** Number of pending instances in the pool that are part of a cluster. */\n pendingUsedCount?: number | undefined;\n /** Number of pending instances in the pool that are NOT part of a cluster. */\n pendingIdleCount?: number | undefined;\n}\n\nexport interface InstancePoolStatus {\n /**\n * List of error messages for the failed pending instances.\n * The pending_instance_errors follows FIFO with maximum length of the min_idle of the pool.\n * The pending_instance_errors is emptied once the number of exiting available instances reaches\n * the min_idle of the pool.\n */\n pendingInstanceErrors?: PendingInstanceError[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ListInstancePoolsRequest {}\n\nexport interface ListInstancePoolsResponse {\n instancePools?: InstancePoolAndStats[] | undefined;\n}\n\n/** Configuration for flexible node types, allowing fallback to alternate node types during cluster launch and upscale. */\nexport interface NodeTypeFlexibility {\n /** A list of node type IDs to use as fallbacks when the primary node type is unavailable. */\n alternateNodeTypeIds?: string[] | undefined;\n}\n\n/** Error message of a failed pending instances */\nexport interface PendingInstanceError {\n instanceId?: string | undefined;\n message?: string | undefined;\n}\n\nexport const unmarshalCreateInstancePoolResponseSchema: z.ZodType<CreateInstancePoolResponse> =\n z\n .object({\n instance_pool_id: z.string().optional(),\n })\n .transform(d => ({\n instancePoolId: d.instance_pool_id,\n }));\n\nexport const unmarshalDeleteInstancePoolResponseSchema: z.ZodType<DeleteInstancePoolResponse> =\n z.object({});\n\nexport const unmarshalDiskSpecSchema: z.ZodType<DiskSpec> = z\n .object({\n disk_type: z.lazy(() => unmarshalDiskTypeSchema).optional(),\n disk_count: z.number().optional(),\n disk_size: z.number().optional(),\n disk_iops: z.number().optional(),\n disk_throughput: z.number().optional(),\n })\n .transform(d => ({\n diskType: d.disk_type,\n diskCount: d.disk_count,\n diskSize: d.disk_size,\n diskIops: d.disk_iops,\n diskThroughput: d.disk_throughput,\n }));\n\nexport const unmarshalDiskTypeSchema: z.ZodType<DiskType> = z\n .object({\n ebs_volume_type: z.string().optional(),\n azure_disk_volume_type: z.string().optional(),\n })\n .transform(d => ({\n remoteVolumeType:\n d.ebs_volume_type !== undefined\n ? {$case: 'ebsVolumeType' as const, ebsVolumeType: d.ebs_volume_type}\n : d.azure_disk_volume_type !== undefined\n ? {\n $case: 'azureDiskVolumeType' as const,\n azureDiskVolumeType: d.azure_disk_volume_type,\n }\n : undefined,\n }));\n\nexport const unmarshalDockerBasicAuthSchema: z.ZodType<DockerBasicAuth> = z\n .object({\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .transform(d => ({\n username: d.username,\n password: d.password,\n }));\n\nexport const unmarshalDockerImageSchema: z.ZodType<DockerImage> = z\n .object({\n url: z.string().optional(),\n basic_auth: z.lazy(() => unmarshalDockerBasicAuthSchema).optional(),\n })\n .transform(d => ({\n url: d.url,\n credsOneof:\n d.basic_auth !== undefined\n ? {$case: 'basicAuth' as const, basicAuth: d.basic_auth}\n : undefined,\n }));\n\nexport const unmarshalEditInstancePoolResponseSchema: z.ZodType<EditInstancePoolResponse> =\n z.object({});\n\nexport const unmarshalGetInstancePoolResponseSchema: z.ZodType<GetInstancePoolResponse> =\n z\n .object({\n stats: z.lazy(() => unmarshalInstancePoolStatsSchema).optional(),\n status: z.lazy(() => unmarshalInstancePoolStatusSchema).optional(),\n instance_pool_id: z.string().optional(),\n default_tags: z.record(z.string(), z.string()).optional(),\n state: z.string().optional(),\n instance_pool_name: z.string().optional(),\n min_idle_instances: z.number().optional(),\n max_capacity: z.number().optional(),\n aws_attributes: z\n .lazy(() => unmarshalInstancePoolAwsAttributesSchema)\n .optional(),\n node_type_id: z.string().optional(),\n custom_tags: z.record(z.string(), z.string()).optional(),\n idle_instance_autotermination_minutes: z.number().optional(),\n enable_elastic_disk: z.boolean().optional(),\n disk_spec: z.lazy(() => unmarshalDiskSpecSchema).optional(),\n preloaded_docker_images: z\n .array(z.lazy(() => unmarshalDockerImageSchema))\n .optional(),\n preloaded_spark_versions: z.array(z.string()).optional(),\n azure_attributes: z\n .lazy(() => unmarshalInstancePoolAzureAttributesSchema)\n .optional(),\n gcp_attributes: z\n .lazy(() => unmarshalInstancePoolGcpAttributesSchema)\n .optional(),\n node_type_flexibility: z\n .lazy(() => unmarshalNodeTypeFlexibilitySchema)\n .optional(),\n remote_disk_throughput: z.number().optional(),\n total_initial_remote_disk_size: z.number().optional(),\n })\n .transform(d => ({\n stats: d.stats,\n status: d.status,\n instancePoolId: d.instance_pool_id,\n defaultTags: d.default_tags,\n state: d.state,\n instancePoolName: d.instance_pool_name,\n minIdleInstances: d.min_idle_instances,\n maxCapacity: d.max_capacity,\n awsAttributes: d.aws_attributes,\n nodeTypeId: d.node_type_id,\n customTags: d.custom_tags,\n idleInstanceAutoterminationMinutes:\n d.idle_instance_autotermination_minutes,\n enableElasticDisk: d.enable_elastic_disk,\n diskSpec: d.disk_spec,\n preloadedDockerImages: d.preloaded_docker_images,\n preloadedSparkVersions: d.preloaded_spark_versions,\n azureAttributes: d.azure_attributes,\n gcpAttributes: d.gcp_attributes,\n nodeTypeFlexibility: d.node_type_flexibility,\n remoteDiskThroughput: d.remote_disk_throughput,\n totalInitialRemoteDiskSize: d.total_initial_remote_disk_size,\n }));\n\nexport const unmarshalInstancePoolAndStatsSchema: z.ZodType<InstancePoolAndStats> =\n z\n .object({\n stats: z.lazy(() => unmarshalInstancePoolStatsSchema).optional(),\n status: z.lazy(() => unmarshalInstancePoolStatusSchema).optional(),\n instance_pool_id: z.string().optional(),\n default_tags: z.record(z.string(), z.string()).optional(),\n state: z.string().optional(),\n instance_pool_name: z.string().optional(),\n min_idle_instances: z.number().optional(),\n max_capacity: z.number().optional(),\n aws_attributes: z\n .lazy(() => unmarshalInstancePoolAwsAttributesSchema)\n .optional(),\n node_type_id: z.string().optional(),\n custom_tags: z.record(z.string(), z.string()).optional(),\n idle_instance_autotermination_minutes: z.number().optional(),\n enable_elastic_disk: z.boolean().optional(),\n disk_spec: z.lazy(() => unmarshalDiskSpecSchema).optional(),\n preloaded_docker_images: z\n .array(z.lazy(() => unmarshalDockerImageSchema))\n .optional(),\n preloaded_spark_versions: z.array(z.string()).optional(),\n azure_attributes: z\n .lazy(() => unmarshalInstancePoolAzureAttributesSchema)\n .optional(),\n gcp_attributes: z\n .lazy(() => unmarshalInstancePoolGcpAttributesSchema)\n .optional(),\n node_type_flexibility: z\n .lazy(() => unmarshalNodeTypeFlexibilitySchema)\n .optional(),\n remote_disk_throughput: z.number().optional(),\n total_initial_remote_disk_size: z.number().optional(),\n })\n .transform(d => ({\n stats: d.stats,\n status: d.status,\n instancePoolId: d.instance_pool_id,\n defaultTags: d.default_tags,\n state: d.state,\n instancePoolName: d.instance_pool_name,\n minIdleInstances: d.min_idle_instances,\n maxCapacity: d.max_capacity,\n awsAttributes: d.aws_attributes,\n nodeTypeId: d.node_type_id,\n customTags: d.custom_tags,\n idleInstanceAutoterminationMinutes:\n d.idle_instance_autotermination_minutes,\n enableElasticDisk: d.enable_elastic_disk,\n diskSpec: d.disk_spec,\n preloadedDockerImages: d.preloaded_docker_images,\n preloadedSparkVersions: d.preloaded_spark_versions,\n azureAttributes: d.azure_attributes,\n gcpAttributes: d.gcp_attributes,\n nodeTypeFlexibility: d.node_type_flexibility,\n remoteDiskThroughput: d.remote_disk_throughput,\n totalInitialRemoteDiskSize: d.total_initial_remote_disk_size,\n }));\n\nexport const unmarshalInstancePoolAwsAttributesSchema: z.ZodType<InstancePoolAwsAttributes> =\n z\n .object({\n availability: z.string().optional(),\n zone_id: z.string().optional(),\n spot_bid_price_percent: z.number().optional(),\n instance_profile_arn: z.string().optional(),\n })\n .transform(d => ({\n availability: d.availability,\n zoneId: d.zone_id,\n spotBidPricePercent: d.spot_bid_price_percent,\n instanceProfileArn: d.instance_profile_arn,\n }));\n\nexport const unmarshalInstancePoolAzureAttributesSchema: z.ZodType<InstancePoolAzureAttributes> =\n z\n .object({\n availability: z.string().optional(),\n spot_bid_max_price: z.number().optional(),\n capacity_reservation_group: z.string().optional(),\n })\n .transform(d => ({\n availability: d.availability,\n spotBidMaxPrice: d.spot_bid_max_price,\n capacityReservationGroup: d.capacity_reservation_group,\n }));\n\nexport const unmarshalInstancePoolGcpAttributesSchema: z.ZodType<InstancePoolGcpAttributes> =\n z\n .object({\n gcp_availability: z.string().optional(),\n local_ssd_count: z.number().optional(),\n zone_id: z.string().optional(),\n })\n .transform(d => ({\n gcpAvailability: d.gcp_availability,\n localSsdCount: d.local_ssd_count,\n zoneId: d.zone_id,\n }));\n\nexport const unmarshalInstancePoolStatsSchema: z.ZodType<InstancePoolStats> = z\n .object({\n used_count: z.number().optional(),\n idle_count: z.number().optional(),\n pending_used_count: z.number().optional(),\n pending_idle_count: z.number().optional(),\n })\n .transform(d => ({\n usedCount: d.used_count,\n idleCount: d.idle_count,\n pendingUsedCount: d.pending_used_count,\n pendingIdleCount: d.pending_idle_count,\n }));\n\nexport const unmarshalInstancePoolStatusSchema: z.ZodType<InstancePoolStatus> =\n z\n .object({\n pending_instance_errors: z\n .array(z.lazy(() => unmarshalPendingInstanceErrorSchema))\n .optional(),\n })\n .transform(d => ({\n pendingInstanceErrors: d.pending_instance_errors,\n }));\n\nexport const unmarshalListInstancePoolsResponseSchema: z.ZodType<ListInstancePoolsResponse> =\n z\n .object({\n instance_pools: z\n .array(z.lazy(() => unmarshalInstancePoolAndStatsSchema))\n .optional(),\n })\n .transform(d => ({\n instancePools: d.instance_pools,\n }));\n\nexport const unmarshalNodeTypeFlexibilitySchema: z.ZodType<NodeTypeFlexibility> =\n z\n .object({\n alternate_node_type_ids: z.array(z.string()).optional(),\n })\n .transform(d => ({\n alternateNodeTypeIds: d.alternate_node_type_ids,\n }));\n\nexport const unmarshalPendingInstanceErrorSchema: z.ZodType<PendingInstanceError> =\n z\n .object({\n instance_id: z.string().optional(),\n message: z.string().optional(),\n })\n .transform(d => ({\n instanceId: d.instance_id,\n message: d.message,\n }));\n\nexport const marshalCreateInstancePoolRequestSchema: z.ZodType = z\n .object({\n instancePoolName: z.string().optional(),\n minIdleInstances: z.number().optional(),\n maxCapacity: z.number().optional(),\n awsAttributes: z\n .lazy(() => marshalInstancePoolAwsAttributesSchema)\n .optional(),\n nodeTypeId: z.string().optional(),\n customTags: z.record(z.string(), z.string()).optional(),\n idleInstanceAutoterminationMinutes: z.number().optional(),\n enableElasticDisk: z.boolean().optional(),\n diskSpec: z.lazy(() => marshalDiskSpecSchema).optional(),\n preloadedDockerImages: z\n .array(z.lazy(() => marshalDockerImageSchema))\n .optional(),\n preloadedSparkVersions: z.array(z.string()).optional(),\n azureAttributes: z\n .lazy(() => marshalInstancePoolAzureAttributesSchema)\n .optional(),\n gcpAttributes: z\n .lazy(() => marshalInstancePoolGcpAttributesSchema)\n .optional(),\n nodeTypeFlexibility: z\n .lazy(() => marshalNodeTypeFlexibilitySchema)\n .optional(),\n remoteDiskThroughput: z.number().optional(),\n totalInitialRemoteDiskSize: z.number().optional(),\n })\n .transform(d => ({\n instance_pool_name: d.instancePoolName,\n min_idle_instances: d.minIdleInstances,\n max_capacity: d.maxCapacity,\n aws_attributes: d.awsAttributes,\n node_type_id: d.nodeTypeId,\n custom_tags: d.customTags,\n idle_instance_autotermination_minutes: d.idleInstanceAutoterminationMinutes,\n enable_elastic_disk: d.enableElasticDisk,\n disk_spec: d.diskSpec,\n preloaded_docker_images: d.preloadedDockerImages,\n preloaded_spark_versions: d.preloadedSparkVersions,\n azure_attributes: d.azureAttributes,\n gcp_attributes: d.gcpAttributes,\n node_type_flexibility: d.nodeTypeFlexibility,\n remote_disk_throughput: d.remoteDiskThroughput,\n total_initial_remote_disk_size: d.totalInitialRemoteDiskSize,\n }));\n\nexport const marshalDeleteInstancePoolRequestSchema: z.ZodType = z\n .object({\n instancePoolId: z.string().optional(),\n })\n .transform(d => ({\n instance_pool_id: d.instancePoolId,\n }));\n\nexport const marshalDiskSpecSchema: z.ZodType = z\n .object({\n diskType: z.lazy(() => marshalDiskTypeSchema).optional(),\n diskCount: z.number().optional(),\n diskSize: z.number().optional(),\n diskIops: z.number().optional(),\n diskThroughput: z.number().optional(),\n })\n .transform(d => ({\n disk_type: d.diskType,\n disk_count: d.diskCount,\n disk_size: d.diskSize,\n disk_iops: d.diskIops,\n disk_throughput: d.diskThroughput,\n }));\n\nexport const marshalDiskTypeSchema: z.ZodType = z\n .object({\n remoteVolumeType: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('ebsVolumeType'),\n ebsVolumeType: z.string(),\n }),\n z.object({\n $case: z.literal('azureDiskVolumeType'),\n azureDiskVolumeType: z.string(),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n ...(d.remoteVolumeType?.$case === 'ebsVolumeType' && {\n ebs_volume_type: d.remoteVolumeType.ebsVolumeType,\n }),\n ...(d.remoteVolumeType?.$case === 'azureDiskVolumeType' && {\n azure_disk_volume_type: d.remoteVolumeType.azureDiskVolumeType,\n }),\n }));\n\nexport const marshalDockerBasicAuthSchema: z.ZodType = z\n .object({\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .transform(d => ({\n username: d.username,\n password: d.password,\n }));\n\nexport const marshalDockerImageSchema: z.ZodType = z\n .object({\n url: z.string().optional(),\n credsOneof: z\n .discriminatedUnion('$case', [\n z.object({\n $case: z.literal('basicAuth'),\n basicAuth: z.lazy(() => marshalDockerBasicAuthSchema),\n }),\n ])\n .optional(),\n })\n .transform(d => ({\n url: d.url,\n ...(d.credsOneof?.$case === 'basicAuth' && {\n basic_auth: d.credsOneof.basicAuth,\n }),\n }));\n\nexport const marshalEditInstancePoolRequestSchema: z.ZodType = z\n .object({\n instancePoolId: z.string().optional(),\n instancePoolName: z.string().optional(),\n minIdleInstances: z.number().optional(),\n maxCapacity: z.number().optional(),\n awsAttributes: z\n .lazy(() => marshalInstancePoolAwsAttributesSchema)\n .optional(),\n nodeTypeId: z.string().optional(),\n customTags: z.record(z.string(), z.string()).optional(),\n idleInstanceAutoterminationMinutes: z.number().optional(),\n enableElasticDisk: z.boolean().optional(),\n diskSpec: z.lazy(() => marshalDiskSpecSchema).optional(),\n preloadedDockerImages: z\n .array(z.lazy(() => marshalDockerImageSchema))\n .optional(),\n preloadedSparkVersions: z.array(z.string()).optional(),\n azureAttributes: z\n .lazy(() => marshalInstancePoolAzureAttributesSchema)\n .optional(),\n gcpAttributes: z\n .lazy(() => marshalInstancePoolGcpAttributesSchema)\n .optional(),\n nodeTypeFlexibility: z\n .lazy(() => marshalNodeTypeFlexibilitySchema)\n .optional(),\n remoteDiskThroughput: z.number().optional(),\n totalInitialRemoteDiskSize: z.number().optional(),\n })\n .transform(d => ({\n instance_pool_id: d.instancePoolId,\n instance_pool_name: d.instancePoolName,\n min_idle_instances: d.minIdleInstances,\n max_capacity: d.maxCapacity,\n aws_attributes: d.awsAttributes,\n node_type_id: d.nodeTypeId,\n custom_tags: d.customTags,\n idle_instance_autotermination_minutes: d.idleInstanceAutoterminationMinutes,\n enable_elastic_disk: d.enableElasticDisk,\n disk_spec: d.diskSpec,\n preloaded_docker_images: d.preloadedDockerImages,\n preloaded_spark_versions: d.preloadedSparkVersions,\n azure_attributes: d.azureAttributes,\n gcp_attributes: d.gcpAttributes,\n node_type_flexibility: d.nodeTypeFlexibility,\n remote_disk_throughput: d.remoteDiskThroughput,\n total_initial_remote_disk_size: d.totalInitialRemoteDiskSize,\n }));\n\nexport const marshalInstancePoolAwsAttributesSchema: z.ZodType = z\n .object({\n availability: z.string().optional(),\n zoneId: z.string().optional(),\n spotBidPricePercent: z.number().optional(),\n instanceProfileArn: z.string().optional(),\n })\n .transform(d => ({\n availability: d.availability,\n zone_id: d.zoneId,\n spot_bid_price_percent: d.spotBidPricePercent,\n instance_profile_arn: d.instanceProfileArn,\n }));\n\nexport const marshalInstancePoolAzureAttributesSchema: z.ZodType = z\n .object({\n availability: z.string().optional(),\n spotBidMaxPrice: z.number().optional(),\n capacityReservationGroup: z.string().optional(),\n })\n .transform(d => ({\n availability: d.availability,\n spot_bid_max_price: d.spotBidMaxPrice,\n capacity_reservation_group: d.capacityReservationGroup,\n }));\n\nexport const marshalInstancePoolGcpAttributesSchema: z.ZodType = z\n .object({\n gcpAvailability: z.string().optional(),\n localSsdCount: z.number().optional(),\n zoneId: z.string().optional(),\n })\n .transform(d => ({\n gcp_availability: d.gcpAvailability,\n local_ssd_count: d.localSsdCount,\n zone_id: d.zoneId,\n }));\n\nexport const marshalNodeTypeFlexibilitySchema: z.ZodType = z\n .object({\n alternateNodeTypeIds: z.array(z.string()).optional(),\n })\n .transform(d => ({\n alternate_node_type_ids: d.alternateNodeTypeIds,\n }));\n"],"mappings":";;;;;;;;AAUA,MAAa,kBAAkB;CAE7B,MAAM;CAEN,WAAW;CAKX,oBAAoB;CACrB;;;;;AAUD,MAAa,oBAAoB;CAE/B,YAAY;CAEZ,iBAAiB;CAKjB,0BAA0B;CAC3B;;;;;AAUD,MAAa,sBAAsB;CAEjC,aAAa;CAEb,cAAc;CACf;;;;;AAUD,MAAa,gBAAgB;CAE3B,qBAAqB;CAErB,0BAA0B;CAC3B;;;;;AAUD,MAAa,kBAAkB;CAC7B,iBAAiB;CACjB,eAAe;CACf,+BAA+B;CAChC;;;;;;;;;AAcD,MAAa,oBAAoB;CAE/B,QAAQ;CAKR,SAAS;CAET,SAAS;CACV;AAskBD,MAAa,4CACX,EACG,OAAO,EACN,kBAAkB,EAAE,QAAQ,CAAC,UAAU,EACxC,CAAC,CACD,WAAU,OAAM,EACf,gBAAgB,EAAE,kBACnB,EAAE;AAEP,MAAa,4CACX,EAAE,OAAO,EAAE,CAAC;AAEd,MAAa,0BAA+C,EACzD,OAAO;CACN,WAAW,EAAE,WAAW,wBAAwB,CAAC,UAAU;CAC3D,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,WAAW,EAAE;CACb,UAAU,EAAE;CACZ,UAAU,EAAE;CACZ,gBAAgB,EAAE;CACnB,EAAE;AAEL,MAAa,0BAA+C,EACzD,OAAO;CACN,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,wBAAwB,EAAE,QAAQ,CAAC,UAAU;CAC9C,CAAC,CACD,WAAU,OAAM,EACf,kBACE,EAAE,oBAAoB,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AAC,CAAC,UAAU,EACrD,CAAC,CACD,WAAU,OAAM,EACf,yBAAyB,EAAE,sBAC5B,EAAE"}
@@ -1,23 +1,25 @@
1
- import type { HttpClient } from '@databricks/sdk-core/http';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
1
+ import { HttpClient } from "@databricks/sdk-core/http";
2
+ import { ClientOptions } from "@databricks/sdk-options/client";
3
+
4
+ //#region src/v2/transport.d.ts
3
5
  /**
4
6
  * The configuration a client needs to issue requests, resolved from
5
7
  * {@link ClientOptions} and a configuration profile.
6
8
  */
7
- export interface ResolvedClientConfig {
8
- /** Host with any trailing slash removed. */
9
- host: string;
10
- /**
11
- * Default account ID for account-level paths that contain an account_id
12
- * segment. A request's own accountId still wins.
13
- */
14
- accountId?: string;
15
- /**
16
- * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
17
- */
18
- workspaceId?: string;
19
- /** HTTP client with authentication, and any configured timeout, applied. */
20
- httpClient: HttpClient;
9
+ interface ResolvedClientConfig {
10
+ /** Host with any trailing slash removed. */
11
+ host: string;
12
+ /**
13
+ * Default account ID for account-level paths that contain an account_id
14
+ * segment. A request's own accountId still wins.
15
+ */
16
+ accountId?: string;
17
+ /**
18
+ * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
19
+ */
20
+ workspaceId?: string;
21
+ /** HTTP client with authentication, and any configured timeout, applied. */
22
+ httpClient: HttpClient;
21
23
  }
22
24
  /**
23
25
  * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
@@ -29,5 +31,7 @@ export interface ResolvedClientConfig {
29
31
  *
30
32
  * @throws if host is neither provided nor present in the resolved profile.
31
33
  */
32
- export declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
34
+ declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
35
+ //#endregion
36
+ export { ResolvedClientConfig, resolveClientConfig };
33
37
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v2/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4EAA4E;IAC5E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CA4B/B"}
1
+ {"version":3,"file":"transport.d.ts","names":[],"sources":["../../src/v2/transport.ts"],"mappings":";;;;;;AAkBA;;UAAiB,oBAAA;EAgBO;EAdtB,IAAA;EAMA;;;;EAAA,SAAA;EAQsB;AAaxB;;EAhBE,WAAA;EAiBS;EAdT,UAAA,EAAY,UAAA;AAAA;;;;;;;;;;;iBAaQ,mBAAA,CACpB,OAAA,EAAS,aAAA,GACR,OAAA,CAAQ,oBAAA"}
@@ -1,74 +1,65 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { defaultCredentials } from '@databricks/sdk-auth/credentials';
3
- import { newFetchHttpClient } from '@databricks/sdk-core/http';
4
- import { resolve } from '@databricks/sdk-core/profiles';
1
+ import { defaultCredentials } from "@databricks/sdk-auth/credentials";
2
+ import { newFetchHttpClient } from "@databricks/sdk-core/http";
3
+ import { resolve } from "@databricks/sdk-core/profiles";
4
+
5
+ //#region src/v2/transport.ts
5
6
  /**
6
- * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
7
- *
8
- * A configuration profile is always resolved from the config file and
9
- * environment variables (per options.profileOptions); it supplies host,
10
- * accountId, workspaceId, and credentials wherever the caller did not set them
11
- * explicitly. Explicit options always take precedence.
12
- *
13
- * @throws if host is neither provided nor present in the resolved profile.
14
- */
15
- export async function resolveClientConfig(options) {
16
- const profile = await resolve(options.profileOptions);
17
- const host = options.host ?? profile.host;
18
- if (host === undefined) {
19
- throw new Error('Host is required.');
20
- }
21
- // The provided httpClient (or the default fetch client) is the base wire;
22
- // authentication and the optional timeout are layered on top of it. The
23
- // default credential chain reuses the profile resolved above so that the
24
- // same profileOptions govern host and authentication alike.
25
- const base = options.httpClient ?? newFetchHttpClient();
26
- const credentials = options.credentials ?? defaultCredentials({ profile });
27
- let httpClient = new AuthHttpClient(base, credentials);
28
- if (options.timeout !== undefined) {
29
- httpClient = new TimeoutHttpClient(httpClient, options.timeout);
30
- }
31
- const accountId = options.accountId ?? profile.accountId;
32
- const workspaceId = options.workspaceId ?? profile.workspaceId;
33
- return {
34
- host: host.replace(/\/$/, ''),
35
- httpClient,
36
- ...(accountId !== undefined && { accountId }),
37
- ...(workspaceId !== undefined && { workspaceId }),
38
- };
7
+ * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
8
+ *
9
+ * A configuration profile is always resolved from the config file and
10
+ * environment variables (per options.profileOptions); it supplies host,
11
+ * accountId, workspaceId, and credentials wherever the caller did not set them
12
+ * explicitly. Explicit options always take precedence.
13
+ *
14
+ * @throws if host is neither provided nor present in the resolved profile.
15
+ */
16
+ async function resolveClientConfig(options) {
17
+ const profile = await resolve(options.profileOptions);
18
+ const host = options.host ?? profile.host;
19
+ if (host === void 0) throw new Error("Host is required.");
20
+ let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile }));
21
+ if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
22
+ const accountId = options.accountId ?? profile.accountId;
23
+ const workspaceId = options.workspaceId ?? profile.workspaceId;
24
+ return {
25
+ host: host.replace(/\/$/, ""),
26
+ httpClient,
27
+ ...accountId !== void 0 && { accountId },
28
+ ...workspaceId !== void 0 && { workspaceId }
29
+ };
39
30
  }
40
31
  /** Wraps an HttpClient and adds authentication headers to requests. */
41
- class AuthHttpClient {
42
- base;
43
- credentials;
44
- constructor(base, credentials) {
45
- this.base = base;
46
- this.credentials = credentials;
47
- }
48
- async send(request) {
49
- const authHeaders = await this.credentials.authHeaders();
50
- // Do not modify the original request.
51
- const headers = new Headers(request.headers);
52
- for (const h of authHeaders) {
53
- headers.set(h.key, h.value);
54
- }
55
- return this.base.send({ ...request, headers });
56
- }
57
- }
32
+ var AuthHttpClient = class {
33
+ constructor(base, credentials) {
34
+ this.base = base;
35
+ this.credentials = credentials;
36
+ }
37
+ async send(request) {
38
+ const authHeaders = await this.credentials.authHeaders();
39
+ const headers = new Headers(request.headers);
40
+ for (const h of authHeaders) headers.set(h.key, h.value);
41
+ return this.base.send({
42
+ ...request,
43
+ headers
44
+ });
45
+ }
46
+ };
58
47
  /** Wraps an HttpClient and applies a default timeout to requests. */
59
- class TimeoutHttpClient {
60
- base;
61
- timeout;
62
- constructor(base, timeout) {
63
- this.base = base;
64
- this.timeout = timeout;
65
- }
66
- async send(request) {
67
- const timeoutSignal = AbortSignal.timeout(this.timeout);
68
- const signal = request.signal !== undefined
69
- ? AbortSignal.any([request.signal, timeoutSignal])
70
- : timeoutSignal;
71
- return this.base.send({ ...request, signal });
72
- }
73
- }
48
+ var TimeoutHttpClient = class {
49
+ constructor(base, timeout) {
50
+ this.base = base;
51
+ this.timeout = timeout;
52
+ }
53
+ async send(request) {
54
+ const timeoutSignal = AbortSignal.timeout(this.timeout);
55
+ const signal = request.signal !== void 0 ? AbortSignal.any([request.signal, timeoutSignal]) : timeoutSignal;
56
+ return this.base.send({
57
+ ...request,
58
+ signal
59
+ });
60
+ }
61
+ };
62
+
63
+ //#endregion
64
+ export { resolveClientConfig };
74
65
  //# sourceMappingURL=transport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/v2/transport.ts"],"names":[],"mappings":"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AAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"transport.js","names":[],"sources":["../../src/v2/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = options.host ?? profile.host;\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials = options.credentials ?? defaultCredentials({profile});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host: host.replace(/\\/$/, ''),\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.signal, timeoutSignal])\n : timeoutSignal;\n return this.base.send({...request, signal});\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,eAAsB,oBACpB,SAC+B;CAC/B,MAAM,UAAmB,MAAM,QAAQ,QAAQ,eAAe;CAE9D,MAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAStC,IAAI,aAAyB,IAAI,eAFpB,QAAQ,cAAc,oBAAoB,EACnC,QAAQ,eAAe,mBAAmB,EAAC,SAAQ,CAAC,CACN;AAClE,KAAI,QAAQ,YAAY,OACtB,cAAa,IAAI,kBAAkB,YAAY,QAAQ,QAAQ;CAGjE,MAAM,YAAY,QAAQ,aAAa,QAAQ;CAC/C,MAAM,cAAc,QAAQ,eAAe,QAAQ;AAEnD,QAAO;EACL,MAAM,KAAK,QAAQ,OAAO,GAAG;EAC7B;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;;AAIH,IAAM,iBAAN,MAA2C;CACzC,YACE,AAAiB,MACjB,AAAiB,aACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,cAAc,MAAM,KAAK,YAAY,aAAa;EAExD,MAAM,UAAU,IAAI,QAAQ,QAAQ,QAAQ;AAC5C,OAAK,MAAM,KAAK,YACd,SAAQ,IAAI,EAAE,KAAK,EAAE,MAAM;AAE7B,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAQ,CAAC;;;;AAKhD,IAAM,oBAAN,MAA8C;CAC5C,YACE,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,gBAAgB,YAAY,QAAQ,KAAK,QAAQ;EACvD,MAAM,SACJ,QAAQ,WAAW,SACf,YAAY,IAAI,CAAC,QAAQ,QAAQ,cAAc,CAAC,GAChD;AACN,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAO,CAAC"}
@@ -1,21 +1,25 @@
1
- import type { HttpClient, HttpRequest } from '@databricks/sdk-core/http';
2
- import type { Logger } from '@databricks/sdk-core/logger';
3
- import type { CallOptions } from '@databricks/sdk-options/call';
4
- import type { z } from 'zod';
5
- export interface HttpCallOptions {
6
- readonly request: HttpRequest;
7
- readonly httpClient: HttpClient;
8
- readonly logger: Logger;
1
+ import { Logger } from "@databricks/sdk-core/logger";
2
+ import { HttpClient, HttpRequest } from "@databricks/sdk-core/http";
3
+ import { z } from "zod";
4
+ import { CallOptions } from "@databricks/sdk-options/call";
5
+
6
+ //#region src/v2/utils.d.ts
7
+ interface HttpCallOptions {
8
+ readonly request: HttpRequest;
9
+ readonly httpClient: HttpClient;
10
+ readonly logger: Logger;
9
11
  }
10
12
  /**
11
13
  * Translates public CallOptions to the internal Options shape accepted by
12
14
  * execute(). Even though the shapes match today, this isolates the public
13
15
  * API from the executor's internal type so they can diverge.
14
16
  */
15
- export declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
16
- export declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
17
- export declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
18
- export declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
19
- export declare function marshalRequest(data: unknown, schema: z.ZodType): string;
20
- export declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
17
+ declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
18
+ declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
19
+ declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
20
+ declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
21
+ declare function marshalRequest(data: unknown, schema: z.ZodType): string;
22
+ declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
23
+ //#endregion
24
+ export { HttpCallOptions, buildHttpRequest, executeCall, executeHttpCall, flattenQueryParams, marshalRequest, parseResponse };
21
25
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/v2/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,W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