Skip to content
Pyck docs

Schema overview

Since pyck v0.27.0

Every query and mutation by service and entity, generated from the examples.

Entity Operation Kind Description
analyzeimagefile analyzeImageFile mutation Runs image analysis on a previously uploaded file and stores the result as JSON data on the file record. The referenced file must be an image.
file createFile mutation Creates a new file record linked to a supplier entity. Expects the server to return a file ID and a pre-signed upload URL.
file files query Retrieves a paginated list of files. Results can be filtered by any FileWhereInput field and ordered by available FileOrder fields.
file updateFile mutation Updates the metadata of an existing file record.
file deleteFile mutation Soft-deletes a file by ID.
finalizefileupload finalizeFileUpload mutation Reads the actual size of an uploaded file from object storage and stores it on the File record. Call it after the bytes were uploaded to the pre-signed URL that createFile returned.
nodefile nodeFile query Fetches one file by its global ID. The inline fragment selects the File fields; the lookup returns null when no object has that ID.
nodesfile nodesFile query Fetches several files by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
patchfiledata patchFileData mutation Applies RFC 6902 JSON Patch operations to the file’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
serviceinfo fileServiceInfo query Returns the file service version and build date.
Entity Operation Kind Description
collection inventoryCollections query Returns the 3 most recently created inventory collection movements.
collection deleteInventoryCollection mutation Deletes an inventory collection. Only possible if the collection has no movements. Delete all item and repository movements first before deleting the collection.
collectionmovement createInventoryCollectionMovement mutation Creates a collection of item movements in a single operation. The collection can mix item movements (using itemID) and repository movements (using repositoryID). Each entry specifies a quantity, source, and destination repository.
collectionmovement updateInventoryCollectionMovement mutation Updates an existing inventory collection movement. Only the handler field can be changed after creation.
currentstock currentStocks query Returns the first 10 current stock rows, which are the latest row for each repository and item pair.
item createInventoryItem mutation Creates a new inventory item. Expects the server to return the created item with its assigned ID.
item inventoryItems query Returns the 3 most recently created inventory items.
item updateInventoryItem mutation Updates an existing inventory item. Supply any fields to change (sku, data, dataTypeID); omitted fields are left unchanged.
item deleteInventoryItem mutation Soft-deletes an inventory item by ID.
itemmovement createInventoryItemMovement mutation Creates an item movement record to transfer a quantity of an inventory item from one repository to another. The movement is not executed until ExecuteInventoryItemMovement is called.
itemmovement itemMovements query Returns the 3 most recent unexecuted item movements.
itemmovement executeInventoryItemMovement mutation Executes a pending inventory item movement, transferring the item quantity between repositories and updating stock levels.
itemmovement updateInventoryItemMovement mutation Updates a pending inventory item movement. Only non-immutable fields (handler, blockedBy) can be changed after creation. Executed movements cannot be updated or deleted.
itemmovement deleteInventoryItemMovement mutation Soft-deletes a pending inventory item movement by ID. Only unexecuted movements can be deleted.
itemset createInventoryItemSet mutation Creates a new inventory item set (a named grouping of inventory items sharing a SKU).
itemset inventoryItemSets query Returns the 3 most recently created inventory item sets.
itemset updateInventoryItemSet mutation Updates the SKU of an existing inventory item set.
itemset deleteInventoryItemSet mutation Soft-deletes an inventory item set by ID.
nodeinventory nodeInventory query Fetches one inventory item by its global ID. The inline fragment selects the InventoryItem fields; the lookup returns null when no object has that ID.
nodesinventory nodesInventory query Fetches several inventory items by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
patchinventorycollectionmovementdata patchInventoryCollectionMovementData mutation Applies RFC 6902 JSON Patch operations to the collection movement’s data field. Only changed fields are modified; untouched fields are preserved.
patchinventoryitemdata patchInventoryItemData mutation Applies RFC 6902 JSON Patch operations to the inventory item’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
patchinventoryitemmovementdata patchInventoryItemMovementData mutation Applies RFC 6902 JSON Patch operations to the item movement’s data field. Only changed fields are modified; untouched fields are preserved.
patchinventoryitemsetdata patchInventoryItemSetData mutation Applies RFC 6902 JSON Patch operations to the item set’s data field. Only changed fields are modified; untouched fields are preserved.
patchinventoryrepositorydata patchInventoryRepositoryData mutation Applies RFC 6902 JSON Patch operations to the repository’s data field. Only changed fields are modified; untouched fields are preserved.
patchinventoryrepositorymovementdata patchInventoryRepositoryMovementData mutation Applies RFC 6902 JSON Patch operations to the repository movement’s data field. Only changed fields are modified; untouched fields are preserved.
patchreplenishmentorderdata patchReplenishmentOrderData mutation Applies RFC 6902 JSON Patch operations to the replenishment order’s data field. Only changed fields are modified; untouched fields are preserved.
patchreplenishmentorderitemdata patchReplenishmentOrderItemData mutation Applies RFC 6902 JSON Patch operations to the replenishment order item’s data field. Only changed fields are modified; untouched fields are preserved.
rebuildinventorystock rebuildInventoryStock mutation Recomputes the acting tenant’s stock rows from its movement history. Requires the admin role on the tenant.
replenishmentorder createReplenishmentOrder mutation Creates a replenishment order with one or more order items. Each item specifies a SKU and the quantity to replenish.
replenishmentorder replenishmentOrders query Returns the 3 most recently created replenishment orders.
replenishmentorder updateReplenishmentOrder mutation Updates an existing replenishment order. Supply any fields to change; omitted fields are left unchanged.
replenishmentorder deleteReplenishmentOrder mutation Soft-deletes a replenishment order by ID.
replenishmentorderitem createReplenishmentOrderItem mutation Adds an individual item to an existing replenishment order.
replenishmentorderitem replenishmentOrderItems query Returns the 3 most recently created replenishment order items, sorted by SKU.
replenishmentorderitem updateReplenishmentOrderItem mutation Updates the quantity or SKU of an existing replenishment order item.
replenishmentorderitem deleteReplenishmentOrderItem mutation Soft-deletes a replenishment order item by ID.
repository createInventoryRepository mutation Creates a new inventory repository (storage location).
repository repositories query Returns the 3 most recently created inventory repositories, sorted by name.
repository updateInventoryRepository mutation Updates an existing inventory repository’s name.
repository deleteInventoryRepository mutation Soft-deletes an inventory repository by ID.
repositorymovement createInventoryRepositoryMovement mutation Creates a repository movement record to transfer all items from one repository to another. The movement is not executed until ExecuteInventoryRepositoryMovement is called.
repositorymovement repositoryMovements query Returns the 3 most recent unexecuted repository movements.
repositorymovement executeInventoryRepositoryMovement mutation Executes a pending repository movement, transferring all items from the source repository to the destination repository and updating stock levels.
repositorymovement updateInventoryRepositoryMovement mutation Updates a pending inventory repository movement. Only non-immutable fields (handler, blockedBy) can be changed after creation. Executed movements cannot be updated or deleted.
repositorymovement deleteInventoryRepositoryMovement mutation Soft-deletes a pending inventory repository movement by ID. Only unexecuted movements can be deleted.
serviceinfo inventoryServiceInfo query Returns the current version and date of the inventory service.
stock stocks query Returns the 3 stock entries with the highest quantity.
stock deleteInventoryStock mutation Clears virtual stock for a repository, optionally scoped to a specific item. Use itemID to clear stock for one item only; omit it to clear all stock in the repository.
stocktree getStockTree query Returns the first 3 stock entries as a hierarchical tree, showing stock levels per repository including child repositories.
transaction transactions query Returns the 3 most recent inventory transactions.
Entity Operation Kind Description
customer createCustomer mutation Creates a customer with data type reference and custom data.
customer customers query Queries customers with pagination and ordering.
customer updateCustomer mutation Updates a customer’s data.
customer deleteCustomer mutation Soft-deletes a customer by ID.
node node query Fetches one customer by its global ID. The inline fragment selects the Customer fields; the lookup returns null when no object has that ID.
node nodes query Fetches several customers by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
patchcustomerdata patchCustomerData mutation Applies RFC 6902 JSON Patch operations to the customer’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
patchsupplierdata patchSupplierData mutation Applies RFC 6902 JSON Patch operations to the supplier’s data field. Only changed fields are modified; untouched fields are preserved.
serviceinfo mainDataServiceInfo query Returns service metadata including version.
supplier createSupplier mutation Creates a supplier with data type reference and custom data.
supplier suppliers query Queries suppliers with pagination and ordering.
supplier updateSupplier mutation Updates a supplier’s data.
supplier deleteSupplier mutation Soft-deletes a supplier by ID.
Entity Operation Kind Description
assignrole assignRoles mutation Grants one or more per-service roles to an existing user within a tenant. Roles the user already holds are preserved, so the call is additive. Only per-service role keys are accepted (ladder roles reader/writer/admin are rejected). Tenant-admin only.
checkinuserdevice checkInUserDevice mutation Records that a user has checked out a device for use.
checkoutuserdevice checkOutUserDevice mutation Records that a user has returned a device.
datatype createDataType mutation Creates a new data type with a JSON schema for a given entity.
datatype dataTypes query Lists data types with pagination and optional filters.
datatype updateDataType mutation Updates a data type’s name in place. name is the only mutable field on a DataType and every other field is immutable, so a schema change requires a new version via createDataType with the same slug.
datatype deleteDataType mutation Soft-deletes a data type by ID.
datatypebyslug dataTypeBySlug query Returns the latest non-deleted DataType version for the given slug within the caller’s tenant, or null if no version exists.
datatypeentity dataTypeEntities query Returns the list of entity type names that support data types.
device createDevice mutation Creates a handheld scanner or other warehouse device.
device devices query Lists devices with pagination and ordering.
device updateDevice mutation Updates an existing device’s name or data.
device deleteDevice mutation Soft-deletes a device by ID.
devicelocation deviceLocations query Lists device-location assignments with pagination.
devicelocation setDeviceLocation mutation Assigns a device to a location.
deviceuser deviceUsers query Lists device check-in records with pagination.
disabledtenant disabledTenants query Returns those of the given tenant IDs that no live tenant row backs, such as soft-deleted tenants, unfinished registrations and unknown IDs. System caller only.
generatejsonschema generateJsonSchema mutation Generates a JSON Schema from an example JSON data object.
keyvalue keyValues query Lists key-value entries with pagination.
keyvalue setKeyValue mutation Creates or updates a key-value entry for the current user.
keyvalue deleteKeyValue mutation Deletes a key-value entry by ID.
location createLocation mutation Creates a warehouse location.
location locations query Lists locations with pagination and ordering.
location updateLocation mutation Updates an existing location’s name or data.
location deleteLocation mutation Soft-deletes a location by ID.
me me query Returns the currently authenticated user’s profile and tenant context.
nodedatatype nodeDataType query Fetches one data type by its global ID. The inline fragment selects the DataType fields; the lookup returns null when no object has that ID.
nodesdatatype nodesDataType query Fetches several data types by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
patchdevicedata patchDeviceData mutation Applies RFC 6902 JSON Patch operations to the device’s data field. Only changed fields are modified; untouched fields are preserved.
patchdevicelocationdata patchDeviceLocationData mutation Applies RFC 6902 JSON Patch operations to the device location assignment’s data field. Only changed fields are modified; untouched fields are preserved.
patchlocationdata patchLocationData mutation Applies RFC 6902 JSON Patch operations to the location’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
registertenant registerTenant mutation Registers a new tenant. Requires admin privileges.
restoretenant restoreTenant mutation Manually restores a previously disabled tenant by clearing its deleted_at flag via the RestoreTenantWorkflow. System role required. Only a tenant whose registration finished can be restored. Returns an error when the tenant does not exist; idempotent on already-active tenants.
role removeRoles mutation Removes one or more per-service roles from an existing user within a tenant. The call is idempotent, so removing a role the user does not hold is a no-op. The user’s ladder roles (reader/writer/admin) and any other service roles are preserved. Only per-service role keys are accepted (ladder roles are rejected). Tenant-admin only.
sendcustomevent sendCustomEvent mutation Publishes a custom event for an entity id in the mutation’s tenant. The workflow signal router starts or signals every workflow registered for the event’s type and operation. Requires the WRITER role on the tenant.
serviceinfo managementServiceInfo query Returns service metadata including version and date.
servicerole serviceRoles query Returns the fixed set of per-service gate roles that can be assigned to users (inventory_service, picking_service, …). Tenant-admin only.
tenant tenants query Lists tenants with pagination. Requires admin privileges.
tenant deleteTenant mutation Manually triggers the soft-delete half of the tenant lifecycle by setting deleted_at. The tenant-lifecycle NATS subscriber observes the resulting CRUD event and starts DisableTenantWorkflow to deactivate the Zitadel org. A registration that is still running notices the delete itself. Returns an error when the tenant does not exist; idempotent on already-deleted tenants. The tenant row stays in the database and can be reactivated via restoreTenant during the grace period. The caller must hold ROLE_ADMIN on input.tenantId.
tenantexpiry setTenantExpiry mutation Sets or clears the tenant’s expiry timestamp. Pass null to clear. System role required. The value is written directly to tenant.expires_at; the periodic tenant-expiry-check workflow soft-deletes the tenant once the timestamp is reached. Returns an error when the tenant does not exist; soft-deleted tenants are invisible to this mutation. Idempotent on the already-at-target-state cases.
tenantuitemplate setTenantUITemplate mutation Sets the web UI bundle URL template of the tenant named by the X-Pyck-Tenant-Id header and leaves the mobile template unchanged. System caller only.
unsetdevicelocation unsetDeviceLocation mutation Removes a device-location assignment by device location ID.
user createUser mutation Creates a user account with IDP reference and contact details.
user users query Lists users with pagination and ordering.
user updateUser mutation Updates user profile fields.
user deleteUser mutation Deletes a user by ID. Returns the deleted user ID.
userservicerole userServiceRoles query Returns the per-service roles assigned to a user within a tenant, read directly from Zitadel. Tenant-admin only.
Entity Operation Kind Description
nodepicking nodePicking query Fetches one picking order by its global ID. The inline fragment selects the PickingOrder fields; the lookup returns null when no object has that ID.
nodespicking nodesPicking query Fetches several picking orders by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
order createPickingOrder mutation Creates a picking order with customer reference and optional line items.
order pickingOrders query Queries picking orders with pagination and ordering.
order updatePickingOrder mutation Updates fields on an existing picking order.
order deletePickingOrder mutation Soft-deletes a picking order by ID. Cascades to all order items.
orderitem createPickingOrderItem mutation Adds a single line item to an existing picking order.
orderitem pickingOrderItems query Queries picking order items with pagination and optional filters.
orderitem updatePickingOrderItem mutation Updates the quantity or data on an existing picking order item.
orderitem deletePickingOrderItem mutation Soft-deletes a single picking order item by ID.
outboundshipmentnotification createPickingOutboundShipmentNotification mutation Creates an outbound shipment notification linked to an existing order.
outboundshipmentnotification pickingOutboundShipmentNotifications query Lists outbound shipment notifications with pagination and ordering.
outboundshipmentnotification updatePickingOutboundShipmentNotification mutation Updates an outbound shipment notification’s data fields.
outboundshipmentnotification deletePickingOutboundShipmentNotification mutation Soft-deletes an outbound shipment notification by ID.
patchpickingorderdata patchPickingOrderData mutation Applies RFC 6902 JSON Patch operations to the picking order’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
patchpickingorderitemdata patchPickingOrderItemData mutation Applies RFC 6902 JSON Patch operations to the picking order item’s data field. Only changed fields are modified; untouched fields are preserved.
patchpickingoutboundshipmentnotificationdata patchPickingOutboundShipmentNotificationData mutation Applies RFC 6902 JSON Patch operations to the picking outbound shipment notification’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
serviceinfo pickingServiceInfo query Returns service metadata including version and date.
Entity Operation Kind Description
inbound createReceivingInbound mutation Creates a receiving inbound with supplier, order, data, and inline items.
inbound receivingInbounds query Lists receiving inbounds with pagination and ordering.
inbound updateReceivingInbound mutation Updates a receiving inbound’s orderID and data fields.
inbound deleteReceivingInbound mutation Soft-deletes a receiving inbound by ID.
inbounditem createReceivingInboundItem mutation Creates a single inbound item associated with an existing inbound.
inbounditem receivingInboundItems query Lists receiving inbound items with pagination and ordering.
inbounditem updateReceivingInboundItem mutation Updates an inbound item’s SKU and quantity.
inbounditem deleteReceivingInboundItem mutation Soft-deletes a receiving inbound item by ID.
inboundshipmentnotification createReceivingInboundShipmentNotification mutation Creates an inbound shipment notification linked to an existing inbound.
inboundshipmentnotification receivingInboundShipmentNotifications query Lists inbound shipment notifications with pagination and ordering.
inboundshipmentnotification updateReceivingInboundShipmentNotification mutation Updates an inbound shipment notification’s data fields.
inboundshipmentnotification deleteReceivingInboundShipmentNotification mutation Soft-deletes an inbound shipment notification by ID.
nodereceiving nodeReceiving query Fetches one receiving inbound by its global ID. The inline fragment selects the ReceivingInbound fields; the lookup returns null when no object has that ID.
nodesreceiving nodesReceiving query Fetches several receiving inbounds by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
patchreceivinginbounddata patchReceivingInboundData mutation Applies RFC 6902 JSON Patch operations to the inbound’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
patchreceivinginbounditemdata patchReceivingInboundItemData mutation Applies RFC 6902 JSON Patch operations to the inbound item’s data field. Only changed fields are modified; untouched fields are preserved.
patchreceivinginboundshipmentnotificationdata patchReceivingInboundShipmentNotificationData mutation Applies RFC 6902 JSON Patch operations to the receiving inbound shipment notification’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
serviceinfo receivingServiceInfo query Returns service metadata including version.
Entity Operation Kind Description
action workflowActions query Returns available queries and updates for a workflow execution, with an enabled flag indicating whether each action is currently callable.
assignableworkflowexecution assignableWorkflowExecutions query Lists workflow executions that can be assigned to users.
assignee workflowAssignee query Returns the current assignee of a workflow execution.
assignee setWorkflowAssignee mutation Assigns a workflow execution to a specific user.
cancelworkflow cancelWorkflow mutation Requests graceful cancellation of a running workflow execution. The target workflow receives a cancellation signal on its context and can run cleanup before terminating. Returns once the cancel request has been accepted by Temporal (not when the workflow has actually terminated).
currentuserdatainput currentUserDataInput query Returns the current pending user data input form for an active workflow execution. The workflow must be in a state waiting for user input.
ensuretemporalnamespace ensureTemporalNamespace mutation Ensures the Temporal namespace exists for the current tenant. Safe to call multiple times. Returns the namespace name.
execution workflowExecutions query Lists workflow executions from Temporal with optional filtering.
history workflowHistory query Retrieves the event history for a specific workflow execution.
isassignable workflowIsAssignable query Returns whether a given workflow execution currently advertises itself as assignable via the pyck_workflow_is_assignable search attribute. Workflows that never wrote the attribute are treated as assignable (returns true).
isassignable setWorkflowIsAssignable mutation Toggles the assignability flag on a running workflow execution by sending a Temporal update. The value is persisted to the pyck_workflow_is_assignable search attribute, which controls whether the workflow appears in assignableWorkflowExecutions queries.
nodesworkflow nodesWorkflow query Fetches several workflows by their global IDs in one request. The result has one entry per ID, in the order of the IDs, and null for an ID that matches no object.
nodeworkflow nodeWorkflow query Fetches one workflow by its global ID. The inline fragment selects the Workflow fields; the lookup returns null when no object has that ID.
registerworkflow registerWorkflow mutation Registers a workflow definition with optional NATS signal triggers.
remoteui remoteUI query Returns the rendered web and mobile UI bundle URLs for one workflow execution, identified by its workflow ID and execution ID.
serviceinfo workflowServiceInfo query Returns service metadata including version and date.
signal workflowSignals query Lists workflow signal definitions with pagination and ordering.
submituserdatainput submitUserDataInput mutation Submits form data to a workflow execution that is waiting for user input. The workflow must be in a user-input pending state.
target workflowTargets query Returns the list of client surfaces a workflow execution targets. The list is empty when the workflow has not declared any targets.
target setWorkflowTargets mutation Replaces the target client surfaces (WEB, MOBILE, SETUP) of a running workflow execution. Passing an empty list clears the search attribute so the workflow no longer matches any targets-based filter.
transactionrouting transactionRouting query Returns the routing status of the events that a mutation published, with one entry for each event the router has settled. Pass the transactionID that the mutation returned.
unregisterworker unregisterWorker mutation Marks the live signal subscriptions of a worker as stopped, for example on a clean shutdown, and returns how many it stopped.
workerdeploymentuibundle workerDeploymentUIBundles query Returns the first 10 Worker Deployment Versions of the tenant’s namespace with their drainage status and the UI bundles they ship. Admin only.
workflow workflows query Lists registered workflow definitions with pagination and ordering.
workflow deleteWorkflow mutation Soft-deletes a registered workflow definition by ID.