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.
Files changed (55) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +310 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +303 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +310 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +303 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +310 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +303 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/index.d.ts +1 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +1 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
  18. package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
  19. package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
  20. package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
  21. package/dist/openapi/apis/account-api.d.ts +310 -0
  22. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  23. package/dist/openapi/apis/account-api.js +303 -0
  24. package/dist/openapi/apis/account-api.js.map +1 -1
  25. package/dist/openapi/apis/rdbms-api.d.ts +310 -0
  26. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/rdbms-api.js +303 -0
  28. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  29. package/dist/openapi/apis/shared-api.d.ts +310 -0
  30. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/shared-api.js +303 -0
  32. package/dist/openapi/apis/shared-api.js.map +1 -1
  33. package/dist/openapi/models/index.d.ts +1 -0
  34. package/dist/openapi/models/index.d.ts.map +1 -1
  35. package/dist/openapi/models/index.js +1 -0
  36. package/dist/openapi/models/index.js.map +1 -1
  37. package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
  38. package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
  39. package/dist/openapi/models/object-privilege-reset-step.js +16 -0
  40. package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
  41. package/package.json +1 -1
  42. package/src/adminapi/.openapi-generator/FILES +1 -0
  43. package/src/adminapi/apis/account-api.ts +533 -0
  44. package/src/adminapi/apis/rdbms-api.ts +533 -0
  45. package/src/adminapi/apis/shared-api.ts +533 -0
  46. package/src/adminapi/models/index.ts +1 -0
  47. package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
  48. package/src/adminapi.yaml +204 -0
  49. package/src/openapi/.openapi-generator/FILES +1 -0
  50. package/src/openapi/apis/account-api.ts +533 -0
  51. package/src/openapi/apis/rdbms-api.ts +533 -0
  52. package/src/openapi/apis/shared-api.ts +533 -0
  53. package/src/openapi/models/index.ts +1 -0
  54. package/src/openapi/models/object-privilege-reset-step.ts +36 -0
  55. package/src/openapi.yaml +204 -0
@@ -763,6 +763,7 @@ export * from './object-privilege-object-list';
763
763
  export * from './object-privilege-prerequisite-check';
764
764
  export * from './object-privilege-prerequisite-status';
765
765
  export * from './object-privilege-qualifier';
766
+ export * from './object-privilege-reset-step';
766
767
  export * from './object-privilege-snapshot';
767
768
  export * from './object-privilege-spec';
768
769
  export * from './object-privilege-subject';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
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/adminapi.yaml CHANGED
@@ -24122,6 +24122,196 @@ paths:
24122
24122
  $ref: '#/components/responses/404'
24123
24123
  '500':
24124
24124
  $ref: '#/components/responses/500'
