@aws-sdk/client-marketplace-metering 3.686.0 → 3.691.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.
@@ -36,7 +36,7 @@ export interface UsageAllocation {
36
36
  * this parameter can be left out.</p>
37
37
  * @public
38
38
  */
39
- Tags?: Tag[];
39
+ Tags?: Tag[] | undefined;
40
40
  }
41
41
  /**
42
42
  * <p>A <code>UsageRecord</code> indicates a quantity of usage for a given product,
@@ -71,14 +71,14 @@ export interface UsageRecord {
71
71
  * Defaults to <code>0</code> if not specified.</p>
72
72
  * @public
73
73
  */
74
- Quantity?: number;
74
+ Quantity?: number | undefined;
75
75
  /**
76
76
  * <p>The set of <code>UsageAllocations</code> to submit. The sum of all
77
77
  * <code>UsageAllocation</code> quantities must equal the Quantity of the
78
78
  * <code>UsageRecord</code>.</p>
79
79
  * @public
80
80
  */
81
- UsageAllocations?: UsageAllocation[];
81
+ UsageAllocations?: UsageAllocation[] | undefined;
82
82
  }
83
83
  /**
84
84
  * <p>A <code>BatchMeterUsageRequest</code> contains <code>UsageRecords</code>, which
@@ -123,13 +123,13 @@ export interface UsageRecordResult {
123
123
  * request.</p>
124
124
  * @public
125
125
  */
126
- UsageRecord?: UsageRecord;
126
+ UsageRecord?: UsageRecord | undefined;
127
127
  /**
128
128
  * <p>The <code>MeteringRecordId</code> is a unique identifier for this metering
129
129
  * event.</p>
130
130
  * @public
131
131
  */
132
- MeteringRecordId?: string;
132
+ MeteringRecordId?: string | undefined;
133
133
  /**
134
134
  * <p>The <code>UsageRecordResult</code>
135
135
  * <code>Status</code> indicates the status of an individual <code>UsageRecord</code>
@@ -170,7 +170,7 @@ export interface UsageRecordResult {
170
170
  * </ul>
171
171
  * @public
172
172
  */
173
- Status?: UsageRecordResultStatus;
173
+ Status?: UsageRecordResultStatus | undefined;
174
174
  }
175
175
  /**
176
176
  * <p>Contains the <code>UsageRecords</code> processed by <code>BatchMeterUsage</code> and
@@ -184,7 +184,7 @@ export interface BatchMeterUsageResult {
184
184
  * Invalid records should be fixed before being resubmitted.</p>
185
185
  * @public
186
186
  */
187
- Results?: UsageRecordResult[];
187
+ Results?: UsageRecordResult[] | undefined;
188
188
  /**
189
189
  * <p>Contains all <code>UsageRecords</code> that were not processed by
190
190
  * <code>BatchMeterUsage</code>. This is a list of <code>UsageRecords</code>. You can
@@ -192,7 +192,7 @@ export interface BatchMeterUsageResult {
192
192
  * list as input in the <code>BatchMeterUsageRequest</code>.</p>
193
193
  * @public
194
194
  */
195
- UnprocessedRecords?: UsageRecord[];
195
+ UnprocessedRecords?: UsageRecord[] | undefined;
196
196
  }
197
197
  /**
198
198
  * <p>The API is disabled in the Region.</p>
@@ -379,7 +379,7 @@ export interface MeterUsageRequest {
379
379
  * <p>Consumption value for the hour. Defaults to <code>0</code> if not specified.</p>
380
380
  * @public
381
381
  */
382
- UsageQuantity?: number;
382
+ UsageQuantity?: number | undefined;
383
383
  /**
384
384
  * <p>Checks whether you have the permissions required for the action, but does not make the
385
385
  * request. If you have the permissions, the request returns <code>DryRunOperation</code>;
@@ -387,7 +387,7 @@ export interface MeterUsageRequest {
387
387
  * if not specified.</p>
388
388
  * @public
389
389
  */
390
- DryRun?: boolean;
390
+ DryRun?: boolean | undefined;
391
391
  /**
392
392
  * <p>The set of <code>UsageAllocations</code> to submit.</p>
393
393
  * <p>The sum of all <code>UsageAllocation</code> quantities must equal the
@@ -396,7 +396,7 @@ export interface MeterUsageRequest {
396
396
  * tags).</p>
397
397
  * @public
398
398
  */
399
- UsageAllocations?: UsageAllocation[];
399
+ UsageAllocations?: UsageAllocation[] | undefined;
400
400
  }
401
401
  /**
402
402
  * @public
@@ -406,7 +406,7 @@ export interface MeterUsageResult {
406
406
  * <p>Metering record id.</p>
407
407
  * @public
408
408
  */
409
- MeteringRecordId?: string;
409
+ MeteringRecordId?: string | undefined;
410
410
  }
411
411
  /**
412
412
  * <p>Public Key version is invalid.</p>
@@ -468,7 +468,7 @@ export interface RegisterUsageRequest {
468
468
  * guard against replay attacks.</p>
469
469
  * @public
470
470
  */
471
- Nonce?: string;
471
+ Nonce?: string | undefined;
472
472
  }
473
473
  /**
474
474
  * @public
@@ -478,12 +478,12 @@ export interface RegisterUsageResult {
478
478
  * <p>(Optional) Only included when public key version has expired</p>
479
479
  * @public
480
480
  */
481
- PublicKeyRotationTimestamp?: Date;
481
+ PublicKeyRotationTimestamp?: Date | undefined;
482
482
  /**
483
483
  * <p>JWT Token</p>
484
484
  * @public
485
485
  */
486
- Signature?: string;
486
+ Signature?: string | undefined;
487
487
  }
