@schematichq/schematic-typescript-node 1.2.3 → 1.2.4
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/Client.d.ts +67 -0
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +4 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +3 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +3 -1
- package/dist/api/types/ApiKeyRequestResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/types/ApiKeyRequestResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -70,4 +70,71 @@ export declare class SchematicClient {
|
|
|
70
70
|
get plangroups(): Plangroups;
|
|
71
71
|
get accesstokens(): Accesstokens;
|
|
72
72
|
get webhooks(): Webhooks;
|
|
73
|
+
/**
|
|
74
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.getCredit()
|
|
78
|
+
*/
|
|
79
|
+
getCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
80
|
+
private __getCredit;
|
|
81
|
+
/**
|
|
82
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.updateCredit()
|
|
86
|
+
*/
|
|
87
|
+
updateCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
88
|
+
private __updateCredit;
|
|
89
|
+
/**
|
|
90
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.deleteCredit()
|
|
94
|
+
*/
|
|
95
|
+
deleteCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
96
|
+
private __deleteCredit;
|
|
97
|
+
/**
|
|
98
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* await client.getCreditBundle()
|
|
102
|
+
*/
|
|
103
|
+
getCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
104
|
+
private __getCreditBundle;
|
|
105
|
+
/**
|
|
106
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* await client.purchaseCreditBundle()
|
|
110
|
+
*/
|
|
111
|
+
purchaseCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
112
|
+
private __purchaseCreditBundle;
|
|
113
|
+
/**
|
|
114
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.updateCreditBundle()
|
|
118
|
+
*/
|
|
119
|
+
updateCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
120
|
+
private __updateCreditBundle;
|
|
121
|
+
/**
|
|
122
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* await client.zeroOutCreditGrant()
|
|
126
|
+
*/
|
|
127
|
+
zeroOutCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
128
|
+
private __zeroOutCreditGrant;
|
|
129
|
+
/**
|
|
130
|
+
* @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.deletePlanCreditGrant()
|
|
134
|
+
*/
|
|
135
|
+
deletePlanCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
136
|
+
private __deletePlanCreditGrant;
|
|
137
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
138
|
+
"X-Schematic-Api-Key": string | undefined;
|
|
139
|
+
}>;
|
|
73
140
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CreateWebhookRequestBodyRequestTypesItem = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
|
|
4
|
+
export type CreateWebhookRequestBodyRequestTypesItem = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
|
|
5
5
|
export declare const CreateWebhookRequestBodyRequestTypesItem: {
|
|
6
6
|
readonly CompanyUpdated: "company.updated";
|
|
7
7
|
readonly UserUpdated: "user.updated";
|
|
@@ -31,6 +31,8 @@ export declare const CreateWebhookRequestBodyRequestTypesItem: {
|
|
|
31
31
|
readonly EntitlementLimitReached: "entitlement.limit.reached";
|
|
32
32
|
readonly EntitlementSoftLimitWarning: "entitlement.soft_limit.warning";
|
|
33
33
|
readonly EntitlementSoftLimitReached: "entitlement.soft_limit.reached";
|
|
34
|
+
readonly EntitlementTierLimitWarning: "entitlement.tier_limit.warning";
|
|
35
|
+
readonly EntitlementTierLimitReached: "entitlement.tier_limit.reached";
|
|
34
36
|
readonly CreditLimitWarning: "credit.limit.warning";
|
|
35
37
|
readonly CreditLimitReached: "credit.limit.reached";
|
|
36
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type UpdateWebhookRequestBodyRequestTypesItem = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
|
|
4
|
+
export type UpdateWebhookRequestBodyRequestTypesItem = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
|
|
5
5
|
export declare const UpdateWebhookRequestBodyRequestTypesItem: {
|
|
6
6
|
readonly CompanyUpdated: "company.updated";
|
|
7
7
|
readonly UserUpdated: "user.updated";
|
|
@@ -31,6 +31,8 @@ export declare const UpdateWebhookRequestBodyRequestTypesItem: {
|
|
|
31
31
|
readonly EntitlementLimitReached: "entitlement.limit.reached";
|
|
32
32
|
readonly EntitlementSoftLimitWarning: "entitlement.soft_limit.warning";
|
|
33
33
|
readonly EntitlementSoftLimitReached: "entitlement.soft_limit.reached";
|
|
34
|
+
readonly EntitlementTierLimitWarning: "entitlement.tier_limit.warning";
|
|
35
|
+
readonly EntitlementTierLimitReached: "entitlement.tier_limit.reached";
|
|
34
36
|
readonly CreditLimitWarning: "credit.limit.warning";
|
|
35
37
|
readonly CreditLimitReached: "credit.limit.reached";
|
|
36
38
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Schematic from "../index";
|
|
4
5
|
export interface ApiKeyRequestResponseData {
|
|
6
|
+
apiKey?: Schematic.ApiKeyResponseData;
|
|
5
7
|
apiKeyId: string;
|
|
6
8
|
endedAt?: Date;
|
|
7
9
|
environmentId?: string;
|
package/dist/events.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare class EventBuffer {
|
|
|
21
21
|
private initialRetryDelay;
|
|
22
22
|
private shutdown;
|
|
23
23
|
private stopped;
|
|
24
|
+
private flushing;
|
|
24
25
|
constructor(eventsApi: Events, opts?: EventBufferOptions);
|
|
25
26
|
flush(): Promise<void>;
|
|
26
27
|
push(event: CreateEventRequestBody): Promise<void>;
|