cloudflare
Version:
The official TypeScript library for the Cloudflare API
63 lines • 3.35 kB
TypeScript
import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import * as AuditLogsAPI from "./audit-logs.js";
import { AuditLogListParams, AuditLogs } from "./audit-logs.js";
import * as InvitesAPI from "./invites.js";
import { Invite, InviteEditParams, Invites, InvitesSinglePage } from "./invites.js";
import * as OrganizationsAPI from "./organizations.js";
import { Organization, OrganizationDeleteResponse, OrganizationGetResponse, OrganizationListParams, Organizations, OrganizationsV4PagePaginationArray } from "./organizations.js";
import * as SubscriptionsAPI from "./subscriptions.js";
import { SubscriptionDeleteResponse, SubscriptionUpdateParams, SubscriptionUpdateResponse, Subscriptions } from "./subscriptions.js";
import * as BillingAPI from "./billing/billing.js";
import { Billing } from "./billing/billing.js";
import * as TokensAPI from "./tokens/tokens.js";
import { TokenCreateParams, TokenCreateResponse, TokenDeleteResponse, TokenListParams, TokenUpdateParams, TokenVerifyResponse, Tokens } from "./tokens/tokens.js";
export declare class User extends APIResource {
auditLogs: AuditLogsAPI.AuditLogs;
billing: BillingAPI.Billing;
invites: InvitesAPI.Invites;
organizations: OrganizationsAPI.Organizations;
subscriptions: SubscriptionsAPI.Subscriptions;
tokens: TokensAPI.Tokens;
/**
* Edit part of your user details.
*/
edit(body: UserEditParams, options?: Core.RequestOptions): Core.APIPromise<UserEditResponse>;
/**
* User Details
*/
get(options?: Core.RequestOptions): Core.APIPromise<UserGetResponse>;
}
export type UserEditResponse = unknown;
export type UserGetResponse = unknown;
export interface UserEditParams {
/**
* The country in which the user lives.
*/
country?: string | null;
/**
* User's first name
*/
first_name?: string | null;
/**
* User's last name
*/
last_name?: string | null;
/**
* User's telephone number
*/
telephone?: string | null;
/**
* The zipcode or postal code where the user lives.
*/
zipcode?: string | null;
}
export declare namespace User {
export { AuditLogs as AuditLogs, type AuditLogListParams as AuditLogListParams };
export { Billing as Billing };
export { Invites as Invites, type Invite as Invite, InvitesSinglePage as InvitesSinglePage, type InviteEditParams as InviteEditParams, };
export { Organizations as Organizations, type Organization as Organization, type OrganizationDeleteResponse as OrganizationDeleteResponse, type OrganizationGetResponse as OrganizationGetResponse, OrganizationsV4PagePaginationArray as OrganizationsV4PagePaginationArray, type OrganizationListParams as OrganizationListParams, };
export { Subscriptions as Subscriptions, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionUpdateParams as SubscriptionUpdateParams, };
export { Tokens as Tokens, type TokenCreateResponse as TokenCreateResponse, type TokenDeleteResponse as TokenDeleteResponse, type TokenVerifyResponse as TokenVerifyResponse, type TokenCreateParams as TokenCreateParams, type TokenUpdateParams as TokenUpdateParams, type TokenListParams as TokenListParams, };
}
//# sourceMappingURL=user.d.ts.map