@stigg/typescript 0.1.0-beta.41 → 0.1.0-beta.43
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/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/v1/customers/customers.d.mts +6 -7
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +6 -7
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +1 -2
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +1 -2
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +3 -3
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +3 -3
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +1 -1
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +1 -1
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +3 -1
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +3 -1
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +3 -1
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +3 -1
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +106 -1
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +106 -1
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +19 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +19 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +1 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +1 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +1 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/usage.d.mts +114 -1
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +114 -1
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +19 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +19 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/customers/customers.ts +11 -7
- package/src/resources/v1/customers/integrations.ts +5 -2
- package/src/resources/v1/customers/payment-method.ts +2 -1
- package/src/resources/v1/events/data-export/destinations.ts +3 -1
- package/src/resources/v1/events/events.ts +144 -1
- package/src/resources/v1/events/index.ts +7 -1
- package/src/resources/v1/index.ts +9 -1
- package/src/resources/v1/usage.ts +150 -0
- package/src/resources/v1/v1.ts +13 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/v1/v1.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Feature, FeatureArchiveFeatureParams, FeatureCreateFeatureParams, Featu
|
|
|
6
6
|
import * as ProductsAPI from "./products.js";
|
|
7
7
|
import { Product, ProductArchiveProductParams, ProductCreateProductParams, ProductDuplicateProductParams, ProductListProductsParams, ProductListProductsResponse, ProductListProductsResponsesMyCursorIDPage, ProductUnarchiveProductParams, ProductUpdateProductParams, Products } from "./products.js";
|
|
8
8
|
import * as UsageAPI from "./usage.js";
|
|
9
|
-
import { Usage, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.js";
|
|
9
|
+
import { Usage, UsageEstimateCostParams, UsageEstimateCostResponse, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.js";
|
|
10
10
|
import * as AddonsAPI from "./addons/addons.js";
|
|
11
11
|
import { Addon, AddonArchiveParams, AddonCreateDraftParams, AddonCreateParams, AddonListChargesParams, AddonListChargesResponse, AddonListChargesResponsesMyCursorIDPage, AddonListParams, AddonListResponse, AddonListResponsesMyCursorIDPage, AddonPublishParams, AddonPublishResponse, AddonRemoveDraftParams, AddonRemoveDraftResponse, AddonRetrieveParams, AddonUpdateParams, Addons } from "./addons/addons.js";
|
|
12
12
|
import * as CreditsAPI from "./credits/credits.js";
|
|
@@ -14,7 +14,7 @@ import { CreditGetAutoRechargeParams, CreditGetAutoRechargeResponse, CreditGetUs
|
|
|
14
14
|
import * as CustomersAPI from "./customers/customers.js";
|
|
15
15
|
import { CustomerArchiveParams, CustomerCheckEntitlementParams, CustomerCheckEntitlementResponse, CustomerImportParams, CustomerImportResponse, CustomerIntegrationResponse, CustomerListParams, CustomerListResourcesParams, CustomerListResourcesResponse, CustomerListResourcesResponsesMyCursorIDPage, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerRetrieveEntitlementsParams, CustomerRetrieveEntitlementsResponse, CustomerRetrieveParams, CustomerUnarchiveParams, CustomerUpdateParams, Customers } from "./customers/customers.js";
|
|
16
16
|
import * as EventsAPI from "./events/events.js";
|
|
17
|
-
import { EventReportParams, EventReportResponse, Events } from "./events/events.js";
|
|
17
|
+
import { EventEstimateCostParams, EventEstimateCostResponse, EventReportParams, EventReportResponse, Events } from "./events/events.js";
|
|
18
18
|
import * as PlansAPI from "./plans/plans.js";
|
|
19
19
|
import { Plan, PlanArchiveParams, PlanCreateDraftParams, PlanCreateParams, PlanListChargesParams, PlanListChargesResponse, PlanListChargesResponsesMyCursorIDPage, PlanListOverageChargesParams, PlanListOverageChargesResponse, PlanListOverageChargesResponsesMyCursorIDPage, PlanListParams, PlanListResponse, PlanListResponsesMyCursorIDPage, PlanPublishParams, PlanPublishResponse, PlanRemoveDraftParams, PlanRemoveDraftResponse, PlanRetrieveParams, PlanUpdateParams, Plans } from "./plans/plans.js";
|
|
20
20
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.js";
|
|
@@ -35,12 +35,12 @@ export declare namespace V1 {
|
|
|
35
35
|
export { Customers as Customers, type CustomerIntegrationResponse as CustomerIntegrationResponse, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams as CustomerUnarchiveParams, };
|
|
36
36
|
export { Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
37
37
|
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
38
|
-
export { Events as Events, type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams, };
|
|
38
|
+
export { Events as Events, type EventEstimateCostResponse as EventEstimateCostResponse, type EventReportResponse as EventReportResponse, type EventEstimateCostParams as EventEstimateCostParams, type EventReportParams as EventReportParams, };
|
|
39
39
|
export { Credits as Credits, type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
|
|
40
40
|
export { Features as Features, type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
41
41
|
export { Addons as Addons, type Addon as Addon, type AddonListResponse as AddonListResponse, type AddonListChargesResponse as AddonListChargesResponse, type AddonPublishResponse as AddonPublishResponse, type AddonRemoveDraftResponse as AddonRemoveDraftResponse, type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage, type AddonCreateParams as AddonCreateParams, type AddonRetrieveParams as AddonRetrieveParams, type AddonUpdateParams as AddonUpdateParams, type AddonListParams as AddonListParams, type AddonArchiveParams as AddonArchiveParams, type AddonCreateDraftParams as AddonCreateDraftParams, type AddonListChargesParams as AddonListChargesParams, type AddonPublishParams as AddonPublishParams, type AddonRemoveDraftParams as AddonRemoveDraftParams, };
|
|
42
42
|
export { Plans as Plans, type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanRetrieveParams as PlanRetrieveParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanArchiveParams as PlanArchiveParams, type PlanCreateDraftParams as PlanCreateDraftParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, type PlanRemoveDraftParams as PlanRemoveDraftParams, };
|
|
43
|
-
export { Usage as Usage, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
43
|
+
export { Usage as Usage, type UsageEstimateCostResponse as UsageEstimateCostResponse, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageEstimateCostParams as UsageEstimateCostParams, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
44
44
|
export { Products as Products, type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=v1.d.ts.map
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACR,qBAAkB;AACnB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,4BAA4B,EAC5B,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B;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACR,qBAAkB;AACnB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,KAAK,EACL,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB,mBAAgB;AACjB,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,uCAAuC,EACvC,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACP,2BAAwB;AACzB,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,2B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BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAUmB;AACnB,mEAA0C;AAC1C,4CAWoB;AACpB,mEAA0C;AAC1C,4CAWoB;AACpB,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAUmB;AACnB,mEAA0C;AAC1C,4CAWoB;AACpB,mEAA0C;AAC1C,4CAWoB;AACpB,6DAAoC;AACpC,sCAQiB;AACjB,sEAA6C;AAC7C,+CAkByB;AACzB,yEAAgD;AAChD,kDAS2B;AAC3B,+EAAsD;AACtD,wDAqB+B;AAC/B,sEAA6C;AAC7C,+CAMyB;AACzB,mEAA0C;AAC1C,4CAqBuB;AACvB,2FAAkE;AAClE,oEAkBuC;AAEvC,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAXD,gBAWC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,aAAa,GAAG,6BAAa,CAAC;AACjC,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
package/resources/v1/v1.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { Credits, } from "./credits/credits.mjs";
|
|
|
15
15
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
16
16
|
import { Customers, } from "./customers/customers.mjs";
|
|
17
17
|
import * as EventsAPI from "./events/events.mjs";
|
|
18
|
-
import { Events } from "./events/events.mjs";
|
|
18
|
+
import { Events, } from "./events/events.mjs";
|
|
19
19
|
import * as PlansAPI from "./plans/plans.mjs";
|
|
20
20
|
import { Plans, } from "./plans/plans.mjs";
|
|
21
21
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.mjs";
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EASL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAUL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAUL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EASL,OAAO,GACR,sBAAkB;AACnB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAUL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAUL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAiBL,MAAM,GACP,4BAAwB;AACzB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EAQL,OAAO,GACR,8BAA0B;AAC3B,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAoBL,SAAS,GACV,kCAA8B;AAC/B,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAKL,MAAM,GACP,4BAAwB;AACzB,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EAoBL,KAAK,GACN,0BAAsB;AACvB,OAAO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AACnB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -196,8 +196,7 @@ export class Customers extends APIResource {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* Creates a new customer
|
|
200
|
-
* single operation.
|
|
199
|
+
* Creates a new customer.
|
|
201
200
|
*/
|
|
202
201
|
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
203
202
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -309,7 +308,8 @@ export namespace CustomerIntegrationResponse {
|
|
|
309
308
|
| 'APP_STORE'
|
|
310
309
|
| 'RECEIVED'
|
|
311
310
|
| 'PREQUEL'
|
|
312
|
-
| 'AIRWALLEX'
|
|
311
|
+
| 'AIRWALLEX'
|
|
312
|
+
| 'STRIPE_INVOICING';
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
315
|
* Price billing sync revision data containing billing ID, link URL, and price
|
|
@@ -640,7 +640,8 @@ export namespace CustomerResponse {
|
|
|
640
640
|
| 'APP_STORE'
|
|
641
641
|
| 'RECEIVED'
|
|
642
642
|
| 'PREQUEL'
|
|
643
|
-
| 'AIRWALLEX'
|
|
643
|
+
| 'AIRWALLEX'
|
|
644
|
+
| 'STRIPE_INVOICING';
|
|
644
645
|
}
|
|
645
646
|
|
|
646
647
|
/**
|
|
@@ -1225,7 +1226,8 @@ export namespace CustomerListResponse {
|
|
|
1225
1226
|
| 'APP_STORE'
|
|
1226
1227
|
| 'RECEIVED'
|
|
1227
1228
|
| 'PREQUEL'
|
|
1228
|
-
| 'AIRWALLEX'
|
|
1229
|
+
| 'AIRWALLEX'
|
|
1230
|
+
| 'STRIPE_INVOICING';
|
|
1229
1231
|
}
|
|
1230
1232
|
|
|
1231
1233
|
/**
|
|
@@ -2207,7 +2209,8 @@ export namespace CustomerUpdateParams {
|
|
|
2207
2209
|
| 'APP_STORE'
|
|
2208
2210
|
| 'RECEIVED'
|
|
2209
2211
|
| 'PREQUEL'
|
|
2210
|
-
| 'AIRWALLEX'
|
|
2212
|
+
| 'AIRWALLEX'
|
|
2213
|
+
| 'STRIPE_INVOICING';
|
|
2211
2214
|
}
|
|
2212
2215
|
|
|
2213
2216
|
/**
|
|
@@ -2985,7 +2988,8 @@ export namespace CustomerProvisionParams {
|
|
|
2985
2988
|
| 'APP_STORE'
|
|
2986
2989
|
| 'RECEIVED'
|
|
2987
2990
|
| 'PREQUEL'
|
|
2988
|
-
| 'AIRWALLEX'
|
|
2991
|
+
| 'AIRWALLEX'
|
|
2992
|
+
| 'STRIPE_INVOICING';
|
|
2989
2993
|
}
|
|
2990
2994
|
|
|
2991
2995
|
/**
|
|
@@ -157,7 +157,8 @@ export interface IntegrationListResponse {
|
|
|
157
157
|
| 'APP_STORE'
|
|
158
158
|
| 'RECEIVED'
|
|
159
159
|
| 'PREQUEL'
|
|
160
|
-
| 'AIRWALLEX'
|
|
160
|
+
| 'AIRWALLEX'
|
|
161
|
+
| 'STRIPE_INVOICING';
|
|
161
162
|
|
|
162
163
|
/**
|
|
163
164
|
* Price billing sync revision data containing billing ID, link URL, and price
|
|
@@ -282,6 +283,7 @@ export interface IntegrationListParams extends MyCursorIDPageParams {
|
|
|
282
283
|
| 'RECEIVED'
|
|
283
284
|
| 'PREQUEL'
|
|
284
285
|
| 'AIRWALLEX'
|
|
286
|
+
| 'STRIPE_INVOICING'
|
|
285
287
|
>;
|
|
286
288
|
|
|
287
289
|
/**
|
|
@@ -325,7 +327,8 @@ export interface IntegrationLinkParams {
|
|
|
325
327
|
| 'APP_STORE'
|
|
326
328
|
| 'RECEIVED'
|
|
327
329
|
| 'PREQUEL'
|
|
328
|
-
| 'AIRWALLEX'
|
|
330
|
+
| 'AIRWALLEX'
|
|
331
|
+
| 'STRIPE_INVOICING';
|
|
329
332
|
|
|
330
333
|
/**
|
|
331
334
|
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
@@ -52,7 +52,9 @@ export class Destinations extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Disconnect a destination: stops the provider sync (deletes the provider
|
|
56
|
+
* destination) and removes it from the DATA_EXPORT integration. Non-destructive —
|
|
57
|
+
* the warehouse table is left intact. Idempotent.
|
|
56
58
|
*/
|
|
57
59
|
delete(
|
|
58
60
|
destinationID: string,
|
|
@@ -24,6 +24,29 @@ export class Events extends APIResource {
|
|
|
24
24
|
dataExport: DataExportAPI.DataExport = new DataExportAPI.DataExport(this._client);
|
|
25
25
|
beta: BetaAPI.Beta = new BetaAPI.Beta(this._client);
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Estimates the credit cost of a usage event without ingesting it. Returns the
|
|
29
|
+
* estimated cost per credit currency, the current balance, and the balance after
|
|
30
|
+
* the estimated consumption.
|
|
31
|
+
*/
|
|
32
|
+
estimateCost(
|
|
33
|
+
params: EventEstimateCostParams,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<EventEstimateCostResponse> {
|
|
36
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
37
|
+
return this._client.post('/api/v1/events/estimate', {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
headers: buildHeaders([
|
|
41
|
+
{
|
|
42
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
43
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
44
|
+
},
|
|
45
|
+
options?.headers,
|
|
46
|
+
]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
27
50
|
/**
|
|
28
51
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
29
52
|
* asynchronously and aggregated into usage totals.
|
|
@@ -44,6 +67,86 @@ export class Events extends APIResource {
|
|
|
44
67
|
}
|
|
45
68
|
}
|
|
46
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Response object
|
|
72
|
+
*/
|
|
73
|
+
export interface EventEstimateCostResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Estimated credit cost, current balance and balance after
|
|
76
|
+
*/
|
|
77
|
+
data: EventEstimateCostResponse.Data;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace EventEstimateCostResponse {
|
|
81
|
+
/**
|
|
82
|
+
* Estimated credit cost, current balance and balance after
|
|
83
|
+
*/
|
|
84
|
+
export interface Data {
|
|
85
|
+
/**
|
|
86
|
+
* Per-currency cost estimates
|
|
87
|
+
*/
|
|
88
|
+
estimates: Array<Data.Estimate>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Request-level warnings about the estimation context
|
|
92
|
+
*/
|
|
93
|
+
warnings: Array<'RESOURCE_SCOPED_SUBSCRIPTION_EXISTS' | 'FEATURE_NOT_FOUND' | 'FEATURE_NOT_CREDIT_BASED'>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace Data {
|
|
97
|
+
export interface Estimate {
|
|
98
|
+
/**
|
|
99
|
+
* The credit balance after subtracting the estimated cost
|
|
100
|
+
*/
|
|
101
|
+
balanceAfterEstimate: number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Estimated cost contribution per feature
|
|
105
|
+
*/
|
|
106
|
+
breakdown: Array<Estimate.Breakdown>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The credit currency identifier
|
|
110
|
+
*/
|
|
111
|
+
currencyId: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The current credit balance, including not-yet-reconciled consumption
|
|
115
|
+
*/
|
|
116
|
+
currentBalance: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The estimated credit cost of the reported event or usage
|
|
120
|
+
*/
|
|
121
|
+
estimatedCost: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Whether the estimated consumption would bring the balance below zero
|
|
125
|
+
*/
|
|
126
|
+
wouldOverdraft: boolean;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace Estimate {
|
|
130
|
+
export interface Breakdown {
|
|
131
|
+
/**
|
|
132
|
+
* The estimated credit cost contributed by this feature
|
|
133
|
+
*/
|
|
134
|
+
cost: number;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The feature whose meter contributed this cost
|
|
138
|
+
*/
|
|
139
|
+
featureId: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Warning explaining why this cost may be inaccurate, if any
|
|
143
|
+
*/
|
|
144
|
+
warningCode: 'UNSUPPORTED_AGGREGATION' | null;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
47
150
|
/**
|
|
48
151
|
* Response object
|
|
49
152
|
*/
|
|
@@ -55,6 +158,41 @@ export interface EventReportResponse {
|
|
|
55
158
|
data: unknown;
|
|
56
159
|
}
|
|
57
160
|
|
|
161
|
+
export interface EventEstimateCostParams {
|
|
162
|
+
/**
|
|
163
|
+
* Body param: Customer id
|
|
164
|
+
*/
|
|
165
|
+
customerId: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Body param: The name of the usage event
|
|
169
|
+
*/
|
|
170
|
+
eventName: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Body param: Dimensions associated with the usage event
|
|
174
|
+
*/
|
|
175
|
+
dimensions?: { [key: string]: string | number | boolean };
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Body param: Resource id
|
|
179
|
+
*/
|
|
180
|
+
resourceId?: string | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
184
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
185
|
+
*/
|
|
186
|
+
'X-ACCOUNT-ID'?: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
190
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
191
|
+
* intrinsic to the key).
|
|
192
|
+
*/
|
|
193
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
58
196
|
export interface EventReportParams {
|
|
59
197
|
/**
|
|
60
198
|
* Body param: A list of usage events to report
|
|
@@ -116,7 +254,12 @@ Events.DataExport = DataExport;
|
|
|
116
254
|
Events.Beta = Beta;
|
|
117
255
|
|
|
118
256
|
export declare namespace Events {
|
|
119
|
-
export {
|
|
257
|
+
export {
|
|
258
|
+
type EventEstimateCostResponse as EventEstimateCostResponse,
|
|
259
|
+
type EventReportResponse as EventReportResponse,
|
|
260
|
+
type EventEstimateCostParams as EventEstimateCostParams,
|
|
261
|
+
type EventReportParams as EventReportParams,
|
|
262
|
+
};
|
|
120
263
|
|
|
121
264
|
export {
|
|
122
265
|
DataExport as DataExport,
|
|
@@ -10,4 +10,10 @@ export {
|
|
|
10
10
|
type DataExportMintScopedTokenParams,
|
|
11
11
|
type DataExportTriggerSyncParams,
|
|
12
12
|
} from './data-export/index';
|
|
13
|
-
export {
|
|
13
|
+
export {
|
|
14
|
+
Events,
|
|
15
|
+
type EventEstimateCostResponse,
|
|
16
|
+
type EventReportResponse,
|
|
17
|
+
type EventEstimateCostParams,
|
|
18
|
+
type EventReportParams,
|
|
19
|
+
} from './events';
|
|
@@ -62,7 +62,13 @@ export {
|
|
|
62
62
|
type CustomerListResponsesMyCursorIDPage,
|
|
63
63
|
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
64
64
|
} from './customers/index';
|
|
65
|
-
export {
|
|
65
|
+
export {
|
|
66
|
+
Events,
|
|
67
|
+
type EventEstimateCostResponse,
|
|
68
|
+
type EventReportResponse,
|
|
69
|
+
type EventEstimateCostParams,
|
|
70
|
+
type EventReportParams,
|
|
71
|
+
} from './events/index';
|
|
66
72
|
export {
|
|
67
73
|
Features,
|
|
68
74
|
type Feature,
|
|
@@ -130,8 +136,10 @@ export {
|
|
|
130
136
|
} from './subscriptions/index';
|
|
131
137
|
export {
|
|
132
138
|
Usage,
|
|
139
|
+
type UsageEstimateCostResponse,
|
|
133
140
|
type UsageHistoryResponse,
|
|
134
141
|
type UsageReportResponse,
|
|
142
|
+
type UsageEstimateCostParams,
|
|
135
143
|
type UsageHistoryParams,
|
|
136
144
|
type UsageReportParams,
|
|
137
145
|
} from './usage';
|
|
@@ -10,6 +10,29 @@ import { path } from '../../internal/utils/path';
|
|
|
10
10
|
* Operations related to usage & metering
|
|
11
11
|
*/
|
|
12
12
|
export class Usage extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Estimates the credit cost of a usage report without recording it. Returns the
|
|
15
|
+
* estimated cost per credit currency, the current balance, and the balance after
|
|
16
|
+
* the estimated consumption.
|
|
17
|
+
*/
|
|
18
|
+
estimateCost(
|
|
19
|
+
params: UsageEstimateCostParams,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<UsageEstimateCostResponse> {
|
|
22
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
23
|
+
return this._client.post('/api/v1/usage/estimate', {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([
|
|
27
|
+
{
|
|
28
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
29
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
30
|
+
},
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
13
36
|
/**
|
|
14
37
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
15
38
|
*/
|
|
@@ -52,6 +75,86 @@ export class Usage extends APIResource {
|
|
|
52
75
|
}
|
|
53
76
|
}
|
|
54
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Response object
|
|
80
|
+
*/
|
|
81
|
+
export interface UsageEstimateCostResponse {
|
|
82
|
+
/**
|
|
83
|
+
* Estimated credit cost, current balance and balance after
|
|
84
|
+
*/
|
|
85
|
+
data: UsageEstimateCostResponse.Data;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace UsageEstimateCostResponse {
|
|
89
|
+
/**
|
|
90
|
+
* Estimated credit cost, current balance and balance after
|
|
91
|
+
*/
|
|
92
|
+
export interface Data {
|
|
93
|
+
/**
|
|
94
|
+
* Per-currency cost estimates
|
|
95
|
+
*/
|
|
96
|
+
estimates: Array<Data.Estimate>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Request-level warnings about the estimation context
|
|
100
|
+
*/
|
|
101
|
+
warnings: Array<'RESOURCE_SCOPED_SUBSCRIPTION_EXISTS' | 'FEATURE_NOT_FOUND' | 'FEATURE_NOT_CREDIT_BASED'>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace Data {
|
|
105
|
+
export interface Estimate {
|
|
106
|
+
/**
|
|
107
|
+
* The credit balance after subtracting the estimated cost
|
|
108
|
+
*/
|
|
109
|
+
balanceAfterEstimate: number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Estimated cost contribution per feature
|
|
113
|
+
*/
|
|
114
|
+
breakdown: Array<Estimate.Breakdown>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The credit currency identifier
|
|
118
|
+
*/
|
|
119
|
+
currencyId: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The current credit balance, including not-yet-reconciled consumption
|
|
123
|
+
*/
|
|
124
|
+
currentBalance: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The estimated credit cost of the reported event or usage
|
|
128
|
+
*/
|
|
129
|
+
estimatedCost: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Whether the estimated consumption would bring the balance below zero
|
|
133
|
+
*/
|
|
134
|
+
wouldOverdraft: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace Estimate {
|
|
138
|
+
export interface Breakdown {
|
|
139
|
+
/**
|
|
140
|
+
* The estimated credit cost contributed by this feature
|
|
141
|
+
*/
|
|
142
|
+
cost: number;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The feature whose meter contributed this cost
|
|
146
|
+
*/
|
|
147
|
+
featureId: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Warning explaining why this cost may be inaccurate, if any
|
|
151
|
+
*/
|
|
152
|
+
warningCode: 'UNSUPPORTED_AGGREGATION' | null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
55
158
|
/**
|
|
56
159
|
* Response object
|
|
57
160
|
*/
|
|
@@ -273,6 +376,51 @@ export namespace UsageReportResponse {
|
|
|
273
376
|
}
|
|
274
377
|
}
|
|
275
378
|
|
|
379
|
+
export interface UsageEstimateCostParams {
|
|
380
|
+
/**
|
|
381
|
+
* Body param: Customer id
|
|
382
|
+
*/
|
|
383
|
+
customerId: string;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Body param: Feature id
|
|
387
|
+
*/
|
|
388
|
+
featureId: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Body param: The value to report for usage
|
|
392
|
+
*/
|
|
393
|
+
value: number;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Body param: Additional dimensions for the usage report
|
|
397
|
+
*/
|
|
398
|
+
dimensions?: { [key: string]: string | number | boolean };
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Body param: Resource id
|
|
402
|
+
*/
|
|
403
|
+
resourceId?: string | null;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Body param: The method by which the usage value should be updated
|
|
407
|
+
*/
|
|
408
|
+
updateBehavior?: 'DELTA' | 'SET';
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
412
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
413
|
+
*/
|
|
414
|
+
'X-ACCOUNT-ID'?: string;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
418
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
419
|
+
* intrinsic to the key).
|
|
420
|
+
*/
|
|
421
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
276
424
|
export interface UsageHistoryParams {
|
|
277
425
|
/**
|
|
278
426
|
* Path param: Customer id
|
|
@@ -382,8 +530,10 @@ export namespace UsageReportParams {
|
|
|
382
530
|
|
|
383
531
|
export declare namespace Usage {
|
|
384
532
|
export {
|
|
533
|
+
type UsageEstimateCostResponse as UsageEstimateCostResponse,
|
|
385
534
|
type UsageHistoryResponse as UsageHistoryResponse,
|
|
386
535
|
type UsageReportResponse as UsageReportResponse,
|
|
536
|
+
type UsageEstimateCostParams as UsageEstimateCostParams,
|
|
387
537
|
type UsageHistoryParams as UsageHistoryParams,
|
|
388
538
|
type UsageReportParams as UsageReportParams,
|
|
389
539
|
};
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -42,6 +42,8 @@ import {
|
|
|
42
42
|
import * as UsageAPI from './usage';
|
|
43
43
|
import {
|
|
44
44
|
Usage,
|
|
45
|
+
UsageEstimateCostParams,
|
|
46
|
+
UsageEstimateCostResponse,
|
|
45
47
|
UsageHistoryParams,
|
|
46
48
|
UsageHistoryResponse,
|
|
47
49
|
UsageReportParams,
|
|
@@ -102,7 +104,13 @@ import {
|
|
|
102
104
|
Customers,
|
|
103
105
|
} from './customers/customers';
|
|
104
106
|
import * as EventsAPI from './events/events';
|
|
105
|
-
import {
|
|
107
|
+
import {
|
|
108
|
+
EventEstimateCostParams,
|
|
109
|
+
EventEstimateCostResponse,
|
|
110
|
+
EventReportParams,
|
|
111
|
+
EventReportResponse,
|
|
112
|
+
Events,
|
|
113
|
+
} from './events/events';
|
|
106
114
|
import * as PlansAPI from './plans/plans';
|
|
107
115
|
import {
|
|
108
116
|
Plan,
|
|
@@ -229,7 +237,9 @@ export declare namespace V1 {
|
|
|
229
237
|
|
|
230
238
|
export {
|
|
231
239
|
Events as Events,
|
|
240
|
+
type EventEstimateCostResponse as EventEstimateCostResponse,
|
|
232
241
|
type EventReportResponse as EventReportResponse,
|
|
242
|
+
type EventEstimateCostParams as EventEstimateCostParams,
|
|
233
243
|
type EventReportParams as EventReportParams,
|
|
234
244
|
};
|
|
235
245
|
|
|
@@ -302,8 +312,10 @@ export declare namespace V1 {
|
|
|
302
312
|
|
|
303
313
|
export {
|
|
304
314
|
Usage as Usage,
|
|
315
|
+
type UsageEstimateCostResponse as UsageEstimateCostResponse,
|
|
305
316
|
type UsageHistoryResponse as UsageHistoryResponse,
|
|
306
317
|
type UsageReportResponse as UsageReportResponse,
|
|
318
|
+
type UsageEstimateCostParams as UsageEstimateCostParams,
|
|
307
319
|
type UsageHistoryParams as UsageHistoryParams,
|
|
308
320
|
type UsageReportParams as UsageReportParams,
|
|
309
321
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.43'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.43";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.43";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|