@openmeter/sdk 1.0.0-beta-aeebf31bddfe → 1.0.0-beta-36e744c68d10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/client/customers.cjs +9 -2
- package/dist/cjs/src/client/customers.d.cts +9 -2
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +2 -0
- package/dist/cjs/src/client/notifications.d.cts +3 -30
- package/dist/cjs/src/client/portal.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +62 -31
- package/dist/cjs/{tsconfig.78f62d2c.tsbuildinfo → tsconfig.2afe6c68.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.e2f5e70e.tsbuildinfo → tsconfig.3a7c28e9.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +9 -2
- package/dist/src/client/customers.js +9 -2
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +2 -0
- package/dist/src/client/notifications.d.ts +3 -30
- package/dist/src/client/portal.js.map +1 -1
- package/dist/src/client/schemas.d.ts +62 -31
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -127,7 +127,7 @@ class CustomerApps {
|
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* List customer app data
|
|
130
|
-
* @param customerIdOrKey - The ID or
|
|
130
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
131
131
|
* @param query - The query parameters
|
|
132
132
|
* @param signal - An optional abort signal
|
|
133
133
|
* @returns The list of customer app data
|
|
@@ -144,7 +144,7 @@ class CustomerApps {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Delete customer app data
|
|
147
|
-
* @param customerIdOrKey - The ID or
|
|
147
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
148
148
|
* @param appId - The ID of the app
|
|
149
149
|
* @param signal - An optional abort signal
|
|
150
150
|
* @returns The deleted customer app data
|
|
@@ -156,6 +156,13 @@ class CustomerApps {
|
|
|
156
156
|
});
|
|
157
157
|
return (0, utils_js_1.transformResponse)(resp);
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* List customer subscriptions
|
|
161
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
162
|
+
* @param query - The query parameters
|
|
163
|
+
* @param signal - An optional abort signal
|
|
164
|
+
* @returns The list of customer subscriptions
|
|
165
|
+
*/
|
|
159
166
|
async listSubscriptions(customerIdOrKey, query, options) {
|
|
160
167
|
const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/subscriptions', {
|
|
161
168
|
params: { path: { customerIdOrKey }, query },
|
|
@@ -120,7 +120,7 @@ export declare class CustomerApps {
|
|
|
120
120
|
})[]>;
|
|
121
121
|
/**
|
|
122
122
|
* List customer app data
|
|
123
|
-
* @param customerIdOrKey - The ID or
|
|
123
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
124
124
|
* @param query - The query parameters
|
|
125
125
|
* @param signal - An optional abort signal
|
|
126
126
|
* @returns The list of customer app data
|
|
@@ -133,12 +133,19 @@ export declare class CustomerApps {
|
|
|
133
133
|
}>;
|
|
134
134
|
/**
|
|
135
135
|
* Delete customer app data
|
|
136
|
-
* @param customerIdOrKey - The ID or
|
|
136
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
137
137
|
* @param appId - The ID of the app
|
|
138
138
|
* @param signal - An optional abort signal
|
|
139
139
|
* @returns The deleted customer app data
|
|
140
140
|
*/
|
|
141
141
|
delete(customerIdOrKey: operations['deleteCustomerAppData']['parameters']['path']['customerIdOrKey'], appId: operations['deleteCustomerAppData']['parameters']['path']['appId'], options?: RequestOptions): Promise<undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* List customer subscriptions
|
|
144
|
+
* @param customerIdOrKey - The ID or key of the customer
|
|
145
|
+
* @param query - The query parameters
|
|
146
|
+
* @param signal - An optional abort signal
|
|
147
|
+
* @returns The list of customer subscriptions
|
|
148
|
+
*/
|
|
142
149
|
listSubscriptions(customerIdOrKey: operations['listCustomerSubscriptions']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerSubscriptions']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
143
150
|
totalCount: number;
|
|
144
151
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;;GAGG;AACH,MAAa,SAAS;IAIA;IAHb,IAAI,CAAc;IAClB,YAAY,CAAsB;IAEzC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACvD,IAAI,EAAE,QAAQ;YACd,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,eAAmF,EACnF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACxE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,eAAsF,EACtF,QAA+B,EAC/B,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACxE,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CACjB,eAAsF,EACtF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;;GAGG;AACH,MAAa,SAAS;IAIA;IAHb,IAAI,CAAc;IAClB,YAAY,CAAsB;IAEzC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACvD,IAAI,EAAE,QAAQ;YACd,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,eAAmF,EACnF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACxE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,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oCAsGC;AAED;;GAEG;AACH,MAAa,oBAAoB;IACX;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;;OAMG;IACI,KAAK,CAAC,KAAK,CAChB,eAAmG,EACnG,UAAyF,EACzF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,qEAAqE,EACrE;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE;YACjD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAzBD,oDAyBC"}
|
|
@@ -114,16 +114,7 @@ export declare class NotificationRules {
|
|
|
114
114
|
* @returns The created rule
|
|
115
115
|
*/
|
|
116
116
|
create(rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<{
|
|
117
|
-
|
|
118
|
-
readonly updatedAt: Date;
|
|
119
|
-
readonly deletedAt?: Date;
|
|
120
|
-
readonly id: string;
|
|
121
|
-
type: "entitlements.balance.threshold";
|
|
122
|
-
name: string;
|
|
123
|
-
disabled?: boolean;
|
|
124
|
-
channels: import("./schemas.cjs").components["schemas"]["NotificationChannelMeta"][];
|
|
125
|
-
thresholds: import("./schemas.cjs").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
|
|
126
|
-
features?: import("./schemas.cjs").components["schemas"]["FeatureMeta"][];
|
|
117
|
+
'application/json': import("./schemas.cjs").components["schemas"]["NotificationRule"];
|
|
127
118
|
}>;
|
|
128
119
|
/**
|
|
129
120
|
* Get a notification rule by ID
|
|
@@ -132,16 +123,7 @@ export declare class NotificationRules {
|
|
|
132
123
|
* @returns The notification rule
|
|
133
124
|
*/
|
|
134
125
|
get(id: operations['getNotificationRule']['parameters']['path']['ruleId'], options?: RequestOptions): Promise<{
|
|
135
|
-
|
|
136
|
-
readonly updatedAt: Date;
|
|
137
|
-
readonly deletedAt?: Date;
|
|
138
|
-
readonly id: string;
|
|
139
|
-
type: "entitlements.balance.threshold";
|
|
140
|
-
name: string;
|
|
141
|
-
disabled?: boolean;
|
|
142
|
-
channels: import("./schemas.cjs").components["schemas"]["NotificationChannelMeta"][];
|
|
143
|
-
thresholds: import("./schemas.cjs").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
|
|
144
|
-
features?: import("./schemas.cjs").components["schemas"]["FeatureMeta"][];
|
|
126
|
+
'application/json': import("./schemas.cjs").components["schemas"]["NotificationRule"];
|
|
145
127
|
}>;
|
|
146
128
|
/**
|
|
147
129
|
* Update a notification rule
|
|
@@ -151,16 +133,7 @@ export declare class NotificationRules {
|
|
|
151
133
|
* @returns The updated rule
|
|
152
134
|
*/
|
|
153
135
|
update(id: operations['updateNotificationRule']['parameters']['path']['ruleId'], rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<{
|
|
154
|
-
|
|
155
|
-
readonly updatedAt: Date;
|
|
156
|
-
readonly deletedAt?: Date;
|
|
157
|
-
readonly id: string;
|
|
158
|
-
type: "entitlements.balance.threshold";
|
|
159
|
-
name: string;
|
|
160
|
-
disabled?: boolean;
|
|
161
|
-
channels: import("./schemas.cjs").components["schemas"]["NotificationChannelMeta"][];
|
|
162
|
-
thresholds: import("./schemas.cjs").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
|
|
163
|
-
features?: import("./schemas.cjs").components["schemas"]["FeatureMeta"][];
|
|
136
|
+
'application/json': import("./schemas.cjs").components["schemas"]["NotificationRule"];
|
|
164
137
|
}>;
|
|
165
138
|
/**
|
|
166
139
|
* List notification rules
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;
|
|
1
|
+
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAK9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAiB,EAAE,OAAwB;QAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,KAA6D,EAC7D,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC1D,MAAM,EAAE,EAAE,KAAK,EAAE;YACjB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,UAAU,CACrB,IAAwF,EACxF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AArDD,wBAqDC"}
|
|
@@ -3306,8 +3306,7 @@ export interface components {
|
|
|
3306
3306
|
*/
|
|
3307
3307
|
subjectKeys: string[];
|
|
3308
3308
|
};
|
|
3309
|
-
/** @description A discount on a price.
|
|
3310
|
-
* One of: percentage, amount, or usage. */
|
|
3309
|
+
/** @description A discount on a price. */
|
|
3311
3310
|
Discount: components['schemas']['DiscountPercentage'];
|
|
3312
3311
|
/** @description Percentage discount. */
|
|
3313
3312
|
DiscountPercentage: {
|
|
@@ -3534,7 +3533,13 @@ export interface components {
|
|
|
3534
3533
|
currentUsagePeriod?: components['schemas']['Period'];
|
|
3535
3534
|
/** @description The defined usage period of the entitlement */
|
|
3536
3535
|
usagePeriod?: components['schemas']['RecurringPeriod'];
|
|
3537
|
-
} & WithRequired<components['schemas']['EntitlementBaseTemplate'], 'type' | 'createdAt' | 'updatedAt' | 'activeFrom' | 'id' | 'subjectKey' | 'featureKey' | 'featureId'
|
|
3536
|
+
} & (WithRequired<components['schemas']['EntitlementBaseTemplate'], 'type' | 'createdAt' | 'updatedAt' | 'activeFrom' | 'id' | 'subjectKey' | 'featureKey' | 'featureId'> & {
|
|
3537
|
+
/**
|
|
3538
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3539
|
+
* @enum {string}
|
|
3540
|
+
*/
|
|
3541
|
+
type: 'boolean';
|
|
3542
|
+
});
|
|
3538
3543
|
/** @description Create inputs for boolean entitlement */
|
|
3539
3544
|
EntitlementBooleanCreateInputs: {
|
|
3540
3545
|
/**
|
|
@@ -3553,7 +3558,10 @@ export interface components {
|
|
|
3553
3558
|
metadata?: components['schemas']['Metadata'];
|
|
3554
3559
|
/** @description The usage period associated with the entitlement. */
|
|
3555
3560
|
usagePeriod?: components['schemas']['RecurringPeriodCreateInput'];
|
|
3556
|
-
/**
|
|
3561
|
+
/**
|
|
3562
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3563
|
+
* @enum {string}
|
|
3564
|
+
*/
|
|
3557
3565
|
type: 'boolean';
|
|
3558
3566
|
};
|
|
3559
3567
|
/** @description Create inputs for entitlement */
|
|
@@ -3716,7 +3724,10 @@ export interface components {
|
|
|
3716
3724
|
/** @description Metered entitlements are useful for many different use cases, from setting up usage based access to implementing complex credit systems.
|
|
3717
3725
|
* Access is determined based on feature usage using a balance calculation (the "usage allowance" provided by the issued grants is "burnt down" by the usage). */
|
|
3718
3726
|
EntitlementMetered: {
|
|
3719
|
-
/**
|
|
3727
|
+
/**
|
|
3728
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3729
|
+
* @enum {string}
|
|
3730
|
+
*/
|
|
3720
3731
|
type: 'metered';
|
|
3721
3732
|
/**
|
|
3722
3733
|
* Soft limit
|
|
@@ -3847,7 +3858,10 @@ export interface components {
|
|
|
3847
3858
|
featureId?: string;
|
|
3848
3859
|
/** @description Additional metadata for the feature. */
|
|
3849
3860
|
metadata?: components['schemas']['Metadata'];
|
|
3850
|
-
/**
|
|
3861
|
+
/**
|
|
3862
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3863
|
+
* @enum {string}
|
|
3864
|
+
*/
|
|
3851
3865
|
type: 'metered';
|
|
3852
3866
|
/**
|
|
3853
3867
|
* Soft limit
|
|
@@ -3915,7 +3929,10 @@ export interface components {
|
|
|
3915
3929
|
};
|
|
3916
3930
|
/** @description A static entitlement. */
|
|
3917
3931
|
EntitlementStatic: {
|
|
3918
|
-
/**
|
|
3932
|
+
/**
|
|
3933
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3934
|
+
* @enum {string}
|
|
3935
|
+
*/
|
|
3919
3936
|
type: 'static';
|
|
3920
3937
|
/**
|
|
3921
3938
|
* Format: json
|
|
@@ -4008,7 +4025,10 @@ export interface components {
|
|
|
4008
4025
|
metadata?: components['schemas']['Metadata'];
|
|
4009
4026
|
/** @description The usage period associated with the entitlement. */
|
|
4010
4027
|
usagePeriod?: components['schemas']['RecurringPeriodCreateInput'];
|
|
4011
|
-
/**
|
|
4028
|
+
/**
|
|
4029
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4030
|
+
* @enum {string}
|
|
4031
|
+
*/
|
|
4012
4032
|
type: 'static';
|
|
4013
4033
|
/**
|
|
4014
4034
|
* Format: json
|
|
@@ -4788,7 +4808,7 @@ export interface components {
|
|
|
4788
4808
|
/** @description Subscription are the references to the subscritpions that this line is related to. */
|
|
4789
4809
|
readonly subscriptions?: components['schemas']['InvoiceLineSubscriptionReference'];
|
|
4790
4810
|
/**
|
|
4791
|
-
* @description Type of the line.
|
|
4811
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
4792
4812
|
* @enum {string}
|
|
4793
4813
|
*/
|
|
4794
4814
|
type: 'flat_fee';
|
|
@@ -4839,7 +4859,7 @@ export interface components {
|
|
|
4839
4859
|
*/
|
|
4840
4860
|
invoiceAt: Date;
|
|
4841
4861
|
/**
|
|
4842
|
-
* @description Type of the line.
|
|
4862
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
4843
4863
|
* @enum {string}
|
|
4844
4864
|
*/
|
|
4845
4865
|
type: 'flat_fee';
|
|
@@ -4895,7 +4915,7 @@ export interface components {
|
|
|
4895
4915
|
*/
|
|
4896
4916
|
invoiceAt: Date;
|
|
4897
4917
|
/**
|
|
4898
|
-
* @description Type of the line.
|
|
4918
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
4899
4919
|
* @enum {string}
|
|
4900
4920
|
*/
|
|
4901
4921
|
type: 'flat_fee';
|
|
@@ -5168,7 +5188,7 @@ export interface components {
|
|
|
5168
5188
|
*/
|
|
5169
5189
|
invoiceAt: Date;
|
|
5170
5190
|
/**
|
|
5171
|
-
* @description Type of the line.
|
|
5191
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
5172
5192
|
* @enum {string}
|
|
5173
5193
|
*/
|
|
5174
5194
|
type: 'flat_fee';
|
|
@@ -5237,7 +5257,7 @@ export interface components {
|
|
|
5237
5257
|
*/
|
|
5238
5258
|
invoiceAt: Date;
|
|
5239
5259
|
/**
|
|
5240
|
-
* @description Type of the line.
|
|
5260
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
5241
5261
|
* @enum {string}
|
|
5242
5262
|
*/
|
|
5243
5263
|
type: 'usage_based';
|
|
@@ -5387,7 +5407,7 @@ export interface components {
|
|
|
5387
5407
|
/** @description Subscription are the references to the subscritpions that this line is related to. */
|
|
5388
5408
|
readonly subscriptions?: components['schemas']['InvoiceLineSubscriptionReference'];
|
|
5389
5409
|
/**
|
|
5390
|
-
* @description Type of the line.
|
|
5410
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
5391
5411
|
* @enum {string}
|
|
5392
5412
|
*/
|
|
5393
5413
|
type: 'usage_based';
|
|
@@ -5434,7 +5454,7 @@ export interface components {
|
|
|
5434
5454
|
*/
|
|
5435
5455
|
invoiceAt: Date;
|
|
5436
5456
|
/**
|
|
5437
|
-
* @description Type of the line.
|
|
5457
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
5438
5458
|
* @enum {string}
|
|
5439
5459
|
*/
|
|
5440
5460
|
type: 'usage_based';
|
|
@@ -5480,7 +5500,7 @@ export interface components {
|
|
|
5480
5500
|
*/
|
|
5481
5501
|
invoiceAt: Date;
|
|
5482
5502
|
/**
|
|
5483
|
-
* @description Type of the line.
|
|
5503
|
+
* @description Type of the line. (enum property replaced by openapi-typescript)
|
|
5484
5504
|
* @enum {string}
|
|
5485
5505
|
*/
|
|
5486
5506
|
type: 'usage_based';
|
|
@@ -5986,7 +6006,7 @@ export interface components {
|
|
|
5986
6006
|
* Channel Type
|
|
5987
6007
|
* @description Notification channel type.
|
|
5988
6008
|
*/
|
|
5989
|
-
|
|
6009
|
+
type: components['schemas']['NotificationChannelType'];
|
|
5990
6010
|
};
|
|
5991
6011
|
/**
|
|
5992
6012
|
* @description Order by options for notification channels.
|
|
@@ -6271,7 +6291,9 @@ export interface components {
|
|
|
6271
6291
|
*/
|
|
6272
6292
|
NotificationEventType: 'entitlements.balance.threshold';
|
|
6273
6293
|
/** @description Notification Rule. */
|
|
6274
|
-
NotificationRule:
|
|
6294
|
+
NotificationRule: {
|
|
6295
|
+
type: 'NotificationRule';
|
|
6296
|
+
} & components['schemas']['NotificationRuleBalanceThreshold'];
|
|
6275
6297
|
/** @description Notification rule with entitlements.balance.threshold type. */
|
|
6276
6298
|
NotificationRuleBalanceThreshold: {
|
|
6277
6299
|
/**
|
|
@@ -6395,7 +6417,9 @@ export interface components {
|
|
|
6395
6417
|
*/
|
|
6396
6418
|
NotificationRuleBalanceThresholdValueType: 'PERCENT' | 'NUMBER';
|
|
6397
6419
|
/** @description Union type for requests creating new notification rule with certain type. */
|
|
6398
|
-
NotificationRuleCreateRequest:
|
|
6420
|
+
NotificationRuleCreateRequest: {
|
|
6421
|
+
type: 'NotificationRuleCreateRequest';
|
|
6422
|
+
} & components['schemas']['NotificationRuleBalanceThresholdCreateRequest'];
|
|
6399
6423
|
/**
|
|
6400
6424
|
* @description Order by options for notification channels.
|
|
6401
6425
|
* @enum {string}
|
|
@@ -6880,7 +6904,10 @@ export interface components {
|
|
|
6880
6904
|
RateCardBooleanEntitlement: {
|
|
6881
6905
|
/** @description Additional metadata for the feature. */
|
|
6882
6906
|
metadata?: components['schemas']['Metadata'];
|
|
6883
|
-
/**
|
|
6907
|
+
/**
|
|
6908
|
+
* @description discriminator enum property added by openapi-typescript
|
|
6909
|
+
* @enum {string}
|
|
6910
|
+
*/
|
|
6884
6911
|
type: 'boolean';
|
|
6885
6912
|
};
|
|
6886
6913
|
/** @description Entitlement templates are used to define the entitlements of a plan.
|
|
@@ -6950,7 +6977,10 @@ export interface components {
|
|
|
6950
6977
|
RateCardMeteredEntitlement: {
|
|
6951
6978
|
/** @description Additional metadata for the feature. */
|
|
6952
6979
|
metadata?: components['schemas']['Metadata'];
|
|
6953
|
-
/**
|
|
6980
|
+
/**
|
|
6981
|
+
* @description discriminator enum property added by openapi-typescript
|
|
6982
|
+
* @enum {string}
|
|
6983
|
+
*/
|
|
6954
6984
|
type: 'metered';
|
|
6955
6985
|
/**
|
|
6956
6986
|
* Soft limit
|
|
@@ -6992,7 +7022,10 @@ export interface components {
|
|
|
6992
7022
|
RateCardStaticEntitlement: {
|
|
6993
7023
|
/** @description Additional metadata for the feature. */
|
|
6994
7024
|
metadata?: components['schemas']['Metadata'];
|
|
6995
|
-
/**
|
|
7025
|
+
/**
|
|
7026
|
+
* @description discriminator enum property added by openapi-typescript
|
|
7027
|
+
* @enum {string}
|
|
7028
|
+
*/
|
|
6996
7029
|
type: 'static';
|
|
6997
7030
|
/**
|
|
6998
7031
|
* Format: json
|
|
@@ -7187,7 +7220,7 @@ export interface components {
|
|
|
7187
7220
|
* Only one app of each type can be default. */
|
|
7188
7221
|
default: boolean;
|
|
7189
7222
|
/**
|
|
7190
|
-
* @description The app's type is Sandbox.
|
|
7223
|
+
* @description The app's type is Sandbox. (enum property replaced by openapi-typescript)
|
|
7191
7224
|
* @enum {string}
|
|
7192
7225
|
*/
|
|
7193
7226
|
type: 'sandbox';
|
|
@@ -7204,8 +7237,7 @@ export interface components {
|
|
|
7204
7237
|
*/
|
|
7205
7238
|
id?: string;
|
|
7206
7239
|
/**
|
|
7207
|
-
*
|
|
7208
|
-
* @description The app name.
|
|
7240
|
+
* @description The app name. (enum property replaced by openapi-typescript)
|
|
7209
7241
|
* @enum {string}
|
|
7210
7242
|
*/
|
|
7211
7243
|
type: 'sandbox';
|
|
@@ -7313,7 +7345,7 @@ export interface components {
|
|
|
7313
7345
|
* Only one app of each type can be default. */
|
|
7314
7346
|
default: boolean;
|
|
7315
7347
|
/**
|
|
7316
|
-
* @description The app's type is Stripe.
|
|
7348
|
+
* @description The app's type is Stripe. (enum property replaced by openapi-typescript)
|
|
7317
7349
|
* @enum {string}
|
|
7318
7350
|
*/
|
|
7319
7351
|
type: 'stripe';
|
|
@@ -7346,8 +7378,7 @@ export interface components {
|
|
|
7346
7378
|
*/
|
|
7347
7379
|
id?: string;
|
|
7348
7380
|
/**
|
|
7349
|
-
*
|
|
7350
|
-
* @description The app name.
|
|
7381
|
+
* @description The app name. (enum property replaced by openapi-typescript)
|
|
7351
7382
|
* @enum {string}
|
|
7352
7383
|
*/
|
|
7353
7384
|
type: 'stripe';
|
|
@@ -8163,7 +8194,7 @@ export interface components {
|
|
|
8163
8194
|
/** @description VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice. */
|
|
8164
8195
|
VoidInvoiceLineDiscardAction: {
|
|
8165
8196
|
/**
|
|
8166
|
-
* @description The action to take on the line item.
|
|
8197
|
+
* @description The action to take on the line item. (enum property replaced by openapi-typescript)
|
|
8167
8198
|
* @enum {string}
|
|
8168
8199
|
*/
|
|
8169
8200
|
type: 'discard';
|
|
@@ -8171,7 +8202,7 @@ export interface components {
|
|
|
8171
8202
|
/** @description VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice. */
|
|
8172
8203
|
VoidInvoiceLinePendingActionCreate: {
|
|
8173
8204
|
/**
|
|
8174
|
-
* @description The action to take on the line item.
|
|
8205
|
+
* @description The action to take on the line item. (enum property replaced by openapi-typescript)
|
|
8175
8206
|
* @enum {string}
|
|
8176
8207
|
*/
|
|
8177
8208
|
type: 'pending';
|
|
@@ -8187,7 +8218,7 @@ export interface components {
|
|
|
8187
8218
|
/** @description VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice. */
|
|
8188
8219
|
VoidInvoiceLinePendingActionCreateItem: {
|
|
8189
8220
|
/**
|
|
8190
|
-
* @description The action to take on the line item.
|
|
8221
|
+
* @description The action to take on the line item. (enum property replaced by openapi-typescript)
|
|
8191
8222
|
* @enum {string}
|
|
8192
8223
|
*/
|
|
8193
8224
|
type: 'pending';
|