Type aliases
ApiKeyProps
Api
Key
Props
: { accessToken
: string; description
?: string; environments
: { sys
: MetaLinkProps }[]; name
: string; policies
?: { action
: string; effect
: string }[]; preview_api_key
: { sys
: MetaLinkProps }; sys
: MetaSysProps }Type declaration
accessToken: string
Optional description?: string
name: string
Optional policies?: { action: string; effect: string }[]
AppActionCallProps
AppActionCallProps: { sys: AppActionCallSys }
AppActionParameterDefinition
AppActionProps
AppActionProps: AppActionCategoryProps & { name: string; sys: AppActionSys; url: string }
AppBundleFile
AppBundleFile: { md5: string; name: string; size: number }
Type declaration
md5: string
name: string
size: number
AppBundleProps
App
Bundle
Props
: { comment
?: string; files
: AppBundleFile[]; sys
: AppBundleSys }Type declaration
Optional comment?: string
sys: AppBundleSys
AppDetailsProps
App
Details
Props
: { icon
?: AppIcon; sys
: AppDetailsSys }Type declaration
Optional icon?: AppIcon
sys: AppDetailsSys
AppSignedRequestProps
AppSignedRequestProps: { additionalHeaders: { x-contentful-environment-id: string; x-contentful-signature: string; x-contentful-signed-headers: string; x-contentful-space-id: string; x-contentful-timestamp: string; x-contentful-user-id: string }; sys: AppSignedRequestSys }
Type declaration
additionalHeaders: { x-contentful-environment-id: string; x-contentful-signature: string; x-contentful-signed-headers: string; x-contentful-space-id: string; x-contentful-timestamp: string; x-contentful-user-id: string }
x-contentful-environment-id: string
x-contentful-signature: string
x-contentful-signed-headers: string
x-contentful-space-id: string
x-contentful-timestamp: string
x-contentful-user-id: string
sys: AppSignedRequestSys
AppSigningSecretProps
AppSigningSecretProps: { redactedValue: string; sys: AppSigningSecretSys }
Type declaration
redactedValue: string
sys: AppSigningSecretSys
AppUploadProps
App
Upload
Props
: { sys
: AppUploadSys & { expiresAt
: string; organization
: SysLink } }Type declaration
sys: AppUploadSys & { expiresAt: string; organization: SysLink }
AssetKeyProps
AssetKeyProps: { policy: string; secret: string }
Type declaration
policy: string
secret: string
AssetProps
Type declaration
fields: { description?: {}; file: {}; title: {} }
Optional description?: {}
file: {}
[key: string]: { contentType: string; details?: Record<string, any>; fileName: string; upload?: string; uploadFrom?: Record<string, any>; url?: string }
contentType: string
Optional details?: Record<string, any>
fileName: string
Optional upload?: string
Optional uploadFrom?: Record<string, any>
Optional url?: string
title: {}
BulkActionType
BulkActionType: "publish" | "unpublish" | "validate"
ClientAPI
ClientAPI: ReturnType<typeof createClientApi>
ClientParams
ClientParams: RestAdapterParams & UserAgentParams
CommentProps
CommentProps: { body: string; sys: CommentSysProps }
Type declaration
body: string
sys: CommentSysProps
ContentTypeMetadata
Content
Type
Metadata
: { annotations
?: RequireAtLeastOne<{ ContentType
?: Link<"Annotation">[]; ContentTypeField
?: Record<string, Link<"Annotation">[]> }, "ContentType" | "ContentTypeField"> }Type declaration
Optional annotations?: RequireAtLeastOne<{ ContentType?: Link<"Annotation">[]; ContentTypeField?: Record<string, Link<"Annotation">[]> }, "ContentType" | "ContentTypeField">
ContentTypeProps
Type declaration
description: string
displayField: string
name: string
sys: BasicMetaSysProps & { environment: SysLink; firstPublishedAt?: string; publishedCounter?: number; publishedVersion?: number; space: SysLink }
CreateApiKeyProps
Create
Api
Key
Props
: Pick<ApiKeyProps, "name" | "environments" | "description">CreateAppActionCallProps
CreateAppActionCallProps: { parameters: {} }
CreateAppActionProps
CreateAppActionProps: AppActionCategoryProps & { name: string; url: string }
CreateAppBundleProps
CreateAppBundleProps: { appUploadId: string; comment?: string }
Type declaration
appUploadId: string
Optional comment?: string
CreateAppDefinitionProps
Create
App
Definition
Props
: SetOptional<Except<AppDefinitionProps, "sys" | "bundle">, "src" | "locations">CreateAppDetailsProps
Create
App
Details
Props
: { icon
?: AppIcon }CreateAppInstallationProps
CreateAppSignedRequestProps
CreateAppSignedRequestProps: { body?: string; headers?: Record<string, string>; method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD"; path: string }
Type declaration
Optional body?: string
Optional headers?: Record<string, string>
method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD"
path: string
CreateAppSigningSecretProps
CreateAppSigningSecretProps: { value: string }
CreateAssetKeyProps
CreateAssetKeyProps: { expiresAt: number }
CreateContentTypeProps
Create
Content
Type
Props
: SetOptional<Except<ContentTypeProps, "sys">, "description" | "displayField">CreateEntryProps
Create
Entry
Props
<TFields>: Omit<EntryProps<TFields>, "sys">Type parameters
CreateEnvironmentAliasProps
CreateLocaleProps
Create
Locale
Props
: Omit<SetOptional<Except<LocaleProps, "sys">, "optional" | "contentManagementApi" | "default" | "contentDeliveryApi">, "internal_code">CreateOrganizationInvitationProps
CreatePersonalAccessTokenProps
CreateSpaceMembershipProps
CreateTagProps
Create
Tag
Props
: Omit<TagProps, "sys"> & { sys
: Pick<TagSysProps, "visibility"> }CreateTeamMembershipProps
CreateTeamSpaceMembershipProps
CreateUIExtensionProps
CreateUIExtension
Props
: { extension
: RequireExactlyOne<SetRequired<UIExtensionProps["extension"], "name" | "fieldTypes" | "sidebar">, "src" | "srcdoc"> }Type declaration
extension: RequireExactlyOne<SetRequired<UIExtensionProps["extension"], "name" | "fieldTypes" | "sidebar">, "src" | "srcdoc">
CreateWebhooksProps
Create
Webhooks
Props
: SetOptional<Except<WebhookProps, "sys">, "headers" | "active">CreateWorkflowDefinitionProps
Create
Workflow
Definition
Props
: Omit<WorkflowDefinitionProps, "sys" | "steps"> & { steps
: CreateWorkflowStepProps[] }CreateWorkflowProps
Create
Workflow
Props
: Omit<WorkflowProps, "sys"> & { entity
: Link<"Entry">; workflowDefinition
: Link<"WorkflowDefinition"> }DefinedParameters
DefinedParameters: Record<string, string | number | boolean>
EntryProps
Type parameters
EnvironmentProps
EnvironmentProps: { name: string; sys: EnvironmentMetaSys }
Type declaration
name: string
sys: EnvironmentMetaSys
FieldType
FieldType: { type: "Symbol" } | { type: "Text" } | { type: "RichText" } | { type: "Integer" } | { type: "Number" } | { type: "Date" } | { type: "Boolean" } | { type: "Object" } | { type: "Location" } | { linkType: "Asset"; type: "Link" } | { linkType: "Entry"; type: "Link" } | { items: { type: "Symbol" }; type: "Array" } | { items: { linkType: "Entry"; type: "Link" }; type: "Array" } | { items: { linkType: "Asset"; type: "Link" }; type: "Array" }
FreeFormParameters
FreeFormParameters: Record<string, any> | any[] | number | string | boolean
GetOrganizationMembershipProps
GetOrganizationParams
GetOrganizationParams: { organizationId: string }
GetSnapshotForContentTypeParams
GetSnapshotForEntryParams
GetSpaceEnvAliasParams
Get
Space
Env
Alias
Params
: GetSpaceParams & { environmentAliasId
: string }GetSpaceEnvironmentParams
GetSpaceEnvironmentParams: { environmentId: string; spaceId: string }
Type declaration
environmentId: string
spaceId: string
GetSpaceMembershipProps
Get
Space
Membership
Props
: GetSpaceParams & { spaceMembershipId
: string }GetSpaceParams
GetSpaceParams: { spaceId: string }
GetTeamMembershipParams
Get
Team
Membership
Params
: GetTeamParams & { teamMembershipId
: string }GetTeamParams
GetTeamParams: { organizationId: string; teamId: string }
Type declaration
organizationId: string
teamId: string
GetTeamSpaceMembershipParams
Get
Team
Space
Membership
Params
: GetSpaceParams & { teamSpaceMembershipId
: string }GetWorkflowDefinitionParams
ISO8601Timestamp
ISO8601Timestamp: string
KeyValueMap
KeyValueMap: Record<string, any>
LocaleProps
Locale
Props
: { code
: string; contentDeliveryApi
: boolean; contentManagementApi
: boolean; default
: boolean; fallbackCode
: string | null; internal_code
: string; name
: string; optional
: boolean; sys
: BasicMetaSysProps & { environment
: SysLink; space
: SysLink } }Type declaration
code: string
contentDeliveryApi: boolean
contentManagementApi: boolean
default: boolean
fallbackCode: string | null
internal_code: string
name: string
optional: boolean
OrganizationInvitationProps
Organization
Invitation
Props
: { email
: string; firstName
: string; lastName
: string; role
: string; sys
: MetaSysProps & { invitationUrl
: string; organizationMembership
: { sys
: MetaLinkProps }; status
: string; user
: Record<string, any> | null } }Type declaration
email: string
firstName: string
lastName: string
role: string
sys: MetaSysProps & { invitationUrl: string; organizationMembership: { sys: MetaLinkProps }; status: string; user: Record<string, any> | null }
OrganizationMembershipProps
Type declaration
role: string
status: boolean
PersonalAccessTokenProp
Personal
Access
Token
Prop
: { name
: string; revokedAt
: null | string; scopes
: "content_management_manage"[]; sys
: MetaSysProps; token
?: string }Type declaration
name: string
revokedAt: null | string
scopes: "content_management_manage"[]
Optional token?: string
PlainClientAPI
PlainClientAPI: { apiKey: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; appAction: { create: any; delete: any; get: any; getMany: any; update: any }; appActionCall: { create: any }; appBundle: { create: any; delete: any; get: any; getMany: any }; appDefinition: { create: any; delete: any; get: any; getMany: any; update: any }; appDetails: { delete: any; get: any; upsert: any }; appInstallation: { delete: any; get: any; getMany: any; upsert: any }; appSignedRequest: { create: any }; appSigningSecret: { delete: any; get: any; upsert: any }; appUpload: { create: any; delete: any; get: any }; asset: { archive: any; create: any; createFromFiles: any; createWithId: any; delete: any; get: any; getMany: any; processForAllLocales: any; processForLocale: any; publish: any; unarchive: any; unpublish: any; update: any }; assetKey: { create: any }; bulkAction: { get: any; publish: any; unpublish: any; validate: any }; comment: { create: any; delete: any; get: any; getMany: any; update: any }; contentType: { create: any; createWithId: any; delete: any; get: any; getMany: any; omitAndDeleteField: any; publish: any; unpublish: any; update: any }; editorInterface: { get: any; getMany: any; update: any }; entry: { archive: any; create: any; createWithId: any; delete: any; get: any; getMany: any; patch: any; publish: any; references: any; unarchive: any; unpublish: any; update: any }; environment: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; environmentAlias: { createWithId: any; delete: any; get: any; getMany: any; update: any }; extension: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; locale: { create: any; delete: any; get: any; getMany: any; update: any }; organization: { get: any; getAll: any }; organizationInvitation: { create: any; get: any }; organizationMembership: { delete: any; get: any; getMany: any; update: any }; personalAccessToken: { create: any; get: any; getMany: any; revoke: any }; previewApiKey: { get: any; getMany: any }; raw: { delete: any; get: any; getDefaultParams: any; http: any; patch: any; post: any; put: any }; release: { archive: any; create: any; delete: any; get: any; publish: any; query: any; unarchive: any; unpublish: any; update: any; validate: any }; releaseAction: { get: any; getMany: any; queryForRelease: any }; role: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; scheduledActions: { create: any; delete: any; get: any; getMany: any; update: any }; snapshot: { getForContentType: any; getForEntry: any; getManyForContentType: any; getManyForEntry: any }; space: { create: any; delete: any; get: any; getMany: any; update: any }; spaceMember: { get: any; getMany: any }; spaceMembership: { create: any; createWithId: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }; tag: { createWithId: any; delete: any; get: any; getMany: any; update: any }; task: { create: any; delete: any; get: any; getMany: any; update: any }; team: { create: any; delete: any; get: any; getMany: any; getManyForSpace: any; update: any }; teamMembership: { create: any; delete: any; get: any; getManyForOrganization: any; getManyForTeam: any; update: any }; teamSpaceMembership: { create: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }; upload: { create: any; delete: any; get: any }; usage: { getManyForOrganization: any; getManyForSpace: any }; user: { getCurrent: any; getForOrganization: any; getForSpace: any; getManyForOrganization: any; getManyForSpace: any }; webhook: { create: any; delete: any; get: any; getCallDetails: any; getHealthStatus: any; getMany: any; getManyCallDetails: any; update: any } }
Type declaration
apiKey: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
createWithId:function
Parameters
params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>
Optional headers: AxiosRequestHeaders
delete:function
- delete(params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>): Promise<any>
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>
Optional headers: AxiosRequestHeaders
appAction: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
delete:function
Parameters
Returns Promise<void>
get:function
getMany:function
update:function
appActionCall: { create: any }
appBundle: { create: any; delete: any; get: any; getMany: any }
create:function
delete:function
Parameters
Returns Promise<void>
get:function
getMany:function
appDefinition: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
appDetails: { delete: any; get: any; upsert: any }
delete:function
Parameters
Returns Promise<void>
get:function
upsert:function
appInstallation: { delete: any; get: any; getMany: any; upsert: any }
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
upsert:function
Parameters
Optional headers: AxiosRequestHeaders
appSignedRequest: { create: any }
appSigningSecret: { delete: any; get: any; upsert: any }
delete:function
Parameters
Returns Promise<void>
get:function
upsert:function
appUpload: { create: any; delete: any; get: any }
create:function
Parameters
payload: { file: string | ArrayBuffer | Stream }
file: string | ArrayBuffer | Stream
delete:function
Parameters
Returns Promise<void>
get:function
asset: { archive: any; create: any; createFromFiles: any; createWithId: any; delete: any; get: any; getMany: any; processForAllLocales: any; processForLocale: any; publish: any; unarchive: any; unpublish: any; update: any }
archive:function
create:function
createFromFiles:function
createWithId:function
delete:function
Parameters
Returns Promise<any>
get:function
Parameters
Optional rawData: unknown
Optional headers: AxiosRequestHeaders
getMany:function
processForAllLocales:function
Parameters
Optional processingOptions: AssetProcessingForLocale
processForLocale:function
Parameters
locale: string
Optional processingOptions: AssetProcessingForLocale
publish:function
unarchive:function
unpublish:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
assetKey: { create: any }
bulkAction: { get: any; publish: any; unpublish: any; validate: any }
get:function
Type parameters
Parameters
publish:function
unpublish:function
validate:function
comment: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
- delete(params: OptionalDefaults<DeleteCommentParams>): Promise<void>
Parameters
params: OptionalDefaults<DeleteCommentParams>
Returns Promise<void>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
contentType: { create: any; createWithId: any; delete: any; get: any; getMany: any; omitAndDeleteField: any; publish: any; unpublish: any; update: any }
create:function
Parameters
rawData: Simplify<Except<Except<ContentTypeProps, "sys">, "description" | "displayField"> & Partial<Pick<Except<ContentTypeProps, "sys">, "description" | "displayField">>>
createWithId:function
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
omitAndDeleteField:function
publish:function
unpublish:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
editorInterface: { get: any; getMany: any; update: any }
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
entry: { archive: any; create: any; createWithId: any; delete: any; get: any; getMany: any; patch: any; publish: any; references: any; unarchive: any; unpublish: any; update: any }
archive:function
Type parameters
Parameters
create:function
Type parameters
Parameters
createWithId:function
Type parameters
Parameters
delete:function
Parameters
Returns Promise<any>
get:function
Type parameters
Parameters
Optional rawData: unknown
Optional headers: AxiosRequestHeaders
getMany:function
Type parameters
Parameters
patch:function
Type parameters
Parameters
rawData: OpPatch[]
Optional headers: AxiosRequestHeaders
publish:function
Type parameters
Parameters
references:function
- references(params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; include?: number }>): Promise<EntryReferenceProps>
Parameters
Returns Promise<EntryReferenceProps>
unarchive:function
Type parameters
Parameters
unpublish:function
Type parameters
Parameters
update:function
Type parameters
Parameters
Optional headers: AxiosRequestHeaders
environment: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
createWithId:function
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
environmentAlias: { createWithId: any; delete: any; get: any; getMany: any; update: any }
createWithId:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
extension: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
createWithId:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
locale: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
organization: { get: any; getAll: any }
get:function
getAll:function
organizationInvitation: { create: any; get: any }
create:function
Parameters
params: OptionalDefaults<{ organizationId: string }>
Optional headers: AxiosRequestHeaders
get:function
- get(params: OptionalDefaults<{ invitationId: string; organizationId: string }>, headers?: AxiosRequestHeaders): Promise<OrganizationInvitationProps>
Parameters
params: OptionalDefaults<{ invitationId: string; organizationId: string }>
Optional headers: AxiosRequestHeaders
organizationMembership: { delete: any; get: any; getMany: any; update: any }
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
personalAccessToken: { create: any; get: any; getMany: any; revoke: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
get:function
Parameters
params: OptionalDefaults<{ tokenId: string }>
getMany:function
revoke:function
Parameters
params: OptionalDefaults<{ tokenId: string }>
previewApiKey: { get: any; getMany: any }
get:function
Parameters
params: OptionalDefaults<GetSpaceParams & { previewApiKeyId: string }>
getMany:function
raw: { delete: any; get: any; getDefaultParams: any; http: any; patch: any; post: any; put: any }
delete:function
- delete<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
get:function
- get<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
getDefaultParams:function
- getDefaultParams(): undefined | DefaultParams
Returns undefined | DefaultParams
http:function
- http<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
patch:function
- patch<T>(url: string, payload?: any, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional payload: any
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
post:function
- post<T>(url: string, payload?: any, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional payload: any
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
put:function
- put<T>(url: string, payload?: any, config?: AxiosRequestConfig<any>): Promise<T>
Type parameters
Parameters
url: string
Optional payload: any
Optional config: AxiosRequestConfig<any>
Returns Promise<T>
release: { archive: any; create: any; delete: any; get: any; publish: any; query: any; unarchive: any; unpublish: any; update: any; validate: any }
archive:function
create:function
delete:function
Parameters
Returns Promise<void>
get:function
publish:function
query:function
unarchive:function
unpublish:function
update:function
validate:function
Parameters
Optional data: ReleaseValidatePayload
releaseAction: { get: any; getMany: any; queryForRelease: any }
get:function
- get(params: Omit<GetReleaseParams, keyof DefaultParams> & Record<string, unknown> & { spaceId?: string } & { environmentId?: string } & { actionId: string }): Promise<ReleaseActionProps<any>>
Parameters
params: Omit<GetReleaseParams, keyof DefaultParams> & Record<string, unknown> & { spaceId?: string } & { environmentId?: string } & { actionId: string }
getMany:function
queryForRelease:function
role: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
createWithId:function
Parameters
params: OptionalDefaults<GetSpaceParams & { roleId: string }>
Optional headers: AxiosRequestHeaders
delete:function
- delete(params: OptionalDefaults<GetSpaceParams & { roleId: string }>): Promise<any>
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
params: OptionalDefaults<GetSpaceParams & { roleId: string }>
Optional headers: AxiosRequestHeaders
scheduledActions: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
data: CreateUpdateScheduledActionProps
delete:function
get:function
- get(params: Omit<GetSpaceParams, keyof DefaultParams> & Record<string, unknown> & { spaceId?: string } & { environmentId: string; scheduledActionId: string }): Promise<ScheduledActionProps>
Parameters
params: Omit<GetSpaceParams, keyof DefaultParams> & Record<string, unknown> & { spaceId?: string } & { environmentId: string; scheduledActionId: string }
getMany:function
update:function
Parameters
params: OptionalDefaults<GetSpaceParams & { scheduledActionId: string; version: number }>
data: CreateUpdateScheduledActionProps
snapshot: { getForContentType: any; getForEntry: any; getManyForContentType: any; getManyForEntry: any }
getForContentType:function
getForEntry:function
Type parameters
Parameters
getManyForContentType:function
getManyForEntry:function
Type parameters
Parameters
space: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
- create(params: OptionalDefaults<{ organizationId?: string }>, payload: Omit<SpaceProps, "sys">, headers?: AxiosRequestHeaders): Promise<any>
Parameters
params: OptionalDefaults<{ organizationId?: string }>
payload: Omit<SpaceProps, "sys">
Optional headers: AxiosRequestHeaders
Returns Promise<any>
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
spaceMember: { get: any; getMany: any }
get:function
getMany:function
spaceMembership: { create: any; createWithId: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
createWithId:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getForOrganization:function
getMany:function
getManyForOrganization:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
tag: { createWithId: any; delete: any; get: any; getMany: any; update: any }
createWithId:function
delete:function
- delete(params: OptionalDefaults<GetTagParams>, version: number): Promise<any>
Parameters
Returns Promise<any>
get:function
getMany:function
update:function
- update(params: OptionalDefaults<GetTagParams>, rawData: UpdateTagProps, headers?: AxiosRequestHeaders): Promise<TagProps>
Parameters
params: OptionalDefaults<GetTagParams>
rawData: UpdateTagProps
Optional headers: AxiosRequestHeaders
Returns Promise<TagProps>
task: { create: any; delete: any; get: any; getMany: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
- delete(params: OptionalDefaults<DeleteTaskParams>): Promise<void>
Parameters
params: OptionalDefaults<DeleteTaskParams>
Returns Promise<void>
get:function
getMany:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
team: { create: any; delete: any; get: any; getMany: any; getManyForSpace: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
Returns Promise<any>
delete:function
Parameters
Returns Promise<any>
get:function
getMany:function
getManyForSpace:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
teamMembership: { create: any; delete: any; get: any; getManyForOrganization: any; getManyForTeam: any; update: any }
create:function
Parameters
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getManyForOrganization:function
getManyForTeam:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
teamSpaceMembership: { create: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }
create:function
Parameters
params: OptionalDefaults<GetSpaceParams & { teamId: string }>
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getForOrganization:function
getMany:function
getManyForOrganization:function
update:function
Parameters
Optional headers: AxiosRequestHeaders
upload: { create: any; delete: any; get: any }
create:function
- create(params: OptionalDefaults<GetSpaceParams>, data: { file: string | ArrayBuffer | Stream }): Promise<any>
Parameters
data: { file: string | ArrayBuffer | Stream }
file: string | ArrayBuffer | Stream
Returns Promise<any>
delete:function
- delete(params: OptionalDefaults<GetSpaceParams & { uploadId: string }>): Promise<any>
Parameters
Returns Promise<any>
get:function
- get(params: OptionalDefaults<GetSpaceParams & { uploadId: string }>): Promise<any>
Parameters
Returns Promise<any>
usage: { getManyForOrganization: any; getManyForSpace: any }
getManyForOrganization:function
Parameters
params: OptionalDefaults<{ organizationId: string } & QueryParams>
getManyForSpace:function
Parameters
params: OptionalDefaults<{ organizationId: string } & QueryParams>
user: { getCurrent: any; getForOrganization: any; getForSpace: any; getManyForOrganization: any; getManyForSpace: any }
getCurrent:function
Type parameters
Parameters
Returns Promise<T>
getForOrganization:function
getForSpace:function
getManyForOrganization:function
getManyForSpace:function
webhook: { create: any; delete: any; get: any; getCallDetails: any; getHealthStatus: any; getMany: any; getManyCallDetails: any; update: any }
create:function
Parameters
rawData: Simplify<Except<Except<WebhookProps, "sys">, "headers" | "active"> & Partial<Pick<Except<WebhookProps, "sys">, "headers" | "active">>>
Optional headers: AxiosRequestHeaders
delete:function
Parameters
Returns Promise<any>
get:function
getCallDetails:function
Parameters
Returns Promise<WebhookCallDetailsProps>
getHealthStatus:function
- getHealthStatus(params: OptionalDefaults<GetWebhookParams>): Promise<WebhookHealthProps>
Parameters
Returns Promise<WebhookHealthProps>
getMany:function
getManyCallDetails:function
Parameters
Returns Promise<CollectionProp<Except<WebhookCallDetailsProps, "request" | "response">>>
update:function
Parameters
rawData: Simplify<Except<Except<WebhookProps, "sys">, "headers" | "active"> & Partial<Pick<Except<WebhookProps, "sys">, "headers" | "active">>>
PlainClientDefaultParams
PlainClientDefaultParams: DefaultParams
PreviewApiKeyProps
Preview
Api
Key
Props
: { accessToken
: string; description
: string; name
: string; sys
: MetaSysProps }Type declaration
accessToken: string
description: string
name: string
ReleaseActionSysProps
Release
Action
Sys
Props
: { createdAt
: ISO8601Timestamp; createdBy
: Link<"User">; environment
: Link<"Environment">; id
: string; release
: Link<"Release">; space
: Link<"Space">; status
: ReleaseActionStatuses; type
: "ReleaseAction"; updatedAt
: ISO8601Timestamp }Type declaration
createdBy: Link<"User">
environment: Link<"Environment">
id: string
release: Link<"Release">
space: Link<"Space">
status: ReleaseActionStatuses
type: "ReleaseAction"
ReleaseActionTypes
ReleaseActionTypes: "publish" | "unpublish" | "validate"
ReleaseSysProps
Type declaration
Optional archivedBy?: Link<"User">
createdBy: Link<"User"> | Link<"AppDefinition">
environment: Link<"Environment">
id: string
Optional lastAction?: Link<"ReleaseAction">
space: Link<"Space">
status: ReleaseStatus
type: "Release"
updatedBy: Link<"User"> | Link<"AppDefinition">
version: number
RoleProps
Role
Props
: { description
?: string; name
: string; permissions
: { ContentDelivery
: string[] | string; ContentModel
: string[]; EnvironmentAliases
: string[] | string; Environments
: string[] | string; Settings
: string[] | string; Tags
: string[] | string }; policies
: { actions
: ActionType[] | "all"; constraint
: ConstraintType; effect
: string }[]; sys
: BasicMetaSysProps & { space
: SysLink } }Type declaration
Optional description?: string
name: string
permissions: { ContentDelivery: string[] | string; ContentModel: string[]; EnvironmentAliases: string[] | string; Environments: string[] | string; Settings: string[] | string; Tags: string[] | string }
ContentDelivery: string[] | string
ContentModel: string[]
EnvironmentAliases: string[] | string
Environments: string[] | string
Settings: string[] | string
Tags: string[] | string
policies: { actions: ActionType[] | "all"; constraint: ConstraintType; effect: string }[]
ScheduledActionProps
Type declaration
action: SchedulableActionType
entity: Link<SchedulableEntityType>
Optional environment?: { sys: MetaLinkProps }
Optional error?: ScheduledActionFailedError
scheduledFor: { datetime: ISO8601Timestamp; timezone?: string }
Optional timezone?: string
ScheduledActionSysProps
Type declaration
Optional canceledBy?: Link<"User"> | Link<"AppDefinition">
createdBy: Link<"User"> | Link<"AppDefinition">
id: string
status: ScheduledActionStatus
type: "ScheduledAction"
updatedBy: Link<"User"> | Link<"AppDefinition">
version: number
SnapshotProps
Snapshot
Props
<T>: { snapshot
: T; sys
: MetaSysProps & { snapshotEntityType
: string; snapshotType
: string } }Type parameters
Type declaration
snapshot: T
sys: MetaSysProps & { snapshotEntityType: string; snapshotType: string }
SpaceProps
Space
Props
: { name
: string; sys
: BasicMetaSysProps & { organization
: { sys
: { id
: string } } } }TagProps
TagProps: { name: string; sys: TagSysProps }
Type declaration
name: string
sys: TagSysProps
TagVisibility
TagVisibility: "private" | "public"
TaskProps
Task
Props
: { assignedTo
: Link<"User" | "Team">; body
: string; dueDate
?: string; status
: TaskStatus; sys
: TaskSysProps }Type declaration
assignedTo: Link<"User" | "Team">
body: string
Optional dueDate?: string
status: TaskStatus
sys: TaskSysProps
TeamMembershipProps
Type declaration
admin: boolean
organizationMembershipId: string
TeamProps
Team
Props
: { description
: string; name
: string; sys
: MetaSysProps & { memberCount
: number; organization
: { sys
: MetaLinkProps } } }UIExtensionProps
Type declaration
extension: { fieldTypes: FieldType[]; name: string; parameters?: { installation?: ParameterDefinition[]; instance?: ParameterDefinition[] }; sidebar?: boolean; src?: string; srcdoc?: string }
name: string
Optional sidebar?: boolean
Optional src?: string
Optional srcdoc?: string
sys: ExtensionSysProps
UpdateCommentProps
Update
Comment
Props
: Omit<CommentProps, "sys"> & { sys
: Pick<CommentSysProps, "version"> }UpdateTaskProps
Update
Task
Props
: Omit<TaskProps, "sys"> & { sys
: Pick<TaskSysProps, "version"> }UpdateWebhookProps
Update
Webhook
Props
: SetOptional<Except<WebhookProps, "sys">, "headers" | "name" | "topics" | "url" | "active">UpdateWorkflowDefinitionProps
Update
Workflow
Definition
Props
: Omit<WorkflowDefinitionProps, "sys" | "steps"> & { steps
: (CreateWorkflowStepProps | UpdateWorkflowStepProps)[]; sys
: Pick<WorkflowDefinitionSysProps, "version"> }UpdateWorkflowProps
Update
Workflow
Props
: Omit<WorkflowProps, "sys"> & { sys
: Pick<WorkflowSysProps, "version"> }UsageProps
Usage
Props
: { dateRange
: { endAt
: string; startAt
: string }; metric
: UsageMetricEnum; sys
: MetaSysProps & { organization
?: { sys
: MetaLinkProps } }; unitOfMeasure
: string; usage
: number; usagePerDay
: {} }Type declaration
dateRange: { endAt: string; startAt: string }
endAt: string
startAt: string
metric: UsageMetricEnum
unitOfMeasure: string
usage: number
usagePerDay: {}
UserProps
User
Props
: { 2faEnabled
: boolean; activated
: boolean; avatarUrl
: string; confirmed
: boolean; cookieConsentData
: string; email
: string; firstName
: string; lastName
: string; signInCount
: number; sys
: BasicMetaSysProps }Type declaration
2faEnabled: boolean
activated: boolean
avatarUrl: string
confirmed: boolean
cookieConsentData: string
email: string
firstName: string
lastName: string
signInCount: number
WebhookCallRequest
WebhookCallRequest: { body: string; headers: {}; method: string; url: string }
Type declaration
body: string
headers: {}
method: string
url: string
WebhookFilter
WebhookFilter: EqualityConstraint | InConstraint | RegexpConstraint | NotConstraint
WebhookProps
Type declaration
active: boolean
headers: WebhookHeader[]
Optional httpBasicPassword?: string
Optional httpBasicUsername?: string
name: string
topics: string[]
url: string
WebhookTransformation
WebhookTransformation: { body?: JsonValue; contentType?: null | "application/vnd.contentful.management.v1+json" | "application/vnd.contentful.management.v1+json; charset=utf-8" | "application/json" | "application/json; charset=utf-8" | "application/x-www-form-urlencoded" | "application/x-www-form-urlencoded; charset=utf-8"; includeContentLength?: boolean | null; method?: null | "POST" | "GET" | "PUT" | "PATCH" | "DELETE" }
Type declaration
Optional body?: JsonValue
Optional contentType?: null | "application/vnd.contentful.management.v1+json" | "application/vnd.contentful.management.v1+json; charset=utf-8" | "application/json" | "application/json; charset=utf-8" | "application/x-www-form-urlencoded" | "application/x-www-form-urlencoded; charset=utf-8"
Optional includeContentLength?: boolean | null
Optional method?: null | "POST" | "GET" | "PUT" | "PATCH" | "DELETE"
WorkflowDefinitionProps
WorkflowDefinitionProps: { appliesTo?: WorkflowDefinitionValidationLink[]; description?: string; name: string; steps: WorkflowStepProps[]; sys: WorkflowDefinitionSysProps }
Type declaration
Optional appliesTo?: WorkflowDefinitionValidationLink[]
Optional description?: string
name: string
steps: WorkflowStepProps[]
sys: WorkflowDefinitionSysProps
WorkflowDefinitionQueryOptions
WorkflowProps
WorkflowProps: { stepId?: string; sys: WorkflowSysProps }
Type declaration
Optional stepId?: string
sys: WorkflowSysProps
WorkflowQueryOptions
Workflow
Query
Options
: Omit<PaginationQueryOptions, "order"> & { stepId[in]
?: string; sys.entity.sys.id[in]
?: string; sys.entity.sys.linkType
?: string; sys.workflowDefinition.sys.id
?: string }WorkflowsChangelogEntryProps
Workflows
Changelog
Entry
Props
: { entity
: Link<"Entry">; event
: string; eventAt
: string; eventBy
: SysLink; stepAnnotations
: string[]; stepId
: string; stepName
: string; workflow
: Link<"Workflow">; workflowDefinition
: Link<"WorkflowDefinition"> }Type declaration
entity: Link<"Entry">
event: string
eventAt: string
stepAnnotations: string[]
stepId: string
stepName: string
workflow: Link<"Workflow">
workflowDefinition: Link<"WorkflowDefinition">
WorkflowsChangelogQueryOptions
Workflows
Changelog
Query
Options
: Omit<PaginationQueryOptions, "order"> & { entity.sys.id
: string; entity.sys.linkType
: string; workflow.sys.id
: string }
Contentful Management API SDK. Allows you to create instances of a client with access to the Contentful Content Management API.