@databricks/sdk-uc-systemschemas 0.52.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@databricks/sdk-uc-systemschemas";
3
- var version = "0.52.0";
3
+ var version = "0.52.1";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -2,18 +2,21 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/v1/model.d.ts
4
4
  interface DisableSystemSchemaRequest {
5
- /** Full name of the system schema. */
5
+ /** Name of the system schema, without the catalog prefix. */
6
6
  schema?: string | undefined;
7
7
  /** The metastore ID under which the system schema lives. */
8
8
  metastoreId?: string | undefined;
9
9
  }
10
10
  interface DisableSystemSchemaResponse {}
11
11
  interface EnableSystemSchemaRequest {
12
- /** Full name of the system schema. */
12
+ /** Name of the system schema, without the catalog prefix. */
13
13
  schema?: string | undefined;
14
14
  /** The metastore ID under which the system schema lives. */
15
15
  metastoreId?: string | undefined;
16
- /** the catalog for which the system schema is to enabled in */
16
+ /**
17
+ * Name of the catalog in which to enable the system schema. The supported values are `system` and `samples`. If not
18
+ * set, the system schema is enabled in the `system` catalog.
19
+ */
17
20
  catalogName?: string | undefined;
18
21
  }
19
22
  interface EnableSystemSchemaResponse {}
@@ -40,12 +43,19 @@ interface ListSystemSchemasResponse {
40
43
  */
41
44
  nextPageToken?: string | undefined;
42
45
  }
