@openmeter/client 1.0.0-beta-8eb475ed10bc → 1.0.0-beta-89a54f59c65e

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.
@@ -858,7 +858,7 @@ export interface Event {
858
858
  */
859
859
  subject: string;
860
860
  /** Timestamp of when the occurrence happened. Must adhere to RFC 3339. */
861
- time?: string | null;
861
+ time?: Date | null;
862
862
  /** The event payload. Optional, if present it must be a JSON object. */
863
863
  data?: Record<string, unknown> | null;
864
864
  }
@@ -867,9 +867,9 @@ export interface MeterQueryRow {
867
867
  /** The aggregated value. */
868
868
  value: string;
869
869
  /** The start of the time bucket the value is aggregated over. */
870
- from: string;
870
+ from: Date;
871
871
  /** The end of the time bucket the value is aggregated over. */
872
- to: string;
872
+ to: Date;
873
873
  /**
874
874
  * The dimensions the value is aggregated over. `subject` and `customer_id` are
875
875
  * reserved dimensions.
@@ -913,7 +913,7 @@ export interface AppStripeCreateCustomerPortalSessionResult {
913
913
  * See:
914
914
  * https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-created
915
915
  */
916
- createdAt: string;
916
+ createdAt: Date;
917
917
  /**
918
918
  * Return URL.
919
919
  *
@@ -945,20 +945,20 @@ export interface ClosedPeriod {
945
945
  *
946
946
  * The period is inclusive at the start.
947
947
  */
948
- from: string;
948
+ from: Date;
949
949
  /**
950
950
  * The end of the period.
951
951
  *
952
952
  * The period is exclusive at the end.
953
953
  */
954
- to: string;
954
+ to: Date;
955
955
  }
956
956
  /** A subscription add-on event. */
957
957
  export interface SubscriptionAddonTimelineSegment {
958
958
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
959
- activeFrom: string;
959
+ activeFrom: Date;
960
960
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
961
- activeTo?: string;
961
+ activeTo?: Date;
962
962
  /** The quantity of the add-on for the given period. */
963
963
  quantity: number;
964
964
  }
@@ -973,13 +973,13 @@ export interface UpdateClosedPeriod {
973
973
  *
974
974
  * The period is inclusive at the start.
975
975
  */
976
- from: string;
976
+ from: Date;
977
977
  /**
978
978
  * The end of the period.
979
979
  *
980
980
  * The period is exclusive at the end.
981
981
  */
982
- to: string;
982
+ to: Date;
983
983
  }
984
984
  /** Describes currency basis supported by billing system. */