488
488
  /**
489
489
  * <p>The submitted registration token has expired. This can happen if the buyer's browser
@@ -545,18 +545,18 @@ export interface ResolveCustomerResult {
545
545
  * <code>CustomerIdentifiers</code> for each <code>UsageRecord</code>.</p>
546
546
  * @public
547
547
  */
548
- CustomerIdentifier?: string;
548
+ CustomerIdentifier?: string | undefined;
549
549
  /**
550
550
  * <p>The product code is returned to confirm that the buyer is registering for your
551
551
  * product. Subsequent <code>BatchMeterUsage</code> calls should be made using this product
552
552
  * code.</p>
553
553
  * @public
554
554
  */
555
- ProductCode?: string;
555
+ ProductCode?: string | undefined;
556
556
  /**
557
557
  * <p>The <code>CustomerAWSAccountId</code> provides the AWS account ID associated with the
558
558
  * <code>CustomerIdentifier</code> for the individual customer.</p>
559
559
  * @public
560
560
  */
561
- CustomerAWSAccountId?: string;
561
+ CustomerAWSAccountId?: string | undefined;
562
562
  }
@@ -6,14 +6,14 @@ export interface Tag {
6
6
  }
7
7
  export interface UsageAllocation {
8
8
  AllocatedUsageQuantity: number | undefined;
9
- Tags?: Tag[];
9
+ Tags?: Tag[] | undefined;
10
10
  }
11
11
  export interface UsageRecord {
12
12
  Timestamp: Date | undefined;
13
13
  CustomerIdentifier: string | undefined;
14
14
  Dimension: string | undefined;
15
- Quantity?: number;
16
- UsageAllocations?: UsageAllocation[];
15
+ Quantity?: number | undefined;
16
+ UsageAllocations?: UsageAllocation[] | undefined;
17
17
  }
18
18
  export interface BatchMeterUsageRequest {
19
19
  UsageRecords: UsageRecord[] | undefined;
@@ -27,13 +27,13 @@ export declare const UsageRecordResultStatus: {
27
27
  export type UsageRecordResultStatus =
28
28
  (typeof UsageRecordResultStatus)[keyof typeof UsageRecordResultStatus];
29
29
  export interface UsageRecordResult {
30
- UsageRecord?: UsageRecord;
31
- MeteringRecordId?: string;
32
- Status?: UsageRecordResultStatus;
30
+ UsageRecord?: UsageRecord | undefined;
31
+ MeteringRecordId?: string | undefined;
32
+ Status?: UsageRecordResultStatus | undefined;
33
33
  }
34
34
  export interface BatchMeterUsageResult {
35
- Results?: UsageRecordResult[];
36
- UnprocessedRecords?: UsageRecord[];
35
+ Results?: UsageRecordResult[] | undefined;
36
+ UnprocessedRecords?: UsageRecord[] | undefined;
37
37
  }
38
38
  export declare class DisabledApiException extends __BaseException {
39
39
  readonly name: "DisabledApiException";
@@ -129,12 +129,12 @@ export interface MeterUsageRequest {
129
129
  ProductCode: string | undefined;
130
130
  Timestamp: Date | undefined;
131
131
  UsageDimension: string | undefined;
132
- UsageQuantity?: number;
133
- DryRun?: boolean;
134
- UsageAllocations?: UsageAllocation[];
132
+ UsageQuantity?: number | undefined;
133
+ DryRun?: boolean | undefined;
134
+ UsageAllocations?: UsageAllocation[] | undefined;
135
135
  }
136
136
  export interface MeterUsageResult {
137
- MeteringRecordId?: string;
137
+ MeteringRecordId?: string | undefined;
138
138
  }
139
139
  export declare class InvalidPublicKeyVersionException extends __BaseException {
140
140
  readonly name: "InvalidPublicKeyVersionException";
@@ -163,11 +163,11 @@ export declare class PlatformNotSupportedException extends __BaseException {
163
163
  export interface RegisterUsageRequest {
164
164
  ProductCode: string | undefined;
165
165
  PublicKeyVersion: number | undefined;
166
- Nonce?: string;
166
+ Nonce?: string | undefined;
167
167
  }
168
168
  export interface RegisterUsageResult {
169
- PublicKeyRotationTimestamp?: Date;
170
- Signature?: string;
169
+ PublicKeyRotationTimestamp?: Date | undefined;
170
+ Signature?: string | undefined;
171
171
  }
172
172
  export declare class ExpiredTokenException extends __BaseException {
173
173
  readonly name: "ExpiredTokenException";
@@ -187,7 +187,7 @@ export interface ResolveCustomerRequest {
187
187
  RegistrationToken: string | undefined;
188
188
  }
189
189
  export interface ResolveCustomerResult {
190
- CustomerIdentifier?: string;
191
- ProductCode?: string;
192
- CustomerAWSAccountId?: string;
190
+ CustomerIdentifier?: string | undefined;
191
+ ProductCode?: string | undefined;
192
+ CustomerAWSAccountId?: string | undefined;
193
193
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-metering",
3
3
  "description": "AWS SDK for JavaScript Marketplace Metering Client for Node.js, Browser and React Native",
4
- "version": "3.686.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-marketplace-metering",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.686.0",
24
- "@aws-sdk/client-sts": "3.686.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.686.0",
23
+ "@aws-sdk/client-sso-oidc": "3.691.0",
24
+ "@aws-sdk/client-sts": "3.691.0",
25
+ "@aws-sdk/core": "3.691.0",
26
+ "@aws-sdk/credential-provider-node": "3.691.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.686.0",
30
+ "@aws-sdk/middleware-user-agent": "3.691.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.686.0",
35
+ "@aws-sdk/util-user-agent-node": "3.691.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/fetch-http-handler": "^4.0.0",