client.accounts.listApiKeys({ ...params }) -> Schematic.ListApiKeysResponse
-
-
-
await client.accounts.listApiKeys({ requireEnvironment: true, });
-
-
-
request:
Schematic.ListApiKeysRequest
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.createApiKey({ ...params }) -> Schematic.CreateApiKeyResponse
-
-
-
await client.accounts.createApiKey({ name: "name", });
-
-
-
request:
Schematic.CreateApiKeyRequestBody
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.getApiKey(apiKeyId) -> Schematic.GetApiKeyResponse
-
-
-
await client.accounts.getApiKey("api_key_id");
-
-
-
apiKeyId:
string
— api_key_id
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.updateApiKey(apiKeyId, { ...params }) -> Schematic.UpdateApiKeyResponse
-
-
-
await client.accounts.updateApiKey("api_key_id");
-
-
-
apiKeyId:
string
— api_key_id
-
request:
Schematic.UpdateApiKeyRequestBody
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.deleteApiKey(apiKeyId) -> Schematic.DeleteApiKeyResponse
-
-
-
await client.accounts.deleteApiKey("api_key_id");
-
-
-
apiKeyId:
string
— api_key_id
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.countApiKeys({ ...params }) -> Schematic.CountApiKeysResponse
-
-
-
await client.accounts.countApiKeys({ requireEnvironment: true, });
-
-
-
request:
Schematic.CountApiKeysRequest
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.listApiRequests({ ...params }) -> Schematic.ListApiRequestsResponse
-
-
-
await client.accounts.listApiRequests();
-
-
-
request:
Schematic.ListApiRequestsRequest
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.getApiRequest(apiRequestId) -> Schematic.GetApiRequestResponse
-
-
-
await client.accounts.getApiRequest("api_request_id");
-
-
-
apiRequestId:
string
— api_request_id
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.countApiRequests({ ...params }) -> Schematic.CountApiRequestsResponse
-
-
-
await client.accounts.countApiRequests();
-
-
-
request:
Schematic.CountApiRequestsRequest
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.listEnvironments({ ...params }) -> Schematic.ListEnvironmentsResponse
-
-
-
await client.accounts.listEnvironments();
-
-
-
request:
Schematic.ListEnvironmentsRequest
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.createEnvironment({ ...params }) -> Schematic.CreateEnvironmentResponse
-
-
-
await client.accounts.createEnvironment({ environmentType: "development", name: "name", });
-
-
-
request:
Schematic.CreateEnvironmentRequestBody
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.getEnvironment(environmentId) -> Schematic.GetEnvironmentResponse
-
-
-
await client.accounts.getEnvironment("environment_id");
-
-
-
environmentId:
string
— environment_id
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.updateEnvironment(environmentId, { ...params }) -> Schematic.UpdateEnvironmentResponse
-
-
-
await client.accounts.updateEnvironment("environment_id");
-
-
-
environmentId:
string
— environment_id
-
request:
Schematic.UpdateEnvironmentRequestBody
-
requestOptions:
Accounts.RequestOptions
-
-
client.accounts.deleteEnvironment(environmentId) -> Schematic.DeleteEnvironmentResponse
-
-
-
await client.accounts.deleteEnvironment("environment_id");
-
-
-
environmentId:
string
— environment_id
-
requestOptions:
Accounts.RequestOptions
-
-
client.features.countAudienceCompanies({ ...params }) -> Schematic.CountAudienceCompaniesResponse
-
-
-
await client.features.countAudienceCompanies({ conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], });
-
-
-
request:
Schematic.AudienceRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.countAudienceUsers({ ...params }) -> Schematic.CountAudienceUsersResponse
-
-
-
await client.features.countAudienceUsers({ conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], });
-
-
-
request:
Schematic.AudienceRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.listAudienceCompanies({ ...params }) -> Schematic.ListAudienceCompaniesResponse
-
-
-
await client.features.listAudienceCompanies({ conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], });
-
-
-
request:
Schematic.AudienceRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.listAudienceUsers({ ...params }) -> Schematic.ListAudienceUsersResponse
-
-
-
await client.features.listAudienceUsers({ conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], });
-
-
-
request:
Schematic.AudienceRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.listFeatures({ ...params }) -> Schematic.ListFeaturesResponse
-
-
-
await client.features.listFeatures();
-
-
-
request:
Schematic.ListFeaturesRequest
-
requestOptions:
Features.RequestOptions
-
-
client.features.createFeature({ ...params }) -> Schematic.CreateFeatureResponse
-
-
-
await client.features.createFeature({ description: "description", featureType: "boolean", name: "name", });
-
-
-
request:
Schematic.CreateFeatureRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.getFeature(featureId) -> Schematic.GetFeatureResponse
-
-
-
await client.features.getFeature("feature_id");
-
-
-
featureId:
string
— feature_id
-
requestOptions:
Features.RequestOptions
-
-
client.features.updateFeature(featureId, { ...params }) -> Schematic.UpdateFeatureResponse
-
-
-
await client.features.updateFeature("feature_id");
-
-
-
featureId:
string
— feature_id
-
request:
Schematic.UpdateFeatureRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.deleteFeature(featureId) -> Schematic.DeleteFeatureResponse
-
-
-
await client.features.deleteFeature("feature_id");
-
-
-
featureId:
string
— feature_id
-
requestOptions:
Features.RequestOptions
-
-
client.features.countFeatures({ ...params }) -> Schematic.CountFeaturesResponse
-
-
-
await client.features.countFeatures();
-
-
-
request:
Schematic.CountFeaturesRequest
-
requestOptions:
Features.RequestOptions
-
-
client.features.listFlags({ ...params }) -> Schematic.ListFlagsResponse
-
-
-
await client.features.listFlags();
-
-
-
request:
Schematic.ListFlagsRequest
-
requestOptions:
Features.RequestOptions
-
-
client.features.createFlag({ ...params }) -> Schematic.CreateFlagResponse
-
-
-
await client.features.createFlag({ defaultValue: true, description: "description", flagType: "flag_type", key: "key", name: "name", });
-
-
-
request:
Schematic.CreateFlagRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.getFlag(flagId) -> Schematic.GetFlagResponse
-
-
-
await client.features.getFlag("flag_id");
-
-
-
flagId:
string
— flag_id
-
requestOptions:
Features.RequestOptions
-
-
client.features.updateFlag(flagId, { ...params }) -> Schematic.UpdateFlagResponse
-
-
-
await client.features.updateFlag("flag_id", { defaultValue: true, description: "description", flagType: "flag_type", key: "key", name: "name", });
-
-
-
flagId:
string
— flag_id
-
request:
Schematic.CreateFlagRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.deleteFlag(flagId) -> Schematic.DeleteFlagResponse
-
-
-
await client.features.deleteFlag("flag_id");
-
-
-
flagId:
string
— flag_id
-
requestOptions:
Features.RequestOptions
-
-
client.features.updateFlagRules(flagId, { ...params }) -> Schematic.UpdateFlagRulesResponse
-
-
-
await client.features.updateFlagRules("flag_id", { rules: [ { conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], name: "name", priority: 1, value: true, }, ], });
-
-
-
flagId:
string
— flag_id
-
request:
Schematic.UpdateFlagRulesRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.checkFlag(key, { ...params }) -> Schematic.CheckFlagResponse
-
-
-
await client.features.checkFlag("key", {});
-
-
-
key:
string
— key
-
request:
Schematic.CheckFlagRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.checkFlags({ ...params }) -> Schematic.CheckFlagsResponse
-
-
-
await client.features.checkFlags({});
-
-
-
request:
Schematic.CheckFlagRequestBody
-
requestOptions:
Features.RequestOptions
-
-
client.features.countFlags({ ...params }) -> Schematic.CountFlagsResponse
-
-
-
await client.features.countFlags();
-
-
-
request:
Schematic.CountFlagsRequest
-
requestOptions:
Features.RequestOptions
-
-
client.billing.upsertBillingCoupon({ ...params }) -> Schematic.UpsertBillingCouponResponse
-
-
-
await client.billing.upsertBillingCoupon({ amountOff: 1, duration: "duration", durationInMonths: 1, externalId: "external_id", maxRedemptions: 1, name: "name", percentOff: 1.1, timesRedeemed: 1, });
-
-
-
request:
Schematic.CreateCouponRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertBillingCustomer({ ...params }) -> Schematic.UpsertBillingCustomerResponse
-
-
-
await client.billing.upsertBillingCustomer({ email: "email", externalId: "external_id", failedToImport: true, meta: { key: "value", }, name: "name", });
-
-
-
request:
Schematic.CreateBillingCustomerRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listCustomers({ ...params }) -> Schematic.ListCustomersResponse
-
-
-
await client.billing.listCustomers();
-
-
-
request:
Schematic.ListCustomersRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.countCustomers({ ...params }) -> Schematic.CountCustomersResponse
-
-
-
await client.billing.countCustomers();
-
-
-
request:
Schematic.CountCustomersRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listInvoices({ ...params }) -> Schematic.ListInvoicesResponse
-
-
-
await client.billing.listInvoices({ customerExternalId: "customer_external_id", });
-
-
-
request:
Schematic.ListInvoicesRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertInvoice({ ...params }) -> Schematic.UpsertInvoiceResponse
-
-
-
await client.billing.upsertInvoice({ amountDue: 1, amountPaid: 1, amountRemaining: 1, collectionMethod: "collection_method", currency: "currency", customerExternalId: "customer_external_id", subtotal: 1, });
-
-
-
request:
Schematic.CreateInvoiceRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listMeters({ ...params }) -> Schematic.ListMetersResponse
-
-
-
await client.billing.listMeters();
-
-
-
request:
Schematic.ListMetersRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertBillingMeter({ ...params }) -> Schematic.UpsertBillingMeterResponse
-
-
-
await client.billing.upsertBillingMeter({ displayName: "display_name", eventName: "event_name", eventPayloadKey: "event_payload_key", externalId: "external_id", });
-
-
-
request:
Schematic.CreateMeterRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listPaymentMethods({ ...params }) -> Schematic.ListPaymentMethodsResponse
-
-
-
await client.billing.listPaymentMethods({ customerExternalId: "customer_external_id", });
-
-
-
request:
Schematic.ListPaymentMethodsRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertPaymentMethod({ ...params }) -> Schematic.UpsertPaymentMethodResponse
-
-
-
await client.billing.upsertPaymentMethod({ customerExternalId: "customer_external_id", externalId: "external_id", paymentMethodType: "payment_method_type", });
-
-
-
request:
Schematic.CreatePaymentMethodRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.searchBillingPrices({ ...params }) -> Schematic.SearchBillingPricesResponse
-
-
-
await client.billing.searchBillingPrices();
-
-
-
request:
Schematic.SearchBillingPricesRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertBillingPrice({ ...params }) -> Schematic.UpsertBillingPriceResponse
-
-
-
await client.billing.upsertBillingPrice({ currency: "currency", interval: "interval", isActive: true, price: 1, priceExternalId: "price_external_id", productExternalId: "product_external_id", usageType: "usage_type", });
-
-
-
request:
Schematic.CreateBillingPriceRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listProductPrices({ ...params }) -> Schematic.ListProductPricesResponse
-
-
-
await client.billing.listProductPrices();
-
-
-
request:
Schematic.ListProductPricesRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.deleteProductPrice(billingId) -> Schematic.DeleteProductPriceResponse
-
-
-
await client.billing.deleteProductPrice("billing_id");
-
-
-
billingId:
string
— billing_id
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertBillingProduct({ ...params }) -> Schematic.UpsertBillingProductResponse
-
-
-
await client.billing.upsertBillingProduct({ currency: "currency", externalId: "external_id", name: "name", price: 1.1, quantity: 1, });
-
-
-
request:
Schematic.CreateBillingProductRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.listBillingProducts({ ...params }) -> Schematic.ListBillingProductsResponse
-
-
-
await client.billing.listBillingProducts();
-
-
-
request:
Schematic.ListBillingProductsRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.countBillingProducts({ ...params }) -> Schematic.CountBillingProductsResponse
-
-
-
await client.billing.countBillingProducts();
-
-
-
request:
Schematic.CountBillingProductsRequest
-
requestOptions:
Billing.RequestOptions
-
-
client.billing.upsertBillingSubscription({ ...params }) -> Schematic.UpsertBillingSubscriptionResponse
-
-
-
await client.billing.upsertBillingSubscription({ currency: "currency", customerExternalId: "customer_external_id", discounts: [ { couponExternalId: "coupon_external_id", externalId: "external_id", isActive: true, startedAt: "2024-01-15T09:30:00Z", }, ], expiredAt: "2024-01-15T09:30:00Z", productExternalIds: [ { currency: "currency", interval: "interval", price: 1, priceExternalId: "price_external_id", productExternalId: "product_external_id", quantity: 1, usageType: "usage_type", }, ], subscriptionExternalId: "subscription_external_id", totalPrice: 1, });
-
-
-
request:
Schematic.CreateBillingSubscriptionsRequestBody
-
requestOptions:
Billing.RequestOptions
-
-
client.checkout.internal({ ...params }) -> Schematic.CheckoutInternalResponse
-
-
-
await client.checkout.internal({ addOnIds: [ { addOnId: "add_on_id", priceId: "price_id", }, ], companyId: "company_id", newPlanId: "new_plan_id", newPriceId: "new_price_id", payInAdvance: [ { priceId: "price_id", quantity: 1, }, ], });
-
-
-
request:
Schematic.ChangeSubscriptionInternalRequestBody
-
requestOptions:
Checkout.RequestOptions
-
-
client.checkout.getCheckoutData(checkoutInternalId) -> Schematic.GetCheckoutDataResponse
-
-
-
await client.checkout.getCheckoutData("checkout_internal_id");
-
-
-
checkoutInternalId:
string
— checkout_internal_id
-
requestOptions:
Checkout.RequestOptions
-
-
client.checkout.previewCheckoutInternal({ ...params }) -> Schematic.PreviewCheckoutInternalResponse
-
-
-
await client.checkout.previewCheckoutInternal({ addOnIds: [ { addOnId: "add_on_id", priceId: "price_id", }, ], companyId: "company_id", newPlanId: "new_plan_id", newPriceId: "new_price_id", payInAdvance: [ { priceId: "price_id", quantity: 1, }, ], });
-
-
-
request:
Schematic.ChangeSubscriptionInternalRequestBody
-
requestOptions:
Checkout.RequestOptions
-
-
client.checkout.updateCustomerSubscriptionTrialEnd(subscriptionId, { ...params }) -> Schematic.UpdateCustomerSubscriptionTrialEndResponse
-
-
-
await client.checkout.updateCustomerSubscriptionTrialEnd("subscription_id");
-
-
-
subscriptionId:
string
— subscription_id
-
request:
Schematic.UpdateTrialEndRequestBody
-
requestOptions:
Checkout.RequestOptions
-
-
client.companies.listCompanies({ ...params }) -> Schematic.ListCompaniesResponse
-
-
-
await client.companies.listCompanies();
-
-
-
request:
Schematic.ListCompaniesRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.upsertCompany({ ...params }) -> Schematic.UpsertCompanyResponse
-
-
-
await client.companies.upsertCompany({ keys: { key: "value", }, });
-
-
-
request:
Schematic.UpsertCompanyRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getCompany(companyId) -> Schematic.GetCompanyResponse
-
-
-
await client.companies.getCompany("company_id");
-
-
-
companyId:
string
— company_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.deleteCompany(companyId) -> Schematic.DeleteCompanyResponse
-
-
-
await client.companies.deleteCompany("company_id");
-
-
-
companyId:
string
— company_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.countCompanies({ ...params }) -> Schematic.CountCompaniesResponse
-
-
-
await client.companies.countCompanies();
-
-
-
request:
Schematic.CountCompaniesRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.createCompany({ ...params }) -> Schematic.CreateCompanyResponse
-
-
-
await client.companies.createCompany({ keys: { key: "value", }, });
-
-
-
request:
Schematic.UpsertCompanyRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.deleteCompanyByKeys({ ...params }) -> Schematic.DeleteCompanyByKeysResponse
-
-
-
await client.companies.deleteCompanyByKeys({ keys: { key: "value", }, });
-
-
-
request:
Schematic.KeysRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.lookupCompany({ ...params }) -> Schematic.LookupCompanyResponse
-
-
-
await client.companies.lookupCompany({ keys: { keys: { key: "value", }, }, });
-
-
-
request:
Schematic.LookupCompanyRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getActiveDeals({ ...params }) -> Schematic.GetActiveDealsResponse
-
-
-
await client.companies.getActiveDeals({ companyId: "company_id", dealStage: "deal_stage", });
-
-
-
request:
Schematic.GetActiveDealsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.listCompanyMemberships({ ...params }) -> Schematic.ListCompanyMembershipsResponse
-
-
-
await client.companies.listCompanyMemberships();
-
-
-
request:
Schematic.ListCompanyMembershipsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getOrCreateCompanyMembership({ ...params }) -> Schematic.GetOrCreateCompanyMembershipResponse
-
-
-
await client.companies.getOrCreateCompanyMembership({ companyId: "company_id", userId: "user_id", });
-
-
-
request:
Schematic.GetOrCreateCompanyMembershipRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.deleteCompanyMembership(companyMembershipId) -> Schematic.DeleteCompanyMembershipResponse
-
-
-
await client.companies.deleteCompanyMembership("company_membership_id");
-
-
-
companyMembershipId:
string
— company_membership_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getActiveCompanySubscription({ ...params }) -> Schematic.GetActiveCompanySubscriptionResponse
-
-
-
await client.companies.getActiveCompanySubscription();
-
-
-
request:
Schematic.GetActiveCompanySubscriptionRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.upsertCompanyTrait({ ...params }) -> Schematic.UpsertCompanyTraitResponse
-
-
-
await client.companies.upsertCompanyTrait({ keys: { key: "value", }, trait: "trait", });
-
-
-
request:
Schematic.UpsertTraitRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.listEntityKeyDefinitions({ ...params }) -> Schematic.ListEntityKeyDefinitionsResponse
-
-
-
await client.companies.listEntityKeyDefinitions();
-
-
-
request:
Schematic.ListEntityKeyDefinitionsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.countEntityKeyDefinitions({ ...params }) -> Schematic.CountEntityKeyDefinitionsResponse
-
-
-
await client.companies.countEntityKeyDefinitions();
-
-
-
request:
Schematic.CountEntityKeyDefinitionsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.listEntityTraitDefinitions({ ...params }) -> Schematic.ListEntityTraitDefinitionsResponse
-
-
-
await client.companies.listEntityTraitDefinitions();
-
-
-
request:
Schematic.ListEntityTraitDefinitionsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getOrCreateEntityTraitDefinition({ ...params }) -> Schematic.GetOrCreateEntityTraitDefinitionResponse
-
-
-
await client.companies.getOrCreateEntityTraitDefinition({ entityType: "company", hierarchy: ["hierarchy"], traitType: "boolean", });
-
-
-
request:
Schematic.CreateEntityTraitDefinitionRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getEntityTraitDefinition(entityTraitDefinitionId) -> Schematic.GetEntityTraitDefinitionResponse
-
-
-
await client.companies.getEntityTraitDefinition("entity_trait_definition_id");
-
-
-
entityTraitDefinitionId:
string
— entity_trait_definition_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.updateEntityTraitDefinition(entityTraitDefinitionId, { ...params }) -> Schematic.UpdateEntityTraitDefinitionResponse
-
-
-
await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", { traitType: "boolean", });
-
-
-
entityTraitDefinitionId:
string
— entity_trait_definition_id
-
request:
Schematic.UpdateEntityTraitDefinitionRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.countEntityTraitDefinitions({ ...params }) -> Schematic.CountEntityTraitDefinitionsResponse
-
-
-
await client.companies.countEntityTraitDefinitions();
-
-
-
request:
Schematic.CountEntityTraitDefinitionsRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getEntityTraitValues({ ...params }) -> Schematic.GetEntityTraitValuesResponse
-
-
-
await client.companies.getEntityTraitValues({ definitionId: "definition_id", });
-
-
-
request:
Schematic.GetEntityTraitValuesRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.upsertUserTrait({ ...params }) -> Schematic.UpsertUserTraitResponse
-
-
-
await client.companies.upsertUserTrait({ keys: { key: "value", }, trait: "trait", });
-
-
-
request:
Schematic.UpsertTraitRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.listUsers({ ...params }) -> Schematic.ListUsersResponse
-
-
-
await client.companies.listUsers();
-
-
-
request:
Schematic.ListUsersRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.upsertUser({ ...params }) -> Schematic.UpsertUserResponse
-
-
-
await client.companies.upsertUser({ company: { key: "value", }, keys: { key: "value", }, });
-
-
-
request:
Schematic.UpsertUserRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.getUser(userId) -> Schematic.GetUserResponse
-
-
-
await client.companies.getUser("user_id");
-
-
-
userId:
string
— user_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.deleteUser(userId) -> Schematic.DeleteUserResponse
-
-
-
await client.companies.deleteUser("user_id");
-
-
-
userId:
string
— user_id
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.countUsers({ ...params }) -> Schematic.CountUsersResponse
-
-
-
await client.companies.countUsers();
-
-
-
request:
Schematic.CountUsersRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.createUser({ ...params }) -> Schematic.CreateUserResponse
-
-
-
await client.companies.createUser({ company: { key: "value", }, keys: { key: "value", }, });
-
-
-
request:
Schematic.UpsertUserRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.deleteUserByKeys({ ...params }) -> Schematic.DeleteUserByKeysResponse
-
-
-
await client.companies.deleteUserByKeys({ keys: { key: "value", }, });
-
-
-
request:
Schematic.KeysRequestBody
-
requestOptions:
Companies.RequestOptions
-
-
client.companies.lookupUser({ ...params }) -> Schematic.LookupUserResponse
-
-
-
await client.companies.lookupUser({ keys: { keys: { key: "value", }, }, });
-
-
-
request:
Schematic.LookupUserRequest
-
requestOptions:
Companies.RequestOptions
-
-
client.entitlements.listCompanyOverrides({ ...params }) -> Schematic.ListCompanyOverridesResponse
-
-
-
await client.entitlements.listCompanyOverrides();
-
-
-
request:
Schematic.ListCompanyOverridesRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.createCompanyOverride({ ...params }) -> Schematic.CreateCompanyOverrideResponse
-
-
-
await client.entitlements.createCompanyOverride({ companyId: "company_id", featureId: "feature_id", valueType: "boolean", });
-
-
-
request:
Schematic.CreateCompanyOverrideRequestBody
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.getCompanyOverride(companyOverrideId) -> Schematic.GetCompanyOverrideResponse
-
-
-
await client.entitlements.getCompanyOverride("company_override_id");
-
-
-
companyOverrideId:
string
— company_override_id
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.updateCompanyOverride(companyOverrideId, { ...params }) -> Schematic.UpdateCompanyOverrideResponse
-
-
-
await client.entitlements.updateCompanyOverride("company_override_id", { valueType: "boolean", });
-
-
-
companyOverrideId:
string
— company_override_id
-
request:
Schematic.UpdateCompanyOverrideRequestBody
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.deleteCompanyOverride(companyOverrideId) -> Schematic.DeleteCompanyOverrideResponse
-
-
-
await client.entitlements.deleteCompanyOverride("company_override_id");
-
-
-
companyOverrideId:
string
— company_override_id
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.countCompanyOverrides({ ...params }) -> Schematic.CountCompanyOverridesResponse
-
-
-
await client.entitlements.countCompanyOverrides();
-
-
-
request:
Schematic.CountCompanyOverridesRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.listFeatureCompanies({ ...params }) -> Schematic.ListFeatureCompaniesResponse
-
-
-
await client.entitlements.listFeatureCompanies({ featureId: "feature_id", });
-
-
-
request:
Schematic.ListFeatureCompaniesRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.countFeatureCompanies({ ...params }) -> Schematic.CountFeatureCompaniesResponse
-
-
-
await client.entitlements.countFeatureCompanies({ featureId: "feature_id", });
-
-
-
request:
Schematic.CountFeatureCompaniesRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.listFeatureUsage({ ...params }) -> Schematic.ListFeatureUsageResponse
-
-
-
await client.entitlements.listFeatureUsage();
-
-
-
request:
Schematic.ListFeatureUsageRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.countFeatureUsage({ ...params }) -> Schematic.CountFeatureUsageResponse
-
-
-
await client.entitlements.countFeatureUsage();
-
-
-
request:
Schematic.CountFeatureUsageRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.listFeatureUsers({ ...params }) -> Schematic.ListFeatureUsersResponse
-
-
-
await client.entitlements.listFeatureUsers({ featureId: "feature_id", });
-
-
-
request:
Schematic.ListFeatureUsersRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.countFeatureUsers({ ...params }) -> Schematic.CountFeatureUsersResponse
-
-
-
await client.entitlements.countFeatureUsers({ featureId: "feature_id", });
-
-
-
request:
Schematic.CountFeatureUsersRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.listPlanEntitlements({ ...params }) -> Schematic.ListPlanEntitlementsResponse
-
-
-
await client.entitlements.listPlanEntitlements();
-
-
-
request:
Schematic.ListPlanEntitlementsRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.createPlanEntitlement({ ...params }) -> Schematic.CreatePlanEntitlementResponse
-
-
-
await client.entitlements.createPlanEntitlement({ featureId: "feature_id", planId: "plan_id", valueType: "boolean", });
-
-
-
request:
Schematic.CreatePlanEntitlementRequestBody
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.getPlanEntitlement(planEntitlementId) -> Schematic.GetPlanEntitlementResponse
-
-
-
await client.entitlements.getPlanEntitlement("plan_entitlement_id");
-
-
-
planEntitlementId:
string
— plan_entitlement_id
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.updatePlanEntitlement(planEntitlementId, { ...params }) -> Schematic.UpdatePlanEntitlementResponse
-
-
-
await client.entitlements.updatePlanEntitlement("plan_entitlement_id", { valueType: "boolean", });
-
-
-
planEntitlementId:
string
— plan_entitlement_id
-
request:
Schematic.UpdatePlanEntitlementRequestBody
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.deletePlanEntitlement(planEntitlementId) -> Schematic.DeletePlanEntitlementResponse
-
-
-
await client.entitlements.deletePlanEntitlement("plan_entitlement_id");
-
-
-
planEntitlementId:
string
— plan_entitlement_id
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.countPlanEntitlements({ ...params }) -> Schematic.CountPlanEntitlementsResponse
-
-
-
await client.entitlements.countPlanEntitlements();
-
-
-
request:
Schematic.CountPlanEntitlementsRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.entitlements.getFeatureUsageByCompany({ ...params }) -> Schematic.GetFeatureUsageByCompanyResponse
-
-
-
await client.entitlements.getFeatureUsageByCompany({ keys: { keys: { key: "value", }, }, });
-
-
-
request:
Schematic.GetFeatureUsageByCompanyRequest
-
requestOptions:
Entitlements.RequestOptions
-
-
client.plans.updateCompanyPlans(companyPlanId, { ...params }) -> Schematic.UpdateCompanyPlansResponse
-
-
-
await client.plans.updateCompanyPlans("company_plan_id", { addOnIds: ["add_on_ids"], });
-
-
-
companyPlanId:
string
— company_plan_id
-
request:
Schematic.UpdateCompanyPlansRequestBody
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.getAudience(planAudienceId) -> Schematic.GetAudienceResponse
-
-
-
await client.plans.getAudience("plan_audience_id");
-
-
-
planAudienceId:
string
— plan_audience_id
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.updateAudience(planAudienceId, { ...params }) -> Schematic.UpdateAudienceResponse
-
-
-
await client.plans.updateAudience("plan_audience_id", { conditionGroups: [ { conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], }, ], conditions: [ { conditionType: "company", operator: "eq", resourceIds: ["resource_ids"], }, ], });
-
-
-
planAudienceId:
string
— plan_audience_id
-
request:
Schematic.UpdateAudienceRequestBody
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.deleteAudience(planAudienceId) -> Schematic.DeleteAudienceResponse
-
-
-
await client.plans.deleteAudience("plan_audience_id");
-
-
-
planAudienceId:
string
— plan_audience_id
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.listPlans({ ...params }) -> Schematic.ListPlansResponse
-
-
-
await client.plans.listPlans();
-
-
-
request:
Schematic.ListPlansRequest
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.createPlan({ ...params }) -> Schematic.CreatePlanResponse
-
-
-
await client.plans.createPlan({ description: "description", name: "name", planType: "plan", });
-
-
-
request:
Schematic.CreatePlanRequestBody
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.getPlan(planId) -> Schematic.GetPlanResponse
-
-
-
await client.plans.getPlan("plan_id");
-
-
-
planId:
string
— plan_id
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.updatePlan(planId, { ...params }) -> Schematic.UpdatePlanResponse
-
-
-
await client.plans.updatePlan("plan_id", { name: "name", });
-
-
-
planId:
string
— plan_id
-
request:
Schematic.UpdatePlanRequestBody
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.deletePlan(planId) -> Schematic.DeletePlanResponse
-
-
-
await client.plans.deletePlan("plan_id");
-
-
-
planId:
string
— plan_id
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.upsertBillingProductPlan(planId, { ...params }) -> Schematic.UpsertBillingProductPlanResponse
-
-
-
await client.plans.upsertBillingProductPlan("plan_id", { isFreePlan: true, isTrialable: true, });
-
-
-
planId:
string
— plan_id
-
request:
Schematic.UpsertBillingProductRequestBody
-
requestOptions:
Plans.RequestOptions
-
-
client.plans.countPlans({ ...params }) -> Schematic.CountPlansResponse
-
-
-
await client.plans.countPlans();
-
-
-
request:
Schematic.CountPlansRequest
-
requestOptions:
Plans.RequestOptions
-
-
client.components.listComponents({ ...params }) -> Schematic.ListComponentsResponse
-
-
-
await client.components.listComponents();
-
-
-
request:
Schematic.ListComponentsRequest
-
requestOptions:
Components.RequestOptions
-
-
client.components.createComponent({ ...params }) -> Schematic.CreateComponentResponse
-
-
-
await client.components.createComponent({ entityType: "entitlement", name: "name", });
-
-
-
request:
Schematic.CreateComponentRequestBody
-
requestOptions:
Components.RequestOptions
-
-
client.components.getComponent(componentId) -> Schematic.GetComponentResponse
-
-
-
await client.components.getComponent("component_id");
-
-
-
componentId:
string
— component_id
-
requestOptions:
Components.RequestOptions
-
-
client.components.updateComponent(componentId, { ...params }) -> Schematic.UpdateComponentResponse
-
-
-
await client.components.updateComponent("component_id");
-
-
-
componentId:
string
— component_id
-
request:
Schematic.UpdateComponentRequestBody
-
requestOptions:
Components.RequestOptions
-
-
client.components.deleteComponent(componentId) -> Schematic.DeleteComponentResponse
-
-
-
await client.components.deleteComponent("component_id");
-
-
-
componentId:
string
— component_id
-
requestOptions:
Components.RequestOptions
-
-
client.components.countComponents({ ...params }) -> Schematic.CountComponentsResponse
-
-
-
await client.components.countComponents();
-
-
-
request:
Schematic.CountComponentsRequest
-
requestOptions:
Components.RequestOptions
-
-
client.components.previewComponentData({ ...params }) -> Schematic.PreviewComponentDataResponse
-
-
-
await client.components.previewComponentData();
-
-
-
request:
Schematic.PreviewComponentDataRequest
-
requestOptions:
Components.RequestOptions
-
-
client.crm.upsertDealLineItemAssociation({ ...params }) -> Schematic.UpsertDealLineItemAssociationResponse
-
-
-
await client.crm.upsertDealLineItemAssociation({ dealExternalId: "deal_external_id", lineItemExternalId: "line_item_external_id", });
-
-
-
request:
Schematic.CreateCrmDealLineItemAssociationRequestBody
-
requestOptions:
Crm.RequestOptions
-
-
client.crm.upsertLineItem({ ...params }) -> Schematic.UpsertLineItemResponse
-
-
-
await client.crm.upsertLineItem({ amount: "amount", interval: "interval", lineItemExternalId: "line_item_external_id", productExternalId: "product_external_id", quantity: 1, });
-
-
-
request:
Schematic.CreateCrmLineItemRequestBody
-
requestOptions:
Crm.RequestOptions
-
-
client.crm.upsertCrmDeal({ ...params }) -> Schematic.UpsertCrmDealResponse
-
-
-
await client.crm.upsertCrmDeal({ crmCompanyKey: "crm_company_key", crmType: "crm_type", dealExternalId: "deal_external_id", });
-
-
-
request:
Schematic.CreateCrmDealRequestBody
-
requestOptions:
Crm.RequestOptions
-
-
client.crm.listCrmProducts({ ...params }) -> Schematic.ListCrmProductsResponse
-
-
-
await client.crm.listCrmProducts();
-
-
-
request:
Schematic.ListCrmProductsRequest
-
requestOptions:
Crm.RequestOptions
-
-
client.crm.upsertCrmProduct({ ...params }) -> Schematic.UpsertCrmProductResponse
-
-
-
await client.crm.upsertCrmProduct({ currency: "currency", description: "description", externalId: "external_id", interval: "interval", name: "name", price: "price", quantity: 1, sku: "sku", });
-
-
-
request:
Schematic.CreateCrmProductRequestBody
-
requestOptions:
Crm.RequestOptions
-
-
client.events.createEventBatch({ ...params }) -> Schematic.CreateEventBatchResponse
-
-
-
await client.events.createEventBatch({ events: [ { eventType: "identify", }, ], });
-
-
-
request:
Schematic.CreateEventBatchRequestBody
-
requestOptions:
Events.RequestOptions
-
-
client.events.getEventSummaries({ ...params }) -> Schematic.GetEventSummariesResponse
-
-
-
await client.events.getEventSummaries();
-
-
-
request:
Schematic.GetEventSummariesRequest
-
requestOptions:
Events.RequestOptions
-
-
client.events.listEvents({ ...params }) -> Schematic.ListEventsResponse
-
-
-
await client.events.listEvents();
-
-
-
request:
Schematic.ListEventsRequest
-
requestOptions:
Events.RequestOptions
-
-
client.events.createEvent({ ...params }) -> Schematic.CreateEventResponse
-
-
-
await client.events.createEvent({ eventType: "identify", });
-
-
-
request:
Schematic.CreateEventRequestBody
-
requestOptions:
Events.RequestOptions
-
-
client.events.getEvent(eventId) -> Schematic.GetEventResponse
-
-
-
await client.events.getEvent("event_id");
-
-
-
eventId:
string
— event_id
-
requestOptions:
Events.RequestOptions
-
-
client.events.getSegmentIntegrationStatus() -> Schematic.GetSegmentIntegrationStatusResponse
-
-
-
await client.events.getSegmentIntegrationStatus();
-
-
-
requestOptions:
Events.RequestOptions
-
-
client.plangroups.getPlanGroup() -> Schematic.GetPlanGroupResponse
-
-
-
await client.plangroups.getPlanGroup();
-
-
-
requestOptions:
Plangroups.RequestOptions
-
-
client.plangroups.createPlanGroup({ ...params }) -> Schematic.CreatePlanGroupResponse
-
-
-
await client.plangroups.createPlanGroup({ addOnIds: ["add_on_ids"], planIds: ["plan_ids"], });
-
-
-
request:
Schematic.CreatePlanGroupRequestBody
-
requestOptions:
Plangroups.RequestOptions
-
-
client.plangroups.updatePlanGroup(planGroupId, { ...params }) -> Schematic.UpdatePlanGroupResponse
-
-
-
await client.plangroups.updatePlanGroup("plan_group_id", { addOnIds: ["add_on_ids"], planIds: ["plan_ids"], });
-
-
-
planGroupId:
string
— plan_group_id
-
request:
Schematic.UpdatePlanGroupRequestBody
-
requestOptions:
Plangroups.RequestOptions
-
-
client.accesstokens.issueTemporaryAccessToken({ ...params }) -> Schematic.IssueTemporaryAccessTokenResponse
-
-
-
await client.accesstokens.issueTemporaryAccessToken({ lookup: { key: "value", }, resourceType: "resource_type", });
-
-
-
request:
Schematic.IssueTemporaryAccessTokenRequestBody
-
requestOptions:
Accesstokens.RequestOptions
-
-
client.webhooks.listWebhookEvents({ ...params }) -> Schematic.ListWebhookEventsResponse
-
-
-
await client.webhooks.listWebhookEvents();
-
-
-
request:
Schematic.ListWebhookEventsRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.getWebhookEvent(webhookEventId) -> Schematic.GetWebhookEventResponse
-
-
-
await client.webhooks.getWebhookEvent("webhook_event_id");
-
-
-
webhookEventId:
string
— webhook_event_id
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.countWebhookEvents({ ...params }) -> Schematic.CountWebhookEventsResponse
-
-
-
await client.webhooks.countWebhookEvents();
-
-
-
request:
Schematic.CountWebhookEventsRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.listWebhooks({ ...params }) -> Schematic.ListWebhooksResponse
-
-
-
await client.webhooks.listWebhooks();
-
-
-
request:
Schematic.ListWebhooksRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.createWebhook({ ...params }) -> Schematic.CreateWebhookResponse
-
-
-
await client.webhooks.createWebhook({ name: "name", requestTypes: ["company.updated"], url: "url", });
-
-
-
request:
Schematic.CreateWebhookRequestBody
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.getWebhook(webhookId) -> Schematic.GetWebhookResponse
-
-
-
await client.webhooks.getWebhook("webhook_id");
-
-
-
webhookId:
string
— webhook_id
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.updateWebhook(webhookId, { ...params }) -> Schematic.UpdateWebhookResponse
-
-
-
await client.webhooks.updateWebhook("webhook_id");
-
-
-
webhookId:
string
— webhook_id
-
request:
Schematic.UpdateWebhookRequestBody
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.deleteWebhook(webhookId) -> Schematic.DeleteWebhookResponse
-
-
-
await client.webhooks.deleteWebhook("webhook_id");
-
-
-
webhookId:
string
— webhook_id
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.countWebhooks({ ...params }) -> Schematic.CountWebhooksResponse
-
-
-
await client.webhooks.countWebhooks();
-
-
-
request:
Schematic.CountWebhooksRequest
-
requestOptions:
Webhooks.RequestOptions
-
-