LibraryResource
A reusable resource in the workspace's content library that can be linked into accords; its content is versioned through library_resource_version.
type LibraryResource implements Node {
nodeId: ID!
id: String!
workspaceId: String
version: Int!
updatedAt: Datetime!
createdAt: Datetime!
createdByWorkspaceAccountId: String
deletedAt: Datetime
libraryName: String!
approvedAt: Datetime
approvedByWorkspaceAccountId: String
searchVector: FullText
ownerWorkspaceAccountId: String
expirationDate: Date
remoteSyncedAt: Datetime
allDomains: Boolean!
workspace: Workspace
createdByWorkspaceAccount: WorkspaceAccount
approvedByWorkspaceAccount: WorkspaceAccount
ownerWorkspaceAccount: WorkspaceAccount
hubLibraryResourcesConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [HubLibraryResourcesOrderBy!] = [PRIMARY_KEY_ASC]
condition: HubLibraryResourceCondition
filter: HubLibraryResourceFilter
): HubLibraryResourcesConnection!
hubLibraryResources(
first: Int
offset: Int
orderBy: [HubLibraryResourcesOrderBy!]
condition: HubLibraryResourceCondition
filter: HubLibraryResourceFilter
): [HubLibraryResource!]!
libraryResourceTagsConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [LibraryResourceTagsOrderBy!] = [PRIMARY_KEY_ASC]
condition: LibraryResourceTagCondition
filter: LibraryResourceTagFilter
): LibraryResourceTagsConnection!
libraryResourceTags(
first: Int
offset: Int
orderBy: [LibraryResourceTagsOrderBy!]
condition: LibraryResourceTagCondition
filter: LibraryResourceTagFilter
): [LibraryResourceTag!]!
libraryResourceVersionsConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [LibraryResourceVersionsOrderBy!] = [PRIMARY_KEY_ASC]
condition: LibraryResourceVersionCondition
filter: LibraryResourceVersionFilter
): LibraryResourceVersionsConnection!
libraryResourceVersions(
first: Int
offset: Int
orderBy: [LibraryResourceVersionsOrderBy!]
condition: LibraryResourceVersionCondition
filter: LibraryResourceVersionFilter
): [LibraryResourceVersion!]!
libraryResourceVersionsByParentFolderIdConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [LibraryResourceVersionsOrderBy!] = [PRIMARY_KEY_ASC]
condition: LibraryResourceVersionCondition
filter: LibraryResourceVersionFilter
): LibraryResourceVersionsConnection!
libraryResourceVersionsByParentFolderId(
first: Int
offset: Int
orderBy: [LibraryResourceVersionsOrderBy!]
condition: LibraryResourceVersionCondition
filter: LibraryResourceVersionFilter
): [LibraryResourceVersion!]!
resourceEntitlementsConnection(
first: Int
last: Int
offset: Int
before: Cursor
after: Cursor
orderBy: [ResourceEntitlementsOrderBy!] = [PRIMARY_KEY_ASC]
condition: ResourceEntitlementCondition
filter: ResourceEntitlementFilter
): ResourceEntitlementsConnection!
resourceEntitlements(
first: Int
offset: Int
orderBy: [ResourceEntitlementsOrderBy!]
condition: ResourceEntitlementCondition
filter: ResourceEntitlementFilter
): [ResourceEntitlement!]!
highlight(
searchQuery: String
): String
searchVectorRank: Float
timesUsed: BigFloat
}
Fields
LibraryResource.nodeId ● ID! non-null scalar
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
LibraryResource.id ● String! non-null scalar
LibraryResource.workspaceId ● String scalar
LibraryResource.version ● Int! non-null scalar
LibraryResource.updatedAt ● Datetime! non-null scalar
LibraryResource.createdAt ● Datetime! non-null scalar
LibraryResource.createdByWorkspaceAccountId ● String scalar
LibraryResource.deletedAt ● Datetime scalar
LibraryResource.libraryName ● String! non-null scalar
Display name of the resource within the content library. Seller-side bookkeeping: customer sessions that are not partners read an empty string.
LibraryResource.approvedAt ● Datetime scalar
When the library resource was approved for use; null while unapproved or pending. Customer sessions that are not partners also read null, so null alone does not mean unapproved.
LibraryResource.approvedByWorkspaceAccountId ● String scalar
LibraryResource.searchVector ● FullText scalar
LibraryResource.ownerWorkspaceAccountId ● String scalar
The member who owns and maintains this library resource. Customer sessions that are not partners read null.
LibraryResource.expirationDate ● Date scalar
Author-set expiry, surfaced as a display-only badge (expiring soon / expiring / expired). Nothing in the application gates on it — an expired resource stays readable and linkable. Every customer session reads null, partners included.
LibraryResource.remoteSyncedAt ● Datetime scalar
For a resource synced from an external source, when it was last synced.
LibraryResource.allDomains ● Boolean! non-null scalar
Partner scoping for this library resource: true opens it to every partner domain, false leaves access to its resource_entitlement domain rows. Scoping it hides it from customers who are not partners; with neither it is visible to every customer.
LibraryResource.workspace ● Workspace object
Reads a single Workspace that is related to this LibraryResource.
LibraryResource.createdByWorkspaceAccount ● WorkspaceAccount object
Reads a single WorkspaceAccount that is related to this LibraryResource.
LibraryResource.approvedByWorkspaceAccount ● WorkspaceAccount object
Reads a single WorkspaceAccount that is related to this LibraryResource.
LibraryResource.ownerWorkspaceAccount ● WorkspaceAccount object
Reads a single WorkspaceAccount that is related to this LibraryResource.
LibraryResource.hubLibraryResourcesConnection ● HubLibraryResourcesConnection! non-null object
Reads and enables pagination through a set of HubLibraryResource.
LibraryResource.hubLibraryResourcesConnection.first ● Int scalar
Only read the first n values of the set.
LibraryResource.hubLibraryResourcesConnection.last ● Int scalar
Only read the last n values of the set.
LibraryResource.hubLibraryResourcesConnection.offset ● Int scalar
Skip the first n values from our after cursor, an alternative to cursor
based pagination. May not be used with last.
LibraryResource.hubLibraryResourcesConnection.before ● Cursor scalar
Read all values in the set before (above) this cursor.
LibraryResource.hubLibraryResourcesConnection.after ● Cursor scalar
Read all values in the set after (below) this cursor.
LibraryResource.hubLibraryResourcesConnection.orderBy ● [HubLibraryResourcesOrderBy!] list enum
The method to use when ordering HubLibraryResource.
LibraryResource.hubLibraryResourcesConnection.condition ● HubLibraryResourceCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.hubLibraryResourcesConnection.filter ● HubLibraryResourceFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.hubLibraryResources ● [HubLibraryResource!]! non-null object
Reads and enables pagination through a set of HubLibraryResource.
LibraryResource.hubLibraryResources.first ● Int scalar
Only read the first n values of the set.
LibraryResource.hubLibraryResources.offset ● Int scalar
Skip the first n values.
LibraryResource.hubLibraryResources.orderBy ● [HubLibraryResourcesOrderBy!] list enum
The method to use when ordering HubLibraryResource.
LibraryResource.hubLibraryResources.condition ● HubLibraryResourceCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.hubLibraryResources.filter ● HubLibraryResourceFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceTagsConnection ● LibraryResourceTagsConnection! non-null object
Reads and enables pagination through a set of LibraryResourceTag.
LibraryResource.libraryResourceTagsConnection.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceTagsConnection.last ● Int scalar
Only read the last n values of the set.
LibraryResource.libraryResourceTagsConnection.offset ● Int scalar
Skip the first n values from our after cursor, an alternative to cursor
based pagination. May not be used with last.
LibraryResource.libraryResourceTagsConnection.before ● Cursor scalar
Read all values in the set before (above) this cursor.
LibraryResource.libraryResourceTagsConnection.after ● Cursor scalar
Read all values in the set after (below) this cursor.
LibraryResource.libraryResourceTagsConnection.orderBy ● [LibraryResourceTagsOrderBy!] list enum
The method to use when ordering LibraryResourceTag.
LibraryResource.libraryResourceTagsConnection.condition ● LibraryResourceTagCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceTagsConnection.filter ● LibraryResourceTagFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceTags ● [LibraryResourceTag!]! non-null object
Reads and enables pagination through a set of LibraryResourceTag.
LibraryResource.libraryResourceTags.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceTags.offset ● Int scalar
Skip the first n values.
LibraryResource.libraryResourceTags.orderBy ● [LibraryResourceTagsOrderBy!] list enum
The method to use when ordering LibraryResourceTag.
LibraryResource.libraryResourceTags.condition ● LibraryResourceTagCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceTags.filter ● LibraryResourceTagFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsConnection ● LibraryResourceVersionsConnection! non-null object
Reads and enables pagination through a set of LibraryResourceVersion.
LibraryResource.libraryResourceVersionsConnection.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceVersionsConnection.last ● Int scalar
Only read the last n values of the set.
LibraryResource.libraryResourceVersionsConnection.offset ● Int scalar
Skip the first n values from our after cursor, an alternative to cursor
based pagination. May not be used with last.
LibraryResource.libraryResourceVersionsConnection.before ● Cursor scalar
Read all values in the set before (above) this cursor.
LibraryResource.libraryResourceVersionsConnection.after ● Cursor scalar
Read all values in the set after (below) this cursor.
LibraryResource.libraryResourceVersionsConnection.orderBy ● [LibraryResourceVersionsOrderBy!] list enum
The method to use when ordering LibraryResourceVersion.
LibraryResource.libraryResourceVersionsConnection.condition ● LibraryResourceVersionCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsConnection.filter ● LibraryResourceVersionFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersions ● [LibraryResourceVersion!]! non-null object
Reads and enables pagination through a set of LibraryResourceVersion.
LibraryResource.libraryResourceVersions.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceVersions.offset ● Int scalar
Skip the first n values.
LibraryResource.libraryResourceVersions.orderBy ● [LibraryResourceVersionsOrderBy!] list enum
The method to use when ordering LibraryResourceVersion.
LibraryResource.libraryResourceVersions.condition ● LibraryResourceVersionCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersions.filter ● LibraryResourceVersionFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection ● LibraryResourceVersionsConnection! non-null object
Reads and enables pagination through a set of LibraryResourceVersion.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.last ● Int scalar
Only read the last n values of the set.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.offset ● Int scalar
Skip the first n values from our after cursor, an alternative to cursor
based pagination. May not be used with last.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.before ● Cursor scalar
Read all values in the set before (above) this cursor.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.after ● Cursor scalar
Read all values in the set after (below) this cursor.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.orderBy ● [LibraryResourceVersionsOrderBy!] list enum
The method to use when ordering LibraryResourceVersion.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.condition ● LibraryResourceVersionCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsByParentFolderIdConnection.filter ● LibraryResourceVersionFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsByParentFolderId ● [LibraryResourceVersion!]! non-null object
Reads and enables pagination through a set of LibraryResourceVersion.
LibraryResource.libraryResourceVersionsByParentFolderId.first ● Int scalar
Only read the first n values of the set.
LibraryResource.libraryResourceVersionsByParentFolderId.offset ● Int scalar
Skip the first n values.
LibraryResource.libraryResourceVersionsByParentFolderId.orderBy ● [LibraryResourceVersionsOrderBy!] list enum
The method to use when ordering LibraryResourceVersion.
LibraryResource.libraryResourceVersionsByParentFolderId.condition ● LibraryResourceVersionCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.libraryResourceVersionsByParentFolderId.filter ● LibraryResourceVersionFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.resourceEntitlementsConnection ● ResourceEntitlementsConnection! non-null object
Reads and enables pagination through a set of ResourceEntitlement.
LibraryResource.resourceEntitlementsConnection.first ● Int scalar
Only read the first n values of the set.
LibraryResource.resourceEntitlementsConnection.last ● Int scalar
Only read the last n values of the set.
LibraryResource.resourceEntitlementsConnection.offset ● Int scalar
Skip the first n values from our after cursor, an alternative to cursor
based pagination. May not be used with last.
LibraryResource.resourceEntitlementsConnection.before ● Cursor scalar
Read all values in the set before (above) this cursor.
LibraryResource.resourceEntitlementsConnection.after ● Cursor scalar
Read all values in the set after (below) this cursor.
LibraryResource.resourceEntitlementsConnection.orderBy ● [ResourceEntitlementsOrderBy!] list enum
The method to use when ordering ResourceEntitlement.
LibraryResource.resourceEntitlementsConnection.condition ● ResourceEntitlementCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.resourceEntitlementsConnection.filter ● ResourceEntitlementFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.resourceEntitlements ● [ResourceEntitlement!]! non-null object
Reads and enables pagination through a set of ResourceEntitlement.
LibraryResource.resourceEntitlements.first ● Int scalar
Only read the first n values of the set.
LibraryResource.resourceEntitlements.offset ● Int scalar
Skip the first n values.
LibraryResource.resourceEntitlements.orderBy ● [ResourceEntitlementsOrderBy!] list enum
The method to use when ordering ResourceEntitlement.
LibraryResource.resourceEntitlements.condition ● ResourceEntitlementCondition input
A condition to be used in determining which values should be returned by the collection.
LibraryResource.resourceEntitlements.filter ● ResourceEntitlementFilter input
A filter to be used in determining which values should be returned by the collection.
LibraryResource.highlight ● String scalar
Highlights search matches using postgres ts_headline function.
LibraryResource.highlight.searchQuery ● String scalar
LibraryResource.searchVectorRank ● Float scalar
Full-text search ranking when filtered by searchVector.
LibraryResource.timesUsed ● BigFloat scalar
How many times this resource is in use: distinct accords it is attached to, plus the library playbook stages and steps that reference it.
Interfaces
Node interface
An object with a globally unique ID.
Returned By
libraryResource query ● libraryResourceByNodeId query ● libraryResources query ● semanticLibraryResourceSearch query ● suggestedResourcesForAccord query
Member Of
CreateHubLibraryResourcePayload object ● CreateLibraryResourcePayload object ● CreateLibraryResourceTagPayload object ● CreateLibraryResourceVersionPayload object ● CreateResourceEntitlementPayload object ● DeleteHubLibraryResourcePayload object ● DeleteLibraryResourceTagPayload object ● DeleteResourceEntitlementPayload object ● DuplicateLibraryResourcePayload object ● HubLibraryResource object ● LibraryResourcesConnection object ● LibraryResourcesEdge object ● LibraryResourceTag object ● LibraryResourceVersion object ● ResourceEntitlement object ● SaveResourceToLibraryPayload object ● SpotlightSuggestions object ● UpdateHubLibraryResourcePayload object ● UpdateLibraryResourcePayload object ● UpdateLibraryResourceTagPayload object ● UpdateResourceEntitlementPayload object ● UpsertHubLibraryResourcePayload object ● UpsertLibraryResourceTagPayload object ● Workspace object ● WorkspaceAccount object