@alicloud/gpdb20160503 1.2.7 → 1.4.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.
package/dist/client.d.ts CHANGED
@@ -1,8 +1,10 @@
1
+ /// <reference types="node" />
1
2
  /**
2
3
  *
3
4
  */
4
5
  import * as $Util from '@alicloud/tea-util';
5
6
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
7
+ import { Readable } from 'stream';
6
8
  import * as $tea from '@alicloud/tea-typescript';
7
9
  export declare class AllocateInstancePublicConnectionRequest extends $tea.Model {
8
10
  addressType?: string;
@@ -50,6 +52,54 @@ export declare class AllocateInstancePublicConnectionResponse extends $tea.Model
50
52
  [key: string]: any;
51
53
  });
52
54
  }
55
+ export declare class CancelUpsertCollectionDataJobRequest extends $tea.Model {
56
+ collection?: string;
57
+ DBInstanceId?: string;
58
+ jobId?: string;
59
+ namespace?: string;
60
+ namespacePassword?: string;
61
+ ownerId?: number;
62
+ regionId?: string;
63
+ static names(): {
64
+ [key: string]: string;
65
+ };
66
+ static types(): {
67
+ [key: string]: any;
68
+ };
69
+ constructor(map?: {
70
+ [key: string]: any;
71
+ });
72
+ }
73
+ export declare class CancelUpsertCollectionDataJobResponseBody extends $tea.Model {
74
+ message?: string;
75
+ requestId?: string;
76
+ status?: string;
77
+ static names(): {
78
+ [key: string]: string;
79
+ };
80
+ static types(): {
81
+ [key: string]: any;
82
+ };
83
+ constructor(map?: {
84
+ [key: string]: any;
85
+ });
86
+ }
87
+ export declare class CancelUpsertCollectionDataJobResponse extends $tea.Model {
88
+ headers: {
89
+ [key: string]: string;
90
+ };
91
+ statusCode: number;
92
+ body: CancelUpsertCollectionDataJobResponseBody;
93
+ static names(): {
94
+ [key: string]: string;
95
+ };
96
+ static types(): {
97
+ [key: string]: any;
98
+ };
99
+ constructor(map?: {
100
+ [key: string]: any;
101
+ });
102
+ }
53
103
  export declare class CheckServiceLinkedRoleRequest extends $tea.Model {
54
104
  regionId?: string;
55
105
  static names(): {
@@ -142,6 +192,7 @@ export declare class CreateCollectionRequest extends $tea.Model {
142
192
  collection?: string;
143
193
  DBInstanceId?: string;
144
194
  dimension?: number;
195
+ externalStorage?: number;
145
196
  fullTextRetrievalFields?: string;
146
197
  hnswM?: number;
147
198
  managerAccount?: string;
@@ -332,6 +383,7 @@ export declare class CreateDocumentCollectionRequest extends $tea.Model {
332
383
  collection?: string;
333
384
  DBInstanceId?: string;
334
385
  embeddingModel?: string;
386
+ externalStorage?: number;
335
387
  fullTextRetrievalFields?: string;
336
388
  hnswM?: number;
337
389
  managerAccount?: string;
@@ -520,6 +572,7 @@ export declare class CreateVectorIndexRequest extends $tea.Model {
520
572
  collection?: string;
521
573
  DBInstanceId?: string;
522
574
  dimension?: number;
575
+ externalStorage?: number;
523
576
  hnswM?: number;
524
577
  managerAccount?: string;
525
578
  managerAccountPassword?: string;
@@ -986,6 +1039,56 @@ export declare class DescribeAccountsResponse extends $tea.Model {
986
1039
  [key: string]: any;
987
1040
  });
988
1041
  }
1042
+ export declare class DescribeActiveSQLRecordsRequest extends $tea.Model {
1043
+ DBInstanceId?: string;
1044
+ database?: string;
1045
+ endTime?: string;
1046
+ keyword?: string;
1047
+ maxDuration?: string;
1048
+ minDuration?: string;
1049
+ order?: string;
1050
+ startTime?: string;
1051
+ user?: string;
1052
+ static names(): {
1053
+ [key: string]: string;
1054
+ };
1055
+ static types(): {
1056
+ [key: string]: any;
1057
+ };
1058
+ constructor(map?: {
1059
+ [key: string]: any;
1060
+ });
1061
+ }
1062
+ export declare class DescribeActiveSQLRecordsResponseBody extends $tea.Model {
1063
+ DBInstanceId?: string;
1064
+ queries?: DescribeActiveSQLRecordsResponseBodyQueries[];
1065
+ requestId?: string;
1066
+ static names(): {
1067
+ [key: string]: string;
1068
+ };
1069
+ static types(): {
1070
+ [key: string]: any;
1071
+ };
1072
+ constructor(map?: {
1073
+ [key: string]: any;
1074
+ });
1075
+ }
1076
+ export declare class DescribeActiveSQLRecordsResponse extends $tea.Model {
1077
+ headers: {
1078
+ [key: string]: string;
1079
+ };
1080
+ statusCode: number;
1081
+ body: DescribeActiveSQLRecordsResponseBody;
1082
+ static names(): {
1083
+ [key: string]: string;
1084
+ };
1085
+ static types(): {
1086
+ [key: string]: any;
1087
+ };
1088
+ constructor(map?: {
1089
+ [key: string]: any;
1090
+ });
1091
+ }
989
1092
  export declare class DescribeAvailableResourcesRequest extends $tea.Model {
990
1093
  chargeType?: string;
991
1094
  region?: string;
@@ -3396,6 +3499,55 @@ export declare class DownloadSQLLogsRecordsResponse extends $tea.Model {
3396
3499
  [key: string]: any;
3397
3500
  });
3398
3501
  }
3502
+ export declare class GetUpsertCollectionDataJobRequest extends $tea.Model {
3503
+ collection?: string;
3504
+ DBInstanceId?: string;
3505
+ jobId?: string;
3506
+ namespace?: string;
3507
+ namespacePassword?: string;
3508
+ ownerId?: number;
3509
+ regionId?: string;
3510
+ static names(): {
3511
+ [key: string]: string;
3512
+ };
3513
+ static types(): {
3514
+ [key: string]: any;
3515
+ };
3516
+ constructor(map?: {
3517
+ [key: string]: any;
3518
+ });
3519
+ }
3520
+ export declare class GetUpsertCollectionDataJobResponseBody extends $tea.Model {
3521
+ job?: GetUpsertCollectionDataJobResponseBodyJob;
3522
+ message?: string;
3523
+ requestId?: string;
3524
+ status?: string;
3525
+ static names(): {
3526
+ [key: string]: string;
3527
+ };
3528
+ static types(): {
3529
+ [key: string]: any;
3530
+ };
3531
+ constructor(map?: {
3532
+ [key: string]: any;
3533
+ });
3534
+ }
3535
+ export declare class GetUpsertCollectionDataJobResponse extends $tea.Model {
3536
+ headers: {
3537
+ [key: string]: string;
3538
+ };
3539
+ statusCode: number;
3540
+ body: GetUpsertCollectionDataJobResponseBody;
3541
+ static names(): {
3542
+ [key: string]: string;
3543
+ };
3544
+ static types(): {
3545
+ [key: string]: any;
3546
+ };
3547
+ constructor(map?: {
3548
+ [key: string]: any;
3549
+ });
3550
+ }
3399
3551
  export declare class GrantCollectionRequest extends $tea.Model {
3400
3552
  collection?: string;
3401
3553
  DBInstanceId?: string;
@@ -4478,6 +4630,32 @@ export declare class QueryContentRequest extends $tea.Model {
4478
4630
  collection?: string;
4479
4631
  content?: string;
4480
4632
  DBInstanceId?: string;
4633
+ fileName?: string;
4634
+ fileUrl?: string;
4635
+ filter?: string;
4636
+ metrics?: string;
4637
+ namespace?: string;
4638
+ namespacePassword?: string;
4639
+ ownerId?: number;
4640
+ regionId?: string;
4641
+ topK?: number;
4642
+ useFullTextRetrieval?: boolean;
4643
+ static names(): {
4644
+ [key: string]: string;
4645
+ };
4646
+ static types(): {
4647
+ [key: string]: any;
4648
+ };
4649
+ constructor(map?: {
4650
+ [key: string]: any;
4651
+ });
4652
+ }
4653
+ export declare class QueryContentAdvanceRequest extends $tea.Model {
4654
+ collection?: string;
4655
+ content?: string;
4656
+ DBInstanceId?: string;
4657
+ fileName?: string;
4658
+ fileUrlObject?: Readable;
4481
4659
  filter?: string;
4482
4660
  metrics?: string;
4483
4661
  namespace?: string;
@@ -4502,6 +4680,7 @@ export declare class QueryContentResponseBody extends $tea.Model {
4502
4680
  message?: string;
4503
4681
  requestId?: string;
4504
4682
  status?: string;
4683
+ usage?: QueryContentResponseBodyUsage;
4505
4684
  static names(): {
4506
4685
  [key: string]: string;
4507
4686
  };
@@ -5430,6 +5609,73 @@ export declare class UpsertCollectionDataResponse extends $tea.Model {
5430
5609
  [key: string]: any;
5431
5610
  });
5432
5611
  }
5612
+ export declare class UpsertCollectionDataAsyncRequest extends $tea.Model {
5613
+ collection?: string;
5614
+ DBInstanceId?: string;
5615
+ fileUrl?: string;
5616
+ namespace?: string;
5617
+ namespacePassword?: string;
5618
+ ownerId?: number;
5619
+ regionId?: string;
5620
+ static names(): {
5621
+ [key: string]: string;
5622
+ };
5623
+ static types(): {
5624
+ [key: string]: any;
5625
+ };
5626
+ constructor(map?: {
5627
+ [key: string]: any;
5628
+ });
5629
+ }
5630
+ export declare class UpsertCollectionDataAsyncAdvanceRequest extends $tea.Model {
5631
+ collection?: string;
5632
+ DBInstanceId?: string;
5633
+ fileUrlObject?: Readable;
5634
+ namespace?: string;
5635
+ namespacePassword?: string;
5636
+ ownerId?: number;
5637
+ regionId?: string;
5638
+ static names(): {
5639
+ [key: string]: string;
5640
+ };
5641
+ static types(): {
5642
+ [key: string]: any;
5643
+ };
5644
+ constructor(map?: {
5645
+ [key: string]: any;
5646
+ });
5647
+ }
5648
+ export declare class UpsertCollectionDataAsyncResponseBody extends $tea.Model {
5649
+ jobId?: string;
5650
+ message?: string;
5651
+ requestId?: string;
5652
+ status?: string;
5653
+ static names(): {
5654
+ [key: string]: string;
5655
+ };
5656
+ static types(): {
5657
+ [key: string]: any;
5658
+ };
5659
+ constructor(map?: {
5660
+ [key: string]: any;
5661
+ });
5662
+ }
5663
+ export declare class UpsertCollectionDataAsyncResponse extends $tea.Model {
5664
+ headers: {
5665
+ [key: string]: string;
5666
+ };
5667
+ statusCode: number;
5668
+ body: UpsertCollectionDataAsyncResponseBody;
5669
+ static names(): {
5670
+ [key: string]: string;
5671
+ };
5672
+ static types(): {
5673
+ [key: string]: any;
5674
+ };
5675
+ constructor(map?: {
5676
+ [key: string]: any;
5677
+ });
5678
+ }
5433
5679
  export declare class CreateDBInstanceRequestTag extends $tea.Model {
5434
5680
  key?: string;
5435
5681
  value?: string;
@@ -5470,6 +5716,28 @@ export declare class DescribeAccountsResponseBodyAccounts extends $tea.Model {
5470
5716
  [key: string]: any;
5471
5717
  });
5472
5718
  }
5719
+ export declare class DescribeActiveSQLRecordsResponseBodyQueries extends $tea.Model {
5720
+ clientAddr?: string;
5721
+ database?: string;
5722
+ PID?: string;
5723
+ query?: string;
5724
+ queryDuration?: string;
5725
+ queryStart?: string;
5726
+ sessionID?: string;
5727
+ sqlTruncated?: string;
5728
+ sqlTruncatedThreshold?: string;
5729
+ state?: string;
5730
+ user?: string;
5731
+ static names(): {
5732
+ [key: string]: string;
5733
+ };
5734
+ static types(): {
5735
+ [key: string]: any;
5736
+ };
5737
+ constructor(map?: {
5738
+ [key: string]: any;
5739
+ });
5740
+ }
5473
5741
  export declare class DescribeAvailableResourcesResponseBodyResourcesSupportedEnginesSupportedInstanceClassesNodeCount extends $tea.Model {
5474
5742
  maxCount?: string;
5475
5743
  minCount?: string;
@@ -6825,6 +7093,24 @@ export declare class DescribeWaitingSQLRecordsResponseBodyItems extends $tea.Mod
6825
7093
  [key: string]: any;
6826
7094
  });
6827
7095
  }
7096
+ export declare class GetUpsertCollectionDataJobResponseBodyJob extends $tea.Model {
7097
+ completed?: boolean;
7098
+ createTime?: string;
7099
+ error?: string;
7100
+ id?: string;
7101
+ progress?: number;
7102
+ status?: string;
7103
+ updateTime?: string;
7104
+ static names(): {
7105
+ [key: string]: string;
7106
+ };
7107
+ static types(): {
7108
+ [key: string]: any;
7109
+ };
7110
+ constructor(map?: {
7111
+ [key: string]: any;
7112
+ });
7113
+ }
6828
7114
  export declare class HandleActiveSQLRecordResponseBodyResults extends $tea.Model {
6829
7115
  pid?: string;
6830
7116
  status?: string;
@@ -7013,6 +7299,7 @@ export declare class QueryContentResponseBodyMatchesMatchListVector extends $tea
7013
7299
  export declare class QueryContentResponseBodyMatchesMatchList extends $tea.Model {
7014
7300
  content?: string;
7015
7301
  fileName?: string;
7302
+ fileURL?: string;
7016
7303
  id?: string;
7017
7304
  loaderMetadata?: string;
7018
7305
  metadata?: {
@@ -7043,6 +7330,19 @@ export declare class QueryContentResponseBodyMatches extends $tea.Model {
7043
7330
  [key: string]: any;
7044
7331
  });
7045
7332
  }
7333
+ export declare class QueryContentResponseBodyUsage extends $tea.Model {
7334
+ embeddingEntries?: string;
7335
+ embeddingTokens?: string;
7336
+ static names(): {
7337
+ [key: string]: string;
7338
+ };
7339
+ static types(): {
7340
+ [key: string]: any;
7341
+ };
7342
+ constructor(map?: {
7343
+ [key: string]: any;
7344
+ });
7345
+ }
7046
7346
  export declare class TagResourcesRequestTag extends $tea.Model {
7047
7347
  key?: string;
7048
7348
  value?: string;
@@ -7111,6 +7411,8 @@ export default class Client extends OpenApi {
7111
7411
  * @return AllocateInstancePublicConnectionResponse
7112
7412
  */
7113
7413
  allocateInstancePublicConnection(request: AllocateInstancePublicConnectionRequest): Promise<AllocateInstancePublicConnectionResponse>;
7414
+ cancelUpsertCollectionDataJobWithOptions(request: CancelUpsertCollectionDataJobRequest, runtime: $Util.RuntimeOptions): Promise<CancelUpsertCollectionDataJobResponse>;
7415
+ cancelUpsertCollectionDataJob(request: CancelUpsertCollectionDataJobRequest): Promise<CancelUpsertCollectionDataJobResponse>;
7114
7416
  checkServiceLinkedRoleWithOptions(request: CheckServiceLinkedRoleRequest, runtime: $Util.RuntimeOptions): Promise<CheckServiceLinkedRoleResponse>;
7115
7417
  checkServiceLinkedRole(request: CheckServiceLinkedRoleRequest): Promise<CheckServiceLinkedRoleResponse>;
7116
7418
  /**
@@ -7284,6 +7586,8 @@ export default class Client extends OpenApi {
7284
7586
  * @return DescribeAccountsResponse
7285
7587
  */
7286
7588
  describeAccounts(request: DescribeAccountsRequest): Promise<DescribeAccountsResponse>;
7589
+ describeActiveSQLRecordsWithOptions(request: DescribeActiveSQLRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeActiveSQLRecordsResponse>;
7590
+ describeActiveSQLRecords(request: DescribeActiveSQLRecordsRequest): Promise<DescribeActiveSQLRecordsResponse>;
7287
7591
  /**
7288
7592
  * When you create an AnalyticDB for PostgreSQL instance, you can call this operation to query the available resources within a zone.
7289
7593
  *
@@ -7915,6 +8219,8 @@ export default class Client extends OpenApi {
7915
8219
  downloadDiagnosisRecords(request: DownloadDiagnosisRecordsRequest): Promise<DownloadDiagnosisRecordsResponse>;
7916
8220
  downloadSQLLogsRecordsWithOptions(request: DownloadSQLLogsRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DownloadSQLLogsRecordsResponse>;
7917
8221
  downloadSQLLogsRecords(request: DownloadSQLLogsRecordsRequest): Promise<DownloadSQLLogsRecordsResponse>;
8222
+ getUpsertCollectionDataJobWithOptions(request: GetUpsertCollectionDataJobRequest, runtime: $Util.RuntimeOptions): Promise<GetUpsertCollectionDataJobResponse>;
8223
+ getUpsertCollectionDataJob(request: GetUpsertCollectionDataJobRequest): Promise<GetUpsertCollectionDataJobResponse>;
7918
8224
  grantCollectionWithOptions(request: GrantCollectionRequest, runtime: $Util.RuntimeOptions): Promise<GrantCollectionResponse>;
7919
8225
  grantCollection(request: GrantCollectionRequest): Promise<GrantCollectionResponse>;
7920
8226
  handleActiveSQLRecordWithOptions(request: HandleActiveSQLRecordRequest, runtime: $Util.RuntimeOptions): Promise<HandleActiveSQLRecordResponse>;
@@ -8065,6 +8371,7 @@ export default class Client extends OpenApi {
8065
8371
  queryCollectionData(request: QueryCollectionDataRequest): Promise<QueryCollectionDataResponse>;
8066
8372
  queryContentWithOptions(request: QueryContentRequest, runtime: $Util.RuntimeOptions): Promise<QueryContentResponse>;
8067
8373
  queryContent(request: QueryContentRequest): Promise<QueryContentResponse>;
8374
+ queryContentAdvance(request: QueryContentAdvanceRequest, runtime: $Util.RuntimeOptions): Promise<QueryContentResponse>;
8068
8375
  rebalanceDBInstanceWithOptions(request: RebalanceDBInstanceRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceDBInstanceResponse>;
8069
8376
  rebalanceDBInstance(request: RebalanceDBInstanceRequest): Promise<RebalanceDBInstanceResponse>;
8070
8377
  releaseInstancePublicConnectionWithOptions(request: ReleaseInstancePublicConnectionRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseInstancePublicConnectionResponse>;
@@ -8222,4 +8529,7 @@ export default class Client extends OpenApi {
8222
8529
  upsertChunks(request: UpsertChunksRequest): Promise<UpsertChunksResponse>;
8223
8530
  upsertCollectionDataWithOptions(tmpReq: UpsertCollectionDataRequest, runtime: $Util.RuntimeOptions): Promise<UpsertCollectionDataResponse>;
8224
8531
  upsertCollectionData(request: UpsertCollectionDataRequest): Promise<UpsertCollectionDataResponse>;
8532
+ upsertCollectionDataAsyncWithOptions(request: UpsertCollectionDataAsyncRequest, runtime: $Util.RuntimeOptions): Promise<UpsertCollectionDataAsyncResponse>;
8533
+ upsertCollectionDataAsync(request: UpsertCollectionDataAsyncRequest): Promise<UpsertCollectionDataAsyncResponse>;
8534
+ upsertCollectionDataAsyncAdvance(request: UpsertCollectionDataAsyncAdvanceRequest, runtime: $Util.RuntimeOptions): Promise<UpsertCollectionDataAsyncResponse>;
8225
8535
  }