24125
+ /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
24126
+ get:
24127
+ tags:
24128
+ - account
24129
+ - rdbms
24130
+ - shared
24131
+ summary: Preview clearing all MySQL account privileges
24132
+ operationId: previewAccountPrivilegeReset
24133
+ 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.
24134
+ parameters:
24135
+ - name: engineName
24136
+ in: path
24137
+ required: true
24138
+ schema:
24139
+ type: string
24140
+ - name: orgName
24141
+ in: path
24142
+ required: true
24143
+ schema:
24144
+ type: string
24145
+ - name: clusterName
24146
+ in: path
24147
+ required: true
24148
+ schema:
24149
+ type: string
24150
+ - name: accountName
24151
+ in: path
24152
+ required: true
24153
+ schema:
24154
+ type: string
24155
+ - name: subjectType
24156
+ in: query
24157
+ required: false
24158
+ schema:
24159
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
24160
+ description: Native subject kind; path account name identifies the subject.
24161
+ - name: host
24162
+ in: query
24163
+ required: false
24164
+ schema:
24165
+ type: string
24166
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
24167
+ - name: subjectQualifiers
24168
+ in: query
24169
+ schema:
24170
+ type: string
24171
+ description: JSON identity qualifiers; MySQL host defaults to %.
24172
+ responses:
24173
+ '200':
24174
+ description: Server-generated steps with connection database, in execution order
24175
+ content:
24176
+ application/json:
24177
+ schema:
24178
+ type: array
24179
+ items:
24180
+ $ref: '#/components/schemas/ObjectPrivilegeResetStep'
24181
+ '400':
24182
+ $ref: '#/components/responses/400'
24183
+ '401':
24184
+ $ref: '#/components/responses/401'
24185
+ '403':
24186
+ $ref: '#/components/responses/403'
24187
+ '404':
24188
+ $ref: '#/components/responses/404'
24189
+ '500':
24190
+ $ref: '#/components/responses/500'
24191
+ delete:
24192
+ tags:
24193
+ - account
24194
+ - rdbms
24195
+ - shared
24196
+ summary: Clear all MySQL account privileges
24197
+ operationId: resetAccountPrivileges
24198
+ 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.
24199
+ parameters:
24200
+ - name: engineName
24201
+ in: path
24202
+ required: true
24203
+ schema:
24204
+ type: string
24205
+ - name: orgName
24206
+ in: path
24207
+ required: true
24208
+ schema:
24209
+ type: string
24210
+ - name: clusterName
24211
+ in: path
24212
+ required: true
24213
+ schema:
24214
+ type: string
24215
+ - name: accountName
24216
+ in: path
24217
+ required: true
24218
+ schema:
24219
+ type: string
24220
+ - name: subjectType
24221
+ in: query
24222
+ required: false
24223
+ schema:
24224
+ $ref: '#/components/schemas/ObjectPrivilegeSubjectType'
24225
+ description: Native subject kind; path account name identifies the subject.
24226
+ - name: host
24227
+ in: query
24228
+ required: false
24229
+ schema:
24230
+ type: string
24231
+ description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
24232
+ - name: subjectQualifiers
24233
+ in: query
24234
+ schema:
24235
+ type: string
24236
+ description: JSON identity qualifiers; MySQL host defaults to %.
24237
+ responses:
24238
+ '204':
24239
+ description: Privileges cleared; account and password preserved
24240
+ '400':
24241
+ $ref: '#/components/responses/400'
24242
+ '401':
24243
+ $ref: '#/components/responses/401'
24244
+ '403':
24245
+ $ref: '#/components/responses/403'
24246
+ '404':
24247
+ $ref: '#/components/responses/404'
24248
+ '500':
24249
+ $ref: '#/components/responses/500'
24250
+ /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
24251
+ get:
24252
+ tags:
24253
+ - account
24254
+ - rdbms
24255
+ - shared
24256
+ summary: List exact column names for account object privileges
24257
+ operationId: listAccountObjectPrivilegeColumns
24258
+ 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.
24259
+ parameters:
24260
+ - name: engineName
24261
+ in: path
24262
+ required: true
24263
+ schema:
24264
+ type: string
24265
+ - name: orgName
24266
+ in: path
24267
+ required: true
24268
+ schema:
24269
+ type: string
24270
+ - name: clusterName
24271
+ in: path
24272
+ required: true
24273
+ schema:
24274
+ type: string
24275
+ - name: accountName
24276
+ in: path
24277
+ required: true
24278
+ schema:
24279
+ type: string
24280
+ - name: objectType
24281
+ in: query
24282
+ required: true
24283
+ description: Object type, either table or view
24284
+ schema:
24285
+ type: string
24286
+ - name: databaseName
24287
+ in: query
24288
+ required: true
24289
+ schema:
24290
+ type: string
24291
+ - name: objectName
24292
+ in: query
24293
+ required: true
24294
+ schema:
24295
+ type: string
24296
+ responses:
24297
+ '200':
24298
+ description: Exact column names in catalog order; empty if no visible columns exist
24299
+ content:
24300
+ application/json:
24301
+ schema:
24302
+ type: array
24303
+ items:
24304
+ type: string
24305
+ '400':
24306
+ $ref: '#/components/responses/400'
24307
+ '401':
24308
+ $ref: '#/components/responses/401'
24309
+ '403':
24310
+ $ref: '#/components/responses/403'
24311
+ '404':
24312
+ $ref: '#/components/responses/404'
24313
+ '500':
24314
+ $ref: '#/components/responses/500'
24125
24315
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects:
24126
24316
  get:
24127
24317
  tags:
@@ -47136,6 +47326,20 @@ components:
47136
47326
  type: array
47137
47327
  items:
47138
47328
  $ref: '#/components/schemas/ObjectPrivilegeQualifier'
47329
+ ObjectPrivilegeResetStep:
47330
+ type: object
47331
+ description: One ordered, engine-generated step of an account privilege reset.
47332
+ required:
47333
+ - sql
47334
+ properties:
47335
+ databaseName:
47336
+ type: string
47337
+ 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.
47338
+ sql:
47339
+ type: string
47340
+ x-nullable: false
47341
+ minLength: 1
47342
+ description: Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
47139
47343
  ObjectPrivilegeObject:
47140
47344
  type: object
47141
47345
  required:
@@ -764,6 +764,7 @@ models/object-privilege-object.ts
764
764
  models/object-privilege-prerequisite-check.ts
765
765
  models/object-privilege-prerequisite-status.ts
766
766
  models/object-privilege-qualifier.ts
767
+ models/object-privilege-reset-step.ts
767
768
  models/object-privilege-snapshot.ts
768
769
  models/object-privilege-spec.ts
769
770
  models/object-privilege-subject-type.ts