985
985
  export interface CostBasis {
@@ -993,15 +993,15 @@ export interface CostBasis {
993
993
  * effective. If not provided, it will be effective immediately and will be set to
994
994
  * `now` by the system.
995
995
  */
996
- effectiveFrom?: string;
996
+ effectiveFrom?: Date;
997
997
  /**
998
998
  * An ISO-8601 timestamp representation of the date until which the cost basis is
999
999
  * effective. If provided, it must be later than `effective_from`. If not provided,
1000
1000
  * it remains effective until superseded.
1001
1001
  */
1002
- effectiveTo?: string;
1002
+ effectiveTo?: Date;
1003
1003
  /** An ISO-8601 timestamp representation of entity creation date. */
1004
- createdAt: string;
1004
+ createdAt: Date;
1005
1005
  }
1006
1006
  /** CostBasis create request. */
1007
1007
  export interface CreateCostBasisRequest {
@@ -1014,13 +1014,13 @@ export interface CreateCostBasisRequest {
1014
1014
  * effective. If not provided, it will be effective immediately and will be set to
1015
1015
  * `now` by the system.
1016
1016
  */
1017
- effectiveFrom?: string;
1017
+ effectiveFrom?: Date;
1018
1018
  /**
1019
1019
  * An ISO-8601 timestamp representation of the date until which the cost basis is
1020
1020
  * effective. If provided, it must be later than `effective_from`. If not provided,
1021
1021
  * it remains effective until superseded.
1022
1022
  */
1023
- effectiveTo?: string;
1023
+ effectiveTo?: Date;
1024
1024
  }
1025
1025
  /** A row in the result of a feature cost query. */
1026
1026
  export interface FeatureCostQueryRow {
@@ -1039,9 +1039,9 @@ export interface FeatureCostQueryRow {
1039
1039
  */
1040
1040
  detail?: string;
1041
1041
  /** The start of the time bucket the value is aggregated over. */
1042
- from: string;
1042
+ from: Date;
1043
1043
  /** The end of the time bucket the value is aggregated over. */
1044
- to: string;
1044
+ to: Date;
1045
1045
  /**
1046
1046
  * The dimensions the value is aggregated over. `subject` and `customer_id` are
1047
1047
  * reserved dimensions.
@@ -1065,11 +1065,11 @@ export interface Resource {
1065
1065
  description?: string;
1066
1066
  labels?: Labels;
1067
1067
  /** An ISO-8601 timestamp representation of entity creation date. */
1068
- createdAt: string;
1068
+ createdAt: Date;
1069
1069
  /** An ISO-8601 timestamp representation of entity last update date. */
1070
- updatedAt: string;
1070
+ updatedAt: Date;
1071
1071
  /** An ISO-8601 timestamp representation of entity deletion date. */
1072
- deletedAt?: string;
1072
+ deletedAt?: Date;
1073
1073
  }
1074
1074
  /** Represents common fields of immutable resources. */
1075
1075
  export interface ResourceImmutable {
@@ -1088,7 +1088,7 @@ export interface ResourceImmutable {
1088
1088
  description?: string;
1089
1089
  labels?: Labels;
1090
1090
  /** An ISO-8601 timestamp representation of entity creation date. */
1091
- createdAt: string;
1091
+ createdAt: Date;
1092
1092
  }
1093
1093
  /**
1094
1094
  * A query filter for a time attribute. Operators are mutually exclusive, only one
@@ -1096,13 +1096,13 @@ export interface ResourceImmutable {
1096
1096
  */
1097
1097
  export interface QueryFilterDateTime {
1098
1098
  /** The attribute is greater than the provided value. */
1099
- gt?: string;
1099
+ gt?: Date;
1100
1100
  /** The attribute is greater than or equal to the provided value. */
1101
- gte?: string;
1101
+ gte?: Date;
1102
1102
  /** The attribute is less than the provided value. */
1103
- lt?: string;
1103
+ lt?: Date;
1104
1104
  /** The attribute is less than or equal to the provided value. */
1105
- lte?: string;
1105
+ lte?: Date;
1106
1106
  /** Combines the provided filters with a logical AND. */
1107
1107
  and?: QueryFilterDateTime[];
1108
1108
  /** Combines the provided filters with a logical OR. */
@@ -1269,11 +1269,11 @@ export interface ResourceWithKey {
1269
1269
  description?: string;
1270
1270
  labels?: Labels;
1271
1271
  /** An ISO-8601 timestamp representation of entity creation date. */
1272
- createdAt: string;
1272
+ createdAt: Date;
1273
1273
  /** An ISO-8601 timestamp representation of entity last update date. */
1274
- updatedAt: string;
1274
+ updatedAt: Date;
1275
1275
  /** An ISO-8601 timestamp representation of entity deletion date. */
1276
- deletedAt?: string;
1276
+ deletedAt?: Date;
1277
1277
  key: string;
1278
1278
  }
1279
1279
  /** Meter create request. */
@@ -1300,7 +1300,7 @@ export interface CreateMeterRequest {
1300
1300
  * The date since the meter should include events. Useful to skip old events. If
1301
1301
  * not specified, all historical events are included.
1302
1302
  */
1303
- eventsFrom?: string;
1303
+ eventsFrom?: Date;
1304
1304
  /**
1305
1305
  * JSONPath expression to extract the value from the ingested event's data
1306
1306
  * property.
@@ -1336,11 +1336,11 @@ export interface Meter {
1336
1336
  description?: string;
1337
1337
  labels?: Labels;
1338
1338
  /** An ISO-8601 timestamp representation of entity creation date. */
1339
- createdAt: string;
1339
+ createdAt: Date;
1340
1340
  /** An ISO-8601 timestamp representation of entity last update date. */
1341
- updatedAt: string;
1341
+ updatedAt: Date;
1342
1342
  /** An ISO-8601 timestamp representation of entity deletion date. */
1343
- deletedAt?: string;
1343
+ deletedAt?: Date;
1344
1344
  key: string;
1345
1345
  /** The aggregation type to use for the meter. */
1346
1346
  aggregation: 'sum' | 'count' | 'unique_count' | 'avg' | 'min' | 'max' | 'latest';
@@ -1350,7 +1350,7 @@ export interface Meter {
1350
1350
  * The date since the meter should include events. Useful to skip old events. If
1351
1351
  * not specified, all historical events are included.
1352
1352
  */
1353
- eventsFrom?: string;
1353
+ eventsFrom?: Date;
1354
1354
  /**
1355
1355
  * JSONPath expression to extract the value from the ingested event's data
1356
1356
  * property.
@@ -1539,9 +1539,9 @@ export interface AppStripeCreateCheckoutSessionResult {
1539
1539
  /** Currency code for the checkout session. */
1540
1540
  currency?: string;
1541
1541
  /** Timestamp when the checkout session was created. */
1542
- createdAt: string;
1542
+ createdAt: Date;
1543
1543
  /** Timestamp when the checkout session will expire. */
1544
- expiresAt?: string;
1544
+ expiresAt?: Date;
1545
1545
  /** Metadata attached to the checkout session. */
1546
1546
  metadata?: Record<string, string>;
1547
1547
  /**
@@ -1641,7 +1641,7 @@ export interface RateCardMeteredEntitlement {
1641
1641
  /** Recurring period with an anchor and an interval. */
1642
1642
  export interface RecurringPeriod {
1643
1643
  /** A date-time anchor to base the recurring period on. */
1644
- anchor: string;
1644
+ anchor: Date;
1645
1645
  /** The interval duration in ISO 8601 format. */
1646
1646
  interval: string;
1647
1647
  }
@@ -1816,7 +1816,7 @@ export interface SubscriptionCreate {
1816
1816
  * If not provided, the subscription will be created with the subscription's
1817
1817
  * creation time as the billing anchor.
1818
1818
  */
1819
- billingAnchor?: string;
1819
+ billingAnchor?: Date;
1820
1820
  }
1821
1821
  /** The proration configuration of the rate card. */
1822
1822
  export interface RateCardProrationConfiguration {
@@ -1828,11 +1828,11 @@ export interface Subscription {
1828
1828
  id: string;
1829
1829
  labels?: Labels;
1830
1830
  /** An ISO-8601 timestamp representation of entity creation date. */
1831
- createdAt: string;
1831
+ createdAt: Date;
1832
1832
  /** An ISO-8601 timestamp representation of entity last update date. */
1833
- updatedAt: string;
1833
+ updatedAt: Date;
1834
1834
  /** An ISO-8601 timestamp representation of entity deletion date. */
1835
- deletedAt?: string;
1835
+ deletedAt?: Date;
1836
1836
  /** The customer ID of the subscription. */
1837
1837
  customerId: string;
1838
1838
  /** The plan ID of the subscription. Set if subscription is created from a plan. */
@@ -1846,7 +1846,7 @@ export interface Subscription {
1846
1846
  * - Subscription anniversary (day customer signed up)
1847
1847
  * - Custom date (customer-specified day)
1848
1848
  */
1849
- billingAnchor: string;
1849
+ billingAnchor: Date;
1850
1850
  /** The status of the subscription. */
1851
1851
  status: 'active' | 'inactive' | 'canceled' | 'scheduled';
1852
1852
  /**
@@ -2077,7 +2077,7 @@ export interface CurrencyCustom {
2077
2077
  id: string;
2078
2078
  code: string;
2079
2079
  /** An ISO-8601 timestamp representation of the custom currency creation date. */
2080
- createdAt: string;
2080
+ createdAt: Date;
2081
2081
  }
2082
2082
  /** CurrencyCustom create request. */
2083
2083
  export interface CreateCurrencyCustomRequest {
@@ -2241,9 +2241,9 @@ export interface CreditTransaction {
2241
2241
  description?: string;
2242
2242
  labels?: Labels;
2243
2243
  /** An ISO-8601 timestamp representation of entity creation date. */
2244
- createdAt: string;
2244
+ createdAt: Date;
2245
2245
  /** The date and time the transaction was booked. */
2246
- bookedAt: string;
2246
+ bookedAt: Date;
2247
2247
  /** The type of credit transaction. */
2248
2248
  type: 'funded' | 'consumed' | 'expired';
2249
2249
  /** Currency of the balance affected by the transaction. */
@@ -2374,13 +2374,13 @@ export interface LlmCostPrice {
2374
2374
  /** Where this price came from. */
2375
2375
  source: 'manual' | 'system';
2376
2376
  /** When this price becomes effective. */
2377
- effectiveFrom: string;
2377
+ effectiveFrom: Date;
2378
2378
  /** When this price expires. Omitted when the price is currently effective. */
2379
- effectiveTo?: string;
2379
+ effectiveTo?: Date;
2380
2380
  /** Creation timestamp. */
2381
- createdAt: string;
2381
+ createdAt: Date;
2382
2382
  /** Last update timestamp. */
2383
- updatedAt: string;
2383
+ updatedAt: Date;
2384
2384
  }
2385
2385
  /**
2386
2386
  * Input for creating a per-namespace price override. Unique per provider, model
@@ -2399,9 +2399,9 @@ export interface LlmCostOverrideCreate {
2399
2399
  /** Currency code. */
2400
2400
  currency: string;
2401
2401
  /** When this override becomes effective. */
2402
- effectiveFrom: string;
2402
+ effectiveFrom: Date;
2403
2403
  /** When this override expires. */
2404
- effectiveTo?: string;
2404
+ effectiveTo?: Date;
2405
2405
  }
2406
2406
  /** Filter options for listing customers. */
2407
2407
  export interface ListCustomersParamsFilter {
@@ -2638,9 +2638,9 @@ export interface OrganizationDefaultTaxCodes {
2638
2638
  /** Default tax code for credit grants. */
2639
2639
  creditGrantTaxCode: TaxCodeReference;
2640
2640
  /** Timestamp of creation. */
2641
- createdAt: string;
2641
+ createdAt: Date;
2642
2642
  /** Timestamp of last update. */
2643
- updatedAt: string;
2643
+ updatedAt: Date;
2644
2644
  }
2645
2645
  /** OrganizationDefaultTaxCodes update request. */
2646
2646
  export interface UpdateOrganizationDefaultTaxCodesRequest {
@@ -2669,11 +2669,11 @@ export interface PlanAddon {
2669
2669
  description?: string;
2670
2670
  labels?: Labels;
2671
2671
  /** An ISO-8601 timestamp representation of entity creation date. */
2672
- createdAt: string;
2672
+ createdAt: Date;
2673
2673
  /** An ISO-8601 timestamp representation of entity last update date. */
2674
- updatedAt: string;
2674
+ updatedAt: Date;
2675
2675
  /** An ISO-8601 timestamp representation of entity deletion date. */
2676
- deletedAt?: string;
2676
+ deletedAt?: Date;
2677
2677
  /** The add-on associated with the plan. */
2678
2678
  addon: AddonReference;
2679
2679
  /** The key of the plan phase from which the add-on becomes available for purchase. */
@@ -2800,28 +2800,28 @@ export interface ListEventsParamsFilter {
2800
2800
  neq?: string;
2801
2801
  };
2802
2802
  /** Filter events by event time. */
2803
- time?: string | {
2804
- eq?: string;
2805
- lt?: string;
2806
- lte?: string;
2807
- gt?: string;
2808
- gte?: string;
2803
+ time?: Date | {
2804
+ eq?: Date;
2805
+ lt?: Date;
2806
+ lte?: Date;
2807
+ gt?: Date;
2808
+ gte?: Date;
2809
2809
  };
2810
2810
  /** Filter events by the time the event was ingested. */
2811
- ingestedAt?: string | {
2812
- eq?: string;
2813
- lt?: string;
2814
- lte?: string;
2815
- gt?: string;
2816
- gte?: string;
2811
+ ingestedAt?: Date | {
2812
+ eq?: Date;
2813
+ lt?: Date;
2814
+ lte?: Date;
2815
+ gt?: Date;
2816
+ gte?: Date;
2817
2817
  };
2818
2818
  /** Filter events by the time the event was stored. */
2819
- storedAt?: string | {
2820
- eq?: string;
2821
- lt?: string;
2822
- lte?: string;
2823
- gt?: string;
2824
- gte?: string;
2819
+ storedAt?: Date | {
2820
+ eq?: Date;
2821
+ lt?: Date;
2822
+ lte?: Date;
2823
+ gt?: Date;
2824
+ gte?: Date;
2825
2825
  };
2826
2826
  }
2827
2827
  /** Filter options for listing invoices. */
@@ -2839,28 +2839,28 @@ export interface ListInvoicesParamsFilter {
2839
2839
  neq?: string;
2840
2840
  };
2841
2841
  /** Filter by the time the invoice was issued. */
2842
- issuedAt?: string | {
2843
- eq?: string;
2844
- lt?: string;
2845
- lte?: string;
2846
- gt?: string;
2847
- gte?: string;
2842
+ issuedAt?: Date | {
2843
+ eq?: Date;
2844
+ lt?: Date;
2845
+ lte?: Date;
2846
+ gt?: Date;
2847
+ gte?: Date;
2848
2848
  };
2849
2849
  /** Filter by service period start. */
2850
- servicePeriodStart?: string | {
2851
- eq?: string;
2852
- lt?: string;
2853
- lte?: string;
2854
- gt?: string;
2855
- gte?: string;
2850
+ servicePeriodStart?: Date | {
2851
+ eq?: Date;
2852
+ lt?: Date;
2853
+ lte?: Date;
2854
+ gt?: Date;
2855
+ gte?: Date;
2856
2856
  };
2857
2857
  /** Filter by invoice creation time. */
2858
- createdAt?: string | {
2859
- eq?: string;
2860
- lt?: string;
2861
- lte?: string;
2862
- gt?: string;
2863
- gte?: string;
2858
+ createdAt?: Date | {
2859
+ eq?: Date;
2860
+ lt?: Date;
2861
+ lte?: Date;
2862
+ gt?: Date;
2863
+ gte?: Date;
2864
2864
  };
2865
2865
  }
2866
2866
  /** Resource filters. */
@@ -2879,26 +2879,26 @@ export interface ResourceFilters {
2879
2879
  };
2880
2880
  labels?: LabelsFieldFilter;
2881
2881
  publicLabels?: LabelsFieldFilter;
2882
- createdAt?: string | {
2883
- eq?: string;
2884
- lt?: string;
2885
- lte?: string;
2886
- gt?: string;
2887
- gte?: string;
2882
+ createdAt?: Date | {
2883
+ eq?: Date;
2884
+ lt?: Date;
2885
+ lte?: Date;
2886
+ gt?: Date;
2887
+ gte?: Date;
2888
2888
  };
2889
- updatedAt?: string | {
2890
- eq?: string;
2891
- lt?: string;
2892
- lte?: string;
2893
- gt?: string;
2894
- gte?: string;
2889
+ updatedAt?: Date | {
2890
+ eq?: Date;
2891
+ lt?: Date;
2892
+ lte?: Date;
2893
+ gt?: Date;
2894
+ gte?: Date;
2895
2895
  };
2896
- deletedAt?: string | {
2897
- eq?: string;
2898
- lt?: string;
2899
- lte?: string;
2900
- gt?: string;
2901
- gte?: string;
2896
+ deletedAt?: Date | {
2897
+ eq?: Date;
2898
+ lt?: Date;
2899
+ lte?: Date;
2900
+ gt?: Date;
2901
+ gte?: Date;
2902
2902
  };
2903
2903
  }
2904
2904
  /** Field filters with all supported types. */
@@ -2937,12 +2937,12 @@ export interface FieldFilters {
2937
2937
  oeq?: string[];
2938
2938
  neq?: string;
2939
2939
  };
2940
- datetime?: string | {
2941
- eq?: string;
2942
- lt?: string;
2943
- lte?: string;
2944
- gt?: string;
2945
- gte?: string;
2940
+ datetime?: Date | {
2941
+ eq?: Date;
2942
+ lt?: Date;
2943
+ lte?: Date;
2944
+ gt?: Date;
2945
+ gte?: Date;
2946
2946
  };
2947
2947
  labels?: LabelsFieldFilter;
2948
2948
  }
@@ -2953,27 +2953,27 @@ export interface IngestedEvent {
2953
2953
  /** The customer if the event is associated with a customer. */
2954
2954
  customer?: CustomerReference;
2955
2955
  /** The date and time the event was ingested and its processing started. */
2956
- ingestedAt: string;
2956
+ ingestedAt: Date;
2957
2957
  /** The date and time the event was stored in the database. */
2958
- storedAt: string;
2958
+ storedAt: Date;
2959
2959
  /** The validation errors of the ingested event. */
2960
2960
  validationErrors?: IngestedEventValidationError[];
2961
2961
  }
2962
2962
  /** Meter query result. */
2963
2963
  export interface MeterQueryResult {
2964
2964
  /** The start of the period the usage is queried from. */
2965
- from?: string;
2965
+ from?: Date;
2966
2966
  /** The end of the period the usage is queried to. */
2967
- to?: string;
2967
+ to?: Date;
2968
2968
  /** The usage data. If no data is available, an empty array is returned. */
2969
2969
  data: MeterQueryRow[];
2970
2970
  }
2971
2971
  /** Result of a feature cost query. */
2972
2972
  export interface FeatureCostQueryResult {
2973
2973
  /** Start of the queried period. */
2974
- from?: string;
2974
+ from?: Date;
2975
2975
  /** End of the queried period. */
2976
- to?: string;
2976
+ to?: Date;
2977
2977
  /** The cost data rows. */
2978
2978
  data: FeatureCostQueryRow[];
2979
2979
  }
@@ -3047,11 +3047,11 @@ export interface Customer {
3047
3047
  description?: string;
3048
3048
  labels?: Labels;
3049
3049
  /** An ISO-8601 timestamp representation of entity creation date. */
3050
- createdAt: string;
3050
+ createdAt: Date;
3051
3051
  /** An ISO-8601 timestamp representation of entity last update date. */
3052
- updatedAt: string;
3052
+ updatedAt: Date;
3053
3053
  /** An ISO-8601 timestamp representation of entity deletion date. */
3054
- deletedAt?: string;
3054
+ deletedAt?: Date;
3055
3055
  key: string;
3056
3056
  /** Mapping to attribute metered usage to the customer by the event subject. */
3057
3057
  usageAttribution?: CustomerUsageAttribution;
@@ -3192,7 +3192,7 @@ export interface ChargeFlatFeeSystemIntent {
3192
3192
  description?: string;
3193
3193
  labels?: Labels;
3194
3194
  /** The timestamp when the charge is intended to be invoiced. */
3195
- invoiceAt: string;
3195
+ invoiceAt: Date;
3196
3196
  /** The effective service period covered by the charge. */
3197
3197
  servicePeriod: ClosedPeriod;
3198
3198
  /** The full, unprorated service period of the charge. */
@@ -3211,7 +3211,7 @@ export interface ChargeFlatFeeSystemIntent {
3211
3211
  * The timestamp when the system lifecycle controller intent was deleted. The
3212
3212
  * effective charge can remain visible while a manual override is active.
3213
3213
  */
3214
- deletedAt?: string;
3214
+ deletedAt?: Date;
3215
3215
  }
3216
3216
  /** Page paginated response. */
3217
3217
  export interface SubscriptionPagePaginatedResponse {
@@ -3228,7 +3228,7 @@ export interface SubscriptionChangeResponse {
3228
3228
  /** Request for canceling a subscription. */
3229
3229
  export interface SubscriptionCancel {
3230
3230
  /** If not provided the subscription is canceled immediately. */
3231
- timing: 'immediate' | 'next_billing_cycle' | string;
3231
+ timing: 'immediate' | 'next_billing_cycle' | Date;
3232
3232
  }
3233
3233
  /** Request for changing a subscription. */
3234
3234
  export interface SubscriptionChange {
@@ -3266,13 +3266,13 @@ export interface SubscriptionChange {
3266
3266
  * If not provided, the subscription will be created with the subscription's
3267
3267
  * creation time as the billing anchor.
3268
3268
  */
3269
- billingAnchor?: string;
3269
+ billingAnchor?: Date;
3270
3270
  /**
3271
3271
  * Timing configuration for the change, when the change should take effect. For
3272
3272
  * changing a subscription, the accepted values depend on the subscription
3273
3273
  * configuration.
3274
3274
  */
3275
- timing: 'immediate' | 'next_billing_cycle' | string;
3275
+ timing: 'immediate' | 'next_billing_cycle' | Date;
3276
3276
  }
3277
3277
  /** SubscriptionAddon create request. */
3278
3278
  export interface CreateSubscriptionAddonRequest {
@@ -3285,7 +3285,7 @@ export interface CreateSubscriptionAddonRequest {
3285
3285
  * The timing of the operation. After the create or update, a new entry will be
3286
3286
  * created in the timeline.
3287
3287
  */
3288
- timing: 'immediate' | 'next_billing_cycle' | string;
3288
+ timing: 'immediate' | 'next_billing_cycle' | Date;
3289
3289
  }
3290
3290
  /**
3291
3291
  * Usage quantity details on an invoice line item when UnitConfig is in effect.
@@ -3327,11 +3327,11 @@ export interface AppStripe {
3327
3327
  description?: string;
3328
3328
  labels?: Labels;
3329
3329
  /** An ISO-8601 timestamp representation of entity creation date. */
3330
- createdAt: string;
3330
+ createdAt: Date;
3331
3331
  /** An ISO-8601 timestamp representation of entity last update date. */
3332
- updatedAt: string;
3332
+ updatedAt: Date;
3333
3333
  /** An ISO-8601 timestamp representation of entity deletion date. */
3334
- deletedAt?: string;
3334
+ deletedAt?: Date;
3335
3335
  /** The app type. */
3336
3336
  type: 'stripe';
3337
3337
  /** The app catalog definition that this installed app is based on. */
@@ -3362,11 +3362,11 @@ export interface AppSandbox {
3362
3362
  description?: string;
3363
3363
  labels?: Labels;
3364
3364
  /** An ISO-8601 timestamp representation of entity creation date. */
3365
- createdAt: string;
3365
+ createdAt: Date;
3366
3366
  /** An ISO-8601 timestamp representation of entity last update date. */
3367
- updatedAt: string;
3367
+ updatedAt: Date;
3368
3368
  /** An ISO-8601 timestamp representation of entity deletion date. */
3369
- deletedAt?: string;
3369
+ deletedAt?: Date;
3370
3370
  /** The app type. */
3371
3371
  type: 'sandbox';
3372
3372
  /** The app catalog definition that this installed app is based on. */
@@ -3409,11 +3409,11 @@ export interface AppExternalInvoicing {
3409
3409
  description?: string;
3410
3410
  labels?: Labels;
3411
3411
  /** An ISO-8601 timestamp representation of entity creation date. */
3412
- createdAt: string;
3412
+ createdAt: Date;
3413
3413
  /** An ISO-8601 timestamp representation of entity last update date. */
3414
- updatedAt: string;
3414
+ updatedAt: Date;
3415
3415
  /** An ISO-8601 timestamp representation of entity deletion date. */
3416
- deletedAt?: string;
3416
+ deletedAt?: Date;
3417
3417
  /** The app type. */
3418
3418
  type: 'external_invoicing';
3419
3419
  /** The app catalog definition that this installed app is based on. */
@@ -3481,11 +3481,11 @@ export interface TaxCode {
3481
3481
  description?: string;
3482
3482
  labels?: Labels;
3483
3483
  /** An ISO-8601 timestamp representation of entity creation date. */
3484
- createdAt: string;
3484
+ createdAt: Date;
3485
3485
  /** An ISO-8601 timestamp representation of entity last update date. */
3486
- updatedAt: string;
3486
+ updatedAt: Date;
3487
3487
  /** An ISO-8601 timestamp representation of entity deletion date. */
3488
- deletedAt?: string;
3488
+ deletedAt?: Date;
3489
3489
  key: string;
3490
3490
  /** Mapping of app types to tax codes. */
3491
3491
  appMappings: TaxCodeAppMapping[];
@@ -3597,7 +3597,7 @@ export interface UpsertCustomerBillingDataRequest {
3597
3597
  /** The balances of the credits of a customer. */
3598
3598
  export interface CreditBalances {
3599
3599
  /** The timestamp of the balance retrieval. */
3600
- retrievedAt: string;
3600
+ retrievedAt: Date;
3601
3601
  /** The balances by currencies. */
3602
3602
  balances: CreditBalance[];
3603
3603
  }
@@ -3711,7 +3711,7 @@ export interface CreateCreditGrantRequest {
3711
3711
  *
3712
3712
  * Defaults to the current date and time.
3713
3713
  */
3714
- effectiveAt?: string;
3714
+ effectiveAt?: Date;
3715
3715
  /**
3716
3716
  * The duration after which the credit grant expires.
3717
3717
  *
@@ -3748,11 +3748,11 @@ export interface CreditGrant {
3748
3748
  description?: string;
3749
3749
  labels?: Labels;
3750
3750
  /** An ISO-8601 timestamp representation of entity creation date. */
3751
- createdAt: string;
3751
+ createdAt: Date;
3752
3752
  /** An ISO-8601 timestamp representation of entity last update date. */
3753
- updatedAt: string;
3753
+ updatedAt: Date;
3754
3754
  /** An ISO-8601 timestamp representation of entity deletion date. */
3755
- deletedAt?: string;
3755
+ deletedAt?: Date;
3756
3756
  /** Funding method of the grant. */
3757
3757
  fundingMethod: 'none' | 'invoice' | 'external';
3758
3758
  /** The currency of the granted credits. */
@@ -3780,7 +3780,7 @@ export interface CreditGrant {
3780
3780
  *
3781
3781
  * Defaults to the current date and time.
3782
3782
  */
3783
- effectiveAt?: string;
3783
+ effectiveAt?: Date;
3784
3784
  /**
3785
3785
  * Idempotency key for the credit grant creation request.
3786
3786
  *
@@ -3793,9 +3793,9 @@ export interface CreditGrant {
3793
3793
  *
3794
3794
  * Calculated from the grant effective time and `expires_after` if provided.
3795
3795
  */
3796
- expiresAt?: string;
3796
+ expiresAt?: Date;
3797
3797
  /** Timestamp when the grant was voided. */
3798
- voidedAt?: string;
3798
+ voidedAt?: Date;
3799
3799
  /** Current lifecycle status of the grant. */
3800
3800
  status: 'pending' | 'active' | 'expired' | 'voided';
3801
3801
  }
@@ -3819,7 +3819,7 @@ export interface CreateChargeFlatFeeRequest {
3819
3819
  /** The currency of the charge. */
3820
3820
  currency: string;
3821
3821
  /** The timestamp when the charge is intended to be invoiced. */
3822
- invoiceAt: string;
3822
+ invoiceAt: Date;
3823
3823
  /** The effective service period covered by the charge. */
3824
3824
  servicePeriod: ClosedPeriod;
3825
3825
  /** Unique reference ID of the charge. */
@@ -3882,9 +3882,9 @@ export type InvalidParameters = (InvalidParameterStandard | InvalidParameterMini
3882
3882
  /** A meter query request. */
3883
3883
  export interface MeterQueryRequest {
3884
3884
  /** The start of the period the usage is queried from. */
3885
- from?: string;
3885
+ from?: Date;
3886
3886
  /** The end of the period the usage is queried to. */
3887
- to?: string;
3887
+ to?: Date;
3888
3888
  /**
3889
3889
  * The size of the time buckets to group the usage into. If not specified, the
3890
3890
  * usage is aggregated over the entire period.
@@ -4098,11 +4098,11 @@ export interface InvoiceDetailedLine {
4098
4098
  description?: string;
4099
4099
  labels?: Labels;
4100
4100
  /** An ISO-8601 timestamp representation of entity creation date. */
4101
- createdAt: string;
4101
+ createdAt: Date;
4102
4102
  /** An ISO-8601 timestamp representation of entity last update date. */
4103
- updatedAt: string;
4103
+ updatedAt: Date;
4104
4104
  /** An ISO-8601 timestamp representation of entity deletion date. */
4105
- deletedAt?: string;
4105
+ deletedAt?: Date;
4106
4106
  /** The service period covered by this detailed line. */
4107
4107
  servicePeriod: ClosedPeriod;
4108
4108
  /** Aggregated financial totals for the detailed line. */
@@ -4161,7 +4161,7 @@ export interface GovernanceQueryResult {
4161
4161
  * Timestamp of the most recent change to the customer's access state reflected in
4162
4162
  * this result.
4163
4163
  */
4164
- updatedAt: string;
4164
+ updatedAt: Date;
4165
4165
  }
4166
4166
  /** A capability or billable dimension offered by a provider. */
4167
4167
  export interface Feature {
@@ -4180,11 +4180,11 @@ export interface Feature {
4180
4180
  description?: string;
4181
4181
  labels?: Labels;
4182
4182
  /** An ISO-8601 timestamp representation of entity creation date. */
4183
- createdAt: string;
4183
+ createdAt: Date;
4184
4184
  /** An ISO-8601 timestamp representation of entity last update date. */
4185
- updatedAt: string;
4185
+ updatedAt: Date;
4186
4186
  /** An ISO-8601 timestamp representation of entity deletion date. */
4187
- deletedAt?: string;
4187
+ deletedAt?: Date;
4188
4188
  key: string;
4189
4189
  /**
4190
4190
  * The meter that the feature is associated with and based on which usage is
@@ -4264,11 +4264,11 @@ export interface InvoiceBase {
4264
4264
  description?: string;
4265
4265
  labels?: Labels;
4266
4266
  /** An ISO-8601 timestamp representation of entity creation date. */
4267
- createdAt: string;
4267
+ createdAt: Date;
4268
4268
  /** An ISO-8601 timestamp representation of entity last update date. */
4269
- updatedAt: string;
4269
+ updatedAt: Date;
4270
4270
  /** An ISO-8601 timestamp representation of entity deletion date. */
4271
- deletedAt?: string;
4271
+ deletedAt?: Date;
4272
4272
  /** Human-readable invoice number generated by the invoicing app. */
4273
4273
  number: string;
4274
4274
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -4375,11 +4375,11 @@ export interface ChargeFlatFee {
4375
4375
  description?: string;
4376
4376
  labels?: Labels;
4377
4377
  /** An ISO-8601 timestamp representation of entity creation date. */
4378
- createdAt: string;
4378
+ createdAt: Date;
4379
4379
  /** An ISO-8601 timestamp representation of entity last update date. */
4380
- updatedAt: string;
4380
+ updatedAt: Date;
4381
4381
  /** An ISO-8601 timestamp representation of entity deletion date. */
4382
- deletedAt?: string;
4382
+ deletedAt?: Date;
4383
4383
  /** The type of the charge. */
4384
4384
  type: 'flat_fee';
4385
4385
  /** The customer owning the charge. */
@@ -4399,7 +4399,7 @@ export interface ChargeFlatFee {
4399
4399
  /** The lifecycle status of the charge. */
4400
4400
  status: 'created' | 'active' | 'final' | 'deleted';
4401
4401
  /** The timestamp when the charge is intended to be invoiced. */
4402
- invoiceAt: string;
4402
+ invoiceAt: Date;
4403
4403
  /** The effective service period covered by the charge. */
4404
4404
  servicePeriod: ClosedPeriod;
4405
4405
  /** The full, unprorated service period of the charge. */
@@ -4410,7 +4410,7 @@ export interface ChargeFlatFee {
4410
4410
  * The earliest time when the charge should be advanced again by background
4411
4411
  * processing.
4412
4412
  */
4413
- advanceAfter?: string;
4413
+ advanceAfter?: Date;
4414
4414
  /** Unique reference ID of the charge. */
4415
4415
  uniqueReferenceId?: string;
4416
4416
  /** Settlement mode of the charge. */
@@ -4455,7 +4455,7 @@ export interface ChargeUsageBasedSystemIntent {
4455
4455
  description?: string;
4456
4456
  labels?: Labels;
4457
4457
  /** The timestamp when the charge is intended to be invoiced. */
4458
- invoiceAt: string;
4458
+ invoiceAt: Date;
4459
4459
  /** The effective service period covered by the charge. */
4460
4460
  servicePeriod: ClosedPeriod;
4461
4461
  /** The full, unprorated service period of the charge. */
@@ -4470,7 +4470,7 @@ export interface ChargeUsageBasedSystemIntent {
4470
4470
  * The timestamp when the system lifecycle controller intent was deleted. The
4471
4471
  * effective charge can remain visible while a manual override is active.
4472
4472
  */
4473
- deletedAt?: string;
4473
+ deletedAt?: Date;
4474
4474
  }
4475
4475
  /** Usage-based charge create request. */
4476
4476
  export interface CreateChargeUsageBasedRequest {
@@ -4492,7 +4492,7 @@ export interface CreateChargeUsageBasedRequest {
4492
4492
  /** The currency of the charge. */
4493
4493
  currency: string;
4494
4494
  /** The timestamp when the charge is intended to be invoiced. */
4495
- invoiceAt: string;
4495
+ invoiceAt: Date;
4496
4496
  /** The effective service period covered by the charge. */
4497
4497
  servicePeriod: ClosedPeriod;
4498
4498
  /** Unique reference ID of the charge. */
@@ -4623,11 +4623,11 @@ export interface ChargeUsageBased {
4623
4623
  description?: string;
4624
4624
  labels?: Labels;
4625
4625
  /** An ISO-8601 timestamp representation of entity creation date. */
4626
- createdAt: string;
4626
+ createdAt: Date;
4627
4627
  /** An ISO-8601 timestamp representation of entity last update date. */
4628
- updatedAt: string;
4628
+ updatedAt: Date;
4629
4629
  /** An ISO-8601 timestamp representation of entity deletion date. */
4630
- deletedAt?: string;
4630
+ deletedAt?: Date;
4631
4631
  /** The type of the charge. */
4632
4632
  type: 'usage_based';
4633
4633
  /** The customer owning the charge. */
@@ -4647,7 +4647,7 @@ export interface ChargeUsageBased {
4647
4647
  /** The lifecycle status of the charge. */
4648
4648
  status: 'created' | 'active' | 'final' | 'deleted';
4649
4649
  /** The timestamp when the charge is intended to be invoiced. */
4650
- invoiceAt: string;
4650
+ invoiceAt: Date;
4651
4651
  /** The effective service period covered by the charge. */
4652
4652
  servicePeriod: ClosedPeriod;
4653
4653
  /** The full, unprorated service period of the charge. */
@@ -4658,7 +4658,7 @@ export interface ChargeUsageBased {
4658
4658
  * The earliest time when the charge should be advanced again by background
4659
4659
  * processing.
4660
4660
  */
4661
- advanceAfter?: string;
4661
+ advanceAfter?: Date;
4662
4662
  /** Unique reference ID of the charge. */
4663
4663
  uniqueReferenceId?: string;
4664
4664
  /** Settlement mode of the charge. */
@@ -4734,11 +4734,11 @@ export interface Addon {
4734
4734
  description?: string;
4735
4735
  labels?: Labels;
4736
4736
  /** An ISO-8601 timestamp representation of entity creation date. */
4737
- createdAt: string;
4737
+ createdAt: Date;
4738
4738
  /** An ISO-8601 timestamp representation of entity last update date. */
4739
- updatedAt: string;
4739
+ updatedAt: Date;
4740
4740
  /** An ISO-8601 timestamp representation of entity deletion date. */
4741
- deletedAt?: string;
4741
+ deletedAt?: Date;
4742
4742
  /**
4743
4743
  * A key is a semi-unique string that is used to identify the add-on. It is used to
4744
4744
  * reference the latest `active` version of the add-on and is unique with the
@@ -4755,12 +4755,12 @@ export interface Addon {
4755
4755
  * The date and time when the add-on becomes effective. When not specified, the
4756
4756
  * add-on is a draft.
4757
4757
  */
4758
- effectiveFrom?: string;
4758
+ effectiveFrom?: Date;
4759
4759
  /**
4760
4760
  * The date and time when the add-on is no longer effective. When not specified,
4761
4761
  * the add-on is effective indefinitely.
4762
4762
  */
4763
- effectiveTo?: string;
4763
+ effectiveTo?: Date;
4764
4764
  /**
4765
4765
  * The status of the add-on. Computed based on the effective start and end dates:
4766
4766
  *
@@ -4845,11 +4845,11 @@ export interface InvoiceStandardLine {
4845
4845
  description?: string;
4846
4846
  labels?: Labels;
4847
4847
  /** An ISO-8601 timestamp representation of entity creation date. */
4848
- createdAt: string;
4848
+ createdAt: Date;
4849
4849
  /** An ISO-8601 timestamp representation of entity last update date. */
4850
- updatedAt: string;
4850
+ updatedAt: Date;
4851
4851
  /** An ISO-8601 timestamp representation of entity deletion date. */
4852
- deletedAt?: string;
4852
+ deletedAt?: Date;
4853
4853
  /**
4854
4854
  * ID of the line.
4855
4855
  *
@@ -4956,11 +4956,11 @@ export interface Profile {
4956
4956
  description?: string;
4957
4957
  labels?: Labels;
4958
4958
  /** An ISO-8601 timestamp representation of entity creation date. */
4959
- createdAt: string;
4959
+ createdAt: Date;
4960
4960
  /** An ISO-8601 timestamp representation of entity last update date. */
4961
- updatedAt: string;
4961
+ updatedAt: Date;
4962
4962
  /** An ISO-8601 timestamp representation of entity deletion date. */
4963
- deletedAt?: string;
4963
+ deletedAt?: Date;
4964
4964
  /**
4965
4965
  * The name and contact information for the supplier this billing profile
4966
4966
  * represents
@@ -5030,11 +5030,11 @@ export interface SubscriptionAddon {
5030
5030
  id: string;
5031
5031
  labels?: Labels;
5032
5032
  /** An ISO-8601 timestamp representation of entity creation date. */
5033
- createdAt: string;
5033
+ createdAt: Date;
5034
5034
  /** An ISO-8601 timestamp representation of entity last update date. */
5035
- updatedAt: string;
5035
+ updatedAt: Date;
5036
5036
  /** An ISO-8601 timestamp representation of entity deletion date. */
5037
- deletedAt?: string;
5037
+ deletedAt?: Date;
5038
5038
  /**
5039
5039
  * Display name of the resource.
5040
5040
  *
@@ -5055,11 +5055,11 @@ export interface SubscriptionAddon {
5055
5055
  * An ISO-8601 timestamp representation of which point in time the quantity was
5056
5056
  * resolved to.
5057
5057
  */
5058
- quantityAt: string;
5058
+ quantityAt: Date;
5059
5059
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
5060
- activeFrom: string;
5060
+ activeFrom: Date;
5061
5061
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
5062
- activeTo?: string;
5062
+ activeTo?: Date;
5063
5063
  /** The timeline of the add-on. The returned periods are sorted and continuous. */
5064
5064
  timeline: SubscriptionAddonTimelineSegment[];
5065
5065
  /** The rate cards of the add-on. */
@@ -5082,11 +5082,11 @@ export interface Plan {
5082
5082
  description?: string;
5083
5083
  labels?: Labels;
5084
5084
  /** An ISO-8601 timestamp representation of entity creation date. */
5085
- createdAt: string;
5085
+ createdAt: Date;
5086
5086
  /** An ISO-8601 timestamp representation of entity last update date. */
5087
- updatedAt: string;
5087
+ updatedAt: Date;
5088
5088
  /** An ISO-8601 timestamp representation of entity deletion date. */
5089
- deletedAt?: string;
5089
+ deletedAt?: Date;
5090
5090
  /**
5091
5091
  * A key is a semi-unique string that is used to identify the plan. It is used to
5092
5092
  * reference the latest `active` version of the plan and is unique with the version
@@ -5108,12 +5108,12 @@ export interface Plan {
5108
5108
  * The date and time when the plan becomes `active`. When not specified, the plan
5109
5109
  * is in `draft` status.
5110
5110
  */
5111
- effectiveFrom?: string;
5111
+ effectiveFrom?: Date;
5112
5112
  /**
5113
5113
  * A scheduled date and time when the plan becomes `archived`. When not specified,
5114
5114
  * the plan is in `active` status indefinitely.
5115
5115
  */
5116
- effectiveTo?: string;
5116
+ effectiveTo?: Date;
5117
5117
  /**
5118
5118
  * The status of the plan. Computed based on the effective start and end dates:
5119
5119
  *
@@ -5237,11 +5237,11 @@ export interface InvoiceStandard {
5237
5237
  description?: string;
5238
5238
  labels?: Labels;
5239
5239
  /** An ISO-8601 timestamp representation of entity creation date. */
5240
- createdAt: string;
5240
+ createdAt: Date;
5241
5241
  /** An ISO-8601 timestamp representation of entity last update date. */
5242
- updatedAt: string;
5242
+ updatedAt: Date;
5243
5243
  /** An ISO-8601 timestamp representation of entity deletion date. */
5244
- deletedAt?: string;
5244
+ deletedAt?: Date;
5245
5245
  /** Human-readable invoice number generated by the invoicing app. */
5246
5246
  number: string;
5247
5247
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -5279,21 +5279,21 @@ export interface InvoiceStandard {
5279
5279
  /** Detailed status information including available actions and workflow state. */
5280
5280
  statusDetails: InvoiceStatusDetails;
5281
5281
  /** Timestamp when the invoice was issued to the customer. */
5282
- issuedAt?: string;
5282
+ issuedAt?: Date;
5283
5283
  /**
5284
5284
  * Timestamp until which the invoice remains in draft state.
5285
5285
  *
5286
5286
  * The invoice advances automatically once this time is reached.
5287
5287
  */
5288
- draftUntil?: string;
5288
+ draftUntil?: Date;
5289
5289
  /** Timestamp when usage quantities were last snapshotted for this invoice. */
5290
- quantitySnapshottedAt?: string;
5290
+ quantitySnapshottedAt?: Date;
5291
5291
  /** Timestamp when collection was initiated for this invoice. */
5292
- collectionAt?: string;
5292
+ collectionAt?: Date;
5293
5293
  /** Timestamp when payment is due. */
5294
- dueAt?: string;
5294
+ dueAt?: Date;
5295
5295
  /** Timestamp when the invoice was sent to the customer. */
5296
- sentToCustomerAt?: string;
5296
+ sentToCustomerAt?: Date;
5297
5297
  /** Workflow configuration snapshot captured at invoice creation time. */
5298
5298
  workflow: InvoiceWorkflowSettings;
5299
5299
  /**
@@ -5422,7 +5422,7 @@ export interface EventInput {
5422
5422
  */
5423
5423
  subject: string;
5424
5424
  /** Timestamp of when the occurrence happened. Must adhere to RFC 3339. */
5425
- time?: string | null;
5425
+ time?: Date | null;
5426
5426
  /** The event payload. Optional, if present it must be a JSON object. */
5427
5427
  data?: Record<string, unknown> | null;
5428
5428
  }
@@ -5610,15 +5610,15 @@ export interface IngestedEventInput {
5610
5610
  /** The customer if the event is associated with a customer. */
5611
5611
  customer?: CustomerReference;
5612
5612
  /** The date and time the event was ingested and its processing started. */
5613
- ingestedAt: string;
5613
+ ingestedAt: Date;
5614
5614
  /** The date and time the event was stored in the database. */
5615
- storedAt: string;
5615
+ storedAt: Date;
5616
5616
  /** The validation errors of the ingested event. */
5617
5617
  validationErrors?: IngestedEventValidationError[];
5618
5618
  }
5619
5619
  export interface SubscriptionCancelInput {
5620
5620
  /** If not provided the subscription is canceled immediately. */
5621
- timing?: 'immediate' | 'next_billing_cycle' | string;
5621
+ timing?: 'immediate' | 'next_billing_cycle' | Date;
5622
5622
  }
5623
5623
  export interface InvoiceUsageQuantityDetailInput {
5624
5624
  /** The raw quantity as reported by the meter (native units). */
@@ -5689,7 +5689,7 @@ export interface CreateCreditGrantRequestInput {
5689
5689
  *
5690
5690
  * Defaults to the current date and time.
5691
5691
  */
5692
- effectiveAt?: string;
5692
+ effectiveAt?: Date;
5693
5693
  /**
5694
5694
  * The duration after which the credit grant expires.
5695
5695
  *
@@ -5720,11 +5720,11 @@ export interface CreditGrantInput {
5720
5720
  description?: string;
5721
5721
  labels?: Labels;
5722
5722
  /** An ISO-8601 timestamp representation of entity creation date. */
5723
- createdAt: string;
5723
+ createdAt: Date;
5724
5724
  /** An ISO-8601 timestamp representation of entity last update date. */
5725
- updatedAt: string;
5725
+ updatedAt: Date;
5726
5726
  /** An ISO-8601 timestamp representation of entity deletion date. */
5727
- deletedAt?: string;
5727
+ deletedAt?: Date;
5728
5728
  /** Funding method of the grant. */
5729
5729
  fundingMethod: 'none' | 'invoice' | 'external';
5730
5730
  /** The currency of the granted credits. */
@@ -5752,7 +5752,7 @@ export interface CreditGrantInput {
5752
5752
  *
5753
5753
  * Defaults to the current date and time.
5754
5754
  */
5755
- effectiveAt?: string;
5755
+ effectiveAt?: Date;
5756
5756
  /**
5757
5757
  * Idempotency key for the credit grant creation request.
5758
5758
  *
@@ -5765,9 +5765,9 @@ export interface CreditGrantInput {
5765
5765
  *
5766
5766
  * Calculated from the grant effective time and `expires_after` if provided.
5767
5767
  */
5768
- expiresAt?: string;
5768
+ expiresAt?: Date;
5769
5769
  /** Timestamp when the grant was voided. */
5770
- voidedAt?: string;
5770
+ voidedAt?: Date;
5771
5771
  /** Current lifecycle status of the grant. */
5772
5772
  status: 'pending' | 'active' | 'expired' | 'voided';
5773
5773
  }
@@ -5800,9 +5800,9 @@ export interface IngestedEventPaginatedResponseInput {
5800
5800
  }
5801
5801
  export interface MeterQueryRequestInput {
5802
5802
  /** The start of the period the usage is queried from. */
5803
- from?: string;
5803
+ from?: Date;
5804
5804
  /** The end of the period the usage is queried to. */
5805
- to?: string;
5805
+ to?: Date;
5806
5806
  /**
5807
5807
  * The size of the time buckets to group the usage into. If not specified, the
5808
5808
  * usage is aggregated over the entire period.
@@ -5937,11 +5937,11 @@ export interface InvoiceDetailedLineInput {
5937
5937
  description?: string;
5938
5938
  labels?: Labels;
5939
5939
  /** An ISO-8601 timestamp representation of entity creation date. */
5940
- createdAt: string;
5940
+ createdAt: Date;
5941
5941
  /** An ISO-8601 timestamp representation of entity last update date. */
5942
- updatedAt: string;
5942
+ updatedAt: Date;
5943
5943
  /** An ISO-8601 timestamp representation of entity deletion date. */
5944
- deletedAt?: string;
5944
+ deletedAt?: Date;
5945
5945
  /** The service period covered by this detailed line. */
5946
5946
  servicePeriod: ClosedPeriod;
5947
5947
  /** Aggregated financial totals for the detailed line. */
@@ -6109,11 +6109,11 @@ export interface AddonInput {
6109
6109
  description?: string;
6110
6110
  labels?: Labels;
6111
6111
  /** An ISO-8601 timestamp representation of entity creation date. */
6112
- createdAt: string;
6112
+ createdAt: Date;
6113
6113
  /** An ISO-8601 timestamp representation of entity last update date. */
6114
- updatedAt: string;
6114
+ updatedAt: Date;
6115
6115
  /** An ISO-8601 timestamp representation of entity deletion date. */
6116
- deletedAt?: string;
6116
+ deletedAt?: Date;
6117
6117
  /**
6118
6118
  * A key is a semi-unique string that is used to identify the add-on. It is used to
6119
6119
  * reference the latest `active` version of the add-on and is unique with the
@@ -6130,12 +6130,12 @@ export interface AddonInput {
6130
6130
  * The date and time when the add-on becomes effective. When not specified, the
6131
6131
  * add-on is a draft.
6132
6132
  */
6133
- effectiveFrom?: string;
6133
+ effectiveFrom?: Date;
6134
6134
  /**
6135
6135
  * The date and time when the add-on is no longer effective. When not specified,
6136
6136
  * the add-on is effective indefinitely.
6137
6137
  */
6138
- effectiveTo?: string;
6138
+ effectiveTo?: Date;
6139
6139
  /**
6140
6140
  * The status of the add-on. Computed based on the effective start and end dates:
6141
6141
  *
@@ -6211,11 +6211,11 @@ export interface InvoiceStandardLineInput {
6211
6211
  description?: string;
6212
6212
  labels?: Labels;
6213
6213
  /** An ISO-8601 timestamp representation of entity creation date. */
6214
- createdAt: string;
6214
+ createdAt: Date;
6215
6215
  /** An ISO-8601 timestamp representation of entity last update date. */
6216
- updatedAt: string;
6216
+ updatedAt: Date;
6217
6217
  /** An ISO-8601 timestamp representation of entity deletion date. */
6218
- deletedAt?: string;
6218
+ deletedAt?: Date;
6219
6219
  /**
6220
6220
  * ID of the line.
6221
6221
  *
@@ -6276,11 +6276,11 @@ export interface ProfileInput {
6276
6276
  description?: string;
6277
6277
  labels?: Labels;
6278
6278
  /** An ISO-8601 timestamp representation of entity creation date. */
6279
- createdAt: string;
6279
+ createdAt: Date;
6280
6280
  /** An ISO-8601 timestamp representation of entity last update date. */
6281
- updatedAt: string;
6281
+ updatedAt: Date;
6282
6282
  /** An ISO-8601 timestamp representation of entity deletion date. */
6283
- deletedAt?: string;
6283
+ deletedAt?: Date;
6284
6284
  /**
6285
6285
  * The name and contact information for the supplier this billing profile
6286
6286
  * represents
@@ -6347,11 +6347,11 @@ export interface SubscriptionAddonInput {
6347
6347
  id: string;
6348
6348
  labels?: Labels;
6349
6349
  /** An ISO-8601 timestamp representation of entity creation date. */
6350
- createdAt: string;
6350
+ createdAt: Date;
6351
6351
  /** An ISO-8601 timestamp representation of entity last update date. */
6352
- updatedAt: string;
6352
+ updatedAt: Date;
6353
6353
  /** An ISO-8601 timestamp representation of entity deletion date. */
6354
- deletedAt?: string;
6354
+ deletedAt?: Date;
6355
6355
  /**
6356
6356
  * Display name of the resource.
6357
6357
  *
@@ -6372,11 +6372,11 @@ export interface SubscriptionAddonInput {
6372
6372
  * An ISO-8601 timestamp representation of which point in time the quantity was
6373
6373
  * resolved to.
6374
6374
  */
6375
- quantityAt: string;
6375
+ quantityAt: Date;
6376
6376
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
6377
- activeFrom: string;
6377
+ activeFrom: Date;
6378
6378
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
6379
- activeTo?: string;
6379
+ activeTo?: Date;
6380
6380
  /** The timeline of the add-on. The returned periods are sorted and continuous. */
6381
6381
  timeline: SubscriptionAddonTimelineSegment[];
6382
6382
  /** The rate cards of the add-on. */
@@ -6398,11 +6398,11 @@ export interface PlanInput {
6398
6398
  description?: string;
6399
6399
  labels?: Labels;
6400
6400
  /** An ISO-8601 timestamp representation of entity creation date. */
6401
- createdAt: string;
6401
+ createdAt: Date;
6402
6402
  /** An ISO-8601 timestamp representation of entity last update date. */
6403
- updatedAt: string;
6403
+ updatedAt: Date;
6404
6404
  /** An ISO-8601 timestamp representation of entity deletion date. */
6405
- deletedAt?: string;
6405
+ deletedAt?: Date;
6406
6406
  /**
6407
6407
  * A key is a semi-unique string that is used to identify the plan. It is used to
6408
6408
  * reference the latest `active` version of the plan and is unique with the version
@@ -6424,12 +6424,12 @@ export interface PlanInput {
6424
6424
  * The date and time when the plan becomes `active`. When not specified, the plan
6425
6425
  * is in `draft` status.
6426
6426
  */
6427
- effectiveFrom?: string;
6427
+ effectiveFrom?: Date;
6428
6428
  /**
6429
6429
  * A scheduled date and time when the plan becomes `archived`. When not specified,
6430
6430
  * the plan is in `active` status indefinitely.
6431
6431
  */
6432
- effectiveTo?: string;
6432
+ effectiveTo?: Date;
6433
6433
  /**
6434
6434
  * The status of the plan. Computed based on the effective start and end dates:
6435
6435
  *
@@ -6541,11 +6541,11 @@ export interface InvoiceStandardInput {
6541
6541
  description?: string;
6542
6542
  labels?: Labels;
6543
6543
  /** An ISO-8601 timestamp representation of entity creation date. */
6544
- createdAt: string;
6544
+ createdAt: Date;
6545
6545
  /** An ISO-8601 timestamp representation of entity last update date. */
6546
- updatedAt: string;
6546
+ updatedAt: Date;
6547
6547
  /** An ISO-8601 timestamp representation of entity deletion date. */
6548
- deletedAt?: string;
6548
+ deletedAt?: Date;
6549
6549
  /** Human-readable invoice number generated by the invoicing app. */
6550
6550
  number: string;
6551
6551
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -6583,21 +6583,21 @@ export interface InvoiceStandardInput {
6583
6583
  /** Detailed status information including available actions and workflow state. */
6584
6584
  statusDetails: InvoiceStatusDetails;
6585
6585
  /** Timestamp when the invoice was issued to the customer. */
6586
- issuedAt?: string;
6586
+ issuedAt?: Date;
6587
6587
  /**
6588
6588
  * Timestamp until which the invoice remains in draft state.
6589
6589
  *
6590
6590
  * The invoice advances automatically once this time is reached.
6591
6591
  */
6592
- draftUntil?: string;
6592
+ draftUntil?: Date;
6593
6593
  /** Timestamp when usage quantities were last snapshotted for this invoice. */
6594
- quantitySnapshottedAt?: string;
6594
+ quantitySnapshottedAt?: Date;
6595
6595
  /** Timestamp when collection was initiated for this invoice. */
6596
- collectionAt?: string;
6596
+ collectionAt?: Date;
6597
6597
  /** Timestamp when payment is due. */
6598
- dueAt?: string;
6598
+ dueAt?: Date;
6599
6599
  /** Timestamp when the invoice was sent to the customer. */
6600
- sentToCustomerAt?: string;
6600
+ sentToCustomerAt?: Date;
6601
6601
  /** Workflow configuration snapshot captured at invoice creation time. */
6602
6602
  workflow: InvoiceWorkflowSettingsInput;
6603
6603
  /**