@openmeter/client 1.0.0-beta-3885445fd4bf → 1.0.0-beta-dc2b4a312ae7
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/README.md +1 -0
- package/dist/funcs/currencies.d.ts +9 -1
- package/dist/funcs/currencies.js +35 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/currencies.d.ts +4 -0
- package/dist/models/schemas.d.ts +276 -86
- package/dist/models/schemas.js +162 -50
- package/dist/models/types.d.ts +74 -24
- package/dist/sdk/internal.d.ts +9 -1
- package/dist/sdk/internal.js +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -445,6 +445,7 @@ they can change or be removed without notice or semver consideration.
|
|
|
445
445
|
| ------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
446
446
|
| `client.internal.currencies.list` | `GET /openmeter/currencies` | List currencies supported by the billing system. |
|
|
447
447
|
| `client.internal.currencies.createCustomCurrency` | `POST /openmeter/currencies/custom` | Create a custom currency. This operation allows defining your own custom currency for billing purposes. |
|
|
448
|
+
| `client.internal.currencies.getCustomCurrency` | `GET /openmeter/currencies/custom/{currencyId}` | Get a custom currency. |
|
|
448
449
|
| `client.internal.currencies.listCostBases` | `GET /openmeter/currencies/custom/{currencyId}/cost-bases` | List cost bases for a currency. For custom currencies, there can be multiple cost bases with different `effective_from` dates. |
|
|
449
450
|
| `client.internal.currencies.createCostBasis` | `POST /openmeter/currencies/custom/{currencyId}/cost-bases` | Create a cost basis for a currency. |
|
|
450
451
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type Result, type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
3
|
+
import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, GetCustomCurrencyRequest, GetCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
4
4
|
/**
|
|
5
5
|
* List currencies
|
|
6
6
|
*
|
|
@@ -18,6 +18,14 @@ export declare function listCurrencies(client: Client, req?: ListCurrenciesReque
|
|
|
18
18
|
* POST /openmeter/currencies/custom
|
|
19
19
|
*/
|
|
20
20
|
export declare function createCustomCurrency(client: Client, req: CreateCustomCurrencyRequest, options?: RequestOptions): Promise<Result<CreateCustomCurrencyResponse>>;
|
|
21
|
+
/**
|
|
22
|
+
* Get custom currency
|
|
23
|
+
*
|
|
24
|
+
* Get a custom currency.
|
|
25
|
+
*
|
|
26
|
+
* GET /openmeter/currencies/custom/{currencyId}
|
|
27
|
+
*/
|
|
28
|
+
export declare function getCustomCurrency(client: Client, req: GetCustomCurrencyRequest, options?: RequestOptions): Promise<Result<GetCustomCurrencyResponse>>;
|
|
21
29
|
/**
|
|
22
30
|
* List cost bases
|
|
23
31
|
*
|
package/dist/funcs/currencies.js
CHANGED
|
@@ -61,6 +61,41 @@ export function createCustomCurrency(client, req, options) {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Get custom currency
|
|
66
|
+
*
|
|
67
|
+
* Get a custom currency.
|
|
68
|
+
*
|
|
69
|
+
* GET /openmeter/currencies/custom/{currencyId}
|
|
70
|
+
*/
|
|
71
|
+
export function getCustomCurrency(client, req, options) {
|
|
72
|
+
return request(() => {
|
|
73
|
+
const pathParamsInput = {
|
|
74
|
+
currencyId: req.currencyId,
|
|
75
|
+
};
|
|
76
|
+
const pathParams = client._options.validate
|
|
77
|
+
? toPathWire(pathParamsInput, schemas.getCustomCurrencyPathParams)
|
|
78
|
+
: pathParamsInput;
|
|
79
|
+
if (client._options.validate) {
|
|
80
|
+
assertValid(schemas.getCustomCurrencyPathParamsWire, pathParams);
|
|
81
|
+
}
|
|
82
|
+
const path = `openmeter/currencies/custom/${(() => {
|
|
83
|
+
if (pathParams.currencyId === undefined) {
|
|
84
|
+
throw new Error('missing path parameter: currencyId');
|
|
85
|
+
}
|
|
86
|
+
return encodeURIComponent(String(pathParams.currencyId));
|
|
87
|
+
})()}`;
|
|
88
|
+
return http(client)
|
|
89
|
+
.get(path, options)
|
|
90
|
+
.json()
|
|
91
|
+
.then((data) => {
|
|
92
|
+
if (client._options.validate) {
|
|
93
|
+
assertValid(schemas.getCustomCurrencyResponseWire, data);
|
|
94
|
+
}
|
|
95
|
+
return fromWire(data, schemas.getCustomCurrencyResponse);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
64
99
|
/**
|
|
65
100
|
* List cost bases
|
|
66
101
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -41,4 +41,4 @@ export type * from './models/operations/addons.js';
|
|
|
41
41
|
export type * from './models/operations/planAddons.js';
|
|
42
42
|
export type * from './models/operations/defaults.js';
|
|
43
43
|
export type * from './models/operations/governance.js';
|
|
44
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateLabels, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter,
|
|
44
|
+
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateLabels, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, PlanAddon, ProfileAppReferences, InvoiceWorkflowAppsReferences, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, InvoiceUsageQuantityDetail, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoicePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, SubscriptionEditTiming, WorkflowPaymentSettings, UpdateBillingWorkflowPaymentSettings, InvalidParameter, RateCardEntitlement, FeatureUnitCost, Currency, WorkflowCollectionAlignment, Price, UpdatePrice, App, CreateChargeRequest, Charge, InvoiceLine, UpdateInvoiceLine, Invoice, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-dc2b4a312ae7";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = '1.0.0-beta-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-dc2b4a312ae7';
|
|
@@ -27,6 +27,10 @@ export type ListCurrenciesRequest = AcceptDateStrings<ListCurrenciesQuery>;
|
|
|
27
27
|
export type ListCurrenciesResponse = CurrencyPagePaginatedResponse;
|
|
28
28
|
export type CreateCustomCurrencyRequest = AcceptDateStrings<CreateCurrencyCustomRequest>;
|
|
29
29
|
export type CreateCustomCurrencyResponse = CurrencyCustom;
|
|
30
|
+
export type GetCustomCurrencyRequest = {
|
|
31
|
+
currencyId: string;
|
|
32
|
+
};
|
|
33
|
+
export type GetCustomCurrencyResponse = CurrencyCustom;
|
|
30
34
|
export interface ListCostBasesQuery {
|
|
31
35
|
/**
|
|
32
36
|
* Filter cost bases returned in the response.
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -542,6 +542,9 @@ export declare const currencyFiat: z.ZodObject<{
|
|
|
542
542
|
type: z.ZodLiteral<"fiat">;
|
|
543
543
|
name: z.ZodString;
|
|
544
544
|
symbol: z.ZodOptional<z.ZodString>;
|
|
545
|
+
precision: z.ZodNumber;
|
|
546
|
+
decimalMark: z.ZodString;
|
|
547
|
+
thousandSeparator: z.ZodString;
|
|
545
548
|
code: z.ZodString;
|
|
546
549
|
}, z.core.$strip>;
|
|
547
550
|
export declare const listCostBasesParamsFilter: z.ZodObject<{
|
|
@@ -1546,17 +1549,12 @@ export declare const listCurrenciesParamsFilter: z.ZodObject<{
|
|
|
1546
1549
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
1547
1550
|
}, z.core.$strip>]>>;
|
|
1548
1551
|
}, z.core.$strip>;
|
|
1549
|
-
export declare const currencyCustom: z.ZodObject<{
|
|
1550
|
-
type: z.ZodLiteral<"custom">;
|
|
1551
|
-
name: z.ZodString;
|
|
1552
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
1553
|
-
id: z.ZodString;
|
|
1554
|
-
code: z.ZodString;
|
|
1555
|
-
createdAt: z.ZodDate;
|
|
1556
|
-
}, z.core.$strip>;
|
|
1557
1552
|
export declare const createCurrencyCustomRequest: z.ZodObject<{
|
|
1558
1553
|
name: z.ZodString;
|
|
1559
1554
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
precision: z.ZodNumber;
|
|
1556
|
+
decimalMark: z.ZodString;
|
|
1557
|
+
thousandSeparator: z.ZodString;
|
|
1560
1558
|
code: z.ZodString;
|
|
1561
1559
|
}, z.core.$strip>;
|
|
1562
1560
|
export declare const governanceQueryRequest: z.ZodObject<{
|
|
@@ -2321,6 +2319,25 @@ export declare const meterQueryResult: z.ZodObject<{
|
|
|
2321
2319
|
dimensions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2322
2320
|
}, z.core.$strip>>;
|
|
2323
2321
|
}, z.core.$strip>;
|
|
2322
|
+
export declare const currencyCustom: z.ZodObject<{
|
|
2323
|
+
type: z.ZodLiteral<"custom">;
|
|
2324
|
+
name: z.ZodString;
|
|
2325
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2326
|
+
precision: z.ZodNumber;
|
|
2327
|
+
decimalMark: z.ZodString;
|
|
2328
|
+
thousandSeparator: z.ZodString;
|
|
2329
|
+
id: z.ZodString;
|
|
2330
|
+
code: z.ZodString;
|
|
2331
|
+
createdAt: z.ZodDate;
|
|
2332
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2333
|
+
id: z.ZodString;
|
|
2334
|
+
fiatCode: z.ZodString;
|
|
2335
|
+
rate: z.ZodString;
|
|
2336
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
2337
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
2338
|
+
createdAt: z.ZodDate;
|
|
2339
|
+
}, z.core.$strip>>>;
|
|
2340
|
+
}, z.core.$strip>;
|
|
2324
2341
|
export declare const featureCostQueryResult: z.ZodObject<{
|
|
2325
2342
|
from: z.ZodOptional<z.ZodDate>;
|
|
2326
2343
|
to: z.ZodOptional<z.ZodDate>;
|
|
@@ -2981,19 +2998,6 @@ export declare const updateBillingInvoiceWorkflow: z.ZodObject<{
|
|
|
2981
2998
|
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2982
2999
|
}, z.core.$strip>], "collectionMethod">>;
|
|
2983
3000
|
}, z.core.$strip>;
|
|
2984
|
-
export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2985
|
-
type: z.ZodLiteral<"fiat">;
|
|
2986
|
-
name: z.ZodString;
|
|
2987
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
2988
|
-
code: z.ZodString;
|
|
2989
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2990
|
-
type: z.ZodLiteral<"custom">;
|
|
2991
|
-
name: z.ZodString;
|
|
2992
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
2993
|
-
id: z.ZodString;
|
|
2994
|
-
code: z.ZodString;
|
|
2995
|
-
createdAt: z.ZodDate;
|
|
2996
|
-
}, z.core.$strip>], "type">;
|
|
2997
3001
|
export declare const governanceFeatureAccess: z.ZodObject<{
|
|
2998
3002
|
hasAccess: z.ZodBoolean;
|
|
2999
3003
|
reason: z.ZodOptional<z.ZodObject<{
|
|
@@ -3429,6 +3433,33 @@ export declare const ingestedEventPaginatedResponse: z.ZodObject<{
|
|
|
3429
3433
|
}, z.core.$strip>;
|
|
3430
3434
|
}, z.core.$strip>;
|
|
3431
3435
|
}, z.core.$strip>;
|
|
3436
|
+
export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3437
|
+
type: z.ZodLiteral<"fiat">;
|
|
3438
|
+
name: z.ZodString;
|
|
3439
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
3440
|
+
precision: z.ZodNumber;
|
|
3441
|
+
decimalMark: z.ZodString;
|
|
3442
|
+
thousandSeparator: z.ZodString;
|
|
3443
|
+
code: z.ZodString;
|
|
3444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3445
|
+
type: z.ZodLiteral<"custom">;
|
|
3446
|
+
name: z.ZodString;
|
|
3447
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
3448
|
+
precision: z.ZodNumber;
|
|
3449
|
+
decimalMark: z.ZodString;
|
|
3450
|
+
thousandSeparator: z.ZodString;
|
|
3451
|
+
id: z.ZodString;
|
|
3452
|
+
code: z.ZodString;
|
|
3453
|
+
createdAt: z.ZodDate;
|
|
3454
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3455
|
+
id: z.ZodString;
|
|
3456
|
+
fiatCode: z.ZodString;
|
|
3457
|
+
rate: z.ZodString;
|
|
3458
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
3459
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
3460
|
+
createdAt: z.ZodDate;
|
|
3461
|
+
}, z.core.$strip>>>;
|
|
3462
|
+
}, z.core.$strip>], "type">;
|
|
3432
3463
|
export declare const invalidParameters: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3433
3464
|
field: z.ZodString;
|
|
3434
3465
|
rule: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4002,28 +4033,6 @@ export declare const updateInvoiceWorkflowSettings: z.ZodObject<{
|
|
|
4002
4033
|
}, z.core.$strip>], "collectionMethod">>;
|
|
4003
4034
|
}, z.core.$strip>;
|
|
4004
4035
|
}, z.core.$strip>;
|
|
4005
|
-
export declare const currencyPagePaginatedResponse: z.ZodObject<{
|
|
4006
|
-
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4007
|
-
type: z.ZodLiteral<"fiat">;
|
|
4008
|
-
name: z.ZodString;
|
|
4009
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
4010
|
-
code: z.ZodString;
|
|
4011
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4012
|
-
type: z.ZodLiteral<"custom">;
|
|
4013
|
-
name: z.ZodString;
|
|
4014
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
4015
|
-
id: z.ZodString;
|
|
4016
|
-
code: z.ZodString;
|
|
4017
|
-
createdAt: z.ZodDate;
|
|
4018
|
-
}, z.core.$strip>], "type">>;
|
|
4019
|
-
meta: z.ZodObject<{
|
|
4020
|
-
page: z.ZodObject<{
|
|
4021
|
-
number: z.ZodNumber;
|
|
4022
|
-
size: z.ZodNumber;
|
|
4023
|
-
total: z.ZodNumber;
|
|
4024
|
-
}, z.core.$strip>;
|
|
4025
|
-
}, z.core.$strip>;
|
|
4026
|
-
}, z.core.$strip>;
|
|
4027
4036
|
export declare const governanceQueryResult: z.ZodObject<{
|
|
4028
4037
|
matched: z.ZodArray<z.ZodString>;
|
|
4029
4038
|
customer: z.ZodObject<{
|
|
@@ -4396,6 +4405,42 @@ export declare const creditGrantPagePaginatedResponse: z.ZodObject<{
|
|
|
4396
4405
|
}, z.core.$strip>;
|
|
4397
4406
|
}, z.core.$strip>;
|
|
4398
4407
|
}, z.core.$strip>;
|
|
4408
|
+
export declare const currencyPagePaginatedResponse: z.ZodObject<{
|
|
4409
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4410
|
+
type: z.ZodLiteral<"fiat">;
|
|
4411
|
+
name: z.ZodString;
|
|
4412
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4413
|
+
precision: z.ZodNumber;
|
|
4414
|
+
decimalMark: z.ZodString;
|
|
4415
|
+
thousandSeparator: z.ZodString;
|
|
4416
|
+
code: z.ZodString;
|
|
4417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4418
|
+
type: z.ZodLiteral<"custom">;
|
|
4419
|
+
name: z.ZodString;
|
|
4420
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4421
|
+
precision: z.ZodNumber;
|
|
4422
|
+
decimalMark: z.ZodString;
|
|
4423
|
+
thousandSeparator: z.ZodString;
|
|
4424
|
+
id: z.ZodString;
|
|
4425
|
+
code: z.ZodString;
|
|
4426
|
+
createdAt: z.ZodDate;
|
|
4427
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4428
|
+
id: z.ZodString;
|
|
4429
|
+
fiatCode: z.ZodString;
|
|
4430
|
+
rate: z.ZodString;
|
|
4431
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
4432
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
4433
|
+
createdAt: z.ZodDate;
|
|
4434
|
+
}, z.core.$strip>>>;
|
|
4435
|
+
}, z.core.$strip>], "type">>;
|
|
4436
|
+
meta: z.ZodObject<{
|
|
4437
|
+
page: z.ZodObject<{
|
|
4438
|
+
number: z.ZodNumber;
|
|
4439
|
+
size: z.ZodNumber;
|
|
4440
|
+
total: z.ZodNumber;
|
|
4441
|
+
}, z.core.$strip>;
|
|
4442
|
+
}, z.core.$strip>;
|
|
4443
|
+
}, z.core.$strip>;
|
|
4399
4444
|
export declare const badRequest: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
4400
4445
|
type: z.ZodDefault<z.ZodString>;
|
|
4401
4446
|
status: z.ZodNumber;
|
|
@@ -17153,14 +17198,28 @@ export declare const listCurrenciesResponse: z.ZodObject<{
|
|
|
17153
17198
|
type: z.ZodLiteral<"fiat">;
|
|
17154
17199
|
name: z.ZodString;
|
|
17155
17200
|
symbol: z.ZodOptional<z.ZodString>;
|
|
17201
|
+
precision: z.ZodNumber;
|
|
17202
|
+
decimalMark: z.ZodString;
|
|
17203
|
+
thousandSeparator: z.ZodString;
|
|
17156
17204
|
code: z.ZodString;
|
|
17157
17205
|
}, z.core.$strip>, z.ZodObject<{
|
|
17158
17206
|
type: z.ZodLiteral<"custom">;
|
|
17159
17207
|
name: z.ZodString;
|
|
17160
17208
|
symbol: z.ZodOptional<z.ZodString>;
|
|
17209
|
+
precision: z.ZodNumber;
|
|
17210
|
+
decimalMark: z.ZodString;
|
|
17211
|
+
thousandSeparator: z.ZodString;
|
|
17161
17212
|
id: z.ZodString;
|
|
17162
17213
|
code: z.ZodString;
|
|
17163
17214
|
createdAt: z.ZodDate;
|
|
17215
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17216
|
+
id: z.ZodString;
|
|
17217
|
+
fiatCode: z.ZodString;
|
|
17218
|
+
rate: z.ZodString;
|
|
17219
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
17220
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
17221
|
+
createdAt: z.ZodDate;
|
|
17222
|
+
}, z.core.$strip>>>;
|
|
17164
17223
|
}, z.core.$strip>], "type">>;
|
|
17165
17224
|
meta: z.ZodObject<{
|
|
17166
17225
|
page: z.ZodObject<{
|
|
@@ -17173,15 +17232,51 @@ export declare const listCurrenciesResponse: z.ZodObject<{
|
|
|
17173
17232
|
export declare const createCustomCurrencyBody: z.ZodObject<{
|
|
17174
17233
|
name: z.ZodString;
|
|
17175
17234
|
symbol: z.ZodOptional<z.ZodString>;
|
|
17235
|
+
precision: z.ZodNumber;
|
|
17236
|
+
decimalMark: z.ZodString;
|
|
17237
|
+
thousandSeparator: z.ZodString;
|
|
17176
17238
|
code: z.ZodString;
|
|
17177
17239
|
}, z.core.$strip>;
|
|
17178
17240
|
export declare const createCustomCurrencyResponse: z.ZodObject<{
|
|
17179
17241
|
type: z.ZodLiteral<"custom">;
|
|
17180
17242
|
name: z.ZodString;
|
|
17181
17243
|
symbol: z.ZodOptional<z.ZodString>;
|
|
17244
|
+
precision: z.ZodNumber;
|
|
17245
|
+
decimalMark: z.ZodString;
|
|
17246
|
+
thousandSeparator: z.ZodString;
|
|
17247
|
+
id: z.ZodString;
|
|
17248
|
+
code: z.ZodString;
|
|
17249
|
+
createdAt: z.ZodDate;
|
|
17250
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17251
|
+
id: z.ZodString;
|
|
17252
|
+
fiatCode: z.ZodString;
|
|
17253
|
+
rate: z.ZodString;
|
|
17254
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
17255
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
17256
|
+
createdAt: z.ZodDate;
|
|
17257
|
+
}, z.core.$strip>>>;
|
|
17258
|
+
}, z.core.$strip>;
|
|
17259
|
+
export declare const getCustomCurrencyPathParams: z.ZodObject<{
|
|
17260
|
+
currencyId: z.ZodString;
|
|
17261
|
+
}, z.core.$strip>;
|
|
17262
|
+
export declare const getCustomCurrencyResponse: z.ZodObject<{
|
|
17263
|
+
type: z.ZodLiteral<"custom">;
|
|
17264
|
+
name: z.ZodString;
|
|
17265
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
17266
|
+
precision: z.ZodNumber;
|
|
17267
|
+
decimalMark: z.ZodString;
|
|
17268
|
+
thousandSeparator: z.ZodString;
|
|
17182
17269
|
id: z.ZodString;
|
|
17183
17270
|
code: z.ZodString;
|
|
17184
17271
|
createdAt: z.ZodDate;
|
|
17272
|
+
costBasis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17273
|
+
id: z.ZodString;
|
|
17274
|
+
fiatCode: z.ZodString;
|
|
17275
|
+
rate: z.ZodString;
|
|
17276
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
17277
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
17278
|
+
createdAt: z.ZodDate;
|
|
17279
|
+
}, z.core.$strip>>>;
|
|
17185
17280
|
}, z.core.$strip>;
|
|
17186
17281
|
export declare const listCostBasesPathParams: z.ZodObject<{
|
|
17187
17282
|
currencyId: z.ZodString;
|
|
@@ -20804,6 +20899,9 @@ export declare const currencyFiatWire: z.ZodObject<{
|
|
|
20804
20899
|
type: z.ZodLiteral<"fiat">;
|
|
20805
20900
|
name: z.ZodString;
|
|
20806
20901
|
symbol: z.ZodOptional<z.ZodString>;
|
|
20902
|
+
precision: z.ZodNumber;
|
|
20903
|
+
decimal_mark: z.ZodString;
|
|
20904
|
+
thousand_separator: z.ZodString;
|
|
20807
20905
|
code: z.ZodString;
|
|
20808
20906
|
}, z.core.$strict>;
|
|
20809
20907
|
export declare const listCostBasesParamsFilterWire: z.ZodObject<{
|
|
@@ -21808,17 +21906,12 @@ export declare const listCurrenciesParamsFilterWire: z.ZodObject<{
|
|
|
21808
21906
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
21809
21907
|
}, z.core.$strict>]>>;
|
|
21810
21908
|
}, z.core.$strict>;
|
|
21811
|
-
export declare const currencyCustomWire: z.ZodObject<{
|
|
21812
|
-
type: z.ZodLiteral<"custom">;
|
|
21813
|
-
name: z.ZodString;
|
|
21814
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
21815
|
-
id: z.ZodString;
|
|
21816
|
-
code: z.ZodString;
|
|
21817
|
-
created_at: z.ZodString;
|
|
21818
|
-
}, z.core.$strict>;
|
|
21819
21909
|
export declare const createCurrencyCustomRequestWire: z.ZodObject<{
|
|
21820
21910
|
name: z.ZodString;
|
|
21821
21911
|
symbol: z.ZodOptional<z.ZodString>;
|
|
21912
|
+
precision: z.ZodNumber;
|
|
21913
|
+
decimal_mark: z.ZodString;
|
|
21914
|
+
thousand_separator: z.ZodString;
|
|
21822
21915
|
code: z.ZodString;
|
|
21823
21916
|
}, z.core.$strict>;
|
|
21824
21917
|
export declare const governanceQueryRequestWire: z.ZodObject<{
|
|
@@ -22583,6 +22676,25 @@ export declare const meterQueryResultWire: z.ZodObject<{
|
|
|
22583
22676
|
dimensions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
22584
22677
|
}, z.core.$strict>>;
|
|
22585
22678
|
}, z.core.$strict>;
|
|
22679
|
+
export declare const currencyCustomWire: z.ZodObject<{
|
|
22680
|
+
type: z.ZodLiteral<"custom">;
|
|
22681
|
+
name: z.ZodString;
|
|
22682
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
22683
|
+
precision: z.ZodNumber;
|
|
22684
|
+
decimal_mark: z.ZodString;
|
|
22685
|
+
thousand_separator: z.ZodString;
|
|
22686
|
+
id: z.ZodString;
|
|
22687
|
+
code: z.ZodString;
|
|
22688
|
+
created_at: z.ZodString;
|
|
22689
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22690
|
+
id: z.ZodString;
|
|
22691
|
+
fiat_code: z.ZodString;
|
|
22692
|
+
rate: z.ZodString;
|
|
22693
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
22694
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
22695
|
+
created_at: z.ZodString;
|
|
22696
|
+
}, z.core.$strict>>>;
|
|
22697
|
+
}, z.core.$strict>;
|
|
22586
22698
|
export declare const featureCostQueryResultWire: z.ZodObject<{
|
|
22587
22699
|
from: z.ZodOptional<z.ZodString>;
|
|
22588
22700
|
to: z.ZodOptional<z.ZodString>;
|
|
@@ -23243,19 +23355,6 @@ export declare const updateBillingInvoiceWorkflowWire: z.ZodObject<{
|
|
|
23243
23355
|
due_after: z.ZodOptional<z.ZodString>;
|
|
23244
23356
|
}, z.core.$strict>], "collection_method">>;
|
|
23245
23357
|
}, z.core.$strict>;
|
|
23246
|
-
export declare const currencyWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23247
|
-
type: z.ZodLiteral<"fiat">;
|
|
23248
|
-
name: z.ZodString;
|
|
23249
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
23250
|
-
code: z.ZodString;
|
|
23251
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
23252
|
-
type: z.ZodLiteral<"custom">;
|
|
23253
|
-
name: z.ZodString;
|
|
23254
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
23255
|
-
id: z.ZodString;
|
|
23256
|
-
code: z.ZodString;
|
|
23257
|
-
created_at: z.ZodString;
|
|
23258
|
-
}, z.core.$strict>], "type">;
|
|
23259
23358
|
export declare const governanceFeatureAccessWire: z.ZodObject<{
|
|
23260
23359
|
has_access: z.ZodBoolean;
|
|
23261
23360
|
reason: z.ZodOptional<z.ZodObject<{
|
|
@@ -23691,6 +23790,33 @@ export declare const ingestedEventPaginatedResponseWire: z.ZodObject<{
|
|
|
23691
23790
|
}, z.core.$strict>;
|
|
23692
23791
|
}, z.core.$strict>;
|
|
23693
23792
|
}, z.core.$strict>;
|
|
23793
|
+
export declare const currencyWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23794
|
+
type: z.ZodLiteral<"fiat">;
|
|
23795
|
+
name: z.ZodString;
|
|
23796
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
23797
|
+
precision: z.ZodNumber;
|
|
23798
|
+
decimal_mark: z.ZodString;
|
|
23799
|
+
thousand_separator: z.ZodString;
|
|
23800
|
+
code: z.ZodString;
|
|
23801
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23802
|
+
type: z.ZodLiteral<"custom">;
|
|
23803
|
+
name: z.ZodString;
|
|
23804
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
23805
|
+
precision: z.ZodNumber;
|
|
23806
|
+
decimal_mark: z.ZodString;
|
|
23807
|
+
thousand_separator: z.ZodString;
|
|
23808
|
+
id: z.ZodString;
|
|
23809
|
+
code: z.ZodString;
|
|
23810
|
+
created_at: z.ZodString;
|
|
23811
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23812
|
+
id: z.ZodString;
|
|
23813
|
+
fiat_code: z.ZodString;
|
|
23814
|
+
rate: z.ZodString;
|
|
23815
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
23816
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
23817
|
+
created_at: z.ZodString;
|
|
23818
|
+
}, z.core.$strict>>>;
|
|
23819
|
+
}, z.core.$strict>], "type">;
|
|
23694
23820
|
export declare const invalidParametersWire: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
23695
23821
|
field: z.ZodString;
|
|
23696
23822
|
rule: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24264,28 +24390,6 @@ export declare const updateInvoiceWorkflowSettingsWire: z.ZodObject<{
|
|
|
24264
24390
|
}, z.core.$strict>], "collection_method">>;
|
|
24265
24391
|
}, z.core.$strict>;
|
|
24266
24392
|
}, z.core.$strict>;
|
|
24267
|
-
export declare const currencyPagePaginatedResponseWire: z.ZodObject<{
|
|
24268
|
-
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24269
|
-
type: z.ZodLiteral<"fiat">;
|
|
24270
|
-
name: z.ZodString;
|
|
24271
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
24272
|
-
code: z.ZodString;
|
|
24273
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
24274
|
-
type: z.ZodLiteral<"custom">;
|
|
24275
|
-
name: z.ZodString;
|
|
24276
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
24277
|
-
id: z.ZodString;
|
|
24278
|
-
code: z.ZodString;
|
|
24279
|
-
created_at: z.ZodString;
|
|
24280
|
-
}, z.core.$strict>], "type">>;
|
|
24281
|
-
meta: z.ZodObject<{
|
|
24282
|
-
page: z.ZodObject<{
|
|
24283
|
-
number: z.ZodNumber;
|
|
24284
|
-
size: z.ZodNumber;
|
|
24285
|
-
total: z.ZodNumber;
|
|
24286
|
-
}, z.core.$strict>;
|
|
24287
|
-
}, z.core.$strict>;
|
|
24288
|
-
}, z.core.$strict>;
|
|
24289
24393
|
export declare const governanceQueryResultWire: z.ZodObject<{
|
|
24290
24394
|
matched: z.ZodArray<z.ZodString>;
|
|
24291
24395
|
customer: z.ZodObject<{
|
|
@@ -24658,6 +24762,42 @@ export declare const creditGrantPagePaginatedResponseWire: z.ZodObject<{
|
|
|
24658
24762
|
}, z.core.$strict>;
|
|
24659
24763
|
}, z.core.$strict>;
|
|
24660
24764
|
}, z.core.$strict>;
|
|
24765
|
+
export declare const currencyPagePaginatedResponseWire: z.ZodObject<{
|
|
24766
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24767
|
+
type: z.ZodLiteral<"fiat">;
|
|
24768
|
+
name: z.ZodString;
|
|
24769
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
24770
|
+
precision: z.ZodNumber;
|
|
24771
|
+
decimal_mark: z.ZodString;
|
|
24772
|
+
thousand_separator: z.ZodString;
|
|
24773
|
+
code: z.ZodString;
|
|
24774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24775
|
+
type: z.ZodLiteral<"custom">;
|
|
24776
|
+
name: z.ZodString;
|
|
24777
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
24778
|
+
precision: z.ZodNumber;
|
|
24779
|
+
decimal_mark: z.ZodString;
|
|
24780
|
+
thousand_separator: z.ZodString;
|
|
24781
|
+
id: z.ZodString;
|
|
24782
|
+
code: z.ZodString;
|
|
24783
|
+
created_at: z.ZodString;
|
|
24784
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24785
|
+
id: z.ZodString;
|
|
24786
|
+
fiat_code: z.ZodString;
|
|
24787
|
+
rate: z.ZodString;
|
|
24788
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
24789
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
24790
|
+
created_at: z.ZodString;
|
|
24791
|
+
}, z.core.$strict>>>;
|
|
24792
|
+
}, z.core.$strict>], "type">>;
|
|
24793
|
+
meta: z.ZodObject<{
|
|
24794
|
+
page: z.ZodObject<{
|
|
24795
|
+
number: z.ZodNumber;
|
|
24796
|
+
size: z.ZodNumber;
|
|
24797
|
+
total: z.ZodNumber;
|
|
24798
|
+
}, z.core.$strict>;
|
|
24799
|
+
}, z.core.$strict>;
|
|
24800
|
+
}, z.core.$strict>;
|
|
24661
24801
|
export declare const badRequestWire: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
24662
24802
|
type: z.ZodString;
|
|
24663
24803
|
status: z.ZodNumber;
|
|
@@ -37391,14 +37531,28 @@ export declare const listCurrenciesResponseWire: z.ZodObject<{
|
|
|
37391
37531
|
type: z.ZodLiteral<"fiat">;
|
|
37392
37532
|
name: z.ZodString;
|
|
37393
37533
|
symbol: z.ZodOptional<z.ZodString>;
|
|
37534
|
+
precision: z.ZodNumber;
|
|
37535
|
+
decimal_mark: z.ZodString;
|
|
37536
|
+
thousand_separator: z.ZodString;
|
|
37394
37537
|
code: z.ZodString;
|
|
37395
37538
|
}, z.core.$strict>, z.ZodObject<{
|
|
37396
37539
|
type: z.ZodLiteral<"custom">;
|
|
37397
37540
|
name: z.ZodString;
|
|
37398
37541
|
symbol: z.ZodOptional<z.ZodString>;
|
|
37542
|
+
precision: z.ZodNumber;
|
|
37543
|
+
decimal_mark: z.ZodString;
|
|
37544
|
+
thousand_separator: z.ZodString;
|
|
37399
37545
|
id: z.ZodString;
|
|
37400
37546
|
code: z.ZodString;
|
|
37401
37547
|
created_at: z.ZodString;
|
|
37548
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37549
|
+
id: z.ZodString;
|
|
37550
|
+
fiat_code: z.ZodString;
|
|
37551
|
+
rate: z.ZodString;
|
|
37552
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
37553
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
37554
|
+
created_at: z.ZodString;
|
|
37555
|
+
}, z.core.$strict>>>;
|
|
37402
37556
|
}, z.core.$strict>], "type">>;
|
|
37403
37557
|
meta: z.ZodObject<{
|
|
37404
37558
|
page: z.ZodObject<{
|
|
@@ -37411,15 +37565,51 @@ export declare const listCurrenciesResponseWire: z.ZodObject<{
|
|
|
37411
37565
|
export declare const createCustomCurrencyBodyWire: z.ZodObject<{
|
|
37412
37566
|
name: z.ZodString;
|
|
37413
37567
|
symbol: z.ZodOptional<z.ZodString>;
|
|
37568
|
+
precision: z.ZodNumber;
|
|
37569
|
+
decimal_mark: z.ZodString;
|
|
37570
|
+
thousand_separator: z.ZodString;
|
|
37414
37571
|
code: z.ZodString;
|
|
37415
37572
|
}, z.core.$strict>;
|
|
37416
37573
|
export declare const createCustomCurrencyResponseWire: z.ZodObject<{
|
|
37417
37574
|
type: z.ZodLiteral<"custom">;
|
|
37418
37575
|
name: z.ZodString;
|
|
37419
37576
|
symbol: z.ZodOptional<z.ZodString>;
|
|
37577
|
+
precision: z.ZodNumber;
|
|
37578
|
+
decimal_mark: z.ZodString;
|
|
37579
|
+
thousand_separator: z.ZodString;
|
|
37580
|
+
id: z.ZodString;
|
|
37581
|
+
code: z.ZodString;
|
|
37582
|
+
created_at: z.ZodString;
|
|
37583
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37584
|
+
id: z.ZodString;
|
|
37585
|
+
fiat_code: z.ZodString;
|
|
37586
|
+
rate: z.ZodString;
|
|
37587
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
37588
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
37589
|
+
created_at: z.ZodString;
|
|
37590
|
+
}, z.core.$strict>>>;
|
|
37591
|
+
}, z.core.$strict>;
|
|
37592
|
+
export declare const getCustomCurrencyPathParamsWire: z.ZodObject<{
|
|
37593
|
+
currencyId: z.ZodString;
|
|
37594
|
+
}, z.core.$strip>;
|
|
37595
|
+
export declare const getCustomCurrencyResponseWire: z.ZodObject<{
|
|
37596
|
+
type: z.ZodLiteral<"custom">;
|
|
37597
|
+
name: z.ZodString;
|
|
37598
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
37599
|
+
precision: z.ZodNumber;
|
|
37600
|
+
decimal_mark: z.ZodString;
|
|
37601
|
+
thousand_separator: z.ZodString;
|
|
37420
37602
|
id: z.ZodString;
|
|
37421
37603
|
code: z.ZodString;
|
|
37422
37604
|
created_at: z.ZodString;
|
|
37605
|
+
cost_basis: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37606
|
+
id: z.ZodString;
|
|
37607
|
+
fiat_code: z.ZodString;
|
|
37608
|
+
rate: z.ZodString;
|
|
37609
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
37610
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
37611
|
+
created_at: z.ZodString;
|
|
37612
|
+
}, z.core.$strict>>>;
|
|
37423
37613
|
}, z.core.$strict>;
|
|
37424
37614
|
export declare const listCostBasesPathParamsWire: z.ZodObject<{
|
|
37425
37615
|
currencyId: z.ZodString;
|
package/dist/models/schemas.js
CHANGED
|
@@ -688,7 +688,7 @@ export const currencyType = z
|
|
|
688
688
|
.describe('Currency type for custom currencies. It should be a unique code but not conflicting with any existing standard currency codes.');
|
|
689
689
|
export const currencyCodeCustom = z
|
|
690
690
|
.string()
|
|
691
|
-
.min(
|
|
691
|
+
.min(4)
|
|
692
692
|
.max(24)
|
|
693
693
|
.describe('Custom currency code. It should be a unique code but not conflicting with any existing fiat currency codes.');
|
|
694
694
|
export const featureLlmTokenType = z
|
|
@@ -1037,6 +1037,22 @@ export const currencyFiat = z
|
|
|
1037
1037
|
.min(1)
|
|
1038
1038
|
.optional()
|
|
1039
1039
|
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
1040
|
+
precision: z
|
|
1041
|
+
.number()
|
|
1042
|
+
.int()
|
|
1043
|
+
.nonnegative()
|
|
1044
|
+
.lte(4294967295)
|
|
1045
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
1046
|
+
decimalMark: z
|
|
1047
|
+
.string()
|
|
1048
|
+
.min(1)
|
|
1049
|
+
.max(1)
|
|
1050
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
1051
|
+
thousandSeparator: z
|
|
1052
|
+
.string()
|
|
1053
|
+
.min(1)
|
|
1054
|
+
.max(1)
|
|
1055
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
1040
1056
|
code: currencyCode,
|
|
1041
1057
|
})
|
|
1042
1058
|
.describe('Currency describes a currency supported by the billing system.');
|
|
@@ -2177,9 +2193,8 @@ export const listCurrenciesParamsFilter = z
|
|
|
2177
2193
|
code: stringFieldFilter.optional(),
|
|
2178
2194
|
})
|
|
2179
2195
|
.describe('Filter options for listing currencies.');
|
|
2180
|
-
export const
|
|
2196
|
+
export const createCurrencyCustomRequest = z
|
|
2181
2197
|
.object({
|
|
2182
|
-
type: z.literal('custom').describe('The type of the currency.'),
|
|
2183
2198
|
name: z
|
|
2184
2199
|
.string()
|
|
2185
2200
|
.min(1)
|
|
@@ -2190,23 +2205,22 @@ export const currencyCustom = z
|
|
|
2190
2205
|
.min(1)
|
|
2191
2206
|
.optional()
|
|
2192
2207
|
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
name: z
|
|
2208
|
+
precision: z
|
|
2209
|
+
.number()
|
|
2210
|
+
.int()
|
|
2211
|
+
.nonnegative()
|
|
2212
|
+
.lte(4294967295)
|
|
2213
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
2214
|
+
decimalMark: z
|
|
2201
2215
|
.string()
|
|
2202
2216
|
.min(1)
|
|
2203
|
-
.max(
|
|
2204
|
-
.describe('The
|
|
2205
|
-
|
|
2217
|
+
.max(1)
|
|
2218
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
2219
|
+
thousandSeparator: z
|
|
2206
2220
|
.string()
|
|
2207
2221
|
.min(1)
|
|
2208
|
-
.
|
|
2209
|
-
.describe('The
|
|
2222
|
+
.max(1)
|
|
2223
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
2210
2224
|
code: currencyCodeCustom,
|
|
2211
2225
|
})
|
|
2212
2226
|
.describe('CurrencyCustom create request.');
|
|
@@ -2618,6 +2632,44 @@ export const meterQueryResult = z
|
|
|
2618
2632
|
.describe('The usage data. If no data is available, an empty array is returned.'),
|
|
2619
2633
|
})
|
|
2620
2634
|
.describe('Meter query result.');
|
|
2635
|
+
export const currencyCustom = z
|
|
2636
|
+
.object({
|
|
2637
|
+
type: z.literal('custom').describe('The type of the currency.'),
|
|
2638
|
+
name: z
|
|
2639
|
+
.string()
|
|
2640
|
+
.min(1)
|
|
2641
|
+
.max(256)
|
|
2642
|
+
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
2643
|
+
symbol: z
|
|
2644
|
+
.string()
|
|
2645
|
+
.min(1)
|
|
2646
|
+
.optional()
|
|
2647
|
+
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
2648
|
+
precision: z
|
|
2649
|
+
.number()
|
|
2650
|
+
.int()
|
|
2651
|
+
.nonnegative()
|
|
2652
|
+
.lte(4294967295)
|
|
2653
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
2654
|
+
decimalMark: z
|
|
2655
|
+
.string()
|
|
2656
|
+
.min(1)
|
|
2657
|
+
.max(1)
|
|
2658
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
2659
|
+
thousandSeparator: z
|
|
2660
|
+
.string()
|
|
2661
|
+
.min(1)
|
|
2662
|
+
.max(1)
|
|
2663
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
2664
|
+
id: ulid,
|
|
2665
|
+
code: currencyCodeCustom,
|
|
2666
|
+
createdAt: dateTime,
|
|
2667
|
+
costBasis: z
|
|
2668
|
+
.array(costBasis)
|
|
2669
|
+
.optional()
|
|
2670
|
+
.describe('The list of active cost basis for the custom currency.'),
|
|
2671
|
+
})
|
|
2672
|
+
.describe('Describes custom currency.');
|
|
2621
2673
|
export const featureCostQueryResult = z
|
|
2622
2674
|
.object({
|
|
2623
2675
|
from: dateTime.optional(),
|
|
@@ -2995,9 +3047,6 @@ export const updateBillingInvoiceWorkflow = z
|
|
|
2995
3047
|
payment: updateBillingWorkflowPaymentSettings.optional(),
|
|
2996
3048
|
})
|
|
2997
3049
|
.describe('Invoice-level snapshot of the workflow configuration. Contains only the settings that are meaningful for an already-created invoice: invoicing behaviour and payment settings. Collection alignment and tax policy are gather-time / profile-wide concerns and are not included.');
|
|
2998
|
-
export const currency = z
|
|
2999
|
-
.discriminatedUnion('type', [currencyFiat, currencyCustom])
|
|
3000
|
-
.describe('Fiat or custom currency.');
|
|
3001
3050
|
export const governanceFeatureAccess = z
|
|
3002
3051
|
.object({
|
|
3003
3052
|
hasAccess: z
|
|
@@ -3208,6 +3257,9 @@ export const ingestedEventPaginatedResponse = z
|
|
|
3208
3257
|
meta: cursorMeta,
|
|
3209
3258
|
})
|
|
3210
3259
|
.describe('Cursor paginated response.');
|
|
3260
|
+
export const currency = z
|
|
3261
|
+
.discriminatedUnion('type', [currencyFiat, currencyCustom])
|
|
3262
|
+
.describe('Fiat or custom currency.');
|
|
3211
3263
|
export const invalidParameters = z
|
|
3212
3264
|
.array(invalidParameter)
|
|
3213
3265
|
.min(1)
|
|
@@ -3459,12 +3511,6 @@ export const updateInvoiceWorkflowSettings = z
|
|
|
3459
3511
|
workflow: updateBillingInvoiceWorkflow,
|
|
3460
3512
|
})
|
|
3461
3513
|
.describe('Snapshot of the billing workflow configuration captured at invoice creation.');
|
|
3462
|
-
export const currencyPagePaginatedResponse = z
|
|
3463
|
-
.object({
|
|
3464
|
-
data: z.array(currency),
|
|
3465
|
-
meta: paginatedMeta,
|
|
3466
|
-
})
|
|
3467
|
-
.describe('Page paginated response.');
|
|
3468
3514
|
export const governanceQueryResult = z
|
|
3469
3515
|
.object({
|
|
3470
3516
|
matched: z
|
|
@@ -3552,6 +3598,12 @@ export const creditGrantPagePaginatedResponse = z
|
|
|
3552
3598
|
meta: paginatedMeta,
|
|
3553
3599
|
})
|
|
3554
3600
|
.describe('Page paginated response.');
|
|
3601
|
+
export const currencyPagePaginatedResponse = z
|
|
3602
|
+
.object({
|
|
3603
|
+
data: z.array(currency),
|
|
3604
|
+
meta: paginatedMeta,
|
|
3605
|
+
})
|
|
3606
|
+
.describe('Page paginated response.');
|
|
3555
3607
|
export const badRequest = z
|
|
3556
3608
|
.intersection(baseError, z.object({
|
|
3557
3609
|
invalidParameters: invalidParameters,
|
|
@@ -4751,6 +4803,10 @@ export const listCurrenciesResponse = z.object({
|
|
|
4751
4803
|
});
|
|
4752
4804
|
export const createCustomCurrencyBody = createCurrencyCustomRequest;
|
|
4753
4805
|
export const createCustomCurrencyResponse = currencyCustom;
|
|
4806
|
+
export const getCustomCurrencyPathParams = z.object({
|
|
4807
|
+
currencyId: ulid,
|
|
4808
|
+
});
|
|
4809
|
+
export const getCustomCurrencyResponse = currencyCustom;
|
|
4754
4810
|
export const listCostBasesPathParams = z.object({
|
|
4755
4811
|
currencyId: ulid,
|
|
4756
4812
|
});
|
|
@@ -5672,7 +5728,7 @@ export const currencyTypeWire = z
|
|
|
5672
5728
|
.describe('Currency type for custom currencies. It should be a unique code but not conflicting with any existing standard currency codes.');
|
|
5673
5729
|
export const currencyCodeCustomWire = z
|
|
5674
5730
|
.string()
|
|
5675
|
-
.min(
|
|
5731
|
+
.min(4)
|
|
5676
5732
|
.max(24)
|
|
5677
5733
|
.describe('Custom currency code. It should be a unique code but not conflicting with any existing fiat currency codes.');
|
|
5678
5734
|
export const featureLlmTokenTypeWire = z
|
|
@@ -6021,6 +6077,22 @@ export const currencyFiatWire = z
|
|
|
6021
6077
|
.min(1)
|
|
6022
6078
|
.optional()
|
|
6023
6079
|
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
6080
|
+
precision: z
|
|
6081
|
+
.number()
|
|
6082
|
+
.int()
|
|
6083
|
+
.nonnegative()
|
|
6084
|
+
.lte(4294967295)
|
|
6085
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
6086
|
+
decimal_mark: z
|
|
6087
|
+
.string()
|
|
6088
|
+
.min(1)
|
|
6089
|
+
.max(1)
|
|
6090
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
6091
|
+
thousand_separator: z
|
|
6092
|
+
.string()
|
|
6093
|
+
.min(1)
|
|
6094
|
+
.max(1)
|
|
6095
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
6024
6096
|
code: currencyCodeWire,
|
|
6025
6097
|
})
|
|
6026
6098
|
.describe('Currency describes a currency supported by the billing system.');
|
|
@@ -7138,9 +7210,8 @@ export const listCurrenciesParamsFilterWire = z
|
|
|
7138
7210
|
code: stringFieldFilterWire.optional(),
|
|
7139
7211
|
})
|
|
7140
7212
|
.describe('Filter options for listing currencies.');
|
|
7141
|
-
export const
|
|
7213
|
+
export const createCurrencyCustomRequestWire = z
|
|
7142
7214
|
.strictObject({
|
|
7143
|
-
type: z.literal('custom').describe('The type of the currency.'),
|
|
7144
7215
|
name: z
|
|
7145
7216
|
.string()
|
|
7146
7217
|
.min(1)
|
|
@@ -7151,23 +7222,22 @@ export const currencyCustomWire = z
|
|
|
7151
7222
|
.min(1)
|
|
7152
7223
|
.optional()
|
|
7153
7224
|
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
name: z
|
|
7225
|
+
precision: z
|
|
7226
|
+
.number()
|
|
7227
|
+
.int()
|
|
7228
|
+
.nonnegative()
|
|
7229
|
+
.lte(4294967295)
|
|
7230
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
7231
|
+
decimal_mark: z
|
|
7162
7232
|
.string()
|
|
7163
7233
|
.min(1)
|
|
7164
|
-
.max(
|
|
7165
|
-
.describe('The
|
|
7166
|
-
|
|
7234
|
+
.max(1)
|
|
7235
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
7236
|
+
thousand_separator: z
|
|
7167
7237
|
.string()
|
|
7168
7238
|
.min(1)
|
|
7169
|
-
.
|
|
7170
|
-
.describe('The
|
|
7239
|
+
.max(1)
|
|
7240
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
7171
7241
|
code: currencyCodeCustomWire,
|
|
7172
7242
|
})
|
|
7173
7243
|
.describe('CurrencyCustom create request.');
|
|
@@ -7578,6 +7648,44 @@ export const meterQueryResultWire = z
|
|
|
7578
7648
|
.describe('The usage data. If no data is available, an empty array is returned.'),
|
|
7579
7649
|
})
|
|
7580
7650
|
.describe('Meter query result.');
|
|
7651
|
+
export const currencyCustomWire = z
|
|
7652
|
+
.strictObject({
|
|
7653
|
+
type: z.literal('custom').describe('The type of the currency.'),
|
|
7654
|
+
name: z
|
|
7655
|
+
.string()
|
|
7656
|
+
.min(1)
|
|
7657
|
+
.max(256)
|
|
7658
|
+
.describe('The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".'),
|
|
7659
|
+
symbol: z
|
|
7660
|
+
.string()
|
|
7661
|
+
.min(1)
|
|
7662
|
+
.optional()
|
|
7663
|
+
.describe('The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.'),
|
|
7664
|
+
precision: z
|
|
7665
|
+
.number()
|
|
7666
|
+
.int()
|
|
7667
|
+
.nonnegative()
|
|
7668
|
+
.lte(4294967295)
|
|
7669
|
+
.describe('The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.'),
|
|
7670
|
+
decimal_mark: z
|
|
7671
|
+
.string()
|
|
7672
|
+
.min(1)
|
|
7673
|
+
.max(1)
|
|
7674
|
+
.describe('The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.'),
|
|
7675
|
+
thousand_separator: z
|
|
7676
|
+
.string()
|
|
7677
|
+
.min(1)
|
|
7678
|
+
.max(1)
|
|
7679
|
+
.describe('The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.'),
|
|
7680
|
+
id: ulidWire,
|
|
7681
|
+
code: currencyCodeCustomWire,
|
|
7682
|
+
created_at: dateTimeWire,
|
|
7683
|
+
cost_basis: z
|
|
7684
|
+
.array(costBasisWire)
|
|
7685
|
+
.optional()
|
|
7686
|
+
.describe('The list of active cost basis for the custom currency.'),
|
|
7687
|
+
})
|
|
7688
|
+
.describe('Describes custom currency.');
|
|
7581
7689
|
export const featureCostQueryResultWire = z
|
|
7582
7690
|
.strictObject({
|
|
7583
7691
|
from: dateTimeWire.optional(),
|
|
@@ -7957,9 +8065,6 @@ export const updateBillingInvoiceWorkflowWire = z
|
|
|
7957
8065
|
payment: updateBillingWorkflowPaymentSettingsWire.optional(),
|
|
7958
8066
|
})
|
|
7959
8067
|
.describe('Invoice-level snapshot of the workflow configuration. Contains only the settings that are meaningful for an already-created invoice: invoicing behaviour and payment settings. Collection alignment and tax policy are gather-time / profile-wide concerns and are not included.');
|
|
7960
|
-
export const currencyWire = z
|
|
7961
|
-
.discriminatedUnion('type', [currencyFiatWire, currencyCustomWire])
|
|
7962
|
-
.describe('Fiat or custom currency.');
|
|
7963
8068
|
export const governanceFeatureAccessWire = z
|
|
7964
8069
|
.strictObject({
|
|
7965
8070
|
has_access: z
|
|
@@ -8171,6 +8276,9 @@ export const ingestedEventPaginatedResponseWire = z
|
|
|
8171
8276
|
meta: cursorMetaWire,
|
|
8172
8277
|
})
|
|
8173
8278
|
.describe('Cursor paginated response.');
|
|
8279
|
+
export const currencyWire = z
|
|
8280
|
+
.discriminatedUnion('type', [currencyFiatWire, currencyCustomWire])
|
|
8281
|
+
.describe('Fiat or custom currency.');
|
|
8174
8282
|
export const invalidParametersWire = z
|
|
8175
8283
|
.array(invalidParameterWire)
|
|
8176
8284
|
.min(1)
|
|
@@ -8419,12 +8527,6 @@ export const updateInvoiceWorkflowSettingsWire = z
|
|
|
8419
8527
|
workflow: updateBillingInvoiceWorkflowWire,
|
|
8420
8528
|
})
|
|
8421
8529
|
.describe('Snapshot of the billing workflow configuration captured at invoice creation.');
|
|
8422
|
-
export const currencyPagePaginatedResponseWire = z
|
|
8423
|
-
.strictObject({
|
|
8424
|
-
data: z.array(currencyWire),
|
|
8425
|
-
meta: paginatedMetaWire,
|
|
8426
|
-
})
|
|
8427
|
-
.describe('Page paginated response.');
|
|
8428
8530
|
export const governanceQueryResultWire = z
|
|
8429
8531
|
.strictObject({
|
|
8430
8532
|
matched: z
|
|
@@ -8516,6 +8618,12 @@ export const creditGrantPagePaginatedResponseWire = z
|
|
|
8516
8618
|
meta: paginatedMetaWire,
|
|
8517
8619
|
})
|
|
8518
8620
|
.describe('Page paginated response.');
|
|
8621
|
+
export const currencyPagePaginatedResponseWire = z
|
|
8622
|
+
.strictObject({
|
|
8623
|
+
data: z.array(currencyWire),
|
|
8624
|
+
meta: paginatedMetaWire,
|
|
8625
|
+
})
|
|
8626
|
+
.describe('Page paginated response.');
|
|
8519
8627
|
export const badRequestWire = z
|
|
8520
8628
|
.intersection(baseErrorWire, z.strictObject({
|
|
8521
8629
|
invalid_parameters: invalidParametersWire,
|
|
@@ -9738,6 +9846,10 @@ export const listCurrenciesResponseWire = z.strictObject({
|
|
|
9738
9846
|
});
|
|
9739
9847
|
export const createCustomCurrencyBodyWire = createCurrencyCustomRequestWire;
|
|
9740
9848
|
export const createCustomCurrencyResponseWire = currencyCustomWire;
|
|
9849
|
+
export const getCustomCurrencyPathParamsWire = z.object({
|
|
9850
|
+
currencyId: ulidWire,
|
|
9851
|
+
});
|
|
9852
|
+
export const getCustomCurrencyResponseWire = currencyCustomWire;
|
|
9741
9853
|
export const listCostBasesPathParamsWire = z.object({
|
|
9742
9854
|
currencyId: ulidWire,
|
|
9743
9855
|
});
|
package/dist/models/types.d.ts
CHANGED
|
@@ -522,6 +522,22 @@ export interface CurrencyFiat {
|
|
|
522
522
|
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
523
523
|
*/
|
|
524
524
|
symbol?: string;
|
|
525
|
+
/**
|
|
526
|
+
* The precision of the currency. It should be a number that represents the number
|
|
527
|
+
* of decimal places used for the currency, such as 2 for US Dollar or Euro.
|
|
528
|
+
*/
|
|
529
|
+
precision: number;
|
|
530
|
+
/**
|
|
531
|
+
* The decimal mark for the currency. It should be a string that represents the
|
|
532
|
+
* decimal mark of the currency, such as "." for US Dollar or "," for Euro.
|
|
533
|
+
*/
|
|
534
|
+
decimalMark: string;
|
|
535
|
+
/**
|
|
536
|
+
* The thousand separator for the currency. It should be a string that represents
|
|
537
|
+
* the thousand separator of the currency, such as "," for US Dollar or "." for
|
|
538
|
+
* Euro.
|
|
539
|
+
*/
|
|
540
|
+
thousandSeparator: string;
|
|
525
541
|
code: string;
|
|
526
542
|
}
|
|
527
543
|
/** Filter options for listing cost bases. */
|
|
@@ -1947,10 +1963,8 @@ export interface ListCurrenciesParamsFilter {
|
|
|
1947
1963
|
type?: 'fiat' | 'custom';
|
|
1948
1964
|
code?: StringFieldFilter;
|
|
1949
1965
|
}
|
|
1950
|
-
/**
|
|
1951
|
-
export interface
|
|
1952
|
-
/** The type of the currency. */
|
|
1953
|
-
type: 'custom';
|
|
1966
|
+
/** CurrencyCustom create request. */
|
|
1967
|
+
export interface CreateCurrencyCustomRequest {
|
|
1954
1968
|
/**
|
|
1955
1969
|
* The name of the currency. It should be a human-readable string that represents
|
|
1956
1970
|
* the name of the currency, such as "US Dollar" or "Euro".
|
|
@@ -1961,23 +1975,22 @@ export interface CurrencyCustom {
|
|
|
1961
1975
|
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
1962
1976
|
*/
|
|
1963
1977
|
symbol?: string;
|
|
1964
|
-
id: string;
|
|
1965
|
-
code: string;
|
|
1966
|
-
/** An ISO-8601 timestamp representation of the custom currency creation date. */
|
|
1967
|
-
createdAt: Date;
|
|
1968
|
-
}
|
|
1969
|
-
/** CurrencyCustom create request. */
|
|
1970
|
-
export interface CreateCurrencyCustomRequest {
|
|
1971
1978
|
/**
|
|
1972
|
-
* The
|
|
1973
|
-
*
|
|
1979
|
+
* The precision of the currency. It should be a number that represents the number
|
|
1980
|
+
* of decimal places used for the currency, such as 2 for US Dollar or Euro.
|
|
1974
1981
|
*/
|
|
1975
|
-
|
|
1982
|
+
precision: number;
|
|
1976
1983
|
/**
|
|
1977
|
-
* The
|
|
1978
|
-
* the currency, such as "
|
|
1984
|
+
* The decimal mark for the currency. It should be a string that represents the
|
|
1985
|
+
* decimal mark of the currency, such as "." for US Dollar or "," for Euro.
|
|
1979
1986
|
*/
|
|
1980
|
-
|
|
1987
|
+
decimalMark: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* The thousand separator for the currency. It should be a string that represents
|
|
1990
|
+
* the thousand separator of the currency, such as "," for US Dollar or "." for
|
|
1991
|
+
* Euro.
|
|
1992
|
+
*/
|
|
1993
|
+
thousandSeparator: string;
|
|
1981
1994
|
code: string;
|
|
1982
1995
|
}
|
|
1983
1996
|
/** Query to evaluate feature access for a list of customers. */
|
|
@@ -2559,6 +2572,43 @@ export interface MeterQueryResult {
|
|
|
2559
2572
|
/** The usage data. If no data is available, an empty array is returned. */
|
|
2560
2573
|
data: MeterQueryRow[];
|
|
2561
2574
|
}
|
|
2575
|
+
/** Describes custom currency. */
|
|
2576
|
+
export interface CurrencyCustom {
|
|
2577
|
+
/** The type of the currency. */
|
|
2578
|
+
type: 'custom';
|
|
2579
|
+
/**
|
|
2580
|
+
* The name of the currency. It should be a human-readable string that represents
|
|
2581
|
+
* the name of the currency, such as "US Dollar" or "Euro".
|
|
2582
|
+
*/
|
|
2583
|
+
name: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* The symbol of the currency. It should be a string that represents the symbol of
|
|
2586
|
+
* the currency, such as "$" for US Dollar or "€" for Euro.
|
|
2587
|
+
*/
|
|
2588
|
+
symbol?: string;
|
|
2589
|
+
/**
|
|
2590
|
+
* The precision of the currency. It should be a number that represents the number
|
|
2591
|
+
* of decimal places used for the currency, such as 2 for US Dollar or Euro.
|
|
2592
|
+
*/
|
|
2593
|
+
precision: number;
|
|
2594
|
+
/**
|
|
2595
|
+
* The decimal mark for the currency. It should be a string that represents the
|
|
2596
|
+
* decimal mark of the currency, such as "." for US Dollar or "," for Euro.
|
|
2597
|
+
*/
|
|
2598
|
+
decimalMark: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* The thousand separator for the currency. It should be a string that represents
|
|
2601
|
+
* the thousand separator of the currency, such as "," for US Dollar or "." for
|
|
2602
|
+
* Euro.
|
|
2603
|
+
*/
|
|
2604
|
+
thousandSeparator: string;
|
|
2605
|
+
id: string;
|
|
2606
|
+
code: string;
|
|
2607
|
+
/** An ISO-8601 timestamp representation of the custom currency creation date. */
|
|
2608
|
+
createdAt: Date;
|
|
2609
|
+
/** The list of active cost basis for the custom currency. */
|
|
2610
|
+
costBasis?: CostBasis[];
|
|
2611
|
+
}
|
|
2562
2612
|
/** Result of a feature cost query. */
|
|
2563
2613
|
export interface FeatureCostQueryResult {
|
|
2564
2614
|
/** Start of the queried period. */
|
|
@@ -3748,11 +3798,6 @@ export interface UpdateInvoiceWorkflowSettings {
|
|
|
3748
3798
|
*/
|
|
3749
3799
|
workflow: UpdateBillingInvoiceWorkflow;
|
|
3750
3800
|
}
|
|
3751
|
-
/** Page paginated response. */
|
|
3752
|
-
export interface CurrencyPagePaginatedResponse {
|
|
3753
|
-
data: Currency[];
|
|
3754
|
-
meta: PaginatedMeta;
|
|
3755
|
-
}
|
|
3756
3801
|
/** Access evaluation result for a single resolved customer. */
|
|
3757
3802
|
export interface GovernanceQueryResult {
|
|
3758
3803
|
/**
|
|
@@ -3860,6 +3905,11 @@ export interface CreditGrantPagePaginatedResponse {
|
|
|
3860
3905
|
data: CreditGrant[];
|
|
3861
3906
|
meta: PaginatedMeta;
|
|
3862
3907
|
}
|
|
3908
|
+
/** Page paginated response. */
|
|
3909
|
+
export interface CurrencyPagePaginatedResponse {
|
|
3910
|
+
data: Currency[];
|
|
3911
|
+
meta: PaginatedMeta;
|
|
3912
|
+
}
|
|
3863
3913
|
/** Bad Request. */
|
|
3864
3914
|
export interface BadRequest extends BaseError {
|
|
3865
3915
|
/** The list of parameters that failed validation. */
|
|
@@ -5046,13 +5096,13 @@ export type InvalidParameter = InvalidParameterStandard | InvalidParameterMinimu
|
|
|
5046
5096
|
* rate card itself, so it is omitted here.
|
|
5047
5097
|
*/
|
|
5048
5098
|
export type RateCardEntitlement = RateCardMeteredEntitlement | RateCardStaticEntitlement | RateCardBooleanEntitlement;
|
|
5049
|
-
/** Fiat or custom currency. */
|
|
5050
|
-
export type Currency = CurrencyFiat | CurrencyCustom;
|
|
5051
5099
|
/**
|
|
5052
5100
|
* Per-unit cost configuration for a feature. Either a fixed manual amount or a
|
|
5053
5101
|
* dynamic LLM cost lookup.
|
|
5054
5102
|
*/
|
|
5055
5103
|
export type FeatureUnitCost = FeatureManualUnitCost | FeatureLlmUnitCost;
|
|
5104
|
+
/** Fiat or custom currency. */
|
|
5105
|
+
export type Currency = CurrencyFiat | CurrencyCustom;
|
|
5056
5106
|
/**
|
|
5057
5107
|
* The alignment for collecting the pending line items into an invoice.
|
|
5058
5108
|
*
|
package/dist/sdk/internal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type Client } from '../core.js';
|
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
3
|
import type { CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
4
4
|
import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, DeleteInvoiceRequest, DeleteInvoiceResponse, AdvanceInvoiceRequest, AdvanceInvoiceResponse, ApproveInvoiceRequest, ApproveInvoiceResponse, RetryInvoiceRequest, RetryInvoiceResponse, SnapshotQuantitiesInvoiceRequest, SnapshotQuantitiesInvoiceResponse } from '../models/operations/invoices.js';
|
|
5
|
-
import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
5
|
+
import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, GetCustomCurrencyRequest, GetCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
6
6
|
import type { QueryGovernanceAccessRequest, QueryGovernanceAccessResponse } from '../models/operations/governance.js';
|
|
7
7
|
import type { CostBasis, Currency, Invoice } from '../models/types.js';
|
|
8
8
|
/**
|
|
@@ -187,6 +187,14 @@ export declare class InternalCurrencies {
|
|
|
187
187
|
* POST /openmeter/currencies/custom
|
|
188
188
|
*/
|
|
189
189
|
createCustomCurrency(request: CreateCustomCurrencyRequest, options?: RequestOptions): Promise<CreateCustomCurrencyResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* Get custom currency
|
|
192
|
+
*
|
|
193
|
+
* Get a custom currency.
|
|
194
|
+
*
|
|
195
|
+
* GET /openmeter/currencies/custom/{currencyId}
|
|
196
|
+
*/
|
|
197
|
+
getCustomCurrency(request: GetCustomCurrencyRequest, options?: RequestOptions): Promise<GetCustomCurrencyResponse>;
|
|
190
198
|
/**
|
|
191
199
|
* List cost bases
|
|
192
200
|
*
|
package/dist/sdk/internal.js
CHANGED
|
@@ -3,7 +3,7 @@ import { unwrap } from '../lib/types.js';
|
|
|
3
3
|
import { paginatePages } from '../lib/paginate.js';
|
|
4
4
|
import { createSubscriptionAddon } from '../funcs/subscriptions.js';
|
|
5
5
|
import { listInvoices, getInvoice, updateInvoice, deleteInvoice, advanceInvoice, approveInvoice, retryInvoice, snapshotQuantitiesInvoice, } from '../funcs/invoices.js';
|
|
6
|
-
import { listCurrencies, createCustomCurrency, listCostBases, createCostBasis, } from '../funcs/currencies.js';
|
|
6
|
+
import { listCurrencies, createCustomCurrency, getCustomCurrency, listCostBases, createCostBasis, } from '../funcs/currencies.js';
|
|
7
7
|
import { queryGovernanceAccess } from '../funcs/governance.js';
|
|
8
8
|
/**
|
|
9
9
|
* Operations marked internal in the API definition. They are not part of
|
|
@@ -229,6 +229,16 @@ export class InternalCurrencies {
|
|
|
229
229
|
async createCustomCurrency(request, options) {
|
|
230
230
|
return unwrap(await createCustomCurrency(this._client, request, options));
|
|
231
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Get custom currency
|
|
234
|
+
*
|
|
235
|
+
* Get a custom currency.
|
|
236
|
+
*
|
|
237
|
+
* GET /openmeter/currencies/custom/{currencyId}
|
|
238
|
+
*/
|
|
239
|
+
async getCustomCurrency(request, options) {
|
|
240
|
+
return unwrap(await getCustomCurrency(this._client, request, options));
|
|
241
|
+
}
|
|
232
242
|
/**
|
|
233
243
|
* List cost bases
|
|
234
244
|
*
|