kb-cloud-client-typescript 2.4.0-alpha.91 → 2.4.0-alpha.93
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/adminapi/apis/account-api.d.ts +310 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +303 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +310 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +303 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +310 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +303 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
- package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +310 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +303 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +310 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +303 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +310 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +303 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-reset-step.js +16 -0
- package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/account-api.ts +533 -0
- package/src/adminapi/apis/rdbms-api.ts +533 -0
- package/src/adminapi/apis/shared-api.ts +533 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi.yaml +204 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/account-api.ts +533 -0
- package/src/openapi/apis/rdbms-api.ts +533 -0
- package/src/openapi/apis/shared-api.ts +533 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi.yaml +204 -0
|
@@ -669,6 +669,7 @@ export * from './object-privilege-object-list';
|
|
|
669
669
|
export * from './object-privilege-prerequisite-check';
|
|
670
670
|
export * from './object-privilege-prerequisite-status';
|
|
671
671
|
export * from './object-privilege-qualifier';
|
|
672
|
+
export * from './object-privilege-reset-step';
|
|
672
673
|
export * from './object-privilege-snapshot';
|
|
673
674
|
export * from './object-privilege-spec';
|
|
674
675
|
export * from './object-privilege-subject';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* One ordered, engine-generated step of an account privilege reset.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ObjectPrivilegeResetStep
|
|
21
|
+
*/
|
|
22
|
+
export interface ObjectPrivilegeResetStep {
|
|
23
|
+
/**
|
|
24
|
+
* Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ObjectPrivilegeResetStep
|
|
27
|
+
*/
|
|
28
|
+
'databaseName'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ObjectPrivilegeResetStep
|
|
33
|
+
*/
|
|
34
|
+
'sql': string;
|
|
35
|
+
}
|
|
36
|
+
|
package/src/openapi.yaml
CHANGED
|
@@ -19398,6 +19398,196 @@ paths:
|
|
|
19398
19398
|
$ref: '#/components/responses/404'
|
|
19399
19399
|
'500':
|
|
19400
19400
|
$ref: '#/components/responses/500'
|
|
19401
|
+
/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
|
|
19402
|
+
get:
|
|
19403
|
+
tags:
|
|
19404
|
+
- account
|
|
19405
|
+
- rdbms
|
|
19406
|
+
- shared
|
|
19407
|
+
summary: Preview clearing all MySQL account privileges
|
|
19408
|
+
operationId: previewAccountPrivilegeReset
|
|
19409
|
+
description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
19410
|
+
parameters:
|
|
19411
|
+
- name: engineName
|
|
19412
|
+
in: path
|
|
19413
|
+
required: true
|
|
19414
|
+
schema:
|
|
19415
|
+
type: string
|
|
19416
|
+
- name: orgName
|
|
19417
|
+
in: path
|
|
19418
|
+
required: true
|
|
19419
|
+
schema:
|
|
19420
|
+
type: string
|
|
19421
|
+
- name: clusterName
|
|
19422
|
+
in: path
|
|
19423
|
+
required: true
|
|
19424
|
+
schema:
|
|
19425
|
+
type: string
|
|
19426
|
+
- name: accountName
|
|
19427
|
+
in: path
|
|
19428
|
+
required: true
|
|
19429
|
+
schema:
|
|
19430
|
+
type: string
|
|
19431
|
+
- name: subjectType
|
|
19432
|
+
in: query
|
|
19433
|
+
required: false
|
|
19434
|
+
schema:
|
|
19435
|
+
$ref: '#/components/schemas/ObjectPrivilegeSubjectType'
|
|
19436
|
+
description: Native subject kind; path account name identifies the subject.
|
|
19437
|
+
- name: host
|
|
19438
|
+
in: query
|
|
19439
|
+
required: false
|
|
19440
|
+
schema:
|
|
19441
|
+
type: string
|
|
19442
|
+
description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
19443
|
+
- name: subjectQualifiers
|
|
19444
|
+
in: query
|
|
19445
|
+
schema:
|
|
19446
|
+
type: string
|
|
19447
|
+
description: JSON identity qualifiers; MySQL host defaults to %.
|
|
19448
|
+
responses:
|
|
19449
|
+
'200':
|
|
19450
|
+
description: Server-generated steps with connection database, in execution order
|
|
19451
|
+
content:
|
|
19452
|
+
application/json:
|
|
19453
|
+
schema:
|
|
19454
|
+
type: array
|
|
19455
|
+
items:
|
|
19456
|
+
$ref: '#/components/schemas/ObjectPrivilegeResetStep'
|
|
19457
|
+
'400':
|
|
19458
|
+
$ref: '#/components/responses/400'
|
|
19459
|
+
'401':
|
|
19460
|
+
$ref: '#/components/responses/401'
|
|
19461
|
+
'403':
|
|
19462
|
+
$ref: '#/components/responses/403'
|
|
19463
|
+
'404':
|
|
19464
|
+
$ref: '#/components/responses/404'
|
|
19465
|
+
'500':
|
|
19466
|
+
$ref: '#/components/responses/500'
|
|
19467
|
+
delete:
|
|
19468
|
+
tags:
|
|
19469
|
+
- account
|
|
19470
|
+
- rdbms
|
|
19471
|
+
- shared
|
|
19472
|
+
summary: Clear all MySQL account privileges
|
|
19473
|
+
operationId: resetAccountPrivileges
|
|
19474
|
+
description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
19475
|
+
parameters:
|
|
19476
|
+
- name: engineName
|
|
19477
|
+
in: path
|
|
19478
|
+
required: true
|
|
19479
|
+
schema:
|
|
19480
|
+
type: string
|
|
19481
|
+
- name: orgName
|
|
19482
|
+
in: path
|
|
19483
|
+
required: true
|
|
19484
|
+
schema:
|
|
19485
|
+
type: string
|
|
19486
|
+
- name: clusterName
|
|
19487
|
+
in: path
|
|
19488
|
+
required: true
|
|
19489
|
+
schema:
|
|
19490
|
+
type: string
|
|
19491
|
+
- name: accountName
|
|
19492
|
+
in: path
|
|
19493
|
+
required: true
|
|
19494
|
+
schema:
|
|
19495
|
+
type: string
|
|
19496
|
+
- name: subjectType
|
|
19497
|
+
in: query
|
|
19498
|
+
required: false
|
|
19499
|
+
schema:
|
|
19500
|
+
$ref: '#/components/schemas/ObjectPrivilegeSubjectType'
|
|
19501
|
+
description: Native subject kind; path account name identifies the subject.
|
|
19502
|
+
- name: host
|
|
19503
|
+
in: query
|
|
19504
|
+
required: false
|
|
19505
|
+
schema:
|
|
19506
|
+
type: string
|
|
19507
|
+
description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
19508
|
+
- name: subjectQualifiers
|
|
19509
|
+
in: query
|
|
19510
|
+
schema:
|
|
19511
|
+
type: string
|
|
19512
|
+
description: JSON identity qualifiers; MySQL host defaults to %.
|
|
19513
|
+
responses:
|
|
19514
|
+
'204':
|
|
19515
|
+
description: Privileges cleared; account and password preserved
|
|
19516
|
+
'400':
|
|
19517
|
+
$ref: '#/components/responses/400'
|
|
19518
|
+
'401':
|
|
19519
|
+
$ref: '#/components/responses/401'
|
|
19520
|
+
'403':
|
|
19521
|
+
$ref: '#/components/responses/403'
|
|
19522
|
+
'404':
|
|
19523
|
+
$ref: '#/components/responses/404'
|
|
19524
|
+
'500':
|
|
19525
|
+
$ref: '#/components/responses/500'
|
|
19526
|
+
/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
|
|
19527
|
+
get:
|
|
19528
|
+
tags:
|
|
19529
|
+
- account
|
|
19530
|
+
- rdbms
|
|
19531
|
+
- shared
|
|
19532
|
+
summary: List exact column names for account object privileges
|
|
19533
|
+
operationId: listAccountObjectPrivilegeColumns
|
|
19534
|
+
description: Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
19535
|
+
parameters:
|
|
19536
|
+
- name: engineName
|
|
19537
|
+
in: path
|
|
19538
|
+
required: true
|
|
19539
|
+
schema:
|
|
19540
|
+
type: string
|
|
19541
|
+
- name: orgName
|
|
19542
|
+
in: path
|
|
19543
|
+
required: true
|
|
19544
|
+
schema:
|
|
19545
|
+
type: string
|
|
19546
|
+
- name: clusterName
|
|
19547
|
+
in: path
|
|
19548
|
+
required: true
|
|
19549
|
+
schema:
|
|
19550
|
+
type: string
|
|
19551
|
+
- name: accountName
|
|
19552
|
+
in: path
|
|
19553
|
+
required: true
|
|
19554
|
+
schema:
|
|
19555
|
+
type: string
|
|
19556
|
+
- name: objectType
|
|
19557
|
+
in: query
|
|
19558
|
+
required: true
|
|
19559
|
+
description: Object type, either table or view
|
|
19560
|
+
schema:
|
|
19561
|
+
type: string
|
|
19562
|
+
- name: databaseName
|
|
19563
|
+
in: query
|
|
19564
|
+
required: true
|
|
19565
|
+
schema:
|
|
19566
|
+
type: string
|
|
19567
|
+
- name: objectName
|
|
19568
|
+
in: query
|
|
19569
|
+
required: true
|
|
19570
|
+
schema:
|
|
19571
|
+
type: string
|
|
19572
|
+
responses:
|
|
19573
|
+
'200':
|
|
19574
|
+
description: Exact column names in catalog order; empty if no visible columns exist
|
|
19575
|
+
content:
|
|
19576
|
+
application/json:
|
|
19577
|
+
schema:
|
|
19578
|
+
type: array
|
|
19579
|
+
items:
|
|
19580
|
+
type: string
|
|
19581
|
+
'400':
|
|
19582
|
+
$ref: '#/components/responses/400'
|
|
19583
|
+
'401':
|
|
19584
|
+
$ref: '#/components/responses/401'
|
|
19585
|
+
'403':
|
|
19586
|
+
$ref: '#/components/responses/403'
|
|
19587
|
+
'404':
|
|
19588
|
+
$ref: '#/components/responses/404'
|
|
19589
|
+
'500':
|
|
19590
|
+
$ref: '#/components/responses/500'
|
|
19401
19591
|
/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects:
|
|
19402
19592
|
get:
|
|
19403
19593
|
tags:
|
|
@@ -40568,6 +40758,20 @@ components:
|
|
|
40568
40758
|
type: array
|
|
40569
40759
|
items:
|
|
40570
40760
|
$ref: '#/components/schemas/ObjectPrivilegeQualifier'
|
|
40761
|
+
ObjectPrivilegeResetStep:
|
|
40762
|
+
type: object
|
|
40763
|
+
description: One ordered, engine-generated step of an account privilege reset.
|
|
40764
|
+
required:
|
|
40765
|
+
- sql
|
|
40766
|
+
properties:
|
|
40767
|
+
databaseName:
|
|
40768
|
+
type: string
|
|
40769
|
+
description: Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
|
|
40770
|
+
sql:
|
|
40771
|
+
type: string
|
|
40772
|
+
x-nullable: false
|
|
40773
|
+
minLength: 1
|
|
40774
|
+
description: Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
|
|
40571
40775
|
ObjectPrivilegeObject:
|
|
40572
40776
|
type: object
|
|
40573
40777
|
required:
|