settingsStore
The settingsStore router: 17 methods of the settings-store capability, with tier, scope, input and output.
Capability settings-store · scope system · mode singleton · source packages/types/src/capabilities/settings-store.cap.ts:240.
Every method is called at /trpc/settingsStore.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
get | query | admin | admin only | no |
set | mutation | admin | admin only | no |
query | query | admin | admin only | no |
upsert | mutation | admin | admin only | no |
upsertMany | mutation | admin | admin only | no |
insert | mutation | admin | admin only | no |
insertMany | mutation | admin | admin only | no |
transact | mutation | admin | admin only | no |
update | mutation | admin | admin only | no |
delete | mutation | admin | admin only | no |
deleteWhere | mutation | admin | admin only | no |
updateWhere | mutation | admin | admin only | no |
count | query | admin | admin only | no |
aggregate | query | admin | admin only | no |
histogram | query | admin | admin only | no |
isEmpty | query | admin | admin only | no |
declareCollection | mutation | admin | admin only | no |
settingsStore.get
- Kind: query —
GET /trpc/settingsStore.get - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.geton your hub
Input
{ namespace?: string; collection: string; key: string }Output
unknownsettingsStore.set
- Kind: mutation —
POST /trpc/settingsStore.set - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.seton your hub
Input
{ namespace?: string; collection: string; key: string; value: unknown }Output
voidsettingsStore.query
- Kind: query —
GET /trpc/settingsStore.query - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.queryon your hub
Input
{ namespace?: string; collection: string; filter?: QueryFilterSchema; columns?: string[] }Output
SettingsRecordSchema[]Shapes: QueryFilterSchema · SettingsRecordSchema
settingsStore.upsert
- Kind: mutation —
POST /trpc/settingsStore.upsert - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.upserton your hub
Input
{ namespace?: string; collection: string; conflict: string[]; record: BulkRecordSchema }Output
{ id: string | number }Shapes: BulkRecordSchema
settingsStore.upsertMany
- Kind: mutation —
POST /trpc/settingsStore.upsertMany - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.upsertManyon your hub
Input
{ namespace?: string; collection: string; conflict: string[]; records: BulkRecordSchema[] }Output
{ upserted: number }Shapes: BulkRecordSchema
settingsStore.insert
- Kind: mutation —
POST /trpc/settingsStore.insert - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.inserton your hub
Input
{ namespace?: string; collection: string; record: { id?: string; data: Record<string, unknown> } }Output
{ id: string | number }settingsStore.insertMany
- Kind: mutation —
POST /trpc/settingsStore.insertMany - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.insertManyon your hub
Input
{ namespace?: string; collection: string; records: BulkRecordSchema[] }Output
{ inserted: number }Shapes: BulkRecordSchema
settingsStore.transact
- Kind: mutation —
POST /trpc/settingsStore.transact - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.transacton your hub
Input
{ namespace?: string; guard?: { collection: string; key: string; column: string; equals: unknown }; ops: ({ op: "deleteWhere"; collection: string; filter: MutationFilterSchema } | { op: "insertMany"; collection: string; records: BulkRecordSchema[] } | { op: "update"; collection: string; id: string; data: Record<string, unknown> } | { op: "upsertMany"; collection: string; conflict: string[]; records: BulkRecordSchema[] })[] }Output
{ applied: boolean; current?: unknown }Shapes: MutationFilterSchema · BulkRecordSchema
settingsStore.update
- Kind: mutation —
POST /trpc/settingsStore.update - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.updateon your hub
Input
{ namespace?: string; collection: string; id: string; data: Record<string, unknown> }Output
voidsettingsStore.delete
- Kind: mutation —
POST /trpc/settingsStore.delete - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.deleteon your hub
Input
{ namespace?: string; collection: string; key: string }Output
voidsettingsStore.deleteWhere
- Kind: mutation —
POST /trpc/settingsStore.deleteWhere - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.deleteWhereon your hub
Input
{ namespace?: string; collection: string; filter: MutationFilterSchema }Output
{ deleted: number }Shapes: MutationFilterSchema
settingsStore.updateWhere
- Kind: mutation —
POST /trpc/settingsStore.updateWhere - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.updateWhereon your hub
Input
{ namespace?: string; collection: string; filter: MutationFilterSchema; data: Record<string, unknown> }Output
{ updated: number }Shapes: MutationFilterSchema
settingsStore.count
- Kind: query —
GET /trpc/settingsStore.count - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.counton your hub
Input
{ namespace?: string; collection: string; filter?: QueryFilterSchema }Output
numberShapes: QueryFilterSchema
settingsStore.aggregate
- Kind: query —
GET /trpc/settingsStore.aggregate - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.aggregateon your hub
Input
{ namespace?: string; collection: string; fields: ({ as: string; field: string; op: "sum" | "min" | "max" })[]; filter?: QueryFilterSchema }Output
{ count: number; values: Record<string, number | null> }Shapes: QueryFilterSchema
settingsStore.histogram
- Kind: query —
GET /trpc/settingsStore.histogram - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.histogramon your hub
Input
{ namespace?: string; collection: string; field: string; bucketSize: number; origin: number; filter?: QueryFilterSchema }Output
({ bucket: number; count: number })[]Shapes: QueryFilterSchema
settingsStore.isEmpty
- Kind: query —
GET /trpc/settingsStore.isEmpty - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.isEmptyon your hub
Input
{ namespace?: string; collection: string }Output
booleansettingsStore.declareCollection
- Kind: mutation —
POST /trpc/settingsStore.declareCollection - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=settingsStore.declareCollectionon your hub
Input
DeclareCollectionInputSchemaOutput
voidShapes: DeclareCollectionInputSchema