@databricks/sdk-environments 0.33.0 → 0.35.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/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,qFAAqF;AACrF,4FAA4F;AAC5F,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iCAAiC,EAAE,mCAAmC;IACtE,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC;AAKX,uFAAuF;AACvF,4FAA4F;AAC5F,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,SAAS;IAClB;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;;;;;;;;;;OAaG;IACH,uBAAuB,EAAE,yBAAyB;IAClD;;;;OAIG;IACH,QAAQ,EAAE,UAAU;IACpB;;;;;;;;;OASG;IACH,WAAW,EAAE,aAAa;IAC1B;;;OAGG;IACH,yBAAyB,EAAE,2BAA2B;IACtD,oFAAoF;IACpF,iCAAiC,EAAE,mCAAmC;IACtE;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE,mBAAmB;IACtC;;;;;;;OAOG;IACH,SAAS,EAAE,WAAW;IACtB;;;;;;;;;;;OAWG;IACH,kBAAkB,EAAE,oBAAoB;IACxC;;;;;;;OAOG;IACH,OAAO,EAAE,SAAS;IAClB;;;;;;;OAOG;IACH,SAAS,EAAE,WAAW;IACtB;;;;;;;;;OASG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;;;;;;;OAUG;IACH,eAAe,EAAE,iBAAiB;IACl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C,QAAQ;IACpB,eAAe,EAAE,CAAC,CAAC,aAAa;IAChC,WAAW,EAAE,CAAC,CAAC,UAAU;IACzB,oBAAoB,EAAE,CAAC,CAAC,iBAAiB;IACzC,WAAW,EAAE,CAAC,CAAC,UAAU;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,OAAO,EAAE,CAAC,CAAC,OAAO;IAClB,UAAU,EAAE,CAAC,CAAC,SAAS;IACvB,qBAAqB,EAAE,CAAC,CAAC,mBAAmB;IAC5C,IAAI,EAAE,CAAC,CAAC,IAAI;CACb,CAAC,CAAC,CAAC;AAEN,MAAM,8CAA8C,GAAoB;IACtE,2BAA2B,EAAE,EAAC,IAAI,EAAE,gCAAgC,EAAC;IACrE,2BAA2B,EAAE,EAAC,IAAI,EAAE,gCAAgC,EAAC;IACrE,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;CACrB,CAAC;AAEF,MAAM,UAAU,wCAAwC,CACtD,GAAG,KAAe;IAElB,OAAO,SAAS,CAAC,KAAK,CACpB,KAAK,EACL,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n/** If changed, also update estore/namespaces/defaultbaseenvironments/latest.proto */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BaseEnvironmentType = {\n BASE_ENVIRONMENT_TYPE_UNSPECIFIED: 'BASE_ENVIRONMENT_TYPE_UNSPECIFIED',\n CPU: 'CPU',\n GPU: 'GPU',\n} as const;\nexport type BaseEnvironmentType =\n | (typeof BaseEnvironmentType)[keyof typeof BaseEnvironmentType]\n | (string & {});\n\n/** Error codes returned by Databricks APIs to indicate specific failure conditions. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ErrorCode = {\n /**\n * Unknown error. This error generally should not be returned explicitly, but will be used\n * as a fallback if the error enum is missing from the message for some reason.\n *\n * It's assigned tag 0 to follow the best practice from\n * https://developers.google.com/protocol-buffers/docs/style#enums\n *\n * TODO(PLAT-55898): Add custom option to declare HTTP and gRPC mappings.\n * Maps to:\n * - google.rpc.Code: UNKNOWN = 2;\n * - HTTP code: 500 Internal Server Error\n */\n UNKNOWN: 'UNKNOWN',\n /**\n * Internal error. This means that some invariants expected by the underlying system have been\n * broken. This error code is reserved for serious errors, which generally cannot be resolved\n * by the user.\n *\n * Prefer this over all kinds of detailed error messages (e.g IO_ERROR), unless there's some\n * automation that relies on the custom error code.\n *\n * Maps to:\n * - google.rpc.Code: INTERNAL = 13;\n * - HTTP code: 500 Internal Server Error\n */\n INTERNAL_ERROR: 'INTERNAL_ERROR',\n /**\n * The service is currently unavailable. This is most likely a transient condition, which can be\n * corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent\n * operations.\n *\n * Prefer this over SERVICE_UNDER_MAINTENANCE, WORKSPACE_TEMPORARILY_UNAVAILABLE.\n *\n * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#\n * for guideline on how to pick this vs RESOURCE_EXHAUSTED.\n *\n * Maps to:\n * - google.rpc.Code: UNAVAILABLE = 14;\n * - HTTP code: 503 Service Unavailable\n */\n TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n * Indicates that an IOException has been internally thrown.\n */\n IO_ERROR: 'IO_ERROR',\n /**\n * The request is invalid. Prefer more specific error code whenever possible.\n * Also see similar recommendation for the google.rpc.Code.FAILED_PRECONDITION.\n *\n * Prefer this error code over MALFORMED_REQUEST, INVALID_STATE, UNPARSEABLE_HTTP_ERROR.\n *\n * Maps to:\n * - google.rpc.Code: FAILED_PRECONDITION = 9;\n * - HTTP code: 400 Bad Request\n */\n BAD_REQUEST: 'BAD_REQUEST',\n /**\n * An external service is unavailable temporarily as it is being updated/re-deployed. Indicates\n * gateway proxy to safely retry the request.\n */\n SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',\n /** A workspace is temporarily unavailable as the workspace is being re-assigned. */\n WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',\n /**\n * The deadline expired before the operation could complete. For operations that change the state\n * of the system, this error may be returned even if the operation has completed successfully.\n * For example, a successful response from a server could have been delayed long enough for\n * the deadline to expire. When possible - implementations should make sure further processing of\n * the request is aborted, e.g. by throwing an exception instead of making the RPC request,\n * making the database query, etc.\n *\n * Maps to:\n * - google.rpc.Code: DEADLINE_EXCEEDED = 4;\n * - HTTP code: 504 Gateway Timeout\n */\n DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',\n /**\n * The operation was canceled by the caller. An example - client closed the connection without\n * waiting for a response.\n *\n * Maps to:\n * - google.rpc.Code: CANCELLED = 1;\n * - HTTP code: 499 Client Closed Request\n */\n CANCELLED: 'CANCELLED',\n /**\n * The operation is rejected because of either rate limiting or resource quota,\n * such as the client has sent too many requests recently or the client has allocated too many\n * resources.\n *\n * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#\n * for guideline on how to pick this vs TEMPORARILY_UNAVAILABLE.\n *\n * Maps to:\n * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;\n * - HTTP code: 429 Too Many Requests\n */\n RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',\n /**\n * The operation was aborted, typically due to a concurrency issue such as a sequencer\n * check failure, transaction abort, or transaction conflict.\n *\n * Maps to:\n * - google.rpc.Code: ABORTED = 10;\n * - HTTP code: 409 Conflict\n */\n ABORTED: 'ABORTED',\n /**\n * Operation was performed on a resource that does not exist,\n * e.g. file or directory was not found.\n *\n * Maps to:\n * - google.rpc.Code: NOT_FOUND = 5;\n * - HTTP code: 404 Not Found\n */\n NOT_FOUND: 'NOT_FOUND',\n /**\n * Operation was rejected due a conflict with an existing resource, e.g. attempted to create\n * file or directory that already exists.\n *\n * Prefer this over RESOURCE_CONFLICT.\n *\n * Maps to:\n * - google.rpc.Code: ALREADY_EXISTS = 6;\n * - HTTP code: 409 Conflict\n */\n ALREADY_EXISTS: 'ALREADY_EXISTS',\n /**\n * The request does not have valid authentication (AuthN) credentials for the operation.\n *\n * Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy\n * code.\n * For authorization (AuthZ) errors use PERMISSION_DENIED.\n *\n * Maps to:\n * - google.rpc.Code: UNAUTHENTICATED = 16;\n * - HTTP code: 401 Unauthorized\n */\n UNAUTHENTICATED: 'UNAUTHENTICATED',\n /**\n * The service is currently unavailable. Please note that the unavailability may or may not be transient.\n * That means if this is a non-transient condition, retrying it does not work. If the unavailability\n * is certainly a transient condition, pleases use `TEMPORARILY_UNAVAILABLE` which signals its transient\n * nature explicitly.\n * An example of this error code’s use case is that when DNS resolution fails, the DNS resolver does\n * not know whether it is because the domain name is completely wrong (non-transient situation) or\n * the domain name is valid but the DNS server does not have an entry for this domain name yet (transient\n * situation). Hence, `UNAVAILABLE` is suitable for this case.\n *\n * Maps to:\n * - google.rpc.Code: UNAVAILABLE = 14;\n * - HTTP code: 503 Service Unavailable\n */\n UNAVAILABLE: 'UNAVAILABLE',\n /**\n * Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).\n *\n * Maps to:\n * - google.rpc.Code: INVALID_ARGUMENT = 3;\n * - HTTP code: 400 Bad Request\n */\n INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',\n /**\n * Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED\n * should be used instead to indicate that API doesn't exist.\n *\n * Maps to:\n * - google.rpc.Code: NOT_FOUND = 5;\n * - HTTP code: 404 Not Found\n */\n ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',\n /** Indicates that the given API request was malformed. */\n MALFORMED_REQUEST: 'MALFORMED_REQUEST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n * If one or more of the inputs to a given RPC are not in a valid state for the action.\n */\n INVALID_STATE: 'INVALID_STATE',\n /**\n * The caller does not have permission to execute the specified operation.\n * PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,\n * use RESOURCE_EXHAUSTED instead for those errors.\n * PERMISSION_DENIED must not be used if the caller can not be identified,\n * use CUSTOMER_UNAUTHORIZED instead for those errors.\n * This error code does not imply the request is valid or the requested entity exists or\n * satisfies other pre-conditions.\n *\n * Maps to:\n * - google.rpc.Code: PERMISSION_DENIED = 7;\n * - HTTP code: 403 Forbidden\n */\n PERMISSION_DENIED: 'PERMISSION_DENIED',\n /**\n * NOTE: Deprecated due to inconsistent mapping in legacy code, see\n * https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.\n * Prefer using NOT_FOUND or PERMISSION_DENIED.\n *\n * If a given user/entity is trying to use a feature which has been disabled.\n *\n * Maps to:\n * - google.rpc.Code: NOT_FOUND = 5;\n * - HTTP code: 404 Not Found\n */\n FEATURE_DISABLED: 'FEATURE_DISABLED',\n /**\n * The request does not have valid authentication (AuthN) credentials for the operation.\n *\n * For authentication (AuthN) errors prefer using UNAUTHENTICATED, unless you need to keep\n * consistent behavior with legacy code.\n * For authorization (AuthZ) errors use PERMISSION_DENIED.\n *\n * Important: name is confusing, this error code is for authentication (AuthN) errors, not\n * authorization (AuthZ) errors. It maps to 401 Unauthorized and suffers from the same confusing\n * naming. See https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 - \"[...] status code\n * indicates that the request has not been applied because it lacks valid authentication\n * credentials for the target resource. [...] If the request included authentication credentials,\n * then the 401 response indicates that authorization has been refused for those credentials.\"\n *\n * Also, see https://stackoverflow.com/a/6937030/16352922, it covers it pretty well.\n *\n * Maps to:\n * - google.rpc.Code: UNAUTHENTICATED = 16;\n * - HTTP code: 401 Unauthorized\n */\n CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',\n /**\n * The operation is rejected because of request rate limit, for example rate limiting applied to\n * users, workspaces, IP addresses, etc.\n *\n * Prefer a more generic RESOURCE_EXHAUSTED for the new use cases.\n *\n * See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#\n * for guideline on the rate limiting vs throttling.\n *\n * Maps to:\n * - google.rpc.Code: RESOURCE_EXHAUSTED = 8;\n * - HTTP code: 429 Too Many Requests\n */\n REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',\n /** Indicates API request was rejected due a conflict with an existing resource. */\n RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n * Indicates that the HTTP response cannot be correctly deserialized.\n * This currently is only used in DUST test clients, and not by any real service code.\n */\n UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',\n /**\n * The operation is not implemented or is not supported/enabled in this service.\n *\n * Maps to:\n * - google.rpc.Code: UNIMPLEMENTED = 12;\n * - HTTP code: 501 Not Implemented\n */\n NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',\n /**\n * Unrecoverable data loss or corruption.\n *\n * One of the major use cases is to indicate that server failed to validate the integrity of\n * the request. This error can occur when the checksum specified in the `X-Databricks-Checksum`\n * request header (or trailer) doesn't match the actual request content checksum.\n *\n * Note, in case of the severe corruption that results in a malformed request, the server may\n * send a generic `400 Bad Request` response rather than sending this error code.\n *\n * Maps to:\n * - google.rpc.Code: DATA_LOSS = 15;\n * - HTTP code: 500 Internal Server Error\n */\n DATA_LOSS: 'DATA_LOSS',\n /** If the user attempts to perform an invalid state transition on a shard. */\n INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n * Unable to perform the operation because the shard was locked by some other operation.\n */\n COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',\n /**\n * NOTE: Deprecated, prefer using ALREADY_EXISTS.\n * Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,\n * remapping will be a backwards incompatible change.\n *\n * Operation was performed on a resource that already exists.\n */\n RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,\n * because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP\n * codes we added new error codes NOT_FOUND and ALREADY_EXISTS, and recommend to use them instead.\n *\n * Operation was performed on a resource that does not exist.\n */\n RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',\n PARTIAL_DELETE: 'PARTIAL_DELETE',\n MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DRY_RUN_FAILED: 'DRY_RUN_FAILED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n * Cluster request was rejected because it would exceed a resource limit.\n */\n RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',\n MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST:\n 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n GIT_CONFLICT: 'GIT_CONFLICT',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',\n METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',\n CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',\n SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',\n TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',\n SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',\n RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',\n STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',\n EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',\n PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',\n PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n SHARE_ALREADY_EXISTS: 'SHARE_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n PROVIDER_ALREADY_EXISTS: 'PROVIDER_ALREADY_EXISTS',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',\n /**\n * NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,\n * avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.\n */\n PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',\n} as const;\nexport type ErrorCode =\n | (typeof ErrorCode)[keyof typeof ErrorCode]\n | (string & {});\n\n/** Status of the environment materialization. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const WorkspaceBaseEnvironmentCache_Status = {\n STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED',\n /** Materialized environment creation is pending. */\n PENDING: 'PENDING',\n /** Materialized environment has been successfully created. */\n CREATED: 'CREATED',\n /** Materialized environment creation failed. */\n FAILED: 'FAILED',\n /** Materialized environment has expired. */\n EXPIRED: 'EXPIRED',\n /** Materialized environment is invalid. */\n INVALID: 'INVALID',\n /** Materialized environment is being refreshed. */\n REFRESHING: 'REFRESHING',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type WorkspaceBaseEnvironmentCache_Status =\n | (typeof WorkspaceBaseEnvironmentCache_Status)[keyof typeof WorkspaceBaseEnvironmentCache_Status]\n | (string & {});\n\n/** Databricks Error that is returned by all Databricks APIs. */\nexport interface ApiError {\n errorCode?: ErrorCode | undefined;\n message?: string | undefined;\n stackTrace?: string | undefined;\n details?: Record<string, unknown>[] | undefined;\n}\n\n/** Request message for CreateWorkspaceBaseEnvironment. */\nexport interface CreateWorkspaceBaseEnvironmentRequest {\n /** Required. The workspace base environment to create. */\n workspaceBaseEnvironment?: WorkspaceBaseEnvironment | undefined;\n /**\n * The ID to use for the workspace base environment, which will become the final component of\n * the resource name.\n * This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.\n */\n workspaceBaseEnvironmentId?: string | undefined;\n /**\n * A unique identifier for this request. A random UUID is recommended.\n * This request is only idempotent if a request_id is provided.\n */\n requestId?: string | undefined;\n}\n\n/**\n * A singleton resource representing the default workspace base environment configuration.\n * This resource contains the workspace base environments that are used as defaults\n * for serverless notebooks and jobs in the workspace, for both CPU and GPU compute types.\n */\nexport interface DefaultWorkspaceBaseEnvironment {\n /**\n * The resource name of this singleton resource.\n * Format: default-workspace-base-environment\n */\n name?: string | undefined;\n /**\n * The default workspace base environment for CPU compute.\n * Format: workspace-base-environments/{workspace_base_environment}\n */\n cpuWorkspaceBaseEnvironment?: string | undefined;\n /**\n * The default workspace base environment for GPU compute.\n * Format: workspace-base-environments/{workspace_base_environment}\n */\n gpuWorkspaceBaseEnvironment?: string | undefined;\n}\n\n/** Request message for DeleteWorkspaceBaseEnvironment. */\nexport interface DeleteWorkspaceBaseEnvironmentRequest {\n /**\n * Required. The resource name of the workspace base environment to delete.\n * Format: workspace-base-environments/{workspace_base_environment}\n */\n name?: string | undefined;\n}\n\n/**\n * Environment specification for a WorkspaceBaseEnvironment.\n * Contains the environment version and dependencies configuration.\n */\nexport interface EnvironmentSpec {\n /**\n * List of pip dependencies, as supported by the version of pip in this environment.\n * Each dependency is a valid pip requirements file line per https://pip.pypa.io/en/stable/reference/requirements-file-format/.\n * Allowed dependencies include a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in <Databricks>), or a VCS project URL.\n */\n dependencies?: string[] | undefined;\n /**\n * Environment version used by the environment.\n * Each version comes with a specific Python version and a set of Python packages.\n * The version is a string, consisting of an integer.\n */\n environmentVersion?: string | undefined;\n}\n\n/** Request message for GetDefaultWorkspaceBaseEnvironment. */\nexport interface GetDefaultWorkspaceBaseEnvironmentRequest {\n /**\n * A static resource name of the default workspace base environment.\n * Format: default-workspace-base-environment\n */\n name?: string | undefined;\n}\n\n/** The request message for `GetOperation` method. */\nexport interface GetOperationRequest {\n /** The name of the operation resource. */\n name?: string | undefined;\n}\n\n/** Request message for GetWorkspaceBaseEnvironment. */\nexport interface GetWorkspaceBaseEnvironmentRequest {\n /**\n * Required. The resource name of the workspace base environment to retrieve.\n * Format: workspace-base-environments/{workspace_base_environment}\n */\n name?: string | undefined;\n}\n\n/** Request message for ListWorkspaceBaseEnvironments. */\nexport interface ListWorkspaceBaseEnvironmentsRequest {\n /**\n * The maximum number of environments to return per page.\n * Default is 1000.\n */\n pageSize?: number | undefined;\n /** Page token for pagination. Received from a previous ListWorkspaceBaseEnvironments call. */\n pageToken?: string | undefined;\n}\n\n/** Response message for ListWorkspaceBaseEnvironments. */\nexport interface ListWorkspaceBaseEnvironmentsResponse {\n /** The list of workspace base environments. */\n workspaceBaseEnvironments?: WorkspaceBaseEnvironment[] | undefined;\n /**\n * Token to retrieve the next page of results.\n * Empty if there are no more results.\n */\n nextPageToken?: string | undefined;\n}\n\n/**\n * This resource represents a long-running operation that is the result of a\n * network API call.\n */\nexport interface Operation {\n /**\n * The server-assigned name, which is only unique within the same service that\n * originally returns it. If you use the default HTTP mapping, the\n * `name` should be a resource name ending with `operations/{unique_id}`.\n */\n name?: string | undefined;\n /**\n * Service-specific metadata associated with the operation. It typically\n * contains progress information and common metadata such as create time.\n * Some services might not provide such metadata.\n */\n metadata?: Record<string, unknown> | undefined;\n /**\n * If the value is `false`, it means the operation is still in progress.\n * If `true`, the operation is completed, and either `error` or `response` is\n * available.\n */\n done?: boolean | undefined;\n /**\n * The operation result, which can be either an `error` or a valid `response`.\n * If `done` == `false`, neither `error` nor `response` is set.\n * If `done` == `true`, exactly one of `error` or `response` can be set.\n * Some services might not provide the result.\n */\n result?:\n | {\n $case: 'error';\n /** The error result of the operation in case of failure or cancellation. */\n error: ApiError;\n }\n | {\n $case: 'response';\n /** The normal, successful response of the operation. */\n response: Record<string, unknown>;\n }\n | undefined;\n}\n\n/** Request message for RefreshWorkspaceBaseEnvironments. */\nexport interface RefreshWorkspaceBaseEnvironmentRequest {\n /**\n * Required. The resource name of the workspace base environment to delete.\n * Format: workspace-base-environments/{workspace_base_environment}\n */\n name?: string | undefined;\n}\n\n/** Request message for UpdateDefaultWorkspaceBaseEnvironment. */\nexport interface UpdateDefaultWorkspaceBaseEnvironmentRequest {\n /** Required. The default workspace base environment configuration to update. */\n defaultWorkspaceBaseEnvironment?: DefaultWorkspaceBaseEnvironment | undefined;\n /**\n * Field mask specifying which fields to update. Use comma as the separator for multiple fields (no space).\n * The special value '*' indicates that all fields should be updated (full replacement).\n * Valid field paths: cpu_workspace_base_environment, gpu_workspace_base_environment\n *\n * To unset one or both defaults, include the field path(s) in the mask and omit them from the request body.\n * To unset both, you must list both paths explicitly — the wildcard '*' cannot be used to unset fields.\n */\n updateMask?: FieldMask<DefaultWorkspaceBaseEnvironment> | undefined;\n}\n\n/** Request message for UpdateWorkspaceBaseEnvironment. */\nexport interface UpdateWorkspaceBaseEnvironmentRequest {\n name?: string | undefined;\n /**\n * Required. The workspace base environment with updated fields.\n * The name field is used to identify the environment to update.\n */\n workspaceBaseEnvironment?: WorkspaceBaseEnvironment | undefined;\n}\n\n/**\n * A WorkspaceBaseEnvironment defines a workspace-level environment configuration\n * consisting of an environment version and a list of dependencies.\n */\nexport interface WorkspaceBaseEnvironment {\n /**\n * The resource name of the workspace base environment.\n * Format: workspace-base-environments/{workspace-base-environment}\n */\n name?: string | undefined;\n /** Human-readable display name for the workspace base environment. */\n displayName?: string | undefined;\n /** The WSFS or UC Volumes path to the environment YAML file. */\n filepath?: string | undefined;\n /** User ID of the creator. */\n creatorUserId?: string | undefined;\n /** Timestamp when the environment was created. */\n createTime?: Temporal.Instant | undefined;\n /** User ID of the last user who updated the environment. */\n lastUpdatedUserId?: string | undefined;\n /** Timestamp when the environment was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /** The status of the materialized workspace base environment. */\n status?: WorkspaceBaseEnvironmentCache_Status | undefined;\n /** Status message providing additional details about the environment status. */\n message?: string | undefined;\n /** Whether this is the default environment for the workspace. */\n isDefault?: boolean | undefined;\n /** The type of base environment (CPU or GPU). */\n baseEnvironmentType?: BaseEnvironmentType | undefined;\n /** The environment specification containing version and dependencies. */\n spec?: EnvironmentSpec | undefined;\n}\n\n/** Materialized environment information for a WorkspaceBaseEnvironment. */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface WorkspaceBaseEnvironmentCache {}\n\n/**\n * Metadata for the WorkspaceBaseEnvironment long-running operations.\n * This message tracks the progress of the workspace base environment long-running process.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface WorkspaceBaseEnvironmentOperationMetadata {}\n\nexport const unmarshalApiErrorSchema: z.ZodType<ApiError> = z\n .object({\n error_code: z.string().optional(),\n message: z.string().optional(),\n stack_trace: z.string().optional(),\n details: z.array(z.record(z.string(), z.unknown())).optional(),\n })\n .transform(d => ({\n errorCode: d.error_code,\n message: d.message,\n stackTrace: d.stack_trace,\n details: d.details,\n }));\n\nexport const unmarshalDefaultWorkspaceBaseEnvironmentSchema: z.ZodType<DefaultWorkspaceBaseEnvironment> =\n z\n .object({\n name: z.string().optional(),\n cpu_workspace_base_environment: z.string().optional(),\n gpu_workspace_base_environment: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n cpuWorkspaceBaseEnvironment: d.cpu_workspace_base_environment,\n gpuWorkspaceBaseEnvironment: d.gpu_workspace_base_environment,\n }));\n\nexport const unmarshalEnvironmentSpecSchema: z.ZodType<EnvironmentSpec> = z\n .object({\n dependencies: z.array(z.string()).optional(),\n environment_version: z.string().optional(),\n })\n .transform(d => ({\n dependencies: d.dependencies,\n environmentVersion: d.environment_version,\n }));\n\nexport const unmarshalListWorkspaceBaseEnvironmentsResponseSchema: z.ZodType<ListWorkspaceBaseEnvironmentsResponse> =\n z\n .object({\n workspace_base_environments: z\n .array(z.lazy(() => unmarshalWorkspaceBaseEnvironmentSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n workspaceBaseEnvironments: d.workspace_base_environments,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalOperationSchema: z.ZodType<Operation> = z\n .object({\n name: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n done: z.boolean().optional(),\n error: z.lazy(() => unmarshalApiErrorSchema).optional(),\n response: z.record(z.string(), z.unknown()).optional(),\n })\n .transform(d => ({\n name: d.name,\n metadata: d.metadata,\n done: d.done,\n result:\n d.error !== undefined\n ? {$case: 'error' as const, error: d.error}\n : d.response !== undefined\n ? {$case: 'response' as const, response: d.response}\n : undefined,\n }));\n\nexport const unmarshalWorkspaceBaseEnvironmentSchema: z.ZodType<WorkspaceBaseEnvironment> =\n z\n .object({\n name: z.string().optional(),\n display_name: z.string().optional(),\n filepath: z.string().optional(),\n creator_user_id: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n last_updated_user_id: z.string().optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n status: z.string().optional(),\n message: z.string().optional(),\n is_default: z.boolean().optional(),\n base_environment_type: z.string().optional(),\n spec: z.lazy(() => unmarshalEnvironmentSpecSchema).optional(),\n })\n .transform(d => ({\n name: d.name,\n displayName: d.display_name,\n filepath: d.filepath,\n creatorUserId: d.creator_user_id,\n createTime: d.create_time,\n lastUpdatedUserId: d.last_updated_user_id,\n updateTime: d.update_time,\n status: d.status,\n message: d.message,\n isDefault: d.is_default,\n baseEnvironmentType: d.base_environment_type,\n spec: d.spec,\n }));\n\nexport const unmarshalWorkspaceBaseEnvironmentOperationMetadataSchema: z.ZodType<WorkspaceBaseEnvironmentOperationMetadata> =\n z.object({});\n\nexport const marshalDefaultWorkspaceBaseEnvironmentSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n cpuWorkspaceBaseEnvironment: z.string().optional(),\n gpuWorkspaceBaseEnvironment: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n cpu_workspace_base_environment: d.cpuWorkspaceBaseEnvironment,\n gpu_workspace_base_environment: d.gpuWorkspaceBaseEnvironment,\n }));\n\nexport const marshalEnvironmentSpecSchema: z.ZodType = z\n .object({\n dependencies: z.array(z.string()).optional(),\n environmentVersion: z.string().optional(),\n })\n .transform(d => ({\n dependencies: d.dependencies,\n environment_version: d.environmentVersion,\n }));\n\nexport const marshalRefreshWorkspaceBaseEnvironmentRequestSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n }));\n\nexport const marshalWorkspaceBaseEnvironmentSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n displayName: z.string().optional(),\n filepath: z.string().optional(),\n creatorUserId: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n lastUpdatedUserId: z.string().optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n status: z.string().optional(),\n message: z.string().optional(),\n isDefault: z.boolean().optional(),\n baseEnvironmentType: z.string().optional(),\n spec: z.lazy(() => marshalEnvironmentSpecSchema).optional(),\n })\n .transform(d => ({\n name: d.name,\n display_name: d.displayName,\n filepath: d.filepath,\n creator_user_id: d.creatorUserId,\n create_time: d.createTime,\n last_updated_user_id: d.lastUpdatedUserId,\n update_time: d.updateTime,\n status: d.status,\n message: d.message,\n is_default: d.isDefault,\n base_environment_type: d.baseEnvironmentType,\n spec: d.spec,\n }));\n\nconst defaultWorkspaceBaseEnvironmentFieldMaskSchema: FieldMaskSchema = {\n cpuWorkspaceBaseEnvironment: {wire: 'cpu_workspace_base_environment'},\n gpuWorkspaceBaseEnvironment: {wire: 'gpu_workspace_base_environment'},\n name: {wire: 'name'},\n};\n\nexport function defaultWorkspaceBaseEnvironmentFieldMask(\n ...paths: string[]\n): FieldMask<DefaultWorkspaceBaseEnvironment> {\n return FieldMask.build<DefaultWorkspaceBaseEnvironment>(\n paths,\n defaultWorkspaceBaseEnvironmentFieldMaskSchema\n );\n}\n"],"mappings":";;;;;;AASA,MAAa,sBAAsB;CACjC,mCAAmC;CACnC,KAAK;CACL,KAAK;CACN;;AAOD,MAAa,YAAY;CAavB,SAAS;CAaT,gBAAgB;CAehB,yBAAyB;CAMzB,UAAU;CAWV,aAAa;CAKb,2BAA2B;CAE3B,mCAAmC;CAanC,mBAAmB;CASnB,WAAW;CAaX,oBAAoB;CASpB,SAAS;CAST,WAAW;CAWX,gBAAgB;CAYhB,iBAAiB;CAejB,aAAa;CAQb,yBAAyB;CASzB,oBAAoB;CAEpB,mBAAmB;CAMnB,eAAe;CAcf,mBAAmB;CAYnB,kBAAkB;CAqBlB,uBAAuB;CAcvB,wBAAwB;CAExB,mBAAmB;CAOnB,wBAAwB;CAQxB,iBAAiB;CAejB,WAAW;CAEX,0BAA0B;CAM1B,wBAAwB;CAQxB,yBAAyB;CAQzB,yBAAyB;CAKzB,gBAAgB;CAKhB,yBAAyB;CAKzB,wBAAwB;CACxB,gBAAgB;CAChB,wBAAwB;CAKxB,gBAAgB;CAMhB,yBAAyB;CAKzB,qBAAqB;CAKrB,qBAAqB;CAKrB,4BAA4B;CAC5B,8BAA8B;CAK9B,uBAAuB;CAKvB,wBAAwB;CAKxB,uCACE;CAKF,2BAA2B;CAK3B,oBAAoB;CAKpB,cAAc;CAKd,iBAAiB;CAKjB,8BAA8B;CAK9B,2BAA2B;CAK3B,kBAAkB;CAKlB,4BAA4B;CAK5B,oBAAoB;CAKpB,2BAA2B;CAK3B,4BAA4B;CA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AK,CACL,WAAW,MAAwB,EAAE,UAAU,CAAC,CAChD,UAAU;CACb,mBAAmB,EAAE,QAAQ,CAAC,UAAU;CACxC,YAAY,EACT,KAAK,CACL,WAAW,MAAwB,EAAE,UAAU,CAAC,CAChD,UAAU;CACb,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,WAAW,EAAE,SAAS,CAAC,UAAU;CACjC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,MAAM,EAAE,WAAW,6BAA6B,CAAC,UAAU;CAC5D,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,cAAc,EAAE;CAChB,UAAU,EAAE;CACZ,iBAAiB,EAAE;CACnB,aAAa,EAAE;CACf,sBAAsB,EAAE;CACxB,aAAa,EAAE;CACf,QAAQ,EAAE;CACV,SAAS,EAAE;CACX,YAAY,EAAE;CACd,uBAAuB,EAAE;CACzB,MAAM,EAAE;CACT,EAAE;AAEL,MAAM,iDAAkE;CACtE,6BAA6B,EAAC,MAAM,kCAAiC;CACrE,6BAA6B,EAAC,MAAM,kCAAiC;CACrE,MAAM,EAAC,MAAM,QAAO;CACrB;AAED,SAAgB,yCACd,GAAG,OACyC;AAC5C,QAAO,UAAU,MACf,OACA,+CACD"}
@@ -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/v1/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/v1/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/v1/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/v1/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/v1/transport.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAMpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAC;AA0BtD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAsB;IAEtB,MAAM,OAAO,GAAY,MAAM,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE/D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAC1C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IA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,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,qEAAqE;AACrE,MAAM,iBAAiB;IAEF;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,OAAoB;QAC7B,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,MAAM,GACV,OAAO,CAAC,MAAM,KAAK,SAAS;YAC1B,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAClD,CAAC,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"transport.js","names":[],"sources":["../../src/v1/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,34 +1,37 @@
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 { LroOptions } from '@databricks/sdk-options/lro';
5
- import type { z } from 'zod';
6
- export interface HttpCallOptions {
7
- readonly request: HttpRequest;
8
- readonly httpClient: HttpClient;
9
- 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
+ import { LroOptions } from "@databricks/sdk-options/lro";
6
+
7
+ //#region src/v1/utils.d.ts
8
+ interface HttpCallOptions {
9
+ readonly request: HttpRequest;
10
+ readonly httpClient: HttpClient;
11
+ readonly logger: Logger;
10
12
  }
11
13
  /**
12
14
  * Translates public CallOptions to the internal Options shape accepted by
13
15
  * execute(). Even though the shapes match today, this isolates the public
14
16
  * API from the executor's internal type so they can diverge.
15
17
  */