46
+ /**
47
+ * A system schema of a metastore, with its current enablement state. System schemas hold Databricks-provided system
48
+ * tables, such as audit logs and billing usage. They live in the `system` catalog unless they are enabled in another
49
+ * supported catalog. See https://docs.databricks.com/aws/en/admin/system-tables/.
50
+ */
43
51
  interface SystemSchemaInfo {
44
- /** Name of the system schema. */
52
+ /** Name of the system schema, without the catalog prefix. */
45
53
  schema: string;
46
54
  /**
47
- * The current state of enablement for the system schema. An empty string means the system schema is available and ready for opt-in.
48
- * Possible values: AVAILABLE | ENABLE_INITIALIZED | ENABLE_COMPLETED | DISABLE_INITIALIZED | UNAVAILABLE | MANAGED
55
+ * The current enablement state of the system schema. Possible values are `AVAILABLE` (the schema can be enabled),
56
+ * `ENABLE_INITIALIZED` (enablement is in progress), `ENABLE_COMPLETED` (the schema is enabled), `DISABLE_INITIALIZED`
57
+ * (disablement is in progress), `UNAVAILABLE` (the schema cannot be enabled at the moment) and `MANAGED` (Databricks
58
+ * enables the schema automatically).
49
59
  */
50
60
  state: string;
51
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;UAIiB,0BAAA;;EAEf,MAAA;EAFyC;EAIzC,WAAA;AAAA;AAAA,UAIe,2BAAA;AAAA,UAEA,yBAAA;;EAEf,MAAA;EAJ0C;EAM1C,WAAA;EAJwC;EAMxC,WAAA;AAAA;AAAA,UAIe,0BAAA;AAAA,UAEA,wBAAA;EANJ;EAQX,WAAA;EAJe;;;;;AAEjB;;EAUE,UAAA;EAVuC;EAYvC,SAAA;AAAA;AAAA,UAGe,yBAAA;EAHN;EAKT,OAAA,GAAU,gBAAA;EAFK;;;;EAOf,aAAA;AAAA;AAAA,UAGe,gBAAA;EAHF;EAKb,MAAA;EAFe;;;;EAOf,KAAA;AAAA;AAAA,cAGW,0CAAA,EAA4C,CAAA,CAAE,OAAA,CAAQ,2BAAA;AAAA,cAGtD,yCAAA,EAA2C,CAAA,CAAE,OAAA,CAAQ,0BAAA;AAAA,cAGrD,wCAAA,EAA0C,CAAA,CAAE,OAAA,CAAQ,yBAAA;AAAA,cAapD,+BAAA,EAAiC,CAAA,CAAE,OAAA,CAAQ,gBAAA;AAAA,cAU3C,sCAAA,EAAwC,CAAA,CAAE,OAAA"}
1
+ {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;UAIiB,0BAAA;;EAEf,MAAA;EAFyC;EAIzC,WAAA;AAAA;AAAA,UAIe,2BAAA;AAAA,UAEA,yBAAA;;EAEf,MAAA;EAJ0C;EAM1C,WAAA;EAJwC;;;;EASxC,WAAA;AAAA;AAAA,UAIe,0BAAA;AAAA,UAEA,wBAAA;EAF0B;EAIzC,WAAA;EAJyC;;AAE3C;;;;;EAUE,UAAA;EAEA;EAAA,SAAA;AAAA;AAAA,UAGe,yBAAA;EAAyB;EAExC,OAAA,GAAU,gBAAA;EAAgB;;;;EAK1B,aAAA;AAAA;AAQF;;;;;AAAA,UAAiB,gBAAA;EAaH;EAXZ,MAAA;EAUgE;;;;;;EAHhE,KAAA;AAAA;AAAA,cAGW,0CAAA,EAA4C,CAAA,CAAE,OAAA,CAAQ,2BAAA;AAAA,cAGtD,yCAAA,EAA2C,CAAA,CAAE,OAAA,CAAQ,0BAAA;AAAA,cAGrD,wCAAA,EAA0C,CAAA,CAAE,OAAA,CAAQ,yBAAA;AAAA,cAapD,+BAAA,EAAiC,CAAA,CAAE,OAAA,CAAQ,gBAAA;AAAA,cAU3C,sCAAA,EAAwC,CAAA,CAAE,OAAA"}
@@ -1 +1 @@
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 {z} from 'zod';\n\nexport interface DisableSystemSchemaRequest {\n /** Full name of the system schema. */\n schema?: string | undefined;\n /** The metastore ID under which the system schema lives. */\n metastoreId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DisableSystemSchemaResponse {}\n\nexport interface EnableSystemSchemaRequest {\n /** Full name of the system schema. */\n schema?: string | undefined;\n /** The metastore ID under which the system schema lives. */\n metastoreId?: string | undefined;\n /** the catalog for which the system schema is to enabled in */\n catalogName?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface EnableSystemSchemaResponse {}\n\nexport interface ListSystemSchemasRequest {\n /** The ID for the metastore in which the system schema resides. */\n metastoreId?: string | undefined;\n /**\n * Maximum number of schemas to return.\n * - When set to 0, the page length is set to a server configured value (recommended);\n * - When set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - When set to a value less than 0, an invalid parameter error is returned;\n * - If not set, all the schemas are returned (not recommended).\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListSystemSchemasResponse {\n /** An array of system schema information objects. */\n schemas?: SystemSchemaInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface SystemSchemaInfo {\n /** Name of the system schema. */\n schema: string;\n /**\n * The current state of enablement for the system schema. An empty string means the system schema is available and ready for opt-in.\n * Possible values: AVAILABLE | ENABLE_INITIALIZED | ENABLE_COMPLETED | DISABLE_INITIALIZED | UNAVAILABLE | MANAGED\n */\n state: string;\n}\n\nexport const unmarshalDisableSystemSchemaResponseSchema: z.ZodType<DisableSystemSchemaResponse> =\n z.object({});\n\nexport const unmarshalEnableSystemSchemaResponseSchema: z.ZodType<EnableSystemSchemaResponse> =\n z.object({});\n\nexport const unmarshalListSystemSchemasResponseSchema: z.ZodType<ListSystemSchemasResponse> =\n z\n .object({\n schemas: z\n .array(z.lazy(() => unmarshalSystemSchemaInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n schemas: d.schemas,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalSystemSchemaInfoSchema: z.ZodType<SystemSchemaInfo> = z\n .object({\n schema: z.string(),\n state: z.string(),\n })\n .transform(d => ({\n schema: d.schema,\n state: d.state,\n }));\n\nexport const marshalEnableSystemSchemaRequestSchema: z.ZodType = z\n .object({\n schema: z.string().optional(),\n metastoreId: z.string().optional(),\n catalogName: z.string().optional(),\n })\n .transform(d => ({\n schema: d.schema,\n metastore_id: d.metastoreId,\n catalog_name: d.catalogName,\n }));\n"],"mappings":";;;AA6DA,MAAa,6CACX,EAAE,OAAO,EAAE,CAAC;AAEd,MAAa,4CACX,EAAE,OAAO,EAAE,CAAC;AAEd,MAAa,2CACX,EACG,OAAO;CACN,SAAS,EACN,MAAM,EAAE,WAAW,gCAAgC,CAAC,CACpD,UAAU;CACb,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,SAAS,EAAE;CACX,eAAe,EAAE;CAClB,EAAE;AAEP,MAAa,kCAA+D,EACzE,OAAO;CACN,QAAQ,EAAE,QAAQ;CAClB,OAAO,EAAE,QAAQ;CAClB,CAAC,CACD,WAAU,OAAM;CACf,QAAQ,EAAE;CACV,OAAO,EAAE;CACV,EAAE;AAEL,MAAa,yCAAoD,EAC9D,OAAO;CACN,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC,CACD,WAAU,OAAM;CACf,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,cAAc,EAAE;CACjB,EAAE"}
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 {z} from 'zod';\n\nexport interface DisableSystemSchemaRequest {\n /** Name of the system schema, without the catalog prefix. */\n schema?: string | undefined;\n /** The metastore ID under which the system schema lives. */\n metastoreId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DisableSystemSchemaResponse {}\n\nexport interface EnableSystemSchemaRequest {\n /** Name of the system schema, without the catalog prefix. */\n schema?: string | undefined;\n /** The metastore ID under which the system schema lives. */\n metastoreId?: string | undefined;\n /**\n * Name of the catalog in which to enable the system schema. The supported values are `system` and `samples`. If not\n * set, the system schema is enabled in the `system` catalog.\n */\n catalogName?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface EnableSystemSchemaResponse {}\n\nexport interface ListSystemSchemasRequest {\n /** The ID for the metastore in which the system schema resides. */\n metastoreId?: string | undefined;\n /**\n * Maximum number of schemas to return.\n * - When set to 0, the page length is set to a server configured value (recommended);\n * - When set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - When set to a value less than 0, an invalid parameter error is returned;\n * - If not set, all the schemas are returned (not recommended).\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListSystemSchemasResponse {\n /** An array of system schema information objects. */\n schemas?: SystemSchemaInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\n/**\n * A system schema of a metastore, with its current enablement state. System schemas hold Databricks-provided system\n * tables, such as audit logs and billing usage. They live in the `system` catalog unless they are enabled in another\n * supported catalog. See https://docs.databricks.com/aws/en/admin/system-tables/.\n */\nexport interface SystemSchemaInfo {\n /** Name of the system schema, without the catalog prefix. */\n schema: string;\n /**\n * The current enablement state of the system schema. Possible values are `AVAILABLE` (the schema can be enabled),\n * `ENABLE_INITIALIZED` (enablement is in progress), `ENABLE_COMPLETED` (the schema is enabled), `DISABLE_INITIALIZED`\n * (disablement is in progress), `UNAVAILABLE` (the schema cannot be enabled at the moment) and `MANAGED` (Databricks\n * enables the schema automatically).\n */\n state: string;\n}\n\nexport const unmarshalDisableSystemSchemaResponseSchema: z.ZodType<DisableSystemSchemaResponse> =\n z.object({});\n\nexport const unmarshalEnableSystemSchemaResponseSchema: z.ZodType<EnableSystemSchemaResponse> =\n z.object({});\n\nexport const unmarshalListSystemSchemasResponseSchema: z.ZodType<ListSystemSchemasResponse> =\n z\n .object({\n schemas: z\n .array(z.lazy(() => unmarshalSystemSchemaInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n schemas: d.schemas,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalSystemSchemaInfoSchema: z.ZodType<SystemSchemaInfo> = z\n .object({\n schema: z.string(),\n state: z.string(),\n })\n .transform(d => ({\n schema: d.schema,\n state: d.state,\n }));\n\nexport const marshalEnableSystemSchemaRequestSchema: z.ZodType = z\n .object({\n schema: z.string().optional(),\n metastoreId: z.string().optional(),\n catalogName: z.string().optional(),\n })\n .transform(d => ({\n schema: d.schema,\n metastore_id: d.metastoreId,\n catalog_name: d.catalogName,\n }));\n"],"mappings":";;;AAuEA,MAAa,6CACX,EAAE,OAAO,EAAE,CAAC;AAEd,MAAa,4CACX,EAAE,OAAO,EAAE,CAAC;AAEd,MAAa,2CACX,EACG,OAAO;CACN,SAAS,EACN,MAAM,EAAE,WAAW,gCAAgC,CAAC,CACpD,UAAU;CACb,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,SAAS,EAAE;CACX,eAAe,EAAE;CAClB,EAAE;AAEP,MAAa,kCAA+D,EACzE,OAAO;CACN,QAAQ,EAAE,QAAQ;CAClB,OAAO,EAAE,QAAQ;CAClB,CAAC,CACD,WAAU,OAAM;CACf,QAAQ,EAAE;CACV,OAAO,EAAE;CACV,EAAE;AAEL,MAAa,yCAAoD,EAC9D,OAAO;CACN,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC,CACD,WAAU,OAAM;CACf,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,cAAc,EAAE;CACjB,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-uc-systemschemas",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {