mongodb 6.7.0-dev.20240607.sha.aa429f8c → 6.7.0-dev.20240613.sha.c1af6adc

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/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAgF9B,sFAhFO,aAAK,OAgFP;AA/EP,4CAAsD;AA6FpD,qGA7FO,8BAAoB,OA6FP;AA5FtB,gDAA0D;AA8FxD,uGA9FO,kCAAsB,OA8FP;AA7FxB,mDAA+C;AAgF7C,6FAhFO,4BAAY,OAgFP;AA/Ed,6CAA0C;AAiFxC,2FAjFO,uBAAU,OAiFP;AAhFZ,8DAA0D;AAyExD,+FAzEO,gCAAc,OAyEP;AAxEhB,oEAAgE;AA2E9D,kGA3EO,sCAAiB,OA2EP;AA1EnB,sDAAkD;AAgFhD,2FAhFO,wBAAU,OAgFP;AA/EZ,8EAAyE;AAmFvE,sGAnFO,+CAAqB,OAmFP;AAlFvB,sEAAiE;AAmF/D,kGAnFO,uCAAiB,OAmFP;AAjFnB,6BAA0B;AA2ExB,mFA3EO,OAAE,OA2EP;AA1EJ,qCAAwC;AA4EtC,6FA5EO,qBAAY,OA4EP;AA3Ed,gDAA2D;AA4EzD,uGA5EO,iCAAsB,OA4EP;AA3ExB,4CAA0D;AA4ExD,wGA5EO,gCAAuB,OA4EP;AA3EzB,iDAA6C;AA8E3C,4FA9EO,0BAAW,OA8EP;AA7Eb,+CAAkD;AAkEhD,kGAlEO,+BAAiB,OAkEP;AAjEnB,yCAA2C;AAmEzC,8FAnEO,wBAAa,OAmEP;AAjEf,cAAc;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAgBgB;AAfd,8FAAA,MAAM,OAAA;AACN,kGAAA,UAAU,OAAA;AACV,kGAAA,UAAU,OAAA;AACV,gGAAA,QAAQ,OAAA;AAC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AA,4BAA4B,OAAA;AAC5B,kIAAA,wCAAwC,OAAA;AACxC,yGAAA,eAAe,OAAA;AACf,wHAAA,8BAA8B,OAAA;AAC9B,iIAAA,uCAAuC,OAAA;AAkJzC,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA"}
package/mongodb.d.ts CHANGED
@@ -10,17 +10,17 @@ import type { ConnectionOptions as ConnectionOptions_2 , TLSSocket , TLSSocketOp
10
10
 
11
11
  /** @public */
12
12
  export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends AbstractCursorEvents = AbstractCursorEvents> extends TypedEventEmitter<CursorEvents> {
13
- /* Excluded from this release type: [kId] */
14
- /* Excluded from this release type: [kSession] */
15
- /* Excluded from this release type: [kServer] */
16
- /* Excluded from this release type: [kNamespace] */
17
- /* Excluded from this release type: [kDocuments] */
18
- /* Excluded from this release type: [kClient] */
19
- /* Excluded from this release type: [kTransform] */
20
- /* Excluded from this release type: [kInitialized] */
21
- /* Excluded from this release type: [kClosed] */
22
- /* Excluded from this release type: [kKilled] */
23
- /* Excluded from this release type: [kOptions] */
13
+ /* Excluded from this release type: cursorId */
14
+ /* Excluded from this release type: cursorSession */
15
+ /* Excluded from this release type: selectedServer */
16
+ /* Excluded from this release type: cursorNamespace */
17
+ /* Excluded from this release type: documents */
18
+ /* Excluded from this release type: cursorClient */
19
+ /* Excluded from this release type: transform */
20
+ /* Excluded from this release type: initialized */
21
+ /* Excluded from this release type: isClosed */
22
+ /* Excluded from this release type: isKilled */
23
+ /* Excluded from this release type: cursorOptions */
24
24
  /** @event */
25
25
  static readonly CLOSE: "close";
26
26
  /* Excluded from this release type: __constructor */
@@ -33,7 +33,6 @@ export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends
33
33
  get readConcern(): ReadConcern | undefined;
34
34
  /* Excluded from this release type: session */
35
35
  /* Excluded from this release type: session */
36
- /* Excluded from this release type: cursorOptions */
37
36
  get closed(): boolean;
38
37
  get killed(): boolean;
39
38
  get loadBalanced(): boolean;
@@ -153,7 +152,13 @@ export declare abstract class AbstractCursor<TSchema = any, CursorEvents extends
153
152
  abstract clone(): AbstractCursor<TSchema>;
154
153
  /* Excluded from this release type: _initialize */
155
154
  /* Excluded from this release type: getMore */
156
- /* Excluded from this release type: [kInit] */
155
+ /* Excluded from this release type: cursorInit */
156
+ /* Excluded from this release type: fetchBatch */
157
+ /* Excluded from this release type: cleanup */
158
+ /* Excluded from this release type: hasEmittedClose */
159
+ /* Excluded from this release type: emitClose */
160
+ /* Excluded from this release type: transformDocument */
161
+ /* Excluded from this release type: throwIfInitialized */
157
162
  }
158
163
 
159
164
  /** @public */
@@ -351,10 +356,9 @@ export declare interface AggregateOptions extends CommandOperationOptions {
351
356
  * @public
352
357
  */
353
358
  export declare class AggregationCursor<TSchema = any> extends AbstractCursor<TSchema> {
354
- /* Excluded from this release type: [kPipeline] */
355
- /* Excluded from this release type: [kOptions] */
359
+ readonly pipeline: Document[];
360
+ /* Excluded from this release type: aggregateOptions */
356
361
  /* Excluded from this release type: __constructor */
357
- get pipeline(): Document[];
358
362
  clone(): AggregationCursor<TSchema>;
359
363
  map<T>(transform: (doc: TSchema) => T): AggregationCursor<T>;
360
364
  /* Excluded from this release type: _initialize */
@@ -731,6 +735,23 @@ export declare interface AWSEncryptionKeyOptions {
731
735
  endpoint?: string | undefined;
732
736
  }
733
737
 
738
+ /** @public */
739
+ export declare interface AWSKMSProviderConfiguration {
740
+ /**
741
+ * The access key used for the AWS KMS provider
742
+ */
743
+ accessKeyId: string;
744
+ /**
745
+ * The secret access key used for the AWS KMS provider
746
+ */
747
+ secretAccessKey: string;
748
+ /**
749
+ * An optional AWS session token that will be used as the
750
+ * X-Amz-Security-Token header for AWS requests.
751
+ */
752
+ sessionToken?: string;
753
+ }
754
+
734
755
  /**
735
756
  * @public
736
757
  * Configuration options for making an Azure encryption key
@@ -750,6 +771,34 @@ export declare interface AzureEncryptionKeyOptions {
750
771
  keyVersion?: string | undefined;
751
772
  }
752
773
 
774
+ /** @public */
775
+ export declare type AzureKMSProviderConfiguration = {
776
+ /**
777
+ * The tenant ID identifies the organization for the account
778
+ */
779
+ tenantId: string;
780
+ /**
781
+ * The client ID to authenticate a registered application
782
+ */
783
+ clientId: string;
784
+ /**
785
+ * The client secret to authenticate a registered application
786
+ */
787
+ clientSecret: string;
788
+ /**
789
+ * If present, a host with optional port. E.g. "example.com" or "example.com:443".
790
+ * This is optional, and only needed if customer is using a non-commercial Azure instance
791
+ * (e.g. a government or China account, which use different URLs).
792
+ * Defaults to "login.microsoftonline.com"
793
+ */
794
+ identityPlatformEndpoint?: string | undefined;
795
+ } | {
796
+ /**
797
+ * If present, an access token to authenticate with Azure.
798
+ */
799
+ accessToken: string;
800
+ };
801
+
753
802
  /**
754
803
  * Keeps the state of a unordered batch so we can rewrite the results
755
804
  * correctly after command execution
@@ -1766,8 +1815,15 @@ export declare interface ClientEncryptionCreateDataKeyProviderOptions {
1766
1815
 
1767
1816
  /**
1768
1817
  * @public
1818
+ *
1819
+ * A data key provider. Allowed values:
1820
+ *
1821
+ * - aws, gcp, local, kmip or azure
1822
+ * - (`mongodb-client-encryption>=6.0.1` only) a named key, in the form of:
1823
+ * `aws:<name>`, `gcp:<name>`, `local:<name>`, `kmip:<name>`, `azure:<name>`
1824
+ * where `name` is an alphanumeric string, underscores allowed.
1769
1825
  */
1770
- export declare type ClientEncryptionDataKeyProvider = 'aws' | 'azure' | 'gcp' | 'local' | 'kmip';
1826
+ export declare type ClientEncryptionDataKeyProvider = string;
1771
1827
 
1772
1828
  /**
1773
1829
  * @public
@@ -3159,6 +3215,7 @@ export declare type CSFLEKMSTlsOptions = {
3159
3215
  kmip?: ClientEncryptionTlsOptions;
3160
3216
  local?: ClientEncryptionTlsOptions;
3161
3217
  azure?: ClientEncryptionTlsOptions;
3218
+ [key: string]: ClientEncryptionTlsOptions | undefined;
3162
3219
  };
3163
3220
 
3164
3221
  /** @public */
@@ -3653,9 +3710,9 @@ export declare interface FilterOperators<TValue> extends NonObjectIdLikeDocument
3653
3710
 
3654
3711
  /** @public */
3655
3712
  export declare class FindCursor<TSchema = any> extends AbstractCursor<TSchema> {
3656
- /* Excluded from this release type: [kFilter] */
3657
- /* Excluded from this release type: [kNumReturned] */
3658
- /* Excluded from this release type: [kBuiltOptions] */
3713
+ /* Excluded from this release type: cursorFilter */
3714
+ /* Excluded from this release type: numReturned */
3715
+ /* Excluded from this release type: findOptions */
3659
3716
  /* Excluded from this release type: __constructor */
3660
3717
  clone(): FindCursor<TSchema>;
3661
3718
  map<T>(transform: (doc: TSchema) => T): FindCursor<T>;
@@ -3981,6 +4038,28 @@ export declare interface GCPEncryptionKeyOptions {
3981
4038
  endpoint?: string | undefined;
3982
4039
  }
3983
4040
 
4041
+ /** @public */
4042
+ export declare type GCPKMSProviderConfiguration = {
4043
+ /**
4044
+ * The service account email to authenticate
4045
+ */
4046
+ email: string;
4047
+ /**
4048
+ * A PKCS#8 encrypted key. This can either be a base64 string or a binary representation
4049
+ */
4050
+ privateKey: string | Buffer;
4051
+ /**
4052
+ * If present, a host with optional port. E.g. "example.com" or "example.com:443".
4053
+ * Defaults to "oauth2.googleapis.com"
4054
+ */
4055
+ endpoint?: string | undefined;
4056
+ } | {
4057
+ /**
4058
+ * If present, an access token to authenticate with GCP.
4059
+ */
4060
+ accessToken: string;
4061
+ };
4062
+
3984
4063
  /** @public */
3985
4064
  export declare type GenericListener = (...args: any[]) => void;
3986
4065
 
@@ -4426,8 +4505,6 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
4426
4505
 
4427
4506
  /* Excluded from this release type: kBeforeHandshake */
4428
4507
 
4429
- /* Excluded from this release type: kBuiltOptions */
4430
-
4431
4508
  /* Excluded from this release type: kCancellationToken */
4432
4509
 
4433
4510
  /* Excluded from this release type: kCancellationToken_2 */
@@ -4438,12 +4515,8 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
4438
4515
 
4439
4516
  /* Excluded from this release type: kCheckedOut */
4440
4517
 
4441
- /* Excluded from this release type: kClient */
4442
-
4443
4518
  /* Excluded from this release type: kClosed */
4444
4519
 
4445
- /* Excluded from this release type: kClosed_2 */
4446
-
4447
4520
  /* Excluded from this release type: kConnectionCounter */
4448
4521
 
4449
4522
  /* Excluded from this release type: kConnections */
@@ -4452,8 +4525,6 @@ export declare type Join<T extends unknown[], D extends string> = T extends [] ?
4452
4525
 
4453
4526
  /* Excluded from this release type: kDecorateResult */
4454
4527
 
4455
- /* Excluded from this release type: kDocuments */
4456
-
4457
4528
  /* Excluded from this release type: kErrorLabels */
4458
4529
 
4459
4530
  /** @public */
@@ -4466,20 +4537,10 @@ export declare type KeysOfOtherType<TSchema, Type> = {
4466
4537
  [key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? never : key;
4467
4538
  }[keyof TSchema];
4468
4539
 
4469
- /* Excluded from this release type: kFilter */
4470
-
4471
4540
  /* Excluded from this release type: kGeneration */
4472
4541
 
4473
- /* Excluded from this release type: kId */
4474
-
4475
- /* Excluded from this release type: kInit */
4476
-
4477
- /* Excluded from this release type: kInitialized */
4478
-
4479
4542
  /* Excluded from this release type: kInternalClient */
4480
4543
 
4481
- /* Excluded from this release type: kKilled */
4482
-
4483
4544
  /* Excluded from this release type: kMetrics */
4484
4545
 
4485
4546
  /* Excluded from this release type: kMinPoolSizeTimer */
@@ -4507,6 +4568,16 @@ export declare interface KMIPEncryptionKeyOptions {
4507
4568
  delegated?: boolean;
4508
4569
  }
4509
4570
 
4571
+ /** @public */
4572
+ export declare interface KMIPKMSProviderConfiguration {
4573
+ /**
4574
+ * The output endpoint string.
4575
+ * The endpoint consists of a hostname and port separated by a colon.
4576
+ * E.g. "example.com:123". A port is always present.
4577
+ */
4578
+ endpoint?: string;
4579
+ }
4580
+
4510
4581
  /* Excluded from this release type: kMode */
4511
4582
 
4512
4583
  /* Excluded from this release type: kMonitorId */
@@ -4514,117 +4585,39 @@ export declare interface KMIPEncryptionKeyOptions {
4514
4585
  /**
4515
4586
  * @public
4516
4587
  * Configuration options that are used by specific KMS providers during key generation, encryption, and decryption.
4588
+ *
4589
+ * Named KMS providers _are not supported_ for automatic KMS credential fetching.
4517
4590
  */
4518
4591
  export declare interface KMSProviders {
4519
4592
  /**
4520
4593
  * Configuration options for using 'aws' as your KMS provider
4521
4594
  */
4522
- aws?: {
4523
- /**
4524
- * The access key used for the AWS KMS provider
4525
- */
4526
- accessKeyId: string;
4527
- /**
4528
- * The secret access key used for the AWS KMS provider
4529
- */
4530
- secretAccessKey: string;
4531
- /**
4532
- * An optional AWS session token that will be used as the
4533
- * X-Amz-Security-Token header for AWS requests.
4534
- */
4535
- sessionToken?: string;
4536
- } | Record<string, never>;
4595
+ aws?: AWSKMSProviderConfiguration | Record<string, never>;
4537
4596
  /**
4538
4597
  * Configuration options for using 'local' as your KMS provider
4539
4598
  */
4540
- local?: {
4541
- /**
4542
- * The master key used to encrypt/decrypt data keys.
4543
- * A 96-byte long Buffer or base64 encoded string.
4544
- */
4545
- key: Buffer | string;
4546
- };
4599
+ local?: LocalKMSProviderConfiguration;
4547
4600
  /**
4548
4601
  * Configuration options for using 'kmip' as your KMS provider
4549
4602
  */
4550
- kmip?: {
4551
- /**
4552
- * The output endpoint string.
4553
- * The endpoint consists of a hostname and port separated by a colon.
4554
- * E.g. "example.com:123". A port is always present.
4555
- */
4556
- endpoint?: string;
4557
- };
4603
+ kmip?: KMIPKMSProviderConfiguration;
4558
4604
  /**
4559
4605
  * Configuration options for using 'azure' as your KMS provider
4560
4606
  */
4561
- azure?: {
4562
- /**
4563
- * The tenant ID identifies the organization for the account
4564
- */
4565
- tenantId: string;
4566
- /**
4567
- * The client ID to authenticate a registered application
4568
- */
4569
- clientId: string;
4570
- /**
4571
- * The client secret to authenticate a registered application
4572
- */
4573
- clientSecret: string;
4574
- /**
4575
- * If present, a host with optional port. E.g. "example.com" or "example.com:443".
4576
- * This is optional, and only needed if customer is using a non-commercial Azure instance
4577
- * (e.g. a government or China account, which use different URLs).
4578
- * Defaults to "login.microsoftonline.com"
4579
- */
4580
- identityPlatformEndpoint?: string | undefined;
4581
- } | {
4582
- /**
4583
- * If present, an access token to authenticate with Azure.
4584
- */
4585
- accessToken: string;
4586
- } | Record<string, never>;
4607
+ azure?: AzureKMSProviderConfiguration | Record<string, never>;
4587
4608
  /**
4588
4609
  * Configuration options for using 'gcp' as your KMS provider
4589
4610
  */
4590
- gcp?: {
4591
- /**
4592
- * The service account email to authenticate
4593
- */
4594
- email: string;
4595
- /**
4596
- * A PKCS#8 encrypted key. This can either be a base64 string or a binary representation
4597
- */
4598
- privateKey: string | Buffer;
4599
- /**
4600
- * If present, a host with optional port. E.g. "example.com" or "example.com:443".
4601
- * Defaults to "oauth2.googleapis.com"
4602
- */
4603
- endpoint?: string | undefined;
4604
- } | {
4605
- /**
4606
- * If present, an access token to authenticate with GCP.
4607
- */
4608
- accessToken: string;
4609
- } | Record<string, never>;
4611
+ gcp?: GCPKMSProviderConfiguration | Record<string, never>;
4612
+ [key: string]: AWSKMSProviderConfiguration | LocalKMSProviderConfiguration | KMIPKMSProviderConfiguration | AzureKMSProviderConfiguration | GCPKMSProviderConfiguration | undefined;
4610
4613
  }
4611
4614
 
4612
- /* Excluded from this release type: kNamespace */
4613
-
4614
- /* Excluded from this release type: kNumReturned */
4615
-
4616
4615
  /* Excluded from this release type: kOptions */
4617
4616
 
4618
- /* Excluded from this release type: kOptions_2 */
4619
-
4620
- /* Excluded from this release type: kOptions_3 */
4621
-
4622
4617
  /* Excluded from this release type: kPending */
4623
4618
 
4624
4619
  /* Excluded from this release type: kPinnedConnection */
4625
4620
 
4626
- /* Excluded from this release type: kPipeline */
4627
-
4628
4621
  /* Excluded from this release type: kPoolState */
4629
4622
 
4630
4623
  /* Excluded from this release type: kProcessingWaitQueue */
@@ -4633,8 +4626,6 @@ export declare interface KMSProviders {
4633
4626
 
4634
4627
  /* Excluded from this release type: kServer_2 */
4635
4628
 
4636
- /* Excluded from this release type: kServer_3 */
4637
-
4638
4629
  /* Excluded from this release type: kServerError */
4639
4630
 
4640
4631
  /* Excluded from this release type: kServerSession */
@@ -4643,14 +4634,10 @@ export declare interface KMSProviders {
4643
4634
 
4644
4635
  /* Excluded from this release type: kSession */
4645
4636
 
4646
- /* Excluded from this release type: kSession_2 */
4647
-
4648
4637
  /* Excluded from this release type: kSnapshotEnabled */
4649
4638
 
4650
4639
  /* Excluded from this release type: kSnapshotTime */
4651
4640
 
4652
- /* Excluded from this release type: kTransform */
4653
-
4654
4641
  /* Excluded from this release type: kTxnNumberIncrement */
4655
4642
 
4656
4643
  /* Excluded from this release type: kWaitQueue */
@@ -4729,6 +4716,15 @@ export declare class ListSearchIndexesCursor extends AggregationCursor<{
4729
4716
  /** @public */
4730
4717
  export declare type ListSearchIndexesOptions = Omit<AggregateOptions, 'readConcern' | 'writeConcern'>;
4731
4718
 
4719
+ /** @public */
4720
+ export declare interface LocalKMSProviderConfiguration {
4721
+ /**
4722
+ * The master key used to encrypt/decrypt data keys.
4723
+ * A 96-byte long Buffer or base64 encoded string.
4724
+ */
4725
+ key: Buffer | string;
4726
+ }
4727
+
4732
4728
  /* Excluded from this release type: Log */
4733
4729
 
4734
4730
  /* Excluded from this release type: LogComponentSeveritiesClientOptions */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongodb",
3
- "version": "6.7.0-dev.20240607.sha.aa429f8c",
3
+ "version": "6.7.0-dev.20240613.sha.c1af6adc",
4
4
  "description": "The official MongoDB driver for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -4,124 +4,152 @@ import { loadGCPCredentials } from './gcp';
4
4
 
5
5
  /**
6
6
  * @public
7
+ *
8
+ * A data key provider. Allowed values:
9
+ *
10
+ * - aws, gcp, local, kmip or azure
11
+ * - (`mongodb-client-encryption>=6.0.1` only) a named key, in the form of:
12
+ * `aws:<name>`, `gcp:<name>`, `local:<name>`, `kmip:<name>`, `azure:<name>`
13
+ * where `name` is an alphanumeric string, underscores allowed.
7
14
  */
8
- export type ClientEncryptionDataKeyProvider = 'aws' | 'azure' | 'gcp' | 'local' | 'kmip';
15
+ export type ClientEncryptionDataKeyProvider = string;
16
+
17
+ /** @public */
18
+ export interface AWSKMSProviderConfiguration {
19
+ /**
20
+ * The access key used for the AWS KMS provider
21
+ */
22
+ accessKeyId: string;
23
+
24
+ /**
25
+ * The secret access key used for the AWS KMS provider
26
+ */
27
+ secretAccessKey: string;
28
+
29
+ /**
30
+ * An optional AWS session token that will be used as the
31
+ * X-Amz-Security-Token header for AWS requests.
32
+ */
33
+ sessionToken?: string;
34
+ }
35
+
36
+ /** @public */
37
+ export interface LocalKMSProviderConfiguration {
38
+ /**
39
+ * The master key used to encrypt/decrypt data keys.
40
+ * A 96-byte long Buffer or base64 encoded string.
41
+ */
42
+ key: Buffer | string;
43
+ }
44
+
45
+ /** @public */
46
+ export interface KMIPKMSProviderConfiguration {
47
+ /**
48
+ * The output endpoint string.
49
+ * The endpoint consists of a hostname and port separated by a colon.
50
+ * E.g. "example.com:123". A port is always present.
51
+ */
52
+ endpoint?: string;
53
+ }
54
+
55
+ /** @public */
56
+ export type AzureKMSProviderConfiguration =
57
+ | {
58
+ /**
59
+ * The tenant ID identifies the organization for the account
60
+ */
61
+ tenantId: string;
62
+
63
+ /**
64
+ * The client ID to authenticate a registered application
65
+ */
66
+ clientId: string;
67
+
68
+ /**
69
+ * The client secret to authenticate a registered application
70
+ */
71
+ clientSecret: string;
72
+
73
+ /**
74
+ * If present, a host with optional port. E.g. "example.com" or "example.com:443".
75
+ * This is optional, and only needed if customer is using a non-commercial Azure instance
76
+ * (e.g. a government or China account, which use different URLs).
77
+ * Defaults to "login.microsoftonline.com"
78
+ */
79
+ identityPlatformEndpoint?: string | undefined;
80
+ }
81
+ | {
82
+ /**
83
+ * If present, an access token to authenticate with Azure.
84
+ */
85
+ accessToken: string;
86
+ };
87
+
88
+ /** @public */
89
+ export type GCPKMSProviderConfiguration =
90
+ | {
91
+ /**
92
+ * The service account email to authenticate
93
+ */
94
+ email: string;
95
+
96
+ /**
97
+ * A PKCS#8 encrypted key. This can either be a base64 string or a binary representation
98
+ */
99
+ privateKey: string | Buffer;
100
+
101
+ /**
102
+ * If present, a host with optional port. E.g. "example.com" or "example.com:443".
103
+ * Defaults to "oauth2.googleapis.com"
104
+ */
105
+ endpoint?: string | undefined;
106
+ }
107
+ | {
108
+ /**
109
+ * If present, an access token to authenticate with GCP.
110
+ */
111
+ accessToken: string;
112
+ };
9
113
 
10
114
  /**
11
115
  * @public
12
116
  * Configuration options that are used by specific KMS providers during key generation, encryption, and decryption.
117
+ *
118
+ * Named KMS providers _are not supported_ for automatic KMS credential fetching.
13
119
  */
14
120
  export interface KMSProviders {
15
121
  /**
16
122
  * Configuration options for using 'aws' as your KMS provider
17
123
  */
18
- aws?:
19
- | {
20
- /**
21
- * The access key used for the AWS KMS provider
22
- */
23
- accessKeyId: string;
24
-
25
- /**
26
- * The secret access key used for the AWS KMS provider
27
- */
28
- secretAccessKey: string;
29
-
30
- /**
31
- * An optional AWS session token that will be used as the
32
- * X-Amz-Security-Token header for AWS requests.
33
- */
34
- sessionToken?: string;
35
- }
36
- | Record<string, never>;
124
+ aws?: AWSKMSProviderConfiguration | Record<string, never>;
37
125
 
38
126
  /**
39
127
  * Configuration options for using 'local' as your KMS provider
40
128
  */
41
- local?: {
42
- /**
43
- * The master key used to encrypt/decrypt data keys.
44
- * A 96-byte long Buffer or base64 encoded string.
45
- */
46
- key: Buffer | string;
47
- };
129
+ local?: LocalKMSProviderConfiguration;
48
130
 
49
131
  /**
50
132
  * Configuration options for using 'kmip' as your KMS provider
51
133
  */
52
- kmip?: {
53
- /**
54
- * The output endpoint string.
55
- * The endpoint consists of a hostname and port separated by a colon.
56
- * E.g. "example.com:123". A port is always present.
57
- */
58
- endpoint?: string;
59
- };
134
+ kmip?: KMIPKMSProviderConfiguration;
60
135
 
61
136
  /**
62
137
  * Configuration options for using 'azure' as your KMS provider
63
138
  */
64
- azure?:
65
- | {
66
- /**
67
- * The tenant ID identifies the organization for the account
68
- */
69
- tenantId: string;
70
-
71
- /**
72
- * The client ID to authenticate a registered application
73
- */
74
- clientId: string;
75
-
76
- /**
77
- * The client secret to authenticate a registered application
78
- */
79
- clientSecret: string;
80
-
81
- /**
82
- * If present, a host with optional port. E.g. "example.com" or "example.com:443".
83
- * This is optional, and only needed if customer is using a non-commercial Azure instance
84
- * (e.g. a government or China account, which use different URLs).
85
- * Defaults to "login.microsoftonline.com"
86
- */
87
- identityPlatformEndpoint?: string | undefined;
88
- }
89
- | {
90
- /**
91
- * If present, an access token to authenticate with Azure.
92
- */
93
- accessToken: string;
94
- }
95
- | Record<string, never>;
139
+ azure?: AzureKMSProviderConfiguration | Record<string, never>;
96
140
 
97
141
  /**
98
142
  * Configuration options for using 'gcp' as your KMS provider
99
143
  */
100
- gcp?:
101
- | {
102
- /**
103
- * The service account email to authenticate
104
- */
105
- email: string;
106
-
107
- /**
108
- * A PKCS#8 encrypted key. This can either be a base64 string or a binary representation
109
- */
110
- privateKey: string | Buffer;
111
-
112
- /**
113
- * If present, a host with optional port. E.g. "example.com" or "example.com:443".
114
- * Defaults to "oauth2.googleapis.com"
115
- */
116
- endpoint?: string | undefined;
117
- }
118
- | {
119
- /**
120
- * If present, an access token to authenticate with GCP.
121
- */
122
- accessToken: string;
123
- }
124
- | Record<string, never>;
144
+ gcp?: GCPKMSProviderConfiguration | Record<string, never>;
145
+
146
+ [key: string]:
147
+ | AWSKMSProviderConfiguration
148
+ | LocalKMSProviderConfiguration
149
+ | KMIPKMSProviderConfiguration
150
+ | AzureKMSProviderConfiguration
151
+ | GCPKMSProviderConfiguration
152
+ | undefined;
125
153
  }
126
154
 
127
155
  /**