16
- export declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
18
+ declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
17
19
  /**
18
20
  * Sentinel thrown by a polling call to signal that the operation has not
19
21
  * yet reached a terminal state. {@link executeWait} treats this error as
20
22
  * retriable; any other error aborts the wait.
21
23
  */
22
- export declare class StillRunningError extends Error {
23
- }
24
+ declare class StillRunningError extends Error {}
24
25
  /**
25
26
  * Polls until the call returns without throwing {@link StillRunningError}.
26
27
  * Abort and overall-deadline behavior come from the supplied LroOptions.
27
28
  */
28
- export declare function executeWait(call: (signal?: AbortSignal) => Promise<void>, options?: LroOptions): Promise<void>;
29
- export declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
30
- export declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
31
- export declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
32
- export declare function marshalRequest(data: unknown, schema: z.ZodType): string;
33
- export declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
29
+ declare function executeWait(call: (signal?: AbortSignal) => Promise<void>, options?: LroOptions): Promise<void>;
30
+ declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
31
+ declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
32
+ declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
33
+ declare function marshalRequest(data: unknown, schema: z.ZodType): string;
34
+ declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
35
+ //#endregion
36
+ export { HttpCallOptions, StillRunningError, buildHttpRequest, executeCall, executeHttpCall, executeWait, flattenQueryParams, marshalRequest, parseResponse };
34
37
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/v1/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;AAC9D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAE5D,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,WAAW,eAAe;IAC9B,QAAQ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