@schematichq/schematic-typescript-node 1.5.9 → 1.5.12
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/BaseClient.d.ts +12 -0
- package/dist/Client.d.ts +3 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -0
- package/dist/api/errors/ForbiddenError.d.ts +1 -0
- package/dist/api/errors/InternalServerError.d.ts +1 -0
- package/dist/api/errors/NotFoundError.d.ts +1 -0
- package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/UnauthorizedError.d.ts +1 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/resources/accesstokens/client/Client.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +42 -0
- package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +91 -0
- package/dist/api/resources/billing/client/requests/ListCompanyBillingProfilesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -0
- package/dist/api/resources/catalogs/client/Client.d.ts +28 -0
- package/dist/api/resources/checkout/client/Client.d.ts +18 -0
- package/dist/api/resources/companies/client/Client.d.ts +86 -0
- package/dist/api/resources/components/client/Client.d.ts +16 -0
- package/dist/api/resources/componentspublic/client/Client.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +183 -0
- package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
- package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +8 -0
- package/dist/api/resources/dataexports/client/Client.d.ts +8 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +50 -0
- package/dist/api/resources/events/client/Client.d.ts +62 -0
- package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/api/resources/events/client/requests/index.d.ts +1 -0
- package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/index.d.ts +3 -0
- package/dist/api/resources/features/client/Client.d.ts +34 -0
- package/dist/api/resources/insights/client/Client.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +101 -0
- package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/api/resources/licenses/client/Client.d.ts +6 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +6 -2
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +58 -5
- package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +37 -4
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -2
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -2
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +20 -0
- package/dist/api/types/AuditLogResponseData.d.ts +1 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -1
- package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -1
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -1
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
- package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
- package/dist/api/types/EventBodyInference.d.ts +4 -2
- package/dist/api/types/GetOnboardingStateResp.d.ts +6 -0
- package/dist/api/types/OnboardingRequirement.d.ts +1 -0
- package/dist/api/types/OnboardingRequirementView.d.ts +1 -0
- package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
- package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +6 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
- package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
- package/dist/api/types/StripeIntegrationConfig.d.ts +8 -0
- package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
- package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
- package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
- package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/UpcomingInvoiceResponseData.d.ts +23 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/index.d.ts +13 -0
- package/dist/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/core/requestBody.d.ts +12 -0
- package/dist/core/runtime/index.d.ts +1 -1
- package/dist/core/runtime/runtime.d.ts +19 -0
- package/dist/credits/lease-store.d.ts +17 -8
- package/dist/errors/SchematicError.d.ts +1 -0
- package/dist/errors/SchematicTimeoutError.d.ts +2 -2
- package/dist/events.d.ts +6 -0
- package/dist/index.js +25 -9
- package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
- package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +8 -0
- package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/index.d.ts +3 -0
- package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -1
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/serialization/types/AuditLogResponseData.d.ts +1 -0
- package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -2
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -1
- package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
- package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/EventBodyInference.d.ts +1 -0
- package/dist/serialization/types/GetOnboardingStateResp.d.ts +7 -0
- package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
- package/dist/serialization/types/OnboardingRequirementView.d.ts +1 -0
- package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
- package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
- package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +4 -0
- package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
- package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
- package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
- package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +30 -0
- package/dist/serialization/types/index.d.ts +13 -0
- package/dist/wasm/rulesengine.d.ts +1 -1
- package/dist/wasm/rulesengine.js +30 -30
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ export declare class CreditsClient {
|
|
|
19
19
|
* @throws {@link Schematic.ForbiddenError}
|
|
20
20
|
* @throws {@link Schematic.NotFoundError}
|
|
21
21
|
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
* @throws {@link errors.SchematicError}
|
|
23
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.credits.listBillingCredits({
|
|
@@ -39,6 +41,8 @@ export declare class CreditsClient {
|
|
|
39
41
|
* @throws {@link Schematic.ForbiddenError}
|
|
40
42
|
* @throws {@link Schematic.NotFoundError}
|
|
41
43
|
* @throws {@link Schematic.InternalServerError}
|
|
44
|
+
* @throws {@link errors.SchematicError}
|
|
45
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* await client.credits.createBillingCredit({
|
|
@@ -57,6 +61,8 @@ export declare class CreditsClient {
|
|
|
57
61
|
* @throws {@link Schematic.ForbiddenError}
|
|
58
62
|
* @throws {@link Schematic.NotFoundError}
|
|
59
63
|
* @throws {@link Schematic.InternalServerError}
|
|
64
|
+
* @throws {@link errors.SchematicError}
|
|
65
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
60
66
|
*
|
|
61
67
|
* @example
|
|
62
68
|
* await client.credits.getSingleBillingCredit("credit_id")
|
|
@@ -73,6 +79,8 @@ export declare class CreditsClient {
|
|
|
73
79
|
* @throws {@link Schematic.ForbiddenError}
|
|
74
80
|
* @throws {@link Schematic.NotFoundError}
|
|
75
81
|
* @throws {@link Schematic.InternalServerError}
|
|
82
|
+
* @throws {@link errors.SchematicError}
|
|
83
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
76
84
|
*
|
|
77
85
|
* @example
|
|
78
86
|
* await client.credits.updateBillingCredit("credit_id", {
|
|
@@ -91,6 +99,8 @@ export declare class CreditsClient {
|
|
|
91
99
|
* @throws {@link Schematic.ForbiddenError}
|
|
92
100
|
* @throws {@link Schematic.NotFoundError}
|
|
93
101
|
* @throws {@link Schematic.InternalServerError}
|
|
102
|
+
* @throws {@link errors.SchematicError}
|
|
103
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
94
104
|
*
|
|
95
105
|
* @example
|
|
96
106
|
* await client.credits.softDeleteBillingCredit("credit_id")
|
|
@@ -106,6 +116,8 @@ export declare class CreditsClient {
|
|
|
106
116
|
* @throws {@link Schematic.ForbiddenError}
|
|
107
117
|
* @throws {@link Schematic.NotFoundError}
|
|
108
118
|
* @throws {@link Schematic.InternalServerError}
|
|
119
|
+
* @throws {@link errors.SchematicError}
|
|
120
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
109
121
|
*
|
|
110
122
|
* @example
|
|
111
123
|
* await client.credits.listCompanyCreditBalances({
|
|
@@ -123,6 +135,8 @@ export declare class CreditsClient {
|
|
|
123
135
|
* @throws {@link Schematic.ForbiddenError}
|
|
124
136
|
* @throws {@link Schematic.NotFoundError}
|
|
125
137
|
* @throws {@link Schematic.InternalServerError}
|
|
138
|
+
* @throws {@link errors.SchematicError}
|
|
139
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
126
140
|
*
|
|
127
141
|
* @example
|
|
128
142
|
* await client.credits.listCreditBundles({
|
|
@@ -145,6 +159,8 @@ export declare class CreditsClient {
|
|
|
145
159
|
* @throws {@link Schematic.ForbiddenError}
|
|
146
160
|
* @throws {@link Schematic.NotFoundError}
|
|
147
161
|
* @throws {@link Schematic.InternalServerError}
|
|
162
|
+
* @throws {@link errors.SchematicError}
|
|
163
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
148
164
|
*
|
|
149
165
|
* @example
|
|
150
166
|
* await client.credits.createCreditBundle({
|
|
@@ -164,6 +180,8 @@ export declare class CreditsClient {
|
|
|
164
180
|
* @throws {@link Schematic.ForbiddenError}
|
|
165
181
|
* @throws {@link Schematic.NotFoundError}
|
|
166
182
|
* @throws {@link Schematic.InternalServerError}
|
|
183
|
+
* @throws {@link errors.SchematicError}
|
|
184
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
167
185
|
*
|
|
168
186
|
* @example
|
|
169
187
|
* await client.credits.getCreditBundle("bundle_id")
|
|
@@ -180,6 +198,8 @@ export declare class CreditsClient {
|
|
|
180
198
|
* @throws {@link Schematic.ForbiddenError}
|
|
181
199
|
* @throws {@link Schematic.NotFoundError}
|
|
182
200
|
* @throws {@link Schematic.InternalServerError}
|
|
201
|
+
* @throws {@link errors.SchematicError}
|
|
202
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
183
203
|
*
|
|
184
204
|
* @example
|
|
185
205
|
* await client.credits.updateCreditBundleDetails("bundle_id", {
|
|
@@ -198,6 +218,8 @@ export declare class CreditsClient {
|
|
|
198
218
|
* @throws {@link Schematic.ForbiddenError}
|
|
199
219
|
* @throws {@link Schematic.NotFoundError}
|
|
200
220
|
* @throws {@link Schematic.InternalServerError}
|
|
221
|
+
* @throws {@link errors.SchematicError}
|
|
222
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
201
223
|
*
|
|
202
224
|
* @example
|
|
203
225
|
* await client.credits.deleteCreditBundle("bundle_id")
|
|
@@ -213,6 +235,8 @@ export declare class CreditsClient {
|
|
|
213
235
|
* @throws {@link Schematic.ForbiddenError}
|
|
214
236
|
* @throws {@link Schematic.NotFoundError}
|
|
215
237
|
* @throws {@link Schematic.InternalServerError}
|
|
238
|
+
* @throws {@link errors.SchematicError}
|
|
239
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
216
240
|
*
|
|
217
241
|
* @example
|
|
218
242
|
* await client.credits.countCreditBundles({
|
|
@@ -235,6 +259,8 @@ export declare class CreditsClient {
|
|
|
235
259
|
* @throws {@link Schematic.ForbiddenError}
|
|
236
260
|
* @throws {@link Schematic.NotFoundError}
|
|
237
261
|
* @throws {@link Schematic.InternalServerError}
|
|
262
|
+
* @throws {@link errors.SchematicError}
|
|
263
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
238
264
|
*
|
|
239
265
|
* @example
|
|
240
266
|
* await client.credits.countBillingCredits({
|
|
@@ -256,6 +282,8 @@ export declare class CreditsClient {
|
|
|
256
282
|
* @throws {@link Schematic.ForbiddenError}
|
|
257
283
|
* @throws {@link Schematic.NotFoundError}
|
|
258
284
|
* @throws {@link Schematic.InternalServerError}
|
|
285
|
+
* @throws {@link errors.SchematicError}
|
|
286
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
259
287
|
*
|
|
260
288
|
* @example
|
|
261
289
|
* await client.credits.zeroOutGrant("grant_id")
|
|
@@ -271,6 +299,8 @@ export declare class CreditsClient {
|
|
|
271
299
|
* @throws {@link Schematic.ForbiddenError}
|
|
272
300
|
* @throws {@link Schematic.NotFoundError}
|
|
273
301
|
* @throws {@link Schematic.InternalServerError}
|
|
302
|
+
* @throws {@link errors.SchematicError}
|
|
303
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
274
304
|
*
|
|
275
305
|
* @example
|
|
276
306
|
* await client.credits.grantBillingCreditsToCompany({
|
|
@@ -291,6 +321,8 @@ export declare class CreditsClient {
|
|
|
291
321
|
* @throws {@link Schematic.ForbiddenError}
|
|
292
322
|
* @throws {@link Schematic.NotFoundError}
|
|
293
323
|
* @throws {@link Schematic.InternalServerError}
|
|
324
|
+
* @throws {@link errors.SchematicError}
|
|
325
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
294
326
|
*
|
|
295
327
|
* @example
|
|
296
328
|
* await client.credits.countCompanyGrants({
|
|
@@ -312,6 +344,8 @@ export declare class CreditsClient {
|
|
|
312
344
|
* @throws {@link Schematic.ForbiddenError}
|
|
313
345
|
* @throws {@link Schematic.NotFoundError}
|
|
314
346
|
* @throws {@link Schematic.InternalServerError}
|
|
347
|
+
* @throws {@link errors.SchematicError}
|
|
348
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
315
349
|
*
|
|
316
350
|
* @example
|
|
317
351
|
* await client.credits.listCompanyGrants({
|
|
@@ -333,6 +367,8 @@ export declare class CreditsClient {
|
|
|
333
367
|
* @throws {@link Schematic.ForbiddenError}
|
|
334
368
|
* @throws {@link Schematic.NotFoundError}
|
|
335
369
|
* @throws {@link Schematic.InternalServerError}
|
|
370
|
+
* @throws {@link errors.SchematicError}
|
|
371
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
336
372
|
*
|
|
337
373
|
* @example
|
|
338
374
|
* await client.credits.countBillingCreditsGrants({
|
|
@@ -353,6 +389,8 @@ export declare class CreditsClient {
|
|
|
353
389
|
* @throws {@link Schematic.ForbiddenError}
|
|
354
390
|
* @throws {@link Schematic.NotFoundError}
|
|
355
391
|
* @throws {@link Schematic.InternalServerError}
|
|
392
|
+
* @throws {@link errors.SchematicError}
|
|
393
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
356
394
|
*
|
|
357
395
|
* @example
|
|
358
396
|
* await client.credits.listGrantsForCredit({
|
|
@@ -370,9 +408,12 @@ export declare class CreditsClient {
|
|
|
370
408
|
*
|
|
371
409
|
* @throws {@link Schematic.BadRequestError}
|
|
372
410
|
* @throws {@link Schematic.UnauthorizedError}
|
|
411
|
+
* @throws {@link Schematic.PaymentRequiredError}
|
|
373
412
|
* @throws {@link Schematic.ForbiddenError}
|
|
374
413
|
* @throws {@link Schematic.NotFoundError}
|
|
375
414
|
* @throws {@link Schematic.InternalServerError}
|
|
415
|
+
* @throws {@link errors.SchematicError}
|
|
416
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
376
417
|
*
|
|
377
418
|
* @example
|
|
378
419
|
* await client.credits.acquireCreditLease({
|
|
@@ -390,9 +431,12 @@ export declare class CreditsClient {
|
|
|
390
431
|
*
|
|
391
432
|
* @throws {@link Schematic.BadRequestError}
|
|
392
433
|
* @throws {@link Schematic.UnauthorizedError}
|
|
434
|
+
* @throws {@link Schematic.PaymentRequiredError}
|
|
393
435
|
* @throws {@link Schematic.ForbiddenError}
|
|
394
436
|
* @throws {@link Schematic.NotFoundError}
|
|
395
437
|
* @throws {@link Schematic.InternalServerError}
|
|
438
|
+
* @throws {@link errors.SchematicError}
|
|
439
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
396
440
|
*
|
|
397
441
|
* @example
|
|
398
442
|
* await client.credits.extendCreditLease("lease_id", {
|
|
@@ -411,6 +455,8 @@ export declare class CreditsClient {
|
|
|
411
455
|
* @throws {@link Schematic.ForbiddenError}
|
|
412
456
|
* @throws {@link Schematic.NotFoundError}
|
|
413
457
|
* @throws {@link Schematic.InternalServerError}
|
|
458
|
+
* @throws {@link errors.SchematicError}
|
|
459
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
414
460
|
*
|
|
415
461
|
* @example
|
|
416
462
|
* await client.credits.releaseCreditLease("lease_id", {
|
|
@@ -428,6 +474,8 @@ export declare class CreditsClient {
|
|
|
428
474
|
* @throws {@link Schematic.ForbiddenError}
|
|
429
475
|
* @throws {@link Schematic.NotFoundError}
|
|
430
476
|
* @throws {@link Schematic.InternalServerError}
|
|
477
|
+
* @throws {@link errors.SchematicError}
|
|
478
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
431
479
|
*
|
|
432
480
|
* @example
|
|
433
481
|
* await client.credits.listBillingPlanCreditGrants({
|
|
@@ -452,6 +500,8 @@ export declare class CreditsClient {
|
|
|
452
500
|
* @throws {@link Schematic.ForbiddenError}
|
|
453
501
|
* @throws {@link Schematic.NotFoundError}
|
|
454
502
|
* @throws {@link Schematic.InternalServerError}
|
|
503
|
+
* @throws {@link errors.SchematicError}
|
|
504
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
455
505
|
*
|
|
456
506
|
* @example
|
|
457
507
|
* await client.credits.createBillingPlanCreditGrant({
|
|
@@ -472,6 +522,8 @@ export declare class CreditsClient {
|
|
|
472
522
|
* @throws {@link Schematic.ForbiddenError}
|
|
473
523
|
* @throws {@link Schematic.NotFoundError}
|
|
474
524
|
* @throws {@link Schematic.InternalServerError}
|
|
525
|
+
* @throws {@link errors.SchematicError}
|
|
526
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
475
527
|
*
|
|
476
528
|
* @example
|
|
477
529
|
* await client.credits.getSingleBillingPlanCreditGrant("plan_grant_id")
|
|
@@ -488,6 +540,8 @@ export declare class CreditsClient {
|
|
|
488
540
|
* @throws {@link Schematic.ForbiddenError}
|
|
489
541
|
* @throws {@link Schematic.NotFoundError}
|
|
490
542
|
* @throws {@link Schematic.InternalServerError}
|
|
543
|
+
* @throws {@link errors.SchematicError}
|
|
544
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
491
545
|
*
|
|
492
546
|
* @example
|
|
493
547
|
* await client.credits.updateBillingPlanCreditGrant("plan_grant_id", {
|
|
@@ -507,6 +561,8 @@ export declare class CreditsClient {
|
|
|
507
561
|
* @throws {@link Schematic.ForbiddenError}
|
|
508
562
|
* @throws {@link Schematic.NotFoundError}
|
|
509
563
|
* @throws {@link Schematic.InternalServerError}
|
|
564
|
+
* @throws {@link errors.SchematicError}
|
|
565
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
510
566
|
*
|
|
511
567
|
* @example
|
|
512
568
|
* await client.credits.deleteBillingPlanCreditGrant("plan_grant_id", {
|
|
@@ -524,6 +580,8 @@ export declare class CreditsClient {
|
|
|
524
580
|
* @throws {@link Schematic.ForbiddenError}
|
|
525
581
|
* @throws {@link Schematic.NotFoundError}
|
|
526
582
|
* @throws {@link Schematic.InternalServerError}
|
|
583
|
+
* @throws {@link errors.SchematicError}
|
|
584
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
527
585
|
*
|
|
528
586
|
* @example
|
|
529
587
|
* await client.credits.countBillingPlanCreditGrants({
|
|
@@ -539,6 +597,127 @@ export declare class CreditsClient {
|
|
|
539
597
|
*/
|
|
540
598
|
countBillingPlanCreditGrants(request?: Schematic.CountBillingPlanCreditGrantsRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingPlanCreditGrantsResponse>;
|
|
541
599
|
private __countBillingPlanCreditGrants;
|
|
600
|
+
/**
|
|
601
|
+
* @param {Schematic.ListCreditSpendPoliciesRequest} request
|
|
602
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
|
+
*
|
|
604
|
+
* @throws {@link Schematic.BadRequestError}
|
|
605
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
606
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
607
|
+
* @throws {@link Schematic.NotFoundError}
|
|
608
|
+
* @throws {@link Schematic.InternalServerError}
|
|
609
|
+
* @throws {@link errors.SchematicError}
|
|
610
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
611
|
+
*
|
|
612
|
+
* @example
|
|
613
|
+
* await client.credits.listCreditSpendPolicies({
|
|
614
|
+
* billingCreditId: "billing_credit_id",
|
|
615
|
+
* companyId: "company_id",
|
|
616
|
+
* scopeType: "company",
|
|
617
|
+
* userId: "user_id",
|
|
618
|
+
* userIds: ["user_ids"],
|
|
619
|
+
* limit: 1000000,
|
|
620
|
+
* offset: 1000000
|
|
621
|
+
* })
|
|
622
|
+
*/
|
|
623
|
+
listCreditSpendPolicies(request?: Schematic.ListCreditSpendPoliciesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCreditSpendPoliciesResponse>;
|
|
624
|
+
private __listCreditSpendPolicies;
|
|
625
|
+
/**
|
|
626
|
+
* @param {Schematic.CreateCreditSpendPolicyRequestBody} request
|
|
627
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
628
|
+
*
|
|
629
|
+
* @throws {@link Schematic.BadRequestError}
|
|
630
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
631
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
632
|
+
* @throws {@link Schematic.NotFoundError}
|
|
633
|
+
* @throws {@link Schematic.InternalServerError}
|
|
634
|
+
* @throws {@link errors.SchematicError}
|
|
635
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
636
|
+
*
|
|
637
|
+
* @example
|
|
638
|
+
* await client.credits.createCreditSpendPolicy({
|
|
639
|
+
* billingCreditId: "billing_credit_id",
|
|
640
|
+
* maxPerDraw: 1.1
|
|
641
|
+
* })
|
|
642
|
+
*/
|
|
643
|
+
createCreditSpendPolicy(request: Schematic.CreateCreditSpendPolicyRequestBody, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateCreditSpendPolicyResponse>;
|
|
644
|
+
private __createCreditSpendPolicy;
|
|
645
|
+
/**
|
|
646
|
+
* @param {string} spend_policy_id - spend_policy_id
|
|
647
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
648
|
+
*
|
|
649
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
650
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
651
|
+
* @throws {@link Schematic.NotFoundError}
|
|
652
|
+
* @throws {@link Schematic.InternalServerError}
|
|
653
|
+
* @throws {@link errors.SchematicError}
|
|
654
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
655
|
+
*
|
|
656
|
+
* @example
|
|
657
|
+
* await client.credits.getCreditSpendPolicy("spend_policy_id")
|
|
658
|
+
*/
|
|
659
|
+
getCreditSpendPolicy(spend_policy_id: string, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditSpendPolicyResponse>;
|
|
660
|
+
private __getCreditSpendPolicy;
|
|
661
|
+
/**
|
|
662
|
+
* @param {string} spend_policy_id - spend_policy_id
|
|
663
|
+
* @param {Schematic.UpdateCreditSpendPolicyRequestBody} request
|
|
664
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
665
|
+
*
|
|
666
|
+
* @throws {@link Schematic.BadRequestError}
|
|
667
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
668
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
669
|
+
* @throws {@link Schematic.NotFoundError}
|
|
670
|
+
* @throws {@link Schematic.InternalServerError}
|
|
671
|
+
* @throws {@link errors.SchematicError}
|
|
672
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
673
|
+
*
|
|
674
|
+
* @example
|
|
675
|
+
* await client.credits.updateCreditSpendPolicy("spend_policy_id")
|
|
676
|
+
*/
|
|
677
|
+
updateCreditSpendPolicy(spend_policy_id: string, request?: Schematic.UpdateCreditSpendPolicyRequestBody, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditSpendPolicyResponse>;
|
|
678
|
+
private __updateCreditSpendPolicy;
|
|
679
|
+
/**
|
|
680
|
+
* @param {string} spend_policy_id - spend_policy_id
|
|
681
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
682
|
+
*
|
|
683
|
+
* @throws {@link Schematic.BadRequestError}
|
|
684
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
685
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
686
|
+
* @throws {@link Schematic.NotFoundError}
|
|
687
|
+
* @throws {@link Schematic.InternalServerError}
|
|
688
|
+
* @throws {@link errors.SchematicError}
|
|
689
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* await client.credits.deleteCreditSpendPolicy("spend_policy_id")
|
|
693
|
+
*/
|
|
694
|
+
deleteCreditSpendPolicy(spend_policy_id: string, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditSpendPolicyResponse>;
|
|
695
|
+
private __deleteCreditSpendPolicy;
|
|
696
|
+
/**
|
|
697
|
+
* @param {Schematic.CountCreditSpendPoliciesRequest} request
|
|
698
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
699
|
+
*
|
|
700
|
+
* @throws {@link Schematic.BadRequestError}
|
|
701
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
702
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
703
|
+
* @throws {@link Schematic.NotFoundError}
|
|
704
|
+
* @throws {@link Schematic.InternalServerError}
|
|
705
|
+
* @throws {@link errors.SchematicError}
|
|
706
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
707
|
+
*
|
|
708
|
+
* @example
|
|
709
|
+
* await client.credits.countCreditSpendPolicies({
|
|
710
|
+
* billingCreditId: "billing_credit_id",
|
|
711
|
+
* companyId: "company_id",
|
|
712
|
+
* scopeType: "company",
|
|
713
|
+
* userId: "user_id",
|
|
714
|
+
* userIds: ["user_ids"],
|
|
715
|
+
* limit: 1000000,
|
|
716
|
+
* offset: 1000000
|
|
717
|
+
* })
|
|
718
|
+
*/
|
|
719
|
+
countCreditSpendPolicies(request?: Schematic.CountCreditSpendPoliciesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCreditSpendPoliciesResponse>;
|
|
720
|
+
private __countCreditSpendPolicies;
|
|
542
721
|
/**
|
|
543
722
|
* @param {Schematic.ListCreditEventLedgerRequest} request
|
|
544
723
|
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -548,6 +727,8 @@ export declare class CreditsClient {
|
|
|
548
727
|
* @throws {@link Schematic.ForbiddenError}
|
|
549
728
|
* @throws {@link Schematic.NotFoundError}
|
|
550
729
|
* @throws {@link Schematic.InternalServerError}
|
|
730
|
+
* @throws {@link errors.SchematicError}
|
|
731
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
551
732
|
*
|
|
552
733
|
* @example
|
|
553
734
|
* await client.credits.listCreditEventLedger({
|
|
@@ -572,6 +753,8 @@ export declare class CreditsClient {
|
|
|
572
753
|
* @throws {@link Schematic.ForbiddenError}
|
|
573
754
|
* @throws {@link Schematic.NotFoundError}
|
|
574
755
|
* @throws {@link Schematic.InternalServerError}
|
|
756
|
+
* @throws {@link errors.SchematicError}
|
|
757
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
575
758
|
*
|
|
576
759
|
* @example
|
|
577
760
|
* await client.credits.countCreditEventLedger({
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* billingCreditId: "billing_credit_id",
|
|
6
|
+
* companyId: "company_id",
|
|
7
|
+
* scopeType: "company",
|
|
8
|
+
* userId: "user_id",
|
|
9
|
+
* userIds: ["user_ids"],
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface CountCreditSpendPoliciesRequest {
|
|
15
|
+
billingCreditId?: string;
|
|
16
|
+
companyId?: string;
|
|
17
|
+
scopeType?: Schematic.CreditSpendPolicyScope;
|
|
18
|
+
userId?: string;
|
|
19
|
+
userIds?: string | string[];
|
|
20
|
+
/** Page limit (default 100) */
|
|
21
|
+
limit?: number;
|
|
22
|
+
/** Page offset (default 0) */
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* billingCreditId: "billing_credit_id",
|
|
5
|
+
* maxPerDraw: 1.1
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface CreateCreditSpendPolicyRequestBody {
|
|
9
|
+
billingCreditId: string;
|
|
10
|
+
/** The company the cap applies to. Set exactly one of company_id and user_id. */
|
|
11
|
+
companyId?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
/** The largest number of credits a single draw may spend. */
|
|
14
|
+
maxPerDraw: number;
|
|
15
|
+
/** The user the cap applies to. Set exactly one of company_id and user_id. */
|
|
16
|
+
userId?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* billingCreditId: "billing_credit_id",
|
|
6
|
+
* companyId: "company_id",
|
|
7
|
+
* scopeType: "company",
|
|
8
|
+
* userId: "user_id",
|
|
9
|
+
* userIds: ["user_ids"],
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ListCreditSpendPoliciesRequest {
|
|
15
|
+
billingCreditId?: string;
|
|
16
|
+
companyId?: string;
|
|
17
|
+
scopeType?: Schematic.CreditSpendPolicyScope;
|
|
18
|
+
userId?: string;
|
|
19
|
+
userIds?: string | string[];
|
|
20
|
+
/** Page limit (default 100) */
|
|
21
|
+
limit?: number;
|
|
22
|
+
/** Page offset (default 0) */
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
@@ -5,9 +5,11 @@ export type { CountBillingPlanCreditGrantsRequest } from "./CountBillingPlanCred
|
|
|
5
5
|
export type { CountCompanyGrantsRequest } from "./CountCompanyGrantsRequest";
|
|
6
6
|
export type { CountCreditBundlesRequest } from "./CountCreditBundlesRequest";
|
|
7
7
|
export type { CountCreditEventLedgerRequest } from "./CountCreditEventLedgerRequest";
|
|
8
|
+
export type { CountCreditSpendPoliciesRequest } from "./CountCreditSpendPoliciesRequest";
|
|
8
9
|
export type { CreateBillingCreditRequestBody } from "./CreateBillingCreditRequestBody";
|
|
9
10
|
export type { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
|
|
10
11
|
export type { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestBody";
|
|
12
|
+
export type { CreateCreditSpendPolicyRequestBody } from "./CreateCreditSpendPolicyRequestBody";
|
|
11
13
|
export type { DeleteBillingPlanCreditGrantRequest } from "./DeleteBillingPlanCreditGrantRequest";
|
|
12
14
|
export type { ExtendCreditLeaseRequestBody } from "./ExtendCreditLeaseRequestBody";
|
|
13
15
|
export type { ListBillingCreditsRequest } from "./ListBillingCreditsRequest";
|
|
@@ -16,7 +18,9 @@ export type { ListCompanyCreditBalancesRequest } from "./ListCompanyCreditBalanc
|
|
|
16
18
|
export type { ListCompanyGrantsRequest } from "./ListCompanyGrantsRequest";
|
|
17
19
|
export type { ListCreditBundlesRequest } from "./ListCreditBundlesRequest";
|
|
18
20
|
export type { ListCreditEventLedgerRequest } from "./ListCreditEventLedgerRequest";
|
|
21
|
+
export type { ListCreditSpendPoliciesRequest } from "./ListCreditSpendPoliciesRequest";
|
|
19
22
|
export type { ListGrantsForCreditRequest } from "./ListGrantsForCreditRequest";
|
|
20
23
|
export type { UpdateBillingCreditRequestBody } from "./UpdateBillingCreditRequestBody";
|
|
21
24
|
export type { UpdateCreditBundleDetailsRequestBody } from "./UpdateCreditBundleDetailsRequestBody";
|
|
25
|
+
export type { UpdateCreditSpendPolicyRequestBody } from "./UpdateCreditSpendPolicyRequestBody";
|
|
22
26
|
export type { ZeroOutGrantRequestBody } from "./ZeroOutGrantRequestBody";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface CountCreditSpendPoliciesParams {
|
|
6
|
+
billingCreditId?: string;
|
|
7
|
+
companyId?: string;
|
|
8
|
+
/** Page limit (default 100) */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Page offset (default 0) */
|
|
11
|
+
offset?: number;
|
|
12
|
+
scopeType?: Schematic.CreditSpendPolicyScope;
|
|
13
|
+
userId?: string;
|
|
14
|
+
userIds?: string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface ListCreditSpendPoliciesParams {
|
|
6
|
+
billingCreditId?: string;
|
|
7
|
+
companyId?: string;
|
|
8
|
+
/** Page limit (default 100) */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Page offset (default 0) */
|
|
11
|
+
offset?: number;
|
|
12
|
+
scopeType?: Schematic.CreditSpendPolicyScope;
|
|
13
|
+
userId?: string;
|
|
14
|
+
userIds?: string[];
|
|
15
|
+
}
|
|
@@ -11,14 +11,19 @@ export * from "./CountCreditBundlesParams";
|
|
|
11
11
|
export * from "./CountCreditBundlesResponse";
|
|
12
12
|
export * from "./CountCreditEventLedgerParams";
|
|
13
13
|
export * from "./CountCreditEventLedgerResponse";
|
|
14
|
+
export * from "./CountCreditSpendPoliciesParams";
|
|
15
|
+
export * from "./CountCreditSpendPoliciesResponse";
|
|
14
16
|
export * from "./CreateBillingCreditResponse";
|
|
15
17
|
export * from "./CreateBillingPlanCreditGrantResponse";
|
|
16
18
|
export * from "./CreateCreditBundleResponse";
|
|
19
|
+
export * from "./CreateCreditSpendPolicyResponse";
|
|
17
20
|
export * from "./DeleteBillingPlanCreditGrantParams";
|
|
18
21
|
export * from "./DeleteBillingPlanCreditGrantResponse";
|
|
19
22
|
export * from "./DeleteCreditBundleResponse";
|
|
23
|
+
export * from "./DeleteCreditSpendPolicyResponse";
|
|
20
24
|
export * from "./ExtendCreditLeaseResponse";
|
|
21
25
|
export * from "./GetCreditBundleResponse";
|
|
26
|
+
export * from "./GetCreditSpendPolicyResponse";
|
|
22
27
|
export * from "./GetSingleBillingCreditResponse";
|
|
23
28
|
export * from "./GetSingleBillingPlanCreditGrantResponse";
|
|
24
29
|
export * from "./GrantBillingCreditsToCompanyResponse";
|
|
@@ -34,6 +39,8 @@ export * from "./ListCreditBundlesParams";
|
|
|
34
39
|
export * from "./ListCreditBundlesResponse";
|
|
35
40
|
export * from "./ListCreditEventLedgerParams";
|
|
36
41
|
export * from "./ListCreditEventLedgerResponse";
|
|
42
|
+
export * from "./ListCreditSpendPoliciesParams";
|
|
43
|
+
export * from "./ListCreditSpendPoliciesResponse";
|
|
37
44
|
export * from "./ListGrantsForCreditParams";
|
|
38
45
|
export * from "./ListGrantsForCreditResponse";
|
|
39
46
|
export * from "./ReleaseCreditLeaseResponse";
|
|
@@ -41,4 +48,5 @@ export * from "./SoftDeleteBillingCreditResponse";
|
|
|
41
48
|
export * from "./UpdateBillingCreditResponse";
|
|
42
49
|
export * from "./UpdateBillingPlanCreditGrantResponse";
|
|
43
50
|
export * from "./UpdateCreditBundleDetailsResponse";
|
|
51
|
+
export * from "./UpdateCreditSpendPolicyResponse";
|
|
44
52
|
export * from "./ZeroOutGrantResponse";
|
|
@@ -20,6 +20,8 @@ export declare class DataexportsClient {
|
|
|
20
20
|
* @throws {@link Schematic.ForbiddenError}
|
|
21
21
|
* @throws {@link Schematic.NotFoundError}
|
|
22
22
|
* @throws {@link Schematic.InternalServerError}
|
|
23
|
+
* @throws {@link errors.SchematicError}
|
|
24
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
23
25
|
*
|
|
24
26
|
* @example
|
|
25
27
|
* await client.dataexports.listDataExports({
|
|
@@ -40,6 +42,8 @@ export declare class DataexportsClient {
|
|
|
40
42
|
* @throws {@link Schematic.ForbiddenError}
|
|
41
43
|
* @throws {@link Schematic.NotFoundError}
|
|
42
44
|
* @throws {@link Schematic.InternalServerError}
|
|
45
|
+
* @throws {@link errors.SchematicError}
|
|
46
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
43
47
|
*
|
|
44
48
|
* @example
|
|
45
49
|
* await client.dataexports.createDataExport({
|
|
@@ -57,6 +61,8 @@ export declare class DataexportsClient {
|
|
|
57
61
|
* @throws {@link Schematic.ForbiddenError}
|
|
58
62
|
* @throws {@link Schematic.NotFoundError}
|
|
59
63
|
* @throws {@link Schematic.InternalServerError}
|
|
64
|
+
* @throws {@link errors.SchematicError}
|
|
65
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
60
66
|
*
|
|
61
67
|
* @example
|
|
62
68
|
* await client.dataexports.getDataExport("data_export_id")
|
|
@@ -68,6 +74,8 @@ export declare class DataexportsClient {
|
|
|
68
74
|
* @throws {@link Schematic.ForbiddenError}
|
|
69
75
|
* @throws {@link Schematic.NotFoundError}
|
|
70
76
|
* @throws {@link Schematic.InternalServerError}
|
|
77
|
+
* @throws {@link errors.SchematicError}
|
|
78
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
71
79
|
*/
|
|
72
80
|
getDataExportArtifact(data_export_id: string, requestOptions?: DataexportsClient.RequestOptions): core.HttpResponsePromise<stream.Readable>;
|
|
73
81
|
private __getDataExportArtifact;
|